@threadlabs/looma 0.50.2 → 0.51.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 (373) hide show
  1. package/components/shared/binding-inputs.js +5 -0
  2. package/components/shared/calendar-model.js +84 -0
  3. package/components/shared/date-input-segments.js +25 -0
  4. package/components/shared/date-navigation.js +35 -0
  5. package/components/shared/date-picker.js +38 -0
  6. package/components/shared/date-range.js +61 -0
  7. package/components/shared/date-time.js +273 -0
  8. package/components/shared/external-value.js +12 -0
  9. package/components/shared/form-reset.js +1 -1
  10. package/components/shared/icons.js +2 -0
  11. package/components/shared/initial-field-value.js +14 -0
  12. package/components/shared/input-segments.js +190 -0
  13. package/components/shared/prepared-module.js +19 -0
  14. package/components/ui-button/ui-button.html +31 -10
  15. package/components/ui-calendar/calendar-source.js +34 -0
  16. package/components/ui-calendar/ui-calendar.html +221 -0
  17. package/components/ui-calendar/ui-calendar.js +185 -0
  18. package/components/ui-cluster/ui-cluster.html +5 -2
  19. package/components/ui-date-field/ui-date-field.html +143 -0
  20. package/components/ui-date-field/ui-date-field.js +258 -0
  21. package/components/ui-date-picker/ui-date-picker.html +213 -0
  22. package/components/ui-date-picker/ui-date-picker.js +153 -0
  23. package/components/ui-date-range-picker/ui-date-range-picker.html +202 -0
  24. package/components/ui-date-range-picker/ui-date-range-picker.js +224 -0
  25. package/components/ui-file-input/files.js +15 -0
  26. package/components/ui-file-input/ui-file-input.html +79 -0
  27. package/components/ui-file-input/ui-file-input.js +108 -0
  28. package/components/ui-form-field/ui-form-field.js +2 -2
  29. package/components/ui-grid/ui-grid.html +68 -5
  30. package/components/ui-icon/ui-icon.html +8 -0
  31. package/components/ui-icon-button/ui-icon-button.html +22 -7
  32. package/components/ui-input/ui-input.html +10 -1
  33. package/components/ui-input/ui-input.js +11 -5
  34. package/components/ui-input-group/ui-input-group.html +2 -2
  35. package/components/ui-input-group/ui-input-group.js +6 -5
  36. package/components/ui-popover/ui-popover.html +2 -0
  37. package/components/ui-popover/ui-popover.js +5 -1
  38. package/components/ui-select/ui-select.html +8 -3
  39. package/components/ui-time-field/ui-time-field.html +62 -0
  40. package/components/ui-time-field/ui-time-field.js +21 -0
  41. package/components/ui-time-picker/time-options.js +25 -0
  42. package/components/ui-time-picker/ui-time-picker.html +160 -0
  43. package/components/ui-time-picker/ui-time-picker.js +132 -0
  44. package/dist/index.js +68 -61
  45. package/docs/README.md +2 -2
  46. package/docs/catalog.json +14225 -6225
  47. package/docs/documentation.css +1 -1
  48. package/docs/framework-examples.mjs +13 -2
  49. package/docs/site.mjs +1 -1
  50. package/editor/components.css +62 -29
  51. package/editor/icons.d.ts +2 -0
  52. package/editor/index.js +602 -141
  53. package/package.json +6 -4
  54. package/styles/ui-action-bar.css +1 -1
  55. package/styles/ui-affordance-scope.css +1 -1
  56. package/styles/ui-avatar-group.css +1 -1
  57. package/styles/ui-avatar.css +1 -1
  58. package/styles/ui-badge.css +1 -1
  59. package/styles/ui-breadcrumb-item.css +1 -1
  60. package/styles/ui-breadcrumbs.css +1 -1
  61. package/styles/ui-button.css +19 -7
  62. package/styles/ui-calendar.css +1 -0
  63. package/styles/ui-callout.css +1 -1
  64. package/styles/ui-card-group.css +1 -1
  65. package/styles/ui-card.css +1 -1
  66. package/styles/ui-checkbox.css +1 -1
  67. package/styles/ui-cluster.css +4 -1
  68. package/styles/ui-color-picker.css +1 -1
  69. package/styles/ui-combobox.css +1 -1
  70. package/styles/ui-compact-content.css +1 -1
  71. package/styles/ui-compact-editor.css +1 -1
  72. package/styles/ui-compact-mark.css +1 -1
  73. package/styles/ui-compact-node.css +1 -1
  74. package/styles/ui-container.css +1 -1
  75. package/styles/ui-context-menu.css +1 -1
  76. package/styles/ui-cover.css +1 -1
  77. package/styles/ui-curve-editor.css +1 -1
  78. package/styles/ui-cycle-button.css +1 -1
  79. package/styles/ui-date-field.css +1 -0
  80. package/styles/ui-date-picker.css +1 -0
  81. package/styles/ui-date-range-picker.css +1 -0
  82. package/styles/ui-description-item.css +1 -1
  83. package/styles/ui-description-list.css +1 -1
  84. package/styles/ui-dialog.css +1 -1
  85. package/styles/ui-disclosure.css +1 -1
  86. package/styles/ui-editable.css +1 -1
  87. package/styles/ui-editor-block-actions.css +1 -1
  88. package/styles/ui-editor-chip-editor.css +1 -1
  89. package/styles/ui-editor-code-language.css +1 -1
  90. package/styles/ui-editor-footnote-editor.css +1 -1
  91. package/styles/ui-editor-formatting-tools.css +1 -1
  92. package/styles/ui-editor-image-toolbar.css +1 -1
  93. package/styles/ui-editor-insert-table-grid.css +1 -1
  94. package/styles/ui-editor-link-card.css +1 -1
  95. package/styles/ui-editor-link-form.css +1 -1
  96. package/styles/ui-editor-mention-menu-item.css +1 -1
  97. package/styles/ui-editor-mention-menu.css +1 -1
  98. package/styles/ui-editor-slash-menu-group.css +1 -1
  99. package/styles/ui-editor-slash-menu-item.css +1 -1
  100. package/styles/ui-editor-slash-menu.css +1 -1
  101. package/styles/ui-editor-surface.css +1 -1
  102. package/styles/ui-editor-table-context-menu.css +1 -1
  103. package/styles/ui-editor-table-overlay.css +1 -1
  104. package/styles/ui-editor-table-toolbar.css +1 -1
  105. package/styles/ui-editor-toolbar.css +1 -1
  106. package/styles/ui-editor.css +1 -1
  107. package/styles/ui-file-input.css +1 -0
  108. package/styles/ui-floating-action-button.css +1 -1
  109. package/styles/ui-form-field.css +1 -1
  110. package/styles/ui-grid.css +38 -1
  111. package/styles/ui-icon-button.css +19 -5
  112. package/styles/ui-icon.css +5 -1
  113. package/styles/ui-image.css +1 -1
  114. package/styles/ui-input-group.css +3 -3
  115. package/styles/ui-input.css +1 -1
  116. package/styles/ui-light-editor.css +1 -1
  117. package/styles/ui-list-item.css +1 -1
  118. package/styles/ui-list.css +1 -1
  119. package/styles/ui-listbox.css +1 -1
  120. package/styles/ui-menu-group.css +1 -1
  121. package/styles/ui-menu-item.css +1 -1
  122. package/styles/ui-menu.css +1 -1
  123. package/styles/ui-meter.css +1 -1
  124. package/styles/ui-nav-item.css +1 -1
  125. package/styles/ui-number-input.css +1 -1
  126. package/styles/ui-page-header.css +1 -1
  127. package/styles/ui-pagination.css +1 -1
  128. package/styles/ui-popover.css +1 -1
  129. package/styles/ui-radio-group.css +1 -1
  130. package/styles/ui-radio.css +1 -1
  131. package/styles/ui-reel.css +1 -1
  132. package/styles/ui-scroll-area.css +1 -1
  133. package/styles/ui-search-result-row.css +1 -1
  134. package/styles/ui-search-shell.css +1 -1
  135. package/styles/ui-section.css +1 -1
  136. package/styles/ui-select.css +9 -4
  137. package/styles/ui-separator.css +1 -1
  138. package/styles/ui-sidebar.css +1 -1
  139. package/styles/ui-site-header.css +19 -19
  140. package/styles/ui-skeleton.css +1 -1
  141. package/styles/ui-slider.css +1 -1
  142. package/styles/ui-spinner.css +1 -1
  143. package/styles/ui-stack.css +1 -1
  144. package/styles/ui-status-message.css +1 -1
  145. package/styles/ui-swatch.css +1 -1
  146. package/styles/ui-switch.css +1 -1
  147. package/styles/ui-switcher.css +1 -1
  148. package/styles/ui-table.css +1 -1
  149. package/styles/ui-tabs.css +1 -1
  150. package/styles/ui-text.css +1 -1
  151. package/styles/ui-textarea.css +1 -1
  152. package/styles/ui-time-field.css +1 -0
  153. package/styles/ui-time-picker.css +1 -0
  154. package/styles/ui-toast-region.css +1 -1
  155. package/styles/ui-toast.css +1 -1
  156. package/styles/ui-tooltip.css +1 -1
  157. package/styles/ui-top-bar.css +1 -1
  158. package/styles/ui-tree-item.css +1 -1
  159. package/styles/ui-tree.css +1 -1
  160. package/tokens.css +4 -0
  161. package/vanilla/UiActionBar.d.ts +1 -1
  162. package/vanilla/UiActionBar.js +1 -1
  163. package/vanilla/UiAffordanceScope.d.ts +1 -1
  164. package/vanilla/UiAffordanceScope.js +1 -1
  165. package/vanilla/UiAvatar.d.ts +1 -1
  166. package/vanilla/UiAvatar.js +1 -1
  167. package/vanilla/UiAvatarGroup.d.ts +1 -1
  168. package/vanilla/UiAvatarGroup.js +1 -1
  169. package/vanilla/UiBadge.d.ts +1 -1
  170. package/vanilla/UiBadge.js +1 -1
  171. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  172. package/vanilla/UiBreadcrumbItem.js +1 -1
  173. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  174. package/vanilla/UiBreadcrumbs.js +1 -1
  175. package/vanilla/UiButton.d.ts +2 -1
  176. package/vanilla/UiButton.js +128 -108
  177. package/vanilla/UiCalendar.d.ts +50 -0
  178. package/vanilla/UiCalendar.js +477 -0
  179. package/vanilla/UiCallout.d.ts +1 -1
  180. package/vanilla/UiCallout.js +1 -1
  181. package/vanilla/UiCard.d.ts +1 -1
  182. package/vanilla/UiCard.js +1 -1
  183. package/vanilla/UiCardGroup.d.ts +1 -1
  184. package/vanilla/UiCardGroup.js +1 -1
  185. package/vanilla/UiCheckbox.d.ts +1 -1
  186. package/vanilla/UiCheckbox.js +1 -1
  187. package/vanilla/UiCluster.d.ts +2 -2
  188. package/vanilla/UiCluster.js +2 -2
  189. package/vanilla/UiColorPicker.d.ts +1 -1
  190. package/vanilla/UiColorPicker.js +1 -1
  191. package/vanilla/UiCombobox.d.ts +1 -1
  192. package/vanilla/UiCombobox.js +1 -1
  193. package/vanilla/UiCompactContent.d.ts +1 -1
  194. package/vanilla/UiCompactContent.js +1 -1
  195. package/vanilla/UiCompactEditor.d.ts +1 -1
  196. package/vanilla/UiCompactEditor.js +1 -1
  197. package/vanilla/UiCompactMark.d.ts +1 -1
  198. package/vanilla/UiCompactMark.js +1 -1
  199. package/vanilla/UiCompactNode.d.ts +1 -1
  200. package/vanilla/UiCompactNode.js +1 -1
  201. package/vanilla/UiContainer.d.ts +1 -1
  202. package/vanilla/UiContainer.js +1 -1
  203. package/vanilla/UiContextMenu.d.ts +1 -1
  204. package/vanilla/UiContextMenu.js +1 -1
  205. package/vanilla/UiCover.d.ts +1 -1
  206. package/vanilla/UiCover.js +1 -1
  207. package/vanilla/UiCurveEditor.d.ts +1 -1
  208. package/vanilla/UiCurveEditor.js +1 -1
  209. package/vanilla/UiCycleButton.d.ts +1 -1
  210. package/vanilla/UiCycleButton.js +1 -1
  211. package/vanilla/UiDateField.d.ts +52 -0
  212. package/vanilla/UiDateField.js +208 -0
  213. package/vanilla/UiDatePicker.d.ts +63 -0
  214. package/vanilla/UiDatePicker.js +360 -0
  215. package/vanilla/UiDateRangePicker.d.ts +60 -0
  216. package/vanilla/UiDateRangePicker.js +418 -0
  217. package/vanilla/UiDescriptionItem.d.ts +1 -1
  218. package/vanilla/UiDescriptionItem.js +1 -1
  219. package/vanilla/UiDescriptionList.d.ts +1 -1
  220. package/vanilla/UiDescriptionList.js +1 -1
  221. package/vanilla/UiDialog.d.ts +1 -1
  222. package/vanilla/UiDialog.js +1 -1
  223. package/vanilla/UiDisclosure.d.ts +1 -1
  224. package/vanilla/UiDisclosure.js +1 -1
  225. package/vanilla/UiEditable.d.ts +1 -1
  226. package/vanilla/UiEditable.js +1 -1
  227. package/vanilla/UiEditor.d.ts +1 -1
  228. package/vanilla/UiEditor.js +1 -1
  229. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  230. package/vanilla/UiEditorBlockActions.js +1 -1
  231. package/vanilla/UiEditorChipEditor.d.ts +1 -1
  232. package/vanilla/UiEditorChipEditor.js +1 -1
  233. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  234. package/vanilla/UiEditorCodeLanguage.js +1 -1
  235. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  236. package/vanilla/UiEditorFootnoteEditor.js +1 -1
  237. package/vanilla/UiEditorFormattingTools.d.ts +1 -1
  238. package/vanilla/UiEditorFormattingTools.js +1 -1
  239. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  240. package/vanilla/UiEditorImageToolbar.js +1 -1
  241. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  242. package/vanilla/UiEditorInsertTableGrid.js +1 -1
  243. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  244. package/vanilla/UiEditorLinkCard.js +1 -1
  245. package/vanilla/UiEditorLinkForm.d.ts +1 -1
  246. package/vanilla/UiEditorLinkForm.js +1 -1
  247. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  248. package/vanilla/UiEditorMentionMenu.js +1 -1
  249. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  250. package/vanilla/UiEditorMentionMenuItem.js +1 -1
  251. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  252. package/vanilla/UiEditorSlashMenu.js +1 -1
  253. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  254. package/vanilla/UiEditorSlashMenuGroup.js +1 -1
  255. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  256. package/vanilla/UiEditorSlashMenuItem.js +1 -1
  257. package/vanilla/UiEditorSurface.d.ts +1 -1
  258. package/vanilla/UiEditorSurface.js +1 -1
  259. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  260. package/vanilla/UiEditorTableContextMenu.js +1 -1
  261. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  262. package/vanilla/UiEditorTableOverlay.js +1 -1
  263. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  264. package/vanilla/UiEditorTableToolbar.js +1 -1
  265. package/vanilla/UiEditorToolbar.d.ts +1 -1
  266. package/vanilla/UiEditorToolbar.js +1 -1
  267. package/vanilla/UiFileInput.d.ts +36 -0
  268. package/vanilla/UiFileInput.js +209 -0
  269. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  270. package/vanilla/UiFloatingActionButton.js +1 -1
  271. package/vanilla/UiFormField.d.ts +1 -1
  272. package/vanilla/UiFormField.js +1 -1
  273. package/vanilla/UiGrid.d.ts +7 -2
  274. package/vanilla/UiGrid.js +85 -19
  275. package/vanilla/UiIcon.d.ts +2 -1
  276. package/vanilla/UiIcon.js +10 -10
  277. package/vanilla/UiIconButton.d.ts +2 -2
  278. package/vanilla/UiIconButton.js +2 -2
  279. package/vanilla/UiImage.d.ts +1 -1
  280. package/vanilla/UiImage.js +1 -1
  281. package/vanilla/UiInput.d.ts +2 -1
  282. package/vanilla/UiInput.js +11 -11
  283. package/vanilla/UiInputGroup.d.ts +1 -1
  284. package/vanilla/UiInputGroup.js +1 -1
  285. package/vanilla/UiLightEditor.d.ts +1 -1
  286. package/vanilla/UiLightEditor.js +1 -1
  287. package/vanilla/UiList.d.ts +1 -1
  288. package/vanilla/UiList.js +1 -1
  289. package/vanilla/UiListItem.d.ts +1 -1
  290. package/vanilla/UiListItem.js +1 -1
  291. package/vanilla/UiListbox.d.ts +1 -1
  292. package/vanilla/UiListbox.js +1 -1
  293. package/vanilla/UiMenu.d.ts +1 -1
  294. package/vanilla/UiMenu.js +1 -1
  295. package/vanilla/UiMenuGroup.d.ts +1 -1
  296. package/vanilla/UiMenuGroup.js +1 -1
  297. package/vanilla/UiMenuItem.d.ts +1 -1
  298. package/vanilla/UiMenuItem.js +1 -1
  299. package/vanilla/UiMeter.d.ts +1 -1
  300. package/vanilla/UiMeter.js +1 -1
  301. package/vanilla/UiNavItem.d.ts +1 -1
  302. package/vanilla/UiNavItem.js +1 -1
  303. package/vanilla/UiNumberInput.d.ts +1 -1
  304. package/vanilla/UiNumberInput.js +1 -1
  305. package/vanilla/UiPageHeader.d.ts +1 -1
  306. package/vanilla/UiPageHeader.js +1 -1
  307. package/vanilla/UiPagination.d.ts +1 -1
  308. package/vanilla/UiPagination.js +1 -1
  309. package/vanilla/UiPopover.d.ts +2 -1
  310. package/vanilla/UiPopover.js +4 -4
  311. package/vanilla/UiRadio.d.ts +1 -1
  312. package/vanilla/UiRadio.js +1 -1
  313. package/vanilla/UiRadioGroup.d.ts +1 -1
  314. package/vanilla/UiRadioGroup.js +1 -1
  315. package/vanilla/UiReel.d.ts +1 -1
  316. package/vanilla/UiReel.js +1 -1
  317. package/vanilla/UiScrollArea.d.ts +1 -1
  318. package/vanilla/UiScrollArea.js +1 -1
  319. package/vanilla/UiSearchResultRow.d.ts +1 -1
  320. package/vanilla/UiSearchResultRow.js +1 -1
  321. package/vanilla/UiSearchShell.d.ts +1 -1
  322. package/vanilla/UiSearchShell.js +1 -1
  323. package/vanilla/UiSection.d.ts +1 -1
  324. package/vanilla/UiSection.js +1 -1
  325. package/vanilla/UiSelect.d.ts +1 -1
  326. package/vanilla/UiSelect.js +1 -1
  327. package/vanilla/UiSeparator.d.ts +1 -1
  328. package/vanilla/UiSeparator.js +1 -1
  329. package/vanilla/UiSidebar.d.ts +1 -1
  330. package/vanilla/UiSidebar.js +1 -1
  331. package/vanilla/UiSiteHeader.d.ts +1 -1
  332. package/vanilla/UiSiteHeader.js +1 -1
  333. package/vanilla/UiSkeleton.d.ts +1 -1
  334. package/vanilla/UiSkeleton.js +1 -1
  335. package/vanilla/UiSlider.d.ts +1 -1
  336. package/vanilla/UiSlider.js +1 -1
  337. package/vanilla/UiSpinner.d.ts +1 -1
  338. package/vanilla/UiSpinner.js +1 -1
  339. package/vanilla/UiStack.d.ts +1 -1
  340. package/vanilla/UiStack.js +1 -1
  341. package/vanilla/UiStatusMessage.d.ts +1 -1
  342. package/vanilla/UiStatusMessage.js +1 -1
  343. package/vanilla/UiSwatch.d.ts +1 -1
  344. package/vanilla/UiSwatch.js +1 -1
  345. package/vanilla/UiSwitch.d.ts +1 -1
  346. package/vanilla/UiSwitch.js +1 -1
  347. package/vanilla/UiSwitcher.d.ts +1 -1
  348. package/vanilla/UiSwitcher.js +1 -1
  349. package/vanilla/UiTable.d.ts +1 -1
  350. package/vanilla/UiTable.js +1 -1
  351. package/vanilla/UiTabs.d.ts +1 -1
  352. package/vanilla/UiTabs.js +1 -1
  353. package/vanilla/UiText.d.ts +1 -1
  354. package/vanilla/UiText.js +1 -1
  355. package/vanilla/UiTextarea.d.ts +1 -1
  356. package/vanilla/UiTextarea.js +1 -1
  357. package/vanilla/UiTimeField.d.ts +42 -0
  358. package/vanilla/UiTimeField.js +112 -0
  359. package/vanilla/UiTimePicker.d.ts +48 -0
  360. package/vanilla/UiTimePicker.js +372 -0
  361. package/vanilla/UiToast.d.ts +1 -1
  362. package/vanilla/UiToast.js +1 -1
  363. package/vanilla/UiToastRegion.d.ts +1 -1
  364. package/vanilla/UiToastRegion.js +1 -1
  365. package/vanilla/UiTooltip.d.ts +1 -1
  366. package/vanilla/UiTooltip.js +1 -1
  367. package/vanilla/UiTopBar.d.ts +1 -1
  368. package/vanilla/UiTopBar.js +1 -1
  369. package/vanilla/UiTree.d.ts +1 -1
  370. package/vanilla/UiTree.js +1 -1
  371. package/vanilla/UiTreeItem.d.ts +1 -1
  372. package/vanilla/UiTreeItem.js +1 -1
  373. package/vanilla/index.js +7 -0
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.76 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
2
2
  export interface UiBadgeEventMap {
3
3
  }
