@threadlabs/looma 0.47.6 → 0.49.0

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 (932) hide show
  1. package/README.md +39 -16
  2. package/components/shared/input-modality.d.ts +2 -0
  3. package/components/shared/input-modality.js +2 -0
  4. package/components/shared/overlay.js +9 -0
  5. package/components/ui-compact-content/ui-compact-content.html +8 -0
  6. package/components/ui-compact-content/ui-compact-content.js +1 -0
  7. package/components/ui-compact-editor/ui-compact-editor.css +39 -0
  8. package/components/ui-compact-editor/ui-compact-editor.html +22 -0
  9. package/components/ui-compact-editor/ui-compact-editor.js +30 -0
  10. package/components/ui-compact-mark/ui-compact-mark.html +26 -0
  11. package/components/ui-compact-node/ui-compact-node.html +14 -0
  12. package/components/ui-dialog/ui-dialog.html +4 -1
  13. package/components/ui-editor/ui-editor.css +531 -0
  14. package/components/ui-editor/ui-editor.html +399 -0
  15. package/components/ui-editor/ui-editor.js +87 -0
  16. package/components/ui-editor-chip-editor/ui-editor-chip-editor.html +2 -1
  17. package/components/ui-editor-chip-editor/ui-editor-chip-editor.js +6 -0
  18. package/components/ui-editor-formatting-tools/ui-editor-formatting-tools.html +59 -0
  19. package/components/ui-editor-formatting-tools/ui-editor-formatting-tools.js +44 -0
  20. package/components/ui-editor-link-form/ui-editor-link-form.html +1 -0
  21. package/components/ui-editor-link-form/ui-editor-link-form.js +7 -0
  22. package/components/ui-editor-surface/ui-editor-surface.css +109 -0
  23. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +1 -1
  24. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +7 -4
  25. package/components/ui-menu/ui-menu.html +4 -1
  26. package/components/ui-meter/ui-meter.html +7 -7
  27. package/components/ui-popover/ui-popover.html +4 -1
  28. package/components/ui-radio-group/ui-radio-group.html +3 -1
  29. package/components/ui-radio-group/ui-radio-group.js +5 -0
  30. package/dist/index.js +57 -53
  31. package/docs/README.md +5 -7
  32. package/docs/catalog.json +933 -84
  33. package/docs/catalog.mjs +2 -2
  34. package/docs/framework-examples.d.mts +7 -0
  35. package/docs/framework-examples.mjs +89 -0
  36. package/docs/index.d.ts +1 -1
  37. package/docs/render.mjs +3 -40
  38. package/editor/chunks/content.js +29 -0
  39. package/{vue/chunks/compact.js → editor/chunks/dist.js} +103 -230
  40. package/editor/chunks/expressmark.js +1 -24
  41. package/editor/chunks/extensions.js +63 -455
  42. package/editor/chunks/session.js +61 -0
  43. package/editor/chunks/{ui.js → table-overlay.js} +51 -1
  44. package/editor/compact.d.ts +22 -0
  45. package/editor/compact.js +63 -0
  46. package/editor/components.css +3699 -0
  47. package/editor/document-session.d.ts +274 -0
  48. package/editor/extensions/index.js +2 -2
  49. package/editor/index.d.ts +4 -0
  50. package/editor/index.js +15578 -4
  51. package/editor/session.d.ts +1 -1
  52. package/editor/toolbar-tooltip.d.ts +5 -1
  53. package/editor/ui.js +1 -2
  54. package/package.json +31 -46
  55. package/styles/ui-action-bar.css +1 -1
  56. package/styles/ui-affordance-scope.css +1 -1
  57. package/styles/ui-avatar-group.css +1 -1
  58. package/styles/ui-avatar.css +1 -1
  59. package/styles/ui-badge.css +1 -1
  60. package/styles/ui-breadcrumb-item.css +1 -1
  61. package/styles/ui-breadcrumbs.css +1 -1
  62. package/styles/ui-button.css +1 -1
  63. package/styles/ui-callout.css +1 -1
  64. package/styles/ui-card-group.css +1 -1
  65. package/styles/ui-card.css +1 -1
  66. package/styles/ui-checkbox.css +1 -1
  67. package/styles/ui-cluster.css +1 -1
  68. package/styles/ui-color-picker.css +1 -1
  69. package/styles/ui-combobox.css +1 -1
  70. package/styles/ui-compact-content.css +1 -0
  71. package/styles/ui-compact-editor.css +1 -0
  72. package/styles/ui-compact-mark.css +1 -0
  73. package/styles/ui-compact-node.css +1 -0
  74. package/styles/ui-container.css +1 -1
  75. package/styles/ui-context-menu.css +1 -1
  76. package/styles/ui-cover.css +1 -1
  77. package/styles/ui-curve-editor.css +1 -1
  78. package/styles/ui-cycle-button.css +1 -1
  79. package/styles/ui-description-item.css +1 -1
  80. package/styles/ui-description-list.css +1 -1
  81. package/styles/ui-dialog.css +9 -3
  82. package/styles/ui-disclosure.css +1 -1
  83. package/styles/ui-editable.css +1 -1
  84. package/styles/ui-editor-block-actions.css +1 -1
  85. package/styles/ui-editor-chip-editor.css +1 -1
  86. package/styles/ui-editor-code-language.css +1 -1
  87. package/styles/ui-editor-footnote-editor.css +1 -1
  88. package/styles/ui-editor-formatting-tools.css +1 -0
  89. package/styles/ui-editor-image-toolbar.css +1 -1
  90. package/styles/ui-editor-insert-table-grid.css +1 -1
  91. package/styles/ui-editor-link-card.css +1 -1
  92. package/styles/ui-editor-link-form.css +1 -1
  93. package/styles/ui-editor-mention-menu-item.css +1 -1
  94. package/styles/ui-editor-mention-menu.css +1 -1
  95. package/styles/ui-editor-slash-menu-group.css +1 -1
  96. package/styles/ui-editor-slash-menu-item.css +1 -1
  97. package/styles/ui-editor-slash-menu.css +1 -1
  98. package/styles/ui-editor-surface.css +1 -1
  99. package/styles/ui-editor-table-context-menu.css +1 -1
  100. package/styles/ui-editor-table-overlay.css +1 -1
  101. package/styles/ui-editor-table-toolbar.css +1 -1
  102. package/styles/ui-editor-toolbar.css +1 -1
  103. package/styles/ui-editor.css +1 -0
  104. package/styles/ui-floating-action-button.css +1 -1
  105. package/styles/ui-form-field.css +1 -1
  106. package/styles/ui-grid.css +1 -1
  107. package/styles/ui-icon-button.css +1 -1
  108. package/styles/ui-icon.css +1 -1
  109. package/styles/ui-image.css +1 -1
  110. package/styles/ui-input-group.css +1 -1
  111. package/styles/ui-input.css +1 -1
  112. package/styles/ui-light-editor.css +1 -1
  113. package/styles/ui-list-item.css +1 -1
  114. package/styles/ui-list.css +1 -1
  115. package/styles/ui-listbox.css +1 -1
  116. package/styles/ui-menu-group.css +1 -1
  117. package/styles/ui-menu-item.css +1 -1
  118. package/styles/ui-menu.css +5 -2
  119. package/styles/ui-meter.css +8 -8
  120. package/styles/ui-nav-item.css +1 -1
  121. package/styles/ui-number-input.css +1 -1
  122. package/styles/ui-page-header.css +1 -1
  123. package/styles/ui-pagination.css +1 -1
  124. package/styles/ui-popover.css +5 -2
  125. package/styles/ui-radio-group.css +1 -1
  126. package/styles/ui-radio.css +1 -1
  127. package/styles/ui-reel.css +1 -1
  128. package/styles/ui-scroll-area.css +1 -1
  129. package/styles/ui-search-result-row.css +1 -1
  130. package/styles/ui-search-shell.css +1 -1
  131. package/styles/ui-section.css +1 -1
  132. package/styles/ui-select.css +1 -1
  133. package/styles/ui-separator.css +1 -1
  134. package/styles/ui-sidebar.css +1 -1
  135. package/styles/ui-site-header.css +1 -1
  136. package/styles/ui-skeleton.css +1 -1
  137. package/styles/ui-slider.css +1 -1
  138. package/styles/ui-spinner.css +1 -1
  139. package/styles/ui-stack.css +1 -1
  140. package/styles/ui-status-message.css +1 -1
  141. package/styles/ui-swatch.css +1 -1
  142. package/styles/ui-switch.css +1 -1
  143. package/styles/ui-switcher.css +1 -1
  144. package/styles/ui-table.css +1 -1
  145. package/styles/ui-tabs.css +1 -1
  146. package/styles/ui-text.css +1 -1
  147. package/styles/ui-textarea.css +1 -1
  148. package/styles/ui-toast-region.css +1 -1
  149. package/styles/ui-toast.css +1 -1
  150. package/styles/ui-tooltip.css +1 -1
  151. package/styles/ui-top-bar.css +1 -1
  152. package/styles/ui-tree-item.css +1 -1
  153. package/styles/ui-tree.css +1 -1
  154. package/vanilla/UiActionBar.d.ts +1 -1
  155. package/vanilla/UiActionBar.js +1 -1
  156. package/vanilla/UiAffordanceScope.d.ts +1 -1
  157. package/vanilla/UiAffordanceScope.js +1 -1
  158. package/vanilla/UiAvatar.d.ts +1 -1
  159. package/vanilla/UiAvatar.js +1 -1
  160. package/vanilla/UiAvatarGroup.d.ts +1 -1
  161. package/vanilla/UiAvatarGroup.js +1 -1
  162. package/vanilla/UiBadge.d.ts +1 -1
  163. package/vanilla/UiBadge.js +1 -1
  164. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  165. package/vanilla/UiBreadcrumbItem.js +1 -1
  166. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  167. package/vanilla/UiBreadcrumbs.js +1 -1
  168. package/vanilla/UiButton.d.ts +1 -1
  169. package/vanilla/UiButton.js +1 -1
  170. package/vanilla/UiCallout.d.ts +1 -1
  171. package/vanilla/UiCallout.js +1 -1
  172. package/vanilla/UiCard.d.ts +1 -1
  173. package/vanilla/UiCard.js +1 -1
  174. package/vanilla/UiCardGroup.d.ts +1 -1
  175. package/vanilla/UiCardGroup.js +1 -1
  176. package/vanilla/UiCheckbox.d.ts +1 -1
  177. package/vanilla/UiCheckbox.js +1 -1
  178. package/vanilla/UiCluster.d.ts +1 -1
  179. package/vanilla/UiCluster.js +1 -1
  180. package/vanilla/UiColorPicker.d.ts +1 -1
  181. package/vanilla/UiColorPicker.js +1 -1
  182. package/vanilla/UiCombobox.d.ts +1 -1
  183. package/vanilla/UiCombobox.js +1 -1
  184. package/vanilla/UiCompactContent.d.ts +23 -0
  185. package/vanilla/UiCompactContent.js +51 -0
  186. package/vanilla/UiCompactEditor.d.ts +29 -0
  187. package/vanilla/UiCompactEditor.js +59 -0
  188. package/vanilla/UiCompactMark.d.ts +25 -0
  189. package/vanilla/UiCompactMark.js +206 -0
  190. package/vanilla/UiCompactNode.d.ts +23 -0
  191. package/vanilla/UiCompactNode.js +156 -0
  192. package/vanilla/UiContainer.d.ts +1 -1
  193. package/vanilla/UiContainer.js +1 -1
  194. package/vanilla/UiContextMenu.d.ts +1 -1
  195. package/vanilla/UiContextMenu.js +1 -1
  196. package/vanilla/UiCover.d.ts +1 -1
  197. package/vanilla/UiCover.js +1 -1
  198. package/vanilla/UiCurveEditor.d.ts +1 -1
  199. package/vanilla/UiCurveEditor.js +1 -1
  200. package/vanilla/UiCycleButton.d.ts +1 -1
  201. package/vanilla/UiCycleButton.js +1 -1
  202. package/vanilla/UiDescriptionItem.d.ts +1 -1
  203. package/vanilla/UiDescriptionItem.js +1 -1
  204. package/vanilla/UiDescriptionList.d.ts +1 -1
  205. package/vanilla/UiDescriptionList.js +1 -1
  206. package/vanilla/UiDialog.d.ts +1 -1
  207. package/vanilla/UiDialog.js +1 -1
  208. package/vanilla/UiDisclosure.d.ts +1 -1
  209. package/vanilla/UiDisclosure.js +1 -1
  210. package/vanilla/UiEditable.d.ts +1 -1
  211. package/vanilla/UiEditable.js +1 -1
  212. package/vanilla/UiEditor.d.ts +57 -0
  213. package/vanilla/UiEditor.js +1067 -0
  214. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  215. package/vanilla/UiEditorBlockActions.js +1 -1
  216. package/vanilla/UiEditorChipEditor.d.ts +2 -1
  217. package/vanilla/UiEditorChipEditor.js +10 -10
  218. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  219. package/vanilla/UiEditorCodeLanguage.js +1 -1
  220. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  221. package/vanilla/UiEditorFootnoteEditor.js +1 -1
  222. package/vanilla/UiEditorFormattingTools.d.ts +27 -0
  223. package/vanilla/UiEditorFormattingTools.js +188 -0
  224. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  225. package/vanilla/UiEditorImageToolbar.js +1 -1
  226. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  227. package/vanilla/UiEditorInsertTableGrid.js +1 -1
  228. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  229. package/vanilla/UiEditorLinkCard.js +1 -1
  230. package/vanilla/UiEditorLinkForm.d.ts +2 -1
  231. package/vanilla/UiEditorLinkForm.js +41 -41
  232. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  233. package/vanilla/UiEditorMentionMenu.js +1 -1
  234. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  235. package/vanilla/UiEditorMentionMenuItem.js +1 -1
  236. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  237. package/vanilla/UiEditorSlashMenu.js +1 -1
  238. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  239. package/vanilla/UiEditorSlashMenuGroup.js +1 -1
  240. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  241. package/vanilla/UiEditorSlashMenuItem.js +1 -1
  242. package/vanilla/UiEditorSurface.d.ts +1 -1
  243. package/vanilla/UiEditorSurface.js +1 -1
  244. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  245. package/vanilla/UiEditorTableContextMenu.js +10 -5
  246. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  247. package/vanilla/UiEditorTableOverlay.js +1 -1
  248. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  249. package/vanilla/UiEditorTableToolbar.js +1 -1
  250. package/vanilla/UiEditorToolbar.d.ts +1 -1
  251. package/vanilla/UiEditorToolbar.js +1 -1
  252. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  253. package/vanilla/UiFloatingActionButton.js +1 -1
  254. package/vanilla/UiFormField.d.ts +1 -1
  255. package/vanilla/UiFormField.js +1 -1
  256. package/vanilla/UiGrid.d.ts +1 -1
  257. package/vanilla/UiGrid.js +1 -1
  258. package/vanilla/UiIcon.d.ts +1 -1
  259. package/vanilla/UiIcon.js +1 -1
  260. package/vanilla/UiIconButton.d.ts +1 -1
  261. package/vanilla/UiIconButton.js +1 -1
  262. package/vanilla/UiImage.d.ts +1 -1
  263. package/vanilla/UiImage.js +1 -1
  264. package/vanilla/UiInput.d.ts +1 -1
  265. package/vanilla/UiInput.js +1 -1
  266. package/vanilla/UiInputGroup.d.ts +1 -1
  267. package/vanilla/UiInputGroup.js +1 -1
  268. package/vanilla/UiLightEditor.d.ts +1 -1
  269. package/vanilla/UiLightEditor.js +1 -1
  270. package/vanilla/UiList.d.ts +1 -1
  271. package/vanilla/UiList.js +1 -1
  272. package/vanilla/UiListItem.d.ts +1 -1
  273. package/vanilla/UiListItem.js +1 -1
  274. package/vanilla/UiListbox.d.ts +1 -1
  275. package/vanilla/UiListbox.js +1 -1
  276. package/vanilla/UiMenu.d.ts +1 -1
  277. package/vanilla/UiMenu.js +1 -1
  278. package/vanilla/UiMenuGroup.d.ts +1 -1
  279. package/vanilla/UiMenuGroup.js +1 -1
  280. package/vanilla/UiMenuItem.d.ts +1 -1
  281. package/vanilla/UiMenuItem.js +1 -1
  282. package/vanilla/UiMeter.d.ts +1 -1
  283. package/vanilla/UiMeter.js +1 -1
  284. package/vanilla/UiNavItem.d.ts +1 -1
  285. package/vanilla/UiNavItem.js +1 -1
  286. package/vanilla/UiNumberInput.d.ts +1 -1
  287. package/vanilla/UiNumberInput.js +1 -1
  288. package/vanilla/UiPageHeader.d.ts +1 -1
  289. package/vanilla/UiPageHeader.js +1 -1
  290. package/vanilla/UiPagination.d.ts +1 -1
  291. package/vanilla/UiPagination.js +1 -1
  292. package/vanilla/UiPopover.d.ts +1 -1
  293. package/vanilla/UiPopover.js +1 -1
  294. package/vanilla/UiRadio.d.ts +1 -1
  295. package/vanilla/UiRadio.js +1 -1
  296. package/vanilla/UiRadioGroup.d.ts +2 -1
  297. package/vanilla/UiRadioGroup.js +33 -28
  298. package/vanilla/UiReel.d.ts +1 -1
  299. package/vanilla/UiReel.js +1 -1
  300. package/vanilla/UiScrollArea.d.ts +1 -1
  301. package/vanilla/UiScrollArea.js +1 -1
  302. package/vanilla/UiSearchResultRow.d.ts +1 -1
  303. package/vanilla/UiSearchResultRow.js +1 -1
  304. package/vanilla/UiSearchShell.d.ts +1 -1
  305. package/vanilla/UiSearchShell.js +1 -1
  306. package/vanilla/UiSection.d.ts +1 -1
  307. package/vanilla/UiSection.js +1 -1
  308. package/vanilla/UiSelect.d.ts +1 -1
  309. package/vanilla/UiSelect.js +1 -1
  310. package/vanilla/UiSeparator.d.ts +1 -1
  311. package/vanilla/UiSeparator.js +1 -1
  312. package/vanilla/UiSidebar.d.ts +1 -1
  313. package/vanilla/UiSidebar.js +1 -1
  314. package/vanilla/UiSiteHeader.d.ts +1 -1
  315. package/vanilla/UiSiteHeader.js +1 -1
  316. package/vanilla/UiSkeleton.d.ts +1 -1
  317. package/vanilla/UiSkeleton.js +1 -1
  318. package/vanilla/UiSlider.d.ts +1 -1
  319. package/vanilla/UiSlider.js +1 -1
  320. package/vanilla/UiSpinner.d.ts +1 -1
  321. package/vanilla/UiSpinner.js +1 -1
  322. package/vanilla/UiStack.d.ts +1 -1
  323. package/vanilla/UiStack.js +1 -1
  324. package/vanilla/UiStatusMessage.d.ts +1 -1
  325. package/vanilla/UiStatusMessage.js +1 -1
  326. package/vanilla/UiSwatch.d.ts +1 -1
  327. package/vanilla/UiSwatch.js +1 -1
  328. package/vanilla/UiSwitch.d.ts +1 -1
  329. package/vanilla/UiSwitch.js +1 -1
  330. package/vanilla/UiSwitcher.d.ts +1 -1
  331. package/vanilla/UiSwitcher.js +1 -1
  332. package/vanilla/UiTable.d.ts +1 -1
  333. package/vanilla/UiTable.js +1 -1
  334. package/vanilla/UiTabs.d.ts +1 -1
  335. package/vanilla/UiTabs.js +1 -1
  336. package/vanilla/UiText.d.ts +1 -1
  337. package/vanilla/UiText.js +1 -1
  338. package/vanilla/UiTextarea.d.ts +1 -1
  339. package/vanilla/UiTextarea.js +1 -1
  340. package/vanilla/UiToast.d.ts +1 -1
  341. package/vanilla/UiToast.js +1 -1
  342. package/vanilla/UiToastRegion.d.ts +1 -1
  343. package/vanilla/UiToastRegion.js +1 -1
  344. package/vanilla/UiTooltip.d.ts +1 -1
  345. package/vanilla/UiTooltip.js +1 -1
  346. package/vanilla/UiTopBar.d.ts +1 -1
  347. package/vanilla/UiTopBar.js +1 -1
  348. package/vanilla/UiTree.d.ts +1 -1
  349. package/vanilla/UiTree.js +1 -1
  350. package/vanilla/UiTreeItem.d.ts +1 -1
  351. package/vanilla/UiTreeItem.js +1 -1
  352. package/vanilla/index.js +6 -0
  353. package/editor/chunks/table-backgrounds.js +0 -51
  354. package/vue/UiActionBar.d.ts +0 -19
  355. package/vue/UiActionBar.js +0 -2
  356. package/vue/UiActionBar.vue +0 -90
  357. package/vue/UiAffordanceScope.d.ts +0 -35
  358. package/vue/UiAffordanceScope.js +0 -2
  359. package/vue/UiAffordanceScope.vue +0 -182
  360. package/vue/UiAvatar.d.ts +0 -71
  361. package/vue/UiAvatar.js +0 -2
  362. package/vue/UiAvatar.vue +0 -394
  363. package/vue/UiAvatarGroup.d.ts +0 -53
  364. package/vue/UiAvatarGroup.js +0 -2
  365. package/vue/UiAvatarGroup.vue +0 -305
  366. package/vue/UiBadge.d.ts +0 -49
  367. package/vue/UiBadge.js +0 -2
  368. package/vue/UiBadge.vue +0 -810
  369. package/vue/UiBreadcrumbItem.d.ts +0 -29
  370. package/vue/UiBreadcrumbItem.js +0 -2
  371. package/vue/UiBreadcrumbItem.vue +0 -192
  372. package/vue/UiBreadcrumbs.d.ts +0 -29
  373. package/vue/UiBreadcrumbs.js +0 -2
  374. package/vue/UiBreadcrumbs.vue +0 -117
  375. package/vue/UiButton.d.ts +0 -131
  376. package/vue/UiButton.js +0 -2
  377. package/vue/UiButton.vue +0 -1609
  378. package/vue/UiCallout.d.ts +0 -35
  379. package/vue/UiCallout.js +0 -2
  380. package/vue/UiCallout.vue +0 -418
  381. package/vue/UiCard.d.ts +0 -81
  382. package/vue/UiCard.js +0 -2
  383. package/vue/UiCard.vue +0 -530
  384. package/vue/UiCardGroup.d.ts +0 -41
  385. package/vue/UiCardGroup.js +0 -2
  386. package/vue/UiCardGroup.vue +0 -168
  387. package/vue/UiCheckbox.d.ts +0 -95
  388. package/vue/UiCheckbox.js +0 -2
  389. package/vue/UiCheckbox.vue +0 -601
  390. package/vue/UiCluster.d.ts +0 -65
  391. package/vue/UiCluster.js +0 -2
  392. package/vue/UiCluster.vue +0 -304
  393. package/vue/UiColorPicker.d.ts +0 -71
  394. package/vue/UiColorPicker.js +0 -2
  395. package/vue/UiColorPicker.vue +0 -563
  396. package/vue/UiCombobox.d.ts +0 -538
  397. package/vue/UiCombobox.js +0 -2
  398. package/vue/UiCombobox.vue +0 -2894
  399. package/vue/UiContainer.d.ts +0 -41
  400. package/vue/UiContainer.js +0 -2
  401. package/vue/UiContainer.vue +0 -177
  402. package/vue/UiContextMenu.d.ts +0 -69
  403. package/vue/UiContextMenu.js +0 -2
  404. package/vue/UiContextMenu.vue +0 -289
  405. package/vue/UiCover.d.ts +0 -29
  406. package/vue/UiCover.js +0 -2
  407. package/vue/UiCover.vue +0 -127
  408. package/vue/UiCurveEditor.d.ts +0 -59
  409. package/vue/UiCurveEditor.js +0 -2
  410. package/vue/UiCurveEditor.vue +0 -429
  411. package/vue/UiCycleButton.d.ts +0 -69
  412. package/vue/UiCycleButton.js +0 -2
  413. package/vue/UiCycleButton.vue +0 -403
  414. package/vue/UiDescriptionItem.d.ts +0 -29
  415. package/vue/UiDescriptionItem.js +0 -2
  416. package/vue/UiDescriptionItem.vue +0 -124
  417. package/vue/UiDescriptionList.d.ts +0 -41
  418. package/vue/UiDescriptionList.js +0 -2
  419. package/vue/UiDescriptionList.vue +0 -217
  420. package/vue/UiDialog.d.ts +0 -97
  421. package/vue/UiDialog.js +0 -2
  422. package/vue/UiDialog.vue +0 -817
  423. package/vue/UiDisclosure.d.ts +0 -107
  424. package/vue/UiDisclosure.js +0 -2
  425. package/vue/UiDisclosure.vue +0 -605
  426. package/vue/UiEditable.d.ts +0 -113
  427. package/vue/UiEditable.js +0 -2
  428. package/vue/UiEditable.vue +0 -582
  429. package/vue/UiEditorBlockActions.d.ts +0 -33
  430. package/vue/UiEditorBlockActions.js +0 -2
  431. package/vue/UiEditorBlockActions.vue +0 -163
  432. package/vue/UiEditorChipEditor.d.ts +0 -45
  433. package/vue/UiEditorChipEditor.js +0 -2
  434. package/vue/UiEditorChipEditor.vue +0 -208
  435. package/vue/UiEditorCodeLanguage.d.ts +0 -41
  436. package/vue/UiEditorCodeLanguage.js +0 -2
  437. package/vue/UiEditorCodeLanguage.vue +0 -200
  438. package/vue/UiEditorFootnoteEditor.d.ts +0 -39
  439. package/vue/UiEditorFootnoteEditor.js +0 -2
  440. package/vue/UiEditorFootnoteEditor.vue +0 -152
  441. package/vue/UiEditorImageToolbar.d.ts +0 -51
  442. package/vue/UiEditorImageToolbar.js +0 -2
  443. package/vue/UiEditorImageToolbar.vue +0 -446
  444. package/vue/UiEditorInsertTableGrid.d.ts +0 -49
  445. package/vue/UiEditorInsertTableGrid.js +0 -2
  446. package/vue/UiEditorInsertTableGrid.vue +0 -367
  447. package/vue/UiEditorLinkCard.d.ts +0 -49
  448. package/vue/UiEditorLinkCard.js +0 -2
  449. package/vue/UiEditorLinkCard.vue +0 -385
  450. package/vue/UiEditorLinkForm.d.ts +0 -131
  451. package/vue/UiEditorLinkForm.js +0 -2
  452. package/vue/UiEditorLinkForm.vue +0 -664
  453. package/vue/UiEditorMentionMenu.d.ts +0 -121
  454. package/vue/UiEditorMentionMenu.js +0 -2
  455. package/vue/UiEditorMentionMenu.vue +0 -596
  456. package/vue/UiEditorMentionMenuItem.d.ts +0 -43
  457. package/vue/UiEditorMentionMenuItem.js +0 -2
  458. package/vue/UiEditorMentionMenuItem.vue +0 -205
  459. package/vue/UiEditorSlashMenu.d.ts +0 -111
  460. package/vue/UiEditorSlashMenu.js +0 -2
  461. package/vue/UiEditorSlashMenu.vue +0 -549
  462. package/vue/UiEditorSlashMenuGroup.d.ts +0 -29
  463. package/vue/UiEditorSlashMenuGroup.js +0 -2
  464. package/vue/UiEditorSlashMenuGroup.vue +0 -113
  465. package/vue/UiEditorSlashMenuItem.d.ts +0 -53
  466. package/vue/UiEditorSlashMenuItem.js +0 -2
  467. package/vue/UiEditorSlashMenuItem.vue +0 -249
  468. package/vue/UiEditorSurface.d.ts +0 -29
  469. package/vue/UiEditorSurface.js +0 -2
  470. package/vue/UiEditorSurface.vue +0 -117
  471. package/vue/UiEditorTableContextMenu.d.ts +0 -57
  472. package/vue/UiEditorTableContextMenu.js +0 -2
  473. package/vue/UiEditorTableContextMenu.vue +0 -694
  474. package/vue/UiEditorTableOverlay.d.ts +0 -191
  475. package/vue/UiEditorTableOverlay.js +0 -2
  476. package/vue/UiEditorTableOverlay.vue +0 -1099
  477. package/vue/UiEditorTableToolbar.d.ts +0 -57
  478. package/vue/UiEditorTableToolbar.js +0 -2
  479. package/vue/UiEditorTableToolbar.vue +0 -834
  480. package/vue/UiEditorToolbar.d.ts +0 -29
  481. package/vue/UiEditorToolbar.js +0 -2
  482. package/vue/UiEditorToolbar.vue +0 -296
  483. package/vue/UiFloatingActionButton.d.ts +0 -41
  484. package/vue/UiFloatingActionButton.js +0 -2
  485. package/vue/UiFloatingActionButton.vue +0 -201
  486. package/vue/UiFormField.d.ts +0 -49
  487. package/vue/UiFormField.js +0 -2
  488. package/vue/UiFormField.vue +0 -256
  489. package/vue/UiGrid.d.ts +0 -41
  490. package/vue/UiGrid.js +0 -2
  491. package/vue/UiGrid.vue +0 -190
  492. package/vue/UiIcon.d.ts +0 -25
  493. package/vue/UiIcon.js +0 -2
  494. package/vue/UiIcon.vue +0 -612
  495. package/vue/UiIconButton.d.ts +0 -101
  496. package/vue/UiIconButton.js +0 -2
  497. package/vue/UiIconButton.vue +0 -1141
  498. package/vue/UiImage.d.ts +0 -85
  499. package/vue/UiImage.js +0 -2
  500. package/vue/UiImage.vue +0 -462
  501. package/vue/UiInput.d.ts +0 -50
  502. package/vue/UiInput.js +0 -2
  503. package/vue/UiInput.vue +0 -671
  504. package/vue/UiInputGroup.d.ts +0 -59
  505. package/vue/UiInputGroup.js +0 -2
  506. package/vue/UiInputGroup.vue +0 -447
  507. package/vue/UiLightEditor.d.ts +0 -83
  508. package/vue/UiLightEditor.js +0 -2
  509. package/vue/UiLightEditor.vue +0 -537
  510. package/vue/UiList.d.ts +0 -49
  511. package/vue/UiList.js +0 -2
  512. package/vue/UiList.vue +0 -260
  513. package/vue/UiListItem.d.ts +0 -65
  514. package/vue/UiListItem.js +0 -2
  515. package/vue/UiListItem.vue +0 -407
  516. package/vue/UiListbox.d.ts +0 -87
  517. package/vue/UiListbox.js +0 -2
  518. package/vue/UiListbox.vue +0 -554
  519. package/vue/UiMenu.d.ts +0 -99
  520. package/vue/UiMenu.js +0 -2
  521. package/vue/UiMenu.vue +0 -541
  522. package/vue/UiMenuGroup.d.ts +0 -29
  523. package/vue/UiMenuGroup.js +0 -2
  524. package/vue/UiMenuGroup.vue +0 -105
  525. package/vue/UiMenuItem.d.ts +0 -89
  526. package/vue/UiMenuItem.js +0 -2
  527. package/vue/UiMenuItem.vue +0 -532
  528. package/vue/UiMeter.d.ts +0 -73
  529. package/vue/UiMeter.js +0 -2
  530. package/vue/UiMeter.vue +0 -1112
  531. package/vue/UiNavItem.d.ts +0 -79
  532. package/vue/UiNavItem.js +0 -2
  533. package/vue/UiNavItem.vue +0 -493
  534. package/vue/UiNumberInput.d.ts +0 -89
  535. package/vue/UiNumberInput.js +0 -2
  536. package/vue/UiNumberInput.vue +0 -445
  537. package/vue/UiPageHeader.d.ts +0 -37
  538. package/vue/UiPageHeader.js +0 -2
  539. package/vue/UiPageHeader.vue +0 -192
  540. package/vue/UiPagination.d.ts +0 -115
  541. package/vue/UiPagination.js +0 -2
  542. package/vue/UiPagination.vue +0 -596
  543. package/vue/UiPopover.d.ts +0 -77
  544. package/vue/UiPopover.js +0 -2
  545. package/vue/UiPopover.vue +0 -495
  546. package/vue/UiRadio.d.ts +0 -77
  547. package/vue/UiRadio.js +0 -2
  548. package/vue/UiRadio.vue +0 -475
  549. package/vue/UiRadioGroup.d.ts +0 -95
  550. package/vue/UiRadioGroup.js +0 -2
  551. package/vue/UiRadioGroup.vue +0 -393
  552. package/vue/UiReel.d.ts +0 -41
  553. package/vue/UiReel.js +0 -2
  554. package/vue/UiReel.vue +0 -223
  555. package/vue/UiScrollArea.d.ts +0 -53
  556. package/vue/UiScrollArea.js +0 -2
  557. package/vue/UiScrollArea.vue +0 -307
  558. package/vue/UiSearchResultRow.d.ts +0 -49
  559. package/vue/UiSearchResultRow.js +0 -2
  560. package/vue/UiSearchResultRow.vue +0 -268
  561. package/vue/UiSearchShell.d.ts +0 -67
  562. package/vue/UiSearchShell.js +0 -2
  563. package/vue/UiSearchShell.vue +0 -391
  564. package/vue/UiSection.d.ts +0 -51
  565. package/vue/UiSection.js +0 -2
  566. package/vue/UiSection.vue +0 -331
  567. package/vue/UiSelect.d.ts +0 -69
  568. package/vue/UiSelect.js +0 -2
  569. package/vue/UiSelect.vue +0 -391
  570. package/vue/UiSeparator.d.ts +0 -37
  571. package/vue/UiSeparator.js +0 -2
  572. package/vue/UiSeparator.vue +0 -199
  573. package/vue/UiSidebar.d.ts +0 -99
  574. package/vue/UiSidebar.js +0 -2
  575. package/vue/UiSidebar.vue +0 -579
  576. package/vue/UiSiteHeader.d.ts +0 -59
  577. package/vue/UiSiteHeader.js +0 -2
  578. package/vue/UiSiteHeader.vue +0 -904
  579. package/vue/UiSkeleton.d.ts +0 -37
  580. package/vue/UiSkeleton.js +0 -2
  581. package/vue/UiSkeleton.vue +0 -287
  582. package/vue/UiSlider.d.ts +0 -89
  583. package/vue/UiSlider.js +0 -2
  584. package/vue/UiSlider.vue +0 -448
  585. package/vue/UiSpinner.d.ts +0 -25
  586. package/vue/UiSpinner.js +0 -2
  587. package/vue/UiSpinner.vue +0 -330
  588. package/vue/UiStack.d.ts +0 -53
  589. package/vue/UiStack.js +0 -2
  590. package/vue/UiStack.vue +0 -247
  591. package/vue/UiStatusMessage.d.ts +0 -43
  592. package/vue/UiStatusMessage.js +0 -2
  593. package/vue/UiStatusMessage.vue +0 -239
  594. package/vue/UiSwatch.d.ts +0 -19
  595. package/vue/UiSwatch.js +0 -2
  596. package/vue/UiSwatch.vue +0 -188
  597. package/vue/UiSwitch.d.ts +0 -77
  598. package/vue/UiSwitch.js +0 -2
  599. package/vue/UiSwitch.vue +0 -478
  600. package/vue/UiSwitcher.d.ts +0 -47
  601. package/vue/UiSwitcher.js +0 -2
  602. package/vue/UiSwitcher.vue +0 -258
  603. package/vue/UiTable.d.ts +0 -35
  604. package/vue/UiTable.js +0 -2
  605. package/vue/UiTable.vue +0 -280
  606. package/vue/UiTabs.d.ts +0 -81
  607. package/vue/UiTabs.js +0 -2
  608. package/vue/UiTabs.vue +0 -493
  609. package/vue/UiText.d.ts +0 -111
  610. package/vue/UiText.js +0 -2
  611. package/vue/UiText.vue +0 -836
  612. package/vue/UiTextarea.d.ts +0 -77
  613. package/vue/UiTextarea.js +0 -2
  614. package/vue/UiTextarea.vue +0 -477
  615. package/vue/UiToast.d.ts +0 -49
  616. package/vue/UiToast.js +0 -2
  617. package/vue/UiToast.vue +0 -337
  618. package/vue/UiToastRegion.d.ts +0 -61
  619. package/vue/UiToastRegion.js +0 -2
  620. package/vue/UiToastRegion.vue +0 -631
  621. package/vue/UiTooltip.d.ts +0 -93
  622. package/vue/UiTooltip.js +0 -2
  623. package/vue/UiTooltip.vue +0 -627
  624. package/vue/UiTopBar.d.ts +0 -35
  625. package/vue/UiTopBar.js +0 -2
  626. package/vue/UiTopBar.vue +0 -240
  627. package/vue/UiTree.d.ts +0 -123
  628. package/vue/UiTree.js +0 -2
  629. package/vue/UiTree.vue +0 -419
  630. package/vue/UiTreeItem.d.ts +0 -133
  631. package/vue/UiTreeItem.js +0 -2
  632. package/vue/UiTreeItem.vue +0 -1962
  633. package/vue/chunks/UiActionBar.js +0 -42
  634. package/vue/chunks/UiAffordanceScope.js +0 -136
  635. package/vue/chunks/UiAvatar.js +0 -341
  636. package/vue/chunks/UiAvatarGroup.js +0 -234
  637. package/vue/chunks/UiBadge.js +0 -188
  638. package/vue/chunks/UiBreadcrumbItem.js +0 -104
  639. package/vue/chunks/UiBreadcrumbs.js +0 -67
  640. package/vue/chunks/UiButton.js +0 -881
  641. package/vue/chunks/UiCallout.js +0 -302
  642. package/vue/chunks/UiCard.js +0 -369
  643. package/vue/chunks/UiCardGroup.js +0 -153
  644. package/vue/chunks/UiCheckbox.js +0 -361
  645. package/vue/chunks/UiCluster.js +0 -236
  646. package/vue/chunks/UiColorPicker.js +0 -375
  647. package/vue/chunks/UiCombobox.js +0 -2186
  648. package/vue/chunks/UiContainer.js +0 -122
  649. package/vue/chunks/UiContextMenu.js +0 -157
  650. package/vue/chunks/UiCover.js +0 -66
  651. package/vue/chunks/UiCurveEditor.js +0 -415
  652. package/vue/chunks/UiCycleButton.js +0 -352
  653. package/vue/chunks/UiDescriptionItem.js +0 -64
  654. package/vue/chunks/UiDescriptionList.js +0 -133
  655. package/vue/chunks/UiDialog.js +0 -367
  656. package/vue/chunks/UiDisclosure.js +0 -403
  657. package/vue/chunks/UiEditable.js +0 -436
  658. package/vue/chunks/UiEditorBlockActions.js +0 -157
  659. package/vue/chunks/UiEditorChipEditor.js +0 -191
  660. package/vue/chunks/UiEditorCodeLanguage.js +0 -181
  661. package/vue/chunks/UiEditorFootnoteEditor.js +0 -114
  662. package/vue/chunks/UiEditorImageToolbar.js +0 -531
  663. package/vue/chunks/UiEditorInsertTableGrid.js +0 -325
  664. package/vue/chunks/UiEditorLinkCard.js +0 -391
  665. package/vue/chunks/UiEditorLinkForm.js +0 -711
  666. package/vue/chunks/UiEditorMentionMenu.js +0 -618
  667. package/vue/chunks/UiEditorMentionMenuItem.js +0 -140
  668. package/vue/chunks/UiEditorSlashMenu.js +0 -555
  669. package/vue/chunks/UiEditorSlashMenuGroup.js +0 -78
  670. package/vue/chunks/UiEditorSlashMenuItem.js +0 -197
  671. package/vue/chunks/UiEditorSurface.js +0 -66
  672. package/vue/chunks/UiEditorTableContextMenu.js +0 -500
  673. package/vue/chunks/UiEditorTableOverlay.js +0 -987
  674. package/vue/chunks/UiEditorTableToolbar.js +0 -707
  675. package/vue/chunks/UiEditorToolbar.js +0 -103
  676. package/vue/chunks/UiFloatingActionButton.js +0 -123
  677. package/vue/chunks/UiFormField.js +0 -172
  678. package/vue/chunks/UiGrid.js +0 -127
  679. package/vue/chunks/UiIcon.js +0 -1361
  680. package/vue/chunks/UiIconButton.js +0 -469
  681. package/vue/chunks/UiImage.js +0 -312
  682. package/vue/chunks/UiInput.js +0 -709
  683. package/vue/chunks/UiInputGroup.js +0 -225
  684. package/vue/chunks/UiLightEditor.js +0 -365
  685. package/vue/chunks/UiList.js +0 -178
  686. package/vue/chunks/UiListItem.js +0 -219
  687. package/vue/chunks/UiListbox.js +0 -489
  688. package/vue/chunks/UiMenu.js +0 -286
  689. package/vue/chunks/UiMenuGroup.js +0 -75
  690. package/vue/chunks/UiMenuItem.js +0 -374
  691. package/vue/chunks/UiMeter.js +0 -540
  692. package/vue/chunks/UiNavItem.js +0 -380
  693. package/vue/chunks/UiNumberInput.js +0 -432
  694. package/vue/chunks/UiPageHeader.js +0 -100
  695. package/vue/chunks/UiPagination.js +0 -537
  696. package/vue/chunks/UiPopover.js +0 -243
  697. package/vue/chunks/UiRadio.js +0 -291
  698. package/vue/chunks/UiRadioGroup.js +0 -300
  699. package/vue/chunks/UiReel.js +0 -133
  700. package/vue/chunks/UiScrollArea.js +0 -219
  701. package/vue/chunks/UiSearchResultRow.js +0 -164
  702. package/vue/chunks/UiSearchShell.js +0 -215
  703. package/vue/chunks/UiSection.js +0 -228
  704. package/vue/chunks/UiSelect.js +0 -251
  705. package/vue/chunks/UiSeparator.js +0 -144
  706. package/vue/chunks/UiSidebar.js +0 -358
  707. package/vue/chunks/UiSiteHeader.js +0 -335
  708. package/vue/chunks/UiSkeleton.js +0 -183
  709. package/vue/chunks/UiSlider.js +0 -427
  710. package/vue/chunks/UiSpinner.js +0 -181
  711. package/vue/chunks/UiStack.js +0 -177
  712. package/vue/chunks/UiStatusMessage.js +0 -176
  713. package/vue/chunks/UiSwatch.js +0 -93
  714. package/vue/chunks/UiSwitch.js +0 -292
  715. package/vue/chunks/UiSwitcher.js +0 -194
  716. package/vue/chunks/UiTable.js +0 -128
  717. package/vue/chunks/UiTabs.js +0 -334
  718. package/vue/chunks/UiText.js +0 -747
  719. package/vue/chunks/UiTextarea.js +0 -313
  720. package/vue/chunks/UiToast.js +0 -174
  721. package/vue/chunks/UiToastRegion.js +0 -275
  722. package/vue/chunks/UiTooltip.js +0 -297
  723. package/vue/chunks/UiTopBar.js +0 -129
  724. package/vue/chunks/UiTree.js +0 -282
  725. package/vue/chunks/UiTreeItem.js +0 -699
  726. package/vue/chunks/_plugin-vue_export-helper.js +0 -1265
  727. package/vue/chunks/control.js +0 -214
  728. package/vue/chunks/props.js +0 -1228
  729. package/vue/components.css +0 -17545
  730. package/vue/editor/LoomaEditor.d.ts +0 -433
  731. package/vue/editor/compact/index.d.ts +0 -84
  732. package/vue/editor/compact/index.js +0 -2
  733. package/vue/editor/index.d.ts +0 -5
  734. package/vue/editor/index.js +0 -17281
  735. package/vue/editor/primitives.d.ts +0 -120
  736. package/vue/host.ts +0 -2272
  737. package/vue/index.d.ts +0 -94
  738. package/vue/index.js +0 -95
  739. package/vue/props.d.ts +0 -272
  740. /package/{vue → editor}/chunks/1c.js +0 -0
  741. /package/{vue → editor}/chunks/abnf.js +0 -0
  742. /package/{vue → editor}/chunks/accesslog.js +0 -0
  743. /package/{vue → editor}/chunks/actionscript.js +0 -0
  744. /package/{vue → editor}/chunks/ada.js +0 -0
  745. /package/{vue → editor}/chunks/angelscript.js +0 -0
  746. /package/{vue → editor}/chunks/apache.js +0 -0
  747. /package/{vue → editor}/chunks/applescript.js +0 -0
  748. /package/{vue → editor}/chunks/arcade.js +0 -0
  749. /package/{vue → editor}/chunks/arduino.js +0 -0
  750. /package/{vue → editor}/chunks/armasm.js +0 -0
  751. /package/{vue → editor}/chunks/asciidoc.js +0 -0
  752. /package/{vue → editor}/chunks/aspectj.js +0 -0
  753. /package/{vue → editor}/chunks/autohotkey.js +0 -0
  754. /package/{vue → editor}/chunks/autoit.js +0 -0
  755. /package/{vue → editor}/chunks/avrasm.js +0 -0
  756. /package/{vue → editor}/chunks/awk.js +0 -0
  757. /package/{vue → editor}/chunks/axapta.js +0 -0
  758. /package/{vue → editor}/chunks/bash.js +0 -0
  759. /package/{vue → editor}/chunks/basic.js +0 -0
  760. /package/{vue → editor}/chunks/bnf.js +0 -0
  761. /package/{vue → editor}/chunks/brainfuck.js +0 -0
  762. /package/{vue → editor}/chunks/c.js +0 -0
  763. /package/{vue → editor}/chunks/cal.js +0 -0
  764. /package/{vue → editor}/chunks/capnproto.js +0 -0
  765. /package/{vue → editor}/chunks/ceylon.js +0 -0
  766. /package/{vue → editor}/chunks/clean.js +0 -0
  767. /package/{vue → editor}/chunks/clojure-repl.js +0 -0
  768. /package/{vue → editor}/chunks/clojure.js +0 -0
  769. /package/{vue → editor}/chunks/cmake.js +0 -0
  770. /package/{vue → editor}/chunks/coffeescript.js +0 -0
  771. /package/{vue → editor}/chunks/coq.js +0 -0
  772. /package/{vue → editor}/chunks/cos.js +0 -0
  773. /package/{vue → editor}/chunks/cpp.js +0 -0
  774. /package/{vue → editor}/chunks/crmsh.js +0 -0
  775. /package/{vue → editor}/chunks/crystal.js +0 -0
  776. /package/{vue → editor}/chunks/csharp.js +0 -0
  777. /package/{vue → editor}/chunks/csp.js +0 -0
  778. /package/{vue → editor}/chunks/css.js +0 -0
  779. /package/{vue → editor}/chunks/d.js +0 -0
  780. /package/{vue → editor}/chunks/dart.js +0 -0
  781. /package/{vue → editor}/chunks/delphi.js +0 -0
  782. /package/{vue → editor}/chunks/diff.js +0 -0
  783. /package/{vue → editor}/chunks/django.js +0 -0
  784. /package/{vue → editor}/chunks/dns.js +0 -0
  785. /package/{vue → editor}/chunks/dockerfile.js +0 -0
  786. /package/{vue → editor}/chunks/dos.js +0 -0
  787. /package/{vue → editor}/chunks/dsconfig.js +0 -0
  788. /package/{vue → editor}/chunks/dts.js +0 -0
  789. /package/{vue → editor}/chunks/dust.js +0 -0
  790. /package/{vue → editor}/chunks/ebnf.js +0 -0
  791. /package/{vue → editor}/chunks/elixir.js +0 -0
  792. /package/{vue → editor}/chunks/elm.js +0 -0
  793. /package/{vue → editor}/chunks/erb.js +0 -0
  794. /package/{vue → editor}/chunks/erlang-repl.js +0 -0
  795. /package/{vue → editor}/chunks/erlang.js +0 -0
  796. /package/{vue → editor}/chunks/excel.js +0 -0
  797. /package/{vue → editor}/chunks/fix.js +0 -0
  798. /package/{vue → editor}/chunks/flix.js +0 -0
  799. /package/{vue → editor}/chunks/fortran.js +0 -0
  800. /package/{vue → editor}/chunks/fsharp.js +0 -0
  801. /package/{vue → editor}/chunks/gams.js +0 -0
  802. /package/{vue → editor}/chunks/gauss.js +0 -0
  803. /package/{vue → editor}/chunks/gcode.js +0 -0
  804. /package/{vue → editor}/chunks/gherkin.js +0 -0
  805. /package/{vue → editor}/chunks/glsl.js +0 -0
  806. /package/{vue → editor}/chunks/gml.js +0 -0
  807. /package/{vue → editor}/chunks/go.js +0 -0
  808. /package/{vue → editor}/chunks/golo.js +0 -0
  809. /package/{vue → editor}/chunks/gradle.js +0 -0
  810. /package/{vue → editor}/chunks/graphql.js +0 -0
  811. /package/{vue → editor}/chunks/groovy.js +0 -0
  812. /package/{vue → editor}/chunks/haml.js +0 -0
  813. /package/{vue → editor}/chunks/handlebars.js +0 -0
  814. /package/{vue → editor}/chunks/haskell.js +0 -0
  815. /package/{vue → editor}/chunks/haxe.js +0 -0
  816. /package/{vue → editor}/chunks/hsp.js +0 -0
  817. /package/{vue → editor}/chunks/http.js +0 -0
  818. /package/{vue → editor}/chunks/hy.js +0 -0
  819. /package/{vue → editor}/chunks/inform7.js +0 -0
  820. /package/{vue → editor}/chunks/ini.js +0 -0
  821. /package/{vue → editor}/chunks/irpf90.js +0 -0
  822. /package/{vue → editor}/chunks/isbl.js +0 -0
  823. /package/{vue → editor}/chunks/java.js +0 -0
  824. /package/{vue → editor}/chunks/javascript.js +0 -0
  825. /package/{vue → editor}/chunks/jboss-cli.js +0 -0
  826. /package/{vue → editor}/chunks/json.js +0 -0
  827. /package/{vue → editor}/chunks/julia-repl.js +0 -0
  828. /package/{vue → editor}/chunks/julia.js +0 -0
  829. /package/{vue → editor}/chunks/kotlin.js +0 -0
  830. /package/{vue → editor}/chunks/lasso.js +0 -0
  831. /package/{vue → editor}/chunks/latex.js +0 -0
  832. /package/{vue → editor}/chunks/ldif.js +0 -0
  833. /package/{vue → editor}/chunks/leaf.js +0 -0
  834. /package/{vue → editor}/chunks/less.js +0 -0
  835. /package/{vue → editor}/chunks/lisp.js +0 -0
  836. /package/{vue → editor}/chunks/livecodeserver.js +0 -0
  837. /package/{vue → editor}/chunks/livescript.js +0 -0
  838. /package/{vue → editor}/chunks/llvm.js +0 -0
  839. /package/{vue → editor}/chunks/lsl.js +0 -0
  840. /package/{vue → editor}/chunks/lua.js +0 -0
  841. /package/{vue → editor}/chunks/makefile.js +0 -0
  842. /package/{vue → editor}/chunks/markdown.js +0 -0
  843. /package/{vue → editor}/chunks/mathematica.js +0 -0
  844. /package/{vue → editor}/chunks/matlab.js +0 -0
  845. /package/{vue → editor}/chunks/maxima.js +0 -0
  846. /package/{vue → editor}/chunks/mel.js +0 -0
  847. /package/{vue → editor}/chunks/mercury.js +0 -0
  848. /package/{vue → editor}/chunks/mipsasm.js +0 -0
  849. /package/{vue → editor}/chunks/mizar.js +0 -0
  850. /package/{vue → editor}/chunks/mojolicious.js +0 -0
  851. /package/{vue → editor}/chunks/monkey.js +0 -0
  852. /package/{vue → editor}/chunks/moonscript.js +0 -0
  853. /package/{vue → editor}/chunks/n1ql.js +0 -0
  854. /package/{vue → editor}/chunks/nestedtext.js +0 -0
  855. /package/{vue → editor}/chunks/nginx.js +0 -0
  856. /package/{vue → editor}/chunks/nim.js +0 -0
  857. /package/{vue → editor}/chunks/nix.js +0 -0
  858. /package/{vue → editor}/chunks/node-repl.js +0 -0
  859. /package/{vue → editor}/chunks/nsis.js +0 -0
  860. /package/{vue → editor}/chunks/objectivec.js +0 -0
  861. /package/{vue → editor}/chunks/ocaml.js +0 -0
  862. /package/{vue → editor}/chunks/openscad.js +0 -0
  863. /package/{vue → editor}/chunks/oxygene.js +0 -0
  864. /package/{vue → editor}/chunks/parser3.js +0 -0
  865. /package/{vue → editor}/chunks/perl.js +0 -0
  866. /package/{vue → editor}/chunks/pf.js +0 -0
  867. /package/{vue → editor}/chunks/pgsql.js +0 -0
  868. /package/{vue → editor}/chunks/php-template.js +0 -0
  869. /package/{vue → editor}/chunks/php.js +0 -0
  870. /package/{vue → editor}/chunks/plaintext.js +0 -0
  871. /package/{vue → editor}/chunks/pony.js +0 -0
  872. /package/{vue → editor}/chunks/powershell.js +0 -0
  873. /package/{vue → editor}/chunks/processing.js +0 -0
  874. /package/{vue → editor}/chunks/profile.js +0 -0
  875. /package/{vue → editor}/chunks/prolog.js +0 -0
  876. /package/{vue → editor}/chunks/properties.js +0 -0
  877. /package/{vue → editor}/chunks/protobuf.js +0 -0
  878. /package/{vue → editor}/chunks/puppet.js +0 -0
  879. /package/{vue → editor}/chunks/purebasic.js +0 -0
  880. /package/{vue → editor}/chunks/python-repl.js +0 -0
  881. /package/{vue → editor}/chunks/python.js +0 -0
  882. /package/{vue → editor}/chunks/q.js +0 -0
  883. /package/{vue → editor}/chunks/qml.js +0 -0
  884. /package/{vue → editor}/chunks/r.js +0 -0
  885. /package/{vue → editor}/chunks/reasonml.js +0 -0
  886. /package/{vue → editor}/chunks/rib.js +0 -0
  887. /package/{vue → editor}/chunks/roboconf.js +0 -0
  888. /package/{vue → editor}/chunks/routeros.js +0 -0
  889. /package/{vue → editor}/chunks/rsl.js +0 -0
  890. /package/{vue → editor}/chunks/ruby.js +0 -0
  891. /package/{vue → editor}/chunks/ruleslanguage.js +0 -0
  892. /package/{vue → editor}/chunks/rust.js +0 -0
  893. /package/{vue → editor}/chunks/sas.js +0 -0
  894. /package/{vue → editor}/chunks/scala.js +0 -0
  895. /package/{vue → editor}/chunks/scheme.js +0 -0
  896. /package/{vue → editor}/chunks/scilab.js +0 -0
  897. /package/{vue → editor}/chunks/scss.js +0 -0
  898. /package/{vue → editor}/chunks/shell.js +0 -0
  899. /package/{vue → editor}/chunks/smali.js +0 -0
  900. /package/{vue → editor}/chunks/smalltalk.js +0 -0
  901. /package/{vue → editor}/chunks/sml.js +0 -0
  902. /package/{vue → editor}/chunks/sqf.js +0 -0
  903. /package/{vue → editor}/chunks/sql.js +0 -0
  904. /package/{vue → editor}/chunks/stan.js +0 -0
  905. /package/{vue → editor}/chunks/stata.js +0 -0
  906. /package/{vue → editor}/chunks/step21.js +0 -0
  907. /package/{vue → editor}/chunks/stylus.js +0 -0
  908. /package/{vue → editor}/chunks/subunit.js +0 -0
  909. /package/{vue → editor}/chunks/swift.js +0 -0
  910. /package/{vue → editor}/chunks/taggerscript.js +0 -0
  911. /package/{vue → editor}/chunks/tap.js +0 -0
  912. /package/{vue → editor}/chunks/tcl.js +0 -0
  913. /package/{vue → editor}/chunks/thrift.js +0 -0
  914. /package/{vue → editor}/chunks/tp.js +0 -0
  915. /package/{vue → editor}/chunks/twig.js +0 -0
  916. /package/{vue → editor}/chunks/typescript.js +0 -0
  917. /package/{vue → editor}/chunks/vala.js +0 -0
  918. /package/{vue → editor}/chunks/vbnet.js +0 -0
  919. /package/{vue → editor}/chunks/vbscript-html.js +0 -0
  920. /package/{vue → editor}/chunks/vbscript.js +0 -0
  921. /package/{vue → editor}/chunks/verilog.js +0 -0
  922. /package/{vue → editor}/chunks/vhdl.js +0 -0
  923. /package/{vue → editor}/chunks/vim.js +0 -0
  924. /package/{vue → editor}/chunks/wasm.js +0 -0
  925. /package/{vue → editor}/chunks/wren.js +0 -0
  926. /package/{vue → editor}/chunks/x86asm.js +0 -0
  927. /package/{vue → editor}/chunks/xl.js +0 -0
  928. /package/{vue → editor}/chunks/xml.js +0 -0
  929. /package/{vue → editor}/chunks/xquery.js +0 -0
  930. /package/{vue → editor}/chunks/yaml.js +0 -0
  931. /package/{vue → editor}/chunks/zephir.js +0 -0
  932. /package/{vue/editor/compact/extensions.d.ts → editor/compact-extensions.d.ts} +0 -0
