@threadlabs/looma 0.25.7 → 0.26.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 (436) 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 +8 -6
  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-scroll-area/ui-scroll-area.html +12 -0
  38. package/components/ui-search-result-row/ui-search-result-row.html +1 -1
  39. package/components/ui-search-shell/ui-search-shell.html +1 -1
  40. package/components/ui-section/ui-section.html +1 -1
  41. package/components/ui-select/ui-select.html +1 -1
  42. package/components/ui-separator/ui-separator.html +1 -1
  43. package/components/ui-sidebar/ui-sidebar.html +2 -2
  44. package/components/ui-spinner/ui-spinner.html +4 -4
  45. package/components/ui-stack/ui-stack.html +1 -1
  46. package/components/ui-status-message/ui-status-message.html +3 -3
  47. package/components/ui-switch/ui-switch.html +5 -5
  48. package/components/ui-tabs/ui-tabs.html +8 -8
  49. package/components/ui-text/ui-text.html +10 -10
  50. package/components/ui-textarea/ui-textarea.html +8 -8
  51. package/components/ui-toast/ui-toast.html +1 -1
  52. package/components/ui-toast-region/ui-toast-region.html +8 -8
  53. package/components/ui-tooltip/ui-tooltip.html +1 -1
  54. package/components/ui-tree-item/ui-tree-item.html +18 -18
  55. package/dist/index.js +1 -1
  56. package/package.json +3 -3
  57. package/styles/ui-action-bar.css +1 -1
  58. package/styles/ui-affordance-scope.css +1 -1
  59. package/styles/ui-avatar-group.css +1 -1
  60. package/styles/ui-avatar.css +1 -1
  61. package/styles/ui-badge.css +1 -1
  62. package/styles/ui-breadcrumb-item.css +1 -1
  63. package/styles/ui-breadcrumbs.css +1 -1
  64. package/styles/ui-button.css +1 -1
  65. package/styles/ui-callout.css +1 -1
  66. package/styles/ui-card.css +1 -1
  67. package/styles/ui-checkbox.css +1 -1
  68. package/styles/ui-cluster.css +1 -1
  69. package/styles/ui-combobox.css +1 -1
  70. package/styles/ui-container.css +1 -1
  71. package/styles/ui-context-menu.css +1 -1
  72. package/styles/ui-cover.css +1 -1
  73. package/styles/ui-description-item.css +1 -1
  74. package/styles/ui-description-list.css +1 -1
  75. package/styles/ui-dialog.css +7 -5
  76. package/styles/ui-disclosure.css +1 -1
  77. package/styles/ui-editable.css +1 -1
  78. package/styles/ui-editor-insert-table-grid.css +1 -1
  79. package/styles/ui-editor-mention-menu-item.css +1 -1
  80. package/styles/ui-editor-mention-menu.css +1 -1
  81. package/styles/ui-editor-slash-menu-group.css +1 -1
  82. package/styles/ui-editor-slash-menu-item.css +1 -1
  83. package/styles/ui-editor-slash-menu.css +1 -1
  84. package/styles/ui-editor-surface.css +1 -1
  85. package/styles/ui-editor-table-context-menu.css +1 -1
  86. package/styles/ui-editor-table-overlay.css +1 -1
  87. package/styles/ui-editor-table-toolbar.css +1 -1
  88. package/styles/ui-editor-toolbar.css +1 -1
  89. package/styles/ui-floating-action-button.css +1 -1
  90. package/styles/ui-form-field.css +1 -1
  91. package/styles/ui-grid.css +1 -1
  92. package/styles/ui-icon-button.css +1 -1
  93. package/styles/ui-icon.css +1 -1
  94. package/styles/ui-image.css +1 -1
  95. package/styles/ui-input-group.css +1 -1
  96. package/styles/ui-input.css +1 -1
  97. package/styles/ui-list-item.css +1 -1
  98. package/styles/ui-list.css +1 -1
  99. package/styles/ui-listbox.css +1 -1
  100. package/styles/ui-menu-group.css +1 -1
  101. package/styles/ui-menu-item.css +1 -1
  102. package/styles/ui-menu.css +1 -1
  103. package/styles/ui-meter.css +1 -1
  104. package/styles/ui-nav-item.css +1 -1
  105. package/styles/ui-page-header.css +1 -1
  106. package/styles/ui-popover.css +1 -1
  107. package/styles/ui-radio-group.css +1 -1
  108. package/styles/ui-radio.css +1 -1
  109. package/styles/ui-reel.css +1 -1
  110. package/styles/ui-scroll-area.css +12 -1
  111. package/styles/ui-search-result-row.css +1 -1
  112. package/styles/ui-search-shell.css +1 -1
  113. package/styles/ui-section.css +1 -1
  114. package/styles/ui-select.css +1 -1
  115. package/styles/ui-separator.css +1 -1
  116. package/styles/ui-sidebar.css +1 -1
  117. package/styles/ui-spinner.css +1 -1
  118. package/styles/ui-stack.css +1 -1
  119. package/styles/ui-status-message.css +1 -1
  120. package/styles/ui-switch.css +1 -1
  121. package/styles/ui-switcher.css +1 -1
  122. package/styles/ui-table.css +1 -1
  123. package/styles/ui-tabs.css +1 -1
  124. package/styles/ui-text.css +1 -1
  125. package/styles/ui-textarea.css +1 -1
  126. package/styles/ui-toast-region.css +1 -1
  127. package/styles/ui-toast.css +1 -1
  128. package/styles/ui-tooltip.css +1 -1
  129. package/styles/ui-top-bar.css +1 -1
  130. package/styles/ui-tree-item.css +1 -1
  131. package/styles/ui-tree.css +1 -1
  132. package/vanilla/UiActionBar.d.ts +1 -1
  133. package/vanilla/UiActionBar.js +70 -52
  134. package/vanilla/UiAffordanceScope.d.ts +1 -1
  135. package/vanilla/UiAffordanceScope.js +36 -17
  136. package/vanilla/UiAvatar.d.ts +1 -1
  137. package/vanilla/UiAvatar.js +72 -37
  138. package/vanilla/UiAvatarGroup.d.ts +1 -1
  139. package/vanilla/UiAvatarGroup.js +57 -26
  140. package/vanilla/UiBadge.d.ts +1 -1
  141. package/vanilla/UiBadge.js +49 -39
  142. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  143. package/vanilla/UiBreadcrumbItem.js +41 -26
  144. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  145. package/vanilla/UiBreadcrumbs.js +35 -24
  146. package/vanilla/UiButton.d.ts +1 -1
  147. package/vanilla/UiButton.js +444 -156
  148. package/vanilla/UiCallout.d.ts +1 -1
  149. package/vanilla/UiCallout.js +135 -111
  150. package/vanilla/UiCard.d.ts +1 -1
  151. package/vanilla/UiCard.js +147 -47
  152. package/vanilla/UiCheckbox.d.ts +1 -1
  153. package/vanilla/UiCheckbox.js +100 -58
  154. package/vanilla/UiCluster.d.ts +1 -1
  155. package/vanilla/UiCluster.js +35 -29
  156. package/vanilla/UiCombobox.d.ts +1 -1
  157. package/vanilla/UiCombobox.js +879 -283
  158. package/vanilla/UiContainer.d.ts +1 -1
  159. package/vanilla/UiContainer.js +35 -19
  160. package/vanilla/UiContextMenu.d.ts +1 -1
  161. package/vanilla/UiContextMenu.js +34 -23
  162. package/vanilla/UiCover.d.ts +1 -1
  163. package/vanilla/UiCover.js +35 -15
  164. package/vanilla/UiDescriptionItem.d.ts +1 -1
  165. package/vanilla/UiDescriptionItem.js +37 -24
  166. package/vanilla/UiDescriptionList.d.ts +1 -1
  167. package/vanilla/UiDescriptionList.js +35 -21
  168. package/vanilla/UiDialog.d.ts +1 -1
  169. package/vanilla/UiDialog.js +89 -42
  170. package/vanilla/UiDisclosure.d.ts +1 -1
  171. package/vanilla/UiDisclosure.js +113 -72
  172. package/vanilla/UiEditable.d.ts +1 -1
  173. package/vanilla/UiEditable.js +125 -58
  174. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  175. package/vanilla/UiEditorInsertTableGrid.js +85 -30
  176. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  177. package/vanilla/UiEditorMentionMenu.js +193 -75
  178. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  179. package/vanilla/UiEditorMentionMenuItem.js +81 -44
  180. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  181. package/vanilla/UiEditorSlashMenu.js +123 -78
  182. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  183. package/vanilla/UiEditorSlashMenuGroup.js +40 -34
  184. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  185. package/vanilla/UiEditorSlashMenuItem.js +98 -45
  186. package/vanilla/UiEditorSurface.d.ts +1 -1
  187. package/vanilla/UiEditorSurface.js +35 -15
  188. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  189. package/vanilla/UiEditorTableContextMenu.js +143 -60
  190. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  191. package/vanilla/UiEditorTableOverlay.js +212 -109
  192. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  193. package/vanilla/UiEditorTableToolbar.js +330 -113
  194. package/vanilla/UiEditorToolbar.d.ts +1 -1
  195. package/vanilla/UiEditorToolbar.js +37 -20
  196. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  197. package/vanilla/UiFloatingActionButton.js +44 -22
  198. package/vanilla/UiFormField.d.ts +1 -1
  199. package/vanilla/UiFormField.js +89 -65
  200. package/vanilla/UiGrid.d.ts +1 -1
  201. package/vanilla/UiGrid.js +39 -19
  202. package/vanilla/UiIcon.d.ts +1 -1
  203. package/vanilla/UiIcon.js +186 -27
  204. package/vanilla/UiIconButton.d.ts +1 -1
  205. package/vanilla/UiIconButton.js +82 -32
  206. package/vanilla/UiImage.d.ts +1 -1
  207. package/vanilla/UiImage.js +76 -69
  208. package/vanilla/UiInput.d.ts +1 -1
  209. package/vanilla/UiInput.js +51 -27
  210. package/vanilla/UiInputGroup.d.ts +1 -1
  211. package/vanilla/UiInputGroup.js +77 -56
  212. package/vanilla/UiList.d.ts +1 -1
  213. package/vanilla/UiList.js +91 -27
  214. package/vanilla/UiListItem.d.ts +1 -1
  215. package/vanilla/UiListItem.js +81 -74
  216. package/vanilla/UiListbox.d.ts +1 -1
  217. package/vanilla/UiListbox.js +204 -81
  218. package/vanilla/UiMenu.d.ts +1 -1
  219. package/vanilla/UiMenu.js +36 -20
  220. package/vanilla/UiMenuGroup.d.ts +1 -1
  221. package/vanilla/UiMenuGroup.js +60 -24
  222. package/vanilla/UiMenuItem.d.ts +1 -1
  223. package/vanilla/UiMenuItem.js +177 -77
  224. package/vanilla/UiMeter.d.ts +1 -1
  225. package/vanilla/UiMeter.js +77 -14
  226. package/vanilla/UiNavItem.d.ts +1 -1
  227. package/vanilla/UiNavItem.js +199 -123
  228. package/vanilla/UiPageHeader.d.ts +1 -1
  229. package/vanilla/UiPageHeader.js +91 -69
  230. package/vanilla/UiPopover.d.ts +1 -1
  231. package/vanilla/UiPopover.js +36 -20
  232. package/vanilla/UiRadio.d.ts +1 -1
  233. package/vanilla/UiRadio.js +82 -50
  234. package/vanilla/UiRadioGroup.d.ts +1 -1
  235. package/vanilla/UiRadioGroup.js +58 -30
  236. package/vanilla/UiReel.d.ts +1 -1
  237. package/vanilla/UiReel.js +35 -21
  238. package/vanilla/UiScrollArea.d.ts +2 -1
  239. package/vanilla/UiScrollArea.js +37 -20
  240. package/vanilla/UiSearchResultRow.d.ts +1 -1
  241. package/vanilla/UiSearchResultRow.js +98 -74
  242. package/vanilla/UiSearchShell.d.ts +1 -1
  243. package/vanilla/UiSearchShell.js +81 -64
  244. package/vanilla/UiSection.d.ts +1 -1
  245. package/vanilla/UiSection.js +71 -53
  246. package/vanilla/UiSelect.d.ts +1 -1
  247. package/vanilla/UiSelect.js +50 -26
  248. package/vanilla/UiSeparator.d.ts +1 -1
  249. package/vanilla/UiSeparator.js +23 -22
  250. package/vanilla/UiSidebar.d.ts +1 -1
  251. package/vanilla/UiSidebar.js +49 -37
  252. package/vanilla/UiSpinner.d.ts +1 -1
  253. package/vanilla/UiSpinner.js +43 -26
  254. package/vanilla/UiStack.d.ts +1 -1
  255. package/vanilla/UiStack.js +39 -19
  256. package/vanilla/UiStatusMessage.d.ts +1 -1
  257. package/vanilla/UiStatusMessage.js +70 -41
  258. package/vanilla/UiSwitch.d.ts +1 -1
  259. package/vanilla/UiSwitch.js +82 -51
  260. package/vanilla/UiSwitcher.d.ts +1 -1
  261. package/vanilla/UiSwitcher.js +36 -17
  262. package/vanilla/UiTable.d.ts +1 -1
  263. package/vanilla/UiTable.js +35 -17
  264. package/vanilla/UiTabs.d.ts +1 -1
  265. package/vanilla/UiTabs.js +97 -42
  266. package/vanilla/UiText.d.ts +1 -1
  267. package/vanilla/UiText.js +343 -117
  268. package/vanilla/UiTextarea.d.ts +1 -1
  269. package/vanilla/UiTextarea.js +56 -33
  270. package/vanilla/UiToast.d.ts +1 -1
  271. package/vanilla/UiToast.js +61 -40
  272. package/vanilla/UiToastRegion.d.ts +1 -1
  273. package/vanilla/UiToastRegion.js +85 -35
  274. package/vanilla/UiTooltip.d.ts +1 -1
  275. package/vanilla/UiTooltip.js +54 -31
  276. package/vanilla/UiTopBar.d.ts +1 -1
  277. package/vanilla/UiTopBar.js +70 -52
  278. package/vanilla/UiTree.d.ts +1 -1
  279. package/vanilla/UiTree.js +35 -17
  280. package/vanilla/UiTreeItem.d.ts +1 -1
  281. package/vanilla/UiTreeItem.js +219 -181
  282. package/vue/UiActionBar.vue +1 -1
  283. package/vue/UiAffordanceScope.vue +1 -1
  284. package/vue/UiAvatar.vue +7 -7
  285. package/vue/UiAvatarGroup.vue +3 -3
  286. package/vue/UiBadge.vue +1 -1
  287. package/vue/UiBreadcrumbItem.vue +1 -1
  288. package/vue/UiBreadcrumbs.vue +1 -1
  289. package/vue/UiButton.vue +1 -1
  290. package/vue/UiCallout.vue +1 -1
  291. package/vue/UiCard.vue +1 -1
  292. package/vue/UiCheckbox.vue +2 -2
  293. package/vue/UiCluster.vue +1 -1
  294. package/vue/UiCombobox.vue +25 -25
  295. package/vue/UiContainer.vue +1 -1
  296. package/vue/UiContextMenu.vue +1 -1
  297. package/vue/UiCover.vue +1 -1
  298. package/vue/UiDescriptionItem.vue +1 -1
  299. package/vue/UiDescriptionList.vue +1 -1
  300. package/vue/UiDialog.vue +8 -6
  301. package/vue/UiDisclosure.vue +6 -6
  302. package/vue/UiEditable.vue +3 -3
  303. package/vue/UiEditorInsertTableGrid.vue +4 -4
  304. package/vue/UiEditorMentionMenu.vue +2 -2
  305. package/vue/UiEditorMentionMenuItem.vue +1 -1
  306. package/vue/UiEditorSlashMenu.vue +2 -2
  307. package/vue/UiEditorSlashMenuGroup.vue +1 -1
  308. package/vue/UiEditorSlashMenuItem.vue +1 -1
  309. package/vue/UiEditorSurface.vue +1 -1
  310. package/vue/UiEditorTableContextMenu.vue +1 -1
  311. package/vue/UiEditorTableOverlay.vue +11 -11
  312. package/vue/UiEditorTableToolbar.vue +2 -2
  313. package/vue/UiEditorToolbar.vue +1 -1
  314. package/vue/UiFloatingActionButton.vue +1 -1
  315. package/vue/UiFormField.vue +1 -1
  316. package/vue/UiGrid.vue +1 -1
  317. package/vue/UiIcon.vue +1 -1
  318. package/vue/UiIconButton.vue +1 -1
  319. package/vue/UiImage.vue +1 -1
  320. package/vue/UiInput.vue +1 -1
  321. package/vue/UiInputGroup.vue +1 -1
  322. package/vue/UiList.vue +1 -1
  323. package/vue/UiListItem.vue +1 -1
  324. package/vue/UiListbox.vue +4 -4
  325. package/vue/UiMenu.vue +1 -1
  326. package/vue/UiMenuGroup.vue +1 -1
  327. package/vue/UiMenuItem.vue +2 -2
  328. package/vue/UiMeter.vue +1 -1
  329. package/vue/UiNavItem.vue +1 -1
  330. package/vue/UiPageHeader.vue +1 -1
  331. package/vue/UiPopover.vue +1 -1
  332. package/vue/UiRadio.vue +2 -2
  333. package/vue/UiRadioGroup.vue +1 -1
  334. package/vue/UiReel.vue +1 -1
  335. package/vue/UiScrollArea.d.ts +9 -0
  336. package/vue/UiScrollArea.vue +34 -2
  337. package/vue/UiSearchResultRow.vue +1 -1
  338. package/vue/UiSearchShell.vue +1 -1
  339. package/vue/UiSection.vue +1 -1
  340. package/vue/UiSelect.vue +1 -1
  341. package/vue/UiSeparator.vue +1 -1
  342. package/vue/UiSidebar.vue +3 -3
  343. package/vue/UiSpinner.vue +1 -1
  344. package/vue/UiStack.vue +1 -1
  345. package/vue/UiStatusMessage.vue +1 -1
  346. package/vue/UiSwitch.vue +2 -2
  347. package/vue/UiSwitcher.vue +1 -1
  348. package/vue/UiTable.vue +1 -1
  349. package/vue/UiTabs.vue +1 -1
  350. package/vue/UiText.vue +1 -1
  351. package/vue/UiTextarea.vue +1 -1
  352. package/vue/UiToast.vue +1 -1
  353. package/vue/UiToastRegion.vue +1 -1
  354. package/vue/UiTooltip.vue +2 -2
  355. package/vue/UiTopBar.vue +1 -1
  356. package/vue/UiTree.vue +1 -1
  357. package/vue/UiTreeItem.vue +6 -6
  358. package/vue/chunks/UiActionBar.js +1 -1
  359. package/vue/chunks/UiAffordanceScope.js +1 -1
  360. package/vue/chunks/UiAvatar.js +6 -6
  361. package/vue/chunks/UiAvatarGroup.js +3 -3
  362. package/vue/chunks/UiBadge.js +1 -1
  363. package/vue/chunks/UiBreadcrumbItem.js +1 -1
  364. package/vue/chunks/UiBreadcrumbs.js +1 -1
  365. package/vue/chunks/UiButton.js +1 -1
  366. package/vue/chunks/UiCallout.js +1 -1
  367. package/vue/chunks/UiCard.js +1 -1
  368. package/vue/chunks/UiCheckbox.js +2 -2
  369. package/vue/chunks/UiCluster.js +1 -1
  370. package/vue/chunks/UiCombobox.js +22 -22
  371. package/vue/chunks/UiContainer.js +1 -1
  372. package/vue/chunks/UiContextMenu.js +1 -1
  373. package/vue/chunks/UiCover.js +1 -1
  374. package/vue/chunks/UiDescriptionItem.js +1 -1
  375. package/vue/chunks/UiDescriptionList.js +1 -1
  376. package/vue/chunks/UiDialog.js +5 -4
  377. package/vue/chunks/UiDisclosure.js +6 -6
  378. package/vue/chunks/UiEditable.js +3 -3
  379. package/vue/chunks/UiEditorInsertTableGrid.js +4 -4
  380. package/vue/chunks/UiEditorMentionMenu.js +2 -2
  381. package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
  382. package/vue/chunks/UiEditorSlashMenu.js +2 -2
  383. package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
  384. package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
  385. package/vue/chunks/UiEditorSurface.js +1 -1
  386. package/vue/chunks/UiEditorTableContextMenu.js +1 -1
  387. package/vue/chunks/UiEditorTableOverlay.js +11 -11
  388. package/vue/chunks/UiEditorTableToolbar.js +2 -2
  389. package/vue/chunks/UiEditorToolbar.js +1 -1
  390. package/vue/chunks/UiFloatingActionButton.js +1 -1
  391. package/vue/chunks/UiFormField.js +1 -1
  392. package/vue/chunks/UiGrid.js +1 -1
  393. package/vue/chunks/UiIcon.js +1 -1
  394. package/vue/chunks/UiIconButton.js +1 -1
  395. package/vue/chunks/UiImage.js +1 -1
  396. package/vue/chunks/UiInput.js +1 -1
  397. package/vue/chunks/UiInputGroup.js +1 -1
  398. package/vue/chunks/UiList.js +1 -1
  399. package/vue/chunks/UiListItem.js +1 -1
  400. package/vue/chunks/UiListbox.js +4 -4
  401. package/vue/chunks/UiMenu.js +1 -1
  402. package/vue/chunks/UiMenuGroup.js +1 -1
  403. package/vue/chunks/UiMenuItem.js +2 -2
  404. package/vue/chunks/UiMeter.js +1 -1
  405. package/vue/chunks/UiNavItem.js +1 -1
  406. package/vue/chunks/UiPageHeader.js +1 -1
  407. package/vue/chunks/UiPopover.js +1 -1
  408. package/vue/chunks/UiRadio.js +2 -2
  409. package/vue/chunks/UiRadioGroup.js +1 -1
  410. package/vue/chunks/UiReel.js +1 -1
  411. package/vue/chunks/UiScrollArea.js +28 -5
  412. package/vue/chunks/UiSearchResultRow.js +1 -1
  413. package/vue/chunks/UiSearchShell.js +1 -1
  414. package/vue/chunks/UiSection.js +1 -1
  415. package/vue/chunks/UiSelect.js +1 -1
  416. package/vue/chunks/UiSeparator.js +1 -1
  417. package/vue/chunks/UiSidebar.js +2 -2
  418. package/vue/chunks/UiSpinner.js +1 -1
  419. package/vue/chunks/UiStack.js +1 -1
  420. package/vue/chunks/UiStatusMessage.js +1 -1
  421. package/vue/chunks/UiSwitch.js +2 -2
  422. package/vue/chunks/UiSwitcher.js +1 -1
  423. package/vue/chunks/UiTable.js +1 -1
  424. package/vue/chunks/UiTabs.js +1 -1
  425. package/vue/chunks/UiText.js +1 -1
  426. package/vue/chunks/UiTextarea.js +1 -1
  427. package/vue/chunks/UiToast.js +1 -1
  428. package/vue/chunks/UiToastRegion.js +1 -1
  429. package/vue/chunks/UiTooltip.js +2 -2
  430. package/vue/chunks/UiTopBar.js +1 -1
  431. package/vue/chunks/UiTree.js +1 -1
  432. package/vue/chunks/UiTreeItem.js +5 -5
  433. package/vue/chunks/control.js +41 -13
  434. package/vue/chunks/host.js +19 -18
  435. package/vue/components.css +1405 -1391
  436. package/vue/host.ts +22 -20
