@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,34 +1,34 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, toAttribute, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkFormat, defineComponent } 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, toAttribute, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkFormat, forwardAttributes, resetForwardedAttributes, defineComponent } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-separator.css";
4
4
 
5
5
  const S = { n: [], t: [], f: import.meta.url, g: "ui-separator", b: generatedInputs };
6
6
  const D = { g: "ui-separator", props: { "emphasis": { "required":false,"values":["normal","strong"],"default":"normal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "orientation": { "required":false,"values":["horizontal","vertical"],"default":"horizontal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "selectable": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "selected": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" } } };
7
7
 
8
8
  export function createUiSeparator(options = {}, html) {
9
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
10
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["emphasis","orientation","selectable","selected"].includes(name)));
10
11
  const element = document.createElement("hr");
11
- for (const [name, value] of Object.entries(attributes)) {
12
- if (value === null || value === undefined || value === false) continue;
13
- element.setAttribute(name, value === true ? "" : String(value));
14
- }
15
12
  element.setAttribute("component", "ui-separator");
16
13
  const v = [null, null, null, null];
17
14
  const B = acceptProps(element, D, S.n, v, componentProps, [], html);
18
15
  const p0 = (r, c, d) => {
19
16
  if (c & 1073741826) {
17
+ resetForwardedAttributes(r.n, attributes, r.v0);
18
+ r.v0 = forwardAttributes(r.n, attributes);
20
19
  const x0 = v[1];
21
- const s0 = toAttribute(x0, "aria-orientation");
22
- if (s0 !== r.v0) writeAttribute(r.n, "aria-orientation", r.v0 = s0);
20
+ const s1 = toAttribute(x0, "aria-orientation");
21
+ writeAttribute(r.n, "aria-orientation", r.v1 = s1);
23
22
  }
24
23
  if (c & 13) {
25
24
  const x1 = hostState(["emphasis","selectable","selected"], [v[0], v[2], v[3]]);
26
- const s1 = x1;
27
- if (s1 !== r.v1) writeAttribute(r.n, "data-ui-separator-state", (r.v1 = s1) === "" ? null : s1);
25
+ const s2 = x1;
26
+ if (s2 !== r.v2) writeAttribute(r.n, "data-ui-separator-state", (r.v2 = s2) === "" ? null : s2);
28
27
  }
29
28
  };
30
- const R = { n: element, v0: undefined, v1: undefined };
29
+ const R = { n: element, v0: undefined, v1: undefined, v2: undefined };
31
30
  const I = { B };
31
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
32
32
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
33
33
  manageProps(I);
34
34
  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 UiSidebarEventMap {
3
3
  resize: CustomEvent<{ readonly width: number; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  toggle: CustomEvent<{ readonly open: boolean; readonly mode: "docked" | "drawer"; 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, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, 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, toAttribute, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkNumber, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-sidebar/ui-sidebar.js";
4
4
  import "../styles/ui-sidebar.css";
5
5
 
@@ -11,12 +11,9 @@ const D = { g: "ui-sidebar", props: { "breakpoint": { "required":false,"values":
11
11
  const C = (host) => activateModule(controller, host);
12
12
 
13
13
  export function createUiSidebar(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]) => !["breakpoint","collapsed","max-width","min-width","resizable","resize-label","resize-step","side","width"].includes(name)));
15
16
  const element = document.createElement("aside");
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
  element.setAttribute("component", "ui-sidebar");
21
18
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
22
19
  const v = [false, false, false, null, null, null, null, null, null, null, null, null];
@@ -30,32 +27,37 @@ export function createUiSidebar(options = {}, html) {
30
27
  const p1 = (r, c, d) => {
31
28
  };
32
29
  const p0 = (r, c, d) => {
30
+ if (c === -1) {
31
+ resetForwardedAttributes(r.n, attributes, r.v0);
32
+ r.v0 = forwardAttributes(r.n, attributes);
33
+ }
33
34
  if (c & 256) {
34
35
  const x0 = v[8];
35
- const s0 = toAttribute(x0, "aria-label");
36
- if (s0 !== r.v0) writeAttribute(r.a1, "aria-label", r.v0 = s0);
36
+ const s1 = toAttribute(x0, "aria-label");
37
+ if (s1 !== r.v1) writeAttribute(r.a2, "aria-label", r.v1 = s1);
37
38
  }
38
39
  if (c & 131) {
39
40
  const x1 = ((!truthy(v[7]) || v[1]) || v[0]);
40
- const s1 = toAttribute(x1, "hidden");
41
- if (s1 !== r.v1) writeAttribute(r.a1, "hidden", r.v1 = s1);
41
+ const s2 = toAttribute(x1, "hidden");
42
+ if (s2 !== r.v2) writeAttribute(r.a2, "hidden", r.v2 = s2);
42
43
  }
43
44
  if (c & 1029) {
44
45
  const x2 = hostState(["side","internalCollapsed","resizing"], [v[10], v[0], v[2]]);
45
- const s2 = x2;
46
- if (s2 !== r.v2) writeAttribute(r.n, "data-ui-sidebar-state", (r.v2 = s2) === "" ? null : s2);
46
+ const s3 = x2;
47
+ if (s3 !== r.v3) writeAttribute(r.n, "data-ui-sidebar-state", (r.v3 = s3) === "" ? null : s3);
47
48
  }
48
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
49
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
49
50
  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); } }
50
51
  else if (r.b0 !== undefined) p1(r.b0, c, d);
51
52
  };
52
53
  const t0 = element.firstChild.nextSibling;
53
54
  const t1 = t0.firstChild.firstChild;
54
55
  const t2 = t0.nextSibling.nextSibling;
55
- const R = { n: element, a1: t2, v0: null, v1: null, v2: undefined, a0: t1, e0: t1.nextSibling, b0: undefined, f0: undefined };
56
+ const R = { n: element, a2: t2, v0: undefined, v1: null, v2: null, v3: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined };
56
57
  const I = { B };
57
58
  const J = project(I, children, slots);
58
59
  I.R = new Set();
60
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
59
61
  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);
60
62
  manageProps(I);
61
63
  I.r["resizer"] = t2;
@@ -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 UiSiteHeaderEventMap {
3
3
  }
4
4
  export interface UiSiteHeaderElement extends HTMLElement {
@@ -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, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkFormat, 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, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkFormat, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-site-header/ui-site-header.js";
4
4
  import "../styles/ui-site-header.css";
5
5
 
@@ -14,12 +14,9 @@ const D = { g: "ui-site-header", props: { "breakpoint": { "required":false,"valu
14
14
  const C = (host) => activateModule(controller, host);
15
15
 
16
16
  export function createUiSiteHeader(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]) => !["breakpoint","close-label","label","menu-label","sticky"].includes(name)));
18
19
  const element = document.createElement("header");
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-site-header");
24
21
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
25
22
  const v = [false, false, null, null, null, null, null];
@@ -57,40 +54,44 @@ export function createUiSiteHeader(options = {}, html) {
57
54
  const p4 = (r, c, d) => {
58
55
  };
59
56
  const p0 = (r, c, d) => {
57
+ if (c === -1) {
58
+ resetForwardedAttributes(r.n, attributes, r.v0);
59
+ r.v0 = forwardAttributes(r.n, attributes);
60
+ }
60
61
  if (c & 32) {
61
62
  const x0 = v[5];
62
- const s0 = toAttribute(x0, "label");
63
- if (s0 !== r.v0) writeAttribute(r.a2, "label", r.v0 = s0);
63
+ const s1 = toAttribute(x0, "label");
64
+ if (s1 !== r.v1) writeAttribute(r.a3, "label", r.v1 = s1);
64
65
  }
65
66
  if (c & 16) {
66
67
  const x1 = v[4];
67
- const s1 = toAttribute(x1, "aria-label");
68
- if (s1 !== r.v1) writeAttribute(r.a4, "aria-label", r.v1 = s1);
69
68
  const s2 = toAttribute(x1, "aria-label");
70
- if (s2 !== r.v2) writeAttribute(r.a6, "aria-label", r.v2 = s2);
71
- const s3 = toText(x1);
72
- if (s3 !== r.v3) r.a7.data = r.v3 = s3;
69
+ if (s2 !== r.v2) writeAttribute(r.a5, "aria-label", r.v2 = s2);
70
+ const s3 = toAttribute(x1, "aria-label");
71
+ if (s3 !== r.v3) writeAttribute(r.a7, "aria-label", r.v3 = s3);
72
+ const s4 = toText(x1);
73
+ if (s4 !== r.v4) r.a8.data = r.v4 = s4;
73
74
  }
74
75
  if (c & 8) {
75
76
  const x2 = v[3];
76
- const s4 = toAttribute(x2, "label");
77
- if (s4 !== r.v4) writeAttribute(r.a8, "label", r.v4 = s4);
77
+ const s5 = toAttribute(x2, "label");
78
+ if (s5 !== r.v5) writeAttribute(r.a9, "label", r.v5 = s5);
78
79
  }
79
80
  if (c & 71) {
80
81
  const x3 = hostState(["sticky","breakpoint","drawer","enhanced"], [v[6], v[2], v[1], v[0]]);
81
- const s5 = x3;
82
- if (s5 !== r.v5) writeAttribute(r.n, "data-ui-site-header-state", (r.v5 = s5) === "" ? null : s5);
82
+ const s6 = x3;
83
+ if (s6 !== r.v6) writeAttribute(r.n, "data-ui-site-header-state", (r.v6 = s6) === "" ? null : s6);
83
84
  }
84
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "brand", J, false, undefined, d);
85
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "brand", J, false, undefined, d);
85
86
  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); } }
