UNPKG

@aurelia-mdc-web/list

Version:

Wrapper for Material Components Web List

35 lines 1.38 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 */ let MdcDeprecatedListGroup = class MdcDeprecatedListGroup { headersChanged() { this.headers.forEach(x => 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); export { MdcDeprecatedListGroup }; let MdcDeprecatedListGroupSubheader = class MdcDeprecatedListGroupSubheader { constructor(root) { this.root = root; } attached() { this.root.classList.add('mdc-deprecated-list-group__subheader'); } }; MdcDeprecatedListGroupSubheader = __decorate([ inject(Element), customAttribute('mdc-deprecated-list-group-subheader'), __metadata("design:paramtypes", [HTMLElement]) ], MdcDeprecatedListGroupSubheader); export { MdcDeprecatedListGroupSubheader }; //# sourceMappingURL=mdc-deprecated-list-group.js.map