4
4
  export interface UiBadgeElement extends HTMLSpanElement {
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.76 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
2
2
  import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, defineComponent } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-badge.css";
4
4
 
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.76 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
2
2
  export interface UiBreadcrumbItemEventMap {
3
3
  }
4
4
  export interface UiBreadcrumbItemElement extends HTMLLIElement {
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.76 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
2
2
  import { attachGeneratedController, buildTemplate, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, dispose, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, defineComponent } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-breadcrumb-item.css";
4
4
 
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.76 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
2
2
  export interface UiBreadcrumbsEventMap {
3
3
  }
4
4
  export interface UiBreadcrumbsElement extends HTMLElement {
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.76 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
2
2
  import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-breadcrumbs.css";
4
4
 
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.76 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
2
2
  export interface UiButtonEventMap {
3
3
  }
4
4
  export interface UiButtonElement extends HTMLElement {
@@ -17,6 +17,7 @@ export interface UiButtonProps {
17
17
  pending?: boolean | null;
18
18
  preset?: "none" | "primary" | "standard" | "quiet" | "destructive" | null;
19
19
  rel?: string | null;
20
+ selected?: boolean | null;
20
21
  shape?: "rounded" | "pill" | null;
21
22
  size?: "xs" | "sm" | "md" | "lg" | null;
22
23
  square?: boolean | null;
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.76 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
2
2
  import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readIndex, recordValue, textCall, toAttribute, truthy, writeAttribute, writeUrlAttribute, computedCycle, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, project, fillSlot, armElement, replaceRoot, readonlyView, checkBoolean, checkFormat, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-button/ui-button.js";
4
4
  import "../styles/ui-button.css";
@@ -25,20 +25,20 @@ const T18 = ["",[]];
25
25
  const T19 = ["",[]];
26
26
  let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19;
27
27
  const S = { n: ["appearance","colorTone"], t: ["?","?"], f: import.meta.url, g: "ui-button", k: 0, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs };
28
- const A = [["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","type","disabled","aria-disabled","aria-busy"]],["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","type","disabled","aria-disabled","aria-busy"]]];
28
+ const A = [["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","data-selected","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","data-selected","type","disabled","aria-disabled","aria-busy"]],["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","data-selected","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","data-selected","type","disabled","aria-disabled","aria-busy"]]];
29
29
  const Q = [[],[],[],[]];
