@threadlabs/looma 0.28.4 → 0.28.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (437) hide show
  1. package/components/ui-editor-image-toolbar/ui-editor-image-toolbar.html +96 -0
  2. package/components/ui-editor-image-toolbar/ui-editor-image-toolbar.js +56 -0
  3. package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +3 -2
  4. package/dist/index.js +34 -33
  5. package/package.json +3 -2
  6. package/styles/ui-action-bar.css +13 -6
  7. package/styles/ui-affordance-scope.css +12 -5
  8. package/styles/ui-avatar-group.css +17 -10
  9. package/styles/ui-avatar.css +23 -16
  10. package/styles/ui-badge.css +78 -71
  11. package/styles/ui-breadcrumb-item.css +12 -5
  12. package/styles/ui-breadcrumbs.css +10 -3
  13. package/styles/ui-button.css +79 -72
  14. package/styles/ui-callout.css +29 -22
  15. package/styles/ui-card.css +25 -18
  16. package/styles/ui-checkbox.css +45 -37
  17. package/styles/ui-cluster.css +34 -27
  18. package/styles/ui-combobox.css +46 -39
  19. package/styles/ui-container.css +20 -13
  20. package/styles/ui-context-menu.css +17 -10
  21. package/styles/ui-cover.css +12 -5
  22. package/styles/ui-description-item.css +10 -3
  23. package/styles/ui-description-list.css +20 -13
  24. package/styles/ui-dialog.css +44 -35
  25. package/styles/ui-disclosure.css +32 -25
  26. package/styles/ui-editable.css +15 -8
  27. package/styles/ui-editor-image-toolbar.css +1 -0
  28. package/styles/ui-editor-insert-table-grid.css +11 -4
  29. package/styles/ui-editor-mention-menu-item.css +17 -8
  30. package/styles/ui-editor-mention-menu.css +14 -7
  31. package/styles/ui-editor-slash-menu-group.css +10 -3
  32. package/styles/ui-editor-slash-menu-item.css +15 -8
  33. package/styles/ui-editor-slash-menu.css +15 -8
  34. package/styles/ui-editor-surface.css +10 -3
  35. package/styles/ui-editor-table-context-menu.css +17 -10
  36. package/styles/ui-editor-table-overlay.css +17 -10
  37. package/styles/ui-editor-table-toolbar.css +22 -15
  38. package/styles/ui-editor-toolbar.css +18 -11
  39. package/styles/ui-floating-action-button.css +21 -14
  40. package/styles/ui-form-field.css +20 -13
  41. package/styles/ui-grid.css +21 -14
  42. package/styles/ui-icon-button.css +80 -73
  43. package/styles/ui-icon.css +14 -7
  44. package/styles/ui-image.css +25 -18
  45. package/styles/ui-input-group.css +34 -27
  46. package/styles/ui-input.css +42 -35
  47. package/styles/ui-list-item.css +33 -26
  48. package/styles/ui-list.css +22 -15
  49. package/styles/ui-listbox.css +22 -14
  50. package/styles/ui-menu-group.css +10 -3
  51. package/styles/ui-menu-item.css +29 -22
  52. package/styles/ui-menu.css +25 -18
  53. package/styles/ui-meter.css +36 -29
  54. package/styles/ui-nav-item.css +26 -19
  55. package/styles/ui-page-header.css +12 -5
  56. package/styles/ui-popover.css +27 -20
  57. package/styles/ui-radio-group.css +14 -6
  58. package/styles/ui-radio.css +24 -17
  59. package/styles/ui-reel.css +28 -21
  60. package/styles/ui-scroll-area.css +22 -15
  61. package/styles/ui-search-result-row.css +28 -21
  62. package/styles/ui-search-shell.css +24 -17
  63. package/styles/ui-section.css +14 -7
  64. package/styles/ui-select.css +33 -26
  65. package/styles/ui-separator.css +17 -10
  66. package/styles/ui-sidebar.css +35 -28
  67. package/styles/ui-spinner.css +32 -23
  68. package/styles/ui-stack.css +29 -21
  69. package/styles/ui-status-message.css +14 -7
  70. package/styles/ui-switch.css +29 -22
  71. package/styles/ui-switcher.css +27 -20
  72. package/styles/ui-table.css +14 -7
  73. package/styles/ui-tabs.css +24 -17
  74. package/styles/ui-text.css +35 -28
  75. package/styles/ui-textarea.css +37 -30
  76. package/styles/ui-toast-region.css +74 -63
  77. package/styles/ui-toast.css +21 -14
  78. package/styles/ui-tooltip.css +38 -31
  79. package/styles/ui-top-bar.css +19 -12
  80. package/styles/ui-tree-item.css +79 -71
  81. package/styles/ui-tree.css +18 -11
  82. package/vanilla/UiActionBar.d.ts +1 -1
  83. package/vanilla/UiActionBar.js +1 -1
  84. package/vanilla/UiAffordanceScope.d.ts +1 -1
  85. package/vanilla/UiAffordanceScope.js +1 -1
  86. package/vanilla/UiAvatar.d.ts +1 -1
  87. package/vanilla/UiAvatar.js +1 -1
  88. package/vanilla/UiAvatarGroup.d.ts +1 -1
  89. package/vanilla/UiAvatarGroup.js +1 -1
  90. package/vanilla/UiBadge.d.ts +1 -1
  91. package/vanilla/UiBadge.js +1 -1
  92. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  93. package/vanilla/UiBreadcrumbItem.js +1 -1
  94. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  95. package/vanilla/UiBreadcrumbs.js +1 -1
  96. package/vanilla/UiButton.d.ts +1 -1
  97. package/vanilla/UiButton.js +19 -57
  98. package/vanilla/UiCallout.d.ts +1 -1
  99. package/vanilla/UiCallout.js +25 -73
  100. package/vanilla/UiCard.d.ts +1 -1
  101. package/vanilla/UiCard.js +1 -1
  102. package/vanilla/UiCheckbox.d.ts +1 -1
  103. package/vanilla/UiCheckbox.js +1 -1
  104. package/vanilla/UiCluster.d.ts +1 -1
  105. package/vanilla/UiCluster.js +1 -1
  106. package/vanilla/UiCombobox.d.ts +1 -1
  107. package/vanilla/UiCombobox.js +60 -166
  108. package/vanilla/UiContainer.d.ts +1 -1
  109. package/vanilla/UiContainer.js +1 -1
  110. package/vanilla/UiContextMenu.d.ts +1 -1
  111. package/vanilla/UiContextMenu.js +1 -1
  112. package/vanilla/UiCover.d.ts +1 -1
  113. package/vanilla/UiCover.js +1 -1
  114. package/vanilla/UiDescriptionItem.d.ts +1 -1
  115. package/vanilla/UiDescriptionItem.js +1 -1
  116. package/vanilla/UiDescriptionList.d.ts +1 -1
  117. package/vanilla/UiDescriptionList.js +1 -1
  118. package/vanilla/UiDialog.d.ts +1 -1
  119. package/vanilla/UiDialog.js +4 -10
  120. package/vanilla/UiDisclosure.d.ts +1 -1
  121. package/vanilla/UiDisclosure.js +1 -1
  122. package/vanilla/UiEditable.d.ts +1 -1
  123. package/vanilla/UiEditable.js +7 -19
  124. package/vanilla/UiEditorImageToolbar.d.ts +19 -0
  125. package/vanilla/UiEditorImageToolbar.js +171 -0
  126. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  127. package/vanilla/UiEditorInsertTableGrid.js +1 -1
  128. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  129. package/vanilla/UiEditorMentionMenu.js +17 -37
  130. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  131. package/vanilla/UiEditorMentionMenuItem.js +4 -10
  132. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  133. package/vanilla/UiEditorSlashMenu.js +5 -4
  134. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  135. package/vanilla/UiEditorSlashMenuGroup.js +1 -1
  136. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  137. package/vanilla/UiEditorSlashMenuItem.js +7 -19
  138. package/vanilla/UiEditorSurface.d.ts +1 -1
  139. package/vanilla/UiEditorSurface.js +1 -1
  140. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  141. package/vanilla/UiEditorTableContextMenu.js +6 -14
  142. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  143. package/vanilla/UiEditorTableOverlay.js +9 -25
  144. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  145. package/vanilla/UiEditorTableToolbar.js +25 -77
  146. package/vanilla/UiEditorToolbar.d.ts +1 -1
  147. package/vanilla/UiEditorToolbar.js +1 -1
  148. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  149. package/vanilla/UiFloatingActionButton.js +1 -1
  150. package/vanilla/UiFormField.d.ts +1 -1
  151. package/vanilla/UiFormField.js +1 -1
  152. package/vanilla/UiGrid.d.ts +1 -1
  153. package/vanilla/UiGrid.js +1 -1
  154. package/vanilla/UiIcon.d.ts +1 -1
  155. package/vanilla/UiIcon.js +15 -47
  156. package/vanilla/UiIconButton.d.ts +1 -1
  157. package/vanilla/UiIconButton.js +4 -10
  158. package/vanilla/UiImage.d.ts +1 -1
  159. package/vanilla/UiImage.js +1 -1
  160. package/vanilla/UiInput.d.ts +1 -1
  161. package/vanilla/UiInput.js +1 -1
  162. package/vanilla/UiInputGroup.d.ts +1 -1
  163. package/vanilla/UiInputGroup.js +1 -1
  164. package/vanilla/UiList.d.ts +1 -1
  165. package/vanilla/UiList.js +1 -1
  166. package/vanilla/UiListItem.d.ts +1 -1
  167. package/vanilla/UiListItem.js +1 -1
  168. package/vanilla/UiListbox.d.ts +1 -1
  169. package/vanilla/UiListbox.js +4 -10
  170. package/vanilla/UiMenu.d.ts +1 -1
  171. package/vanilla/UiMenu.js +1 -1
  172. package/vanilla/UiMenuGroup.d.ts +1 -1
  173. package/vanilla/UiMenuGroup.js +4 -10
  174. package/vanilla/UiMenuItem.d.ts +1 -1
  175. package/vanilla/UiMenuItem.js +4 -10
  176. package/vanilla/UiMeter.d.ts +1 -1
  177. package/vanilla/UiMeter.js +13 -33
  178. package/vanilla/UiNavItem.d.ts +1 -1
  179. package/vanilla/UiNavItem.js +1 -1
  180. package/vanilla/UiPageHeader.d.ts +1 -1
  181. package/vanilla/UiPageHeader.js +1 -1
  182. package/vanilla/UiPopover.d.ts +1 -1
  183. package/vanilla/UiPopover.js +1 -1
  184. package/vanilla/UiRadio.d.ts +1 -1
  185. package/vanilla/UiRadio.js +1 -1
  186. package/vanilla/UiRadioGroup.d.ts +1 -1
  187. package/vanilla/UiRadioGroup.js +1 -1
  188. package/vanilla/UiReel.d.ts +1 -1
  189. package/vanilla/UiReel.js +1 -1
  190. package/vanilla/UiScrollArea.d.ts +1 -1
  191. package/vanilla/UiScrollArea.js +1 -1
  192. package/vanilla/UiSearchResultRow.d.ts +1 -1
  193. package/vanilla/UiSearchResultRow.js +1 -1
  194. package/vanilla/UiSearchShell.d.ts +1 -1
  195. package/vanilla/UiSearchShell.js +1 -1
  196. package/vanilla/UiSection.d.ts +1 -1
  197. package/vanilla/UiSection.js +1 -1
  198. package/vanilla/UiSelect.d.ts +1 -1
  199. package/vanilla/UiSelect.js +1 -1
  200. package/vanilla/UiSeparator.d.ts +1 -1
  201. package/vanilla/UiSeparator.js +1 -1
  202. package/vanilla/UiSidebar.d.ts +1 -1
  203. package/vanilla/UiSidebar.js +1 -1
  204. package/vanilla/UiSpinner.d.ts +1 -1
  205. package/vanilla/UiSpinner.js +1 -1
  206. package/vanilla/UiStack.d.ts +1 -1
  207. package/vanilla/UiStack.js +1 -1
  208. package/vanilla/UiStatusMessage.d.ts +1 -1
  209. package/vanilla/UiStatusMessage.js +1 -1
  210. package/vanilla/UiSwitch.d.ts +1 -1
  211. package/vanilla/UiSwitch.js +1 -1
  212. package/vanilla/UiSwitcher.d.ts +1 -1
  213. package/vanilla/UiSwitcher.js +1 -1
  214. package/vanilla/UiTable.d.ts +1 -1
  215. package/vanilla/UiTable.js +1 -1
  216. package/vanilla/UiTabs.d.ts +1 -1
  217. package/vanilla/UiTabs.js +1 -1
  218. package/vanilla/UiText.d.ts +1 -1
  219. package/vanilla/UiText.js +1 -1
  220. package/vanilla/UiTextarea.d.ts +1 -1
  221. package/vanilla/UiTextarea.js +1 -1
  222. package/vanilla/UiToast.d.ts +1 -1
  223. package/vanilla/UiToast.js +1 -1
  224. package/vanilla/UiToastRegion.d.ts +1 -1
  225. package/vanilla/UiToastRegion.js +1 -1
  226. package/vanilla/UiTooltip.d.ts +1 -1
  227. package/vanilla/UiTooltip.js +1 -1
  228. package/vanilla/UiTopBar.d.ts +1 -1
  229. package/vanilla/UiTopBar.js +1 -1
  230. package/vanilla/UiTree.d.ts +1 -1
  231. package/vanilla/UiTree.js +1 -1
  232. package/vanilla/UiTreeItem.d.ts +1 -1
  233. package/vanilla/UiTreeItem.js +7 -19
  234. package/vanilla/index.js +1 -0
  235. package/vue/UiActionBar.vue +46 -78
  236. package/vue/UiAffordanceScope.vue +27 -66
  237. package/vue/UiAvatar.d.ts +10 -7
  238. package/vue/UiAvatar.vue +100 -218
  239. package/vue/UiAvatarGroup.d.ts +10 -7
  240. package/vue/UiAvatarGroup.vue +78 -160
  241. package/vue/UiBadge.d.ts +1 -1
  242. package/vue/UiBadge.vue +483 -520
  243. package/vue/UiBreadcrumbItem.vue +52 -123
  244. package/vue/UiBreadcrumbs.vue +27 -70
  245. package/vue/UiButton.d.ts +2 -2
  246. package/vue/UiButton.vue +420 -471
  247. package/vue/UiCallout.vue +131 -175
  248. package/vue/UiCard.d.ts +1 -1
  249. package/vue/UiCard.vue +112 -151
  250. package/vue/UiCheckbox.d.ts +13 -10
  251. package/vue/UiCheckbox.vue +160 -221
  252. package/vue/UiCluster.d.ts +1 -1
  253. package/vue/UiCluster.vue +84 -128
  254. package/vue/UiCombobox.d.ts +71 -68
  255. package/vue/UiCombobox.vue +417 -743
  256. package/vue/UiContainer.vue +43 -87
  257. package/vue/UiContextMenu.d.ts +6 -6
  258. package/vue/UiContextMenu.vue +78 -117
  259. package/vue/UiCover.vue +29 -69
  260. package/vue/UiDescriptionItem.vue +39 -82
  261. package/vue/UiDescriptionList.vue +64 -107
  262. package/vue/UiDialog.d.ts +22 -19
  263. package/vue/UiDialog.vue +193 -246
  264. package/vue/UiDisclosure.d.ts +22 -19
  265. package/vue/UiDisclosure.vue +192 -283
  266. package/vue/UiEditable.d.ts +5 -5
  267. package/vue/UiEditable.vue +124 -207
  268. package/vue/UiEditorImageToolbar.d.ts +54 -0
  269. package/vue/UiEditorImageToolbar.js +2 -0
  270. package/vue/UiEditorImageToolbar.vue +415 -0
  271. package/vue/UiEditorInsertTableGrid.d.ts +2 -2
  272. package/vue/UiEditorInsertTableGrid.vue +98 -266
  273. package/vue/UiEditorMentionMenu.d.ts +15 -12
  274. package/vue/UiEditorMentionMenu.vue +150 -239
  275. package/vue/UiEditorMentionMenuItem.vue +66 -110
  276. package/vue/UiEditorSlashMenu.d.ts +16 -13
  277. package/vue/UiEditorSlashMenu.vue +172 -253
  278. package/vue/UiEditorSlashMenuGroup.vue +25 -69
  279. package/vue/UiEditorSlashMenuItem.vue +67 -115
  280. package/vue/UiEditorSurface.vue +19 -63
  281. package/vue/UiEditorTableContextMenu.vue +135 -269
  282. package/vue/UiEditorTableOverlay.d.ts +2 -2
  283. package/vue/UiEditorTableOverlay.vue +310 -479
  284. package/vue/UiEditorTableToolbar.d.ts +2 -2
  285. package/vue/UiEditorTableToolbar.vue +182 -357
  286. package/vue/UiEditorToolbar.vue +143 -183
  287. package/vue/UiFloatingActionButton.vue +70 -114
  288. package/vue/UiFormField.d.ts +1 -1
  289. package/vue/UiFormField.vue +76 -117
  290. package/vue/UiGrid.d.ts +1 -1
  291. package/vue/UiGrid.vue +65 -103
  292. package/vue/UiIcon.vue +32 -106
  293. package/vue/UiIconButton.d.ts +2 -2
  294. package/vue/UiIconButton.vue +359 -411
  295. package/vue/UiImage.vue +145 -180
  296. package/vue/UiInput.vue +158 -190
  297. package/vue/UiInputGroup.vue +199 -239
  298. package/vue/UiList.vue +67 -109
  299. package/vue/UiListItem.vue +154 -201
  300. package/vue/UiListbox.d.ts +10 -7
  301. package/vue/UiListbox.vue +86 -260
  302. package/vue/UiMenu.d.ts +11 -11
  303. package/vue/UiMenu.vue +118 -152
  304. package/vue/UiMenuGroup.vue +21 -67
  305. package/vue/UiMenuItem.d.ts +19 -16
  306. package/vue/UiMenuItem.vue +169 -262
  307. package/vue/UiMeter.d.ts +4 -4
  308. package/vue/UiMeter.vue +166 -680
  309. package/vue/UiNavItem.vue +140 -213
  310. package/vue/UiPageHeader.vue +81 -127
  311. package/vue/UiPopover.d.ts +7 -7
  312. package/vue/UiPopover.vue +90 -129
  313. package/vue/UiRadio.d.ts +12 -9
  314. package/vue/UiRadio.vue +91 -149
  315. package/vue/UiRadioGroup.d.ts +2 -2
  316. package/vue/UiRadioGroup.vue +47 -85
  317. package/vue/UiReel.vue +89 -130
  318. package/vue/UiScrollArea.d.ts +1 -1
  319. package/vue/UiScrollArea.vue +78 -119
  320. package/vue/UiSearchResultRow.vue +96 -149
  321. package/vue/UiSearchShell.d.ts +2 -2
  322. package/vue/UiSearchShell.vue +159 -196
  323. package/vue/UiSection.vue +105 -149
  324. package/vue/UiSelect.d.ts +1 -1
  325. package/vue/UiSelect.vue +114 -146
  326. package/vue/UiSeparator.vue +42 -85
  327. package/vue/UiSidebar.d.ts +10 -7
  328. package/vue/UiSidebar.vue +193 -260
  329. package/vue/UiSpinner.vue +54 -130
  330. package/vue/UiStack.vue +66 -107
  331. package/vue/UiStatusMessage.d.ts +1 -1
  332. package/vue/UiStatusMessage.vue +61 -135
  333. package/vue/UiSwitch.d.ts +12 -9
  334. package/vue/UiSwitch.vue +136 -194
  335. package/vue/UiSwitcher.vue +69 -107
  336. package/vue/UiTable.vue +121 -156
  337. package/vue/UiTabs.d.ts +1 -1
  338. package/vue/UiTabs.vue +139 -267
  339. package/vue/UiText.d.ts +4 -4
  340. package/vue/UiText.vue +145 -184
  341. package/vue/UiTextarea.d.ts +2 -2
  342. package/vue/UiTextarea.vue +162 -194
  343. package/vue/UiToast.vue +70 -118
  344. package/vue/UiToastRegion.vue +157 -276
  345. package/vue/UiTooltip.d.ts +21 -18
  346. package/vue/UiTooltip.vue +174 -234
  347. package/vue/UiTopBar.vue +48 -76
  348. package/vue/UiTree.vue +46 -79
  349. package/vue/UiTreeItem.d.ts +18 -15
  350. package/vue/UiTreeItem.vue +526 -668
  351. package/vue/chunks/UiActionBar.js +5 -17
  352. package/vue/chunks/UiAffordanceScope.js +7 -26
  353. package/vue/chunks/UiAvatar.js +20 -74
  354. package/vue/chunks/UiAvatarGroup.js +14 -56
  355. package/vue/chunks/UiBadge.js +10 -28
  356. package/vue/chunks/UiBreadcrumbItem.js +11 -41
  357. package/vue/chunks/UiBreadcrumbs.js +7 -25
  358. package/vue/chunks/UiButton.js +80 -103
  359. package/vue/chunks/UiCallout.js +9 -27
  360. package/vue/chunks/UiCard.js +33 -53
  361. package/vue/chunks/UiCheckbox.js +14 -46
  362. package/vue/chunks/UiCluster.js +13 -31
  363. package/vue/chunks/UiCombobox.js +99 -237
  364. package/vue/chunks/UiContainer.js +9 -27
  365. package/vue/chunks/UiContextMenu.js +7 -26
  366. package/vue/chunks/UiCover.js +7 -25
  367. package/vue/chunks/UiDescriptionItem.js +6 -24
  368. package/vue/chunks/UiDescriptionList.js +9 -27
  369. package/vue/chunks/UiDialog.js +18 -47
  370. package/vue/chunks/UiDisclosure.js +19 -66
  371. package/vue/chunks/UiEditable.js +18 -60
  372. package/vue/chunks/UiEditorImageToolbar.js +515 -0
  373. package/vue/chunks/UiEditorInsertTableGrid.js +14 -112
  374. package/vue/chunks/UiEditorMentionMenu.js +16 -54
  375. package/vue/chunks/UiEditorMentionMenuItem.js +10 -28
  376. package/vue/chunks/UiEditorSlashMenu.js +17 -46
  377. package/vue/chunks/UiEditorSlashMenuGroup.js +7 -25
  378. package/vue/chunks/UiEditorSlashMenuItem.js +16 -31
  379. package/vue/chunks/UiEditorSurface.js +7 -25
  380. package/vue/chunks/UiEditorTableContextMenu.js +25 -102
  381. package/vue/chunks/UiEditorTableOverlay.js +41 -104
  382. package/vue/chunks/UiEditorTableToolbar.js +44 -122
  383. package/vue/chunks/UiEditorToolbar.js +7 -26
  384. package/vue/chunks/UiFloatingActionButton.js +10 -28
  385. package/vue/chunks/UiFormField.js +8 -27
  386. package/vue/chunks/UiGrid.js +10 -28
  387. package/vue/chunks/UiIcon.js +21 -74
  388. package/vue/chunks/UiIconButton.js +18 -50
  389. package/vue/chunks/UiImage.js +14 -33
  390. package/vue/chunks/UiInput.js +12 -31
  391. package/vue/chunks/UiInputGroup.js +10 -29
  392. package/vue/chunks/UiList.js +17 -37
  393. package/vue/chunks/UiListItem.js +12 -30
  394. package/vue/chunks/UiListbox.js +22 -124
  395. package/vue/chunks/UiMenu.js +13 -32
  396. package/vue/chunks/UiMenuGroup.js +8 -26
  397. package/vue/chunks/UiMenuItem.js +35 -80
  398. package/vue/chunks/UiMeter.js +17 -351
  399. package/vue/chunks/UiNavItem.js +23 -57
  400. package/vue/chunks/UiPageHeader.js +7 -25
  401. package/vue/chunks/UiPopover.js +9 -28
  402. package/vue/chunks/UiRadio.js +11 -43
  403. package/vue/chunks/UiRadioGroup.js +13 -32
  404. package/vue/chunks/UiReel.js +10 -28
  405. package/vue/chunks/UiScrollArea.js +10 -29
  406. package/vue/chunks/UiSearchResultRow.js +10 -28
  407. package/vue/chunks/UiSearchShell.js +9 -28
  408. package/vue/chunks/UiSection.js +9 -27
  409. package/vue/chunks/UiSelect.js +10 -29
  410. package/vue/chunks/UiSeparator.js +10 -28
  411. package/vue/chunks/UiSidebar.js +15 -47
  412. package/vue/chunks/UiSpinner.js +8 -44
  413. package/vue/chunks/UiStack.js +12 -30
  414. package/vue/chunks/UiStatusMessage.js +10 -42
  415. package/vue/chunks/UiSwitch.js +11 -43
  416. package/vue/chunks/UiSwitcher.js +9 -28
  417. package/vue/chunks/UiTable.js +7 -26
  418. package/vue/chunks/UiTabs.js +15 -91
  419. package/vue/chunks/UiText.js +148 -168
  420. package/vue/chunks/UiTextarea.js +16 -35
  421. package/vue/chunks/UiToast.js +13 -37
  422. package/vue/chunks/UiToastRegion.js +16 -88
  423. package/vue/chunks/UiTooltip.js +14 -46
  424. package/vue/chunks/UiTopBar.js +5 -17
  425. package/vue/chunks/UiTree.js +13 -32
  426. package/vue/chunks/UiTreeItem.js +34 -90
  427. package/vue/chunks/_plugin-vue_export-helper.js +904 -1
  428. package/vue/chunks/control.js +3 -0
  429. package/vue/chunks/props.js +1 -1
  430. package/vue/components.css +7902 -7830
  431. package/vue/editor/index.js +42 -171
  432. package/vue/editor/primitives.d.ts +9 -1
  433. package/vue/host.ts +999 -14
  434. package/vue/index.d.ts +1 -0
  435. package/vue/index.js +9 -8
  436. package/vue/chunks/host.js +0 -443
  437. package/vue/editor/image-controls.d.ts +0 -19
