@threadlabs/looma 0.52.11 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/components/shared/overlay.js +7 -0
  2. package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
  3. package/components/ui-meter/ui-meter.html +1 -1
  4. package/dist/index.js +1 -1
  5. package/docs/catalog.json +1 -1
  6. package/editor/components.css +19 -19
  7. package/editor/index.js +1125 -853
  8. package/package.json +3 -3
  9. package/styles/ui-action-bar.css +1 -1
  10. package/styles/ui-affordance-scope.css +1 -1
  11. package/styles/ui-avatar-group.css +1 -1
  12. package/styles/ui-avatar.css +1 -1
  13. package/styles/ui-badge.css +1 -1
  14. package/styles/ui-breadcrumb-item.css +1 -1
  15. package/styles/ui-breadcrumbs.css +1 -1
  16. package/styles/ui-button.css +1 -1
  17. package/styles/ui-calendar.css +1 -1
  18. package/styles/ui-callout.css +1 -1
  19. package/styles/ui-card-group.css +1 -1
  20. package/styles/ui-card.css +1 -1
  21. package/styles/ui-checkbox.css +1 -1
  22. package/styles/ui-cluster.css +1 -1
  23. package/styles/ui-color-picker.css +1 -1
  24. package/styles/ui-column.css +1 -1
  25. package/styles/ui-combobox.css +1 -1
  26. package/styles/ui-compact-content.css +1 -1
  27. package/styles/ui-compact-editor.css +1 -1
  28. package/styles/ui-compact-mark.css +1 -1
  29. package/styles/ui-compact-node.css +1 -1
  30. package/styles/ui-container.css +1 -1
  31. package/styles/ui-context-menu.css +1 -1
  32. package/styles/ui-cover.css +1 -1
  33. package/styles/ui-curve-editor.css +1 -1
  34. package/styles/ui-cycle-button.css +1 -1
  35. package/styles/ui-data-table.css +1 -1
  36. package/styles/ui-date-field.css +1 -1
  37. package/styles/ui-date-picker.css +1 -1
  38. package/styles/ui-date-range-picker.css +1 -1
  39. package/styles/ui-description-item.css +1 -1
  40. package/styles/ui-description-list.css +1 -1
  41. package/styles/ui-dialog.css +1 -1
  42. package/styles/ui-disclosure.css +1 -1
  43. package/styles/ui-editable.css +1 -1
  44. package/styles/ui-editor-block-actions.css +1 -1
  45. package/styles/ui-editor-chip-editor.css +1 -1
  46. package/styles/ui-editor-code-language.css +1 -1
  47. package/styles/ui-editor-footnote-editor.css +1 -1
  48. package/styles/ui-editor-formatting-tools.css +1 -1
  49. package/styles/ui-editor-image-toolbar.css +1 -1
  50. package/styles/ui-editor-insert-table-grid.css +1 -1
  51. package/styles/ui-editor-link-card.css +1 -1
  52. package/styles/ui-editor-link-form.css +1 -1
  53. package/styles/ui-editor-mention-menu-item.css +1 -1
  54. package/styles/ui-editor-mention-menu.css +1 -1
  55. package/styles/ui-editor-slash-menu-group.css +1 -1
  56. package/styles/ui-editor-slash-menu-item.css +1 -1
  57. package/styles/ui-editor-slash-menu.css +1 -1
  58. package/styles/ui-editor-surface.css +1 -1
  59. package/styles/ui-editor-table-context-menu.css +1 -1
  60. package/styles/ui-editor-table-overlay.css +1 -1
  61. package/styles/ui-editor-table-toolbar.css +1 -1
  62. package/styles/ui-editor-toolbar.css +1 -1
  63. package/styles/ui-editor.css +1 -1
  64. package/styles/ui-file-input.css +1 -1
  65. package/styles/ui-floating-action-button.css +1 -1
  66. package/styles/ui-form-field.css +1 -1
  67. package/styles/ui-grid.css +1 -1
  68. package/styles/ui-icon-button.css +1 -1
  69. package/styles/ui-icon.css +1 -1
  70. package/styles/ui-image.css +1 -1
  71. package/styles/ui-input-group.css +1 -1
  72. package/styles/ui-input.css +1 -1
  73. package/styles/ui-light-editor.css +1 -1
  74. package/styles/ui-list-item.css +1 -1
  75. package/styles/ui-list.css +1 -1
  76. package/styles/ui-listbox.css +1 -1
  77. package/styles/ui-menu-group.css +1 -1
  78. package/styles/ui-menu-item.css +1 -1
  79. package/styles/ui-menu.css +1 -1
  80. package/styles/ui-meter.css +1 -1
  81. package/styles/ui-nav-item.css +1 -1
  82. package/styles/ui-notice-stripe.css +1 -1
  83. package/styles/ui-number-input.css +1 -1
  84. package/styles/ui-page-header.css +1 -1
  85. package/styles/ui-pagination.css +1 -1
  86. package/styles/ui-popover.css +1 -1
  87. package/styles/ui-radio-group.css +1 -1
  88. package/styles/ui-radio.css +1 -1
  89. package/styles/ui-reel.css +1 -1
  90. package/styles/ui-scroll-area.css +1 -1
  91. package/styles/ui-search-result-row.css +1 -1
  92. package/styles/ui-search-shell.css +1 -1
  93. package/styles/ui-section.css +1 -1
  94. package/styles/ui-segmented-control.css +1 -1
  95. package/styles/ui-select.css +1 -1
  96. package/styles/ui-separator.css +1 -1
  97. package/styles/ui-sidebar.css +1 -1
  98. package/styles/ui-site-header.css +1 -1
  99. package/styles/ui-skeleton.css +1 -1
  100. package/styles/ui-slider.css +1 -1
  101. package/styles/ui-spinner.css +1 -1
  102. package/styles/ui-stack.css +1 -1
  103. package/styles/ui-status-message.css +1 -1
  104. package/styles/ui-swatch.css +1 -1
  105. package/styles/ui-switch.css +1 -1
  106. package/styles/ui-switcher.css +1 -1
  107. package/styles/ui-table.css +1 -1
  108. package/styles/ui-tabs.css +1 -1
  109. package/styles/ui-text.css +1 -1
  110. package/styles/ui-textarea.css +1 -1
  111. package/styles/ui-time-field.css +1 -1
  112. package/styles/ui-time-picker.css +1 -1
  113. package/styles/ui-toast-region.css +1 -1
  114. package/styles/ui-toast.css +1 -1
  115. package/styles/ui-tooltip.css +1 -1
  116. package/styles/ui-top-bar.css +1 -1
  117. package/styles/ui-tree-item.css +1 -1
  118. package/styles/ui-tree.css +1 -1
  119. package/styles/ui-wizard.css +1 -1
  120. package/vanilla/UiActionBar.d.ts +1 -1
  121. package/vanilla/UiActionBar.js +14 -12
  122. package/vanilla/UiAffordanceScope.d.ts +1 -1
  123. package/vanilla/UiAffordanceScope.js +13 -11
  124. package/vanilla/UiAvatar.d.ts +1 -1
  125. package/vanilla/UiAvatar.js +27 -25
  126. package/vanilla/UiAvatarGroup.d.ts +1 -1
  127. package/vanilla/UiAvatarGroup.js +26 -23
  128. package/vanilla/UiBadge.d.ts +1 -1
  129. package/vanilla/UiBadge.js +14 -12
  130. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  131. package/vanilla/UiBreadcrumbItem.js +14 -13
  132. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  133. package/vanilla/UiBreadcrumbs.js +10 -10
  134. package/vanilla/UiButton.d.ts +1 -1
  135. package/vanilla/UiButton.js +187 -244
  136. package/vanilla/UiCalendar.d.ts +1 -1
  137. package/vanilla/UiCalendar.js +272 -193
  138. package/vanilla/UiCallout.d.ts +1 -1
  139. package/vanilla/UiCallout.js +32 -27
  140. package/vanilla/UiCard.d.ts +1 -1
  141. package/vanilla/UiCard.js +72 -69
  142. package/vanilla/UiCardGroup.d.ts +1 -1
  143. package/vanilla/UiCardGroup.js +17 -15
  144. package/vanilla/UiCheckbox.d.ts +1 -1
  145. package/vanilla/UiCheckbox.js +32 -30
  146. package/vanilla/UiCluster.d.ts +1 -1
  147. package/vanilla/UiCluster.js +20 -18
  148. package/vanilla/UiColorPicker.d.ts +1 -1
  149. package/vanilla/UiColorPicker.js +22 -20
  150. package/vanilla/UiColumn.d.ts +2 -2
  151. package/vanilla/UiColumn.js +18 -15
  152. package/vanilla/UiCombobox.d.ts +3 -3
  153. package/vanilla/UiCombobox.js +237 -174
  154. package/vanilla/UiCompactContent.d.ts +1 -1
  155. package/vanilla/UiCompactContent.js +13 -8
  156. package/vanilla/UiCompactEditor.d.ts +1 -1
  157. package/vanilla/UiCompactEditor.js +17 -12
  158. package/vanilla/UiCompactMark.d.ts +1 -1
  159. package/vanilla/UiCompactMark.js +47 -45
  160. package/vanilla/UiCompactNode.d.ts +2 -2
  161. package/vanilla/UiCompactNode.js +37 -33
  162. package/vanilla/UiContainer.d.ts +1 -1
  163. package/vanilla/UiContainer.js +13 -11
  164. package/vanilla/UiContextMenu.d.ts +1 -1
  165. package/vanilla/UiContextMenu.js +11 -9
  166. package/vanilla/UiCover.d.ts +1 -1
  167. package/vanilla/UiCover.js +13 -11
  168. package/vanilla/UiCurveEditor.d.ts +1 -1
  169. package/vanilla/UiCurveEditor.js +40 -38
  170. package/vanilla/UiCycleButton.d.ts +2 -2
  171. package/vanilla/UiCycleButton.js +31 -26
  172. package/vanilla/UiDataTable.d.ts +1 -1
  173. package/vanilla/UiDataTable.js +26 -20
  174. package/vanilla/UiDateField.d.ts +1 -1
  175. package/vanilla/UiDateField.js +78 -75
  176. package/vanilla/UiDatePicker.d.ts +1 -1
  177. package/vanilla/UiDatePicker.js +155 -149
  178. package/vanilla/UiDateRangePicker.d.ts +1 -1
  179. package/vanilla/UiDateRangePicker.js +136 -128
  180. package/vanilla/UiDescriptionItem.d.ts +1 -1
  181. package/vanilla/UiDescriptionItem.js +13 -11
  182. package/vanilla/UiDescriptionList.d.ts +1 -1
  183. package/vanilla/UiDescriptionList.js +13 -11
  184. package/vanilla/UiDialog.d.ts +1 -1
  185. package/vanilla/UiDialog.js +14 -14
  186. package/vanilla/UiDisclosure.d.ts +1 -1
  187. package/vanilla/UiDisclosure.js +28 -26
  188. package/vanilla/UiEditable.d.ts +1 -1
  189. package/vanilla/UiEditable.js +29 -27
  190. package/vanilla/UiEditor.d.ts +1 -1
  191. package/vanilla/UiEditor.js +62 -58
  192. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  193. package/vanilla/UiEditorBlockActions.js +14 -12
  194. package/vanilla/UiEditorChipEditor.d.ts +1 -1
  195. package/vanilla/UiEditorChipEditor.js +22 -14
  196. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  197. package/vanilla/UiEditorCodeLanguage.js +23 -16
  198. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  199. package/vanilla/UiEditorFootnoteEditor.js +17 -9
  200. package/vanilla/UiEditorFormattingTools.d.ts +1 -1
  201. package/vanilla/UiEditorFormattingTools.js +108 -71
  202. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  203. package/vanilla/UiEditorImageToolbar.js +68 -66
  204. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  205. package/vanilla/UiEditorInsertTableGrid.js +50 -35
  206. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  207. package/vanilla/UiEditorLinkCard.js +27 -25
  208. package/vanilla/UiEditorLinkForm.d.ts +1 -1
  209. package/vanilla/UiEditorLinkForm.js +79 -57
  210. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  211. package/vanilla/UiEditorMentionMenu.js +63 -44
  212. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  213. package/vanilla/UiEditorMentionMenuItem.js +22 -16
  214. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  215. package/vanilla/UiEditorSlashMenu.js +52 -33
  216. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  217. package/vanilla/UiEditorSlashMenuGroup.js +19 -14
  218. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  219. package/vanilla/UiEditorSlashMenuItem.js +27 -25
  220. package/vanilla/UiEditorSurface.d.ts +1 -1
  221. package/vanilla/UiEditorSurface.js +13 -11
  222. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  223. package/vanilla/UiEditorTableContextMenu.js +81 -52
  224. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  225. package/vanilla/UiEditorTableOverlay.js +107 -68
  226. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  227. package/vanilla/UiEditorTableToolbar.js +121 -70
  228. package/vanilla/UiEditorToolbar.d.ts +1 -1
  229. package/vanilla/UiEditorToolbar.js +20 -12
  230. package/vanilla/UiFileInput.d.ts +1 -1
  231. package/vanilla/UiFileInput.js +94 -80
  232. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  233. package/vanilla/UiFloatingActionButton.js +21 -20
  234. package/vanilla/UiFormField.d.ts +1 -1
  235. package/vanilla/UiFormField.js +21 -19
  236. package/vanilla/UiGrid.d.ts +1 -1
  237. package/vanilla/UiGrid.js +26 -23
  238. package/vanilla/UiIcon.d.ts +1 -1
  239. package/vanilla/UiIcon.js +20 -15
  240. package/vanilla/UiIconButton.d.ts +1 -1
  241. package/vanilla/UiIconButton.js +35 -43
  242. package/vanilla/UiImage.d.ts +1 -1
  243. package/vanilla/UiImage.js +16 -14
  244. package/vanilla/UiInput.d.ts +1 -1
  245. package/vanilla/UiInput.js +29 -35
  246. package/vanilla/UiInputGroup.d.ts +1 -1
  247. package/vanilla/UiInputGroup.js +16 -14
  248. package/vanilla/UiLightEditor.d.ts +1 -1
  249. package/vanilla/UiLightEditor.js +29 -27
  250. package/vanilla/UiList.d.ts +1 -1
  251. package/vanilla/UiList.js +33 -27
  252. package/vanilla/UiListItem.d.ts +1 -1
  253. package/vanilla/UiListItem.js +12 -12
  254. package/vanilla/UiListbox.d.ts +1 -1
  255. package/vanilla/UiListbox.js +90 -80
  256. package/vanilla/UiMenu.d.ts +1 -1
  257. package/vanilla/UiMenu.js +20 -12
  258. package/vanilla/UiMenuGroup.d.ts +1 -1
  259. package/vanilla/UiMenuGroup.js +14 -11
  260. package/vanilla/UiMenuItem.d.ts +1 -1
  261. package/vanilla/UiMenuItem.js +74 -75
  262. package/vanilla/UiMeter.d.ts +1 -1
  263. package/vanilla/UiMeter.js +67 -62
  264. package/vanilla/UiNavItem.d.ts +1 -1
  265. package/vanilla/UiNavItem.js +63 -65
  266. package/vanilla/UiNoticeStripe.d.ts +1 -1
  267. package/vanilla/UiNoticeStripe.js +16 -16
  268. package/vanilla/UiNumberInput.d.ts +1 -1
  269. package/vanilla/UiNumberInput.js +41 -38
  270. package/vanilla/UiPageHeader.d.ts +1 -1
  271. package/vanilla/UiPageHeader.js +17 -15
  272. package/vanilla/UiPagination.d.ts +1 -1
  273. package/vanilla/UiPagination.js +53 -44
  274. package/vanilla/UiPopover.d.ts +1 -1
  275. package/vanilla/UiPopover.js +13 -11
  276. package/vanilla/UiRadio.d.ts +1 -1
  277. package/vanilla/UiRadio.js +25 -23
  278. package/vanilla/UiRadioGroup.d.ts +1 -1
  279. package/vanilla/UiRadioGroup.js +33 -36
  280. package/vanilla/UiReel.d.ts +1 -1
  281. package/vanilla/UiReel.js +20 -12
  282. package/vanilla/UiScrollArea.d.ts +1 -1
  283. package/vanilla/UiScrollArea.js +13 -11
  284. package/vanilla/UiSearchResultRow.d.ts +1 -1
  285. package/vanilla/UiSearchResultRow.js +21 -20
  286. package/vanilla/UiSearchShell.d.ts +1 -1
  287. package/vanilla/UiSearchShell.js +16 -14
  288. package/vanilla/UiSection.d.ts +1 -1
  289. package/vanilla/UiSection.js +48 -45
  290. package/vanilla/UiSegmentedControl.d.ts +2 -2
  291. package/vanilla/UiSegmentedControl.js +52 -47
  292. package/vanilla/UiSelect.d.ts +1 -1
  293. package/vanilla/UiSelect.js +17 -21
  294. package/vanilla/UiSeparator.d.ts +1 -1
  295. package/vanilla/UiSeparator.js +12 -12
  296. package/vanilla/UiSidebar.d.ts +1 -1
  297. package/vanilla/UiSidebar.js +17 -15
  298. package/vanilla/UiSiteHeader.d.ts +1 -1
  299. package/vanilla/UiSiteHeader.js +25 -23
  300. package/vanilla/UiSkeleton.d.ts +1 -1
  301. package/vanilla/UiSkeleton.js +21 -20
  302. package/vanilla/UiSlider.d.ts +1 -1
  303. package/vanilla/UiSlider.js +50 -47
  304. package/vanilla/UiSpinner.d.ts +1 -1
  305. package/vanilla/UiSpinner.js +34 -27
  306. package/vanilla/UiStack.d.ts +1 -1
  307. package/vanilla/UiStack.js +12 -12
  308. package/vanilla/UiStatusMessage.d.ts +1 -1
  309. package/vanilla/UiStatusMessage.js +22 -21
  310. package/vanilla/UiSwatch.d.ts +1 -1
  311. package/vanilla/UiSwatch.js +20 -17
  312. package/vanilla/UiSwitch.d.ts +1 -1
  313. package/vanilla/UiSwitch.js +25 -23
  314. package/vanilla/UiSwitcher.d.ts +1 -1
  315. package/vanilla/UiSwitcher.js +13 -11
  316. package/vanilla/UiTable.d.ts +1 -1
  317. package/vanilla/UiTable.js +13 -11
  318. package/vanilla/UiTabs.d.ts +1 -1
  319. package/vanilla/UiTabs.js +39 -28
  320. package/vanilla/UiText.d.ts +1 -1
  321. package/vanilla/UiText.js +128 -125
  322. package/vanilla/UiTextarea.d.ts +1 -1
  323. package/vanilla/UiTextarea.js +27 -39
  324. package/vanilla/UiTimeField.d.ts +1 -1
  325. package/vanilla/UiTimeField.js +42 -40
  326. package/vanilla/UiTimePicker.d.ts +1 -1
  327. package/vanilla/UiTimePicker.js +105 -102
  328. package/vanilla/UiToast.d.ts +1 -1
  329. package/vanilla/UiToast.js +14 -14
  330. package/vanilla/UiToastRegion.d.ts +1 -1
  331. package/vanilla/UiToastRegion.js +61 -31
  332. package/vanilla/UiTooltip.d.ts +1 -1
  333. package/vanilla/UiTooltip.js +17 -14
  334. package/vanilla/UiTopBar.d.ts +1 -1
  335. package/vanilla/UiTopBar.js +24 -22
  336. package/vanilla/UiTree.d.ts +1 -1
  337. package/vanilla/UiTree.js +17 -12
  338. package/vanilla/UiTreeItem.d.ts +1 -1
  339. package/vanilla/UiTreeItem.js +73 -79
  340. package/vanilla/UiWizard.d.ts +1 -1
  341. package/vanilla/UiWizard.js +61 -40
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, checkReference, clearRegion, KeyedList, negate, NONCONFORMING, readDeclared, readIndex, readMember, readsChanged, rec, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeText, dispatchDeclared, detailCheck, plainObject, dispose, IndexedList, PositionalList, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, ABSENT, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, checkUnknown, warnOnce, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, checkedReferenceValue, equalValue, buildTemplate, clearRegion, KeyedList, negate, NONCONFORMING, notValue, readIndex, readMember, readsChanged, rec, textCall, toAttribute, toText, trackContainer, truthy, truthyValue, writeAttribute, writeText, dispatchDeclared, detailCheck, plainObject, dispose, IndexedList, PositionalList, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, ABSENT, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, checkUnknown, warnOnce, initializeSlot, sharePlainSlots, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-combobox/ui-combobox.js";
4
4
  import "../styles/ui-combobox.css";
