solid-ui 3.1.3-12 → 3.1.3-13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/README.md +9 -0
  2. package/dist/chunks/{DialogProvider-ge2aA77F.js → DialogProvider-B7wEBrVN.js} +11 -13
  3. package/dist/chunks/{DialogProvider-ge2aA77F.js.map → DialogProvider-B7wEBrVN.js.map} +1 -1
  4. package/dist/chunks/{account-Bb818bGF.js → account-DeNlj01m.js} +24 -26
  5. package/dist/chunks/{account-Bb818bGF.js.map → account-DeNlj01m.js.map} +1 -1
  6. package/dist/chunks/{auth-ClVI18ss.js → auth-Knq99zZ9.js} +75 -103
  7. package/dist/chunks/auth-Knq99zZ9.js.map +1 -0
  8. package/dist/chunks/{avatar-DGu_PX5y.js → avatar-DgO_p94F.js} +8 -9
  9. package/dist/chunks/{avatar-DGu_PX5y.js.map → avatar-DgO_p94F.js.map} +1 -1
  10. package/dist/chunks/{button-B9-nlEpz.js → button-Dvkek1tx.js} +10 -11
  11. package/dist/chunks/{button-B9-nlEpz.js.map → button-Dvkek1tx.js.map} +1 -1
  12. package/dist/chunks/{chunk.7MPIABXH-CEYdxYyt.js → chunk.7MPIABXH-DNcYOuE8.js} +22 -22
  13. package/dist/chunks/{chunk.7MPIABXH-CEYdxYyt.js.map → chunk.7MPIABXH-DNcYOuE8.js.map} +1 -1
  14. package/dist/chunks/{combobox-DrT0Nb-A.js → combobox-B5j4LoHY.js} +108 -179
  15. package/dist/chunks/combobox-B5j4LoHY.js.map +1 -0
  16. package/dist/chunks/{combobox-option-DxJvAZ_Q.js → combobox-option-C5lKAumO.js} +7 -8
  17. package/dist/chunks/{combobox-option-DxJvAZ_Q.js.map → combobox-option-C5lKAumO.js.map} +1 -1
  18. package/dist/chunks/components-BD458q30.js +758 -0
  19. package/dist/chunks/components-BD458q30.js.map +1 -0
  20. package/dist/chunks/{dialog-kyHgc-uy.js → dialog-DZgm_Tph.js} +57 -114
  21. package/dist/chunks/dialog-DZgm_Tph.js.map +1 -0
  22. package/dist/chunks/{dialog-content-CEITrC59.js → dialog-content-DY-ROHyi.js} +4 -4
  23. package/dist/chunks/{dialog-content-CEITrC59.js.map → dialog-content-DY-ROHyi.js.map} +1 -1
  24. package/dist/chunks/{dialog-footer-DVLEK5bU.js → dialog-footer-BAZTjZ8J.js} +4 -4
  25. package/dist/chunks/{dialog-footer-DVLEK5bU.js.map → dialog-footer-BAZTjZ8J.js.map} +1 -1
  26. package/dist/chunks/{dialog-header-kEWl21oD.js → dialog-header-COzPcK8F.js} +4 -4
  27. package/dist/chunks/{dialog-header-kEWl21oD.js.map → dialog-header-COzPcK8F.js.map} +1 -1
  28. package/dist/chunks/dialogs-DEuwXC46.js +26 -0
  29. package/dist/chunks/dialogs-DEuwXC46.js.map +1 -0
  30. package/dist/chunks/{dialogs-root-dPGfuzSZ.js → dialogs-root-BYp6fIUE.js} +12 -17
  31. package/dist/chunks/dialogs-root-BYp6fIUE.js.map +1 -0
  32. package/dist/chunks/{guard-DEqOFEs4.js → guard-DI4k0FkM.js} +8 -9
  33. package/dist/chunks/{guard-DEqOFEs4.js.map → guard-DI4k0FkM.js.map} +1 -1
  34. package/dist/chunks/{input-BjCX2bFe.js → input-CCpEhtqA.js} +57 -131
  35. package/dist/chunks/input-CCpEhtqA.js.map +1 -0
  36. package/dist/chunks/{login-button-Czm-E9Na.js → login-button-BafqiKef.js} +9 -10
  37. package/dist/chunks/{login-button-Czm-E9Na.js.map → login-button-BafqiKef.js.map} +1 -1
  38. package/dist/chunks/{logout-button-BrR_jOhK.js → logout-button-D54NF9EW.js} +9 -10
  39. package/dist/chunks/{logout-button-BrR_jOhK.js.map → logout-button-D54NF9EW.js.map} +1 -1
  40. package/dist/chunks/{menu-1PG19fCC.js → menu-DKxtACGA.js} +45 -46
  41. package/dist/chunks/{menu-1PG19fCC.js.map → menu-DKxtACGA.js.map} +1 -1
  42. package/dist/chunks/{menu-item-C9uErV38.js → menu-item-D9BqJtKZ.js} +10 -11
  43. package/dist/chunks/{menu-item-C9uErV38.js.map → menu-item-D9BqJtKZ.js.map} +1 -1
  44. package/dist/chunks/photo-capture-BoZF621r.js +403 -0
  45. package/dist/chunks/photo-capture-BoZF621r.js.map +1 -0
  46. package/dist/chunks/photo-capture-modal-BLZtHDj1.js +560 -0
  47. package/dist/chunks/photo-capture-modal-BLZtHDj1.js.map +1 -0
  48. package/dist/chunks/{provider-qd_4VaKB.js → provider-Btl6Lnki.js} +13 -14
  49. package/dist/chunks/{provider-qd_4VaKB.js.map → provider-Btl6Lnki.js.map} +1 -1
  50. package/dist/chunks/{select-OM-SgY4K.js → select-XkieYvDm.js} +53 -110
  51. package/dist/chunks/select-XkieYvDm.js.map +1 -0
  52. package/dist/chunks/{select-option-pVhYlXrt.js → select-option-DUg4AWzw.js} +7 -8
  53. package/dist/chunks/{select-option-pVhYlXrt.js.map → select-option-DUg4AWzw.js.map} +1 -1
  54. package/dist/chunks/{signup-button-BnA5p-uJ.js → signup-button-D5wS8_gB.js} +9 -10
  55. package/dist/chunks/{signup-button-BnA5p-uJ.js.map → signup-button-D5wS8_gB.js.map} +1 -1
  56. package/dist/chunks/{solid-emblem-D2clBuKZ.js → solid-emblem-XHk-oomv.js} +5 -5
  57. package/dist/chunks/{solid-emblem-D2clBuKZ.js.map → solid-emblem-XHk-oomv.js.map} +1 -1
  58. package/dist/chunks/{src-DJOb1wMf.js → src-CJICzMIV.js} +4 -3
  59. package/dist/chunks/{src-DJOb1wMf.js.map → src-CJICzMIV.js.map} +1 -1
  60. package/dist/components/account/Account.stories.d.ts +3 -13
  61. package/dist/components/account/Account.stories.d.ts.map +1 -1
  62. package/dist/components/account.js +1 -1
  63. package/dist/components/all.cjs.js +1 -1
  64. package/dist/components/all.esm.js +1 -0
  65. package/dist/components/avatar/Avatar.stories.d.ts +3 -21
  66. package/dist/components/avatar/Avatar.stories.d.ts.map +1 -1
  67. package/dist/components/avatar.js +1 -1
  68. package/dist/components/button/Button.stories.d.ts +15 -154
  69. package/dist/components/button/Button.stories.d.ts.map +1 -1
  70. package/dist/components/button.js +1 -1
  71. package/dist/components/combobox/Combobox.cjs.js +11 -11
  72. package/dist/components/combobox/Combobox.cjs.js.map +1 -1
  73. package/dist/components/combobox/Combobox.d.ts +4 -11
  74. package/dist/components/combobox/Combobox.d.ts.map +1 -1
  75. package/dist/components/combobox/Combobox.esm.js +101 -172
  76. package/dist/components/combobox/Combobox.esm.js.map +1 -1
  77. package/dist/components/combobox/Combobox.stories.d.ts +9 -46
  78. package/dist/components/combobox/Combobox.stories.d.ts.map +1 -1
  79. package/dist/components/combobox-option.js +1 -1
  80. package/dist/components/combobox.js +1 -1
  81. package/dist/components/dialog/Dialog.cjs.js +3 -3
  82. package/dist/components/dialog/Dialog.cjs.js.map +1 -1
  83. package/dist/components/dialog/Dialog.esm.js +6 -6
  84. package/dist/components/dialog/Dialog.esm.js.map +1 -1
  85. package/dist/components/dialog/Dialog.stories.d.ts +22 -0
  86. package/dist/components/dialog/Dialog.stories.d.ts.map +1 -0
  87. package/dist/components/dialog/docs/sample-modal/SampleModal.d.ts +6 -0
  88. package/dist/components/dialog/docs/sample-modal/SampleModal.d.ts.map +1 -0
  89. package/dist/components/dialog/docs/sample-modal/index.d.ts +4 -0
  90. package/dist/components/dialog/docs/sample-modal/index.d.ts.map +1 -0
  91. package/dist/components/dialog-content.js +1 -1
  92. package/dist/components/dialog-footer.js +1 -1
  93. package/dist/components/dialog-header.js +1 -1
  94. package/dist/components/dialog-provider.js +1 -1
  95. package/dist/components/dialog.js +1 -1
  96. package/dist/components/dialogs-root/DialogsRoot.cjs.js +4 -7
  97. package/dist/components/dialogs-root/DialogsRoot.cjs.js.map +1 -1
  98. package/dist/components/dialogs-root/DialogsRoot.d.ts.map +1 -1
  99. package/dist/components/dialogs-root/DialogsRoot.esm.js +7 -10
  100. package/dist/components/dialogs-root/DialogsRoot.esm.js.map +1 -1
  101. package/dist/components/dialogs-root.js +1 -1
  102. package/dist/components/guard/Guard.stories.d.ts +3 -21
  103. package/dist/components/guard/Guard.stories.d.ts.map +1 -1
  104. package/dist/components/guard.js +1 -1
  105. package/dist/components/input/Input.cjs.js +2 -2
  106. package/dist/components/input/Input.cjs.js.map +1 -1
  107. package/dist/components/input/Input.d.ts +3 -11
  108. package/dist/components/input/Input.d.ts.map +1 -1
  109. package/dist/components/input/Input.esm.js +61 -135
  110. package/dist/components/input/Input.esm.js.map +1 -1
  111. package/dist/components/input/Input.stories.d.ts +13 -22
  112. package/dist/components/input/Input.stories.d.ts.map +1 -1
  113. package/dist/components/input.js +1 -1
  114. package/dist/components/login-button/LoginButton.stories.d.ts +4 -4
  115. package/dist/components/login-button/LoginButton.stories.d.ts.map +1 -1
  116. package/dist/components/login-button.js +1 -1
  117. package/dist/components/login-modal/LoginModal.cjs.js +1 -1
  118. package/dist/components/login-modal/LoginModal.cjs.js.map +1 -1
  119. package/dist/components/login-modal/LoginModal.esm.js +1 -1
  120. package/dist/components/login-modal/LoginModal.esm.js.map +1 -1
  121. package/dist/components/login-modal/LoginModal.stories.d.ts +13 -5
  122. package/dist/components/login-modal/LoginModal.stories.d.ts.map +1 -1
  123. package/dist/components/login-modal.js +1 -1
  124. package/dist/components/logout-button/LogoutButton.stories.d.ts +4 -4
  125. package/dist/components/logout-button/LogoutButton.stories.d.ts.map +1 -1
  126. package/dist/components/logout-button.js +1 -1
  127. package/dist/components/menu/Menu.stories.d.ts +3 -4
  128. package/dist/components/menu/Menu.stories.d.ts.map +1 -1
  129. package/dist/components/menu-item.js +1 -1
  130. package/dist/components/menu.js +1 -1
  131. package/dist/components/photo-capture/PhotoCapture.cjs.js +6 -0
  132. package/dist/components/photo-capture/PhotoCapture.cjs.js.map +1 -0
  133. package/dist/components/photo-capture/PhotoCapture.d.ts +20 -0
  134. package/dist/components/photo-capture/PhotoCapture.d.ts.map +1 -0
  135. package/dist/components/photo-capture/PhotoCapture.esm.js +404 -0
  136. package/dist/components/photo-capture/PhotoCapture.esm.js.map +1 -0
  137. package/dist/components/photo-capture/PhotoCapture.stories.d.ts +16 -0
  138. package/dist/components/photo-capture/PhotoCapture.stories.d.ts.map +1 -0
  139. package/dist/components/photo-capture/docs/photo-capture-sandbox/PhotoCaptureSandbox.d.ts +9 -0
  140. package/dist/components/photo-capture/docs/photo-capture-sandbox/PhotoCaptureSandbox.d.ts.map +1 -0
  141. package/dist/components/photo-capture/docs/photo-capture-sandbox/index.d.ts +4 -0
  142. package/dist/components/photo-capture/docs/photo-capture-sandbox/index.d.ts.map +1 -0
  143. package/dist/components/photo-capture/index.cjs.js +2 -1
  144. package/dist/components/photo-capture/index.cjs.js.map +1 -0
  145. package/dist/components/photo-capture/index.d.ts +4 -1
  146. package/dist/components/photo-capture/index.d.ts.map +1 -1
  147. package/dist/components/photo-capture/index.esm.js +7 -3
  148. package/dist/components/photo-capture/index.esm.js.map +1 -0
  149. package/dist/components/photo-capture-modal/PhotoCaptureModal.cjs.js +24 -0
  150. package/dist/components/photo-capture-modal/PhotoCaptureModal.cjs.js.map +1 -0
  151. package/dist/components/photo-capture-modal/PhotoCaptureModal.d.ts +42 -0
  152. package/dist/components/photo-capture-modal/PhotoCaptureModal.d.ts.map +1 -0
  153. package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js +561 -0
  154. package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js.map +1 -0
  155. package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.cjs.js +2 -0
  156. package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.cjs.js.map +1 -0
  157. package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.esm.js +7 -0
  158. package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.esm.js.map +1 -0
  159. package/dist/components/photo-capture-modal/index.cjs.js +2 -0
  160. package/dist/components/photo-capture-modal/index.cjs.js.map +1 -0
  161. package/dist/components/photo-capture-modal/index.d.ts +4 -0
  162. package/dist/components/photo-capture-modal/index.d.ts.map +1 -0
  163. package/dist/components/photo-capture-modal/index.esm.js +7 -0
  164. package/dist/components/photo-capture-modal/index.esm.js.map +1 -0
  165. package/dist/components/photo-capture-modal.js +2 -0
  166. package/dist/components/photo-capture.js +2 -2
  167. package/dist/components/provider.js +1 -1
  168. package/dist/components/select/Select.cjs.js +3 -3
  169. package/dist/components/select/Select.cjs.js.map +1 -1
  170. package/dist/components/select/Select.d.ts +3 -10
  171. package/dist/components/select/Select.d.ts.map +1 -1
  172. package/dist/components/select/Select.esm.js +52 -109
  173. package/dist/components/select/Select.esm.js.map +1 -1
  174. package/dist/components/select/Select.stories.d.ts +9 -13
  175. package/dist/components/select/Select.stories.d.ts.map +1 -1
  176. package/dist/components/select-option.js +1 -1
  177. package/dist/components/select.js +1 -1
  178. package/dist/components/signup-button/SignupButton.stories.d.ts +4 -4
  179. package/dist/components/signup-button/SignupButton.stories.d.ts.map +1 -1
  180. package/dist/components/signup-button.js +1 -1
  181. package/dist/components/solid-emblem.js +1 -1
  182. package/dist/components.js +24 -23
  183. package/dist/index.cjs.js +1 -1
  184. package/dist/index.cjs.js.map +1 -1
  185. package/dist/index.esm.js +12 -10
  186. package/dist/index.esm.js.map +1 -1
  187. package/dist/index.js +6 -8
  188. package/dist/lib/auth/SolidAuth.cjs.js +1 -1
  189. package/dist/lib/auth/SolidAuth.cjs.js.map +1 -1
  190. package/dist/lib/auth/SolidAuth.d.ts.map +1 -1
  191. package/dist/lib/auth/SolidAuth.esm.js +15 -16
  192. package/dist/lib/auth/SolidAuth.esm.js.map +1 -1
  193. package/dist/lib/components/decorators.cjs.js.map +1 -1
  194. package/dist/lib/components/decorators.esm.js.map +1 -1
  195. package/dist/lib/components/dialog-component/DialogComponent.cjs.js +2 -0
  196. package/dist/lib/components/dialog-component/DialogComponent.cjs.js.map +1 -0
  197. package/dist/lib/components/dialog-component/DialogComponent.d.ts +10 -0
  198. package/dist/lib/components/dialog-component/DialogComponent.d.ts.map +1 -0
  199. package/dist/lib/components/dialog-component/DialogComponent.esm.js +203 -0
  200. package/dist/lib/components/dialog-component/DialogComponent.esm.js.map +1 -0
  201. package/dist/lib/components/dialog-component/index.cjs.js +1 -0
  202. package/dist/lib/components/dialog-component/index.d.ts +4 -0
  203. package/dist/lib/components/dialog-component/index.d.ts.map +1 -0
  204. package/dist/lib/components/dialog-component/index.esm.js +2 -0
  205. package/dist/lib/components/form-control-component/FormControlComponent.cjs.js +2 -0
  206. package/dist/lib/components/form-control-component/FormControlComponent.cjs.js.map +1 -0
  207. package/dist/lib/components/form-control-component/FormControlComponent.d.ts +15 -0
  208. package/dist/lib/components/form-control-component/FormControlComponent.d.ts.map +1 -0
  209. package/dist/lib/components/form-control-component/FormControlComponent.esm.js +271 -0
  210. package/dist/lib/components/form-control-component/FormControlComponent.esm.js.map +1 -0
  211. package/dist/lib/components/form-control-component/index.cjs.js +1 -0
  212. package/dist/lib/components/form-control-component/index.d.ts +4 -0
  213. package/dist/lib/components/form-control-component/index.d.ts.map +1 -0
  214. package/dist/lib/components/form-control-component/index.esm.js +2 -0
  215. package/dist/lib/components/ids.cjs.js.map +1 -1
  216. package/dist/lib/components/ids.esm.js.map +1 -1
  217. package/dist/lib/components/index.cjs.js +1 -1
  218. package/dist/lib/components/index.d.ts +3 -1
  219. package/dist/lib/components/index.d.ts.map +1 -1
  220. package/dist/lib/components/index.esm.js +8 -4
  221. package/dist/lib/components/traits/DialogTrait.cjs.js +1 -1
  222. package/dist/lib/components/traits/DialogTrait.cjs.js.map +1 -1
  223. package/dist/lib/components/traits/DialogTrait.d.ts +2 -1
  224. package/dist/lib/components/traits/DialogTrait.d.ts.map +1 -1
  225. package/dist/lib/components/traits/DialogTrait.esm.js +26 -6
  226. package/dist/lib/components/traits/DialogTrait.esm.js.map +1 -1
  227. package/dist/lib/components/traits/FormControlTrait.cjs.js +1 -1
  228. package/dist/lib/components/traits/FormControlTrait.cjs.js.map +1 -1
  229. package/dist/lib/components/traits/FormControlTrait.d.ts +4 -2
  230. package/dist/lib/components/traits/FormControlTrait.d.ts.map +1 -1
  231. package/dist/lib/components/traits/FormControlTrait.esm.js +28 -10
  232. package/dist/lib/components/traits/FormControlTrait.esm.js.map +1 -1
  233. package/dist/lib/components/web-component/WebComponent.cjs.js +1 -1
  234. package/dist/lib/components/web-component/WebComponent.cjs.js.map +1 -1
  235. package/dist/lib/components/web-component/WebComponent.d.ts +12 -1
  236. package/dist/lib/components/web-component/WebComponent.d.ts.map +1 -1
  237. package/dist/lib/components/web-component/WebComponent.esm.js +28 -6
  238. package/dist/lib/components/web-component/WebComponent.esm.js.map +1 -1
  239. package/dist/lib/components/web-component/WebComponent.styles.cjs.js +1 -1
  240. package/dist/lib/components/web-component/WebComponent.styles.esm.js +1 -1
  241. package/dist/lib/dialogs/Dialog.cjs.js +1 -1
  242. package/dist/lib/dialogs/Dialog.cjs.js.map +1 -1
  243. package/dist/lib/dialogs/Dialog.d.ts +4 -8
  244. package/dist/lib/dialogs/Dialog.d.ts.map +1 -1
  245. package/dist/lib/dialogs/Dialog.esm.js +1 -8
  246. package/dist/lib/dialogs/Dialog.esm.js.map +1 -1
  247. package/dist/lib/dialogs/helpers.cjs.js +1 -1
  248. package/dist/lib/dialogs/helpers.cjs.js.map +1 -1
  249. package/dist/lib/dialogs/helpers.d.ts +7 -2
  250. package/dist/lib/dialogs/helpers.d.ts.map +1 -1
  251. package/dist/lib/dialogs/helpers.esm.js +5 -3
  252. package/dist/lib/dialogs/helpers.esm.js.map +1 -1
  253. package/dist/loader.js +6 -8
  254. package/dist/solid-ui.js +130 -386
  255. package/dist/solid-ui.min.js +130 -386
  256. package/dist/solid-ui.min.js.map +1 -1
  257. package/dist/storybook/helpers.d.ts +2 -6
  258. package/dist/storybook/helpers.d.ts.map +1 -1
  259. package/package.json +1 -2
  260. package/dist/chunks/auth-ClVI18ss.js.map +0 -1
  261. package/dist/chunks/close-dialog-DfAh83bX.js +0 -14
  262. package/dist/chunks/close-dialog-DfAh83bX.js.map +0 -1
  263. package/dist/chunks/combobox-DrT0Nb-A.js.map +0 -1
  264. package/dist/chunks/components-PQfnwrHI.js +0 -107
  265. package/dist/chunks/components-PQfnwrHI.js.map +0 -1
  266. package/dist/chunks/context-B_xwK-Y_.js +0 -22
  267. package/dist/chunks/context-B_xwK-Y_.js.map +0 -1
  268. package/dist/chunks/decorators-BqWyWiL9.js +0 -50
  269. package/dist/chunks/decorators-BqWyWiL9.js.map +0 -1
  270. package/dist/chunks/dialog-kyHgc-uy.js.map +0 -1
  271. package/dist/chunks/dialogs-root-dPGfuzSZ.js.map +0 -1
  272. package/dist/chunks/input-BjCX2bFe.js.map +0 -1
  273. package/dist/chunks/photo-capture-DzK6wZF4.js +0 -624
  274. package/dist/chunks/photo-capture-DzK6wZF4.js.map +0 -1
  275. package/dist/chunks/select-OM-SgY4K.js.map +0 -1
  276. package/dist/v2/components/media/photoCapture/PhotoCapture.cjs.js +0 -281
  277. package/dist/v2/components/media/photoCapture/PhotoCapture.cjs.js.map +0 -1
  278. package/dist/v2/components/media/photoCapture/PhotoCapture.d.ts +0 -200
  279. package/dist/v2/components/media/photoCapture/PhotoCapture.d.ts.map +0 -1
  280. package/dist/v2/components/media/photoCapture/PhotoCapture.esm.js +0 -623
  281. package/dist/v2/components/media/photoCapture/PhotoCapture.esm.js.map +0 -1
  282. package/dist/v2/components/media/photoCapture/PhotoCapture.test.d.ts +0 -1
  283. package/dist/v2/components/media/photoCapture/PhotoCapture.test.d.ts.map +0 -1
  284. package/dist/v2/components/media/photoCapture/index.cjs.js +0 -2
  285. package/dist/v2/components/media/photoCapture/index.cjs.js.map +0 -1
  286. package/dist/v2/components/media/photoCapture/index.d.ts +0 -3
  287. package/dist/v2/components/media/photoCapture/index.d.ts.map +0 -1
  288. package/dist/v2/components/media/photoCapture/index.esm.js +0 -8
  289. package/dist/v2/components/media/photoCapture/index.esm.js.map +0 -1
