@threadlabs/looma 0.2.5 → 0.2.6

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 (427) hide show
  1. package/dist/chunk-3K45IWIJ.js +4733 -0
  2. package/dist/chunk-MLKGABMK.js +9 -0
  3. package/dist/chunk-UHHA4WT5.js +2916 -0
  4. package/dist/declarative-generated.cjs +135 -0
  5. package/dist/declarative-generated.d.cts +10 -0
  6. package/dist/declarative-generated.d.ts +10 -0
  7. package/dist/declarative-generated.js +111 -0
  8. package/dist/declarative.cjs +2944 -0
  9. package/dist/declarative.d.cts +27 -0
  10. package/dist/declarative.d.ts +27 -0
  11. package/dist/declarative.js +13 -0
  12. package/dist/index.cjs +7480 -6457
  13. package/dist/index.d.cts +4 -58
  14. package/dist/index.d.ts +4 -58
  15. package/dist/index.js +15 -27
  16. package/dist/loader.cjs +7654 -0
  17. package/dist/loader.d.cts +4 -0
  18. package/dist/loader.d.ts +4 -0
  19. package/dist/loader.js +16 -0
  20. package/dist/valibot.cjs +31 -0
  21. package/dist/valibot.d.cts +10 -0
  22. package/dist/valibot.d.ts +1 -43
  23. package/dist/valibot.js +2 -0
  24. package/dist/{types/field/validation.d.ts → validation-bxcou-l-.d.cts} +13 -11
  25. package/dist/validation-bxcou-l-.d.ts +58 -0
  26. package/editor/{chunk-B5WVJOPV.js → chunk-BXICJBWS.js} +118 -8
  27. package/editor/{chunk-ZOUKEZ77.js → chunk-JK53ENSG.js} +8 -21
  28. package/editor/chunk-WI7ZA44X.js +2558 -0
  29. package/editor/extensions/index.d.ts +11 -2
  30. package/editor/extensions/index.js +9 -7
  31. package/editor/index.d.ts +1 -1
  32. package/editor/index.js +10 -8
  33. package/editor/ui.js +2 -2
  34. package/editor.css +32 -0
  35. package/layout/index.cjs +466 -400
  36. package/layout/index.d.cts +1 -2
  37. package/layout/index.d.ts +1 -2
  38. package/layout/index.js +471 -395
  39. package/package.json +14 -5
  40. package/vue/chunk-4DPYH3IT.js +3538 -0
  41. package/vue/editor/index.d.ts +17 -7
  42. package/vue/editor/index.js +53 -35
  43. package/vue/index.d.ts +48 -31
  44. package/vue/index.js +1 -1
  45. package/dist/chunk-24OTMNIU.js +0 -1617
  46. package/dist/chunk-D5WRORG6.js +0 -366
  47. package/dist/chunk-HNFCGIBP.js +0 -8
  48. package/dist/chunk-NB6DBRXQ.js +0 -323
  49. package/dist/chunk-OF57X5AR.js +0 -10
  50. package/dist/chunk-TL4FIE7X.js +0 -93
  51. package/dist/chunk-UL7UIUJZ.js +0 -20
  52. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  53. package/dist/cjs/controlled-state-BFya8rAX.js +0 -9
  54. package/dist/cjs/events-TcQIzpNv.js +0 -19
  55. package/dist/cjs/icons-BAdjrnhS.js +0 -680
  56. package/dist/cjs/id-CYbKpaYr.js +0 -9
  57. package/dist/cjs/index-BHG9Rpil.js +0 -1602
  58. package/dist/cjs/index.cjs.js +0 -2
  59. package/dist/cjs/loader.cjs.js +0 -13
  60. package/dist/cjs/looma.cjs.js +0 -25
  61. package/dist/cjs/manager-Ce25WRtl.js +0 -95
  62. package/dist/cjs/positioning-CCR6ifPj.js +0 -426
  63. package/dist/cjs/ui-affordance-scope.cjs.entry.js +0 -43
  64. package/dist/cjs/ui-avatar-group.cjs.entry.js +0 -43
  65. package/dist/cjs/ui-avatar.cjs.entry.js +0 -50
  66. package/dist/cjs/ui-badge.cjs.entry.js +0 -19
  67. package/dist/cjs/ui-button.cjs.entry.js +0 -75
  68. package/dist/cjs/ui-callout.cjs.entry.js +0 -27
  69. package/dist/cjs/ui-checkbox.cjs.entry.js +0 -97
  70. package/dist/cjs/ui-chip_2.cjs.entry.js +0 -258
  71. package/dist/cjs/ui-combobox.cjs.entry.js +0 -708
  72. package/dist/cjs/ui-context-menu.cjs.entry.js +0 -239
  73. package/dist/cjs/ui-dialog.cjs.entry.js +0 -131
  74. package/dist/cjs/ui-disclosure.cjs.entry.js +0 -112
  75. package/dist/cjs/ui-editable.cjs.entry.js +0 -100
  76. package/dist/cjs/ui-floating-action-button.cjs.entry.js +0 -20
  77. package/dist/cjs/ui-form-field.cjs.entry.js +0 -114
  78. package/dist/cjs/ui-icon-button.cjs.entry.js +0 -23
  79. package/dist/cjs/ui-input.cjs.entry.js +0 -106
  80. package/dist/cjs/ui-menu-item.cjs.entry.js +0 -19
  81. package/dist/cjs/ui-menu.cjs.entry.js +0 -182
  82. package/dist/cjs/ui-popover.cjs.entry.js +0 -135
  83. package/dist/cjs/ui-radio-group.cjs.entry.js +0 -134
  84. package/dist/cjs/ui-radio.cjs.entry.js +0 -94
  85. package/dist/cjs/ui-search-result-row.cjs.entry.js +0 -47
  86. package/dist/cjs/ui-search-shell.cjs.entry.js +0 -39
  87. package/dist/cjs/ui-select.cjs.entry.js +0 -108
  88. package/dist/cjs/ui-switch.cjs.entry.js +0 -74
  89. package/dist/cjs/ui-tabs.cjs.entry.js +0 -118
  90. package/dist/cjs/ui-textarea.cjs.entry.js +0 -110
  91. package/dist/cjs/ui-toast-region.cjs.entry.js +0 -93
  92. package/dist/cjs/ui-top-bar.cjs.entry.js +0 -43
  93. package/dist/cjs/ui-tree-item.cjs.entry.js +0 -135
  94. package/dist/cjs/ui-tree.cjs.entry.js +0 -500
  95. package/dist/collection/collection-manifest.json +0 -45
  96. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.css +0 -8
  97. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.js +0 -70
  98. package/dist/collection/components/ui-avatar/ui-avatar.css +0 -35
  99. package/dist/collection/components/ui-avatar/ui-avatar.js +0 -130
  100. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +0 -32
  101. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +0 -95
  102. package/dist/collection/components/ui-badge/ui-badge.css +0 -90
  103. package/dist/collection/components/ui-badge/ui-badge.js +0 -62
  104. package/dist/collection/components/ui-button/ui-button.css +0 -121
  105. package/dist/collection/components/ui-button/ui-button.js +0 -141
  106. package/dist/collection/components/ui-callout/ui-callout.css +0 -74
  107. package/dist/collection/components/ui-callout/ui-callout.js +0 -59
  108. package/dist/collection/components/ui-checkbox/ui-checkbox.css +0 -24
  109. package/dist/collection/components/ui-checkbox/ui-checkbox.js +0 -228
  110. package/dist/collection/components/ui-chip/ui-chip.css +0 -57
  111. package/dist/collection/components/ui-chip/ui-chip.js +0 -67
  112. package/dist/collection/components/ui-combobox/ui-combobox.css +0 -47
  113. package/dist/collection/components/ui-combobox/ui-combobox.js +0 -1295
  114. package/dist/collection/components/ui-context-menu/ui-context-menu.css +0 -34
  115. package/dist/collection/components/ui-context-menu/ui-context-menu.js +0 -311
  116. package/dist/collection/components/ui-dialog/ui-dialog.css +0 -72
  117. package/dist/collection/components/ui-dialog/ui-dialog.js +0 -242
  118. package/dist/collection/components/ui-disclosure/ui-disclosure.css +0 -7
  119. package/dist/collection/components/ui-disclosure/ui-disclosure.js +0 -184
  120. package/dist/collection/components/ui-editable/ui-editable.css +0 -2
  121. package/dist/collection/components/ui-editable/ui-editable.js +0 -196
  122. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.css +0 -73
  123. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +0 -85
  124. package/dist/collection/components/ui-form-field/ui-form-field.css +0 -25
  125. package/dist/collection/components/ui-form-field/ui-form-field.js +0 -180
  126. package/dist/collection/components/ui-icon-button/ui-icon-button.css +0 -145
  127. package/dist/collection/components/ui-icon-button/ui-icon-button.js +0 -128
  128. package/dist/collection/components/ui-input/ui-input.css +0 -48
  129. package/dist/collection/components/ui-input/ui-input.js +0 -217
  130. package/dist/collection/components/ui-menu/ui-menu.css +0 -73
  131. package/dist/collection/components/ui-menu/ui-menu.js +0 -280
  132. package/dist/collection/components/ui-menu-item/ui-menu-item.css +0 -32
  133. package/dist/collection/components/ui-menu-item/ui-menu-item.js +0 -64
  134. package/dist/collection/components/ui-popover/ui-popover.css +0 -58
  135. package/dist/collection/components/ui-popover/ui-popover.js +0 -232
  136. package/dist/collection/components/ui-radio/ui-radio.css +0 -22
  137. package/dist/collection/components/ui-radio/ui-radio.js +0 -226
  138. package/dist/collection/components/ui-radio-group/ui-radio-group.css +0 -10
  139. package/dist/collection/components/ui-radio-group/ui-radio-group.js +0 -247
  140. package/dist/collection/components/ui-search-result-row/ui-search-result-row.css +0 -80
  141. package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +0 -100
  142. package/dist/collection/components/ui-search-shell/ui-search-shell.css +0 -63
  143. package/dist/collection/components/ui-search-shell/ui-search-shell.js +0 -46
  144. package/dist/collection/components/ui-select/ui-select.css +0 -64
  145. package/dist/collection/components/ui-select/ui-select.js +0 -218
  146. package/dist/collection/components/ui-switch/ui-switch.css +0 -63
  147. package/dist/collection/components/ui-switch/ui-switch.js +0 -185
  148. package/dist/collection/components/ui-tabs/ui-tabs.css +0 -68
  149. package/dist/collection/components/ui-tabs/ui-tabs.js +0 -190
  150. package/dist/collection/components/ui-textarea/ui-textarea.css +0 -49
  151. package/dist/collection/components/ui-textarea/ui-textarea.js +0 -241
  152. package/dist/collection/components/ui-toast-region/ui-toast-region.css +0 -59
  153. package/dist/collection/components/ui-toast-region/ui-toast-region.js +0 -126
  154. package/dist/collection/components/ui-tooltip/ui-tooltip.css +0 -43
  155. package/dist/collection/components/ui-tooltip/ui-tooltip.js +0 -430
  156. package/dist/collection/components/ui-top-bar/ui-top-bar.css +0 -51
  157. package/dist/collection/components/ui-top-bar/ui-top-bar.js +0 -52
  158. package/dist/collection/components/ui-tree/ui-tree.css +0 -12
  159. package/dist/collection/components/ui-tree/ui-tree.js +0 -515
  160. package/dist/collection/components/ui-tree-item/ui-tree-item.css +0 -217
  161. package/dist/collection/components/ui-tree-item/ui-tree-item.js +0 -406
  162. package/dist/collection/field/combobox.js +0 -4
  163. package/dist/collection/field/editable.js +0 -1
  164. package/dist/collection/field/multi-combobox.js +0 -1
  165. package/dist/collection/field/valibot.js +0 -5
  166. package/dist/collection/field/validation.js +0 -62
  167. package/dist/collection/icons.js +0 -71
  168. package/dist/collection/input-modality.js +0 -24
  169. package/dist/collection/overlay/manager.js +0 -92
  170. package/dist/collection/overlay/positioning.js +0 -424
  171. package/dist/collection/utils/controlled-state.js +0 -4
  172. package/dist/collection/utils/drag-drop.js +0 -51
  173. package/dist/collection/utils/events.js +0 -13
  174. package/dist/collection/utils/id.js +0 -5
  175. package/dist/collection/utils/initials.js +0 -11
  176. package/dist/components/index.d.ts +0 -102
  177. package/dist/components/index.js +0 -1
  178. package/dist/components/p-6SWSrfmW.js +0 -1
  179. package/dist/components/p-B_DaIVEY.js +0 -1
  180. package/dist/components/p-Bh_1GxOD.js +0 -1
  181. package/dist/components/p-BnGhGgTH.js +0 -1
  182. package/dist/components/p-BzaB_bXo.js +0 -1
  183. package/dist/components/p-C-0syqXZ.js +0 -1
  184. package/dist/components/p-CoFximGM.js +0 -13
  185. package/dist/components/p-JwSoedEO.js +0 -1
  186. package/dist/components/p-Vc4ExHFc.js +0 -1
  187. package/dist/components/p-hgBUJRDa.js +0 -1
  188. package/dist/components/ui-affordance-scope.d.ts +0 -11
  189. package/dist/components/ui-affordance-scope.js +0 -1
  190. package/dist/components/ui-avatar-group.d.ts +0 -11
  191. package/dist/components/ui-avatar-group.js +0 -1
  192. package/dist/components/ui-avatar.d.ts +0 -11
  193. package/dist/components/ui-avatar.js +0 -1
  194. package/dist/components/ui-badge.d.ts +0 -11
  195. package/dist/components/ui-badge.js +0 -1
  196. package/dist/components/ui-button.d.ts +0 -11
  197. package/dist/components/ui-button.js +0 -1
  198. package/dist/components/ui-callout.d.ts +0 -11
  199. package/dist/components/ui-callout.js +0 -1
  200. package/dist/components/ui-checkbox.d.ts +0 -11
  201. package/dist/components/ui-checkbox.js +0 -1
  202. package/dist/components/ui-chip.d.ts +0 -11
  203. package/dist/components/ui-chip.js +0 -1
  204. package/dist/components/ui-combobox.d.ts +0 -11
  205. package/dist/components/ui-combobox.js +0 -1
  206. package/dist/components/ui-context-menu.d.ts +0 -11
  207. package/dist/components/ui-context-menu.js +0 -1
  208. package/dist/components/ui-dialog.d.ts +0 -11
  209. package/dist/components/ui-dialog.js +0 -1
  210. package/dist/components/ui-disclosure.d.ts +0 -11
  211. package/dist/components/ui-disclosure.js +0 -1
  212. package/dist/components/ui-editable.d.ts +0 -11
  213. package/dist/components/ui-editable.js +0 -1
  214. package/dist/components/ui-floating-action-button.d.ts +0 -11
  215. package/dist/components/ui-floating-action-button.js +0 -1
  216. package/dist/components/ui-form-field.d.ts +0 -11
  217. package/dist/components/ui-form-field.js +0 -1
  218. package/dist/components/ui-icon-button.d.ts +0 -11
  219. package/dist/components/ui-icon-button.js +0 -1
  220. package/dist/components/ui-input.d.ts +0 -11
  221. package/dist/components/ui-input.js +0 -1
  222. package/dist/components/ui-menu-item.d.ts +0 -11
  223. package/dist/components/ui-menu-item.js +0 -1
  224. package/dist/components/ui-menu.d.ts +0 -11
  225. package/dist/components/ui-menu.js +0 -1
  226. package/dist/components/ui-popover.d.ts +0 -11
  227. package/dist/components/ui-popover.js +0 -1
  228. package/dist/components/ui-radio-group.d.ts +0 -11
  229. package/dist/components/ui-radio-group.js +0 -1
  230. package/dist/components/ui-radio.d.ts +0 -11
  231. package/dist/components/ui-radio.js +0 -1
  232. package/dist/components/ui-search-result-row.d.ts +0 -11
  233. package/dist/components/ui-search-result-row.js +0 -1
  234. package/dist/components/ui-search-shell.d.ts +0 -11
  235. package/dist/components/ui-search-shell.js +0 -1
  236. package/dist/components/ui-select.d.ts +0 -11
  237. package/dist/components/ui-select.js +0 -1
  238. package/dist/components/ui-switch.d.ts +0 -11
  239. package/dist/components/ui-switch.js +0 -1
  240. package/dist/components/ui-tabs.d.ts +0 -11
  241. package/dist/components/ui-tabs.js +0 -1
  242. package/dist/components/ui-textarea.d.ts +0 -11
  243. package/dist/components/ui-textarea.js +0 -1
  244. package/dist/components/ui-toast-region.d.ts +0 -11
  245. package/dist/components/ui-toast-region.js +0 -1
  246. package/dist/components/ui-tooltip.d.ts +0 -11
  247. package/dist/components/ui-tooltip.js +0 -1
  248. package/dist/components/ui-top-bar.d.ts +0 -11
  249. package/dist/components/ui-top-bar.js +0 -1
  250. package/dist/components/ui-tree-item.d.ts +0 -11
  251. package/dist/components/ui-tree-item.js +0 -1
  252. package/dist/components/ui-tree.d.ts +0 -11
  253. package/dist/components/ui-tree.js +0 -1
  254. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  255. package/dist/esm/controlled-state-BnGhGgTH.js +0 -6
  256. package/dist/esm/events-JwSoedEO.js +0 -15
  257. package/dist/esm/icons-CoFximGM.js +0 -678
  258. package/dist/esm/id-hgBUJRDa.js +0 -7
  259. package/dist/esm/index-8BGiMGQ0.js +0 -1593
  260. package/dist/esm/index.js +0 -1
  261. package/dist/esm/loader.js +0 -11
  262. package/dist/esm/looma.js +0 -21
  263. package/dist/esm/manager-C-0syqXZ.js +0 -91
  264. package/dist/esm/positioning-ZOr-2PSe.js +0 -421
  265. package/dist/esm/ui-affordance-scope.entry.js +0 -41
  266. package/dist/esm/ui-avatar-group.entry.js +0 -41
  267. package/dist/esm/ui-avatar.entry.js +0 -48
  268. package/dist/esm/ui-badge.entry.js +0 -17
  269. package/dist/esm/ui-button.entry.js +0 -73
  270. package/dist/esm/ui-callout.entry.js +0 -25
  271. package/dist/esm/ui-checkbox.entry.js +0 -95
  272. package/dist/esm/ui-chip_2.entry.js +0 -255
  273. package/dist/esm/ui-combobox.entry.js +0 -706
  274. package/dist/esm/ui-context-menu.entry.js +0 -237
  275. package/dist/esm/ui-dialog.entry.js +0 -129
  276. package/dist/esm/ui-disclosure.entry.js +0 -110
  277. package/dist/esm/ui-editable.entry.js +0 -98
  278. package/dist/esm/ui-floating-action-button.entry.js +0 -18
  279. package/dist/esm/ui-form-field.entry.js +0 -112
  280. package/dist/esm/ui-icon-button.entry.js +0 -21
  281. package/dist/esm/ui-input.entry.js +0 -104
  282. package/dist/esm/ui-menu-item.entry.js +0 -17
  283. package/dist/esm/ui-menu.entry.js +0 -180
  284. package/dist/esm/ui-popover.entry.js +0 -133
  285. package/dist/esm/ui-radio-group.entry.js +0 -132
  286. package/dist/esm/ui-radio.entry.js +0 -92
  287. package/dist/esm/ui-search-result-row.entry.js +0 -45
  288. package/dist/esm/ui-search-shell.entry.js +0 -37
  289. package/dist/esm/ui-select.entry.js +0 -106
  290. package/dist/esm/ui-switch.entry.js +0 -72
  291. package/dist/esm/ui-tabs.entry.js +0 -116
  292. package/dist/esm/ui-textarea.entry.js +0 -108
  293. package/dist/esm/ui-toast-region.entry.js +0 -91
  294. package/dist/esm/ui-top-bar.entry.js +0 -41
  295. package/dist/esm/ui-tree-item.entry.js +0 -133
  296. package/dist/esm/ui-tree.entry.js +0 -498
  297. package/dist/index.cjs.js +0 -1
  298. package/dist/looma/index.esm.js +0 -0
  299. package/dist/looma/looma.esm.js +0 -1
  300. package/dist/looma/p-08f80207.entry.js +0 -1
  301. package/dist/looma/p-0b5b8d9e.entry.js +0 -1
  302. package/dist/looma/p-1249a806.entry.js +0 -1
  303. package/dist/looma/p-16e0669d.entry.js +0 -1
  304. package/dist/looma/p-1c00670f.entry.js +0 -1
  305. package/dist/looma/p-1c5a7522.entry.js +0 -1
  306. package/dist/looma/p-22842f8c.entry.js +0 -1
  307. package/dist/looma/p-2915d5c0.entry.js +0 -1
  308. package/dist/looma/p-3b2961a6.entry.js +0 -1
  309. package/dist/looma/p-3f60f4c8.entry.js +0 -1
  310. package/dist/looma/p-424d6719.entry.js +0 -1
  311. package/dist/looma/p-4caccfce.entry.js +0 -1
  312. package/dist/looma/p-5fdcee1d.entry.js +0 -1
  313. package/dist/looma/p-6d8b99ee.entry.js +0 -1
  314. package/dist/looma/p-6f20d470.entry.js +0 -1
  315. package/dist/looma/p-7c0b5364.entry.js +0 -1
  316. package/dist/looma/p-8BGiMGQ0.js +0 -2
  317. package/dist/looma/p-8bdd9495.entry.js +0 -1
  318. package/dist/looma/p-99116a72.entry.js +0 -1
  319. package/dist/looma/p-9cfbf722.entry.js +0 -1
  320. package/dist/looma/p-9d2662ca.entry.js +0 -1
  321. package/dist/looma/p-9ff2fa19.entry.js +0 -1
  322. package/dist/looma/p-BnGhGgTH.js +0 -1
  323. package/dist/looma/p-C-0syqXZ.js +0 -1
  324. package/dist/looma/p-CoFximGM.js +0 -13
  325. package/dist/looma/p-DQuL1Twl.js +0 -1
  326. package/dist/looma/p-JwSoedEO.js +0 -1
  327. package/dist/looma/p-ZOr-2PSe.js +0 -1
  328. package/dist/looma/p-a2dd4c6c.entry.js +0 -1
  329. package/dist/looma/p-add67e4c.entry.js +0 -1
  330. package/dist/looma/p-b6ede6bb.entry.js +0 -1
  331. package/dist/looma/p-b76e2111.entry.js +0 -1
  332. package/dist/looma/p-ca2a54fd.entry.js +0 -1
  333. package/dist/looma/p-d372b0db.entry.js +0 -1
  334. package/dist/looma/p-d4825822.entry.js +0 -1
  335. package/dist/looma/p-d56571a2.entry.js +0 -1
  336. package/dist/looma/p-d5c3954f.entry.js +0 -1
  337. package/dist/looma/p-e604e906.entry.js +0 -1
  338. package/dist/looma/p-f1f7c5cb.entry.js +0 -1
  339. package/dist/looma/p-hgBUJRDa.js +0 -1
  340. package/dist/types/components/ui-affordance-scope/ui-affordance-scope.d.ts +0 -11
  341. package/dist/types/components/ui-avatar/ui-avatar.d.ts +0 -11
  342. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +0 -11
  343. package/dist/types/components/ui-badge/ui-badge.d.ts +0 -5
  344. package/dist/types/components/ui-button/ui-button.d.ts +0 -13
  345. package/dist/types/components/ui-callout/ui-callout.d.ts +0 -6
  346. package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +0 -20
  347. package/dist/types/components/ui-chip/ui-chip.d.ts +0 -8
  348. package/dist/types/components/ui-combobox/ui-combobox.d.ts +0 -128
  349. package/dist/types/components/ui-context-menu/ui-context-menu.d.ts +0 -43
  350. package/dist/types/components/ui-dialog/ui-dialog.d.ts +0 -27
  351. package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +0 -21
  352. package/dist/types/components/ui-editable/ui-editable.d.ts +0 -24
  353. package/dist/types/components/ui-floating-action-button/ui-floating-action-button.d.ts +0 -6
  354. package/dist/types/components/ui-form-field/ui-form-field.d.ts +0 -18
  355. package/dist/types/components/ui-icon-button/ui-icon-button.d.ts +0 -9
  356. package/dist/types/components/ui-input/ui-input.d.ts +0 -19
  357. package/dist/types/components/ui-menu/ui-menu.d.ts +0 -28
  358. package/dist/types/components/ui-menu-item/ui-menu-item.d.ts +0 -5
  359. package/dist/types/components/ui-popover/ui-popover.d.ts +0 -26
  360. package/dist/types/components/ui-radio/ui-radio.d.ts +0 -20
  361. package/dist/types/components/ui-radio-group/ui-radio-group.d.ts +0 -21
  362. package/dist/types/components/ui-search-result-row/ui-search-result-row.d.ts +0 -15
  363. package/dist/types/components/ui-search-shell/ui-search-shell.d.ts +0 -9
  364. package/dist/types/components/ui-select/ui-select.d.ts +0 -20
  365. package/dist/types/components/ui-switch/ui-switch.d.ts +0 -16
  366. package/dist/types/components/ui-tabs/ui-tabs.d.ts +0 -18
  367. package/dist/types/components/ui-textarea/ui-textarea.d.ts +0 -20
  368. package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +0 -16
  369. package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +0 -57
  370. package/dist/types/components/ui-top-bar/ui-top-bar.d.ts +0 -12
  371. package/dist/types/components/ui-tree/ui-tree.d.ts +0 -53
  372. package/dist/types/components/ui-tree-item/ui-tree-item.d.ts +0 -44
  373. package/dist/types/components.d.ts +0 -1889
  374. package/dist/types/field/combobox.d.ts +0 -46
  375. package/dist/types/field/editable.d.ts +0 -5
  376. package/dist/types/field/multi-combobox.d.ts +0 -11
  377. package/dist/types/field/valibot.d.ts +0 -7
  378. package/dist/types/icons.d.ts +0 -53
  379. package/dist/types/input-modality.d.ts +0 -6
  380. package/dist/types/overlay/manager.d.ts +0 -17
  381. package/dist/types/overlay/positioning.d.ts +0 -74
  382. package/dist/types/stencil-public-runtime.d.ts +0 -1860
  383. package/dist/types/utils/controlled-state.d.ts +0 -4
  384. package/dist/types/utils/drag-drop.d.ts +0 -15
  385. package/dist/types/utils/events.d.ts +0 -4
  386. package/dist/types/utils/id.d.ts +0 -1
  387. package/dist/types/utils/initials.d.ts +0 -1
  388. package/dist/ui-affordance-scope.entry-L6TIXYOP.js +0 -54
  389. package/dist/ui-avatar-group.entry-TCAA6P72.js +0 -51
  390. package/dist/ui-avatar.entry-52DQ7VXA.js +0 -51
  391. package/dist/ui-badge.entry-2XCAA6LL.js +0 -22
  392. package/dist/ui-button.entry-MNFBMNSX.js +0 -83
  393. package/dist/ui-callout.entry-SSHT5TH2.js +0 -32
  394. package/dist/ui-checkbox.entry-LOWIWIWI.js +0 -111
  395. package/dist/ui-chip_2.entry-BIMTSF6C.js +0 -272
  396. package/dist/ui-combobox.entry-25Z4MN7N.js +0 -717
  397. package/dist/ui-context-menu.entry-YZDL5Y4M.js +0 -248
  398. package/dist/ui-dialog.entry-HIXZX5AB.js +0 -146
  399. package/dist/ui-disclosure.entry-2JZHZNDQ.js +0 -126
  400. package/dist/ui-editable.entry-U3VR3XPT.js +0 -110
  401. package/dist/ui-floating-action-button.entry-6S3QN3KJ.js +0 -23
  402. package/dist/ui-form-field.entry-GQOSMLHT.js +0 -120
  403. package/dist/ui-icon-button.entry-QJXKVDM6.js +0 -26
  404. package/dist/ui-input.entry-UWMQ6JMP.js +0 -114
  405. package/dist/ui-menu-item.entry-NHNZKKJS.js +0 -22
  406. package/dist/ui-menu.entry-D53RUJND.js +0 -192
  407. package/dist/ui-popover.entry-7ZSIWCFQ.js +0 -152
  408. package/dist/ui-radio-group.entry-37MSYIH4.js +0 -142
  409. package/dist/ui-radio.entry-7YGCDHXT.js +0 -108
  410. package/dist/ui-search-result-row.entry-6FCCLGAS.js +0 -50
  411. package/dist/ui-search-shell.entry-HSBEXPER.js +0 -41
  412. package/dist/ui-select.entry-GIDIAYRD.js +0 -117
  413. package/dist/ui-switch.entry-MYAL6XPC.js +0 -87
  414. package/dist/ui-tabs.entry-R4TEXQSD.js +0 -128
  415. package/dist/ui-textarea.entry-FW32JNDV.js +0 -119
  416. package/dist/ui-toast-region.entry-BTMFPKZF.js +0 -104
  417. package/dist/ui-top-bar.entry-5DQGJF3B.js +0 -49
  418. package/dist/ui-tree-item.entry-ADT7DSOS.js +0 -145
  419. package/dist/ui-tree.entry-7PYQ5RIN.js +0 -470
  420. package/editor/chunk-64GLF274.js +0 -1271
  421. package/layout/index.css +0 -387
  422. package/loader/cdn.js +0 -1
  423. package/loader/index.cjs.js +0 -1
  424. package/loader/index.d.ts +0 -24
  425. package/loader/index.es2017.js +0 -1
  426. package/loader/index.js +0 -2
  427. package/vue/chunk-ROMBQS2L.js +0 -352
