@ionic/core
Version:
Base components for Ionic
48 lines (43 loc) • 1.64 kB
JavaScript
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
import { b as getIonMode } from './ionic-global.js';
const selectOptionCss = ":host{display:none}";
const SelectOption = /*@__PURE__*/ proxyCustomElement(class SelectOption extends HTMLElement {
constructor() {
super();
this.__registerHost();
this.__attachShadow();
this.inputId = `ion-selopt-${selectOptionIds++}`;
/**
* If `true`, the user cannot interact with the select option. This property does not apply when `interface="action-sheet"` as `ion-action-sheet` does not allow for disabled buttons.
*/
this.disabled = false;
}
render() {
return h(Host, { key: '3a70eea9fa03a9acba582180761d18347c72acee', role: "option", id: this.inputId, class: getIonMode(this) });
}
get el() { return this; }
static get style() { return selectOptionCss; }
}, [1, "ion-select-option", {
"disabled": [4],
"value": [8]
}]);
let selectOptionIds = 0;
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["ion-select-option"];
components.forEach(tagName => { switch (tagName) {
case "ion-select-option":
if (!customElements.get(tagName)) {
customElements.define(tagName, SelectOption);
}
break;
} });
}
const IonSelectOption = SelectOption;
const defineCustomElement = defineCustomElement$1;
export { IonSelectOption, defineCustomElement };