@@ -1,10 +1,9 @@
1
- import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
2
- import { r as useComponentHost, t as createDispatch } from "./host.js";
1
+ import { _ as useComponentHost, a as concat, g as uniqueKeys, i as checkHydratedRoot, n as KeyedBoundary, o as createDispatch, p as nativeAttrs, t as _plugin_vue_export_helper_default, v as useReflectedProp, y as warnUnless } from "./_plugin-vue_export-helper.js";
3
2
  import { a as vPropValidity, n as checkedProp, r as propValidityState, t as acceptsControllerWrite } from "./props.js";
4
3
  import { t as UiBadge_default } from "./UiBadge.js";
5
4
  import { r as vBindControl } from "./control.js";
6
5
  import { t as UiTooltip_default } from "./UiTooltip.js";
7
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, h, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
6
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
8
7
  //#region .build/vue/UiCombobox.vue?vue&type=script&setup=true&lang.ts
9
8
  var _hoisted_1 = [
10
9
  "data-allow-create",
@@ -119,14 +118,6 @@ var _hoisted_27 = {
119
118
  "aria-live": "polite",
120
119
  "aria-atomic": "true"
121
120
  };
122
- var htmlNextAuthoredCheck2Reported = /* @__PURE__ */ new Set();
123
- function htmlNextAuthoredCheck2(accepted, location, message) {
124
- if (!accepted && !htmlNextAuthoredCheck2Reported.has(location)) {
125
- htmlNextAuthoredCheck2Reported.add(location);
126
- console.warn(message);
127
- }
128
- return accepted;
129
- }
130
121
  //#endregion
131
122
  //#region .build/vue/UiCombobox.vue
132
123
  var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
@@ -867,42 +858,7 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
867
858
  watchSyncEffect(() => {
868
859
  checkedProps.value;
869
860
  });
870
- function nativeAttrs(attrs) {
871
- const names = Object.keys(attrs);
872
- if (!names.some((name) => Object.hasOwn(Object.prototype, name))) return attrs;
873
- return Object.fromEntries(names.map((name) => [Object.hasOwn(Object.prototype, name) ? name === "__proto__" ? "__Proto__" : name[0].toUpperCase() + name.slice(1) : name, attrs[name]]));
874
- }
875
- const KeyedFailure = defineComponent({
876
- props: { error: {
877
- type: null,
878
- required: true
879
- } },
880
- setup(props) {
881
- return () => {
882
- throw props.error;
883
- };
884
- }
885
- });
886
- const KeyedBoundary = defineComponent({ setup(_props, { slots }) {
887
- let last = [];
888
- return () => {
889
- try {
890
- last = slots.default?.() ?? [];
891
- return last;
892
- } catch (error) {
893
- if (!(error instanceof Error) || error.diagnostic?.code !== "HR004") throw error;
894
- if (typeof window === "undefined") throw error;
895
- return [...last, h(KeyedFailure, { error })];
896
- }
897
- };
898
- } });
899
- const componentInstance = getCurrentInstance();
900
- function reflectedProp(name, kebab, value, fallback, bound, separator) {
901
- const incoming = componentInstance?.vnode.props;
902
- if (!bound && (incoming === null || incoming === void 0 || !Object.hasOwn(incoming, name) && !Object.hasOwn(incoming, kebab))) return fallback;
903
- if (value === null || value === void 0) return void 0;
904
- return Array.isArray(value) && separator !== void 0 ? value.join(separator) : typeof value === "object" ? JSON.stringify(value) : String(value);
905
- }
861
+ const reflectedProp = useReflectedProp();
906
862
  const hydrationInstance = getCurrentInstance();
907
863
  const emit = __emit;
908
864
  const root = ref(null);
@@ -936,146 +892,90 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
936
892
  const validationStatus = ref("pristine");
937
893
  let guardedPrevious = null;
938
894
  const guarded = computed(() => {
939
- if (!htmlNextAuthoredCheck2(uid.value == null || typeof uid.value === "string", "concat($uid, '-input'):uid", "./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.")) return guardedPrevious;
940
895
  const candidate = concat(uid.value, "-input");
941
896
  if (candidate === Symbol.for("html-next.invalid-result")) return guardedPrevious;
942
897
  return guardedPrevious = candidate;
943
898
  });
944
899
  let guardedBindingPrevious = null;
945
900
  const guardedBinding = computed(() => {
946
- if (!htmlNextAuthoredCheck2(uid.value == null || typeof uid.value === "string", "concat($uid, '-input'):uid", "./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.")) return guardedBindingPrevious;
947
901
  const candidate = concat(uid.value, "-input");
948
902
  if (candidate === Symbol.for("html-next.invalid-result")) return guardedBindingPrevious;
949
903
  return guardedBindingPrevious = candidate;
950
904
  });
951
905
  let guardedBinding2Previous = null;
952
906
  const guardedBinding2 = computed(() => {
953
- if (!htmlNextAuthoredCheck2(uid.value == null || typeof uid.value === "string", "concat($uid, '-listbox'):uid", "./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.")) return guardedBinding2Previous;
954
907
  const candidate = concat(uid.value, "-listbox");
955
908
  if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding2Previous;
956
909
  return guardedBinding2Previous = candidate;
957
910
  });
958
911
  let guardedBinding3Previous;
959
912
  const guardedBinding3 = computed(() => {
960
- if (!htmlNextAuthoredCheck2(expanded.value == null || typeof expanded.value === "boolean", "$expanded:expanded", "./components/ui-combobox/ui-combobox.html: HR007: Reference expanded does not satisfy its declared type.")) return guardedBinding3Previous;
961
- return guardedBinding3Previous = expanded.value;
913
+ if (!warnUnless(internalItems.value?.["0"] == null || typeof internalItems.value?.["0"] === "object" && internalItems.value?.["0"] !== null && !Array.isArray(internalItems.value?.["0"]), "$required and not ($multiple and $internalItems.0):internalItems.0", "./components/ui-combobox/ui-combobox.html: HR007: Reference internalItems.0 does not satisfy its declared type.")) return guardedBinding3Previous;
914
+ return guardedBinding3Previous = checkedProps.value.required && !(checkedProps.value.multiple && internalItems.value[0]);
962
915
  });
963
916
  let guardedBinding4Previous;
964
917
  const guardedBinding4 = computed(() => {
965
- if (!htmlNextAuthoredCheck2(validationStatus.value == null || typeof validationStatus.value === "string", "$invalid or $validationStatus = 'error':validationStatus", "./components/ui-combobox/ui-combobox.html: HR007: Reference validationStatus does not satisfy its declared type.")) return guardedBinding4Previous;
966
- return guardedBinding4Previous = checkedProps.value.invalid || validationStatus.value === "error";
918
+ if (!warnUnless(selected.value == null || typeof selected.value === "string" || selected.value === null, "$disabled or $readonly or (not $raw and ($multiple or $selected = null)):selected", "./components/ui-combobox/ui-combobox.html: HR007: Reference selected does not satisfy its declared type.")) return guardedBinding4Previous;
919
+ return guardedBinding4Previous = checkedProps.value.disabled || checkedProps.value.readonly || !raw.value && (checkedProps.value.multiple || selected.value === null);
967
920
  });
968
- let guardedBinding5Previous;
921
+ let guardedBinding5Previous = null;
969
922
  const guardedBinding5 = computed(() => {
970
- if (!htmlNextAuthoredCheck2(validationStatus.value == null || typeof validationStatus.value === "string", "$loading or $validationStatus = 'pending':validationStatus", "./components/ui-combobox/ui-combobox.html: HR007: Reference validationStatus does not satisfy its declared type.")) return guardedBinding5Previous;
971
- return guardedBinding5Previous = checkedProps.value.loading || validationStatus.value === "pending";
923
+ const candidate = concat(uid.value, "-listbox");
924
+ if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding5Previous;
925
+ return guardedBinding5Previous = candidate;
972
926
  });
973
- let guardedBinding6Previous;
974
- computed(() => {
975
- if (!htmlNextAuthoredCheck2(display.value == null || typeof display.value === "string", "$display:display", "./components/ui-combobox/ui-combobox.html: HR007: Reference display does not satisfy its declared type.")) return guardedBinding6Previous;
976
- return guardedBinding6Previous = display.value;
927
+ let guardedBinding6Previous = null;
928
+ const guardedBinding6 = computed(() => {
929
+ const candidate = concat(uid.value, "-help");
930
+ if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding6Previous;
931
+ return guardedBinding6Previous = candidate;
977
932
  });
978
- let guardedBinding7Previous;
933
+ let guardedBinding7Previous = null;
979
934
  const guardedBinding7 = computed(() => {
980
- if (!htmlNextAuthoredCheck2(internalItems.value?.["0"] == null || typeof internalItems.value?.["0"] === "object" && internalItems.value?.["0"] !== null && !Array.isArray(internalItems.value?.["0"]), "$required and not ($multiple and $internalItems.0):internalItems.0", "./components/ui-combobox/ui-combobox.html: HR007: Reference internalItems.0 does not satisfy its declared type.")) return guardedBinding7Previous;
981
- return guardedBinding7Previous = checkedProps.value.required && !(checkedProps.value.multiple && internalItems.value[0]);
935
+ const candidate = concat(uid.value, "-help-text");
936
+ if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding7Previous;
937
+ return guardedBinding7Previous = candidate;
982
938
  });
983
- let guardedBinding8Previous;
939
+ let guardedBinding8Previous = null;
984
940
  const guardedBinding8 = computed(() => {
985
- if (!htmlNextAuthoredCheck2(submitted.value == null || typeof submitted.value === "string", "$submitted:submitted", "./components/ui-combobox/ui-combobox.html: HR007: Reference submitted does not satisfy its declared type.")) return guardedBinding8Previous;
986
- return guardedBinding8Previous = submitted.value;
941
+ const candidate = concat(uid.value, "-help");
942
+ if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding8Previous;
943
+ return guardedBinding8Previous = candidate;
987
944
  });
988
- let guardedBinding9Previous;
945
+ let guardedBinding9Previous = null;
989
946
  const guardedBinding9 = computed(() => {
990
- if (!(htmlNextAuthoredCheck2(raw.value == null || typeof raw.value === "string", "$disabled or $readonly or (not $raw and ($multiple or $selected = null)):raw", "./components/ui-combobox/ui-combobox.html: HR007: Reference raw does not satisfy its declared type.") && htmlNextAuthoredCheck2(selected.value == null || typeof selected.value === "string" || selected.value === null, "$disabled or $readonly or (not $raw and ($multiple or $selected = null)):selected", "./components/ui-combobox/ui-combobox.html: HR007: Reference selected does not satisfy its declared type."))) return guardedBinding9Previous;
991
- return guardedBinding9Previous = checkedProps.value.disabled || checkedProps.value.readonly || !raw.value && (checkedProps.value.multiple || selected.value === null);
947
+ const candidate = concat(uid.value, "-listbox");
948
+ if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding9Previous;
949
+ return guardedBinding9Previous = candidate;
992
950
  });
993
951
  let guardedBinding10Previous = null;
994
952
  const guardedBinding10 = computed(() => {
995
- if (!htmlNextAuthoredCheck2(uid.value == null || typeof uid.value === "string", "concat($uid, '-listbox'):uid", "./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.")) return guardedBinding10Previous;
996
- const candidate = concat(uid.value, "-listbox");
953
+ const candidate = concat(checkedProps.value.label, " suggestions");
997
954
  if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding10Previous;
998
955
  return guardedBinding10Previous = candidate;
999
956
  });
1000
- let guardedBinding11Previous = null;
957
+ let guardedBinding11Previous;
1001
958
  const guardedBinding11 = computed(() => {
1002
- if (!htmlNextAuthoredCheck2(uid.value == null || typeof uid.value === "string", "concat($uid, '-help'):uid", "./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.")) return guardedBinding11Previous;
1003
- const candidate = concat(uid.value, "-help");
1004
- if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding11Previous;
1005
- return guardedBinding11Previous = candidate;
959
+ if (!warnUnless(active.value == null || Number.isInteger(active.value), "$createIndex = $active:active", "./components/ui-combobox/ui-combobox.html: HR007: Reference active does not satisfy its declared type.")) return guardedBinding11Previous;
960
+ return guardedBinding11Previous = createIndex.value === active.value;
1006
961
  });
1007
962
  let guardedBinding12Previous = null;
1008
963
  const guardedBinding12 = computed(() => {
1009
- if (!htmlNextAuthoredCheck2(uid.value == null || typeof uid.value === "string", "concat($uid, '-help-text'):uid", "./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.")) return guardedBinding12Previous;
1010
- const candidate = concat(uid.value, "-help-text");
964
+ const candidate = concat(uid.value, "-option-", createIndex.value);
1011
965
  if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding12Previous;
1012
966
  return guardedBinding12Previous = candidate;
1013
967
  });
1014
968
  let guardedBinding13Previous = null;
1015
969
  const guardedBinding13 = computed(() => {
1016
- if (!htmlNextAuthoredCheck2(uid.value == null || typeof uid.value === "string", "concat($uid, '-help'):uid", "./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.")) return guardedBinding13Previous;
1017
- const candidate = concat(uid.value, "-help");
970
+ const candidate = concat("Create “", raw.value, "”");
1018
971
  if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding13Previous;
1019
972
  return guardedBinding13Previous = candidate;
1020
973
  });
1021
- let guardedBinding14Previous;
974
+ let guardedBinding14Previous = null;
1022
975
  const guardedBinding14 = computed(() => {
1023
- if (!htmlNextAuthoredCheck2(expanded.value == null || typeof expanded.value === "boolean", "not $expanded:expanded", "./components/ui-combobox/ui-combobox.html: HR007: Reference expanded does not satisfy its declared type.")) return guardedBinding14Previous;
1024
- return guardedBinding14Previous = !expanded.value;
1025
- });
1026
- let guardedBinding15Previous = null;
1027
- const guardedBinding15 = computed(() => {
1028
- if (!htmlNextAuthoredCheck2(uid.value == null || typeof uid.value === "string", "concat($uid, '-listbox'):uid", "./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.")) return guardedBinding15Previous;
1029
- const candidate = concat(uid.value, "-listbox");
1030
- if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding15Previous;
1031
- return guardedBinding15Previous = candidate;
1032
- });
1033
- let guardedBinding16Previous = null;
1034
- const guardedBinding16 = computed(() => {
1035
- const candidate = concat(checkedProps.value.label, " suggestions");
1036
- if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding16Previous;
1037
- return guardedBinding16Previous = candidate;
1038
- });
1039
- let guardedBinding17Previous;
1040
- const guardedBinding17 = computed(() => {
1041
- if (!(htmlNextAuthoredCheck2(active.value == null || Number.isInteger(active.value), "$createIndex = $active:active", "./components/ui-combobox/ui-combobox.html: HR007: Reference active does not satisfy its declared type.") && htmlNextAuthoredCheck2(createIndex.value == null || Number.isInteger(createIndex.value), "$createIndex = $active:createIndex", "./components/ui-combobox/ui-combobox.html: HR007: Reference createIndex does not satisfy its declared type."))) return guardedBinding17Previous;
1042
- return guardedBinding17Previous = createIndex.value === active.value;
1043
- });
1044
- let guardedBinding18Previous = null;
1045
- const guardedBinding18 = computed(() => {
1046
- if (!(htmlNextAuthoredCheck2(createIndex.value == null || Number.isInteger(createIndex.value), "concat($uid, '-option-', $createIndex):createIndex", "./components/ui-combobox/ui-combobox.html: HR007: Reference createIndex does not satisfy its declared type.") && htmlNextAuthoredCheck2(uid.value == null || typeof uid.value === "string", "concat($uid, '-option-', $createIndex):uid", "./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type."))) return guardedBinding18Previous;
1047
- const candidate = concat(uid.value, "-option-", createIndex.value);
1048
- if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding18Previous;
1049
- return guardedBinding18Previous = candidate;
1050
- });
1051
- let guardedBinding19Previous;
1052
- const guardedBinding19 = computed(() => {
1053
- if (!htmlNextAuthoredCheck2(createIndex.value == null || Number.isInteger(createIndex.value), "$createIndex:createIndex", "./components/ui-combobox/ui-combobox.html: HR007: Reference createIndex does not satisfy its declared type.")) return guardedBinding19Previous;
1054
- return guardedBinding19Previous = createIndex.value;
1055
- });
1056
- let guardedBinding20Previous = null;
1057
- const guardedBinding20 = computed(() => {
1058
- if (!htmlNextAuthoredCheck2(raw.value == null || typeof raw.value === "string", "concat('Create “', $raw, '”'):raw", "./components/ui-combobox/ui-combobox.html: HR007: Reference raw does not satisfy its declared type.")) return guardedBinding20Previous;
1059
- const candidate = concat("Create “", raw.value, "”");
1060
- if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding20Previous;
1061
- return guardedBinding20Previous = candidate;
1062
- });
1063
- let guardedBinding21Previous;
1064
- const guardedBinding21 = computed(() => {
1065
- if (!htmlNextAuthoredCheck2(message.value == null || typeof message.value === "string", "$message:message", "./components/ui-combobox/ui-combobox.html: HR007: Reference message does not satisfy its declared type.")) return guardedBinding21Previous;
1066
- return guardedBinding21Previous = message.value;
1067
- });
1068
- let guardedBinding22Previous = null;
1069
- const guardedBinding22 = computed(() => {
1070
- if (!htmlNextAuthoredCheck2(uid.value == null || typeof uid.value === "string", "concat($uid, '-validation'):uid", "./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.")) return guardedBinding22Previous;
1071
976
  const candidate = concat(uid.value, "-validation");
1072
- if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding22Previous;
1073
- return guardedBinding22Previous = candidate;
1074
- });
1075
- let guardedBinding23Previous;
1076
- const guardedBinding23 = computed(() => {
1077
- if (!htmlNextAuthoredCheck2(statusText.value == null || typeof statusText.value === "string", "$statusText:statusText", "./components/ui-combobox/ui-combobox.html: HR007: Reference statusText does not satisfy its declared type.")) return guardedBinding23Previous;
1078
- return guardedBinding23Previous = statusText.value;
977
+ if (candidate === Symbol.for("html-next.invalid-result")) return guardedBinding14Previous;
978
+ return guardedBinding14Previous = candidate;
1079
979
  });
1080
980
  provide("html-next:ui-combobox:internalItems", internalItems);
1081
981
  provide("html-next:ui-combobox:raw", raw);
@@ -1095,14 +995,7 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
1095
995
  provide("html-next:ui-combobox:message", message);
1096
996
  provide("html-next:ui-combobox:statusText", statusText);
1097
997
  provide("html-next:ui-combobox:validationStatus", validationStatus);
1098
- const hydrationNode = hydrationInstance?.vnode.el;
1099
- if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-combobox> has an incompatible root."), {
1100
- name: "HtmlDiagnosticError",
1101
- diagnostic: Object.freeze({
1102
- code: "HR005",
1103
- message: "Server markup for <ui-combobox> has an incompatible root."
1104
- })
1105
- });
998
+ checkHydratedRoot("div", "ui-combobox");
1106
999
  /** The values the styles' :host-state() rules test. */
1107
1000
  const hostState = computed(() => [
1108
1001
  checkedProps.value.size && "size",
@@ -1800,67 +1693,34 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
1800
1693
  validationStatus
1801
1694
  }
1802
1695
  });