@@ -1,2894 +0,0 @@
1
- <!-- Generated by HTML Next 1.0.0-alpha.69 for Vue 3.5. Do not edit. -->
2
- <script setup lang="ts">
3
- import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
4
- import type { PropType } from 'vue'
5
- import { vBindControl } from './control'
6
- import {
7
- checkHydratedRoot,
8
- concat,
9
- createDispatch,
10
- isInteger,
11
- KeyedBoundary,
12
- nativeAttrs,
13
- number,
14
- uniqueKeys,
15
- useComponentHost,
16
- useReflectedProp,
17
- useScopedSlotName,
18
- warnUnless,
19
- } from './host'
20
- import { acceptsControllerWrite } from './props'
21
- import {
22
- BINDING_INPUTS_PROP,
23
- checkedProp,
24
- checkPropInput,
25
- type InputBindings,
26
- propValidityState,
27
- READY_INPUT,
28
- requireInputStatus,
29
- UNRESOLVED_INPUT,
30
- vPropValidity,
31
- vuePropInputs,
32
- } from './props'
33
- import UiBadge from './UiBadge.vue'
34
- import UiTooltip from './UiTooltip.vue'
35
-
36
- defineOptions({ inheritAttrs: false })
37
-
38
- const propValidityContract = {
39
- props: {
40
- allowCreate: {
41
- type: { kind: 'terminal', name: 'boolean' },
42
- required: false,
43
- target: { attribute: 'allowcreate' },
44
- description:
45
- 'Offers the current query as a new option, reported as create-item. When nothing else matches, the offer is highlighted, so Enter creates it; with nothing\n highlighted, Enter in multiple mode commits the typed text as a token separator does.',
46
- default: false,
47
- },
48
- allowFreeText: {
49
- type: { kind: 'terminal', name: 'boolean' },
50
- required: false,
51
- target: { attribute: 'allowfreetext' },
52
- description: 'Allows values that do not match an authored option.',
53
- default: false,
54
- },
55
- autoHighlight: {
56
- type: { kind: 'terminal', name: 'keyword' },
57
- required: false,
58
- target: { attribute: 'autohighlight' },
59
- description:
60
- 'single highlights the only enabled authored suggestion while typing. Ambiguous results and an empty query stay unhighlighted. none preserves manual\n highlighting with the arrow keys.',
61
- values: ['none', 'single'],
62
- default: 'none',
63
- },
64
- clearQueryOnBlur: {
65
- type: { kind: 'terminal', name: 'boolean' },
66
- required: false,
67
- target: { attribute: 'clearqueryonblur' },
68
- description:
69
- 'In multiple mode, clears unfinished search text when focus leaves the whole combobox, preserving selected items. A controlled query reports query-change\n with an empty query; the consumer must reflect it back. Does not choose or create an option. The default preserves unfinished text. Single mode keeps its\n existing selection and free-text resolution.',
70
- default: false,
71
- },
72
- clearable: {
73
- type: { kind: 'terminal', name: 'boolean' },
74
- required: false,
75
- target: { attribute: 'clearable' },
76
- description:
77
- 'Adds a clear button to the field that empties the input and clears the selection, reported as value-change with kind "clear". It is disabled when there is\n nothing to clear. In multiple mode it clears only the typed text; chosen items stay.',
78
- default: false,
79
- },
80
- disabled: {
81
- type: { kind: 'terminal', name: 'boolean' },
82
- required: false,
83
- target: { attribute: 'disabled' },
84
- description:
85
- 'Disables the input and every button in the field: the chosen-item badges, the clear and disclosure buttons, and the help button. The list closes and cannot\n be opened, the value cannot be cleared, and a named combobox submits nothing with its form.',
86
- default: false,
87
- },
88
- disclosure: {
89
- type: { kind: 'terminal', name: 'boolean' },
90
- required: false,
91
- target: { attribute: 'disclosure' },
92
- description:
93
- 'Adds a chevron button that opens and closes the full, unfiltered list of options, for users who would rather browse than type. ArrowDown opens the same\n list with or without it.',
94
- default: false,
95
- },
96
- filter: {
97
- type: { kind: 'terminal', name: 'keyword' },
98
- required: false,
99
- target: { attribute: 'filter' },
100
- description:
101
- 'How the list narrows as the user types. label lists the options whose label contains the typed text, ignoring case. none lists every authored option, for\n options already narrowed elsewhere, such as a server search, so a result that matched on data other than its label still shows. Leaving the field still\n commits an option whose label matches the text, or the only one listed.',
102
- values: ['label', 'none'],
103
- default: 'label',
104
- },
105
- help: {
106
- type: { kind: 'terminal', name: 'string' },
107
- required: false,
108
- target: { attribute: 'help' },
109
- description:
110
- 'Help text for the field. When set, a help button appears beside the field and opens a tooltip with this text; while it is open, the input is described by\n it.',
111
- default: '',
112
- },
113
- invalid: {
114
- type: { kind: 'terminal', name: 'boolean' },
115
- required: false,
116
- target: { attribute: 'invalid' },
117
- description:
118
- 'Exposes an externally validated error on the input and field. It remains until the consumer clears it, independently of native validation.',
119
- default: false,
120
- },
121
- items: {
122
- type: {
123
- kind: 'list',
124
- item: {
125
- kind: 'object',
126
- fields: [
127
- { name: 'id', type: { kind: 'terminal', name: 'string' }, optional: false },
128
- { name: 'value', type: { kind: 'terminal', name: 'string' }, optional: false },
129
- { name: 'label', type: { kind: 'terminal', name: 'string' }, optional: false },
130
- { name: 'group', type: { kind: 'terminal', name: 'string' }, optional: true },
131
- { name: 'disabled', type: { kind: 'terminal', name: 'boolean' }, optional: true },
132
- { name: 'description', type: { kind: 'terminal', name: 'string' }, optional: true },
133
- {
134
- name: 'tag',
135
- type: {
136
- kind: 'object',
137
- fields: [{
138
- name: 'label',
139
- type: { kind: 'terminal', name: 'string' },
140
- optional: false,
141
- }, {
142
- name: 'tone',
143
- type: {
144
- kind: 'constrained',
145
- base: { kind: 'terminal', name: 'keyword' },
146
- values: ['neutral', 'accent', 'info', 'success', 'warning', 'danger'],
147
- },
148
- optional: true,
149
- }, { name: 'color', type: { kind: 'terminal', name: 'string' }, optional: true }],
150
- open: false,
151
- },
152
- optional: true,
153
- },
154
- ],
155
- open: false,
156
- },
157
- },
158
- required: false,
159
- target: { attribute: 'items' },
160
- description:
161
- 'The selected items in multiple mode, as JSON; a named combobox submits each one\'s value. A form reset returns to these items, or to authored selected\n options when unset.',
162
- },
163
- label: {
164
- type: { kind: 'terminal', name: 'string' },
165
- required: false,
166
- target: { attribute: 'label' },
167
- description:
168
- 'The field\'s label, tied to its input and shown above it; required adds an asterisk. It also names the suggestion list. Pair it with\n labelVisibility="sr-only" when the context already labels the field visibly.',
169
- default: '',
170
- },
171
- labelVisibility: {
172
- type: { kind: 'terminal', name: 'keyword' },
173
- required: false,
174
- target: { attribute: 'labelvisibility' },
175
- description:
176
- 'visible shows the label above the field; sr-only hides it visually but keeps it as the input\'s accessible name. Use sr-only only when the surrounding\n layout already makes the field\'s purpose clear.',
177
- values: ['visible', 'sr-only'],
178
- default: 'visible',
179
- },
180
- loading: {
181
- type: { kind: 'terminal', name: 'boolean' },
182
- required: false,
183
- target: { attribute: 'aria-busy' },
184
- description:
185
- 'Marks the suggestion list busy while the consumer loads options. It announces loading and suppresses the empty state and create offer until cleared.',
186
- default: false,
187
- },
188
- maxRows: {
189
- type: { kind: 'terminal', name: 'integer' },
190
- required: false,
191
- target: { attribute: 'maxrows' },
192
- description:
193
- 'Visible rows of selected items and typing space in multiple mode. More than one lets the field grow and wrap before extra rows scroll vertically inside it.\n One or less keeps the single horizontally scrolling row; single-selection fields are unchanged.',
194
- default: 1,
195
- },
196
- multiple: {
197
- type: { kind: 'terminal', name: 'boolean' },
198
- required: false,
199
- target: { attribute: 'data-multiple' },
200
- description:
201
- 'Lets the user choose several options. Each choice becomes a removable badge before the input, the list stays open between picks, and choosing a checked\n option removes it. items-change then reports the whole list of items, and selected-values-change the list of their values; use selectedValues or items,\n not value, in this mode.',
202
- default: false,
203
- },
204
- muted: {
205
- type: { kind: 'terminal', name: 'boolean' },
206
- required: false,
207
- target: { attribute: 'muted' },
208
- description:
209
- 'Shows the selected field value with supporting-text emphasis, for an inherited or default choice. Suggestions keep normal emphasis and the field stays\n interactive.',
210
- default: false,
211
- },
212
- name: {
213
- type: { kind: 'terminal', name: 'string' },
214
- required: false,
215
- target: { attribute: 'name' },
216
- description:
217
- 'The form field name the combobox submits its value under, never the label shown in the field. Single mode sends one entry: the selected option\'s value, the\n typed text when allowFreeText is set and no option is selected, or an empty string. Multiple mode sends one entry per chosen item\'s value, and nothing\n when none is chosen. A disabled combobox sends nothing.',
218
- default: '',
219
- },
220
- openOnFocus: {
221
- type: { kind: 'terminal', name: 'boolean' },
222
- required: false,
223
- target: { attribute: 'openonfocus' },
224
- description:
225
- 'Opens suggestions when the input receives focus or is clicked. A committed selection shows all choices until typing filters them; an explicitly supplied\n query keeps its filtering.',
226
- default: false,
227
- },
228
- placeholder: {
229
- type: { kind: 'terminal', name: 'string' },
230
- required: false,
231
- target: { attribute: 'placeholder' },
232
- description:
233
- 'Hint text shown in the empty input, as on a native input. It disappears as the user types, so it never replaces label.',
234
- default: '',
235
- },
236
- query: {
237
- type: { kind: 'terminal', name: 'string' },
238
- required: false,
239
- target: { attribute: 'query' },
240
- description:
241
- 'The input\'s text, when the consumer controls it. Once set, the consumer owns the text: typing reports query-change, and the input returns to query unless\n query is updated to match. Leave it unset to let the combobox manage its own text, showing the chosen option\'s label.',
242
- },
243
- readonly: {
244
- type: { kind: 'terminal', name: 'boolean' },
245
- required: false,
246
- target: { attribute: 'readonly' },
247
- description:
248
- 'Shows the current value without letting it change: the text can be selected but not edited, the list does not open, and the clear, disclosure, and badge\n remove buttons are disabled. A named combobox still submits its value.',
249
- default: false,
250
- },
251
- required: {
252
- type: { kind: 'terminal', name: 'boolean' },
253
- required: false,
254
- target: { attribute: 'required' },
255
- description:
256
- 'Requires a value: adds an asterisk to the label, marks the input required for native form validation, and makes validation report "A value is required."\n when the field is left empty. In multiple mode a chosen item satisfies it, whatever is left in the input.',
257
- default: false,
258
- },
259
- selectOnTab: {
260
- type: { kind: 'terminal', name: 'boolean' },
261
- required: false,
262
- target: { attribute: 'selectontab' },
263
- description:
264
- 'Commits a highlighted authored suggestion on forward Tab, then lets focus advance normally. In multiple mode a selected suggestion is retained without\n duplication or removal. Shift+Tab does not commit, and Tab never chooses the create offer.',
265
- default: false,
266
- },
267
- selectedValues: {
268
- type: { kind: 'list', item: { kind: 'terminal', name: 'string' } },
269
- required: false,
270
- target: { attribute: 'selectedvalues' },
271
- description:
272
- 'The selected option values in multiple mode, when the consumer controls the selection. Without it or items, authored options with selected set the initial\n selection. Once set, the consumer owns it: each value shows as a badge with its authored option\'s label, adding or removing one reports\n selected-values-change with the new list, and the badges follow selectedValues, not the user, unless it is updated to match. Setting it reports nothing.\n It takes precedence over items; leave it unset to let the combobox keep its own selection.',
273
- },
274
- size: {
275
- type: { kind: 'terminal', name: 'keyword' },
276
- required: false,
277
- target: { attribute: 'size' },
278
- description:
279
- 'Field height, padding, and type size, matching Button\'s sizes so a field and a button of one size share a row. sm is the small control height (2rem by\n default) with smaller text, for compact rows such as a table row or a filter bar; md is the standard control height; lg is taller with roomier padding.\n Touch input keeps body-size field text without inflating the visible size ladder. The label keeps its size.',
280
- values: ['sm', 'md', 'lg'],
281
- default: 'md',
282
- },
283
- tokenSeparators: {
284
- type: { kind: 'list', item: { kind: 'terminal', name: 'string' } },
285
- required: false,
286
- target: { attribute: 'tokenseparators' },
287
- description:
288
- 'Keys that commit the typed text in multiple mode, as KeyboardEvent key values such as "," or ";". The text is added as the option whose label matches it,\n ignoring case, or with allowCreate is reported as create-item; otherwise it stays in the input.',
289
- },
290
- value: {
291
- type: { kind: 'terminal', name: 'string' },
292
- required: false,
293
- target: { attribute: 'value' },
294
- description:
295
- 'The selected value in single mode, which a named combobox submits with its form. The field shows the matching option\'s label, and a form reset returns to\n this value. In a strict combobox, typing a search does not change the selection; leaving with no match restores its label. If omitted, the first authored\n option with selected sets the initial value.',
296
- },
297
- },
298
- } as const
299
- const props = defineProps({
300
- allowCreate: { type: null as unknown as PropType<boolean | null> },
301
- allowFreeText: { type: null as unknown as PropType<boolean | null> },
302
- autoHighlight: { type: null as unknown as PropType<'none' | 'single' | null> },
303
- clearQueryOnBlur: { type: null as unknown as PropType<boolean | null> },
304
- clearable: { type: null as unknown as PropType<boolean | null> },
305
- disabled: { type: null as unknown as PropType<boolean | null> },
306
- disclosure: { type: null as unknown as PropType<boolean | null> },
307
- filter: { type: null as unknown as PropType<'label' | 'none' | null> },
308
- help: { type: null as unknown as PropType<string | null> },
309
- invalid: { type: null as unknown as PropType<boolean | null> },
310
- items: {
311
- type: null as unknown as PropType<
312
- readonly ({
313
- readonly id: string
314
- readonly value: string
315
- readonly label: string
316
- readonly group?: string | null
317
- readonly disabled?: boolean | null
318
- readonly description?: string | null
319
- readonly tag?: {
320
- readonly label: string
321
- readonly tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
322
- readonly color?: string | null
323
- } | null
324
- })[] | null
325
- >,
326
- },
327
- label: { type: null as unknown as PropType<string | null> },
328
- labelVisibility: { type: null as unknown as PropType<'visible' | 'sr-only' | null> },
329
- loading: { type: null as unknown as PropType<boolean | null> },
330
- maxRows: { type: null as unknown as PropType<number | null> },
331
- multiple: { type: null as unknown as PropType<boolean | null> },
332
- muted: { type: null as unknown as PropType<boolean | null> },
333
- name: { type: null as unknown as PropType<string | null> },
334
- openOnFocus: { type: null as unknown as PropType<boolean | null> },
335
- placeholder: { type: null as unknown as PropType<string | null> },
336
- query: { type: null as unknown as PropType<string | null> },
337
- readonly: { type: null as unknown as PropType<boolean | null> },
338
- required: { type: null as unknown as PropType<boolean | null> },
339
- selectOnTab: { type: null as unknown as PropType<boolean | null> },
340
- selectedValues: { type: null as unknown as PropType<readonly (string)[] | null> },
341
- size: { type: null as unknown as PropType<'sm' | 'md' | 'lg' | null> },
342
- tokenSeparators: { type: null as unknown as PropType<readonly (string)[] | null> },
343
- value: { type: null as unknown as PropType<string | null> },
344
- [BINDING_INPUTS_PROP]: { type: null as unknown as PropType<InputBindings> },
345
- })
346
- const acceptedProps: Record<string, unknown> = {
347
- allowCreate: false,
348
- allowFreeText: false,
349
- autoHighlight: 'none',
350
- clearQueryOnBlur: false,
351
- clearable: false,
352
- disabled: false,
353
- disclosure: false,
354
- filter: 'label',
355
- help: '',
356
- invalid: false,
357
- items: null,
358
- label: '',
359
- labelVisibility: 'visible',
360
- loading: false,
361
- maxRows: 1,
362
- multiple: false,
363
- muted: false,
364
- name: '',
365
- openOnFocus: false,
366
- placeholder: '',
367
- query: null,
368
- readonly: false,
369
- required: false,
370
- selectOnTab: false,
371
- selectedValues: null,
372
- size: 'md',
373
- tokenSeparators: null,
374
- value: null,
375
- }
376
- const inputTracking = vuePropInputs(acceptedProps, {
377
- allowCreate: false,
378
- allowFreeText: false,
379
- autoHighlight: 'none',
380
- clearQueryOnBlur: false,
381
- clearable: false,
382
- disabled: false,
383
- disclosure: false,
384
- filter: 'label',
385
- help: '',
386
- invalid: false,
387
- label: '',
388
- labelVisibility: 'visible',
389
- loading: false,
390
- maxRows: 1,
391
- multiple: false,
392
- muted: false,
393
- name: '',
394
- openOnFocus: false,
395
- placeholder: '',
396
- readonly: false,
397
- required: false,
398
- selectOnTab: false,
399
- size: 'md',
400
- }, (name, value, source, values) => {
401
- switch (name) {
402
- case 'allowCreate':
403
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
404
- case 'allowFreeText':
405
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
406
- case 'autoHighlight':
407
- return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
408
- case 'clearQueryOnBlur':
409
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
410
- case 'clearable':
411
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
412
- case 'disabled':
413
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
414
- case 'disclosure':
415
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
416
- case 'filter':
417
- return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
418
- case 'help':
419
- return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
420
- case 'invalid':
421
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
422
- case 'items':
423
- return checkPropInput(
424
- value,
425
- {
426
- kind: 'list',
427
- item: {
428
- kind: 'object',
429
- fields: [
430
- { name: 'id', type: { kind: 'terminal', name: 'string' }, optional: false },
431
- { name: 'value', type: { kind: 'terminal', name: 'string' }, optional: false },
432
- { name: 'label', type: { kind: 'terminal', name: 'string' }, optional: false },
433
- { name: 'group', type: { kind: 'terminal', name: 'string' }, optional: true },
434
- { name: 'disabled', type: { kind: 'terminal', name: 'boolean' }, optional: true },
435
- { name: 'description', type: { kind: 'terminal', name: 'string' }, optional: true },
436
- {
437
- name: 'tag',
438
- type: {
439
- kind: 'object',
440
- fields: [{
441
- name: 'label',
442
- type: { kind: 'terminal', name: 'string' },
443
- optional: false,
444
- }, {
445
- name: 'tone',
446
- type: {
447
- kind: 'constrained',
448
- base: { kind: 'terminal', name: 'keyword' },
449
- values: ['neutral', 'accent', 'info', 'success', 'warning', 'danger'],
450
- },
451
- optional: true,
452
- }, { name: 'color', type: { kind: 'terminal', name: 'string' }, optional: true }],
453
- open: false,
454
- },
455
- optional: true,
456
- },
457
- ],
458
- open: false,
459
- },
460
- },
461
- true,
462
- true,
463
- )
464
- case 'label':
465
- return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
466
- case 'labelVisibility':
467
- return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
468
- case 'loading':
469
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
470
- case 'maxRows':
471
- return checkPropInput(value, { kind: 'terminal', name: 'integer' }, true, true)
472
- case 'multiple':
473
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
474
- case 'muted':
475
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
476
- case 'name':
477
- return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
478
- case 'openOnFocus':
479
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
480
- case 'placeholder':
481
- return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
482
- case 'query':
483
- return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
484
- case 'readonly':
485
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
486
- case 'required':
487
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
488
- case 'selectOnTab':
489
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
490
- case 'selectedValues':
491
- return checkPropInput(
492
- value,
493
- { kind: 'list', item: { kind: 'terminal', name: 'string' } },
494
- true,
495
- true,
496
- )
497
- case 'size':
498
- return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
499
- case 'tokenSeparators':
500
- return checkPropInput(
501
- value,
502
- { kind: 'list', item: { kind: 'terminal', name: 'string' } },
503
- true,
504
- true,
505
- )
506
- case 'value':
507
- return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
508
- default:
509
- return { ok: false }
510
- }
511
- }, () => {
512
- void checkedProps.value
513
- })
514
- const propInputs = inputTracking.inputs
515
- const checkedProps = computed(() => {
516
- void inputTracking.version.value
517
- return ({
518
- allowCreate: propInputs.value<boolean | null>(
519
- 'allowCreate',
520
- props['allowCreate'],
521
- props[BINDING_INPUTS_PROP],
522
- ) as boolean,
523
- allowFreeText: propInputs.value<boolean | null>(
524
- 'allowFreeText',
525
- props['allowFreeText'],
526
- props[BINDING_INPUTS_PROP],
527
- ) as boolean,
528
- autoHighlight: propInputs.value<'none' | 'single' | null>(
529
- 'autoHighlight',
530
- props['autoHighlight'],
531
- props[BINDING_INPUTS_PROP],
532
- ) as 'none' | 'single',
533
- clearQueryOnBlur: propInputs.value<boolean | null>(
534
- 'clearQueryOnBlur',
535
- props['clearQueryOnBlur'],
536
- props[BINDING_INPUTS_PROP],
537
- ) as boolean,
538
- clearable: propInputs.value<boolean | null>(
539
- 'clearable',
540
- props['clearable'],
541
- props[BINDING_INPUTS_PROP],
542
- ) as boolean,
543
- disabled: propInputs.value<boolean | null>(
544
- 'disabled',
545
- props['disabled'],
546
- props[BINDING_INPUTS_PROP],
547
- ) as boolean,
548
- disclosure: propInputs.value<boolean | null>(
549
- 'disclosure',
550
- props['disclosure'],
551
- props[BINDING_INPUTS_PROP],
552
- ) as boolean,
553
- filter: propInputs.value<'label' | 'none' | null>(
554
- 'filter',
555
- props['filter'],
556
- props[BINDING_INPUTS_PROP],
557
- ) as 'label' | 'none',
558
- help: propInputs.value<string | null>(
559
- 'help',
560
- props['help'],
561
- props[BINDING_INPUTS_PROP],
562
- ) as string,
563
- invalid: propInputs.value<boolean | null>(
564
- 'invalid',
565
- props['invalid'],
566
- props[BINDING_INPUTS_PROP],
567
- ) as boolean,
568
- items: propInputs.value<
569
- readonly ({
570
- readonly id: string
571
- readonly value: string
572
- readonly label: string
573
- readonly group?: string | null
574
- readonly disabled?: boolean | null
575
- readonly description?: string | null
576
- readonly tag?: {
577
- readonly label: string
578
- readonly tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
579
- readonly color?: string | null
580
- } | null
581
- })[] | null
582
- >('items', props['items'], props[BINDING_INPUTS_PROP]),
583
- label: propInputs.value<string | null>(
584
- 'label',
585
- props['label'],
586
- props[BINDING_INPUTS_PROP],
587
- ) as string,
588
- labelVisibility: propInputs.value<'visible' | 'sr-only' | null>(
589
- 'labelVisibility',
590
- props['labelVisibility'],
591
- props[BINDING_INPUTS_PROP],
592
- ) as 'visible' | 'sr-only',
593
- loading: propInputs.value<boolean | null>(
594
- 'loading',
595
- props['loading'],
596
- props[BINDING_INPUTS_PROP],
597
- ) as boolean,
598
- maxRows: propInputs.value<number | null>(
599
- 'maxRows',
600
- props['maxRows'],
601
- props[BINDING_INPUTS_PROP],
602
- ) as number,
603
- multiple: propInputs.value<boolean | null>(
604
- 'multiple',
605
- props['multiple'],
606
- props[BINDING_INPUTS_PROP],
607
- ) as boolean,
608
- muted: propInputs.value<boolean | null>(
609
- 'muted',
610
- props['muted'],
611
- props[BINDING_INPUTS_PROP],
612
- ) as boolean,
613
- name: propInputs.value<string | null>(
614
- 'name',
615
- props['name'],
616
- props[BINDING_INPUTS_PROP],
617
- ) as string,
618
- openOnFocus: propInputs.value<boolean | null>(
619
- 'openOnFocus',
620
- props['openOnFocus'],
621
- props[BINDING_INPUTS_PROP],
622
- ) as boolean,
623
- placeholder: propInputs.value<string | null>(
624
- 'placeholder',
625
- props['placeholder'],
626
- props[BINDING_INPUTS_PROP],
627
- ) as string,
628
- query: propInputs.value<string | null>('query', props['query'], props[BINDING_INPUTS_PROP]),
629
- readonly: propInputs.value<boolean | null>(
630
- 'readonly',
631
- props['readonly'],
632
- props[BINDING_INPUTS_PROP],
633
- ) as boolean,
634
- required: propInputs.value<boolean | null>(
635
- 'required',
636
- props['required'],
637
- props[BINDING_INPUTS_PROP],
638
- ) as boolean,
639
- selectOnTab: propInputs.value<boolean | null>(
640
- 'selectOnTab',
641
- props['selectOnTab'],
642
- props[BINDING_INPUTS_PROP],
643
- ) as boolean,
644
- selectedValues: propInputs.value<readonly (string)[] | null>(
645
- 'selectedValues',
646
- props['selectedValues'],
647
- props[BINDING_INPUTS_PROP],
648
- ),
649
- size: propInputs.value<'sm' | 'md' | 'lg' | null>(
650
- 'size',
651
- props['size'],
652
- props[BINDING_INPUTS_PROP],
653
- ) as 'sm' | 'md' | 'lg',
654
- tokenSeparators: propInputs.value<readonly (string)[] | null>(
655
- 'tokenSeparators',
656
- props['tokenSeparators'],
657
- props[BINDING_INPUTS_PROP],
658
- ),
659
- value: propInputs.value<string | null>('value', props['value'], props[BINDING_INPUTS_PROP]),
660
- })
661
- })
662
- const inputStatus = (name: string, handlesError: boolean) => {
663
- void checkedProps.value
664
- void inputTracking.version.value
665
- return requireInputStatus(propInputs.status(name), handlesError)
666
- }
667
- void checkedProps.value
668
- watchSyncEffect(() => {
669
- void checkedProps.value
670
- })
671
- const reflectedProp = useReflectedProp()
672
- const hydrationInstance = getCurrentInstance()
673
- const emit = defineEmits<{
674
- 'update:query': [value: string]
675
- 'update:selectedValues': [value: readonly (string)[]]
676
- 'update:value': [value: string]
677
- 'query-change': [
678
- event: CustomEvent<
679
- {
680
- readonly query: string
681
- readonly display: string
682
- readonly trigger: 'keyboard' | 'pointer' | 'programmatic'
683
- }
684
- >,
685
- ]
686
- 'value-change': [
687
- event: CustomEvent<
688
- {
689
- readonly value?: string | null
690
- readonly query: string
691
- readonly option?: {
692
- readonly id: string
693
- readonly value: string
694
- readonly label: string
695
- readonly group?: string | null
696
- readonly disabled?: boolean | null
697
- readonly description?: string | null
698
- readonly tag?: {
699
- readonly label: string
700
- readonly tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
701
- readonly color?: string | null
702
- } | null
703
- } | null
704
- readonly kind: 'selection' | 'clear' | 'free-entry' | 'create'
705
- readonly trigger: 'keyboard' | 'pointer' | 'programmatic'
706
- }
707
- >,
708
- ]
709
- 'items-change': [
710
- event: CustomEvent<
711
- readonly ({
712
- readonly id: string
713
- readonly value: string
714
- readonly label: string
715
- readonly group?: string | null
716
- readonly disabled?: boolean | null
717
- readonly description?: string | null
718
- readonly tag?: {
719
- readonly label: string
720
- readonly tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
721
- readonly color?: string | null
722
- } | null
723
- })[]
724
- >,
725
- ]
726
- 'free-entry': [
727
- event: CustomEvent<
728
- {
729
- readonly value?: string | null
730
- readonly query: string
731
- readonly option?: {
732
- readonly id: string
733
- readonly value: string
734
- readonly label: string
735
- readonly group?: string | null
736
- readonly disabled?: boolean | null
737
- readonly description?: string | null
738
- readonly tag?: {
739
- readonly label: string
740
- readonly tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
741
- readonly color?: string | null
742
- } | null
743
- } | null
744
- readonly kind: 'selection' | 'clear' | 'free-entry' | 'create'
745
- readonly trigger: 'keyboard' | 'pointer' | 'programmatic'
746
- }
747
- >,
748
- ]
749
- 'create-entry': [
750
- event: CustomEvent<
751
- {
752
- readonly value?: string | null
753
- readonly query: string
754
- readonly option?: {
755
- readonly id: string
756
- readonly value: string
757
- readonly label: string
758
- readonly group?: string | null
759
- readonly disabled?: boolean | null
760
- readonly description?: string | null
761
- readonly tag?: {
762
- readonly label: string
763
- readonly tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
764
- readonly color?: string | null
765
- } | null
766
- } | null
767
- readonly kind: 'selection' | 'clear' | 'free-entry' | 'create'
768
- readonly trigger: 'keyboard' | 'pointer' | 'programmatic'
769
- }
770
- >,
771
- ]
772
- 'validation-change': [
773
- event: CustomEvent<
774
- {
775
- readonly status: 'pristine' | 'pending' | 'valid' | 'warning' | 'error'
776
- readonly touched: boolean
777
- readonly dirty: boolean
778
- readonly issues:
779
- readonly ({
780
- readonly message: string
781
- readonly path?: readonly (unknown)[] | null
782
- readonly severity?: 'error' | 'warning' | null
783
- })[]
784
- readonly output?: unknown | null
785
- }
786
- >,
787
- ]
788
- 'options-change': [
789
- event: CustomEvent<
790
- readonly ({
791
- readonly id: string
792
- readonly value: string
793
- readonly label: string
794
- readonly group?: string | null
795
- readonly disabled?: boolean | null
796
- readonly description?: string | null
797
- readonly tag?: {
798
- readonly label: string
799
- readonly tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
800
- readonly color?: string | null
801
- } | null
802
- })[]
803
- >,
804
- ]
805
- 'add-item': [
806
- event: CustomEvent<
807
- {
808
- readonly item: {
809
- readonly id: string
810
- readonly value: string
811
- readonly label: string
812
- readonly group?: string | null
813
- readonly disabled?: boolean | null
814
- readonly description?: string | null
815
- readonly tag?: {
816
- readonly label: string
817
- readonly tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
818
- readonly color?: string | null
819
- } | null
820
- }
821
- readonly index: number
822
- readonly trigger: 'keyboard' | 'pointer' | 'programmatic'
823
- }
824
- >,
825
- ]
826
- 'remove-item': [
827
- event: CustomEvent<
828
- {
829
- readonly item: {
830
- readonly id: string
831
- readonly value: string
832
- readonly label: string
833
- readonly group?: string | null
834
- readonly disabled?: boolean | null
835
- readonly description?: string | null
836
- readonly tag?: {
837
- readonly label: string
838
- readonly tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
839
- readonly color?: string | null
840
- } | null
841
- }
842
- readonly index: number
843
- readonly trigger: 'keyboard' | 'pointer' | 'programmatic'
844
- }
845
- >,
846
- ]
847
- 'create-item': [
848
- event: CustomEvent<
849
- { readonly query: string; readonly trigger: 'keyboard' | 'pointer' | 'programmatic' }
850
- >,
851
- ]
852
- 'selected-values-change': [
853
- event: CustomEvent<
854
- {
855
- readonly selectedValues: readonly (string)[]
856
- readonly trigger: 'keyboard' | 'pointer' | 'programmatic'
857
- }
858
- >,
859
- ]
860
- }>()
861
-
862
- const root = ref<HTMLElement | null>(null)
863
- const fieldElement = useTemplateRef<HTMLElement>('fieldElement')
864
- const inputElement = useTemplateRef<HTMLElement>('inputElement')
865
- const popupElement = useTemplateRef<HTMLElement>('popupElement')
866
- const listboxElement = useTemplateRef<HTMLElement>('listboxElement')
867
- const optionsElement = useTemplateRef<HTMLElement>('optionsElement')
868
- const internalItems = ref<
869
- {
870
- id: string
871
- value: string
872
- label: string
873
- group?: string
874
- disabled?: boolean
875
- description?: string
876
- tag?: {
877
- label: string
878
- tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger'
879
- color?: string
880
- }
881
- }[]
882
- >([])
883
- const raw = ref('')
884
- const display = ref('')
885
- const selected = ref<string | null>(null)
886
- const expanded = ref(false)
887
- const rows = ref<
888
- {
889
- id: string
890
- value: string
891
- label: string
892
- group?: string
893
- disabled: boolean
894
- selected: boolean
895
- description?: string
896
- tag?: {
897
- label: string
898
- tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger'
899
- color?: string
900
- }
901
- }[]
902
- >([])
903
- const active = ref(-1)
904
- const helpOpen = ref(false)
905
- const lookupError = ref('')
906
- const validation = ref<
907
- {
908
- status: 'pristine' | 'pending' | 'valid' | 'warning' | 'error'
909
- touched: boolean
910
- dirty: boolean
911
- issues: { message: string }[]
912
- [name: string]: any
913
- }
914
- >({ status: 'pristine', touched: false, dirty: false, issues: [] })
915
- const uid = ref('')
916
- const submitted = ref('')
917
- const groups = ref<
918
- {
919
- name: string
920
- role: 'group' | 'presentation'
921
- label?: string
922
- rows: {
923
- id: string
924
- value: string
925
- label: string
926
- group?: string
927
- disabled: boolean
928
- selected: boolean
929
- description?: string
930
- tag?: {
931
- label: string
932
- tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger'
933
- color?: string
934
- }
935
- index: number
936
- labelledBy?: string
937
- detail?: string
938
- option: {
939
- id: string
940
- value: string
941
- label: string
942
- group?: string
943
- disabled?: boolean
944
- description?: string
945
- tag?: {
946
- label: string
947
- tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger'
948
- color?: string
949
- }
950
- selected?: boolean
951
- }
952
- }[]
953
- }[]
954
- >([])
955
- const creatable = ref(false)
956
- const createIndex = ref(0)
957
- const message = ref('')
958
- const statusText = ref('')
959
- const validationStatus = ref('pristine')
960
- let guardedPrevious: any = null
961
- const guarded = computed(() => {
962
- const candidate: any = concat(uid.value, '-input')
963
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedPrevious
964
- return guardedPrevious = candidate
965
- })
966
- let guardedBindingPrevious: any = null
967
- const guardedBinding = computed(() => {
968
- const candidate: any = concat(uid.value, '-input')
969
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedBindingPrevious
970
- return guardedBindingPrevious = candidate
971
- })
972
- let guardedBinding2Previous: any = null
973
- const guardedBinding2 = computed(() => {
974
- const candidate: any = concat(uid.value, '-listbox')
975
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding2Previous
976
- return guardedBinding2Previous = candidate
977
- })
978
- let guardedBinding3Previous: any
979
- const guardedBinding3 = computed(() => {
980
- if (
981
- !(warnUnless(
982
- internalItems.value?.['0'] == null
983
- || (typeof internalItems.value?.['0'] === 'object' && internalItems.value?.['0'] !== null
984
- && !Array.isArray(internalItems.value?.['0'])),
985
- '$required and not ($multiple and $internalItems.0):internalItems.0',
986
- './components/ui-combobox/ui-combobox.html: HR007: Reference internalItems.0 does not satisfy its declared type.',
987
- ))
988
- ) return guardedBinding3Previous
989
- return guardedBinding3Previous = checkedProps.value.required
990
- && !(checkedProps.value.multiple && internalItems.value[0])
991
- })
992
- let guardedBinding4Previous: any = null
993
- const guardedBinding4 = computed(() => {
994
- const candidate: any = concat(uid.value, '-listbox')
995
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding4Previous
996
- return guardedBinding4Previous = candidate
997
- })
998
- let guardedBinding5Previous: any = null
999
- const guardedBinding5 = computed(() => {
1000
- const candidate: any = concat(uid.value, '-help')
1001
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding5Previous
1002
- return guardedBinding5Previous = candidate
1003
- })
1004
- let guardedBinding6Previous: any = null
1005
- const guardedBinding6 = computed(() => {
1006
- const candidate: any = concat(uid.value, '-help-text')
1007
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding6Previous
1008
- return guardedBinding6Previous = candidate
1009
- })
1010
- let guardedBinding7Previous: any = null
1011
- const guardedBinding7 = computed(() => {
1012
- const candidate: any = concat(uid.value, '-help')
1013
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding7Previous
1014
- return guardedBinding7Previous = candidate
1015
- })
1016
- let guardedBinding8Previous: any = null
1017
- const guardedBinding8 = computed(() => {
1018
- const candidate: any = concat(uid.value, '-listbox')
1019
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding8Previous
1020
- return guardedBinding8Previous = candidate
1021
- })
1022
- let guardedBinding9Previous: any = null
1023
- const guardedBinding9 = computed(() => {
1024
- const candidate: any = concat(checkedProps.value.label, ' suggestions')
1025
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding9Previous
1026
- return guardedBinding9Previous = candidate
1027
- })
1028
- let guardedBinding10Previous: any
1029
- const guardedBinding10 = computed(() => {
1030
- if (
1031
- !(warnUnless(
1032
- active.value == null || Number.isInteger(active.value),
1033
- '$createIndex = $active:active',
1034
- './components/ui-combobox/ui-combobox.html: HR007: Reference active does not satisfy its declared type.',
1035
- ))
1036
- ) return guardedBinding10Previous
1037
- return guardedBinding10Previous = createIndex.value === active.value
1038
- })
1039
- let guardedBinding11Previous: any = null
1040
- const guardedBinding11 = computed(() => {
1041
- const candidate: any = concat(uid.value, '-option-', createIndex.value)
1042
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding11Previous
1043
- return guardedBinding11Previous = candidate
1044
- })
1045
- let guardedBinding12Previous: any = null
1046
- const guardedBinding12 = computed(() => {
1047
- const candidate: any = concat('Create “', raw.value, '”')
1048
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding12Previous
1049
- return guardedBinding12Previous = candidate
1050
- })
1051
- let guardedBinding13Previous: any = null
1052
- const guardedBinding13 = computed(() => {
1053
- const candidate: any = concat(uid.value, '-validation')
1054
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding13Previous
1055
- return guardedBinding13Previous = candidate
1056
- })
1057
- provide('html-next:ui-combobox:internalItems', internalItems)
1058
- provide('html-next:ui-combobox:raw', raw)
1059
- provide('html-next:ui-combobox:display', display)
1060
- provide('html-next:ui-combobox:selected', selected)
1061
- provide('html-next:ui-combobox:expanded', expanded)
1062
- provide('html-next:ui-combobox:rows', rows)
1063
- provide('html-next:ui-combobox:active', active)
1064
- provide('html-next:ui-combobox:helpOpen', helpOpen)
1065
- provide('html-next:ui-combobox:lookupError', lookupError)
1066
- provide('html-next:ui-combobox:validation', validation)
1067
- provide('html-next:ui-combobox:uid', uid)
1068
- provide('html-next:ui-combobox:submitted', submitted)
1069
- provide('html-next:ui-combobox:groups', groups)
1070
- provide('html-next:ui-combobox:creatable', creatable)
1071
- provide('html-next:ui-combobox:createIndex', createIndex)
1072
- provide('html-next:ui-combobox:message', message)
1073
- provide('html-next:ui-combobox:statusText', statusText)
1074
- provide('html-next:ui-combobox:validationStatus', validationStatus)
1075
- const scopedSlotName = useScopedSlotName()
1076
- defineSlots<
1077
- {
1078
- start?(props: Record<string, never>): any
1079
- item?(
1080
- props: {
1081
- readonly item: {
1082
- readonly id: string
1083
- readonly value: string
1084
- readonly label: string
1085
- readonly group?: string | null
1086
- readonly disabled?: boolean | null
1087
- readonly description?: string | null
1088
- readonly tag?: {
1089
- readonly label: string
1090
- readonly tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
1091
- readonly color?: string | null
1092
- } | null
1093
- }
1094
- },
1095
- ): any
1096
- option?(
1097
- props: {
1098
- readonly option: {
1099
- readonly id: string
1100
- readonly value: string
1101
- readonly label: string
1102
- readonly group?: string | null
1103
- readonly disabled?: boolean | null
1104
- readonly description?: string | null
1105
- readonly tag?: {
1106
- readonly label: string
1107
- readonly tone?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | null
1108
- readonly color?: string | null
1109
- } | null
1110
- readonly selected?: boolean | null
1111
- }
1112
- },
1113
- ): any
1114
- empty?(props: Record<string, never>): any
1115
- footer?(props: Record<string, never>): any
1116
- default?(props: Record<string, never>): any
1117
- }
1118
- >()
1119
- checkHydratedRoot('div', 'ui-combobox')
1120
-
1121
- /** The values the styles' :host() and :state() rules test. */
1122
- const hostState = computed(() =>
1123
- [
1124
- checkedProps.value.size && 'size',
1125
- checkedProps.value.size != null && `size=${encodeURIComponent(checkedProps.value.size)}`,
1126
- checkedProps.value.muted && 'muted',
1127
- validationStatus.value && 'validationStatus',
1128
- `validationStatus=${encodeURIComponent(validationStatus.value)}`,
1129
- checkedProps.value.invalid && 'invalid',
1130
- checkedProps.value.multiple && 'multiple',
1131
- ].filter(Boolean).join(' ')
1132
- )
1133
-
1134
- const isQueryChangeDetail = (
1135
- detail: unknown,
1136
- ): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
1137
- && typeof (detail as Record<string, unknown>)['query'] === 'string'
1138
- && typeof (detail as Record<string, unknown>)['display'] === 'string'
1139
- && ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
1140
- || (detail as Record<string, unknown>)['trigger'] === 'pointer'
1141
- || (detail as Record<string, unknown>)['trigger'] === 'programmatic')
1142
- && Object.keys(detail as object).every((key) => ['query', 'display', 'trigger'].includes(key)))
1143
- const isValueChangeDetail = (
1144
- detail: unknown,
1145
- ): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
1146
- && ((detail as Record<string, unknown>)['value'] == null
1147
- || typeof (detail as Record<string, unknown>)['value'] === 'string')
1148
- && typeof (detail as Record<string, unknown>)['query'] === 'string'
1149
- && ((detail as Record<string, unknown>)['option'] == null
1150
- || ((detail as Record<string, unknown>)['option'] !== null
1151
- && typeof (detail as Record<string, unknown>)['option'] === 'object'
1152
- && !Array.isArray((detail as Record<string, unknown>)['option'])
1153
- && typeof ((detail as Record<string, unknown>)['option'] as Record<string, unknown>)['id']
1154
- === 'string'
1155
- && typeof ((detail as Record<string, unknown>)['option'] as Record<string, unknown>)['value']
1156
- === 'string'
1157
- && typeof ((detail as Record<string, unknown>)['option'] as Record<string, unknown>)['label']
1158
- === 'string'
1159
- && (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)['group']
1160
- == null
1161
- || typeof ((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1162
- 'group'
1163
- ] === 'string')
1164
- && (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)['disabled']
1165
- == null
1166
- || typeof ((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1167
- 'disabled'
1168
- ] === 'boolean')
1169
- && (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)['description']
1170
- == null
1171
- || typeof ((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1172
- 'description'
1173
- ] === 'string')
1174
- && (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)['tag'] == null
1175
- || (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)['tag']
1176
- !== null
1177
- && typeof ((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1178
- 'tag'
1179
- ] === 'object'
1180
- && !Array.isArray(
1181
- ((detail as Record<string, unknown>)['option'] as Record<string, unknown>)['tag'],
1182
- )
1183
- && typeof (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1184
- 'tag'
1185
- ] as Record<string, unknown>)['label'] === 'string'
1186
- && ((((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1187
- 'tag'
1188
- ] as Record<string, unknown>)['tone'] == null
1189
- || ((((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1190
- 'tag'
1191
- ] as Record<string, unknown>)['tone'] === 'neutral'
1192
- || (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1193
- 'tag'
1194
- ] as Record<string, unknown>)['tone'] === 'accent'
1195
- || (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1196
- 'tag'
1197
- ] as Record<string, unknown>)['tone'] === 'info'
1198
- || (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1199
- 'tag'
1200
- ] as Record<string, unknown>)['tone'] === 'success'
1201
- || (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1202
- 'tag'
1203
- ] as Record<string, unknown>)['tone'] === 'warning'
1204
- || (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1205
- 'tag'
1206
- ] as Record<string, unknown>)['tone'] === 'danger'))
1207
- && ((((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1208
- 'tag'
1209
- ] as Record<string, unknown>)['color'] == null
1210
- || typeof (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1211
- 'tag'
1212
- ] as Record<string, unknown>)['color'] === 'string')
1213
- && Object.keys(
1214
- ((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
1215
- 'tag'
1216
- ] as object,
1217
- ).every((key) => ['label', 'tone', 'color'].includes(key))))
1218
- && Object.keys((detail as Record<string, unknown>)['option'] as object).every((key) =>
1219
- ['id', 'value', 'label', 'group', 'disabled', 'description', 'tag'].includes(key)
1220
- )))
1221
- && ((detail as Record<string, unknown>)['kind'] === 'selection'
1222
- || (detail as Record<string, unknown>)['kind'] === 'clear'
1223
- || (detail as Record<string, unknown>)['kind'] === 'free-entry'
1224
- || (detail as Record<string, unknown>)['kind'] === 'create')
1225
- && ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
1226
- || (detail as Record<string, unknown>)['trigger'] === 'pointer'
1227
- || (detail as Record<string, unknown>)['trigger'] === 'programmatic')
1228
- && Object.keys(detail as object).every((key) =>
1229
- ['value', 'query', 'option', 'kind', 'trigger'].includes(key)
1230
- ))
1231
- const isItemsChangeDetail = (
1232
- detail: unknown,
1233
- ): boolean => (Array.isArray(detail)
1234
- && (detail as unknown[]).every((
1235
- item: unknown,
1236
- ) => (item !== null && typeof item === 'object' && !Array.isArray(item)
1237
- && typeof (item as Record<string, unknown>)['id'] === 'string'
1238
- && typeof (item as Record<string, unknown>)['value'] === 'string'
1239
- && typeof (item as Record<string, unknown>)['label'] === 'string'
1240
- && ((item as Record<string, unknown>)['group'] == null
1241
- || typeof (item as Record<string, unknown>)['group'] === 'string')
1242
- && ((item as Record<string, unknown>)['disabled'] == null
1243
- || typeof (item as Record<string, unknown>)['disabled'] === 'boolean')
1244
- && ((item as Record<string, unknown>)['description'] == null
1245
- || typeof (item as Record<string, unknown>)['description'] === 'string')
1246
- && ((item as Record<string, unknown>)['tag'] == null
1247
- || ((item as Record<string, unknown>)['tag'] !== null
1248
- && typeof (item as Record<string, unknown>)['tag'] === 'object'
1249
- && !Array.isArray((item as Record<string, unknown>)['tag'])
1250
- && typeof ((item as Record<string, unknown>)['tag'] as Record<string, unknown>)['label']
1251
- === 'string'
1252
- && (((item as Record<string, unknown>)['tag'] as Record<string, unknown>)['tone'] == null
1253
- || (((item as Record<string, unknown>)['tag'] as Record<string, unknown>)['tone']
1254
- === 'neutral'
1255
- || ((item as Record<string, unknown>)['tag'] as Record<string, unknown>)['tone']
1256
- === 'accent'
1257
- || ((item as Record<string, unknown>)['tag'] as Record<string, unknown>)['tone']
1258
- === 'info'
1259
- || ((item as Record<string, unknown>)['tag'] as Record<string, unknown>)['tone']
1260
- === 'success'
1261
- || ((item as Record<string, unknown>)['tag'] as Record<string, unknown>)['tone']
1262
- === 'warning'
1263
- || ((item as Record<string, unknown>)['tag'] as Record<string, unknown>)['tone']
1264
- === 'danger'))
1265
- && (((item as Record<string, unknown>)['tag'] as Record<string, unknown>)['color'] == null
1266
- || typeof ((item as Record<string, unknown>)['tag'] as Record<string, unknown>)['color']
1267
- === 'string')
1268
- && Object.keys((item as Record<string, unknown>)['tag'] as object).every((key) =>
1269
- ['label', 'tone', 'color'].includes(key)
1270
- )))
1271
- && Object.keys(item as object).every((key) =>
1272
- ['id', 'value', 'label', 'group', 'disabled', 'description', 'tag'].includes(key)
1273
- ))
1274
- ))
1275
- const isValidationChangeDetail = (
1276
- detail: unknown,
1277
- ): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
1278
- && ((detail as Record<string, unknown>)['status'] === 'pristine'
1279
- || (detail as Record<string, unknown>)['status'] === 'pending'
1280
- || (detail as Record<string, unknown>)['status'] === 'valid'
1281
- || (detail as Record<string, unknown>)['status'] === 'warning'
1282
- || (detail as Record<string, unknown>)['status'] === 'error')
1283
- && typeof (detail as Record<string, unknown>)['touched'] === 'boolean'
1284
- && typeof (detail as Record<string, unknown>)['dirty'] === 'boolean'
1285
- && (Array.isArray((detail as Record<string, unknown>)['issues'])
1286
- && ((detail as Record<string, unknown>)['issues'] as unknown[]).every((
1287
- item: unknown,
1288
- ) => (item !== null && typeof item === 'object' && !Array.isArray(item)
1289
- && typeof (item as Record<string, unknown>)['message'] === 'string'
1290
- && ((item as Record<string, unknown>)['path'] == null
1291
- || (Array.isArray((item as Record<string, unknown>)['path'])
1292
- && ((item as Record<string, unknown>)['path'] as unknown[]).every((item: unknown) =>
1293
- true
1294
- )))
1295
- && ((item as Record<string, unknown>)['severity'] == null
1296
- || ((item as Record<string, unknown>)['severity'] === 'error'
1297
- || (item as Record<string, unknown>)['severity'] === 'warning'))
1298
- && Object.keys(item as object).every((key) => ['message', 'path', 'severity'].includes(key)))
1299
- ))
1300
- && ((detail as Record<string, unknown>)['output'] == null || true)
1301
- && Object.keys(detail as object).every((key) =>
1302
- ['status', 'touched', 'dirty', 'issues', 'output'].includes(key)
1303
- ))
1304
- const isAddItemDetail = (
1305
- detail: unknown,
1306
- ): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
1307
- && ((detail as Record<string, unknown>)['item'] !== null
1308
- && typeof (detail as Record<string, unknown>)['item'] === 'object'
1309
- && !Array.isArray((detail as Record<string, unknown>)['item'])
1310
- && typeof ((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['id']
1311
- === 'string'
1312
- && typeof ((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['value']
1313
- === 'string'
1314
- && typeof ((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['label']
1315
- === 'string'
1316
- && (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['group'] == null
1317
- || typeof ((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['group']
1318
- === 'string')
1319
- && (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['disabled'] == null
1320
- || typeof ((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['disabled']
1321
- === 'boolean')
1322
- && (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['description']
1323
- == null
1324
- || typeof ((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
1325
- 'description'
1326
- ] === 'string')
1327
- && (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['tag'] == null
1328
- || (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['tag'] !== null
1329
- && typeof ((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['tag']
1330
- === 'object'
1331
- && !Array.isArray(
1332
- ((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['tag'],
1333
- )
1334
- && typeof (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
1335
- 'tag'
1336
- ] as Record<string, unknown>)['label'] === 'string'
1337
- && ((((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
1338
- 'tag'
1339
- ] as Record<string, unknown>)['tone'] == null
1340
- || ((((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
1341
- 'tag'
1342
- ] as Record<string, unknown>)['tone'] === 'neutral'
1343
- || (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
1344
- 'tag'
1345
- ] as Record<string, unknown>)['tone'] === 'accent'
1346
- || (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
1347
- 'tag'
1348
- ] as Record<string, unknown>)['tone'] === 'info'
1349
- || (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
1350
- 'tag'
1351
- ] as Record<string, unknown>)['tone'] === 'success'
1352
- || (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
1353
- 'tag'
1354
- ] as Record<string, unknown>)['tone'] === 'warning'
1355
- || (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
1356
- 'tag'
1357
- ] as Record<string, unknown>)['tone'] === 'danger'))
1358
- && ((((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
1359
- 'tag'
1360
- ] as Record<string, unknown>)['color'] == null
1361
- || typeof (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
1362
- 'tag'
1363
- ] as Record<string, unknown>)['color'] === 'string')
1364
- && Object.keys(
1365
- ((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['tag'] as object,
1366
- ).every((key) => ['label', 'tone', 'color'].includes(key))))
1367
- && Object.keys((detail as Record<string, unknown>)['item'] as object).every((key) =>
1368
- ['id', 'value', 'label', 'group', 'disabled', 'description', 'tag'].includes(key)
1369
- ))
1370
- && Number.isInteger((detail as Record<string, unknown>)['index'])
1371
- && ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
1372
- || (detail as Record<string, unknown>)['trigger'] === 'pointer'
1373
- || (detail as Record<string, unknown>)['trigger'] === 'programmatic')
1374
- && Object.keys(detail as object).every((key) => ['item', 'index', 'trigger'].includes(key)))
1375
- const isCreateItemDetail = (
1376
- detail: unknown,
1377
- ): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
1378
- && typeof (detail as Record<string, unknown>)['query'] === 'string'
1379
- && ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
1380
- || (detail as Record<string, unknown>)['trigger'] === 'pointer'
1381
- || (detail as Record<string, unknown>)['trigger'] === 'programmatic')
1382
- && Object.keys(detail as object).every((key) => ['query', 'trigger'].includes(key)))
1383
- const isSelectedValuesChangeDetail = (
1384
- detail: unknown,
1385
- ): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
1386
- && (Array.isArray((detail as Record<string, unknown>)['selectedValues'])
1387
- && ((detail as Record<string, unknown>)['selectedValues'] as unknown[]).every((item: unknown) =>
1388
- typeof item === 'string'
1389
- ))
1390
- && ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
1391
- || (detail as Record<string, unknown>)['trigger'] === 'pointer'
1392
- || (detail as Record<string, unknown>)['trigger'] === 'programmatic')
1393
- && Object.keys(detail as object).every((key) => ['selectedValues', 'trigger'].includes(key)))
1394
- const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
1395
- checks: {
1396
- 'query-change': isQueryChangeDetail,
1397
- 'value-change': isValueChangeDetail,
1398
- 'items-change': isItemsChangeDetail,
1399
- 'free-entry': isValueChangeDetail,
1400
- 'create-entry': isValueChangeDetail,
1401
- 'validation-change': isValidationChangeDetail,
1402
- 'options-change': isItemsChangeDetail,
1403
- 'add-item': isAddItemDetail,
1404
- 'remove-item': isAddItemDetail,
1405
- 'create-item': isCreateItemDetail,
1406
- 'selected-values-change': isSelectedValuesChangeDetail,
1407
- },
1408
- modeled: ['query', 'selectedValues', 'value'],
1409
- })
1410
-
1411
- useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
1412
- root,
1413
- module: true,
1414
- dispatch,
1415
- acceptsState: (name: string, keys: readonly string[], value: unknown) =>
1416
- acceptsControllerWrite(
1417
- value,
1418
- ({
1419
- internalItems: {
1420
- kind: 'list',
1421
- item: {
1422
- kind: 'object',
1423
- fields: [
1424
- { name: 'id', type: { kind: 'terminal', name: 'string' }, optional: false },
1425
- { name: 'value', type: { kind: 'terminal', name: 'string' }, optional: false },
1426
- { name: 'label', type: { kind: 'terminal', name: 'string' }, optional: false },
1427
- { name: 'group', type: { kind: 'terminal', name: 'string' }, optional: true },
1428
- { name: 'disabled', type: { kind: 'terminal', name: 'boolean' }, optional: true },
1429
- { name: 'description', type: { kind: 'terminal', name: 'string' }, optional: true },
1430
- {
1431
- name: 'tag',
1432
- type: {
1433
- kind: 'object',
1434
- fields: [{
1435
- name: 'label',
1436
- type: { kind: 'terminal', name: 'string' },
1437
- optional: false,
1438
- }, {
1439
- name: 'tone',
1440
- type: {
1441
- kind: 'constrained',
1442
- base: { kind: 'terminal', name: 'keyword' },
1443
- values: ['neutral', 'accent', 'info', 'success', 'warning', 'danger'],
1444
- },
1445
- optional: true,
1446
- }, { name: 'color', type: { kind: 'terminal', name: 'string' }, optional: true }],
1447
- open: false,
1448
- },
1449
- optional: true,
1450
- },
1451
- ],
1452
- open: false,
1453
- },
1454
- },
1455
- raw: { kind: 'terminal', name: 'string' },
1456
- display: { kind: 'terminal', name: 'string' },
1457
- selected: { kind: 'terminal', name: 'string' },
1458
- expanded: { kind: 'terminal', name: 'boolean' },
1459
- rows: {
1460
- kind: 'list',
1461
- item: {
1462
- kind: 'object',
1463
- fields: [
1464
- { name: 'id', type: { kind: 'terminal', name: 'string' }, optional: false },
1465
- { name: 'value', type: { kind: 'terminal', name: 'string' }, optional: false },
1466
- { name: 'label', type: { kind: 'terminal', name: 'string' }, optional: false },
1467
- { name: 'group', type: { kind: 'terminal', name: 'string' }, optional: true },
1468
- { name: 'disabled', type: { kind: 'terminal', name: 'boolean' }, optional: false },
1469
- { name: 'selected', type: { kind: 'terminal', name: 'boolean' }, optional: false },
1470
- { name: 'description', type: { kind: 'terminal', name: 'string' }, optional: true },
1471
- {
1472
- name: 'tag',
1473
- type: {
1474
- kind: 'object',
1475
- fields: [{
1476
- name: 'label',
1477
- type: { kind: 'terminal', name: 'string' },
1478
- optional: false,
1479
- }, {
1480
- name: 'tone',
1481
- type: {
1482
- kind: 'constrained',
1483
- base: { kind: 'terminal', name: 'keyword' },
1484
- values: ['neutral', 'accent', 'info', 'success', 'warning', 'danger'],
1485
- },
1486
- optional: true,
1487
- }, { name: 'color', type: { kind: 'terminal', name: 'string' }, optional: true }],
1488
- open: false,
1489
- },
1490
- optional: true,
1491
- },
1492
- ],
1493
- open: false,
1494
- },
1495
- },
1496
- active: { kind: 'terminal', name: 'integer' },
1497
- helpOpen: { kind: 'terminal', name: 'boolean' },
1498
- lookupError: { kind: 'terminal', name: 'string' },
1499
- validation: {
1500
- kind: 'object',
1501
- fields: [
1502
- {
1503
- name: 'status',
1504
- type: {
1505
- kind: 'constrained',
1506
- base: { kind: 'terminal', name: 'keyword' },
1507
- values: ['pristine', 'pending', 'valid', 'warning', 'error'],
1508
- },
1509
- optional: false,
1510
- },
1511
- { name: 'touched', type: { kind: 'terminal', name: 'boolean' }, optional: false },
1512
- { name: 'dirty', type: { kind: 'terminal', name: 'boolean' }, optional: false },
1513
- {
1514
- name: 'issues',
1515
- type: {
1516
- kind: 'list',
1517
- item: {
1518
- kind: 'object',
1519
- fields: [{
1520
- name: 'message',
1521
- type: { kind: 'terminal', name: 'string' },
1522
- optional: false,
1523
- }],
1524
- open: false,
1525
- },
1526
- },
1527
- optional: false,
1528
- },
1529
- ],
1530
- open: true,
1531
- },
1532
- uid: { kind: 'terminal', name: 'string' },
1533
- submitted: { kind: 'terminal', name: 'string' },
1534
- groups: {
1535
- kind: 'list',
1536
- item: {
1537
- kind: 'object',
1538
- fields: [
1539
- { name: 'name', type: { kind: 'terminal', name: 'string' }, optional: false },
1540
- {
1541
- name: 'role',
1542
- type: {
1543
- kind: 'constrained',
1544
- base: { kind: 'terminal', name: 'keyword' },
1545
- values: ['group', 'presentation'],
1546
- },
1547
- optional: false,
1548
- },
1549
- { name: 'label', type: { kind: 'terminal', name: 'string' }, optional: true },
1550
- {
1551
- name: 'rows',
1552
- type: {
1553
- kind: 'list',
1554
- item: {
1555
- kind: 'object',
1556
- fields: [{
1557
- name: 'id',
1558
- type: { kind: 'terminal', name: 'string' },
1559
- optional: false,
1560
- }, {
1561
- name: 'value',
1562
- type: { kind: 'terminal', name: 'string' },
1563
- optional: false,
1564
- }, {
1565
- name: 'label',
1566
- type: { kind: 'terminal', name: 'string' },
1567
- optional: false,
1568
- }, {
1569
- name: 'group',
1570
- type: { kind: 'terminal', name: 'string' },
1571
- optional: true,
1572
- }, {
1573
- name: 'disabled',
1574
- type: { kind: 'terminal', name: 'boolean' },
1575
- optional: false,
1576
- }, {
1577
- name: 'selected',
1578
- type: { kind: 'terminal', name: 'boolean' },
1579
- optional: false,
1580
- }, {
1581
- name: 'description',
1582
- type: { kind: 'terminal', name: 'string' },
1583
- optional: true,
1584
- }, {
1585
- name: 'tag',
1586
- type: {
1587
- kind: 'object',
1588
- fields: [{
1589
- name: 'label',
1590
- type: { kind: 'terminal', name: 'string' },
1591
- optional: false,
1592
- }, {
1593
- name: 'tone',
1594
- type: {
1595
- kind: 'constrained',
1596
- base: { kind: 'terminal', name: 'keyword' },
1597
- values: ['neutral', 'accent', 'info', 'success', 'warning', 'danger'],
1598
- },
1599
- optional: true,
1600
- }, {
1601
- name: 'color',
1602
- type: { kind: 'terminal', name: 'string' },
1603
- optional: true,
1604
- }],
1605
- open: false,
1606
- },
1607
- optional: true,
1608
- }, {
1609
- name: 'index',
1610
- type: { kind: 'terminal', name: 'integer' },
1611
- optional: false,
1612
- }, {
1613
- name: 'labelledBy',
1614
- type: { kind: 'terminal', name: 'string' },
1615
- optional: true,
1616
- }, {
1617
- name: 'detail',
1618
- type: { kind: 'terminal', name: 'string' },
1619
- optional: true,
1620
- }, {
1621
- name: 'option',
1622
- type: {
1623
- kind: 'object',
1624
- fields: [{
1625
- name: 'id',
1626
- type: { kind: 'terminal', name: 'string' },
1627
- optional: false,
1628
- }, {
1629
- name: 'value',
1630
- type: { kind: 'terminal', name: 'string' },
1631
- optional: false,
1632
- }, {
1633
- name: 'label',
1634
- type: { kind: 'terminal', name: 'string' },
1635
- optional: false,
1636
- }, {
1637
- name: 'group',
1638
- type: { kind: 'terminal', name: 'string' },
1639
- optional: true,
1640
- }, {
1641
- name: 'disabled',
1642
- type: { kind: 'terminal', name: 'boolean' },
1643
- optional: true,
1644
- }, {
1645
- name: 'description',
1646
- type: { kind: 'terminal', name: 'string' },
1647
- optional: true,
1648
- }, {
1649
- name: 'tag',
1650
- type: {
1651
- kind: 'object',
1652
- fields: [{
1653
- name: 'label',
1654
- type: { kind: 'terminal', name: 'string' },
1655
- optional: false,
1656
- }, {
1657
- name: 'tone',
1658
- type: {
1659
- kind: 'constrained',
1660
- base: { kind: 'terminal', name: 'keyword' },
1661
- values: [
1662
- 'neutral',
1663
- 'accent',
1664
- 'info',
1665
- 'success',
1666
- 'warning',
1667
- 'danger',
1668
- ],
1669
- },
1670
- optional: true,
1671
- }, {
1672
- name: 'color',
1673
- type: { kind: 'terminal', name: 'string' },
1674
- optional: true,
1675
- }],
1676
- open: false,
1677
- },
1678
- optional: true,
1679
- }, {
1680
- name: 'selected',
1681
- type: { kind: 'terminal', name: 'boolean' },
1682
- optional: true,
1683
- }],
1684
- open: false,
1685
- },
1686
- optional: false,
1687
- }],
1688
- open: false,
1689
- },
1690
- },
1691
- optional: false,
1692
- },
1693
- ],
1694
- open: false,
1695
- },
1696
- },
1697
- creatable: { kind: 'terminal', name: 'boolean' },
1698
- createIndex: { kind: 'terminal', name: 'integer' },
1699
- message: { kind: 'terminal', name: 'string' },
1700
- statusText: { kind: 'terminal', name: 'string' },
1701
- validationStatus: { kind: 'terminal', name: 'string' },
1702
- } as Record<string, any>)[name],
1703
- keys,
1704
- ),
1705
- initials: {
1706
- internalItems: [],
1707
- raw: '',
1708
- display: '',
1709
- expanded: false,
1710
- rows: [],
1711
- helpOpen: false,
1712
- lookupError: '',
1713
- validation: { status: 'pristine', touched: false, dirty: false, issues: [] },
1714
- uid: '',
1715
- submitted: '',
1716
- groups: [],
1717
- creatable: false,
1718
- createIndex: 0,
1719
- message: '',
1720
- statusText: '',
1721
- validationStatus: 'pristine',
1722
- },
1723
- controllerSource: {
1724
- specifier: '../components/ui-combobox/ui-combobox.js',
1725
- definition: './components/ui-combobox/ui-combobox.html',
1726
- },
1727
- props: checkedProps,
1728
- inputs: propInputs,
1729
- inputTracking,
1730
- propInputs: (name: string) => {
1731
- const incoming = hydrationInstance?.vnode.props
1732
- const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
1733
- return incoming !== null && incoming !== undefined
1734
- ? (incoming[name] ?? incoming[kebab] ?? null)
1735
- : null
1736
- },
1737
- propNames: [
1738
- 'allowCreate',
1739
- 'allowFreeText',
1740
- 'autoHighlight',
1741
- 'clearQueryOnBlur',
1742
- 'clearable',
1743
- 'disabled',
1744
- 'disclosure',
1745
- 'filter',
1746
- 'help',
1747
- 'invalid',
1748
- 'items',
1749
- 'label',
1750
- 'labelVisibility',
1751
- 'loading',
1752
- 'maxRows',
1753
- 'multiple',
1754
- 'muted',
1755
- 'name',
1756
- 'openOnFocus',
1757
- 'placeholder',
1758
- 'query',
1759
- 'readonly',
1760
- 'required',
1761
- 'selectOnTab',
1762
- 'selectedValues',
1763
- 'size',
1764
- 'tokenSeparators',
1765
- 'value',
1766
- ],
1767
- propValidity: (name: string) =>
1768
- propValidityState({ contract: propValidityContract, values: { ...props } }, name),
1769
- refs: {
1770
- field: fieldElement,
1771
- input: inputElement,
1772
- popup: popupElement,
1773
- listbox: listboxElement,
1774
- options: optionsElement,
1775
- },
1776
- state: {
1777
- internalItems,
1778
- raw,
1779
- display,
1780
- selected,
1781
- expanded,
1782
- rows,
1783
- active,
1784
- helpOpen,
1785
- lookupError,
1786
- validation,
1787
- uid,
1788
- submitted,
1789
- groups,
1790
- creatable,
1791
- createIndex,
1792
- message,
1793
- statusText,
1794
- validationStatus,
1795
- },
1796
- })
1797
- </script>
1798
-
1799
- <template>
1800
- <div
1801
- class="ui-combobox"
1802
- v-bind="nativeAttrs($attrs)"
1803
- data-hn
1804
- data-hn-ui-combobox
1805
- v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
1806
- :data-ui-combobox-prop-allow-create="reflectedProp('allowCreate', 'allow-create', checkedProps.allowCreate, undefined, false)"
1807
- :data-ui-combobox-prop-allow-free-text="reflectedProp('allowFreeText', 'allow-free-text', checkedProps.allowFreeText, undefined, false)"
1808
- :data-ui-combobox-prop-auto-highlight="reflectedProp('autoHighlight', 'auto-highlight', checkedProps.autoHighlight, undefined, false)"
1809
- :data-ui-combobox-prop-clear-query-on-blur="reflectedProp(
1810
- 'clearQueryOnBlur',
1811
- 'clear-query-on-blur',
1812
- checkedProps.clearQueryOnBlur,
1813
- undefined,
1814
- false,
1815
- )"
1816
- :data-ui-combobox-prop-clearable="reflectedProp('clearable', 'clearable', checkedProps.clearable, undefined, false)"
1817
- :data-ui-combobox-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
1818
- :data-ui-combobox-prop-disclosure="reflectedProp('disclosure', 'disclosure', checkedProps.disclosure, undefined, false)"
1819
- :data-ui-combobox-prop-filter="reflectedProp('filter', 'filter', checkedProps.filter, undefined, false)"
1820
- :data-ui-combobox-prop-help="reflectedProp('help', 'help', checkedProps.help, undefined, false)"
1821
- :data-ui-combobox-prop-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
1822
- :data-ui-combobox-prop-items="reflectedProp('items', 'items', checkedProps.items, undefined, false)"
1823
- :data-ui-combobox-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
1824
- :data-ui-combobox-prop-label-visibility="reflectedProp('labelVisibility', 'label-visibility', checkedProps.labelVisibility, undefined, false)"
1825
- :data-ui-combobox-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
1826
- :data-ui-combobox-prop-max-rows="reflectedProp('maxRows', 'max-rows', checkedProps.maxRows, undefined, false)"
1827
- :data-ui-combobox-prop-multiple="reflectedProp('multiple', 'multiple', checkedProps.multiple, undefined, false)"
1828
- :data-ui-combobox-prop-muted="reflectedProp('muted', 'muted', checkedProps.muted, undefined, false)"
1829
- :data-ui-combobox-prop-name="reflectedProp('name', 'name', checkedProps.name, undefined, false)"
1830
- :data-ui-combobox-prop-open-on-focus="reflectedProp('openOnFocus', 'open-on-focus', checkedProps.openOnFocus, undefined, false)"
1831
- :data-ui-combobox-prop-placeholder="reflectedProp('placeholder', 'placeholder', checkedProps.placeholder, undefined, false)"
1832
- :data-ui-combobox-prop-query="reflectedProp('query', 'query', checkedProps.query, undefined, false)"
1833
- :data-ui-combobox-prop-readonly="reflectedProp('readonly', 'readonly', checkedProps.readonly, undefined, false)"
1834
- :data-ui-combobox-prop-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
1835
- :data-ui-combobox-prop-select-on-tab="reflectedProp('selectOnTab', 'select-on-tab', checkedProps.selectOnTab, undefined, false)"
1836
- :data-ui-combobox-prop-selected-values="reflectedProp('selectedValues', 'selected-values', checkedProps.selectedValues, undefined, false)"
1837
- :data-ui-combobox-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
1838
- :data-ui-combobox-prop-token-separators="reflectedProp('tokenSeparators', 'token-separators', checkedProps.tokenSeparators, undefined, false)"
1839
- :data-ui-combobox-prop-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
1840
- :data-ui-combobox-state="hostState || undefined"
1841
- ref="root"
1842
- >
1843
- <label
1844
- data-hn-ui-combobox
1845
- :for="guarded"
1846
- :class="{ 'sr-only': checkedProps.labelVisibility === 'sr-only' }"
1847
- >{{ checkedProps.label }}<template v-if="checkedProps.required">
1848
- *</template></label>
1849
- <div class="control" data-hn-ui-combobox>
1850
- <div class="field" data-hn-ui-combobox ref="fieldElement">
1851
- <div
1852
- class="entry"
1853
- data-hn-ui-combobox
1854
- :class="{
1855
- multiline: checkedProps.multiple
1856
- && (number(checkedProps.maxRows) === undefined || number(1) === undefined
1857
- ? undefined
1858
- : number(checkedProps.maxRows)! > number(1)!),
1859
- }"
1860
- :style="{ '--_max-rows': checkedProps.maxRows?.toString() }"
1861
- >
1862
- <span class="start" data-hn-ui-combobox><slot name="start" /></span>{{ ' ' }}<template
1863
- v-if="checkedProps.multiple"
1864
- >{{ ' ' }}<KeyedBoundary><button
1865
- v-for="(item, index) in uniqueKeys(internalItems, (item, index, loop) => item.id)"
1866
- :key="item.id"
1867
- class="item"
1868
- type="button"
1869
- tabindex="-1"
1870
- data-hn-ui-combobox
1871
- :data-index="index"
1872
- :disabled="checkedProps.disabled || checkedProps.readonly || item.disabled"
1873
- :aria-label="concat(item.label, ', press Delete or Backspace to remove')"
1874
- >
1875
- <slot :name="scopedSlotName('item')" :item="item"><UiBadge class="ui-badge">{{
1876
- item.label
1877
- }}</UiBadge></slot>
1878
- </button></KeyedBoundary>{{ ' ' }}</template>{{ ' ' }}<input
1879
- role="combobox"
1880
- aria-autocomplete="list"
1881
- autocomplete="off"
1882
- data-hn-ui-combobox
1883
- v-bind-control="{ tag: 'input', name: 'value', value: display, nativeProperty: true, defaultValue: '' }"
1884
- :id="guardedBinding"
1885
- :aria-controls="guardedBinding2"
1886
- :aria-expanded="expanded"
1887
- :aria-invalid="checkedProps.invalid || validationStatus === 'error'"
1888
- :aria-busy="checkedProps.loading || validationStatus === 'pending'"
1889
- :placeholder="checkedProps.placeholder ?? undefined"
1890
- :disabled="checkedProps.disabled ?? undefined"
1891
- :readonly="checkedProps.readonly ?? undefined"
1892
- :required="guardedBinding3"
1893
- ref="inputElement"
1894
- >
1895
- </div>
1896
- <input
1897
- v-if="checkedProps.name && !checkedProps.multiple"
1898
- type="hidden"
1899
- data-hn-ui-combobox
1900
- :name="checkedProps.name ?? undefined"
1901
- :value.attr="submitted"
1902
- :disabled="checkedProps.disabled ?? undefined"
1903
- >{{ ' ' }}<template v-if="checkedProps.name && checkedProps.multiple">{{
1904
- ' '
1905
- }}<KeyedBoundary><input
1906
- v-for="item in uniqueKeys(internalItems, (item, index, loop) => item.id)"
1907
- :key="item.id"
1908
- type="hidden"
1909
- data-hn-ui-combobox
1910
- :name="checkedProps.name ?? undefined"
1911
- :value.attr="item.value"
1912
- :disabled="checkedProps.disabled ?? undefined"
1913
- ></KeyedBoundary>{{ ' ' }}</template>{{ ' ' }}<button
1914
- v-if="checkedProps.clearable"
1915
- type="button"
1916
- data-combobox-action="clear"
1917
- aria-label="Clear"
1918
- data-hn-ui-combobox
1919
- :disabled="checkedProps.disabled || checkedProps.readonly
1920
- || (!raw && (checkedProps.multiple || selected === null))"
1921
- >
1922
- <svg
1923
- class="affordance-icon"
1924
- aria-hidden="true"
1925
- viewBox="0 0 24 24"
1926
- fill="none"
1927
- stroke="currentColor"
1928
- stroke-width="2"
1929
- stroke-linecap="round"
1930
- data-hn-ui-combobox
1931
- >
1932
- <path d="M7 7l10 10M17 7 7 17" data-hn-ui-combobox></path>
1933
- </svg>
1934
- </button>{{ ' ' }}<button
1935
- v-if="checkedProps.disclosure"
1936
- type="button"
1937
- data-combobox-action="disclosure"
1938
- tabindex="-1"
1939
- aria-label="Show suggestions"
1940
- data-hn-ui-combobox
1941
- :aria-controls="guardedBinding4"
1942
- :disabled="checkedProps.disabled || checkedProps.readonly"
1943
- >
1944
- <svg
1945
- class="affordance-icon"
1946
- aria-hidden="true"
1947
- viewBox="0 0 24 24"
1948
- fill="none"
1949
- stroke="currentColor"
1950
- stroke-width="2.25"
1951
- stroke-linecap="round"
1952
- stroke-linejoin="round"
1953
- data-hn-ui-combobox
1954
- >
1955
- <path d="m6 9 6 6 6-6" data-hn-ui-combobox></path>
1956
- </svg>
1957
- </button>
1958
- </div>
1959
- <button
1960
- v-if="checkedProps.help"
1961
- class="help"
1962
- type="button"
1963
- aria-label="Help"
1964
- data-hn-ui-combobox
1965
- :id="guardedBinding5"
1966
- :disabled="checkedProps.disabled ?? undefined"
1967
- >
1968
- <svg
1969
- class="help-icon"
1970
- aria-hidden="true"
1971
- viewBox="0 0 24 24"
1972
- fill="none"
1973
- stroke="currentColor"
1974
- stroke-width="2"
1975
- stroke-linecap="round"
1976
- stroke-linejoin="round"
1977
- data-hn-ui-combobox
1978
- >
1979
- <circle cx="12" cy="12" r="10" data-hn-ui-combobox></circle>
1980
- <path d="M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3" data-hn-ui-combobox></path>
1981
- <path d="M12 17h.01" data-hn-ui-combobox></path>
1982
- </svg>
1983
- </button>
1984
- </div>
1985
- <UiTooltip
1986
- v-if="checkedProps.help"
1987
- class="ui-tooltip"
1988
- trigger="click"
1989
- :id="guardedBinding6"
1990
- :for="guardedBinding7"
1991
- >{{ checkedProps.help }}</UiTooltip>
1992
- <div class="popup" data-hn-ui-combobox :hidden="!expanded" ref="popupElement">
1993
- <div
1994
- role="listbox"
1995
- data-hn-ui-combobox
1996
- :id="guardedBinding8"
1997
- :aria-label="guardedBinding9"
1998
- :aria-busy="checkedProps.loading ?? undefined"
1999
- ref="listboxElement"
2000
- >
2001
- <KeyedBoundary><div
2002
- v-for="group in uniqueKeys(groups, (group, indexLoop, loop) => group.name)"
2003
- :key="group.name"
2004
- data-hn-ui-combobox
2005
- :role="group.role"
2006
- :aria-label="group.label"
2007
- >
2008
- <div v-if="group.name" class="group" data-hn-ui-combobox>{{ group.name }}</div>{{
2009
- ' '
2010
- }}<KeyedBoundary><div
2011
- v-for="row in uniqueKeys(group.rows, (row, indexLoop2, loop) => row.id)"
2012
- :key="row.id"
2013
- class="option"
2014
- role="option"
2015
- data-ui-choice-option=""
2016
- data-hn-ui-combobox
2017
- :data-multiple="checkedProps.multiple ? '' : undefined"
2018
- :id="concat(uid, '-option-', row.index)"
2019
- :aria-selected="row.selected"
2020
- :aria-disabled="row.disabled"
2021
- :data-index="row.index"
2022
- :aria-labelledby="row.labelledBy"
2023
- :aria-describedby="row.detail"
2024
- :class="{ active: row.index === active }"
2025
- >
2026
- <slot :name="scopedSlotName('option')" :option="row.option">{{ ' ' }}<span
2027
- v-if="row.detail"
2028
- class="detail"
2029
- data-hn-ui-combobox
2030
- ><span class="line" data-hn-ui-combobox><span
2031
- class="primary"
2032
- data-hn-ui-combobox
2033
- :id="concat(uid, '-option-', row.index, '-label')"
2034
- >{{ row.label }}</span>{{ ' ' }}<UiBadge
2035
- v-if="row.tag"
2036
- class="ui-badge"
2037
- :tone="row.tag?.tone"
2038
- :style="{ '--ui-badge-color': row.tag?.color ?? undefined }"
2039
- ><span
2040
- data-slotted="ui-combobox"
2041
- data-hn-ui-combobox
2042
- :id="concat(uid, '-option-', row.index, '-tag')"
2043
- >{{ row.tag?.label }}</span></UiBadge></span>{{ ' ' }}<span
2044
- v-if="row.description"
2045
- class="description"
2046
- data-hn-ui-combobox
2047
- :id="concat(uid, '-option-', row.index, '-description')"
2048
- >{{ row.description }}</span></span>{{ ' ' }}<span
2049
- v-if="!row.detail"
2050
- class="primary"
2051
- data-hn-ui-combobox
2052
- >{{ row.label }}</span>{{ ' ' }}</slot>
2053
- </div></KeyedBoundary>
2054
- </div></KeyedBoundary>{{ ' ' }}<div
2055
- v-if="creatable"
2056
- class="option"
2057
- role="option"
2058
- data-ui-choice-option=""
2059
- aria-selected="false"
2060
- data-hn-ui-combobox
2061
- :data-multiple="checkedProps.multiple ? '' : undefined"
2062
- :id="guardedBinding11"
2063
- :data-index="createIndex"
2064
- :class="{ active: guardedBinding10 }"
2065
- >
2066
- {{ guardedBinding12 }}
2067
- </div>{{ ' ' }}<div v-if="message" class="message" data-hn-ui-combobox>{{ message }}</div>{{
2068
- ' '
2069
- }}<div
2070
- v-if="!checkedProps.loading && !(rows[0]) && !creatable && !lookupError"
2071
- class="message"
2072
- data-hn-ui-combobox
2073
- >
2074
- <slot name="empty">No suggestions.</slot>
2075
- </div>
2076
- </div>
2077
- <slot name="footer" />
2078
- </div>
2079
- <div
2080
- class="message"
2081
- data-hn-ui-combobox
2082
- :id="guardedBinding13"
2083
- :hidden="!validation.issues.length"
2084
- >
2085
- <div v-for="(issue, indexLoop3) in validation.issues" :key="indexLoop3" data-hn-ui-combobox>
2086
- {{ issue.message }}
2087
- </div>
2088
- </div>
2089
- <div class="sr-only" role="status" aria-live="polite" aria-atomic="true" data-hn-ui-combobox>
2090
- {{ statusText }}
2091
- </div>
2092
- <div
2093
- class="authored-options"
2094
- hidden=""
2095
- aria-hidden="true"
2096
- data-hn-ui-combobox
2097
- ref="optionsElement"
2098
- >
2099
- <slot />
2100
- </div>
2101
- </div>
2102
- </template>
2103
-
2104
- <style scoped>
2105
- /* The field and anything that annotates it sit on one row; the help button is beside the box,
2106
- not inside it, because a control's box holds its value. */
2107
- /* A ghost icon button: the affordance is the mark, not a box around it. */
2108
- /* A row with a tag or a description: the label and its tag on one line, the description under them. */
2109
-
2110
- /* Multiple mode keeps one control height. Chips and the input scroll within the entry,
2111
- while the clear and disclosure controls remain fixed at the end of the field. */
2112
- /* Size variants keep their control height as selections are added. */
2113
- /* A large multiple field starts at the large control height, as sm starts at the small one. */
2114
- /* Grow through the requested rows, then keep the typing row in a bounded field.
2115
- The entry owns its scroll; clear/disclosure actions remain outside it. */
2116
-
2117
- /* A component that sets its display still honours the hidden attribute on its root. */
2118
-
2119
- @scope (.ui-combobox) to ([data-hn]) {
2120
- :global(:scope:where([data-hn-ui-combobox])) {
2121
- /* Resolve shared part values at the component root. */
2122
- --_ui-combobox-label-text: var(--ui-combobox-label-text);
2123
- --_ui-combobox-label-font-size: var(--ui-combobox-label-font-size);
2124
- --_ui-combobox-affordance-text: var(--ui-combobox-affordance-text);
2125
- --_ui-combobox-max-block-size: var(--ui-combobox-max-block-size);
2126
- --_ui-combobox-option-text: var(--ui-combobox-option-text);
2127
- --_ui-combobox-message-text: var(--ui-combobox-message-text);
2128
- --_ui-combobox-option-check: var(--ui-combobox-option-check);
2129
- --_ui-combobox-item-min-block-size: var(--ui-combobox-item-min-block-size);
2130
- --_ui-combobox-item-input-min-inline-size: var(--ui-combobox-item-input-min-inline-size);
2131
- --_ui-combobox-item-item-max-inline-size: var(--ui-combobox-item-item-max-inline-size);
2132
- --_ui-combobox-radius: var(--ui-combobox-radius);
2133
- --_ui-combobox-invalid-border: var(--ui-combobox-invalid-border);
2134
- --_ui-combobox-popup-surface: var(--ui-combobox-popup-surface);
2135
- --_ui-combobox-popup-border: var(--ui-combobox-popup-border);
2136
- --_ui-combobox-popup-radius: var(--ui-combobox-popup-radius);
2137
- --_ui-combobox-popup-shadow: var(--ui-combobox-popup-shadow);
2138
-
2139
- --_row: var(--ui-control-size-md);
2140
- display: grid !important;
2141
- gap: var(--ui-space-1) !important;
2142
- min-inline-size: 0;
2143
- color: var(--ui-text-primary);
2144
- font: inherit;
2145
- }
2146
- :global(label:where([data-hn-ui-combobox])) {
2147
- color: var(--_ui-combobox-label-text, var(--ui-text-primary));
2148
- font-size: var(
2149
- --_ui-combobox-label-font-size,
2150
- var(--ui-field-label-font-size, var(--ui-font-size-md))
2151
- );
2152
- font-weight: 500;
2153
- }
2154
- :global(.control:where([data-hn-ui-combobox])) {
2155
- display: flex !important;
2156
- align-items: center !important;
2157
- gap: var(--ui-space-2) !important;
2158
- min-inline-size: 0;
2159
- }
2160
-
2161
- :global(.field:where([data-hn-ui-combobox])) {
2162
- box-sizing: border-box !important;
2163
- min-block-size: var(--_row);
2164
- flex: 1 1 auto;
2165
- display: flex !important;
2166
- min-inline-size: 0;
2167
- border: var(--ui-border-width) solid var(--ui-control-border, var(--ui-border-default));
2168
- border-radius: var(--_ui-combobox-radius, var(--ui-field-radius, var(--ui-radius-md)));
2169
- background: var(--ui-control-surface, var(--ui-surface-default));
2170
- box-shadow: var(--ui-control-inset);
2171
- transition:
2172
- border-color var(--ui-motion-fast) var(--ui-motion-ease),
2173
- box-shadow var(--ui-motion-fast) var(--ui-motion-ease);
2174
- }
2175
- :global(.field:focus-within:where([data-hn-ui-combobox])) {
2176
- border-color: var(--ui-control-focus, var(--ui-accent-solid));
2177
- box-shadow:
2178
- var(--ui-control-inset),
2179
- var(--ui-control-focus-halo-shadow);
2180
- }
2181
- :global(.entry:where([data-hn-ui-combobox])) {
2182
- display: flex !important;
2183
- flex: 1 1 auto;
2184
- min-inline-size: 0;
2185
- }
2186
- :global(.start:where([data-hn-ui-combobox])) {
2187
- display: flex !important;
2188
- align-items: center !important;
2189
- flex: none;
2190
- padding-inline-start: var(--ui-space-3) !important;
2191
- }
2192
- :global(.start:empty:where([data-hn-ui-combobox])) {
2193
- display: none !important;
2194
- }
2195
- :global(:scope[data-ui-combobox-state~="size=sm"] .start:where([data-hn-ui-combobox])) {
2196
- padding-inline-start: var(--ui-space-2) !important;
2197
- }
2198
- :global(:scope[data-ui-combobox-state~="size=lg"] .start:where([data-hn-ui-combobox])) {
2199
- padding-inline-start: var(--ui-space-4) !important;
2200
- }
2201
- :global(.help:where([data-hn-ui-combobox])) {
2202
- flex: none;
2203
- display: inline-flex !important;
2204
- align-items: center !important;
2205
- justify-content: center !important;
2206
- inline-size: var(--ui-control-size-sm);
2207
- block-size: var(--ui-control-size-sm);
2208
- padding: 0 !important;
2209
- border: 0;
2210
- border-radius: var(--ui-radius-round);
2211
- background: transparent;
2212
- color: var(--ui-text-secondary);
2213
- cursor: pointer;
2214
- transition:
2215
- background-color var(--ui-motion-fast) var(--ui-motion-ease),
2216
- color var(--ui-motion-fast) var(--ui-motion-ease);
2217
- }
2218
-
2219
- :global(.help:hover:enabled:where([data-hn-ui-combobox])),
2220
- :global(.help[aria-expanded="true"]:where([data-hn-ui-combobox])) {
2221
- background: color-mix(in srgb, currentColor 8%, transparent);
2222
- color: var(--ui-text-primary);
2223
- }
2224
-
2225
- :global(.help:focus-visible:where([data-hn-ui-combobox])) {
2226
- outline: none;
2227
- box-shadow: var(--ui-focus-halo);
2228
- }
2229
-
2230
- :global(.help:disabled:where([data-hn-ui-combobox])) {
2231
- color: var(--ui-disabled-text);
2232
- cursor: not-allowed;
2233
- }
2234
-
2235
- :global(.help-icon:where([data-hn-ui-combobox])) {
2236
- inline-size: var(--ui-icon-size-sm);
2237
- block-size: var(--ui-icon-size-sm);
2238
- }
2239
-
2240
- :global(:scope[data-ui-combobox-state~="muted"]
2241
- input:not(:disabled):where([data-hn-ui-combobox])) {
2242
- color: var(--ui-text-secondary);
2243
- }
2244
-
2245
- :global(input:where([data-hn-ui-combobox])::selection) {
2246
- background: color-mix(in srgb, var(--ui-accent-solid) 20%, transparent);
2247
- color: inherit;
2248
- }
2249
- :global(input:where([data-hn-ui-combobox])) {
2250
- --_ui-combobox-inset-block: var(--ui-control-inset-block-md, var(--ui-space-2));
2251
- appearance: none;
2252
- width: 100%;
2253
- min-inline-size: 0;
2254
- min-block-size: calc(var(--_row) - 2 * var(--ui-border-width));
2255
- max-block-size: max(
2256
- calc(var(--_row) - 2 * var(--ui-border-width)),
2257
- calc(1em * var(--ui-line-height-tight) + 2 * var(--_ui-combobox-inset-block))
2258
- );
2259
- box-sizing: border-box !important;
2260
- border: 0;
2261
- border-radius: inherit;
2262
- background: transparent;
2263
- color: inherit;
2264
- font: inherit;
2265
- line-height: var(--ui-line-height-tight);
2266
- padding: var(--_ui-combobox-inset-block) var(--ui-space-3) !important;
2267
- margin: 0 !important;
2268
- outline: none;
2269
- }
2270
- :global(:scope[data-ui-combobox-state~="size=sm"]:where([data-hn-ui-combobox])) {
2271
- --_row: var(--ui-control-size-sm);
2272
- }
2273
- :global(:scope[data-ui-combobox-state~="size=sm"] input:where([data-hn-ui-combobox])) {
2274
- --_ui-combobox-inset-block: var(--ui-control-inset-block-sm, var(--ui-space-1));
2275
- padding: var(--_ui-combobox-inset-block) var(--ui-space-2) !important;
2276
- font-size: var(--ui-font-size-sm);
2277
- }
2278
- :global(:scope[data-ui-combobox-state~="size=lg"]:where([data-hn-ui-combobox])) {
2279
- --_row: var(--ui-control-size-lg);
2280
- }
2281
- :global(:scope[data-ui-combobox-state~="size=lg"] input:where([data-hn-ui-combobox])) {
2282
- --_ui-combobox-inset-block: var(--ui-control-inset-block-lg, var(--ui-space-3));
2283
- padding: var(--_ui-combobox-inset-block) var(--ui-space-4) !important;
2284
- font-size: var(--ui-font-size-md);
2285
- }
2286
- :global(button:where([data-hn-ui-combobox])) {
2287
- appearance: none;
2288
- display: inline-grid !important;
2289
- place-items: center;
2290
- align-self: stretch;
2291
- border: 0;
2292
- border-radius: var(--ui-radius-md);
2293
- background: transparent;
2294
- color: var(--_ui-combobox-affordance-text, var(--ui-text-secondary));
2295
- font: inherit;
2296
- font-weight: 400;
2297
- min-inline-size: 2rem;
2298
- padding: 0 var(--ui-space-1) !important;
2299
- cursor: pointer;
2300
- }
2301
- :global(.affordance-icon:where([data-hn-ui-combobox])) {
2302
- display: block !important;
2303
- inline-size: var(--ui-icon-size-sm);
2304
- block-size: var(--ui-icon-size-sm);
2305
- }
2306
- :global(button:hover:enabled:where([data-hn-ui-combobox])) {
2307
- background: var(--ui-surface-muted);
2308
- color: var(--ui-text-primary);
2309
- }
2310
- :global(button:focus-visible:where([data-hn-ui-combobox])) {
2311
- outline: none;
2312
- background: var(--ui-surface-muted);
2313
- box-shadow: inset 0 0 0 var(--ui-focus-width)
2314
- color-mix(in srgb, var(--ui-focus-ring) 45%, transparent);
2315
- }
2316
- :global(input:disabled:where([data-hn-ui-combobox])),
2317
- :global(button:disabled:where([data-hn-ui-combobox])) {
2318
- color: var(--ui-disabled-text);
2319
- cursor: not-allowed;
2320
- }
2321
- :global(.field:has(input:disabled):where([data-hn-ui-combobox])) {
2322
- background: var(--ui-control-surface-disabled, var(--ui-surface-muted));
2323
- }
2324
- :global(:scope[data-ui-combobox-state~="validationStatus=error"]
2325
- .field:where([data-hn-ui-combobox])),
2326
- :global(:scope[data-ui-combobox-state~="invalid"] .field:where([data-hn-ui-combobox])) {
2327
- border-color: var(
2328
- --_ui-combobox-invalid-border,
2329
- var(--ui-field-danger, var(--ui-danger-solid, var(--ui-accent-active)))
2330
- );
2331
- }
2332
- :global(.popup:where([data-hn-ui-combobox])) {
2333
- box-sizing: border-box !important;
2334
- min-inline-size: 12rem;
2335
- max-inline-size: calc(100vw - 1rem);
2336
- max-block-size: var(--_ui-combobox-max-block-size, 18rem);
2337
- overflow: auto;
2338
- margin: 0 !important;
2339
- padding: var(--ui-space-1) !important;
2340
- border: var(--ui-border-width) solid
2341
- var(--_ui-combobox-popup-border, var(--ui-overlay-border, var(--ui-border-strong)));
2342
- border-radius: var(--_ui-combobox-popup-radius, var(--ui-overlay-radius, var(--ui-radius-md)));
2343
- background: var(
2344
- --_ui-combobox-popup-surface,
2345
- var(--ui-material-content, var(--ui-surface-elevated))
2346
- );
2347
- color: var(--ui-text-primary);
2348
- box-shadow: var(
2349
- --_ui-combobox-popup-shadow,
2350
- var(--ui-overlay-shadow, var(--ui-elevation-overlay, var(--ui-shadow-lg)))
2351
- );
2352
- }
2353
- :global([hidden]:where([data-hn-ui-combobox])) {
2354
- display: none !important;
2355
- }
2356
- :global(.option[aria-disabled="true"] .primary:where([data-hn-ui-combobox])),
2357
- :global(.option[aria-disabled="true"] .secondary:where([data-hn-ui-combobox])) {
2358
- color: var(--ui-disabled-text);
2359
- }
2360
- :global(.primary:where([data-hn-ui-combobox])) {
2361
- display: block !important;
2362
- color: var(--_ui-combobox-option-text, inherit);
2363
- font-weight: 500;
2364
- }
2365
- :global(.detail:where([data-hn-ui-combobox])) {
2366
- display: grid !important;
2367
- gap: var(--ui-space-0-5) !important;
2368
- min-inline-size: 0;
2369
- }
2370
- :global(.line:where([data-hn-ui-combobox])) {
2371
- display: flex !important;
2372
- flex-wrap: wrap !important;
2373
- align-items: center !important;
2374
- gap: var(--ui-space-2) !important;
2375
- }
2376
- :global(.description:where([data-hn-ui-combobox])) {
2377
- color: var(--ui-text-muted);
2378
- font-size: var(--ui-font-size-sm);
2379
- line-height: var(--ui-line-height-md);
2380
- }
2381
- :global(.message:where([data-hn-ui-combobox])), :global(.group:where([data-hn-ui-combobox])) {
2382
- color: var(--_ui-combobox-message-text, var(--ui-text-secondary));
2383
- font-weight: 400;
2384
- font-size: var(--ui-font-size-sm);
2385
- line-height: var(--ui-line-height-md);
2386
- overflow-wrap: anywhere;
2387
- }
2388
- :global(.group:where([data-hn-ui-combobox])),
2389
- :global(.popup .message:where([data-hn-ui-combobox])) {
2390
- padding: var(--ui-space-2) var(--ui-space-3) !important;
2391
- }
2392
- :global(.sr-only:where([data-hn-ui-combobox])) {
2393
- position: absolute;
2394
- inline-size: 1px;
2395
- block-size: 1px;
2396
- overflow: hidden;
2397
- clip-path: inset(50%);
2398
- white-space: nowrap;
2399
- }
2400
- @media (pointer: coarse) {
2401
- :global(:scope[data-ui-combobox-state~="size=sm"] input:where([data-hn-ui-combobox])) {
2402
- font-size: var(--ui-font-size-md);
2403
- }
2404
- }
2405
- @media (forced-colors: active) {
2406
- :global(.field:where([data-hn-ui-combobox])), :global(.popup:where([data-hn-ui-combobox])) {
2407
- border-color: CanvasText;
2408
- }
2409
- :global(.option.active:where([data-hn-ui-combobox])) {
2410
- outline-color: Highlight;
2411
- }
2412
- }
2413
- :global(:scope[data-ui-combobox-state~="multiple"] .field:where([data-hn-ui-combobox])) {
2414
- --_item-row: 1.75rem;
2415
- align-items: center !important;
2416
- min-block-size: var(--_ui-combobox-item-min-block-size, var(--_row));
2417
- padding: var(--ui-space-1) !important;
2418
- }
2419
- :global(:scope[data-ui-combobox-state~="multiple"] .entry:where([data-hn-ui-combobox])) {
2420
- align-items: center !important;
2421
- gap: var(--ui-space-1) !important;
2422
- overflow-x: auto;
2423
- scrollbar-width: none;
2424
- }
2425
- :global(:scope[data-ui-combobox-state~="multiple"]
2426
- .entry:where([data-hn-ui-combobox])::-webkit-scrollbar) {
2427
- display: none !important;
2428
- }
2429
- :global(:scope[data-ui-combobox-state~="multiple"] input:where([data-hn-ui-combobox])) {
2430
- max-block-size: none;
2431
- flex: 1 0 var(--_ui-combobox-item-input-min-inline-size, 5rem);
2432
- width: auto;
2433
- min-block-size: var(--_item-row);
2434
- padding: var(--ui-space-0-5) var(--ui-space-1) !important;
2435
- }
2436
- :global(:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=sm"]
2437
- .field:where([data-hn-ui-combobox])) {
2438
- --_item-row: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
2439
- min-block-size: 0;
2440
- padding: var(--ui-space-0-5) !important;
2441
- }
2442
- :global(:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=sm"]
2443
- input:where([data-hn-ui-combobox])) {
2444
- min-block-size: var(--_item-row);
2445
- padding: 0 var(--ui-space-1) !important;
2446
- }
2447
- :global(:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=lg"]
2448
- .field:where([data-hn-ui-combobox])) {
2449
- --_item-row: calc(
2450
- var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1)
2451
- );
2452
- min-block-size: 0;
2453
- }
2454
- :global(:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=lg"]
2455
- input:where([data-hn-ui-combobox])) {
2456
- min-block-size: var(--_item-row);
2457
- }
2458
- :global(:scope[data-ui-combobox-state~="multiple"]
2459
- .entry.multiline:where([data-hn-ui-combobox])) {
2460
- /* The field owns its nominal row size; nested badges keep their own sizing hooks. */
2461
- --_entry-row: max(1.5rem, var(--_item-row));
2462
- flex-wrap: wrap !important;
2463
- align-content: flex-start !important;
2464
- max-block-size: calc(
2465
- var(--_max-rows) * var(--_entry-row) + (var(--_max-rows) - 1) * var(--ui-space-1)
2466
- );
2467
- overflow-x: hidden;
2468
- overflow-y: auto;
2469
- }
2470
- :global(.entry.multiline .item:where([data-hn-ui-combobox])) {
2471
- min-block-size: var(--_entry-row);
2472
- }
2473
- :global(.item:where([data-hn-ui-combobox])) {
2474
- appearance: none;
2475
- display: inline-flex !important;
2476
- flex: none;
2477
- min-inline-size: 0;
2478
- max-inline-size: min(100%, var(--_ui-combobox-item-item-max-inline-size, 12rem));
2479
- overflow: hidden;
2480
- padding: 0 !important;
2481
- border: 0;
2482
- border-radius: var(--ui-radius-sm);
2483
- background: transparent;
2484
- color: inherit;
2485
- font: inherit;
2486
- cursor: default;
2487
- }
2488
- :global(.item:focus-visible:where([data-hn-ui-combobox])) {
2489
- outline: var(--ui-focus-width) solid var(--ui-focus-ring);
2490
- outline-offset: var(--ui-border-width);
2491
- }
2492
- :global(.item:disabled:where([data-hn-ui-combobox])) {
2493
- color: var(--ui-disabled-text);
2494
- }
2495
- :global(:scope[hidden]:where([data-hn-ui-combobox])) {
2496
- display: none !important;
2497
- }
2498
- }
2499
-
2500
- @scope ([data-slotted~="ui-combobox"]:not([data-hn])) to ([data-hn], [data-slotted]) {
2501
- :global(:where(.ui-combobox):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2502
- /* Resolve shared part values at the component root. */
2503
- --_ui-combobox-label-text: var(--ui-combobox-label-text);
2504
- --_ui-combobox-label-font-size: var(--ui-combobox-label-font-size);
2505
- --_ui-combobox-affordance-text: var(--ui-combobox-affordance-text);
2506
- --_ui-combobox-max-block-size: var(--ui-combobox-max-block-size);
2507
- --_ui-combobox-option-text: var(--ui-combobox-option-text);
2508
- --_ui-combobox-message-text: var(--ui-combobox-message-text);
2509
- --_ui-combobox-option-check: var(--ui-combobox-option-check);
2510
- --_ui-combobox-item-min-block-size: var(--ui-combobox-item-min-block-size);
2511
- --_ui-combobox-item-input-min-inline-size: var(--ui-combobox-item-input-min-inline-size);
2512
- --_ui-combobox-item-item-max-inline-size: var(--ui-combobox-item-item-max-inline-size);
2513
- --_ui-combobox-radius: var(--ui-combobox-radius);
2514
- --_ui-combobox-invalid-border: var(--ui-combobox-invalid-border);
2515
- --_ui-combobox-popup-surface: var(--ui-combobox-popup-surface);
2516
- --_ui-combobox-popup-border: var(--ui-combobox-popup-border);
2517
- --_ui-combobox-popup-radius: var(--ui-combobox-popup-radius);
2518
- --_ui-combobox-popup-shadow: var(--ui-combobox-popup-shadow);
2519
-
2520
- --_row: var(--ui-control-size-md);
2521
- display: grid !important;
2522
- gap: var(--ui-space-1) !important;
2523
- min-inline-size: 0;
2524
- color: var(--ui-text-primary);
2525
- font: inherit;
2526
- }
2527
- :global(label:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2528
- color: var(--_ui-combobox-label-text, var(--ui-text-primary));
2529
- font-size: var(
2530
- --_ui-combobox-label-font-size,
2531
- var(--ui-field-label-font-size, var(--ui-font-size-md))
2532
- );
2533
- font-weight: 500;
2534
- }
2535
- :global(.control:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2536
- display: flex !important;
2537
- align-items: center !important;
2538
- gap: var(--ui-space-2) !important;
2539
- min-inline-size: 0;
2540
- }
2541
-
2542
- :global(.field:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2543
- box-sizing: border-box !important;
2544
- min-block-size: var(--_row);
2545
- flex: 1 1 auto;
2546
- display: flex !important;
2547
- min-inline-size: 0;
2548
- border: var(--ui-border-width) solid var(--ui-control-border, var(--ui-border-default));
2549
- border-radius: var(--_ui-combobox-radius, var(--ui-field-radius, var(--ui-radius-md)));
2550
- background: var(--ui-control-surface, var(--ui-surface-default));
2551
- box-shadow: var(--ui-control-inset);
2552
- transition:
2553
- border-color var(--ui-motion-fast) var(--ui-motion-ease),
2554
- box-shadow var(--ui-motion-fast) var(--ui-motion-ease);
2555
- }
2556
- :global(.field:focus-within:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2557
- border-color: var(--ui-control-focus, var(--ui-accent-solid));
2558
- box-shadow:
2559
- var(--ui-control-inset),
2560
- var(--ui-control-focus-halo-shadow);
2561
- }
2562
- :global(.entry:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2563
- display: flex !important;
2564
- flex: 1 1 auto;
2565
- min-inline-size: 0;
2566
- }
2567
- :global(.start:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2568
- display: flex !important;
2569
- align-items: center !important;
2570
- flex: none;
2571
- padding-inline-start: var(--ui-space-3) !important;
2572
- }
2573
- :global(.start:empty:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2574
- display: none !important;
2575
- }
2576
- :global(:where(.ui-combobox)[data-ui-combobox-state~="size=sm"]
2577
- .start:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2578
- padding-inline-start: var(--ui-space-2) !important;
2579
- }
2580
- :global(:where(.ui-combobox)[data-ui-combobox-state~="size=lg"]
2581
- .start:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2582
- padding-inline-start: var(--ui-space-4) !important;
2583
- }
2584
- :global(.help:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2585
- flex: none;
2586
- display: inline-flex !important;
2587
- align-items: center !important;
2588
- justify-content: center !important;
2589
- inline-size: var(--ui-control-size-sm);
2590
- block-size: var(--ui-control-size-sm);
2591
- padding: 0 !important;
2592
- border: 0;
2593
- border-radius: var(--ui-radius-round);
2594
- background: transparent;
2595
- color: var(--ui-text-secondary);
2596
- cursor: pointer;
2597
- transition:
2598
- background-color var(--ui-motion-fast) var(--ui-motion-ease),
2599
- color var(--ui-motion-fast) var(--ui-motion-ease);
2600
- }
2601
-
2602
- :global(.help:hover:enabled:where(:scope, :scope *):where([data-hn-ui-combobox])),
2603
- :global(.help[aria-expanded="true"]:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2604
- background: color-mix(in srgb, currentColor 8%, transparent);
2605
- color: var(--ui-text-primary);
2606
- }
2607
-
2608
- :global(.help:focus-visible:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2609
- outline: none;
2610
- box-shadow: var(--ui-focus-halo);
2611
- }
2612
-
2613
- :global(.help:disabled:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2614
- color: var(--ui-disabled-text);
2615
- cursor: not-allowed;
2616
- }
2617
-
2618
- :global(.help-icon:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2619
- inline-size: var(--ui-icon-size-sm);
2620
- block-size: var(--ui-icon-size-sm);
2621
- }
2622
-
2623
- :global(:where(.ui-combobox)[data-ui-combobox-state~="muted"]
2624
- input:not(:disabled):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2625
- color: var(--ui-text-secondary);
2626
- }
2627
-
2628
- :global(input:where(:not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where(:scope, :scope
2629
- *):where([data-hn-ui-combobox])::selection) {
2630
- background: color-mix(in srgb, var(--ui-accent-solid) 20%, transparent);
2631
- color: inherit;
2632
- }
2633
- :global(input:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2634
- --_ui-combobox-inset-block: var(--ui-control-inset-block-md, var(--ui-space-2));
2635
- appearance: none;
2636
- width: 100%;
2637
- min-inline-size: 0;
2638
- min-block-size: calc(var(--_row) - 2 * var(--ui-border-width));
2639
- max-block-size: max(
2640
- calc(var(--_row) - 2 * var(--ui-border-width)),
2641
- calc(1em * var(--ui-line-height-tight) + 2 * var(--_ui-combobox-inset-block))
2642
- );
2643
- box-sizing: border-box !important;
2644
- border: 0;
2645
- border-radius: inherit;
2646
- background: transparent;
2647
- color: inherit;
2648
- font: inherit;
2649
- line-height: var(--ui-line-height-tight);
2650
- padding: var(--_ui-combobox-inset-block) var(--ui-space-3) !important;
2651
- margin: 0 !important;
2652
- outline: none;
2653
- }
2654
- :global(:where(.ui-combobox)[data-ui-combobox-state~="size=sm"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2655
- --_row: var(--ui-control-size-sm);
2656
- }
2657
- :global(:where(.ui-combobox)[data-ui-combobox-state~="size=sm"]
2658
- input:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2659
- --_ui-combobox-inset-block: var(--ui-control-inset-block-sm, var(--ui-space-1));
2660
- padding: var(--_ui-combobox-inset-block) var(--ui-space-2) !important;
2661
- font-size: var(--ui-font-size-sm);
2662
- }
2663
- :global(:where(.ui-combobox)[data-ui-combobox-state~="size=lg"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2664
- --_row: var(--ui-control-size-lg);
2665
- }
2666
- :global(:where(.ui-combobox)[data-ui-combobox-state~="size=lg"]
2667
- input:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2668
- --_ui-combobox-inset-block: var(--ui-control-inset-block-lg, var(--ui-space-3));
2669
- padding: var(--_ui-combobox-inset-block) var(--ui-space-4) !important;
2670
- font-size: var(--ui-font-size-md);
2671
- }
2672
- :global(button:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2673
- appearance: none;
2674
- display: inline-grid !important;
2675
- place-items: center;
2676
- align-self: stretch;
2677
- border: 0;
2678
- border-radius: var(--ui-radius-md);
2679
- background: transparent;
2680
- color: var(--_ui-combobox-affordance-text, var(--ui-text-secondary));
2681
- font: inherit;
2682
- font-weight: 400;
2683
- min-inline-size: 2rem;
2684
- padding: 0 var(--ui-space-1) !important;
2685
- cursor: pointer;
2686
- }
2687
- :global(.affordance-icon:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2688
- display: block !important;
2689
- inline-size: var(--ui-icon-size-sm);
2690
- block-size: var(--ui-icon-size-sm);
2691
- }
2692
- :global(button:hover:enabled:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2693
- background: var(--ui-surface-muted);
2694
- color: var(--ui-text-primary);
2695
- }
2696
- :global(button:focus-visible:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2697
- outline: none;
2698
- background: var(--ui-surface-muted);
2699
- box-shadow: inset 0 0 0 var(--ui-focus-width)
2700
- color-mix(in srgb, var(--ui-focus-ring) 45%, transparent);
2701
- }
2702
- :global(input:disabled:where(:scope, :scope *):where([data-hn-ui-combobox])),
2703
- :global(button:disabled:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2704
- color: var(--ui-disabled-text);
2705
- cursor: not-allowed;
2706
- }
2707
- :global(.field:has(input:disabled):where(:scope, :scope *):where([data-hn-ui-combobox])) {
2708
- background: var(--ui-control-surface-disabled, var(--ui-surface-muted));
2709
- }
2710
- :global(:where(.ui-combobox)[data-ui-combobox-state~="validationStatus=error"]
2711
- .field:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])),
2712
- :global(:where(.ui-combobox)[data-ui-combobox-state~="invalid"]
2713
- .field:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2714
- border-color: var(
2715
- --_ui-combobox-invalid-border,
2716
- var(--ui-field-danger, var(--ui-danger-solid, var(--ui-accent-active)))
2717
- );
2718
- }
2719
- :global(.popup:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2720
- box-sizing: border-box !important;
2721
- min-inline-size: 12rem;
2722
- max-inline-size: calc(100vw - 1rem);
2723
- max-block-size: var(--_ui-combobox-max-block-size, 18rem);
2724
- overflow: auto;
2725
- margin: 0 !important;
2726
- padding: var(--ui-space-1) !important;
2727
- border: var(--ui-border-width) solid
2728
- var(--_ui-combobox-popup-border, var(--ui-overlay-border, var(--ui-border-strong)));
2729
- border-radius: var(--_ui-combobox-popup-radius, var(--ui-overlay-radius, var(--ui-radius-md)));
2730
- background: var(
2731
- --_ui-combobox-popup-surface,
2732
- var(--ui-material-content, var(--ui-surface-elevated))
2733
- );
2734
- color: var(--ui-text-primary);
2735
- box-shadow: var(
2736
- --_ui-combobox-popup-shadow,
2737
- var(--ui-overlay-shadow, var(--ui-elevation-overlay, var(--ui-shadow-lg)))
2738
- );
2739
- }
2740
- :global([hidden]:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2741
- display: none !important;
2742
- }
2743
- :global(.option[aria-disabled="true"]:where(:scope, :scope *)
2744
- .primary:where([data-hn-ui-combobox])),
2745
- :global(.option[aria-disabled="true"]:where(:scope, :scope *)
2746
- .secondary:where([data-hn-ui-combobox])) {
2747
- color: var(--ui-disabled-text);
2748
- }
2749
- :global(.primary:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2750
- display: block !important;
2751
- color: var(--_ui-combobox-option-text, inherit);
2752
- font-weight: 500;
2753
- }
2754
- :global(.detail:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2755
- display: grid !important;
2756
- gap: var(--ui-space-0-5) !important;
2757
- min-inline-size: 0;
2758
- }
2759
- :global(.line:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2760
- display: flex !important;
2761
- flex-wrap: wrap !important;
2762
- align-items: center !important;
2763
- gap: var(--ui-space-2) !important;
2764
- }
2765
- :global(.description:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2766
- color: var(--ui-text-muted);
2767
- font-size: var(--ui-font-size-sm);
2768
- line-height: var(--ui-line-height-md);
2769
- }
2770
- :global(.message:where(:scope, :scope *):where([data-hn-ui-combobox])),
2771
- :global(.group:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2772
- color: var(--_ui-combobox-message-text, var(--ui-text-secondary));
2773
- font-weight: 400;
2774
- font-size: var(--ui-font-size-sm);
2775
- line-height: var(--ui-line-height-md);
2776
- overflow-wrap: anywhere;
2777
- }
2778
- :global(.group:where(:scope, :scope *):where([data-hn-ui-combobox])),
2779
- :global(.popup:where(:scope, :scope *) .message:where([data-hn-ui-combobox])) {
2780
- padding: var(--ui-space-2) var(--ui-space-3) !important;
2781
- }
2782
- :global(.sr-only:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2783
- position: absolute;
2784
- inline-size: 1px;
2785
- block-size: 1px;
2786
- overflow: hidden;
2787
- clip-path: inset(50%);
2788
- white-space: nowrap;
2789
- }
2790
- @media (pointer: coarse) {
2791
- :global(:where(.ui-combobox)[data-ui-combobox-state~="size=sm"]
2792
- input:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2793
- font-size: var(--ui-font-size-md);
2794
- }
2795
- }
2796
- @media (forced-colors: active) {
2797
- :global(.field:where(:scope, :scope *):where([data-hn-ui-combobox])),
2798
- :global(.popup:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2799
- border-color: CanvasText;
2800
- }
2801
- :global(.option.active:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2802
- outline-color: Highlight;
2803
- }
2804
- }
2805
- :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]
2806
- .field:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2807
- --_item-row: 1.75rem;
2808
- align-items: center !important;
2809
- min-block-size: var(--_ui-combobox-item-min-block-size, var(--_row));
2810
- padding: var(--ui-space-1) !important;
2811
- }
2812
- :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]
2813
- .entry:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2814
- align-items: center !important;
2815
- gap: var(--ui-space-1) !important;
2816
- overflow-x: auto;
2817
- scrollbar-width: none;
2818
- }
2819
- :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]
2820
- .entry:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])::-webkit-scrollbar) {
2821
- display: none !important;
2822
- }
2823
- :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]
2824
- input:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2825
- max-block-size: none;
2826
- flex: 1 0 var(--_ui-combobox-item-input-min-inline-size, 5rem);
2827
- width: auto;
2828
- min-block-size: var(--_item-row);
2829
- padding: var(--ui-space-0-5) var(--ui-space-1) !important;
2830
- }
2831
- :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]:where(.ui-combobox)[data-ui-combobox-state~="size=sm"]
2832
- .field:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2833
- --_item-row: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
2834
- min-block-size: 0;
2835
- padding: var(--ui-space-0-5) !important;
2836
- }
2837
- :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]:where(.ui-combobox)[data-ui-combobox-state~="size=sm"]
2838
- input:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2839
- min-block-size: var(--_item-row);
2840
- padding: 0 var(--ui-space-1) !important;
2841
- }
2842
- :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]:where(.ui-combobox)[data-ui-combobox-state~="size=lg"]
2843
- .field:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2844
- --_item-row: calc(
2845
- var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1)
2846
- );
2847
- min-block-size: 0;
2848
- }
2849
- :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]:where(.ui-combobox)[data-ui-combobox-state~="size=lg"]
2850
- input:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2851
- min-block-size: var(--_item-row);
2852
- }
2853
- :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]
2854
- .entry.multiline:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2855
- /* The field owns its nominal row size; nested badges keep their own sizing hooks. */
2856
- --_entry-row: max(1.5rem, var(--_item-row));
2857
- flex-wrap: wrap !important;
2858
- align-content: flex-start !important;
2859
- max-block-size: calc(
2860
- var(--_max-rows) * var(--_entry-row) + (var(--_max-rows) - 1) * var(--ui-space-1)
2861
- );
2862
- overflow-x: hidden;
2863
- overflow-y: auto;
2864
- }
2865
- :global(.entry.multiline:where(:scope, :scope *) .item:where([data-hn-ui-combobox])) {
2866
- min-block-size: var(--_entry-row);
2867
- }
2868
- :global(.item:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2869
- appearance: none;
2870
- display: inline-flex !important;
2871
- flex: none;
2872
- min-inline-size: 0;
2873
- max-inline-size: min(100%, var(--_ui-combobox-item-item-max-inline-size, 12rem));
2874
- overflow: hidden;
2875
- padding: 0 !important;
2876
- border: 0;
2877
- border-radius: var(--ui-radius-sm);
2878
- background: transparent;
2879
- color: inherit;
2880
- font: inherit;
2881
- cursor: default;
2882
- }
2883
- :global(.item:focus-visible:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2884
- outline: var(--ui-focus-width) solid var(--ui-focus-ring);
2885
- outline-offset: var(--ui-border-width);
2886
- }
2887
- :global(.item:disabled:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2888
- color: var(--ui-disabled-text);
2889
- }
2890
- :global(:where(.ui-combobox)[hidden]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2891
- display: none !important;
2892
- }
2893
- }
2894
- </style>