@threadlabs/looma 0.52.12 → 0.53.1

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 (342) 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/chunks/extensions.js +2 -2
  7. package/editor/components.css +19 -19
  8. package/editor/index.js +1125 -853
  9. package/package.json +3 -3
  10. package/styles/ui-action-bar.css +1 -1
  11. package/styles/ui-affordance-scope.css +1 -1
  12. package/styles/ui-avatar-group.css +1 -1
  13. package/styles/ui-avatar.css +1 -1
  14. package/styles/ui-badge.css +1 -1
  15. package/styles/ui-breadcrumb-item.css +1 -1
  16. package/styles/ui-breadcrumbs.css +1 -1
  17. package/styles/ui-button.css +1 -1
  18. package/styles/ui-calendar.css +1 -1
  19. package/styles/ui-callout.css +1 -1
  20. package/styles/ui-card-group.css +1 -1
  21. package/styles/ui-card.css +1 -1
  22. package/styles/ui-checkbox.css +1 -1
  23. package/styles/ui-cluster.css +1 -1
  24. package/styles/ui-color-picker.css +1 -1
  25. package/styles/ui-column.css +1 -1
  26. package/styles/ui-combobox.css +1 -1
  27. package/styles/ui-compact-content.css +1 -1
  28. package/styles/ui-compact-editor.css +1 -1
  29. package/styles/ui-compact-mark.css +1 -1
  30. package/styles/ui-compact-node.css +1 -1
  31. package/styles/ui-container.css +1 -1
  32. package/styles/ui-context-menu.css +1 -1
  33. package/styles/ui-cover.css +1 -1
  34. package/styles/ui-curve-editor.css +1 -1
  35. package/styles/ui-cycle-button.css +1 -1
  36. package/styles/ui-data-table.css +1 -1
  37. package/styles/ui-date-field.css +1 -1
  38. package/styles/ui-date-picker.css +1 -1
  39. package/styles/ui-date-range-picker.css +1 -1
  40. package/styles/ui-description-item.css +1 -1
  41. package/styles/ui-description-list.css +1 -1
  42. package/styles/ui-dialog.css +1 -1
  43. package/styles/ui-disclosure.css +1 -1
  44. package/styles/ui-editable.css +1 -1
  45. package/styles/ui-editor-block-actions.css +1 -1
  46. package/styles/ui-editor-chip-editor.css +1 -1
  47. package/styles/ui-editor-code-language.css +1 -1
  48. package/styles/ui-editor-footnote-editor.css +1 -1
  49. package/styles/ui-editor-formatting-tools.css +1 -1
  50. package/styles/ui-editor-image-toolbar.css +1 -1
  51. package/styles/ui-editor-insert-table-grid.css +1 -1
  52. package/styles/ui-editor-link-card.css +1 -1
  53. package/styles/ui-editor-link-form.css +1 -1
  54. package/styles/ui-editor-mention-menu-item.css +1 -1
  55. package/styles/ui-editor-mention-menu.css +1 -1
  56. package/styles/ui-editor-slash-menu-group.css +1 -1
  57. package/styles/ui-editor-slash-menu-item.css +1 -1
  58. package/styles/ui-editor-slash-menu.css +1 -1
  59. package/styles/ui-editor-surface.css +1 -1
  60. package/styles/ui-editor-table-context-menu.css +1 -1
  61. package/styles/ui-editor-table-overlay.css +1 -1
  62. package/styles/ui-editor-table-toolbar.css +1 -1
  63. package/styles/ui-editor-toolbar.css +1 -1
  64. package/styles/ui-editor.css +1 -1
  65. package/styles/ui-file-input.css +1 -1
  66. package/styles/ui-floating-action-button.css +1 -1
  67. package/styles/ui-form-field.css +1 -1
  68. package/styles/ui-grid.css +1 -1
  69. package/styles/ui-icon-button.css +1 -1
  70. package/styles/ui-icon.css +1 -1
  71. package/styles/ui-image.css +1 -1
  72. package/styles/ui-input-group.css +1 -1
  73. package/styles/ui-input.css +1 -1
  74. package/styles/ui-light-editor.css +1 -1
  75. package/styles/ui-list-item.css +1 -1
  76. package/styles/ui-list.css +1 -1
  77. package/styles/ui-listbox.css +1 -1
  78. package/styles/ui-menu-group.css +1 -1
  79. package/styles/ui-menu-item.css +1 -1
  80. package/styles/ui-menu.css +1 -1
  81. package/styles/ui-meter.css +1 -1
  82. package/styles/ui-nav-item.css +1 -1
  83. package/styles/ui-notice-stripe.css +1 -1
  84. package/styles/ui-number-input.css +1 -1
  85. package/styles/ui-page-header.css +1 -1
  86. package/styles/ui-pagination.css +1 -1
  87. package/styles/ui-popover.css +1 -1
  88. package/styles/ui-radio-group.css +1 -1
  89. package/styles/ui-radio.css +1 -1
  90. package/styles/ui-reel.css +1 -1
  91. package/styles/ui-scroll-area.css +1 -1
  92. package/styles/ui-search-result-row.css +1 -1
  93. package/styles/ui-search-shell.css +1 -1
  94. package/styles/ui-section.css +1 -1
  95. package/styles/ui-segmented-control.css +1 -1
  96. package/styles/ui-select.css +1 -1
  97. package/styles/ui-separator.css +1 -1
  98. package/styles/ui-sidebar.css +1 -1
  99. package/styles/ui-site-header.css +1 -1
  100. package/styles/ui-skeleton.css +1 -1
  101. package/styles/ui-slider.css +1 -1
  102. package/styles/ui-spinner.css +1 -1
  103. package/styles/ui-stack.css +1 -1
  104. package/styles/ui-status-message.css +1 -1
  105. package/styles/ui-swatch.css +1 -1
  106. package/styles/ui-switch.css +1 -1
  107. package/styles/ui-switcher.css +1 -1
  108. package/styles/ui-table.css +1 -1
  109. package/styles/ui-tabs.css +1 -1
  110. package/styles/ui-text.css +1 -1
  111. package/styles/ui-textarea.css +1 -1
  112. package/styles/ui-time-field.css +1 -1
  113. package/styles/ui-time-picker.css +1 -1
  114. package/styles/ui-toast-region.css +1 -1
  115. package/styles/ui-toast.css +1 -1
  116. package/styles/ui-tooltip.css +1 -1
  117. package/styles/ui-top-bar.css +1 -1
  118. package/styles/ui-tree-item.css +1 -1
  119. package/styles/ui-tree.css +1 -1
  120. package/styles/ui-wizard.css +1 -1
  121. package/vanilla/UiActionBar.d.ts +1 -1
  122. package/vanilla/UiActionBar.js +14 -12
  123. package/vanilla/UiAffordanceScope.d.ts +1 -1
  124. package/vanilla/UiAffordanceScope.js +13 -11
  125. package/vanilla/UiAvatar.d.ts +1 -1
  126. package/vanilla/UiAvatar.js +27 -25
  127. package/vanilla/UiAvatarGroup.d.ts +1 -1
  128. package/vanilla/UiAvatarGroup.js +26 -23
  129. package/vanilla/UiBadge.d.ts +1 -1
  130. package/vanilla/UiBadge.js +14 -12
  131. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  132. package/vanilla/UiBreadcrumbItem.js +14 -13
  133. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  134. package/vanilla/UiBreadcrumbs.js +10 -10
  135. package/vanilla/UiButton.d.ts +1 -1
  136. package/vanilla/UiButton.js +187 -244
  137. package/vanilla/UiCalendar.d.ts +1 -1
  138. package/vanilla/UiCalendar.js +272 -193
  139. package/vanilla/UiCallout.d.ts +1 -1
  140. package/vanilla/UiCallout.js +32 -27
  141. package/vanilla/UiCard.d.ts +1 -1
  142. package/vanilla/UiCard.js +72 -69
  143. package/vanilla/UiCardGroup.d.ts +1 -1
  144. package/vanilla/UiCardGroup.js +17 -15
  145. package/vanilla/UiCheckbox.d.ts +1 -1
  146. package/vanilla/UiCheckbox.js +32 -30
  147. package/vanilla/UiCluster.d.ts +1 -1
  148. package/vanilla/UiCluster.js +20 -18
  149. package/vanilla/UiColorPicker.d.ts +1 -1
  150. package/vanilla/UiColorPicker.js +22 -20
  151. package/vanilla/UiColumn.d.ts +2 -2
  152. package/vanilla/UiColumn.js +18 -15
  153. package/vanilla/UiCombobox.d.ts +3 -3
  154. package/vanilla/UiCombobox.js +237 -174
  155. package/vanilla/UiCompactContent.d.ts +1 -1
  156. package/vanilla/UiCompactContent.js +13 -8
  157. package/vanilla/UiCompactEditor.d.ts +1 -1
  158. package/vanilla/UiCompactEditor.js +17 -12
  159. package/vanilla/UiCompactMark.d.ts +1 -1
  160. package/vanilla/UiCompactMark.js +47 -45
  161. package/vanilla/UiCompactNode.d.ts +2 -2
  162. package/vanilla/UiCompactNode.js +37 -33
  163. package/vanilla/UiContainer.d.ts +1 -1
  164. package/vanilla/UiContainer.js +13 -11
  165. package/vanilla/UiContextMenu.d.ts +1 -1
  166. package/vanilla/UiContextMenu.js +11 -9
  167. package/vanilla/UiCover.d.ts +1 -1
  168. package/vanilla/UiCover.js +13 -11
  169. package/vanilla/UiCurveEditor.d.ts +1 -1
  170. package/vanilla/UiCurveEditor.js +40 -38
  171. package/vanilla/UiCycleButton.d.ts +2 -2
  172. package/vanilla/UiCycleButton.js +31 -26
  173. package/vanilla/UiDataTable.d.ts +1 -1
  174. package/vanilla/UiDataTable.js +26 -20
  175. package/vanilla/UiDateField.d.ts +1 -1
  176. package/vanilla/UiDateField.js +78 -75
  177. package/vanilla/UiDatePicker.d.ts +1 -1
  178. package/vanilla/UiDatePicker.js +155 -149
  179. package/vanilla/UiDateRangePicker.d.ts +1 -1
  180. package/vanilla/UiDateRangePicker.js +136 -128
  181. package/vanilla/UiDescriptionItem.d.ts +1 -1
  182. package/vanilla/UiDescriptionItem.js +13 -11
  183. package/vanilla/UiDescriptionList.d.ts +1 -1
  184. package/vanilla/UiDescriptionList.js +13 -11
  185. package/vanilla/UiDialog.d.ts +1 -1
  186. package/vanilla/UiDialog.js +14 -14
  187. package/vanilla/UiDisclosure.d.ts +1 -1
  188. package/vanilla/UiDisclosure.js +28 -26
  189. package/vanilla/UiEditable.d.ts +1 -1
  190. package/vanilla/UiEditable.js +29 -27
  191. package/vanilla/UiEditor.d.ts +1 -1
  192. package/vanilla/UiEditor.js +62 -58
  193. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  194. package/vanilla/UiEditorBlockActions.js +14 -12
  195. package/vanilla/UiEditorChipEditor.d.ts +1 -1
  196. package/vanilla/UiEditorChipEditor.js +22 -14
  197. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  198. package/vanilla/UiEditorCodeLanguage.js +23 -16
  199. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  200. package/vanilla/UiEditorFootnoteEditor.js +17 -9
  201. package/vanilla/UiEditorFormattingTools.d.ts +1 -1
  202. package/vanilla/UiEditorFormattingTools.js +108 -71
  203. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  204. package/vanilla/UiEditorImageToolbar.js +68 -66
  205. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  206. package/vanilla/UiEditorInsertTableGrid.js +50 -35
  207. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  208. package/vanilla/UiEditorLinkCard.js +27 -25
  209. package/vanilla/UiEditorLinkForm.d.ts +1 -1
  210. package/vanilla/UiEditorLinkForm.js +79 -57
  211. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  212. package/vanilla/UiEditorMentionMenu.js +63 -44
  213. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  214. package/vanilla/UiEditorMentionMenuItem.js +22 -16
  215. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  216. package/vanilla/UiEditorSlashMenu.js +52 -33
  217. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  218. package/vanilla/UiEditorSlashMenuGroup.js +19 -14
  219. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  220. package/vanilla/UiEditorSlashMenuItem.js +27 -25
  221. package/vanilla/UiEditorSurface.d.ts +1 -1
  222. package/vanilla/UiEditorSurface.js +13 -11
  223. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  224. package/vanilla/UiEditorTableContextMenu.js +81 -52
  225. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  226. package/vanilla/UiEditorTableOverlay.js +107 -68
  227. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  228. package/vanilla/UiEditorTableToolbar.js +121 -70
  229. package/vanilla/UiEditorToolbar.d.ts +1 -1
  230. package/vanilla/UiEditorToolbar.js +20 -12
  231. package/vanilla/UiFileInput.d.ts +1 -1
  232. package/vanilla/UiFileInput.js +94 -80
  233. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  234. package/vanilla/UiFloatingActionButton.js +21 -20
  235. package/vanilla/UiFormField.d.ts +1 -1
  236. package/vanilla/UiFormField.js +21 -19
  237. package/vanilla/UiGrid.d.ts +1 -1
  238. package/vanilla/UiGrid.js +26 -23
  239. package/vanilla/UiIcon.d.ts +1 -1
  240. package/vanilla/UiIcon.js +20 -15
  241. package/vanilla/UiIconButton.d.ts +1 -1
  242. package/vanilla/UiIconButton.js +35 -43
  243. package/vanilla/UiImage.d.ts +1 -1
  244. package/vanilla/UiImage.js +16 -14
  245. package/vanilla/UiInput.d.ts +1 -1
  246. package/vanilla/UiInput.js +29 -35
  247. package/vanilla/UiInputGroup.d.ts +1 -1
  248. package/vanilla/UiInputGroup.js +16 -14
  249. package/vanilla/UiLightEditor.d.ts +1 -1
  250. package/vanilla/UiLightEditor.js +29 -27
  251. package/vanilla/UiList.d.ts +1 -1
  252. package/vanilla/UiList.js +33 -27
  253. package/vanilla/UiListItem.d.ts +1 -1
  254. package/vanilla/UiListItem.js +12 -12
  255. package/vanilla/UiListbox.d.ts +1 -1
  256. package/vanilla/UiListbox.js +90 -80
  257. package/vanilla/UiMenu.d.ts +1 -1
  258. package/vanilla/UiMenu.js +20 -12
  259. package/vanilla/UiMenuGroup.d.ts +1 -1
  260. package/vanilla/UiMenuGroup.js +14 -11
  261. package/vanilla/UiMenuItem.d.ts +1 -1
  262. package/vanilla/UiMenuItem.js +74 -75
  263. package/vanilla/UiMeter.d.ts +1 -1
  264. package/vanilla/UiMeter.js +67 -62
  265. package/vanilla/UiNavItem.d.ts +1 -1
  266. package/vanilla/UiNavItem.js +63 -65
  267. package/vanilla/UiNoticeStripe.d.ts +1 -1
  268. package/vanilla/UiNoticeStripe.js +16 -16
  269. package/vanilla/UiNumberInput.d.ts +1 -1
  270. package/vanilla/UiNumberInput.js +41 -38
  271. package/vanilla/UiPageHeader.d.ts +1 -1
  272. package/vanilla/UiPageHeader.js +17 -15
  273. package/vanilla/UiPagination.d.ts +1 -1
  274. package/vanilla/UiPagination.js +53 -44
  275. package/vanilla/UiPopover.d.ts +1 -1
  276. package/vanilla/UiPopover.js +13 -11
  277. package/vanilla/UiRadio.d.ts +1 -1
  278. package/vanilla/UiRadio.js +25 -23
  279. package/vanilla/UiRadioGroup.d.ts +1 -1
  280. package/vanilla/UiRadioGroup.js +33 -36
  281. package/vanilla/UiReel.d.ts +1 -1
  282. package/vanilla/UiReel.js +20 -12
  283. package/vanilla/UiScrollArea.d.ts +1 -1
  284. package/vanilla/UiScrollArea.js +13 -11
  285. package/vanilla/UiSearchResultRow.d.ts +1 -1
  286. package/vanilla/UiSearchResultRow.js +21 -20
  287. package/vanilla/UiSearchShell.d.ts +1 -1
  288. package/vanilla/UiSearchShell.js +16 -14
  289. package/vanilla/UiSection.d.ts +1 -1
  290. package/vanilla/UiSection.js +48 -45
  291. package/vanilla/UiSegmentedControl.d.ts +2 -2
  292. package/vanilla/UiSegmentedControl.js +52 -47
  293. package/vanilla/UiSelect.d.ts +1 -1
  294. package/vanilla/UiSelect.js +17 -21
  295. package/vanilla/UiSeparator.d.ts +1 -1
  296. package/vanilla/UiSeparator.js +12 -12
  297. package/vanilla/UiSidebar.d.ts +1 -1
  298. package/vanilla/UiSidebar.js +17 -15
  299. package/vanilla/UiSiteHeader.d.ts +1 -1
  300. package/vanilla/UiSiteHeader.js +25 -23
  301. package/vanilla/UiSkeleton.d.ts +1 -1
  302. package/vanilla/UiSkeleton.js +21 -20
  303. package/vanilla/UiSlider.d.ts +1 -1
  304. package/vanilla/UiSlider.js +50 -47
  305. package/vanilla/UiSpinner.d.ts +1 -1
  306. package/vanilla/UiSpinner.js +34 -27
  307. package/vanilla/UiStack.d.ts +1 -1
  308. package/vanilla/UiStack.js +12 -12
  309. package/vanilla/UiStatusMessage.d.ts +1 -1
  310. package/vanilla/UiStatusMessage.js +22 -21
  311. package/vanilla/UiSwatch.d.ts +1 -1
  312. package/vanilla/UiSwatch.js +20 -17
  313. package/vanilla/UiSwitch.d.ts +1 -1
  314. package/vanilla/UiSwitch.js +25 -23
  315. package/vanilla/UiSwitcher.d.ts +1 -1
  316. package/vanilla/UiSwitcher.js +13 -11
  317. package/vanilla/UiTable.d.ts +1 -1
  318. package/vanilla/UiTable.js +13 -11
  319. package/vanilla/UiTabs.d.ts +1 -1
  320. package/vanilla/UiTabs.js +39 -28
  321. package/vanilla/UiText.d.ts +1 -1
  322. package/vanilla/UiText.js +128 -125
  323. package/vanilla/UiTextarea.d.ts +1 -1
  324. package/vanilla/UiTextarea.js +27 -39
  325. package/vanilla/UiTimeField.d.ts +1 -1
  326. package/vanilla/UiTimeField.js +42 -40
  327. package/vanilla/UiTimePicker.d.ts +1 -1
  328. package/vanilla/UiTimePicker.js +105 -102
  329. package/vanilla/UiToast.d.ts +1 -1
  330. package/vanilla/UiToast.js +14 -14
  331. package/vanilla/UiToastRegion.d.ts +1 -1
  332. package/vanilla/UiToastRegion.js +61 -31
  333. package/vanilla/UiTooltip.d.ts +1 -1
  334. package/vanilla/UiTooltip.js +17 -14
  335. package/vanilla/UiTopBar.d.ts +1 -1
  336. package/vanilla/UiTopBar.js +24 -22
  337. package/vanilla/UiTree.d.ts +1 -1
  338. package/vanilla/UiTree.js +17 -12
  339. package/vanilla/UiTreeItem.d.ts +1 -1
  340. package/vanilla/UiTreeItem.js +73 -79
  341. package/vanilla/UiWizard.d.ts +1 -1
  342. package/vanilla/UiWizard.js +61 -40
