UNPKG

@aurelia-mdc-web/layout-grid

Version:

Wrapper for Material Components Web Layout Grid

55 lines 2.77 kB
define(["require", "exports", "tslib", "aurelia-framework", "aurelia-typed-observable-plugin"], function (require, exports, tslib_1, aurelia_framework_1, aurelia_typed_observable_plugin_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MdcLayoutGridCell = void 0; /** * @selector mdc-layout-grid-cell */ var MdcLayoutGridCell = /** @class */ (function () { function MdcLayoutGridCell() { } MdcLayoutGridCell.prototype.spansChanged = function () { var _a; _a = tslib_1.__read(this.spans.split(' '), 3), this.phoneSpan = _a[0], this.tabletSpan = _a[1], this.desktopSpan = _a[2]; }; tslib_1.__decorate([ aurelia_typed_observable_plugin_1.bindable.none, tslib_1.__metadata("design:type", String) ], MdcLayoutGridCell.prototype, "order", void 0); tslib_1.__decorate([ aurelia_typed_observable_plugin_1.bindable.none, tslib_1.__metadata("design:type", String) ], MdcLayoutGridCell.prototype, "position", void 0); tslib_1.__decorate([ aurelia_typed_observable_plugin_1.bindable.none, tslib_1.__metadata("design:type", String) ], MdcLayoutGridCell.prototype, "span", void 0); tslib_1.__decorate([ aurelia_typed_observable_plugin_1.bindable.none, tslib_1.__metadata("design:type", String) ], MdcLayoutGridCell.prototype, "desktopSpan", void 0); tslib_1.__decorate([ aurelia_typed_observable_plugin_1.bindable.none, tslib_1.__metadata("design:type", String) ], MdcLayoutGridCell.prototype, "tabletSpan", void 0); tslib_1.__decorate([ aurelia_typed_observable_plugin_1.bindable.none, tslib_1.__metadata("design:type", String) ], MdcLayoutGridCell.prototype, "phoneSpan", void 0); tslib_1.__decorate([ aurelia_typed_observable_plugin_1.bindable.booleanAttr, tslib_1.__metadata("design:type", String) ], MdcLayoutGridCell.prototype, "newRow", void 0); tslib_1.__decorate([ aurelia_typed_observable_plugin_1.bindable.none, tslib_1.__metadata("design:type", String) ], MdcLayoutGridCell.prototype, "spans", void 0); MdcLayoutGridCell = tslib_1.__decorate([ (0, aurelia_framework_1.useView)(aurelia_framework_1.PLATFORM.moduleName('./mdc-layout-grid-cell.html')), (0, aurelia_framework_1.customElement)('mdc-layout-grid-cell') ], MdcLayoutGridCell); return MdcLayoutGridCell; }()); exports.MdcLayoutGridCell = MdcLayoutGridCell; }); //# sourceMappingURL=mdc-layout-grid-cell.js.map