@threadlabs/looma 0.52.12 → 0.53.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 (341) hide show
  1. package/components/shared/overlay.js +7 -0
  2. package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
  3. package/components/ui-meter/ui-meter.html +1 -1
  4. package/dist/index.js +1 -1
  5. package/docs/catalog.json +1 -1
  6. package/editor/components.css +19 -19
  7. package/editor/index.js +1125 -853
  8. package/package.json +3 -3
  9. package/styles/ui-action-bar.css +1 -1
  10. package/styles/ui-affordance-scope.css +1 -1
  11. package/styles/ui-avatar-group.css +1 -1
  12. package/styles/ui-avatar.css +1 -1
  13. package/styles/ui-badge.css +1 -1
  14. package/styles/ui-breadcrumb-item.css +1 -1
  15. package/styles/ui-breadcrumbs.css +1 -1
  16. package/styles/ui-button.css +1 -1
  17. package/styles/ui-calendar.css +1 -1
  18. package/styles/ui-callout.css +1 -1
  19. package/styles/ui-card-group.css +1 -1
  20. package/styles/ui-card.css +1 -1
  21. package/styles/ui-checkbox.css +1 -1
  22. package/styles/ui-cluster.css +1 -1
  23. package/styles/ui-color-picker.css +1 -1
  24. package/styles/ui-column.css +1 -1
  25. package/styles/ui-combobox.css +1 -1
  26. package/styles/ui-compact-content.css +1 -1
  27. package/styles/ui-compact-editor.css +1 -1
  28. package/styles/ui-compact-mark.css +1 -1
  29. package/styles/ui-compact-node.css +1 -1
  30. package/styles/ui-container.css +1 -1
  31. package/styles/ui-context-menu.css +1 -1
  32. package/styles/ui-cover.css +1 -1
  33. package/styles/ui-curve-editor.css +1 -1
  34. package/styles/ui-cycle-button.css +1 -1
  35. package/styles/ui-data-table.css +1 -1
  36. package/styles/ui-date-field.css +1 -1
  37. package/styles/ui-date-picker.css +1 -1
  38. package/styles/ui-date-range-picker.css +1 -1
  39. package/styles/ui-description-item.css +1 -1
  40. package/styles/ui-description-list.css +1 -1
  41. package/styles/ui-dialog.css +1 -1
  42. package/styles/ui-disclosure.css +1 -1
  43. package/styles/ui-editable.css +1 -1
  44. package/styles/ui-editor-block-actions.css +1 -1
  45. package/styles/ui-editor-chip-editor.css +1 -1
  46. package/styles/ui-editor-code-language.css +1 -1
  47. package/styles/ui-editor-footnote-editor.css +1 -1
  48. package/styles/ui-editor-formatting-tools.css +1 -1
  49. package/styles/ui-editor-image-toolbar.css +1 -1
  50. package/styles/ui-editor-insert-table-grid.css +1 -1
  51. package/styles/ui-editor-link-card.css +1 -1
  52. package/styles/ui-editor-link-form.css +1 -1
  53. package/styles/ui-editor-mention-menu-item.css +1 -1
  54. package/styles/ui-editor-mention-menu.css +1 -1
  55. package/styles/ui-editor-slash-menu-group.css +1 -1
  56. package/styles/ui-editor-slash-menu-item.css +1 -1
  57. package/styles/ui-editor-slash-menu.css +1 -1
  58. package/styles/ui-editor-surface.css +1 -1
  59. package/styles/ui-editor-table-context-menu.css +1 -1
  60. package/styles/ui-editor-table-overlay.css +1 -1
  61. package/styles/ui-editor-table-toolbar.css +1 -1
  62. package/styles/ui-editor-toolbar.css +1 -1
  63. package/styles/ui-editor.css +1 -1
  64. package/styles/ui-file-input.css +1 -1
  65. package/styles/ui-floating-action-button.css +1 -1
  66. package/styles/ui-form-field.css +1 -1
  67. package/styles/ui-grid.css +1 -1
  68. package/styles/ui-icon-button.css +1 -1
  69. package/styles/ui-icon.css +1 -1
  70. package/styles/ui-image.css +1 -1
  71. package/styles/ui-input-group.css +1 -1
  72. package/styles/ui-input.css +1 -1
  73. package/styles/ui-light-editor.css +1 -1
  74. package/styles/ui-list-item.css +1 -1
  75. package/styles/ui-list.css +1 -1
  76. package/styles/ui-listbox.css +1 -1
  77. package/styles/ui-menu-group.css +1 -1
  78. package/styles/ui-menu-item.css +1 -1
  79. package/styles/ui-menu.css +1 -1
  80. package/styles/ui-meter.css +1 -1
  81. package/styles/ui-nav-item.css +1 -1
  82. package/styles/ui-notice-stripe.css +1 -1
  83. package/styles/ui-number-input.css +1 -1
  84. package/styles/ui-page-header.css +1 -1
  85. package/styles/ui-pagination.css +1 -1
  86. package/styles/ui-popover.css +1 -1
  87. package/styles/ui-radio-group.css +1 -1
  88. package/styles/ui-radio.css +1 -1
  89. package/styles/ui-reel.css +1 -1
  90. package/styles/ui-scroll-area.css +1 -1
  91. package/styles/ui-search-result-row.css +1 -1
  92. package/styles/ui-search-shell.css +1 -1
  93. package/styles/ui-section.css +1 -1
  94. package/styles/ui-segmented-control.css +1 -1
  95. package/styles/ui-select.css +1 -1
  96. package/styles/ui-separator.css +1 -1
  97. package/styles/ui-sidebar.css +1 -1
  98. package/styles/ui-site-header.css +1 -1
  99. package/styles/ui-skeleton.css +1 -1
  100. package/styles/ui-slider.css +1 -1
  101. package/styles/ui-spinner.css +1 -1
  102. package/styles/ui-stack.css +1 -1
  103. package/styles/ui-status-message.css +1 -1
  104. package/styles/ui-swatch.css +1 -1
  105. package/styles/ui-switch.css +1 -1
  106. package/styles/ui-switcher.css +1 -1
  107. package/styles/ui-table.css +1 -1
  108. package/styles/ui-tabs.css +1 -1
  109. package/styles/ui-text.css +1 -1
  110. package/styles/ui-textarea.css +1 -1
  111. package/styles/ui-time-field.css +1 -1
  112. package/styles/ui-time-picker.css +1 -1
  113. package/styles/ui-toast-region.css +1 -1
  114. package/styles/ui-toast.css +1 -1
  115. package/styles/ui-tooltip.css +1 -1
  116. package/styles/ui-top-bar.css +1 -1
  117. package/styles/ui-tree-item.css +1 -1
  118. package/styles/ui-tree.css +1 -1
  119. package/styles/ui-wizard.css +1 -1
  120. package/vanilla/UiActionBar.d.ts +1 -1
  121. package/vanilla/UiActionBar.js +14 -12
  122. package/vanilla/UiAffordanceScope.d.ts +1 -1
  123. package/vanilla/UiAffordanceScope.js +13 -11
  124. package/vanilla/UiAvatar.d.ts +1 -1
  125. package/vanilla/UiAvatar.js +27 -25
  126. package/vanilla/UiAvatarGroup.d.ts +1 -1
  127. package/vanilla/UiAvatarGroup.js +26 -23
  128. package/vanilla/UiBadge.d.ts +1 -1
  129. package/vanilla/UiBadge.js +14 -12
  130. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  131. package/vanilla/UiBreadcrumbItem.js +14 -13
  132. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  133. package/vanilla/UiBreadcrumbs.js +10 -10
  134. package/vanilla/UiButton.d.ts +1 -1
  135. package/vanilla/UiButton.js +187 -244
  136. package/vanilla/UiCalendar.d.ts +1 -1
  137. package/vanilla/UiCalendar.js +272 -193
  138. package/vanilla/UiCallout.d.ts +1 -1
  139. package/vanilla/UiCallout.js +32 -27
  140. package/vanilla/UiCard.d.ts +1 -1
  141. package/vanilla/UiCard.js +72 -69
  142. package/vanilla/UiCardGroup.d.ts +1 -1
  143. package/vanilla/UiCardGroup.js +17 -15
  144. package/vanilla/UiCheckbox.d.ts +1 -1
  145. package/vanilla/UiCheckbox.js +32 -30
  146. package/vanilla/UiCluster.d.ts +1 -1
  147. package/vanilla/UiCluster.js +20 -18
  148. package/vanilla/UiColorPicker.d.ts +1 -1
  149. package/vanilla/UiColorPicker.js +22 -20
  150. package/vanilla/UiColumn.d.ts +2 -2
  151. package/vanilla/UiColumn.js +18 -15
  152. package/vanilla/UiCombobox.d.ts +3 -3
  153. package/vanilla/UiCombobox.js +237 -174
  154. package/vanilla/UiCompactContent.d.ts +1 -1
  155. package/vanilla/UiCompactContent.js +13 -8
  156. package/vanilla/UiCompactEditor.d.ts +1 -1
  157. package/vanilla/UiCompactEditor.js +17 -12
  158. package/vanilla/UiCompactMark.d.ts +1 -1
  159. package/vanilla/UiCompactMark.js +47 -45
  160. package/vanilla/UiCompactNode.d.ts +2 -2
  161. package/vanilla/UiCompactNode.js +37 -33
  162. package/vanilla/UiContainer.d.ts +1 -1
  163. package/vanilla/UiContainer.js +13 -11
  164. package/vanilla/UiContextMenu.d.ts +1 -1
  165. package/vanilla/UiContextMenu.js +11 -9
  166. package/vanilla/UiCover.d.ts +1 -1
  167. package/vanilla/UiCover.js +13 -11
  168. package/vanilla/UiCurveEditor.d.ts +1 -1
  169. package/vanilla/UiCurveEditor.js +40 -38
  170. package/vanilla/UiCycleButton.d.ts +2 -2
  171. package/vanilla/UiCycleButton.js +31 -26
  172. package/vanilla/UiDataTable.d.ts +1 -1
  173. package/vanilla/UiDataTable.js +26 -20
  174. package/vanilla/UiDateField.d.ts +1 -1
  175. package/vanilla/UiDateField.js +78 -75
  176. package/vanilla/UiDatePicker.d.ts +1 -1
  177. package/vanilla/UiDatePicker.js +155 -149
  178. package/vanilla/UiDateRangePicker.d.ts +1 -1
  179. package/vanilla/UiDateRangePicker.js +136 -128
  180. package/vanilla/UiDescriptionItem.d.ts +1 -1
  181. package/vanilla/UiDescriptionItem.js +13 -11
  182. package/vanilla/UiDescriptionList.d.ts +1 -1
  183. package/vanilla/UiDescriptionList.js +13 -11
  184. package/vanilla/UiDialog.d.ts +1 -1
  185. package/vanilla/UiDialog.js +14 -14
  186. package/vanilla/UiDisclosure.d.ts +1 -1
  187. package/vanilla/UiDisclosure.js +28 -26
  188. package/vanilla/UiEditable.d.ts +1 -1
  189. package/vanilla/UiEditable.js +29 -27
  190. package/vanilla/UiEditor.d.ts +1 -1
  191. package/vanilla/UiEditor.js +62 -58
  192. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  193. package/vanilla/UiEditorBlockActions.js +14 -12
  194. package/vanilla/UiEditorChipEditor.d.ts +1 -1
  195. package/vanilla/UiEditorChipEditor.js +22 -14
  196. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  197. package/vanilla/UiEditorCodeLanguage.js +23 -16
  198. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  199. package/vanilla/UiEditorFootnoteEditor.js +17 -9
  200. package/vanilla/UiEditorFormattingTools.d.ts +1 -1
  201. package/vanilla/UiEditorFormattingTools.js +108 -71
  202. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  203. package/vanilla/UiEditorImageToolbar.js +68 -66
  204. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  205. package/vanilla/UiEditorInsertTableGrid.js +50 -35
  206. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  207. package/vanilla/UiEditorLinkCard.js +27 -25
  208. package/vanilla/UiEditorLinkForm.d.ts +1 -1
  209. package/vanilla/UiEditorLinkForm.js +79 -57
  210. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  211. package/vanilla/UiEditorMentionMenu.js +63 -44
  212. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  213. package/vanilla/UiEditorMentionMenuItem.js +22 -16
  214. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  215. package/vanilla/UiEditorSlashMenu.js +52 -33
  216. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  217. package/vanilla/UiEditorSlashMenuGroup.js +19 -14
  218. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  219. package/vanilla/UiEditorSlashMenuItem.js +27 -25
  220. package/vanilla/UiEditorSurface.d.ts +1 -1
  221. package/vanilla/UiEditorSurface.js +13 -11
  222. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  223. package/vanilla/UiEditorTableContextMenu.js +81 -52
  224. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  225. package/vanilla/UiEditorTableOverlay.js +107 -68
  226. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  227. package/vanilla/UiEditorTableToolbar.js +121 -70
  228. package/vanilla/UiEditorToolbar.d.ts +1 -1
  229. package/vanilla/UiEditorToolbar.js +20 -12
  230. package/vanilla/UiFileInput.d.ts +1 -1
  231. package/vanilla/UiFileInput.js +94 -80
  232. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  233. package/vanilla/UiFloatingActionButton.js +21 -20
  234. package/vanilla/UiFormField.d.ts +1 -1
  235. package/vanilla/UiFormField.js +21 -19
  236. package/vanilla/UiGrid.d.ts +1 -1
  237. package/vanilla/UiGrid.js +26 -23
  238. package/vanilla/UiIcon.d.ts +1 -1
  239. package/vanilla/UiIcon.js +20 -15
  240. package/vanilla/UiIconButton.d.ts +1 -1
  241. package/vanilla/UiIconButton.js +35 -43
  242. package/vanilla/UiImage.d.ts +1 -1
  243. package/vanilla/UiImage.js +16 -14
  244. package/vanilla/UiInput.d.ts +1 -1
  245. package/vanilla/UiInput.js +29 -35
  246. package/vanilla/UiInputGroup.d.ts +1 -1
  247. package/vanilla/UiInputGroup.js +16 -14
  248. package/vanilla/UiLightEditor.d.ts +1 -1
  249. package/vanilla/UiLightEditor.js +29 -27
  250. package/vanilla/UiList.d.ts +1 -1
  251. package/vanilla/UiList.js +33 -27
  252. package/vanilla/UiListItem.d.ts +1 -1
  253. package/vanilla/UiListItem.js +12 -12
  254. package/vanilla/UiListbox.d.ts +1 -1
  255. package/vanilla/UiListbox.js +90 -80
  256. package/vanilla/UiMenu.d.ts +1 -1
  257. package/vanilla/UiMenu.js +20 -12
  258. package/vanilla/UiMenuGroup.d.ts +1 -1
  259. package/vanilla/UiMenuGroup.js +14 -11
  260. package/vanilla/UiMenuItem.d.ts +1 -1
  261. package/vanilla/UiMenuItem.js +74 -75
  262. package/vanilla/UiMeter.d.ts +1 -1
  263. package/vanilla/UiMeter.js +67 -62
  264. package/vanilla/UiNavItem.d.ts +1 -1
  265. package/vanilla/UiNavItem.js +63 -65
  266. package/vanilla/UiNoticeStripe.d.ts +1 -1
  267. package/vanilla/UiNoticeStripe.js +16 -16
  268. package/vanilla/UiNumberInput.d.ts +1 -1
  269. package/vanilla/UiNumberInput.js +41 -38
  270. package/vanilla/UiPageHeader.d.ts +1 -1
  271. package/vanilla/UiPageHeader.js +17 -15
  272. package/vanilla/UiPagination.d.ts +1 -1
  273. package/vanilla/UiPagination.js +53 -44
  274. package/vanilla/UiPopover.d.ts +1 -1
  275. package/vanilla/UiPopover.js +13 -11
  276. package/vanilla/UiRadio.d.ts +1 -1
  277. package/vanilla/UiRadio.js +25 -23
  278. package/vanilla/UiRadioGroup.d.ts +1 -1
  279. package/vanilla/UiRadioGroup.js +33 -36
  280. package/vanilla/UiReel.d.ts +1 -1
  281. package/vanilla/UiReel.js +20 -12
  282. package/vanilla/UiScrollArea.d.ts +1 -1
  283. package/vanilla/UiScrollArea.js +13 -11
  284. package/vanilla/UiSearchResultRow.d.ts +1 -1
  285. package/vanilla/UiSearchResultRow.js +21 -20
  286. package/vanilla/UiSearchShell.d.ts +1 -1
  287. package/vanilla/UiSearchShell.js +16 -14
  288. package/vanilla/UiSection.d.ts +1 -1
  289. package/vanilla/UiSection.js +48 -45
  290. package/vanilla/UiSegmentedControl.d.ts +2 -2
  291. package/vanilla/UiSegmentedControl.js +52 -47
  292. package/vanilla/UiSelect.d.ts +1 -1
  293. package/vanilla/UiSelect.js +17 -21
  294. package/vanilla/UiSeparator.d.ts +1 -1
  295. package/vanilla/UiSeparator.js +12 -12
  296. package/vanilla/UiSidebar.d.ts +1 -1
  297. package/vanilla/UiSidebar.js +17 -15
  298. package/vanilla/UiSiteHeader.d.ts +1 -1
  299. package/vanilla/UiSiteHeader.js +25 -23
  300. package/vanilla/UiSkeleton.d.ts +1 -1
  301. package/vanilla/UiSkeleton.js +21 -20
  302. package/vanilla/UiSlider.d.ts +1 -1
  303. package/vanilla/UiSlider.js +50 -47
  304. package/vanilla/UiSpinner.d.ts +1 -1
  305. package/vanilla/UiSpinner.js +34 -27
  306. package/vanilla/UiStack.d.ts +1 -1
  307. package/vanilla/UiStack.js +12 -12
  308. package/vanilla/UiStatusMessage.d.ts +1 -1
  309. package/vanilla/UiStatusMessage.js +22 -21
  310. package/vanilla/UiSwatch.d.ts +1 -1
  311. package/vanilla/UiSwatch.js +20 -17
  312. package/vanilla/UiSwitch.d.ts +1 -1
  313. package/vanilla/UiSwitch.js +25 -23
  314. package/vanilla/UiSwitcher.d.ts +1 -1
  315. package/vanilla/UiSwitcher.js +13 -11
  316. package/vanilla/UiTable.d.ts +1 -1
  317. package/vanilla/UiTable.js +13 -11
  318. package/vanilla/UiTabs.d.ts +1 -1
  319. package/vanilla/UiTabs.js +39 -28
  320. package/vanilla/UiText.d.ts +1 -1
  321. package/vanilla/UiText.js +128 -125
  322. package/vanilla/UiTextarea.d.ts +1 -1
  323. package/vanilla/UiTextarea.js +27 -39
  324. package/vanilla/UiTimeField.d.ts +1 -1
  325. package/vanilla/UiTimeField.js +42 -40
  326. package/vanilla/UiTimePicker.d.ts +1 -1
  327. package/vanilla/UiTimePicker.js +105 -102
  328. package/vanilla/UiToast.d.ts +1 -1
  329. package/vanilla/UiToast.js +14 -14
  330. package/vanilla/UiToastRegion.d.ts +1 -1
  331. package/vanilla/UiToastRegion.js +61 -31
  332. package/vanilla/UiTooltip.d.ts +1 -1
  333. package/vanilla/UiTooltip.js +17 -14
  334. package/vanilla/UiTopBar.d.ts +1 -1
  335. package/vanilla/UiTopBar.js +24 -22
  336. package/vanilla/UiTree.d.ts +1 -1
  337. package/vanilla/UiTree.js +17 -12
  338. package/vanilla/UiTreeItem.d.ts +1 -1
  339. package/vanilla/UiTreeItem.js +73 -79
  340. package/vanilla/UiWizard.d.ts +1 -1
  341. package/vanilla/UiWizard.js +61 -40
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, clearRegion, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, clearRegion, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-dialog/ui-dialog.js";
4
4
  import "../styles/ui-dialog.css";
