@threadlabs/looma 0.25.7 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. package/components/ui-avatar/ui-avatar.html +4 -4
  2. package/components/ui-avatar-group/ui-avatar-group.html +2 -2
  3. package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -1
  4. package/components/ui-breadcrumbs/ui-breadcrumbs.html +1 -1
  5. package/components/ui-button/ui-button.html +27 -27
  6. package/components/ui-callout/ui-callout.html +5 -5
  7. package/components/ui-card/ui-card.html +3 -3
  8. package/components/ui-checkbox/ui-checkbox.html +8 -8
  9. package/components/ui-combobox/ui-combobox.html +59 -59
  10. package/components/ui-dialog/ui-dialog.html +2 -2
  11. package/components/ui-disclosure/ui-disclosure.html +3 -3
  12. package/components/ui-editable/ui-editable.html +8 -8
  13. package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +11 -11
  14. package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +10 -10
  15. package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +2 -2
  16. package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +7 -7
  17. package/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html +1 -1
  18. package/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html +3 -3
  19. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +16 -16
  20. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +31 -31
  21. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +33 -33
  22. package/components/ui-floating-action-button/ui-floating-action-button.html +1 -1
  23. package/components/ui-grid/ui-grid.html +1 -1
  24. package/components/ui-icon/ui-icon.html +12 -12
  25. package/components/ui-icon-button/ui-icon-button.html +6 -6
  26. package/components/ui-image/ui-image.html +2 -2
  27. package/components/ui-input/ui-input.html +1 -1
  28. package/components/ui-list/ui-list.html +1 -1
  29. package/components/ui-list-item/ui-list-item.html +1 -1
  30. package/components/ui-listbox/ui-listbox.html +24 -24
  31. package/components/ui-menu-group/ui-menu-group.html +2 -2
  32. package/components/ui-menu-item/ui-menu-item.html +9 -9
  33. package/components/ui-meter/ui-meter.html +8 -8
  34. package/components/ui-nav-item/ui-nav-item.html +6 -6
  35. package/components/ui-radio/ui-radio.html +1 -1
  36. package/components/ui-radio-group/ui-radio-group.html +1 -1
  37. package/components/ui-search-result-row/ui-search-result-row.html +1 -1
  38. package/components/ui-search-shell/ui-search-shell.html +1 -1
  39. package/components/ui-section/ui-section.html +1 -1
  40. package/components/ui-select/ui-select.html +1 -1
  41. package/components/ui-separator/ui-separator.html +1 -1
  42. package/components/ui-sidebar/ui-sidebar.html +2 -2
  43. package/components/ui-spinner/ui-spinner.html +4 -4
  44. package/components/ui-stack/ui-stack.html +1 -1
  45. package/components/ui-status-message/ui-status-message.html +3 -3
  46. package/components/ui-switch/ui-switch.html +5 -5
  47. package/components/ui-tabs/ui-tabs.html +8 -8
  48. package/components/ui-text/ui-text.html +10 -10
  49. package/components/ui-textarea/ui-textarea.html +8 -8
  50. package/components/ui-toast/ui-toast.html +1 -1
  51. package/components/ui-toast-region/ui-toast-region.html +8 -8
  52. package/components/ui-tooltip/ui-tooltip.html +1 -1
  53. package/components/ui-tree-item/ui-tree-item.html +18 -18
  54. package/dist/index.js +1 -1
  55. package/package.json +3 -3
  56. package/styles/ui-action-bar.css +1 -1
  57. package/styles/ui-affordance-scope.css +1 -1
  58. package/styles/ui-avatar-group.css +1 -1
  59. package/styles/ui-avatar.css +1 -1
  60. package/styles/ui-badge.css +1 -1
  61. package/styles/ui-breadcrumb-item.css +1 -1
  62. package/styles/ui-breadcrumbs.css +1 -1
  63. package/styles/ui-button.css +1 -1
  64. package/styles/ui-callout.css +1 -1
  65. package/styles/ui-card.css +1 -1
  66. package/styles/ui-checkbox.css +1 -1
  67. package/styles/ui-cluster.css +1 -1
  68. package/styles/ui-combobox.css +1 -1
  69. package/styles/ui-container.css +1 -1
  70. package/styles/ui-context-menu.css +1 -1
  71. package/styles/ui-cover.css +1 -1
  72. package/styles/ui-description-item.css +1 -1
  73. package/styles/ui-description-list.css +1 -1
  74. package/styles/ui-dialog.css +1 -1
  75. package/styles/ui-disclosure.css +1 -1
  76. package/styles/ui-editable.css +1 -1
  77. package/styles/ui-editor-insert-table-grid.css +1 -1
  78. package/styles/ui-editor-mention-menu-item.css +1 -1
  79. package/styles/ui-editor-mention-menu.css +1 -1
  80. package/styles/ui-editor-slash-menu-group.css +1 -1
  81. package/styles/ui-editor-slash-menu-item.css +1 -1
  82. package/styles/ui-editor-slash-menu.css +1 -1
  83. package/styles/ui-editor-surface.css +1 -1
  84. package/styles/ui-editor-table-context-menu.css +1 -1
  85. package/styles/ui-editor-table-overlay.css +1 -1
  86. package/styles/ui-editor-table-toolbar.css +1 -1
  87. package/styles/ui-editor-toolbar.css +1 -1
  88. package/styles/ui-floating-action-button.css +1 -1
  89. package/styles/ui-form-field.css +1 -1
  90. package/styles/ui-grid.css +1 -1
  91. package/styles/ui-icon-button.css +1 -1
  92. package/styles/ui-icon.css +1 -1
  93. package/styles/ui-image.css +1 -1
  94. package/styles/ui-input-group.css +1 -1
  95. package/styles/ui-input.css +1 -1
  96. package/styles/ui-list-item.css +1 -1
  97. package/styles/ui-list.css +1 -1
  98. package/styles/ui-listbox.css +1 -1
  99. package/styles/ui-menu-group.css +1 -1
  100. package/styles/ui-menu-item.css +1 -1
  101. package/styles/ui-menu.css +1 -1
  102. package/styles/ui-meter.css +1 -1
  103. package/styles/ui-nav-item.css +1 -1
  104. package/styles/ui-page-header.css +1 -1
  105. package/styles/ui-popover.css +1 -1
  106. package/styles/ui-radio-group.css +1 -1
  107. package/styles/ui-radio.css +1 -1
  108. package/styles/ui-reel.css +1 -1
  109. package/styles/ui-scroll-area.css +1 -1
  110. package/styles/ui-search-result-row.css +1 -1
  111. package/styles/ui-search-shell.css +1 -1
  112. package/styles/ui-section.css +1 -1
  113. package/styles/ui-select.css +1 -1
  114. package/styles/ui-separator.css +1 -1
  115. package/styles/ui-sidebar.css +1 -1
  116. package/styles/ui-spinner.css +1 -1
  117. package/styles/ui-stack.css +1 -1
  118. package/styles/ui-status-message.css +1 -1
  119. package/styles/ui-switch.css +1 -1
  120. package/styles/ui-switcher.css +1 -1
  121. package/styles/ui-table.css +1 -1
  122. package/styles/ui-tabs.css +1 -1
  123. package/styles/ui-text.css +1 -1
  124. package/styles/ui-textarea.css +1 -1
  125. package/styles/ui-toast-region.css +1 -1
  126. package/styles/ui-toast.css +1 -1
  127. package/styles/ui-tooltip.css +1 -1
  128. package/styles/ui-top-bar.css +1 -1
  129. package/styles/ui-tree-item.css +1 -1
  130. package/styles/ui-tree.css +1 -1
  131. package/vanilla/UiActionBar.d.ts +1 -1
  132. package/vanilla/UiActionBar.js +70 -52
  133. package/vanilla/UiAffordanceScope.d.ts +1 -1
  134. package/vanilla/UiAffordanceScope.js +36 -17
  135. package/vanilla/UiAvatar.d.ts +1 -1
  136. package/vanilla/UiAvatar.js +72 -37
  137. package/vanilla/UiAvatarGroup.d.ts +1 -1
  138. package/vanilla/UiAvatarGroup.js +57 -26
  139. package/vanilla/UiBadge.d.ts +1 -1
  140. package/vanilla/UiBadge.js +49 -39
  141. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  142. package/vanilla/UiBreadcrumbItem.js +41 -26
  143. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  144. package/vanilla/UiBreadcrumbs.js +35 -24
  145. package/vanilla/UiButton.d.ts +1 -1
  146. package/vanilla/UiButton.js +444 -156
  147. package/vanilla/UiCallout.d.ts +1 -1
  148. package/vanilla/UiCallout.js +135 -111
  149. package/vanilla/UiCard.d.ts +1 -1
  150. package/vanilla/UiCard.js +147 -47
  151. package/vanilla/UiCheckbox.d.ts +1 -1
  152. package/vanilla/UiCheckbox.js +100 -58
  153. package/vanilla/UiCluster.d.ts +1 -1
  154. package/vanilla/UiCluster.js +35 -29
  155. package/vanilla/UiCombobox.d.ts +1 -1
  156. package/vanilla/UiCombobox.js +879 -283
  157. package/vanilla/UiContainer.d.ts +1 -1
  158. package/vanilla/UiContainer.js +35 -19
  159. package/vanilla/UiContextMenu.d.ts +1 -1
  160. package/vanilla/UiContextMenu.js +34 -23
  161. package/vanilla/UiCover.d.ts +1 -1
  162. package/vanilla/UiCover.js +35 -15
  163. package/vanilla/UiDescriptionItem.d.ts +1 -1
  164. package/vanilla/UiDescriptionItem.js +37 -24
  165. package/vanilla/UiDescriptionList.d.ts +1 -1
  166. package/vanilla/UiDescriptionList.js +35 -21
  167. package/vanilla/UiDialog.d.ts +1 -1
  168. package/vanilla/UiDialog.js +83 -42
  169. package/vanilla/UiDisclosure.d.ts +1 -1
  170. package/vanilla/UiDisclosure.js +113 -72
  171. package/vanilla/UiEditable.d.ts +1 -1
  172. package/vanilla/UiEditable.js +125 -58
  173. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  174. package/vanilla/UiEditorInsertTableGrid.js +85 -30
  175. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  176. package/vanilla/UiEditorMentionMenu.js +193 -75
  177. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  178. package/vanilla/UiEditorMentionMenuItem.js +81 -44
  179. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  180. package/vanilla/UiEditorSlashMenu.js +123 -78
  181. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  182. package/vanilla/UiEditorSlashMenuGroup.js +40 -34
  183. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  184. package/vanilla/UiEditorSlashMenuItem.js +98 -45
  185. package/vanilla/UiEditorSurface.d.ts +1 -1
  186. package/vanilla/UiEditorSurface.js +35 -15
  187. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  188. package/vanilla/UiEditorTableContextMenu.js +143 -60
  189. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  190. package/vanilla/UiEditorTableOverlay.js +212 -109
  191. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  192. package/vanilla/UiEditorTableToolbar.js +330 -113
  193. package/vanilla/UiEditorToolbar.d.ts +1 -1
  194. package/vanilla/UiEditorToolbar.js +37 -20
  195. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  196. package/vanilla/UiFloatingActionButton.js +44 -22
  197. package/vanilla/UiFormField.d.ts +1 -1
  198. package/vanilla/UiFormField.js +89 -65
  199. package/vanilla/UiGrid.d.ts +1 -1
  200. package/vanilla/UiGrid.js +39 -19
  201. package/vanilla/UiIcon.d.ts +1 -1
  202. package/vanilla/UiIcon.js +186 -27
  203. package/vanilla/UiIconButton.d.ts +1 -1
  204. package/vanilla/UiIconButton.js +82 -32
  205. package/vanilla/UiImage.d.ts +1 -1
  206. package/vanilla/UiImage.js +76 -69
  207. package/vanilla/UiInput.d.ts +1 -1
  208. package/vanilla/UiInput.js +51 -27
  209. package/vanilla/UiInputGroup.d.ts +1 -1
  210. package/vanilla/UiInputGroup.js +77 -56
  211. package/vanilla/UiList.d.ts +1 -1
  212. package/vanilla/UiList.js +91 -27
  213. package/vanilla/UiListItem.d.ts +1 -1
  214. package/vanilla/UiListItem.js +81 -74
  215. package/vanilla/UiListbox.d.ts +1 -1
  216. package/vanilla/UiListbox.js +204 -81
  217. package/vanilla/UiMenu.d.ts +1 -1
  218. package/vanilla/UiMenu.js +36 -20
  219. package/vanilla/UiMenuGroup.d.ts +1 -1
  220. package/vanilla/UiMenuGroup.js +60 -24
  221. package/vanilla/UiMenuItem.d.ts +1 -1
  222. package/vanilla/UiMenuItem.js +177 -77
  223. package/vanilla/UiMeter.d.ts +1 -1
  224. package/vanilla/UiMeter.js +77 -14
  225. package/vanilla/UiNavItem.d.ts +1 -1
  226. package/vanilla/UiNavItem.js +199 -123
  227. package/vanilla/UiPageHeader.d.ts +1 -1
  228. package/vanilla/UiPageHeader.js +91 -69
  229. package/vanilla/UiPopover.d.ts +1 -1
  230. package/vanilla/UiPopover.js +36 -20
  231. package/vanilla/UiRadio.d.ts +1 -1
  232. package/vanilla/UiRadio.js +82 -50
  233. package/vanilla/UiRadioGroup.d.ts +1 -1
  234. package/vanilla/UiRadioGroup.js +58 -30
  235. package/vanilla/UiReel.d.ts +1 -1
  236. package/vanilla/UiReel.js +35 -21
  237. package/vanilla/UiScrollArea.d.ts +1 -1
  238. package/vanilla/UiScrollArea.js +37 -20
  239. package/vanilla/UiSearchResultRow.d.ts +1 -1
  240. package/vanilla/UiSearchResultRow.js +98 -74
  241. package/vanilla/UiSearchShell.d.ts +1 -1
  242. package/vanilla/UiSearchShell.js +81 -64
  243. package/vanilla/UiSection.d.ts +1 -1
  244. package/vanilla/UiSection.js +71 -53
  245. package/vanilla/UiSelect.d.ts +1 -1
  246. package/vanilla/UiSelect.js +50 -26
  247. package/vanilla/UiSeparator.d.ts +1 -1
  248. package/vanilla/UiSeparator.js +23 -22
  249. package/vanilla/UiSidebar.d.ts +1 -1
  250. package/vanilla/UiSidebar.js +49 -37
  251. package/vanilla/UiSpinner.d.ts +1 -1
  252. package/vanilla/UiSpinner.js +43 -26
  253. package/vanilla/UiStack.d.ts +1 -1
  254. package/vanilla/UiStack.js +39 -19
  255. package/vanilla/UiStatusMessage.d.ts +1 -1
  256. package/vanilla/UiStatusMessage.js +70 -41
  257. package/vanilla/UiSwitch.d.ts +1 -1
  258. package/vanilla/UiSwitch.js +82 -51
  259. package/vanilla/UiSwitcher.d.ts +1 -1
  260. package/vanilla/UiSwitcher.js +36 -17
  261. package/vanilla/UiTable.d.ts +1 -1
  262. package/vanilla/UiTable.js +35 -17
  263. package/vanilla/UiTabs.d.ts +1 -1
  264. package/vanilla/UiTabs.js +97 -42
  265. package/vanilla/UiText.d.ts +1 -1
  266. package/vanilla/UiText.js +343 -117
  267. package/vanilla/UiTextarea.d.ts +1 -1
  268. package/vanilla/UiTextarea.js +56 -33
  269. package/vanilla/UiToast.d.ts +1 -1
  270. package/vanilla/UiToast.js +61 -40
  271. package/vanilla/UiToastRegion.d.ts +1 -1
  272. package/vanilla/UiToastRegion.js +85 -35
  273. package/vanilla/UiTooltip.d.ts +1 -1
  274. package/vanilla/UiTooltip.js +54 -31
  275. package/vanilla/UiTopBar.d.ts +1 -1
  276. package/vanilla/UiTopBar.js +70 -52
  277. package/vanilla/UiTree.d.ts +1 -1
  278. package/vanilla/UiTree.js +35 -17
  279. package/vanilla/UiTreeItem.d.ts +1 -1
  280. package/vanilla/UiTreeItem.js +219 -181
  281. package/vue/UiActionBar.vue +1 -1
  282. package/vue/UiAffordanceScope.vue +1 -1
  283. package/vue/UiAvatar.vue +7 -7
  284. package/vue/UiAvatarGroup.vue +3 -3
  285. package/vue/UiBadge.vue +1 -1
  286. package/vue/UiBreadcrumbItem.vue +1 -1
  287. package/vue/UiBreadcrumbs.vue +1 -1
  288. package/vue/UiButton.vue +1 -1
  289. package/vue/UiCallout.vue +1 -1
  290. package/vue/UiCard.vue +1 -1
  291. package/vue/UiCheckbox.vue +2 -2
  292. package/vue/UiCluster.vue +1 -1
  293. package/vue/UiCombobox.vue +25 -25
  294. package/vue/UiContainer.vue +1 -1
  295. package/vue/UiContextMenu.vue +1 -1
  296. package/vue/UiCover.vue +1 -1
  297. package/vue/UiDescriptionItem.vue +1 -1
  298. package/vue/UiDescriptionList.vue +1 -1
  299. package/vue/UiDialog.vue +2 -2
  300. package/vue/UiDisclosure.vue +6 -6
  301. package/vue/UiEditable.vue +3 -3
  302. package/vue/UiEditorInsertTableGrid.vue +4 -4
  303. package/vue/UiEditorMentionMenu.vue +2 -2
  304. package/vue/UiEditorMentionMenuItem.vue +1 -1
  305. package/vue/UiEditorSlashMenu.vue +2 -2
  306. package/vue/UiEditorSlashMenuGroup.vue +1 -1
  307. package/vue/UiEditorSlashMenuItem.vue +1 -1
  308. package/vue/UiEditorSurface.vue +1 -1
  309. package/vue/UiEditorTableContextMenu.vue +1 -1
  310. package/vue/UiEditorTableOverlay.vue +11 -11
  311. package/vue/UiEditorTableToolbar.vue +2 -2
  312. package/vue/UiEditorToolbar.vue +1 -1
  313. package/vue/UiFloatingActionButton.vue +1 -1
  314. package/vue/UiFormField.vue +1 -1
  315. package/vue/UiGrid.vue +1 -1
  316. package/vue/UiIcon.vue +1 -1
  317. package/vue/UiIconButton.vue +1 -1
  318. package/vue/UiImage.vue +1 -1
  319. package/vue/UiInput.vue +1 -1
  320. package/vue/UiInputGroup.vue +1 -1
  321. package/vue/UiList.vue +1 -1
  322. package/vue/UiListItem.vue +1 -1
  323. package/vue/UiListbox.vue +4 -4
  324. package/vue/UiMenu.vue +1 -1
  325. package/vue/UiMenuGroup.vue +1 -1
  326. package/vue/UiMenuItem.vue +2 -2
  327. package/vue/UiMeter.vue +1 -1
  328. package/vue/UiNavItem.vue +1 -1
  329. package/vue/UiPageHeader.vue +1 -1
  330. package/vue/UiPopover.vue +1 -1
  331. package/vue/UiRadio.vue +2 -2
  332. package/vue/UiRadioGroup.vue +1 -1
  333. package/vue/UiReel.vue +1 -1
  334. package/vue/UiScrollArea.vue +1 -1
  335. package/vue/UiSearchResultRow.vue +1 -1
  336. package/vue/UiSearchShell.vue +1 -1
  337. package/vue/UiSection.vue +1 -1
  338. package/vue/UiSelect.vue +1 -1
  339. package/vue/UiSeparator.vue +1 -1
  340. package/vue/UiSidebar.vue +3 -3
  341. package/vue/UiSpinner.vue +1 -1
  342. package/vue/UiStack.vue +1 -1
  343. package/vue/UiStatusMessage.vue +1 -1
  344. package/vue/UiSwitch.vue +2 -2
  345. package/vue/UiSwitcher.vue +1 -1
  346. package/vue/UiTable.vue +1 -1
  347. package/vue/UiTabs.vue +1 -1
  348. package/vue/UiText.vue +1 -1
  349. package/vue/UiTextarea.vue +1 -1
  350. package/vue/UiToast.vue +1 -1
  351. package/vue/UiToastRegion.vue +1 -1
  352. package/vue/UiTooltip.vue +2 -2
  353. package/vue/UiTopBar.vue +1 -1
  354. package/vue/UiTree.vue +1 -1
  355. package/vue/UiTreeItem.vue +6 -6
  356. package/vue/chunks/UiActionBar.js +1 -1
  357. package/vue/chunks/UiAffordanceScope.js +1 -1
  358. package/vue/chunks/UiAvatar.js +6 -6
  359. package/vue/chunks/UiAvatarGroup.js +3 -3
  360. package/vue/chunks/UiBadge.js +1 -1
  361. package/vue/chunks/UiBreadcrumbItem.js +1 -1
  362. package/vue/chunks/UiBreadcrumbs.js +1 -1
  363. package/vue/chunks/UiButton.js +1 -1
  364. package/vue/chunks/UiCallout.js +1 -1
  365. package/vue/chunks/UiCard.js +1 -1
  366. package/vue/chunks/UiCheckbox.js +2 -2
  367. package/vue/chunks/UiCluster.js +1 -1
  368. package/vue/chunks/UiCombobox.js +22 -22
  369. package/vue/chunks/UiContainer.js +1 -1
  370. package/vue/chunks/UiContextMenu.js +1 -1
  371. package/vue/chunks/UiCover.js +1 -1
  372. package/vue/chunks/UiDescriptionItem.js +1 -1
  373. package/vue/chunks/UiDescriptionList.js +1 -1
  374. package/vue/chunks/UiDialog.js +2 -2
  375. package/vue/chunks/UiDisclosure.js +6 -6
  376. package/vue/chunks/UiEditable.js +3 -3
  377. package/vue/chunks/UiEditorInsertTableGrid.js +4 -4
  378. package/vue/chunks/UiEditorMentionMenu.js +2 -2
  379. package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
  380. package/vue/chunks/UiEditorSlashMenu.js +2 -2
  381. package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
  382. package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
  383. package/vue/chunks/UiEditorSurface.js +1 -1
  384. package/vue/chunks/UiEditorTableContextMenu.js +1 -1
  385. package/vue/chunks/UiEditorTableOverlay.js +11 -11
  386. package/vue/chunks/UiEditorTableToolbar.js +2 -2
  387. package/vue/chunks/UiEditorToolbar.js +1 -1
  388. package/vue/chunks/UiFloatingActionButton.js +1 -1
  389. package/vue/chunks/UiFormField.js +1 -1
  390. package/vue/chunks/UiGrid.js +1 -1
  391. package/vue/chunks/UiIcon.js +1 -1
  392. package/vue/chunks/UiIconButton.js +1 -1
  393. package/vue/chunks/UiImage.js +1 -1
  394. package/vue/chunks/UiInput.js +1 -1
  395. package/vue/chunks/UiInputGroup.js +1 -1
  396. package/vue/chunks/UiList.js +1 -1
  397. package/vue/chunks/UiListItem.js +1 -1
  398. package/vue/chunks/UiListbox.js +4 -4
  399. package/vue/chunks/UiMenu.js +1 -1
  400. package/vue/chunks/UiMenuGroup.js +1 -1
  401. package/vue/chunks/UiMenuItem.js +2 -2
  402. package/vue/chunks/UiMeter.js +1 -1
  403. package/vue/chunks/UiNavItem.js +1 -1
  404. package/vue/chunks/UiPageHeader.js +1 -1
  405. package/vue/chunks/UiPopover.js +1 -1
  406. package/vue/chunks/UiRadio.js +2 -2
  407. package/vue/chunks/UiRadioGroup.js +1 -1
  408. package/vue/chunks/UiReel.js +1 -1
  409. package/vue/chunks/UiScrollArea.js +1 -1
  410. package/vue/chunks/UiSearchResultRow.js +1 -1
  411. package/vue/chunks/UiSearchShell.js +1 -1
  412. package/vue/chunks/UiSection.js +1 -1
  413. package/vue/chunks/UiSelect.js +1 -1
  414. package/vue/chunks/UiSeparator.js +1 -1
  415. package/vue/chunks/UiSidebar.js +2 -2
  416. package/vue/chunks/UiSpinner.js +1 -1
  417. package/vue/chunks/UiStack.js +1 -1
  418. package/vue/chunks/UiStatusMessage.js +1 -1
  419. package/vue/chunks/UiSwitch.js +2 -2
  420. package/vue/chunks/UiSwitcher.js +1 -1
  421. package/vue/chunks/UiTable.js +1 -1
  422. package/vue/chunks/UiTabs.js +1 -1
  423. package/vue/chunks/UiText.js +1 -1
  424. package/vue/chunks/UiTextarea.js +1 -1
  425. package/vue/chunks/UiToast.js +1 -1
  426. package/vue/chunks/UiToastRegion.js +1 -1
  427. package/vue/chunks/UiTooltip.js +2 -2
  428. package/vue/chunks/UiTopBar.js +1 -1
  429. package/vue/chunks/UiTree.js +1 -1
  430. package/vue/chunks/UiTreeItem.js +5 -5
  431. package/vue/chunks/control.js +41 -13
  432. package/vue/chunks/host.js +19 -18
  433. package/vue/components.css +1388 -1388
  434. package/vue/host.ts +22 -20