@@ -1,90 +1,114 @@
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 } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-search-result-row.css";
4
4
 
5
- const definition = {...{"contract":{"tag":"ui-search-result-row","props":{"density":{"type":{"kind":"terminal","name":"keyword"},"values":["comfortable","compact"],"required":false,"target":{"attribute":"density"},"default":"comfortable"},"disabled":{"type":"boolean","required":false,"target":{"attribute":"disabled"},"default":false},"selected":{"type":"boolean","required":false,"target":{"attribute":"aria-current"},"default":false}}},"template":{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"attribute","name":"disabled","expression":"disabled","expressionPlan":{"source":"disabled","ast":{"kind":"id","name":"disabled"},"dependencies":["disabled"]}},{"kind":"attribute","name":"aria-current","expression":"selected","expressionPlan":{"source":"selected","ast":{"kind":"id","name":"selected"},"dependencies":["selected"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"leading"}],"children":[{"kind":"slot","fallback":[],"name":"leading"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"title"}],"children":[{"kind":"slot","fallback":[],"name":"title"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"meta"}],"children":[{"kind":"slot","fallback":[],"name":"meta"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"excerpt"}],"children":[{"kind":"slot","fallback":[],"name":"excerpt"}]}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"trailing"}],"children":[{"kind":"slot","fallback":[],"name":"trailing"}]}]},"declarations":[],"root":{"kind":"native","element":"button","choices":["button"]}},source:{file:import.meta.url},css:""};
5
+ const T0 = ["",[],["span",["class","leading"],4],["span",["class","content"],["span",["class","title"],4],["span",["class","meta"],4],["span",["class","excerpt"],4]],["span",["class","trailing"],4]];
6
+ const T1 = ["",[]];
7
+ const T2 = ["",[]];
8
+ const T3 = ["",[]];
9
+ const T4 = ["",[]];
10
+ const T5 = ["",[]];
11
+ let P0, P1, P2, P3, P4, P5;
12
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-search-result-row" };
13
+ const D = { props: { "density": { "required":false,"values":["comfortable","compact"],"default":"comfortable", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "disabled": { "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" } } };
6
14
 
7
- export function createUiSearchResultRow(options = {}) {
15
+ export function createUiSearchResultRow(options = {}, html) {
8
16
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9
- const projected = [];
10
17
  const element = document.createElement("button");
11
18
  for (const [name, value] of Object.entries(attributes)) {
12
19
  if (value === null || value === undefined || value === false) continue;
13
20
  element.setAttribute(name, value === true ? "" : String(value));
14
21
  }
15
22
  if (!element.hasAttribute("type")) element.setAttribute("type", "button");
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["selected"] === undefined ? false : componentProps["selected"];
20
- if (typeof value1 === "boolean") element.setAttribute("aria-current", String(value1));
21
- else element.removeAttribute("aria-current");
22
23
  element.setAttribute("data-component", "ui-search-result-row");
23
- const element0 = document.createElement("span");
24
- element0.setAttribute("class", "leading");
25
- if (slots["leading"] ?? [].length > 0) {
26
- for (const child of slots["leading"] ?? []) {
27
- const node = typeof child === "string" ? document.createTextNode(child) : child;
28
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
29
- projected.push([node, "leading"]);
30
- element0.append(node);
24
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
25
+ const v = [null, null, null];
26
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
27
+ const m1 = (d) => {
28
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
29
+ const r = { n };
30
+ p1(r, -1, d);
31
+ return r;
32
+ };
33
+ const p1 = (r, c, d) => {
34
+ };
35
+ const m2 = (d) => {
36
+ const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
37
+ const r = { n };
38
+ p2(r, -1, d);
39
+ return r;
40
+ };
41
+ const p2 = (r, c, d) => {
42
+ };
43
+ const m3 = (d) => {
44
+ const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
45
+ const r = { n };
46
+ p3(r, -1, d);
47
+ return r;
48
+ };
49
+ const p3 = (r, c, d) => {
50
+ };
51
+ const m4 = (d) => {
52
+ const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
53
+ const r = { n };
54
+ p4(r, -1, d);
55
+ return r;
56
+ };
57
+ const p4 = (r, c, d) => {
58
+ };
59
+ const m5 = (d) => {
60
+ const n = (P5 ??= buildTemplate(T5)).cloneNode(true);
61
+ const r = { n };
62
+ p5(r, -1, d);
63
+ return r;
64
+ };
65
+ const p5 = (r, c, d) => {
66
+ };
67
+ const p0 = (r, c, d) => {
68
+ if (c & 2) {
69
+ const x0 = v[1];
70
+ const s0 = toAttribute(x0, "disabled");
71
+ if (s0 !== r.v0) writeAttribute(r.n, "disabled", r.v0 = s0);
31
72
  }
32
- } else {
33
- }
34
- element.append(element0);
35
- const element1 = document.createElement("span");
36
- element1.setAttribute("class", "content");
37
- const element2 = document.createElement("span");
38
- element2.setAttribute("class", "title");
39
- if (slots["title"] ?? [].length > 0) {
40
- for (const child of slots["title"] ?? []) {
41
- const node = typeof child === "string" ? document.createTextNode(child) : child;
42
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
43
- projected.push([node, "title"]);
44
- element2.append(node);
45
- }
46
- } else {
47
- }
48
- element1.append(element2);
49
- const element3 = document.createElement("span");
50
- element3.setAttribute("class", "meta");
51
- if (slots["meta"] ?? [].length > 0) {
52
- for (const child of slots["meta"] ?? []) {
53
- const node = typeof child === "string" ? document.createTextNode(child) : child;
54
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
55
- projected.push([node, "meta"]);
56
- element3.append(node);
57
- }
58
- } else {
59
- }
60
- element1.append(element3);
61
- const element4 = document.createElement("span");
62
- element4.setAttribute("class", "excerpt");
63
- if (slots["excerpt"] ?? [].length > 0) {
64
- for (const child of slots["excerpt"] ?? []) {
65
- const node = typeof child === "string" ? document.createTextNode(child) : child;
66
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
67
- projected.push([node, "excerpt"]);
68
- element4.append(node);
73
+ if (c & 4) {
74
+ const x1 = v[2];
75
+ const s1 = toAttribute(x1, "aria-current");
76
+ if (s1 !== r.v1) writeAttribute(r.n, "aria-current", r.v1 = s1);
69
77
  }
70
- } else {
71
- }
72
- element1.append(element4);
73
- element.append(element1);
74
- const element5 = document.createElement("span");
75
- element5.setAttribute("class", "trailing");
76
- if (slots["trailing"] ?? [].length > 0) {
77
- for (const child of slots["trailing"] ?? []) {
78
- const node = typeof child === "string" ? document.createTextNode(child) : child;
79
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
80
- projected.push([node, "trailing"]);
81
- element5.append(node);
78
+ if (c & 5) {
79
+ const x2 = hostState(["density","selected"], [v[0], v[2]]);
80
+ const s2 = x2;
81
+ if (s2 !== r.v2) writeAttribute(r.n, "data-ui-search-result-row-state", (r.v2 = s2) === "" ? null : s2);
82
82
  }
83
- } else {
84
- }
85
- element.append(element5);
86
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
87
- });
83
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "leading", J, false, undefined, d);
84
+ 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); } }
85
+ else if (r.b0 !== undefined) p1(r.b0, c, d);
86
+ if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "title", J, false, undefined, d);
87
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m2(d); at.before(r.b1.n); } }
88
+ else if (r.b1 !== undefined) p2(r.b1, c, d);
89
+ if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a3, r.e2, "meta", J, false, undefined, d);
90
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m3(d); at.before(r.b2.n); } }
91
+ else if (r.b2 !== undefined) p3(r.b2, c, d);
92
+ if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a4, r.e3, "excerpt", J, false, undefined, d);
93
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m4(d); at.before(r.b3.n); } }
94
+ else if (r.b3 !== undefined) p4(r.b3, c, d);
95
+ if (r.f4 === undefined) { r.f4 = 1; const at = fillSlot(r.a5, r.e4, "trailing", J, false, undefined, d);
96
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b4 = m5(d); at.before(r.b4.n); } }
97
+ else if (r.b4 !== undefined) p5(r.b4, c, d);
98
+ };
99
+ const t0 = element.firstChild;
100
+ const t1 = t0.firstChild;
101
+ const t2 = t0.nextSibling;
102
+ const t3 = t2.firstChild;
103
+ const t4 = t3.firstChild;
104
+ const t5 = t3.nextSibling;
105
+ const t6 = t5.firstChild;
106
+ const t7 = t5.nextSibling.firstChild;
107
+ const t8 = t2.nextSibling.firstChild;
108
+ const R = { n: element, v0: undefined, v1: undefined, v2: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a2: t4, e1: t4.nextSibling, b1: undefined, f1: undefined, a3: t6, e2: t6.nextSibling, b2: undefined, f2: undefined, a4: t7, e3: t7.nextSibling, b3: undefined, f3: undefined, a5: t8, e4: t8.nextSibling, b4: undefined, f4: undefined };
109
+ const I = { B };
110
+ const J = project(I, children, slots);
111
+ attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
112
+ manageProps(I);
88
113
  return element;