30
- const D = { g: "ui-button", props: { "align": { "required":false,"values":["center","start"],"default":"center", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "shape": { "required":false,"values":["rounded","pill"],"default":"rounded", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "square": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "stretch": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["accent","accent-secondary","accent-tertiary","neutral","danger","success","warning","info"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "type": { "required":false,"values":["button","submit","reset"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outline","solid","danger","ghost","link","card","field"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
30
+ const D = { g: "ui-button", props: { "align": { "required":false,"values":["center","start"],"default":"center", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "selected": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "shape": { "required":false,"values":["rounded","pill"],"default":"rounded", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "square": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "stretch": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["accent","accent-secondary","accent-tertiary","neutral","danger","success","warning","info"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "type": { "required":false,"values":["button","submit","reset"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outline","solid","danger","ghost","link","card","field"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
31
31
  const C = (host) => activateModule(controller, host);
32
32
 
33
33
  export function createUiButton(options = {}, html) {
34
34
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
35
- const v = [undefined, undefined, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
35
+ const v = [undefined, undefined, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
36
36
  let B = acceptProps(undefined, D, S.n, v, componentProps, [], html);
37
37
  const CS = [];
38
- const inputStatus = (j) => { if (j >= 0 && j < 2) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 2) return awaitInput(B, "align", true); if (j === 3) return awaitInput(B, "disabled", true); if (j === 4) return awaitInput(B, "href", true); if (j === 5) return awaitInput(B, "loading", true); if (j === 6) return awaitInput(B, "pending", true); if (j === 7) return awaitInput(B, "preset", true); if (j === 8) return awaitInput(B, "rel", true); if (j === 9) return awaitInput(B, "shape", true); if (j === 10) return awaitInput(B, "size", true); if (j === 11) return awaitInput(B, "square", true); if (j === 12) return awaitInput(B, "stretch", true); if (j === 13) return awaitInput(B, "target", true); if (j === 14) return awaitInput(B, "tone", true); if (j === 15) return awaitInput(B, "type", true); if (j === 16) return awaitInput(B, "variant", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
38
+ const inputStatus = (j) => { if (j >= 0 && j < 2) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 2) return awaitInput(B, "align", true); if (j === 3) return awaitInput(B, "disabled", true); if (j === 4) return awaitInput(B, "href", true); if (j === 5) return awaitInput(B, "loading", true); if (j === 6) return awaitInput(B, "pending", true); if (j === 7) return awaitInput(B, "preset", true); if (j === 8) return awaitInput(B, "rel", true); if (j === 9) return awaitInput(B, "selected", true); if (j === 10) return awaitInput(B, "shape", true); if (j === 11) return awaitInput(B, "size", true); if (j === 12) return awaitInput(B, "square", true); if (j === 13) return awaitInput(B, "stretch", true); if (j === 14) return awaitInput(B, "target", true); if (j === 15) return awaitInput(B, "tone", true); if (j === 16) return awaitInput(B, "type", true); if (j === 17) return awaitInput(B, "variant", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
39
39
  const X = { e: 0, g: (j) => g(j), w: new Set(), a: CS, i: inputStatus };
40
40
  const ke = [];
41
- const K = [() => readIndex({ "none": inputRead(v[16], inputStatus(16)), "primary": "solid", "standard": "solid", "quiet": "ghost", "destructive": "solid" }, inputRead(v[7], inputStatus(7))), () => readIndex(recordValue(["none","primary","standard","quiet","destructive"], [readIndex({ "true": "danger", "false": inputRead(v[14], inputStatus(14)) }, textCall("concat", [(inputRead(v[16], inputStatus(16)) === "danger")])), "accent", "neutral", "neutral", "danger"]), inputRead(v[7], inputStatus(7)))];
41
+ const K = [() => readIndex({ "none": inputRead(v[17], inputStatus(17)), "primary": "solid", "standard": "solid", "quiet": "ghost", "destructive": "solid" }, inputRead(v[7], inputStatus(7))), () => readIndex(recordValue(["none","primary","standard","quiet","destructive"], [readIndex({ "true": "danger", "false": inputRead(v[15], inputStatus(15)) }, textCall("concat", [(inputRead(v[17], inputStatus(17)) === "danger")])), "accent", "neutral", "neutral", "danger"]), inputRead(v[7], inputStatus(7)))];
42
42
  const g = (j) => {
43
43
  const i = j - 0;
44
44
  if (ke[i] === X.e) return v[j];
@@ -227,64 +227,69 @@ export function createUiButton(options = {}, html) {
227
227
  const t3 = t0.nextSibling.nextSibling;
228
228
  const t4 = t3.firstChild;
229
229
  const t5 = t3.nextSibling.nextSibling.firstChild;
230
- const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
230
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
231
231
  r.z = [() => dispose(r.b1)];
232
232
  p0(r, -1, d);
233
233
  return r;
234
234
  };
235
235
  const p0 = (r, c, d) => {
236
- if (c & 1073807488) {
236
+ if (c & 1073873024) {
237
237
  const x0 = g(0);
238
238
  const s0 = toAttribute(x0, "data-appearance");
239
239
  if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
240
240
  }
241
- if (c & 1073823872) {
241
+ if (c & 1073905792) {
242
242
  const x1 = g(1);
243
243
  if (x1 !== NONCONFORMING) {
244
244
  const s1 = toAttribute(x1, "data-tone");
245
245
  if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
246
246
  }
247
247
  }
248
+ if (c & 512) {
249
+ const x2 = v[9];
250
+ const s2 = toAttribute(x2, "data-selected");
251
+ if (s2 !== r.v2) writeAttribute(r.n, "data-selected", r.v2 = s2);
252
+ }
248
253
  if (c & 1073741944) {
249
- const x2 = readIndex({ "true": null, "false": v[4] }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
250
- if (x2 !== NONCONFORMING) {
251
- const s2 = toAttribute(x2, "href");
252
- if (s2 !== r.v2) writeUrlAttribute(r.n, "href", r.v2 = s2);
254
+ const x3 = readIndex({ "true": null, "false": v[4] }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
255
+ if (x3 !== NONCONFORMING) {
256
+ const s3 = toAttribute(x3, "href");
257
+ if (s3 !== r.v3) writeUrlAttribute(r.n, "href", r.v3 = s3);
253
258
  }
254
259
  }
255
- if (c & 8192) {
256
- const x3 = v[13];
257
- const s3 = toAttribute(x3, "target");
258
- if (s3 !== r.v3) writeAttribute(r.n, "target", r.v3 = s3);
260
+ if (c & 16384) {
261
+ const x4 = v[14];
262
+ const s4 = toAttribute(x4, "target");
263
+ if (s4 !== r.v4) writeAttribute(r.n, "target", r.v4 = s4);
259
264
  }
260
265
  if (c & 256) {
261
- const x4 = v[8];
262
- const s4 = toAttribute(x4, "rel");
263
- if (s4 !== r.v4) writeAttribute(r.n, "rel", r.v4 = s4);
266
+ const x5 = v[8];
267
+ const s5 = toAttribute(x5, "rel");
268
+ if (s5 !== r.v5) writeAttribute(r.n, "rel", r.v5 = s5);
264
269
  }
265
270
  if (c & 1073741928) {
266
- const x5 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
267
- if (x5 !== NONCONFORMING) {
268
- const s5 = toAttribute(x5, "aria-disabled");
269
- if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
271
+ const x6 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
272
+ if (x6 !== NONCONFORMING) {
273
+ const s6 = toAttribute(x6, "aria-disabled");
274
+ if (s6 !== r.v6) writeAttribute(r.n, "aria-disabled", r.v6 = s6);
270
275
  }
271
276
  }
272
277
  if (c & 96) {
273
- const x6 = (truthy(v[5]) || truthy(v[6]));
274
- const s6 = toAttribute(x6, "aria-busy");
275
- if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
278
+ const x7 = (truthy(v[5]) || truthy(v[6]));
279
+ const s7 = toAttribute(x7, "aria-busy");
280
+ if (s7 !== r.v7) writeAttribute(r.n, "aria-busy", r.v7 = s7);
276
281
  }
277
282
  if (c & 1073741928) {
278
- const x7 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[5]) || truthy(v[6])) && !truthy(v[3]))]));
279
- if (x7 !== NONCONFORMING) {
280
- const s7 = toAttribute(x7, "tabindex");
281
- if (s7 !== r.v7) writeAttribute(r.n, "tabindex", r.v7 = s7);
283
+ const x8 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[5]) || truthy(v[6])) && !truthy(v[3]))]));
284
+ if (x8 !== NONCONFORMING) {
285
+ const s8 = toAttribute(x8, "tabindex");
286
+ if (s8 !== r.v8) writeAttribute(r.n, "tabindex", r.v8 = s8);
282
287
  }
283
288
  }
284
- if (c & 7780) {
285
- const x8 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[2], v[12], v[10], v[9], v[11], v[5], v[6]]);
286
- const s8 = x8;
287
- if (s8 !== r.v8) writeAttribute(r.n, "data-ui-button-state", (r.v8 = s8) === "" ? null : s8);
289
+ if (c & 15460) {
290
+ const x9 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[2], v[13], v[11], v[10], v[12], v[5], v[6]]);
291
+ const s9 = x9;
292
+ if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
288
293
  }
289
294
  if (c & 96 && !((truthy(v[5]) || truthy(v[6]))) !== !r.b0) {
290
295
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
@@ -309,50 +314,55 @@ export function createUiButton(options = {}, html) {
309
314
  const t3 = t0.nextSibling.nextSibling;
310
315
  const t4 = t3.firstChild;
311
316
  const t5 = t3.nextSibling.nextSibling.firstChild;
312
- const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
317
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
313
318
  r.z = [() => dispose(r.b1)];
314
319
  p6(r, -1, d);
315
320
  return r;
316
321
  };
317
322
  const p6 = (r, c, d) => {
318
- if (c & 1073807488) {
323
+ if (c & 1073873024) {
319
324
  const x0 = g(0);
320
325
  const s0 = toAttribute(x0, "data-appearance");
321
326
  if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
322
327
  }
323
- if (c & 1073823872) {
328
+ if (c & 1073905792) {
324
329
  const x1 = g(1);
325
330
  if (x1 !== NONCONFORMING) {
326
331
  const s1 = toAttribute(x1, "data-tone");
327
332
  if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
328
333
  }
329
334
  }
330
- if (c & 1073774592) {
331
- const x2 = v[15];
332
- const s2 = toAttribute(x2, "type");
333
- if (s2 !== r.v2) writeAttribute(r.n, "type", r.v2 = s2);
335
+ if (c & 512) {
336
+ const x2 = v[9];
337
+ const s2 = toAttribute(x2, "data-selected");
338
+ if (s2 !== r.v2) writeAttribute(r.n, "data-selected", r.v2 = s2);
339
+ }
340
+ if (c & 1073807360) {
341
+ const x3 = v[16];
342
+ const s3 = toAttribute(x3, "type");
343
+ if (s3 !== r.v3) writeAttribute(r.n, "type", r.v3 = s3);
334
344
  }
335
345
  if (c & 8) {
336
- const x3 = v[3];
337
- const s3 = toAttribute(x3, "disabled");
338
- if (s3 !== r.v3) writeAttribute(r.n, "disabled", r.v3 = s3);
346
+ const x4 = v[3];
347
+ const s4 = toAttribute(x4, "disabled");
348
+ if (s4 !== r.v4) writeAttribute(r.n, "disabled", r.v4 = s4);
339
349
  }
340
350
  if (c & 1073741920) {
341
- const x4 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[5]) || truthy(v[6]))]));
342
- if (x4 !== NONCONFORMING) {
343
- const s4 = toAttribute(x4, "aria-disabled");
344
- if (s4 !== r.v4) writeAttribute(r.n, "aria-disabled", r.v4 = s4);
351
+ const x5 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[5]) || truthy(v[6]))]));
352
+ if (x5 !== NONCONFORMING) {
353
+ const s5 = toAttribute(x5, "aria-disabled");
354
+ if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
345
355
  }
346
356
  }
347
357
  if (c & 96) {
348
- const x5 = (truthy(v[5]) || truthy(v[6]));
349
- const s5 = toAttribute(x5, "aria-busy");
350
- if (s5 !== r.v5) writeAttribute(r.n, "aria-busy", r.v5 = s5);
358
+ const x6 = (truthy(v[5]) || truthy(v[6]));
359
+ const s6 = toAttribute(x6, "aria-busy");
360
+ if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
351
361
  }
352
- if (c & 7780) {
353
- const x6 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[2], v[12], v[10], v[9], v[11], v[5], v[6]]);
354
- const s6 = x6;
355
- if (s6 !== r.v6) writeAttribute(r.n, "data-ui-button-state", (r.v6 = s6) === "" ? null : s6);
362
+ if (c & 15460) {
363
+ const x7 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[2], v[13], v[11], v[10], v[12], v[5], v[6]]);
364
+ const s7 = x7;
365
+ if (s7 !== r.v7) writeAttribute(r.n, "data-ui-button-state", (r.v7 = s7) === "" ? null : s7);
356
366
  }
357
367
  if (c & 96 && !((truthy(v[5]) || truthy(v[6]))) !== !r.b0) {
358
368
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
@@ -375,63 +385,68 @@ export function createUiButton(options = {}, html) {
375
385
  const t1 = t0.nextSibling.nextSibling.nextSibling;
376
386
  const t2 = t1.firstChild;
377
387
  const t3 = t1.nextSibling.nextSibling.firstChild;
378
- const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
388
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
379
389
  p12(r, -1, d);
380
390
  return r;
381
391
  };
382
392
  const p12 = (r, c, d) => {
383
- if (c & 1073807488) {
393
+ if (c & 1073873024) {
384
394
  const x0 = g(0);
385
395
  const s0 = toAttribute(x0, "data-appearance");
386
396
  if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
387
397
  }
388
- if (c & 1073823872) {
398
+ if (c & 1073905792) {
389
399
  const x1 = g(1);
390
400
  if (x1 !== NONCONFORMING) {
391
401
  const s1 = toAttribute(x1, "data-tone");
392
402
  if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
393
403
  }
394
404
  }
405
+ if (c & 512) {
406
+ const x2 = v[9];
407
+ const s2 = toAttribute(x2, "data-selected");
408
+ if (s2 !== r.v2) writeAttribute(r.n, "data-selected", r.v2 = s2);
409
+ }
395
410
  if (c & 1073741944) {
396
- const x2 = readIndex({ "true": null, "false": v[4] }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
397
- if (x2 !== NONCONFORMING) {
398
- const s2 = toAttribute(x2, "href");
399
- if (s2 !== r.v2) writeUrlAttribute(r.n, "href", r.v2 = s2);
411
+ const x3 = readIndex({ "true": null, "false": v[4] }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
412
+ if (x3 !== NONCONFORMING) {
413
+ const s3 = toAttribute(x3, "href");
414
+ if (s3 !== r.v3) writeUrlAttribute(r.n, "href", r.v3 = s3);
400
415
  }
401
416
  }
402
- if (c & 8192) {
403
- const x3 = v[13];
404
- const s3 = toAttribute(x3, "target");
405
- if (s3 !== r.v3) writeAttribute(r.n, "target", r.v3 = s3);
417
+ if (c & 16384) {
418
+ const x4 = v[14];
419
+ const s4 = toAttribute(x4, "target");
420
+ if (s4 !== r.v4) writeAttribute(r.n, "target", r.v4 = s4);
406
421
  }
407
422
  if (c & 256) {
408
- const x4 = v[8];
409
- const s4 = toAttribute(x4, "rel");
410
- if (s4 !== r.v4) writeAttribute(r.n, "rel", r.v4 = s4);
423
+ const x5 = v[8];
424
+ const s5 = toAttribute(x5, "rel");
425
+ if (s5 !== r.v5) writeAttribute(r.n, "rel", r.v5 = s5);
411
426
  }
412
427
  if (c & 1073741928) {
413
- const x5 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
414
- if (x5 !== NONCONFORMING) {
415
- const s5 = toAttribute(x5, "aria-disabled");
416
- if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
428
+ const x6 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
429
+ if (x6 !== NONCONFORMING) {
430
+ const s6 = toAttribute(x6, "aria-disabled");
431
+ if (s6 !== r.v6) writeAttribute(r.n, "aria-disabled", r.v6 = s6);
417
432
  }
418
433
  }
419
434
  if (c & 96) {
420
- const x6 = (truthy(v[5]) || truthy(v[6]));
421
- const s6 = toAttribute(x6, "aria-busy");
422
- if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
435
+ const x7 = (truthy(v[5]) || truthy(v[6]));
436
+ const s7 = toAttribute(x7, "aria-busy");
437
+ if (s7 !== r.v7) writeAttribute(r.n, "aria-busy", r.v7 = s7);
423
438
  }
424
439
  if (c & 1073741928) {
425
- const x7 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[5]) || truthy(v[6])) && !truthy(v[3]))]));
426
- if (x7 !== NONCONFORMING) {
427
- const s7 = toAttribute(x7, "tabindex");
428
- if (s7 !== r.v7) writeAttribute(r.n, "tabindex", r.v7 = s7);
440
+ const x8 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[5]) || truthy(v[6])) && !truthy(v[3]))]));
441
+ if (x8 !== NONCONFORMING) {
442
+ const s8 = toAttribute(x8, "tabindex");
443
+ if (s8 !== r.v8) writeAttribute(r.n, "tabindex", r.v8 = s8);
429
444
  }
430
445
  }
431
- if (c & 7780) {
432
- const x8 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[2], v[12], v[10], v[9], v[11], v[5], v[6]]);
433
- const s8 = x8;
434
- if (s8 !== r.v8) writeAttribute(r.n, "data-ui-button-state", (r.v8 = s8) === "" ? null : s8);
446
+ if (c & 15460) {
447
+ const x9 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[2], v[13], v[11], v[10], v[12], v[5], v[6]]);
448
+ const s9 = x9;
449
+ if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
435
450
  }
436
451
  if (c & 96 && !((truthy(v[5]) || truthy(v[6]))) !== !r.b0) {
437
452
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
@@ -450,49 +465,54 @@ export function createUiButton(options = {}, html) {
450
465
  const t1 = t0.nextSibling.nextSibling.nextSibling;
451
466
  const t2 = t1.firstChild;
452
467
  const t3 = t1.nextSibling.nextSibling.firstChild;
453
- const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
468
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
454
469
  p16(r, -1, d);
455
470
  return r;
456
471
  };
457
472
  const p16 = (r, c, d) => {
458
- if (c & 1073807488) {
473
+ if (c & 1073873024) {
459
474
  const x0 = g(0);
460
475
  const s0 = toAttribute(x0, "data-appearance");
461
476
  if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
462
477
  }
463
- if (c & 1073823872) {
478
+ if (c & 1073905792) {
464
479
  const x1 = g(1);
465
480
  if (x1 !== NONCONFORMING) {
466
481
  const s1 = toAttribute(x1, "data-tone");
467
482
  if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
468
483
  }
469
484
  }
470
- if (c & 1073774592) {
471
- const x2 = v[15];
472
- const s2 = toAttribute(x2, "type");
473
- if (s2 !== r.v2) writeAttribute(r.n, "type", r.v2 = s2);
485
+ if (c & 512) {
486
+ const x2 = v[9];
487
+ const s2 = toAttribute(x2, "data-selected");
488
+ if (s2 !== r.v2) writeAttribute(r.n, "data-selected", r.v2 = s2);
489
+ }
490
+ if (c & 1073807360) {
491
+ const x3 = v[16];
492
+ const s3 = toAttribute(x3, "type");
493
+ if (s3 !== r.v3) writeAttribute(r.n, "type", r.v3 = s3);
474
494
  }
475
495
  if (c & 8) {
476
- const x3 = v[3];
477
- const s3 = toAttribute(x3, "disabled");
478
- if (s3 !== r.v3) writeAttribute(r.n, "disabled", r.v3 = s3);
496
+ const x4 = v[3];
497
+ const s4 = toAttribute(x4, "disabled");
498
+ if (s4 !== r.v4) writeAttribute(r.n, "disabled", r.v4 = s4);
479
499
  }
480
500
  if (c & 1073741920) {
481
- const x4 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[5]) || truthy(v[6]))]));
482
- if (x4 !== NONCONFORMING) {
483
- const s4 = toAttribute(x4, "aria-disabled");
484
- if (s4 !== r.v4) writeAttribute(r.n, "aria-disabled", r.v4 = s4);
501
+ const x5 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[5]) || truthy(v[6]))]));
502
+ if (x5 !== NONCONFORMING) {
503
+ const s5 = toAttribute(x5, "aria-disabled");
504
+ if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
485
505
  }
