@threadlabs/looma 0.24.1 → 0.25.1

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 (498) hide show
  1. package/README.md +1 -1
  2. package/components/ui-affordance-scope/ui-affordance-scope.html +1 -1
  3. package/components/ui-affordance-scope/ui-affordance-scope.js +6 -1
  4. package/components/ui-avatar/ui-avatar.html +4 -4
  5. package/components/ui-avatar/ui-avatar.js +6 -1
  6. package/components/ui-avatar-group/ui-avatar-group.html +2 -2
  7. package/components/ui-avatar-group/ui-avatar-group.js +6 -1
  8. package/components/ui-badge/ui-badge.html +30 -30
  9. package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -1
  10. package/components/ui-button/ui-button.html +33 -33
  11. package/components/ui-button/ui-button.js +6 -1
  12. package/components/ui-callout/ui-callout.html +4 -4
  13. package/components/ui-card/ui-card.html +9 -9
  14. package/components/ui-checkbox/ui-checkbox.html +11 -11
  15. package/components/ui-checkbox/ui-checkbox.js +6 -1
  16. package/components/ui-cluster/ui-cluster.html +12 -12
  17. package/components/ui-combobox/ui-combobox.html +15 -17
  18. package/components/ui-combobox/ui-combobox.js +13 -15
  19. package/components/ui-container/ui-container.html +5 -5
  20. package/components/ui-context-menu/ui-context-menu.js +6 -1
  21. package/components/ui-cover/ui-cover.html +1 -1
  22. package/components/ui-description-list/ui-description-list.html +10 -10
  23. package/components/ui-dialog/ui-dialog.html +4 -4
  24. package/components/ui-dialog/ui-dialog.js +6 -1
  25. package/components/ui-disclosure/ui-disclosure.html +13 -13
  26. package/components/ui-disclosure/ui-disclosure.js +6 -1
  27. package/components/ui-editable/ui-editable.html +1 -1
  28. package/components/ui-editable/ui-editable.js +6 -1
  29. package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js +6 -1
  30. package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +6 -1
  31. package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +6 -1
  32. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.js +6 -1
  33. package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +6 -1
  34. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +6 -1
  35. package/components/ui-editor-toolbar/ui-editor-toolbar.html +4 -4
  36. package/components/ui-editor-toolbar/ui-editor-toolbar.js +6 -1
  37. package/components/ui-floating-action-button/ui-floating-action-button.html +1 -1
  38. package/components/ui-form-field/ui-form-field.html +1 -1
  39. package/components/ui-form-field/ui-form-field.js +6 -1
  40. package/components/ui-grid/ui-grid.html +7 -7
  41. package/components/ui-icon-button/ui-icon-button.html +26 -26
  42. package/components/ui-icon-button/ui-icon-button.js +6 -1
  43. package/components/ui-image/ui-image.html +11 -11
  44. package/components/ui-image/ui-image.js +6 -1
  45. package/components/ui-input/ui-input.html +9 -7
  46. package/components/ui-input/ui-input.js +6 -1
  47. package/components/ui-input-group/ui-input-group.html +37 -8
  48. package/components/ui-input-group/ui-input-group.js +8 -3
  49. package/components/ui-list/ui-list.html +6 -6
  50. package/components/ui-list-item/ui-list-item.html +8 -8
  51. package/components/ui-listbox/ui-listbox.js +6 -1
  52. package/components/ui-menu/ui-menu.html +3 -3
  53. package/components/ui-menu/ui-menu.js +6 -1
  54. package/components/ui-menu-item/ui-menu-item.html +3 -3
  55. package/components/ui-menu-item/ui-menu-item.js +6 -1
  56. package/components/ui-meter/ui-meter.html +7 -7
  57. package/components/ui-nav-item/ui-nav-item.html +6 -6
  58. package/components/ui-page-header/ui-page-header.html +2 -2
  59. package/components/ui-popover/ui-popover.html +3 -3
  60. package/components/ui-popover/ui-popover.js +6 -1
  61. package/components/ui-radio/ui-radio.html +10 -10
  62. package/components/ui-radio/ui-radio.js +6 -1
  63. package/components/ui-radio-group/ui-radio-group.html +2 -2
  64. package/components/ui-radio-group/ui-radio-group.js +6 -1
  65. package/components/ui-reel/ui-reel.html +11 -11
  66. package/components/ui-scroll-area/ui-scroll-area.html +4 -4
  67. package/components/ui-scroll-area/ui-scroll-area.js +6 -1
  68. package/components/ui-search-result-row/ui-search-result-row.html +5 -5
  69. package/components/ui-search-shell/ui-search-shell.js +6 -1
  70. package/components/ui-section/ui-section.html +4 -4
  71. package/components/ui-select/ui-select.html +3 -3
  72. package/components/ui-select/ui-select.js +6 -1
  73. package/components/ui-separator/ui-separator.html +4 -4
  74. package/components/ui-sidebar/ui-sidebar.html +6 -6
  75. package/components/ui-sidebar/ui-sidebar.js +6 -1
  76. package/components/ui-spinner/ui-spinner.html +1 -1
  77. package/components/ui-stack/ui-stack.html +12 -12
  78. package/components/ui-status-message/ui-status-message.html +4 -4
  79. package/components/ui-switch/ui-switch.html +11 -11
  80. package/components/ui-switch/ui-switch.js +6 -1
  81. package/components/ui-switcher/ui-switcher.html +11 -11
  82. package/components/ui-switcher/ui-switcher.js +6 -1
  83. package/components/ui-table/ui-table.html +2 -2
  84. package/components/ui-table/ui-table.js +6 -1
  85. package/components/ui-tabs/ui-tabs.html +8 -8
  86. package/components/ui-tabs/ui-tabs.js +6 -1
  87. package/components/ui-text/ui-text.html +20 -20
  88. package/components/ui-textarea/ui-textarea.html +46 -18
  89. package/components/ui-textarea/ui-textarea.js +6 -1
  90. package/components/ui-toast/ui-toast.html +4 -4
  91. package/components/ui-toast/ui-toast.js +6 -1
  92. package/components/ui-toast-region/ui-toast-region.html +16 -11
  93. package/components/ui-toast-region/ui-toast-region.js +12 -9
  94. package/components/ui-tooltip/ui-tooltip.html +1 -1
  95. package/components/ui-tooltip/ui-tooltip.js +6 -1
  96. package/components/ui-tree/ui-tree.html +2 -2
  97. package/components/ui-tree/ui-tree.js +6 -1
  98. package/components/ui-tree-item/ui-tree-item.html +4 -4
  99. package/components/ui-tree-item/ui-tree-item.js +6 -1
  100. package/dist/index.js +10 -4
  101. package/package.json +3 -3
  102. package/styles/ui-action-bar.css +1 -1
  103. package/styles/ui-affordance-scope.css +1 -1
  104. package/styles/ui-avatar-group.css +1 -1
  105. package/styles/ui-avatar.css +1 -1
  106. package/styles/ui-badge.css +1 -1
  107. package/styles/ui-breadcrumb-item.css +1 -1
  108. package/styles/ui-breadcrumbs.css +1 -1
  109. package/styles/ui-button.css +1 -1
  110. package/styles/ui-callout.css +1 -1
  111. package/styles/ui-card.css +1 -1
  112. package/styles/ui-checkbox.css +1 -1
  113. package/styles/ui-cluster.css +1 -1
  114. package/styles/ui-combobox.css +1 -1
  115. package/styles/ui-container.css +1 -1
  116. package/styles/ui-context-menu.css +1 -1
  117. package/styles/ui-cover.css +1 -1
  118. package/styles/ui-description-item.css +1 -1
  119. package/styles/ui-description-list.css +1 -1
  120. package/styles/ui-dialog.css +1 -1
  121. package/styles/ui-disclosure.css +2 -2
  122. package/styles/ui-editable.css +1 -1
  123. package/styles/ui-editor-insert-table-grid.css +1 -1
  124. package/styles/ui-editor-mention-menu-item.css +1 -1
  125. package/styles/ui-editor-mention-menu.css +1 -1
  126. package/styles/ui-editor-slash-menu-group.css +1 -1
  127. package/styles/ui-editor-slash-menu-item.css +1 -1
  128. package/styles/ui-editor-slash-menu.css +1 -1
  129. package/styles/ui-editor-table-context-menu.css +1 -1
  130. package/styles/ui-editor-table-overlay.css +1 -1
  131. package/styles/ui-editor-table-toolbar.css +1 -1
  132. package/styles/ui-editor-toolbar.css +1 -1
  133. package/styles/ui-floating-action-button.css +1 -1
  134. package/styles/ui-form-field.css +1 -1
  135. package/styles/ui-grid.css +1 -1
  136. package/styles/ui-icon-button.css +1 -1
  137. package/styles/ui-icon.css +1 -1
  138. package/styles/ui-image.css +1 -1
  139. package/styles/ui-input-group.css +36 -6
  140. package/styles/ui-input.css +1 -1
  141. package/styles/ui-list-item.css +1 -1
  142. package/styles/ui-list.css +1 -1
  143. package/styles/ui-listbox.css +1 -1
  144. package/styles/ui-menu-group.css +1 -1
  145. package/styles/ui-menu-item.css +1 -1
  146. package/styles/ui-menu.css +1 -1
  147. package/styles/ui-meter.css +1 -1
  148. package/styles/ui-nav-item.css +1 -1
  149. package/styles/ui-page-header.css +1 -1
  150. package/styles/ui-popover.css +1 -1
  151. package/styles/ui-radio-group.css +1 -1
  152. package/styles/ui-radio.css +1 -1
  153. package/styles/ui-reel.css +1 -1
  154. package/styles/ui-scroll-area.css +1 -1
  155. package/styles/ui-search-result-row.css +1 -1
  156. package/styles/ui-search-shell.css +1 -1
  157. package/styles/ui-section.css +1 -1
  158. package/styles/ui-select.css +1 -1
  159. package/styles/ui-separator.css +1 -1
  160. package/styles/ui-sidebar.css +2 -2
  161. package/styles/ui-spinner.css +1 -1
  162. package/styles/ui-stack.css +1 -1
  163. package/styles/ui-status-message.css +1 -1
  164. package/styles/ui-switch.css +1 -1
  165. package/styles/ui-switcher.css +1 -1
  166. package/styles/ui-table.css +1 -1
  167. package/styles/ui-tabs.css +1 -1
  168. package/styles/ui-text.css +1 -1
  169. package/styles/ui-textarea.css +43 -15
  170. package/styles/ui-toast-region.css +1 -1
  171. package/styles/ui-toast.css +1 -1
  172. package/styles/ui-tooltip.css +1 -1
  173. package/styles/ui-top-bar.css +1 -1
  174. package/styles/ui-tree-item.css +1 -1
  175. package/styles/ui-tree.css +1 -1
  176. package/vanilla/UiActionBar.d.ts +1 -1
  177. package/vanilla/UiActionBar.js +1 -1
  178. package/vanilla/UiAffordanceScope.d.ts +1 -1
  179. package/vanilla/UiAffordanceScope.js +1 -1
  180. package/vanilla/UiAvatar.d.ts +1 -1
  181. package/vanilla/UiAvatar.js +1 -1
  182. package/vanilla/UiAvatarGroup.d.ts +1 -1
  183. package/vanilla/UiAvatarGroup.js +1 -1
  184. package/vanilla/UiBadge.d.ts +1 -1
  185. package/vanilla/UiBadge.js +1 -1
  186. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  187. package/vanilla/UiBreadcrumbItem.js +1 -1
  188. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  189. package/vanilla/UiBreadcrumbs.js +1 -1
  190. package/vanilla/UiButton.d.ts +1 -1
  191. package/vanilla/UiButton.js +1 -1
  192. package/vanilla/UiCallout.d.ts +1 -1
  193. package/vanilla/UiCallout.js +1 -1
  194. package/vanilla/UiCard.d.ts +1 -1
  195. package/vanilla/UiCard.js +1 -1
  196. package/vanilla/UiCheckbox.d.ts +1 -1
  197. package/vanilla/UiCheckbox.js +1 -1
  198. package/vanilla/UiCluster.d.ts +1 -1
  199. package/vanilla/UiCluster.js +1 -1
  200. package/vanilla/UiCombobox.d.ts +1 -3
  201. package/vanilla/UiCombobox.js +2 -2
  202. package/vanilla/UiContainer.d.ts +1 -1
  203. package/vanilla/UiContainer.js +1 -1
  204. package/vanilla/UiContextMenu.d.ts +1 -1
  205. package/vanilla/UiContextMenu.js +1 -1
  206. package/vanilla/UiCover.d.ts +1 -1
  207. package/vanilla/UiCover.js +1 -1
  208. package/vanilla/UiDescriptionItem.d.ts +1 -1
  209. package/vanilla/UiDescriptionItem.js +1 -1
  210. package/vanilla/UiDescriptionList.d.ts +1 -1
  211. package/vanilla/UiDescriptionList.js +1 -1
  212. package/vanilla/UiDialog.d.ts +1 -1
  213. package/vanilla/UiDialog.js +1 -1
  214. package/vanilla/UiDisclosure.d.ts +1 -1
  215. package/vanilla/UiDisclosure.js +1 -1
  216. package/vanilla/UiEditable.d.ts +1 -1
  217. package/vanilla/UiEditable.js +1 -1
  218. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  219. package/vanilla/UiEditorInsertTableGrid.js +1 -1
  220. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  221. package/vanilla/UiEditorMentionMenu.js +1 -1
  222. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  223. package/vanilla/UiEditorMentionMenuItem.js +1 -1
  224. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  225. package/vanilla/UiEditorSlashMenu.js +1 -1
  226. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  227. package/vanilla/UiEditorSlashMenuGroup.js +1 -1
  228. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  229. package/vanilla/UiEditorSlashMenuItem.js +1 -1
  230. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  231. package/vanilla/UiEditorTableContextMenu.js +1 -1
  232. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  233. package/vanilla/UiEditorTableOverlay.js +1 -1
  234. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  235. package/vanilla/UiEditorTableToolbar.js +1 -1
  236. package/vanilla/UiEditorToolbar.d.ts +1 -1
  237. package/vanilla/UiEditorToolbar.js +1 -1
  238. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  239. package/vanilla/UiFloatingActionButton.js +1 -1
  240. package/vanilla/UiFormField.d.ts +1 -1
  241. package/vanilla/UiFormField.js +1 -1
  242. package/vanilla/UiGrid.d.ts +1 -1
  243. package/vanilla/UiGrid.js +1 -1
  244. package/vanilla/UiIcon.d.ts +1 -1
  245. package/vanilla/UiIcon.js +1 -1
  246. package/vanilla/UiIconButton.d.ts +1 -1
  247. package/vanilla/UiIconButton.js +1 -1
  248. package/vanilla/UiImage.d.ts +1 -1
  249. package/vanilla/UiImage.js +1 -1
  250. package/vanilla/UiInput.d.ts +4 -4
  251. package/vanilla/UiInput.js +2 -2
  252. package/vanilla/UiInputGroup.d.ts +2 -1
  253. package/vanilla/UiInputGroup.js +2 -2
  254. package/vanilla/UiList.d.ts +1 -1
  255. package/vanilla/UiList.js +1 -1
  256. package/vanilla/UiListItem.d.ts +1 -1
  257. package/vanilla/UiListItem.js +1 -1
  258. package/vanilla/UiListbox.d.ts +1 -1
  259. package/vanilla/UiListbox.js +1 -1
  260. package/vanilla/UiMenu.d.ts +1 -1
  261. package/vanilla/UiMenu.js +1 -1
  262. package/vanilla/UiMenuGroup.d.ts +1 -1
  263. package/vanilla/UiMenuGroup.js +1 -1
  264. package/vanilla/UiMenuItem.d.ts +1 -1
  265. package/vanilla/UiMenuItem.js +1 -1
  266. package/vanilla/UiMeter.d.ts +1 -1
  267. package/vanilla/UiMeter.js +1 -1
  268. package/vanilla/UiNavItem.d.ts +1 -1
  269. package/vanilla/UiNavItem.js +1 -1
  270. package/vanilla/UiPageHeader.d.ts +1 -1
  271. package/vanilla/UiPageHeader.js +1 -1
  272. package/vanilla/UiPopover.d.ts +1 -1
  273. package/vanilla/UiPopover.js +1 -1
  274. package/vanilla/UiRadio.d.ts +1 -1
  275. package/vanilla/UiRadio.js +1 -1
  276. package/vanilla/UiRadioGroup.d.ts +1 -1
  277. package/vanilla/UiRadioGroup.js +1 -1
  278. package/vanilla/UiReel.d.ts +1 -1
  279. package/vanilla/UiReel.js +1 -1
  280. package/vanilla/UiScrollArea.d.ts +1 -1
  281. package/vanilla/UiScrollArea.js +1 -1
  282. package/vanilla/UiSearchResultRow.d.ts +1 -1
  283. package/vanilla/UiSearchResultRow.js +1 -1
  284. package/vanilla/UiSearchShell.d.ts +1 -1
  285. package/vanilla/UiSearchShell.js +1 -1
  286. package/vanilla/UiSection.d.ts +1 -1
  287. package/vanilla/UiSection.js +1 -1
  288. package/vanilla/UiSelect.d.ts +1 -1
  289. package/vanilla/UiSelect.js +1 -1
  290. package/vanilla/UiSeparator.d.ts +1 -1
  291. package/vanilla/UiSeparator.js +1 -1
  292. package/vanilla/UiSidebar.d.ts +1 -1
  293. package/vanilla/UiSidebar.js +1 -1
  294. package/vanilla/UiSpinner.d.ts +1 -1
  295. package/vanilla/UiSpinner.js +1 -1
  296. package/vanilla/UiStack.d.ts +1 -1
  297. package/vanilla/UiStack.js +1 -1
  298. package/vanilla/UiStatusMessage.d.ts +1 -1
  299. package/vanilla/UiStatusMessage.js +1 -1
  300. package/vanilla/UiSwitch.d.ts +1 -1
  301. package/vanilla/UiSwitch.js +1 -1
  302. package/vanilla/UiSwitcher.d.ts +1 -1
  303. package/vanilla/UiSwitcher.js +1 -1
  304. package/vanilla/UiTable.d.ts +1 -1
  305. package/vanilla/UiTable.js +1 -1
  306. package/vanilla/UiTabs.d.ts +1 -1
  307. package/vanilla/UiTabs.js +1 -1
  308. package/vanilla/UiText.d.ts +1 -1
  309. package/vanilla/UiText.js +1 -1
  310. package/vanilla/UiTextarea.d.ts +1 -1
  311. package/vanilla/UiTextarea.js +1 -1
  312. package/vanilla/UiToast.d.ts +1 -1
  313. package/vanilla/UiToast.js +1 -1
  314. package/vanilla/UiToastRegion.d.ts +2 -2
  315. package/vanilla/UiToastRegion.js +2 -2
  316. package/vanilla/UiTooltip.d.ts +1 -1
  317. package/vanilla/UiTooltip.js +1 -1
  318. package/vanilla/UiTopBar.d.ts +1 -1
  319. package/vanilla/UiTopBar.js +1 -1
  320. package/vanilla/UiTree.d.ts +1 -1
  321. package/vanilla/UiTree.js +1 -1
  322. package/vanilla/UiTreeItem.d.ts +1 -1
  323. package/vanilla/UiTreeItem.js +1 -1
  324. package/vue/UiActionBar.vue +1 -1
  325. package/vue/UiAffordanceScope.vue +8 -1
  326. package/vue/UiAvatar.d.ts +6 -9
  327. package/vue/UiAvatar.vue +71 -20
  328. package/vue/UiAvatarGroup.d.ts +7 -10
  329. package/vue/UiAvatarGroup.vue +45 -12
  330. package/vue/UiBadge.vue +1 -1
  331. package/vue/UiBreadcrumbItem.vue +1 -1
  332. package/vue/UiBreadcrumbs.vue +1 -1
  333. package/vue/UiButton.vue +1 -1
  334. package/vue/UiCallout.vue +1 -1
  335. package/vue/UiCard.vue +1 -1
  336. package/vue/UiCheckbox.d.ts +8 -11
  337. package/vue/UiCheckbox.vue +34 -11
  338. package/vue/UiCluster.vue +1 -1
  339. package/vue/UiCombobox.d.ts +60 -66
  340. package/vue/UiCombobox.vue +476 -124
  341. package/vue/UiContainer.vue +1 -1
  342. package/vue/UiContextMenu.vue +18 -9
  343. package/vue/UiCover.vue +1 -1
  344. package/vue/UiDescriptionItem.vue +1 -1
  345. package/vue/UiDescriptionList.vue +1 -1
  346. package/vue/UiDialog.d.ts +8 -11
  347. package/vue/UiDialog.vue +39 -12
  348. package/vue/UiDisclosure.d.ts +12 -15
  349. package/vue/UiDisclosure.vue +70 -24
  350. package/vue/UiEditable.d.ts +3 -3
  351. package/vue/UiEditable.vue +60 -21
  352. package/vue/UiEditorInsertTableGrid.d.ts +2 -2
  353. package/vue/UiEditorInsertTableGrid.vue +75 -14
  354. package/vue/UiEditorMentionMenu.d.ts +10 -13
  355. package/vue/UiEditorMentionMenu.vue +50 -7
  356. package/vue/UiEditorMentionMenuItem.vue +1 -1
  357. package/vue/UiEditorSlashMenu.d.ts +12 -15
  358. package/vue/UiEditorSlashMenu.vue +48 -7
  359. package/vue/UiEditorSlashMenuGroup.vue +1 -1
  360. package/vue/UiEditorSlashMenuItem.vue +1 -1
  361. package/vue/UiEditorTableContextMenu.vue +73 -4
  362. package/vue/UiEditorTableOverlay.d.ts +2 -2
  363. package/vue/UiEditorTableOverlay.vue +202 -38
  364. package/vue/UiEditorTableToolbar.d.ts +2 -2
  365. package/vue/UiEditorTableToolbar.vue +128 -7
  366. package/vue/UiEditorToolbar.vue +3 -3
  367. package/vue/UiFloatingActionButton.vue +1 -1
  368. package/vue/UiFormField.vue +1 -1
  369. package/vue/UiGrid.vue +1 -1
  370. package/vue/UiIcon.vue +1 -1
  371. package/vue/UiIconButton.vue +1 -1
  372. package/vue/UiImage.vue +7 -6
  373. package/vue/UiInput.d.ts +5 -5
  374. package/vue/UiInput.vue +15 -3
  375. package/vue/UiInputGroup.d.ts +9 -0
  376. package/vue/UiInputGroup.vue +57 -8
  377. package/vue/UiList.vue +1 -1
  378. package/vue/UiListItem.vue +1 -1
  379. package/vue/UiListbox.d.ts +6 -9
  380. package/vue/UiListbox.vue +70 -19
  381. package/vue/UiMenu.vue +20 -10
  382. package/vue/UiMenuGroup.vue +1 -1
  383. package/vue/UiMenuItem.d.ts +13 -16
  384. package/vue/UiMenuItem.vue +30 -7
  385. package/vue/UiMeter.vue +1 -1
  386. package/vue/UiNavItem.vue +1 -1
  387. package/vue/UiPageHeader.vue +1 -1
  388. package/vue/UiPopover.vue +12 -4
  389. package/vue/UiRadio.d.ts +8 -11
  390. package/vue/UiRadio.vue +34 -11
  391. package/vue/UiRadioGroup.vue +16 -7
  392. package/vue/UiReel.vue +1 -1
  393. package/vue/UiScrollArea.vue +3 -3
  394. package/vue/UiSearchResultRow.vue +1 -1
  395. package/vue/UiSearchShell.vue +14 -6
  396. package/vue/UiSection.vue +1 -1
  397. package/vue/UiSelect.vue +3 -2
  398. package/vue/UiSeparator.vue +1 -1
  399. package/vue/UiSidebar.d.ts +7 -10
  400. package/vue/UiSidebar.vue +44 -12
  401. package/vue/UiSpinner.vue +1 -1
  402. package/vue/UiStack.vue +1 -1
  403. package/vue/UiStatusMessage.vue +1 -1
  404. package/vue/UiSwitch.d.ts +8 -11
  405. package/vue/UiSwitch.vue +34 -11
  406. package/vue/UiSwitcher.vue +8 -1
  407. package/vue/UiTable.vue +1 -1
  408. package/vue/UiTabs.vue +30 -8
  409. package/vue/UiText.vue +1 -1
  410. package/vue/UiTextarea.vue +78 -17
  411. package/vue/UiToast.vue +7 -6
  412. package/vue/UiToastRegion.d.ts +15 -3
  413. package/vue/UiToastRegion.vue +90 -45
  414. package/vue/UiTooltip.d.ts +9 -12
  415. package/vue/UiTooltip.vue +30 -7
  416. package/vue/UiTopBar.vue +1 -1
  417. package/vue/UiTree.vue +17 -13
  418. package/vue/UiTreeItem.d.ts +15 -18
  419. package/vue/UiTreeItem.vue +79 -30
  420. package/vue/chunks/UiActionBar.js +1 -1
  421. package/vue/chunks/UiAffordanceScope.js +6 -2
  422. package/vue/chunks/UiAvatar.js +37 -10
  423. package/vue/chunks/UiAvatarGroup.js +26 -7
  424. package/vue/chunks/UiBadge.js +2 -2
  425. package/vue/chunks/UiBreadcrumbItem.js +2 -2
  426. package/vue/chunks/UiBreadcrumbs.js +2 -2
  427. package/vue/chunks/UiButton.js +2 -2
  428. package/vue/chunks/UiCallout.js +2 -2
  429. package/vue/chunks/UiCard.js +2 -2
  430. package/vue/chunks/UiCheckbox.js +25 -12
  431. package/vue/chunks/UiCluster.js +2 -2
  432. package/vue/chunks/UiCombobox.js +628 -117
  433. package/vue/chunks/UiContainer.js +2 -2
  434. package/vue/chunks/UiContextMenu.js +14 -10
  435. package/vue/chunks/UiCover.js +2 -2
  436. package/vue/chunks/UiDescriptionItem.js +2 -2
  437. package/vue/chunks/UiDescriptionList.js +2 -2
  438. package/vue/chunks/UiDialog.js +29 -11
  439. package/vue/chunks/UiDisclosure.js +44 -14
  440. package/vue/chunks/UiEditable.js +33 -9
  441. package/vue/chunks/UiEditorInsertTableGrid.js +98 -14
  442. package/vue/chunks/UiEditorMentionMenu.js +76 -9
  443. package/vue/chunks/UiEditorMentionMenuItem.js +2 -2
  444. package/vue/chunks/UiEditorSlashMenu.js +70 -11
  445. package/vue/chunks/UiEditorSlashMenuGroup.js +2 -2
  446. package/vue/chunks/UiEditorSlashMenuItem.js +2 -2
  447. package/vue/chunks/UiEditorTableContextMenu.js +120 -2
  448. package/vue/chunks/UiEditorTableOverlay.js +306 -12
  449. package/vue/chunks/UiEditorTableToolbar.js +215 -3
  450. package/vue/chunks/UiEditorToolbar.js +8 -8
  451. package/vue/chunks/UiFloatingActionButton.js +2 -2
  452. package/vue/chunks/UiFormField.js +2 -2
  453. package/vue/chunks/UiGrid.js +2 -2
  454. package/vue/chunks/UiIcon.js +2 -2
  455. package/vue/chunks/UiIconButton.js +2 -2
  456. package/vue/chunks/UiImage.js +12 -12
  457. package/vue/chunks/UiInput.js +34 -4
  458. package/vue/chunks/UiInputGroup.js +30 -4
  459. package/vue/chunks/UiList.js +2 -2
  460. package/vue/chunks/UiListItem.js +2 -2
  461. package/vue/chunks/UiListbox.js +96 -12
  462. package/vue/chunks/UiMenu.js +6 -2
  463. package/vue/chunks/UiMenuGroup.js +2 -2
  464. package/vue/chunks/UiMenuItem.js +15 -3
  465. package/vue/chunks/UiMeter.js +2 -2
  466. package/vue/chunks/UiNavItem.js +2 -2
  467. package/vue/chunks/UiPageHeader.js +2 -2
  468. package/vue/chunks/UiPopover.js +6 -2
  469. package/vue/chunks/UiRadio.js +25 -12
  470. package/vue/chunks/UiRadioGroup.js +6 -2
  471. package/vue/chunks/UiReel.js +2 -2
  472. package/vue/chunks/UiScrollArea.js +8 -8
  473. package/vue/chunks/UiSearchResultRow.js +2 -2
  474. package/vue/chunks/UiSearchShell.js +9 -4
  475. package/vue/chunks/UiSection.js +2 -2
  476. package/vue/chunks/UiSelect.js +5 -3
  477. package/vue/chunks/UiSeparator.js +2 -2
  478. package/vue/chunks/UiSidebar.js +28 -5
  479. package/vue/chunks/UiSpinner.js +2 -2
  480. package/vue/chunks/UiStack.js +2 -2
  481. package/vue/chunks/UiStatusMessage.js +2 -2
  482. package/vue/chunks/UiSwitch.js +25 -12
  483. package/vue/chunks/UiSwitcher.js +6 -2
  484. package/vue/chunks/UiTable.js +2 -2
  485. package/vue/chunks/UiTabs.js +39 -10
  486. package/vue/chunks/UiText.js +2 -2
  487. package/vue/chunks/UiTextarea.js +3 -2
  488. package/vue/chunks/UiToast.js +8 -8
  489. package/vue/chunks/UiToastRegion.js +86 -20
  490. package/vue/chunks/UiTooltip.js +15 -3
  491. package/vue/chunks/UiTopBar.js +1 -1
  492. package/vue/chunks/UiTree.js +2 -2
  493. package/vue/chunks/UiTreeItem.js +84 -51
  494. package/vue/chunks/control.js +9 -2
  495. package/vue/chunks/host.js +203 -29
  496. package/vue/chunks/props.js +43 -7
  497. package/vue/components.css +1447 -1360
  498. package/vue/host.ts +286 -42
