UNPKG

@aurelia-mdc-web/layout-grid

Version:

Wrapper for Material Components Web Layout Grid

49 lines 1.61 kB
import { __decorate, __metadata } from "tslib"; import { useView, PLATFORM, customElement } from 'aurelia-framework'; import { bindable } from 'aurelia-typed-observable-plugin'; /** * @selector mdc-layout-grid-cell */ let MdcLayoutGridCell = class MdcLayoutGridCell { spansChanged() { [this.phoneSpan, this.tabletSpan, this.desktopSpan] = this.spans.split(' '); } }; __decorate([ bindable.none, __metadata("design:type", String) ], MdcLayoutGridCell.prototype, "order", void 0); __decorate([ bindable.none, __metadata("design:type", String) ], MdcLayoutGridCell.prototype, "position", void 0); __decorate([ bindable.none, __metadata("design:type", String) ], MdcLayoutGridCell.prototype, "span", void 0); __decorate([ bindable.none, __metadata("design:type", String) ], MdcLayoutGridCell.prototype, "desktopSpan", void 0); __decorate([ bindable.none, __metadata("design:type", String) ], MdcLayoutGridCell.prototype, "tabletSpan", void 0); __decorate([ bindable.none, __metadata("design:type", String) ], MdcLayoutGridCell.prototype, "phoneSpan", void 0); __decorate([ bindable.booleanAttr, __metadata("design:type", String) ], MdcLayoutGridCell.prototype, "newRow", void 0); __decorate([ bindable.none, __metadata("design:type", String) ], MdcLayoutGridCell.prototype, "spans", void 0); MdcLayoutGridCell = __decorate([ useView(PLATFORM.moduleName('./mdc-layout-grid-cell.html')), customElement('mdc-layout-grid-cell') ], MdcLayoutGridCell); export { MdcLayoutGridCell }; //# sourceMappingURL=mdc-layout-grid-cell.js.map