@threadlabs/looma 0.25.7 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. package/components/ui-avatar/ui-avatar.html +4 -4
  2. package/components/ui-avatar-group/ui-avatar-group.html +2 -2
  3. package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -1
  4. package/components/ui-breadcrumbs/ui-breadcrumbs.html +1 -1
  5. package/components/ui-button/ui-button.html +27 -27
  6. package/components/ui-callout/ui-callout.html +5 -5
  7. package/components/ui-card/ui-card.html +3 -3
  8. package/components/ui-checkbox/ui-checkbox.html +8 -8
  9. package/components/ui-combobox/ui-combobox.html +59 -59
  10. package/components/ui-dialog/ui-dialog.html +2 -2
  11. package/components/ui-disclosure/ui-disclosure.html +3 -3
  12. package/components/ui-editable/ui-editable.html +8 -8
  13. package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +11 -11
  14. package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +10 -10
  15. package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +2 -2
  16. package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +7 -7
  17. package/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html +1 -1
  18. package/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html +3 -3
  19. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +16 -16
  20. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +31 -31
  21. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +33 -33
  22. package/components/ui-floating-action-button/ui-floating-action-button.html +1 -1
  23. package/components/ui-grid/ui-grid.html +1 -1
  24. package/components/ui-icon/ui-icon.html +12 -12
  25. package/components/ui-icon-button/ui-icon-button.html +6 -6
  26. package/components/ui-image/ui-image.html +2 -2
  27. package/components/ui-input/ui-input.html +1 -1
  28. package/components/ui-list/ui-list.html +1 -1
  29. package/components/ui-list-item/ui-list-item.html +1 -1
  30. package/components/ui-listbox/ui-listbox.html +24 -24
  31. package/components/ui-menu-group/ui-menu-group.html +2 -2
  32. package/components/ui-menu-item/ui-menu-item.html +9 -9
  33. package/components/ui-meter/ui-meter.html +8 -8
  34. package/components/ui-nav-item/ui-nav-item.html +6 -6
  35. package/components/ui-radio/ui-radio.html +1 -1
  36. package/components/ui-radio-group/ui-radio-group.html +1 -1
  37. package/components/ui-search-result-row/ui-search-result-row.html +1 -1
  38. package/components/ui-search-shell/ui-search-shell.html +1 -1
  39. package/components/ui-section/ui-section.html +1 -1
  40. package/components/ui-select/ui-select.html +1 -1
  41. package/components/ui-separator/ui-separator.html +1 -1
  42. package/components/ui-sidebar/ui-sidebar.html +2 -2
  43. package/components/ui-spinner/ui-spinner.html +4 -4
  44. package/components/ui-stack/ui-stack.html +1 -1
  45. package/components/ui-status-message/ui-status-message.html +3 -3
  46. package/components/ui-switch/ui-switch.html +5 -5
  47. package/components/ui-tabs/ui-tabs.html +8 -8
  48. package/components/ui-text/ui-text.html +10 -10
  49. package/components/ui-textarea/ui-textarea.html +8 -8
  50. package/components/ui-toast/ui-toast.html +1 -1
  51. package/components/ui-toast-region/ui-toast-region.html +8 -8
  52. package/components/ui-tooltip/ui-tooltip.html +1 -1
  53. package/components/ui-tree-item/ui-tree-item.html +18 -18
  54. package/dist/index.js +1 -1
  55. package/package.json +3 -3
  56. package/styles/ui-action-bar.css +1 -1
  57. package/styles/ui-affordance-scope.css +1 -1
  58. package/styles/ui-avatar-group.css +1 -1
  59. package/styles/ui-avatar.css +1 -1
  60. package/styles/ui-badge.css +1 -1
  61. package/styles/ui-breadcrumb-item.css +1 -1
  62. package/styles/ui-breadcrumbs.css +1 -1
  63. package/styles/ui-button.css +1 -1
  64. package/styles/ui-callout.css +1 -1
  65. package/styles/ui-card.css +1 -1
  66. package/styles/ui-checkbox.css +1 -1
  67. package/styles/ui-cluster.css +1 -1
  68. package/styles/ui-combobox.css +1 -1
  69. package/styles/ui-container.css +1 -1
  70. package/styles/ui-context-menu.css +1 -1
  71. package/styles/ui-cover.css +1 -1
  72. package/styles/ui-description-item.css +1 -1
  73. package/styles/ui-description-list.css +1 -1
  74. package/styles/ui-dialog.css +1 -1
  75. package/styles/ui-disclosure.css +1 -1
  76. package/styles/ui-editable.css +1 -1
  77. package/styles/ui-editor-insert-table-grid.css +1 -1
  78. package/styles/ui-editor-mention-menu-item.css +1 -1
  79. package/styles/ui-editor-mention-menu.css +1 -1
  80. package/styles/ui-editor-slash-menu-group.css +1 -1
  81. package/styles/ui-editor-slash-menu-item.css +1 -1
  82. package/styles/ui-editor-slash-menu.css +1 -1
  83. package/styles/ui-editor-surface.css +1 -1
  84. package/styles/ui-editor-table-context-menu.css +1 -1
  85. package/styles/ui-editor-table-overlay.css +1 -1
  86. package/styles/ui-editor-table-toolbar.css +1 -1
  87. package/styles/ui-editor-toolbar.css +1 -1
  88. package/styles/ui-floating-action-button.css +1 -1
  89. package/styles/ui-form-field.css +1 -1
  90. package/styles/ui-grid.css +1 -1
  91. package/styles/ui-icon-button.css +1 -1
  92. package/styles/ui-icon.css +1 -1
  93. package/styles/ui-image.css +1 -1
  94. package/styles/ui-input-group.css +1 -1
  95. package/styles/ui-input.css +1 -1
  96. package/styles/ui-list-item.css +1 -1
  97. package/styles/ui-list.css +1 -1
  98. package/styles/ui-listbox.css +1 -1
  99. package/styles/ui-menu-group.css +1 -1
  100. package/styles/ui-menu-item.css +1 -1
  101. package/styles/ui-menu.css +1 -1
  102. package/styles/ui-meter.css +1 -1
  103. package/styles/ui-nav-item.css +1 -1
  104. package/styles/ui-page-header.css +1 -1
  105. package/styles/ui-popover.css +1 -1
  106. package/styles/ui-radio-group.css +1 -1
  107. package/styles/ui-radio.css +1 -1
  108. package/styles/ui-reel.css +1 -1
  109. package/styles/ui-scroll-area.css +1 -1
  110. package/styles/ui-search-result-row.css +1 -1
  111. package/styles/ui-search-shell.css +1 -1
  112. package/styles/ui-section.css +1 -1
  113. package/styles/ui-select.css +1 -1
  114. package/styles/ui-separator.css +1 -1
  115. package/styles/ui-sidebar.css +1 -1
  116. package/styles/ui-spinner.css +1 -1
  117. package/styles/ui-stack.css +1 -1
  118. package/styles/ui-status-message.css +1 -1
  119. package/styles/ui-switch.css +1 -1
  120. package/styles/ui-switcher.css +1 -1
  121. package/styles/ui-table.css +1 -1
  122. package/styles/ui-tabs.css +1 -1
  123. package/styles/ui-text.css +1 -1
  124. package/styles/ui-textarea.css +1 -1
  125. package/styles/ui-toast-region.css +1 -1
  126. package/styles/ui-toast.css +1 -1
  127. package/styles/ui-tooltip.css +1 -1
  128. package/styles/ui-top-bar.css +1 -1
  129. package/styles/ui-tree-item.css +1 -1
  130. package/styles/ui-tree.css +1 -1
  131. package/vanilla/UiActionBar.d.ts +1 -1
  132. package/vanilla/UiActionBar.js +70 -52
  133. package/vanilla/UiAffordanceScope.d.ts +1 -1
  134. package/vanilla/UiAffordanceScope.js +36 -17
  135. package/vanilla/UiAvatar.d.ts +1 -1
  136. package/vanilla/UiAvatar.js +72 -37
  137. package/vanilla/UiAvatarGroup.d.ts +1 -1
  138. package/vanilla/UiAvatarGroup.js +57 -26
  139. package/vanilla/UiBadge.d.ts +1 -1
  140. package/vanilla/UiBadge.js +49 -39
  141. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  142. package/vanilla/UiBreadcrumbItem.js +41 -26
  143. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  144. package/vanilla/UiBreadcrumbs.js +35 -24
  145. package/vanilla/UiButton.d.ts +1 -1
  146. package/vanilla/UiButton.js +444 -156
  147. package/vanilla/UiCallout.d.ts +1 -1
  148. package/vanilla/UiCallout.js +135 -111
  149. package/vanilla/UiCard.d.ts +1 -1
  150. package/vanilla/UiCard.js +147 -47
  151. package/vanilla/UiCheckbox.d.ts +1 -1
  152. package/vanilla/UiCheckbox.js +100 -58
  153. package/vanilla/UiCluster.d.ts +1 -1
  154. package/vanilla/UiCluster.js +35 -29
  155. package/vanilla/UiCombobox.d.ts +1 -1
  156. package/vanilla/UiCombobox.js +879 -283
  157. package/vanilla/UiContainer.d.ts +1 -1
  158. package/vanilla/UiContainer.js +35 -19
  159. package/vanilla/UiContextMenu.d.ts +1 -1
  160. package/vanilla/UiContextMenu.js +34 -23
  161. package/vanilla/UiCover.d.ts +1 -1
  162. package/vanilla/UiCover.js +35 -15
  163. package/vanilla/UiDescriptionItem.d.ts +1 -1
  164. package/vanilla/UiDescriptionItem.js +37 -24
  165. package/vanilla/UiDescriptionList.d.ts +1 -1
  166. package/vanilla/UiDescriptionList.js +35 -21
  167. package/vanilla/UiDialog.d.ts +1 -1
  168. package/vanilla/UiDialog.js +83 -42
  169. package/vanilla/UiDisclosure.d.ts +1 -1
  170. package/vanilla/UiDisclosure.js +113 -72
  171. package/vanilla/UiEditable.d.ts +1 -1
  172. package/vanilla/UiEditable.js +125 -58
  173. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  174. package/vanilla/UiEditorInsertTableGrid.js +85 -30
  175. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  176. package/vanilla/UiEditorMentionMenu.js +193 -75
  177. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  178. package/vanilla/UiEditorMentionMenuItem.js +81 -44
  179. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  180. package/vanilla/UiEditorSlashMenu.js +123 -78
  181. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  182. package/vanilla/UiEditorSlashMenuGroup.js +40 -34
  183. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  184. package/vanilla/UiEditorSlashMenuItem.js +98 -45
  185. package/vanilla/UiEditorSurface.d.ts +1 -1
  186. package/vanilla/UiEditorSurface.js +35 -15
  187. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  188. package/vanilla/UiEditorTableContextMenu.js +143 -60
  189. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  190. package/vanilla/UiEditorTableOverlay.js +212 -109
  191. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  192. package/vanilla/UiEditorTableToolbar.js +330 -113
  193. package/vanilla/UiEditorToolbar.d.ts +1 -1
  194. package/vanilla/UiEditorToolbar.js +37 -20
  195. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  196. package/vanilla/UiFloatingActionButton.js +44 -22
  197. package/vanilla/UiFormField.d.ts +1 -1
  198. package/vanilla/UiFormField.js +89 -65
  199. package/vanilla/UiGrid.d.ts +1 -1
  200. package/vanilla/UiGrid.js +39 -19
  201. package/vanilla/UiIcon.d.ts +1 -1
  202. package/vanilla/UiIcon.js +186 -27
  203. package/vanilla/UiIconButton.d.ts +1 -1
  204. package/vanilla/UiIconButton.js +82 -32
  205. package/vanilla/UiImage.d.ts +1 -1
  206. package/vanilla/UiImage.js +76 -69
  207. package/vanilla/UiInput.d.ts +1 -1
  208. package/vanilla/UiInput.js +51 -27
  209. package/vanilla/UiInputGroup.d.ts +1 -1
  210. package/vanilla/UiInputGroup.js +77 -56
  211. package/vanilla/UiList.d.ts +1 -1
  212. package/vanilla/UiList.js +91 -27
  213. package/vanilla/UiListItem.d.ts +1 -1
  214. package/vanilla/UiListItem.js +81 -74
  215. package/vanilla/UiListbox.d.ts +1 -1
  216. package/vanilla/UiListbox.js +204 -81
  217. package/vanilla/UiMenu.d.ts +1 -1
  218. package/vanilla/UiMenu.js +36 -20
  219. package/vanilla/UiMenuGroup.d.ts +1 -1
  220. package/vanilla/UiMenuGroup.js +60 -24
  221. package/vanilla/UiMenuItem.d.ts +1 -1
  222. package/vanilla/UiMenuItem.js +177 -77
  223. package/vanilla/UiMeter.d.ts +1 -1
  224. package/vanilla/UiMeter.js +77 -14
  225. package/vanilla/UiNavItem.d.ts +1 -1
  226. package/vanilla/UiNavItem.js +199 -123
  227. package/vanilla/UiPageHeader.d.ts +1 -1
  228. package/vanilla/UiPageHeader.js +91 -69
  229. package/vanilla/UiPopover.d.ts +1 -1
  230. package/vanilla/UiPopover.js +36 -20
  231. package/vanilla/UiRadio.d.ts +1 -1
  232. package/vanilla/UiRadio.js +82 -50
  233. package/vanilla/UiRadioGroup.d.ts +1 -1
  234. package/vanilla/UiRadioGroup.js +58 -30
  235. package/vanilla/UiReel.d.ts +1 -1
  236. package/vanilla/UiReel.js +35 -21
  237. package/vanilla/UiScrollArea.d.ts +1 -1
  238. package/vanilla/UiScrollArea.js +37 -20
  239. package/vanilla/UiSearchResultRow.d.ts +1 -1
  240. package/vanilla/UiSearchResultRow.js +98 -74
  241. package/vanilla/UiSearchShell.d.ts +1 -1
  242. package/vanilla/UiSearchShell.js +81 -64
  243. package/vanilla/UiSection.d.ts +1 -1
  244. package/vanilla/UiSection.js +71 -53
  245. package/vanilla/UiSelect.d.ts +1 -1
  246. package/vanilla/UiSelect.js +50 -26
  247. package/vanilla/UiSeparator.d.ts +1 -1
  248. package/vanilla/UiSeparator.js +23 -22
  249. package/vanilla/UiSidebar.d.ts +1 -1
  250. package/vanilla/UiSidebar.js +49 -37
  251. package/vanilla/UiSpinner.d.ts +1 -1
  252. package/vanilla/UiSpinner.js +43 -26
  253. package/vanilla/UiStack.d.ts +1 -1
  254. package/vanilla/UiStack.js +39 -19
  255. package/vanilla/UiStatusMessage.d.ts +1 -1
  256. package/vanilla/UiStatusMessage.js +70 -41
  257. package/vanilla/UiSwitch.d.ts +1 -1
  258. package/vanilla/UiSwitch.js +82 -51
  259. package/vanilla/UiSwitcher.d.ts +1 -1
  260. package/vanilla/UiSwitcher.js +36 -17
  261. package/vanilla/UiTable.d.ts +1 -1
  262. package/vanilla/UiTable.js +35 -17
  263. package/vanilla/UiTabs.d.ts +1 -1
  264. package/vanilla/UiTabs.js +97 -42
  265. package/vanilla/UiText.d.ts +1 -1
  266. package/vanilla/UiText.js +343 -117
  267. package/vanilla/UiTextarea.d.ts +1 -1
  268. package/vanilla/UiTextarea.js +56 -33
  269. package/vanilla/UiToast.d.ts +1 -1
  270. package/vanilla/UiToast.js +61 -40
  271. package/vanilla/UiToastRegion.d.ts +1 -1
  272. package/vanilla/UiToastRegion.js +85 -35
  273. package/vanilla/UiTooltip.d.ts +1 -1
  274. package/vanilla/UiTooltip.js +54 -31
  275. package/vanilla/UiTopBar.d.ts +1 -1
  276. package/vanilla/UiTopBar.js +70 -52
  277. package/vanilla/UiTree.d.ts +1 -1
  278. package/vanilla/UiTree.js +35 -17
  279. package/vanilla/UiTreeItem.d.ts +1 -1
  280. package/vanilla/UiTreeItem.js +219 -181
  281. package/vue/UiActionBar.vue +1 -1
  282. package/vue/UiAffordanceScope.vue +1 -1
  283. package/vue/UiAvatar.vue +7 -7
  284. package/vue/UiAvatarGroup.vue +3 -3
  285. package/vue/UiBadge.vue +1 -1
  286. package/vue/UiBreadcrumbItem.vue +1 -1
  287. package/vue/UiBreadcrumbs.vue +1 -1
  288. package/vue/UiButton.vue +1 -1
  289. package/vue/UiCallout.vue +1 -1
  290. package/vue/UiCard.vue +1 -1
  291. package/vue/UiCheckbox.vue +2 -2
  292. package/vue/UiCluster.vue +1 -1
  293. package/vue/UiCombobox.vue +25 -25
  294. package/vue/UiContainer.vue +1 -1
  295. package/vue/UiContextMenu.vue +1 -1
  296. package/vue/UiCover.vue +1 -1
  297. package/vue/UiDescriptionItem.vue +1 -1
  298. package/vue/UiDescriptionList.vue +1 -1
  299. package/vue/UiDialog.vue +2 -2
  300. package/vue/UiDisclosure.vue +6 -6
  301. package/vue/UiEditable.vue +3 -3
  302. package/vue/UiEditorInsertTableGrid.vue +4 -4
  303. package/vue/UiEditorMentionMenu.vue +2 -2
  304. package/vue/UiEditorMentionMenuItem.vue +1 -1
  305. package/vue/UiEditorSlashMenu.vue +2 -2
  306. package/vue/UiEditorSlashMenuGroup.vue +1 -1
  307. package/vue/UiEditorSlashMenuItem.vue +1 -1
  308. package/vue/UiEditorSurface.vue +1 -1
  309. package/vue/UiEditorTableContextMenu.vue +1 -1
  310. package/vue/UiEditorTableOverlay.vue +11 -11
  311. package/vue/UiEditorTableToolbar.vue +2 -2
  312. package/vue/UiEditorToolbar.vue +1 -1
  313. package/vue/UiFloatingActionButton.vue +1 -1
  314. package/vue/UiFormField.vue +1 -1
  315. package/vue/UiGrid.vue +1 -1
  316. package/vue/UiIcon.vue +1 -1
  317. package/vue/UiIconButton.vue +1 -1
  318. package/vue/UiImage.vue +1 -1
  319. package/vue/UiInput.vue +1 -1
  320. package/vue/UiInputGroup.vue +1 -1
  321. package/vue/UiList.vue +1 -1
  322. package/vue/UiListItem.vue +1 -1
  323. package/vue/UiListbox.vue +4 -4
  324. package/vue/UiMenu.vue +1 -1
  325. package/vue/UiMenuGroup.vue +1 -1
  326. package/vue/UiMenuItem.vue +2 -2
  327. package/vue/UiMeter.vue +1 -1
  328. package/vue/UiNavItem.vue +1 -1
  329. package/vue/UiPageHeader.vue +1 -1
  330. package/vue/UiPopover.vue +1 -1
  331. package/vue/UiRadio.vue +2 -2
  332. package/vue/UiRadioGroup.vue +1 -1
  333. package/vue/UiReel.vue +1 -1
  334. package/vue/UiScrollArea.vue +1 -1
  335. package/vue/UiSearchResultRow.vue +1 -1
  336. package/vue/UiSearchShell.vue +1 -1
  337. package/vue/UiSection.vue +1 -1
  338. package/vue/UiSelect.vue +1 -1
  339. package/vue/UiSeparator.vue +1 -1
  340. package/vue/UiSidebar.vue +3 -3
  341. package/vue/UiSpinner.vue +1 -1
  342. package/vue/UiStack.vue +1 -1
  343. package/vue/UiStatusMessage.vue +1 -1
  344. package/vue/UiSwitch.vue +2 -2
  345. package/vue/UiSwitcher.vue +1 -1
  346. package/vue/UiTable.vue +1 -1
  347. package/vue/UiTabs.vue +1 -1
  348. package/vue/UiText.vue +1 -1
  349. package/vue/UiTextarea.vue +1 -1
  350. package/vue/UiToast.vue +1 -1
  351. package/vue/UiToastRegion.vue +1 -1
  352. package/vue/UiTooltip.vue +2 -2
  353. package/vue/UiTopBar.vue +1 -1
  354. package/vue/UiTree.vue +1 -1
  355. package/vue/UiTreeItem.vue +6 -6
  356. package/vue/chunks/UiActionBar.js +1 -1
  357. package/vue/chunks/UiAffordanceScope.js +1 -1
  358. package/vue/chunks/UiAvatar.js +6 -6
  359. package/vue/chunks/UiAvatarGroup.js +3 -3
  360. package/vue/chunks/UiBadge.js +1 -1
  361. package/vue/chunks/UiBreadcrumbItem.js +1 -1
  362. package/vue/chunks/UiBreadcrumbs.js +1 -1
  363. package/vue/chunks/UiButton.js +1 -1
  364. package/vue/chunks/UiCallout.js +1 -1
  365. package/vue/chunks/UiCard.js +1 -1
  366. package/vue/chunks/UiCheckbox.js +2 -2
  367. package/vue/chunks/UiCluster.js +1 -1
  368. package/vue/chunks/UiCombobox.js +22 -22
  369. package/vue/chunks/UiContainer.js +1 -1
  370. package/vue/chunks/UiContextMenu.js +1 -1
  371. package/vue/chunks/UiCover.js +1 -1
  372. package/vue/chunks/UiDescriptionItem.js +1 -1
  373. package/vue/chunks/UiDescriptionList.js +1 -1
  374. package/vue/chunks/UiDialog.js +2 -2
  375. package/vue/chunks/UiDisclosure.js +6 -6
  376. package/vue/chunks/UiEditable.js +3 -3
  377. package/vue/chunks/UiEditorInsertTableGrid.js +4 -4
  378. package/vue/chunks/UiEditorMentionMenu.js +2 -2
  379. package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
  380. package/vue/chunks/UiEditorSlashMenu.js +2 -2
  381. package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
  382. package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
  383. package/vue/chunks/UiEditorSurface.js +1 -1
  384. package/vue/chunks/UiEditorTableContextMenu.js +1 -1
  385. package/vue/chunks/UiEditorTableOverlay.js +11 -11
  386. package/vue/chunks/UiEditorTableToolbar.js +2 -2
  387. package/vue/chunks/UiEditorToolbar.js +1 -1
  388. package/vue/chunks/UiFloatingActionButton.js +1 -1
  389. package/vue/chunks/UiFormField.js +1 -1
  390. package/vue/chunks/UiGrid.js +1 -1
  391. package/vue/chunks/UiIcon.js +1 -1
  392. package/vue/chunks/UiIconButton.js +1 -1
  393. package/vue/chunks/UiImage.js +1 -1
  394. package/vue/chunks/UiInput.js +1 -1
  395. package/vue/chunks/UiInputGroup.js +1 -1
  396. package/vue/chunks/UiList.js +1 -1
  397. package/vue/chunks/UiListItem.js +1 -1
  398. package/vue/chunks/UiListbox.js +4 -4
  399. package/vue/chunks/UiMenu.js +1 -1
  400. package/vue/chunks/UiMenuGroup.js +1 -1
  401. package/vue/chunks/UiMenuItem.js +2 -2
  402. package/vue/chunks/UiMeter.js +1 -1
  403. package/vue/chunks/UiNavItem.js +1 -1
  404. package/vue/chunks/UiPageHeader.js +1 -1
  405. package/vue/chunks/UiPopover.js +1 -1
  406. package/vue/chunks/UiRadio.js +2 -2
  407. package/vue/chunks/UiRadioGroup.js +1 -1
  408. package/vue/chunks/UiReel.js +1 -1
  409. package/vue/chunks/UiScrollArea.js +1 -1
  410. package/vue/chunks/UiSearchResultRow.js +1 -1
  411. package/vue/chunks/UiSearchShell.js +1 -1
  412. package/vue/chunks/UiSection.js +1 -1
  413. package/vue/chunks/UiSelect.js +1 -1
  414. package/vue/chunks/UiSeparator.js +1 -1
  415. package/vue/chunks/UiSidebar.js +2 -2
  416. package/vue/chunks/UiSpinner.js +1 -1
  417. package/vue/chunks/UiStack.js +1 -1
  418. package/vue/chunks/UiStatusMessage.js +1 -1
  419. package/vue/chunks/UiSwitch.js +2 -2
  420. package/vue/chunks/UiSwitcher.js +1 -1
  421. package/vue/chunks/UiTable.js +1 -1
  422. package/vue/chunks/UiTabs.js +1 -1
  423. package/vue/chunks/UiText.js +1 -1
  424. package/vue/chunks/UiTextarea.js +1 -1
  425. package/vue/chunks/UiToast.js +1 -1
  426. package/vue/chunks/UiToastRegion.js +1 -1
  427. package/vue/chunks/UiTooltip.js +2 -2
  428. package/vue/chunks/UiTopBar.js +1 -1
  429. package/vue/chunks/UiTree.js +1 -1
  430. package/vue/chunks/UiTreeItem.js +5 -5
  431. package/vue/chunks/control.js +41 -13
  432. package/vue/chunks/host.js +19 -18
  433. package/vue/components.css +1388 -1388
  434. package/vue/host.ts +22 -20
