@threadlabs/looma 0.52.11 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/components/shared/overlay.js +7 -0
  2. package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
  3. package/components/ui-meter/ui-meter.html +1 -1
  4. package/dist/index.js +1 -1
  5. package/docs/catalog.json +1 -1
  6. package/editor/components.css +19 -19
  7. package/editor/index.js +1125 -853
  8. package/package.json +3 -3
  9. package/styles/ui-action-bar.css +1 -1
  10. package/styles/ui-affordance-scope.css +1 -1
  11. package/styles/ui-avatar-group.css +1 -1
  12. package/styles/ui-avatar.css +1 -1
  13. package/styles/ui-badge.css +1 -1
  14. package/styles/ui-breadcrumb-item.css +1 -1
  15. package/styles/ui-breadcrumbs.css +1 -1
  16. package/styles/ui-button.css +1 -1
  17. package/styles/ui-calendar.css +1 -1
  18. package/styles/ui-callout.css +1 -1
  19. package/styles/ui-card-group.css +1 -1
  20. package/styles/ui-card.css +1 -1
  21. package/styles/ui-checkbox.css +1 -1
  22. package/styles/ui-cluster.css +1 -1
  23. package/styles/ui-color-picker.css +1 -1
  24. package/styles/ui-column.css +1 -1
  25. package/styles/ui-combobox.css +1 -1
  26. package/styles/ui-compact-content.css +1 -1
  27. package/styles/ui-compact-editor.css +1 -1
  28. package/styles/ui-compact-mark.css +1 -1
  29. package/styles/ui-compact-node.css +1 -1
  30. package/styles/ui-container.css +1 -1
  31. package/styles/ui-context-menu.css +1 -1
  32. package/styles/ui-cover.css +1 -1
  33. package/styles/ui-curve-editor.css +1 -1
  34. package/styles/ui-cycle-button.css +1 -1
  35. package/styles/ui-data-table.css +1 -1
  36. package/styles/ui-date-field.css +1 -1
  37. package/styles/ui-date-picker.css +1 -1
  38. package/styles/ui-date-range-picker.css +1 -1
  39. package/styles/ui-description-item.css +1 -1
  40. package/styles/ui-description-list.css +1 -1
  41. package/styles/ui-dialog.css +1 -1
  42. package/styles/ui-disclosure.css +1 -1
  43. package/styles/ui-editable.css +1 -1
  44. package/styles/ui-editor-block-actions.css +1 -1
  45. package/styles/ui-editor-chip-editor.css +1 -1
  46. package/styles/ui-editor-code-language.css +1 -1
  47. package/styles/ui-editor-footnote-editor.css +1 -1
  48. package/styles/ui-editor-formatting-tools.css +1 -1
  49. package/styles/ui-editor-image-toolbar.css +1 -1
  50. package/styles/ui-editor-insert-table-grid.css +1 -1
  51. package/styles/ui-editor-link-card.css +1 -1
  52. package/styles/ui-editor-link-form.css +1 -1
  53. package/styles/ui-editor-mention-menu-item.css +1 -1
  54. package/styles/ui-editor-mention-menu.css +1 -1
  55. package/styles/ui-editor-slash-menu-group.css +1 -1
  56. package/styles/ui-editor-slash-menu-item.css +1 -1
  57. package/styles/ui-editor-slash-menu.css +1 -1
  58. package/styles/ui-editor-surface.css +1 -1
  59. package/styles/ui-editor-table-context-menu.css +1 -1
  60. package/styles/ui-editor-table-overlay.css +1 -1
  61. package/styles/ui-editor-table-toolbar.css +1 -1
  62. package/styles/ui-editor-toolbar.css +1 -1
  63. package/styles/ui-editor.css +1 -1
  64. package/styles/ui-file-input.css +1 -1
  65. package/styles/ui-floating-action-button.css +1 -1
  66. package/styles/ui-form-field.css +1 -1
  67. package/styles/ui-grid.css +1 -1
  68. package/styles/ui-icon-button.css +1 -1
  69. package/styles/ui-icon.css +1 -1
  70. package/styles/ui-image.css +1 -1
  71. package/styles/ui-input-group.css +1 -1
  72. package/styles/ui-input.css +1 -1
  73. package/styles/ui-light-editor.css +1 -1
  74. package/styles/ui-list-item.css +1 -1
  75. package/styles/ui-list.css +1 -1
  76. package/styles/ui-listbox.css +1 -1
  77. package/styles/ui-menu-group.css +1 -1
  78. package/styles/ui-menu-item.css +1 -1
  79. package/styles/ui-menu.css +1 -1
  80. package/styles/ui-meter.css +1 -1
  81. package/styles/ui-nav-item.css +1 -1
  82. package/styles/ui-notice-stripe.css +1 -1
  83. package/styles/ui-number-input.css +1 -1
  84. package/styles/ui-page-header.css +1 -1
  85. package/styles/ui-pagination.css +1 -1
  86. package/styles/ui-popover.css +1 -1
  87. package/styles/ui-radio-group.css +1 -1
  88. package/styles/ui-radio.css +1 -1
  89. package/styles/ui-reel.css +1 -1
  90. package/styles/ui-scroll-area.css +1 -1
  91. package/styles/ui-search-result-row.css +1 -1
  92. package/styles/ui-search-shell.css +1 -1
  93. package/styles/ui-section.css +1 -1
  94. package/styles/ui-segmented-control.css +1 -1
  95. package/styles/ui-select.css +1 -1
  96. package/styles/ui-separator.css +1 -1
  97. package/styles/ui-sidebar.css +1 -1
  98. package/styles/ui-site-header.css +1 -1
  99. package/styles/ui-skeleton.css +1 -1
  100. package/styles/ui-slider.css +1 -1
  101. package/styles/ui-spinner.css +1 -1
  102. package/styles/ui-stack.css +1 -1
  103. package/styles/ui-status-message.css +1 -1
  104. package/styles/ui-swatch.css +1 -1
  105. package/styles/ui-switch.css +1 -1
  106. package/styles/ui-switcher.css +1 -1
  107. package/styles/ui-table.css +1 -1
  108. package/styles/ui-tabs.css +1 -1
  109. package/styles/ui-text.css +1 -1
  110. package/styles/ui-textarea.css +1 -1
  111. package/styles/ui-time-field.css +1 -1
  112. package/styles/ui-time-picker.css +1 -1
  113. package/styles/ui-toast-region.css +1 -1
  114. package/styles/ui-toast.css +1 -1
  115. package/styles/ui-tooltip.css +1 -1
  116. package/styles/ui-top-bar.css +1 -1
  117. package/styles/ui-tree-item.css +1 -1
  118. package/styles/ui-tree.css +1 -1
  119. package/styles/ui-wizard.css +1 -1
  120. package/vanilla/UiActionBar.d.ts +1 -1
  121. package/vanilla/UiActionBar.js +14 -12
  122. package/vanilla/UiAffordanceScope.d.ts +1 -1
  123. package/vanilla/UiAffordanceScope.js +13 -11
  124. package/vanilla/UiAvatar.d.ts +1 -1
  125. package/vanilla/UiAvatar.js +27 -25
  126. package/vanilla/UiAvatarGroup.d.ts +1 -1
  127. package/vanilla/UiAvatarGroup.js +26 -23
  128. package/vanilla/UiBadge.d.ts +1 -1
  129. package/vanilla/UiBadge.js +14 -12
  130. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  131. package/vanilla/UiBreadcrumbItem.js +14 -13
  132. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  133. package/vanilla/UiBreadcrumbs.js +10 -10
  134. package/vanilla/UiButton.d.ts +1 -1
  135. package/vanilla/UiButton.js +187 -244
  136. package/vanilla/UiCalendar.d.ts +1 -1
  137. package/vanilla/UiCalendar.js +272 -193
  138. package/vanilla/UiCallout.d.ts +1 -1
  139. package/vanilla/UiCallout.js +32 -27
  140. package/vanilla/UiCard.d.ts +1 -1
  141. package/vanilla/UiCard.js +72 -69
  142. package/vanilla/UiCardGroup.d.ts +1 -1
  143. package/vanilla/UiCardGroup.js +17 -15
  144. package/vanilla/UiCheckbox.d.ts +1 -1
  145. package/vanilla/UiCheckbox.js +32 -30
  146. package/vanilla/UiCluster.d.ts +1 -1
  147. package/vanilla/UiCluster.js +20 -18
  148. package/vanilla/UiColorPicker.d.ts +1 -1
  149. package/vanilla/UiColorPicker.js +22 -20
  150. package/vanilla/UiColumn.d.ts +2 -2
  151. package/vanilla/UiColumn.js +18 -15
  152. package/vanilla/UiCombobox.d.ts +3 -3
  153. package/vanilla/UiCombobox.js +237 -174
  154. package/vanilla/UiCompactContent.d.ts +1 -1
  155. package/vanilla/UiCompactContent.js +13 -8
  156. package/vanilla/UiCompactEditor.d.ts +1 -1
  157. package/vanilla/UiCompactEditor.js +17 -12
  158. package/vanilla/UiCompactMark.d.ts +1 -1
  159. package/vanilla/UiCompactMark.js +47 -45
  160. package/vanilla/UiCompactNode.d.ts +2 -2
  161. package/vanilla/UiCompactNode.js +37 -33
  162. package/vanilla/UiContainer.d.ts +1 -1
  163. package/vanilla/UiContainer.js +13 -11
  164. package/vanilla/UiContextMenu.d.ts +1 -1
  165. package/vanilla/UiContextMenu.js +11 -9
  166. package/vanilla/UiCover.d.ts +1 -1
  167. package/vanilla/UiCover.js +13 -11
  168. package/vanilla/UiCurveEditor.d.ts +1 -1
  169. package/vanilla/UiCurveEditor.js +40 -38
  170. package/vanilla/UiCycleButton.d.ts +2 -2
  171. package/vanilla/UiCycleButton.js +31 -26
  172. package/vanilla/UiDataTable.d.ts +1 -1
  173. package/vanilla/UiDataTable.js +26 -20
  174. package/vanilla/UiDateField.d.ts +1 -1
  175. package/vanilla/UiDateField.js +78 -75
  176. package/vanilla/UiDatePicker.d.ts +1 -1
  177. package/vanilla/UiDatePicker.js +155 -149
  178. package/vanilla/UiDateRangePicker.d.ts +1 -1
  179. package/vanilla/UiDateRangePicker.js +136 -128
  180. package/vanilla/UiDescriptionItem.d.ts +1 -1
  181. package/vanilla/UiDescriptionItem.js +13 -11
  182. package/vanilla/UiDescriptionList.d.ts +1 -1
  183. package/vanilla/UiDescriptionList.js +13 -11
  184. package/vanilla/UiDialog.d.ts +1 -1
  185. package/vanilla/UiDialog.js +14 -14
  186. package/vanilla/UiDisclosure.d.ts +1 -1
  187. package/vanilla/UiDisclosure.js +28 -26
  188. package/vanilla/UiEditable.d.ts +1 -1
  189. package/vanilla/UiEditable.js +29 -27
  190. package/vanilla/UiEditor.d.ts +1 -1
  191. package/vanilla/UiEditor.js +62 -58
  192. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  193. package/vanilla/UiEditorBlockActions.js +14 -12
  194. package/vanilla/UiEditorChipEditor.d.ts +1 -1
  195. package/vanilla/UiEditorChipEditor.js +22 -14
  196. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  197. package/vanilla/UiEditorCodeLanguage.js +23 -16
  198. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  199. package/vanilla/UiEditorFootnoteEditor.js +17 -9
  200. package/vanilla/UiEditorFormattingTools.d.ts +1 -1
  201. package/vanilla/UiEditorFormattingTools.js +108 -71
  202. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  203. package/vanilla/UiEditorImageToolbar.js +68 -66
  204. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  205. package/vanilla/UiEditorInsertTableGrid.js +50 -35
  206. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  207. package/vanilla/UiEditorLinkCard.js +27 -25
  208. package/vanilla/UiEditorLinkForm.d.ts +1 -1
  209. package/vanilla/UiEditorLinkForm.js +79 -57
  210. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  211. package/vanilla/UiEditorMentionMenu.js +63 -44
  212. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  213. package/vanilla/UiEditorMentionMenuItem.js +22 -16
  214. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  215. package/vanilla/UiEditorSlashMenu.js +52 -33
  216. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  217. package/vanilla/UiEditorSlashMenuGroup.js +19 -14
  218. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  219. package/vanilla/UiEditorSlashMenuItem.js +27 -25
  220. package/vanilla/UiEditorSurface.d.ts +1 -1
  221. package/vanilla/UiEditorSurface.js +13 -11
  222. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  223. package/vanilla/UiEditorTableContextMenu.js +81 -52
  224. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  225. package/vanilla/UiEditorTableOverlay.js +107 -68
  226. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  227. package/vanilla/UiEditorTableToolbar.js +121 -70
  228. package/vanilla/UiEditorToolbar.d.ts +1 -1
  229. package/vanilla/UiEditorToolbar.js +20 -12
  230. package/vanilla/UiFileInput.d.ts +1 -1
  231. package/vanilla/UiFileInput.js +94 -80
  232. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  233. package/vanilla/UiFloatingActionButton.js +21 -20
  234. package/vanilla/UiFormField.d.ts +1 -1
  235. package/vanilla/UiFormField.js +21 -19
  236. package/vanilla/UiGrid.d.ts +1 -1
  237. package/vanilla/UiGrid.js +26 -23
  238. package/vanilla/UiIcon.d.ts +1 -1
  239. package/vanilla/UiIcon.js +20 -15
  240. package/vanilla/UiIconButton.d.ts +1 -1
  241. package/vanilla/UiIconButton.js +35 -43
  242. package/vanilla/UiImage.d.ts +1 -1
  243. package/vanilla/UiImage.js +16 -14
  244. package/vanilla/UiInput.d.ts +1 -1
  245. package/vanilla/UiInput.js +29 -35
  246. package/vanilla/UiInputGroup.d.ts +1 -1
  247. package/vanilla/UiInputGroup.js +16 -14
  248. package/vanilla/UiLightEditor.d.ts +1 -1
  249. package/vanilla/UiLightEditor.js +29 -27
  250. package/vanilla/UiList.d.ts +1 -1
  251. package/vanilla/UiList.js +33 -27
  252. package/vanilla/UiListItem.d.ts +1 -1
  253. package/vanilla/UiListItem.js +12 -12
  254. package/vanilla/UiListbox.d.ts +1 -1
  255. package/vanilla/UiListbox.js +90 -80
  256. package/vanilla/UiMenu.d.ts +1 -1
  257. package/vanilla/UiMenu.js +20 -12
  258. package/vanilla/UiMenuGroup.d.ts +1 -1
  259. package/vanilla/UiMenuGroup.js +14 -11
  260. package/vanilla/UiMenuItem.d.ts +1 -1
  261. package/vanilla/UiMenuItem.js +74 -75
  262. package/vanilla/UiMeter.d.ts +1 -1
  263. package/vanilla/UiMeter.js +67 -62
  264. package/vanilla/UiNavItem.d.ts +1 -1
  265. package/vanilla/UiNavItem.js +63 -65
  266. package/vanilla/UiNoticeStripe.d.ts +1 -1
  267. package/vanilla/UiNoticeStripe.js +16 -16
  268. package/vanilla/UiNumberInput.d.ts +1 -1
  269. package/vanilla/UiNumberInput.js +41 -38
  270. package/vanilla/UiPageHeader.d.ts +1 -1
  271. package/vanilla/UiPageHeader.js +17 -15
  272. package/vanilla/UiPagination.d.ts +1 -1
  273. package/vanilla/UiPagination.js +53 -44
  274. package/vanilla/UiPopover.d.ts +1 -1
  275. package/vanilla/UiPopover.js +13 -11
  276. package/vanilla/UiRadio.d.ts +1 -1
  277. package/vanilla/UiRadio.js +25 -23
  278. package/vanilla/UiRadioGroup.d.ts +1 -1
  279. package/vanilla/UiRadioGroup.js +33 -36
  280. package/vanilla/UiReel.d.ts +1 -1
  281. package/vanilla/UiReel.js +20 -12
  282. package/vanilla/UiScrollArea.d.ts +1 -1
  283. package/vanilla/UiScrollArea.js +13 -11
  284. package/vanilla/UiSearchResultRow.d.ts +1 -1
  285. package/vanilla/UiSearchResultRow.js +21 -20
  286. package/vanilla/UiSearchShell.d.ts +1 -1
  287. package/vanilla/UiSearchShell.js +16 -14
  288. package/vanilla/UiSection.d.ts +1 -1
  289. package/vanilla/UiSection.js +48 -45
  290. package/vanilla/UiSegmentedControl.d.ts +2 -2
  291. package/vanilla/UiSegmentedControl.js +52 -47
  292. package/vanilla/UiSelect.d.ts +1 -1
  293. package/vanilla/UiSelect.js +17 -21
  294. package/vanilla/UiSeparator.d.ts +1 -1
  295. package/vanilla/UiSeparator.js +12 -12
  296. package/vanilla/UiSidebar.d.ts +1 -1
  297. package/vanilla/UiSidebar.js +17 -15
  298. package/vanilla/UiSiteHeader.d.ts +1 -1
  299. package/vanilla/UiSiteHeader.js +25 -23
  300. package/vanilla/UiSkeleton.d.ts +1 -1
  301. package/vanilla/UiSkeleton.js +21 -20
  302. package/vanilla/UiSlider.d.ts +1 -1
  303. package/vanilla/UiSlider.js +50 -47
  304. package/vanilla/UiSpinner.d.ts +1 -1
  305. package/vanilla/UiSpinner.js +34 -27
  306. package/vanilla/UiStack.d.ts +1 -1
  307. package/vanilla/UiStack.js +12 -12
  308. package/vanilla/UiStatusMessage.d.ts +1 -1
  309. package/vanilla/UiStatusMessage.js +22 -21
  310. package/vanilla/UiSwatch.d.ts +1 -1
  311. package/vanilla/UiSwatch.js +20 -17
  312. package/vanilla/UiSwitch.d.ts +1 -1
  313. package/vanilla/UiSwitch.js +25 -23
  314. package/vanilla/UiSwitcher.d.ts +1 -1
  315. package/vanilla/UiSwitcher.js +13 -11
  316. package/vanilla/UiTable.d.ts +1 -1
  317. package/vanilla/UiTable.js +13 -11
  318. package/vanilla/UiTabs.d.ts +1 -1
  319. package/vanilla/UiTabs.js +39 -28
  320. package/vanilla/UiText.d.ts +1 -1
  321. package/vanilla/UiText.js +128 -125
  322. package/vanilla/UiTextarea.d.ts +1 -1
  323. package/vanilla/UiTextarea.js +27 -39
  324. package/vanilla/UiTimeField.d.ts +1 -1
  325. package/vanilla/UiTimeField.js +42 -40
  326. package/vanilla/UiTimePicker.d.ts +1 -1
  327. package/vanilla/UiTimePicker.js +105 -102
  328. package/vanilla/UiToast.d.ts +1 -1
  329. package/vanilla/UiToast.js +14 -14
  330. package/vanilla/UiToastRegion.d.ts +1 -1
  331. package/vanilla/UiToastRegion.js +61 -31
  332. package/vanilla/UiTooltip.d.ts +1 -1
  333. package/vanilla/UiTooltip.js +17 -14
  334. package/vanilla/UiTopBar.d.ts +1 -1
  335. package/vanilla/UiTopBar.js +24 -22
  336. package/vanilla/UiTree.d.ts +1 -1
  337. package/vanilla/UiTree.js +17 -12
  338. package/vanilla/UiTreeItem.d.ts +1 -1
  339. package/vanilla/UiTreeItem.js +73 -79
  340. package/vanilla/UiWizard.d.ts +1 -1
  341. package/vanilla/UiWizard.js +61 -40
