@threadlabs/looma 0.52.12 → 0.53.0

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