@@ -1,12 +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, clearRegion, toAttribute, toText, truthy, writeAttribute, dispose, acceptProps, manageProps, project, fillSlot, checkBoolean, checkString } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-editor-slash-menu-item.css";
4
4
 
5
- const definition = {...{"contract":{"tag":"ui-editor-slash-menu-item","props":{"description":{"type":"string","required":false,"target":{"attribute":"description"},"default":""},"disabled":{"type":"boolean","required":false,"target":{"attribute":"aria-disabled"},"default":false},"icon":{"type":"string","required":false,"target":{"attribute":"name"},"default":""},"keywords":{"type":"string","required":false,"target":{"attribute":"data-keywords"},"default":""},"value":{"type":"string","required":false,"target":{"attribute":"data-value"},"default":""}}},"template":{"kind":"element","name":"li","attributes":[{"kind":"literal","name":"role","value":"option"},{"kind":"literal","name":"tabindex","value":"-1"},{"kind":"attribute","name":"aria-disabled","expression":"disabled","expressionPlan":{"source":"disabled","ast":{"kind":"id","name":"disabled"},"dependencies":["disabled"]}},{"kind":"attribute","name":"data-value","expression":"value","expressionPlan":{"source":"value","ast":{"kind":"id","name":"value"},"dependencies":["value"]}},{"kind":"attribute","name":"data-keywords","expression":"keywords","expressionPlan":{"source":"keywords","ast":{"kind":"id","name":"keywords"},"dependencies":["keywords"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"icon"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"attribute","name":"name","expression":"icon","expressionPlan":{"source":"icon","ast":{"kind":"id","name":"icon"},"dependencies":["icon"]}}],"children":[]}],"flow":{"kind":"if","test":"icon","testPlan":{"source":"icon","ast":{"kind":"id","name":"icon"},"dependencies":["icon"]}}},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"body"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"title"}],"children":[{"kind":"slot"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"description"}],"children":[{"kind":"text","value":"$description","expressionPlan":{"source":"$description","ast":{"kind":"id","name":"description"},"dependencies":["description"]}}],"flow":{"kind":"if","test":"description","testPlan":{"source":"description","ast":{"kind":"id","name":"description"},"dependencies":["description"]}}}]}]},"declarations":[],"root":{"kind":"native","element":"li","choices":["li"]}},source:{file:import.meta.url},css:""};
5
+ const T0 = ["",[],1,["span",["class","body"],["span",["class","title"],4],1]];
6
+ const T1 = ["span",["class","icon","aria-hidden","true"],["ui-icon",[]]];
7
+ const T2 = ["",[]];
8
+ const T3 = ["span",["class","description"],0];
9
+ let P0, P1, P2, P3;
10
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-slash-menu-item" };
11
+ const D = { props: { "description": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "icon": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "keywords": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "value": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" } } };
6
12
 
7
- export function createUiEditorSlashMenuItem(options = {}) {
13
+ export function createUiEditorSlashMenuItem(options = {}, html) {
8
14
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9
- const projected = [];
10
15
  const element = document.createElement("li");
11
16
  for (const [name, value] of Object.entries(attributes)) {
12
17
  if (value === null || value === undefined || value === false) continue;
@@ -14,47 +19,95 @@ export function createUiEditorSlashMenuItem(options = {}) {
14
19
  }
15
20
  if (!element.hasAttribute("role")) element.setAttribute("role", "option");
16
21
  if (!element.hasAttribute("tabindex")) element.setAttribute("tabindex", "-1");
17
- const value0 = componentProps["disabled"] === undefined ? false : componentProps["disabled"];
18
- if (typeof value0 === "boolean") element.setAttribute("aria-disabled", String(value0));
19
- else element.removeAttribute("aria-disabled");
20
- const value1 = componentProps["value"] === undefined ? "" : componentProps["value"];
21
- if (value1 === null || value1 === undefined) element.removeAttribute("data-value");
22
- else element.setAttribute("data-value", String(value1));
23
- const value2 = componentProps["keywords"] === undefined ? "" : componentProps["keywords"];
24
- if (value2 === null || value2 === undefined) element.removeAttribute("data-keywords");
25
- else element.setAttribute("data-keywords", String(value2));
26
22
  element.setAttribute("data-component", "ui-editor-slash-menu-item");
27
- const element0 = document.createElement("span");
28
- element0.setAttribute("class", "icon");
29
- element0.setAttribute("aria-hidden", "true");
30
- const element1 = document.createElement("ui-icon");
31
- const value3 = componentProps["icon"] === undefined ? "" : componentProps["icon"];
32
- if (value3 === null || value3 === undefined) element1.removeAttribute("name");
33
- else element1.setAttribute("name", String(value3));
34
- element0.append(element1);
35
- element.append(element0);
36
- const element2 = document.createElement("span");
37
- element2.setAttribute("class", "body");
38
- const element3 = document.createElement("span");
39
- element3.setAttribute("class", "title");
40
- if (children.length > 0) {
41
- for (const child of children) {
42
- const node = typeof child === "string" ? document.createTextNode(child) : child;
43
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
44
- projected.push([node, ""]);
45
- element3.append(node);
23
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
24
+ const v = [null, null, null, null, null];
25
+ const B = acceptProps(element, D, S.n, v, componentProps, ["keywords","value"], html);
26
+ const m1 = (d) => {
27
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
28
+ const t0 = n.firstChild;
29
+ const r = { n, a0: t0, v0: null };
30
+ p1(r, -1, d);
31
+ return r;
32
+ };
33
+ const p1 = (r, c, d) => {
34
+ if (c & 4) {
35
+ const x0 = v[2];
36
+ const s0 = toAttribute(x0, "name");
37
+ if (s0 !== r.v0) writeAttribute(r.a0, "name", r.v0 = s0);
46
38
  }
47
- } else {
48
- }
49
- element2.append(element3);
50
- const element4 = document.createElement("span");
51
- element4.setAttribute("class", "description");
52
- const text5 = document.createTextNode("");
53
- element4.append(text5);
54
- element2.append(element4);
55
- element.append(element2);
56
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
57
- });
39
+ };
40
+ const m2 = (d) => {
41
+ const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
42
+ const r = { n };
43
+ p2(r, -1, d);
44
+ return r;
45
+ };
46
+ const p2 = (r, c, d) => {
47
+ };
48
+ const m3 = (d) => {
49
+ const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
50
+ const t0 = n.firstChild;
51
+ const r = { n, a0: t0, v0: "" };
52
+ p3(r, -1, d);
53
+ return r;
54
+ };
55
+ const p3 = (r, c, d) => {
56
+ if (c & 1) {
57
+ const x0 = v[0];
58
+ const s0 = toText(x0);
59
+ if (s0 !== r.v0) r.a0.data = r.v0 = s0;
60
+ }
61
+ };
62
+ const p0 = (r, c, d) => {
63
+ if (c & 2) {
64
+ const x0 = v[1];
65
+ const s0 = toAttribute(x0, "aria-disabled");
66
+ if (s0 !== r.v0) writeAttribute(r.n, "aria-disabled", r.v0 = s0);
67
+ }
68
+ if (c & 16) {
69
+ const x1 = v[4];
70
+ const s1 = toAttribute(x1, "data-value");
71
+ if (s1 !== r.v1) writeAttribute(r.n, "data-value", r.v1 = s1);
72
+ }
73
+ if (c & 8) {
74
+ const x2 = v[3];
75
+ const s2 = toAttribute(x2, "data-keywords");
76
+ if (s2 !== r.v2) writeAttribute(r.n, "data-keywords", r.v2 = s2);
77
+ }
78
+ if (c & 4) {
79
+ const t0 = truthy(v[2]);
80
+ if (true) {
81
+ {
82
+ r.b0 = undefined;
83
+ clearRegion(r.a1, r.e0);
84
+ if (t0) { r.b0 = m1(d); r.e0.before(r.b0.n); }
85
+ }
86
+ } else if (r.b0 !== undefined) p1(r.b0, c, d);
87
+ } else if (r.b0 !== undefined) p1(r.b0, c, d);
88
+ if (c & 1) {
89
+ const t2 = truthy(v[0]);
90
+ if (true) {
91
+ {
92
+ r.b2 = undefined;
93
+ clearRegion(r.a3, r.e2);
94
+ if (t2) { r.b2 = m3(d); r.e2.before(r.b2.n); }
95
+ }
96
+ } else if (r.b2 !== undefined) p3(r.b2, c, d);
97
+ } else if (r.b2 !== undefined) p3(r.b2, c, d);
98
+ if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "", J, false, undefined, d);
99
+ 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); } }
100
+ else if (r.b1 !== undefined) p2(r.b1, c, d);
101
+ };
102
+ const t0 = element.firstChild;
103
+ const t1 = t0.nextSibling.nextSibling;
104
+ const t2 = t1.firstChild;
105
+ const t3 = t2.firstChild;
106
+ const t4 = t2.nextSibling;
107
+ const R = { n: element, v0: undefined, v1: undefined, v2: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t3, e1: t3.nextSibling, b1: undefined, f1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined };
108
+ const I = { B };
109
+ const J = project(I, children, slots);
110
+ attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
111
+ manageProps(I);
58
112
  return element;