@@ -1,21 +1,22 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, stateInitializers, buildTemplate, checkReference, NONCONFORMING, readDeclared, readIndex, readMember, recordValue, textCall, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, boundFailures, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, checkedReferenceValue, equalValue, stateInitializers, buildTemplate, NONCONFORMING, readIndex, readMember, recordValue, textCall, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, boundFailures, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-date-picker/ui-date-picker.js";
4
4
  import "../styles/ui-date-picker.css";
5
5
 
6
6
  const T0 = ["",[],"\n ",["ui-input-group",[],["ui-date-field",["data-picker-field",""]],["ui-icon-button",["data-picker-trigger","","slot","action","variant","ghost","aria-haspopup","dialog"],["ui-icon",["name","calendar"]]]],"\n ",["ui-popover",["data-picker-popover","","size","sm","role","dialog"],["ui-stack",["gap","s"],["ui-calendar",["data-picker-calendar",""]],"\n ",["ui-cluster",["gap","s","align","center","justify","between","wrap","nowrap"],["ui-text",["as","label","variant","label"],0],"\n ",["ui-cluster",["fixed",""],["ui-time-picker",["data-picker-time","","size","sm"]]]],"\n ",["ui-text",["tone","danger","role","alert"],0]]],"\n "];
7
+ const RC0 = ["s", "string"];
8
+ const RC1 = [["l"], "list(string)"];
9
+ const RC2 = [["l"], "list(object({ start: string, end: string }))"];
10
+ const RC3 = ["i", "integer"];
7
11
  let P0;
