@aurelia-mdc-web/layout-grid
Version:
Wrapper for Material Components Web Layout Grid
56 lines • 2.54 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MdcLayoutGridCell = void 0;
var tslib_1 = require("tslib");
var aurelia_framework_1 = require("aurelia-framework");
var aurelia_typed_observable_plugin_1 = require("aurelia-typed-observable-plugin");
/**
* @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