59
113
  }
60
-
@@ -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 UiEditorSurfaceEventMap {
3
3
  }
4
4
  export interface UiEditorSurfaceElement extends HTMLDivElement {
@@ -1,27 +1,47 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
2
- import { manageGeneratedProp } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, project, fillSlot, checkFormat } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-editor-surface.css";
4
4
 
5
- export function createUiEditorSurface(options = {}) {
5
+ const T0 = ["",[],4];
6
+ const T1 = ["",[]];
7
+ let P0, P1;
8
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-surface" };
9
+ const D = { props: { "density": { "required":false,"values":["comfortable","compact"],"default":"comfortable", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] } } };
10
+
11
+ export function createUiEditorSurface(options = {}, html) {
6
12
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
7
- const projected = [];
8
- const prop0 = componentProps["density"] === undefined ? "comfortable" : componentProps["density"];
9
13
  const element = document.createElement("div");
10
14
  for (const [name, value] of Object.entries(attributes)) {
11
15
  if (value === null || value === undefined || value === false) continue;
12
16
  element.setAttribute(name, value === true ? "" : String(value));
13
17
  }
14
18
  element.setAttribute("data-component", "ui-editor-surface");
15
- if (children.length > 0) {
16
- for (const child of children) {
17
- const node = typeof child === "string" ? document.createTextNode(child) : child;
18
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
19
- projected.push([node, ""]);
20
- element.append(node);
19
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
20
+ const v = [null];
21
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
22
+ const m1 = (d) => {
23
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
24
+ const r = { n };
25
+ p1(r, -1, d);
26
+ return r;
27
+ };
28
+ const p1 = (r, c, d) => {
29
+ };
30
+ const p0 = (r, c, d) => {
31
+ if (c & 1) {
32
+ const x0 = hostState(["density"], [v[0]]);
33
+ const s0 = x0;
34
+ if (s0 !== r.v0) writeAttribute(r.n, "data-ui-editor-surface-state", (r.v0 = s0) === "" ? null : s0);
21
35
  }
22
- } else {
23
- }
24
- manageGeneratedProp(element, { name: "density", attribute: "data-density", value: componentProps["density"], default: "comfortable", type: ["comfortable","compact"], required: false });
36
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
37
+ 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); } }
38
+ else if (r.b0 !== undefined) p1(r.b0, c, d);
39
+ };
40
+ const t0 = element.firstChild;
41
+ const R = { n: element, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
42
+ const I = { B };
43
+ const J = project(I, children, slots);
44
+ attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
45
+ manageProps(I);
25
46
  return element;
26
47
  }