@@ -1,10 +1,15 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, stateInitializers, binaryValue, buildTemplate, checkReference, logicValue, NONCONFORMING, readDeclared, readIndex, readMember, recordValue, textCall, toAttribute, toText, trackContainer, truthy, truthyValue, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, RangedKeyedList, 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, referenceSchemaAt, equalValue, stateInitializers, buildTemplate, NONCONFORMING, readIndex, readMember, recordValue, textCall, toAttribute, toText, trackContainer, truthy, truthyValue, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, RangedKeyedList, 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-range-picker/ui-date-range-picker.js";
4
4
  import "../styles/ui-date-range-picker.css";
5
5
 
6
6
  const T0 = ["",[],"\n ",["ui-stack",["gap","s"],["ui-grid",["columns","2","gap","s"],2],"\n ",["ui-text",["data-range-error","","tone","danger","role","alert"],0]],"\n ",["input",["data-range-value","start","type","hidden"]],"\n ",["input",["data-range-value","end","type","hidden"]],"\n ",["ui-popover",["data-range-popover","","trigger","manual","size","sm","role","dialog"],["ui-stack",["gap","s"],["ui-calendar",["data-range-calendar",""]],"\n ",["ui-text",["data-range-popup-error","","tone","danger","role","alert"],0]]],"\n "];