5
5
 
@@ -13,12 +13,9 @@ const D = { g: "ui-dialog", props: { "alert": { "required":false,"default":false
13
13
  const C = (host) => activateModule(controller, host);
14
14
 
15
15
  export function createUiDialog(options = {}, html) {
16
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
16
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
17
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["alert","closedby","for","label","modal","modeless","open","size"].includes(name)));
17
18
  const element = document.createElement("dialog");
18
- for (const [name, value] of Object.entries(attributes)) {
19
- if (value === null || value === undefined || value === false) continue;
20
- element.setAttribute(name, value === true ? "" : String(value));
21
- }
22
19
  element.setAttribute("component", "ui-dialog");
23
20
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
24
21
  const v = [false, "Dialog", null, null, null, null, null, null, null, null];
@@ -55,19 +52,21 @@ export function createUiDialog(options = {}, html) {
55
52
  };
56
53
  const p0 = (r, c, d) => {
57
54
  if (c & 2) {
55
+ resetForwardedAttributes(r.n, attributes, r.v0);
56
+ r.v0 = forwardAttributes(r.n, attributes);
58
57
  const x0 = v[1];
59
- const s0 = toAttribute(x0, "aria-label");
60
- if (s0 !== r.v0) writeAttribute(r.n, "aria-label", r.v0 = s0);
58
+ const s1 = toAttribute(x0, "aria-label");
59
+ writeAttribute(r.n, "aria-label", r.v1 = s1);
61
60
  }
62
61
  if (c === -1) {
63
62
  const x1 = true;
64
- const s1 = toAttribute(x1, "trim");
65
- if (s1 !== r.v1) writeAttribute(r.a5, "trim", r.v1 = s1);
63
+ const s2 = toAttribute(x1, "trim");
64
+ if (s2 !== r.v2) writeAttribute(r.a5, "trim", r.v2 = s2);
66
65
  }
67
66
  if (c & 516) {
68
67
  const x2 = hostState(["size","alert"], [v[9], v[2]]);
69
- const s2 = x2;
70
- if (s2 !== r.v2) writeAttribute(r.n, "data-ui-dialog-state", (r.v2 = s2) === "" ? null : s2);
68
+ const s3 = x2;
69
+ if (s3 !== r.v3) writeAttribute(r.n, "data-ui-dialog-state", (r.v3 = s3) === "" ? null : s3);
71
70
  }
72
71
  if (c & 32 && !(truthy(v[5])) !== !r.b0) {
73
72
  if (r.b0) { r.b0 = undefined; clearRegion(r.a2, r.e0); }
@@ -88,10 +87,11 @@ export function createUiDialog(options = {}, html) {
88
87
  const t5 = t4.firstChild;
89
88
  const t6 = t3.nextSibling.nextSibling;
90
89
  const t7 = t6.firstChild;
91
- const R = { n: element, a5: t4, v0: undefined, v1: null, v2: undefined, a2: t1, e0: t1.nextSibling, b0: undefined, a6: t5, e1: t5.nextSibling, b1: undefined, f1: undefined, a8: t7, e2: t7.nextSibling, b2: undefined, f2: undefined };
90
+ const R = { n: element, a5: t4, v0: undefined, v1: undefined, v2: null, v3: undefined, a2: t1, e0: t1.nextSibling, b0: undefined, a6: t5, e1: t5.nextSibling, b1: undefined, f1: undefined, a8: t7, e2: t7.nextSibling, b2: undefined, f2: undefined };
92
91
  const I = { B };
93
92
  const J = project(I, children, slots);
94
93
  I.R = new Set();
94
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
95
95
  attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
96
96
  manageProps(I);
97
97
  I.r["header"] = t0;
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
2
  export interface UiDisclosureEventMap {
3
3
  open: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  close: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, toAttribute, toText, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkInteger, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, toAttribute, toText, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkInteger, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-disclosure/ui-disclosure.js";
4
4
  import "../styles/ui-disclosure.css";
5
5
 
@@ -14,12 +14,9 @@ const D = { g: "ui-disclosure", props: { "density": { "required":false,"values":
14
14
  const C = (host) => activateModule(controller, host);
15
15
 
16
16
  export function createUiDisclosure(options = {}, html) {
17
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
17
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
18
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["density","disabled","fill","heading-level","name","open","required-open","summary","variant"].includes(name)));
18
19
  const element = document.createElement("div");
19
- for (const [name, value] of Object.entries(attributes)) {
20
- if (value === null || value === undefined || value === false) continue;
21
- element.setAttribute(name, value === true ? "" : String(value));
22
- }
23
20
  element.setAttribute("component", "ui-disclosure");
24
21
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
25
22
  const v = [false, "", null, null, null, null, null, null, null, null, null, null, null];
@@ -63,48 +60,52 @@ export function createUiDisclosure(options = {}, html) {
63
60
  const p4 = (r, c, d) => {
64
61
  };
65
62
  const p0 = (r, c, d) => {
63
+ if (c === -1) {
64
+ resetForwardedAttributes(r.n, attributes, r.v0);
65
+ r.v0 = forwardAttributes(r.n, attributes);
66
+ }
66
67
  if (c & 1073741828) {
67
68
  const x0 = v[2];
68
- const s0 = toAttribute(x0, "role");
69
- if (s0 !== r.v0) writeAttribute(r.a0, "role", r.v0 = s0);
69
+ const s1 = toAttribute(x0, "role");
70
+ if (s1 !== r.v1) writeAttribute(r.a1, "role", r.v1 = s1);
70
71
  }
71
72
  if (c & 8) {
72
73
  const x1 = v[3];
73
- const s1 = toAttribute(x1, "aria-level");
74
- if (s1 !== r.v1) writeAttribute(r.a0, "aria-level", r.v1 = s1);
74
+ const s2 = toAttribute(x1, "aria-level");
75
+ if (s2 !== r.v2) writeAttribute(r.a1, "aria-level", r.v2 = s2);
75
76
  }
76
77
  if (c & 2) {
77
78
  const x2 = v[1];
78
- const s2 = toAttribute(x2, "aria-controls");
79
- if (s2 !== r.v2) writeAttribute(r.a1, "aria-controls", r.v2 = s2);
80
- const s5 = toAttribute(x2, "id");
81
- if (s5 !== r.v5) writeAttribute(r.a5, "id", r.v5 = s5);
79
+ const s3 = toAttribute(x2, "aria-controls");
80
+ if (s3 !== r.v3) writeAttribute(r.a2, "aria-controls", r.v3 = s3);
81
+ const s6 = toAttribute(x2, "id");
82
+ if (s6 !== r.v6) writeAttribute(r.a6, "id", r.v6 = s6);
82
83
  }
83
84
  if (c & 1) {
84
85
  const x3 = v[0];
85
- const s3 = toAttribute(x3, "aria-expanded");
86
- if (s3 !== r.v3) writeAttribute(r.a1, "aria-expanded", r.v3 = s3);
86
+ const s4 = toAttribute(x3, "aria-expanded");
87
+ if (s4 !== r.v4) writeAttribute(r.a2, "aria-expanded", r.v4 = s4);
87
88
  }
88
89
  if (c & 32) {
89
90
  const x4 = v[5];
90
- const s4 = toAttribute(x4, "disabled");
91
- if (s4 !== r.v4) writeAttribute(r.a1, "disabled", r.v4 = s4);
91
+ const s5 = toAttribute(x4, "disabled");
92
+ if (s5 !== r.v5) writeAttribute(r.a2, "disabled", r.v5 = s5);
92
93
  }
93
94
  if (c & 4177) {
94
95
  const x5 = hostState(["density","internalOpen","fill","variant"], [v[4], v[0], v[6], v[12]]);
95
- const s6 = x5;
96
- if (s6 !== r.v6) writeAttribute(r.n, "data-ui-disclosure-state", (r.v6 = s6) === "" ? null : s6);
96
+ const s7 = x5;
97
+ if (s7 !== r.v7) writeAttribute(r.n, "data-ui-disclosure-state", (r.v7 = s7) === "" ? null : s7);
97
98
  }
98
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a2, r.e0, "leading", J, false, undefined, d);
99
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a3, r.e0, "leading", J, false, undefined, d);
99
100
  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); } }
100
101
  else if (r.b0 !== undefined) p1(r.b0, c, d);
101
- if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a3, r.e1, "summary", J, true, undefined, d);
102
+ if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a4, r.e1, "summary", J, true, undefined, d, r.z ??= []);
102
103
  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); } }