8
12
  const S = { n: ["current","draftDate","draftTime","enhanced","opened","fieldBlocked","anchorId","error"], t: ["s","s","s","b","b","b","s","s"], f: import.meta.url, g: "ui-date-picker", d: { "input": [detailCheck(checkObject([["value", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "change": [detailCheck(checkObject([["value", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "query-change": [detailCheck(checkObject([["query", checkString, false]], false)), true, true, false], "validation-change": [detailCheck(checkObject([["invalid", checkBoolean, false], ["message", checkString, false]], false)), true, true, false], "open": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "close": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [null, "", "", false, false, false, "", ""] };
9
13
  const D = { g: "ui-date-picker", 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" }, "model": { "required":false, c: checkObject([["date", checkString, false], ["time", checkString, false], ["minDate", checkString, false], ["maxDate", checkString, false], ["weekStartsOn", checkInteger, false], ["allowedDates", checkList(checkString), false], ["allowedRanges", checkList(checkObject([["start", checkString, false], ["end", checkString, false]], false)), false]], false), j: 1, m: ["o",["date","s","time","s","minDate","s","maxDate","s","weekStartsOn","i","allowedDates",["l","s"],"allowedRanges",["l",["o",["start","s","end","s"]]]]] }, "monthLabel": { "required":false,"default":"Choose month", c: checkString, t: "string", j: 0, m: "s" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "nextLabel": { "required":false,"default":"Next", c: checkString, t: "string", j: 0, m: "s" }, "pickerLabel": { "required":false,"default":"Choose date", c: checkString, t: "string", j: 0, m: "s" }, "placeholder": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "previousLabel": { "required":false,"default":"Previous", 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)] }, "timeLabel": { "required":false,"default":"Time", c: checkString, t: "string", j: 0, m: "s" }, "timeZone": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "today": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "type": { "required":false,"values":["date","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)] }, "weekStartsOn": { "required":false,"min":1,"max":7, c: checkInteger, t: "integer", j: 0, m: "i", k: boundFailures }, "yearLabel": { "required":false,"default":"Choose year", c: checkString, t: "string", j: 0, m: "s" } } };
10
14
  const C = (host) => activateModule(controller, host);
11
15
 
12
16
  export function createUiDatePicker(options = {}, html) {
13
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
17
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
18
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["allowed-dates","allowed-ranges","disabled","disabled-dates","disabled-ranges","disabled-weekdays","disambiguation","display-options","form","granularity","hour-cycle","input-id","invalid","label","locale","max","min","model","month-label","name","next-label","picker-label","placeholder","previous-label","readonly","required","size","time-label","time-zone","today","type","value","value-format","week-starts-on","year-label"].includes(name)));
14
19
  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
20
  element.setAttribute("component", "ui-date-picker");
20
21
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
21
22
  const v = [null, "", "", false, false, false, "", "", 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, null, null, null, null, null, null, null, null, null];
@@ -23,319 +24,323 @@ export function createUiDatePicker(options = {}, html) {
23
24
  const CS = [];
24
25
  const inputStatus = (j) => { if (j === 0) return E.status(j); if (j === 8) return awaitInput(B, "allowedDates", true); if (j === 9) return awaitInput(B, "allowedRanges", true); if (j === 10) return awaitInput(B, "disabled", true); if (j === 11) return awaitInput(B, "disabledDates", true); if (j === 12) return awaitInput(B, "disabledRanges", true); if (j === 13) return awaitInput(B, "disabledWeekdays", true); if (j === 14) return awaitInput(B, "disambiguation", true); if (j === 15) return awaitInput(B, "displayOptions", true); if (j === 16) return awaitInput(B, "form", true); if (j === 17) return awaitInput(B, "granularity", true); if (j === 18) return awaitInput(B, "hourCycle", true); if (j === 19) return awaitInput(B, "inputId", true); if (j === 20) return awaitInput(B, "invalid", true); if (j === 21) return awaitInput(B, "label", true); if (j === 22) return awaitInput(B, "locale", true); if (j === 23) return awaitInput(B, "max", true); if (j === 24) return awaitInput(B, "min", true); if (j === 25) return awaitInput(B, "model", true); if (j === 26) return awaitInput(B, "monthLabel", true); if (j === 27) return awaitInput(B, "name", true); if (j === 28) return awaitInput(B, "nextLabel", true); if (j === 29) return awaitInput(B, "pickerLabel", true); if (j === 30) return awaitInput(B, "placeholder", true); if (j === 31) return awaitInput(B, "previousLabel", true); if (j === 32) return awaitInput(B, "readonly", true); if (j === 33) return awaitInput(B, "required", true); if (j === 34) return awaitInput(B, "size", true); if (j === 35) return awaitInput(B, "timeLabel", true); if (j === 36) return awaitInput(B, "timeZone", true); if (j === 37) return awaitInput(B, "today", true); if (j === 38) return awaitInput(B, "type", true); if (j === 39) return awaitInput(B, "value", true); if (j === 40) return awaitInput(B, "valueFormat", true); if (j === 41) return awaitInput(B, "weekStartsOn", true); if (j === 42) return awaitInput(B, "yearLabel", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
25
26
  const X = { e: 0, g: (j) => v[j], w: new Set(), a: CS, i: inputStatus };
26
- const E = stateInitializers(S, v, X, { 0: () => inputRead(v[39], inputStatus(39)) });
27
+ const E = stateInitializers(S, v, X, { 0: () => (inputRead(v[39], inputStatus(39))) });
27
28
  const p0 = (r, c, d) => {
29
+ if (c === -1) {
30
+ resetForwardedAttributes(r.n, attributes, r.v0);
31
+ r.v0 = forwardAttributes(r.n, attributes);
32
+ }
28
33
  if (c & 1024) {
29
34
  const x0 = v[10];
30
- const s0 = toAttribute(x0, "disabled");
31
- if (s0 !== r.v0) writeAttribute(r.a0, "disabled", r.v0 = s0);
35
+ const s1 = toAttribute(x0, "disabled");
36
+ if (s1 !== r.v1) writeAttribute(r.a1, "disabled", r.v1 = s1);
32
37
  }
33
38
  if (c & 1) {
34
- const x1 = (checkReference(S, v[0], "s", "expression:$current:current", "Reference `current` must satisfy string.") ? E.read(0) : NONCONFORMING);
39
+ const x1 = checkedReferenceValue(S, E.read(0), RC0, "expression:$current:current", "current");
35
40
  if (x1 !== NONCONFORMING) {
36
- const s1 = toAttribute(x1, "value");
37
- if (s1 !== r.v1) writeAttribute(r.a1, "value", r.v1 = s1);
41
+ const s2 = toAttribute(x1, "value");
42
+ if (s2 !== r.v2) writeAttribute(r.a2, "value", r.v2 = s2);
38
43
  }
39
44
  }
40
45
  if (c & 1610612736) {
41
46
  const x2 = v[38];
42
- const s2 = toAttribute(x2, "type");
43
- if (s2 !== r.v2) writeAttribute(r.a1, "type", r.v2 = s2);
47
+ const s3 = toAttribute(x2, "type");
48
+ if (s3 !== r.v3) writeAttribute(r.a2, "type", r.v3 = s3);
44
49
  const x3 = v[40];
45
- const s3 = toAttribute(x3, "value-format");
46
- if (s3 !== r.v3) writeAttribute(r.a1, "value-format", r.v3 = s3);
50
+ const s4 = toAttribute(x3, "value-format");
51
+ if (s4 !== r.v4) writeAttribute(r.a2, "value-format", r.v4 = s4);
47
52
  }
48
53
  if (c & 4194304) {
49
54
  const x4 = v[22];
50
- const s4 = toAttribute(x4, "locale");
51
- if (s4 !== r.v4) writeAttribute(r.a1, "locale", r.v4 = s4);
55
+ const s5 = toAttribute(x4, "locale");
56
+ if (s5 !== r.v5) writeAttribute(r.a2, "locale", r.v5 = s5);
52
57
  }
53
58
  if (c & 536870912) {
54
59
  const x5 = v[36];
55
- const s5 = toAttribute(x5, "time-zone");
56
- if (s5 !== r.v5) writeAttribute(r.a1, "time-zone", r.v5 = s5);
60
+ const s6 = toAttribute(x5, "time-zone");
61
+ if (s6 !== r.v6) writeAttribute(r.a2, "time-zone", r.v6 = s6);
57
62
  }
58
63
  if (c & 1073758208) {
59
64
  const x6 = v[14];
60
- const s6 = toAttribute(x6, "disambiguation");
61
- if (s6 !== r.v6) writeAttribute(r.a1, "disambiguation", r.v6 = s6);
65
+ const s7 = toAttribute(x6, "disambiguation");
66
+ if (s7 !== r.v7) writeAttribute(r.a2, "disambiguation", r.v7 = s7);
62
67
  }
63
68
  if (c & 1074003968) {
64
69
  const x7 = v[18];
65
- const s7 = toAttribute(x7, "hour-cycle");
66
- if (s7 !== r.v7) writeAttribute(r.a1, "hour-cycle", r.v7 = s7);
70
+ const s8 = toAttribute(x7, "hour-cycle");
71
+ if (s8 !== r.v8) writeAttribute(r.a2, "hour-cycle", r.v8 = s8);
67
72
  }
68
73
  if (c & 1073872896) {
69
74
  const x8 = v[17];
70
- const s8 = toAttribute(x8, "granularity");
71
- if (s8 !== r.v8) writeAttribute(r.a1, "granularity", r.v8 = s8);
75
+ const s9 = toAttribute(x8, "granularity");
76
+ if (s9 !== r.v9) writeAttribute(r.a2, "granularity", r.v9 = s9);
72
77
  }
73
78
  if (c & 1073774592) {
74
79
  const x9 = v[15];
75
- const s9 = toAttribute(x9, "display-options");
76
- if (s9 !== r.v9) writeAttribute(r.a1, "display-options", r.v9 = s9);
80
+ const s10 = toAttribute(x9, "display-options");
81
+ if (s10 !== r.v10) writeAttribute(r.a2, "display-options", r.v10 = s10);
77
82
  }
78
83
  if (c & 16777216) {
79
84
  const x10 = v[24];
80
- const s10 = toAttribute(x10, "min");
81
- if (s10 !== r.v10) writeAttribute(r.a1, "min", r.v10 = s10);
85
+ const s11 = toAttribute(x10, "min");
86
+ if (s11 !== r.v11) writeAttribute(r.a2, "min", r.v11 = s11);
82
87
  }
83
88
  if (c & 8388608) {
84
89
  const x11 = v[23];
85
- const s11 = toAttribute(x11, "max");
86
- if (s11 !== r.v11) writeAttribute(r.a1, "max", r.v11 = s11);
90
+ const s12 = toAttribute(x11, "max");
91
+ if (s12 !== r.v12) writeAttribute(r.a2, "max", r.v12 = s12);
87
92
  }
88
93
  if (c & 1073742080) {
89
94
  const x12 = v[8];
90
- const s12 = toAttribute(x12, "allowed-dates");
91
- if (s12 !== r.v12) writeAttribute(r.a1, "allowed-dates", r.v12 = s12);
95
+ const s13 = toAttribute(x12, "allowed-dates");
96
+ if (s13 !== r.v13) writeAttribute(r.a2, "allowed-dates", r.v13 = s13);
92
97
  }
93
98
  if (c & 1073742336) {
94
99
  const x13 = v[9];
95
- const s13 = toAttribute(x13, "allowed-ranges");
96
- if (s13 !== r.v13) writeAttribute(r.a1, "allowed-ranges", r.v13 = s13);
100
+ const s14 = toAttribute(x13, "allowed-ranges");
101
+ if (s14 !== r.v14) writeAttribute(r.a2, "allowed-ranges", r.v14 = s14);
97
102
  }
98
103
  if (c & 1073743872) {
99
104
  const x14 = v[11];
100
- const s14 = toAttribute(x14, "disabled-dates");
101
- if (s14 !== r.v14) writeAttribute(r.a1, "disabled-dates", r.v14 = s14);
105
+ const s15 = toAttribute(x14, "disabled-dates");
106
+ if (s15 !== r.v15) writeAttribute(r.a2, "disabled-dates", r.v15 = s15);
102
107
  }
103
108
  if (c & 1073745920) {
104
109
  const x15 = v[12];
105
- const s15 = toAttribute(x15, "disabled-ranges");
106
- if (s15 !== r.v15) writeAttribute(r.a1, "disabled-ranges", r.v15 = s15);
110
+ const s16 = toAttribute(x15, "disabled-ranges");
111
+ if (s16 !== r.v16) writeAttribute(r.a2, "disabled-ranges", r.v16 = s16);
107
112
  }
108
113
  if (c & 1073750016) {
109
114
  const x16 = v[13];
110
- const s16 = toAttribute(x16, "disabled-weekdays");
111
- if (s16 !== r.v16) writeAttribute(r.a1, "disabled-weekdays", r.v16 = s16);
115
+ const s17 = toAttribute(x16, "disabled-weekdays");
116
+ if (s17 !== r.v17) writeAttribute(r.a2, "disabled-weekdays", r.v17 = s17);
112
117
  }
113
118
  if (c & 134217728) {
114
119
  const x17 = v[27];
115
- const s17 = toAttribute(x17, "name");
116
- if (s17 !== r.v17) writeAttribute(r.a1, "name", r.v17 = s17);
120
+ const s18 = toAttribute(x17, "name");
121
+ if (s18 !== r.v18) writeAttribute(r.a2, "name", r.v18 = s18);
117
122
  }
118
123
  if (c & 65536) {
119
124
  const x18 = v[16];
120
- const s18 = toAttribute(x18, "form");
121
- if (s18 !== r.v18) writeAttribute(r.a1, "form", r.v18 = s18);
125
+ const s19 = toAttribute(x18, "form");
126
+ if (s19 !== r.v19) writeAttribute(r.a2, "form", r.v19 = s19);
122
127
  }
123
128
  if (c & 524288) {
124
129
  const x19 = v[19];
125
- const s19 = toAttribute(x19, "input-id");
126
- if (s19 !== r.v19) writeAttribute(r.a1, "input-id", r.v19 = s19);
130
+ const s20 = toAttribute(x19, "input-id");
131
+ if (s20 !== r.v20) writeAttribute(r.a2, "input-id", r.v20 = s20);
127
132
  }
128
133
  if (c & 2097152) {
129
134
  const x20 = v[21];
130
- const s20 = toAttribute(x20, "label");
131
- if (s20 !== r.v20) writeAttribute(r.a1, "label", r.v20 = s20);
135
+ const s21 = toAttribute(x20, "label");
136
+ if (s21 !== r.v21) writeAttribute(r.a2, "label", r.v21 = s21);
132
137
  }
133
138
  if (c & 1610612736) {
134
139
  const x21 = v[34];
135
- const s21 = toAttribute(x21, "size");
136
- if (s21 !== r.v21) writeAttribute(r.a1, "size", r.v21 = s21);
140
+ const s22 = toAttribute(x21, "size");
141
+ if (s22 !== r.v22) writeAttribute(r.a2, "size", r.v22 = s22);
137
142
  }
138
143
  if (c & 536870912) {
139
144
  const x22 = v[30];
140
- const s22 = toAttribute(x22, "placeholder");
141
- if (s22 !== r.v22) writeAttribute(r.a1, "placeholder", r.v22 = s22);
145
+ const s23 = toAttribute(x22, "placeholder");
146
+ if (s23 !== r.v23) writeAttribute(r.a2, "placeholder", r.v23 = s23);
142
147
  }
143
148
  if (c & 1024) {
144
149
  const x23 = v[10];
145
- const s23 = toAttribute(x23, "disabled");
146
- if (s23 !== r.v23) writeAttribute(r.a1, "disabled", r.v23 = s23);
150
+ const s24 = toAttribute(x23, "disabled");
151
+ if (s24 !== r.v24) writeAttribute(r.a2, "disabled", r.v24 = s24);
147
152
  }
148
153
  if (c & 536870912) {
149
154
  const x24 = v[32];
150
- const s24 = toAttribute(x24, "readonly");
151
- if (s24 !== r.v24) writeAttribute(r.a1, "readonly", r.v24 = s24);
155
+ const s25 = toAttribute(x24, "readonly");
156
+ if (s25 !== r.v25) writeAttribute(r.a2, "readonly", r.v25 = s25);
152
157
  const x25 = v[33];
153
- const s25 = toAttribute(x25, "required");
154
- if (s25 !== r.v25) writeAttribute(r.a1, "required", r.v25 = s25);
158
+ const s26 = toAttribute(x25, "required");
159
+ if (s26 !== r.v26) writeAttribute(r.a2, "required", r.v26 = s26);
155
160
  }
156
161
  if (c & 1048576) {
157
162
  const x26 = v[20];
158
- const s26 = toAttribute(x26, "invalid");
159
- if (s26 !== r.v26) writeAttribute(r.a1, "invalid", r.v26 = s26);
163
+ const s27 = toAttribute(x26, "invalid");
164
+ if (s27 !== r.v27) writeAttribute(r.a2, "invalid", r.v27 = s27);
160
165
  }
161
166
  if (c & 64) {
162
167
  const x27 = v[6];
163
- const s27 = toAttribute(x27, "id");
164
- if (s27 !== r.v27) writeAttribute(r.a2, "id", r.v27 = s27);
165
- const s32 = toAttribute(x27, "for");
166
- if (s32 !== r.v32) writeAttribute(r.a3, "for", r.v32 = s32);
168
+ const s28 = toAttribute(x27, "id");
169
+ if (s28 !== r.v28) writeAttribute(r.a3, "id", r.v28 = s28);
170
+ const s33 = toAttribute(x27, "for");
171
+ if (s33 !== r.v33) writeAttribute(r.a4, "for", r.v33 = s33);
167
172
  }
168
173
  if (c & 8) {
169
174
  const x28 = !v[3];
170
- const s28 = toAttribute(x28, "hidden");
171
- if (s28 !== r.v28) writeAttribute(r.a2, "hidden", r.v28 = s28);
175
+ const s29 = toAttribute(x28, "hidden");
176
+ if (s29 !== r.v29) writeAttribute(r.a3, "hidden", r.v29 = s29);
172
177
  const x29 = hostState(["enhanced"], [v[3]]);
173
- const s63 = x29;
174
- if (s63 !== r.v63) writeAttribute(r.n, "data-ui-date-picker-state", (r.v63 = s63) === "" ? null : s63);
178
+ const s64 = x29;
179
+ if (s64 !== r.v64) writeAttribute(r.n, "data-ui-date-picker-state", (r.v64 = s64) === "" ? null : s64);
175
180
  }
176
181
  if (c & 1610612736) {
177
182
  const x30 = v[34];
178
- const s29 = toAttribute(x30, "size");
179
- if (s29 !== r.v29) writeAttribute(r.a2, "size", r.v29 = s29);
183
+ const s30 = toAttribute(x30, "size");
184
+ if (s30 !== r.v30) writeAttribute(r.a3, "size", r.v30 = s30);
180
185
  }
181
186
  if (c & 536870912) {
182
187
  const x31 = v[29];
183
- const s30 = toAttribute(x31, "label");
184
- if (s30 !== r.v30) writeAttribute(r.a2, "label", r.v30 = s30);
188
+ const s31 = toAttribute(x31, "label");
189
+ if (s31 !== r.v31) writeAttribute(r.a3, "label", r.v31 = s31);
185
190
  }
186
191
  if (c & 536871968) {
187
192
  const x32 = ((truthy(v[10]) || truthy(v[32])) || v[5]);
188
- const s31 = toAttribute(x32, "disabled");
189
- if (s31 !== r.v31) writeAttribute(r.a2, "disabled", r.v31 = s31);
193
+ const s32 = toAttribute(x32, "disabled");
194
+ if (s32 !== r.v32) writeAttribute(r.a3, "disabled", r.v32 = s32);
190
195
  }
191
196
  if (c & 16) {
192
197
  const x33 = v[4];
193
- const s33 = toAttribute(x33, "open");
194
- if (s33 !== r.v33) writeAttribute(r.a3, "open", r.v33 = s33);
198
+ const s34 = toAttribute(x33, "open");
199
+ if (s34 !== r.v34) writeAttribute(r.a4, "open", r.v34 = s34);
195
200
  }
196
201
  if (c & 536870912) {
197
202
  const x34 = v[29];
198
- const s34 = toAttribute(x34, "aria-label");
199
- if (s34 !== r.v34) writeAttribute(r.a3, "aria-label", r.v34 = s34);
203
+ const s35 = toAttribute(x34, "aria-label");
204
+ if (s35 !== r.v35) writeAttribute(r.a4, "aria-label", r.v35 = s35);
200
205
  }
201
206
  if (c & 1107296274) {
202
- const x35 = (checkReference(S, readDeclared(v[25], ["date"]), "s", "expression:$opened ? $draftDate : $model.date:model.date", "Reference `model.date` must satisfy string.") ? (v[4] ? v[1] : readMember(v[25], "date")) : NONCONFORMING);
207
+ const x35 = (v[4] ? v[1] : checkedReferenceValue(S, readMember(v[25], "date"), RC0, "expression:$opened ? $draftDate : $model.date:model.date", "model.date"));
203
208
  if (x35 !== NONCONFORMING) {
204
- const s35 = toAttribute(x35, "value");
205
- if (s35 !== r.v35) writeAttribute(r.a4, "value", r.v35 = s35);
209
+ const s36 = toAttribute(x35, "value");
210
+ if (s36 !== r.v36) writeAttribute(r.a5, "value", r.v36 = s36);
206
211
  }
207
212
  }
208
213
  if (c & 1107296256) {
209
- const x36 = (checkReference(S, readDeclared(v[25], ["minDate"]), "s", "expression:$model.minDate:model.minDate", "Reference `model.minDate` must satisfy string.") ? readMember(v[25], "minDate") : NONCONFORMING);
214
+ const x36 = checkedReferenceValue(S, readMember(v[25], "minDate"), RC0, "expression:$model.minDate:model.minDate", "model.minDate");
210
215
  if (x36 !== NONCONFORMING) {
211
- const s36 = toAttribute(x36, "min");
212
- if (s36 !== r.v36) writeAttribute(r.a4, "min", r.v36 = s36);
216
+ const s37 = toAttribute(x36, "min");
217
+ if (s37 !== r.v37) writeAttribute(r.a5, "min", r.v37 = s37);
213
218
  }
214
- const x37 = (checkReference(S, readDeclared(v[25], ["maxDate"]), "s", "expression:$model.maxDate:model.maxDate", "Reference `model.maxDate` must satisfy string.") ? readMember(v[25], "maxDate") : NONCONFORMING);
219
+ const x37 = checkedReferenceValue(S, readMember(v[25], "maxDate"), RC0, "expression:$model.maxDate:model.maxDate", "model.maxDate");
215
220
  if (x37 !== NONCONFORMING) {
216
- const s37 = toAttribute(x37, "max");
217
- if (s37 !== r.v37) writeAttribute(r.a4, "max", r.v37 = s37);
221
+ const s38 = toAttribute(x37, "max");
222
+ if (s38 !== r.v38) writeAttribute(r.a5, "max", r.v38 = s38);
218
223
  }
219
- const x38 = (checkReference(S, readDeclared(v[25], ["allowedDates"]), ["l","s"], "expression:$model.allowedDates:model.allowedDates", "Reference `model.allowedDates` must satisfy list(string).") ? readMember(v[25], "allowedDates") : NONCONFORMING);
224
+ const x38 = checkedReferenceValue(S, readMember(v[25], "allowedDates"), RC1, "expression:$model.allowedDates:model.allowedDates", "model.allowedDates");
220
225
  if (x38 !== NONCONFORMING) {
221
- const s38 = toAttribute(x38, "allowed-dates");
222
- if (s38 !== r.v38) writeAttribute(r.a4, "allowed-dates", r.v38 = s38);
226
+ const s39 = toAttribute(x38, "allowed-dates");
227
+ if (s39 !== r.v39) writeAttribute(r.a5, "allowed-dates", r.v39 = s39);
223
228
  }
224
- const x39 = (checkReference(S, readDeclared(v[25], ["allowedRanges"]), ["l",["o",["start","s","end","s"]]], "expression:$model.allowedRanges:model.allowedRanges", "Reference `model.allowedRanges` must satisfy list(object({ start: string, end: string })).") ? readMember(v[25], "allowedRanges") : NONCONFORMING);
229
+ const x39 = checkedReferenceValue(S, readMember(v[25], "allowedRanges"), RC2, "expression:$model.allowedRanges:model.allowedRanges", "model.allowedRanges");
225
230
  if (x39 !== NONCONFORMING) {
226
- const s39 = toAttribute(x39, "allowed-ranges");
227
- if (s39 !== r.v39) writeAttribute(r.a4, "allowed-ranges", r.v39 = s39);
231
+ const s40 = toAttribute(x39, "allowed-ranges");
232
+ if (s40 !== r.v40) writeAttribute(r.a5, "allowed-ranges", r.v40 = s40);
228
233
  }
229
- const x40 = (checkReference(S, readDeclared(v[25], ["weekStartsOn"]), "i", "expression:$model.weekStartsOn:model.weekStartsOn", "Reference `model.weekStartsOn` must satisfy integer.") ? readMember(v[25], "weekStartsOn") : NONCONFORMING);
234
+ const x40 = checkedReferenceValue(S, readMember(v[25], "weekStartsOn"), RC3, "expression:$model.weekStartsOn:model.weekStartsOn", "model.weekStartsOn");
230
235
  if (x40 !== NONCONFORMING) {
231
- const s40 = toAttribute(x40, "week-starts-on");
232
- if (s40 !== r.v40) writeAttribute(r.a4, "week-starts-on", r.v40 = s40);
236
+ const s41 = toAttribute(x40, "week-starts-on");
237
+ if (s41 !== r.v41) writeAttribute(r.a5, "week-starts-on", r.v41 = s41);
233
238
  }
234
239
  }
235
240
  if (c & 536870912) {
236
241
  const x41 = v[29];
237
- const s41 = toAttribute(x41, "label");
238
- if (s41 !== r.v41) writeAttribute(r.a4, "label", r.v41 = s41);
242
+ const s42 = toAttribute(x41, "label");
243
+ if (s42 !== r.v42) writeAttribute(r.a5, "label", r.v42 = s42);
239
244
  }
240
245
  if (c & 4194304) {
241
246
  const x42 = v[22];
242
- const s42 = toAttribute(x42, "locale");
243
- if (s42 !== r.v42) writeAttribute(r.a4, "locale", r.v42 = s42);
247
+ const s43 = toAttribute(x42, "locale");
248
+ if (s43 !== r.v43) writeAttribute(r.a5, "locale", r.v43 = s43);
244
249
  }
245
250
  if (c & 536870912) {
246
251
  const x43 = v[37];
247
- const s43 = toAttribute(x43, "today");
248
- if (s43 !== r.v43) writeAttribute(r.a4, "today", r.v43 = s43);
252
+ const s44 = toAttribute(x43, "today");
253
+ if (s44 !== r.v44) writeAttribute(r.a5, "today", r.v44 = s44);
249
254
  }
250
255
  if (c & 1073743872) {
251
256
  const x44 = v[11];
252
- const s44 = toAttribute(x44, "disabled-dates");
253
- if (s44 !== r.v44) writeAttribute(r.a4, "disabled-dates", r.v44 = s44);
257
+ const s45 = toAttribute(x44, "disabled-dates");
258
+ if (s45 !== r.v45) writeAttribute(r.a5, "disabled-dates", r.v45 = s45);
254
259
  }
255
260
  if (c & 1073745920) {
256
261
  const x45 = v[12];
257
- const s45 = toAttribute(x45, "disabled-ranges");
258
- if (s45 !== r.v45) writeAttribute(r.a4, "disabled-ranges", r.v45 = s45);
262
+ const s46 = toAttribute(x45, "disabled-ranges");
263
+ if (s46 !== r.v46) writeAttribute(r.a5, "disabled-ranges", r.v46 = s46);
259
264
  }
260
265
  if (c & 1073750016) {
261
266
  const x46 = v[13];
262
- const s46 = toAttribute(x46, "disabled-weekdays");
263
- if (s46 !== r.v46) writeAttribute(r.a4, "disabled-weekdays", r.v46 = s46);
267
+ const s47 = toAttribute(x46, "disabled-weekdays");
268
+ if (s47 !== r.v47) writeAttribute(r.a5, "disabled-weekdays", r.v47 = s47);
264
269
  }
265
270
  if (c & 67108864) {
266
271
  const x47 = v[26];
267
- const s47 = toAttribute(x47, "month-label");
268
- if (s47 !== r.v47) writeAttribute(r.a4, "month-label", r.v47 = s47);
272
+ const s48 = toAttribute(x47, "month-label");
273
+ if (s48 !== r.v48) writeAttribute(r.a5, "month-label", r.v48 = s48);
269
274
  }
270
275
  if (c & 536870912) {
271
276
  const x48 = v[42];
272
- const s48 = toAttribute(x48, "year-label");
273
- if (s48 !== r.v48) writeAttribute(r.a4, "year-label", r.v48 = s48);
277
+ const s49 = toAttribute(x48, "year-label");
278
+ if (s49 !== r.v49) writeAttribute(r.a5, "year-label", r.v49 = s49);
274
279
  const x49 = v[31];
275
- const s49 = toAttribute(x49, "previous-label");
276
- if (s49 !== r.v49) writeAttribute(r.a4, "previous-label", r.v49 = s49);
277
- const x50 = (v[38] === "date");
278
- const s51 = toAttribute(x50, "hidden");
279
- if (s51 !== r.v51) writeAttribute(r.a5, "hidden", r.v51 = s51);
280
+ const s50 = toAttribute(x49, "previous-label");
281
+ if (s50 !== r.v50) writeAttribute(r.a5, "previous-label", r.v50 = s50);
282
+ const x50 = equalValue(v[38], "date");
283
+ const s52 = toAttribute(x50, "hidden");
284
+ if (s52 !== r.v52) writeAttribute(r.a6, "hidden", r.v52 = s52);
280
285
  const x51 = v[35];
281
- const s53 = toText(x51);
282
- if (s53 !== r.v53) r.a7.data = r.v53 = s53;
286
+ const s54 = toText(x51);
287
+ if (s54 !== r.v54) r.a8.data = r.v54 = s54;
283
288
  }
284
289
  if (c & 268435456) {
285
290
  const x52 = v[28];
286
- const s50 = toAttribute(x52, "next-label");
287
- if (s50 !== r.v50) writeAttribute(r.a4, "next-label", r.v50 = s50);
291
+ const s51 = toAttribute(x52, "next-label");
292
+ if (s51 !== r.v51) writeAttribute(r.a5, "next-label", r.v51 = s51);
288
293
  }
289
294
  if (c & 1073741888) {
290
- const x53 = readIndex(recordValue(["true","false"], [textCall("concat", [v[6], "-time"]), null]), textCall("concat", [(v[6] !== "")]));
295
+ const x53 = readIndex(recordValue(["true","false"], [textCall("concat", [v[6], "-time"]), null]), textCall("concat", [equalValue(v[6], "", true)]));
291
296
  if (x53 !== NONCONFORMING) {
292
- const s52 = toAttribute(x53, "for");
293
- if (s52 !== r.v52) writeAttribute(r.a6, "for", r.v52 = s52);
297
+ const s53 = toAttribute(x53, "for");
298
+ if (s53 !== r.v53) writeAttribute(r.a7, "for", r.v53 = s53);
294
299
  }
295
300
  if (x53 !== NONCONFORMING) {
296
- const s54 = toAttribute(x53, "input-id");
297
- if (s54 !== r.v54) writeAttribute(r.a8, "input-id", r.v54 = s54);
301
+ const s55 = toAttribute(x53, "input-id");
302
+ if (s55 !== r.v55) writeAttribute(r.a9, "input-id", r.v55 = s55);
298
303
  }
299
304
  }
300
305
  if (c & 536870912) {
301
306
  const x54 = v[35];
302
- const s55 = toAttribute(x54, "label");
303
- if (s55 !== r.v55) writeAttribute(r.a8, "label", r.v55 = s55);
307
+ const s56 = toAttribute(x54, "label");
308
+ if (s56 !== r.v56) writeAttribute(r.a9, "label", r.v56 = s56);
304
309
  }
305
310
  if (c & 1107296276) {
306
- const x55 = (checkReference(S, readDeclared(v[25], ["time"]), "s", "expression:$opened ? $draftTime : $model.time:model.time", "Reference `model.time` must satisfy string.") ? (v[4] ? v[2] : readMember(v[25], "time")) : NONCONFORMING);
311
+ const x55 = (v[4] ? v[2] : checkedReferenceValue(S, readMember(v[25], "time"), RC0, "expression:$opened ? $draftTime : $model.time:model.time", "model.time"));
307
312
  if (x55 !== NONCONFORMING) {
308
- const s56 = toAttribute(x55, "value");
309
- if (s56 !== r.v56) writeAttribute(r.a8, "value", r.v56 = s56);
313
+ const s57 = toAttribute(x55, "value");
314
+ if (s57 !== r.v57) writeAttribute(r.a9, "value", r.v57 = s57);
310
315
  }
311
316
  }
312
317
  if (c & 4194304) {
313
318
  const x56 = v[22];
314
- const s57 = toAttribute(x56, "locale");
315
- if (s57 !== r.v57) writeAttribute(r.a8, "locale", r.v57 = s57);
319
+ const s58 = toAttribute(x56, "locale");
320
+ if (s58 !== r.v58) writeAttribute(r.a9, "locale", r.v58 = s58);
316
321
  }
317
322
  if (c & 1074003968) {
318
323
  const x57 = v[18];
319
- const s58 = toAttribute(x57, "hour-cycle");
320
- if (s58 !== r.v58) writeAttribute(r.a8, "hour-cycle", r.v58 = s58);
324
+ const s59 = toAttribute(x57, "hour-cycle");
325
+ if (s59 !== r.v59) writeAttribute(r.a9, "hour-cycle", r.v59 = s59);
321
326
  }
322
327
  if (c & 1073872896) {
323
328
  const x58 = v[17];
324
- const s59 = toAttribute(x58, "granularity");
325
- if (s59 !== r.v59) writeAttribute(r.a8, "granularity", r.v59 = s59);
329
+ const s60 = toAttribute(x58, "granularity");
330
+ if (s60 !== r.v60) writeAttribute(r.a9, "granularity", r.v60 = s60);
326
331
  }
327
332
  if (c & 536870928) {
328
- const x59 = (!v[4] || (v[38] === "date"));
329
- const s60 = toAttribute(x59, "disabled");
330
- if (s60 !== r.v60) writeAttribute(r.a8, "disabled", r.v60 = s60);
333
+ const x59 = (!v[4] || truthy(equalValue(v[38], "date")));
334
+ const s61 = toAttribute(x59, "disabled");
335
+ if (s61 !== r.v61) writeAttribute(r.a9, "disabled", r.v61 = s61);
331
336
  }
332
337
  if (c & 128) {
333
- const x60 = (v[7] === "");
334
- const s61 = toAttribute(x60, "hidden");
335
- if (s61 !== r.v61) writeAttribute(r.a9, "hidden", r.v61 = s61);
338
+ const x60 = equalValue(v[7], "");
339
+ const s62 = toAttribute(x60, "hidden");
340
+ if (s62 !== r.v62) writeAttribute(r.a10, "hidden", r.v62 = s62);
336
341
  const x61 = v[7];
337
- const s62 = toText(x61);
338
- if (s62 !== r.v62) r.a10.data = r.v62 = s62;
342
+ const s63 = toText(x61);
343
+ if (s63 !== r.v63) r.a11.data = r.v63 = s63;
339
344
  }
340
345
  };
341
346
  const t0 = element.firstChild.nextSibling;
@@ -350,9 +355,10 @@ export function createUiDatePicker(options = {}, html) {
350
355
  const t9 = t7.nextSibling.nextSibling.firstChild;
351
356
  const t10 = t6.nextSibling.nextSibling;
352
357
  const t11 = t10.firstChild;
353
- const R = { n: element, a0: t0, a1: t1, a2: t2, a3: t3, a4: t5, a5: t6, a6: t7, a7: t8, a8: t9, a9: t10, a10: t11, 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: null, v29: null, v30: null, v31: null, v32: null, v33: null, v34: null, v35: null, v36: null, v37: null, v38: null, v39: null, v40: null, v41: null, v42: null, v43: null, v44: null, v45: null, v46: null, v47: null, v48: null, v49: null, v50: null, v51: null, v52: null, v53: "", v54: null, v55: null, v56: null, v57: null, v58: null, v59: null, v60: null, v61: null, v62: "", v63: undefined };
358
+ const R = { n: element, a1: t0, a2: t1, a3: t2, a4: t3, a5: t5, a6: t6, a7: t7, a8: t8, a9: t9, a10: t10, a11: t11, v0: undefined, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, v14: null, v15: null, v16: null, v17: null, v18: null, v19: null, v20: null, v21: null, v22: null, v23: null, v24: null, v25: null, v26: null, v27: null, v28: null, v29: null, v30: null, v31: null, v32: null, v33: null, v34: null, v35: null, v36: null, v37: null, v38: null, v39: null, v40: null, v41: null, v42: null, v43: null, v44: null, v45: null, v46: null, v47: null, v48: null, v49: null, v50: null, v51: null, v52: null, v53: null, v54: "", v55: null, v56: null, v57: null, v58: null, v59: null, v60: null, v61: null, v62: null, v63: "", v64: undefined };
354
359
  const I = { B, U: E };
355
360
  I.R = new Set();
361
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
356
362
  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);
357
363
  manageProps(I);
358
364
  return element;
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
2
  export interface UiDateRangePickerEventMap {
3
3
  input: CustomEvent<{ readonly value: { readonly start: string; readonly end: string }; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  change: CustomEvent<{ readonly value: { readonly start: string; readonly end: string }; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;