UNPKG

@aurelia-mdc-web/list

Version:

Wrapper for Material Components Web List

29 lines 1.03 kB
import { __decorate, __values } from "tslib"; import { viewEngineHooks } from 'aurelia-framework'; var EnhanceMdcListItem = /** @class */ (function () { function EnhanceMdcListItem() { } EnhanceMdcListItem.prototype.beforeCompile = function (template) { var e_1, _a; var actions = template.querySelectorAll('[mdc-list-item]'); try { for (var _b = __values(Array.from(actions)), _c = _b.next(); !_c.done; _c = _b.next()) { var i = _c.value; i.setAttribute('as-element', 'mdc-list-item'); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; EnhanceMdcListItem = __decorate([ viewEngineHooks ], EnhanceMdcListItem); return EnhanceMdcListItem; }()); export { EnhanceMdcListItem }; //# sourceMappingURL=enhance-mdc-list-item.js.map