@@ -1,11 +1,10 @@
1
- import { n as e, r as t, t as n } from "./components-PQfnwrHI.js";
2
- import { c as r, i, n as a, o } from "./lit-C4H1jI4q.js";
3
- import "./chunk.7MPIABXH-CEYdxYyt.js";
4
- import { n as s, t as c } from "./decorators-BqWyWiL9.js";
5
- import { t as l } from "./query-BYu9q8lA.js";
1
+ import { i as e, l as t, r as n, t as r } from "./components-BD458q30.js";
2
+ import { c as i, i as a, n as o, o as s } from "./lit-C4H1jI4q.js";
3
+ import "./chunk.7MPIABXH-DNcYOuE8.js";
4
+ import { t as c } from "./query-BYu9q8lA.js";
6
5
  import "./chevron-down-ujxRg3MD.js";
7
6
  //#region node_modules/@lit/task/task.js
8
- var u = Symbol(), d = class {
7
+ var l = Symbol(), u = class {
9
8
  get taskComplete() {
10
9
  return this.t || (this.i === 1 ? this.t = new Promise(((e, t) => {
11
10
  this.o = e, this.h = t;
@@ -17,7 +16,7 @@ var u = Symbol(), d = class {
17
16
  task: t,
18
17
  args: n
19
18
  };
20
- this.v = r.task, this.j = r.args, this.m = r.argsEqual ?? f, this.k = r.onComplete, this.A = r.onError, this.autoRun = r.autoRun ?? !0, "initialValue" in r && (this.u = r.initialValue, this.i = 2, this.O = this.T?.());
19
+ this.v = r.task, this.j = r.args, this.m = r.argsEqual ?? d, this.k = r.onComplete, this.A = r.onError, this.autoRun = r.autoRun ?? !0, "initialValue" in r && (this.u = r.initialValue, this.i = 2, this.O = this.T?.());
21
20
  }
22
21
  hostUpdate() {
23
22
  !0 === this.autoRun && this.S();
@@ -47,7 +46,7 @@ var u = Symbol(), d = class {
47
46
  i = !0, n = e;
48
47
  }
49
48
  if (this.p === r) {
50
- if (t === u) this.i = 0;
49
+ if (t === l) this.i = 0;
51
50
  else {
52
51
  if (!1 === i) {
53
52
  try {
@@ -86,10 +85,10 @@ var u = Symbol(), d = class {
86
85
  default: throw Error("Unexpected status: " + this.i);
87
86
  }
88
87
  }
89
- }, f = (e, t) => e === t || e.length === t.length && e.every(((e, n) => !o(e, t[n])));
88
+ }, d = (e, t) => e === t || e.length === t.length && e.every(((e, n) => !s(e, t[n])));
90
89
  //#endregion
91
90
  //#region src/lib/timing.ts
92
- function p(e, t) {
91
+ function f(e, t) {
93
92
  let n = null, r = (...i) => {
94
93
  r.cancel(), n = setTimeout(() => t(...i), e);
95
94
  };
@@ -99,40 +98,40 @@ function p(e, t) {
99
98
  }
100
99
  //#endregion
101
100
  //#region ~icons/svg-spinners/3-dots-fade
102
- var m = class extends HTMLElement {
101
+ var p = class extends HTMLElement {
103
102
  constructor() {
104
103
  super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><circle cx=\"4\" cy=\"12\" r=\"3\" fill=\"currentColor\"><animate id=\"SVG7x14Dcom\" fill=\"freeze\" attributeName=\"opacity\" begin=\"0;SVGqSjG0dUp.end-0.25s\" dur=\"0.75s\" values=\"1;.2\"/></circle><circle cx=\"12\" cy=\"12\" r=\"3\" fill=\"currentColor\" opacity=\".4\"><animate fill=\"freeze\" attributeName=\"opacity\" begin=\"SVG7x14Dcom.begin+0.15s\" dur=\"0.75s\" values=\"1;.2\"/></circle><circle cx=\"20\" cy=\"12\" r=\"3\" fill=\"currentColor\" opacity=\".3\"><animate id=\"SVGqSjG0dUp\" fill=\"freeze\" attributeName=\"opacity\" begin=\"SVG7x14Dcom.begin+0.3s\" dur=\"0.75s\" values=\"1;.2\"/></circle></svg>";
105
104
  }
106
105
  };
107
- customElements.get("icon-svg-spinners-3-dots-fade") || customElements.define("icon-svg-spinners-3-dots-fade", m);
106
+ customElements.get("icon-svg-spinners-3-dots-fade") || customElements.define("icon-svg-spinners-3-dots-fade", p);
108
107
  //#endregion
109
108
  //#region src/components/combobox/Combobox.styles.css
110
- var h = r`:host{flex-direction:column;align-items:flex-start;gap:5px;display:inline-flex;& label{color:var(--solid-ui-color-gray-600);font-size:var(--solid-ui-font-size-sm);font-weight:400}& wa-popup{width:100%;display:block}& wa-popup::part(popup){border:1px solid var(--solid-ui-color-gray-100);background:#fff;border-radius:5px;padding:4px;overflow:hidden;box-shadow:0 4px 16px #00000059}& .input-wrapper{width:100%;position:relative;& input{border:1px solid var(--solid-ui-color-gray-400);border-radius:5px;width:100%;padding:10px 40px 10px 10px}& icon-lucide-chevron-down{color:var(--solid-ui-color-gray-500);width:var(--solid-ui-font-size-lg);height:var(--solid-ui-font-size-lg);pointer-events:none;position:absolute;top:50%;right:15px;transform:translateY(-50%)}}& .listbox{max-height:inherit;flex-direction:column;gap:2px;display:flex;overflow:auto;& [role=option],& .non-selectable-option{color:var(--solid-ui-color-gray-700);border-radius:5px;padding:12px 8px}& [role=option]{cursor:pointer;&:hover,&[data-active]{background:var(--solid-ui-color-primary-hover)}&[aria-selected=true]{background:var(--solid-ui-color-primary-selected)}}& .non-selectable-option{justify-content:center;align-items:center;display:flex;& icon-svg-spinners-3-dots-fade{width:2rem}& .message--error{color:var(--solid-ui-color-error)}}}}`, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, P, ee, te, ne, re, ie, ae, oe, se, F, I, L, R, z, B, V, H, U, W, G, K, ce, le, ue, de, fe, pe, me, he, ge, _e, ve, ye, be, xe, Se, Ce, we, Te, Ee;
111
- function q(e, t, n) {
112
- De(e, t), t.set(e, n);
109
+ var m = i`:host{flex-direction:column;align-items:flex-start;gap:5px;display:inline-flex;& label{color:var(--solid-ui-color-gray-600);font-size:var(--solid-ui-font-size-sm);font-weight:400}& wa-popup{width:100%;display:block}& wa-popup::part(popup){border:1px solid var(--solid-ui-color-gray-100);background:#fff;border-radius:5px;padding:4px;overflow:hidden;box-shadow:0 4px 16px #00000059}& .input-wrapper{width:100%;position:relative;& input{border:1px solid var(--solid-ui-color-gray-400);border-radius:5px;width:100%;padding:10px 40px 10px 10px}& icon-lucide-chevron-down{color:var(--solid-ui-color-gray-500);width:var(--solid-ui-font-size-lg);height:var(--solid-ui-font-size-lg);pointer-events:none;position:absolute;top:50%;right:15px;transform:translateY(-50%)}}& .listbox{max-height:inherit;flex-direction:column;gap:2px;display:flex;overflow:auto;& [role=option],& .non-selectable-option{color:var(--solid-ui-color-gray-700);border-radius:5px;padding:12px 8px}& [role=option]{cursor:pointer;&:hover,&[data-active]{background:var(--solid-ui-color-primary-hover)}&[aria-selected=true]{background:var(--solid-ui-color-primary-selected)}}& .non-selectable-option{justify-content:center;align-items:center;display:flex;& icon-svg-spinners-3-dots-fade{width:2rem}& .message--error{color:var(--solid-ui-color-error)}}}}`, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, ee, te, ne, re, ie, ae, M, oe, N, P, F, I, L, R, z, B, V, H, U, W, G, K, q, se, ce, le;
110
+ function J(e, t, n) {
111
+ ue(e, t), t.set(e, n);
113
112
  }
114
- function De(e, t) {
113
+ function ue(e, t) {
115
114
  if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
116
115
  }
117
- function J(e, t, n) {
118
- return e.set(Oe(e, t), n), n;
116
+ function Y(e, t, n) {
117
+ return e.set(de(e, t), n), n;
119
118
  }
120
- function Y(e, t) {
121
- return e.get(Oe(e, t));
119
+ function X(e, t) {
120
+ return e.get(de(e, t));
122
121
  }
123
- function Oe(e, t, n) {
122
+ function de(e, t, n) {
124
123
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
125
124
  throw TypeError("Private element is not present on this object");
126
125
  }
127
- function X(e, t, n) {
128
- return (t = Z(t)) in e ? Object.defineProperty(e, t, {
126
+ function Z(e, t, n) {
127
+ return (t = pe(t)) in e ? Object.defineProperty(e, t, {
129
128
  value: n,
130
129
  enumerable: !0,
131
130
  configurable: !0,
132
131
  writable: !0
133
132
  }) : e[t] = n, e;
134
133
  }
135
- function ke(e, t, n, r, i, a) {
134
+ function fe(e, t, n, r, i, a) {
136
135
  function o(e, t, n) {
137
136
  return function(r, i) {
138
137
  return n && n(r), e[t].call(r, i);
@@ -155,13 +154,13 @@ function ke(e, t, n, r, i, a) {
155
154
  n || Array.isArray(_) || (_ = [_]);
156
155
  var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
157
156
  d ? (f || p ? b = {
158
- get: je(function() {
157
+ get: he(function() {
159
158
  return v(this);
160
159
  }, r, "get"),
161
160
  set: function(e) {
162
161
  t[4](this, e);
163
162
  }
164
- } : b[S] = v, f || je(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
163
+ } : b[S] = v, f || he(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
165
164
  }
166
165
  for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
167
166
  var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
@@ -221,7 +220,7 @@ function ke(e, t, n, r, i, a) {
221
220
  if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
222
221
  var f = Object.create(d ?? null), p = function(e, t, n, r) {
223
222
  var i, a, o = [], c = function(t) {
224
- return Me(t) === e;
223
+ return ge(t) === e;
225
224
  }, u = /* @__PURE__ */ new Map();
226
225
  function d(e) {
227
226
  e && o.push(s.bind(null, e));
@@ -235,7 +234,7 @@ function ke(e, t, n, r, i, a) {
235
234
  if (!0 === x || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
236
235
  u.set(b, !(m > 2) || m);
237
236
  }
238
- l(v ? e : e.prototype, p, _, g ? "#" + h : Z(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
237
+ l(v ? e : e.prototype, p, _, g ? "#" + h : pe(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
239
238
  }
240
239
  }
241
240
  return d(i), d(a), o;
@@ -248,11 +247,11 @@ function ke(e, t, n, r, i, a) {
248
247
  }
249
248
  };
250
249
  }
251
- function Z(e) {
252
- var t = Ae(e, "string");
250
+ function pe(e) {
251
+ var t = me(e, "string");
253
252
  return typeof t == "symbol" ? t : t + "";
254
253
  }
255
- function Ae(e, t) {
254
+ function me(e, t) {
256
255
  if (typeof e != "object" || !e) return e;
257
256
  var n = e[Symbol.toPrimitive];
258
257
  if (n !== void 0) {
@@ -262,7 +261,7 @@ function Ae(e, t) {
262
261
  }
263
262
  return (t === "string" ? String : Number)(e);
264
263
  }
265
- function je(e, t, n) {
264
+ function he(e, t, n) {
266
265
  typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
267
266
  try {
268
267
  Object.defineProperty(e, "name", {
@@ -272,159 +271,114 @@ function je(e, t, n) {
272
271
  } catch {}
273
272
  return e;
274
273
  }
275
- function Me(e) {
274
+ function ge(e) {
276
275
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
277
276
  return e;
278
277
  }
279
- function Ne(e) {
278
+ function _e(e) {
280
279
  return e;
281
280
  }
282
281
  var Q = class extends Error {};
283
- function Pe(e) {
282
+ function ve(e) {
284
283
  return e;
285
284
  }
286
- ne = [t("solid-ui-combobox")];
285
+ j = [t("solid-ui-combobox")];
287
286
  var $;
288
- new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b = /*#__PURE__*/ new WeakMap(), x = /*#__PURE__*/ new WeakMap(), S = /*#__PURE__*/ new WeakMap(), C = /*#__PURE__*/ new WeakMap(), w = /*#__PURE__*/ new WeakMap(), T = /*#__PURE__*/ new WeakMap(), E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j = /*#__PURE__*/ new WeakMap(), M = /*#__PURE__*/ new WeakMap(), N = /*#__PURE__*/ new WeakMap(), P = /*#__PURE__*/ new WeakMap(), Ee = (re = s({
289
- type: String,
290
- reflect: !0
291
- }), ae = s({
292
- type: String,
293
- reflect: !0
294
- }), se = s(), I = s({
295
- type: String,
296
- reflect: !0
297
- }), R = s({
298
- type: Boolean,
299
- reflect: !0
300
- }), B = s({
287
+ new (ce = (_ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b = /*#__PURE__*/ new WeakMap(), x = /*#__PURE__*/ new WeakMap(), S = /*#__PURE__*/ new WeakMap(), C = /*#__PURE__*/ new WeakMap(), w = /*#__PURE__*/ new WeakMap(), T = /*#__PURE__*/ new WeakMap(), E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), le = (ee = e({
301
288
  type: Boolean,
302
289
  reflect: !0,
303
290
  attribute: "select-only"
304
- }), H = s({
291
+ }), ne = e({
305
292
  type: String,
306
293
  attribute: "async-options-url"
307
- }), W = s({
294
+ }), ie = e({
308
295
  type: String,
309
296
  attribute: "async-options-results-field"
310
- }), K = s({
297
+ }), M = e({
311
298
  type: String,
312
299
  attribute: "async-options-label-field"
313
- }), le = s({
300
+ }), N = e({
314
301
  type: String,
315
302
  attribute: "async-options-value-field"
316
- }), de = s({ type: Function }), pe = s({ type: Array }), he = l("input"), _e = c(), ye = c(), xe = c(), Ce = c(), "label"), _ = class extends e {
317
- get [Ee]() {
318
- return Y(v, this);
319
- }
320
- set label(e) {
321
- J(v, this, e);
322
- }
323
- get name() {
324
- return Y(y, this);
325
- }
326
- set name(e) {
327
- J(y, this, e);
328
- }
329
- get value() {
330
- return Y(b, this);
331
- }
332
- set value(e) {
333
- J(b, this, e);
334
- }
335
- get placeholder() {
336
- return Y(x, this);
337
- }
338
- set placeholder(e) {
339
- J(x, this, e);
340
- }
341
- get required() {
342
- return Y(S, this);
343
- }
344
- set required(e) {
345
- J(S, this, e);
346
- }
347
- get selectOnly() {
348
- return Y(C, this);
303
+ }), F = e({ type: Function }), L = e({ type: Array }), z = c("input"), V = n(), U = n(), G = n(), q = n(), "selectOnly"), g = class extends r {
304
+ get [le]() {
305
+ return X(_, this);
349
306
  }
350
307
  set selectOnly(e) {
351
- J(C, this, e);
308
+ Y(_, this, e);
352
309
  }
353
310
  get asyncOptionsUrl() {
354
- return Y(w, this);
311
+ return X(v, this);
355
312
  }
356
313
  set asyncOptionsUrl(e) {
357
- J(w, this, e);
314
+ Y(v, this, e);
358
315
  }
359
316
  get asyncOptionsResultsField() {
360
- return Y(T, this);
317
+ return X(y, this);
361
318
  }
362
319
  set asyncOptionsResultsField(e) {
363
- J(T, this, e);
320
+ Y(y, this, e);
364
321
  }
365
322
  get asyncOptionsLabelField() {
366
- return Y(E, this);
323
+ return X(b, this);
367
324
  }
368
325
  set asyncOptionsLabelField(e) {
369
- J(E, this, e);
326
+ Y(b, this, e);
370
327
  }
371
328
  get asyncOptionsValueField() {
372
- return Y(D, this);
329
+ return X(x, this);
373
330
  }
374
331
  set asyncOptionsValueField(e) {
375
- J(D, this, e);
332
+ Y(x, this, e);
376
333
  }
377
334
  get asyncOptionsProvider() {
378
- return Y(O, this);
335
+ return X(S, this);
379
336
  }
380
337
  set asyncOptionsProvider(e) {
381
- J(O, this, e);
338
+ Y(S, this, e);
382
339
  }
383
340
  get optionsFallback() {
384
- return Y(k, this);
341
+ return X(C, this);
385
342
  }
386
343
  set optionsFallback(e) {
387
- J(k, this, e);
344
+ Y(C, this, e);
388
345
  }
389
- get inputElement() {
390
- return Y(A, this);
346
+ get controlElement() {
347
+ return X(w, this);
391
348
  }
392
- set inputElement(e) {
393
- J(A, this, e);
349
+ set controlElement(e) {
350
+ Y(w, this, e);
394
351
  }
395
352
  get filter() {
396
- return Y(j, this);
353
+ return X(T, this);
397
354
  }
398
355
  set filter(e) {
399
- J(j, this, e);
356
+ Y(T, this, e);
400
357
  }
401
358
  get displayValue() {
402
- return Y(M, this);
359
+ return X(E, this);
403
360
  }
404
361
  set displayValue(e) {
405
- J(M, this, e);
362
+ Y(E, this, e);
406
363
  }
407
364
  get open() {
408
- return Y(N, this);
365
+ return X(D, this);
409
366
  }
410
367
  set open(e) {
411
- J(N, this, e);
368
+ Y(D, this, e);
412
369
  }
413
370
  get activeIndex() {
414
- return Y(P, this);
371
+ return X(O, this);
415
372
  }
416
373
  set activeIndex(e) {
417
- J(P, this, e);
374
+ Y(O, this, e);
418
375
  }
419
376
  constructor() {
420
- super(), q(this, v, (ee(this), ie(this, ""))), q(this, y, oe(this, "")), q(this, b, F(this, "")), q(this, x, L(this, "")), q(this, S, z(this, !1)), q(this, C, V(this, !1)), q(this, w, U(this, "")), q(this, T, G(this, "")), q(this, E, ce(this, "")), q(this, D, ue(this, "")), q(this, O, fe(this, null)), q(this, k, me(this, null)), q(this, A, ge(this, null)), q(this, j, ve(this, "")), q(this, M, be(this, "")), q(this, N, Se(this, !1)), q(this, P, we(this, -1)), X(this, "controlTrait", void 0), X(this, "openListenersAttached", !1), X(this, "updateDebouncedFilter", p(300, (e) => this.filter = e)), X(this, "asyncOptionsTask", void 0), X(this, "_selectedOption", void 0), X(this, "listboxId", void 0), X(this, "handleDocumentFocusIn", (e) => {
377
+ super(), J(this, _, (k(this), te(this, !1))), J(this, v, re(this, "")), J(this, y, ae(this, "")), J(this, b, oe(this, "")), J(this, x, P(this, "")), J(this, S, I(this, null)), J(this, C, R(this, null)), J(this, w, B(this, null)), J(this, T, H(this, "")), J(this, E, W(this, "")), J(this, D, K(this, !1)), J(this, O, se(this, -1)), Z(this, "openListenersAttached", !1), Z(this, "updateDebouncedFilter", f(300, (e) => this.filter = e)), Z(this, "asyncOptionsTask", void 0), Z(this, "_selectedOption", void 0), Z(this, "listboxId", void 0), Z(this, "handleDocumentFocusIn", (e) => {
421
378
  e.composedPath().includes(this) || this.hide();
422
- }), X(this, "handleDocumentMouseDown", (e) => {
379
+ }), Z(this, "handleDocumentMouseDown", (e) => {
423
380
  e.composedPath().includes(this) || this.hide();
424
- }), this.controlTrait = this.addTrait(new n(this, {
425
- getControlElement: () => this.inputElement,
426
- getInternals: () => this.getInternals()
427
- })), this.listboxId = `listbox-${this.controlTrait.controlId}`;
381
+ }), this.listboxId = `listbox-${this.controlTrait.controlId}`;
428
382
  }
429
383
  get selectedOption() {
430
384
  return this._selectedOption;
@@ -440,7 +394,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
440
394
  }
441
395
  render() {
442
396
  let e = this.getFilteredOptions(), t = (this.open && this.activeIndex >= 0 ? e[this.activeIndex] : void 0) === void 0 ? void 0 : this.getOptionId(this.activeIndex), n = this.placeholder || "Combobox";
443
- return i`
397
+ return a`
444
398
  ${this.controlTrait.renderLabel()}
445
399
  <wa-popup
446
400
  placement="bottom"
@@ -462,17 +416,17 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
462
416
  aria-haspopup="listbox"
463
417
  aria-expanded=${this.open ? "true" : "false"}
464
418
  aria-controls=${this.listboxId}
465
- aria-activedescendant=${t ?? a}
466
- aria-labelledby=${this.label ? this.controlTrait.labelId : a}
467
- aria-label=${this.label ? a : n}
468
- aria-required=${this.required ? "true" : a}
419
+ aria-activedescendant=${t ?? o}
420
+ aria-labelledby=${this.label ? this.controlTrait.labelId : o}
421
+ aria-label=${this.label ? o : n}
422
+ aria-required=${this.required ? "true" : o}
469
423
  autocomplete="off"
470
424
  spellcheck="false"
471
425
  ?required=${this.required}
472
426
  .value=${this.displayValue}
473
427
  @keydown=${this.onInputKeyDown}
474
428
  @focus=${this.onInputFocus}
475
- @input=${() => this.selectOnly ? this.updateDisplayValue(this.inputElement?.value ?? "") : this.controlTrait.onInput()}
429
+ @input=${() => this.selectOnly ? this.updateDisplayValue(this.controlElement?.value ?? "") : this.controlTrait.onInput()}
476
430
  />
477
431
  <icon-lucide-chevron-down></icon-lucide-chevron-down>
478
432
  </div>
@@ -481,16 +435,16 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
481
435
  class="listbox"
482
436
  role="listbox"
483
437
  aria-orientation="vertical"
484
- aria-labelledby=${this.label ? this.controlTrait.labelId : a}
485
- aria-label=${this.label ? a : n}
438
+ aria-labelledby=${this.label ? this.controlTrait.labelId : o}
439
+ aria-label=${this.label ? o : n}
486
440
  ?hidden=${!this.open}
487
441
  @mousedown=${this.onListboxMouseDown}
488
442
  >
489
- ${e.map((e, t) => e.selectable === !1 ? i`<div class="non-selectable-option">${e.template ?? e.label}</div>` : i`<div
443
+ ${e.map((e, t) => e.selectable === !1 ? a`<div class="non-selectable-option">${e.template ?? e.label}</div>` : a`<div
490
444
  id=${this.getOptionId(t)}
491
445
  role="option"
492
446
  aria-selected=${e.value === this.value ? "true" : "false"}
493
- data-active=${t === this.activeIndex || a}
447
+ data-active=${t === this.activeIndex || o}
494
448
  @mousemove=${() => this.setActiveIndex(t)}
495
449
  >
496
450
  ${e.template ?? e.label}
@@ -506,7 +460,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
506
460
  pending: () => [{
507
461
  value: "",
508
462
  label: "Loading...",
509
- template: i`<icon-svg-spinners-3-dots-fade></icon-svg-spinners-3-dots-fade>`,
463
+ template: a`<icon-svg-spinners-3-dots-fade></icon-svg-spinners-3-dots-fade>`,
510
464
  selectable: !1
511
465
  }],
512
466
  error: (e) => {
@@ -514,7 +468,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
514
468
  return [{
515
469
  value: "",
516
470
  label: n,
517
- template: i`<span class="message message--${t ? "error" : "info"}">${n}</span>`,
471
+ template: a`<span class="message message--${t ? "error" : "info"}">${n}</span>`,
518
472
  selectable: !1
519
473
  }];
520
474
  }
@@ -541,7 +495,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
541
495
  this.activeIndex = e;
542
496
  }
543
497
  updateDisplayValue(e) {
544
- if (this.displayValue = String(e), this.open) {
498
+ if (this.displayValue = e ? String(e) : "", this.open) {
545
499
  let e = this.displayValue.toLowerCase();
546
500
  this.asyncOptionsTask ? this.updateDebouncedFilter(e) : this.filter = e;
547
501
  }
@@ -551,7 +505,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
551
505
  this.asyncOptionsTask = void 0;
552
506
  return;
553
507
  }
554
- this.asyncOptionsTask ??= new d(this, async ([e]) => {
508
+ this.asyncOptionsTask ??= new u(this, async ([e]) => {
555
509
  if (this.asyncOptionsProvider) {
556
510
  let t = await this.asyncOptionsProvider(e);
557
511
  if (t.length === 0) throw new Q("No results found");
@@ -576,7 +530,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
576
530
  }
577
531
  selectOption(e) {
578
532
  let t = this.value;
579
- this._selectedOption = e, this.hide(), this.controlTrait.setValue(e.value), this.inputElement?.focus({ preventScroll: !0 }), this.dispatchEvent(new CustomEvent("change", {
533
+ this._selectedOption = e, this.hide(), this.controlTrait.setValue(e.value), this.controlElement?.focus({ preventScroll: !0 }), this.dispatchEvent(new CustomEvent("change", {
580
534
  bubbles: !0,
581
535
  composed: !0,
582
536
  detail: { option: e }
@@ -598,7 +552,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
598
552
  e !== document && e.removeEventListener("focusin", this.handleDocumentFocusIn), this.openListenersAttached = !1;
599
553
  }
600
554
  onAnchorMouseDown(e) {
601
- e.target !== this.inputElement && (e.preventDefault(), this.inputElement?.focus({ preventScroll: !0 }));
555
+ e.target !== this.controlElement && (e.preventDefault(), this.controlElement?.focus({ preventScroll: !0 }));
602
556
  }
603
557
  onInputFocus() {
604
558
  this.show();
@@ -619,7 +573,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
619
573
  this.open && this.activeIndex >= 0 && t[this.activeIndex] ? (e.preventDefault(), this.selectOption(t[this.activeIndex])) : this.open || (e.preventDefault(), this.controlTrait.onSubmit());
620
574
  break;
621
575
  case "Escape":
622
- this.open && (e.preventDefault(), e.stopPropagation(), this.hide(), this.inputElement?.focus({ preventScroll: !0 }));
576
+ this.open && (e.preventDefault(), e.stopPropagation(), this.hide(), this.controlElement?.focus({ preventScroll: !0 }));
623
577
  break;
624
578
  case "Tab":
625
579
  this.hide();
@@ -634,101 +588,76 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
634
588
  let n = t.id, r = Number.parseInt(n.replace(`${this.listboxId}-option-`, ""), 10), i = this.getFilteredOptions()[r];
635
589
  i && this.selectOption(i);
636
590
  }
637
- }, {e: [ie, oe, F, L, z, V, U, G, ce, ue, fe, me, ge, ve, be, Se, we, ee], c: [$, te]} = ke(_, [
638
- [
639
- re,
640
- 1,
641
- "label"
642
- ],
643
- [
644
- ae,
645
- 1,
646
- "name"
647
- ],
648
- [
649
- se,
650
- 1,
651
- "value"
652
- ],
653
- [
654
- I,
655
- 1,
656
- "placeholder"
657
- ],
658
- [
659
- R,
660
- 1,
661
- "required"
662
- ],
591
+ }, {e: [te, re, ae, oe, P, I, R, B, H, W, K, se, k], c: [$, A]} = fe(g, [
663
592
  [
664
- B,
593
+ ee,
665
594
  1,
666
595
  "selectOnly"
667
596
  ],
668
597
  [
669
- H,
598
+ ne,
670
599
  1,
671
600
  "asyncOptionsUrl"
672
601
  ],
673
602
  [
674
- W,
603
+ ie,
675
604
  1,
676
605
  "asyncOptionsResultsField"
677
606
  ],
678
607
  [
679
- K,
608
+ M,
680
609
  1,
681
610
  "asyncOptionsLabelField"
682
611
  ],
683
612
  [
684
- le,
613
+ N,
685
614
  1,
686
615
  "asyncOptionsValueField"
687
616
  ],
688
617
  [
689
- de,
618
+ F,
690
619
  1,
691
620
  "asyncOptionsProvider"
692
621
  ],
693
622
  [
694
- pe,
623
+ L,
695
624
  1,
696
625
  "optionsFallback"
697
626
  ],
698
627
  [
699
- he,
628
+ z,
700
629
  1,
701
- "inputElement"
630
+ "controlElement"
702
631
  ],
703
632
  [
704
- _e,
633
+ V,
705
634
  1,
706
635
  "filter"
707
636
  ],
708
637
  [
709
- ye,
638
+ U,
710
639
  1,
711
640
  "displayValue"
712
641
  ],
713
642
  [
714
- xe,
643
+ G,
715
644
  1,
716
645
  "open"
717
646
  ],
718
647
  [
719
- Ce,
648
+ q,
720
649
  1,
721
650
  "activeIndex"
722
651
  ]
723
- ], ne, 0, void 0, e), _), g = class extends Ne {
652
+ ], j, 0, void 0, r), g), h = class extends _e {
724
653
  constructor() {
725
- super($), X(this, "styles", h), X(this, "formAssociated", !0), te();
654
+ super($), Z(this, "styles", m), A();
726
655
  }
727
- }, X(g, Te, void 0), g)();
656
+ }, Z(h, ce, void 0), h)();
728
657
  //#endregion
729
658
  //#region src/components/combobox/index.ts
730
- var Fe = $;
659
+ var ye = $;
731
660
  //#endregion
732
- export { $ as n, Pe as r, Fe as t };
661
+ export { $ as n, ve as r, ye as t };
733
662
 
734
- //# sourceMappingURL=combobox-DrT0Nb-A.js.map
663
+ //# sourceMappingURL=combobox-B5j4LoHY.js.map