UNPKG

@aurelia-mdc-web/list

Version:

Wrapper for Material Components Web List

39 lines 1.7 kB
import { __decorate, __metadata } from "tslib"; import { inlineView, customElement, children, customAttribute, inject } from 'aurelia-framework'; /** * Optional. Wrapper around two or more mdc-list elements to be grouped together. * @selector mdc-deprecated-list-group */ var MdcDeprecatedListGroup = /** @class */ (function () { function MdcDeprecatedListGroup() { } MdcDeprecatedListGroup.prototype.headersChanged = function () { this.headers.forEach(function (x) { return x.classList.add('mdc-deprecated-list-group__subheader'); }); }; __decorate([ children('h1,h2,h3,h4,h5,h6'), __metadata("design:type", Array) ], MdcDeprecatedListGroup.prototype, "headers", void 0); MdcDeprecatedListGroup = __decorate([ inlineView('<template class="mdc-deprecated-list-group"><slot></slot></template>'), customElement('mdc-deprecated-list-group') ], MdcDeprecatedListGroup); return MdcDeprecatedListGroup; }()); export { MdcDeprecatedListGroup }; var MdcDeprecatedListGroupSubheader = /** @class */ (function () { function MdcDeprecatedListGroupSubheader(root) { this.root = root; } MdcDeprecatedListGroupSubheader.prototype.attached = function () { this.root.classList.add('mdc-deprecated-list-group__subheader'); }; MdcDeprecatedListGroupSubheader = __decorate([ inject(Element), customAttribute('mdc-deprecated-list-group-subheader'), __metadata("design:paramtypes", [HTMLElement]) ], MdcDeprecatedListGroupSubheader); return MdcDeprecatedListGroupSubheader; }()); export { MdcDeprecatedListGroupSubheader }; //# sourceMappingURL=mdc-deprecated-list-group.js.map