@threadlabs/looma 0.52.12 → 0.53.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (342) 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/chunks/extensions.js +2 -2
  7. package/editor/components.css +19 -19
  8. package/editor/index.js +1125 -853
  9. package/package.json +3 -3
  10. package/styles/ui-action-bar.css +1 -1
  11. package/styles/ui-affordance-scope.css +1 -1
  12. package/styles/ui-avatar-group.css +1 -1
  13. package/styles/ui-avatar.css +1 -1
  14. package/styles/ui-badge.css +1 -1
  15. package/styles/ui-breadcrumb-item.css +1 -1
  16. package/styles/ui-breadcrumbs.css +1 -1
  17. package/styles/ui-button.css +1 -1
  18. package/styles/ui-calendar.css +1 -1
  19. package/styles/ui-callout.css +1 -1
  20. package/styles/ui-card-group.css +1 -1
  21. package/styles/ui-card.css +1 -1
  22. package/styles/ui-checkbox.css +1 -1
  23. package/styles/ui-cluster.css +1 -1
  24. package/styles/ui-color-picker.css +1 -1
  25. package/styles/ui-column.css +1 -1
  26. package/styles/ui-combobox.css +1 -1
  27. package/styles/ui-compact-content.css +1 -1
  28. package/styles/ui-compact-editor.css +1 -1
  29. package/styles/ui-compact-mark.css +1 -1
  30. package/styles/ui-compact-node.css +1 -1
  31. package/styles/ui-container.css +1 -1
  32. package/styles/ui-context-menu.css +1 -1
  33. package/styles/ui-cover.css +1 -1
  34. package/styles/ui-curve-editor.css +1 -1
  35. package/styles/ui-cycle-button.css +1 -1
  36. package/styles/ui-data-table.css +1 -1
  37. package/styles/ui-date-field.css +1 -1
  38. package/styles/ui-date-picker.css +1 -1
  39. package/styles/ui-date-range-picker.css +1 -1
  40. package/styles/ui-description-item.css +1 -1
  41. package/styles/ui-description-list.css +1 -1
  42. package/styles/ui-dialog.css +1 -1
  43. package/styles/ui-disclosure.css +1 -1
  44. package/styles/ui-editable.css +1 -1
  45. package/styles/ui-editor-block-actions.css +1 -1
  46. package/styles/ui-editor-chip-editor.css +1 -1
  47. package/styles/ui-editor-code-language.css +1 -1
  48. package/styles/ui-editor-footnote-editor.css +1 -1
  49. package/styles/ui-editor-formatting-tools.css +1 -1
  50. package/styles/ui-editor-image-toolbar.css +1 -1
  51. package/styles/ui-editor-insert-table-grid.css +1 -1
  52. package/styles/ui-editor-link-card.css +1 -1
  53. package/styles/ui-editor-link-form.css +1 -1
  54. package/styles/ui-editor-mention-menu-item.css +1 -1
  55. package/styles/ui-editor-mention-menu.css +1 -1
  56. package/styles/ui-editor-slash-menu-group.css +1 -1
  57. package/styles/ui-editor-slash-menu-item.css +1 -1
  58. package/styles/ui-editor-slash-menu.css +1 -1
  59. package/styles/ui-editor-surface.css +1 -1
  60. package/styles/ui-editor-table-context-menu.css +1 -1
  61. package/styles/ui-editor-table-overlay.css +1 -1
  62. package/styles/ui-editor-table-toolbar.css +1 -1
  63. package/styles/ui-editor-toolbar.css +1 -1
  64. package/styles/ui-editor.css +1 -1
  65. package/styles/ui-file-input.css +1 -1
  66. package/styles/ui-floating-action-button.css +1 -1
  67. package/styles/ui-form-field.css +1 -1
  68. package/styles/ui-grid.css +1 -1
  69. package/styles/ui-icon-button.css +1 -1
  70. package/styles/ui-icon.css +1 -1
  71. package/styles/ui-image.css +1 -1
  72. package/styles/ui-input-group.css +1 -1
  73. package/styles/ui-input.css +1 -1
  74. package/styles/ui-light-editor.css +1 -1
  75. package/styles/ui-list-item.css +1 -1
  76. package/styles/ui-list.css +1 -1
  77. package/styles/ui-listbox.css +1 -1
  78. package/styles/ui-menu-group.css +1 -1
  79. package/styles/ui-menu-item.css +1 -1
  80. package/styles/ui-menu.css +1 -1
  81. package/styles/ui-meter.css +1 -1
  82. package/styles/ui-nav-item.css +1 -1
  83. package/styles/ui-notice-stripe.css +1 -1
  84. package/styles/ui-number-input.css +1 -1
  85. package/styles/ui-page-header.css +1 -1
  86. package/styles/ui-pagination.css +1 -1
  87. package/styles/ui-popover.css +1 -1
  88. package/styles/ui-radio-group.css +1 -1
  89. package/styles/ui-radio.css +1 -1
  90. package/styles/ui-reel.css +1 -1
  91. package/styles/ui-scroll-area.css +1 -1
  92. package/styles/ui-search-result-row.css +1 -1
  93. package/styles/ui-search-shell.css +1 -1
  94. package/styles/ui-section.css +1 -1
  95. package/styles/ui-segmented-control.css +1 -1
  96. package/styles/ui-select.css +1 -1
  97. package/styles/ui-separator.css +1 -1
  98. package/styles/ui-sidebar.css +1 -1
  99. package/styles/ui-site-header.css +1 -1
  100. package/styles/ui-skeleton.css +1 -1
  101. package/styles/ui-slider.css +1 -1
  102. package/styles/ui-spinner.css +1 -1
  103. package/styles/ui-stack.css +1 -1
  104. package/styles/ui-status-message.css +1 -1
  105. package/styles/ui-swatch.css +1 -1
  106. package/styles/ui-switch.css +1 -1
  107. package/styles/ui-switcher.css +1 -1
  108. package/styles/ui-table.css +1 -1
  109. package/styles/ui-tabs.css +1 -1
  110. package/styles/ui-text.css +1 -1
  111. package/styles/ui-textarea.css +1 -1
  112. package/styles/ui-time-field.css +1 -1
  113. package/styles/ui-time-picker.css +1 -1
  114. package/styles/ui-toast-region.css +1 -1
  115. package/styles/ui-toast.css +1 -1
  116. package/styles/ui-tooltip.css +1 -1
  117. package/styles/ui-top-bar.css +1 -1
  118. package/styles/ui-tree-item.css +1 -1
  119. package/styles/ui-tree.css +1 -1
  120. package/styles/ui-wizard.css +1 -1
  121. package/vanilla/UiActionBar.d.ts +1 -1
  122. package/vanilla/UiActionBar.js +14 -12
  123. package/vanilla/UiAffordanceScope.d.ts +1 -1
  124. package/vanilla/UiAffordanceScope.js +13 -11
  125. package/vanilla/UiAvatar.d.ts +1 -1
  126. package/vanilla/UiAvatar.js +27 -25
  127. package/vanilla/UiAvatarGroup.d.ts +1 -1
  128. package/vanilla/UiAvatarGroup.js +26 -23
  129. package/vanilla/UiBadge.d.ts +1 -1
  130. package/vanilla/UiBadge.js +14 -12
  131. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  132. package/vanilla/UiBreadcrumbItem.js +14 -13
  133. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  134. package/vanilla/UiBreadcrumbs.js +10 -10
  135. package/vanilla/UiButton.d.ts +1 -1
  136. package/vanilla/UiButton.js +187 -244
  137. package/vanilla/UiCalendar.d.ts +1 -1
  138. package/vanilla/UiCalendar.js +272 -193
  139. package/vanilla/UiCallout.d.ts +1 -1
  140. package/vanilla/UiCallout.js +32 -27
  141. package/vanilla/UiCard.d.ts +1 -1
  142. package/vanilla/UiCard.js +72 -69
  143. package/vanilla/UiCardGroup.d.ts +1 -1
  144. package/vanilla/UiCardGroup.js +17 -15
  145. package/vanilla/UiCheckbox.d.ts +1 -1
  146. package/vanilla/UiCheckbox.js +32 -30
  147. package/vanilla/UiCluster.d.ts +1 -1
  148. package/vanilla/UiCluster.js +20 -18
  149. package/vanilla/UiColorPicker.d.ts +1 -1
  150. package/vanilla/UiColorPicker.js +22 -20
  151. package/vanilla/UiColumn.d.ts +2 -2
  152. package/vanilla/UiColumn.js +18 -15
  153. package/vanilla/UiCombobox.d.ts +3 -3
  154. package/vanilla/UiCombobox.js +237 -174
  155. package/vanilla/UiCompactContent.d.ts +1 -1
  156. package/vanilla/UiCompactContent.js +13 -8
  157. package/vanilla/UiCompactEditor.d.ts +1 -1
  158. package/vanilla/UiCompactEditor.js +17 -12
  159. package/vanilla/UiCompactMark.d.ts +1 -1
  160. package/vanilla/UiCompactMark.js +47 -45
  161. package/vanilla/UiCompactNode.d.ts +2 -2
  162. package/vanilla/UiCompactNode.js +37 -33
  163. package/vanilla/UiContainer.d.ts +1 -1
  164. package/vanilla/UiContainer.js +13 -11
  165. package/vanilla/UiContextMenu.d.ts +1 -1
  166. package/vanilla/UiContextMenu.js +11 -9
  167. package/vanilla/UiCover.d.ts +1 -1
  168. package/vanilla/UiCover.js +13 -11
  169. package/vanilla/UiCurveEditor.d.ts +1 -1
  170. package/vanilla/UiCurveEditor.js +40 -38
  171. package/vanilla/UiCycleButton.d.ts +2 -2
  172. package/vanilla/UiCycleButton.js +31 -26
  173. package/vanilla/UiDataTable.d.ts +1 -1
  174. package/vanilla/UiDataTable.js +26 -20
  175. package/vanilla/UiDateField.d.ts +1 -1
  176. package/vanilla/UiDateField.js +78 -75
  177. package/vanilla/UiDatePicker.d.ts +1 -1
  178. package/vanilla/UiDatePicker.js +155 -149
  179. package/vanilla/UiDateRangePicker.d.ts +1 -1
  180. package/vanilla/UiDateRangePicker.js +136 -128
  181. package/vanilla/UiDescriptionItem.d.ts +1 -1
  182. package/vanilla/UiDescriptionItem.js +13 -11
  183. package/vanilla/UiDescriptionList.d.ts +1 -1
  184. package/vanilla/UiDescriptionList.js +13 -11
  185. package/vanilla/UiDialog.d.ts +1 -1
  186. package/vanilla/UiDialog.js +14 -14
  187. package/vanilla/UiDisclosure.d.ts +1 -1
  188. package/vanilla/UiDisclosure.js +28 -26
  189. package/vanilla/UiEditable.d.ts +1 -1
  190. package/vanilla/UiEditable.js +29 -27
  191. package/vanilla/UiEditor.d.ts +1 -1
  192. package/vanilla/UiEditor.js +62 -58
  193. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  194. package/vanilla/UiEditorBlockActions.js +14 -12
  195. package/vanilla/UiEditorChipEditor.d.ts +1 -1
  196. package/vanilla/UiEditorChipEditor.js +22 -14
  197. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  198. package/vanilla/UiEditorCodeLanguage.js +23 -16
  199. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  200. package/vanilla/UiEditorFootnoteEditor.js +17 -9
  201. package/vanilla/UiEditorFormattingTools.d.ts +1 -1
  202. package/vanilla/UiEditorFormattingTools.js +108 -71
  203. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  204. package/vanilla/UiEditorImageToolbar.js +68 -66
  205. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  206. package/vanilla/UiEditorInsertTableGrid.js +50 -35
  207. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  208. package/vanilla/UiEditorLinkCard.js +27 -25
  209. package/vanilla/UiEditorLinkForm.d.ts +1 -1
  210. package/vanilla/UiEditorLinkForm.js +79 -57
  211. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  212. package/vanilla/UiEditorMentionMenu.js +63 -44
  213. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  214. package/vanilla/UiEditorMentionMenuItem.js +22 -16
  215. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  216. package/vanilla/UiEditorSlashMenu.js +52 -33
  217. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  218. package/vanilla/UiEditorSlashMenuGroup.js +19 -14
  219. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  220. package/vanilla/UiEditorSlashMenuItem.js +27 -25
  221. package/vanilla/UiEditorSurface.d.ts +1 -1
  222. package/vanilla/UiEditorSurface.js +13 -11
  223. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  224. package/vanilla/UiEditorTableContextMenu.js +81 -52
  225. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  226. package/vanilla/UiEditorTableOverlay.js +107 -68
  227. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  228. package/vanilla/UiEditorTableToolbar.js +121 -70
  229. package/vanilla/UiEditorToolbar.d.ts +1 -1
  230. package/vanilla/UiEditorToolbar.js +20 -12
  231. package/vanilla/UiFileInput.d.ts +1 -1
  232. package/vanilla/UiFileInput.js +94 -80
  233. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  234. package/vanilla/UiFloatingActionButton.js +21 -20
  235. package/vanilla/UiFormField.d.ts +1 -1
  236. package/vanilla/UiFormField.js +21 -19
  237. package/vanilla/UiGrid.d.ts +1 -1
  238. package/vanilla/UiGrid.js +26 -23
  239. package/vanilla/UiIcon.d.ts +1 -1
  240. package/vanilla/UiIcon.js +20 -15
  241. package/vanilla/UiIconButton.d.ts +1 -1
  242. package/vanilla/UiIconButton.js +35 -43
  243. package/vanilla/UiImage.d.ts +1 -1
  244. package/vanilla/UiImage.js +16 -14
  245. package/vanilla/UiInput.d.ts +1 -1
  246. package/vanilla/UiInput.js +29 -35
  247. package/vanilla/UiInputGroup.d.ts +1 -1
  248. package/vanilla/UiInputGroup.js +16 -14
  249. package/vanilla/UiLightEditor.d.ts +1 -1
  250. package/vanilla/UiLightEditor.js +29 -27
  251. package/vanilla/UiList.d.ts +1 -1
  252. package/vanilla/UiList.js +33 -27
  253. package/vanilla/UiListItem.d.ts +1 -1
  254. package/vanilla/UiListItem.js +12 -12
  255. package/vanilla/UiListbox.d.ts +1 -1
  256. package/vanilla/UiListbox.js +90 -80
  257. package/vanilla/UiMenu.d.ts +1 -1
  258. package/vanilla/UiMenu.js +20 -12
  259. package/vanilla/UiMenuGroup.d.ts +1 -1
  260. package/vanilla/UiMenuGroup.js +14 -11
  261. package/vanilla/UiMenuItem.d.ts +1 -1
  262. package/vanilla/UiMenuItem.js +74 -75
  263. package/vanilla/UiMeter.d.ts +1 -1
  264. package/vanilla/UiMeter.js +67 -62
  265. package/vanilla/UiNavItem.d.ts +1 -1
  266. package/vanilla/UiNavItem.js +63 -65
  267. package/vanilla/UiNoticeStripe.d.ts +1 -1
  268. package/vanilla/UiNoticeStripe.js +16 -16
  269. package/vanilla/UiNumberInput.d.ts +1 -1
  270. package/vanilla/UiNumberInput.js +41 -38
  271. package/vanilla/UiPageHeader.d.ts +1 -1
  272. package/vanilla/UiPageHeader.js +17 -15
  273. package/vanilla/UiPagination.d.ts +1 -1
  274. package/vanilla/UiPagination.js +53 -44
  275. package/vanilla/UiPopover.d.ts +1 -1
  276. package/vanilla/UiPopover.js +13 -11
  277. package/vanilla/UiRadio.d.ts +1 -1
  278. package/vanilla/UiRadio.js +25 -23
  279. package/vanilla/UiRadioGroup.d.ts +1 -1
  280. package/vanilla/UiRadioGroup.js +33 -36
  281. package/vanilla/UiReel.d.ts +1 -1
  282. package/vanilla/UiReel.js +20 -12
  283. package/vanilla/UiScrollArea.d.ts +1 -1
  284. package/vanilla/UiScrollArea.js +13 -11
  285. package/vanilla/UiSearchResultRow.d.ts +1 -1
  286. package/vanilla/UiSearchResultRow.js +21 -20
  287. package/vanilla/UiSearchShell.d.ts +1 -1
  288. package/vanilla/UiSearchShell.js +16 -14
  289. package/vanilla/UiSection.d.ts +1 -1
  290. package/vanilla/UiSection.js +48 -45
  291. package/vanilla/UiSegmentedControl.d.ts +2 -2
  292. package/vanilla/UiSegmentedControl.js +52 -47
  293. package/vanilla/UiSelect.d.ts +1 -1
  294. package/vanilla/UiSelect.js +17 -21
  295. package/vanilla/UiSeparator.d.ts +1 -1
  296. package/vanilla/UiSeparator.js +12 -12
  297. package/vanilla/UiSidebar.d.ts +1 -1
  298. package/vanilla/UiSidebar.js +17 -15
  299. package/vanilla/UiSiteHeader.d.ts +1 -1
  300. package/vanilla/UiSiteHeader.js +25 -23
  301. package/vanilla/UiSkeleton.d.ts +1 -1
  302. package/vanilla/UiSkeleton.js +21 -20
  303. package/vanilla/UiSlider.d.ts +1 -1
  304. package/vanilla/UiSlider.js +50 -47
  305. package/vanilla/UiSpinner.d.ts +1 -1
  306. package/vanilla/UiSpinner.js +34 -27
  307. package/vanilla/UiStack.d.ts +1 -1
  308. package/vanilla/UiStack.js +12 -12
  309. package/vanilla/UiStatusMessage.d.ts +1 -1
  310. package/vanilla/UiStatusMessage.js +22 -21
  311. package/vanilla/UiSwatch.d.ts +1 -1
  312. package/vanilla/UiSwatch.js +20 -17
  313. package/vanilla/UiSwitch.d.ts +1 -1
  314. package/vanilla/UiSwitch.js +25 -23
  315. package/vanilla/UiSwitcher.d.ts +1 -1
  316. package/vanilla/UiSwitcher.js +13 -11
  317. package/vanilla/UiTable.d.ts +1 -1
  318. package/vanilla/UiTable.js +13 -11
  319. package/vanilla/UiTabs.d.ts +1 -1
  320. package/vanilla/UiTabs.js +39 -28
  321. package/vanilla/UiText.d.ts +1 -1
  322. package/vanilla/UiText.js +128 -125
  323. package/vanilla/UiTextarea.d.ts +1 -1
  324. package/vanilla/UiTextarea.js +27 -39
  325. package/vanilla/UiTimeField.d.ts +1 -1
  326. package/vanilla/UiTimeField.js +42 -40
  327. package/vanilla/UiTimePicker.d.ts +1 -1
  328. package/vanilla/UiTimePicker.js +105 -102
  329. package/vanilla/UiToast.d.ts +1 -1
  330. package/vanilla/UiToast.js +14 -14
  331. package/vanilla/UiToastRegion.d.ts +1 -1
  332. package/vanilla/UiToastRegion.js +61 -31
  333. package/vanilla/UiTooltip.d.ts +1 -1
  334. package/vanilla/UiTooltip.js +17 -14
  335. package/vanilla/UiTopBar.d.ts +1 -1
  336. package/vanilla/UiTopBar.js +24 -22
  337. package/vanilla/UiTree.d.ts +1 -1
  338. package/vanilla/UiTree.js +17 -12
  339. package/vanilla/UiTreeItem.d.ts +1 -1
  340. package/vanilla/UiTreeItem.js +73 -79
  341. package/vanilla/UiWizard.d.ts +1 -1
  342. 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, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkBoolean, checkConstrained, checkFormat, checkObject, checkRecord, checkString, checkUnknown, 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, checkBoolean, checkConstrained, checkFormat, checkObject, checkRecord, checkString, checkUnknown, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor-chip-editor/ui-editor-chip-editor.js";
