calcite-option_3.cjs.entry.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. /*!
  2. * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  3. * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
  4. * v1.0.0-beta.82
  5. */
  6. 'use strict';
  7. Object.defineProperty(exports, '__esModule', { value: true });
  8. const index = require('./index-5c65e149.js');
  9. const observers = require('./observers-d9fdf006.js');
  10. const dom = require('./dom-9ac0341c.js');
  11. const label = require('./label-165fc611.js');
  12. const form = require('./form-11926121.js');
  13. const interactive = require('./interactive-e294111f.js');
  14. require('./guid-8b6d6cb4.js');
  15. const optionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}";
  16. const Option = class {
  17. constructor(hostRef) {
  18. index.registerInstance(this, hostRef);
  19. this.calciteOptionChange = index.createEvent(this, "calciteOptionChange", 7);
  20. //--------------------------------------------------------------------------
  21. //
  22. // Properties
  23. //
  24. //--------------------------------------------------------------------------
  25. /**
  26. * When true, it prevents the option from being selected.
  27. */
  28. this.disabled = false;
  29. this.mutationObserver = observers.createObserver("mutation", () => {
  30. this.ensureTextContentDependentProps();
  31. this.calciteOptionChange.emit();
  32. });
  33. }
  34. handlePropChange(_newValue, _oldValue, propName) {
  35. if (propName === "label" || propName === "value") {
  36. this.ensureTextContentDependentProps();
  37. }
  38. this.calciteOptionChange.emit();
  39. }
  40. //--------------------------------------------------------------------------
  41. //
  42. // Private Methods
  43. //
  44. //--------------------------------------------------------------------------
  45. ensureTextContentDependentProps() {
  46. const { el: { textContent } } = this;
  47. if (!this.label || this.label === this.internallySetLabel) {
  48. this.label = textContent;
  49. this.internallySetLabel = textContent;
  50. }
  51. if (!this.value || this.value === this.internallySetValue) {
  52. this.value = textContent;
  53. this.internallySetValue = textContent;
  54. }
  55. }
  56. //--------------------------------------------------------------------------
  57. //
  58. // Lifecycle
  59. //
  60. //--------------------------------------------------------------------------
  61. connectedCallback() {
  62. var _a;
  63. this.ensureTextContentDependentProps();
  64. (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, {
  65. attributeFilter: ["label", "value"],
  66. characterData: true,
  67. childList: true,
  68. subtree: true
  69. });
  70. }
  71. disconnectedCallback() {
  72. var _a;
  73. (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
  74. }
  75. //--------------------------------------------------------------------------
  76. //
  77. // Render Methods
  78. //
  79. //--------------------------------------------------------------------------
  80. render() {
  81. return index.h("slot", null, this.label);
  82. }
  83. get el() { return index.getElement(this); }
  84. static get watchers() { return {
  85. "disabled": ["handlePropChange"],
  86. "label": ["handlePropChange"],
  87. "selected": ["handlePropChange"],
  88. "value": ["handlePropChange"]
  89. }; }
  90. };
  91. Option.style = optionCss;
  92. const optionGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}";
  93. const OptionGroup = class {
  94. constructor(hostRef) {
  95. index.registerInstance(this, hostRef);
  96. this.calciteOptionGroupChange = index.createEvent(this, "calciteOptionGroupChange", 7);
  97. //--------------------------------------------------------------------------
  98. //
  99. // Properties
  100. //
  101. //--------------------------------------------------------------------------
  102. /**
  103. * When true, it prevents selection from any of its associated options.
  104. */
  105. this.disabled = false;
  106. }
  107. handlePropChange() {
  108. this.calciteOptionGroupChange.emit();
  109. }
  110. //--------------------------------------------------------------------------
  111. //
  112. // Render Methods
  113. //
  114. //--------------------------------------------------------------------------
  115. render() {
  116. return (index.h(index.Fragment, null, index.h("div", null, this.label), index.h("slot", null)));
  117. }
  118. static get watchers() { return {
  119. "disabled": ["handlePropChange"],
  120. "label": ["handlePropChange"]
  121. }; }
  122. };
  123. OptionGroup.style = optionGroupCss;
  124. const CSS = {
  125. icon: "icon",
  126. iconContainer: "icon-container",
  127. select: "select"
  128. };
  129. const selectCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;width:var(--select-width)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){height:1.5rem;--calcite-select-font-size:var(--calcite-font-size--2);--calcite-select-spacing-inline:0.5rem 2rem}:host([scale=s]) .icon-container{padding-left:0.5rem;padding-right:0.5rem}:host([scale=m]){height:2rem;--calcite-select-font-size:var(--calcite-font-size--1);--calcite-select-spacing-inline:0.75rem 2.5rem}:host([scale=m]) .icon-container{padding-left:0.75rem;padding-right:0.75rem}:host([scale=l]){height:44px;--calcite-select-font-size:var(--calcite-font-size-0);--calcite-select-spacing-inline:1rem 3rem}:host([scale=l]) .icon-container{padding-left:1rem;padding-right:1rem}:host([width=auto]){width:auto}:host([width=half]){width:50%}:host([width=full]){width:100%}.select{margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);font-family:inherit;color:var(--calcite-ui-text-2);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;font-size:var(--calcite-select-font-size);padding-inline:var(--calcite-select-spacing-inline);border-inline-end-width:0px}.select:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.select:hover{background-color:var(--calcite-ui-foreground-2)}select:disabled{border-color:var(--calcite-ui-border-input);--tw-bg-opacity:1}.icon-container{pointer-events:none;position:absolute;top:0px;bottom:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:transparent;color:var(--calcite-ui-text-2);inset-inline-end:0px;border-inline-width:0px 1px}.select:focus~.icon-container{border-color:transparent}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
  130. function isOption(optionOrGroup) {
  131. return optionOrGroup.tagName === "CALCITE-OPTION";
  132. }
  133. function isOptionGroup(optionOrGroup) {
  134. return optionOrGroup.tagName === "CALCITE-OPTION-GROUP";
  135. }
  136. const Select = class {
  137. constructor(hostRef) {
  138. index.registerInstance(this, hostRef);
  139. this.calciteSelectChange = index.createEvent(this, "calciteSelectChange", 7);
  140. //--------------------------------------------------------------------------
  141. //
  142. // Properties
  143. //
  144. //--------------------------------------------------------------------------
  145. /**
  146. * When true, it prevents the option from being selected.
  147. */
  148. this.disabled = false;
  149. /**
  150. * When true, makes the component required for form-submission.
  151. *
  152. * @internal
  153. */
  154. this.required = false;
  155. /**
  156. * The component scale.
  157. */
  158. this.scale = "m";
  159. /** The value of the selectedOption */
  160. this.value = null;
  161. /**
  162. * The component width.
  163. */
  164. this.width = "auto";
  165. this.componentToNativeEl = new Map();
  166. this.mutationObserver = observers.createObserver("mutation", () => this.populateInternalSelect());
  167. this.handleInternalSelectChange = () => {
  168. const selected = this.selectEl.selectedOptions[0];
  169. this.selectFromNativeOption(selected);
  170. requestAnimationFrame(() => this.emitChangeEvent());
  171. };
  172. this.populateInternalSelect = () => {
  173. const optionsAndGroups = Array.from(this.el.children).filter((child) => child.tagName === "CALCITE-OPTION" || child.tagName === "CALCITE-OPTION-GROUP");
  174. this.clearInternalSelect();
  175. optionsAndGroups.forEach((optionOrGroup) => { var _a; return (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.append(this.toNativeElement(optionOrGroup)); });
  176. };
  177. this.storeSelectRef = (node) => {
  178. this.selectEl = node;
  179. this.populateInternalSelect();
  180. const selected = this.selectEl.selectedOptions[0];
  181. this.selectFromNativeOption(selected);
  182. };
  183. this.emitChangeEvent = () => {
  184. this.calciteSelectChange.emit();
  185. };
  186. }
  187. valueHandler(value) {
  188. const items = this.el.querySelectorAll("calcite-option");
  189. items.forEach((item) => (item.selected = item.value === value));
  190. }
  191. selectedOptionHandler(selectedOption) {
  192. this.value = selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value;
  193. }
  194. //--------------------------------------------------------------------------
  195. //
  196. // Lifecycle
  197. //
  198. //--------------------------------------------------------------------------
  199. connectedCallback() {
  200. var _a;
  201. const { el } = this;
  202. (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, {
  203. subtree: true,
  204. childList: true
  205. });
  206. label.connectLabel(this);
  207. form.connectForm(this);
  208. }
  209. disconnectedCallback() {
  210. var _a;
  211. (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
  212. label.disconnectLabel(this);
  213. form.disconnectForm(this);
  214. }
  215. componentDidLoad() {
  216. var _a, _b;
  217. form.afterConnectDefaultValueSet(this, (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "");
  218. }
  219. componentDidRender() {
  220. interactive.updateHostInteraction(this);
  221. }
  222. //--------------------------------------------------------------------------
  223. //
  224. // Public Methods
  225. //
  226. //--------------------------------------------------------------------------
  227. /** Sets focus on the component. */
  228. async setFocus() {
  229. dom.focusElement(this.selectEl);
  230. }
  231. handleOptionOrGroupChange(event) {
  232. event.stopPropagation();
  233. const optionOrGroup = event.target;
  234. const nativeEl = this.componentToNativeEl.get(optionOrGroup);
  235. if (!nativeEl) {
  236. return;
  237. }
  238. this.updateNativeElement(optionOrGroup, nativeEl);
  239. if (isOption(optionOrGroup) && optionOrGroup.selected) {
  240. this.deselectAllExcept(optionOrGroup);
  241. this.selectedOption = optionOrGroup;
  242. }
  243. }
  244. //--------------------------------------------------------------------------
  245. //
  246. // Private Methods
  247. //
  248. //--------------------------------------------------------------------------
  249. onLabelClick() {
  250. this.setFocus();
  251. }
  252. updateNativeElement(optionOrGroup, nativeOptionOrGroup) {
  253. nativeOptionOrGroup.disabled = optionOrGroup.disabled;
  254. nativeOptionOrGroup.label = optionOrGroup.label;
  255. if (isOption(optionOrGroup)) {
  256. const option = nativeOptionOrGroup;
  257. option.selected = optionOrGroup.selected;
  258. option.value = optionOrGroup.value;
  259. // need to set innerText for mobile
  260. // see https://stackoverflow.com/questions/35021620/ios-safari-not-showing-all-options-for-select-menu/41749701
  261. option.innerText = optionOrGroup.label;
  262. }
  263. }
  264. clearInternalSelect() {
  265. this.componentToNativeEl.forEach((value) => value.remove());
  266. this.componentToNativeEl.clear();
  267. }
  268. selectFromNativeOption(nativeOption) {
  269. if (!nativeOption) {
  270. return;
  271. }
  272. let futureSelected;
  273. this.componentToNativeEl.forEach((nativeOptionOrGroup, optionOrGroup) => {
  274. if (isOption(optionOrGroup) && nativeOptionOrGroup === nativeOption) {
  275. optionOrGroup.selected = true;
  276. futureSelected = optionOrGroup;
  277. this.deselectAllExcept(optionOrGroup);
  278. }
  279. });
  280. if (futureSelected) {
  281. this.selectedOption = futureSelected;
  282. }
  283. }
  284. toNativeElement(optionOrGroup) {
  285. if (isOption(optionOrGroup)) {
  286. const option = document.createElement("option");
  287. this.updateNativeElement(optionOrGroup, option);
  288. this.componentToNativeEl.set(optionOrGroup, option);
  289. return option;
  290. }
  291. if (isOptionGroup(optionOrGroup)) {
  292. const group = document.createElement("optgroup");
  293. this.updateNativeElement(optionOrGroup, group);
  294. Array.from(optionOrGroup.children).forEach((option) => {
  295. const nativeOption = this.toNativeElement(option);
  296. group.append(nativeOption);
  297. this.componentToNativeEl.set(optionOrGroup, nativeOption);
  298. });
  299. this.componentToNativeEl.set(optionOrGroup, group);
  300. return group;
  301. }
  302. throw new Error("unsupported element child provided");
  303. }
  304. deselectAllExcept(except) {
  305. this.el.querySelectorAll("calcite-option").forEach((option) => {
  306. if (option === except) {
  307. return;
  308. }
  309. option.selected = false;
  310. });
  311. }
  312. //--------------------------------------------------------------------------
  313. //
  314. // Render Methods
  315. //
  316. //--------------------------------------------------------------------------
  317. renderChevron() {
  318. return (index.h("div", { class: CSS.iconContainer }, index.h("calcite-icon", { class: CSS.icon, icon: "chevron-down", scale: "s" })));
  319. }
  320. render() {
  321. return (index.h(index.Fragment, null, index.h("select", { "aria-label": this.label, class: CSS.select, disabled: this.disabled, onChange: this.handleInternalSelectChange, ref: this.storeSelectRef }, index.h("slot", null)), this.renderChevron(), index.h(form.HiddenFormInputSlot, { component: this })));
  322. }
  323. get el() { return index.getElement(this); }
  324. static get watchers() { return {
  325. "value": ["valueHandler"],
  326. "selectedOption": ["selectedOptionHandler"]
  327. }; }
  328. };
  329. Select.style = selectCss;
  330. exports.calcite_option = Option;
  331. exports.calcite_option_group = OptionGroup;
  332. exports.calcite_select = Select;