89
114
  }
90
-
@@ -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 UiSearchShellEventMap {
3
3
  close: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  }
@@ -1,78 +1,95 @@
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, dispatchDeclared, detailCheck, dispose, keywordFormat, acceptProps, manageProps, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkObject, checkString } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-search-shell/ui-search-shell.js";
4
4
  import "../styles/ui-search-shell.css";
5
5
 
6
- const definition = {...{"contract":{"tag":"ui-search-shell","props":{"dismissible":{"type":"boolean","required":false,"target":{"attribute":"dismissible"},"default":false},"label":{"type":"string","required":false,"target":{"attribute":"aria-label"},"default":"Search"},"modal":{"type":"boolean","required":false,"target":{"attribute":"modal"},"default":false},"open":{"type":"boolean","required":false,"target":{"attribute":"open"},"default":false}}},"template":{"kind":"element","name":"div","attributes":[],"children":[{"kind":"element","name":"dialog","attributes":[{"kind":"attribute","name":"aria-label","expression":"label","expressionPlan":{"source":"label","ast":{"kind":"id","name":"label"},"dependencies":["label"]}}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"panel"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"search"}],"children":[{"kind":"slot","fallback":[],"name":"search"}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"status"}],"children":[{"kind":"slot","fallback":[],"name":"status"}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"body"}],"children":[{"kind":"slot","fallback":[],"name":"body"}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"actions"}],"children":[{"kind":"slot","fallback":[],"name":"footer"}]}]}],"ref":"dialog"}]},"declarations":[{"kind":"state","name":"internalOpen","type":"boolean","value":"false","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"event","name":"close","type":"object","shape":{"kind":"object","fields":[{"name":"open","type":{"kind":"terminal","name":"boolean"},"optional":false},{"name":"reason","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["action","programmatic","light-dismiss","escape"]},"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":"div","choices":["div"]}},source:{file:import.meta.url},css:""};
6
+ const T0 = ["",[],["dialog",[],["div",["class","panel"],["div",["class","search"],4],["div",["class","status"],4],["div",["class","body"],4],["div",["class","actions"],4]]]];
7
+ const T1 = ["",[]];
8
+ const T2 = ["",[]];
9
+ const T3 = ["",[]];
10
+ const T4 = ["",[]];
11
+ let P0, P1, P2, P3, P4;
12
+ const S = { n: ["internalOpen"], t: ["b"], f: import.meta.url, g: "ui-search-shell", d: { "close": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared };
13
+ const D = { props: { "dismissible": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "label": { "required":false,"default":"Search", c: checkString, t: "string", j: 0, m: "s" }, "modal": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "open": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" } } };
14
+ const C = (host) => controller.default(host);
7
15
 
8
- export function createUiSearchShell(options = {}) {
16
+ export function createUiSearchShell(options = {}, html) {
9
17
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
- const projected = [];
11
18
  const element = document.createElement("div");
12
19
  for (const [name, value] of Object.entries(attributes)) {
13
20
  if (value === null || value === undefined || value === false) continue;
14
21
  element.setAttribute(name, value === true ? "" : String(value));
15
22
  }
16
23
  element.setAttribute("data-component", "ui-search-shell");
17
- const element0 = document.createElement("dialog");
18
- const value0 = componentProps["label"] === undefined ? "Search" : componentProps["label"];
19
- if (value0 === null || value0 === undefined) element0.removeAttribute("aria-label");
20
- else element0.setAttribute("aria-label", String(value0));
21
- const element1 = document.createElement("div");
22
- element1.setAttribute("class", "panel");
23
- const element2 = document.createElement("div");
24
- element2.setAttribute("class", "search");
25
- if (slots["search"] ?? [].length > 0) {
26
- for (const child of slots["search"] ?? []) {
27
- const node = typeof child === "string" ? document.createTextNode(child) : child;
28
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
29
- projected.push([node, "search"]);
30
- element2.append(node);
24
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
25
+ const v = [false, null, null, null, null];
26
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
27
+ const m1 = (d) => {
28
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
29
+ const r = { n };
30
+ p1(r, -1, d);
31
+ return r;
32
+ };
33
+ const p1 = (r, c, d) => {
34
+ };
35
+ const m2 = (d) => {
36
+ const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
37
+ const r = { n };
38
+ p2(r, -1, d);
39
+ return r;
40
+ };
41
+ const p2 = (r, c, d) => {
42
+ };
43
+ const m3 = (d) => {
44
+ const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
45
+ const r = { n };
46
+ p3(r, -1, d);
47
+ return r;
48
+ };
49
+ const p3 = (r, c, d) => {
50
+ };
51
+ const m4 = (d) => {
52
+ const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
53
+ const r = { n };
54
+ p4(r, -1, d);
55
+ return r;
56
+ };
57
+ const p4 = (r, c, d) => {
58
+ };
59
+ const p0 = (r, c, d) => {
60
+ if (c & 4) {
61
+ const x0 = v[2];
62
+ const s0 = toAttribute(x0, "aria-label");
63
+ if (s0 !== r.v0) writeAttribute(r.a0, "aria-label", r.v0 = s0);
31
64
  }
32
- } else {
33
- }
34
- element1.append(element2);
35
- const element3 = document.createElement("div");
36
- element3.setAttribute("class", "status");
37
- if (slots["status"] ?? [].length > 0) {
38
- for (const child of slots["status"] ?? []) {
39
- const node = typeof child === "string" ? document.createTextNode(child) : child;
40
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
41
- projected.push([node, "status"]);
42
- element3.append(node);
43
- }
44
- } else {
45
- }
46
- element1.append(element3);
47
- const element4 = document.createElement("div");
48
- element4.setAttribute("class", "body");
49
- if (slots["body"] ?? [].length > 0) {
50
- for (const child of slots["body"] ?? []) {
51
- const node = typeof child === "string" ? document.createTextNode(child) : child;
52
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
53
- projected.push([node, "body"]);
54
- element4.append(node);
55
- }
56
- } else {
57
- }
58
- element1.append(element4);
59
- const element5 = document.createElement("div");
60
- element5.setAttribute("class", "actions");
61
- if (slots["footer"] ?? [].length > 0) {
62
- for (const child of slots["footer"] ?? []) {
63
- const node = typeof child === "string" ? document.createTextNode(child) : child;
64
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
65
- projected.push([node, "footer"]);
66
- element5.append(node);
67
- }
68
- } else {
69
- }
70
- element1.append(element5);
71
- element0.append(element1);
72
- element.append(element0);
73
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
74
- controller,
75
- });
65
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "search", J, false, undefined, d);
66
+ 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); } }
67
+ else if (r.b0 !== undefined) p1(r.b0, c, d);
68
+ if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "status", J, false, undefined, d);
69
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m2(d); at.before(r.b1.n); } }
70
+ else if (r.b1 !== undefined) p2(r.b1, c, d);
71
+ if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a3, r.e2, "body", J, false, undefined, d);
72
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m3(d); at.before(r.b2.n); } }
73
+ else if (r.b2 !== undefined) p3(r.b2, c, d);
74
+ if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a4, r.e3, "footer", J, false, undefined, d);
75
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m4(d); at.before(r.b3.n); } }
76
+ else if (r.b3 !== undefined) p4(r.b3, c, d);
77
+ };
78
+ const t0 = element.firstChild;
79
+ const t1 = t0.firstChild;
80
+ const t2 = t1.firstChild;
81
+ const t3 = t2.firstChild;
82
+ const t4 = t2.nextSibling;
83
+ const t5 = t4.firstChild;
84
+ const t6 = t4.nextSibling;
85
+ const t7 = t6.firstChild;
86
+ const t8 = t6.nextSibling.firstChild;
87
+ const R = { a0: t0, v0: null, a1: t3, e0: t3.nextSibling, b0: undefined, f0: undefined, a2: t5, e1: t5.nextSibling, b1: undefined, f1: undefined, a3: t7, e2: t7.nextSibling, b2: undefined, f2: undefined, a4: t8, e3: t8.nextSibling, b3: undefined, f3: undefined };
88
+ const I = { B };
89
+ const J = project(I, children, slots);
90
+ I.R = new Set();
91
+ 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);
92
+ manageProps(I);
93
+ I.r["dialog"] = t0;
76
94
  return element;