7
7
  const T1 = ["",[],"\n ",["ui-form-field",[],["ui-text",["slot","label","as","label","variant","label"],0],["ui-input-group",[],["ui-date-field",[]],["ui-icon-button",["slot","action","variant","ghost","aria-haspopup","dialog"],["ui-icon",["name","calendar"]]]]],"\n "];
8
+ const RC0 = ["s", "string"];
9
+ const RC1 = ["a", "absent"];
10
+ const RC2 = [0, "", { ["start"]: RC0, ["end"]: RC0 }, RC1, RC1];
11
+ const RC3 = [["l"], "list(object({ start: string, end: string }))"];
12
+ const RC4 = ["i", "integer"];
8
13
  let P0, P1;
9
14
  const emptyDirty = new Map();
10
15
  const S = { n: ["current","draft","selection","preview","anchor","mode","popupValue","enhanced","opened","idPrefix","activeAnchor","blocked","error"], t: [["o",["start","s","end","s"]],["o",["start","s","end","s"]],["o",["start","s","end","s"]],["o",["start","s","end","s"]],"s","s","s","b","b","s","s","b","s"], f: import.meta.url, g: "ui-date-range-picker", d: { "input": [detailCheck(checkObject([["value", checkObject([["start", checkString, false], ["end", checkString, false]], false), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "change": [detailCheck(checkObject([["value", checkObject([["start", checkString, false], ["end", checkString, false]], false), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "query-change": [detailCheck(checkObject([["endpoint", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["start","end"]}), false], ["query", checkString, false]], false)), true, true, false], "validation-change": [detailCheck(checkObject([["invalid", checkBoolean, false], ["message", checkString, false], ["endpoint", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["start","end"]}), true]], 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, null, { "start": "", "end": "" }, { "start": "", "end": "" }, "", "range", "", false, false, "", "", false, ""] };
@@ -12,12 +17,9 @@ const D = { g: "ui-date-range-picker", props: { "allowUnavailableWithinRange": {
12
17
  const C = (host) => activateModule(controller, host);
13
18
 
14
19
  export function createUiDateRangePicker(options = {}, html) {
15
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
20
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
21
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["allow-unavailable-within-range","allowed-dates","allowed-ranges","disabled","disabled-dates","disabled-ranges","disabled-weekdays","display-options","end-input-id","end-label","end-name","form","invalid","label","locale","max","min","model","month-label","next-label","picker-label","previous-label","readonly","required","size","start-input-id","start-label","start-name","today","value","week-starts-on","year-label"].includes(name)));
16
22
  const element = document.createElement("span");
17
- for (const [name, value] of Object.entries(attributes)) {
18
- if (value === null || value === undefined || value === false) continue;
19
- element.setAttribute(name, value === true ? "" : String(value));
20
- }
21
23
  if (!element.hasAttribute("role")) element.setAttribute("role", "group");
22
24
  element.setAttribute("component", "ui-date-range-picker");
23
25
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
@@ -26,7 +28,7 @@ export function createUiDateRangePicker(options = {}, html) {
26
28
  const CS = [];
27
29
  const inputStatus = (j) => { if (j === 0) return E.status(j); if (j === 1) return E.status(j); if (j === 13) return awaitInput(B, "allowUnavailableWithinRange", true); if (j === 14) return awaitInput(B, "allowedDates", true); if (j === 15) return awaitInput(B, "allowedRanges", true); if (j === 16) return awaitInput(B, "disabled", true); if (j === 17) return awaitInput(B, "disabledDates", true); if (j === 18) return awaitInput(B, "disabledRanges", true); if (j === 19) return awaitInput(B, "disabledWeekdays", true); if (j === 20) return awaitInput(B, "displayOptions", true); if (j === 21) return awaitInput(B, "endInputId", true); if (j === 22) return awaitInput(B, "endLabel", true); if (j === 23) return awaitInput(B, "endName", true); if (j === 24) return awaitInput(B, "form", true); if (j === 25) return awaitInput(B, "invalid", true); if (j === 26) return awaitInput(B, "label", true); if (j === 27) return awaitInput(B, "locale", true); if (j === 28) return awaitInput(B, "max", true); if (j === 29) return awaitInput(B, "min", true); if (j === 30) return awaitInput(B, "model", true); if (j === 31) return awaitInput(B, "monthLabel", true); if (j === 32) return awaitInput(B, "nextLabel", true); if (j === 33) return awaitInput(B, "pickerLabel", true); if (j === 34) return awaitInput(B, "previousLabel", true); if (j === 35) return awaitInput(B, "readonly", true); if (j === 36) return awaitInput(B, "required", true); if (j === 37) return awaitInput(B, "size", true); if (j === 38) return awaitInput(B, "startInputId", true); if (j === 39) return awaitInput(B, "startLabel", true); if (j === 40) return awaitInput(B, "startName", true); if (j === 41) return awaitInput(B, "today", true); if (j === 42) return awaitInput(B, "value", true); if (j === 43) return awaitInput(B, "weekStartsOn", true); if (j === 44) return awaitInput(B, "yearLabel", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
28
30
  const X = { e: 0, g: (j) => v[j], w: new Set(), a: CS, i: inputStatus };
29
- const E = stateInitializers(S, v, X, { 0: () => inputRead(v[42], inputStatus(42)), 1: () => inputRead(v[42], inputStatus(42)) });
31
+ const E = stateInitializers(S, v, X, { 0: () => (inputRead(v[42], inputStatus(42))), 1: () => (inputRead(v[42], inputStatus(42))) });
30
32
  const m1 = (o, j, l) => {
31
33
  const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
32
34
  const t0 = n.firstChild.nextSibling;
@@ -53,7 +55,7 @@ export function createUiDateRangePicker(options = {}, html) {
53
55
  if (s5 !== r.v5) writeAttribute(r.a3, "disabled", r.v5 = s5);
54
56
  }
55
57
  if (c & 1610612738) {
56
- const x1 = (checkReference(S, readDeclared(v[1], ["end"]), "s", "expression:$required or $draft.start != '' or $draft.end != '':draft.end", "Reference `draft.end` must satisfy string.") && checkReference(S, readDeclared(v[1], ["start"]), "s", "expression:$required or $draft.start != '' or $draft.end != '':draft.start", "Reference `draft.start` must satisfy string.") ? ((truthy(v[36]) || (readMember(E.read(1), "start") !== "")) || (readMember(E.read(1), "end") !== "")) : NONCONFORMING);
58
+ const x1 = ((q) => q === NONCONFORMING ? q : q ? true : truthyValue(equalValue(checkedReferenceValue(S, readMember(E.read(1), "end"), RC0, "expression:$required or $draft.start != '' or $draft.end != '':draft.end", "draft.end"), "", true)))(truthyValue(((q) => q === NONCONFORMING ? q : q ? true : truthyValue(equalValue(checkedReferenceValue(S, readMember(E.read(1), "start"), RC0, "expression:$required or $draft.start != '' or $draft.end != '':draft.start", "draft.start"), "", true)))(truthy(v[36]))));
57
59
  if (x1 !== NONCONFORMING) {
58
60
  const s1 = toAttribute(x1, "required");
59
61
  if (s1 !== r.v1) writeAttribute(r.a0, "required", r.v1 = s1);
@@ -82,7 +84,7 @@ export function createUiDateRangePicker(options = {}, html) {
82
84
  if (s25 !== r.v25) writeAttribute(r.a5, "data-range-trigger", r.v25 = s25);
83
85
  }
84
86
  if (c & 1073741826) {
85
- const x6 = trackContainer(r, (checkReference(S, v[1], ["o",["start","s","end","s"]], "expression:$draft[$endpoint]:draft", "Reference `draft` must satisfy object({ start: string, end: string }).") ? readIndex(E.read(1), o) : NONCONFORMING));
87
+ const x6 = trackContainer(r, (() => { let x = E.read(1), t = RC2, k; k = o; x = readIndex(x, k); t = referenceSchemaAt(t, k); return checkedReferenceValue(S, x, t, "expression:$draft[$endpoint]:draft[computed]", "draft[computed]"); })());
86
88
  if (x6 !== NONCONFORMING) {
87
89
  const s7 = toAttribute(x6, "value");
88
90
  if (s7 !== r.v7) writeAttribute(r.a4, "value", r.v7 = s7);
@@ -136,7 +138,7 @@ export function createUiDateRangePicker(options = {}, html) {
136
138
  if (s16 !== r.v16) writeAttribute(r.a4, "max", r.v16 = s16);
137
139
  }
138
140
  if (c & 1610612736) {
139
- const x16 = trackContainer(r, (checkReference(S, readDeclared(v[30], ["endRanges"]), ["l",["o",["start","s","end","s"]]], "expression:{ start: $model.startRanges, end: $model.endRanges }[$endpoint]:model.endRanges", "Reference `model.endRanges` must satisfy list(object({ start: string, end: string })).") && checkReference(S, readDeclared(v[30], ["startRanges"]), ["l",["o",["start","s","end","s"]]], "expression:{ start: $model.startRanges, end: $model.endRanges }[$endpoint]:model.startRanges", "Reference `model.startRanges` must satisfy list(object({ start: string, end: string })).") ? readIndex({ "start": readMember(v[30], "startRanges"), "end": readMember(v[30], "endRanges") }, o) : NONCONFORMING));
141
+ const x16 = trackContainer(r, readIndex(recordValue(["start","end"], [checkedReferenceValue(S, readMember(v[30], "startRanges"), RC3, "expression:{ start: $model.startRanges, end: $model.endRanges }[$endpoint]:model.startRanges", "model.startRanges"), checkedReferenceValue(S, readMember(v[30], "endRanges"), RC3, "expression:{ start: $model.startRanges, end: $model.endRanges }[$endpoint]:model.endRanges", "model.endRanges")]), o));
140
142
  if (x16 !== NONCONFORMING) {
141
143
  const s17 = toAttribute(x16, "allowed-ranges");
142
144
  if (s17 !== r.v17) writeAttribute(r.a4, "allowed-ranges", r.v17 = s17);
@@ -168,7 +170,7 @@ export function createUiDateRangePicker(options = {}, html) {
168
170
  if (s22 !== r.v22) writeAttribute(r.a4, "readonly", r.v22 = s22);
169
171
  }
170
172
  if (c & 1610612738) {
171
- const x22 = (checkReference(S, readDeclared(v[1], ["end"]), "s", "expression:$required or $draft.start != '' or $draft.end != '':draft.end", "Reference `draft.end` must satisfy string.") && checkReference(S, readDeclared(v[1], ["start"]), "s", "expression:$required or $draft.start != '' or $draft.end != '':draft.start", "Reference `draft.start` must satisfy string.") ? ((truthy(v[36]) || (readMember(E.read(1), "start") !== "")) || (readMember(E.read(1), "end") !== "")) : NONCONFORMING);
173
+ const x22 = ((q) => q === NONCONFORMING ? q : q ? true : truthyValue(equalValue(checkedReferenceValue(S, readMember(E.read(1), "end"), RC0, "expression:$required or $draft.start != '' or $draft.end != '':draft.end", "draft.end"), "", true)))(truthyValue(((q) => q === NONCONFORMING ? q : q ? true : truthyValue(equalValue(checkedReferenceValue(S, readMember(E.read(1), "start"), RC0, "expression:$required or $draft.start != '' or $draft.end != '':draft.start", "draft.start"), "", true)))(truthy(v[36]))));
172
174
  if (x22 !== NONCONFORMING) {
173
175
  const s23 = toAttribute(x22, "required");
174
176
  if (s23 !== r.v23) writeAttribute(r.a4, "required", r.v23 = s23);
@@ -180,7 +182,7 @@ export function createUiDateRangePicker(options = {}, html) {
180
182
  if (s24 !== r.v24) writeAttribute(r.a4, "invalid", r.v24 = s24);
181
183
  }
182
184
  if (c & 1073742336) {
183
- const x24 = trackContainer(r, readIndex(recordValue(["true","false"], [textCall("concat", [v[9], "-", trackContainer(r, o)]), null]), textCall("concat", [(v[9] !== "")])));
185
+ const x24 = trackContainer(r, readIndex(recordValue(["true","false"], [textCall("concat", [v[9], "-", trackContainer(r, o)]), null]), textCall("concat", [equalValue(v[9], "", true)])));
184
186
  if (x24 !== NONCONFORMING) {
185
187
  const s26 = toAttribute(x24, "id");
186
188
  if (s26 !== r.v26) writeAttribute(r.a5, "id", r.v26 = s26);
@@ -209,7 +211,7 @@ export function createUiDateRangePicker(options = {}, html) {
209
211
  if (s30 !== r.v30) writeAttribute(r.a5, "disabled", r.v30 = s30);
210
212
  }
211
213
  if (c & 1073743616) {
212
- const x29 = logicValue(true, v[8], truthyValue(binaryValue("=", v[10], textCall("concat", [v[9], "-", trackContainer(r, o)]))));
214
+ const x29 = ((q) => q === NONCONFORMING ? q : q ? truthyValue(equalValue(v[10], textCall("concat", [v[9], "-", trackContainer(r, o)]))) : false)(v[8]);
213
215
  if (x29 !== NONCONFORMING) {
214
216
  const s31 = toAttribute(x29, "aria-expanded");
215
217
  if (s31 !== r.v31) writeAttribute(r.a5, "aria-expanded", r.v31 = s31);
@@ -218,180 +220,185 @@ export function createUiDateRangePicker(options = {}, html) {
218
220
  };
219
221
  const p0 = (r, c, d) => {
220
222
  if (c & 67108864) {
221
- const x0 = v[26];
222
- const s0 = toAttribute(x0, "aria-label");
223
- if (s0 !== r.v0) writeAttribute(r.n, "aria-label", r.v0 = s0);
223
+ resetForwardedAttributes(r.n, attributes, r.v0);
224
+ r.v0 = forwardAttributes(r.n, attributes);
225
+ const x0 = "group";
226
+ const s1 = toAttribute(x0, "role");
227
+ writeAttribute(r.n, "role", r.v1 = s1);
228
+ const x1 = v[26];
229
+ const s2 = toAttribute(x1, "aria-label");
230
+ writeAttribute(r.n, "aria-label", r.v2 = s2);
224
231
  }
225
232
  if (c & 4352) {
226
- const x1 = ((v[12] === "") || v[8]);
227
- const s1 = toAttribute(x1, "hidden");
228
- if (s1 !== r.v1) writeAttribute(r.a2, "hidden", r.v1 = s1);
233
+ const x2 = (truthy(equalValue(v[12], "")) || v[8]);
234
+ const s3 = toAttribute(x2, "hidden");
235
+ if (s3 !== r.v3) writeAttribute(r.a2, "hidden", r.v3 = s3);
229
236
  }
230
237
  if (c & 4096) {
231
- const x2 = v[12];
232
- const s2 = toText(x2);
233
- if (s2 !== r.v2) r.a3.data = r.v2 = s2;
234
- const x3 = (v[12] === "");
235
- const s32 = toAttribute(x3, "hidden");
236
- if (s32 !== r.v32) writeAttribute(r.a8, "hidden", r.v32 = s32);
237
- const s33 = toText(x2);
238
- if (s33 !== r.v33) r.a9.data = r.v33 = s33;
238
+ const x3 = v[12];
239
+ const s4 = toText(x3);
240
+ if (s4 !== r.v4) r.a3.data = r.v4 = s4;
241
+ const x4 = equalValue(v[12], "");
242
+ const s34 = toAttribute(x4, "hidden");
243
+ if (s34 !== r.v34) writeAttribute(r.a8, "hidden", r.v34 = s34);
244
+ const s35 = toText(x3);
245
+ if (s35 !== r.v35) r.a9.data = r.v35 = s35;
239
246
  }
240
247
  if (c & 536870912) {
241
- const x4 = v[40];
242
- const s3 = toAttribute(x4, "name");
243
- if (s3 !== r.v3) writeAttribute(r.a4, "name", r.v3 = s3);
248
+ const x5 = v[40];
249
+ const s5 = toAttribute(x5, "name");
250
+ if (s5 !== r.v5) writeAttribute(r.a4, "name", r.v5 = s5);
244
251
  }
245
252
  if (c & 1090519040) {
246
- const x5 = readIndex({ "true": v[24], "false": null }, textCall("concat", [(v[24] !== "")]));
247
- if (x5 !== NONCONFORMING) {
248
- const s4 = toAttribute(x5, "form");
249
- if (s4 !== r.v4) writeAttribute(r.a4, "form", r.v4 = s4);
253
+ const x6 = readIndex({ "true": v[24], "false": null }, textCall("concat", [equalValue(v[24], "", true)]));
254
+ if (x6 !== NONCONFORMING) {
255
+ const s6 = toAttribute(x6, "form");
256
+ if (s6 !== r.v6) writeAttribute(r.a4, "form", r.v6 = s6);
250
257
  }
251
258
  }
252
259
  if (c & 1073741825) {
253
- const x6 = (checkReference(S, readDeclared(v[0], ["start"]), "s", "expression:$current.start:current.start", "Reference `current.start` must satisfy string.") ? readMember(E.read(0), "start") : NONCONFORMING);
254
- if (x6 !== NONCONFORMING) {
255
- const s5 = toAttribute(x6, "value");
256
- if (s5 !== r.v5) writeAttribute(r.a4, "value", r.v5 = s5);
260
+ const x7 = checkedReferenceValue(S, readMember(E.read(0), "start"), RC0, "expression:$current.start:current.start", "current.start");
261
+ if (x7 !== NONCONFORMING) {
262
+ const s7 = toAttribute(x7, "value");
263
+ if (s7 !== r.v7) writeAttribute(r.a4, "value", r.v7 = s7);
257
264
  }
258
265
  }
259
266
  if (c & 65664) {
260
- const x7 = (!v[7] || truthy(v[16]));
261
- const s6 = toAttribute(x7, "disabled");
262
- if (s6 !== r.v6) writeAttribute(r.a4, "disabled", r.v6 = s6);
267
+ const x8 = (!v[7] || truthy(v[16]));
268
+ const s8 = toAttribute(x8, "disabled");
269
+ if (s8 !== r.v8) writeAttribute(r.a4, "disabled", r.v8 = s8);
263
270
  }
264
271
  if (c & 8388608) {
265
- const x8 = v[23];
266
- const s7 = toAttribute(x8, "name");
267
- if (s7 !== r.v7) writeAttribute(r.a5, "name", r.v7 = s7);
272
+ const x9 = v[23];
273
+ const s9 = toAttribute(x9, "name");
274
+ if (s9 !== r.v9) writeAttribute(r.a5, "name", r.v9 = s9);
268
275
  }
269
276
  if (c & 1090519040) {
270
- const x9 = readIndex({ "true": v[24], "false": null }, textCall("concat", [(v[24] !== "")]));
271
- if (x9 !== NONCONFORMING) {
272
- const s8 = toAttribute(x9, "form");
273
- if (s8 !== r.v8) writeAttribute(r.a5, "form", r.v8 = s8);
277
+ const x10 = readIndex({ "true": v[24], "false": null }, textCall("concat", [equalValue(v[24], "", true)]));
278
+ if (x10 !== NONCONFORMING) {
279
+ const s10 = toAttribute(x10, "form");
280
+ if (s10 !== r.v10) writeAttribute(r.a5, "form", r.v10 = s10);
274
281
  }
275
282
  }
276
283
  if (c & 1073741825) {
277
- const x10 = (checkReference(S, readDeclared(v[0], ["end"]), "s", "expression:$current.end:current.end", "Reference `current.end` must satisfy string.") ? readMember(E.read(0), "end") : NONCONFORMING);
278
- if (x10 !== NONCONFORMING) {
279
- const s9 = toAttribute(x10, "value");
280
- if (s9 !== r.v9) writeAttribute(r.a5, "value", r.v9 = s9);
284
+ const x11 = checkedReferenceValue(S, readMember(E.read(0), "end"), RC0, "expression:$current.end:current.end", "current.end");
285
+ if (x11 !== NONCONFORMING) {
286
+ const s11 = toAttribute(x11, "value");
287
+ if (s11 !== r.v11) writeAttribute(r.a5, "value", r.v11 = s11);
281
288
  }
282
289
  }
283
290
  if (c & 65664) {
284
- const x11 = (!v[7] || truthy(v[16]));
285
- const s10 = toAttribute(x11, "disabled");
286
- if (s10 !== r.v10) writeAttribute(r.a5, "disabled", r.v10 = s10);
291
+ const x12 = (!v[7] || truthy(v[16]));
292
+ const s12 = toAttribute(x12, "disabled");
293
+ if (s12 !== r.v12) writeAttribute(r.a5, "disabled", r.v12 = s12);
287
294
  }
288
295
  if (c & 1024) {
289
- const x12 = v[10];
290
- const s11 = toAttribute(x12, "for");
291
- if (s11 !== r.v11) writeAttribute(r.a6, "for", r.v11 = s11);
296
+ const x13 = v[10];
297
+ const s13 = toAttribute(x13, "for");
298
+ if (s13 !== r.v13) writeAttribute(r.a6, "for", r.v13 = s13);
292
299
  }
293
300
  if (c & 256) {
294
- const x13 = v[8];
295
- const s12 = toAttribute(x13, "open");
296
- if (s12 !== r.v12) writeAttribute(r.a6, "open", r.v12 = s12);
301
+ const x14 = v[8];
302
+ const s14 = toAttribute(x14, "open");
303
+ if (s14 !== r.v14) writeAttribute(r.a6, "open", r.v14 = s14);
297
304
  }
298
305
  if (c & 536870912) {
299
- const x14 = v[33];
300
- const s13 = toAttribute(x14, "aria-label");
301
- if (s13 !== r.v13) writeAttribute(r.a6, "aria-label", r.v13 = s13);
306
+ const x15 = v[33];
307
+ const s15 = toAttribute(x15, "aria-label");
308
+ if (s15 !== r.v15) writeAttribute(r.a6, "aria-label", r.v15 = s15);
302
309
  }
303
310
  if (c & 1073742145) {
304
- const x15 = (checkReference(S, readDeclared(v[0], ["start"]), "s", "expression:{ true: $popupValue, false: $current.start }[concat($opened)]:current.start", "Reference `current.start` must satisfy string.") ? readIndex({ "true": v[6], "false": readMember(E.read(0), "start") }, textCall("concat", [v[8]])) : NONCONFORMING);
305
- if (x15 !== NONCONFORMING) {
306
- const s14 = toAttribute(x15, "value");
307
- if (s14 !== r.v14) writeAttribute(r.a7, "value", r.v14 = s14);
311
+ const x16 = readIndex(recordValue(["true","false"], [v[6], checkedReferenceValue(S, readMember(E.read(0), "start"), RC0, "expression:{ true: $popupValue, false: $current.start }[concat($opened)]:current.start", "current.start")]), textCall("concat", [v[8]]));
312
+ if (x16 !== NONCONFORMING) {
313
+ const s16 = toAttribute(x16, "value");
314
+ if (s16 !== r.v16) writeAttribute(r.a7, "value", r.v16 = s16);
308
315
  }
309
316
  }
310
317
  if (c & 1073742089) {
311
- const x16 = (checkReference(S, readDeclared(v[0], ["start"]), "s", "expression:{ true: $preview.start, false: $current.start }[concat($opened)]:current.start", "Reference `current.start` must satisfy string.") && checkReference(S, readDeclared(v[3], ["start"]), "s", "expression:{ true: $preview.start, false: $current.start }[concat($opened)]:preview.start", "Reference `preview.start` must satisfy string.") ? readIndex({ "true": readMember(v[3], "start"), "false": readMember(E.read(0), "start") }, textCall("concat", [v[8]])) : NONCONFORMING);
312
- if (x16 !== NONCONFORMING) {
313
- const s15 = toAttribute(x16, "start");
314
- if (s15 !== r.v15) writeAttribute(r.a7, "start", r.v15 = s15);
315
- }
316
- const x17 = (checkReference(S, readDeclared(v[0], ["end"]), "s", "expression:{ true: $preview.end, false: $current.end }[concat($opened)]:current.end", "Reference `current.end` must satisfy string.") && checkReference(S, readDeclared(v[3], ["end"]), "s", "expression:{ true: $preview.end, false: $current.end }[concat($opened)]:preview.end", "Reference `preview.end` must satisfy string.") ? readIndex({ "true": readMember(v[3], "end"), "false": readMember(E.read(0), "end") }, textCall("concat", [v[8]])) : NONCONFORMING);
318
+ const x17 = readIndex(recordValue(["true","false"], [checkedReferenceValue(S, readMember(v[3], "start"), RC0, "expression:{ true: $preview.start, false: $current.start }[concat($opened)]:preview.start", "preview.start"), checkedReferenceValue(S, readMember(E.read(0), "start"), RC0, "expression:{ true: $preview.start, false: $current.start }[concat($opened)]:current.start", "current.start")]), textCall("concat", [v[8]]));
317
319
  if (x17 !== NONCONFORMING) {
318
- const s16 = toAttribute(x17, "end");
319
- if (s16 !== r.v16) writeAttribute(r.a7, "end", r.v16 = s16);
320
+ const s17 = toAttribute(x17, "start");
321
+ if (s17 !== r.v17) writeAttribute(r.a7, "start", r.v17 = s17);
322
+ }
323
+ const x18 = readIndex(recordValue(["true","false"], [checkedReferenceValue(S, readMember(v[3], "end"), RC0, "expression:{ true: $preview.end, false: $current.end }[concat($opened)]:preview.end", "preview.end"), checkedReferenceValue(S, readMember(E.read(0), "end"), RC0, "expression:{ true: $preview.end, false: $current.end }[concat($opened)]:current.end", "current.end")]), textCall("concat", [v[8]]));
324
+ if (x18 !== NONCONFORMING) {
325
+ const s18 = toAttribute(x18, "end");
326
+ if (s18 !== r.v18) writeAttribute(r.a7, "end", r.v18 = s18);
320
327
  }
321
328
  }
322
329
  if (c & 1610612736) {
323
- const x18 = (checkReference(S, readDeclared(v[30], ["calendarRanges"]), ["l",["o",["start","s","end","s"]]], "expression:$model.calendarRanges:model.calendarRanges", "Reference `model.calendarRanges` must satisfy list(object({ start: string, end: string })).") ? readMember(v[30], "calendarRanges") : NONCONFORMING);
324
- if (x18 !== NONCONFORMING) {
325
- const s17 = toAttribute(x18, "allowed-ranges");
326
- if (s17 !== r.v17) writeAttribute(r.a7, "allowed-ranges", r.v17 = s17);
330
+ const x19 = checkedReferenceValue(S, readMember(v[30], "calendarRanges"), RC3, "expression:$model.calendarRanges:model.calendarRanges", "model.calendarRanges");
331
+ if (x19 !== NONCONFORMING) {
332
+ const s19 = toAttribute(x19, "allowed-ranges");
333
+ if (s19 !== r.v19) writeAttribute(r.a7, "allowed-ranges", r.v19 = s19);
327
334
  }
328
335
  }
329
336
  if (c & 536870912) {
330
- const x19 = v[29];
331
- const s18 = toAttribute(x19, "min");
332
- if (s18 !== r.v18) writeAttribute(r.a7, "min", r.v18 = s18);
337
+ const x20 = v[29];
338
+ const s20 = toAttribute(x20, "min");
339
+ if (s20 !== r.v20) writeAttribute(r.a7, "min", r.v20 = s20);
333
340
  }
334
341
  if (c & 268435456) {
335
- const x20 = v[28];
336
- const s19 = toAttribute(x20, "max");
337
- if (s19 !== r.v19) writeAttribute(r.a7, "max", r.v19 = s19);
342
+ const x21 = v[28];
343
+ const s21 = toAttribute(x21, "max");
344
+ if (s21 !== r.v21) writeAttribute(r.a7, "max", r.v21 = s21);
338
345
  }
339
346
  if (c & 1073872896) {
340
- const x21 = v[17];
341
- const s20 = toAttribute(x21, "disabled-dates");
342
- if (s20 !== r.v20) writeAttribute(r.a7, "disabled-dates", r.v20 = s20);
347
+ const x22 = v[17];
348
+ const s22 = toAttribute(x22, "disabled-dates");
349
+ if (s22 !== r.v22) writeAttribute(r.a7, "disabled-dates", r.v22 = s22);
343
350
  }
344
351
  if (c & 1074003968) {
345
- const x22 = v[18];
346
- const s21 = toAttribute(x22, "disabled-ranges");
347
- if (s21 !== r.v21) writeAttribute(r.a7, "disabled-ranges", r.v21 = s21);
352
+ const x23 = v[18];
353
+ const s23 = toAttribute(x23, "disabled-ranges");
354
+ if (s23 !== r.v23) writeAttribute(r.a7, "disabled-ranges", r.v23 = s23);
348
355
  }
349
356
  if (c & 1074266112) {
350
- const x23 = v[19];
351
- const s22 = toAttribute(x23, "disabled-weekdays");
352
- if (s22 !== r.v22) writeAttribute(r.a7, "disabled-weekdays", r.v22 = s22);
357
+ const x24 = v[19];
358
+ const s24 = toAttribute(x24, "disabled-weekdays");
359
+ if (s24 !== r.v24) writeAttribute(r.a7, "disabled-weekdays", r.v24 = s24);
353
360
  }
354
361
  if (c & 1610612736) {
355
- const x24 = (checkReference(S, readDeclared(v[30], ["weekStartsOn"]), "i", "expression:$model.weekStartsOn:model.weekStartsOn", "Reference `model.weekStartsOn` must satisfy integer.") ? readMember(v[30], "weekStartsOn") : NONCONFORMING);
356
- if (x24 !== NONCONFORMING) {
357
- const s23 = toAttribute(x24, "week-starts-on");
358
- if (s23 !== r.v23) writeAttribute(r.a7, "week-starts-on", r.v23 = s23);
362
+ const x25 = checkedReferenceValue(S, readMember(v[30], "weekStartsOn"), RC4, "expression:$model.weekStartsOn:model.weekStartsOn", "model.weekStartsOn");
363
+ if (x25 !== NONCONFORMING) {
364
+ const s25 = toAttribute(x25, "week-starts-on");
365
+ if (s25 !== r.v25) writeAttribute(r.a7, "week-starts-on", r.v25 = s25);
359
366
  }
360
367
  }
361
368
  if (c & 134217728) {
362
- const x25 = v[27];
363
- const s24 = toAttribute(x25, "locale");
364
- if (s24 !== r.v24) writeAttribute(r.a7, "locale", r.v24 = s24);
369
+ const x26 = v[27];
370
+ const s26 = toAttribute(x26, "locale");
371
+ if (s26 !== r.v26) writeAttribute(r.a7, "locale", r.v26 = s26);
365
372
  }
366
373
  if (c & 536870912) {
367
- const x26 = v[41];
368
- const s25 = toAttribute(x26, "today");
369
- if (s25 !== r.v25) writeAttribute(r.a7, "today", r.v25 = s25);
370
- const x27 = v[33];
371
- const s26 = toAttribute(x27, "label");
372
- if (s26 !== r.v26) writeAttribute(r.a7, "label", r.v26 = s26);
373
- const x28 = v[31];
374
- const s27 = toAttribute(x28, "month-label");
375
- if (s27 !== r.v27) writeAttribute(r.a7, "month-label", r.v27 = s27);
376
- const x29 = v[44];
377
- const s28 = toAttribute(x29, "year-label");
378
- if (s28 !== r.v28) writeAttribute(r.a7, "year-label", r.v28 = s28);
379
- const x30 = v[34];
380
- const s29 = toAttribute(x30, "previous-label");
381
- if (s29 !== r.v29) writeAttribute(r.a7, "previous-label", r.v29 = s29);
382
- const x31 = v[32];
383
- const s30 = toAttribute(x31, "next-label");
384
- if (s30 !== r.v30) writeAttribute(r.a7, "next-label", r.v30 = s30);
374
+ const x27 = v[41];
375
+ const s27 = toAttribute(x27, "today");
376
+ if (s27 !== r.v27) writeAttribute(r.a7, "today", r.v27 = s27);
377
+ const x28 = v[33];
378
+ const s28 = toAttribute(x28, "label");
379
+ if (s28 !== r.v28) writeAttribute(r.a7, "label", r.v28 = s28);
380
+ const x29 = v[31];
381
+ const s29 = toAttribute(x29, "month-label");
382
+ if (s29 !== r.v29) writeAttribute(r.a7, "month-label", r.v29 = s29);
383
+ const x30 = v[44];
384
+ const s30 = toAttribute(x30, "year-label");
385
+ if (s30 !== r.v30) writeAttribute(r.a7, "year-label", r.v30 = s30);
386
+ const x31 = v[34];
387
+ const s31 = toAttribute(x31, "previous-label");
388
+ if (s31 !== r.v31) writeAttribute(r.a7, "previous-label", r.v31 = s31);
389
+ const x32 = v[32];
390
+ const s32 = toAttribute(x32, "next-label");
391
+ if (s32 !== r.v32) writeAttribute(r.a7, "next-label", r.v32 = s32);
385
392
  }
386
393
  if (c & 536936704) {
387
- const x32 = ((!v[8] || truthy(v[16])) || truthy(v[35]));
388
- const s31 = toAttribute(x32, "disabled");
389
- if (s31 !== r.v31) writeAttribute(r.a7, "disabled", r.v31 = s31);
394
+ const x33 = ((!v[8] || truthy(v[16])) || truthy(v[35]));
395
+ const s33 = toAttribute(x33, "disabled");
396
+ if (s33 !== r.v33) writeAttribute(r.a7, "disabled", r.v33 = s33);
390
397
  }
391
398
  if (c & 128) {
392
- const x33 = hostState(["enhanced"], [v[7]]);
393
- const s34 = x33;
394
- if (s34 !== r.v34) writeAttribute(r.n, "data-ui-date-range-picker-state", (r.v34 = s34) === "" ? null : s34);
399
+ const x34 = hostState(["enhanced"], [v[7]]);
400
+ const s36 = x34;
401
+ if (s36 !== r.v36) writeAttribute(r.n, "data-ui-date-range-picker-state", (r.v36 = s36) === "" ? null : s36);
395
402
  }
396
403
  if (c & 1073741824) r.L0.update(["start", "end"], d, c);
397
404
  if (c !== -1 && c & 2080313218) r.L0.each(c, d);
@@ -408,9 +415,10 @@ export function createUiDateRangePicker(options = {}, html) {
408
415
  const t9 = t8.firstChild;
409
416
  const t10 = t9.nextSibling.nextSibling;
410
417
  const t11 = t10.firstChild;
411
- const R = { n: element, a2: t3, a3: t4, a4: t5, a5: t6, a6: t7, a7: t9, a8: t10, a9: t11, v0: undefined, v1: null, v2: "", 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: "", v34: undefined, L0: new RangedKeyedList(t2, t2.nextSibling, m1, p1, (o) => o, "endpoint") };
418
+ const R = { n: element, a2: t3, a3: t4, a4: t5, a5: t6, a6: t7, a7: t9, a8: t10, a9: t11, v0: undefined, v1: undefined, v2: undefined, v3: null, v4: "", 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: "", v36: undefined, L0: new RangedKeyedList(t2, t2.nextSibling, m1, p1, (o) => o, "endpoint") };
412
419
  const I = { B, U: E };
413
420
  I.R = new Set();
421
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
414
422
  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);
415
423
  manageProps(I);
416
424
  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 UiDescriptionItemEventMap {
3
3
  }
4
4
  export interface UiDescriptionItemElement extends HTMLDivElement {
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, toText, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, toText, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkString, forwardAttributes, resetForwardedAttributes, defineComponent } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-description-item.css";
4
4
 
5
5
  const T0 = ["",[],"\n ",["dt",[],0],"\n ",["dd",[],4],"\n "];
@@ -9,12 +9,9 @@ const S = { n: [], t: [], f: import.meta.url, g: "ui-description-item", b: gener
9
9
  const D = { g: "ui-description-item", props: { "term": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" } } };
10
10
 
11
11
  export function createUiDescriptionItem(options = {}, html) {
12
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
12
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
13
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["term"].includes(name)));
13
14
  const element = document.createElement("div");
14
- for (const [name, value] of Object.entries(attributes)) {
15
- if (value === null || value === undefined || value === false) continue;
16
- element.setAttribute(name, value === true ? "" : String(value));
17
- }
18
15
  element.setAttribute("component", "ui-description-item");
19
16
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
20
17
  const v = [null];
@@ -28,21 +25,26 @@ export function createUiDescriptionItem(options = {}, html) {
28
25
  const p1 = (r, c, d) => {
29
26
  };
30
27
  const p0 = (r, c, d) => {
28
+ if (c === -1) {
29
+ resetForwardedAttributes(r.n, attributes, r.v0);
30
+ r.v0 = forwardAttributes(r.n, attributes);
31
+ }
31
32
  if (c & 1) {
32
33
  const x0 = v[0];
33
- const s0 = toText(x0);
34
- if (s0 !== r.v0) r.a0.data = r.v0 = s0;
34
+ const s1 = toText(x0);
35
+ if (s1 !== r.v1) r.a1.data = r.v1 = s1;
35
36
  }
36
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
37
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a2, r.e0, "", J, false, undefined, d);
37
38
  if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
38
39
  else if (r.b0 !== undefined) p1(r.b0, c, d);
39
40
  };
40
41
  const t0 = element.firstChild.nextSibling;
41
42
  const t1 = t0.firstChild;
42
43
  const t2 = t0.nextSibling.nextSibling.firstChild;
43
- const R = { a0: t1, v0: "", a1: t2, e0: t2.nextSibling, b0: undefined, f0: undefined };
44
+ const R = { n: element, a1: t1, v0: undefined, v1: "", a2: t2, e0: t2.nextSibling, b0: undefined, f0: undefined };
44
45
  const I = { B };
45
46
  const J = project(I, children, slots);
47
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
46
48
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
47
49
  manageProps(I);
48
50
  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 UiDescriptionListEventMap {
3
3
  }
4
4
  export interface UiDescriptionListElement extends HTMLDListElement {
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, defineComponent } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, forwardAttributes, resetForwardedAttributes, defineComponent } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-description-list.css";
4
4
 
5
5
  const T0 = ["",[],4];
@@ -9,12 +9,9 @@ const S = { n: [], t: [], f: import.meta.url, g: "ui-description-list", b: gener
9
9
  const D = { g: "ui-description-list", props: { "columns": { "required":false,"values":["2","3","4"], c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "density": { "required":false,"values":["comfortable","compact"],"default":"comfortable", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "layout": { "required":false,"values":["rows","stacked","grid","tiles"],"default":"rows", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
10
10
 
11
11
  export function createUiDescriptionList(options = {}, html) {
12
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
12
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
13
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["columns","density","layout"].includes(name)));
13
14
  const element = document.createElement("dl");
14
- for (const [name, value] of Object.entries(attributes)) {
15
- if (value === null || value === undefined || value === false) continue;
16
- element.setAttribute(name, value === true ? "" : String(value));
17
- }
18
15
  element.setAttribute("component", "ui-description-list");
19
16
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
20
17
  const v = [null, null, null];
@@ -28,19 +25,24 @@ export function createUiDescriptionList(options = {}, html) {
28
25
  const p1 = (r, c, d) => {
29
26
  };
30
27
  const p0 = (r, c, d) => {
28
+ if (c === -1) {
29
+ resetForwardedAttributes(r.n, attributes, r.v0);
30
+ r.v0 = forwardAttributes(r.n, attributes);
31
+ }
31
32
  if (c & 7) {
32
33
  const x0 = hostState(["layout","columns","density"], [v[2], v[0], v[1]]);
33
- const s0 = x0;
34
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-description-list-state", (r.v0 = s0) === "" ? null : s0);
34
+ const s1 = x0;
35
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-description-list-state", (r.v1 = s1) === "" ? null : s1);
35
36
  }
36
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
37
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
37
38
  if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
38
39
  else if (r.b0 !== undefined) p1(r.b0, c, d);
39
40
  };
40
41
  const t0 = element.firstChild;
41
- const R = { n: element, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
42
+ const R = { n: element, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
42
43
  const I = { B };
43
44
  const J = project(I, children, slots);
45
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
44
46
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
45
47
  manageProps(I);
46
48
  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 UiDialogEventMap {
3
3
  open: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  close: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;