4
4
  import "../styles/ui-editor-chip-editor.css";
5
5
 
@@ -10,12 +10,9 @@ const D = { g: "ui-editor-chip-editor", props: { "autofocus": { "required":false
10
10
  const C = (host) => activateModule(controller, host);
11
11
 
12
12
  export function createUiEditorChipEditor(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]) => !["autofocus","color","label"].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
  if (!element.hasAttribute("role")) element.setAttribute("role", "dialog");
20
17
  if (!element.hasAttribute("aria-label")) element.setAttribute("aria-label", "Edit chip");
21
18
  element.setAttribute("component", "ui-editor-chip-editor");
@@ -23,22 +20,33 @@ export function createUiEditorChipEditor(options = {}, html) {
23
20
  const v = [null, null, null];
24
21
  const B = acceptProps(element, D, S.n, v, componentProps, [], html);
25
22
  const p0 = (r, c, d) => {
23
+ if (c === -1) {
24
+ resetForwardedAttributes(r.n, attributes, r.v0);
25
+ r.v0 = forwardAttributes(r.n, attributes);
26
+ const x0 = "dialog";
27
+ const s1 = toAttribute(x0, "role");
28
+ writeAttribute(r.n, "role", r.v1 = s1);
29
+ const x1 = "Edit chip";
30
+ const s2 = toAttribute(x1, "aria-label");
31
+ writeAttribute(r.n, "aria-label", r.v2 = s2);
32
+ }
26
33
  if (c & 4) {
27
- const x0 = v[2];
28
- const s0 = toAttribute(x0, "value");
29
- if (s0 !== r.v0) writeAttribute(r.a0, "value", r.v0 = s0);
34
+ const x2 = v[2];
35
+ const s3 = toAttribute(x2, "value");
36
+ if (s3 !== r.v3) writeAttribute(r.a1, "value", r.v3 = s3);
30
37
  }
31
38
  if (c & 1073741826) {
32
- const x1 = v[1];
33
- const s1 = toAttribute(x1, "value");
34
- if (s1 !== r.v1) writeAttribute(r.a1, "value", r.v1 = s1);
39
+ const x3 = v[1];
40
+ const s4 = toAttribute(x3, "value");
41
+ if (s4 !== r.v4) writeAttribute(r.a2, "value", r.v4 = s4);
35
42
  }
36
43
  };
37
44
  const t0 = element.firstChild.nextSibling;
38
45
  const t1 = t0.firstChild;
39
46
  const t2 = t1.nextSibling.nextSibling;
40
- const R = { a0: t1, a1: t2, v0: null, v1: null };
47
+ const R = { n: element, a1: t1, a2: t2, v0: undefined, v1: undefined, v2: undefined, v3: null, v4: null };
41
48
  const I = { B };
49
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
42
50
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
43
51
  manageProps(I);
44
52
  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 UiEditorCodeLanguageEventMap {
3
3
  language: CustomEvent<{ readonly value: string }>;
4
4
  }
@@ -1,10 +1,11 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, KeyedList, readMember, toAttribute, toText, trackContainer, writeAttribute, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, checkList, 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, checkedReferenceValue, buildTemplate, KeyedList, NONCONFORMING, readMember, toAttribute, toText, trackContainer, writeAttribute, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, checkList, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor-code-language/ui-editor-code-language.js";
4
4
  import "../styles/ui-editor-code-language.css";
5
5
 
6
6
  const T0 = ["",[],"\n ",["ui-combobox",["label","Code language","label-visibility","sr-only","size","sm","disclosure","","filter","label"],2],"\n "];
7
7
  const T1 = ["option",[],0];
8
+ const RC0 = ["s", "string"];
8
9
  let P0, P1;
9
10
  const emptyDirty = new Map();
10
11
  const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-code-language", d: { "language": [detailCheck(checkObject([["value", checkString, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs };
@@ -12,12 +13,9 @@ const D = { g: "ui-editor-code-language", props: { "languages": { "required":fal
12
13
  const C = (host) => activateModule(controller, host);
13
14
 
14
15
  export function createUiEditorCodeLanguage(options = {}, html) {
15
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
16
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
17
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["languages","value"].includes(name)));
16
18
  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
19
  element.setAttribute("component", "ui-editor-code-language");
22
20
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
23
21
  const v = [null, null];
@@ -33,26 +31,35 @@ export function createUiEditorCodeLanguage(options = {}, html) {
33
31
  const o = r.i;
34
32
  if (c & 1073741824) {
35
33
  r.w = 0;
36
- const x0 = trackContainer(r, readMember(o, "value"));
37
- const s0 = toAttribute(x0, "value");
38
- if (s0 !== r.v0) writeAttribute(r.n, "value", r.v0 = s0);
39
- const x1 = trackContainer(r, readMember(o, "label"));
40
- const s1 = toText(x1);
41
- if (s1 !== r.v1) r.a1.data = r.v1 = s1;
34
+ const x0 = trackContainer(r, checkedReferenceValue(S, readMember(o, "value"), RC0, "expression:$language.value:language.value", "language.value"));
35
+ if (x0 !== NONCONFORMING) {
36
+ const s0 = toAttribute(x0, "value");
37
+ if (s0 !== r.v0) writeAttribute(r.n, "value", r.v0 = s0);
38
+ }
39
+ const x1 = trackContainer(r, checkedReferenceValue(S, readMember(o, "label"), RC0, "expression:$language.label:language.label", "language.label"));
40
+ if (x1 !== NONCONFORMING) {
41
+ const s1 = toText(x1);
42
+ if (s1 !== r.v1) r.a1.data = r.v1 = s1;
43
+ }
42
44
  }
43
45
  };
44
46
  const p0 = (r, c, d) => {
47
+ if (c === -1) {
48
+ resetForwardedAttributes(r.n, attributes, r.v0);
49
+ r.v0 = forwardAttributes(r.n, attributes);
50
+ }
45
51
  if (c & 2) {
46
52
  const x0 = v[1];
47
- const s0 = toAttribute(x0, "value");
48
- if (s0 !== r.v0) writeAttribute(r.a0, "value", r.v0 = s0);
53
+ const s1 = toAttribute(x0, "value");
54
+ if (s1 !== r.v1) writeAttribute(r.a1, "value", r.v1 = s1);
49
55
  }
50
56
  if (c & 1073741825) r.L0.update(v[0], d, c);
51
57
  };
52
58
  const t0 = element.firstChild.nextSibling;
53
59
  const t1 = t0.firstChild;
54
- const R = { a0: t0, v0: null, L0: new KeyedList(t1, t1.nextSibling, m1, p1, (o) => readMember(o, "value"), "language") };
60
+ const R = { n: element, a1: t0, v0: undefined, v1: null, L0: new KeyedList(t1, t1.nextSibling, m1, p1, (o) => readMember(o, "value"), "language") };
55
61
  const I = { B };
62
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
56
63
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
57
64
  manageProps(I);
58
65
  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 UiEditorFootnoteEditorEventMap {
3
3
  text: CustomEvent<{ readonly text: string }>;
4
4
  done: CustomEvent<Readonly<Record<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, toAttribute, writeAttribute, dispatchDeclared, detailCheck, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkObject, checkRecord, checkString, checkUnknown, 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, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkObject, checkRecord, checkString, checkUnknown, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor-footnote-editor/ui-editor-footnote-editor.js";
4
4
  import "../styles/ui-editor-footnote-editor.css";
5
5
 
@@ -11,12 +11,9 @@ const D = { g: "ui-editor-footnote-editor", props: { "note": { "required":false,
11
11
  const C = (host) => activateModule(controller, host);
12
12
 
13
13
  export function createUiEditorFootnoteEditor(options = {}, html) {
14
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
14
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
15
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["note"].includes(name)));
15
16
  const element = document.createElement("div");
16
- for (const [name, value] of Object.entries(attributes)) {
17
- if (value === null || value === undefined || value === false) continue;
18
- element.setAttribute(name, value === true ? "" : String(value));
19
- }
20
17
  if (!element.hasAttribute("role")) element.setAttribute("role", "dialog");
21
18
  if (!element.hasAttribute("aria-label")) element.setAttribute("aria-label", "Edit footnote");
22
19
  element.setAttribute("component", "ui-editor-footnote-editor");
@@ -38,14 +35,25 @@ export function createUiEditorFootnoteEditor(options = {}, html) {
38
35
  }
39
36
  };
40
37
  const p0 = (r, c, d) => {
41
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, true, undefined, d);
38
+ if (c === -1) {
39
+ resetForwardedAttributes(r.n, attributes, r.v0);
40
+ r.v0 = forwardAttributes(r.n, attributes);
41
+ const x0 = "dialog";
42
+ const s1 = toAttribute(x0, "role");
43
+ writeAttribute(r.n, "role", r.v1 = s1);
44
+ const x1 = "Edit footnote";
45
+ const s2 = toAttribute(x1, "aria-label");
46
+ writeAttribute(r.n, "aria-label", r.v2 = s2);
47
+ }
48
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, true, undefined, d, r.z ??= []);
42
49
  if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
43
50
  else if (r.b0 !== undefined) p1(r.b0, c, d);
44
51
  };
45
52
  const t0 = element.firstChild.nextSibling;
46
- const R = { a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
53
+ const R = { n: element, v0: undefined, v1: undefined, v2: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
47
54
  const I = { B };
48
55
  const J = project(I, children, slots);
56
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
49
57
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
50
58
  manageProps(I);
51
59
  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 UiEditorFormattingToolsEventMap {
3
3
  "tool-action": CustomEvent<{ readonly id: string }>;
4
4
  "tool-focus": CustomEvent<{ readonly id: string }>;
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, checkReference, clearRegion, NONCONFORMING, readDeclared, readMember, toAttribute, toText, trackContainer, truthy, truthyValue, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, RangedKeyedList, checkBoolean, checkFormat, checkList, 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, checkedReferenceValue, equalValue, buildTemplate, clearRegion, NONCONFORMING, readMember, toAttribute, toText, trackContainer, truthy, truthyValue, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, RangedKeyedList, checkBoolean, checkFormat, checkList, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor-formatting-tools/ui-editor-formatting-tools.js";
4
4
  import "../styles/ui-editor-formatting-tools.css";
5
5
 
@@ -9,6 +9,9 @@ const T2 = ["ui-separator",["orientation","vertical"]];
9
9
  const T3 = ["ui-icon-button",["class","looma-editor__toolbar-button","size","sm","variant","ghost"],["ui-icon",[]]];
10
10
  const T4 = ["ui-button",["size","sm","variant","ghost","tone","neutral","type","button"],0];
11
11
  const T5 = ["kbd",["slot","shortcut"],0];
12
+ const RC0 = [["p",formatOf(keywordFormat)], "keyword"];
13
+ const RC1 = ["s", "string"];
14
+ const RC2 = ["b", "boolean"];
12
15
  let P0, P1, P2, P3, P4, P5;
13
16
  const emptyDirty = new Map();
14
17
  const S = { n: ["hint"], t: [["o",["for","s","open","b","label","s","shortcut","s"]]], f: import.meta.url, g: "ui-editor-formatting-tools", d: { "tool-action": [detailCheck(checkObject([["id", checkString, false]], false)), true, true, false], "tool-focus": [detailCheck(checkObject([["id", checkString, false]], false)), true, true, false], "tool-press": [detailCheck(checkObject([["id", checkString, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [{ "for": "", "open": false, "label": "", "shortcut": "" }] };
@@ -16,12 +19,9 @@ const D = { g: "ui-editor-formatting-tools", props: { "floating": { "required":f
16
19
  const C = (host) => activateModule(controller, host);
17
20
 
18
21
  export function createUiEditorFormattingTools(options = {}, html) {
19
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
22
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
23
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["floating","items"].includes(name)));
20
24
  const element = document.createElement("ui-editor-toolbar");
21
- for (const [name, value] of Object.entries(attributes)) {
22
- if (value === null || value === undefined || value === false) continue;
23
- element.setAttribute(name, value === true ? "" : String(value));
24
- }
25
25
  element.setAttribute("component", "ui-editor-formatting-tools");
26
26
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
27
27
  const v = [{ "for": "", "open": false, "label": "", "shortcut": "" }, null, null];
@@ -40,17 +40,23 @@ export function createUiEditorFormattingTools(options = {}, html) {
40
40
  };
41
41
  const p1 = (r, c, d) => {
42
42
  const o = r.i;
43
- if (c & 1073741824 && !((readMember(o, "kind") === "separator")) !== !r.b0) {
44
- if (r.b0) { r.b0 = undefined; clearRegion(r.a0, r.e0); }
45
- else { r.b0 = m2(d); r.e0.before(r.b0.n); }
43
+ let t0;
44
+ if (c & 1073741824 && (t0 = truthyValue(equalValue(checkedReferenceValue(S, readMember(o, "kind"), RC0, "expression:$item.kind = 'separator':item.kind", "item.kind"), "separator"))) !== NONCONFORMING && !t0 !== !r.b0) {
45
+ r.b0 = undefined;
46
+ clearRegion(r.a0, r.e0);
47
+ if (t0) { r.b0 = m2(d); r.e0.before(r.b0.n); }
46
48
  } else if (r.b0 !== undefined) p2(r.b0, c, d);
47
- if (c & 1073741824 && !((readMember(o, "kind") === "icon")) !== !r.b1) {
48
- if (r.b1) { r.b1 = undefined; clearRegion(r.a1, r.e1); }
49
- else { r.b1 = m3(d, undefined, r); r.e1.before(r.b1.n); }
49
+ let t1;
50
+ if (c & 1073741824 && (t1 = truthyValue(equalValue(checkedReferenceValue(S, readMember(o, "kind"), RC0, "expression:$item.kind = 'icon':item.kind", "item.kind"), "icon"))) !== NONCONFORMING && !t1 !== !r.b1) {
51
+ r.b1 = undefined;
52
+ clearRegion(r.a1, r.e1);
53
+ if (t1) { r.b1 = m3(d, undefined, r); r.e1.before(r.b1.n); }
50
54
  } else if (r.b1 !== undefined) p3(r.b1, c, d);
51
- if (c & 1073741824 && !((readMember(o, "kind") === "text")) !== !r.b2) {
52
- if (r.b2) { r.b2 = undefined; clearRegion(r.a2, r.e2); }
53
- else { r.b2 = m4(d, undefined, r); r.e2.before(r.b2.n); }
55
+ let t2;
56
+ if (c & 1073741824 && (t2 = truthyValue(equalValue(checkedReferenceValue(S, readMember(o, "kind"), RC0, "expression:$item.kind = 'text':item.kind", "item.kind"), "text"))) !== NONCONFORMING && !t2 !== !r.b2) {
57
+ r.b2 = undefined;
58
+ clearRegion(r.a2, r.e2);
59
+ if (t2) { r.b2 = m4(d, undefined, r); r.e2.before(r.b2.n); }
54
60
  } else if (r.b2 !== undefined) p4(r.b2, c, d);
55
61
  };
56
62
  const m2 = (d) => {
@@ -71,28 +77,44 @@ export function createUiEditorFormattingTools(options = {}, html) {
71
77
  const p3 = (r, c, d) => {
72
78
  if (c & 1073741824) {
73
79
  r.w = 0;
74
- const x0 = trackContainer(r, readMember(r.u.i, "id"));
75
- const s0 = toAttribute(x0, "id");
76
- if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
77
- const x1 = trackContainer(r, readMember(r.u.i, "label"));
78
- const s1 = toAttribute(x1, "label");
79
- if (s1 !== r.v1) writeAttribute(r.n, "label", r.v1 = s1);
80
- const x2 = trackContainer(r, readMember(r.u.i, "disabled"));
81
- const s2 = toAttribute(x2, "disabled");
82
- if (s2 !== r.v2) writeAttribute(r.n, "disabled", r.v2 = s2);
83
- const x3 = trackContainer(r, readMember(r.u.i, "active"));
84
- const s3 = toAttribute(x3, "aria-pressed");
85
- if (s3 !== r.v3) writeAttribute(r.n, "aria-pressed", r.v3 = s3);
86
- const x4 = trackContainer(r, readMember(r.u.i, "expanded"));
87
- const s4 = toAttribute(x4, "aria-expanded");
88
- if (s4 !== r.v4) writeAttribute(r.n, "aria-expanded", r.v4 = s4);
89
- const s5 = toAttribute(x3, "data-active");
90
- if (s5 !== r.v5) writeAttribute(r.n, "data-active", r.v5 = s5);
91
- const s6 = toAttribute(x0, "data-editor-tool");
92
- if (s6 !== r.v6) writeAttribute(r.n, "data-editor-tool", r.v6 = s6);
93
- const x5 = trackContainer(r, readMember(r.u.i, "icon"));
94
- const s7 = toAttribute(x5, "name");
95
- if (s7 !== r.v7) writeAttribute(r.a1, "name", r.v7 = s7);
80
+ const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "id"), RC1, "expression:$item.id:item.id", "item.id"));
81
+ if (x0 !== NONCONFORMING) {
82
+ const s0 = toAttribute(x0, "id");
83
+ if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
84
+ }
85
+ const x1 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "label"), RC1, "expression:$item.label:item.label", "item.label"));
86
+ if (x1 !== NONCONFORMING) {
87
+ const s1 = toAttribute(x1, "label");
88
+ if (s1 !== r.v1) writeAttribute(r.n, "label", r.v1 = s1);
89
+ }
90
+ const x2 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "disabled"), RC2, "expression:$item.disabled:item.disabled", "item.disabled"));
91
+ if (x2 !== NONCONFORMING) {
92
+ const s2 = toAttribute(x2, "disabled");
93
+ if (s2 !== r.v2) writeAttribute(r.n, "disabled", r.v2 = s2);
94
+ }
95
+ const x3 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "active"), RC2, "expression:$item.active:item.active", "item.active"));
96
+ if (x3 !== NONCONFORMING) {
97
+ const s3 = toAttribute(x3, "aria-pressed");
98
+ if (s3 !== r.v3) writeAttribute(r.n, "aria-pressed", r.v3 = s3);
99
+ }
100
+ const x4 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "expanded"), RC2, "expression:$item.expanded:item.expanded", "item.expanded"));
101
+ if (x4 !== NONCONFORMING) {
102
+ const s4 = toAttribute(x4, "aria-expanded");
103
+ if (s4 !== r.v4) writeAttribute(r.n, "aria-expanded", r.v4 = s4);
104
+ }
105
+ if (x3 !== NONCONFORMING) {
106
+ const s5 = toAttribute(x3, "data-active");
107
+ if (s5 !== r.v5) writeAttribute(r.n, "data-active", r.v5 = s5);
108
+ }
109
+ if (x0 !== NONCONFORMING) {
110
+ const s6 = toAttribute(x0, "data-editor-tool");
111
+ if (s6 !== r.v6) writeAttribute(r.n, "data-editor-tool", r.v6 = s6);
112
+ }
113
+ const x5 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "icon"), RC1, "expression:$item.icon:item.icon", "item.icon"));
114
+ if (x5 !== NONCONFORMING) {
115
+ const s7 = toAttribute(x5, "name");
116
+ if (s7 !== r.v7) writeAttribute(r.a1, "name", r.v7 = s7);
117
+ }
96
118
  }
97
119
  };
98
120
  const m4 = (d, o, u) => {
@@ -105,22 +127,34 @@ export function createUiEditorFormattingTools(options = {}, html) {
105
127
  const p4 = (r, c, d) => {
106
128
  if (c & 1073741824) {
107
129
  r.w = 0;
108
- const x0 = trackContainer(r, readMember(r.u.i, "id"));
109
- const s0 = toAttribute(x0, "id");
110
- if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
111
- const x1 = trackContainer(r, readMember(r.u.i, "label"));
112
- const s1 = toAttribute(x1, "aria-label");
113
- if (s1 !== r.v1) writeAttribute(r.n, "aria-label", r.v1 = s1);
114
- const x2 = trackContainer(r, readMember(r.u.i, "disabled"));
115
- const s2 = toAttribute(x2, "disabled");
116
- if (s2 !== r.v2) writeAttribute(r.n, "disabled", r.v2 = s2);
117
- const x3 = trackContainer(r, readMember(r.u.i, "expanded"));
118
- const s3 = toAttribute(x3, "aria-expanded");
119
- if (s3 !== r.v3) writeAttribute(r.n, "aria-expanded", r.v3 = s3);
120
- const s4 = toAttribute(x0, "data-editor-tool");
121
- if (s4 !== r.v4) writeAttribute(r.n, "data-editor-tool", r.v4 = s4);
122
- const s5 = toText(x1);
123
- if (s5 !== r.v5) r.a1.data = r.v5 = s5;
130
+ const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "id"), RC1, "expression:$item.id:item.id", "item.id"));
131
+ if (x0 !== NONCONFORMING) {
132
+ const s0 = toAttribute(x0, "id");
133
+ if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
134
+ }
135
+ const x1 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "label"), RC1, "expression:$item.label:item.label", "item.label"));
136
+ if (x1 !== NONCONFORMING) {
137
+ const s1 = toAttribute(x1, "aria-label");
138
+ if (s1 !== r.v1) writeAttribute(r.n, "aria-label", r.v1 = s1);
139
+ }
140
+ const x2 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "disabled"), RC2, "expression:$item.disabled:item.disabled", "item.disabled"));
141
+ if (x2 !== NONCONFORMING) {
142
+ const s2 = toAttribute(x2, "disabled");
143
+ if (s2 !== r.v2) writeAttribute(r.n, "disabled", r.v2 = s2);
144
+ }
145
+ const x3 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "expanded"), RC2, "expression:$item.expanded:item.expanded", "item.expanded"));
146
+ if (x3 !== NONCONFORMING) {
147
+ const s3 = toAttribute(x3, "aria-expanded");
148
+ if (s3 !== r.v3) writeAttribute(r.n, "aria-expanded", r.v3 = s3);
149
+ }
150
+ if (x0 !== NONCONFORMING) {
151
+ const s4 = toAttribute(x0, "data-editor-tool");
152
+ if (s4 !== r.v4) writeAttribute(r.n, "data-editor-tool", r.v4 = s4);
153
+ }
154
+ if (x1 !== NONCONFORMING) {
155
+ const s5 = toText(x1);
156
+ if (s5 !== r.v5) r.a1.data = r.v5 = s5;
157
+ }
124
158
  }
