@threadlabs/looma 0.52.11 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/components/shared/overlay.js +7 -0
  2. package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
  3. package/components/ui-meter/ui-meter.html +1 -1
  4. package/dist/index.js +1 -1
  5. package/docs/catalog.json +1 -1
  6. package/editor/components.css +19 -19
  7. package/editor/index.js +1125 -853
  8. package/package.json +3 -3
  9. package/styles/ui-action-bar.css +1 -1
  10. package/styles/ui-affordance-scope.css +1 -1
  11. package/styles/ui-avatar-group.css +1 -1
  12. package/styles/ui-avatar.css +1 -1
  13. package/styles/ui-badge.css +1 -1
  14. package/styles/ui-breadcrumb-item.css +1 -1
  15. package/styles/ui-breadcrumbs.css +1 -1
  16. package/styles/ui-button.css +1 -1
  17. package/styles/ui-calendar.css +1 -1
  18. package/styles/ui-callout.css +1 -1
  19. package/styles/ui-card-group.css +1 -1
  20. package/styles/ui-card.css +1 -1
  21. package/styles/ui-checkbox.css +1 -1
  22. package/styles/ui-cluster.css +1 -1
  23. package/styles/ui-color-picker.css +1 -1
  24. package/styles/ui-column.css +1 -1
  25. package/styles/ui-combobox.css +1 -1
  26. package/styles/ui-compact-content.css +1 -1
  27. package/styles/ui-compact-editor.css +1 -1
  28. package/styles/ui-compact-mark.css +1 -1
  29. package/styles/ui-compact-node.css +1 -1
  30. package/styles/ui-container.css +1 -1
  31. package/styles/ui-context-menu.css +1 -1
  32. package/styles/ui-cover.css +1 -1
  33. package/styles/ui-curve-editor.css +1 -1
  34. package/styles/ui-cycle-button.css +1 -1
  35. package/styles/ui-data-table.css +1 -1
  36. package/styles/ui-date-field.css +1 -1
  37. package/styles/ui-date-picker.css +1 -1
  38. package/styles/ui-date-range-picker.css +1 -1
  39. package/styles/ui-description-item.css +1 -1
  40. package/styles/ui-description-list.css +1 -1
  41. package/styles/ui-dialog.css +1 -1
  42. package/styles/ui-disclosure.css +1 -1
  43. package/styles/ui-editable.css +1 -1
  44. package/styles/ui-editor-block-actions.css +1 -1
  45. package/styles/ui-editor-chip-editor.css +1 -1
  46. package/styles/ui-editor-code-language.css +1 -1
  47. package/styles/ui-editor-footnote-editor.css +1 -1
  48. package/styles/ui-editor-formatting-tools.css +1 -1
  49. package/styles/ui-editor-image-toolbar.css +1 -1
  50. package/styles/ui-editor-insert-table-grid.css +1 -1
  51. package/styles/ui-editor-link-card.css +1 -1
  52. package/styles/ui-editor-link-form.css +1 -1
  53. package/styles/ui-editor-mention-menu-item.css +1 -1
  54. package/styles/ui-editor-mention-menu.css +1 -1
  55. package/styles/ui-editor-slash-menu-group.css +1 -1
  56. package/styles/ui-editor-slash-menu-item.css +1 -1
  57. package/styles/ui-editor-slash-menu.css +1 -1
  58. package/styles/ui-editor-surface.css +1 -1
  59. package/styles/ui-editor-table-context-menu.css +1 -1
  60. package/styles/ui-editor-table-overlay.css +1 -1
  61. package/styles/ui-editor-table-toolbar.css +1 -1
  62. package/styles/ui-editor-toolbar.css +1 -1
  63. package/styles/ui-editor.css +1 -1
  64. package/styles/ui-file-input.css +1 -1
  65. package/styles/ui-floating-action-button.css +1 -1
  66. package/styles/ui-form-field.css +1 -1
  67. package/styles/ui-grid.css +1 -1
  68. package/styles/ui-icon-button.css +1 -1
  69. package/styles/ui-icon.css +1 -1
  70. package/styles/ui-image.css +1 -1
  71. package/styles/ui-input-group.css +1 -1
  72. package/styles/ui-input.css +1 -1
  73. package/styles/ui-light-editor.css +1 -1
  74. package/styles/ui-list-item.css +1 -1
  75. package/styles/ui-list.css +1 -1
  76. package/styles/ui-listbox.css +1 -1
  77. package/styles/ui-menu-group.css +1 -1
  78. package/styles/ui-menu-item.css +1 -1
  79. package/styles/ui-menu.css +1 -1
  80. package/styles/ui-meter.css +1 -1
  81. package/styles/ui-nav-item.css +1 -1
  82. package/styles/ui-notice-stripe.css +1 -1
  83. package/styles/ui-number-input.css +1 -1
  84. package/styles/ui-page-header.css +1 -1
  85. package/styles/ui-pagination.css +1 -1
  86. package/styles/ui-popover.css +1 -1
  87. package/styles/ui-radio-group.css +1 -1
  88. package/styles/ui-radio.css +1 -1
  89. package/styles/ui-reel.css +1 -1
  90. package/styles/ui-scroll-area.css +1 -1
  91. package/styles/ui-search-result-row.css +1 -1
  92. package/styles/ui-search-shell.css +1 -1
  93. package/styles/ui-section.css +1 -1
  94. package/styles/ui-segmented-control.css +1 -1
  95. package/styles/ui-select.css +1 -1
  96. package/styles/ui-separator.css +1 -1
  97. package/styles/ui-sidebar.css +1 -1
  98. package/styles/ui-site-header.css +1 -1
  99. package/styles/ui-skeleton.css +1 -1
  100. package/styles/ui-slider.css +1 -1
  101. package/styles/ui-spinner.css +1 -1
  102. package/styles/ui-stack.css +1 -1
  103. package/styles/ui-status-message.css +1 -1
  104. package/styles/ui-swatch.css +1 -1
  105. package/styles/ui-switch.css +1 -1
  106. package/styles/ui-switcher.css +1 -1
  107. package/styles/ui-table.css +1 -1
  108. package/styles/ui-tabs.css +1 -1
  109. package/styles/ui-text.css +1 -1
  110. package/styles/ui-textarea.css +1 -1
  111. package/styles/ui-time-field.css +1 -1
  112. package/styles/ui-time-picker.css +1 -1
  113. package/styles/ui-toast-region.css +1 -1
  114. package/styles/ui-toast.css +1 -1
  115. package/styles/ui-tooltip.css +1 -1
  116. package/styles/ui-top-bar.css +1 -1
  117. package/styles/ui-tree-item.css +1 -1
  118. package/styles/ui-tree.css +1 -1
  119. package/styles/ui-wizard.css +1 -1
  120. package/vanilla/UiActionBar.d.ts +1 -1
  121. package/vanilla/UiActionBar.js +14 -12
  122. package/vanilla/UiAffordanceScope.d.ts +1 -1
  123. package/vanilla/UiAffordanceScope.js +13 -11
  124. package/vanilla/UiAvatar.d.ts +1 -1
  125. package/vanilla/UiAvatar.js +27 -25
  126. package/vanilla/UiAvatarGroup.d.ts +1 -1
  127. package/vanilla/UiAvatarGroup.js +26 -23
  128. package/vanilla/UiBadge.d.ts +1 -1
  129. package/vanilla/UiBadge.js +14 -12
  130. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  131. package/vanilla/UiBreadcrumbItem.js +14 -13
  132. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  133. package/vanilla/UiBreadcrumbs.js +10 -10
  134. package/vanilla/UiButton.d.ts +1 -1
  135. package/vanilla/UiButton.js +187 -244
  136. package/vanilla/UiCalendar.d.ts +1 -1
  137. package/vanilla/UiCalendar.js +272 -193
  138. package/vanilla/UiCallout.d.ts +1 -1
  139. package/vanilla/UiCallout.js +32 -27
  140. package/vanilla/UiCard.d.ts +1 -1
  141. package/vanilla/UiCard.js +72 -69
  142. package/vanilla/UiCardGroup.d.ts +1 -1
  143. package/vanilla/UiCardGroup.js +17 -15
  144. package/vanilla/UiCheckbox.d.ts +1 -1
  145. package/vanilla/UiCheckbox.js +32 -30
  146. package/vanilla/UiCluster.d.ts +1 -1
  147. package/vanilla/UiCluster.js +20 -18
  148. package/vanilla/UiColorPicker.d.ts +1 -1
  149. package/vanilla/UiColorPicker.js +22 -20
  150. package/vanilla/UiColumn.d.ts +2 -2
  151. package/vanilla/UiColumn.js +18 -15
  152. package/vanilla/UiCombobox.d.ts +3 -3
  153. package/vanilla/UiCombobox.js +237 -174
  154. package/vanilla/UiCompactContent.d.ts +1 -1
  155. package/vanilla/UiCompactContent.js +13 -8
  156. package/vanilla/UiCompactEditor.d.ts +1 -1
  157. package/vanilla/UiCompactEditor.js +17 -12
  158. package/vanilla/UiCompactMark.d.ts +1 -1
  159. package/vanilla/UiCompactMark.js +47 -45
  160. package/vanilla/UiCompactNode.d.ts +2 -2
  161. package/vanilla/UiCompactNode.js +37 -33
  162. package/vanilla/UiContainer.d.ts +1 -1
  163. package/vanilla/UiContainer.js +13 -11
  164. package/vanilla/UiContextMenu.d.ts +1 -1
  165. package/vanilla/UiContextMenu.js +11 -9
  166. package/vanilla/UiCover.d.ts +1 -1
  167. package/vanilla/UiCover.js +13 -11
  168. package/vanilla/UiCurveEditor.d.ts +1 -1
  169. package/vanilla/UiCurveEditor.js +40 -38
  170. package/vanilla/UiCycleButton.d.ts +2 -2
  171. package/vanilla/UiCycleButton.js +31 -26
  172. package/vanilla/UiDataTable.d.ts +1 -1
  173. package/vanilla/UiDataTable.js +26 -20
  174. package/vanilla/UiDateField.d.ts +1 -1
  175. package/vanilla/UiDateField.js +78 -75
  176. package/vanilla/UiDatePicker.d.ts +1 -1
  177. package/vanilla/UiDatePicker.js +155 -149
  178. package/vanilla/UiDateRangePicker.d.ts +1 -1
  179. package/vanilla/UiDateRangePicker.js +136 -128
  180. package/vanilla/UiDescriptionItem.d.ts +1 -1
  181. package/vanilla/UiDescriptionItem.js +13 -11
  182. package/vanilla/UiDescriptionList.d.ts +1 -1
  183. package/vanilla/UiDescriptionList.js +13 -11
  184. package/vanilla/UiDialog.d.ts +1 -1
  185. package/vanilla/UiDialog.js +14 -14
  186. package/vanilla/UiDisclosure.d.ts +1 -1
  187. package/vanilla/UiDisclosure.js +28 -26
  188. package/vanilla/UiEditable.d.ts +1 -1
  189. package/vanilla/UiEditable.js +29 -27
  190. package/vanilla/UiEditor.d.ts +1 -1
  191. package/vanilla/UiEditor.js +62 -58
  192. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  193. package/vanilla/UiEditorBlockActions.js +14 -12
  194. package/vanilla/UiEditorChipEditor.d.ts +1 -1
  195. package/vanilla/UiEditorChipEditor.js +22 -14
  196. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  197. package/vanilla/UiEditorCodeLanguage.js +23 -16
  198. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  199. package/vanilla/UiEditorFootnoteEditor.js +17 -9
  200. package/vanilla/UiEditorFormattingTools.d.ts +1 -1
  201. package/vanilla/UiEditorFormattingTools.js +108 -71
  202. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  203. package/vanilla/UiEditorImageToolbar.js +68 -66
  204. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  205. package/vanilla/UiEditorInsertTableGrid.js +50 -35
  206. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  207. package/vanilla/UiEditorLinkCard.js +27 -25
  208. package/vanilla/UiEditorLinkForm.d.ts +1 -1
  209. package/vanilla/UiEditorLinkForm.js +79 -57
  210. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  211. package/vanilla/UiEditorMentionMenu.js +63 -44
  212. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  213. package/vanilla/UiEditorMentionMenuItem.js +22 -16
  214. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  215. package/vanilla/UiEditorSlashMenu.js +52 -33
  216. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  217. package/vanilla/UiEditorSlashMenuGroup.js +19 -14
  218. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  219. package/vanilla/UiEditorSlashMenuItem.js +27 -25
  220. package/vanilla/UiEditorSurface.d.ts +1 -1
  221. package/vanilla/UiEditorSurface.js +13 -11
  222. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  223. package/vanilla/UiEditorTableContextMenu.js +81 -52
  224. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  225. package/vanilla/UiEditorTableOverlay.js +107 -68
  226. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  227. package/vanilla/UiEditorTableToolbar.js +121 -70
  228. package/vanilla/UiEditorToolbar.d.ts +1 -1
  229. package/vanilla/UiEditorToolbar.js +20 -12
  230. package/vanilla/UiFileInput.d.ts +1 -1
  231. package/vanilla/UiFileInput.js +94 -80
  232. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  233. package/vanilla/UiFloatingActionButton.js +21 -20
  234. package/vanilla/UiFormField.d.ts +1 -1
  235. package/vanilla/UiFormField.js +21 -19
  236. package/vanilla/UiGrid.d.ts +1 -1
  237. package/vanilla/UiGrid.js +26 -23
  238. package/vanilla/UiIcon.d.ts +1 -1
  239. package/vanilla/UiIcon.js +20 -15
  240. package/vanilla/UiIconButton.d.ts +1 -1
  241. package/vanilla/UiIconButton.js +35 -43
  242. package/vanilla/UiImage.d.ts +1 -1
  243. package/vanilla/UiImage.js +16 -14
  244. package/vanilla/UiInput.d.ts +1 -1
  245. package/vanilla/UiInput.js +29 -35
  246. package/vanilla/UiInputGroup.d.ts +1 -1
  247. package/vanilla/UiInputGroup.js +16 -14
  248. package/vanilla/UiLightEditor.d.ts +1 -1
  249. package/vanilla/UiLightEditor.js +29 -27
  250. package/vanilla/UiList.d.ts +1 -1
  251. package/vanilla/UiList.js +33 -27
  252. package/vanilla/UiListItem.d.ts +1 -1
  253. package/vanilla/UiListItem.js +12 -12
  254. package/vanilla/UiListbox.d.ts +1 -1
  255. package/vanilla/UiListbox.js +90 -80
  256. package/vanilla/UiMenu.d.ts +1 -1
  257. package/vanilla/UiMenu.js +20 -12
  258. package/vanilla/UiMenuGroup.d.ts +1 -1
  259. package/vanilla/UiMenuGroup.js +14 -11
  260. package/vanilla/UiMenuItem.d.ts +1 -1
  261. package/vanilla/UiMenuItem.js +74 -75
  262. package/vanilla/UiMeter.d.ts +1 -1
  263. package/vanilla/UiMeter.js +67 -62
  264. package/vanilla/UiNavItem.d.ts +1 -1
  265. package/vanilla/UiNavItem.js +63 -65
  266. package/vanilla/UiNoticeStripe.d.ts +1 -1
  267. package/vanilla/UiNoticeStripe.js +16 -16
  268. package/vanilla/UiNumberInput.d.ts +1 -1
  269. package/vanilla/UiNumberInput.js +41 -38
  270. package/vanilla/UiPageHeader.d.ts +1 -1
  271. package/vanilla/UiPageHeader.js +17 -15
  272. package/vanilla/UiPagination.d.ts +1 -1
  273. package/vanilla/UiPagination.js +53 -44
  274. package/vanilla/UiPopover.d.ts +1 -1
  275. package/vanilla/UiPopover.js +13 -11
  276. package/vanilla/UiRadio.d.ts +1 -1
  277. package/vanilla/UiRadio.js +25 -23
  278. package/vanilla/UiRadioGroup.d.ts +1 -1
  279. package/vanilla/UiRadioGroup.js +33 -36
  280. package/vanilla/UiReel.d.ts +1 -1
  281. package/vanilla/UiReel.js +20 -12
  282. package/vanilla/UiScrollArea.d.ts +1 -1
  283. package/vanilla/UiScrollArea.js +13 -11
  284. package/vanilla/UiSearchResultRow.d.ts +1 -1
  285. package/vanilla/UiSearchResultRow.js +21 -20
  286. package/vanilla/UiSearchShell.d.ts +1 -1
  287. package/vanilla/UiSearchShell.js +16 -14
  288. package/vanilla/UiSection.d.ts +1 -1
  289. package/vanilla/UiSection.js +48 -45
  290. package/vanilla/UiSegmentedControl.d.ts +2 -2
  291. package/vanilla/UiSegmentedControl.js +52 -47
  292. package/vanilla/UiSelect.d.ts +1 -1
  293. package/vanilla/UiSelect.js +17 -21
  294. package/vanilla/UiSeparator.d.ts +1 -1
  295. package/vanilla/UiSeparator.js +12 -12
  296. package/vanilla/UiSidebar.d.ts +1 -1
  297. package/vanilla/UiSidebar.js +17 -15
  298. package/vanilla/UiSiteHeader.d.ts +1 -1
  299. package/vanilla/UiSiteHeader.js +25 -23
  300. package/vanilla/UiSkeleton.d.ts +1 -1
  301. package/vanilla/UiSkeleton.js +21 -20
  302. package/vanilla/UiSlider.d.ts +1 -1
  303. package/vanilla/UiSlider.js +50 -47
  304. package/vanilla/UiSpinner.d.ts +1 -1
  305. package/vanilla/UiSpinner.js +34 -27
  306. package/vanilla/UiStack.d.ts +1 -1
  307. package/vanilla/UiStack.js +12 -12
  308. package/vanilla/UiStatusMessage.d.ts +1 -1
  309. package/vanilla/UiStatusMessage.js +22 -21
  310. package/vanilla/UiSwatch.d.ts +1 -1
  311. package/vanilla/UiSwatch.js +20 -17
  312. package/vanilla/UiSwitch.d.ts +1 -1
  313. package/vanilla/UiSwitch.js +25 -23
  314. package/vanilla/UiSwitcher.d.ts +1 -1
  315. package/vanilla/UiSwitcher.js +13 -11
  316. package/vanilla/UiTable.d.ts +1 -1
  317. package/vanilla/UiTable.js +13 -11
  318. package/vanilla/UiTabs.d.ts +1 -1
  319. package/vanilla/UiTabs.js +39 -28
  320. package/vanilla/UiText.d.ts +1 -1
  321. package/vanilla/UiText.js +128 -125
  322. package/vanilla/UiTextarea.d.ts +1 -1
  323. package/vanilla/UiTextarea.js +27 -39
  324. package/vanilla/UiTimeField.d.ts +1 -1
  325. package/vanilla/UiTimeField.js +42 -40
  326. package/vanilla/UiTimePicker.d.ts +1 -1
  327. package/vanilla/UiTimePicker.js +105 -102
  328. package/vanilla/UiToast.d.ts +1 -1
  329. package/vanilla/UiToast.js +14 -14
  330. package/vanilla/UiToastRegion.d.ts +1 -1
  331. package/vanilla/UiToastRegion.js +61 -31
  332. package/vanilla/UiTooltip.d.ts +1 -1
  333. package/vanilla/UiTooltip.js +17 -14
  334. package/vanilla/UiTopBar.d.ts +1 -1
  335. package/vanilla/UiTopBar.js +24 -22
  336. package/vanilla/UiTree.d.ts +1 -1
  337. package/vanilla/UiTree.js +17 -12
  338. package/vanilla/UiTreeItem.d.ts +1 -1
  339. package/vanilla/UiTreeItem.js +73 -79
  340. package/vanilla/UiWizard.d.ts +1 -1
  341. package/vanilla/UiWizard.js +61 -40
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, 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, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-time-field/ui-time-field.js";
4
4
  import "../styles/ui-time-field.css";
