UNPKG

igniteui-webcomponents

Version:

Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.

46 lines 2.06 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var IgcDropdownGroupComponent_1; import { LitElement, html } from 'lit'; import { queryAssignedElements } from 'lit/decorators.js'; import { themes } from '../../theming/theming-decorator.js'; import { registerComponent } from '../common/definitions/register.js'; import IgcDropdownItemComponent from './dropdown-item.js'; import { styles } from './themes/dropdown-group.base.css.js'; import { all } from './themes/group.js'; import { styles as shared } from './themes/shared/group/dropdown-group.common.css.js'; let IgcDropdownGroupComponent = IgcDropdownGroupComponent_1 = class IgcDropdownGroupComponent extends LitElement { static register() { registerComponent(IgcDropdownGroupComponent_1); } constructor() { super(); this._internals = this.attachInternals(); this._internals.role = 'group'; } render() { return html ` <label part="label"> <slot name="label"></slot> </label> <slot></slot> `; } }; IgcDropdownGroupComponent.tagName = 'igc-dropdown-group'; IgcDropdownGroupComponent.styles = [styles, shared]; __decorate([ queryAssignedElements({ flatten: true, selector: IgcDropdownItemComponent.tagName, }) ], IgcDropdownGroupComponent.prototype, "items", void 0); IgcDropdownGroupComponent = IgcDropdownGroupComponent_1 = __decorate([ themes(all) ], IgcDropdownGroupComponent); export default IgcDropdownGroupComponent; //# sourceMappingURL=dropdown-group.js.map