486
506
  }
487
507
  if (c & 96) {
488
- const x5 = (truthy(v[5]) || truthy(v[6]));
489
- const s5 = toAttribute(x5, "aria-busy");
490
- if (s5 !== r.v5) writeAttribute(r.n, "aria-busy", r.v5 = s5);
508
+ const x6 = (truthy(v[5]) || truthy(v[6]));
509
+ const s6 = toAttribute(x6, "aria-busy");
510
+ if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
491
511
  }
492
- if (c & 7780) {
493
- const x6 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[2], v[12], v[10], v[9], v[11], v[5], v[6]]);
494
- const s6 = x6;
495
- if (s6 !== r.v6) writeAttribute(r.n, "data-ui-button-state", (r.v6 = s6) === "" ? null : s6);
512
+ if (c & 15460) {
513
+ const x7 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[2], v[13], v[11], v[10], v[12], v[5], v[6]]);
514
+ const s7 = x7;
515
+ if (s7 !== r.v7) writeAttribute(r.n, "data-ui-button-state", (r.v7 = s7) === "" ? null : s7);
496
516
  }
497
517
  if (c & 96 && !((truthy(v[5]) || truthy(v[6]))) !== !r.b0) {
498
518
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
@@ -510,7 +530,7 @@ export function createUiButton(options = {}, html) {
510
530
  const p = (c, d) => {
511
531
  if (R === null) return;
512
532
  if (R === undefined) { R = M[a](element, d); return; }
513
- if (c & 1073807504) {
533
+ if (c & 1073873040) {
514
534
  const t = (((g(0) === "card") && (v[4] !== null)) ? 0 : (g(0) === "card") ? 1 : (v[4] !== null) ? 2 : 3);
515
535
  if (t !== a) {
516
536
  dispose(R);
@@ -532,4 +552,4 @@ export function createUiButton(options = {}, html) {
532
552
  manageProps(I);
533
553
  return element;
534
554
  }
535
- defineComponent("ui-button", createUiButton, ["align","disabled","href","loading","pending","preset","rel","shape","size","square","stretch","target","tone","type","variant"]);
555
+ defineComponent("ui-button", createUiButton, ["align","disabled","href","loading","pending","preset","rel","selected","shape","size","square","stretch","target","tone","type","variant"]);
@@ -0,0 +1,50 @@
1
+ // Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
2
+ export interface UiCalendarEventMap {
3
+ input: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
+ change: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
5
+ select: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
6
+ "month-change": CustomEvent<{ readonly month: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
7
+ }
8
+ export interface UiCalendarElement extends HTMLElement {
9
+ addEventListener<K extends keyof UiCalendarEventMap>(type: K, listener: (this: UiCalendarElement, event: UiCalendarEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
10
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiCalendarElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
11
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
12
+ removeEventListener<K extends keyof UiCalendarEventMap>(type: K, listener: (this: UiCalendarElement, event: UiCalendarEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
13
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiCalendarElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
14
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
15
+ }
16
+ export interface UiCalendarProps {
17
+ allowedDates?: readonly (string)[] | null;
18
+ allowedRanges?: readonly ({ readonly start: string; readonly end: string })[] | null;
19
+ disabled?: boolean | null;
20
+ disabledDates?: readonly (string)[] | null;
21
+ disabledRanges?: readonly ({ readonly start: string; readonly end: string })[] | null;
22
+ disabledWeekdays?: readonly (number)[] | null;
23
+ emptyLabel?: string | null;
24
+ end?: string | null;
25
+ label?: string | null;
26
+ locale?: string | null;
27
+ max?: string | null;
28
+ min?: string | null;
29
+ model?: { readonly rangeBands: readonly ({ readonly start: number; readonly end: number })[]; readonly month: string; readonly title: string; readonly monthLabel: string; readonly yearLabel: string; readonly weekStartsOn: number; readonly weekendColumns: readonly (number)[]; readonly weekdays: readonly ({ readonly day: number; readonly label: string; readonly fullLabel: string })[]; readonly rows: readonly (readonly ({ readonly value: string; readonly day: number; readonly outside: boolean; readonly label: string; readonly disabled: boolean; readonly selected: boolean; readonly today: boolean; readonly rangeStart: boolean; readonly rangeEnd: boolean; readonly inRange: boolean; readonly tabIndex: number })[])[]; readonly focusDate: string; readonly empty: boolean; readonly previousMonth: string; readonly nextMonth: string; readonly months: readonly ({ readonly value: string; readonly label: string; readonly fullLabel: string; readonly current: boolean; readonly outsideBounds: boolean; readonly disabled: boolean; readonly tabIndex: number })[]; readonly years: readonly ({ readonly value: number; readonly label: string; readonly current: boolean; readonly outsideBounds: boolean; readonly disabled: boolean; readonly tabIndex: number })[]; readonly yearPageStart: number; readonly yearPageLabel: string; readonly monthRows: readonly (readonly ({ readonly value: string; readonly label: string; readonly fullLabel: string; readonly current: boolean; readonly outsideBounds: boolean; readonly disabled: boolean; readonly tabIndex: number })[])[]; readonly yearRows: readonly (readonly ({ readonly value: number; readonly label: string; readonly current: boolean; readonly outsideBounds: boolean; readonly disabled: boolean; readonly tabIndex: number })[])[] } | null;
30
+ month?: string | null;
31
+ monthLabel?: string | null;
32
+ nextLabel?: string | null;
33
+ previousLabel?: string | null;
34
+ readonly?: boolean | null;
35
+ start?: string | null;
36
+ today?: string | null;
37
+ value?: string | null;
38
+ weekStartsOn?: number | null;
39
+ yearErrorLabel?: string | null;
40
+ yearLabel?: string | null;
41
+ attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
42
+ children?: readonly (string | Node)[];
43
+ slots?: Readonly<Record<string, readonly (string | Node)[]>>;
44
+ }
45
+ export declare function createUiCalendar(props?: UiCalendarProps): UiCalendarElement;
46
+ declare global {
47
+ interface ComponentTagMap {
48
+ "ui-calendar": { element: UiCalendarElement; props: Omit<UiCalendarProps, "attributes" | "children" | "slots"> };
49
+ }
50
+ }