5
5
 
@@ -33,6 +33,18 @@ const T26 = ["div",[],0];
33
33
  const T27 = ["",[]];
34
34
  const K0 = (v0) => (plainObject(v0) && "id" in v0 && typeof v0["id"] == "string" && "value" in v0 && typeof v0["value"] == "string" && "label" in v0 && typeof v0["label"] == "string" && (v0["group"] == null || typeof v0["group"] == "string") && (v0["disabled"] == null || typeof v0["disabled"] == "boolean") && (v0["description"] == null || typeof v0["description"] == "string") && (v0["tag"] == null || (plainObject(v0["tag"]) && "label" in v0["tag"] && typeof v0["tag"]["label"] == "string" && (v0["tag"]["tone"] == null || ((typeof v0["tag"]["tone"] == "string" && keywordFormat(v0["tag"]["tone"])) && ["neutral","accent","info","success","warning","danger"].includes(v0["tag"]["tone"]))) && (v0["tag"]["color"] == null || typeof v0["tag"]["color"] == "string") && Object.keys(v0["tag"]).every((v1) => ["label","tone","color"].includes(v1)))) && Object.keys(v0).every((v1) => ["id","value","label","group","disabled","description","tag"].includes(v1)));
35
35
  const K1 = (v0) => (plainObject(v0) && "id" in v0 && typeof v0["id"] == "string" && "value" in v0 && typeof v0["value"] == "string" && "label" in v0 && typeof v0["label"] == "string" && (v0["group"] == null || typeof v0["group"] == "string") && (v0["disabled"] == null || typeof v0["disabled"] == "boolean") && (v0["description"] == null || typeof v0["description"] == "string") && (v0["tag"] == null || (plainObject(v0["tag"]) && "label" in v0["tag"] && typeof v0["tag"]["label"] == "string" && (v0["tag"]["tone"] == null || ((typeof v0["tag"]["tone"] == "string" && keywordFormat(v0["tag"]["tone"])) && ["neutral","accent","info","success","warning","danger"].includes(v0["tag"]["tone"]))) && (v0["tag"]["color"] == null || typeof v0["tag"]["color"] == "string") && Object.keys(v0["tag"]).every((v1) => ["label","tone","color"].includes(v1)))) && (v0["selected"] == null || typeof v0["selected"] == "boolean") && Object.keys(v0).every((v1) => ["id","value","label","group","disabled","description","tag","selected"].includes(v1)));
