@threadlabs/looma 0.50.1 → 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 +14227 -6227
  47. package/docs/documentation.css +1 -1
  48. package/docs/framework-examples.mjs +30 -9
  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 UiComboboxEventMap {
3
3
  "query-change": CustomEvent<{ readonly query: string; readonly display: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  "value-change": CustomEvent<{ readonly value?: string | null; readonly query: string; readonly option?: { readonly id: string; readonly value: string; readonly label: string; readonly group?: string | null; readonly disabled?: boolean | null; readonly description?: string | null; readonly tag?: { readonly label: string; readonly tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null; readonly color?: string | null } | null } | null; readonly kind: "selection" | "clear" | "free-entry" | "create"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
@@ -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, checkReference, clearRegion, KeyedList, negate, NONCONFORMING, readDeclared, readIndex, readMember, readsChanged, rec, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeText, dispatchDeclared, detailCheck, plainObject, dispose, IndexedList, PositionalList, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, ABSENT, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, checkUnknown, warnOnce, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-combobox/ui-combobox.js";
4
4
  import "../styles/ui-combobox.css";
@@ -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 UiCompactContentEventMap {
3
3
  }
4
4
  export interface UiCompactContentElement extends HTMLDivElement {
@@ -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, readMember, toAttribute, trackContainer, writeAttribute, IndexedList, acceptProps, manageProps, generatedInputs, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-compact-content/ui-compact-content.js";
4
4
  import "../styles/ui-compact-content.css";
@@ -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 type { RequestEvent } from "@nextwebwg/html-next/generated-runtime";
3
3
  export interface UiCompactEditorEventMap {
4
4
  change: CustomEvent<{ readonly content: { readonly type: string; readonly [name: string]: unknown } }>;
@@ -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, toAttribute, writeAttribute, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, checkBoolean, checkObject, checkString, requestHost, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-compact-editor/ui-compact-editor.js";
4
4
  import "../styles/ui-compact-editor.css";
@@ -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 UiCompactMarkEventMap {
3
3
  }
4
4
  export interface UiCompactMarkElement 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, binaryValue, buildTemplate, clearRegion, readIndex, readMember, toAttribute, toText, truthy, writeAttribute, dispose, acceptProps, manageProps, generatedInputs, armElement, replaceRoot, checkInteger, checkList, checkObject, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-compact-mark.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 UiCompactNodeEventMap {
3
3
  }
4
4
  export interface UiCompactNodeElement 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, binaryValue, buildTemplate, defaultValue, readMember, toAttribute, trackContainer, writeAttribute, dispose, IndexedList, acceptProps, manageProps, generatedInputs, armElement, replaceRoot, checkObject, checkString, defineComponent, subtract } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-compact-node.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 UiContainerEventMap {
3
3
  }
4
4
  export interface UiContainerElement extends HTMLDivElement {
@@ -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, checkBoolean, checkFormat, defineComponent } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-container.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 UiContextMenuEventMap {
3
3
  open: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  close: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
@@ -1,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, dispatchDeclared, detailCheck, dispose, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-context-menu/ui-context-menu.js";
4
4
  import "../styles/ui-context-menu.css";
@@ -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 UiCoverEventMap {
3
3
  }
4
4
  export interface UiCoverElement extends HTMLDivElement {
@@ -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-cover.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 UiCurveEditorEventMap {
3
3
  input: CustomEvent<{ readonly value: string }>;
4
4
  change: CustomEvent<{ readonly value: string }>;
@@ -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, toText, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkBoolean, checkFormat, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-curve-editor/ui-curve-editor.js";
4
4
  import "../styles/ui-curve-editor.css";
@@ -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 UiCycleButtonEventMap {
3
3
  change: CustomEvent<{ readonly value: string; readonly index: number }>;
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
  import { attachGeneratedController, stateInitializers, binaryValue, buildTemplate, checkReference, defaultValue, NONCONFORMING, readDeclared, readFailing, readIndex, readMember, textCall, toAttribute, truthy, writeAttribute, computedCycle, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, inputDefault, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, ABSENT, readonlyView, checkBoolean, checkFormat, checkList, checkNumber, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-cycle-button/ui-cycle-button.js";
4
4
  import "../styles/ui-cycle-button.css";
@@ -0,0 +1,52 @@
1
+ // Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
2
+ export interface UiDateFieldEventMap {
3
+ input: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
+ change: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
5
+ "query-change": CustomEvent<{ readonly query: string }>;
6
+ "validation-change": CustomEvent<{ readonly invalid: boolean; readonly message: string }>;
7
+ }
8
+ export interface UiDateFieldElement extends HTMLSpanElement {
9
+ addEventListener<K extends keyof UiDateFieldEventMap>(type: K, listener: (this: UiDateFieldElement, event: UiDateFieldEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
10
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiDateFieldElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
11
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
12
+ removeEventListener<K extends keyof UiDateFieldEventMap>(type: K, listener: (this: UiDateFieldElement, event: UiDateFieldEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
13
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiDateFieldElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
14
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
15
+ }
16
+ export interface UiDateFieldProps {
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
+ disambiguation?: "reject" | "earlier" | "later" | "compatible" | null;
24
+ displayOptions?: { readonly dateStyle?: "full" | "long" | "medium" | "short" | null; readonly timeStyle?: "full" | "long" | "medium" | "short" | null; readonly weekday?: "long" | "short" | "narrow" | null; readonly era?: "long" | "short" | "narrow" | null; readonly year?: "numeric" | "2-digit" | null; readonly month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | null; readonly day?: "numeric" | "2-digit" | null; readonly hour?: "numeric" | "2-digit" | null; readonly minute?: "numeric" | "2-digit" | null; readonly second?: "numeric" | "2-digit" | null; readonly timeZoneName?: "long" | "short" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | null; readonly dayPeriod?: "long" | "short" | "narrow" | null; readonly hourCycle?: "h11" | "h12" | "h23" | "h24" | null; readonly localeMatcher?: "lookup" | "best fit" | null; readonly formatMatcher?: "basic" | "best fit" | null; readonly fractionalSecondDigits?: number | null; readonly hour12?: boolean | null; readonly numberingSystem?: string | null } | null;
25
+ form?: string | null;
26
+ granularity?: "minute" | "second" | null;
27
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | null;
28
+ inputId?: string | null;
29
+ invalid?: boolean | null;
30
+ label?: string | null;
31
+ locale?: string | null;
32
+ max?: string | null;
33
+ min?: string | null;
34
+ name?: string | null;
35
+ placeholder?: string | null;
36
+ readonly?: boolean | null;
37
+ required?: boolean | null;
38
+ size?: "sm" | "md" | "lg" | null;
39
+ timeZone?: string | null;
40
+ type?: "date" | "time" | "datetime-local" | "instant" | "zoned" | null;
41
+ value?: string | null;
42
+ valueFormat?: "iso" | "space" | null;
43
+ attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
44
+ children?: readonly (string | Node)[];
45
+ slots?: Readonly<Record<string, readonly (string | Node)[]>>;
46
+ }
47
+ export declare function createUiDateField(props?: UiDateFieldProps): UiDateFieldElement;
48
+ declare global {
49
+ interface ComponentTagMap {
50
+ "ui-date-field": { element: UiDateFieldElement; props: Omit<UiDateFieldProps, "attributes" | "children" | "slots"> };
51
+ }
52
+ }
@@ -0,0 +1,208 @@
1
+ // Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, stateInitializers, binaryValue, buildTemplate, checkReference, NONCONFORMING, readIndex, readMember, recordValue, textCall, toAttribute, truthy, writeAttribute, computedCycle, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, readonlyView, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
+ import * as controller from "../components/ui-date-field/ui-date-field.js";
4
+ import "../styles/ui-date-field.css";
5
+
6
+ const T0 = ["",[],"\n ",["ui-input",["data-date-fallback","","step","any"]],"\n \n ",["ui-input",["data-date-editor","","data-ui-field-control","","spellcheck","false","autocomplete","off"]],"\n ",["input",["data-date-value","","data-ui-field-value","","type","hidden"]],"\n "];
7
+ let P0;
8
+ const S = { n: ["enhanced","current","editingPlaceholder","segments","localInvalid","nativeType"], t: ["b","s","s",["l",["o",["placeholder","s","pattern","s","literal","s"]]],"b","?"], f: import.meta.url, g: "ui-date-field", k: 5, 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] }, x: dispatchDeclared, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs, i: [false, null, "", [], false] };
9
+ const D = { g: "ui-date-field", props: { "allowedDates": { "required":false, c: checkList(checkString), j: 1, m: ["l","s"] }, "allowedRanges": { "required":false, c: checkList(checkObject([["start", checkString, false], ["end", checkString, false]], false)), j: 1, m: ["l",["o",["start","s","end","s"]]] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disabledDates": { "required":false,"default":[], c: checkList(checkString), j: 1, m: ["l","s"] }, "disabledRanges": { "required":false,"default":[], c: checkList(checkObject([["start", checkString, false], ["end", checkString, false]], false)), j: 1, m: ["l",["o",["start","s","end","s"]]] }, "disabledWeekdays": { "required":false,"default":[], c: checkList(checkInteger), j: 1, m: ["l","i"] }, "disambiguation": { "required":false,"values":["reject","earlier","later","compatible"],"default":"reject", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "displayOptions": { "required":false, c: checkObject([["dateStyle", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["full","long","medium","short"]}), true], ["timeStyle", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["full","long","medium","short"]}), true], ["weekday", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["long","short","narrow"]}), true], ["era", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["long","short","narrow"]}), true], ["year", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["numeric","2-digit"]}), true], ["month", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["numeric","2-digit","long","short","narrow"]}), true], ["day", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["numeric","2-digit"]}), true], ["hour", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["numeric","2-digit"]}), true], ["minute", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["numeric","2-digit"]}), true], ["second", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["numeric","2-digit"]}), true], ["timeZoneName", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["long","short","shortOffset","longOffset","shortGeneric","longGeneric"]}), true], ["dayPeriod", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["long","short","narrow"]}), true], ["hourCycle", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["h11","h12","h23","h24"]}), true], ["localeMatcher", checkConstrained(checkString, "string", {"values":["lookup","best fit"]}), true], ["formatMatcher", checkConstrained(checkString, "string", {"values":["basic","best fit"]}), true], ["fractionalSecondDigits", checkConstrained(checkInteger, "integer", {"min":1,"max":3}), true], ["hour12", checkBoolean, true], ["numberingSystem", checkString, true]], false), j: 1, m: ["o",["dateStyle",["p",formatOf(keywordFormat)],"timeStyle",["p",formatOf(keywordFormat)],"weekday",["p",formatOf(keywordFormat)],"era",["p",formatOf(keywordFormat)],"year",["p",formatOf(keywordFormat)],"month",["p",formatOf(keywordFormat)],"day",["p",formatOf(keywordFormat)],"hour",["p",formatOf(keywordFormat)],"minute",["p",formatOf(keywordFormat)],"second",["p",formatOf(keywordFormat)],"timeZoneName",["p",formatOf(keywordFormat)],"dayPeriod",["p",formatOf(keywordFormat)],"hourCycle",["p",formatOf(keywordFormat)],"localeMatcher","s","formatMatcher","s","fractionalSecondDigits","i","hour12","b","numberingSystem","s"]] }, "form": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "granularity": { "required":false,"values":["minute","second"],"default":"minute", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "hourCycle": { "required":false,"values":["h11","h12","h23","h24"], c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "inputId": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "invalid": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "label": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "locale": { "required":false,"default":"en-US", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "min": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "placeholder": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "readonly": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "required": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "timeZone": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "type": { "required":false,"values":["date","time","datetime-local","instant","zoned"],"default":"date", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "value": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "valueFormat": { "required":false,"values":["iso","space"],"default":"iso", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
10
+ const C = (host) => activateModule(controller, host);
11
+
12
+ export function createUiDateField(options = {}, html) {
13
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
14
+ 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
+ element.setAttribute("data-component", "ui-date-field");
20
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
21
+ const v = [false, null, "", [], false, undefined, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
22
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
23
+ const CS = [];
24
+ const inputStatus = (j) => { if (j === 1) return E.status(j); if (j >= 5 && j < 6) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 6) return awaitInput(B, "allowedDates", true); if (j === 7) return awaitInput(B, "allowedRanges", true); if (j === 8) return awaitInput(B, "disabled", true); if (j === 9) return awaitInput(B, "disabledDates", true); if (j === 10) return awaitInput(B, "disabledRanges", true); if (j === 11) return awaitInput(B, "disabledWeekdays", true); if (j === 12) return awaitInput(B, "disambiguation", true); if (j === 13) return awaitInput(B, "displayOptions", true); if (j === 14) return awaitInput(B, "form", true); if (j === 15) return awaitInput(B, "granularity", true); if (j === 16) return awaitInput(B, "hourCycle", true); if (j === 17) return awaitInput(B, "inputId", true); if (j === 18) return awaitInput(B, "invalid", true); if (j === 19) return awaitInput(B, "label", true); if (j === 20) return awaitInput(B, "locale", true); if (j === 21) return awaitInput(B, "max", true); if (j === 22) return awaitInput(B, "min", true); if (j === 23) return awaitInput(B, "name", true); if (j === 24) return awaitInput(B, "placeholder", true); if (j === 25) return awaitInput(B, "readonly", true); if (j === 26) return awaitInput(B, "required", true); if (j === 27) return awaitInput(B, "size", true); if (j === 28) return awaitInput(B, "timeZone", true); if (j === 29) return awaitInput(B, "type", true); if (j === 30) return awaitInput(B, "value", true); if (j === 31) return awaitInput(B, "valueFormat", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
25
+ const X = { e: 0, g: (j) => g(j), w: new Set(), a: CS, i: inputStatus };
26
+ const ke = [];
27
+ const K = [() => readIndex(recordValue(["date","time","datetime-local","instant","zoned"], ["date", readIndex({ "true": "text", "false": "time" }, textCall("concat", [binaryValue(">", readMember(inputRead(E.read(1), inputStatus(1)), "length"), 12)])), readIndex({ "true": "text", "false": "datetime-local" }, textCall("concat", [((inputRead(v[31], inputStatus(31)) === "space") || truthy(binaryValue(">", readMember(inputRead(E.read(1), inputStatus(1)), "length"), 23)))])), "text", "text"]), inputRead(v[29], inputStatus(29)))];
28
+ const g = (j) => {
29
+ const i = j - 5;
30
+ if (ke[i] === X.e) return v[j];
31
+ if (ke[i] === -1) computedCycle();
32
+ ke[i] = -1;
33
+ let next;
34
+ try { const result = evaluateInput(K[i], CS[j], NONCONFORMING), previousStatus = CS[j]; CS[j] = result.status; notifyPropertySet(CS, j, previousStatus, result.status, undefined); next = !result.status.ready ? null : result.value === NONCONFORMING ? v[j] : result.value; } catch (error) { ke[i] = undefined; throw error; }
35
+ ke[i] = X.e;
36
+ const previous = v[j];
37
+ if (!Object.is(previous, next)) { v[j] = next; X.n?.(j, previous, next); }
38
+ return next;
39
+ };
40
+ const E = stateInitializers(S, v, X, { 1: () => inputRead(v[30], inputStatus(30)) });
41
+ const p0 = (r, c, d) => {
42
+ if (c & 1073872897) {
43
+ const x0 = readIndex({ "true": v[17], "false": null }, textCall("concat", [(!v[0] && (v[17] !== ""))]));
44
+ if (x0 !== NONCONFORMING) {
45
+ const s0 = toAttribute(x0, "id");
46
+ if (s0 !== r.v0) writeAttribute(r.a0, "id", r.v0 = s0);
47
+ }
48
+ }
49
+ if (c & 1610612738) {
50
+ const x1 = g(5);
51
+ if (x1 !== NONCONFORMING) {
52
+ const s1 = toAttribute(x1, "type");
53
+ if (s1 !== r.v1) writeAttribute(r.a0, "type", r.v1 = s1);
54
+ }
55
+ }
56
+ if (c & 2) {
57
+ const x2 = (checkReference(S, v[1], "s", "expression:$current:current", "Reference `current` must satisfy string.") ? E.read(1) : NONCONFORMING);
58
+ if (x2 !== NONCONFORMING) {
59
+ const s2 = toAttribute(x2, "value");
60
+ if (s2 !== r.v2) writeAttribute(r.a0, "value", r.v2 = s2);
61
+ }
62
+ }
63
+ if (c & 8388608) {
64
+ const x3 = v[23];
65
+ const s3 = toAttribute(x3, "name");
66
+ if (s3 !== r.v3) writeAttribute(r.a0, "name", r.v3 = s3);
67
+ const s24 = toAttribute(x3, "name");
68
+ if (s24 !== r.v24) writeAttribute(r.a2, "name", r.v24 = s24);
69
+ }
70
+ if (c & 1073758208) {
71
+ const x4 = readIndex({ "true": v[14], "false": null }, textCall("concat", [(v[14] !== "")]));
72
+ if (x4 !== NONCONFORMING) {
73
+ const s4 = toAttribute(x4, "form");
74
+ if (s4 !== r.v4) writeAttribute(r.a0, "form", r.v4 = s4);
75
+ }
76
+ }
77
+ if (c & 524288) {
78
+ const x5 = v[19];
79
+ const s5 = toAttribute(x5, "aria-label");
80
+ if (s5 !== r.v5) writeAttribute(r.a0, "aria-label", r.v5 = s5);
81
+ }
82
+ if (c & 1207959552) {
83
+ const x6 = v[27];
84
+ const s6 = toAttribute(x6, "size");
85
+ if (s6 !== r.v6) writeAttribute(r.a0, "size", r.v6 = s6);
86
+ }
87
+ if (c & 1) {
88
+ const x7 = v[0];
89
+ const s7 = toAttribute(x7, "hidden");
90
+ if (s7 !== r.v7) writeAttribute(r.a0, "hidden", r.v7 = s7);
91
+ }
92
+ if (c & 257) {
93
+ const x8 = (truthy(v[8]) || v[0]);
94
+ const s8 = toAttribute(x8, "disabled");
95
+ if (s8 !== r.v8) writeAttribute(r.a0, "disabled", r.v8 = s8);
96
+ }
97
+ if (c & 33554432) {
98
+ const x9 = v[25];
99
+ const s9 = toAttribute(x9, "readonly");
100
+ if (s9 !== r.v9) writeAttribute(r.a0, "readonly", r.v9 = s9);
101
+ }
102
+ if (c & 67108864) {
103
+ const x10 = v[26];
104
+ const s10 = toAttribute(x10, "required");
105
+ if (s10 !== r.v10) writeAttribute(r.a0, "required", r.v10 = s10);
106
+ }
107
+ if (c & 4194304) {
108
+ const x11 = v[22];
109
+ const s11 = toAttribute(x11, "min");
110
+ if (s11 !== r.v11) writeAttribute(r.a0, "min", r.v11 = s11);
111
+ }
112
+ if (c & 2097152) {
113
+ const x12 = v[21];
114
+ const s12 = toAttribute(x12, "max");
115
+ if (s12 !== r.v12) writeAttribute(r.a0, "max", r.v12 = s12);
116
+ }
117
+ if (c & 1073741832) {
118
+ const x13 = v[3];
119
+ const s13 = toAttribute(x13, "segments");
120
+ if (s13 !== r.v13) writeAttribute(r.a1, "segments", r.v13 = s13);
121
+ }
122
+ if (c & 1073758208) {
123
+ const x14 = readIndex({ "true": v[14], "false": null }, textCall("concat", [(v[14] !== "")]));
124
+ if (x14 !== NONCONFORMING) {
125
+ const s14 = toAttribute(x14, "form");
126
+ if (s14 !== r.v14) writeAttribute(r.a1, "form", r.v14 = s14);
127
+ }
128
+ if (x14 !== NONCONFORMING) {
129
+ const s25 = toAttribute(x14, "form");
130
+ if (s25 !== r.v25) writeAttribute(r.a2, "form", r.v25 = s25);
131
+ }
132
+ }
133
+ if (c & 1073872897) {
134
+ const x15 = readIndex({ "true": v[17], "false": null }, textCall("concat", [(v[0] && (v[17] !== ""))]));
135
+ if (x15 !== NONCONFORMING) {
136
+ const s15 = toAttribute(x15, "id");
137
+ if (s15 !== r.v15) writeAttribute(r.a1, "id", r.v15 = s15);
138
+ }
139
+ }
140
+ if (c & 524288) {
141
+ const x16 = v[19];
142
+ const s16 = toAttribute(x16, "aria-label");
143
+ if (s16 !== r.v16) writeAttribute(r.a1, "aria-label", r.v16 = s16);
144
+ }
145
+ if (c & 1207959552) {
146
+ const x17 = v[27];
147
+ const s17 = toAttribute(x17, "size");
148
+ if (s17 !== r.v17) writeAttribute(r.a1, "size", r.v17 = s17);
149
+ }
150
+ if (c & 1090519044) {
151
+ const x18 = readIndex({ "true": v[24], "false": v[2] }, textCall("concat", [(v[24] !== "")]));
152
+ if (x18 !== NONCONFORMING) {
153
+ const s18 = toAttribute(x18, "placeholder");
154
+ if (s18 !== r.v18) writeAttribute(r.a1, "placeholder", r.v18 = s18);
155
+ }
156
+ }
157
+ if (c & 1) {
158
+ const x19 = !v[0];
159
+ const s19 = toAttribute(x19, "hidden");
160
+ if (s19 !== r.v19) writeAttribute(r.a1, "hidden", r.v19 = s19);
161
+ const x20 = hostState(["enhanced"], [v[0]]);
162
+ const s28 = x20;
163
+ if (s28 !== r.v28) writeAttribute(r.n, "data-ui-date-field-state", (r.v28 = s28) === "" ? null : s28);
164
+ }
165
+ if (c & 257) {
166
+ const x21 = (truthy(v[8]) || !v[0]);
167
+ const s20 = toAttribute(x21, "disabled");
168
+ if (s20 !== r.v20) writeAttribute(r.a1, "disabled", r.v20 = s20);
169
+ }
170
+ if (c & 33554432) {
171
+ const x22 = v[25];
172
+ const s21 = toAttribute(x22, "readonly");
173
+ if (s21 !== r.v21) writeAttribute(r.a1, "readonly", r.v21 = s21);
174
+ }
175
+ if (c & 67108864) {
176
+ const x23 = v[26];
177
+ const s22 = toAttribute(x23, "required");
178
+ if (s22 !== r.v22) writeAttribute(r.a1, "required", r.v22 = s22);
179
+ }
180
+ if (c & 262160) {
181
+ const x24 = (truthy(v[18]) || v[4]);
182
+ const s23 = toAttribute(x24, "invalid");
183
+ if (s23 !== r.v23) writeAttribute(r.a1, "invalid", r.v23 = s23);
184
+ }
185
+ if (c & 2) {
186
+ const x25 = (checkReference(S, v[1], "s", "expression:$current:current", "Reference `current` must satisfy string.") ? E.read(1) : NONCONFORMING);
187
+ if (x25 !== NONCONFORMING) {
188
+ const s26 = toAttribute(x25, "value");
189
+ if (s26 !== r.v26) writeAttribute(r.a2, "value", r.v26 = s26);
190
+ }
191
+ }
192
+ if (c & 257) {
193
+ const x26 = (truthy(v[8]) || !v[0]);
194
+ const s27 = toAttribute(x26, "disabled");
195
+ if (s27 !== r.v27) writeAttribute(r.a2, "disabled", r.v27 = s27);
196
+ }
197
+ };
198
+ const t0 = element.firstChild.nextSibling;
199
+ const t1 = t0.nextSibling.nextSibling;
200
+ const t2 = t1.nextSibling.nextSibling;
201
+ const R = { n: element, a0: t0, a1: t1, a2: t2, 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: null, v27: null, v28: undefined };
202
+ const I = { B, U: E };
203
+ I.R = new Set();
204
+ 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);
205
+ manageProps(I);
206
+ return element;
207
+ }
208
+ defineComponent("ui-date-field", createUiDateField, ["allowedDates","allowedRanges","disabled","disabledDates","disabledRanges","disabledWeekdays","disambiguation","displayOptions","form","granularity","hourCycle","inputId","invalid","label","locale","max","min","name","placeholder","readonly","required","size","timeZone","type","value","valueFormat"]);
@@ -0,0 +1,63 @@
1
+ // Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
2
+ export interface UiDatePickerEventMap {
3
+ input: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
+ change: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
5
+ "query-change": CustomEvent<{ readonly query: string }>;
6
+ "validation-change": CustomEvent<{ readonly invalid: boolean; readonly message: string }>;
7
+ open: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
8
+ close: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
9
+ }
10
+ export interface UiDatePickerElement extends HTMLSpanElement {
11
+ addEventListener<K extends keyof UiDatePickerEventMap>(type: K, listener: (this: UiDatePickerElement, event: UiDatePickerEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
12
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiDatePickerElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
13
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
14
+ removeEventListener<K extends keyof UiDatePickerEventMap>(type: K, listener: (this: UiDatePickerElement, event: UiDatePickerEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
15
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiDatePickerElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
16
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
17
+ }
18
+ export interface UiDatePickerProps {
19
+ allowedDates?: readonly (string)[] | null;
20
+ allowedRanges?: readonly ({ readonly start: string; readonly end: string })[] | null;
21
+ disabled?: boolean | null;
22
+ disabledDates?: readonly (string)[] | null;
23
+ disabledRanges?: readonly ({ readonly start: string; readonly end: string })[] | null;
24
+ disabledWeekdays?: readonly (number)[] | null;
25
+ disambiguation?: "reject" | "earlier" | "later" | "compatible" | null;
26
+ displayOptions?: { readonly dateStyle?: "full" | "long" | "medium" | "short" | null; readonly timeStyle?: "full" | "long" | "medium" | "short" | null; readonly weekday?: "long" | "short" | "narrow" | null; readonly era?: "long" | "short" | "narrow" | null; readonly year?: "numeric" | "2-digit" | null; readonly month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | null; readonly day?: "numeric" | "2-digit" | null; readonly hour?: "numeric" | "2-digit" | null; readonly minute?: "numeric" | "2-digit" | null; readonly second?: "numeric" | "2-digit" | null; readonly timeZoneName?: "long" | "short" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | null; readonly dayPeriod?: "long" | "short" | "narrow" | null; readonly hourCycle?: "h11" | "h12" | "h23" | "h24" | null; readonly localeMatcher?: "lookup" | "best fit" | null; readonly formatMatcher?: "basic" | "best fit" | null; readonly fractionalSecondDigits?: number | null; readonly hour12?: boolean | null; readonly numberingSystem?: string | null } | null;
27
+ form?: string | null;
28
+ granularity?: "minute" | "second" | null;
29
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | null;
30
+ inputId?: string | null;
31
+ invalid?: boolean | null;
32
+ label?: string | null;
33
+ locale?: string | null;
34
+ max?: string | null;
35
+ min?: string | null;
36
+ model?: { readonly date: string; readonly time: string; readonly minDate: string; readonly maxDate: string; readonly weekStartsOn: number; readonly allowedDates: readonly (string)[]; readonly allowedRanges: readonly ({ readonly start: string; readonly end: string })[] } | null;
37
+ monthLabel?: string | null;
38
+ name?: string | null;
39
+ nextLabel?: string | null;
40
+ pickerLabel?: string | null;
41
+ placeholder?: string | null;
42
+ previousLabel?: string | null;
43
+ readonly?: boolean | null;
44
+ required?: boolean | null;
45
+ size?: "sm" | "md" | "lg" | null;
46
+ timeLabel?: string | null;
47
+ timeZone?: string | null;
48
+ today?: string | null;
49
+ type?: "date" | "datetime-local" | "instant" | "zoned" | null;
50
+ value?: string | null;
51
+ valueFormat?: "iso" | "space" | null;
52
+ weekStartsOn?: number | null;
53
+ yearLabel?: string | null;
54
+ attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
55
+ children?: readonly (string | Node)[];
56
+ slots?: Readonly<Record<string, readonly (string | Node)[]>>;
57
+ }
58
+ export declare function createUiDatePicker(props?: UiDatePickerProps): UiDatePickerElement;
59
+ declare global {
60
+ interface ComponentTagMap {
61
+ "ui-date-picker": { element: UiDatePickerElement; props: Omit<UiDatePickerProps, "attributes" | "children" | "slots"> };
62
+ }
63
+ }