5
5
 
@@ -10,101 +10,103 @@ const D = { g: "ui-time-field", props: { "disabled": { "required":false,"default
10
10
  const C = (host) => activateModule(controller, host);
11
11
 
12
12
  export function createUiTimeField(options = {}, html) {
13
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
13
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
14
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["disabled","form","granularity","hour-cycle","input-id","invalid","label","locale","max","min","name","placeholder","readonly","required","size","value"].includes(name)));
14
15
  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
16
  element.setAttribute("component", "ui-time-field");
20
17
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
21
18
  const v = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
22
19
  const B = acceptProps(element, D, S.n, v, componentProps, [], html);
23
20
  const p0 = (r, c, d) => {
21
+ if (c === -1) {
22
+ resetForwardedAttributes(r.n, attributes, r.v0);
23
+ r.v0 = forwardAttributes(r.n, attributes);
24
+ }
24
25
  if (c & 32768) {
25
26
  const x0 = v[15];
26
- const s0 = toAttribute(x0, "value");
27
- if (s0 !== r.v0) writeAttribute(r.a0, "value", r.v0 = s0);
27
+ const s1 = toAttribute(x0, "value");
28
+ if (s1 !== r.v1) writeAttribute(r.a1, "value", r.v1 = s1);
28
29
  }
29
30
  if (c & 128) {
30
31
  const x1 = v[7];
31
- const s1 = toAttribute(x1, "locale");
32
- if (s1 !== r.v1) writeAttribute(r.a0, "locale", r.v1 = s1);
32
+ const s2 = toAttribute(x1, "locale");
33
+ if (s2 !== r.v2) writeAttribute(r.a1, "locale", r.v2 = s2);
33
34
  }
34
35
  if (c & 1073741832) {
35
36
  const x2 = v[3];
36
- const s2 = toAttribute(x2, "hour-cycle");
37
- if (s2 !== r.v2) writeAttribute(r.a0, "hour-cycle", r.v2 = s2);
37
+ const s3 = toAttribute(x2, "hour-cycle");
38
+ if (s3 !== r.v3) writeAttribute(r.a1, "hour-cycle", r.v3 = s3);
38
39
  }
39
40
  if (c & 1073741828) {
40
41
  const x3 = v[2];
41
- const s3 = toAttribute(x3, "granularity");
42
- if (s3 !== r.v3) writeAttribute(r.a0, "granularity", r.v3 = s3);
42
+ const s4 = toAttribute(x3, "granularity");
43
+ if (s4 !== r.v4) writeAttribute(r.a1, "granularity", r.v4 = s4);
43
44
  }
44
45
  if (c & 512) {
45
46
  const x4 = v[9];
46
- const s4 = toAttribute(x4, "min");
47
- if (s4 !== r.v4) writeAttribute(r.a0, "min", r.v4 = s4);
47
+ const s5 = toAttribute(x4, "min");
48
+ if (s5 !== r.v5) writeAttribute(r.a1, "min", r.v5 = s5);
48
49
  }
49
50
  if (c & 256) {
50
51
  const x5 = v[8];
51
- const s5 = toAttribute(x5, "max");
52
- if (s5 !== r.v5) writeAttribute(r.a0, "max", r.v5 = s5);
52
+ const s6 = toAttribute(x5, "max");
53
+ if (s6 !== r.v6) writeAttribute(r.a1, "max", r.v6 = s6);
53
54
  }
54
55
  if (c & 1024) {
55
56
  const x6 = v[10];
56
- const s6 = toAttribute(x6, "name");
57
- if (s6 !== r.v6) writeAttribute(r.a0, "name", r.v6 = s6);
57
+ const s7 = toAttribute(x6, "name");
58
+ if (s7 !== r.v7) writeAttribute(r.a1, "name", r.v7 = s7);
58
59
  }
59
60
  if (c & 2) {
60
61
  const x7 = v[1];
61
- const s7 = toAttribute(x7, "form");
62
- if (s7 !== r.v7) writeAttribute(r.a0, "form", r.v7 = s7);
62
+ const s8 = toAttribute(x7, "form");
63
+ if (s8 !== r.v8) writeAttribute(r.a1, "form", r.v8 = s8);
63
64
  }
64
65
  if (c & 16) {
65
66
  const x8 = v[4];
66
- const s8 = toAttribute(x8, "input-id");
67
- if (s8 !== r.v8) writeAttribute(r.a0, "input-id", r.v8 = s8);
67
+ const s9 = toAttribute(x8, "input-id");
68
+ if (s9 !== r.v9) writeAttribute(r.a1, "input-id", r.v9 = s9);
68
69
  }
69
70
  if (c & 64) {
70
71
  const x9 = v[6];
71
- const s9 = toAttribute(x9, "label");
72
- if (s9 !== r.v9) writeAttribute(r.a0, "label", r.v9 = s9);
72
+ const s10 = toAttribute(x9, "label");
73
+ if (s10 !== r.v10) writeAttribute(r.a1, "label", r.v10 = s10);
73
74
  }
74
75
  if (c & 1073758208) {
75
76
  const x10 = v[14];
76
- const s10 = toAttribute(x10, "size");
77
- if (s10 !== r.v10) writeAttribute(r.a0, "size", r.v10 = s10);
77
+ const s11 = toAttribute(x10, "size");
78
+ if (s11 !== r.v11) writeAttribute(r.a1, "size", r.v11 = s11);
78
79
  }
79
80
  if (c & 2048) {
80
81
  const x11 = v[11];
81
- const s11 = toAttribute(x11, "placeholder");
82
- if (s11 !== r.v11) writeAttribute(r.a0, "placeholder", r.v11 = s11);
82
+ const s12 = toAttribute(x11, "placeholder");
83
+ if (s12 !== r.v12) writeAttribute(r.a1, "placeholder", r.v12 = s12);
83
84
  }
84
85
  if (c & 1) {
85
86
  const x12 = v[0];
86
- const s12 = toAttribute(x12, "disabled");
87
- if (s12 !== r.v12) writeAttribute(r.a0, "disabled", r.v12 = s12);
87
+ const s13 = toAttribute(x12, "disabled");
88
+ if (s13 !== r.v13) writeAttribute(r.a1, "disabled", r.v13 = s13);
88
89
  }
89
90
  if (c & 4096) {
90
91
  const x13 = v[12];
91
- const s13 = toAttribute(x13, "readonly");
92
- if (s13 !== r.v13) writeAttribute(r.a0, "readonly", r.v13 = s13);
92
+ const s14 = toAttribute(x13, "readonly");
93
+ if (s14 !== r.v14) writeAttribute(r.a1, "readonly", r.v14 = s14);
93
94
  }
94
95
  if (c & 8192) {
95
96
  const x14 = v[13];
96
- const s14 = toAttribute(x14, "required");
97
- if (s14 !== r.v14) writeAttribute(r.a0, "required", r.v14 = s14);
97
+ const s15 = toAttribute(x14, "required");
98
+ if (s15 !== r.v15) writeAttribute(r.a1, "required", r.v15 = s15);
98
99
  }
99
100
  if (c & 32) {
100
101
  const x15 = v[5];
101
- const s15 = toAttribute(x15, "invalid");
102
- if (s15 !== r.v15) writeAttribute(r.a0, "invalid", r.v15 = s15);
102
+ const s16 = toAttribute(x15, "invalid");
103
+ if (s16 !== r.v16) writeAttribute(r.a1, "invalid", r.v16 = s16);
103
104
  }
104
105
  };
105
106
  const t0 = element.firstChild;
106
- const R = { a0: t0, 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 };
107
+ const R = { n: element, a1: t0, 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 };
107
108
  const I = { B };
109
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
108
110
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
109
111
  manageProps(I);
110
112
  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 UiTimePickerEventMap {
3
3
  input: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  change: CustomEvent<{ 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, stateInitializers, binaryValue, buildTemplate, checkReference, formatCall, NONCONFORMING, readIndex, recordValue, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, computedCycle, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, RangedIndexedList, readonlyView, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, defineComponent, activateModule, multiply } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, checkedReferenceValue, equalValue, stateInitializers, binaryValue, buildTemplate, formatCall, NONCONFORMING, readIndex, recordValue, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, computedCycle, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, RangedIndexedList, readonlyView, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule, multiply } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-time-picker/ui-time-picker.js";
4
4
  import "../styles/ui-time-picker.css";
5
5
 
@@ -7,6 +7,7 @@ const T0 = ["",[],"\n ",["ui-input-group",[],["ui-time-field",["data-time-fie
7
7
  const T1 = ["",[],["option",[],0]];
8
8
  const T2 = ["",[],["option",[],0]];
9
9
  const T3 = ["",[],["option",[],0]];
10
+ const RC0 = ["s", "string"];
10
11
  let P0, P1, P2, P3;
11
12
  const emptyDirty = new Map();
12
13
  const S = { n: ["current","enhanced","anchorId","opened","fieldBlocked","hourFormat","showSeconds","error","hourValues","ticks"], t: ["s","b","s","b","b",["o",["hour","s","timeZone","s","hourCycle","s"]],"b","s","?","?"], f: import.meta.url, g: "ui-time-picker", k: 8, d: { "input": [detailCheck(checkObject([["value", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "change": [detailCheck(checkObject([["value", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "query-change": [detailCheck(checkObject([["query", checkString, false]], false)), true, true, false], "validation-change": [detailCheck(checkObject([["invalid", checkBoolean, false], ["message", checkString, false]], false)), true, true, false], "open": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "close": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs, i: [null, false, "", false, false, { "hour": "numeric", "timeZone": "UTC" }, false, ""] };
@@ -14,12 +15,9 @@ const D = { g: "ui-time-picker", props: { "disabled": { "required":false,"defaul
14
15
  const C = (host) => activateModule(controller, host);
15
16
 
16
17
  export function createUiTimePicker(options = {}, html) {
17
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
18
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
19
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["disabled","form","granularity","hour-cycle","hour-label","input-id","invalid","label","locale","max","min","minute-label","name","picker-label","placeholder","readonly","required","second-label","size","value"].includes(name)));
18
20
  const element = document.createElement("span");
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
21
  element.setAttribute("component", "ui-time-picker");
24
22
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
25
23
  const v = [null, false, "", false, false, { "hour": "numeric", "timeZone": "UTC" }, false, "", undefined, undefined, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
@@ -41,7 +39,7 @@ export function createUiTimePicker(options = {}, html) {
41
39
  if (!Object.is(previous, next)) { v[j] = next; X.n?.(j, previous, next); }
42
40
  return next;
43
41
  };
44
- const E = stateInitializers(S, v, X, { 0: () => inputRead(v[29], inputStatus(29)) });
42
+ const E = stateInitializers(S, v, X, { 0: () => (inputRead(v[29], inputStatus(29))) });
45
43
  const m1 = (o, j, l) => {
46
44
  const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
47
45
  const t0 = n.firstChild;
@@ -127,210 +125,214 @@ export function createUiTimePicker(options = {}, html) {
127
125
  }
128
126
  };
129
127
  const p0 = (r, c, d) => {
128
+ if (c === -1) {
129
+ resetForwardedAttributes(r.n, attributes, r.v0);
130
+ r.v0 = forwardAttributes(r.n, attributes);
131
+ }
130
132
  if (c & 1024) {
131
133
  const x0 = v[10];
132
- const s0 = toAttribute(x0, "disabled");
133
- if (s0 !== r.v0) writeAttribute(r.a0, "disabled", r.v0 = s0);
134
+ const s1 = toAttribute(x0, "disabled");
135
+ if (s1 !== r.v1) writeAttribute(r.a1, "disabled", r.v1 = s1);
134
136
  }
135
137
  if (c & 1) {
136
- const x1 = (checkReference(S, v[0], "s", "expression:$current:current", "Reference `current` must satisfy string.") ? E.read(0) : NONCONFORMING);
138
+ const x1 = checkedReferenceValue(S, E.read(0), RC0, "expression:$current:current", "current");
137
139
  if (x1 !== NONCONFORMING) {
138
- const s1 = toAttribute(x1, "value");
139
- if (s1 !== r.v1) writeAttribute(r.a1, "value", r.v1 = s1);
140
+ const s2 = toAttribute(x1, "value");
141
+ if (s2 !== r.v2) writeAttribute(r.a2, "value", r.v2 = s2);
140
142
  }
141
143
  }
142
144
  if (c & 262144) {
143
145
  const x2 = v[18];
144
- const s2 = toAttribute(x2, "locale");
145
- if (s2 !== r.v2) writeAttribute(r.a1, "locale", r.v2 = s2);
146
+ const s3 = toAttribute(x2, "locale");
147
+ if (s3 !== r.v3) writeAttribute(r.a2, "locale", r.v3 = s3);
146
148
  }
147
149
  if (c & 1073750016) {
148
150
  const x3 = v[13];
149
- const s3 = toAttribute(x3, "hour-cycle");
150
- if (s3 !== r.v3) writeAttribute(r.a1, "hour-cycle", r.v3 = s3);
151
+ const s4 = toAttribute(x3, "hour-cycle");
152
+ if (s4 !== r.v4) writeAttribute(r.a2, "hour-cycle", r.v4 = s4);
151
153
  }
152
154
  if (c & 1073745920) {
153
155
  const x4 = v[12];
154
- const s4 = toAttribute(x4, "granularity");
155
- if (s4 !== r.v4) writeAttribute(r.a1, "granularity", r.v4 = s4);
156
+ const s5 = toAttribute(x4, "granularity");
157
+ if (s5 !== r.v5) writeAttribute(r.a2, "granularity", r.v5 = s5);
156
158
  }
157
159
  if (c & 1048576) {
158
160
  const x5 = v[20];
159
- const s5 = toAttribute(x5, "min");
160
- if (s5 !== r.v5) writeAttribute(r.a1, "min", r.v5 = s5);
161
+ const s6 = toAttribute(x5, "min");
162
+ if (s6 !== r.v6) writeAttribute(r.a2, "min", r.v6 = s6);
161
163
  }
162
164
  if (c & 524288) {
163
165
  const x6 = v[19];
164
- const s6 = toAttribute(x6, "max");
165
- if (s6 !== r.v6) writeAttribute(r.a1, "max", r.v6 = s6);
166
+ const s7 = toAttribute(x6, "max");
167
+ if (s7 !== r.v7) writeAttribute(r.a2, "max", r.v7 = s7);
166
168
  }
167
169
  if (c & 4194304) {
168
170
  const x7 = v[22];
169
- const s7 = toAttribute(x7, "name");
170
- if (s7 !== r.v7) writeAttribute(r.a1, "name", r.v7 = s7);
171
+ const s8 = toAttribute(x7, "name");
172
+ if (s8 !== r.v8) writeAttribute(r.a2, "name", r.v8 = s8);
171
173
  }
172
174
  if (c & 2048) {
173
175
  const x8 = v[11];
174
- const s8 = toAttribute(x8, "form");
175
- if (s8 !== r.v8) writeAttribute(r.a1, "form", r.v8 = s8);
176
+ const s9 = toAttribute(x8, "form");
177
+ if (s9 !== r.v9) writeAttribute(r.a2, "form", r.v9 = s9);
176
178
  }
177
179
  if (c & 32768) {
178
180
  const x9 = v[15];
179
- const s9 = toAttribute(x9, "input-id");
180
- if (s9 !== r.v9) writeAttribute(r.a1, "input-id", r.v9 = s9);
181
+ const s10 = toAttribute(x9, "input-id");
182
+ if (s10 !== r.v10) writeAttribute(r.a2, "input-id", r.v10 = s10);
181
183
  }
182
184
  if (c & 131072) {
183
185
  const x10 = v[17];
184
- const s10 = toAttribute(x10, "label");
185
- if (s10 !== r.v10) writeAttribute(r.a1, "label", r.v10 = s10);
186
+ const s11 = toAttribute(x10, "label");
187
+ if (s11 !== r.v11) writeAttribute(r.a2, "label", r.v11 = s11);
186
188
  }
187
189
  if (c & 1342177280) {
188
190
  const x11 = v[28];
189
- const s11 = toAttribute(x11, "size");
190
- if (s11 !== r.v11) writeAttribute(r.a1, "size", r.v11 = s11);
191
+ const s12 = toAttribute(x11, "size");
192
+ if (s12 !== r.v12) writeAttribute(r.a2, "size", r.v12 = s12);
191
193
  }
192
194
  if (c & 16777216) {
193
195
  const x12 = v[24];
194
- const s12 = toAttribute(x12, "placeholder");
195
- if (s12 !== r.v12) writeAttribute(r.a1, "placeholder", r.v12 = s12);
196
+ const s13 = toAttribute(x12, "placeholder");
197
+ if (s13 !== r.v13) writeAttribute(r.a2, "placeholder", r.v13 = s13);
196
198
  }
197
199
  if (c & 1024) {
198
200
  const x13 = v[10];
199
- const s13 = toAttribute(x13, "disabled");
200
- if (s13 !== r.v13) writeAttribute(r.a1, "disabled", r.v13 = s13);
201
+ const s14 = toAttribute(x13, "disabled");
202
+ if (s14 !== r.v14) writeAttribute(r.a2, "disabled", r.v14 = s14);
201
203
  }
202
204
  if (c & 33554432) {
203
205
  const x14 = v[25];
204
- const s14 = toAttribute(x14, "readonly");
205
- if (s14 !== r.v14) writeAttribute(r.a1, "readonly", r.v14 = s14);
206
+ const s15 = toAttribute(x14, "readonly");
207
+ if (s15 !== r.v15) writeAttribute(r.a2, "readonly", r.v15 = s15);
206
208
  }
207
209
  if (c & 67108864) {
208
210
  const x15 = v[26];
209
- const s15 = toAttribute(x15, "required");
210
- if (s15 !== r.v15) writeAttribute(r.a1, "required", r.v15 = s15);
211
+ const s16 = toAttribute(x15, "required");
212
+ if (s16 !== r.v16) writeAttribute(r.a2, "required", r.v16 = s16);
211
213
  }
212
214
  if (c & 65536) {
213
215
  const x16 = v[16];
214
- const s16 = toAttribute(x16, "invalid");
215
- if (s16 !== r.v16) writeAttribute(r.a1, "invalid", r.v16 = s16);
216
+ const s17 = toAttribute(x16, "invalid");
217
+ if (s17 !== r.v17) writeAttribute(r.a2, "invalid", r.v17 = s17);
216
218
  }
217
219
  if (c & 4) {
218
220
  const x17 = v[2];
219
- const s17 = toAttribute(x17, "id");
220
- if (s17 !== r.v17) writeAttribute(r.a2, "id", r.v17 = s17);
221
- const s22 = toAttribute(x17, "for");
222
- if (s22 !== r.v22) writeAttribute(r.a3, "for", r.v22 = s22);
221
+ const s18 = toAttribute(x17, "id");
222
+ if (s18 !== r.v18) writeAttribute(r.a3, "id", r.v18 = s18);
223
+ const s23 = toAttribute(x17, "for");
224
+ if (s23 !== r.v23) writeAttribute(r.a4, "for", r.v23 = s23);
223
225
  }
224
226
  if (c & 2) {
225
227
  const x18 = !v[1];
226
- const s18 = toAttribute(x18, "hidden");
227
- if (s18 !== r.v18) writeAttribute(r.a2, "hidden", r.v18 = s18);
228
+ const s19 = toAttribute(x18, "hidden");
229
+ if (s19 !== r.v19) writeAttribute(r.a3, "hidden", r.v19 = s19);
228
230
  const x19 = hostState(["enhanced"], [v[1]]);
229
- const s43 = x19;
230
- if (s43 !== r.v43) writeAttribute(r.n, "data-ui-time-picker-state", (r.v43 = s43) === "" ? null : s43);
231
+ const s44 = x19;
232
+ if (s44 !== r.v44) writeAttribute(r.n, "data-ui-time-picker-state", (r.v44 = s44) === "" ? null : s44);
231
233
  }
232
234
  if (c & 1342177280) {
233
235
  const x20 = v[28];
234
- const s19 = toAttribute(x20, "size");
235
- if (s19 !== r.v19) writeAttribute(r.a2, "size", r.v19 = s19);
236
+ const s20 = toAttribute(x20, "size");
237
+ if (s20 !== r.v20) writeAttribute(r.a3, "size", r.v20 = s20);
236
238
  }
237
239
  if (c & 8388608) {
238
240
  const x21 = v[23];
239
- const s20 = toAttribute(x21, "label");
240
- if (s20 !== r.v20) writeAttribute(r.a2, "label", r.v20 = s20);
241
+ const s21 = toAttribute(x21, "label");
242
+ if (s21 !== r.v21) writeAttribute(r.a3, "label", r.v21 = s21);
241
243
  }
242
244
  if (c & 33555472) {
243
245
  const x22 = ((truthy(v[10]) || truthy(v[25])) || v[4]);
244
- const s21 = toAttribute(x22, "disabled");
245
- if (s21 !== r.v21) writeAttribute(r.a2, "disabled", r.v21 = s21);
246
+ const s22 = toAttribute(x22, "disabled");
247
+ if (s22 !== r.v22) writeAttribute(r.a3, "disabled", r.v22 = s22);
246
248
  }
247
249
  if (c & 8) {
248
250
  const x23 = v[3];
249
- const s23 = toAttribute(x23, "open");
250
- if (s23 !== r.v23) writeAttribute(r.a3, "open", r.v23 = s23);
251
+ const s24 = toAttribute(x23, "open");
252
+ if (s24 !== r.v24) writeAttribute(r.a4, "open", r.v24 = s24);
251
253
  }
252
254
  if (c & 8388608) {
253
255
  const x24 = v[23];
254
- const s24 = toAttribute(x24, "aria-label");
255
- if (s24 !== r.v24) writeAttribute(r.a3, "aria-label", r.v24 = s24);
256
+ const s25 = toAttribute(x24, "aria-label");
257
+ if (s25 !== r.v25) writeAttribute(r.a4, "aria-label", r.v25 = s25);
256
258
  }
257
259
  if (c & 1073741828) {
258
- const x25 = readIndex(recordValue(["true","false"], [textCall("concat", [v[2], "-hour"]), null]), textCall("concat", [(v[2] !== "")]));
260
+ const x25 = readIndex(recordValue(["true","false"], [textCall("concat", [v[2], "-hour"]), null]), textCall("concat", [equalValue(v[2], "", true)]));
259
261
  if (x25 !== NONCONFORMING) {
260
- const s25 = toAttribute(x25, "for");
261
- if (s25 !== r.v25) writeAttribute(r.a4, "for", r.v25 = s25);
262
+ const s26 = toAttribute(x25, "for");
263
+ if (s26 !== r.v26) writeAttribute(r.a5, "for", r.v26 = s26);
262
264
  }
263
265
  if (x25 !== NONCONFORMING) {
264
- const s27 = toAttribute(x25, "id");
265
- if (s27 !== r.v27) writeAttribute(r.a6, "id", r.v27 = s27);
266
+ const s28 = toAttribute(x25, "id");
267
+ if (s28 !== r.v28) writeAttribute(r.a7, "id", r.v28 = s28);
266
268
  }
267
- const x26 = readIndex(recordValue(["true","false"], [textCall("concat", [v[2], "-minute"]), null]), textCall("concat", [(v[2] !== "")]));
269
+ const x26 = readIndex(recordValue(["true","false"], [textCall("concat", [v[2], "-minute"]), null]), textCall("concat", [equalValue(v[2], "", true)]));
268
270
  if (x26 !== NONCONFORMING) {
269
- const s30 = toAttribute(x26, "for");
270
- if (s30 !== r.v30) writeAttribute(r.a8, "for", r.v30 = s30);
271
+ const s31 = toAttribute(x26, "for");
272
+ if (s31 !== r.v31) writeAttribute(r.a9, "for", r.v31 = s31);
271
273
  }
272
274
  if (x26 !== NONCONFORMING) {
273
- const s32 = toAttribute(x26, "id");
274
- if (s32 !== r.v32) writeAttribute(r.a10, "id", r.v32 = s32);
275
+ const s33 = toAttribute(x26, "id");
276
+ if (s33 !== r.v33) writeAttribute(r.a11, "id", r.v33 = s33);
275
277
  }
276
- const x27 = readIndex(recordValue(["true","false"], [textCall("concat", [v[2], "-second"]), null]), textCall("concat", [(v[2] !== "")]));
278
+ const x27 = readIndex(recordValue(["true","false"], [textCall("concat", [v[2], "-second"]), null]), textCall("concat", [equalValue(v[2], "", true)]));
277
279
  if (x27 !== NONCONFORMING) {
278
- const s36 = toAttribute(x27, "for");
279
- if (s36 !== r.v36) writeAttribute(r.a13, "for", r.v36 = s36);
280
+ const s37 = toAttribute(x27, "for");
281
+ if (s37 !== r.v37) writeAttribute(r.a14, "for", r.v37 = s37);
280
282
  }
281
283
  if (x27 !== NONCONFORMING) {
282
- const s38 = toAttribute(x27, "id");
283
- if (s38 !== r.v38) writeAttribute(r.a15, "id", r.v38 = s38);
284
+ const s39 = toAttribute(x27, "id");
285
+ if (s39 !== r.v39) writeAttribute(r.a16, "id", r.v39 = s39);
284
286
  }
285
287
  }
286
288
  if (c & 16384) {
287
289
  const x28 = v[14];
288
- const s26 = toText(x28);
289
- if (s26 !== r.v26) r.a5.data = r.v26 = s26;
290
- const s28 = toAttribute(x28, "aria-label");
291
- if (s28 !== r.v28) writeAttribute(r.a6, "aria-label", r.v28 = s28);
290
+ const s27 = toText(x28);
291
+ if (s27 !== r.v27) r.a6.data = r.v27 = s27;
292
+ const s29 = toAttribute(x28, "aria-label");
293
+ if (s29 !== r.v29) writeAttribute(r.a7, "aria-label", r.v29 = s29);
292
294
  }
293
295
  if (c & 8) {
294
296
  const x29 = !v[3];
295
- const s29 = toAttribute(x29, "disabled");
296
- if (s29 !== r.v29) writeAttribute(r.a6, "disabled", r.v29 = s29);
297
+ const s30 = toAttribute(x29, "disabled");
298
+ if (s30 !== r.v30) writeAttribute(r.a7, "disabled", r.v30 = s30);
297
299
  }
298
300
  if (c & 2097152) {
299
301
  const x30 = v[21];
300
- const s31 = toText(x30);
301
- if (s31 !== r.v31) r.a9.data = r.v31 = s31;
302
- const s33 = toAttribute(x30, "aria-label");
303
- if (s33 !== r.v33) writeAttribute(r.a10, "aria-label", r.v33 = s33);
302
+ const s32 = toText(x30);
303
+ if (s32 !== r.v32) r.a10.data = r.v32 = s32;
304
+ const s34 = toAttribute(x30, "aria-label");
305
+ if (s34 !== r.v34) writeAttribute(r.a11, "aria-label", r.v34 = s34);
304
306
  }
305
307
  if (c & 8) {
306
308
  const x31 = !v[3];
307
- const s34 = toAttribute(x31, "disabled");
308
- if (s34 !== r.v34) writeAttribute(r.a10, "disabled", r.v34 = s34);
309
+ const s35 = toAttribute(x31, "disabled");
310
+ if (s35 !== r.v35) writeAttribute(r.a11, "disabled", r.v35 = s35);
309
311
  }
310
312
  if (c & 64) {
311
313
  const x32 = !v[6];
312
- const s35 = toAttribute(x32, "hidden");
313
- if (s35 !== r.v35) writeAttribute(r.a12, "hidden", r.v35 = s35);
314
+ const s36 = toAttribute(x32, "hidden");
315
+ if (s36 !== r.v36) writeAttribute(r.a13, "hidden", r.v36 = s36);
314
316
  }
315
317
  if (c & 134217728) {
316
318
  const x33 = v[27];
317
- const s37 = toText(x33);
318
- if (s37 !== r.v37) r.a14.data = r.v37 = s37;
319
- const s39 = toAttribute(x33, "aria-label");
320
- if (s39 !== r.v39) writeAttribute(r.a15, "aria-label", r.v39 = s39);
319
+ const s38 = toText(x33);
320
+ if (s38 !== r.v38) r.a15.data = r.v38 = s38;
321
+ const s40 = toAttribute(x33, "aria-label");
322
+ if (s40 !== r.v40) writeAttribute(r.a16, "aria-label", r.v40 = s40);
321
323
  }
322
324
  if (c & 72) {
323
325
  const x34 = (!v[3] || !v[6]);
324
- const s40 = toAttribute(x34, "disabled");
325
- if (s40 !== r.v40) writeAttribute(r.a15, "disabled", r.v40 = s40);
326
+ const s41 = toAttribute(x34, "disabled");
327
+ if (s41 !== r.v41) writeAttribute(r.a16, "disabled", r.v41 = s41);
326
328
  }
327
329
  if (c & 128) {
328
- const x35 = (v[7] === "");
329
- const s41 = toAttribute(x35, "hidden");
330
- if (s41 !== r.v41) writeAttribute(r.a17, "hidden", r.v41 = s41);
330
+ const x35 = equalValue(v[7], "");
331
+ const s42 = toAttribute(x35, "hidden");
332
+ if (s42 !== r.v42) writeAttribute(r.a18, "hidden", r.v42 = s42);
331
333
  const x36 = v[7];
332
- const s42 = toText(x36);
333
- if (s42 !== r.v42) r.a18.data = r.v42 = s42;
334
+ const s43 = toText(x36);
335
+ if (s43 !== r.v43) r.a19.data = r.v43 = s43;
334
336
  }
335
337
  if (c & 1073741824) r.L0.update(g(8), d, c);
336
338
  if (c !== -1 && c & 1074004000) r.L0.each(c, d);
@@ -362,9 +364,10 @@ export function createUiTimePicker(options = {}, html) {
362
364
  const t20 = t19.firstChild;
363
365
  const t21 = t5.nextSibling.nextSibling;
364
366
  const t22 = t21.firstChild;
365
- const R = { n: element, a0: t0, a1: t1, a2: t2, a3: t3, a4: t7, a5: t8, a6: t9, a8: t12, a9: t13, a10: t14, a12: t16, a13: t17, a14: t18, a15: t19, a17: t21, a18: t22, 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: null, v18: null, v19: null, v20: null, v21: null, v22: null, v23: null, v24: null, v25: null, v26: "", v27: null, v28: null, v29: null, v30: null, v31: "", v32: null, v33: null, v34: null, v35: null, v36: null, v37: "", v38: null, v39: null, v40: null, v41: null, v42: "", v43: undefined, L0: new RangedIndexedList(t10, t10.nextSibling, m1, p1, undefined, "hour"), L1: new RangedIndexedList(t15, t15.nextSibling, m2, p2, undefined, "tick"), L2: new RangedIndexedList(t20, t20.nextSibling, m3, p3, undefined, "tick") };
367
+ const R = { n: element, a1: t0, a2: t1, a3: t2, a4: t3, a5: t7, a6: t8, a7: t9, a9: t12, a10: t13, a11: t14, a13: t16, a14: t17, a15: t18, a16: t19, a18: t21, a19: t22, 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: null, v19: null, v20: null, v21: null, v22: null, v23: null, v24: null, v25: null, v26: null, v27: "", v28: null, v29: null, v30: null, v31: null, v32: "", v33: null, v34: null, v35: null, v36: null, v37: null, v38: "", v39: null, v40: null, v41: null, v42: null, v43: "", v44: undefined, L0: new RangedIndexedList(t10, t10.nextSibling, m1, p1, undefined, "hour"), L1: new RangedIndexedList(t15, t15.nextSibling, m2, p2, undefined, "tick"), L2: new RangedIndexedList(t20, t20.nextSibling, m3, p3, undefined, "tick") };
366
368
  const I = { B, U: E };
367
369
  I.R = new Set();
370
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
368
371
  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);
369
372
  manageProps(I);
370
373
  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 UiToastEventMap {
3
3
  dismiss: CustomEvent<{ readonly id: string; readonly reason: "action" | "timeout"; 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, readIndex, toAttribute, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, 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, readIndex, toAttribute, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkConstrained, checkFormat, checkNumber, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-toast/ui-toast.js";
4
4
  import "../styles/ui-toast.css";
5
5
 
@@ -12,12 +12,9 @@ const D = { g: "ui-toast", props: { "duration": { "required":false,"default":0,
12
12
  const C = (host) => activateModule(controller, host);
13
13
 
14
14
  export function createUiToast(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]) => !["duration","tone"].includes(name)));
16
17
  const element = document.createElement("div");
17
- for (const [name, value] of Object.entries(attributes)) {
18
- if (value === null || value === undefined || value === false) continue;
19
- element.setAttribute(name, value === true ? "" : String(value));
20
- }
21
18
  element.setAttribute("component", "ui-toast");
22
19
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
23
20
  const v = [null, null];
@@ -40,19 +37,21 @@ export function createUiToast(options = {}, html) {
40
37
  };
41
38
  const p0 = (r, c, d) => {
42
39
  if (c & 1073741826) {
40
+ resetForwardedAttributes(r.n, attributes, r.v0);
41
+ r.v0 = forwardAttributes(r.n, attributes);
43
42
  const x0 = readIndex({ "neutral": "status", "info": "status", "success": "status", "warning": "status", "danger": "alert" }, v[1]);
44
- const s0 = toAttribute(x0, "role");
45
- if (s0 !== r.v0) writeAttribute(r.n, "role", r.v0 = s0);
43
+ const s1 = toAttribute(x0, "role");
44
+ writeAttribute(r.n, "role", r.v1 = s1);
46
45
  }
47
46
  if (c === -1) {
48
47
  const x1 = true;
49
- const s1 = toAttribute(x1, "round");
50
- if (s1 !== r.v1) writeAttribute(r.a4, "round", r.v1 = s1);
48
+ const s2 = toAttribute(x1, "round");
49
+ if (s2 !== r.v2) writeAttribute(r.a4, "round", r.v2 = s2);
51
50
  }
52
51
  if (c & 2) {
53
52
  const x2 = hostState(["tone"], [v[1]]);
54
- const s2 = x2;
55
- if (s2 !== r.v2) writeAttribute(r.n, "data-ui-toast-state", (r.v2 = s2) === "" ? null : s2);
53
+ const s3 = x2;
54
+ if (s3 !== r.v3) writeAttribute(r.n, "data-ui-toast-state", (r.v3 = s3) === "" ? null : s3);
56
55
  }
57
56
  if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
58
57
  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); } }
@@ -66,9 +65,10 @@ export function createUiToast(options = {}, html) {
66
65
  const t2 = t0.nextSibling.nextSibling;
67
66
  const t3 = t2.firstChild;
68
67
  const t4 = t2.nextSibling.nextSibling;
69
- const R = { n: element, a4: t4, v0: undefined, v1: null, v2: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a3: t3, e1: t3.nextSibling, b1: undefined, f1: undefined };
68
+ const R = { n: element, a4: t4, v0: undefined, v1: undefined, v2: null, v3: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a3: t3, e1: t3.nextSibling, b1: undefined, f1: undefined };
70
69
  const I = { B };
71
70
  const J = project(I, children, slots);
71
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
72
72
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
73
73
  manageProps(I);
74
74
  I.r["action"] = 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 UiToastRegionEventMap {
3
3
  dismiss: CustomEvent<{ readonly id: string; readonly reason: "action" | "timeout"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  "show-toast": CustomEvent<{ readonly message: string; readonly id?: string | null; readonly tone?: "neutral" | "info" | "success" | "warning" | "danger" | null; readonly duration?: number | null }>;