86
87
  else if (r.b0 !== undefined) p1(r.b0, c, d);
87
- if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a1, r.e1, "menu", J, false, undefined, d);
88
+ if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "menu", J, false, undefined, d);
88
89
  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); } }
89
90
  else if (r.b1 !== undefined) p2(r.b1, c, d);
90
- if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a5, r.e2, "navigation", J, false, undefined, d);
91
+ if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a6, r.e2, "navigation", J, false, undefined, d);
91
92
  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); } }
92
93
  else if (r.b2 !== undefined) p3(r.b2, c, d);
93
- if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a9, r.e3, "actions", J, false, undefined, d);
94
+ if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a10, r.e3, "actions", J, false, undefined, d);
94
95
  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); } }
95
96
  else if (r.b3 !== undefined) p4(r.b3, c, d);
96
97
  };
@@ -110,10 +111,11 @@ export function createUiSiteHeader(options = {}, html) {
110
111
  const t13 = t12.firstChild;
111
112
  const t14 = t12.nextSibling.nextSibling;
112
113
  const t15 = t0.nextSibling.nextSibling.firstChild;
113
- const R = { n: element, a2: t6, a4: t8, a6: t10, a7: t13, a8: t14, v0: null, v1: null, v2: null, v3: "", v4: null, v5: undefined, a0: t2, e0: t2.nextSibling, b0: undefined, f0: undefined, a1: t5, e1: t5.nextSibling, b1: undefined, f1: undefined, a5: t9, e2: t9.nextSibling, b2: undefined, f2: undefined, a9: t15, e3: t15.nextSibling, b3: undefined, f3: undefined };
114
+ const R = { n: element, a3: t6, a5: t8, a7: t10, a8: t13, a9: t14, v0: undefined, v1: null, v2: null, v3: null, v4: "", v5: null, v6: undefined, a1: t2, e0: t2.nextSibling, b0: undefined, f0: undefined, a2: t5, e1: t5.nextSibling, b1: undefined, f1: undefined, a6: t9, e2: t9.nextSibling, b2: undefined, f2: undefined, a10: t15, e3: t15.nextSibling, b3: undefined, f3: undefined };
114
115
  const I = { B };
115
116
  const J = project(I, children, slots);
116
117
  I.R = new Set();
118
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
117
119
  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);
