mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.7 KiB
49 lines
1.7 KiB
/*!
|
|
* (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(registerHost) {
|
|
super();
|
|
if (registerHost !== false) {
|
|
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; }
|
|
}, [257, "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 };
|
|
|