1803
- function text(value) {
1804
- if (Array.isArray(value)) return value.map(text).join(" ");
1805
- return value === null || value === void 0 || typeof value === "object" ? "" : String(value);
1806
- }
1807
- function concat(...values) {
1808
- if (values.some((value) => value === Symbol.for("html-next.invalid-result"))) return Symbol.for("html-next.invalid-result");
1809
- if (values.some((value) => value === void 0)) return void 0;
1810
- if (values.length === 0 || values.some((value) => typeof value === "object" && value !== null)) return Symbol.for("html-next.invalid-result");
1811
- return values.map((value) => value === null ? "" : String(value)).join("");
1812
- }
1813
- function uniqueKeys(items, keyOf) {
1814
- const seen = /* @__PURE__ */ new Set();
1815
- for (let index = 0; index < items.length; index += 1) {
1816
- const key = keyOf(items[index], index, {
1817
- index,
1818
- first: index === 0,
1819
- last: index === items.length - 1,
1820
- count: items.length
1821
- });
1822
- if (seen.has(key)) {
1823
- const message = `A keyed list produced duplicate key \`${text(key)}\`.`;
1824
- throw Object.assign(/* @__PURE__ */ new Error(`HR004: ${message}`), {
1825
- name: "HtmlDiagnosticError",
1826
- diagnostic: Object.freeze({
1827
- code: "HR004",
1828
- message
1829
- })
1830
- });
1831
- }
1832
- seen.add(key);
1833
- }
1834
- return items;
1835
- }
1836
1696
  return (_ctx, _cache) => {
1837
- return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-combobox" }, nativeAttrs(_ctx.$attrs), {
1838
- "data-allow-create": reflectedProp("allowCreate", "allow-create", checkedProps.value.allowCreate, void 0, false),
1839
- "data-allow-free-text": reflectedProp("allowFreeText", "allow-free-text", checkedProps.value.allowFreeText, void 0, false),
1840
- "data-auto-highlight": reflectedProp("autoHighlight", "auto-highlight", checkedProps.value.autoHighlight, void 0, false),
1841
- "data-clear-query-on-blur": reflectedProp("clearQueryOnBlur", "clear-query-on-blur", checkedProps.value.clearQueryOnBlur, void 0, false),
1842
- "data-clearable": reflectedProp("clearable", "clearable", checkedProps.value.clearable, void 0, false),
1843
- "data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
1844
- "data-disclosure": reflectedProp("disclosure", "disclosure", checkedProps.value.disclosure, void 0, false),
1845
- "data-filter": reflectedProp("filter", "filter", checkedProps.value.filter, void 0, false),
1846
- "data-help": reflectedProp("help", "help", checkedProps.value.help, void 0, false),
1847
- "data-invalid": reflectedProp("invalid", "invalid", checkedProps.value.invalid, void 0, false),
1848
- "data-items": reflectedProp("items", "items", checkedProps.value.items, void 0, false),
1849
- "data-label": reflectedProp("label", "label", checkedProps.value.label, void 0, false),
1850
- "data-label-visibility": reflectedProp("labelVisibility", "label-visibility", checkedProps.value.labelVisibility, void 0, false),
1851
- "data-loading": reflectedProp("loading", "loading", checkedProps.value.loading, void 0, false),
1852
- "data-multiple": reflectedProp("multiple", "multiple", checkedProps.value.multiple, void 0, false),
1853
- "data-name": reflectedProp("name", "name", checkedProps.value.name, void 0, false),
1854
- "data-open-on-focus": reflectedProp("openOnFocus", "open-on-focus", checkedProps.value.openOnFocus, void 0, false),
1855
- "data-placeholder": reflectedProp("placeholder", "placeholder", checkedProps.value.placeholder, void 0, false),
1856
- "data-query": reflectedProp("query", "query", checkedProps.value.query, void 0, false),
1857
- "data-readonly": reflectedProp("readonly", "readonly", checkedProps.value.readonly, void 0, false),
1858
- "data-required": reflectedProp("required", "required", checkedProps.value.required, void 0, false),
1859
- "data-select-on-tab": reflectedProp("selectOnTab", "select-on-tab", checkedProps.value.selectOnTab, void 0, false),
1860
- "data-selected-values": reflectedProp("selectedValues", "selected-values", checkedProps.value.selectedValues, void 0, false),
1861
- "data-size": reflectedProp("size", "size", checkedProps.value.size, void 0, false),
1862
- "data-token-separators": reflectedProp("tokenSeparators", "token-separators", checkedProps.value.tokenSeparators, void 0, false),
1863
- "data-value": reflectedProp("value", "value", checkedProps.value.value, void 0, false),
1697
+ return withDirectives((openBlock(), createElementBlock("div", mergeProps({ class: "ui-combobox" }, unref(nativeAttrs)(_ctx.$attrs), {
1698
+ "data-allow-create": unref(reflectedProp)("allowCreate", "allow-create", checkedProps.value.allowCreate, void 0, false),
1699
+ "data-allow-free-text": unref(reflectedProp)("allowFreeText", "allow-free-text", checkedProps.value.allowFreeText, void 0, false),
1700
+ "data-auto-highlight": unref(reflectedProp)("autoHighlight", "auto-highlight", checkedProps.value.autoHighlight, void 0, false),
1701
+ "data-clear-query-on-blur": unref(reflectedProp)("clearQueryOnBlur", "clear-query-on-blur", checkedProps.value.clearQueryOnBlur, void 0, false),
1702
+ "data-clearable": unref(reflectedProp)("clearable", "clearable", checkedProps.value.clearable, void 0, false),
1703
+ "data-disabled": unref(reflectedProp)("disabled", "disabled", checkedProps.value.disabled, void 0, false),
1704
+ "data-disclosure": unref(reflectedProp)("disclosure", "disclosure", checkedProps.value.disclosure, void 0, false),
1705
+ "data-filter": unref(reflectedProp)("filter", "filter", checkedProps.value.filter, void 0, false),
1706
+ "data-help": unref(reflectedProp)("help", "help", checkedProps.value.help, void 0, false),
1707
+ "data-invalid": unref(reflectedProp)("invalid", "invalid", checkedProps.value.invalid, void 0, false),
1708
+ "data-items": unref(reflectedProp)("items", "items", checkedProps.value.items, void 0, false),
1709
+ "data-label": unref(reflectedProp)("label", "label", checkedProps.value.label, void 0, false),
1710
+ "data-label-visibility": unref(reflectedProp)("labelVisibility", "label-visibility", checkedProps.value.labelVisibility, void 0, false),
1711
+ "data-loading": unref(reflectedProp)("loading", "loading", checkedProps.value.loading, void 0, false),
1712
+ "data-multiple": unref(reflectedProp)("multiple", "multiple", checkedProps.value.multiple, void 0, false),
1713
+ "data-name": unref(reflectedProp)("name", "name", checkedProps.value.name, void 0, false),
1714
+ "data-open-on-focus": unref(reflectedProp)("openOnFocus", "open-on-focus", checkedProps.value.openOnFocus, void 0, false),
1715
+ "data-placeholder": unref(reflectedProp)("placeholder", "placeholder", checkedProps.value.placeholder, void 0, false),
1716
+ "data-query": unref(reflectedProp)("query", "query", checkedProps.value.query, void 0, false),
1717
+ "data-readonly": unref(reflectedProp)("readonly", "readonly", checkedProps.value.readonly, void 0, false),
1718
+ "data-required": unref(reflectedProp)("required", "required", checkedProps.value.required, void 0, false),
1719
+ "data-select-on-tab": unref(reflectedProp)("selectOnTab", "select-on-tab", checkedProps.value.selectOnTab, void 0, false),
1720
+ "data-selected-values": unref(reflectedProp)("selectedValues", "selected-values", checkedProps.value.selectedValues, void 0, false),
1721
+ "data-size": unref(reflectedProp)("size", "size", checkedProps.value.size, void 0, false),
1722
+ "data-token-separators": unref(reflectedProp)("tokenSeparators", "token-separators", checkedProps.value.tokenSeparators, void 0, false),
1723
+ "data-value": unref(reflectedProp)("value", "value", checkedProps.value.value, void 0, false),
1864
1724
  "data-ui-combobox-state": hostState.value || void 0,
1865
1725
  ref_key: "root",
1866
1726
  ref: root
@@ -1877,7 +1737,7 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
1877
1737
  createElementVNode("div", _hoisted_4, [
1878
1738
  renderSlot(_ctx.$slots, "start", {}, void 0, true),
1879
1739
  checkedProps.value.multiple ? (openBlock(), createBlock(unref(KeyedBoundary), { key: 0 }, {
1880
- default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(uniqueKeys(internalItems.value, (item, index, loop) => item.id), (item, index) => {
1740
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(uniqueKeys)(internalItems.value, (item, index, loop) => item.id), (item, index) => {
1881
1741
  return openBlock(), createElementBlock("button", {
1882
1742
  key: item.id,
1883
1743
  class: "item",
@@ -1885,8 +1745,8 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
1885
1745
  tabindex: "-1",
1886
1746
  "data-index": index,
1887
1747
  disabled: checkedProps.value.disabled || checkedProps.value.readonly || item.disabled,
1888
- "aria-label": concat(item.label, ", press Delete or Backspace to remove")
1889
- }, [renderSlot(_ctx.$slots, concat("item-", item.id), {}, () => [createVNode(UiBadge_default, null, {
1748
+ "aria-label": unref(concat)(item.label, ", press Delete or Backspace to remove")
1749
+ }, [renderSlot(_ctx.$slots, unref(concat)("item-", item.id), {}, () => [createVNode(UiBadge_default, { class: "ui-badge" }, {
1890
1750
  default: withCtx(() => [createTextVNode(toDisplayString(item.label), 1)]),
1891
1751
  _: 2
1892
1752
  }, 1024)], true)], 8, _hoisted_5);
@@ -1899,13 +1759,13 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
1899
1759
  autocomplete: "off",
1900
1760
  id: guardedBinding.value,
1901
1761
  "aria-controls": guardedBinding2.value,
1902
- "aria-expanded": guardedBinding3.value,
1903
- "aria-invalid": guardedBinding4.value,
1904
- "aria-busy": guardedBinding5.value,
1762
+ "aria-expanded": expanded.value,
1763
+ "aria-invalid": checkedProps.value.invalid || validationStatus.value === "error",
1764
+ "aria-busy": checkedProps.value.loading || validationStatus.value === "pending",
1905
1765
  placeholder: checkedProps.value.placeholder ?? void 0,
1906
1766
  disabled: checkedProps.value.disabled ?? void 0,
1907
1767
  readonly: checkedProps.value.readonly ?? void 0,
1908
- required: guardedBinding7.value,
1768
+ required: guardedBinding3.value,
1909
1769
  ref_key: "inputElement",
1910
1770
  ref: inputElement
1911
1771
  }, null, 8, _hoisted_6), [[unref(vBindControl), {
@@ -1920,11 +1780,11 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
1920
1780
  key: 0,
1921
1781
  type: "hidden",
1922
1782
  name: checkedProps.value.name ?? void 0,
1923
- "^value": guardedBinding8.value,
1783
+ "^value": submitted.value,
1924
1784
  disabled: checkedProps.value.disabled ?? void 0
1925
1785
  }, null, 8, _hoisted_7)) : createCommentVNode("v-if", true),
1926
1786
  checkedProps.value.name && checkedProps.value.multiple ? (openBlock(), createBlock(unref(KeyedBoundary), { key: 1 }, {
1927
- default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(uniqueKeys(internalItems.value, (item, index, loop) => item.id), (item) => {
1787
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(uniqueKeys)(internalItems.value, (item, index, loop) => item.id), (item) => {
1928
1788
  return openBlock(), createElementBlock("input", {
1929
1789
  key: item.id,
1930
1790
  type: "hidden",
@@ -1940,7 +1800,7 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
1940
1800
  type: "button",
1941
1801
  "data-combobox-action": "clear",
1942
1802
  "aria-label": "Clear",
1943
- disabled: guardedBinding9.value
1803
+ disabled: guardedBinding4.value
1944
1804
  }, [..._cache[0] || (_cache[0] = [createElementVNode("svg", {
1945
1805
  class: "affordance-icon",
1946
1806
  "aria-hidden": "true",
@@ -1956,7 +1816,7 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
1956
1816
  "data-combobox-action": "disclosure",
1957
1817
  tabindex: "-1",
1958
1818
  "aria-label": "Show suggestions",
1959
- "aria-controls": guardedBinding10.value,
1819
+ "aria-controls": guardedBinding5.value,
1960
1820
  disabled: checkedProps.value.disabled || checkedProps.value.readonly
1961
1821
  }, [..._cache[1] || (_cache[1] = [createElementVNode("svg", {
1962
1822
  class: "affordance-icon",
@@ -1973,7 +1833,7 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
1973
1833
  class: "help",
1974
1834
  type: "button",
1975
1835
  "aria-label": "Help",
1976
- id: guardedBinding11.value,
1836
+ id: guardedBinding6.value,
1977
1837
  disabled: checkedProps.value.disabled ?? void 0
1978
1838
  }, [..._cache[2] || (_cache[2] = [createElementVNode("svg", {
1979
1839
  class: "help-icon",
@@ -1995,60 +1855,62 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
1995
1855
  ], -1)])], 8, _hoisted_11)) : createCommentVNode("v-if", true)]),
1996
1856
  checkedProps.value.help ? (openBlock(), createBlock(UiTooltip_default, {
1997
1857
  key: 0,
1858
+ class: "ui-tooltip",
1998
1859
  trigger: "click",
1999
- id: guardedBinding12.value,
2000
- for: guardedBinding13.value
1860
+ id: guardedBinding7.value,
1861
+ for: guardedBinding8.value
2001
1862
  }, {
2002
1863
  default: withCtx(() => [createTextVNode(toDisplayString(checkedProps.value.help), 1)]),
2003
1864
  _: 1
2004
1865
  }, 8, ["id", "for"])) : createCommentVNode("v-if", true),
2005
1866
  createElementVNode("div", {
2006
1867
  class: "popup",
2007
- hidden: guardedBinding14.value,
1868
+ hidden: !expanded.value,
2008
1869
  ref_key: "popupElement",
2009
1870
  ref: popupElement
2010
1871
  }, [createElementVNode("div", {
2011
1872
  role: "listbox",
2012
- id: guardedBinding15.value,
2013
- "aria-label": guardedBinding16.value,
1873
+ id: guardedBinding9.value,
1874
+ "aria-label": guardedBinding10.value,
2014
1875
  "aria-busy": checkedProps.value.loading ?? void 0,
2015
1876
  ref_key: "listboxElement",
2016
1877
  ref: listboxElement
2017
1878
  }, [
2018
1879
  createVNode(unref(KeyedBoundary), null, {
2019
- default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(uniqueKeys(groups.value, (group, indexLoop, loop) => group.name), (group) => {
1880
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(uniqueKeys)(groups.value, (group, indexLoop, loop) => group.name), (group) => {
2020
1881
  return openBlock(), createElementBlock("div", {
2021
1882
  key: group.name,
2022
1883
  role: group.role,
2023
1884
  "aria-label": group.label ?? void 0
2024
1885
  }, [group.name ? (openBlock(), createElementBlock("div", _hoisted_15, toDisplayString(group.name), 1)) : createCommentVNode("v-if", true), createVNode(unref(KeyedBoundary), null, {
2025
- default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(uniqueKeys(group.rows, (row, indexLoop2, loop) => row.id), (row) => {
1886
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(uniqueKeys)(group.rows, (row, indexLoop2, loop) => row.id), (row) => {
2026
1887
  return openBlock(), createElementBlock("div", {
2027
1888
  key: row.id,
2028
1889
  class: normalizeClass(["option", { active: row.index === active.value }]),
2029
1890
  role: "option",
2030
1891
  "data-ui-choice-option": "",
2031
1892
  "data-multiple": checkedProps.value.multiple ? "" : void 0,
2032
- id: concat(uid.value, "-option-", row.index),
1893
+ id: unref(concat)(uid.value, "-option-", row.index),
2033
1894
  "aria-selected": row.selected,
2034
1895
  "aria-disabled": row.disabled,
2035
1896
  "data-index": row.index,
2036
1897
  "aria-labelledby": row.labelledBy ?? void 0,
2037
1898
  "aria-describedby": row.detail ?? void 0
2038
- }, [renderSlot(_ctx.$slots, concat("option-", row.id), {}, () => [row.detail ? (openBlock(), createElementBlock("span", _hoisted_17, [createElementVNode("span", _hoisted_18, [createElementVNode("span", {
1899
+ }, [renderSlot(_ctx.$slots, unref(concat)("option-", row.id), {}, () => [row.detail ? (openBlock(), createElementBlock("span", _hoisted_17, [createElementVNode("span", _hoisted_18, [createElementVNode("span", {
2039
1900
  class: "primary",
2040
- id: concat(uid.value, "-option-", row.index, "-label")
1901
+ id: unref(concat)(uid.value, "-option-", row.index, "-label")
2041
1902
  }, toDisplayString(row.label), 9, _hoisted_19), row.tag ? (openBlock(), createBlock(UiBadge_default, {
2042
1903
  key: 0,
1904
+ class: "ui-badge",
2043
1905
  tone: row.tag?.tone,
2044
1906
  style: normalizeStyle({ "--ui-badge-color": row.tag?.color ?? void 0 })
2045
1907
  }, {
2046
- default: withCtx(() => [createElementVNode("span", { id: concat(uid.value, "-option-", row.index, "-tag") }, toDisplayString(row.tag?.label), 9, _hoisted_20)]),
1908
+ default: withCtx(() => [createElementVNode("span", { id: unref(concat)(uid.value, "-option-", row.index, "-tag") }, toDisplayString(row.tag?.label), 9, _hoisted_20)]),
2047
1909
  _: 2
2048
1910
  }, 1032, ["tone", "style"])) : createCommentVNode("v-if", true)]), row.description ? (openBlock(), createElementBlock("span", {
2049
1911
  key: 0,
2050
1912
  class: "description",
2051
- id: concat(uid.value, "-option-", row.index, "-description")
1913
+ id: unref(concat)(uid.value, "-option-", row.index, "-description")
2052
1914
  }, toDisplayString(row.description), 9, _hoisted_21)) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), !row.detail ? (openBlock(), createElementBlock("span", _hoisted_22, toDisplayString(row.label), 1)) : createCommentVNode("v-if", true)], true)], 10, _hoisted_16);
2053
1915
  }), 128))]),
2054
1916
  _: 2
@@ -2058,25 +1920,25 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
2058
1920
  }),
2059
1921
  creatable.value ? (openBlock(), createElementBlock("div", {
2060
1922
  key: 0,
2061
- class: normalizeClass(["option", { active: guardedBinding17.value }]),
1923
+ class: normalizeClass(["option", { active: guardedBinding11.value }]),
2062
1924
  role: "option",
2063
1925
  "data-ui-choice-option": "",
2064
1926
  "aria-selected": "false",
2065
1927
  "data-multiple": checkedProps.value.multiple ? "" : void 0,
2066
- id: guardedBinding18.value,
2067
- "data-index": guardedBinding19.value
2068
- }, toDisplayString(guardedBinding20.value), 11, _hoisted_23)) : createCommentVNode("v-if", true),
2069
- message.value ? (openBlock(), createElementBlock("div", _hoisted_24, toDisplayString(guardedBinding21.value), 1)) : createCommentVNode("v-if", true),
1928
+ id: guardedBinding12.value,
1929
+ "data-index": createIndex.value
1930
+ }, toDisplayString(guardedBinding13.value), 11, _hoisted_23)) : createCommentVNode("v-if", true),
1931
+ message.value ? (openBlock(), createElementBlock("div", _hoisted_24, toDisplayString(message.value), 1)) : createCommentVNode("v-if", true),
2070
1932
  !checkedProps.value.loading && !rows.value[0] && !creatable.value && !lookupError.value ? (openBlock(), createElementBlock("div", _hoisted_25, [renderSlot(_ctx.$slots, "empty", {}, () => [_cache[3] || (_cache[3] = createTextVNode("No suggestions.", -1))], true)])) : createCommentVNode("v-if", true)
2071
1933
  ], 8, _hoisted_13), renderSlot(_ctx.$slots, "footer", {}, void 0, true)], 8, _hoisted_12),
2072
1934
  createElementVNode("div", {
2073
1935
  class: "message",
2074
- id: guardedBinding22.value,
1936
+ id: guardedBinding14.value,
2075
1937
  hidden: !validation.value.issues.length
2076
1938
  }, [(openBlock(true), createElementBlock(Fragment, null, renderList(validation.value.issues, (issue, indexLoop3) => {
2077
1939
  return openBlock(), createElementBlock("div", { key: indexLoop3 }, toDisplayString(issue.message), 1);
2078
1940
  }), 128))], 8, _hoisted_26),
2079
- createElementVNode("div", _hoisted_27, toDisplayString(guardedBinding23.value), 1),
1941
+ createElementVNode("div", _hoisted_27, toDisplayString(statusText.value), 1),
2080
1942
  createElementVNode("div", {
2081
1943
  class: "authored-options",
2082
1944
  hidden: "",
@@ -2090,6 +1952,6 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
2090
1952
  }]]);
2091
1953
  };
2092
1954
  }
2093
- }), [["__scopeId", "data-v-7a56e205"]]);
1955
+ }), [["__scopeId", "data-v-4ba65c2d"]]);
2094
1956
  //#endregion
2095
1957
  export { UiCombobox_default as t };