77
95
  }
78
-
@@ -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 UiSectionEventMap {
3
3
  }
4
4
  export interface UiSectionElement extends HTMLElement {
@@ -1,67 +1,85 @@
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, toText, truthy, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, project, fillSlot, checkFormat, checkString } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-section.css";
4
4
 
5
- const definition = {...{"contract":{"tag":"ui-section","props":{"heading":{"type":"string","required":false,"target":{"attribute":"heading"},"default":""},"tone":{"type":{"kind":"terminal","name":"keyword"},"values":["neutral","danger"],"required":false,"target":{"attribute":"tone"},"default":"neutral"},"variant":{"type":{"kind":"terminal","name":"keyword"},"values":["plain","card","divided"],"required":false,"target":{"attribute":"variant"},"default":"plain"}}},"template":{"kind":"element","name":"section","attributes":[],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"head"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"copy"}],"children":[{"kind":"element","name":"h2","attributes":[{"kind":"literal","name":"class","value":"heading"},{"kind":"attribute","name":"hidden","expression":"not heading","expressionPlan":{"source":"not heading","ast":{"kind":"unary","op":"not","operand":{"kind":"id","name":"heading"}},"dependencies":["heading"]}}],"children":[{"kind":"text","value":"$heading","expressionPlan":{"source":"$heading","ast":{"kind":"id","name":"heading"},"dependencies":["heading"]}}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"description"}],"children":[{"kind":"slot","fallback":[],"name":"description"}]}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"actions"}],"children":[{"kind":"slot","fallback":[],"name":"actions"}]}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"body"}],"children":[{"kind":"slot"}]}]},"declarations":[],"root":{"kind":"native","element":"section","choices":["section"]}},source:{file:import.meta.url},css:""};
5
+ const T0 = ["",[],["span",["class","head"],["span",["class","copy"],["h2",["class","heading"],0],["span",["class","description"],4]],["span",["class","actions"],4]],["span",["class","body"],4]];
6
+ const T1 = ["",[]];
7
+ const T2 = ["",[]];
8
+ const T3 = ["",[]];
9
+ let P0, P1, P2, P3;
10
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-section" };
11
+ const D = { props: { "heading": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["neutral","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "variant": { "required":false,"values":["plain","card","divided"],"default":"plain", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] } } };
6
12
 
7
- export function createUiSection(options = {}) {
13
+ export function createUiSection(options = {}, html) {
8
14
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9
- const projected = [];
10
15
  const element = document.createElement("section");
11
16
  for (const [name, value] of Object.entries(attributes)) {
12
17
  if (value === null || value === undefined || value === false) continue;
13
18
  element.setAttribute(name, value === true ? "" : String(value));
14
19
  }
15
20
  element.setAttribute("data-component", "ui-section");
16
- const element0 = document.createElement("span");
17
- element0.setAttribute("class", "head");
18
- const element1 = document.createElement("span");
19
- element1.setAttribute("class", "copy");
20
- const element2 = document.createElement("h2");
21
- element2.setAttribute("class", "heading");
22
- const text3 = document.createTextNode("");
23
- element2.append(text3);
24
- element1.append(element2);
25
- const element4 = document.createElement("span");
26
- element4.setAttribute("class", "description");
27
- if (slots["description"] ?? [].length > 0) {
28
- for (const child of slots["description"] ?? []) {
29
- const node = typeof child === "string" ? document.createTextNode(child) : child;
30
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
31
- projected.push([node, "description"]);
32
- element4.append(node);
21
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
22
+ const v = [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 m2 = (d) => {
33
+ const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
34
+ const r = { n };
35
+ p2(r, -1, d);
36
+ return r;
37
+ };
38
+ const p2 = (r, c, d) => {
39
+ };
40
+ const m3 = (d) => {
41
+ const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
42
+ const r = { n };
43
+ p3(r, -1, d);
44
+ return r;
45
+ };
46
+ const p3 = (r, c, d) => {
47
+ };
48
+ const p0 = (r, c, d) => {
49
+ if (c & 1) {
50
+ const x0 = !truthy(v[0]);
51
+ const s0 = toAttribute(x0, "hidden");
52
+ if (s0 !== r.v0) writeAttribute(r.a0, "hidden", r.v0 = s0);
53
+ const x1 = v[0];
54
+ const s1 = toText(x1);
55
+ if (s1 !== r.v1) r.a1.data = r.v1 = s1;
33
56
  }
34
- } else {
35
- }
36
- element1.append(element4);
37
- element0.append(element1);
38
- const element5 = document.createElement("span");
39
- element5.setAttribute("class", "actions");
40
- if (slots["actions"] ?? [].length > 0) {
41
- for (const child of slots["actions"] ?? []) {
42
- const node = typeof child === "string" ? document.createTextNode(child) : child;
43
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
44
- projected.push([node, "actions"]);
45
- element5.append(node);
46
- }
47
- } else {
48
- }
49
- element0.append(element5);
50
- element.append(element0);
51
- const element6 = document.createElement("span");
52
- element6.setAttribute("class", "body");
53
- if (children.length > 0) {
54
- for (const child of children) {
55
- const node = typeof child === "string" ? document.createTextNode(child) : child;
56
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
57
- projected.push([node, ""]);
58
- element6.append(node);
57
+ if (c & 6) {
58
+ const x2 = hostState(["variant","tone"], [v[2], v[1]]);
59
+ const s2 = x2;
60
+ if (s2 !== r.v2) writeAttribute(r.n, "data-ui-section-state", (r.v2 = s2) === "" ? null : s2);
59
61
  }
60
- } else {
61
- }
62
- element.append(element6);
63
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
64
- });
62
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a2, r.e0, "description", J, false, undefined, d);
63
+ 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); } }
64
+ else if (r.b0 !== undefined) p1(r.b0, c, d);
65
+ if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a3, r.e1, "actions", J, false, undefined, d);
66
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m2(d); at.before(r.b1.n); } }
67
+ else if (r.b1 !== undefined) p2(r.b1, c, d);
68
+ if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a4, r.e2, "", J, false, undefined, d);
69
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m3(d); at.before(r.b2.n); } }
70
+ else if (r.b2 !== undefined) p3(r.b2, c, d);
71
+ };
72
+ const t0 = element.firstChild;
73
+ const t1 = t0.firstChild;
74
+ const t2 = t1.firstChild;
75
+ const t3 = t2.firstChild;
76
+ const t4 = t2.nextSibling.firstChild;
77
+ const t5 = t1.nextSibling.firstChild;
78
+ const t6 = t0.nextSibling.firstChild;
79
+ const R = { n: element, a0: t2, a1: t3, v0: null, v1: "", v2: undefined, a2: t4, e0: t4.nextSibling, b0: undefined, f0: undefined, a3: t5, e1: t5.nextSibling, b1: undefined, f1: undefined, a4: t6, e2: t6.nextSibling, b2: undefined, f2: undefined };
80
+ const I = { B };
81
+ const J = project(I, children, slots);
82
+ attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
83
+ manageProps(I);
65
84
  return element;
66
85
  }
67
-
@@ -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 UiSelectEventMap {
3
3
  }
4
4
  export interface UiSelectElement extends HTMLSelectElement {