@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,13 +1,29 @@
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, clearRegion, KeyedList, NONCONFORMING, readIndex, readMember, readsChanged, rec, recLength, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, checkBoolean, checkConstrained, checkFormat, checkList, checkObject, checkString } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor-table-toolbar/ui-editor-table-toolbar.js";
4
4
  import "../styles/ui-editor-table-toolbar.css";
5
5
 
6
- const definition = {...{"contract":{"tag":"ui-editor-table-toolbar","props":{"actions":{"type":{"kind":"list","item":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["align-left","align-center","align-right","background-none","background-gray","background-yellow","background-blue","background-green","background-red","add-row-before","add-row-after","add-column-before","add-column-after","toggle-header-row","toggle-header-column","move-row-up","move-row-down","move-column-left","move-column-right","clear-cells","merge-cells","split-cell","delete-row","delete-column","delete-table"]}},"required":false,"target":{"attribute":"actions"}},"cellAlignment":{"type":{"kind":"terminal","name":"keyword"},"values":["left","center","right"],"required":false,"target":{"attribute":"cellalignment"},"default":"left"},"cellBackground":{"type":"string","required":false,"target":{"attribute":"cellbackground"},"default":""},"headerColumn":{"type":"boolean","required":false,"target":{"attribute":"headercolumn"},"default":false},"headerRow":{"type":"boolean","required":false,"target":{"attribute":"headerrow"},"default":false},"open":{"type":"boolean","required":false,"target":{"attribute":"open"},"default":false}}},"template":{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"role","value":"toolbar"},{"kind":"literal","name":"aria-label","value":"Table actions"},{"kind":"attribute","name":"hidden","expression":"not open","expressionPlan":{"source":"not open","ast":{"kind":"unary","op":"not","operand":{"kind":"id","name":"open"}},"dependencies":["open"]}}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"group"},{"kind":"literal","name":"role","value":"group"},{"kind":"literal","name":"aria-label","value":"Cell alignment"}],"children":[{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"literal","name":"class","value":"icon-button"},{"kind":"attribute","name":"active","expression":"item.active","expressionPlan":{"source":"item.active","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"active"},"dependencies":["item.active"]},"target":"class"},{"kind":"attribute","name":"data-action","expression":"item.action","expressionPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}},{"kind":"attribute","name":"aria-label","expression":"item.label","expressionPlan":{"source":"item.label","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"label"},"dependencies":["item.label"]}},{"kind":"attribute","name":"title","expression":"item.label","expressionPlan":{"source":"item.label","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"label"},"dependencies":["item.label"]}},{"kind":"attribute","name":"aria-pressed","expression":"item.active","expressionPlan":{"source":"item.active","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"active"},"dependencies":["item.active"]}}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"attribute","name":"name","expression":"item.action","expressionPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}}],"children":[]}],"flow":{"kind":"each","item":"item","list":"alignments","listPlan":{"source":"alignments","ast":{"kind":"id","name":"alignments"},"dependencies":["alignments"]},"key":"item.action","keyPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}}}],"flow":{"kind":"if","test":"alignments","testPlan":{"source":"alignments","ast":{"kind":"id","name":"alignments"},"dependencies":["alignments"]}}},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"sep"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[],"flow":{"kind":"if","test":"alignments and structure","testPlan":{"source":"alignments and structure","ast":{"kind":"binary","op":"and","left":{"kind":"id","name":"alignments"},"right":{"kind":"id","name":"structure"}},"dependencies":["alignments","structure"]}}},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"group"},{"kind":"literal","name":"role","value":"group"},{"kind":"literal","name":"aria-label","value":"Table structure"}],"children":[{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"attribute","name":"data-action","expression":"item.action","expressionPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"attribute","name":"name","expression":"item.icon","expressionPlan":{"source":"item.icon","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"icon"},"dependencies":["item.icon"]}}],"children":[]},{"kind":"element","name":"span","attributes":[],"children":[{"kind":"text","value":"$item.label","expressionPlan":{"source":"$item.label","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"label"},"dependencies":["item.label"]}}]}],"flow":{"kind":"each","item":"item","list":"structure","listPlan":{"source":"structure","ast":{"kind":"id","name":"structure"},"dependencies":["structure"]},"key":"item.action","keyPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}}}],"flow":{"kind":"if","test":"structure","testPlan":{"source":"structure","ast":{"kind":"id","name":"structure"},"dependencies":["structure"]}}},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"sep"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[],"flow":{"kind":"if","test":"(alignments or structure) and hasOverflow","testPlan":{"source":"(alignments or structure) and hasOverflow","ast":{"kind":"binary","op":"and","left":{"kind":"binary","op":"or","left":{"kind":"id","name":"alignments"},"right":{"kind":"id","name":"structure"}},"right":{"kind":"id","name":"hasOverflow"}},"dependencies":["alignments","hasOverflow","structure"]}}},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"overflow"}],"children":[{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"literal","name":"class","value":"more"},{"kind":"literal","name":"data-action","value":"toggle-overflow"},{"kind":"literal","name":"aria-haspopup","value":"menu"},{"kind":"attribute","name":"aria-expanded","expression":"overflowOpen","expressionPlan":{"source":"overflowOpen","ast":{"kind":"id","name":"overflowOpen"},"dependencies":["overflowOpen"]}}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"literal","name":"name","value":"table"}],"children":[]},{"kind":"element","name":"span","attributes":[],"children":[{"kind":"text","value":"Table options"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"chevron"}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"literal","name":"name","value":"chevron-down"}],"children":[]}]}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"menu"},{"kind":"literal","name":"role","value":"menu"},{"kind":"literal","name":"aria-label","value":"More table actions"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"menu-section"},{"kind":"literal","name":"role","value":"none"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"menu-heading"},{"kind":"literal","name":"role","value":"presentation"}],"children":[{"kind":"text","value":"Background"}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"swatches"},{"kind":"literal","name":"role","value":"group"},{"kind":"literal","name":"aria-label","value":"Cell background"}],"children":[{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"literal","name":"class","value":"swatch-button"},{"kind":"attribute","name":"selected","expression":"swatch.selected","expressionPlan":{"source":"swatch.selected","ast":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"selected"},"dependencies":["swatch.selected"]},"target":"class"},{"kind":"literal","name":"role","value":"menuitemradio"},{"kind":"attribute","name":"aria-checked","expression":"swatch.selected","expressionPlan":{"source":"swatch.selected","ast":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"selected"},"dependencies":["swatch.selected"]}},{"kind":"attribute","name":"data-action","expression":"swatch.action","expressionPlan":{"source":"swatch.action","ast":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"action"},"dependencies":["swatch.action"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"swatch"},{"kind":"attribute","name":"default","expression":"not swatch.color","expressionPlan":{"source":"not swatch.color","ast":{"kind":"unary","op":"not","operand":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"color"}},"dependencies":["swatch.color"]},"target":"class"},{"kind":"attribute","name":"--_swatch","expression":"swatch.color","expressionPlan":{"source":"swatch.color","ast":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"color"},"dependencies":["swatch.color"]},"target":"style"}],"children":[]},{"kind":"element","name":"span","attributes":[],"children":[{"kind":"text","value":"$swatch.label","expressionPlan":{"source":"$swatch.label","ast":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"label"},"dependencies":["swatch.label"]}}]}],"flow":{"kind":"each","item":"swatch","list":"swatches","listPlan":{"source":"swatches","ast":{"kind":"id","name":"swatches"},"dependencies":["swatches"]},"key":"swatch.action","keyPlan":{"source":"swatch.action","ast":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"action"},"dependencies":["swatch.action"]}}}]}],"flow":{"kind":"if","test":"swatches","testPlan":{"source":"swatches","ast":{"kind":"id","name":"swatches"},"dependencies":["swatches"]}}},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"menu-section divided"},{"kind":"literal","name":"role","value":"none"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"menu-heading"},{"kind":"literal","name":"role","value":"presentation"}],"children":[{"kind":"text","value":"$section.heading","expressionPlan":{"source":"$section.heading","ast":{"kind":"member","object":{"kind":"id","name":"section"},"key":"heading"},"dependencies":["section.heading"]}}]},{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"attribute","name":"role","expression":"{ true: 'menuitemcheckbox', false: 'menuitem' }[concat(item.checkable)]","expressionPlan":{"source":"{ true: 'menuitemcheckbox', false: 'menuitem' }[concat(item.checkable)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"menuitemcheckbox"}},{"key":"false","value":{"kind":"literal","value":"menuitem"}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"member","object":{"kind":"id","name":"item"},"key":"checkable"}]}},"dependencies":["item.checkable"]}},{"kind":"attribute","name":"aria-checked","expression":"{ true: item.checked, false: null }[concat(item.checkable)]","expressionPlan":{"source":"{ true: item.checked, false: null }[concat(item.checkable)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"member","object":{"kind":"id","name":"item"},"key":"checked"}},{"key":"false","value":{"kind":"literal","value":null}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"member","object":{"kind":"id","name":"item"},"key":"checkable"}]}},"dependencies":["item.checkable","item.checked"]}},{"kind":"attribute","name":"danger","expression":"item.danger","expressionPlan":{"source":"item.danger","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"danger"},"dependencies":["item.danger"]},"target":"class"},{"kind":"attribute","name":"data-action","expression":"item.action","expressionPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"attribute","name":"name","expression":"item.icon","expressionPlan":{"source":"item.icon","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"icon"},"dependencies":["item.icon"]}}],"children":[]},{"kind":"element","name":"span","attributes":[],"children":[{"kind":"text","value":"$item.label","expressionPlan":{"source":"$item.label","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"label"},"dependencies":["item.label"]}}]}],"flow":{"kind":"each","item":"item","list":"section.items","listPlan":{"source":"section.items","ast":{"kind":"member","object":{"kind":"id","name":"section"},"key":"items"},"dependencies":["section.items"]},"key":"item.action","keyPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}}}],"flow":{"kind":"each","item":"section","list":"sections","listPlan":{"source":"sections","ast":{"kind":"id","name":"sections"},"dependencies":["sections"]},"key":"section.heading","keyPlan":{"source":"section.heading","ast":{"kind":"member","object":{"kind":"id","name":"section"},"key":"heading"},"dependencies":["section.heading"]}}}],"flow":{"kind":"if","test":"overflowOpen","testPlan":{"source":"overflowOpen","ast":{"kind":"id","name":"overflowOpen"},"dependencies":["overflowOpen"]}}}],"flow":{"kind":"if","test":"hasOverflow","testPlan":{"source":"hasOverflow","ast":{"kind":"id","name":"hasOverflow"},"dependencies":["hasOverflow"]}}}]},"declarations":[{"kind":"state","name":"alignments","shape":{"kind":"list","item":{"kind":"object","fields":[{"name":"action","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["align-left","align-center","align-right"]},"optional":false},{"name":"label","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"active","type":{"kind":"terminal","name":"boolean"},"optional":false}],"open":false}},"type":"list","value":"[]","expression":{"source":"[]","ast":{"kind":"array","items":[]},"dependencies":[]}},{"kind":"state","name":"structure","shape":{"kind":"list","item":{"kind":"object","fields":[{"name":"action","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["add-row-after","add-column-after"]},"optional":false},{"name":"label","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"icon","type":{"kind":"terminal","name":"string"},"optional":false}],"open":false}},"type":"list","value":"[]","expression":{"source":"[]","ast":{"kind":"array","items":[]},"dependencies":[]}},{"kind":"state","name":"swatches","type":"list(object({ action: string, label: string, color: string, selected: boolean }))","value":"[]","expression":{"source":"[]","ast":{"kind":"array","items":[]},"dependencies":[]}},{"kind":"state","name":"sections","type":"list(object({ heading: string, items: list(object({ action: string, label: string, icon: string, danger: boolean, checkable: boolean, checked: boolean })) }))","value":"[]","expression":{"source":"[]","ast":{"kind":"array","items":[]},"dependencies":[]}},{"kind":"state","name":"hasOverflow","type":"boolean","value":"false","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"state","name":"overflowOpen","type":"boolean","value":"false","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"event","name":"action","type":"object","shape":{"kind":"object","fields":[{"name":"action","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["align-left","align-center","align-right","background-none","background-gray","background-yellow","background-blue","background-green","background-red","add-row-before","add-row-after","add-column-before","add-column-after","toggle-header-row","toggle-header-column","move-row-up","move-row-down","move-column-left","move-column-right","clear-cells","merge-cells","split-cell","delete-row","delete-column","delete-table"]},"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 = ["",[],1,1,1,1,1];
7
+ const T1 = ["div",["class","group","role","group","aria-label","Cell alignment"],2];
8
+ const T2 = ["button",["type","button","class","icon-button"],["ui-icon",[]]];
9
+ const T3 = ["div",["class","sep","aria-hidden","true"]];
10
+ const T4 = ["div",["class","group","role","group","aria-label","Table structure"],2];
11
+ const T5 = ["button",["type","button"],["ui-icon",[]],["span",[],0]];
12
+ const T6 = ["div",["class","sep","aria-hidden","true"]];
13
+ const T7 = ["div",["class","overflow"],["button",["type","button","class","more","data-action","toggle-overflow","aria-haspopup","menu"],["ui-icon",["name","table"]],["span",[],"Table options"],["span",["class","chevron"],["ui-icon",["name","chevron-down"]]]],1];
14
+ const T8 = ["div",["class","menu","role","menu","aria-label","More table actions"],1,2];
15
+ const T9 = ["div",["class","menu-section","role","none"],["div",["class","menu-heading","role","presentation"],"Background"],["div",["class","swatches","role","group","aria-label","Cell background"],2]];
16
+ const T10 = ["button",["type","button","class","swatch-button","role","menuitemradio"],["span",["class","swatch"]],["span",[],0]];
17
+ const T11 = ["div",["class","menu-section divided","role","none"],["div",["class","menu-heading","role","presentation"],0],2];
18
+ const T12 = ["button",["type","button"],["ui-icon",[]],["span",[],0]];
19
+ let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12;
20
+ const E = new Map();
21
+ const S = { n: ["alignments","structure","swatches","sections","hasOverflow","overflowOpen"], t: [["l",["o",["action",["p",formatOf(keywordFormat),false],"label","s","active","b"]]],["l",["o",["action",["p",formatOf(keywordFormat),false],"label","s","icon","s"]]],["l",["o",["action","s","label","s","color","s","selected","b"]]],["l",["o",["heading","s","items",["l",["o",["action","s","label","s","icon","s","danger","b","checkable","b","checked","b"]]]]]],"b","b"], f: import.meta.url, g: "ui-editor-table-toolbar", d: { "action": [detailCheck(checkObject([["action", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["align-left","align-center","align-right","background-none","background-gray","background-yellow","background-blue","background-green","background-red","add-row-before","add-row-after","add-column-before","add-column-after","toggle-header-row","toggle-header-column","move-row-up","move-row-down","move-column-left","move-column-right","clear-cells","merge-cells","split-cell","delete-row","delete-column","delete-table"]}), false]], false)), true, true, false] }, x: dispatchDeclared };
22
+ const D = { props: { "actions": { "required":false, c: checkList(checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["align-left","align-center","align-right","background-none","background-gray","background-yellow","background-blue","background-green","background-red","add-row-before","add-row-after","add-column-before","add-column-after","toggle-header-row","toggle-header-column","move-row-up","move-row-down","move-column-left","move-column-right","clear-cells","merge-cells","split-cell","delete-row","delete-column","delete-table"]})), j: 1, m: ["l",["p",formatOf(keywordFormat),false]] }, "cellAlignment": { "required":false,"values":["left","center","right"],"default":"left", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "cellBackground": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "headerColumn": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "headerRow": { "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" } } };
23
+ const C = (host) => controller.default(host);
7
24
 
8
- export function createUiEditorTableToolbar(options = {}) {
25
+ export function createUiEditorTableToolbar(options = {}, html) {
9
26
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
- const projected = [];
11
27
  const element = document.createElement("div");
12
28
  for (const [name, value] of Object.entries(attributes)) {
13
29
  if (value === null || value === undefined || value === false) continue;
@@ -16,113 +32,314 @@ export function createUiEditorTableToolbar(options = {}) {
16
32
  if (!element.hasAttribute("role")) element.setAttribute("role", "toolbar");
17
33
  if (!element.hasAttribute("aria-label")) element.setAttribute("aria-label", "Table actions");
18
34
  element.setAttribute("data-component", "ui-editor-table-toolbar");
19
- const element0 = document.createElement("div");
20
- element0.setAttribute("class", "group");
21
- element0.setAttribute("role", "group");
22
- element0.setAttribute("aria-label", "Cell alignment");
23
- const element1 = document.createElement("button");
24
- element1.setAttribute("type", "button");
25
- element1.setAttribute("class", "icon-button");
26
- const element2 = document.createElement("ui-icon");
27
- element1.append(element2);
28
- element0.append(element1);
29
- element.append(element0);
30
- const element3 = document.createElement("div");
31
- element3.setAttribute("class", "sep");
32
- element3.setAttribute("aria-hidden", "true");
33
- element.append(element3);
34
- const element4 = document.createElement("div");
35
- element4.setAttribute("class", "group");
36
- element4.setAttribute("role", "group");
37
- element4.setAttribute("aria-label", "Table structure");
38
- const element5 = document.createElement("button");
39
- element5.setAttribute("type", "button");
40
- const element6 = document.createElement("ui-icon");
41
- element5.append(element6);
42
- const element7 = document.createElement("span");
43
- const text8 = document.createTextNode("");
44
- element7.append(text8);
45
- element5.append(element7);
46
- element4.append(element5);
47
- element.append(element4);
48
- const element9 = document.createElement("div");
49
- element9.setAttribute("class", "sep");
50
- element9.setAttribute("aria-hidden", "true");
51
- element.append(element9);
52
- const element10 = document.createElement("div");
53
- element10.setAttribute("class", "overflow");
54
- const element11 = document.createElement("button");
55
- element11.setAttribute("type", "button");
56
- element11.setAttribute("class", "more");
57
- element11.setAttribute("data-action", "toggle-overflow");
58
- element11.setAttribute("aria-haspopup", "menu");
59
- const element12 = document.createElement("ui-icon");
60
- element12.setAttribute("name", "table");
61
- element11.append(element12);
62
- const element13 = document.createElement("span");
63
- element13.append("Table options");
64
- element11.append(element13);
65
- const element14 = document.createElement("span");
66
- element14.setAttribute("class", "chevron");
67
- const element15 = document.createElement("ui-icon");
68
- element15.setAttribute("name", "chevron-down");
69
- element14.append(element15);
70
- element11.append(element14);
71
- element10.append(element11);
72
- const element16 = document.createElement("div");
73
- element16.setAttribute("class", "menu");
74
- element16.setAttribute("role", "menu");
75
- element16.setAttribute("aria-label", "More table actions");
76
- const element17 = document.createElement("div");
77
- element17.setAttribute("class", "menu-section");
78
- element17.setAttribute("role", "none");
79
- const element18 = document.createElement("div");
80
- element18.setAttribute("class", "menu-heading");
81
- element18.setAttribute("role", "presentation");
82
- element18.append("Background");
83
- element17.append(element18);
84
- const element19 = document.createElement("div");
85
- element19.setAttribute("class", "swatches");
86
- element19.setAttribute("role", "group");
87
- element19.setAttribute("aria-label", "Cell background");
88
- const element20 = document.createElement("button");
89
- element20.setAttribute("type", "button");
90
- element20.setAttribute("class", "swatch-button");
91
- element20.setAttribute("role", "menuitemradio");
92
- const element21 = document.createElement("span");
93
- element21.setAttribute("class", "swatch");
94
- element20.append(element21);
95
- const element22 = document.createElement("span");
96
- const text23 = document.createTextNode("");
97
- element22.append(text23);
98
- element20.append(element22);
99
- element19.append(element20);
100
- element17.append(element19);
101
- element16.append(element17);
102
- const element24 = document.createElement("div");
103
- element24.setAttribute("class", "menu-section divided");
104
- element24.setAttribute("role", "none");
105
- const element25 = document.createElement("div");
106
- element25.setAttribute("class", "menu-heading");
107
- element25.setAttribute("role", "presentation");
108
- const text26 = document.createTextNode("");
109
- element25.append(text26);
110
- element24.append(element25);
111
- const element27 = document.createElement("button");
112
- element27.setAttribute("type", "button");
113
- const element28 = document.createElement("ui-icon");
114
- element27.append(element28);
115
- const element29 = document.createElement("span");
116
- const text30 = document.createTextNode("");
117
- element29.append(text30);
118
- element27.append(element29);
119
- element24.append(element27);
120
- element16.append(element24);
121
- element10.append(element16);
122
- element.append(element10);
123
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
124
- controller,
125
- });
35
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
36
+ const v = [[], [], [], [], false, false, null, null, null, null, null, null];
37
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
38
+ const m1 = (d) => {
39
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
40
+ const t0 = n.firstChild;
41
+ const r = { n, L0: new KeyedList(t0, t0.nextSibling, m2, p2, (o) => readMember(o, "action"), "item") };
42
+ p1(r, -1, d);
43
+ return r;
44
+ };
45
+ const p1 = (r, c, d) => {
46
+ if (c & 1073741825) r.L0.update(v[0], d, c);
47
+ };
48
+ const m2 = (o, j, l) => {
49
+ const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
50
+ const t0 = n.firstChild;
51
+ const r = { k: undefined, i: o, n, x: 0, y: 0, a1: t0, w: 0, v0: false, v1: null, v2: null, v3: null, v4: null, v5: null };
52
+ p2(r, -1, E);
53
+ return r;
54
+ };
55
+ const p2 = (r, c, d) => {
56
+ const o = r.i;
57
+ if (c & 1073741824) {
58
+ r.w = 0;
59
+ const x0 = trackContainer(r, readMember(o, "active"));
60
+ const s0 = truthy(x0);
61
+ if (s0 !== r.v0) r.n.classList.toggle("active", r.v0 = s0);
62
+ const x1 = trackContainer(r, readMember(o, "action"));
63
+ const s1 = toAttribute(x1, "data-action");
64
+ if (s1 !== r.v1) writeAttribute(r.n, "data-action", r.v1 = s1);
65
+ const x2 = trackContainer(r, readMember(o, "label"));
66
+ const s2 = toAttribute(x2, "aria-label");
67
+ if (s2 !== r.v2) writeAttribute(r.n, "aria-label", r.v2 = s2);
68
+ const s3 = toAttribute(x2, "title");
69
+ if (s3 !== r.v3) writeAttribute(r.n, "title", r.v3 = s3);
70
+ const s4 = toAttribute(x0, "aria-pressed");
71
+ if (s4 !== r.v4) writeAttribute(r.n, "aria-pressed", r.v4 = s4);
72
+ const s5 = toAttribute(x1, "name");
73
+ if (s5 !== r.v5) writeAttribute(r.a1, "name", r.v5 = s5);
74
+ }
75
+ };
76
+ const m3 = (d) => {
77
+ const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
78
+ const r = { n };
79
+ p3(r, -1, d);
80
+ return r;
81
+ };
82
+ const p3 = (r, c, d) => {
83
+ };
84
+ const m4 = (d) => {
85
+ const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
86
+ const t0 = n.firstChild;
87
+ const r = { n, L0: new KeyedList(t0, t0.nextSibling, m5, p5, (o) => readMember(o, "action"), "item") };
88
+ p4(r, -1, d);
89
+ return r;
90
+ };
91
+ const p4 = (r, c, d) => {
92
+ if (c & 1073741826) r.L0.update(v[1], d, c);
93
+ };
94
+ const m5 = (o, j, l) => {
95
+ const n = (P5 ??= buildTemplate(T5)).cloneNode(true);
96
+ const t0 = n.firstChild;
97
+ const t1 = t0.nextSibling.firstChild;
98
+ const r = { k: undefined, i: o, n, x: 0, y: 0, a1: t0, a2: t1, w: 0, v0: null, v1: null, v2: "" };
99
+ p5(r, -1, E);
100
+ return r;
101
+ };
102
+ const p5 = (r, c, d) => {
103
+ const o = r.i;
104
+ if (c & 1073741824) {
105
+ r.w = 0;
106
+ const x0 = trackContainer(r, readMember(o, "action"));
107
+ const s0 = toAttribute(x0, "data-action");
108
+ if (s0 !== r.v0) writeAttribute(r.n, "data-action", r.v0 = s0);
109
+ const x1 = trackContainer(r, readMember(o, "icon"));
110
+ const s1 = toAttribute(x1, "name");
111
+ if (s1 !== r.v1) writeAttribute(r.a1, "name", r.v1 = s1);
112
+ const x2 = trackContainer(r, readMember(o, "label"));
113
+ const s2 = toText(x2);
114
+ if (s2 !== r.v2) r.a2.data = r.v2 = s2;
115
+ }
116
+ };
117
+ const m6 = (d) => {
118
+ const n = (P6 ??= buildTemplate(T6)).cloneNode(true);
119
+ const r = { n };
120
+ p6(r, -1, d);
121
+ return r;
122
+ };
123
+ const p6 = (r, c, d) => {
124
+ };
125
+ const m7 = (d) => {
126
+ const n = (P7 ??= buildTemplate(T7)).cloneNode(true);
127
+ const t0 = n.firstChild;
128
+ const t1 = t0.nextSibling;
129
+ const r = { n, a0: t0, v0: null, a1: t1, e0: t1.nextSibling, b0: undefined };
130
+ p7(r, -1, d);
131
+ return r;
132
+ };
133
+ const p7 = (r, c, d) => {
134
+ if (c & 32) {
135
+ const x0 = v[5];
136
+ const s0 = toAttribute(x0, "aria-expanded");
137
+ if (s0 !== r.v0) writeAttribute(r.a0, "aria-expanded", r.v0 = s0);
138
+ }
139
+ if (c & 32) {
140
+ const t0 = v[5];
141
+ if (true) {
142
+ {
143
+ r.b0 = undefined;
144
+ clearRegion(r.a1, r.e0);
145
+ if (t0) { r.b0 = m8(d); r.e0.before(r.b0.n); }
146
+ }
147
+ } else if (r.b0 !== undefined) p8(r.b0, c, d);
148
+ } else if (r.b0 !== undefined) p8(r.b0, c, d);
149
+ };
150
+ const m8 = (d) => {
151
+ const n = (P8 ??= buildTemplate(T8)).cloneNode(true);
152
+ const t0 = n.firstChild;
153
+ const t1 = t0.nextSibling.nextSibling;
154
+ const r = { n, a0: t0, e0: t0.nextSibling, b0: undefined, q0: undefined, L1: new KeyedList(t1, t1.nextSibling, m11, p11, (o) => readMember(o, "heading"), "section") };
155
+ p8(r, -1, d);
156
+ return r;
157
+ };
158
+ const p8 = (r, c, d) => {
159
+ if (c & 1073741828) {
160
+ const f4 = [];
161
+ const t0 = truthy(recLength(f4, rec(f4, v[2])));
162
+ if (c === -1 || c & 4 || readsChanged(r.q0, f4)) {
163
+ r.q0 = f4;
164
+ {
165
+ r.b0 = undefined;
166
+ clearRegion(r.a0, r.e0);
167
+ if (t0) { r.b0 = m9(d); r.e0.before(r.b0.n); }
168
+ }
169
+ } else if (r.b0 !== undefined) p9(r.b0, c, d);
170
+ } else if (r.b0 !== undefined) p9(r.b0, c, d);
171
+ if (c & 1073741832) r.L1.update(v[3], d, c);
172
+ };
173
+ const m9 = (d) => {
174
+ const n = (P9 ??= buildTemplate(T9)).cloneNode(true);
175
+ const t0 = n.firstChild.nextSibling.firstChild;
176
+ const r = { n, L0: new KeyedList(t0, t0.nextSibling, m10, p10, (o) => readMember(o, "action"), "swatch") };
177
+ p9(r, -1, d);
178
+ return r;
179
+ };
180
+ const p9 = (r, c, d) => {
181
+ if (c & 1073741828) r.L0.update(v[2], d, c);
182
+ };
183
+ const m10 = (o, j, l) => {
184
+ const n = (P10 ??= buildTemplate(T10)).cloneNode(true);
185
+ const t0 = n.firstChild;
186
+ const t1 = t0.nextSibling.firstChild;
187
+ const r = { k: undefined, i: o, n, x: 0, y: 0, a1: t0, a2: t1, w: 0, v0: false, v1: null, v2: null, v3: false, v4: undefined, v5: "" };
188
+ p10(r, -1, E);
189
+ return r;
190
+ };
191
+ const p10 = (r, c, d) => {
192
+ const o = r.i;
193
+ if (c & 1073741824) {
194
+ r.w = 0;
195
+ const x0 = trackContainer(r, readMember(o, "selected"));
196
+ const s0 = truthy(x0);
197
+ if (s0 !== r.v0) r.n.classList.toggle("selected", r.v0 = s0);
198
+ const s1 = toAttribute(x0, "aria-checked");
199
+ if (s1 !== r.v1) writeAttribute(r.n, "aria-checked", r.v1 = s1);
200
+ const x1 = trackContainer(r, readMember(o, "action"));
201
+ const s2 = toAttribute(x1, "data-action");
202
+ if (s2 !== r.v2) writeAttribute(r.n, "data-action", r.v2 = s2);
203
+ const x2 = !truthy(trackContainer(r, readMember(o, "color")));
204
+ const s3 = x2;
205
+ if (s3 !== r.v3) r.a1.classList.toggle("default", r.v3 = s3);
206
+ const x3 = trackContainer(r, readMember(o, "color"));
207
+ const s4 = toText(x3);
208
+ if (s4 !== r.v4) r.a1.style.setProperty("--_swatch", r.v4 = s4);
209
+ const x4 = trackContainer(r, readMember(o, "label"));
210
+ const s5 = toText(x4);
211
+ if (s5 !== r.v5) r.a2.data = r.v5 = s5;
212
+ }
213
+ };
214
+ const m11 = (o, j, l) => {
215
+ const n = (P11 ??= buildTemplate(T11)).cloneNode(true);
216
+ const t0 = n.firstChild;
217
+ const t1 = t0.firstChild;
218
+ const t2 = t0.nextSibling;
219
+ const r = { k: undefined, i: o, n, x: 0, y: 0, a0: t1, w: 0, v0: "", L0: new KeyedList(t2, t2.nextSibling, m12, p12, (o) => readMember(o, "action"), "item") };
220
+ p11(r, -1, E);
221
+ return r;
222
+ };
223
+ const p11 = (r, c, d) => {
224
+ const o = r.i;
225
+ if (c & 1073741824) {
226
+ r.w = 0;
227
+ const x0 = trackContainer(r, readMember(o, "heading"));
228
+ const s0 = toText(x0);
229
+ if (s0 !== r.v0) r.a0.data = r.v0 = s0;
230
+ }
231
+ if (c & 1073741824) r.L0.update(readMember(o, "items"), d, c);
232
+ };
233
+ const m12 = (o, j, l) => {
234
+ const n = (P12 ??= buildTemplate(T12)).cloneNode(true);
235
+ const t0 = n.firstChild;
236
+ const t1 = t0.nextSibling.firstChild;
237
+ const r = { k: undefined, i: o, n, x: 0, y: 0, a1: t0, a2: t1, w: 0, v0: null, v1: null, v2: false, v3: null, v4: null, v5: "" };
238
+ p12(r, -1, E);
239
+ return r;
240
+ };
241
+ const p12 = (r, c, d) => {
242
+ const o = r.i;
243
+ if (c & 1073741824) {
244
+ r.w = 0;
245
+ const x0 = trackContainer(r, readIndex({ "true": "menuitemcheckbox", "false": "menuitem" }, textCall("concat", [trackContainer(r, readMember(o, "checkable"))])));
246
+ if (x0 !== NONCONFORMING) {
247
+ const s0 = toAttribute(x0, "role");
248
+ if (s0 !== r.v0) writeAttribute(r.n, "role", r.v0 = s0);
249
+ }
250
+ const x1 = trackContainer(r, readIndex({ "true": readMember(o, "checked"), "false": null }, textCall("concat", [trackContainer(r, readMember(o, "checkable"))])));
251
+ if (x1 !== NONCONFORMING) {
252
+ const s1 = toAttribute(x1, "aria-checked");
253
+ if (s1 !== r.v1) writeAttribute(r.n, "aria-checked", r.v1 = s1);
254
+ }
255
+ const x2 = trackContainer(r, readMember(o, "danger"));
256
+ const s2 = truthy(x2);
257
+ if (s2 !== r.v2) r.n.classList.toggle("danger", r.v2 = s2);
258
+ const x3 = trackContainer(r, readMember(o, "action"));
259
+ const s3 = toAttribute(x3, "data-action");
260
+ if (s3 !== r.v3) writeAttribute(r.n, "data-action", r.v3 = s3);
261
+ const x4 = trackContainer(r, readMember(o, "icon"));
262
+ const s4 = toAttribute(x4, "name");
263
+ if (s4 !== r.v4) writeAttribute(r.a1, "name", r.v4 = s4);
264
+ const x5 = trackContainer(r, readMember(o, "label"));
265
+ const s5 = toText(x5);
266
+ if (s5 !== r.v5) r.a2.data = r.v5 = s5;
267
+ }
268
+ };
269
+ const p0 = (r, c, d) => {
270
+ if (c & 2048) {
271
+ const x0 = !truthy(v[11]);
272
+ const s0 = toAttribute(x0, "hidden");
273
+ if (s0 !== r.v0) writeAttribute(r.n, "hidden", r.v0 = s0);
274
+ }
275
+ if (c & 1073741825) {
276
+ const f0 = [];
277
+ const t0 = truthy(recLength(f0, rec(f0, v[0])));
278
+ if (c === -1 || c & 1 || readsChanged(r.q0, f0)) {
279
+ r.q0 = f0;
280
+ {
281
+ r.b0 = undefined;
282
+ clearRegion(r.a1, r.e0);
283
+ if (t0) { r.b0 = m1(d); r.e0.before(r.b0.n); }
284
+ }
285
+ } else if (r.b0 !== undefined) p1(r.b0, c, d);
286
+ } else if (r.b0 !== undefined) p1(r.b0, c, d);
287
+ if (c & 1073741827) {
288
+ const f1 = [];
289
+ const t1 = (truthy(recLength(f1, rec(f1, v[0]))) && truthy(recLength(f1, rec(f1, v[1]))));
290
+ if (c === -1 || c & 3 || readsChanged(r.q1, f1)) {
291
+ r.q1 = f1;
292
+ {
293
+ r.b1 = undefined;
294
+ clearRegion(r.a2, r.e1);
295
+ if (t1) { r.b1 = m3(d); r.e1.before(r.b1.n); }
296
+ }
297
+ } else if (r.b1 !== undefined) p3(r.b1, c, d);
298
+ } else if (r.b1 !== undefined) p3(r.b1, c, d);
299
+ if (c & 1073741826) {
300
+ const f2 = [];
301
+ const t2 = truthy(recLength(f2, rec(f2, v[1])));
302
+ if (c === -1 || c & 2 || readsChanged(r.q2, f2)) {
303
+ r.q2 = f2;
304
+ {
305
+ r.b2 = undefined;
306
+ clearRegion(r.a3, r.e2);
307
+ if (t2) { r.b2 = m4(d); r.e2.before(r.b2.n); }
308
+ }
309
+ } else if (r.b2 !== undefined) p4(r.b2, c, d);
310
+ } else if (r.b2 !== undefined) p4(r.b2, c, d);
311
+ if (c & 1073741843) {
312
+ const f3 = [];
313
+ const t3 = ((truthy(recLength(f3, rec(f3, v[0]))) || truthy(recLength(f3, rec(f3, v[1])))) && rec(f3, v[4]));
314
+ if (c === -1 || c & 19 || readsChanged(r.q3, f3)) {
315
+ r.q3 = f3;
316
+ {
317
+ r.b3 = undefined;
318
+ clearRegion(r.a4, r.e3);
319
+ if (t3) { r.b3 = m6(d); r.e3.before(r.b3.n); }
320
+ }
321
+ } else if (r.b3 !== undefined) p6(r.b3, c, d);
322
+ } else if (r.b3 !== undefined) p6(r.b3, c, d);
323
+ if (c & 16) {
324
+ const t4 = v[4];
325
+ if (true) {
326
+ {
327
+ r.b4 = undefined;
328
+ clearRegion(r.a5, r.e4);
329
+ if (t4) { r.b4 = m7(d); r.e4.before(r.b4.n); }
330
+ }
331
+ } else if (r.b4 !== undefined) p7(r.b4, c, d);
332
+ } else if (r.b4 !== undefined) p7(r.b4, c, d);
333
+ };
334
+ const t0 = element.firstChild;
335
+ const t1 = t0.nextSibling.nextSibling;
336
+ const t2 = t1.nextSibling.nextSibling;
337
+ const t3 = t2.nextSibling.nextSibling;
338
+ const t4 = t3.nextSibling.nextSibling;
339
+ const R = { n: element, v0: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, q0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, q1: undefined, a3: t2, e2: t2.nextSibling, b2: undefined, q2: undefined, a4: t3, e3: t3.nextSibling, b3: undefined, q3: undefined, a5: t4, e4: t4.nextSibling, b4: undefined };
340
+ const I = { B };
341
+ I.R = new Set();
342
+ 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);
343
+ manageProps(I);
126
344
  return element;
127
345
  }
128
-
@@ -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 UiEditorToolbarEventMap {
3
3
  }
4
4
  export interface UiEditorToolbarElement extends HTMLDivElement {
@@ -1,13 +1,17 @@
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, writeAttribute, dispose, hostState, acceptProps, manageProps, project, fillSlot, checkBoolean } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor-toolbar/ui-editor-toolbar.js";
4
4
  import "../styles/ui-editor-toolbar.css";
5
5
 
6
- const definition = {...{"contract":{"tag":"ui-editor-toolbar","props":{"floating":{"type":"boolean","required":false,"target":{"attribute":"floating"},"default":false}}},"template":{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"role","value":"toolbar"},{"kind":"literal","name":"aria-label","value":"Editor toolbar"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"strip"}],"children":[{"kind":"slot"}],"ref":"strip"}]},"declarations":[],"root":{"kind":"native","element":"div","choices":["div"]}},source:{file:import.meta.url},css:""};
6
+ const T0 = ["",[],["div",["class","strip"],4]];
7
+ const T1 = ["",[]];
8
+ let P0, P1;
9
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-toolbar" };
10
+ const D = { props: { "floating": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" } } };
11
+ const C = (host) => controller.default(host);
7
12
 
8
- export function createUiEditorToolbar(options = {}) {
13
+ export function createUiEditorToolbar(options = {}, html) {
9
14
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
- const projected = [];
11
15
  const element = document.createElement("div");
12
16
  for (const [name, value] of Object.entries(attributes)) {
13
17
  if (value === null || value === undefined || value === false) continue;
@@ -16,21 +20,34 @@ export function createUiEditorToolbar(options = {}) {
16
20
  if (!element.hasAttribute("role")) element.setAttribute("role", "toolbar");
17
21
  if (!element.hasAttribute("aria-label")) element.setAttribute("aria-label", "Editor toolbar");
18
22
  element.setAttribute("data-component", "ui-editor-toolbar");
19
- const element0 = document.createElement("div");
20
- element0.setAttribute("class", "strip");
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
- element0.append(node);
23
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
24
+ const v = [null];
25
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
26
+ const m1 = (d) => {
27
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
28
+ const r = { n };
29
+ p1(r, -1, d);
30
+ return r;
31
+ };
32
+ const p1 = (r, c, d) => {
33
+ };
34
+ const p0 = (r, c, d) => {
35
+ if (c & 1) {
36
+ const x0 = hostState(["floating"], [v[0]]);
37
+ const s0 = x0;
38
+ if (s0 !== r.v0) writeAttribute(r.n, "data-ui-editor-toolbar-state", (r.v0 = s0) === "" ? null : s0);
27
39
  }
28
- } else {
29
- }
30
- element.append(element0);
31
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
32
- controller,
33
- });
40
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
41
+ 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); } }
42
+ else if (r.b0 !== undefined) p1(r.b0, c, d);
43
+ };
44
+ const t0 = element.firstChild;
45
+ const t1 = t0.firstChild;
46
+ const R = { n: element, v0: undefined, a1: t1, e0: t1.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)), C, undefined, I);
50
+ manageProps(I);
51
+ I.r["strip"] = t0;
34
52
  return element;
35
53
  }
36
-
@@ -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 UiFloatingActionButtonEventMap {
3
3
  }
4
4
  export interface UiFloatingActionButtonElement extends HTMLButtonElement {