1 |
|
2 |
|
3 |
|
4 | import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
5 | import { b as getIonMode } from './ionic-global.js';
|
6 |
|
7 | const selectOptionCss = ":host{display:none}";
|
8 |
|
9 | const SelectOption = proxyCustomElement(class extends HTMLElement {
|
10 | constructor() {
|
11 | super();
|
12 | this.__registerHost();
|
13 | this.__attachShadow();
|
14 | this.inputId = `ion-selopt-${selectOptionIds++}`;
|
15 | |
16 |
|
17 |
|
18 | this.disabled = false;
|
19 | }
|
20 | render() {
|
21 | return (h(Host, { role: "option", id: this.inputId, class: getIonMode(this) }));
|
22 | }
|
23 | get el() { return this; }
|
24 | static get style() { return selectOptionCss; }
|
25 | }, [1, "ion-select-option", {
|
26 | "disabled": [4],
|
27 | "value": [8]
|
28 | }]);
|
29 | let selectOptionIds = 0;
|
30 | function defineCustomElement$1() {
|
31 | if (typeof customElements === "undefined") {
|
32 | return;
|
33 | }
|
34 | const components = ["ion-select-option"];
|
35 | components.forEach(tagName => { switch (tagName) {
|
36 | case "ion-select-option":
|
37 | if (!customElements.get(tagName)) {
|
38 | customElements.define(tagName, SelectOption);
|
39 | }
|
40 | break;
|
41 | } });
|
42 | }
|
43 |
|
44 | const IonSelectOption = SelectOption;
|
45 | const defineCustomElement = defineCustomElement$1;
|
46 |
|
47 | export { IonSelectOption, defineCustomElement };
|