27
-
@@ -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 UiEditorTableContextMenuEventMap {
3
3
  action: CustomEvent<{ readonly action: "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" }>;
4
4
  }
@@ -1,13 +1,21 @@
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, RangedKeyedList, checkBoolean, checkConstrained, checkFormat, checkList, checkObject, checkString } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor-table-context-menu/ui-editor-table-context-menu.js";
4
4
  import "../styles/ui-editor-table-context-menu.css";
5
5
 
6
- const definition = {...{"contract":{"tag":"ui-editor-table-context-menu","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"}},"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},"scope":{"type":{"kind":"terminal","name":"keyword"},"values":["cell","row","column"],"required":false,"target":{"attribute":"scope"},"default":"cell"}}},"template":{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"role","value":"menu"},{"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":"section"},{"kind":"literal","name":"role","value":"none"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"heading"},{"kind":"literal","name":"role","value":"presentation"}],"children":[{"kind":"text","value":"Cell 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":[{"kind":"literal","name":"class","value":"swatch-label"}],"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":"template","attributes":[],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"sep"}],"children":[]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"section"},{"kind":"literal","name":"role","value":"none"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"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"]}}}]},"declarations":[{"kind":"state","name":"swatches","shape":{"kind":"list","item":{"kind":"object","fields":[{"name":"action","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"label","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"color","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"selected","type":{"kind":"terminal","name":"boolean"},"optional":false}],"open":false}},"type":"list","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":"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,2];
7
+ const T1 = ["div",["class","section","role","none"],["div",["class","heading","role","presentation"],"Cell background"],["div",["class","swatches","role","group","aria-label","Cell background"],2]];
8
+ const T2 = ["button",["type","button","class","swatch-button","role","menuitemradio"],["span",["class","swatch"]],["span",["class","swatch-label"],0]];
9
+ const T3 = ["",[],["div",["class","sep"]],["div",["class","section","role","none"],["div",["class","heading","role","presentation"],0],2]];
10
+ const T4 = ["button",["type","button"],["ui-icon",[]],["span",[],0]];
11
+ let P0, P1, P2, P3, P4;
12
+ const E = new Map();
13
+ const S = { n: ["swatches","sections"], t: [["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"]]]]]]], f: import.meta.url, g: "ui-editor-table-context-menu", 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 };
14
+ 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]] }, "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" }, "scope": { "required":false,"values":["cell","row","column"],"default":"cell", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] } } };
15
+ const C = (host) => controller.default(host);
7
16
 