@@ -1,1295 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- import { createAnchoredSurface } from "../../overlay/positioning";
3
- import { openOverlay, closeOverlay } from "../../overlay/manager";
4
- import { formatEditingValue, validateField } from "../../field/validation";
5
- /**
6
- * A single editable field with contextual suggestions, optional help and field validation.
7
- * With `multiple`, it becomes a multi-value tag field: `value` holds the selected
8
- * items, chips render before the cursor, and add/remove/create item events fire.
9
- */
10
- export class UICombobox {
11
- host;
12
- /** Accessible visible label, associated with the native text input. */
13
- label = '';
14
- placeholder = '';
15
- name = '';
16
- /**
17
- * Controlled canonical value. Undefined selects uncontrolled mode; null means no selection.
18
- * With `multiple`, this is the controlled list of selected items instead.
19
- */
20
- value;
21
- defaultValue;
22
- /** Render selected values as removable chips before the cursor. `value` becomes the item list. */
23
- multiple = false;
24
- /** Characters that commit the current query and leave the input ready for the next item (multiple only). */
25
- tokenSeparators = [];
26
- /** Controlled raw editing text; independent of canonical selection. */
27
- query;
28
- defaultQuery = '';
29
- /** Immutable configuration; replace the object/context when dependencies change. */
30
- config = {};
31
- disabled = false;
32
- readOnly = false;
33
- required = false;
34
- size = 'md';
35
- /** Keep the native label accessible while allowing compact composed controls. */
36
- labelVisibility = 'visible';
37
- disclosure = false;
38
- clearable = false;
39
- /** Optional description shown by the connected question-mark button. */
40
- help = '';
41
- queryChange;
42
- /** Single mode: the ComboboxChange. Multiple mode: the full current item list on any change. */
43
- valueChange;
44
- freeEntry;
45
- createEntry;
46
- dependencyInvalidate;
47
- validationChange;
48
- /** Supplies the current result rows for framework-owned rich slots. */
49
- optionsChange;
50
- /** Multiple mode: a suggestion or exact-match token was committed as a new item. */
51
- addItem;
52
- /** Multiple mode: a selected item was removed via chip keyboard controls. */
53
- removeItem;
54
- /** Multiple mode: an unmatched query was submitted for creation. */
55
- createItem;
56
- raw = '';
57
- display = '';
58
- selected = null;
59
- expanded = false;
60
- rows = [];
61
- active = -1;
62
- loading = false;
63
- helpOpen = false;
64
- lookupError = '';
65
- validation = { status: 'pristine', touched: false, dirty: false, issues: [] };
66
- input;
67
- popup;
68
- field;
69
- surface;
70
- lookup;
71
- validationRun;
72
- lookupTimer;
73
- composing = false;
74
- initialRaw = '';
75
- overlayId = `ui-combobox-${Math.random().toString(36).slice(2)}`;
76
- alive = false;
77
- fullSet = false;
78
- knownOptions = new Map();
79
- awaitingLabel = null;
80
- proposedChange;
81
- formattedRaw;
82
- formattedWith;
83
- /** Multiple mode: the controlled selected items (from `value`). Empty otherwise. */
84
- get items() {
85
- return this.multiple && Array.isArray(this.value) ? this.value : [];
86
- }
87
- get selectedValues() { return new Set(this.items.map(item => item.value)); }
88
- componentWillLoad() {
89
- if (this.multiple) {
90
- this.selected = null;
91
- this.raw = this.query ?? this.defaultQuery;
92
- this.display = this.raw;
93
- this.initialRaw = this.raw;
94
- this.applyServerIssues();
95
- return;
96
- }
97
- this.selected = (this.value !== undefined ? this.value : this.defaultValue ?? null);
98
- this.raw = this.query ?? this.defaultQuery;
99
- if (this.query === undefined && !this.raw && this.selected !== null) {
100
- this.raw = this.config.options?.find(row => row.value === this.selected)?.label ?? this.selected;
101
- }
102
- if (this.query === undefined && this.selected !== null && this.raw === this.selected)
103
- this.awaitingLabel = this.selected;
104
- this.display = this.raw;
105
- this.initialRaw = this.raw;
106
- this.applyServerIssues();
107
- }
108
- connectedCallback() { this.alive = true; this.setupSurface(); }
109
- componentDidLoad() { this.setupSurface(); }
110
- componentDidUpdate() {
111
- if (this.input && !this.composing && this.input.value !== this.display)
112
- this.input.value = this.display;
113
- if (this.expanded)
114
- this.surface?.refresh();
115
- }
116
- disconnectedCallback() {
117
- this.alive = false;
118
- this.close();
119
- this.validationRun?.abort();
120
- this.surface?.destroy();
121
- this.surface = undefined;
122
- }
123
- setupSurface() {
124
- if (!this.surface && this.popup && this.field)
125
- this.surface = createAnchoredSurface(this.popup, { anchor: this.field, placement: 'bottom-start' });
126
- }
127
- syncValue() {
128
- // Multiple mode: `value` is the item list; Stencil re-renders chips on reference change.
129
- if (this.multiple || this.value === undefined)
130
- return;
131
- this.selected = this.value;
132
- if (this.query === undefined) {
133
- const proposal = this.proposedChange;
134
- const option = this.config.options?.find(row => row.value === this.selected)
135
- ?? (this.selected === null ? undefined : this.knownOptions.get(this.selected));
136
- const nextRaw = proposal?.value === this.selected ? proposal.query : option?.label ?? this.selected ?? '';
137
- if (proposal?.value !== this.selected || nextRaw !== this.raw) {
138
- this.raw = nextRaw;
139
- this.display = this.raw;
140
- this.formattedRaw = undefined;
141
- }
142
- this.awaitingLabel = !option && this.selected !== null ? this.selected : null;
143
- }
144
- this.resetValidation();
145
- }
146
- syncQuery() {
147
- if (this.query === undefined || this.query === this.raw)
148
- return;
149
- // Only a selection proposal's query echo retains an uncontrolled identity.
150
- // Other owner text replacements are edits, just like native input.
151
- if (this.value === undefined && this.proposedChange?.query !== this.query)
152
- this.selected = null;
153
- this.awaitingLabel = null;
154
- this.formattedRaw = undefined;
155
- this.raw = this.query;
156
- this.display = this.raw;
157
- this.resetValidation();
158
- if (this.expanded)
159
- this.search('input');
160
- }
161
- syncDisabled() {
162
- if (this.disabled || this.readOnly) {
163
- this.close();
164
- this.resetValidation();
165
- }
166
- }
167
- syncConfig(next, previous) {
168
- this.validationRun?.abort();
169
- if (next.provider !== previous?.provider || next.context !== previous?.context)
170
- this.knownOptions.clear();
171
- if (next.context !== previous?.context) {
172
- this.close();
173
- const policy = next.invalidation ?? 'retain-query';
174
- if (this.multiple) {
175
- if (policy === 'clear')
176
- this.setMultiQuery('', 'programmatic');
177
- }
178
- else {
179
- const value = policy === 'retain' ? this.selected : null;
180
- const query = policy === 'clear' ? '' : this.raw;
181
- this.commit(value, query, null, 'invalidation', 'programmatic');
182
- }
183
- this.validation = { status: 'pristine', touched: false, dirty: this.raw !== this.initialRaw, issues: [] };
184
- }
185
- this.applyServerIssues();
186
- if (this.expanded)
187
- this.search('context');
188
- }
189
- applyServerIssues() {
190
- const issues = this.config.issues ?? [];
191
- if (issues.length)
192
- this.setValidation({ issues }, this.validation.touched);
193
- else
194
- this.resetValidation();
195
- }
196
- resetValidation() {
197
- this.validationRun?.abort();
198
- this.validation = { status: 'pristine', touched: this.validation.touched, dirty: this.raw !== this.initialRaw, issues: [] };
199
- this.validationChange?.emit(this.validation);
200
- }
201
- cancelLookup() {
202
- clearTimeout(this.lookupTimer);
203
- this.lookup?.abort();
204
- this.lookup = undefined;
205
- this.loading = false;
206
- }
207
- close() {
208
- this.expanded = false;
209
- this.active = -1;
210
- this.cancelLookup();
211
- this.surface?.hide();
212
- closeOverlay(this.overlayId);
213
- }
214
- open(reason = 'input') {
215
- if (this.disabled || this.readOnly)
216
- return;
217
- this.expanded = true;
218
- if (this.popup && this.field)
219
- this.popup.style.minWidth = `${this.field.getBoundingClientRect().width}px`;
220
- this.surface?.show();
221
- openOverlay({ id: this.overlayId, element: this.popup, relatedElements: [this.host], modal: false,
222
- requestClose: () => this.close() });
223
- this.search(reason);
224
- }
225
- search(reason) {
226
- this.cancelLookup();
227
- this.fullSet = reason === 'disclosure';
228
- this.active = -1;
229
- this.lookupError = '';
230
- const config = this.config;
231
- const query = this.fullSet ? '' : this.raw;
232
- const controller = new AbortController();
233
- this.lookup = controller;
234
- const apply = (options) => {
235
- if (controller.signal.aborted || !this.alive)
236
- return;
237
- for (const option of options)
238
- this.knownOptions.set(option.value, option);
239
- const selectedOption = this.selected === null ? undefined : this.knownOptions.get(this.selected);
240
- if (this.query === undefined && this.awaitingLabel === this.selected && selectedOption) {
241
- this.raw = selectedOption.label;
242
- this.display = this.raw;
243
- this.awaitingLabel = null;
244
- this.formattedRaw = undefined;
245
- this.resetValidation();
246
- }
247
- const ids = new Set();
248
- const selected = this.multiple ? this.selectedValues : undefined;
249
- this.rows = options.filter(option => {
250
- if (ids.has(option.id))
251
- return false;
252
- ids.add(option.id);
253
- if (this.fullSet)
254
- return true;
255
- // Multiple mode always hides already-selected items and, absent an owner
256
- // filter, falls back to a client label match (there is no unfiltered pass-through).
257
- if (selected)
258
- return !selected.has(option.value)
259
- && (config.filter ? config.filter(option, query, config.context)
260
- : option.label.toLocaleLowerCase().includes(query.toLocaleLowerCase()));
261
- return config.filter ? config.filter(option, query, config.context)
262
- : config.provider ? true : option.label.toLocaleLowerCase().includes(query.toLocaleLowerCase());
263
- });
264
- const groups = new Map();
265
- for (const row of this.rows) {
266
- const group = row.group ?? '';
267
- if (!groups.has(group))
268
- groups.set(group, []);
269
- groups.get(group).push(row);
270
- }
271
- this.rows = [...groups.values()].flat();
272
- this.loading = false;
273
- this.optionsChange.emit(this.rows);
274
- };
275
- if (!config.provider) {
276
- apply(config.options ?? []);
277
- return;
278
- }
279
- this.rows = [];
280
- this.loading = true;
281
- this.lookupTimer = setTimeout(async () => {
282
- try {
283
- apply(await config.provider({ query, context: config.context, signal: controller.signal, reason }));
284
- }
285
- catch (error) {
286
- if (controller.signal.aborted || !this.alive)
287
- return;
288
- this.loading = false;
289
- this.lookupError = error instanceof Error ? error.message : 'Unable to load suggestions.';
290
- }
291
- }, reason === 'disclosure' ? 0 : Math.max(0, config.debounce ?? 200));
292
- }
293
- get canCreate() {
294
- const candidates = this.config.options ? [...this.config.options, ...this.rows] : this.rows;
295
- return Boolean(this.config.allowCreate && this.raw.trim() && !this.loading && !this.lookupError
296
- && !candidates.some(row => row.label.toLocaleLowerCase() === this.raw.toLocaleLowerCase()));
297
- }
298
- format(timing) {
299
- if ((this.config.formatOn ?? 'blur') !== timing || !this.input)
300
- return;
301
- // Selection is now in display coordinates; do not map it as raw a second time.
302
- if (this.formattedRaw === this.raw && this.formattedWith === this.config.format)
303
- return;
304
- const result = formatEditingValue(this.raw, {
305
- start: this.input.selectionStart ?? this.raw.length, end: this.input.selectionEnd ?? this.raw.length,
306
- direction: this.input.selectionDirection ?? 'none',
307
- }, this.config.format);
308
- this.formattedRaw = this.raw;
309
- this.formattedWith = this.config.format;
310
- this.display = result.display;
311
- if (this.input.value !== result.display) {
312
- this.input.value = result.display;
313
- this.input.setSelectionRange(result.selection.start, result.selection.end, result.selection.direction);
314
- }
315
- }
316
- onInput = (event) => {
317
- // Composition updates remain entirely native until compositionend.
318
- if (this.composing || event.isComposing)
319
- return;
320
- this.awaitingLabel = null;
321
- this.formattedRaw = undefined;
322
- this.raw = this.input.value;
323
- this.display = this.raw;
324
- this.resetValidation();
325
- this.format('input');
326
- this.queryChange.emit({ query: this.raw, display: this.display, trigger: 'keyboard' });
327
- if (this.selected !== null)
328
- this.commit(null, this.raw, null, 'clear', 'keyboard');
329
- this.open();
330
- if (this.config.validateOn === 'input')
331
- void this.validate();
332
- queueMicrotask(() => {
333
- if (this.query !== undefined && this.query !== this.raw)
334
- this.syncQuery();
335
- });
336
- };
337
- commit(value, query, option, kind, trigger) {
338
- this.awaitingLabel = null;
339
- const queryChanged = query !== this.raw;
340
- if (this.value === undefined)
341
- this.selected = value;
342
- if (this.query === undefined && queryChanged) {
343
- this.raw = query;
344
- this.display = query;
345
- this.formattedRaw = undefined;
346
- }
347
- this.resetValidation();
348
- const detail = { value, query, option, kind, trigger };
349
- const proposal = { value, query };
350
- this.proposedChange = proposal;
351
- this.valueChange.emit(detail);
352
- if (queryChanged)
353
- this.queryChange.emit({ query, display: query, trigger });
354
- if (kind === 'create')
355
- this.createEntry.emit(detail);
356
- if (kind === 'free-entry')
357
- this.freeEntry.emit(detail);
358
- if (kind === 'invalidation')
359
- this.dependencyInvalidate.emit(detail);
360
- // Settle after all owner notifications (including Vue's queued update).
361
- // A retained prop does not fire a Stencil watcher, so rejection must be
362
- // reconciled explicitly while the proposal still identifies an edit echo.
363
- queueMicrotask(() => {
364
- if (this.proposedChange !== proposal)
365
- return;
366
- if (this.value !== undefined && this.value !== proposal.value)
367
- this.syncValue();
368
- if (this.query !== undefined && this.query !== proposal.query) {
369
- if (this.value === undefined) {
370
- this.selected = null;
371
- this.resetValidation();
372
- }
373
- this.syncQuery();
374
- }
375
- this.proposedChange = undefined;
376
- });
377
- }
378
- choose(index, trigger) {
379
- const option = this.rows[index];
380
- if (option?.disabled)
381
- return;
382
- if (this.multiple) {
383
- if (option)
384
- this.addSelectedItem(option, trigger);
385
- else if (this.canCreate && index === this.rows.length)
386
- this.createSelectedItem(this.raw.trim(), trigger);
387
- else
388
- return;
389
- this.setMultiQuery('', trigger);
390
- this.close();
391
- this.input?.focus();
392
- return;
393
- }
394
- if (option)
395
- this.commit(option.value, option.label, option, 'selection', trigger);
396
- else if (this.canCreate && index === this.rows.length)
397
- this.commit(null, this.raw, null, 'create', trigger);
398
- else
399
- return;
400
- this.close();
401
- this.input?.focus();
402
- if (this.config.validateOn !== 'submit')
403
- queueMicrotask(() => void this.validate());
404
- }
405
- // --- Multiple-mode helpers ---------------------------------------------
406
- emitItems(items) { this.valueChange.emit(items); }
407
- setMultiQuery(query, trigger) {
408
- if (this.query === undefined) {
409
- this.raw = query;
410
- this.display = query;
411
- this.formattedRaw = undefined;
412
- }
413
- if (this.input)
414
- this.input.value = query;
415
- this.queryChange.emit({ query, display: query, trigger });
416
- }
417
- addSelectedItem(option, trigger) {
418
- this.addItem.emit({ item: option, index: this.items.length, trigger });
419
- this.emitItems([...this.items, option]);
420
- }
421
- createSelectedItem(query, trigger) {
422
- if (!query)
423
- return;
424
- this.createItem.emit({ query, trigger });
425
- }
426
- commitQuery(trigger) {
427
- const query = this.raw.trim();
428
- if (!query)
429
- return;
430
- const normalized = query.toLocaleLowerCase();
431
- const option = this.rows.find(row => row.label.trim().toLocaleLowerCase() === normalized);
432
- if (option) {
433
- this.setMultiQuery('', trigger);
434
- this.addSelectedItem(option, trigger);
435
- }
436
- else if (this.config.allowCreate) {
437
- this.setMultiQuery('', trigger);
438
- this.createSelectedItem(query, trigger);
439
- }
440
- }
441
- removeItemAt(index, trigger) {
442
- const item = this.items[index];
443
- if (!item || item.disabled || this.disabled || this.readOnly)
444
- return;
445
- this.removeItem.emit({ item, index, trigger });
446
- this.emitItems(this.items.filter((_, position) => position !== index));
447
- requestAnimationFrame(() => {
448
- const buttons = this.host.shadowRoot?.querySelectorAll('[part="item"]') ?? [];
449
- const next = buttons[Math.min(index, buttons.length - 1)] ?? buttons[index - 1];
450
- if (next && next.dataset.value !== item.value)
451
- next.focus();
452
- else
453
- void this.focusInput();
454
- });
455
- }
456
- focusItem(index) {
457
- this.host.shadowRoot?.querySelectorAll('[part="item"]')[index]?.focus();
458
- }
459
- onItemKeyDown = (event, index) => {
460
- if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)
461
- return;
462
- if (event.key === 'ArrowLeft') {
463
- event.preventDefault();
464
- event.stopPropagation();
465
- this.focusItem(Math.max(0, index - 1));
466
- }
467
- else if (event.key === 'ArrowRight') {
468
- event.preventDefault();
469
- event.stopPropagation();
470
- if (index === this.items.length - 1)
471
- void this.focusInput();
472
- else
473
- this.focusItem(index + 1);
474
- }
475
- else if (event.key === 'Backspace' || event.key === 'Delete') {
476
- event.preventDefault();
477
- event.stopPropagation();
478
- this.removeItemAt(index, 'keyboard');
479
- }
480
- };
481
- handleMultipleKeydown(event) {
482
- if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)
483
- return false;
484
- if (this.tokenSeparators.includes(event.key)) {
485
- event.preventDefault();
486
- event.stopPropagation();
487
- this.commitQuery('keyboard');
488
- return true;
489
- }
490
- if (this.raw || (this.input?.selectionStart ?? 0) > 0)
491
- return false;
492
- if (event.key === 'ArrowLeft' && this.items.length) {
493
- event.preventDefault();
494
- this.focusItem(this.items.length - 1);
495
- return true;
496
- }
497
- if (event.key === 'Backspace' && this.items.length) {
498
- event.preventDefault();
499
- this.removeItemAt(this.items.length - 1, 'keyboard');
500
- return true;
501
- }
502
- return false;
503
- }
504
- move(key) {
505
- const indices = this.rows.flatMap((row, index) => row.disabled ? [] : [index]);
506
- if (this.canCreate)
507
- indices.push(this.rows.length);
508
- if (!indices.length)
509
- return;
510
- const current = indices.indexOf(this.active);
511
- const next = key === 'Home' ? 0 : key === 'End' ? indices.length - 1
512
- : key === 'ArrowDown' ? Math.min(current + 1, indices.length - 1)
513
- : current < 0 ? indices.length - 1 : Math.max(0, current - 1);
514
- this.active = indices[next];
515
- requestAnimationFrame(() => this.host.shadowRoot?.getElementById(`option-${this.active}`)?.scrollIntoView({ block: 'nearest' }));
516
- }
517
- onKeydown = (event) => {
518
- if (this.composing || event.isComposing || this.disabled || this.readOnly)
519
- return;
520
- if (this.multiple && this.handleMultipleKeydown(event))
521
- return;
522
- if (event.key === 'Escape' && this.expanded) {
523
- event.preventDefault();
524
- event.stopPropagation();
525
- this.close();
526
- return;
527
- }
528
- if (event.key === 'Tab') {
529
- this.close();
530
- return;
531
- }
532
- if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)
533
- return;
534
- if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
535
- event.preventDefault();
536
- if (!this.expanded)
537
- this.open('disclosure');
538
- this.move(event.key);
539
- }
540
- else if ((event.key === 'Home' || event.key === 'End') && this.expanded && this.active >= 0) {
541
- event.preventDefault();
542
- this.move(event.key);
543
- }
544
- else if (event.key === 'Enter' && this.expanded) {
545
- if (this.active >= 0) {
546
- event.preventDefault();
547
- this.choose(this.active, 'keyboard');
548
- }
549
- else if (this.config.allowFreeText) {
550
- event.preventDefault();
551
- this.commit(null, this.raw, null, 'free-entry', 'keyboard');
552
- this.close();
553
- }
554
- }
555
- };
556
- onFocusOut = (event) => {
557
- if (event.relatedTarget instanceof Node && this.host.shadowRoot?.contains(event.relatedTarget))
558
- return;
559
- this.close();
560
- this.format('blur');
561
- this.validation = { ...this.validation, touched: true };
562
- if (!this.multiple && this.config.allowFreeText && this.selected === null)
563
- this.commit(null, this.raw, null, 'free-entry', 'keyboard');
564
- if ((this.config.validateOn ?? 'blur') === 'blur')
565
- void this.validate();
566
- };
567
- setValidation(result, touched = this.validation.touched) {
568
- const blocking = result.issues.some(issue => issue.severity !== 'warning');
569
- this.validation = { status: blocking ? 'error' : result.issues.length ? 'warning' : 'valid',
570
- touched, dirty: this.raw !== this.initialRaw, ...result };
571
- this.validationChange?.emit(this.validation);
572
- }
573
- /** Validate for submission. Caller submits only non-pending, non-error output. */
574
- async validate() {
575
- this.validationRun?.abort();
576
- const run = new AbortController();
577
- this.validationRun = run;
578
- this.validation = { ...this.validation, status: 'pending', output: undefined };
579
- this.validationChange.emit(this.validation);
580
- try {
581
- const result = await validateField({ raw: this.raw, value: this.selected, context: this.config.context, signal: run.signal }, this.config);
582
- if (this.required && !this.raw.trim())
583
- result.issues = [...result.issues, { message: 'A value is required.' }];
584
- else if (this.raw && this.selected === null && !this.config.allowFreeText && !this.config.allowCreate)
585
- result.issues = [...result.issues, { message: 'Choose a suggestion.' }];
586
- if (result.issues.some(issue => issue.severity !== 'warning'))
587
- result.output = undefined;
588
- if (!run.signal.aborted && this.alive)
589
- this.setValidation(result);
590
- }
591
- catch { /* Aborted work never becomes current field state. */ }
592
- return this.validation;
593
- }
594
- /** Focus the native editing input from a composed control. */
595
- async focusInput() { this.input?.focus(); }
596
- render() {
597
- const description = [this.helpOpen ? 'help-text' : '', this.validation.issues.length ? 'validation' : ''].filter(Boolean).join(' ') || undefined;
598
- const status = this.loading ? 'Loading suggestions…' : this.lookupError || (this.expanded ? `${this.rows.length} suggestions available.` : '');
599
- const groups = [...new Set(this.rows.map(row => row.group ?? ''))];
600
- return h(Host, { key: 'fc4c0192d3be88d8c0199ae1bcca44232bd22351', "data-size": this.size, "data-validation": this.validation.status, onFocusout: this.onFocusOut }, h("label", { key: 'bdd0d244c6ef448978fa77aac3a2d3b71d713553', htmlFor: "input", part: "label", class: this.labelVisibility === 'sr-only' ? 'sr-only' : undefined }, this.label, this.required ? ' *' : ''), h("div", { key: 'afb3972aab52171a3b25ede863c31059e56f5d91', class: "field", part: "field", ref: element => this.field = element, onClick: event => {
601
- if (!event.composedPath().some(node => node instanceof HTMLButtonElement))
602
- this.input?.focus();
603
- } }, h("slot", { key: '65e4e201d6c11cd2638e392e1298662de7ba4d57', name: "start" }), this.multiple && h("div", { key: 'b80b5b85fa0540139b9756fcc494aef9df245c15', class: "items", role: "group", "aria-label": `Selected ${this.label}` }, this.items.map((item, index) => h("button", { type: "button", part: "item", class: "item", "data-value": item.value, tabIndex: -1, disabled: this.disabled || this.readOnly || item.disabled, "aria-label": `${item.label}, press Delete or Backspace to remove`, onKeyDown: event => this.onItemKeyDown(event, index) }, h("slot", { name: `item-${item.id}` }, h("ui-chip", { appearance: "pill" }, item.label))))), h("input", { key: '64f76055ae412cc87119270eec10c69000a72563', id: "input", ref: element => this.input = element, role: "combobox", "aria-autocomplete": "list", "aria-expanded": String(this.expanded), "aria-controls": "listbox", "aria-activedescendant": this.expanded && this.active >= 0 ? `option-${this.active}` : undefined, "aria-describedby": description, "aria-invalid": String(this.validation.status === 'error'), "aria-busy": String(this.validation.status === 'pending'), value: this.display, placeholder: this.placeholder, name: this.name || undefined, disabled: this.disabled, readOnly: this.readOnly, required: this.required, autoComplete: "off", part: "input", onInput: this.onInput, onKeyDown: this.onKeydown, onCompositionstart: () => this.composing = true, onCompositionend: () => { this.composing = false; this.onInput(new InputEvent('input')); } }), this.clearable && h("button", { key: 'eac4c18dadcea92065af4ecd871d925ef1248d47', type: "button", part: "affordance", "aria-label": `Clear ${this.label}`, disabled: this.disabled || this.readOnly, onClick: () => { this.commit(null, '', null, 'clear', 'pointer'); this.close(); this.input?.focus(); } }, "\u00D7"), this.help && h("button", { key: '9a559d49a495ead3dbf159f170c594e0aaa0d0d0', id: "help", type: "button", part: "affordance", "aria-label": `Help for ${this.label}`, disabled: this.disabled }, h("span", { key: '73940e568b976f85399d5baa5e247a4a606d0039', "aria-hidden": "true" }, "?")), this.disclosure && h("button", { key: '30dd6746ffb121888a4c4fb6df54720906badf78', type: "button", part: "affordance", "aria-label": `Suggestions for ${this.label}`, "aria-controls": "listbox", "aria-expanded": String(this.expanded), disabled: this.disabled || this.readOnly, onClick: () => {
604
- if (this.expanded)
605
- this.close();
606
- else
607
- this.open('disclosure');
608
- this.input?.focus();
609
- } }, h("span", { key: '7d3b10a765ee0a6c40d7b0b49e98c676a5837944', "aria-hidden": "true" }, "\u2304"))), this.help && h("ui-tooltip", { key: 'efff00f45dc281b727789eb2aa84ff772bb5c925', id: "help-text", for: "help", toggleOnClick: true, onOpen: () => this.helpOpen = true, onClose: () => this.helpOpen = false }, this.help), h("div", { key: '770bc12b873026b571bd3ae2a80416e8af52b8d4', class: "popup", part: "popup", hidden: !this.expanded, ref: element => this.popup = element }, h("div", { key: 'ed48c8dd8b672a577d567ca5e795b8a53fde2761', id: "listbox", role: "listbox", "aria-label": `${this.label} suggestions`, "aria-busy": String(this.loading) }, groups.map(group => h("div", { role: group ? 'group' : 'presentation', "aria-label": group || undefined }, group && h("div", { class: "group", part: "group" }, group), this.rows.map((row, index) => (row.group ?? '') !== group ? null : h("div", { id: `option-${index}`, role: "option", "aria-selected": String(this.selected === row.value), "aria-disabled": String(Boolean(row.disabled)), "data-active": this.active === index ? '' : undefined, part: "option", class: "option", onPointerDown: event => event.preventDefault(), onClick: () => this.choose(index, 'pointer') }, h("slot", { name: `option-${row.id}` }, h("span", { class: "primary", part: "option-primary" }, row.label), row.description && h("span", { class: "secondary", part: "option-secondary" }, row.description)))))), this.canCreate && h("div", { key: '43215f449bbccde407ef818cee473f69870f6f8c', id: `option-${this.rows.length}`, role: "option", "aria-selected": "false", class: "option", part: "option", "data-active": this.active === this.rows.length ? '' : undefined, onPointerDown: event => event.preventDefault(), onClick: () => this.choose(this.rows.length, 'pointer') }, h("slot", { key: '3ff70ff3ab8e24afc369a26e8474e7d1220ed6eb', name: "create" }, "Create \u201C", this.raw, "\u201D"))), this.loading ? h("div", { class: "message" }, h("slot", { name: "loading" }, "Loading suggestions\u2026"))
610
- : this.lookupError ? h("div", { class: "message" }, h("slot", { name: "error" }, this.lookupError))
611
- : !this.rows.length && !this.canCreate ? h("div", { class: "message" }, h("slot", { name: "empty" }, "No suggestions.")) : null, h("slot", { key: '8b1fbd4f5c372393d294d8c218ae1785e6b0334f', name: "footer" })), h("div", { key: '18e68687f04e35535edee363683523ce6bbb0291', id: "validation", class: "message", part: "validation", hidden: !this.validation.issues.length }, this.validation.issues.map(issue => h("div", null, issue.message))), h("div", { key: 'e4a7db06abcfaf08b8ac592107531a13ef3a5897', class: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" }, status, " ", this.validation.status === 'pending' ? 'Checking value…' : this.validation.issues.map(issue => issue.message).join(' ')));
612
- }
613
- static get is() { return "ui-combobox"; }
614
- static get encapsulation() { return "shadow"; }
615
- static get originalStyleUrls() {
616
- return {
617
- "$": ["ui-combobox.css"]
618
- };
619
- }
620
- static get styleUrls() {
621
- return {
622
- "$": ["ui-combobox.css"]
623
- };
624
- }
625
- static get properties() {
626
- return {
627
- "label": {
628
- "type": "string",
629
- "mutable": false,
630
- "complexType": {
631
- "original": "string",
632
- "resolved": "string",
633
- "references": {}
634
- },
635
- "required": false,
636
- "optional": false,
637
- "docs": {
638
- "tags": [],
639
- "text": "Accessible visible label, associated with the native text input."
640
- },
641
- "getter": false,
642
- "setter": false,
643
- "reflect": false,
644
- "attribute": "label",
645
- "defaultValue": "''"
646
- },
647
- "placeholder": {
648
- "type": "string",
649
- "mutable": false,
650
- "complexType": {
651
- "original": "string",
652
- "resolved": "string",
653
- "references": {}
654
- },
655
- "required": false,
656
- "optional": false,
657
- "docs": {
658
- "tags": [],
659
- "text": ""
660
- },
661
- "getter": false,
662
- "setter": false,
663
- "reflect": false,
664
- "attribute": "placeholder",
665
- "defaultValue": "''"
666
- },
667
- "name": {
668
- "type": "string",
669
- "mutable": false,
670
- "complexType": {
671
- "original": "string",
672
- "resolved": "string",
673
- "references": {}
674
- },
675
- "required": false,
676
- "optional": false,
677
- "docs": {
678
- "tags": [],
679
- "text": ""
680
- },
681
- "getter": false,
682
- "setter": false,
683
- "reflect": false,
684
- "attribute": "name",
685
- "defaultValue": "''"
686
- },
687
- "value": {
688
- "type": "string",
689
- "mutable": false,
690
- "complexType": {
691
- "original": "string | null | readonly MultiComboboxItem[]",
692
- "resolved": "readonly MultiComboboxItem[] | string",
693
- "references": {
694
- "MultiComboboxItem": {
695
- "location": "import",
696
- "path": "../../field/multi-combobox",
697
- "id": "src/field/multi-combobox.ts::MultiComboboxItem",
698
- "referenceLocation": "MultiComboboxItem"
699
- }
700
- }
701
- },
702
- "required": false,
703
- "optional": true,
704
- "docs": {
705
- "tags": [],
706
- "text": "Controlled canonical value. Undefined selects uncontrolled mode; null means no selection.\nWith `multiple`, this is the controlled list of selected items instead."
707
- },
708
- "getter": false,
709
- "setter": false,
710
- "reflect": false,
711
- "attribute": "value"
712
- },
713
- "defaultValue": {
714
- "type": "string",
715
- "mutable": false,
716
- "complexType": {
717
- "original": "string",
718
- "resolved": "string",
719
- "references": {}
720
- },
721
- "required": false,
722
- "optional": true,
723
- "docs": {
724
- "tags": [],
725
- "text": ""
726
- },
727
- "getter": false,
728
- "setter": false,
729
- "reflect": false,
730
- "attribute": "default-value"
731
- },
732
- "multiple": {
733
- "type": "boolean",
734
- "mutable": false,
735
- "complexType": {
736
- "original": "boolean",
737
- "resolved": "boolean",
738
- "references": {}
739
- },
740
- "required": false,
741
- "optional": false,
742
- "docs": {
743
- "tags": [],
744
- "text": "Render selected values as removable chips before the cursor. `value` becomes the item list."
745
- },
746
- "getter": false,
747
- "setter": false,
748
- "reflect": true,
749
- "attribute": "multiple",
750
- "defaultValue": "false"
751
- },
752
- "tokenSeparators": {
753
- "type": "unknown",
754
- "mutable": false,
755
- "complexType": {
756
- "original": "readonly string[]",
757
- "resolved": "readonly string[]",
758
- "references": {}
759
- },
760
- "required": false,
761
- "optional": false,
762
- "docs": {
763
- "tags": [],
764
- "text": "Characters that commit the current query and leave the input ready for the next item (multiple only)."
765
- },
766
- "getter": false,
767
- "setter": false,
768
- "defaultValue": "[]"
769
- },
770
- "query": {
771
- "type": "string",
772
- "mutable": false,
773
- "complexType": {
774
- "original": "string",
775
- "resolved": "string",
776
- "references": {}
777
- },
778
- "required": false,
779
- "optional": true,
780
- "docs": {
781
- "tags": [],
782
- "text": "Controlled raw editing text; independent of canonical selection."
783
- },
784
- "getter": false,
785
- "setter": false,
786
- "reflect": false,
787
- "attribute": "query"
788
- },
789
- "defaultQuery": {
790
- "type": "string",
791
- "mutable": false,
792
- "complexType": {
793
- "original": "string",
794
- "resolved": "string",
795
- "references": {}
796
- },
797
- "required": false,
798
- "optional": false,
799
- "docs": {
800
- "tags": [],
801
- "text": ""
802
- },
803
- "getter": false,
804
- "setter": false,
805
- "reflect": false,
806
- "attribute": "default-query",
807
- "defaultValue": "''"
808
- },
809
- "config": {
810
- "type": "unknown",
811
- "mutable": false,
812
- "complexType": {
813
- "original": "ComboboxConfig",
814
- "resolved": "ComboboxConfig",
815
- "references": {
816
- "ComboboxConfig": {
817
- "location": "import",
818
- "path": "../../field/combobox",
819
- "id": "src/field/combobox.ts::ComboboxConfig",
820
- "referenceLocation": "ComboboxConfig"
821
- }
822
- }
823
- },
824
- "required": false,
825
- "optional": false,
826
- "docs": {
827
- "tags": [],
828
- "text": "Immutable configuration; replace the object/context when dependencies change."
829
- },
830
- "getter": false,
831
- "setter": false,
832
- "defaultValue": "{}"
833
- },
834
- "disabled": {
835
- "type": "boolean",
836
- "mutable": false,
837
- "complexType": {
838
- "original": "boolean",
839
- "resolved": "boolean",
840
- "references": {}
841
- },
842
- "required": false,
843
- "optional": false,
844
- "docs": {
845
- "tags": [],
846
- "text": ""
847
- },
848
- "getter": false,
849
- "setter": false,
850
- "reflect": false,
851
- "attribute": "disabled",
852
- "defaultValue": "false"
853
- },
854
- "readOnly": {
855
- "type": "boolean",
856
- "mutable": false,
857
- "complexType": {
858
- "original": "boolean",
859
- "resolved": "boolean",
860
- "references": {}
861
- },
862
- "required": false,
863
- "optional": false,
864
- "docs": {
865
- "tags": [],
866
- "text": ""
867
- },
868
- "getter": false,
869
- "setter": false,
870
- "reflect": false,
871
- "attribute": "readonly",
872
- "defaultValue": "false"
873
- },
874
- "required": {
875
- "type": "boolean",
876
- "mutable": false,
877
- "complexType": {
878
- "original": "boolean",
879
- "resolved": "boolean",
880
- "references": {}
881
- },
882
- "required": false,
883
- "optional": false,
884
- "docs": {
885
- "tags": [],
886
- "text": ""
887
- },
888
- "getter": false,
889
- "setter": false,
890
- "reflect": false,
891
- "attribute": "required",
892
- "defaultValue": "false"
893
- },
894
- "size": {
895
- "type": "string",
896
- "mutable": false,
897
- "complexType": {
898
- "original": "'sm' | 'md'",
899
- "resolved": "\"md\" | \"sm\"",
900
- "references": {}
901
- },
902
- "required": false,
903
- "optional": false,
904
- "docs": {
905
- "tags": [],
906
- "text": ""
907
- },
908
- "getter": false,
909
- "setter": false,
910
- "reflect": false,
911
- "attribute": "size",
912
- "defaultValue": "'md'"
913
- },
914
- "labelVisibility": {
915
- "type": "string",
916
- "mutable": false,
917
- "complexType": {
918
- "original": "'visible' | 'sr-only'",
919
- "resolved": "\"sr-only\" | \"visible\"",
920
- "references": {}
921
- },
922
- "required": false,
923
- "optional": false,
924
- "docs": {
925
- "tags": [],
926
- "text": "Keep the native label accessible while allowing compact composed controls."
927
- },
928
- "getter": false,
929
- "setter": false,
930
- "reflect": false,
931
- "attribute": "label-visibility",
932
- "defaultValue": "'visible'"
933
- },
934
- "disclosure": {
935
- "type": "boolean",
936
- "mutable": false,
937
- "complexType": {
938
- "original": "boolean",
939
- "resolved": "boolean",
940
- "references": {}
941
- },
942
- "required": false,
943
- "optional": false,
944
- "docs": {
945
- "tags": [],
946
- "text": ""
947
- },
948
- "getter": false,
949
- "setter": false,
950
- "reflect": false,
951
- "attribute": "disclosure",
952
- "defaultValue": "false"
953
- },
954
- "clearable": {
955
- "type": "boolean",
956
- "mutable": false,
957
- "complexType": {
958
- "original": "boolean",
959
- "resolved": "boolean",
960
- "references": {}
961
- },
962
- "required": false,
963
- "optional": false,
964
- "docs": {
965
- "tags": [],
966
- "text": ""
967
- },
968
- "getter": false,
969
- "setter": false,
970
- "reflect": false,
971
- "attribute": "clearable",
972
- "defaultValue": "false"
973
- },
974
- "help": {
975
- "type": "string",
976
- "mutable": false,
977
- "complexType": {
978
- "original": "string",
979
- "resolved": "string",
980
- "references": {}
981
- },
982
- "required": false,
983
- "optional": false,
984
- "docs": {
985
- "tags": [],
986
- "text": "Optional description shown by the connected question-mark button."
987
- },
988
- "getter": false,
989
- "setter": false,
990
- "reflect": false,
991
- "attribute": "help",
992
- "defaultValue": "''"
993
- }
994
- };
995
- }
996
- static get states() {
997
- return {
998
- "raw": {},
999
- "display": {},
1000
- "selected": {},
1001
- "expanded": {},
1002
- "rows": {},
1003
- "active": {},
1004
- "loading": {},
1005
- "helpOpen": {},
1006
- "lookupError": {},
1007
- "validation": {}
1008
- };
1009
- }
1010
- static get events() {
1011
- return [{
1012
- "method": "queryChange",
1013
- "name": "query-change",
1014
- "bubbles": true,
1015
- "cancelable": true,
1016
- "composed": true,
1017
- "docs": {
1018
- "tags": [],
1019
- "text": ""
1020
- },
1021
- "complexType": {
1022
- "original": "{ query: string; display: string; trigger: 'keyboard' | 'pointer' | 'programmatic' }",
1023
- "resolved": "{ query: string; display: string; trigger: \"keyboard\" | \"pointer\" | \"programmatic\"; }",
1024
- "references": {}
1025
- }
1026
- }, {
1027
- "method": "valueChange",
1028
- "name": "value-change",
1029
- "bubbles": true,
1030
- "cancelable": true,
1031
- "composed": true,
1032
- "docs": {
1033
- "tags": [],
1034
- "text": "Single mode: the ComboboxChange. Multiple mode: the full current item list on any change."
1035
- },
1036
- "complexType": {
1037
- "original": "ComboboxChange | readonly MultiComboboxItem[]",
1038
- "resolved": "ComboboxChange | readonly MultiComboboxItem[]",
1039
- "references": {
1040
- "ComboboxChange": {
1041
- "location": "import",
1042
- "path": "../../field/combobox",
1043
- "id": "src/field/combobox.ts::ComboboxChange",
1044
- "referenceLocation": "ComboboxChange"
1045
- },
1046
- "MultiComboboxItem": {
1047
- "location": "import",
1048
- "path": "../../field/multi-combobox",
1049
- "id": "src/field/multi-combobox.ts::MultiComboboxItem",
1050
- "referenceLocation": "MultiComboboxItem"
1051
- }
1052
- }
1053
- }
1054
- }, {
1055
- "method": "freeEntry",
1056
- "name": "free-entry",
1057
- "bubbles": true,
1058
- "cancelable": true,
1059
- "composed": true,
1060
- "docs": {
1061
- "tags": [],
1062
- "text": ""
1063
- },
1064
- "complexType": {
1065
- "original": "ComboboxChange",
1066
- "resolved": "ComboboxChange",
1067
- "references": {
1068
- "ComboboxChange": {
1069
- "location": "import",
1070
- "path": "../../field/combobox",
1071
- "id": "src/field/combobox.ts::ComboboxChange",
1072
- "referenceLocation": "ComboboxChange"
1073
- }
1074
- }
1075
- }
1076
- }, {
1077
- "method": "createEntry",
1078
- "name": "create-entry",
1079
- "bubbles": true,
1080
- "cancelable": true,
1081
- "composed": true,
1082
- "docs": {
1083
- "tags": [],
1084
- "text": ""
1085
- },
1086
- "complexType": {
1087
- "original": "ComboboxChange",
1088
- "resolved": "ComboboxChange",
1089
- "references": {
1090
- "ComboboxChange": {
1091
- "location": "import",
1092
- "path": "../../field/combobox",
1093
- "id": "src/field/combobox.ts::ComboboxChange",
1094
- "referenceLocation": "ComboboxChange"
1095
- }
1096
- }
1097
- }
1098
- }, {
1099
- "method": "dependencyInvalidate",
1100
- "name": "dependency-invalidate",
1101
- "bubbles": true,
1102
- "cancelable": true,
1103
- "composed": true,
1104
- "docs": {
1105
- "tags": [],
1106
- "text": ""
1107
- },
1108
- "complexType": {
1109
- "original": "ComboboxChange",
1110
- "resolved": "ComboboxChange",
1111
- "references": {
1112
- "ComboboxChange": {
1113
- "location": "import",
1114
- "path": "../../field/combobox",
1115
- "id": "src/field/combobox.ts::ComboboxChange",
1116
- "referenceLocation": "ComboboxChange"
1117
- }
1118
- }
1119
- }
1120
- }, {
1121
- "method": "validationChange",
1122
- "name": "validation-change",
1123
- "bubbles": true,
1124
- "cancelable": true,
1125
- "composed": true,
1126
- "docs": {
1127
- "tags": [],
1128
- "text": ""
1129
- },
1130
- "complexType": {
1131
- "original": "ComboboxValidationState",
1132
- "resolved": "ComboboxValidationState",
1133
- "references": {
1134
- "ComboboxValidationState": {
1135
- "location": "import",
1136
- "path": "../../field/combobox",
1137
- "id": "src/field/combobox.ts::ComboboxValidationState",
1138
- "referenceLocation": "ComboboxValidationState"
1139
- }
1140
- }
1141
- }
1142
- }, {
1143
- "method": "optionsChange",
1144
- "name": "options-change",
1145
- "bubbles": true,
1146
- "cancelable": true,
1147
- "composed": true,
1148
- "docs": {
1149
- "tags": [],
1150
- "text": "Supplies the current result rows for framework-owned rich slots."
1151
- },
1152
- "complexType": {
1153
- "original": "readonly ComboboxOption[]",
1154
- "resolved": "readonly ComboboxOption<unknown>[]",
1155
- "references": {
1156
- "ComboboxOption": {
1157
- "location": "import",
1158
- "path": "../../field/combobox",
1159
- "id": "src/field/combobox.ts::ComboboxOption",
1160
- "referenceLocation": "ComboboxOption"
1161
- }
1162
- }
1163
- }
1164
- }, {
1165
- "method": "addItem",
1166
- "name": "add-item",
1167
- "bubbles": true,
1168
- "cancelable": true,
1169
- "composed": true,
1170
- "docs": {
1171
- "tags": [],
1172
- "text": "Multiple mode: a suggestion or exact-match token was committed as a new item."
1173
- },
1174
- "complexType": {
1175
- "original": "MultiComboboxItemChange",
1176
- "resolved": "MultiComboboxItemChange",
1177
- "references": {
1178
- "MultiComboboxItemChange": {
1179
- "location": "import",
1180
- "path": "../../field/multi-combobox",
1181
- "id": "src/field/multi-combobox.ts::MultiComboboxItemChange",
1182
- "referenceLocation": "MultiComboboxItemChange"
1183
- }
1184
- }
1185
- }
1186
- }, {
1187
- "method": "removeItem",
1188
- "name": "remove-item",
1189
- "bubbles": true,
1190
- "cancelable": true,
1191
- "composed": true,
1192
- "docs": {
1193
- "tags": [],
1194
- "text": "Multiple mode: a selected item was removed via chip keyboard controls."
1195
- },
1196
- "complexType": {
1197
- "original": "MultiComboboxItemChange",
1198
- "resolved": "MultiComboboxItemChange",
1199
- "references": {
1200
- "MultiComboboxItemChange": {
1201
- "location": "import",
1202
- "path": "../../field/multi-combobox",
1203
- "id": "src/field/multi-combobox.ts::MultiComboboxItemChange",
1204
- "referenceLocation": "MultiComboboxItemChange"
1205
- }
1206
- }
1207
- }
1208
- }, {
1209
- "method": "createItem",
1210
- "name": "create-item",
1211
- "bubbles": true,
1212
- "cancelable": true,
1213
- "composed": true,
1214
- "docs": {
1215
- "tags": [],
1216
- "text": "Multiple mode: an unmatched query was submitted for creation."
1217
- },
1218
- "complexType": {
1219
- "original": "MultiComboboxCreate",
1220
- "resolved": "MultiComboboxCreate",
1221
- "references": {
1222
- "MultiComboboxCreate": {
1223
- "location": "import",
1224
- "path": "../../field/multi-combobox",
1225
- "id": "src/field/multi-combobox.ts::MultiComboboxCreate",
1226
- "referenceLocation": "MultiComboboxCreate"
1227
- }
1228
- }
1229
- }
1230
- }];
1231
- }
1232
- static get methods() {
1233
- return {
1234
- "validate": {
1235
- "complexType": {
1236
- "signature": "() => Promise<ComboboxValidationState>",
1237
- "parameters": [],
1238
- "references": {
1239
- "Promise": {
1240
- "location": "global",
1241
- "id": "global::Promise"
1242
- },
1243
- "ComboboxValidationState": {
1244
- "location": "import",
1245
- "path": "../../field/combobox",
1246
- "id": "src/field/combobox.ts::ComboboxValidationState",
1247
- "referenceLocation": "ComboboxValidationState"
1248
- }
1249
- },
1250
- "return": "Promise<ComboboxValidationState>"
1251
- },
1252
- "docs": {
1253
- "text": "Validate for submission. Caller submits only non-pending, non-error output.",
1254
- "tags": []
1255
- }
1256
- },
1257
- "focusInput": {
1258
- "complexType": {
1259
- "signature": "() => Promise<void>",
1260
- "parameters": [],
1261
- "references": {
1262
- "Promise": {
1263
- "location": "global",
1264
- "id": "global::Promise"
1265
- }
1266
- },
1267
- "return": "Promise<void>"
1268
- },
1269
- "docs": {
1270
- "text": "Focus the native editing input from a composed control.",
1271
- "tags": []
1272
- }
1273
- }
1274
- };
1275
- }
1276
- static get elementRef() { return "host"; }
1277
- static get watchers() {
1278
- return [{
1279
- "propName": "value",
1280
- "methodName": "syncValue"
1281
- }, {
1282
- "propName": "query",
1283
- "methodName": "syncQuery"
1284
- }, {
1285
- "propName": "disabled",
1286
- "methodName": "syncDisabled"
1287
- }, {
1288
- "propName": "readOnly",
1289
- "methodName": "syncDisabled"
1290
- }, {
1291
- "propName": "config",
1292
- "methodName": "syncConfig"
1293
- }];
1294
- }
1295
- }