@@ -1,40 +1,64 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
2
- import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, project, fillSlot, checkBoolean, checkFormat, checkString } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-select/ui-select.js";
4
4
  import "../styles/ui-select.css";
5
5
 
6
- const definition = {...{"contract":{"tag":"ui-select","props":{"disabled":{"type":"boolean","required":false,"target":{"attribute":"disabled"},"default":false},"invalid":{"type":"boolean","required":false,"target":{"attribute":"aria-invalid"},"default":false},"required":{"type":"boolean","required":false,"target":{"attribute":"required"},"default":false},"size":{"type":{"kind":"terminal","name":"keyword"},"values":["sm","md","lg"],"required":false,"target":{"attribute":"size"},"default":"md"},"value":{"type":"string","required":false,"target":{"attribute":"value"}}}},"template":{"kind":"element","name":"select","attributes":[{"kind":"attribute","name":"disabled","expression":"disabled","expressionPlan":{"source":"disabled","ast":{"kind":"id","name":"disabled"},"dependencies":["disabled"]}},{"kind":"attribute","name":"required","expression":"required","expressionPlan":{"source":"required","ast":{"kind":"id","name":"required"},"dependencies":["required"]}},{"kind":"attribute","name":"aria-invalid","expression":"invalid","expressionPlan":{"source":"invalid","ast":{"kind":"id","name":"invalid"},"dependencies":["invalid"]}}],"children":[{"kind":"slot"}]},"declarations":[],"root":{"kind":"native","element":"select","choices":["select"]}},source:{file:import.meta.url},css:""};
6
+ const T0 = ["",[],4];
7
+ const T1 = ["",[]];
8
+ let P0, P1;
9
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-select" };
10
+ const D = { props: { "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "invalid": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "required": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "value": { "required":false, c: checkString, t: "string", j: 0, m: "s" } } };
11
+ const C = (host) => controller.default(host);
7
12
 
8
- export function createUiSelect(options = {}) {
13
+ export function createUiSelect(options = {}, html) {
9
14
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
- const projected = [];
11
15
  const element = document.createElement("select");
12
16
  for (const [name, value] of Object.entries(attributes)) {
13
17
  if (value === null || value === undefined || value === false) continue;
14
18
  element.setAttribute(name, value === true ? "" : String(value));
15
19
  }
16
- const value0 = componentProps["disabled"] === undefined ? false : componentProps["disabled"];
17
- if (value0 === true) element.setAttribute("disabled", "");
18
- else element.removeAttribute("disabled");
19
- const value1 = componentProps["required"] === undefined ? false : componentProps["required"];
20
- if (value1 === true) element.setAttribute("required", "");
21
- else element.removeAttribute("required");
22
- const value2 = componentProps["invalid"] === undefined ? false : componentProps["invalid"];
23
- if (typeof value2 === "boolean") element.setAttribute("aria-invalid", String(value2));
24
- else element.removeAttribute("aria-invalid");
25
20
  element.setAttribute("data-component", "ui-select");
26
- if (children.length > 0) {
27
- for (const child of children) {
28
- const node = typeof child === "string" ? document.createTextNode(child) : child;
29
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
30
- projected.push([node, ""]);
31
- element.append(node);
21
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
22
+ const v = [null, null, null, null, null];
23
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
24
+ const m1 = (d) => {
25
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
26
+ const r = { n };
27
+ p1(r, -1, d);
28
+ return r;
29
+ };
30
+ const p1 = (r, c, d) => {
31
+ };
32
+ const p0 = (r, c, d) => {
33
+ if (c & 1) {
34
+ const x0 = v[0];
35
+ const s0 = toAttribute(x0, "disabled");
36
+ if (s0 !== r.v0) writeAttribute(r.n, "disabled", r.v0 = s0);
32
37
  }
33
- } else {
34
- }
35
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
36
- controller,
37
- });
38
+ if (c & 4) {
39
+ const x1 = v[2];
40
+ const s1 = toAttribute(x1, "required");
41
+ if (s1 !== r.v1) writeAttribute(r.n, "required", r.v1 = s1);
42
+ }
43
+ if (c & 2) {
44
+ const x2 = v[1];
45
+ const s2 = toAttribute(x2, "aria-invalid");
46
+ if (s2 !== r.v2) writeAttribute(r.n, "aria-invalid", r.v2 = s2);
47
+ }
48
+ if (c & 8) {
49
+ const x3 = hostState(["size"], [v[3]]);
50
+ const s3 = x3;
51
+ if (s3 !== r.v3) writeAttribute(r.n, "data-ui-select-state", (r.v3 = s3) === "" ? null : s3);
52
+ }
53
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
54
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
55
+ else if (r.b0 !== undefined) p1(r.b0, c, d);
56
+ };
57
+ const t0 = element.firstChild;
58
+ const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
59
+ const I = { B };
60
+ const J = project(I, children, slots);
61
+ attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), C, undefined, I);
62
+ manageProps(I);
38
63
  return element;
39
64
  }