@@ -1,4 +1,4 @@
1
- export default function controller(host) {
1
+ function connect(host) {
2
2
  const area = host.element;
3
3
  let frame = 0;
4
4
 
@@ -30,3 +30,8 @@ export default function controller(host) {
30
30
  if (frame) cancelAnimationFrame(frame);
31
31
  };
32
32
  }
33
+
34
+ /** Keep DOM setup and its cleanup tied to each connection, including reconnects. */
35
+ export default function controller(host) {
36
+ host.on("connect", () => connect(host));
37
+ }
@@ -71,7 +71,7 @@
71
71
  transition: background-color var(--ui-motion-fast) var(--ui-motion-ease);
72
72
  }
73
73
 
74
- :host-state([density="compact"]) {
74
+ :host([density="compact"]) {
75
75
  min-block-size: var(--ui-search-result-row-min-height, 3.125rem);
76
76
  padding-block: var(--ui-search-result-row-padding-block, var(--ui-space-1));
77
77
  padding-inline: var(--ui-search-result-row-padding-inline, var(--ui-space-2));
@@ -81,12 +81,12 @@
81
81
  }
82
82
 
83
83
  /* Slot wrappers own their line boxes even when an app makes buttons inherit body typography. */
84
- :host-state([density="compact"]) .title {
84
+ :host([density="compact"]) .title {
85
85
  font-size: var(--ui-font-size-sm);
86
86
  line-height: var(--ui-line-height);
87
87
  }
88
88
 
89
- :host-state([density="compact"]) .meta {
89
+ :host([density="compact"]) .meta {
90
90
  font-size: var(--ui-font-size-xs);
91
91
  line-height: var(--ui-line-height);
92
92
  }
@@ -95,7 +95,7 @@
95
95
  background: var(--ui-search-result-row-hover-surface, color-mix(in srgb, var(--ui-surface) 85%, black 3%));
96
96
  }
97
97
 
98
- :host-state([selected]) {
98
+ :host([selected]) {
99
99
  background: var(
100
100
  --ui-search-result-row-selected-bg,
101
101
  var(--ui-selection-surface)
@@ -151,7 +151,7 @@
151
151
  }
152
152
 
153
153
  @media (forced-colors: active) {
154
- :host-state([selected]):not(:focus-visible):not(:disabled) {
154
+ :host([selected]):not(:focus-visible):not(:disabled) {
155
155
  outline: var(--ui-border-width) solid Highlight;
156
156
  outline-offset: calc(-1 * var(--ui-border-width));
157
157
  }
@@ -2,7 +2,7 @@ import { closeOverlay, openOverlay } from "../shared/overlay.js";
2
2
  import { trackTrigger } from "../shared/trigger.js";
3
3
 
4
4
  /** Owns native dialog state while leaving query and result state to the application. */
5
- export default function controller(host) {
5
+ function connect(host) {
6
6
  const dialog = host.refs.dialog;
7
7
  const document = dialog.ownerDocument;
8
8
  const overlayId = `ui-search-shell-${Math.random().toString(36).slice(2, 11)}`;
@@ -95,3 +95,8 @@ export default function controller(host) {
95
95
  closeOverlay(document, overlayId);
96
96
  };
97
97
  }
98
+
99
+ /** Keep DOM setup and its cleanup tied to each connection, including reconnects. */
100
+ export default function controller(host) {
101
+ host.on("connect", () => connect(host));
102
+ }
@@ -28,19 +28,19 @@
28
28
  min-inline-size: 0;
29
29
  }
30
30
 
31
- :host-state([variant="card"]) {
31
+ :host([variant="card"]) {
32
32
  padding: var(--ui-space-5);
33
33
  border: var(--ui-border-width) solid var(--ui-border-strong);
34
34
  border-radius: var(--ui-radius-lg);
35
35
  background: var(--ui-surface-raised);
36
36
  }
37
37
 
38
- :host-state([variant="divided"]) {
38
+ :host([variant="divided"]) {
39
39
  padding-block-start: var(--ui-space-6);
40
40
  border-block-start: var(--ui-border-width) solid var(--ui-border-divider);
41
41
  }
42
42
 
43
- :host-state([variant="card"][tone="danger"]) {
43
+ :host([variant="card"][tone="danger"]) {
44
44
  border-color: color-mix(in srgb, var(--ui-danger) 45%, var(--ui-border-default));
45
45
  border-inline-start: var(--ui-accent-line-width) solid var(--ui-danger);
46
46
  background: var(--ui-danger-soft);
@@ -70,7 +70,7 @@
70
70
  line-height: var(--ui-line-height-tight);
71
71
  }
72
72
 
73
- :host-state([tone="danger"]) .heading {
73
+ :host([tone="danger"]) .heading {
74
74
  color: var(--ui-danger);
75
75
  }
76
76
 
@@ -127,7 +127,7 @@
127
127
  cursor: not-allowed;
128
128
  }
129
129
 
130
- :host-state([size="sm"]) {
130
+ :host([size="sm"]) {
131
131
  min-block-size: var(--ui-control-size-sm);
132
132
  padding: var(--ui-space-1) var(--ui-space-2);
133
133
  padding-inline-end: calc(var(--ui-space-2) + var(--ui-icon-size-sm) + var(--ui-space-1));
@@ -136,7 +136,7 @@
136
136
  font-size: var(--ui-font-size-sm);
137
137
  }
138
138
 
139
- :host-state([size="lg"]) {
139
+ :host([size="lg"]) {
140
140
  min-block-size: var(--ui-control-size-lg);
141
141
  padding: var(--ui-space-3) var(--ui-space-4);
142
142
  padding-inline-end: calc(var(--ui-space-4) + 1.5rem);
@@ -147,7 +147,7 @@
147
147
  /* Under touch a small field is still a touch-sized target, as a small button is, and keeps
148
148
  body-size text: below 16px, iOS zooms the page into the focused field. */
149
149
  @media (pointer: coarse) {
150
- :host-state([size="sm"]) {
150
+ :host([size="sm"]) {
151
151
  min-block-size: var(--ui-control-min-block-size);
152
152
  font-size: inherit;
153
153
  }
@@ -1,7 +1,7 @@
1
1
  // A controlled value can arrive before its projected <option> elements, so it is applied again
2
2
  // whenever the options change. The value's option is also marked the native default, so a form
3
3
  // reset returns to it rather than to the first option.
4
- export default function controller(host) {
4
+ function connect(host) {
5
5
  const select = host.element;
6
6
  const apply = () => {
7
7
  const value = host.props.value.value;
@@ -17,3 +17,8 @@ export default function controller(host) {
17
17
  observer.disconnect();
18
18
  };
19
19
  }
20
+
21
+ /** Keep DOM setup and its cleanup tied to each connection, including reconnects. */
22
+ export default function controller(host) {
23
+ host.on("connect", () => connect(host));
24
+ }
@@ -24,7 +24,7 @@
24
24
  border-block-start: var(--ui-border-width) solid var(--ui-separator-color, var(--_separator-color, var(--ui-border-divider)));
25
25
  }
26
26
 
27
- :host-state([emphasis="strong"]) {
27
+ :host([emphasis="strong"]) {
28
28
  --_separator-color: var(--ui-border-strong);
29
29
  }
30
30
 
@@ -34,17 +34,17 @@
34
34
  border-inline-start: var(--ui-border-width) solid var(--ui-separator-color, var(--_separator-color, var(--ui-border-divider)));
35
35
  }
36
36
 
37
- :host-state([selectable]) {
37
+ :host([selectable]) {
38
38
  min-block-size: var(--ui-control-size-sm);
39
39
  border: 0;
40
40
  background: linear-gradient(var(--ui-separator-color, var(--ui-border-divider)), var(--ui-separator-color, var(--ui-border-divider))) center / 100%
41
41
  var(--ui-border-width) no-repeat;
42
42
  cursor: pointer;
43
43
  }
44
- :host-state([selectable]):hover {
44
+ :host([selectable]):hover {
45
45
  background-color: var(--ui-surface-hover);
46
46
  }
47
- :host-state([selected]) {
47
+ :host([selected]) {
48
48
  outline: var(--ui-focus-width) solid var(--ui-focus-ring);
49
49
  outline-offset: var(--ui-focus-width);
50
50
  border-radius: var(--ui-radius-sm);
@@ -79,7 +79,7 @@
79
79
  transition: inline-size var(--ui-motion-layout) var(--ui-motion-layout-ease), visibility var(--ui-motion-layout);
80
80
  }
81
81
 
82
- :host-state([side="end"]) {
82
+ :host([side="end"]) {
83
83
  border-inline-end: 0;
84
84
  border-inline-start: var(--ui-border-width) solid var(--ui-sidebar-border, var(--ui-border-divider));
85
85
  }
@@ -126,7 +126,7 @@
126
126
  :host-state([internalCollapsed]):not([popover]) .content {
127
127
  transform: translateX(-100%);
128
128
  }
129
- :host-state([side="end"][internalCollapsed]):not([popover]) .content {
129
+ :host([side="end"]):host-state([internalCollapsed]):not([popover]) .content {
130
130
  transform: translateX(100%);
131
131
  }
132
132
 
@@ -148,7 +148,7 @@
148
148
  display: none;
149
149
  }
150
150
 
151
- :host-state([side="end"]) .resizer {
151
+ :host([side="end"]) .resizer {
152
152
  inset-inline-end: auto;
153
153
  inset-inline-start: 0;
154
154
  transform: translateX(-50%);
@@ -217,12 +217,12 @@
217
217
  transform: translateX(-100%);
218
218
  }
219
219
 
220
- :host-state([side="end"])[popover] {
220
+ :host([side="end"])[popover] {
221
221
  inset-inline-start: auto;
222
222
  inset-inline-end: 0;
223
223
  }
224
224
 
225
- :host-state([side="end"])[popover]:not(:popover-open) {
225
+ :host([side="end"])[popover]:not(:popover-open) {
226
226
  transform: translateX(100%);
227
227
  }
228
228
 
@@ -230,7 +230,7 @@
230
230
  :host[popover]:popover-open {
231
231
  transform: translateX(-100%);
232
232
  }
233
- :host-state([side="end"])[popover]:popover-open {
233
+ :host([side="end"])[popover]:popover-open {
234
234
  transform: translateX(100%);
235
235
  }
236
236
  }
@@ -12,7 +12,7 @@ function positive(value, fallback) {
12
12
  * off-canvas drawer (a popover). A button toggles it with the platform's invoker commands:
13
13
  * `<button commandfor="nav" command="--toggle">`.
14
14
  */
15
- export default function controller(host) {
15
+ function connect(host) {
16
16
  const element = host.element;
17
17
  const document = element.ownerDocument;
18
18
  const view = document.defaultView;
@@ -188,3 +188,8 @@ export default function controller(host) {
188
188
  document.removeEventListener("click", onDocumentClick);
189
189
  };
190
190
  }
191
+
192
+ /** Keep DOM setup and its cleanup tied to each connection, including reconnects. */
193
+ export default function controller(host) {
194
+ host.on("connect", () => connect(host));
195
+ }
@@ -32,7 +32,7 @@
32
32
  line-height: 1;
33
33
  }
34
34
 
35
- :host-state([size="sm"]) {
35
+ :host([size="sm"]) {
36
36
  font-size: var(--ui-font-size-md);
37
37
  }
38
38
 
@@ -29,40 +29,40 @@
29
29
  margin: 0;
30
30
  }
31
31
 
32
- :host-state([gap="none"]) {
32
+ :host([gap="none"]) {
33
33
  --_layout-gap: 0px;
34
34
  }
35
- :host-state([gap="xs"]) {
35
+ :host([gap="xs"]) {
36
36
  --_layout-gap: var(--ui-space-2);
37
37
  }
38
- :host-state([gap="s"]) {
38
+ :host([gap="s"]) {
39
39
  --_layout-gap: var(--ui-space-3);
40
40
  }
41
- :host-state([gap="m"]) {
41
+ :host([gap="m"]) {
42
42
  --_layout-gap: var(--ui-space-4);
43
43
  }
44
- :host-state([gap="l"]) {
44
+ :host([gap="l"]) {
45
45
  --_layout-gap: var(--ui-space-5);
46
46
  }
47
- :host-state([gap="xl"]) {
47
+ :host([gap="xl"]) {
48
48
  --_layout-gap: var(--ui-space-6);
49
49
  }
50
- :host-state([align="start"]) {
50
+ :host([align="start"]) {
51
51
  align-items: flex-start;
52
52
  }
53
- :host-state([align="center"]) {
53
+ :host([align="center"]) {
54
54
  align-items: center;
55
55
  }
56
- :host-state([align="end"]) {
56
+ :host([align="end"]) {
57
57
  align-items: flex-end;
58
58
  }
59
- :host-state([justify="center"]) {
59
+ :host([justify="center"]) {
60
60
  justify-content: center;
61
61
  }
62
- :host-state([justify="end"]) {
62
+ :host([justify="end"]) {
63
63
  justify-content: flex-end;
64
64
  }
65
- :host-state([justify="between"]) {
65
+ :host([justify="between"]) {
66
66
  justify-content: space-between;
67
67
  }
68
68
 
@@ -30,17 +30,17 @@
30
30
  line-height: var(--ui-line-height);
31
31
  }
32
32
 
33
- :host-state([kind="error"]) {
33
+ :host([kind="error"]) {
34
34
  color: var(--ui-danger);
35
35
  }
36
36
 
37
- :host-state([layout="panel"]) {
37
+ :host([layout="panel"]) {
38
38
  padding: var(--ui-space-6);
39
39
  border: var(--ui-border-width) dashed var(--ui-border-strong);
40
40
  border-radius: var(--ui-radius-lg);
41
41
  }
42
42
 
43
- :host-state([layout="fill"]) {
43
+ :host([layout="fill"]) {
44
44
  flex: 1;
45
45
  flex-direction: column;
46
46
  justify-content: center;
@@ -56,7 +56,7 @@
56
56
  min-inline-size: 0;
57
57
  }
58
58
 
59
- :host-state([layout="fill"]) .copy {
59
+ :host([layout="fill"]) .copy {
60
60
  flex: none;
61
61
  align-items: center;
62
62
  }
@@ -132,21 +132,21 @@
132
132
  outline-offset: var(--ui-focus-width);
133
133
  }
134
134
 
135
- :host-state([disabled]) {
135
+ :host([disabled]) {
136
136
  color: var(--ui-disabled-text);
137
137
  cursor: not-allowed;
138
138
  }
139
- :host-state([disabled]) .description {
139
+ :host([disabled]) .description {
140
140
  color: var(--ui-disabled-text);
141
141
  }
142
- :host-state([disabled]) input {
142
+ :host([disabled]) input {
143
143
  border-color: var(--ui-disabled-border);
144
144
  background-color: var(--ui-disabled-surface);
145
145
  box-shadow: none;
146
146
  cursor: not-allowed;
147
147
  }
148
148
 
149
- :host-state([disabled]) input::after {
149
+ :host([disabled]) input::after {
150
150
  background-color: var(--ui-disabled-text);
151
151
  box-shadow: none;
152
152
  }
@@ -160,31 +160,31 @@
160
160
  /* A sized switch keeps its track and aligns instead: the label takes that size's field type size,
161
161
  and the first line centres in that control height, so the label shares a row's baseline.
162
162
  Multi-line labels and descriptions still grow downward from that first line. */
163
- :host-state([size="sm"]) {
163
+ :host([size="sm"]) {
164
164
  --_font: var(--ui-font-size-sm);
165
165
  --_row: var(--ui-control-size-sm);
166
166
  }
167
167
 
168
- :host-state([size="lg"]) {
168
+ :host([size="lg"]) {
169
169
  --_font: var(--ui-font-size-md);
170
170
  --_row: var(--ui-control-size-lg);
171
171
  }
172
172
 
173
- :host-state([size="sm"]),
174
- :host-state([size="lg"]) {
173
+ :host([size="sm"]),
174
+ :host([size="lg"]) {
175
175
  --_line: calc(var(--_font) * var(--ui-line-height-md));
176
176
  font-size: var(--_font);
177
177
  padding-block: calc((var(--_row) - var(--ui-switch-track-height, 1.5rem)) / 2);
178
178
  }
179
179
 
180
180
  /* The label centres on the track. */
181
- :host-state([size="sm"]) .text,
182
- :host-state([size="lg"]) .text {
181
+ :host([size="sm"]) .text,
182
+ :host([size="lg"]) .text {
183
183
  margin-top: calc((var(--_ui-switch-track-height, 1.5rem) - var(--_line)) / 2);
184
184
  }
185
185
 
186
186
  @media (pointer: coarse) {
187
- :host-state([size="sm"]) {
187
+ :host([size="sm"]) {
188
188
  --_row: var(--ui-control-min-block-size);
189
189
  }
190
190
  }
@@ -5,7 +5,7 @@ import { trackTrigger } from "../shared/trigger.js";
5
5
  // `checked` sets the control initially and whenever it changes; the user's changes update the state.
6
6
  // A form reset returns the control to `checked`. Vue writes the checked attribute on every render, so
7
7
  // the native default alone cannot hold it there.
8
- export default function controller(host) {
8
+ function connect(host) {
9
9
  const input = host.refs.input;
10
10
  describeInput(input, host.refs.description);
11
11
  const [trigger, stopTracking] = trackTrigger(host);
@@ -33,3 +33,8 @@ export default function controller(host) {
33
33
  input.removeEventListener("change", onChange);
34
34
  };
35
35
  }
36
+
37
+ /** Keep DOM setup and its cleanup tied to each connection, including reconnects. */
38
+ export default function controller(host) {
39
+ host.on("connect", () => connect(host));
40
+ }
@@ -49,37 +49,37 @@
49
49
  flex-basis: 100%;
50
50
  }
51
51
 
52
- :host-state([gap="xs"]) {
52
+ :host([gap="xs"]) {
53
53
  --_switcher-gap: var(--ui-space-2);
54
54
  }
55
- :host-state([gap="s"]) {
55
+ :host([gap="s"]) {
56
56
  --_switcher-gap: var(--ui-space-3);
57
57
  }
58
- :host-state([gap="m"]) {
58
+ :host([gap="m"]) {
59
59
  --_switcher-gap: var(--ui-space-4);
60
60
  }
61
- :host-state([gap="l"]) {
61
+ :host([gap="l"]) {
62
62
  --_switcher-gap: var(--ui-space-5);
63
63
  }
64
- :host-state([gap="xl"]) {
64
+ :host([gap="xl"]) {
65
65
  --_switcher-gap: var(--ui-space-6);
66
66
  }
67
- :host-state([threshold="xs"]) > :slotted(*) {
67
+ :host([threshold="xs"]) > :slotted(*) {
68
68
  flex-basis: calc((var(--_ui-switcher-threshold, 20rem) - 100%) * 999);
69
69
  }
70
- :host-state([threshold="md"]) > :slotted(*) {
70
+ :host([threshold="md"]) > :slotted(*) {
71
71
  flex-basis: calc((var(--_ui-switcher-threshold, 45rem) - 100%) * 999);
72
72
  }
73
- :host-state([threshold="lg"]) > :slotted(*) {
73
+ :host([threshold="lg"]) > :slotted(*) {
74
74
  flex-basis: calc((var(--_ui-switcher-threshold, 60rem) - 100%) * 999);
75
75
  }
76
- :host-state([align="start"]) {
76
+ :host([align="start"]) {
77
77
  align-items: flex-start;
78
78
  }
79
- :host-state([align="center"]) {
79
+ :host([align="center"]) {
80
80
  align-items: center;
81
81
  }
82
- :host-state([align="end"]) {
82
+ :host([align="end"]) {
83
83
  align-items: flex-end;
84
84
  }
85
85
 
@@ -1,5 +1,5 @@
1
1
  /** Stack the group when the authored child count exceeds the optional row limit. */
2
- export default function controller(host) {
2
+ function connect(host) {
3
3
  const element = host.element;
4
4
  const update = () => {
5
5
  const limit = Number(host.props.limit.value);
@@ -13,3 +13,8 @@ export default function controller(host) {
13
13
  observer.disconnect();
14
14
  };
15
15
  }
16
+
17
+ /** Keep DOM setup and its cleanup tied to each connection, including reconnects. */
18
+ export default function controller(host) {
19
+ host.on("connect", () => connect(host));
20
+ }
@@ -55,7 +55,7 @@
55
55
  outline-offset: calc(-1 * var(--ui-focus-width));
56
56
  }
57
57
 
58
- :host-state([density="compact"]) {
58
+ :host([density="compact"]) {
59
59
  --_pad-block: var(--ui-space-0-5);
60
60
  --_pad-inline: var(--ui-space-2);
61
61
  --_row-size: var(--ui-control-size-sm);
@@ -117,7 +117,7 @@
117
117
  text-align: end;
118
118
  }
119
119
 
120
- :host-state([stickyHeader]) :slotted(thead th) {
120
+ :host([stickyHeader]) :slotted(thead th) {
121
121
  position: sticky;
122
122
  inset-block-start: 0;
123
123
  z-index: 1;
@@ -3,7 +3,7 @@
3
3
  // the table fits, the root is plain again, so it is not an empty stop in the tab order.
4
4
  let captions = 0;
5
5
 
6
- export default function controller(host) {
6
+ function connect(host) {
7
7
  const element = host.element;
8
8
  const authored = element.hasAttribute("tabindex") || element.hasAttribute("role");
9
9
  if (authored) return undefined;
@@ -53,3 +53,8 @@ export default function controller(host) {
53
53
  plain();
54
54
  };
55
55
  }
56
+
57
+ /** Keep DOM setup and its cleanup tied to each connection, including reconnects. */
58
+ export default function controller(host) {
59
+ host.on("connect", () => connect(host));
60
+ }
@@ -68,7 +68,7 @@
68
68
  --_tab-padding-inline: var(--ui-space-3);
69
69
  }
70
70
 
71
- :host-state([density="compact"]) {
71
+ :host([density="compact"]) {
72
72
  --_tab-min-block-size: var(--ui-control-size-sm);
73
73
  --_tab-padding-block: var(--ui-space-1);
74
74
  --_tab-padding-inline: var(--ui-space-2);
@@ -130,7 +130,7 @@
130
130
  }
131
131
  }
132
132
 
133
- :host-state([stretch]) .list {
133
+ :host([stretch]) .list {
134
134
  grid-auto-columns: minmax(max-content, 1fr);
135
135
  }
136
136
 
@@ -164,28 +164,28 @@
164
164
  padding: var(--ui-space-4);
165
165
  }
166
166
 
167
- :host-state([orientation="vertical"]) {
167
+ :host([orientation="vertical"]) {
168
168
  grid-template-columns: max-content minmax(0, 1fr);
169
169
  align-items: start;
170
170
  }
171
171
 
172
- :host-state([orientation="vertical"]) .list {
172
+ :host([orientation="vertical"]) .list {
173
173
  grid-auto-flow: row;
174
174
  grid-auto-columns: auto;
175
175
  border-block-end: 0;
176
176
  border-inline-end: var(--ui-border-width) solid var(--ui-border-divider);
177
177
  }
178
178
 
179
- :host-state([orientation="vertical"]) .list button,
180
- :host-state([orientation="vertical"]) .list > :slotted(button[slot="tab"]) {
179
+ :host([orientation="vertical"]) .list button,
180
+ :host([orientation="vertical"]) .list > :slotted(button[slot="tab"]) {
181
181
  margin: 0 calc(-1 * var(--ui-border-width)) 0 0;
182
182
  border-block-end: 0;
183
183
  border-inline-end: var(--ui-accent-line-width) solid transparent;
184
184
  text-align: start;
185
185
  }
186
186
 
187
- :host-state([orientation="vertical"]) .list button[aria-selected="true"],
188
- :host-state([orientation="vertical"]) .list > :slotted(button[slot="tab"][aria-selected="true"]) {
187
+ :host([orientation="vertical"]) .list button[aria-selected="true"],
188
+ :host([orientation="vertical"]) .list > :slotted(button[slot="tab"][aria-selected="true"]) {
189
189
  border-inline-end-color: var(--ui-accent-solid);
190
190
  }
191
191
 
@@ -3,7 +3,7 @@ import { trackTrigger } from "../shared/trigger.js";
3
3
  let panelIds = 0;
4
4
 
5
5
  /** Lists the authored panels (each labelled by its aria-label) as tabs and shows the selected one. */
6
- export default function controller(host) {
6
+ function connect(host) {
7
7
  const { list, panels: container } = host.refs;
8
8
  const [trigger, stopTracking] = trackTrigger(host);
9
9
  const panels = () => Array.from(container.children).filter((child) => child instanceof HTMLElement);
@@ -115,3 +115,8 @@ export default function controller(host) {
115
115
  list.removeEventListener("wheel", onWheel);
116
116
  };
117
117
  }
118
+
119
+ /** Keep DOM setup and its cleanup tied to each connection, including reconnects. */
120
+ export default function controller(host) {
121
+ host.on("connect", () => connect(host));
122
+ }