36
+ const RC0 = ["n", "number"];
37
+ const RC1 = ["b", "boolean"];
38
+ const RC2 = ["s", "string"];
39
+ const RC3 = [["o"], "object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) })"];
40
+ const RC4 = [["p",formatOf(keywordFormat)], "keyword with values group, presentation"];
41
+ const RC5 = [["l"], "list(object({ id: string, value: string, label: string, group?: string, disabled: boolean, selected: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), index: integer, labelledBy?: string, detail?: string, option: object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), selected?: boolean }) }))"];
42
+ const RC6 = ["i", "integer"];
43
+ const RC7 = [["o"], "object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string })"];
44
+ const RC8 = [["p",formatOf(keywordFormat)], "keyword with values neutral, accent, info, success, warning, danger"];
45
+ const RC9 = [["o"], "object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), selected?: boolean })"];
46
+ const RC10 = [["o"], "object({ id: string, value: string, label: string, group?: string, disabled: boolean, selected: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) })"];
47
+ const RC11 = [["l"], "list(object({ message: string }))"];
36
48
  let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22, P23, P24, P25, P26, P27;
37
49
  const emptyDirty = new Map();
38
50
  const S = { n: ["internalItems","raw","display","selected","expanded","rows","active","helpOpen","lookupError","validation","uid","submitted","groups","creatable","createIndex","message","statusText","validationStatus"], t: [["l",["o",["id","s","value","s","label","s","group","s","disabled","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]]]]],"s","s","s","b",["l",["o",["id","s","value","s","label","s","group","s","disabled","b","selected","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]]]]],"i","b","s",["o",["status",["p",formatOf(keywordFormat)],"touched","b","dirty","b","issues",["l",["o",["message","s"]]]],1],"s","s",["l",["o",["name","s","role",["p",formatOf(keywordFormat)],"label","s","rows",["l",["o",["id","s","value","s","label","s","group","s","disabled","b","selected","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]],"index","i","labelledBy","s","detail","s","option",["o",["id","s","value","s","label","s","group","s","disabled","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]],"selected","b"]]]]]]]],"b","i","s","s","s"], f: import.meta.url, g: "ui-combobox", d: { "query-change": [detailCheck(checkObject([["query", checkString, false], ["display", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "value-change": [detailCheck(checkObject([["value", checkString, true], ["query", checkString, false], ["option", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), true], ["kind", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["selection","clear","free-entry","create"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "items-change": [detailCheck(checkList(checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false))), true, true, false], "free-entry": [detailCheck(checkObject([["value", checkString, true], ["query", checkString, false], ["option", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), true], ["kind", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["selection","clear","free-entry","create"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "create-entry": [detailCheck(checkObject([["value", checkString, true], ["query", checkString, false], ["option", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), true], ["kind", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["selection","clear","free-entry","create"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "validation-change": [detailCheck(checkObject([["status", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["pristine","pending","valid","warning","error"]}), false], ["touched", checkBoolean, false], ["dirty", checkBoolean, false], ["issues", checkList(checkObject([["message", checkString, false], ["path", checkList(checkUnknown), true], ["severity", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["error","warning"]}), true]], false)), false], ["output", checkUnknown, true]], false)), true, true, false], "options-change": [detailCheck(checkList(checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false))), true, true, false], "add-item": [detailCheck(checkObject([["item", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), false], ["index", checkInteger, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "remove-item": [detailCheck(checkObject([["item", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), false], ["index", checkInteger, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "create-item": [detailCheck(checkObject([["query", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "selected-values-change": [detailCheck(checkObject([["selectedValues", checkList(checkString), 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, [], null, false, "", { "status": "pristine", "touched": false, "dirty": false, "issues": [] }, "", "", [], false, 0, "", "", "pristine"] };
@@ -40,12 +52,9 @@ const D = { g: "ui-combobox", props: { "allowCreate": { "required":false,"defaul
40
52
  const C = (host) => activateModule(controller, host);
41
53
 
42
54
  export function createUiCombobox(options = {}, html) {
43
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
55
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
56
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["allow-create","allow-free-text","auto-highlight","clear-query-on-blur","clearable","disabled","disclosure","filter","grow","help","invalid","items","label","label-visibility","loading","max-rows","multiple","muted","name","open-on-focus","placeholder","query","readonly","required","select-on-tab","selected-values","size","token-separators","value"].includes(name)));
44
57
  const element = document.createElement("div");
45
- for (const [name, value] of Object.entries(attributes)) {
46
- if (value === null || value === undefined || value === false) continue;
47
- element.setAttribute(name, value === true ? "" : String(value));
48
- }
49
58
  element.setAttribute("component", "ui-combobox");
50
59
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
51
60
  const v = [[], "", "", null, false, [], null, false, "", { "status": "pristine", "touched": false, "dirty": false, "issues": [] }, "", "", [], false, 0, "", "", "pristine", 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];
@@ -90,17 +99,21 @@ export function createUiCombobox(options = {}, html) {
90
99
  const o = r.i;
91
100
  if (c & 1073741824) r.w = 0;
92
101
  if (c & -1073741824) {
93
- const x0 = r.j;
94
- const s0 = toAttribute(x0, "data-index");
95
- if (s0 !== r.v0) writeAttribute(r.n, "data-index", r.v0 = s0);
102
+ const x0 = checkedReferenceValue(S, r.j, RC0, "expression:$index:index", "index");
103
+ if (x0 !== NONCONFORMING) {
104
+ const s0 = toAttribute(x0, "data-index");
105
+ if (s0 !== r.v0) writeAttribute(r.n, "data-index", r.v0 = s0);
106
+ }
96
107
  }
97
108
  if (c & 1619001344) {
98
- const x1 = ((truthy(v[23]) || truthy(v[40])) || truthy(trackContainer(r, readMember(o, "disabled"))));
99
- const s1 = toAttribute(x1, "disabled");
100
- if (s1 !== r.v1) writeAttribute(r.n, "disabled", r.v1 = s1);
109
+ const x1 = ((q) => q === NONCONFORMING ? q : q ? true : truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(o, "disabled"), RC1, "expression:$disabled or $readonly or $item.disabled:item.disabled", "item.disabled"))))((truthy(v[23]) || truthy(v[40])));
110
+ if (x1 !== NONCONFORMING) {
111
+ const s1 = toAttribute(x1, "disabled");
112
+ if (s1 !== r.v1) writeAttribute(r.n, "disabled", r.v1 = s1);
113
+ }
101
114
  }
102
115
  if (c & 1073741824) {
103
- const x2 = textCall("concat", [trackContainer(r, readMember(o, "label")), ", press Delete or Backspace to remove"]);
116
+ const x2 = textCall("concat", [trackContainer(r, checkedReferenceValue(S, readMember(o, "label"), RC2, "expression:concat($item.label, ', press Delete or Backspace to remove'):item.label", "item.label")), ", press Delete or Backspace to remove"]);
104
117
  if (x2 !== NONCONFORMING) {
105
118
  const s2 = toAttribute(x2, "aria-label");
106
119
  if (s2 !== r.v2) writeAttribute(r.n, "aria-label", r.v2 = s2);
@@ -108,15 +121,15 @@ export function createUiCombobox(options = {}, html) {
108
121
  }
109
122
  if (r.f0 === undefined) {
110
123
  r.f0 = 1;
111
- const s = {}; { const y = trackContainer(r, o); if (y !== NONCONFORMING) s["item"] = (y != null && y !== ABSENT && (K0(y) || (warnOnce(S, "slot:item:item", "Slot `item` prop `item` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) })`."), false)) ? y : null); }
112
- const at = fillSlot(r.a1, r.e0, "item", J, true, s, d);
124
+ const s = { "item": null }; { const y = trackContainer(r, checkedReferenceValue(S, o, RC3, "expression:$item:item", "item")); if (y !== NONCONFORMING) s["item"] = (y != null && y !== ABSENT && (K0(y) || (warnOnce(S, "slot:item:item", "Slot `item` prop `item` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) })`."), false)) ? y : null); }
125
+ const at = fillSlot(r.a1, r.e0, "item", J, true, s, d, r.z ??= []);
113
126
  if (Array.isArray(at)) { r.x0 = at; (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); }
114
127
  else if (at !== undefined) { r.b0 = m5(d, undefined, r); at.before(r.b0.n); }
115
128
  } else if (r.x0 !== undefined) {
116
129
  if (c & 1073741824) {
117
130
  const t = r.x0[1].s;
118
131
  let w = c & 1073741824;
119
- { let y = trackContainer(r, o); if (y !== NONCONFORMING && (y = (y != null && y !== ABSENT && (K0(y) || (warnOnce(S, "slot:item:item", "Slot `item` prop `item` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) })`."), false)) ? y : null), !("item" in t && Object.is(t["item"], y)))) { t["item"] = y; w = 1; } }
132
+ { let y = trackContainer(r, checkedReferenceValue(S, o, RC3, "expression:$item:item", "item")); if (y !== NONCONFORMING && (y = (y != null && y !== ABSENT && (K0(y) || (warnOnce(S, "slot:item:item", "Slot `item` prop `item` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) })`."), false)) ? y : null), !("item" in t && Object.is(t["item"], y)))) { t["item"] = y; w = 1; } }
120
133
  if (w) r.x0[0].p(r.x0[1], 1073741824, d);
121
134
  }
122
135
  } else if (r.b0 !== undefined) p5(r.b0, c, d);
@@ -131,9 +144,11 @@ export function createUiCombobox(options = {}, html) {
131
144
  const p5 = (r, c, d) => {
132
145
  if (c & 1073741824) {
133
146
  r.w = 0;
134
- const x0 = trackContainer(r, readMember(r.u.i, "label"));
135
- const s0 = toText(x0);
136
- if (s0 !== r.v0) r.a0.data = r.v0 = s0;
147
+ const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "label"), RC2, "expression:$item.label:item.label", "item.label"));
148
+ if (x0 !== NONCONFORMING) {
149
+ const s0 = toText(x0);
150
+ if (s0 !== r.v0) r.a0.data = r.v0 = s0;
151
+ }
137
152
  }
138
153
  };
139
154
  const m6 = (d) => {
@@ -185,9 +200,11 @@ export function createUiCombobox(options = {}, html) {
185
200
  if (s0 !== r.v0) writeAttribute(r.n, "name", r.v0 = s0);
186
201
  }
187
202
  if (c & 1073741824) {
188
- const x1 = trackContainer(r, readMember(o, "value"));
189
- const s1 = toAttribute(x1, "value");
190
- if (s1 !== r.v1) writeAttribute(r.n, "value", r.v1 = s1);
203
+ const x1 = trackContainer(r, checkedReferenceValue(S, readMember(o, "value"), RC2, "expression:$item.value:item.value", "item.value"));
204
+ if (x1 !== NONCONFORMING) {
205
+ const s1 = toAttribute(x1, "value");
206
+ if (s1 !== r.v1) writeAttribute(r.n, "value", r.v1 = s1);
207
+ }
191
208
  }
192
209
  if (c & 8388608) {
193
210
  const x2 = v[23];
@@ -203,7 +220,7 @@ export function createUiCombobox(options = {}, html) {
203
220
  };
204
221
  const p9 = (r, c, d) => {
205
222
  if (c & 545259530) {
206
- const x0 = ((truthy(v[23]) || truthy(v[40])) || (!truthy(v[1]) && (truthy(v[34]) || (v[3] === null))));
223
+ const x0 = ((truthy(v[23]) || truthy(v[40])) || (!truthy(v[1]) && (truthy(v[34]) || truthy(equalValue(v[3], null)))));
207
224
  const s0 = toAttribute(x0, "disabled");
208
225
  if (s0 !== r.v0) writeAttribute(r.n, "disabled", r.v0 = s0);
209
226
  }
@@ -287,18 +304,24 @@ export function createUiCombobox(options = {}, html) {
287
304
  const o = r.i;
288
305
  if (c & 1073741824) {
289
306
  r.w = 0;
290
- const x0 = trackContainer(r, readMember(o, "role"));
291
- const s0 = toAttribute(x0, "role");
292
- if (s0 !== r.v0) writeAttribute(r.n, "role", r.v0 = s0);
293
- const x1 = trackContainer(r, readMember(o, "label"));
294
- const s1 = toAttribute(x1, "aria-label");
295
- if (s1 !== r.v1) writeAttribute(r.n, "aria-label", r.v1 = s1);
296
- }
297
- if (c & 1073741824 && !(truthy(trackContainer(r, readMember(o, "name")))) !== !r.b0) {
298
- if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
299
- else { r.b0 = m14(d, undefined, r); r.e0.before(r.b0.n); }
307
+ const x0 = trackContainer(r, checkedReferenceValue(S, readMember(o, "role"), RC4, "expression:$group.role:group.role", "group.role"));
308
+ if (x0 !== NONCONFORMING) {
309
+ const s0 = toAttribute(x0, "role");
310
+ if (s0 !== r.v0) writeAttribute(r.n, "role", r.v0 = s0);
311
+ }
312
+ const x1 = trackContainer(r, checkedReferenceValue(S, readMember(o, "label"), RC2, "expression:$group.label:group.label", "group.label"));
313
+ if (x1 !== NONCONFORMING) {
314
+ const s1 = toAttribute(x1, "aria-label");
315
+ if (s1 !== r.v1) writeAttribute(r.n, "aria-label", r.v1 = s1);
316
+ }
317
+ }
318
+ let t0;
319
+ if (c & 1073741824 && (t0 = truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(o, "name"), RC2, "expression:$group.name:group.name", "group.name")))) !== NONCONFORMING && !t0 !== !r.b0) {
320
+ r.b0 = undefined;
321
+ clearRegion(r.a1, r.e0);
322
+ if (t0) { r.b0 = m14(d, undefined, r); r.e0.before(r.b0.n); }
300
323
  } else if (r.b0 !== undefined) p14(r.b0, c, d);
301
- if (c & 1073741824) r.L1.update(readMember(o, "rows"), d, c);
324
+ if (c & 1073741824) { const l = checkedReferenceValue(S, readMember(o, "rows"), RC5, "expression:$group.rows:group.rows", "group.rows"); if (l !== NONCONFORMING) { r.L1.update(l, d, c); } }
302
325
  if (c !== -1 && c & 536872000) r.L1.each(c, d);
303
326
  };
304
327
  const m14 = (d, o, u) => {
@@ -311,9 +334,11 @@ export function createUiCombobox(options = {}, html) {
311
334
  const p14 = (r, c, d) => {
312
335
  if (c & 1073741824) {
313
336
  r.w = 0;
314
- const x0 = trackContainer(r, readMember(r.u.i, "name"));
315
- const s0 = toText(x0);
316
- if (s0 !== r.v0) r.a0.data = r.v0 = s0;
337
+ const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "name"), RC2, "expression:$group.name:group.name", "group.name"));
338
+ if (x0 !== NONCONFORMING) {
339
+ const s0 = toText(x0);
340
+ if (s0 !== r.v0) r.a0.data = r.v0 = s0;
341
+ }
317
342
  }
318
343
  };
319
344
  const m15 = (o, j, l) => {
@@ -327,9 +352,9 @@ export function createUiCombobox(options = {}, html) {
327
352
  const o = r.i;
328
353
  if (c & 1073741824) r.w = 0;
329
354
  if (c & 1073741888) {
330
- const x0 = (checkReference(S, v[6], "i", "expression:$row.index = $active:active", "Reference `active` must satisfy integer.") ? (readMember(o, "index") === v[6]) : NONCONFORMING);
355
+ const x0 = equalValue(checkedReferenceValue(S, readMember(o, "index"), RC6, "expression:$row.index = $active:row.index", "row.index"), checkedReferenceValue(S, v[6], RC6, "expression:$row.index = $active:active", "active"));
331
356
  if (x0 !== NONCONFORMING) {
332
- const s0 = x0;
357
+ const s0 = truthy(x0);
333
358
  if (s0 !== r.v0) r.n.classList.toggle("active", r.v0 = s0);
334
359
  }
335
360
  }
@@ -339,40 +364,50 @@ export function createUiCombobox(options = {}, html) {
339
364
  if (s1 !== r.v1) writeAttribute(r.n, "data-multiple", r.v1 = s1);
340
365
  }
341
366
  if (c & 1073742848) {
342
- const x2 = textCall("concat", [v[10], "-option-", trackContainer(r, readMember(o, "index"))]);
367
+ const x2 = textCall("concat", [v[10], "-option-", trackContainer(r, checkedReferenceValue(S, readMember(o, "index"), RC6, "expression:concat($uid, '-option-', $row.index):row.index", "row.index"))]);
343
368
  if (x2 !== NONCONFORMING) {
344
369
  const s2 = toAttribute(x2, "id");
345
370
  if (s2 !== r.v2) writeAttribute(r.n, "id", r.v2 = s2);
346
371
  }
347
372
  }
348
373
  if (c & 1073741824) {
349
- const x3 = trackContainer(r, readMember(o, "selected"));
350
- const s3 = toAttribute(x3, "aria-selected");
351
- if (s3 !== r.v3) writeAttribute(r.n, "aria-selected", r.v3 = s3);
352
- const x4 = trackContainer(r, readMember(o, "disabled"));
353
- const s4 = toAttribute(x4, "aria-disabled");
354
- if (s4 !== r.v4) writeAttribute(r.n, "aria-disabled", r.v4 = s4);
355
- const x5 = trackContainer(r, readMember(o, "index"));
356
- const s5 = toAttribute(x5, "data-index");
357
- if (s5 !== r.v5) writeAttribute(r.n, "data-index", r.v5 = s5);
358
- const x6 = trackContainer(r, readMember(o, "labelledBy"));
359
- const s6 = toAttribute(x6, "aria-labelledby");
360
- if (s6 !== r.v6) writeAttribute(r.n, "aria-labelledby", r.v6 = s6);
361
- const x7 = trackContainer(r, readMember(o, "detail"));
362
- const s7 = toAttribute(x7, "aria-describedby");
363
- if (s7 !== r.v7) writeAttribute(r.n, "aria-describedby", r.v7 = s7);
374
+ const x3 = trackContainer(r, checkedReferenceValue(S, readMember(o, "selected"), RC1, "expression:$row.selected:row.selected", "row.selected"));
375
+ if (x3 !== NONCONFORMING) {
376
+ const s3 = toAttribute(x3, "aria-selected");
377
+ if (s3 !== r.v3) writeAttribute(r.n, "aria-selected", r.v3 = s3);
378
+ }
379
+ const x4 = trackContainer(r, checkedReferenceValue(S, readMember(o, "disabled"), RC1, "expression:$row.disabled:row.disabled", "row.disabled"));
380
+ if (x4 !== NONCONFORMING) {
381
+ const s4 = toAttribute(x4, "aria-disabled");
382
+ if (s4 !== r.v4) writeAttribute(r.n, "aria-disabled", r.v4 = s4);
383
+ }
384
+ const x5 = trackContainer(r, checkedReferenceValue(S, readMember(o, "index"), RC6, "expression:$row.index:row.index", "row.index"));
385
+ if (x5 !== NONCONFORMING) {
386
+ const s5 = toAttribute(x5, "data-index");
387
+ if (s5 !== r.v5) writeAttribute(r.n, "data-index", r.v5 = s5);
388
+ }
389
+ const x6 = trackContainer(r, checkedReferenceValue(S, readMember(o, "labelledBy"), RC2, "expression:$row.labelledBy:row.labelledBy", "row.labelledBy"));
390
+ if (x6 !== NONCONFORMING) {
391
+ const s6 = toAttribute(x6, "aria-labelledby");
392
+ if (s6 !== r.v6) writeAttribute(r.n, "aria-labelledby", r.v6 = s6);
393
+ }
394
+ const x7 = trackContainer(r, checkedReferenceValue(S, readMember(o, "detail"), RC2, "expression:$row.detail:row.detail", "row.detail"));
395
+ if (x7 !== NONCONFORMING) {
396
+ const s7 = toAttribute(x7, "aria-describedby");
397
+ if (s7 !== r.v7) writeAttribute(r.n, "aria-describedby", r.v7 = s7);
398
+ }
364
399
  }
365
400
  if (r.f0 === undefined) {
366
401
  r.f0 = 1;
367
- const s = {}; { const y = trackContainer(r, readMember(o, "option")); if (y !== NONCONFORMING) s["option"] = (y != null && y !== ABSENT && (K1(y) || (warnOnce(S, "slot:option:option", "Slot `option` prop `option` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), selected?: boolean })`."), false)) ? y : null); }
368
- const at = fillSlot(r.a1, r.e0, "option", J, true, s, d);
402
+ const s = { "option": null }; { const y = trackContainer(r, checkedReferenceValue(S, readMember(o, "option"), RC9, "expression:$row.option:row.option", "row.option")); if (y !== NONCONFORMING) s["option"] = (y != null && y !== ABSENT && (K1(y) || (warnOnce(S, "slot:option:option", "Slot `option` prop `option` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), selected?: boolean })`."), false)) ? y : null); }
403
+ const at = fillSlot(r.a1, r.e0, "option", J, true, s, d, r.z ??= []);
369
404
  if (Array.isArray(at)) { r.x0 = at; (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); }
370
405
  else if (at !== undefined) { r.b0 = m16(d, undefined, r); at.before(r.b0.n); }
371
406
  } else if (r.x0 !== undefined) {
372
407
  if (c & 1073741824) {
373
408
  const t = r.x0[1].s;
374
409
  let w = c & 1073741824;
375
- { let y = trackContainer(r, readMember(o, "option")); if (y !== NONCONFORMING && (y = (y != null && y !== ABSENT && (K1(y) || (warnOnce(S, "slot:option:option", "Slot `option` prop `option` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), selected?: boolean })`."), false)) ? y : null), !("option" in t && Object.is(t["option"], y)))) { t["option"] = y; w = 1; } }
410
+ { let y = trackContainer(r, checkedReferenceValue(S, readMember(o, "option"), RC9, "expression:$row.option:row.option", "row.option")); if (y !== NONCONFORMING && (y = (y != null && y !== ABSENT && (K1(y) || (warnOnce(S, "slot:option:option", "Slot `option` prop `option` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), selected?: boolean })`."), false)) ? y : null), !("option" in t && Object.is(t["option"], y)))) { t["option"] = y; w = 1; } }
376
411
  if (w) r.x0[0].p(r.x0[1], 1073741824, d);
377
412
  }
378
413
  } else if (r.b0 !== undefined) p16(r.b0, c, d);
@@ -386,13 +421,17 @@ export function createUiCombobox(options = {}, html) {
386
421
  return r;
387
422
  };
388
423
  const p16 = (r, c, d) => {
389
- if (c & 1073741824 && !(truthy(trackContainer(r, readMember(r.u.i, "detail")))) !== !r.b0) {
390
- if (r.b0) { r.b0 = undefined; clearRegion(r.a0, r.e0); }
391
- else { r.b0 = m17(d, undefined, r); r.e0.before(r.b0.n); }
424
+ let t0;
425
+ if (c & 1073741824 && (t0 = truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "detail"), RC2, "expression:$row.detail:row.detail", "row.detail")))) !== NONCONFORMING && !t0 !== !r.b0) {
426
+ r.b0 = undefined;
427
+ clearRegion(r.a0, r.e0);
428
+ if (t0) { r.b0 = m17(d, undefined, r); r.e0.before(r.b0.n); }
392
429
  } else if (r.b0 !== undefined) p17(r.b0, c, d);
393
- if (c & 1073741824 && !(!truthy(trackContainer(r, readMember(r.u.i, "detail")))) !== !r.b1) {
394
- if (r.b1) { r.b1 = undefined; clearRegion(r.a1, r.e1); }
395
- else { r.b1 = m20(d, undefined, r); r.e1.before(r.b1.n); }
430
+ let t1;
431
+ if (c & 1073741824 && (t1 = truthyValue(notValue(truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "detail"), RC2, "expression:not $row.detail:row.detail", "row.detail")))))) !== NONCONFORMING && !t1 !== !r.b1) {
432
+ r.b1 = undefined;
433
+ clearRegion(r.a1, r.e1);
434
+ if (t1) { r.b1 = m20(d, undefined, r); r.e1.before(r.b1.n); }
396
435
  } else if (r.b1 !== undefined) p20(r.b1, c, d);
397
436
  };
398
437
  const m17 = (d, o, u) => {
@@ -409,24 +448,30 @@ export function createUiCombobox(options = {}, html) {
409
448
  const p17 = (r, c, d) => {
410
449
  if (c & 1073741824) r.w = 0;
411
450
  if (c & 1073742848) {
412
- const x0 = textCall("concat", [v[10], "-option-", trackContainer(r, readMember(r.u.u.i, "index")), "-label"]);
451
+ const x0 = textCall("concat", [v[10], "-option-", trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.i, "index"), RC6, "expression:concat($uid, '-option-', $row.index, '-label'):row.index", "row.index")), "-label"]);
413
452
  if (x0 !== NONCONFORMING) {
414
453
  const s0 = toAttribute(x0, "id");
415
454
  if (s0 !== r.v0) writeAttribute(r.a0, "id", r.v0 = s0);
416
455
  }
417
456
  }
418
457
  if (c & 1073741824) {
419
- const x1 = trackContainer(r, readMember(r.u.u.i, "label"));
420
- const s1 = toText(x1);
421
- if (s1 !== r.v1) r.a1.data = r.v1 = s1;
458
+ const x1 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.i, "label"), RC2, "expression:$row.label:row.label", "row.label"));
459
+ if (x1 !== NONCONFORMING) {
460
+ const s1 = toText(x1);
461
+ if (s1 !== r.v1) r.a1.data = r.v1 = s1;
462
+ }
422
463
  }
423
- if (c & 1073741824 && !(truthy(trackContainer(r, readMember(r.u.u.i, "tag")))) !== !r.b0) {
424
- if (r.b0) { r.b0 = undefined; clearRegion(r.a2, r.e0); }
425
- else { r.b0 = m18(d, undefined, r); r.e0.before(r.b0.n); }
464
+ let t0;
465
+ if (c & 1073741824 && (t0 = truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.i, "tag"), RC7, "expression:$row.tag:row.tag", "row.tag")))) !== NONCONFORMING && !t0 !== !r.b0) {
466
+ r.b0 = undefined;
467
+ clearRegion(r.a2, r.e0);
468
+ if (t0) { r.b0 = m18(d, undefined, r); r.e0.before(r.b0.n); }
426
469
  } else if (r.b0 !== undefined) p18(r.b0, c, d);
427
- if (c & 1073741824 && !(truthy(trackContainer(r, readMember(r.u.u.i, "description")))) !== !r.b1) {
428
- if (r.b1) { r.b1 = undefined; clearRegion(r.a3, r.e1); }
429
- else { r.b1 = m19(d, undefined, r); r.e1.before(r.b1.n); }
470
+ let t1;
471
+ if (c & 1073741824 && (t1 = truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.i, "description"), RC2, "expression:$row.description:row.description", "row.description")))) !== NONCONFORMING && !t1 !== !r.b1) {
472
+ r.b1 = undefined;
473
+ clearRegion(r.a3, r.e1);
474
+ if (t1) { r.b1 = m19(d, undefined, r); r.e1.before(r.b1.n); }
430
475
  } else if (r.b1 !== undefined) p19(r.b1, c, d);
431
476
  };
432
477
  const m18 = (d, o, u) => {
@@ -440,18 +485,24 @@ export function createUiCombobox(options = {}, html) {
440
485
  const p18 = (r, c, d) => {
441
486
  if (c & 1073741824) {
442
487
  r.w = 0;
443
- const x0 = trackContainer(r, readMember(readMember(r.u.u.u.i, "tag"), "tone"));
444
- const s0 = toAttribute(x0, "tone");
445
- if (s0 !== r.v0) writeAttribute(r.n, "tone", r.v0 = s0);
446
- const x1 = trackContainer(r, readMember(readMember(r.u.u.u.i, "tag"), "color"));
447
- const s1 = toText(x1);
448
- if (s1 !== r.v1) r.n.style.setProperty("--ui-badge-color", r.v1 = s1);
449
- const x2 = trackContainer(r, readMember(readMember(r.u.u.u.i, "tag"), "label"));
450
- const s3 = toText(x2);
451
- if (s3 !== r.v3) r.a2.data = r.v3 = s3;
488
+ const x0 = trackContainer(r, checkedReferenceValue(S, readMember(readMember(r.u.u.u.i, "tag"), "tone"), RC8, "expression:$row.tag.tone:row.tag.tone", "row.tag.tone"));
489
+ if (x0 !== NONCONFORMING) {
490
+ const s0 = toAttribute(x0, "tone");
491
+ if (s0 !== r.v0) writeAttribute(r.n, "tone", r.v0 = s0);
492
+ }
493
+ const x1 = trackContainer(r, checkedReferenceValue(S, readMember(readMember(r.u.u.u.i, "tag"), "color"), RC2, "expression:$row.tag.color:row.tag.color", "row.tag.color"));
494
+ if (x1 !== NONCONFORMING) {
495
+ const s1 = toText(x1);
496
+ if (s1 !== r.v1) r.n.style.setProperty("--ui-badge-color", r.v1 = s1);
497
+ }
498
+ const x2 = trackContainer(r, checkedReferenceValue(S, readMember(readMember(r.u.u.u.i, "tag"), "label"), RC2, "expression:$row.tag.label:row.tag.label", "row.tag.label"));
499
+ if (x2 !== NONCONFORMING) {
500
+ const s3 = toText(x2);
501
+ if (s3 !== r.v3) r.a2.data = r.v3 = s3;
502
+ }
452
503
  }
453
504
  if (c & 1073742848) {
454
- const x3 = textCall("concat", [v[10], "-option-", trackContainer(r, readMember(r.u.u.u.i, "index")), "-tag"]);
505
+ const x3 = textCall("concat", [v[10], "-option-", trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.u.i, "index"), RC6, "expression:concat($uid, '-option-', $row.index, '-tag'):row.index", "row.index")), "-tag"]);
455
506
  if (x3 !== NONCONFORMING) {
456
507
  const s2 = toAttribute(x3, "id");
457
508
  if (s2 !== r.v2) writeAttribute(r.a1, "id", r.v2 = s2);
@@ -468,16 +519,18 @@ export function createUiCombobox(options = {}, html) {
468
519
  const p19 = (r, c, d) => {
469
520
  if (c & 1073741824) r.w = 0;
470
521
  if (c & 1073742848) {
471
- const x0 = textCall("concat", [v[10], "-option-", trackContainer(r, readMember(r.u.u.u.i, "index")), "-description"]);
522
+ const x0 = textCall("concat", [v[10], "-option-", trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.u.i, "index"), RC6, "expression:concat($uid, '-option-', $row.index, '-description'):row.index", "row.index")), "-description"]);
472
523
  if (x0 !== NONCONFORMING) {
473
524
  const s0 = toAttribute(x0, "id");
474
525
  if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
475
526
  }
476
527
  }
477
528
  if (c & 1073741824) {
478
- const x1 = trackContainer(r, readMember(r.u.u.u.i, "description"));
479
- const s1 = toText(x1);
480
- if (s1 !== r.v1) r.a1.data = r.v1 = s1;
529
+ const x1 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.u.i, "description"), RC2, "expression:$row.description:row.description", "row.description"));
530
+ if (x1 !== NONCONFORMING) {
531
+ const s1 = toText(x1);
532
+ if (s1 !== r.v1) r.a1.data = r.v1 = s1;
533
+ }
481
534
  }
482
535
  };
483
536
  const m20 = (d, o, u) => {
@@ -490,9 +543,11 @@ export function createUiCombobox(options = {}, html) {
490
543
  const p20 = (r, c, d) => {
491
544
  if (c & 1073741824) {
492
545
  r.w = 0;
493
- const x0 = trackContainer(r, readMember(r.u.u.i, "label"));
494
- const s0 = toText(x0);
495
- if (s0 !== r.v0) r.a0.data = r.v0 = s0;
546
+ const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.i, "label"), RC2, "expression:$row.label:row.label", "row.label"));
547
+ if (x0 !== NONCONFORMING) {
548
+ const s0 = toText(x0);
549
+ if (s0 !== r.v0) r.a0.data = r.v0 = s0;
550
+ }
496
551
  }
497
552
  };
498
553
  const m21 = (d) => {
@@ -503,9 +558,9 @@ export function createUiCombobox(options = {}, html) {
503
558
  };
504
559
  const p21 = (r, c, d) => {
505
560
  if (c & 16448) {
506
- const x0 = (checkReference(S, v[6], "i", "expression:$createIndex = $active:active", "Reference `active` must satisfy integer.") ? (v[14] === v[6]) : NONCONFORMING);
561
+ const x0 = equalValue(v[14], checkedReferenceValue(S, v[6], RC6, "expression:$createIndex = $active:active", "active"));
507
562
  if (x0 !== NONCONFORMING) {
508
- const s0 = x0;
563
+ const s0 = truthy(x0);
509
564
  if (s0 !== r.v0) r.n.classList.toggle("active", r.v0 = s0);
510
565
  }
511
566
  }
@@ -556,9 +611,9 @@ export function createUiCombobox(options = {}, html) {
556
611
  return r;
557
612
  };
558
613
  const p23 = (r, c, d) => {
559
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "empty", J, true, undefined, d);
560
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m24(d); at.before(r.b0.n); } }
561
- else if (r.b0 !== undefined) p24(r.b0, c, d);
614
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a0, r.e0, "empty", J, true, undefined, d, r.z ??= []);
615
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m24(d, undefined, r), p24); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m24(d); at.before(r.b0.n); } }
616
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p24(r.b0, c, d);
562
617
  };
563
618
  const m24 = (d) => {
564
619
  const n = (P24 ??= buildTemplate(T24)).cloneNode(true);
@@ -587,9 +642,11 @@ export function createUiCombobox(options = {}, html) {
587
642
  const o = r.i;
588
643
  if (c & 1073741824) {
589
644
  r.w = 0;
590
- const x0 = trackContainer(r, readMember(o, "message"));
591
- const s0 = toText(x0);
592
- if (s0 !== r.v0) r.a0.data = r.v0 = s0;
645
+ const x0 = trackContainer(r, checkedReferenceValue(S, readMember(o, "message"), RC2, "expression:$issue.message:issue.message", "issue.message"));
646
+ if (x0 !== NONCONFORMING) {
647
+ const s0 = toText(x0);
648
+ if (s0 !== r.v0) r.a0.data = r.v0 = s0;
649
+ }
593
650
  }
594
651
  };
595
652
  const m27 = (d) => {
@@ -601,179 +658,183 @@ export function createUiCombobox(options = {}, html) {
601
658
  const p27 = (r, c, d) => {
602
659
  };
603
660
  const p0 = (r, c, d) => {
661
+ if (c === -1) {
662
+ resetForwardedAttributes(r.n, attributes, r.v0);
663
+ r.v0 = forwardAttributes(r.n, attributes);
664
+ }
604
665
  if (c & 1024) {
605
666
  const x0 = textCall("concat", [v[10], "-input"]);
606
667
  if (x0 !== NONCONFORMING) {
607
- const s0 = toAttribute(x0, "for");
608
- if (s0 !== r.v0) writeAttribute(r.a0, "for", r.v0 = s0);
668
+ const s1 = toAttribute(x0, "for");
669
+ if (s1 !== r.v1) writeAttribute(r.a1, "for", r.v1 = s1);
609
670
  }
610
671
  if (x0 !== NONCONFORMING) {
611
- const s5 = toAttribute(x0, "id");
612
- if (s5 !== r.v5) writeAttribute(r.a7, "id", r.v5 = s5);
672
+ const s6 = toAttribute(x0, "id");
673
+ if (s6 !== r.v6) writeAttribute(r.a8, "id", r.v6 = s6);
613
674
  }
614
675
  const x1 = textCall("concat", [v[10], "-listbox"]);
615
676
  if (x1 !== NONCONFORMING) {
616
- const s6 = toAttribute(x1, "aria-controls");
617
- if (s6 !== r.v6) writeAttribute(r.a7, "aria-controls", r.v6 = s6);
677
+ const s7 = toAttribute(x1, "aria-controls");
678
+ if (s7 !== r.v7) writeAttribute(r.a8, "aria-controls", r.v7 = s7);
618
679
  }
619
680
  if (x1 !== NONCONFORMING) {
620
- const s16 = toAttribute(x1, "id");
621
- if (s16 !== r.v16) writeAttribute(r.a15, "id", r.v16 = s16);
681
+ const s17 = toAttribute(x1, "id");
682
+ if (s17 !== r.v17) writeAttribute(r.a16, "id", r.v17 = s17);
622
683
  }
623
684
  const x2 = textCall("concat", [v[10], "-validation"]);
624
685
  if (x2 !== NONCONFORMING) {
625
- const s19 = toAttribute(x2, "id");
626
- if (s19 !== r.v19) writeAttribute(r.a21, "id", r.v19 = s19);
686
+ const s20 = toAttribute(x2, "id");
687
+ if (s20 !== r.v20) writeAttribute(r.a22, "id", r.v20 = s20);
627
688
  }
628
689
  }
629
690
  if (c & 536870912) {
630
- const x3 = (v[31] === "sr-only");
631
- const s1 = x3;
632
- if (s1 !== r.v1) r.a0.classList.toggle("sr-only", r.v1 = s1);
691
+ const x3 = equalValue(v[31], "sr-only");
692
+ const s2 = truthy(x3);
693
+ if (s2 !== r.v2) r.a1.classList.toggle("sr-only", r.v2 = s2);
633
694
  const x4 = v[30];
634
- const s2 = toText(x4);
635
- if (s2 !== r.v2) r.a1.data = r.v2 = s2;
695
+ const s3 = toText(x4);
696
+ if (s3 !== r.v3) r.a2.data = r.v3 = s3;
636
697
  }
637
698
  if (c & 603979776) {
638
699
  const x5 = (truthy(v[34]) && truthy(v[26]));
639
- const s3 = x5;
640
- if (s3 !== r.v3) r.a4.classList.toggle("multiline", r.v3 = s3);
700
+ const s4 = x5;
701
+ if (s4 !== r.v4) r.a5.classList.toggle("multiline", r.v4 = s4);
641
702
  }
642
703
  if (c & 536870912) {
643
704
  const x6 = v[33];
644
- const s4 = toText(x6);
645
- if (s4 !== r.v4) r.a4.style.setProperty("--_max-rows", r.v4 = s4);
705
+ const s5 = toText(x6);
706
+ if (s5 !== r.v5) r.a5.style.setProperty("--_max-rows", r.v5 = s5);
646
707
  }
647
708
  if (c & 16) {
648
709
  const x7 = v[4];
649
- const s7 = toAttribute(x7, "aria-expanded");
650
- if (s7 !== r.v7) writeAttribute(r.a7, "aria-expanded", r.v7 = s7);
710
+ const s8 = toAttribute(x7, "aria-expanded");
711
+ if (s8 !== r.v8) writeAttribute(r.a8, "aria-expanded", r.v8 = s8);
651
712
  const x8 = !v[4];
652
- const s15 = toAttribute(x8, "hidden");
653
- if (s15 !== r.v15) writeAttribute(r.a14, "hidden", r.v15 = s15);
713
+ const s16 = toAttribute(x8, "hidden");
714
+ if (s16 !== r.v16) writeAttribute(r.a15, "hidden", r.v16 = s16);
654
715
  }
655
716
  if (c & 268566528) {
656
- const x9 = (truthy(v[28]) || (v[17] === "error"));
657
- const s8 = toAttribute(x9, "aria-invalid");
658
- if (s8 !== r.v8) writeAttribute(r.a7, "aria-invalid", r.v8 = s8);
717
+ const x9 = (truthy(v[28]) || truthy(equalValue(v[17], "error")));
718
+ const s9 = toAttribute(x9, "aria-invalid");
719
+ if (s9 !== r.v9) writeAttribute(r.a8, "aria-invalid", r.v9 = s9);
659
720
  }
660
721
  if (c & 537001984) {
661
- const x10 = (truthy(v[32]) || (v[17] === "pending"));
662
- const s9 = toAttribute(x10, "aria-busy");
663
- if (s9 !== r.v9) writeAttribute(r.a7, "aria-busy", r.v9 = s9);
722
+ const x10 = (truthy(v[32]) || truthy(equalValue(v[17], "pending")));
723
+ const s10 = toAttribute(x10, "aria-busy");
724
+ if (s10 !== r.v10) writeAttribute(r.a8, "aria-busy", r.v10 = s10);
664
725
  }
665
726
  if (c & 4) {
666
727
  const f0 = [];
667
728
  const x11 = rec(f0, v[2]);
668
- if (c === -1 || c & 4 || readsChanged(r.v10, f0)) {
669
- r.v10 = f0;
670
- r.a7["value"] = x11;
729
+ if (c === -1 || c & 4 || readsChanged(r.v11, f0)) {
730
+ r.v11 = f0;
731
+ r.a8["value"] = x11;
671
732
  }
672
733
  }
673
734
  if (c & 536870912) {
674
735
  const x12 = v[38];
675
- const s11 = toAttribute(x12, "placeholder");
676
- if (s11 !== r.v11) writeAttribute(r.a7, "placeholder", r.v11 = s11);
736
+ const s12 = toAttribute(x12, "placeholder");
737
+ if (s12 !== r.v12) writeAttribute(r.a8, "placeholder", r.v12 = s12);
677
738
  }
678
739
  if (c & 8388608) {
679
740
  const x13 = v[23];
680
- const s12 = toAttribute(x13, "disabled");
681
- if (s12 !== r.v12) writeAttribute(r.a7, "disabled", r.v12 = s12);
741
+ const s13 = toAttribute(x13, "disabled");
742
+ if (s13 !== r.v13) writeAttribute(r.a8, "disabled", r.v13 = s13);
682
743
  }
683
744
  if (c & 536870912) {
684
745
  const x14 = v[40];
685
- const s13 = toAttribute(x14, "readonly");
686
- if (s13 !== r.v13) writeAttribute(r.a7, "readonly", r.v13 = s13);
746
+ const s14 = toAttribute(x14, "readonly");
747
+ if (s14 !== r.v14) writeAttribute(r.a8, "readonly", r.v14 = s14);
687
748
  const x15 = textCall("concat", [v[30], " suggestions"]);
688
749
  if (x15 !== NONCONFORMING) {
689
- const s17 = toAttribute(x15, "aria-label");
690
- if (s17 !== r.v17) writeAttribute(r.a15, "aria-label", r.v17 = s17);
750
+ const s18 = toAttribute(x15, "aria-label");
751
+ if (s18 !== r.v18) writeAttribute(r.a16, "aria-label", r.v18 = s18);
691
752
  }
692
753
  const x16 = v[32];
693
- const s18 = toAttribute(x16, "aria-busy");
694
- if (s18 !== r.v18) writeAttribute(r.a15, "aria-busy", r.v18 = s18);
754
+ const s19 = toAttribute(x16, "aria-busy");
755
+ if (s19 !== r.v19) writeAttribute(r.a16, "aria-busy", r.v19 = s19);
695
756
  }
696
757
  if (c & 1610612737) {
697
- const x17 = (checkReference(S, readDeclared(v[0], ["0"]), ["o",["id","s","value","s","label","s","group","s","disabled","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]]]], "expression:$required and not ($multiple and $internalItems.0):internalItems.0", "Reference `internalItems.0` must satisfy object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) }).") ? (truthy(v[41]) && !(truthy(v[34]) && truthy(readIndex(v[0], 0)))) : NONCONFORMING);
758
+ const x17 = ((q) => q === NONCONFORMING ? q : q ? truthyValue(notValue(truthyValue(((q) => q === NONCONFORMING ? q : q ? truthyValue(checkedReferenceValue(S, readIndex(v[0], 0), RC3, "expression:$required and not ($multiple and $internalItems.0):internalItems.0", "internalItems.0")) : false)(truthy(v[34]))))) : false)(truthy(v[41]));
698
759
  if (x17 !== NONCONFORMING) {
699
- const s14 = toAttribute(x17, "required");
700
- if (s14 !== r.v14) writeAttribute(r.a7, "required", r.v14 = s14);
760
+ const s15 = toAttribute(x17, "required");
761
+ if (s15 !== r.v15) writeAttribute(r.a8, "required", r.v15 = s15);
701
762
  }
702
763
  }
703
764
  if (c & 1073742336) {
704
765
  const x18 = !truthy(readMember(readMember(v[9], "issues"), "length"));
705
- const s20 = toAttribute(x18, "hidden");
706
- if (s20 !== r.v20) writeAttribute(r.a21, "hidden", r.v20 = s20);
766
+ const s21 = toAttribute(x18, "hidden");
767
+ if (s21 !== r.v21) writeAttribute(r.a22, "hidden", r.v21 = s21);
707
768
  }
708
769
  if (c & 65536) {
709
770
  const x19 = v[16];
710
- const s21 = toText(x19);
711
- if (s21 !== r.v21) r.a23.data = r.v21 = s21;
771
+ const s22 = toText(x19);
772
+ if (s22 !== r.v22) r.a24.data = r.v22 = s22;
712
773
  }
713
774
  if (c & 805437440) {
714
775
  const x20 = hostState(["size","muted","validationStatus","invalid","multiple"], [v[44], v[35], v[17], v[28], v[34]]);
715
- const s22 = x20;
716
- if (s22 !== r.v22) writeAttribute(r.n, "data-ui-combobox-state", (r.v22 = s22) === "" ? null : s22);
776
+ const s23 = x20;
777
+ if (s23 !== r.v23) writeAttribute(r.n, "data-ui-combobox-state", (r.v23 = s23) === "" ? null : s23);
717
778
  }
718
779
  if (c & 536870912 && !(truthy(v[41])) !== !r.b0) {
719
- if (r.b0) { r.b0 = undefined; clearRegion(r.a2, r.e0); }
780
+ if (r.b0) { r.b0 = undefined; clearRegion(r.a3, r.e0); }
720
781
  else { r.b0 = m1(d); r.e0.before(r.b0.n); }
721
782
  } else if (r.b0 !== undefined) p1(r.b0, c, d);
783
+ if (r.f1 === undefined) { r.f1 = 1; const at = initializeSlot(r.a6, r.e1, "start", J, false, undefined, d);
784
+ if (typeof at === "function") r.f1 = at(r, (d, at) => m2(d, undefined, r), p2); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m2(d); at.before(r.b1.n); } }
785
+ else if (typeof r.f1 === "function") r.f1(c, d); else if (r.b1 !== undefined) p2(r.b1, c, d);
722
786
  if (c & 536870912 && !(truthy(v[34])) !== !r.b2) {
723
- if (r.b2) { dispose(r.b2); r.b2 = undefined; clearRegion(r.a6, r.e2); }
787
+ if (r.b2) { dispose(r.b2); r.b2 = undefined; clearRegion(r.a7, r.e2); }
724
788
  else { r.b2 = m3(d); r.e2.before(r.b2.n); }
725
789
  } else if (r.b2 !== undefined) p3(r.b2, c, d);
726
790
  if (c & 536870912 && !((truthy(v[36]) && !truthy(v[34]))) !== !r.b3) {
727
- if (r.b3) { r.b3 = undefined; clearRegion(r.a8, r.e3); }
791
+ if (r.b3) { r.b3 = undefined; clearRegion(r.a9, r.e3); }
728
792
  else { r.b3 = m6(d); r.e3.before(r.b3.n); }
729
793
  } else if (r.b3 !== undefined) p6(r.b3, c, d);
730
794
  if (c & 536870912 && !((truthy(v[36]) && truthy(v[34]))) !== !r.b4) {
731
- if (r.b4) { r.b4 = undefined; clearRegion(r.a9, r.e4); }
795
+ if (r.b4) { r.b4 = undefined; clearRegion(r.a10, r.e4); }
732
796
  else { r.b4 = m7(d); r.e4.before(r.b4.n); }
733
797
  } else if (r.b4 !== undefined) p7(r.b4, c, d);
734
798
  if (c & 4194304 && !(truthy(v[22])) !== !r.b5) {
735
- if (r.b5) { r.b5 = undefined; clearRegion(r.a10, r.e5); }
799
+ if (r.b5) { r.b5 = undefined; clearRegion(r.a11, r.e5); }
736
800
  else { r.b5 = m9(d); r.e5.before(r.b5.n); }
737
801
  } else if (r.b5 !== undefined) p9(r.b5, c, d);
738
802
  if (c & 16777216 && !(truthy(v[24])) !== !r.b6) {
739
- if (r.b6) { r.b6 = undefined; clearRegion(r.a11, r.e6); }
803
+ if (r.b6) { r.b6 = undefined; clearRegion(r.a12, r.e6); }
740
804
  else { r.b6 = m10(d); r.e6.before(r.b6.n); }
741
805
  } else if (r.b6 !== undefined) p10(r.b6, c, d);
742
806
  if (c & 134217728 && !(truthy(v[27])) !== !r.b7) {
743
- if (r.b7) { r.b7 = undefined; clearRegion(r.a12, r.e7); }
807
+ if (r.b7) { r.b7 = undefined; clearRegion(r.a13, r.e7); }
744
808
  else { r.b7 = m11(d); r.e7.before(r.b7.n); }
745
809
  } else if (r.b7 !== undefined) p11(r.b7, c, d);
746
810
  if (c & 134217728 && !(truthy(v[27])) !== !r.b8) {
747
- if (r.b8) { r.b8 = undefined; clearRegion(r.a13, r.e8); }
811
+ if (r.b8) { r.b8 = undefined; clearRegion(r.a14, r.e8); }
748
812
  else { r.b8 = m12(d); r.e8.before(r.b8.n); }
749
813
  } else if (r.b8 !== undefined) p12(r.b8, c, d);
750
814
  if (c & 1073745920) r.L9.update(v[12], d, c);
751
815
  if (c !== -1 && c & 536872000) r.L9.each(c, d);
752
816
  if (c & 8192 && !(v[13]) !== !r.b10) {
753
- if (r.b10) { r.b10 = undefined; clearRegion(r.a17, r.e10); }
817
+ if (r.b10) { r.b10 = undefined; clearRegion(r.a18, r.e10); }
754
818
  else { r.b10 = m21(d); r.e10.before(r.b10.n); }
755
819
  } else if (r.b10 !== undefined) p21(r.b10, c, d);
756
820
  if (c & 32768 && !(truthy(v[15])) !== !r.b11) {
757
- if (r.b11) { r.b11 = undefined; clearRegion(r.a18, r.e11); }
821
+ if (r.b11) { r.b11 = undefined; clearRegion(r.a19, r.e11); }
758
822
  else { r.b11 = m22(d); r.e11.before(r.b11.n); }
759
823
  } else if (r.b11 !== undefined) p22(r.b11, c, d);
760
824
  let t12;
761
- if (c & 1610621216 && (t12 = (checkReference(S, readDeclared(v[5], ["0"]), ["o",["id","s","value","s","label","s","group","s","disabled","b","selected","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]]]], "expression:not $loading and not $rows.0 and not $creatable and not $lookupError:rows.0", "Reference `rows.0` must satisfy object({ id: string, value: string, label: string, group?: string, disabled: boolean, selected: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) }).") ? (((!truthy(v[32]) && !truthy(readIndex(v[5], 0))) && !v[13]) && !truthy(v[8])) : NONCONFORMING)) !== NONCONFORMING && !t12 !== !r.b12) {
825
+ if (c & 1610621216 && (t12 = truthyValue(((q) => q === NONCONFORMING ? q : q ? !truthy(v[8]) : false)(truthyValue(((q) => q === NONCONFORMING ? q : q ? !v[13] : false)(truthyValue(((q) => q === NONCONFORMING ? q : q ? truthyValue(notValue(truthyValue(checkedReferenceValue(S, readIndex(v[5], 0), RC10, "expression:not $loading and not $rows.0 and not $creatable and not $lookupError:rows.0", "rows.0")))) : false)(!truthy(v[32])))))))) !== NONCONFORMING && !t12 !== !r.b12) {
762
826
  dispose(r.b12);
763
827
  r.b12 = undefined;
764
- clearRegion(r.a19, r.e12);
828
+ clearRegion(r.a20, r.e12);
765
829
  if (t12) { r.b12 = m23(d); r.e12.before(r.b12.n); }
766
830
  } else if (r.b12 !== undefined) p23(r.b12, c, d);
767
- if (c & 1073742336) { const l = (checkReference(S, readDeclared(v[9], ["issues"]), ["l",["o",["message","s"]]], "expression:$validation.issues:validation.issues", "Reference `validation.issues` must satisfy list(object({ message: string })).") ? readMember(v[9], "issues") : NONCONFORMING); if (l !== NONCONFORMING) { r.L14.update(l, d, c); } }
768
- if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a5, r.e1, "start", J, false, undefined, d);
769
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m2(d); at.before(r.b1.n); } }
770
- else if (r.b1 !== undefined) p2(r.b1, c, d);
771
- if (r.f13 === undefined) { r.f13 = 1; const at = fillSlot(r.a20, r.e13, "footer", J, false, undefined, d);
772
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b13 = m25(d); at.before(r.b13.n); } }
773
- else if (r.b13 !== undefined) p25(r.b13, c, d);
774
- if (r.f15 === undefined) { r.f15 = 1; const at = fillSlot(r.a25, r.e15, "", J, false, undefined, d);
775
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b15 = m27(d); at.before(r.b15.n); } }
776
- else if (r.b15 !== undefined) p27(r.b15, c, d);
831
+ if (r.f13 === undefined) { r.f13 = 1; const at = initializeSlot(r.a21, r.e13, "footer", J, false, undefined, d);
832
+ if (typeof at === "function") r.f13 = at(r, (d, at) => m25(d, undefined, r), p25); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b13 = m25(d); at.before(r.b13.n); } }
833
+ else if (typeof r.f13 === "function") r.f13(c, d); else if (r.b13 !== undefined) p25(r.b13, c, d);
834
+ if (c & 1073742336) { const l = checkedReferenceValue(S, readMember(v[9], "issues"), RC11, "expression:$validation.issues:validation.issues", "validation.issues"); if (l !== NONCONFORMING) { r.L14.update(l, d, c); } }
835
+ if (r.f15 === undefined) { r.f15 = 1; const at = initializeSlot(r.a26, r.e15, "", J, false, undefined, d);
836
+ if (typeof at === "function") r.f15 = at(r, (d, at) => m27(d, undefined, r), p27); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b15 = m27(d); at.before(r.b15.n); } }
837
+ else if (typeof r.f15 === "function") r.f15(c, d); else if (r.b15 !== undefined) p27(r.b15, c, d);
777
838
  };
778
839
  const t0 = element.firstChild.nextSibling;
779
840
  const t1 = t0.firstChild;
@@ -804,10 +865,12 @@ export function createUiCombobox(options = {}, html) {
804
865
  const t26 = t25.firstChild;
805
866
  const t27 = t25.nextSibling.nextSibling;
806
867
  const t28 = t27.firstChild;
807
- const R = { n: element, a0: t0, a1: t1, a4: t5, a7: t9, a14: t16, a15: t17, a21: t23, a23: t26, v0: null, v1: false, v2: "", v3: false, v4: undefined, v5: null, v6: null, v7: null, v8: null, v9: null, v10: undefined, v11: null, v12: null, v13: null, v14: null, v15: null, v16: null, v17: null, v18: null, v19: null, v20: null, v21: "", v22: undefined, a2: t2, e0: t2.nextSibling, b0: undefined, a5: t7, e1: t7.nextSibling, b1: undefined, f1: undefined, a6: t8, e2: t8.nextSibling, b2: undefined, a8: t10, e3: t10.nextSibling, b3: undefined, a9: t11, e4: t11.nextSibling, b4: undefined, a10: t12, e5: t12.nextSibling, b5: undefined, a11: t13, e6: t13.nextSibling, b6: undefined, a12: t14, e7: t14.nextSibling, b7: undefined, a13: t15, e8: t15.nextSibling, b8: undefined, L9: new KeyedList(t18, t18.nextSibling, m13, p13, (o) => readMember(o, "name"), "group"), a17: t19, e10: t19.nextSibling, b10: undefined, a18: t20, e11: t20.nextSibling, b11: undefined, a19: t21, e12: t21.nextSibling, b12: undefined, a20: t22, e13: t22.nextSibling, b13: undefined, f13: undefined, L14: new IndexedList(t24, t24.nextSibling, m26, p26, undefined, "issue"), a25: t28, e15: t28.nextSibling, b15: undefined, f15: undefined };
868
+ const R = { n: element, a1: t0, a2: t1, a5: t5, a8: t9, a15: t16, a16: t17, a22: t23, a24: t26, v0: undefined, v1: null, v2: false, v3: "", v4: false, v5: undefined, v6: null, v7: null, v8: null, v9: null, v10: null, v11: undefined, v12: null, v13: null, v14: null, v15: null, v16: null, v17: null, v18: null, v19: null, v20: null, v21: null, v22: "", v23: undefined, a3: t2, e0: t2.nextSibling, b0: undefined, a6: t7, e1: t7.nextSibling, b1: undefined, f1: undefined, a7: t8, e2: t8.nextSibling, b2: undefined, a9: t10, e3: t10.nextSibling, b3: undefined, a10: t11, e4: t11.nextSibling, b4: undefined, a11: t12, e5: t12.nextSibling, b5: undefined, a12: t13, e6: t13.nextSibling, b6: undefined, a13: t14, e7: t14.nextSibling, b7: undefined, a14: t15, e8: t15.nextSibling, b8: undefined, L9: new KeyedList(t18, t18.nextSibling, m13, p13, (o) => readMember(o, "name"), "group"), a18: t19, e10: t19.nextSibling, b10: undefined, a19: t20, e11: t20.nextSibling, b11: undefined, a20: t21, e12: t21.nextSibling, b12: undefined, a21: t22, e13: t22.nextSibling, b13: undefined, f13: undefined, L14: new IndexedList(t24, t24.nextSibling, m26, p26, undefined, "issue"), a26: t28, e15: t28.nextSibling, b15: undefined, f15: undefined };
808
869
  const I = { B };
809
870
  const J = project(I, children, slots);
871
+ sharePlainSlots(I, J, ["item","option"]);
810
872
  I.R = new Set();
873
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
811
874
  attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
812
875
  manageProps(I);
813
876
  I.r["field"] = t4;