125
159
  };
126
160
  const m5 = (d) => {
@@ -132,7 +166,7 @@ export function createUiEditorFormattingTools(options = {}, html) {
132
166
  };
133
167
  const p5 = (r, c, d) => {
134
168
  if (c & 1073741825) {
135
- const x0 = (checkReference(S, readDeclared(v[0], ["shortcut"]), "s", "expression:$hint.shortcut:hint.shortcut", "Reference `hint.shortcut` must satisfy string.") ? readMember(v[0], "shortcut") : NONCONFORMING);
169
+ const x0 = checkedReferenceValue(S, readMember(v[0], "shortcut"), RC1, "expression:$hint.shortcut:hint.shortcut", "hint.shortcut");
136
170
  if (x0 !== NONCONFORMING) {
137
171
  const s0 = toText(x0);
138
172
  if (s0 !== r.v0) r.a0.data = r.v0 = s0;
@@ -141,34 +175,36 @@ export function createUiEditorFormattingTools(options = {}, html) {
141
175
  };
142
176
  const p0 = (r, c, d) => {
143
177
  if (c & 2) {
178
+ resetForwardedAttributes(r.n, attributes, r.v0);
179
+ r.v0 = forwardAttributes(r.n, attributes);
144
180
  const x0 = v[1];
145
- const s0 = toAttribute(x0, "floating");
146
- if (s0 !== r.v0) writeAttribute(r.n, "floating", r.v0 = s0);
181
+ const s1 = toAttribute(x0, "floating");
182
+ writeAttribute(r.n, "floating", r.v1 = s1);
147
183
  }
148
184
  if (c & 1073741825) {
149
- const x1 = (checkReference(S, readDeclared(v[0], ["for"]), "s", "expression:$hint.for:hint.for", "Reference `hint.for` must satisfy string.") ? readMember(v[0], "for") : NONCONFORMING);
185
+ const x1 = checkedReferenceValue(S, readMember(v[0], "for"), RC1, "expression:$hint.for:hint.for", "hint.for");
150
186
  if (x1 !== NONCONFORMING) {
151
- const s1 = toAttribute(x1, "for");
152
- if (s1 !== r.v1) writeAttribute(r.a2, "for", r.v1 = s1);
187
+ const s2 = toAttribute(x1, "for");
188
+ if (s2 !== r.v2) writeAttribute(r.a2, "for", r.v2 = s2);
153
189
  }
154
- const x2 = (checkReference(S, readDeclared(v[0], ["open"]), "b", "expression:$hint.open:hint.open", "Reference `hint.open` must satisfy boolean.") ? readMember(v[0], "open") : NONCONFORMING);
190
+ const x2 = checkedReferenceValue(S, readMember(v[0], "open"), RC2, "expression:$hint.open:hint.open", "hint.open");
155
191
  if (x2 !== NONCONFORMING) {
156
- const s2 = toAttribute(x2, "open");
157
- if (s2 !== r.v2) writeAttribute(r.a2, "open", r.v2 = s2);
192
+ const s3 = toAttribute(x2, "open");
193
+ if (s3 !== r.v3) writeAttribute(r.a2, "open", r.v3 = s3);
158
194
  }
159
- const x3 = (checkReference(S, readDeclared(v[0], ["label"]), "s", "expression:$hint.label:hint.label", "Reference `hint.label` must satisfy string.") ? readMember(v[0], "label") : NONCONFORMING);
160
- if (x3 !== NONCONFORMING) r.m4_1 = toText(x3);
161
- const s4 = "\n " + r.m4_1;
162
- if (s4 !== r.v4) r.a3.data = r.v4 = s4;
195
+ const x3 = checkedReferenceValue(S, readMember(v[0], "label"), RC1, "expression:$hint.label:hint.label", "hint.label");
196
+ if (x3 !== NONCONFORMING) r.m5_1 = toText(x3);
197
+ const s5 = "\n " + r.m5_1;
198
+ if (s5 !== r.v5) r.a3.data = r.v5 = s5;
163
199
  }
164
200
  if (c & 2) {
165
201
  const x4 = (truthy(v[1]) ? "top" : "bottom");
166
- const s3 = toAttribute(x4, "placement");
167
- if (s3 !== r.v3) writeAttribute(r.a2, "placement", r.v3 = s3);
202
+ const s4 = toAttribute(x4, "placement");
203
+ if (s4 !== r.v4) writeAttribute(r.a2, "placement", r.v4 = s4);
168
204
  }
169
205
  if (c & 1073741828) r.L0.update(v[2], d, c);
170
206
  let t1;
171
- if (c & 1073741825 && (t1 = truthyValue((checkReference(S, readDeclared(v[0], ["shortcut"]), "s", "expression:$hint.shortcut:hint.shortcut", "Reference `hint.shortcut` must satisfy string.") ? readMember(v[0], "shortcut") : NONCONFORMING))) !== NONCONFORMING && !t1 !== !r.b1) {
207
+ if (c & 1073741825 && (t1 = truthyValue(checkedReferenceValue(S, readMember(v[0], "shortcut"), RC1, "expression:$hint.shortcut:hint.shortcut", "hint.shortcut"))) !== NONCONFORMING && !t1 !== !r.b1) {
172
208
  r.b1 = undefined;
173
209
  clearRegion(r.a4, r.e1);
174
210
  if (t1) { r.b1 = m5(d); r.e1.before(r.b1.n); }
@@ -178,9 +214,10 @@ export function createUiEditorFormattingTools(options = {}, html) {
178
214
  const t1 = t0.nextSibling.nextSibling.nextSibling;
179
215
  const t2 = t1.firstChild;
180
216
  const t3 = t2.nextSibling;
181
- const R = { n: element, a2: t1, a3: t2, v0: undefined, v1: null, v2: null, v3: null, v4: "", m4_1: "", L0: new RangedKeyedList(t0, t0.nextSibling, m1, p1, (o) => readMember(o, "id"), "item"), a4: t3, e1: t3.nextSibling, b1: undefined };
217
+ const R = { n: element, a2: t1, a3: t2, v0: undefined, v1: undefined, v2: null, v3: null, v4: null, v5: "", m5_1: "", L0: new RangedKeyedList(t0, t0.nextSibling, m1, p1, (o) => readMember(o, "id"), "item"), a4: t3, e1: t3.nextSibling, b1: undefined };
182
218
  const I = { B };
183
219
  I.R = new Set();
220
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
184
221
  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);
185
222
  manageProps(I);
186
223
  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 UiEditorImageToolbarEventMap {
3
3
  placement: CustomEvent<{ readonly placement: "block" | "center" | "wrap-left" | "wrap-right" }>;
4
4
  describe: CustomEvent<{ readonly alt: string }>;