UNPKG

aurelia-materialize-bridge

Version:
56 lines 1.89 kB
import { __decorate, __metadata } from "tslib"; import * as au from "../aurelia"; let MdProgress = class MdProgress { constructor(element) { this.element = element; this.color = null; this.pixelSize = null; this.size = "big"; this.type = "linear"; this.value = null; } pixelSizeChanged(newValue) { if (this.wrapper) { this.wrapper.style.height = `${newValue}px`; this.wrapper.style.width = `${newValue}px`; } } sizeChanged(newValue) { this.pixelSize = null; } bind() { // DO NOT REMOVE!!! // This disables property changed callbacks for any bindable properties during initialization // Prevents mdPixelSize getting cleared by the mdSizeChanged event during binding } attached() { this.pixelSizeChanged(this.pixelSize); } }; __decorate([ au.ato.bindable.stringMd, __metadata("design:type", String) ], MdProgress.prototype, "color", void 0); __decorate([ au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.twoWay }), __metadata("design:type", Number) ], MdProgress.prototype, "pixelSize", void 0); __decorate([ au.bindable, __metadata("design:type", String) ], MdProgress.prototype, "size", void 0); __decorate([ au.bindable({ defaultBindingMode: au.bindingMode.oneTime }), __metadata("design:type", String) ], MdProgress.prototype, "type", void 0); __decorate([ au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.twoWay }), __metadata("design:type", Number) ], MdProgress.prototype, "value", void 0); MdProgress = __decorate([ au.customElement("md-progress"), au.autoinject, __metadata("design:paramtypes", [Element]) ], MdProgress); export { MdProgress }; //# sourceMappingURL=progress.js.map