UNPKG

aurelia-materialize-bridge

Version:
72 lines 3.29 kB
System.register(["tslib", "../aurelia"], function (exports_1, context_1) { "use strict"; var tslib_1, au, MdProgress; 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 () { MdProgress = /** @class */ (function () { function MdProgress(element) { this.element = element; this.color = null; this.pixelSize = null; this.size = "big"; this.type = "linear"; this.value = null; } MdProgress.prototype.pixelSizeChanged = function (newValue) { if (this.wrapper) { this.wrapper.style.height = newValue + "px"; this.wrapper.style.width = newValue + "px"; } }; MdProgress.prototype.sizeChanged = function (newValue) { this.pixelSize = null; }; MdProgress.prototype.bind = function () { // DO NOT REMOVE!!! // This disables property changed callbacks for any bindable properties during initialization // Prevents mdPixelSize getting cleared by the mdSizeChanged event during binding }; MdProgress.prototype.attached = function () { this.pixelSizeChanged(this.pixelSize); }; tslib_1.__decorate([ au.ato.bindable.stringMd, tslib_1.__metadata("design:type", String) ], MdProgress.prototype, "color", void 0); tslib_1.__decorate([ au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.twoWay }), tslib_1.__metadata("design:type", Number) ], MdProgress.prototype, "pixelSize", void 0); tslib_1.__decorate([ au.bindable, tslib_1.__metadata("design:type", String) ], MdProgress.prototype, "size", void 0); tslib_1.__decorate([ au.bindable({ defaultBindingMode: au.bindingMode.oneTime }), tslib_1.__metadata("design:type", String) ], MdProgress.prototype, "type", void 0); tslib_1.__decorate([ au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.twoWay }), tslib_1.__metadata("design:type", Number) ], MdProgress.prototype, "value", void 0); MdProgress = tslib_1.__decorate([ au.customElement("md-progress"), au.autoinject, tslib_1.__metadata("design:paramtypes", [Element]) ], MdProgress); return MdProgress; }()); exports_1("MdProgress", MdProgress); } }; }); //# sourceMappingURL=progress.js.map