8
- export function createUiEditorTableContextMenu(options = {}) {
17
+ export function createUiEditorTableContextMenu(options = {}, html) {
9
18
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
- const projected = [];
11
19
  const element = document.createElement("div");
12
20
  for (const [name, value] of Object.entries(attributes)) {
13
21
  if (value === null || value === undefined || value === false) continue;
@@ -15,60 +23,135 @@ export function createUiEditorTableContextMenu(options = {}) {
15
23
  }
16
24
  if (!element.hasAttribute("role")) element.setAttribute("role", "menu");
17
25
  element.setAttribute("data-component", "ui-editor-table-context-menu");
18
- const element0 = document.createElement("div");
19
- element0.setAttribute("class", "section");
20
- element0.setAttribute("role", "none");
21
- const element1 = document.createElement("div");
22
- element1.setAttribute("class", "heading");
23
- element1.setAttribute("role", "presentation");
24
- element1.append("Cell background");
25
- element0.append(element1);
26
- const element2 = document.createElement("div");
27
- element2.setAttribute("class", "swatches");
28
- element2.setAttribute("role", "group");
29
- element2.setAttribute("aria-label", "Cell background");
30
- const element3 = document.createElement("button");
31
- element3.setAttribute("type", "button");
32
- element3.setAttribute("class", "swatch-button");
33
- element3.setAttribute("role", "menuitemradio");
34
- const element4 = document.createElement("span");
35
- element4.setAttribute("class", "swatch");
36
- element3.append(element4);
37
- const element5 = document.createElement("span");
38
- element5.setAttribute("class", "swatch-label");
39
- const text6 = document.createTextNode("");
40
- element5.append(text6);
41
- element3.append(element5);
42
- element2.append(element3);
43
- element0.append(element2);
44
- element.append(element0);
45
- const element7 = document.createElement("template");
46
- const element8 = document.createElement("div");
47
- element8.setAttribute("class", "sep");
48
- element7.append(element8);
49
- const element9 = document.createElement("div");
50
- element9.setAttribute("class", "section");
51
- element9.setAttribute("role", "none");
52
- const element10 = document.createElement("div");
53
- element10.setAttribute("class", "heading");
54
- element10.setAttribute("role", "presentation");
55
- const text11 = document.createTextNode("");
56
- element10.append(text11);
57
- element9.append(element10);
58
- const element12 = document.createElement("button");
59
- element12.setAttribute("type", "button");
60
- const element13 = document.createElement("ui-icon");
61
- element12.append(element13);
62
- const element14 = document.createElement("span");
63
- const text15 = document.createTextNode("");
64
- element14.append(text15);
65
- element12.append(element14);
66
- element9.append(element12);
67
- element7.append(element9);
68
- element.append(element7);
69
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
70
- controller,
71
- });
26
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
27
+ const v = [[], [], null, null, null, null, null, null];
28
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
29
+ const m1 = (d) => {
30
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
31
+ const t0 = n.firstChild.nextSibling.firstChild;
32
+ const r = { n, L0: new KeyedList(t0, t0.nextSibling, m2, p2, (o) => readMember(o, "action"), "swatch") };
33
+ p1(r, -1, d);
34
+ return r;
35
+ };
36
+ const p1 = (r, c, d) => {
37
+ if (c & 1073741825) r.L0.update(v[0], d, c);
38
+ };
39
+ const m2 = (o, j, l) => {
40
+ const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
41
+ const t0 = n.firstChild;
42
+ const t1 = t0.nextSibling.firstChild;
43
+ 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: "" };
44
+ p2(r, -1, E);
45
+ return r;
46
+ };
47
+ const p2 = (r, c, d) => {
48
+ const o = r.i;
49
+ if (c & 1073741824) {
50
+ r.w = 0;
51
+ const x0 = trackContainer(r, readMember(o, "selected"));
52
+ const s0 = truthy(x0);
53
+ if (s0 !== r.v0) r.n.classList.toggle("selected", r.v0 = s0);
54
+ const s1 = toAttribute(x0, "aria-checked");
55
+ if (s1 !== r.v1) writeAttribute(r.n, "aria-checked", r.v1 = s1);
56
+ const x1 = trackContainer(r, readMember(o, "action"));
57
+ const s2 = toAttribute(x1, "data-action");
58
+ if (s2 !== r.v2) writeAttribute(r.n, "data-action", r.v2 = s2);
59
+ const x2 = !truthy(trackContainer(r, readMember(o, "color")));
60
+ const s3 = x2;
61
+ if (s3 !== r.v3) r.a1.classList.toggle("default", r.v3 = s3);
62
+ const x3 = trackContainer(r, readMember(o, "color"));
63
+ const s4 = toText(x3);
64
+ if (s4 !== r.v4) r.a1.style.setProperty("--_swatch", r.v4 = s4);
65
+ const x4 = trackContainer(r, readMember(o, "label"));
66
+ const s5 = toText(x4);
67
+ if (s5 !== r.v5) r.a2.data = r.v5 = s5;
68
+ }
69
+ };
70
+ const m3 = (o, j, l) => {
71
+ const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
72
+ const t0 = n.firstChild.nextSibling;
73
+ const t1 = t0.firstChild;
74
+ const t2 = t1.firstChild;
75
+ const t3 = t1.nextSibling;
76
+ const s = document.createComment("html-next:item-start"), t = document.createComment("html-next:item-end");
77
+ n.prepend(s);
78
+ n.append(t);
79
+ const r = { k: undefined, i: o, n: s, t, x: 0, y: 0, a0: t2, w: 0, v0: "", L0: new KeyedList(t3, t3.nextSibling, m4, p4, (o) => readMember(o, "action"), "item") };
80
+ p3(r, -1, E);
81
+ return r;
82
+ };
83
+ const p3 = (r, c, d) => {
84
+ const o = r.i;
85
+ if (c & 1073741824) {
86
+ r.w = 0;
87
+ const x0 = trackContainer(r, readMember(o, "heading"));
88
+ const s0 = toText(x0);
89
+ if (s0 !== r.v0) r.a0.data = r.v0 = s0;
90
+ }
91
+ if (c & 1073741824) r.L0.update(readMember(o, "items"), d, c);
92
+ };
93
+ const m4 = (o, j, l) => {
94
+ const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
95
+ const t0 = n.firstChild;
96
+ const t1 = t0.nextSibling.firstChild;
97
+ 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: "" };
98
+ p4(r, -1, E);
99
+ return r;
100
+ };
101
+ const p4 = (r, c, d) => {
102
+ const o = r.i;
103
+ if (c & 1073741824) {
104
+ r.w = 0;
105
+ const x0 = trackContainer(r, readIndex({ "true": "menuitemcheckbox", "false": "menuitem" }, textCall("concat", [trackContainer(r, readMember(o, "checkable"))])));
106
+ if (x0 !== NONCONFORMING) {
107
+ const s0 = toAttribute(x0, "role");
108
+ if (s0 !== r.v0) writeAttribute(r.n, "role", r.v0 = s0);
109
+ }
110
+ const x1 = trackContainer(r, readIndex({ "true": readMember(o, "checked"), "false": null }, textCall("concat", [trackContainer(r, readMember(o, "checkable"))])));
111
+ if (x1 !== NONCONFORMING) {
112
+ const s1 = toAttribute(x1, "aria-checked");
113
+ if (s1 !== r.v1) writeAttribute(r.n, "aria-checked", r.v1 = s1);
114
+ }
115
+ const x2 = trackContainer(r, readMember(o, "danger"));
116
+ const s2 = truthy(x2);
117
+ if (s2 !== r.v2) r.n.classList.toggle("danger", r.v2 = s2);
118
+ const x3 = trackContainer(r, readMember(o, "action"));
119
+ const s3 = toAttribute(x3, "data-action");
120
+ if (s3 !== r.v3) writeAttribute(r.n, "data-action", r.v3 = s3);
121
+ const x4 = trackContainer(r, readMember(o, "icon"));
122
+ const s4 = toAttribute(x4, "name");
123
+ if (s4 !== r.v4) writeAttribute(r.a1, "name", r.v4 = s4);
124
+ const x5 = trackContainer(r, readMember(o, "label"));
125
+ const s5 = toText(x5);
126
+ if (s5 !== r.v5) r.a2.data = r.v5 = s5;
127
+ }
128
+ };
129
+ const p0 = (r, c, d) => {
130
+ if (c & 64) {
131
+ const x0 = !truthy(v[6]);
132
+ const s0 = toAttribute(x0, "hidden");
133
+ if (s0 !== r.v0) writeAttribute(r.n, "hidden", r.v0 = s0);
134
+ }
135
+ if (c & 1073741825) {
136
+ const f0 = [];
137
+ const t0 = truthy(recLength(f0, rec(f0, v[0])));
138
+ if (c === -1 || c & 1 || readsChanged(r.q0, f0)) {
139
+ r.q0 = f0;
140
+ {
141
+ r.b0 = undefined;
142
+ clearRegion(r.a1, r.e0);
143
+ if (t0) { r.b0 = m1(d); r.e0.before(r.b0.n); }
144
+ }
145
+ } else if (r.b0 !== undefined) p1(r.b0, c, d);
146
+ } else if (r.b0 !== undefined) p1(r.b0, c, d);
147
+ if (c & 1073741826) r.L1.update(v[1], d, c);
148
+ };
149
+ const t0 = element.firstChild;
150
+ const t1 = t0.nextSibling.nextSibling;
151
+ const R = { n: element, v0: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, q0: undefined, L1: new RangedKeyedList(t1, t1.nextSibling, m3, p3, (o) => readMember(o, "heading"), "section") };
152
+ const I = { B };
153
+ I.R = new Set();
154
+ 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);
155
+ manageProps(I);
72
156
  return element;
73
157
  }
74
-
@@ -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 UiEditorTableOverlayEventMap {
3
3
  "add-row-before": CustomEvent<{ readonly boundaryIndex: number }>;
4
4
  "add-row-after": CustomEvent<{ readonly boundaryIndex: number }>;