40
-
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
2
  export interface UiSeparatorEventMap {
3
3
  }
4
4
  export interface UiSeparatorElement extends HTMLHRElement {
@@ -1,34 +1,35 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
2
- import { manageGeneratedProps } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, toAttribute, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, checkBoolean, checkFormat } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-separator.css";
4
4
 
5
- export function createUiSeparator(options = {}) {
5
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-separator" };
6
+ const D = { props: { "emphasis": { "required":false,"values":["normal","strong"],"default":"normal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "orientation": { "required":false,"values":["horizontal","vertical"],"default":"horizontal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "selectable": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "selected": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" } } };
7
+
8
+ export function createUiSeparator(options = {}, html) {
6
9
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
7
- const projected = [];
8
- const prop0 = componentProps["emphasis"] === undefined ? "normal" : componentProps["emphasis"];
9
- const prop1 = componentProps["orientation"] === undefined ? "horizontal" : componentProps["orientation"];
10
- const prop2 = componentProps["selectable"] === undefined ? false : componentProps["selectable"];
11
- const prop3 = componentProps["selected"] === undefined ? false : componentProps["selected"];
12
10
  const element = document.createElement("hr");
13
11
  for (const [name, value] of Object.entries(attributes)) {
14
12
  if (value === null || value === undefined || value === false) continue;
15
13
  element.setAttribute(name, value === true ? "" : String(value));
16
14
  }
17
- const value0 = prop1;
18
- if (value0 === null || value0 === undefined) element.removeAttribute("aria-orientation");
19
- else element.setAttribute("aria-orientation", String(value0));
20
15
  element.setAttribute("data-component", "ui-separator");
21
- manageGeneratedProps(element, [
22
- { name: "emphasis", attribute: "data-emphasis", value: componentProps["emphasis"], default: "normal", type: ["normal","strong"], required: false },
23
- { name: "orientation", attribute: "data-orientation", value: componentProps["orientation"], default: "horizontal", type: ["horizontal","vertical"], required: false },
24
- { name: "selectable", attribute: "data-selectable", value: componentProps["selectable"], default: false, type: "boolean", required: false },
25
- { name: "selected", attribute: "data-selected", value: componentProps["selected"], default: false, type: "boolean", required: false },
26
- ], (name, value) => {
27
- if (name === "orientation") {
28
- if (value === null || value === undefined) element.removeAttribute("aria-orientation");
29
- else element.setAttribute("aria-orientation", String(value));
16
+ const v = [null, null, null, null];
17
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
18
+ const p0 = (r, c, d) => {
19
+ if (c & 1073741826) {
20
+ const x0 = v[1];
21
+ const s0 = toAttribute(x0, "aria-orientation");
22
+ if (s0 !== r.v0) writeAttribute(r.n, "aria-orientation", r.v0 = s0);
23
+ }
24
+ if (c & 13) {
25
+ const x1 = hostState(["emphasis","selectable","selected"], [v[0], v[2], v[3]]);
26
+ const s1 = x1;
27
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-separator-state", (r.v1 = s1) === "" ? null : s1);
30
28
  }
31
- });
29
+ };
30
+ const R = { n: element, v0: undefined, v1: undefined };
31
+ const I = { B };
32
+ attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
33
+ manageProps(I);
32
34
  return element;
33
35
  }
34
-
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
2
  export interface UiSidebarEventMap {
3
3
  resize: CustomEvent<{ readonly width: number; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  toggle: CustomEvent<{ readonly open: boolean; readonly mode: "docked" | "drawer"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
@@ -1,51 +1,63 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
2
- import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, toAttribute, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkNumber, checkObject, checkString } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-sidebar/ui-sidebar.js";
4
4
  import "../styles/ui-sidebar.css";
5
5
 
6
- const definition = {...{"contract":{"tag":"ui-sidebar","props":{"breakpoint":{"type":{"kind":"terminal","name":"keyword"},"values":["sm","md","lg"],"required":false,"target":{"attribute":"breakpoint"},"default":"md"},"collapsed":{"type":"boolean","required":false,"target":{"attribute":"collapsed"},"default":false},"maxWidth":{"type":"number","required":false,"target":{"attribute":"maxwidth"},"default":480},"minWidth":{"type":"number","required":false,"target":{"attribute":"minwidth"},"default":200},"resizable":{"type":"boolean","required":false,"target":{"attribute":"resizable"},"default":false},"resizeLabel":{"type":"string","required":false,"target":{"attribute":"aria-label"},"default":"Resize sidebar"},"resizeStep":{"type":"number","required":false,"target":{"attribute":"resizestep"},"default":16},"side":{"type":{"kind":"terminal","name":"keyword"},"values":["start","end"],"required":false,"target":{"attribute":"side"},"default":"start"},"width":{"type":"number","required":false,"target":{"attribute":"width"},"default":0}}},"template":{"kind":"element","name":"aside","attributes":[],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"viewport"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"slot"}]}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"resizer"},{"kind":"literal","name":"role","value":"separator"},{"kind":"literal","name":"aria-orientation","value":"vertical"},{"kind":"literal","name":"tabindex","value":"0"},{"kind":"literal","name":"data-ui-affordance","value":"resize"},{"kind":"attribute","name":"aria-label","expression":"resizeLabel","expressionPlan":{"source":"resizeLabel","ast":{"kind":"id","name":"resizeLabel"},"dependencies":["resizeLabel"]}},{"kind":"attribute","name":"hidden","expression":"not resizable or drawer or internalCollapsed","expressionPlan":{"source":"not resizable or drawer or internalCollapsed","ast":{"kind":"binary","op":"or","left":{"kind":"binary","op":"or","left":{"kind":"unary","op":"not","operand":{"kind":"id","name":"resizable"}},"right":{"kind":"id","name":"drawer"}},"right":{"kind":"id","name":"internalCollapsed"}},"dependencies":["drawer","internalCollapsed","resizable"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"guide"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]}],"ref":"resizer"}]},"declarations":[{"kind":"state","name":"internalCollapsed","type":"boolean","value":"false","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"state","name":"drawer","type":"boolean","value":"false","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"state","name":"resizing","type":"boolean","value":"false","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"event","name":"resize","type":"object","shape":{"kind":"object","fields":[{"name":"width","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"trigger","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["keyboard","pointer","programmatic"]},"optional":false}],"open":false},"bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"toggle","type":"object","shape":{"kind":"object","fields":[{"name":"open","type":{"kind":"terminal","name":"boolean"},"optional":false},{"name":"mode","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["docked","drawer"]},"optional":false},{"name":"trigger","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["keyboard","pointer","programmatic"]},"optional":false}],"open":false},"bubbles":true,"composed":true,"cancelable":false}],"root":{"kind":"native","element":"aside","choices":["aside"]}},source:{file:import.meta.url},css:""};
6
+ const T0 = ["",[],["div",["class","viewport"],["div",["class","content"],4]],["div",["class","resizer","role","separator","aria-orientation","vertical","tabindex","0","data-ui-affordance","resize"],["span",["class","guide","aria-hidden","true"]]]];
7
+ const T1 = ["",[]];
8
+ let P0, P1;
9
+ const S = { n: ["internalCollapsed","drawer","resizing"], t: ["b","b","b"], f: import.meta.url, g: "ui-sidebar", d: { "resize": [detailCheck(checkObject([["width", checkNumber, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "toggle": [detailCheck(checkObject([["open", checkBoolean, false], ["mode", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["docked","drawer"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared };
10
+ const D = { props: { "breakpoint": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "collapsed": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "maxWidth": { "required":false,"default":480, c: checkNumber, t: "number", j: 0, m: "n" }, "minWidth": { "required":false,"default":200, c: checkNumber, t: "number", j: 0, m: "n" }, "resizable": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "resizeLabel": { "required":false,"default":"Resize sidebar", c: checkString, t: "string", j: 0, m: "s" }, "resizeStep": { "required":false,"default":16, c: checkNumber, t: "number", j: 0, m: "n" }, "side": { "required":false,"values":["start","end"],"default":"start", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "width": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" } } };
11
+ const C = (host) => controller.default(host);
7
12
 
8
- export function createUiSidebar(options = {}) {
13
+ export function createUiSidebar(options = {}, html) {
9
14
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
- const projected = [];
11
15
  const element = document.createElement("aside");
12
16
  for (const [name, value] of Object.entries(attributes)) {
13
17
  if (value === null || value === undefined || value === false) continue;
14
18
  element.setAttribute(name, value === true ? "" : String(value));
15
19
  }
16
20
  element.setAttribute("data-component", "ui-sidebar");
17
- const element0 = document.createElement("div");
18
- element0.setAttribute("class", "viewport");
19
- const element1 = document.createElement("div");
20
- element1.setAttribute("class", "content");
21
- if (children.length > 0) {
22
- for (const child of children) {
23
- const node = typeof child === "string" ? document.createTextNode(child) : child;
24
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
25
- projected.push([node, ""]);
26
- element1.append(node);
21
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
22
+ const v = [false, false, false, null, null, null, null, null, null, null, null, null];
23
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
24
+ const m1 = (d) => {
25
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
26
+ const r = { n };
27
+ p1(r, -1, d);
28
+ return r;
29
+ };
30
+ const p1 = (r, c, d) => {
31
+ };
32
+ const p0 = (r, c, d) => {
33
+ if (c & 256) {
34
+ const x0 = v[8];
35
+ const s0 = toAttribute(x0, "aria-label");
36
+ if (s0 !== r.v0) writeAttribute(r.a1, "aria-label", r.v0 = s0);
27
37
  }
28
- } else {
29
- }
30
- element0.append(element1);
31
- element.append(element0);
32
- const element2 = document.createElement("div");
33
- element2.setAttribute("class", "resizer");
34
- element2.setAttribute("role", "separator");
35
- element2.setAttribute("aria-orientation", "vertical");
36
- element2.setAttribute("tabindex", "0");
37
- element2.setAttribute("data-ui-affordance", "resize");
38
- const value0 = componentProps["resizeLabel"] === undefined ? "Resize sidebar" : componentProps["resizeLabel"];
39
- if (value0 === null || value0 === undefined) element2.removeAttribute("aria-label");
40
- else element2.setAttribute("aria-label", String(value0));
41
- const element3 = document.createElement("span");
42
- element3.setAttribute("class", "guide");
43
- element3.setAttribute("aria-hidden", "true");
44
- element2.append(element3);
45
- element.append(element2);
46
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
47
- controller,
48
- });
38
+ if (c & 131) {
39
+ const x1 = ((!truthy(v[7]) || v[1]) || v[0]);
40
+ const s1 = toAttribute(x1, "hidden");
41
+ if (s1 !== r.v1) writeAttribute(r.a1, "hidden", r.v1 = s1);
42
+ }
43
+ if (c & 1029) {
44
+ const x2 = hostState(["side","internalCollapsed","resizing"], [v[10], v[0], v[2]]);
45
+ const s2 = x2;
46
+ if (s2 !== r.v2) writeAttribute(r.n, "data-ui-sidebar-state", (r.v2 = s2) === "" ? null : s2);
47
+ }
48
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
49
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
50
+ else if (r.b0 !== undefined) p1(r.b0, c, d);
51
+ };
52
+ const t0 = element.firstChild;
53
+ const t1 = t0.firstChild.firstChild;
54
+ const t2 = t0.nextSibling;
55
+ const R = { n: element, a1: t2, v0: null, v1: null, v2: undefined, a0: t1, e0: t1.nextSibling, b0: undefined, f0: undefined };
56
+ const I = { B };
57
+ const J = project(I, children, slots);
58
+ I.R = new Set();
59
+ attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, C, undefined, I);
60
+ manageProps(I);
61
+ I.r["resizer"] = t2;
49
62
  return element;
50
63
  }
51
-
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
2
  export interface UiSpinnerEventMap {
3
3
  }
4
4
  export interface UiSpinnerElement extends HTMLSpanElement {
@@ -1,12 +1,14 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
2
- import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, checkFormat, checkString } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-spinner.css";
4
4
 
5
- const definition = {...{"contract":{"tag":"ui-spinner","props":{"label":{"type":"string","required":false,"target":{"attribute":"label"},"default":""},"size":{"type":{"kind":"terminal","name":"keyword"},"values":["sm","md"],"required":false,"target":{"attribute":"size"},"default":"md"}}},"template":{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"ring"},{"kind":"attribute","name":"role","expression":"{ true: 'status', false: null }[concat(label != '')]","expressionPlan":{"source":"{ true: 'status', false: null }[concat(label != '')]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"status"}},{"key":"false","value":{"kind":"literal","value":null}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"binary","op":"!=","left":{"kind":"id","name":"label"},"right":{"kind":"literal","value":""}}]}},"dependencies":["label"]}},{"kind":"attribute","name":"aria-label","expression":"{ true: label, false: null }[concat(label != '')]","expressionPlan":{"source":"{ true: label, false: null }[concat(label != '')]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"id","name":"label"}},{"key":"false","value":{"kind":"literal","value":null}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"binary","op":"!=","left":{"kind":"id","name":"label"},"right":{"kind":"literal","value":""}}]}},"dependencies":["label"]}},{"kind":"attribute","name":"aria-live","expression":"{ true: 'polite', false: null }[concat(label != '')]","expressionPlan":{"source":"{ true: 'polite', false: null }[concat(label != '')]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"polite"}},{"key":"false","value":{"kind":"literal","value":null}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"binary","op":"!=","left":{"kind":"id","name":"label"},"right":{"kind":"literal","value":""}}]}},"dependencies":["label"]}},{"kind":"attribute","name":"aria-hidden","expression":"{ true: null, false: 'true' }[concat(label != '')]","expressionPlan":{"source":"{ true: null, false: 'true' }[concat(label != '')]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":null}},{"key":"false","value":{"kind":"literal","value":"true"}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"binary","op":"!=","left":{"kind":"id","name":"label"},"right":{"kind":"literal","value":""}}]}},"dependencies":["label"]}}],"children":[{"kind":"element","name":"svg","attributes":[{"kind":"literal","name":"viewBox","value":"0 0 50 50"},{"kind":"literal","name":"fill","value":"none"},{"kind":"literal","name":"aria-hidden","value":"true"},{"kind":"literal","name":"focusable","value":"false"}],"children":[{"kind":"element","name":"circle","attributes":[{"kind":"literal","name":"class","value":"track"},{"kind":"literal","name":"cx","value":"25"},{"kind":"literal","name":"cy","value":"25"},{"kind":"literal","name":"r","value":"20"}],"children":[]},{"kind":"element","name":"circle","attributes":[{"kind":"literal","name":"class","value":"arc"},{"kind":"literal","name":"cx","value":"25"},{"kind":"literal","name":"cy","value":"25"},{"kind":"literal","name":"r","value":"20"}],"children":[]}]}]},"declarations":[],"root":{"kind":"native","element":"span","choices":["span"]}},source:{file:import.meta.url},css:""};
5
+ const T0 = ["",[],["svg",["viewBox","0 0 50 50","fill","none","aria-hidden","true","focusable","false"],["circle",["class","track","cx","25","cy","25","r","20"]],["circle",["class","arc","cx","25","cy","25","r","20"]]]];
6
+ let P0;
7
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-spinner" };
8
+ const D = { props: { "label": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "size": { "required":false,"values":["sm","md"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] } } };
6
9
 
7
- export function createUiSpinner(options = {}) {
10
+ export function createUiSpinner(options = {}, html) {
8
11
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9
- const projected = [];
10
12
  const element = document.createElement("span");
11
13
  for (const [name, value] of Object.entries(attributes)) {
12
14
  if (value === null || value === undefined || value === false) continue;
@@ -14,26 +16,41 @@ export function createUiSpinner(options = {}) {
14
16
  }
15
17
  element.setAttribute("class", ["ring", element.getAttribute("class")].filter(Boolean).join(" "));
16
18
  element.setAttribute("data-component", "ui-spinner");
17
- const element0 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
18
- element0.setAttribute("viewBox", "0 0 50 50");
19
- element0.setAttribute("fill", "none");
20
- element0.setAttribute("aria-hidden", "true");
21
- element0.setAttribute("focusable", "false");
22
- const element1 = document.createElementNS("http://www.w3.org/2000/svg", "circle");
23
- element1.setAttribute("class", "track");
24
- element1.setAttribute("cx", "25");
25
- element1.setAttribute("cy", "25");
26
- element1.setAttribute("r", "20");
27
- element0.append(element1);
28
- const element2 = document.createElementNS("http://www.w3.org/2000/svg", "circle");
29
- element2.setAttribute("class", "arc");
30
- element2.setAttribute("cx", "25");
31
- element2.setAttribute("cy", "25");
32
- element2.setAttribute("r", "20");
33
- element0.append(element2);
34
- element.append(element0);
35
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
36
- });
19
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
20
+ const v = [null, null];
21
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
22
+ const p0 = (r, c, d) => {
23
+ if (c & 1073741825) {
24
+ const x0 = readIndex({ "true": "status", "false": null }, textCall("concat", [(v[0] !== "")]));
25
+ if (x0 !== NONCONFORMING) {
26
+ const s0 = toAttribute(x0, "role");
27
+ if (s0 !== r.v0) writeAttribute(r.n, "role", r.v0 = s0);
28
+ }
29
+ const x1 = readIndex({ "true": v[0], "false": null }, textCall("concat", [(v[0] !== "")]));
30
+ if (x1 !== NONCONFORMING) {
31
+ const s1 = toAttribute(x1, "aria-label");
32
+ if (s1 !== r.v1) writeAttribute(r.n, "aria-label", r.v1 = s1);
33
+ }
34
+ const x2 = readIndex({ "true": "polite", "false": null }, textCall("concat", [(v[0] !== "")]));
35
+ if (x2 !== NONCONFORMING) {
36
+ const s2 = toAttribute(x2, "aria-live");
37
+ if (s2 !== r.v2) writeAttribute(r.n, "aria-live", r.v2 = s2);
38
+ }
39
+ const x3 = readIndex({ "true": null, "false": "true" }, textCall("concat", [(v[0] !== "")]));
40
+ if (x3 !== NONCONFORMING) {
41
+ const s3 = toAttribute(x3, "aria-hidden");
42
+ if (s3 !== r.v3) writeAttribute(r.n, "aria-hidden", r.v3 = s3);
43
+ }
44
+ }
45
+ if (c & 2) {
46
+ const x4 = hostState(["size"], [v[1]]);
47
+ const s4 = x4;
48
+ if (s4 !== r.v4) writeAttribute(r.n, "data-ui-spinner-state", (r.v4 = s4) === "" ? null : s4);
49
+ }
50
+ };
51
+ const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined };
52
+ const I = { B };
53
+ attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
54
+ manageProps(I);
37
55
  return element;
38
56
  }
39
-
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
2
  export interface UiStackEventMap {
3
3
  }
4
4
  export interface UiStackElement extends HTMLDivElement {
@@ -1,32 +1,52 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
2
- import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, toText, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, project, fillSlot, checkBoolean, checkFormat, checkNumber } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-stack.css";
4
4
 
5
- const definition = {...{"contract":{"tag":"ui-stack","props":{"align":{"type":{"kind":"terminal","name":"keyword"},"values":["start","center","end","stretch"],"required":false,"target":{"attribute":"align"}},"fill":{"type":"boolean","required":false,"target":{"attribute":"fill"},"default":false},"gap":{"type":{"kind":"terminal","name":"keyword"},"values":["none","xs","s","m","l","xl"],"required":false,"target":{"attribute":"gap"}},"height":{"type":"number","required":false,"target":{"attribute":"height"}},"justify":{"type":{"kind":"terminal","name":"keyword"},"values":["start","center","end","between"],"required":false,"target":{"attribute":"justify"}}}},"template":{"kind":"element","name":"div","attributes":[{"kind":"attribute","name":"--ui-stack-height","expression":"height","expressionPlan":{"source":"height","ast":{"kind":"id","name":"height"},"dependencies":["height"]},"target":"style"}],"children":[{"kind":"slot"}]},"declarations":[],"root":{"kind":"native","element":"div","choices":["div"]}},source:{file:import.meta.url},css:""};
5
+ const T0 = ["",[],4];
6
+ const T1 = ["",[]];
7
+ let P0, P1;
8
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-stack" };
9
+ const D = { props: { "align": { "required":false,"values":["start","center","end","stretch"], c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "fill": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "gap": { "required":false,"values":["none","xs","s","m","l","xl"], c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "height": { "required":false, c: checkNumber, t: "number", j: 0, m: "n" }, "justify": { "required":false,"values":["start","center","end","between"], c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] } } };
6
10
 
7
- export function createUiStack(options = {}) {
11
+ export function createUiStack(options = {}, html) {
8
12
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9
- const projected = [];
10
13
  const element = document.createElement("div");
11
14
  for (const [name, value] of Object.entries(attributes)) {
12
15
  if (value === null || value === undefined || value === false) continue;
13
16
  element.setAttribute(name, value === true ? "" : String(value));
14
17
  }
15
- const value0 = componentProps["height"] === undefined ? null : componentProps["height"];
16
- if (value0 === null || value0 === undefined) element.removeAttribute("--ui-stack-height");
17
- else element.setAttribute("--ui-stack-height", String(value0));
18
18
  element.setAttribute("data-component", "ui-stack");
19
- if (children.length > 0) {
20
- for (const child of children) {
21
- const node = typeof child === "string" ? document.createTextNode(child) : child;
22
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
23
- projected.push([node, ""]);
24
- element.append(node);
19
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
20
+ const v = [null, null, null, null, null];
21
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
22
+ const m1 = (d) => {
23
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
24
+ const r = { n };
25
+ p1(r, -1, d);
26
+ return r;
27
+ };
28
+ const p1 = (r, c, d) => {
29
+ };
30
+ const p0 = (r, c, d) => {
31
+ if (c & 8) {
32
+ const x0 = v[3];
33
+ const s0 = toText(x0);
34
+ if (s0 !== r.v0) r.n.style.setProperty("--ui-stack-height", r.v0 = s0);
25
35
  }
26
- } else {
27
- }
28
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
29
- });
36
+ if (c & 31) {
37
+ const x1 = hostState(["fill","height","gap","align","justify"], [v[1], v[3], v[2], v[0], v[4]]);
38
+ const s1 = x1;
39
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-stack-state", (r.v1 = s1) === "" ? null : s1);
40
+ }
41
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
42
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
43
+ else if (r.b0 !== undefined) p1(r.b0, c, d);
44
+ };
45
+ const t0 = element.firstChild;
46
+ const R = { n: element, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
47
+ const I = { B };
48
+ const J = project(I, children, slots);
49
+ attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
50
+ manageProps(I);
30
51
  return element;
31
52
  }
32
-
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
2
  export interface UiStatusMessageEventMap {
3
3
  }
4
4
  export interface UiStatusMessageElement extends HTMLDivElement {