103
104
  else if (r.b1 !== undefined) p2(r.b1, c, d);
104
- if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a4, r.e2, "indicator", J, true, undefined, d);
105
+ if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a5, r.e2, "indicator", J, true, undefined, d, r.z ??= []);
105
106
  if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m3(d); at.before(r.b2.n); } }
106
107
  else if (r.b2 !== undefined) p3(r.b2, c, d);
107
- if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a6, r.e3, "", J, false, undefined, d);
108
+ if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a7, r.e3, "", J, false, undefined, d);
108
109
  if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m4(d); at.before(r.b3.n); } }
109
110
  else if (r.b3 !== undefined) p4(r.b3, c, d);
110
111
  };
@@ -117,10 +118,11 @@ export function createUiDisclosure(options = {}, html) {
117
118
  const t6 = t4.nextSibling.nextSibling.firstChild;
118
119
  const t7 = t0.nextSibling.nextSibling;
119
120
  const t8 = t7.firstChild.firstChild;
120
- const R = { n: element, a0: t0, a1: t1, a5: t7, v0: null, v1: null, v2: null, v3: null, v4: null, v5: null, v6: undefined, a2: t3, e0: t3.nextSibling, b0: undefined, f0: undefined, a3: t5, e1: t5.nextSibling, b1: undefined, f1: undefined, a4: t6, e2: t6.nextSibling, b2: undefined, f2: undefined, a6: t8, e3: t8.nextSibling, b3: undefined, f3: undefined };
121
+ const R = { n: element, a1: t0, a2: t1, a6: t7, v0: undefined, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: undefined, a3: t3, e0: t3.nextSibling, b0: undefined, f0: undefined, a4: t5, e1: t5.nextSibling, b1: undefined, f1: undefined, a5: t6, e2: t6.nextSibling, b2: undefined, f2: undefined, a7: t8, e3: t8.nextSibling, b3: undefined, f3: undefined };
121
122
  const I = { B };
122
123
  const J = project(I, children, slots);
123
124
  I.R = new Set();
125
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
124
126
  attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
125
127
  manageProps(I);
126
128
  I.r["heading"] = t0;
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
2
  export interface UiEditableEventMap {
3
3
  input: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  change: CustomEvent<{ readonly value: string; readonly previousValue: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, clearRegion, readsChanged, rec, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkConstrained, checkFormat, checkNumber, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, clearRegion, readsChanged, rec, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkConstrained, checkFormat, checkNumber, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editable/ui-editable.js";
4
4
  import "../styles/ui-editable.css";
5
5
 
@@ -12,12 +12,9 @@ const D = { g: "ui-editable", props: { "actions": { "required":false,"default":f
12
12
  const C = (host) => activateModule(controller, host);
13
13
 
14
14
  export function createUiEditable(options = {}, html) {
15
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
15
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
16
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["actions","cancel-label","disabled","edit","hint","label","max-length","placeholder","required","save-label","value"].includes(name)));
16
17
  const element = document.createElement("div");
17
- for (const [name, value] of Object.entries(attributes)) {
18
- if (value === null || value === undefined || value === false) continue;
19
- element.setAttribute(name, value === true ? "" : String(value));
20
- }
21
18
  element.setAttribute("component", "ui-editable");
22
19
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
23
20
  const v = [false, "", "", null, null, null, null, null, null, null, null, null, null, null];
@@ -58,53 +55,57 @@ export function createUiEditable(options = {}, html) {
58
55
  }
59
56
  };
60
57
  const p0 = (r, c, d) => {
58
+ if (c === -1) {
59
+ resetForwardedAttributes(r.n, attributes, r.v0);
60
+ r.v0 = forwardAttributes(r.n, attributes);
61
+ }
61
62
  if (c & 32) {
62
63
  const x0 = v[5];
63
- const s0 = toAttribute(x0, "disabled");
64
- if (s0 !== r.v0) writeAttribute(r.a0, "disabled", r.v0 = s0);
64
+ const s1 = toAttribute(x0, "disabled");
65
+ if (s1 !== r.v1) writeAttribute(r.a1, "disabled", r.v1 = s1);
65
66
  }
66
67
  if (c & 2) {
67
68
  const x1 = v[1];
68
- const s1 = toText(x1);
69
- if (s1 !== r.v1) r.a1.data = r.v1 = s1;
69
+ const s2 = toText(x1);
70
+ if (s2 !== r.v2) r.a2.data = r.v2 = s2;
70
71
  }
71
72
  if (c & 4) {
72
73
  const f0 = [];
73
74
  const x2 = rec(f0, v[2]);
74
- if (c === -1 || c & 4 || readsChanged(r.v2, f0)) {
75
- r.v2 = f0;
76
- r.a3["value"] = x2;
75
+ if (c === -1 || c & 4 || readsChanged(r.v3, f0)) {
76
+ r.v3 = f0;
77
+ r.a4["value"] = x2;
77
78
  }
78
79
  }
79
80
  if (c & 256) {
80
81
  const x3 = v[8];
81
- const s3 = toAttribute(x3, "aria-label");
82
- if (s3 !== r.v3) writeAttribute(r.a3, "aria-label", r.v3 = s3);
82
+ const s4 = toAttribute(x3, "aria-label");
83
+ if (s4 !== r.v4) writeAttribute(r.a4, "aria-label", r.v4 = s4);
83
84
  }
84
85
  if (c & 1024) {
85
86
  const x4 = v[10];
86
- const s4 = toAttribute(x4, "placeholder");
87
- if (s4 !== r.v4) writeAttribute(r.a3, "placeholder", r.v4 = s4);
87
+ const s5 = toAttribute(x4, "placeholder");
88
+ if (s5 !== r.v5) writeAttribute(r.a4, "placeholder", r.v5 = s5);
88
89
  }
89
90
  if (c & 2048) {
90
91
  const x5 = v[11];
91
- const s5 = toAttribute(x5, "required");
92
- if (s5 !== r.v5) writeAttribute(r.a3, "required", r.v5 = s5);
92
+ const s6 = toAttribute(x5, "required");
93
+ if (s6 !== r.v6) writeAttribute(r.a4, "required", r.v6 = s6);
93
94
  }
94
95
  if (c & 33) {
95
96
  const x6 = (truthy(v[5]) || !v[0]);
96
- const s6 = toAttribute(x6, "disabled");
97
- if (s6 !== r.v6) writeAttribute(r.a3, "disabled", r.v6 = s6);
97
+ const s7 = toAttribute(x6, "disabled");
98
+ if (s7 !== r.v7) writeAttribute(r.a4, "disabled", r.v7 = s7);
98
99
  const x7 = hostState(["internalEdit","disabled"], [v[0], v[5]]);
99
- const s7 = x7;
100
- if (s7 !== r.v7) writeAttribute(r.n, "data-ui-editable-state", (r.v7 = s7) === "" ? null : s7);
100
+ const s8 = x7;
101
+ if (s8 !== r.v8) writeAttribute(r.n, "data-ui-editable-state", (r.v8 = s8) === "" ? null : s8);
101
102
  }
102
103
  if (c & 128 && !(truthy(v[7])) !== !r.b0) {
103
- if (r.b0) { r.b0 = undefined; clearRegion(r.a2, r.e0); }
104
+ if (r.b0) { r.b0 = undefined; clearRegion(r.a3, r.e0); }
104
105
  else { r.b0 = m1(d); r.e0.before(r.b0.n); }
105
106
  } else if (r.b0 !== undefined) p1(r.b0, c, d);
106
107
  if (c & 8 && !(truthy(v[3])) !== !r.b1) {
107
- if (r.b1) { r.b1 = undefined; clearRegion(r.a4, r.e1); }
108
+ if (r.b1) { r.b1 = undefined; clearRegion(r.a5, r.e1); }
108
109
  else { r.b1 = m2(d); r.e1.before(r.b1.n); }
109
110
  } else if (r.b1 !== undefined) p2(r.b1, c, d);
110
111
  };
@@ -115,9 +116,10 @@ export function createUiEditable(options = {}, html) {
115
116
  const t4 = t2.nextSibling.nextSibling;
116
117
  const t5 = t1.nextSibling.nextSibling;
117
118
  const t6 = t0.nextSibling.nextSibling;
118
- const R = { n: element, a0: t1, a1: t3, a3: t5, v0: null, v1: "", v2: undefined, v3: null, v4: null, v5: null, v6: null, v7: undefined, a2: t4, e0: t4.nextSibling, b0: undefined, a4: t6, e1: t6.nextSibling, b1: undefined };
119
+ const R = { n: element, a1: t1, a2: t3, a4: t5, v0: undefined, v1: null, v2: "", v3: undefined, v4: null, v5: null, v6: null, v7: null, v8: undefined, a3: t4, e0: t4.nextSibling, b0: undefined, a5: t6, e1: t6.nextSibling, b1: undefined };
119
120
  const I = { B };
120
121
  I.R = new Set();
122
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
121
123
  attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
122
124
  manageProps(I);
123
125
  I.r["preview"] = t1;
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
2
  import type { RequestEvent } from "@nextwebwg/html-next/generated-runtime";
3
3
  export interface UiEditorEventMap {
4
4
  change: CustomEvent<{ readonly content: { readonly type: string; readonly [name: string]: unknown } }>;
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, clearRegion, KeyedList, NONCONFORMING, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeUrlAttribute, dispatchDeclared, detailCheck, plainObject, dispose, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, RangedIndexedList, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, checkUnknown, requestHost, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, equalValue, buildTemplate, clearRegion, KeyedList, NONCONFORMING, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeUrlAttribute, dispatchDeclared, detailCheck, plainObject, dispose, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, RangedIndexedList, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, checkUnknown, forwardAttributes, resetForwardedAttributes, requestHost, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor/ui-editor.js";
4
4
  import "../styles/ui-editor.css";
5
5
 
@@ -48,12 +48,9 @@ const D = { g: "ui-editor", props: { "compactToolbar": { "required":false,"defau
48
48
  const C = (host, I) => activateModule(controller, requestHost(host, I));
49
49
 
50
50
  export function createUiEditor(options = {}, html) {
51
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
51
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
52
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["compact-toolbar","content","content-density","disable-highlight","editable","label","link-base-url","link-target-label","mention-items","mention-limit","placeholder","range-actions","references","selection-actions","toolbar-mode","toolbar-open","toolbar-trigger-id"].includes(name)));
52
53
  const element = document.createElement("div");
53
- for (const [name, value] of Object.entries(attributes)) {
54
- if (value === null || value === undefined || value === false) continue;
55
- element.setAttribute(name, value === true ? "" : String(value));
56
- }
57
54
  if (!element.hasAttribute("tabindex")) element.setAttribute("tabindex", "-1");
58
55
  element.setAttribute("component", "ui-editor");
59
56
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
@@ -383,19 +380,19 @@ export function createUiEditor(options = {}, html) {
383
380
  const x0 = readMember(v[0], "mobileToolbarMode");
384
381
  const s0 = toAttribute(x0, "data-mode");
385
382
  if (s0 !== r.v0) writeAttribute(r.n, "data-mode", r.v0 = s0);
386
- const x1 = ((readMember(v[0], "mobileToolbarMode") === "table") ? "Table editing" : "Text formatting");
383
+ const x1 = (truthy(equalValue(readMember(v[0], "mobileToolbarMode"), "table")) ? "Table editing" : "Text formatting");
387
384
  const s1 = toAttribute(x1, "aria-label");
388
385
  if (s1 !== r.v1) writeAttribute(r.n, "aria-label", r.v1 = s1);
389
386
  }
390
- if (c & 1073741825 && !((readMember(v[0], "mobileToolbarMode") === "table")) !== !r.b0) {
387
+ if (c & 1073741825 && !(truthy(equalValue(readMember(v[0], "mobileToolbarMode"), "table"))) !== !r.b0) {
391
388
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
392
389
  else { r.b0 = m15(d); r.e0.before(r.b0.n); }
393
390
  } else if (r.b0 !== undefined) p15(r.b0, c, d);
394
- if (c & 1073741825 && !((readMember(v[0], "mobileToolbarMode") === "table")) !== !r.b1) {
391
+ if (c & 1073741825 && !(truthy(equalValue(readMember(v[0], "mobileToolbarMode"), "table"))) !== !r.b1) {
395
392
  if (r.b1) { r.b1 = undefined; clearRegion(r.a2, r.e1); }
396
393
  else { r.b1 = m16(d); r.e1.before(r.b1.n); }
397
394
  } else if (r.b1 !== undefined) p16(r.b1, c, d);
398
- if (c & 1073741825 && !((readMember(v[0], "mobileToolbarMode") !== "table")) !== !r.b2) {
395
+ if (c & 1073741825 && !(truthy(equalValue(readMember(v[0], "mobileToolbarMode"), "table", true))) !== !r.b2) {
399
396
  if (r.b2) { r.b2 = undefined; clearRegion(r.a3, r.e2); }
400
397
  else { r.b2 = m17(d); r.e2.before(r.b2.n); }
401
398
  } else if (r.b2 !== undefined) p17(r.b2, c, d);
@@ -871,55 +868,61 @@ export function createUiEditor(options = {}, html) {
871
868
  };
872
869
  const p0 = (r, c, d) => {
873
870
  if (c & 1073741857) {
874
- const x0 = textCall("concat", ["looma-editor", (truthy(v[5]) ? "" : " looma-editor--readonly"), (truthy(readMember(v[0], "dragOver")) ? " looma-editor--drag-over" : "")]);
875
- if (x0 !== NONCONFORMING) {
876
- const s0 = toAttribute(x0, "class");
877
- if (s0 !== r.v0) writeAttribute(r.n, "class", r.v0 = s0);
871
+ resetForwardedAttributes(r.n, attributes, r.v0);
872
+ r.v0 = forwardAttributes(r.n, attributes);
873
+ const x0 = "-1";
874
+ const s1 = toAttribute(x0, "tabindex");
875
+ writeAttribute(r.n, "tabindex", r.v1 = s1);
876
+ const x1 = textCall("concat", ["looma-editor", (truthy(v[5]) ? "" : " looma-editor--readonly"), (truthy(readMember(v[0], "dragOver")) ? " looma-editor--drag-over" : "")]);
877
+ if (x1 !== NONCONFORMING) r.g2 = x1;
878
+ if (r.g2 !== NONCONFORMING) {
879
+ const s2 = toAttribute(r.g2, "class");
880
+ writeAttribute(r.n, "class", r.v2 = s2);
878
881
  }
879
882
  }
880
883
  if (c & 1073741825) {
881
- const x1 = readMember(v[0], "density");
882
- const s1 = toAttribute(x1, "density");
883
- if (s1 !== r.v1) writeAttribute(r.a7, "density", r.v1 = s1);
884
- const x2 = readMember(readMember(v[0], "chip"), "open");
885
- const s3 = toAttribute(x2, "open");
886
- if (s3 !== r.v3) writeAttribute(r.a19, "open", r.v3 = s3);
887
- const x3 = readMember(v[0], "chipAnchorId");
888
- const s4 = toAttribute(x3, "for");
889
- if (s4 !== r.v4) writeAttribute(r.a19, "for", r.v4 = s4);
890
- const x4 = readMember(readMember(v[0], "chip"), "label");
891
- const s5 = toAttribute(x4, "label");
892
- if (s5 !== r.v5) writeAttribute(r.a20, "label", r.v5 = s5);
893
- const x5 = readMember(readMember(v[0], "chip"), "color");
894
- const s6 = toAttribute(x5, "color");
895
- if (s6 !== r.v6) writeAttribute(r.a20, "color", r.v6 = s6);
896
- const x6 = readMember(v[0], "linkOpen");
897
- const s7 = toAttribute(x6, "open");
898
- if (s7 !== r.v7) writeAttribute(r.a23, "open", r.v7 = s7);
899
- const x7 = readMember(v[0], "linkAnchorId");
900
- const s8 = toAttribute(x7, "for");
901
- if (s8 !== r.v8) writeAttribute(r.a23, "for", r.v8 = s8);
902
- const x8 = readMember(v[0], "placement");
903
- const s9 = toAttribute(x8, "placement");
904
- if (s9 !== r.v9) writeAttribute(r.a23, "placement", r.v9 = s9);
905
- const x9 = readMember(v[0], "blockActionAnchorId");
906
- const s10 = toAttribute(x9, "for");
907
- if (s10 !== r.v10) writeAttribute(r.a26, "for", r.v10 = s10);
908
- const s11 = toAttribute(x8, "placement");
909
- if (s11 !== r.v11) writeAttribute(r.a26, "placement", r.v11 = s11);
910
- const x10 = readMember(v[0], "tablePickerOpen");
911
- const s12 = toAttribute(x10, "open");
912
- if (s12 !== r.v12) writeAttribute(r.a27, "open", r.v12 = s12);
913
- const x11 = readMember(v[0], "tablePickerAnchorId");
914
- const s13 = toAttribute(x11, "for");
915
- if (s13 !== r.v13) writeAttribute(r.a27, "for", r.v13 = s13);
916
- const s14 = toAttribute(x8, "placement");
917
- if (s14 !== r.v14) writeAttribute(r.a27, "placement", r.v14 = s14);
884
+ const x2 = readMember(v[0], "density");
885
+ const s3 = toAttribute(x2, "density");
886
+ if (s3 !== r.v3) writeAttribute(r.a7, "density", r.v3 = s3);
887
+ const x3 = readMember(readMember(v[0], "chip"), "open");
888
+ const s5 = toAttribute(x3, "open");
889
+ if (s5 !== r.v5) writeAttribute(r.a19, "open", r.v5 = s5);
890
+ const x4 = readMember(v[0], "chipAnchorId");
891
+ const s6 = toAttribute(x4, "for");
892
+ if (s6 !== r.v6) writeAttribute(r.a19, "for", r.v6 = s6);
893
+ const x5 = readMember(readMember(v[0], "chip"), "label");
894
+ const s7 = toAttribute(x5, "label");
895
+ if (s7 !== r.v7) writeAttribute(r.a20, "label", r.v7 = s7);
896
+ const x6 = readMember(readMember(v[0], "chip"), "color");
897
+ const s8 = toAttribute(x6, "color");
898
+ if (s8 !== r.v8) writeAttribute(r.a20, "color", r.v8 = s8);
899
+ const x7 = readMember(v[0], "linkOpen");
900
+ const s9 = toAttribute(x7, "open");
901
+ if (s9 !== r.v9) writeAttribute(r.a23, "open", r.v9 = s9);
902
+ const x8 = readMember(v[0], "linkAnchorId");
903
+ const s10 = toAttribute(x8, "for");
904
+ if (s10 !== r.v10) writeAttribute(r.a23, "for", r.v10 = s10);
905
+ const x9 = readMember(v[0], "placement");
906
+ const s11 = toAttribute(x9, "placement");
907
+ if (s11 !== r.v11) writeAttribute(r.a23, "placement", r.v11 = s11);
908
+ const x10 = readMember(v[0], "blockActionAnchorId");
909
+ const s12 = toAttribute(x10, "for");
910
+ if (s12 !== r.v12) writeAttribute(r.a26, "for", r.v12 = s12);
911
+ const s13 = toAttribute(x9, "placement");
912
+ if (s13 !== r.v13) writeAttribute(r.a26, "placement", r.v13 = s13);
913
+ const x11 = readMember(v[0], "tablePickerOpen");
914
+ const s14 = toAttribute(x11, "open");
915
+ if (s14 !== r.v14) writeAttribute(r.a27, "open", r.v14 = s14);
916
+ const x12 = readMember(v[0], "tablePickerAnchorId");
917
+ const s15 = toAttribute(x12, "for");
918
+ if (s15 !== r.v15) writeAttribute(r.a27, "for", r.v15 = s15);
919
+ const s16 = toAttribute(x9, "placement");
920
+ if (s16 !== r.v16) writeAttribute(r.a27, "placement", r.v16 = s16);
918
921
  }
919
922
  if (c === -1) {
920
- const x12 = true;
921
- const s2 = toAttribute(x12, "multiple");
922
- if (s2 !== r.v2) writeAttribute(r.a12, "multiple", r.v2 = s2);
923
+ const x13 = true;
924
+ const s4 = toAttribute(x13, "multiple");
925
+ if (s4 !== r.v4) writeAttribute(r.a12, "multiple", r.v4 = s4);
923
926
  }
924
927
  if (c & 1073741825 && !(truthy(readMember(v[0], "resizeHintFor"))) !== !r.b0) {
925
928
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
@@ -977,11 +980,11 @@ export function createUiEditor(options = {}, html) {
977
980
  if (r.b13) { r.b13 = undefined; clearRegion(r.a18, r.e13); }
978
981
  else { r.b13 = m22(d); r.e13.before(r.b13.n); }
979
982
  } else if (r.b13 !== undefined) p22(r.b13, c, d);
980
- if (c & 1073741825 && !((truthy(readMember(readMember(v[0], "footnote"), "open")) && (readMember(readMember(v[0], "footnote"), "surface") === "actions"))) !== !r.b14) {
983
+ if (c & 1073741825 && !((truthy(readMember(readMember(v[0], "footnote"), "open")) && truthy(equalValue(readMember(readMember(v[0], "footnote"), "surface"), "actions")))) !== !r.b14) {
981
984
  if (r.b14) { r.b14 = undefined; clearRegion(r.a21, r.e14); }
982
985
  else { r.b14 = m23(d); r.e14.before(r.b14.n); }
983
986
  } else if (r.b14 !== undefined) p23(r.b14, c, d);
984
- if (c & 1073741825 && !((truthy(readMember(readMember(v[0], "footnote"), "open")) && (readMember(readMember(v[0], "footnote"), "surface") === "editor"))) !== !r.b15) {
987
+ if (c & 1073741825 && !((truthy(readMember(readMember(v[0], "footnote"), "open")) && truthy(equalValue(readMember(readMember(v[0], "footnote"), "surface"), "editor")))) !== !r.b15) {
985
988
  if (r.b15) { r.b15 = undefined; clearRegion(r.a22, r.e15); }
986
989
  else { r.b15 = m24(d); r.e15.before(r.b15.n); }
987
990
  } else if (r.b15 !== undefined) p24(r.b15, c, d);
@@ -1047,10 +1050,11 @@ export function createUiEditor(options = {}, html) {
1047
1050
  const t30 = t29.nextSibling.nextSibling.nextSibling;
1048
1051
  const t31 = t30.nextSibling.nextSibling.nextSibling;
1049
1052
  const t32 = t31.nextSibling.nextSibling.nextSibling;
1050
- const R = { n: element, a7: t6, a12: t11, a19: t18, a20: t19, a23: t22, a26: t25, a27: t26, v0: undefined, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, v14: null, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, a3: t2, e2: t2.nextSibling, b2: undefined, a4: t3, e3: t3.nextSibling, b3: undefined, a5: t4, e4: t4.nextSibling, b4: undefined, a6: t5, e5: t5.nextSibling, b5: undefined, a8: t7, e6: t7.nextSibling, b6: undefined, a10: t9, e7: t9.nextSibling, b7: undefined, a11: t10, e8: t10.nextSibling, b8: undefined, a14: t13, e9: t13.nextSibling, b9: undefined, a15: t14, e10: t14.nextSibling, b10: undefined, a16: t15, e11: t15.nextSibling, b11: undefined, a17: t16, e12: t16.nextSibling, b12: undefined, a18: t17, e13: t17.nextSibling, b13: undefined, a21: t20, e14: t20.nextSibling, b14: undefined, a22: t21, e15: t21.nextSibling, b15: undefined, a24: t23, e16: t23.nextSibling, b16: undefined, a25: t24, e17: t24.nextSibling, b17: undefined, a29: t28, e18: t28.nextSibling, b18: undefined, a30: t29, e19: t29.nextSibling, b19: undefined, a31: t30, e20: t30.nextSibling, b20: undefined, a32: t31, e21: t31.nextSibling, b21: undefined, a33: t32, e22: t32.nextSibling, b22: undefined };
1053
+ const R = { n: element, a7: t6, a12: t11, a19: t18, a20: t19, a23: t22, a26: t25, a27: t26, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, v14: null, v15: null, v16: null, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, a3: t2, e2: t2.nextSibling, b2: undefined, a4: t3, e3: t3.nextSibling, b3: undefined, a5: t4, e4: t4.nextSibling, b4: undefined, a6: t5, e5: t5.nextSibling, b5: undefined, a8: t7, e6: t7.nextSibling, b6: undefined, a10: t9, e7: t9.nextSibling, b7: undefined, a11: t10, e8: t10.nextSibling, b8: undefined, a14: t13, e9: t13.nextSibling, b9: undefined, a15: t14, e10: t14.nextSibling, b10: undefined, a16: t15, e11: t15.nextSibling, b11: undefined, a17: t16, e12: t16.nextSibling, b12: undefined, a18: t17, e13: t17.nextSibling, b13: undefined, a21: t20, e14: t20.nextSibling, b14: undefined, a22: t21, e15: t21.nextSibling, b15: undefined, a24: t23, e16: t23.nextSibling, b16: undefined, a25: t24, e17: t24.nextSibling, b17: undefined, a29: t28, e18: t28.nextSibling, b18: undefined, a30: t29, e19: t29.nextSibling, b19: undefined, a31: t30, e20: t30.nextSibling, b20: undefined, a32: t31, e21: t31.nextSibling, b21: undefined, a33: t32, e22: t32.nextSibling, b22: undefined };
1051
1054
  const I = { B };
1052
1055
  const J = project(I, children, slots);
1053
1056
  I.R = new Set();
1057
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
1054
1058
  attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
1055
1059
  manageProps(I);
1056
1060
  I.r["mount"] = t8;
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
2
  export interface UiEditorBlockActionsEventMap {
3
3
  action: CustomEvent<{ readonly action: "insert-below" | "duplicate" | "delete" }>;
4
4
  }
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkConstrained, checkFormat, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkConstrained, checkFormat, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor-block-actions/ui-editor-block-actions.js";
4
4
  import "../styles/ui-editor-block-actions.css";
5
5
 
@@ -10,31 +10,33 @@ const D = { g: "ui-editor-block-actions", props: { "for": { "required":false,"de
10
10
  const C = (host) => activateModule(controller, host);
11
11
 
12
12
  export function createUiEditorBlockActions(options = {}, html) {
13
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
13
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
14
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["for","placement"].includes(name)));
14
15
  const element = document.createElement("div");
15
- for (const [name, value] of Object.entries(attributes)) {
16
- if (value === null || value === undefined || value === false) continue;
17
- element.setAttribute(name, value === true ? "" : String(value));
18
- }
19
16
  element.setAttribute("component", "ui-editor-block-actions");
20
17
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
21
18
  const v = [null, null];
22
19
  const B = acceptProps(element, D, S.n, v, componentProps, [], html);
23
20
  const p0 = (r, c, d) => {
21
+ if (c === -1) {
22
+ resetForwardedAttributes(r.n, attributes, r.v0);
23
+ r.v0 = forwardAttributes(r.n, attributes);
24
+ }
24
25
  if (c & 1) {
25
26
  const x0 = v[0];
26
- const s0 = toAttribute(x0, "for");
27
- if (s0 !== r.v0) writeAttribute(r.a0, "for", r.v0 = s0);
27
+ const s1 = toAttribute(x0, "for");
28
+ if (s1 !== r.v1) writeAttribute(r.a1, "for", r.v1 = s1);
28
29
  }
29
30
  if (c & 1073741826) {
30
31
  const x1 = v[1];
31
- const s1 = toAttribute(x1, "placement");
32
- if (s1 !== r.v1) writeAttribute(r.a0, "placement", r.v1 = s1);
32
+ const s2 = toAttribute(x1, "placement");
33
+ if (s2 !== r.v2) writeAttribute(r.a1, "placement", r.v2 = s2);
33
34
  }
34
35
  };
35
36
  const t0 = element.firstChild.nextSibling;
36
- const R = { a0: t0, v0: null, v1: null };
37
+ const R = { n: element, a1: t0, v0: undefined, v1: null, v2: null };
37
38
  const I = { B };
39
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
38
40
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
39
41
  manageProps(I);
40
42
  return element;
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
2
  export interface UiEditorChipEditorEventMap {
3
3
  label: CustomEvent<{ readonly label: string }>;
4
4
  color: CustomEvent<{ readonly color: "neutral" | "blue" | "green" | "yellow" | "red" | "purple" }>;