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.

36 lines 1.85 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 IgcSelectItemComponent_1; import { property } from 'lit/decorators.js'; import { themes } from '../../theming/theming-decorator.js'; import { registerComponent } from '../common/definitions/register.js'; import { IgcBaseOptionLikeComponent } from '../common/mixins/option.js'; import { styles } from '../dropdown/themes/dropdown-item.base.css.js'; import { all } from '../dropdown/themes/item.js'; import { styles as shared } from '../dropdown/themes/shared/item/dropdown-item.common.css.js'; let IgcSelectItemComponent = IgcSelectItemComponent_1 = class IgcSelectItemComponent extends IgcBaseOptionLikeComponent { static register() { registerComponent(IgcSelectItemComponent_1); } set active(value) { this._active = Boolean(value); this.tabIndex = this._active ? 0 : -1; } get active() { return this._active; } }; IgcSelectItemComponent.tagName = 'igc-select-item'; IgcSelectItemComponent.styles = [styles, shared]; __decorate([ property({ type: Boolean, reflect: true }) ], IgcSelectItemComponent.prototype, "active", null); IgcSelectItemComponent = IgcSelectItemComponent_1 = __decorate([ themes(all) ], IgcSelectItemComponent); export default IgcSelectItemComponent; //# sourceMappingURL=select-item.js.map