118
120
  manageProps(I);
119
121
  I.r["trigger"] = t6;
@@ -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 UiSkeletonEventMap {
3
3
  }
4
4
  export interface UiSkeletonElement extends HTMLSpanElement {
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, toText, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkFormat, 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, toAttribute, toText, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkFormat, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-skeleton/ui-skeleton.js";
4
4
  import "../styles/ui-skeleton.css";
5
5
 
@@ -8,35 +8,36 @@ const D = { g: "ui-skeleton", props: { "animated": { "required":false,"default":
8
8
  const C = (host) => activateModule(controller, host);
9
9
 
10
10
  export function createUiSkeleton(options = {}, html) {
11
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
11
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
12
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["animated","height","shape","width"].includes(name)));
12
13
  const element = document.createElement("span");
13
- for (const [name, value] of Object.entries(attributes)) {
14
- if (value === null || value === undefined || value === false) continue;
15
- element.setAttribute(name, value === true ? "" : String(value));
16
- }
17
14
  if (!element.hasAttribute("aria-hidden")) element.setAttribute("aria-hidden", "true");
18
15
  element.setAttribute("component", "ui-skeleton");
19
16
  const v = [null, null, null, null];
20
17
  const B = acceptProps(element, D, S.n, v, componentProps, [], html);
21
18
  const p0 = (r, c, d) => {
22
- if (c & 8) {
23
- const x0 = v[3];
24
- const s0 = toText(x0);
25
- if (s0 !== r.v0) r.n.style.setProperty("--ui-skeleton-width", r.v0 = s0);
26
- }
27
- if (c & 2) {
28
- const x1 = v[1];
29
- const s1 = toText(x1);
30
- if (s1 !== r.v1) r.n.style.setProperty("--ui-skeleton-height", r.v1 = s1);
19
+ if (c & 10) {
20
+ resetForwardedAttributes(r.n, attributes, r.v0);
21
+ r.v0 = forwardAttributes(r.n, attributes);
22
+ const x0 = "true";
23
+ const s1 = toAttribute(x0, "aria-hidden");
24
+ writeAttribute(r.n, "aria-hidden", r.v1 = s1);
25
+ const x1 = v[3];
26
+ const s2 = toText(x1);
27
+ r.n.style.setProperty("--ui-skeleton-width", r.v2 = s2);
28
+ const x2 = v[1];
29
+ const s3 = toText(x2);
30
+ r.n.style.setProperty("--ui-skeleton-height", r.v3 = s3);
31
31
  }
32
32
  if (c & 5) {
33
- const x2 = hostState(["shape","animated"], [v[2], v[0]]);
34
- const s2 = x2;
35
- if (s2 !== r.v2) writeAttribute(r.n, "data-ui-skeleton-state", (r.v2 = s2) === "" ? null : s2);
33
+ const x3 = hostState(["shape","animated"], [v[2], v[0]]);
34
+ const s4 = x3;
35
+ if (s4 !== r.v4) writeAttribute(r.n, "data-ui-skeleton-state", (r.v4 = s4) === "" ? null : s4);
36
36
  }
37
37
  };
38
- const R = { n: element, v0: undefined, v1: undefined, v2: undefined };
38
+ const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined };
39
39
  const I = { B };
40
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
40
41
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
41
42
  manageProps(I);
42
43
  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 UiSliderEventMap {
3
3
  input: CustomEvent<{ readonly value: number }>;
4
4
  change: CustomEvent<{ readonly value: number }>;
@@ -1,21 +1,19 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, stateInitializers, buildTemplate, checkReference, NONCONFORMING, textCall, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, checkBoolean, 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, checkedReferenceValue, stateInitializers, buildTemplate, NONCONFORMING, textCall, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, checkBoolean, checkFormat, checkNumber, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-slider/ui-slider.js";
4
4
  import "../styles/ui-slider.css";
5
5
 
6
6
  const T0 = ["",[],"\n ",["input",["type","range","data-ui-field-control",""]],"\n ",["ui-number-input",["data-slider-exact",""]],"\n "];
7
+ const RC0 = ["n", "number"];
7
8
  let P0;
8
9
  const S = { n: ["current"], t: ["n"], f: import.meta.url, g: "ui-slider", d: { "input": [detailCheck(checkObject([["value", checkNumber, false]], false)), true, true, false], "change": [detailCheck(checkObject([["value", checkNumber, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs };
9
10
  const D = { g: "ui-slider", props: { "compact": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "label": { "required":false,"default":"Value", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":100, c: checkNumber, t: "number", j: 0, m: "n" }, "min": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "step": { "required":false,"default":1, c: checkNumber, t: "number", j: 0, m: "n" }, "unit": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "value": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" } } };
10
11
  const C = (host) => activateModule(controller, host);
11
12
 
12
13
  export function createUiSlider(options = {}, html) {
13
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
14
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
15
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["compact","disabled","label","max","min","name","size","step","unit","value"].includes(name)));
14
16
  const element = document.createElement("span");
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
17
  element.setAttribute("component", "ui-slider");
20
18
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
21
19
  const v = [null, null, null, null, null, null, null, null, null, null, null];
@@ -23,108 +21,113 @@ export function createUiSlider(options = {}, html) {
23
21
  const CS = [];
24
22
  const inputStatus = (j) => { if (j === 0) return E.status(j); if (j === 1) return awaitInput(B, "compact", true); if (j === 2) return awaitInput(B, "disabled", true); if (j === 3) return awaitInput(B, "label", true); if (j === 4) return awaitInput(B, "max", true); if (j === 5) return awaitInput(B, "min", true); if (j === 6) return awaitInput(B, "name", true); if (j === 7) return awaitInput(B, "size", true); if (j === 8) return awaitInput(B, "step", true); if (j === 9) return awaitInput(B, "unit", true); if (j === 10) return awaitInput(B, "value", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
25
23
  const X = { e: 0, g: (j) => v[j], w: new Set(), a: CS, i: inputStatus };
26
- const E = stateInitializers(S, v, X, { 0: () => inputRead(v[10], inputStatus(10)) });
24
+ const E = stateInitializers(S, v, X, { 0: () => (inputRead(v[10], inputStatus(10))) });
27
25
  const p0 = (r, c, d) => {
26
+ if (c === -1) {
27
+ resetForwardedAttributes(r.n, attributes, r.v0);
28
+ r.v0 = forwardAttributes(r.n, attributes);
29
+ }
28
30
  if (c & 8) {
29
31
  const x0 = v[3];
30
- const s0 = toAttribute(x0, "aria-label");
31
- if (s0 !== r.v0) writeAttribute(r.a0, "aria-label", r.v0 = s0);
32
+ const s1 = toAttribute(x0, "aria-label");
33
+ if (s1 !== r.v1) writeAttribute(r.a1, "aria-label", r.v1 = s1);
32
34
  }
33
35
  if (c & 513) {
34
- const x1 = (checkReference(S, v[0], "n", "expression:concat($current, $unit):current", "Reference `current` must satisfy number.") ? textCall("concat", [E.read(0), v[9]]) : NONCONFORMING);
36
+ const x1 = textCall("concat", [checkedReferenceValue(S, E.read(0), RC0, "expression:concat($current, $unit):current", "current"), v[9]]);
35
37
  if (x1 !== NONCONFORMING) {
36
- const s1 = toAttribute(x1, "aria-valuetext");
37
- if (s1 !== r.v1) writeAttribute(r.a0, "aria-valuetext", r.v1 = s1);
38
+ const s2 = toAttribute(x1, "aria-valuetext");
39
+ if (s2 !== r.v2) writeAttribute(r.a1, "aria-valuetext", r.v2 = s2);
38
40
  }
39
41
  }
40
42
  if (c & 1024) {
41
43
  const x2 = v[10];
42
- const s2 = toAttribute(x2, "value");
43
- if (s2 !== r.v2) writeAttribute(r.a0, "value", r.v2 = s2);
44
+ const s3 = toAttribute(x2, "value");
45
+ if (s3 !== r.v3) writeAttribute(r.a1, "value", r.v3 = s3);
44
46
  }
45
47
  if (c & 32) {
46
48
  const x3 = v[5];
47
- const s3 = toAttribute(x3, "min");
48
- if (s3 !== r.v3) writeAttribute(r.a0, "min", r.v3 = s3);
49
+ const s4 = toAttribute(x3, "min");
50
+ if (s4 !== r.v4) writeAttribute(r.a1, "min", r.v4 = s4);
49
51
  }
50
52
  if (c & 16) {
51
53
  const x4 = v[4];
52
- const s4 = toAttribute(x4, "max");
53
- if (s4 !== r.v4) writeAttribute(r.a0, "max", r.v4 = s4);
54
+ const s5 = toAttribute(x4, "max");
55
+ if (s5 !== r.v5) writeAttribute(r.a1, "max", r.v5 = s5);
54
56
  }
55
57
  if (c & 256) {
56
58
  const x5 = v[8];
57
- const s5 = toAttribute(x5, "step");
58
- if (s5 !== r.v5) writeAttribute(r.a0, "step", r.v5 = s5);
59
+ const s6 = toAttribute(x5, "step");
60
+ if (s6 !== r.v6) writeAttribute(r.a1, "step", r.v6 = s6);
59
61
  }
60
62
  if (c & 4) {
61
63
  const x6 = v[2];
62
- const s6 = toAttribute(x6, "disabled");
63
- if (s6 !== r.v6) writeAttribute(r.a0, "disabled", r.v6 = s6);
64
+ const s7 = toAttribute(x6, "disabled");
65
+ if (s7 !== r.v7) writeAttribute(r.a1, "disabled", r.v7 = s7);
64
66
  }
65
67
  if (c & 64) {
66
68
  const x7 = v[6];
67
- const s7 = toAttribute(x7, "name");
68
- if (s7 !== r.v7) writeAttribute(r.a0, "name", r.v7 = s7);
69
+ const s8 = toAttribute(x7, "name");
70
+ if (s8 !== r.v8) writeAttribute(r.a1, "name", r.v8 = s8);
69
71
  }
70
72
  if (c & 2) {
71
73
  const x8 = v[1];
72
- const s8 = toAttribute(x8, "compact");
73
- if (s8 !== r.v8) writeAttribute(r.a1, "compact", r.v8 = s8);
74
+ const s9 = toAttribute(x8, "compact");
75
+ if (s9 !== r.v9) writeAttribute(r.a2, "compact", r.v9 = s9);
74
76
  }
75
77
  if (c & 513) {
76
- const x9 = (checkReference(S, v[0], "n", "expression:concat($current, $unit):current", "Reference `current` must satisfy number.") ? textCall("concat", [E.read(0), v[9]]) : NONCONFORMING);
78
+ const x9 = textCall("concat", [checkedReferenceValue(S, E.read(0), RC0, "expression:concat($current, $unit):current", "current"), v[9]]);
77
79
  if (x9 !== NONCONFORMING) {
78
- const s9 = toAttribute(x9, "value");
79
- if (s9 !== r.v9) writeAttribute(r.a1, "value", r.v9 = s9);
80
+ const s10 = toAttribute(x9, "value");
81
+ if (s10 !== r.v10) writeAttribute(r.a2, "value", r.v10 = s10);
80
82
  }
81
83
  }
82
84
  if (c & 512) {
83
85
  const x10 = v[9];
84
- const s10 = toAttribute(x10, "unit");
85
- if (s10 !== r.v10) writeAttribute(r.a1, "unit", r.v10 = s10);
86
+ const s11 = toAttribute(x10, "unit");
87
+ if (s11 !== r.v11) writeAttribute(r.a2, "unit", r.v11 = s11);
86
88
  }
87
89
  if (c & 32) {
88
90
  const x11 = v[5];
89
- const s11 = toAttribute(x11, "min");
90
- if (s11 !== r.v11) writeAttribute(r.a1, "min", r.v11 = s11);
91
+ const s12 = toAttribute(x11, "min");
92
+ if (s12 !== r.v12) writeAttribute(r.a2, "min", r.v12 = s12);
91
93
  }
92
94
  if (c & 16) {
93
95
  const x12 = v[4];
94
- const s12 = toAttribute(x12, "max");
95
- if (s12 !== r.v12) writeAttribute(r.a1, "max", r.v12 = s12);
96
+ const s13 = toAttribute(x12, "max");
97
+ if (s13 !== r.v13) writeAttribute(r.a2, "max", r.v13 = s13);
96
98
  }
97
99
  if (c & 256) {
98
100
  const x13 = v[8];
99
- const s13 = toAttribute(x13, "step");
100
- if (s13 !== r.v13) writeAttribute(r.a1, "step", r.v13 = s13);
101
+ const s14 = toAttribute(x13, "step");
102
+ if (s14 !== r.v14) writeAttribute(r.a2, "step", r.v14 = s14);
101
103
  }
102
104
  if (c & 1073741952) {
103
105
  const x14 = v[7];
104
- const s14 = toAttribute(x14, "size");
105
- if (s14 !== r.v14) writeAttribute(r.a1, "size", r.v14 = s14);
106
+ const s15 = toAttribute(x14, "size");
107
+ if (s15 !== r.v15) writeAttribute(r.a2, "size", r.v15 = s15);
106
108
  }
107
109
  if (c & 4) {
108
110
  const x15 = v[2];
109
- const s15 = toAttribute(x15, "disabled");
110
- if (s15 !== r.v15) writeAttribute(r.a1, "disabled", r.v15 = s15);
111
+ const s16 = toAttribute(x15, "disabled");
112
+ if (s16 !== r.v16) writeAttribute(r.a2, "disabled", r.v16 = s16);
111
113
  }
112
114
  if (c & 8) {
113
115
  const x16 = v[3];
114
- const s16 = toAttribute(x16, "label");
115
- if (s16 !== r.v16) writeAttribute(r.a1, "label", r.v16 = s16);
116
+ const s17 = toAttribute(x16, "label");
117
+ if (s17 !== r.v17) writeAttribute(r.a2, "label", r.v17 = s17);
116
118
  }
117
119
  if (c & 130) {
118
120
  const x17 = hostState(["compact","size"], [v[1], v[7]]);
119
- const s17 = x17;
120
- if (s17 !== r.v17) writeAttribute(r.n, "data-ui-slider-state", (r.v17 = s17) === "" ? null : s17);
121
+ const s18 = x17;
122
+ if (s18 !== r.v18) writeAttribute(r.n, "data-ui-slider-state", (r.v18 = s18) === "" ? null : s18);
121
123
  }
122
124
  };
123
125
  const t0 = element.firstChild.nextSibling;
124
126
  const t1 = t0.nextSibling.nextSibling;
125
- const R = { n: element, a0: t0, a1: t1, v0: null, 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, v15: null, v16: null, v17: undefined };
127
+ const R = { n: element, a1: t0, a2: t1, 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, v15: null, v16: null, v17: null, v18: undefined };
126
128
  const I = { B, U: E };
127
129
  I.R = new Set();
130
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
128
131
  attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, X, I);
129
132
  manageProps(I);
130
133
  I.r["range"] = 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 UiSpinnerEventMap {
3
3
  }
4
4
  export interface UiSpinnerElement extends HTMLSpanElement {
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkFormat, checkString, defineComponent } 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, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkFormat, checkString, forwardAttributes, resetForwardedAttributes, defineComponent } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-spinner.css";
4
4
 
5
5
  const T0 = ["",[],"\n ",["svg",["viewBox","0 0 50 50","fill","none","aria-hidden","true","focusable","false"],["circle",["class","track","cx","25","cy","25","r","20"]],["circle",["class","arc","cx","25","cy","25","r","20"]]],"\n "];
@@ -8,12 +8,9 @@ const S = { n: [], t: [], f: import.meta.url, g: "ui-spinner", b: generatedInput
8
8
  const D = { g: "ui-spinner", props: { "label": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "size": { "required":false,"values":["sm","md"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
9
9
 
10
10
  export function createUiSpinner(options = {}, html) {
11
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
11
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
12
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["label","size"].includes(name)));
12
13
  const element = document.createElement("span");
13
- for (const [name, value] of Object.entries(attributes)) {
14
- if (value === null || value === undefined || value === false) continue;
15
- element.setAttribute(name, value === true ? "" : String(value));
16
- }
17
14
  element.setAttribute("class", ["ring", element.getAttribute("class")].filter(Boolean).join(" "));
18
15
  element.setAttribute("component", "ui-spinner");
19
16
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
@@ -21,35 +18,45 @@ export function createUiSpinner(options = {}, html) {
21
18
  const B = acceptProps(element, D, S.n, v, componentProps, [], html);
22
19
  const p0 = (r, c, d) => {
23
20
  if (c & 1073741825) {
24
- const x0 = readIndex({ "true": "status", "false": null }, textCall("concat", [(v[0] !== "")]));
25
- if (x0 !== NONCONFORMING) {
26
- const s0 = toAttribute(x0, "role");
27
- if (s0 !== r.v0) writeAttribute(r.n, "role", r.v0 = s0);
21
+ resetForwardedAttributes(r.n, attributes, r.v0);
22
+ r.v0 = forwardAttributes(r.n, attributes);
23
+ const x0 = "ring";
24
+ const s1 = toAttribute(x0, "class");
25
+ writeAttribute(r.n, "class", r.v1 = s1);
26
+ const x1 = readIndex({ "true": "status", "false": null }, textCall("concat", [equalValue(v[0], "", true)]));
27
+ if (x1 !== NONCONFORMING) r.g2 = x1;
28
+ if (r.g2 !== NONCONFORMING) {
29
+ const s2 = toAttribute(r.g2, "role");
30
+ writeAttribute(r.n, "role", r.v2 = s2);
28
31
  }
29
- const x1 = readIndex({ "true": v[0], "false": null }, textCall("concat", [(v[0] !== "")]));
30
- if (x1 !== NONCONFORMING) {
31
- const s1 = toAttribute(x1, "aria-label");
32
- if (s1 !== r.v1) writeAttribute(r.n, "aria-label", r.v1 = s1);
32
+ const x2 = readIndex({ "true": v[0], "false": null }, textCall("concat", [equalValue(v[0], "", true)]));
33
+ if (x2 !== NONCONFORMING) r.g3 = x2;
34
+ if (r.g3 !== NONCONFORMING) {
35
+ const s3 = toAttribute(r.g3, "aria-label");
36
+ writeAttribute(r.n, "aria-label", r.v3 = s3);
33
37
  }
34
- const x2 = readIndex({ "true": "polite", "false": null }, textCall("concat", [(v[0] !== "")]));
35
- if (x2 !== NONCONFORMING) {
36
- const s2 = toAttribute(x2, "aria-live");
37
- if (s2 !== r.v2) writeAttribute(r.n, "aria-live", r.v2 = s2);
38
+ const x3 = readIndex({ "true": "polite", "false": null }, textCall("concat", [equalValue(v[0], "", true)]));
39
+ if (x3 !== NONCONFORMING) r.g4 = x3;
40
+ if (r.g4 !== NONCONFORMING) {
41
+ const s4 = toAttribute(r.g4, "aria-live");
42
+ writeAttribute(r.n, "aria-live", r.v4 = s4);
38
43
  }
39
- const x3 = readIndex({ "true": null, "false": "true" }, textCall("concat", [(v[0] !== "")]));
40
- if (x3 !== NONCONFORMING) {
41
- const s3 = toAttribute(x3, "aria-hidden");
42
- if (s3 !== r.v3) writeAttribute(r.n, "aria-hidden", r.v3 = s3);
44
+ const x4 = readIndex({ "true": null, "false": "true" }, textCall("concat", [equalValue(v[0], "", true)]));
45
+ if (x4 !== NONCONFORMING) r.g5 = x4;
46
+ if (r.g5 !== NONCONFORMING) {
47
+ const s5 = toAttribute(r.g5, "aria-hidden");
48
+ writeAttribute(r.n, "aria-hidden", r.v5 = s5);
43
49
  }
44
50
  }
45
51
  if (c & 2) {
46
- const x4 = hostState(["size"], [v[1]]);
47
- const s4 = x4;
48
- if (s4 !== r.v4) writeAttribute(r.n, "data-ui-spinner-state", (r.v4 = s4) === "" ? null : s4);
52
+ const x5 = hostState(["size"], [v[1]]);
53
+ const s6 = x5;
54
+ if (s6 !== r.v6) writeAttribute(r.n, "data-ui-spinner-state", (r.v6 = s6) === "" ? null : s6);
49
55
  }
50
56
  };
51
- const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined };
57
+ const R = { n: element, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: undefined, g3: NONCONFORMING, v4: undefined, g4: NONCONFORMING, v5: undefined, g5: NONCONFORMING, v6: undefined };
52
58
  const I = { B };
59
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
53
60
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
54
61
  manageProps(I);
55
62
  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 UiStackEventMap {
3
3
  }
4
4
  export interface UiStackElement extends HTMLDivElement {