@threadlabs/looma 0.25.6 → 0.26.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 (435) hide show
  1. package/components/ui-avatar/ui-avatar.html +4 -4
  2. package/components/ui-avatar-group/ui-avatar-group.html +2 -2
  3. package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -1
  4. package/components/ui-breadcrumbs/ui-breadcrumbs.html +1 -1
  5. package/components/ui-button/ui-button.html +27 -27
  6. package/components/ui-callout/ui-callout.html +5 -5
  7. package/components/ui-card/ui-card.html +3 -3
  8. package/components/ui-checkbox/ui-checkbox.html +8 -8
  9. package/components/ui-combobox/ui-combobox.html +59 -59
  10. package/components/ui-dialog/ui-dialog.html +2 -2
  11. package/components/ui-disclosure/ui-disclosure.html +3 -3
  12. package/components/ui-editable/ui-editable.html +8 -8
  13. package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +11 -11
  14. package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +10 -10
  15. package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +2 -2
  16. package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +7 -7
  17. package/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html +1 -1
  18. package/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html +3 -3
  19. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +16 -16
  20. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +31 -31
  21. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +33 -33
  22. package/components/ui-floating-action-button/ui-floating-action-button.html +1 -1
  23. package/components/ui-grid/ui-grid.html +1 -1
  24. package/components/ui-icon/ui-icon.html +12 -12
  25. package/components/ui-icon-button/ui-icon-button.html +6 -6
  26. package/components/ui-image/ui-image.html +2 -2
  27. package/components/ui-input/ui-input.html +1 -1
  28. package/components/ui-list/ui-list.html +1 -1
  29. package/components/ui-list-item/ui-list-item.html +1 -1
  30. package/components/ui-listbox/ui-listbox.html +24 -24
  31. package/components/ui-menu-group/ui-menu-group.html +2 -2
  32. package/components/ui-menu-item/ui-menu-item.html +9 -9
  33. package/components/ui-meter/ui-meter.html +8 -8
  34. package/components/ui-nav-item/ui-nav-item.html +6 -6
  35. package/components/ui-radio/ui-radio.html +1 -1
  36. package/components/ui-radio-group/ui-radio-group.html +1 -1
  37. package/components/ui-search-result-row/ui-search-result-row.html +1 -1
  38. package/components/ui-search-shell/ui-search-shell.html +1 -1
  39. package/components/ui-section/ui-section.html +1 -1
  40. package/components/ui-select/ui-select.html +1 -1
  41. package/components/ui-separator/ui-separator.html +1 -1
  42. package/components/ui-sidebar/ui-sidebar.html +2 -2
  43. package/components/ui-spinner/ui-spinner.html +4 -4
  44. package/components/ui-stack/ui-stack.html +1 -1
  45. package/components/ui-status-message/ui-status-message.html +3 -3
  46. package/components/ui-switch/ui-switch.html +5 -5
  47. package/components/ui-tabs/ui-tabs.html +8 -8
  48. package/components/ui-text/ui-text.html +10 -10
  49. package/components/ui-textarea/ui-textarea.html +8 -8
  50. package/components/ui-toast/ui-toast.html +1 -1
  51. package/components/ui-toast-region/ui-toast-region.html +8 -8
  52. package/components/ui-tooltip/ui-tooltip.html +1 -1
  53. package/components/ui-tree-item/ui-tree-item.html +32 -18
  54. package/dist/index.js +1 -1
  55. package/package.json +3 -3
  56. package/styles/ui-action-bar.css +1 -1
  57. package/styles/ui-affordance-scope.css +1 -1
  58. package/styles/ui-avatar-group.css +1 -1
  59. package/styles/ui-avatar.css +1 -1
  60. package/styles/ui-badge.css +1 -1
  61. package/styles/ui-breadcrumb-item.css +1 -1
  62. package/styles/ui-breadcrumbs.css +1 -1
  63. package/styles/ui-button.css +1 -1
  64. package/styles/ui-callout.css +1 -1
  65. package/styles/ui-card.css +1 -1
  66. package/styles/ui-checkbox.css +1 -1
  67. package/styles/ui-cluster.css +1 -1
  68. package/styles/ui-combobox.css +1 -1
  69. package/styles/ui-container.css +1 -1
  70. package/styles/ui-context-menu.css +1 -1
  71. package/styles/ui-cover.css +1 -1
  72. package/styles/ui-description-item.css +1 -1
  73. package/styles/ui-description-list.css +1 -1
  74. package/styles/ui-dialog.css +1 -1
  75. package/styles/ui-disclosure.css +1 -1
  76. package/styles/ui-editable.css +1 -1
  77. package/styles/ui-editor-insert-table-grid.css +1 -1
  78. package/styles/ui-editor-mention-menu-item.css +1 -1
  79. package/styles/ui-editor-mention-menu.css +1 -1
  80. package/styles/ui-editor-slash-menu-group.css +1 -1
  81. package/styles/ui-editor-slash-menu-item.css +1 -1
  82. package/styles/ui-editor-slash-menu.css +1 -1
  83. package/styles/ui-editor-surface.css +1 -1
  84. package/styles/ui-editor-table-context-menu.css +1 -1
  85. package/styles/ui-editor-table-overlay.css +1 -1
  86. package/styles/ui-editor-table-toolbar.css +1 -1
  87. package/styles/ui-editor-toolbar.css +1 -1
  88. package/styles/ui-floating-action-button.css +1 -1
  89. package/styles/ui-form-field.css +1 -1
  90. package/styles/ui-grid.css +1 -1
  91. package/styles/ui-icon-button.css +1 -1
  92. package/styles/ui-icon.css +1 -1
  93. package/styles/ui-image.css +1 -1
  94. package/styles/ui-input-group.css +1 -1
  95. package/styles/ui-input.css +1 -1
  96. package/styles/ui-list-item.css +1 -1
  97. package/styles/ui-list.css +1 -1
  98. package/styles/ui-listbox.css +1 -1
  99. package/styles/ui-menu-group.css +1 -1
  100. package/styles/ui-menu-item.css +1 -1
  101. package/styles/ui-menu.css +1 -1
  102. package/styles/ui-meter.css +1 -1
  103. package/styles/ui-nav-item.css +1 -1
  104. package/styles/ui-page-header.css +1 -1
  105. package/styles/ui-popover.css +1 -1
  106. package/styles/ui-radio-group.css +1 -1
  107. package/styles/ui-radio.css +1 -1
  108. package/styles/ui-reel.css +1 -1
  109. package/styles/ui-scroll-area.css +1 -1
  110. package/styles/ui-search-result-row.css +1 -1
  111. package/styles/ui-search-shell.css +1 -1
  112. package/styles/ui-section.css +1 -1
  113. package/styles/ui-select.css +1 -1
  114. package/styles/ui-separator.css +1 -1
  115. package/styles/ui-sidebar.css +1 -1
  116. package/styles/ui-spinner.css +1 -1
  117. package/styles/ui-stack.css +1 -1
  118. package/styles/ui-status-message.css +1 -1
  119. package/styles/ui-switch.css +1 -1
  120. package/styles/ui-switcher.css +1 -1
  121. package/styles/ui-table.css +1 -1
  122. package/styles/ui-tabs.css +1 -1
  123. package/styles/ui-text.css +1 -1
  124. package/styles/ui-textarea.css +1 -1
  125. package/styles/ui-toast-region.css +1 -1
  126. package/styles/ui-toast.css +1 -1
  127. package/styles/ui-tooltip.css +1 -1
  128. package/styles/ui-top-bar.css +1 -1
  129. package/styles/ui-tree-item.css +14 -1
  130. package/styles/ui-tree.css +1 -1
  131. package/vanilla/UiActionBar.d.ts +1 -1
  132. package/vanilla/UiActionBar.js +70 -52
  133. package/vanilla/UiAffordanceScope.d.ts +1 -1
  134. package/vanilla/UiAffordanceScope.js +36 -17
  135. package/vanilla/UiAvatar.d.ts +1 -1
  136. package/vanilla/UiAvatar.js +72 -37
  137. package/vanilla/UiAvatarGroup.d.ts +1 -1
  138. package/vanilla/UiAvatarGroup.js +57 -26
  139. package/vanilla/UiBadge.d.ts +1 -1
  140. package/vanilla/UiBadge.js +49 -39
  141. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  142. package/vanilla/UiBreadcrumbItem.js +41 -26
  143. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  144. package/vanilla/UiBreadcrumbs.js +35 -24
  145. package/vanilla/UiButton.d.ts +1 -1
  146. package/vanilla/UiButton.js +444 -156
  147. package/vanilla/UiCallout.d.ts +1 -1
  148. package/vanilla/UiCallout.js +135 -111
  149. package/vanilla/UiCard.d.ts +1 -1
  150. package/vanilla/UiCard.js +147 -47
  151. package/vanilla/UiCheckbox.d.ts +1 -1
  152. package/vanilla/UiCheckbox.js +100 -58
  153. package/vanilla/UiCluster.d.ts +1 -1
  154. package/vanilla/UiCluster.js +35 -29
  155. package/vanilla/UiCombobox.d.ts +1 -1
  156. package/vanilla/UiCombobox.js +879 -283
  157. package/vanilla/UiContainer.d.ts +1 -1
  158. package/vanilla/UiContainer.js +35 -19
  159. package/vanilla/UiContextMenu.d.ts +1 -1
  160. package/vanilla/UiContextMenu.js +34 -23
  161. package/vanilla/UiCover.d.ts +1 -1
  162. package/vanilla/UiCover.js +35 -15
  163. package/vanilla/UiDescriptionItem.d.ts +1 -1
  164. package/vanilla/UiDescriptionItem.js +37 -24
  165. package/vanilla/UiDescriptionList.d.ts +1 -1
  166. package/vanilla/UiDescriptionList.js +35 -21
  167. package/vanilla/UiDialog.d.ts +1 -1
  168. package/vanilla/UiDialog.js +83 -42
  169. package/vanilla/UiDisclosure.d.ts +1 -1
  170. package/vanilla/UiDisclosure.js +113 -72
  171. package/vanilla/UiEditable.d.ts +1 -1
  172. package/vanilla/UiEditable.js +125 -58
  173. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  174. package/vanilla/UiEditorInsertTableGrid.js +85 -30
  175. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  176. package/vanilla/UiEditorMentionMenu.js +193 -75
  177. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  178. package/vanilla/UiEditorMentionMenuItem.js +81 -44
  179. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  180. package/vanilla/UiEditorSlashMenu.js +123 -78
  181. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  182. package/vanilla/UiEditorSlashMenuGroup.js +40 -34
  183. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  184. package/vanilla/UiEditorSlashMenuItem.js +98 -45
  185. package/vanilla/UiEditorSurface.d.ts +1 -1
  186. package/vanilla/UiEditorSurface.js +35 -15
  187. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  188. package/vanilla/UiEditorTableContextMenu.js +143 -60
  189. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  190. package/vanilla/UiEditorTableOverlay.js +212 -109
  191. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  192. package/vanilla/UiEditorTableToolbar.js +330 -113
  193. package/vanilla/UiEditorToolbar.d.ts +1 -1
  194. package/vanilla/UiEditorToolbar.js +37 -20
  195. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  196. package/vanilla/UiFloatingActionButton.js +44 -22
  197. package/vanilla/UiFormField.d.ts +1 -1
  198. package/vanilla/UiFormField.js +89 -65
  199. package/vanilla/UiGrid.d.ts +1 -1
  200. package/vanilla/UiGrid.js +39 -19
  201. package/vanilla/UiIcon.d.ts +1 -1
  202. package/vanilla/UiIcon.js +186 -27
  203. package/vanilla/UiIconButton.d.ts +1 -1
  204. package/vanilla/UiIconButton.js +82 -32
  205. package/vanilla/UiImage.d.ts +1 -1
  206. package/vanilla/UiImage.js +76 -69
  207. package/vanilla/UiInput.d.ts +1 -1
  208. package/vanilla/UiInput.js +51 -27
  209. package/vanilla/UiInputGroup.d.ts +1 -1
  210. package/vanilla/UiInputGroup.js +77 -56
  211. package/vanilla/UiList.d.ts +1 -1
  212. package/vanilla/UiList.js +91 -27
  213. package/vanilla/UiListItem.d.ts +1 -1
  214. package/vanilla/UiListItem.js +81 -74
  215. package/vanilla/UiListbox.d.ts +1 -1
  216. package/vanilla/UiListbox.js +204 -81
  217. package/vanilla/UiMenu.d.ts +1 -1
  218. package/vanilla/UiMenu.js +36 -20
  219. package/vanilla/UiMenuGroup.d.ts +1 -1
  220. package/vanilla/UiMenuGroup.js +60 -24
  221. package/vanilla/UiMenuItem.d.ts +1 -1
  222. package/vanilla/UiMenuItem.js +177 -77
  223. package/vanilla/UiMeter.d.ts +1 -1
  224. package/vanilla/UiMeter.js +77 -14
  225. package/vanilla/UiNavItem.d.ts +1 -1
  226. package/vanilla/UiNavItem.js +199 -123
  227. package/vanilla/UiPageHeader.d.ts +1 -1
  228. package/vanilla/UiPageHeader.js +91 -69
  229. package/vanilla/UiPopover.d.ts +1 -1
  230. package/vanilla/UiPopover.js +36 -20
  231. package/vanilla/UiRadio.d.ts +1 -1
  232. package/vanilla/UiRadio.js +82 -50
  233. package/vanilla/UiRadioGroup.d.ts +1 -1
  234. package/vanilla/UiRadioGroup.js +58 -30
  235. package/vanilla/UiReel.d.ts +1 -1
  236. package/vanilla/UiReel.js +35 -21
  237. package/vanilla/UiScrollArea.d.ts +1 -1
  238. package/vanilla/UiScrollArea.js +37 -20
  239. package/vanilla/UiSearchResultRow.d.ts +1 -1
  240. package/vanilla/UiSearchResultRow.js +98 -74
  241. package/vanilla/UiSearchShell.d.ts +1 -1
  242. package/vanilla/UiSearchShell.js +81 -64
  243. package/vanilla/UiSection.d.ts +1 -1
  244. package/vanilla/UiSection.js +71 -53
  245. package/vanilla/UiSelect.d.ts +1 -1
  246. package/vanilla/UiSelect.js +50 -26
  247. package/vanilla/UiSeparator.d.ts +1 -1
  248. package/vanilla/UiSeparator.js +23 -22
  249. package/vanilla/UiSidebar.d.ts +1 -1
  250. package/vanilla/UiSidebar.js +49 -37
  251. package/vanilla/UiSpinner.d.ts +1 -1
  252. package/vanilla/UiSpinner.js +43 -26
  253. package/vanilla/UiStack.d.ts +1 -1
  254. package/vanilla/UiStack.js +39 -19
  255. package/vanilla/UiStatusMessage.d.ts +1 -1
  256. package/vanilla/UiStatusMessage.js +70 -41
  257. package/vanilla/UiSwitch.d.ts +1 -1
  258. package/vanilla/UiSwitch.js +82 -51
  259. package/vanilla/UiSwitcher.d.ts +1 -1
  260. package/vanilla/UiSwitcher.js +36 -17
  261. package/vanilla/UiTable.d.ts +1 -1
  262. package/vanilla/UiTable.js +35 -17
  263. package/vanilla/UiTabs.d.ts +1 -1
  264. package/vanilla/UiTabs.js +97 -42
  265. package/vanilla/UiText.d.ts +1 -1
  266. package/vanilla/UiText.js +343 -117
  267. package/vanilla/UiTextarea.d.ts +1 -1
  268. package/vanilla/UiTextarea.js +56 -33
  269. package/vanilla/UiToast.d.ts +1 -1
  270. package/vanilla/UiToast.js +61 -40
  271. package/vanilla/UiToastRegion.d.ts +1 -1
  272. package/vanilla/UiToastRegion.js +85 -35
  273. package/vanilla/UiTooltip.d.ts +1 -1
  274. package/vanilla/UiTooltip.js +54 -31
  275. package/vanilla/UiTopBar.d.ts +1 -1
  276. package/vanilla/UiTopBar.js +70 -52
  277. package/vanilla/UiTree.d.ts +1 -1
  278. package/vanilla/UiTree.js +35 -17
  279. package/vanilla/UiTreeItem.d.ts +2 -1
  280. package/vanilla/UiTreeItem.js +219 -181
  281. package/vue/UiActionBar.vue +1 -1
  282. package/vue/UiAffordanceScope.vue +1 -1
  283. package/vue/UiAvatar.vue +7 -7
  284. package/vue/UiAvatarGroup.vue +3 -3
  285. package/vue/UiBadge.vue +1 -1
  286. package/vue/UiBreadcrumbItem.vue +1 -1
  287. package/vue/UiBreadcrumbs.vue +1 -1
  288. package/vue/UiButton.vue +1 -1
  289. package/vue/UiCallout.vue +1 -1
  290. package/vue/UiCard.vue +1 -1
  291. package/vue/UiCheckbox.vue +2 -2
  292. package/vue/UiCluster.vue +1 -1
  293. package/vue/UiCombobox.vue +25 -25
  294. package/vue/UiContainer.vue +1 -1
  295. package/vue/UiContextMenu.vue +1 -1
  296. package/vue/UiCover.vue +1 -1
  297. package/vue/UiDescriptionItem.vue +1 -1
  298. package/vue/UiDescriptionList.vue +1 -1
  299. package/vue/UiDialog.vue +2 -2
  300. package/vue/UiDisclosure.vue +6 -6
  301. package/vue/UiEditable.vue +3 -3
  302. package/vue/UiEditorInsertTableGrid.vue +4 -4
  303. package/vue/UiEditorMentionMenu.vue +2 -2
  304. package/vue/UiEditorMentionMenuItem.vue +1 -1
  305. package/vue/UiEditorSlashMenu.vue +2 -2
  306. package/vue/UiEditorSlashMenuGroup.vue +1 -1
  307. package/vue/UiEditorSlashMenuItem.vue +1 -1
  308. package/vue/UiEditorSurface.vue +1 -1
  309. package/vue/UiEditorTableContextMenu.vue +1 -1
  310. package/vue/UiEditorTableOverlay.vue +11 -11
  311. package/vue/UiEditorTableToolbar.vue +2 -2
  312. package/vue/UiEditorToolbar.vue +1 -1
  313. package/vue/UiFloatingActionButton.vue +1 -1
  314. package/vue/UiFormField.vue +1 -1
  315. package/vue/UiGrid.vue +1 -1
  316. package/vue/UiIcon.vue +1 -1
  317. package/vue/UiIconButton.vue +1 -1
  318. package/vue/UiImage.vue +1 -1
  319. package/vue/UiInput.vue +1 -1
  320. package/vue/UiInputGroup.vue +1 -1
  321. package/vue/UiList.vue +1 -1
  322. package/vue/UiListItem.vue +1 -1
  323. package/vue/UiListbox.vue +4 -4
  324. package/vue/UiMenu.vue +1 -1
  325. package/vue/UiMenuGroup.vue +1 -1
  326. package/vue/UiMenuItem.vue +2 -2
  327. package/vue/UiMeter.vue +1 -1
  328. package/vue/UiNavItem.vue +1 -1
  329. package/vue/UiPageHeader.vue +1 -1
  330. package/vue/UiPopover.vue +1 -1
  331. package/vue/UiRadio.vue +2 -2
  332. package/vue/UiRadioGroup.vue +1 -1
  333. package/vue/UiReel.vue +1 -1
  334. package/vue/UiScrollArea.vue +1 -1
  335. package/vue/UiSearchResultRow.vue +1 -1
  336. package/vue/UiSearchShell.vue +1 -1
  337. package/vue/UiSection.vue +1 -1
  338. package/vue/UiSelect.vue +1 -1
  339. package/vue/UiSeparator.vue +1 -1
  340. package/vue/UiSidebar.vue +3 -3
  341. package/vue/UiSpinner.vue +1 -1
  342. package/vue/UiStack.vue +1 -1
  343. package/vue/UiStatusMessage.vue +1 -1
  344. package/vue/UiSwitch.vue +2 -2
  345. package/vue/UiSwitcher.vue +1 -1
  346. package/vue/UiTable.vue +1 -1
  347. package/vue/UiTabs.vue +1 -1
  348. package/vue/UiText.vue +1 -1
  349. package/vue/UiTextarea.vue +1 -1
  350. package/vue/UiToast.vue +1 -1
  351. package/vue/UiToastRegion.vue +1 -1
  352. package/vue/UiTooltip.vue +2 -2
  353. package/vue/UiTopBar.vue +1 -1
  354. package/vue/UiTree.vue +1 -1
  355. package/vue/UiTreeItem.d.ts +9 -0
  356. package/vue/UiTreeItem.vue +41 -6
  357. package/vue/chunks/UiActionBar.js +1 -1
  358. package/vue/chunks/UiAffordanceScope.js +1 -1
  359. package/vue/chunks/UiAvatar.js +6 -6
  360. package/vue/chunks/UiAvatarGroup.js +3 -3
  361. package/vue/chunks/UiBadge.js +1 -1
  362. package/vue/chunks/UiBreadcrumbItem.js +1 -1
  363. package/vue/chunks/UiBreadcrumbs.js +1 -1
  364. package/vue/chunks/UiButton.js +1 -1
  365. package/vue/chunks/UiCallout.js +1 -1
  366. package/vue/chunks/UiCard.js +1 -1
  367. package/vue/chunks/UiCheckbox.js +2 -2
  368. package/vue/chunks/UiCluster.js +1 -1
  369. package/vue/chunks/UiCombobox.js +22 -22
  370. package/vue/chunks/UiContainer.js +1 -1
  371. package/vue/chunks/UiContextMenu.js +1 -1
  372. package/vue/chunks/UiCover.js +1 -1
  373. package/vue/chunks/UiDescriptionItem.js +1 -1
  374. package/vue/chunks/UiDescriptionList.js +1 -1
  375. package/vue/chunks/UiDialog.js +2 -2
  376. package/vue/chunks/UiDisclosure.js +6 -6
  377. package/vue/chunks/UiEditable.js +3 -3
  378. package/vue/chunks/UiEditorInsertTableGrid.js +4 -4
  379. package/vue/chunks/UiEditorMentionMenu.js +2 -2
  380. package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
  381. package/vue/chunks/UiEditorSlashMenu.js +2 -2
  382. package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
  383. package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
  384. package/vue/chunks/UiEditorSurface.js +1 -1
  385. package/vue/chunks/UiEditorTableContextMenu.js +1 -1
  386. package/vue/chunks/UiEditorTableOverlay.js +11 -11
  387. package/vue/chunks/UiEditorTableToolbar.js +2 -2
  388. package/vue/chunks/UiEditorToolbar.js +1 -1
  389. package/vue/chunks/UiFloatingActionButton.js +1 -1
  390. package/vue/chunks/UiFormField.js +1 -1
  391. package/vue/chunks/UiGrid.js +1 -1
  392. package/vue/chunks/UiIcon.js +1 -1
  393. package/vue/chunks/UiIconButton.js +1 -1
  394. package/vue/chunks/UiImage.js +1 -1
  395. package/vue/chunks/UiInput.js +1 -1
  396. package/vue/chunks/UiInputGroup.js +1 -1
  397. package/vue/chunks/UiList.js +1 -1
  398. package/vue/chunks/UiListItem.js +1 -1
  399. package/vue/chunks/UiListbox.js +4 -4
  400. package/vue/chunks/UiMenu.js +1 -1
  401. package/vue/chunks/UiMenuGroup.js +1 -1
  402. package/vue/chunks/UiMenuItem.js +2 -2
  403. package/vue/chunks/UiMeter.js +1 -1
  404. package/vue/chunks/UiNavItem.js +1 -1
  405. package/vue/chunks/UiPageHeader.js +1 -1
  406. package/vue/chunks/UiPopover.js +1 -1
  407. package/vue/chunks/UiRadio.js +2 -2
  408. package/vue/chunks/UiRadioGroup.js +1 -1
  409. package/vue/chunks/UiReel.js +1 -1
  410. package/vue/chunks/UiScrollArea.js +1 -1
  411. package/vue/chunks/UiSearchResultRow.js +1 -1
  412. package/vue/chunks/UiSearchShell.js +1 -1
  413. package/vue/chunks/UiSection.js +1 -1
  414. package/vue/chunks/UiSelect.js +1 -1
  415. package/vue/chunks/UiSeparator.js +1 -1
  416. package/vue/chunks/UiSidebar.js +2 -2
  417. package/vue/chunks/UiSpinner.js +1 -1
  418. package/vue/chunks/UiStack.js +1 -1
  419. package/vue/chunks/UiStatusMessage.js +1 -1
  420. package/vue/chunks/UiSwitch.js +2 -2
  421. package/vue/chunks/UiSwitcher.js +1 -1
  422. package/vue/chunks/UiTable.js +1 -1
  423. package/vue/chunks/UiTabs.js +1 -1
  424. package/vue/chunks/UiText.js +1 -1
  425. package/vue/chunks/UiTextarea.js +1 -1
  426. package/vue/chunks/UiToast.js +1 -1
  427. package/vue/chunks/UiToastRegion.js +1 -1
  428. package/vue/chunks/UiTooltip.js +2 -2
  429. package/vue/chunks/UiTopBar.js +1 -1
  430. package/vue/chunks/UiTree.js +1 -1
  431. package/vue/chunks/UiTreeItem.js +28 -5
  432. package/vue/chunks/control.js +41 -13
  433. package/vue/chunks/host.js +19 -18
  434. package/vue/components.css +1398 -1383
  435. package/vue/host.ts +22 -20
@@ -1,191 +1,479 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
2
- import { componentRootIndex, manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readIndex, textCall, toAttribute, truthy, writeAttribute, writeUrlAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, project, fillSlot, armElement, replaceRoot, checkBoolean, checkFormat, checkString } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-button/ui-button.js";
4
4
  import "../styles/ui-button.css";
5
5
 
6
- const definition = {...{"contract":{"tag":"ui-button","props":{"align":{"type":{"kind":"terminal","name":"keyword"},"values":["center","start"],"required":false,"target":{"attribute":"align"},"default":"center"},"as":{"type":{"kind":"terminal","name":"keyword"},"values":["button","a"],"required":false,"target":{"attribute":"as"},"default":"button"},"disabled":{"type":"boolean","required":false,"target":{"attribute":"disabled"},"default":false},"href":{"type":"string","required":false,"target":{"attribute":"href"}},"loading":{"type":"boolean","required":false,"target":{"attribute":"loading"},"default":false},"pending":{"type":"boolean","required":false,"target":{"attribute":"pending"},"default":false},"rel":{"type":"string","required":false,"target":{"attribute":"rel"}},"shape":{"type":{"kind":"terminal","name":"keyword"},"values":["rounded","pill"],"required":false,"target":{"attribute":"shape"},"default":"rounded"},"size":{"type":{"kind":"terminal","name":"keyword"},"values":["xs","sm","md","lg"],"required":false,"target":{"attribute":"size"},"default":"md"},"stretch":{"type":"boolean","required":false,"target":{"attribute":"stretch"},"default":false},"target":{"type":"string","required":false,"target":{"attribute":"target"}},"tone":{"type":{"kind":"terminal","name":"keyword"},"values":["accent","neutral","danger","success","warning","info"],"required":false,"target":{"attribute":"tone"},"default":"accent"},"type":{"type":{"kind":"terminal","name":"keyword"},"values":["button","submit","reset"],"required":false,"target":{"attribute":"type"},"default":"button"},"variant":{"type":{"kind":"terminal","name":"keyword"},"values":["outline","solid","danger","ghost","link","card"],"required":false,"target":{"attribute":"variant"},"default":"outline"}}},"template":{"kind":"element","name":"template","attributes":[],"children":[{"kind":"element","name":"a","attributes":[{"kind":"attribute","name":"href","expression":"{ true: null, false: href }[concat(disabled or loading or pending)]","expressionPlan":{"source":"{ true: null, false: href }[concat(disabled or loading or pending)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":null}},{"key":"false","value":{"kind":"id","name":"href"}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"binary","op":"or","left":{"kind":"binary","op":"or","left":{"kind":"id","name":"disabled"},"right":{"kind":"id","name":"loading"}},"right":{"kind":"id","name":"pending"}}]}},"dependencies":["disabled","href","loading","pending"]}},{"kind":"attribute","name":"target","expression":"target","expressionPlan":{"source":"target","ast":{"kind":"id","name":"target"},"dependencies":["target"]}},{"kind":"attribute","name":"rel","expression":"rel","expressionPlan":{"source":"rel","ast":{"kind":"id","name":"rel"},"dependencies":["rel"]}},{"kind":"attribute","name":"aria-disabled","expression":"{ true: 'true', false: null }[concat(disabled or loading or pending)]","expressionPlan":{"source":"{ true: 'true', false: null }[concat(disabled or loading or pending)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"true"}},{"key":"false","value":{"kind":"literal","value":null}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"binary","op":"or","left":{"kind":"binary","op":"or","left":{"kind":"id","name":"disabled"},"right":{"kind":"id","name":"loading"}},"right":{"kind":"id","name":"pending"}}]}},"dependencies":["disabled","loading","pending"]}},{"kind":"attribute","name":"aria-busy","expression":"loading or pending","expressionPlan":{"source":"loading or pending","ast":{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}},"dependencies":["loading","pending"]}},{"kind":"attribute","name":"tabindex","expression":"{ true: '0', false: null }[concat((loading or pending) and not disabled)]","expressionPlan":{"source":"{ true: '0', false: null }[concat((loading or pending) and not disabled)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"0"}},{"key":"false","value":{"kind":"literal","value":null}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"binary","op":"and","left":{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}},"right":{"kind":"unary","op":"not","operand":{"kind":"id","name":"disabled"}}}]}},"dependencies":["disabled","loading","pending"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"card-icon"}],"children":[{"kind":"element","name":"ui-spinner","attributes":[{"kind":"literal","name":"size","value":"sm"}],"children":[],"flow":{"kind":"if","test":"loading or pending","testPlan":{"source":"loading or pending","ast":{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}},"dependencies":["loading","pending"]}}},{"kind":"element","name":"template","attributes":[],"children":[{"kind":"slot","fallback":[],"name":"icon"}],"flow":{"kind":"if","test":"not (loading or pending)","testPlan":{"source":"not (loading or pending)","ast":{"kind":"unary","op":"not","operand":{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}}},"dependencies":["loading","pending"]}}}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"card-content"}],"children":[{"kind":"slot"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"card-action"}],"children":[{"kind":"slot","fallback":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"literal","name":"name","value":"chevron-right"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]}],"name":"action"}]}],"flow":{"kind":"when","test":"variant = 'card' and as = 'a'","testPlan":{"source":"variant = 'card' and as = 'a'","ast":{"kind":"binary","op":"and","left":{"kind":"binary","op":"=","left":{"kind":"id","name":"variant"},"right":{"kind":"literal","value":"card"}},"right":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"a"}}},"dependencies":["as","variant"]}}},{"kind":"element","name":"button","attributes":[{"kind":"attribute","name":"type","expression":"type","expressionPlan":{"source":"type","ast":{"kind":"id","name":"type"},"dependencies":["type"]}},{"kind":"attribute","name":"disabled","expression":"disabled","expressionPlan":{"source":"disabled","ast":{"kind":"id","name":"disabled"},"dependencies":["disabled"]}},{"kind":"attribute","name":"aria-disabled","expression":"{ true: 'true', false: null }[concat(loading or pending)]","expressionPlan":{"source":"{ true: 'true', false: null }[concat(loading or pending)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"true"}},{"key":"false","value":{"kind":"literal","value":null}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}}]}},"dependencies":["loading","pending"]}},{"kind":"attribute","name":"aria-busy","expression":"loading or pending","expressionPlan":{"source":"loading or pending","ast":{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}},"dependencies":["loading","pending"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"card-icon"}],"children":[{"kind":"element","name":"ui-spinner","attributes":[{"kind":"literal","name":"size","value":"sm"}],"children":[],"flow":{"kind":"if","test":"loading or pending","testPlan":{"source":"loading or pending","ast":{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}},"dependencies":["loading","pending"]}}},{"kind":"element","name":"template","attributes":[],"children":[{"kind":"slot","fallback":[],"name":"icon"}],"flow":{"kind":"if","test":"not (loading or pending)","testPlan":{"source":"not (loading or pending)","ast":{"kind":"unary","op":"not","operand":{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}}},"dependencies":["loading","pending"]}}}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"card-content"}],"children":[{"kind":"slot"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"card-action"}],"children":[{"kind":"slot","fallback":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"literal","name":"name","value":"chevron-right"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]}],"name":"action"}]}],"flow":{"kind":"when","test":"variant = 'card'","testPlan":{"source":"variant = 'card'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"variant"},"right":{"kind":"literal","value":"card"}},"dependencies":["variant"]}}},{"kind":"element","name":"a","attributes":[{"kind":"attribute","name":"href","expression":"{ true: null, false: href }[concat(disabled or loading or pending)]","expressionPlan":{"source":"{ true: null, false: href }[concat(disabled or loading or pending)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":null}},{"key":"false","value":{"kind":"id","name":"href"}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"binary","op":"or","left":{"kind":"binary","op":"or","left":{"kind":"id","name":"disabled"},"right":{"kind":"id","name":"loading"}},"right":{"kind":"id","name":"pending"}}]}},"dependencies":["disabled","href","loading","pending"]}},{"kind":"attribute","name":"target","expression":"target","expressionPlan":{"source":"target","ast":{"kind":"id","name":"target"},"dependencies":["target"]}},{"kind":"attribute","name":"rel","expression":"rel","expressionPlan":{"source":"rel","ast":{"kind":"id","name":"rel"},"dependencies":["rel"]}},{"kind":"attribute","name":"aria-disabled","expression":"{ true: 'true', false: null }[concat(disabled or loading or pending)]","expressionPlan":{"source":"{ true: 'true', false: null }[concat(disabled or loading or pending)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"true"}},{"key":"false","value":{"kind":"literal","value":null}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"binary","op":"or","left":{"kind":"binary","op":"or","left":{"kind":"id","name":"disabled"},"right":{"kind":"id","name":"loading"}},"right":{"kind":"id","name":"pending"}}]}},"dependencies":["disabled","loading","pending"]}},{"kind":"attribute","name":"aria-busy","expression":"loading or pending","expressionPlan":{"source":"loading or pending","ast":{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}},"dependencies":["loading","pending"]}},{"kind":"attribute","name":"tabindex","expression":"{ true: '0', false: null }[concat((loading or pending) and not disabled)]","expressionPlan":{"source":"{ true: '0', false: null }[concat((loading or pending) and not disabled)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"0"}},{"key":"false","value":{"kind":"literal","value":null}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"binary","op":"and","left":{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}},"right":{"kind":"unary","op":"not","operand":{"kind":"id","name":"disabled"}}}]}},"dependencies":["disabled","loading","pending"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"spinner-wrap"}],"children":[{"kind":"element","name":"ui-spinner","attributes":[{"kind":"literal","name":"size","value":"sm"}],"children":[]}],"flow":{"kind":"if","test":"loading or pending","testPlan":{"source":"loading or pending","ast":{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}},"dependencies":["loading","pending"]}}},{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'a'","testPlan":{"source":"as = 'a'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"a"}},"dependencies":["as"]}}},{"kind":"element","name":"button","attributes":[{"kind":"attribute","name":"type","expression":"type","expressionPlan":{"source":"type","ast":{"kind":"id","name":"type"},"dependencies":["type"]}},{"kind":"attribute","name":"disabled","expression":"disabled","expressionPlan":{"source":"disabled","ast":{"kind":"id","name":"disabled"},"dependencies":["disabled"]}},{"kind":"attribute","name":"aria-disabled","expression":"{ true: 'true', false: null }[concat(loading or pending)]","expressionPlan":{"source":"{ true: 'true', false: null }[concat(loading or pending)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"true"}},{"key":"false","value":{"kind":"literal","value":null}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}}]}},"dependencies":["loading","pending"]}},{"kind":"attribute","name":"aria-busy","expression":"loading or pending","expressionPlan":{"source":"loading or pending","ast":{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}},"dependencies":["loading","pending"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"spinner-wrap"}],"children":[{"kind":"element","name":"ui-spinner","attributes":[{"kind":"literal","name":"size","value":"sm"}],"children":[]}],"flow":{"kind":"if","test":"loading or pending","testPlan":{"source":"loading or pending","ast":{"kind":"binary","op":"or","left":{"kind":"id","name":"loading"},"right":{"kind":"id","name":"pending"}},"dependencies":["loading","pending"]}}},{"kind":"slot"}],"flow":{"kind":"else"}}],"flow":{"kind":"match"}},"declarations":[],"root":{"kind":"native","element":"button","choices":["a","button"]}},source:{file:import.meta.url},css:""};
6
+ const T0 = ["",[],["span",["class","card-icon"],1,1],["span",["class","card-content"],4],["span",["class","card-action"],4]];
7
+ const T1 = ["ui-spinner",["size","sm"]];
8
+ const T2 = ["",[],4];
9
+ const T3 = ["",[]];
10
+ const T4 = ["",[]];
11
+ const T5 = ["",[],["ui-icon",["name","chevron-right","aria-hidden","true"]]];
12
+ const T6 = ["",[],["span",["class","card-icon"],1,1],["span",["class","card-content"],4],["span",["class","card-action"],4]];
13
+ const T7 = ["ui-spinner",["size","sm"]];
14
+ const T8 = ["",[],4];
15
+ const T9 = ["",[]];
16
+ const T10 = ["",[]];
17
+ const T11 = ["",[],["ui-icon",["name","chevron-right","aria-hidden","true"]]];
18
+ const T12 = ["",[],1,4];
19
+ const T13 = ["span",["class","spinner-wrap"],["ui-spinner",["size","sm"]]];
20
+ const T14 = ["",[]];
21
+ const T15 = ["",[],1,4];
22
+ const T16 = ["span",["class","spinner-wrap"],["ui-spinner",["size","sm"]]];
23
+ const T17 = ["",[]];
24
+ let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17;
25
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-button" };
26
+ const A = [["a",{},[],"",[],["data-ui-button-state","data-align","data-as","data-disabled","data-href","data-loading","data-pending","data-rel","data-shape","data-size","data-stretch","data-target","data-tone","data-type","data-variant","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-align","data-as","data-disabled","data-href","data-loading","data-pending","data-rel","data-shape","data-size","data-stretch","data-target","data-tone","data-type","data-variant","type","disabled","aria-disabled","aria-busy"]],["a",{},[],"",[],["data-ui-button-state","data-align","data-as","data-disabled","data-href","data-loading","data-pending","data-rel","data-shape","data-size","data-stretch","data-target","data-tone","data-type","data-variant","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-align","data-as","data-disabled","data-href","data-loading","data-pending","data-rel","data-shape","data-size","data-stretch","data-target","data-tone","data-type","data-variant","type","disabled","aria-disabled","aria-busy"]]];
27
+ const Q = [[],[],[],[]];
28
+ const D = { props: { "align": { "required":false,"values":["center","start"],"default":"center", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "as": { "required":false,"values":["button","a"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "shape": { "required":false,"values":["rounded","pill"],"default":"rounded", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "stretch": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["accent","neutral","danger","success","warning","info"],"default":"accent", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "type": { "required":false,"values":["button","submit","reset"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "variant": { "required":false,"values":["outline","solid","danger","ghost","link","card"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] } } };
29
+ const C = (host) => controller.default(host);
7
30
 
8
- export function createUiButton(options = {}) {
31
+ export function createUiButton(options = {}, html) {
9
32
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
- const projected = [];
11
- const root = componentRootIndex(definition, componentProps);
33
+ const v = [null, null, null, null, null, null, null, null, null, null, null, null, null, null];
34
+ acceptProps(undefined, D, S.n, v, componentProps, [], html);
35
+ let a = (((v[13] === "card") && (v[1] === "a")) ? 0 : (v[13] === "card") ? 1 : (v[1] === "a") ? 2 : 3);
12
36
  let element;
13
- if (root === 0) {
37
+ if (a === 0) {
14
38
  element = document.createElement("a");
15
39
  for (const [name, value] of Object.entries(attributes)) {
16
40
  if (value === null || value === undefined || value === false) continue;
17
41
  element.setAttribute(name, value === true ? "" : String(value));
18
42
  }
19
- const value0 = componentProps["target"] === undefined ? null : componentProps["target"];
20
- if (value0 === null || value0 === undefined) element.removeAttribute("target");
21
- else element.setAttribute("target", String(value0));
22
- const value1 = componentProps["rel"] === undefined ? null : componentProps["rel"];
23
- if (value1 === null || value1 === undefined) element.removeAttribute("rel");
24
- else element.setAttribute("rel", String(value1));
25
43
  element.setAttribute("data-component", "ui-button");
26
- const element0 = document.createElement("span");
27
- element0.setAttribute("class", "card-icon");
28
- const element1 = document.createElement("ui-spinner");
29
- element1.setAttribute("size", "sm");
30
- element0.append(element1);
31
- const element2 = document.createElement("template");
32
- if (slots["icon"] ?? [].length > 0) {
33
- for (const child of slots["icon"] ?? []) {
34
- const node = typeof child === "string" ? document.createTextNode(child) : child;
35
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
36
- projected.push([node, "icon"]);
37
- element2.append(node);
38
- }
39
- } else {
40
- }
41
- element0.append(element2);
42
- element.append(element0);
43
- const element3 = document.createElement("span");
44
- element3.setAttribute("class", "card-content");
45
- if (children.length > 0) {
46
- for (const child of children) {
47
- const node = typeof child === "string" ? document.createTextNode(child) : child;
48
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
49
- projected.push([node, ""]);
50
- element3.append(node);
51
- }
52
- } else {
53
- }
54
- element.append(element3);
55
- const element4 = document.createElement("span");
56
- element4.setAttribute("class", "card-action");
57
- if (slots["action"] ?? [].length > 0) {
58
- for (const child of slots["action"] ?? []) {
59
- const node = typeof child === "string" ? document.createTextNode(child) : child;
60
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
61
- projected.push([node, "action"]);
62
- element4.append(node);
63
- }
64
- } else {
65
- const element5 = document.createElement("ui-icon");
66
- element5.setAttribute("name", "chevron-right");
67
- element5.setAttribute("aria-hidden", "true");
68
- element4.append(element5);
69
- }
70
- element.append(element4);
71
- } else if (root === 1) {
44
+ } else if (a === 1) {
72
45
  element = document.createElement("button");
73
46
  for (const [name, value] of Object.entries(attributes)) {
74
47
  if (value === null || value === undefined || value === false) continue;
75
48
  element.setAttribute(name, value === true ? "" : String(value));
76
49
  }
77
- const value2 = componentProps["type"] === undefined ? "button" : componentProps["type"];
78
- if (value2 === null || value2 === undefined) element.removeAttribute("type");
79
- else element.setAttribute("type", String(value2));
80
- const value3 = componentProps["disabled"] === undefined ? false : componentProps["disabled"];
81
- if (value3 === true) element.setAttribute("disabled", "");
82
- else element.removeAttribute("disabled");
83
50
  element.setAttribute("data-component", "ui-button");
84
- const element6 = document.createElement("span");
85
- element6.setAttribute("class", "card-icon");
86
- const element7 = document.createElement("ui-spinner");
87
- element7.setAttribute("size", "sm");
88
- element6.append(element7);
89
- const element8 = document.createElement("template");
90
- if (slots["icon"] ?? [].length > 0) {
91
- for (const child of slots["icon"] ?? []) {
92
- const node = typeof child === "string" ? document.createTextNode(child) : child;
93
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
94
- projected.push([node, "icon"]);
95
- element8.append(node);
96
- }
97
- } else {
98
- }
99
- element6.append(element8);
100
- element.append(element6);
101
- const element9 = document.createElement("span");
102
- element9.setAttribute("class", "card-content");
103
- if (children.length > 0) {
104
- for (const child of children) {
105
- const node = typeof child === "string" ? document.createTextNode(child) : child;
106
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
107
- projected.push([node, ""]);
108
- element9.append(node);
109
- }
110
- } else {
111
- }
112
- element.append(element9);
113
- const element10 = document.createElement("span");
114
- element10.setAttribute("class", "card-action");
115
- if (slots["action"] ?? [].length > 0) {
116
- for (const child of slots["action"] ?? []) {
117
- const node = typeof child === "string" ? document.createTextNode(child) : child;
118
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
119
- projected.push([node, "action"]);
120
- element10.append(node);
121
- }
122
- } else {
123
- const element11 = document.createElement("ui-icon");
124
- element11.setAttribute("name", "chevron-right");
125
- element11.setAttribute("aria-hidden", "true");
126
- element10.append(element11);
127
- }
128
- element.append(element10);
129
- } else if (root === 2) {
51
+ } else if (a === 2) {
130
52
  element = document.createElement("a");
131
53
  for (const [name, value] of Object.entries(attributes)) {
132
54
  if (value === null || value === undefined || value === false) continue;
133
55
  element.setAttribute(name, value === true ? "" : String(value));
134
56
  }
135
- const value4 = componentProps["target"] === undefined ? null : componentProps["target"];
136
- if (value4 === null || value4 === undefined) element.removeAttribute("target");
137
- else element.setAttribute("target", String(value4));
138
- const value5 = componentProps["rel"] === undefined ? null : componentProps["rel"];
139
- if (value5 === null || value5 === undefined) element.removeAttribute("rel");
140
- else element.setAttribute("rel", String(value5));
141
57
  element.setAttribute("data-component", "ui-button");
142
- const element12 = document.createElement("span");
143
- element12.setAttribute("class", "spinner-wrap");
144
- const element13 = document.createElement("ui-spinner");
145
- element13.setAttribute("size", "sm");
146
- element12.append(element13);
147
- element.append(element12);
148
- if (children.length > 0) {
149
- for (const child of children) {
150
- const node = typeof child === "string" ? document.createTextNode(child) : child;
151
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
152
- projected.push([node, ""]);
153
- element.append(node);
154
- }
155
- } else {
156
- }
157
58
  } else {
158
59
  element = document.createElement("button");
159
60
  for (const [name, value] of Object.entries(attributes)) {
160
61
  if (value === null || value === undefined || value === false) continue;
161
62
  element.setAttribute(name, value === true ? "" : String(value));
162
63
  }
163
- const value6 = componentProps["type"] === undefined ? "button" : componentProps["type"];
164
- if (value6 === null || value6 === undefined) element.removeAttribute("type");
165
- else element.setAttribute("type", String(value6));
166
- const value7 = componentProps["disabled"] === undefined ? false : componentProps["disabled"];
167
- if (value7 === true) element.setAttribute("disabled", "");
168
- else element.removeAttribute("disabled");
169
64
  element.setAttribute("data-component", "ui-button");
170
- const element14 = document.createElement("span");
171
- element14.setAttribute("class", "spinner-wrap");
172
- const element15 = document.createElement("ui-spinner");
173
- element15.setAttribute("size", "sm");
174
- element14.append(element15);
175
- element.append(element14);
176
- if (children.length > 0) {
177
- for (const child of children) {
178
- const node = typeof child === "string" ? document.createTextNode(child) : child;
179
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
180
- projected.push([node, ""]);
181
- element.append(node);
65
+ }
66
+ const B = acceptProps(element, D, S.n, v, componentProps, Q[a], html);
67
+ const m1 = (d) => {
68
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
69
+ const r = { n };
70
+ p1(r, -1, d);
71
+ return r;
72
+ };
73
+ const p1 = (r, c, d) => {
74
+ };
75
+ const m2 = (d) => {
76
+ const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
77
+ const t0 = n.firstChild;
78
+ const r = { n, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
79
+ p2(r, -1, d);
80
+ return r;
81
+ };
82
+ const p2 = (r, c, d) => {
83
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "icon", J, false, undefined, d);
84
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m3(d); at.before(r.b0.n); } }
85
+ else if (r.b0 !== undefined) p3(r.b0, c, d);
86
+ };
87
+ const m3 = (d) => {
88
+ const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
89
+ const r = { n };
90
+ p3(r, -1, d);
91
+ return r;
92
+ };
93
+ const p3 = (r, c, d) => {
94
+ };
95
+ const m4 = (d) => {
96
+ const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
97
+ const r = { n };
98
+ p4(r, -1, d);
99
+ return r;
100
+ };
101
+ const p4 = (r, c, d) => {
102
+ };
103
+ const m5 = (d) => {
104
+ const n = (P5 ??= buildTemplate(T5)).cloneNode(true);
105
+ const r = { n };
106
+ p5(r, -1, d);
107
+ return r;
108
+ };
109
+ const p5 = (r, c, d) => {
110
+ };
111
+ const m7 = (d) => {
112
+ const n = (P7 ??= buildTemplate(T7)).cloneNode(true);
113
+ const r = { n };
114
+ p7(r, -1, d);
115
+ return r;
116
+ };
117
+ const p7 = (r, c, d) => {
118
+ };
119
+ const m8 = (d) => {
120
+ const n = (P8 ??= buildTemplate(T8)).cloneNode(true);
121
+ const t0 = n.firstChild;
122
+ const r = { n, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
123
+ p8(r, -1, d);
124
+ return r;
125
+ };
126
+ const p8 = (r, c, d) => {
127
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "icon", J, false, undefined, d);
128
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m9(d); at.before(r.b0.n); } }
129
+ else if (r.b0 !== undefined) p9(r.b0, c, d);
130
+ };
131
+ const m9 = (d) => {
132
+ const n = (P9 ??= buildTemplate(T9)).cloneNode(true);
133
+ const r = { n };
134
+ p9(r, -1, d);
135
+ return r;
136
+ };
137
+ const p9 = (r, c, d) => {
138
+ };
139
+ const m10 = (d) => {
140
+ const n = (P10 ??= buildTemplate(T10)).cloneNode(true);
141
+ const r = { n };
142
+ p10(r, -1, d);
143
+ return r;
144
+ };
145
+ const p10 = (r, c, d) => {
146
+ };
147
+ const m11 = (d) => {
148
+ const n = (P11 ??= buildTemplate(T11)).cloneNode(true);
149
+ const r = { n };
150
+ p11(r, -1, d);
151
+ return r;
152
+ };
153
+ const p11 = (r, c, d) => {
154
+ };
155
+ const m13 = (d) => {
156
+ const n = (P13 ??= buildTemplate(T13)).cloneNode(true);
157
+ const r = { n };
158
+ p13(r, -1, d);
159
+ return r;
160
+ };
161
+ const p13 = (r, c, d) => {
162
+ };
163
+ const m14 = (d) => {
164
+ const n = (P14 ??= buildTemplate(T14)).cloneNode(true);
165
+ const r = { n };
166
+ p14(r, -1, d);
167
+ return r;
168
+ };
169
+ const p14 = (r, c, d) => {
170
+ };
171
+ const m16 = (d) => {
172
+ const n = (P16 ??= buildTemplate(T16)).cloneNode(true);
173
+ const r = { n };
174
+ p16(r, -1, d);
175
+ return r;
176
+ };
177
+ const p16 = (r, c, d) => {
178
+ };
179
+ const m17 = (d) => {
180
+ const n = (P17 ??= buildTemplate(T17)).cloneNode(true);
181
+ const r = { n };
182
+ p17(r, -1, d);
183
+ return r;
184
+ };
185
+ const p17 = (r, c, d) => {
186
+ };
187
+ const m0 = (n, d) => {
188
+ n.append((P0 ??= buildTemplate(T0)).cloneNode(true));
189
+ const t0 = n.firstChild;
190
+ const t1 = t0.firstChild;
191
+ const t2 = t1.nextSibling.nextSibling;
192
+ const t3 = t0.nextSibling;
193
+ const t4 = t3.firstChild;
194
+ const t5 = t3.nextSibling.firstChild;
195
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
196
+ r.z = [() => dispose(r.b1)];
197
+ p0(r, -1, d);
198
+ return r;
199
+ };
200
+ const p0 = (r, c, d) => {
201
+ if (c & 1073741884) {
202
+ const x0 = readIndex({ "true": null, "false": v[3] }, textCall("concat", [((truthy(v[2]) || truthy(v[4])) || truthy(v[5]))]));
203
+ if (x0 !== NONCONFORMING) {
204
+ const s0 = toAttribute(x0, "href");
205
+ if (s0 !== r.v0) writeUrlAttribute(r.n, "href", r.v0 = s0);
182
206
  }
183
- } else {
184
207
  }
185
- }
186
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
187
- controller,
188
- });
208
+ if (c & 1024) {
209
+ const x1 = v[10];
210
+ const s1 = toAttribute(x1, "target");
211
+ if (s1 !== r.v1) writeAttribute(r.n, "target", r.v1 = s1);
212
+ }
213
+ if (c & 64) {
214
+ const x2 = v[6];
215
+ const s2 = toAttribute(x2, "rel");
216
+ if (s2 !== r.v2) writeAttribute(r.n, "rel", r.v2 = s2);
217
+ }
218
+ if (c & 1073741876) {
219
+ const x3 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[2]) || truthy(v[4])) || truthy(v[5]))]));
220
+ if (x3 !== NONCONFORMING) {
221
+ const s3 = toAttribute(x3, "aria-disabled");
222
+ if (s3 !== r.v3) writeAttribute(r.n, "aria-disabled", r.v3 = s3);
223
+ }
224
+ }
225
+ if (c & 48) {
226
+ const x4 = (truthy(v[4]) || truthy(v[5]));
227
+ const s4 = toAttribute(x4, "aria-busy");
228
+ if (s4 !== r.v4) writeAttribute(r.n, "aria-busy", r.v4 = s4);
229
+ }
230
+ if (c & 1073741876) {
231
+ const x5 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[4]) || truthy(v[5])) && !truthy(v[2]))]));
232
+ if (x5 !== NONCONFORMING) {
233
+ const s5 = toAttribute(x5, "tabindex");
234
+ if (s5 !== r.v5) writeAttribute(r.n, "tabindex", r.v5 = s5);
235
+ }
236
+ }
237
+ if (c & 11185) {
238
+ const x6 = hostState(["align","stretch","size","shape","variant","tone","loading","pending"], [v[0], v[9], v[8], v[7], v[13], v[11], v[4], v[5]]);
239
+ const s6 = x6;
240
+ if (s6 !== r.v6) writeAttribute(r.n, "data-ui-button-state", (r.v6 = s6) === "" ? null : s6);
241
+ }
242
+ if (c & 48) {
243
+ const t0 = (truthy(v[4]) || truthy(v[5]));
244
+ if (true) {
245
+ {
246
+ r.b0 = undefined;
247
+ clearRegion(r.a1, r.e0);
248
+ if (t0) { r.b0 = m1(d); r.e0.before(r.b0.n); }
249
+ }
250
+ } else if (r.b0 !== undefined) p1(r.b0, c, d);
251
+ } else if (r.b0 !== undefined) p1(r.b0, c, d);
252
+ if (c & 48) {
253
+ const t1 = !(truthy(v[4]) || truthy(v[5]));
254
+ if (true) {
255
+ {
256
+ dispose(r.b1);
257
+ r.b1 = undefined;
258
+ clearRegion(r.a2, r.e1);
259
+ if (t1) { r.b1 = m2(d); r.e1.before(r.b1.n); }
260
+ }
261
+ } else if (r.b1 !== undefined) p2(r.b1, c, d);
262
+ } else if (r.b1 !== undefined) p2(r.b1, c, d);
263
+ if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a3, r.e2, "", J, false, undefined, d);
264
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m4(d); at.before(r.b2.n); } }
265
+ else if (r.b2 !== undefined) p4(r.b2, c, d);
266
+ if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a4, r.e3, "action", J, true, undefined, d);
267
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m5(d); at.before(r.b3.n); } }
268
+ else if (r.b3 !== undefined) p5(r.b3, c, d);
269
+ };
270
+ const m6 = (n, d) => {
271
+ n.append((P6 ??= buildTemplate(T6)).cloneNode(true));
272
+ const t0 = n.firstChild;
273
+ const t1 = t0.firstChild;
274
+ const t2 = t1.nextSibling.nextSibling;
275
+ const t3 = t0.nextSibling;
276
+ const t4 = t3.firstChild;
277
+ const t5 = t3.nextSibling.firstChild;
278
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
279
+ r.z = [() => dispose(r.b1)];
280
+ p6(r, -1, d);
281
+ return r;
282
+ };
283
+ const p6 = (r, c, d) => {
284
+ if (c & 1073745920) {
285
+ const x0 = v[12];
286
+ const s0 = toAttribute(x0, "type");
287
+ if (s0 !== r.v0) writeAttribute(r.n, "type", r.v0 = s0);
288
+ }
289
+ if (c & 4) {
290
+ const x1 = v[2];
291
+ const s1 = toAttribute(x1, "disabled");
292
+ if (s1 !== r.v1) writeAttribute(r.n, "disabled", r.v1 = s1);
293
+ }
294
+ if (c & 1073741872) {
295
+ const x2 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[4]) || truthy(v[5]))]));
296
+ if (x2 !== NONCONFORMING) {
297
+ const s2 = toAttribute(x2, "aria-disabled");
298
+ if (s2 !== r.v2) writeAttribute(r.n, "aria-disabled", r.v2 = s2);
299
+ }
300
+ }
301
+ if (c & 48) {
302
+ const x3 = (truthy(v[4]) || truthy(v[5]));
303
+ const s3 = toAttribute(x3, "aria-busy");
304
+ if (s3 !== r.v3) writeAttribute(r.n, "aria-busy", r.v3 = s3);
305
+ }
306
+ if (c & 11185) {
307
+ const x4 = hostState(["align","stretch","size","shape","variant","tone","loading","pending"], [v[0], v[9], v[8], v[7], v[13], v[11], v[4], v[5]]);
308
+ const s4 = x4;
309
+ if (s4 !== r.v4) writeAttribute(r.n, "data-ui-button-state", (r.v4 = s4) === "" ? null : s4);
310
+ }
311
+ if (c & 48) {
312
+ const t0 = (truthy(v[4]) || truthy(v[5]));
313
+ if (true) {
314
+ {
315
+ r.b0 = undefined;
316
+ clearRegion(r.a1, r.e0);
317
+ if (t0) { r.b0 = m7(d); r.e0.before(r.b0.n); }
318
+ }
319
+ } else if (r.b0 !== undefined) p7(r.b0, c, d);
320
+ } else if (r.b0 !== undefined) p7(r.b0, c, d);
321
+ if (c & 48) {
322
+ const t1 = !(truthy(v[4]) || truthy(v[5]));
323
+ if (true) {
324
+ {
325
+ dispose(r.b1);
326
+ r.b1 = undefined;
327
+ clearRegion(r.a2, r.e1);
328
+ if (t1) { r.b1 = m8(d); r.e1.before(r.b1.n); }
329
+ }
330
+ } else if (r.b1 !== undefined) p8(r.b1, c, d);
331
+ } else if (r.b1 !== undefined) p8(r.b1, c, d);
332
+ if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a3, r.e2, "", J, false, undefined, d);
333
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m10(d); at.before(r.b2.n); } }
334
+ else if (r.b2 !== undefined) p10(r.b2, c, d);
335
+ if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a4, r.e3, "action", J, true, undefined, d);
336
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m11(d); at.before(r.b3.n); } }
337
+ else if (r.b3 !== undefined) p11(r.b3, c, d);
338
+ };
339
+ const m12 = (n, d) => {
340
+ n.append((P12 ??= buildTemplate(T12)).cloneNode(true));
341
+ const t0 = n.firstChild;
342
+ const t1 = t0.nextSibling.nextSibling;
343
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, f1: undefined };
344
+ p12(r, -1, d);
345
+ return r;
346
+ };
347
+ const p12 = (r, c, d) => {
348
+ if (c & 1073741884) {
349
+ const x0 = readIndex({ "true": null, "false": v[3] }, textCall("concat", [((truthy(v[2]) || truthy(v[4])) || truthy(v[5]))]));
350
+ if (x0 !== NONCONFORMING) {
351
+ const s0 = toAttribute(x0, "href");
352
+ if (s0 !== r.v0) writeUrlAttribute(r.n, "href", r.v0 = s0);
353
+ }
354
+ }
355
+ if (c & 1024) {
356
+ const x1 = v[10];
357
+ const s1 = toAttribute(x1, "target");
358
+ if (s1 !== r.v1) writeAttribute(r.n, "target", r.v1 = s1);
359
+ }
360
+ if (c & 64) {
361
+ const x2 = v[6];
362
+ const s2 = toAttribute(x2, "rel");
363
+ if (s2 !== r.v2) writeAttribute(r.n, "rel", r.v2 = s2);
364
+ }
365
+ if (c & 1073741876) {
366
+ const x3 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[2]) || truthy(v[4])) || truthy(v[5]))]));
367
+ if (x3 !== NONCONFORMING) {
368
+ const s3 = toAttribute(x3, "aria-disabled");
369
+ if (s3 !== r.v3) writeAttribute(r.n, "aria-disabled", r.v3 = s3);
370
+ }
371
+ }
372
+ if (c & 48) {
373
+ const x4 = (truthy(v[4]) || truthy(v[5]));
374
+ const s4 = toAttribute(x4, "aria-busy");
375
+ if (s4 !== r.v4) writeAttribute(r.n, "aria-busy", r.v4 = s4);
376
+ }
377
+ if (c & 1073741876) {
378
+ const x5 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[4]) || truthy(v[5])) && !truthy(v[2]))]));
379
+ if (x5 !== NONCONFORMING) {
380
+ const s5 = toAttribute(x5, "tabindex");
381
+ if (s5 !== r.v5) writeAttribute(r.n, "tabindex", r.v5 = s5);
382
+ }
383
+ }
384
+ if (c & 11185) {
385
+ const x6 = hostState(["align","stretch","size","shape","variant","tone","loading","pending"], [v[0], v[9], v[8], v[7], v[13], v[11], v[4], v[5]]);
386
+ const s6 = x6;
387
+ if (s6 !== r.v6) writeAttribute(r.n, "data-ui-button-state", (r.v6 = s6) === "" ? null : s6);
388
+ }
389
+ if (c & 48) {
390
+ const t0 = (truthy(v[4]) || truthy(v[5]));
391
+ if (true) {
392
+ {
393
+ r.b0 = undefined;
394
+ clearRegion(r.a1, r.e0);
395
+ if (t0) { r.b0 = m13(d); r.e0.before(r.b0.n); }
396
+ }
397
+ } else if (r.b0 !== undefined) p13(r.b0, c, d);
398
+ } else if (r.b0 !== undefined) p13(r.b0, c, d);
399
+ if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "", J, false, undefined, d);
400
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m14(d); at.before(r.b1.n); } }
401
+ else if (r.b1 !== undefined) p14(r.b1, c, d);
402
+ };
403
+ const m15 = (n, d) => {
404
+ n.append((P15 ??= buildTemplate(T15)).cloneNode(true));
405
+ const t0 = n.firstChild;
406
+ const t1 = t0.nextSibling.nextSibling;
407
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, f1: undefined };
408
+ p15(r, -1, d);
409
+ return r;
410
+ };
411
+ const p15 = (r, c, d) => {
412
+ if (c & 1073745920) {
413
+ const x0 = v[12];
414
+ const s0 = toAttribute(x0, "type");
415
+ if (s0 !== r.v0) writeAttribute(r.n, "type", r.v0 = s0);
416
+ }
417
+ if (c & 4) {
418
+ const x1 = v[2];
419
+ const s1 = toAttribute(x1, "disabled");
420
+ if (s1 !== r.v1) writeAttribute(r.n, "disabled", r.v1 = s1);
421
+ }
422
+ if (c & 1073741872) {
423
+ const x2 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[4]) || truthy(v[5]))]));
424
+ if (x2 !== NONCONFORMING) {
425
+ const s2 = toAttribute(x2, "aria-disabled");
426
+ if (s2 !== r.v2) writeAttribute(r.n, "aria-disabled", r.v2 = s2);
427
+ }
428
+ }
429
+ if (c & 48) {
430
+ const x3 = (truthy(v[4]) || truthy(v[5]));
431
+ const s3 = toAttribute(x3, "aria-busy");
432
+ if (s3 !== r.v3) writeAttribute(r.n, "aria-busy", r.v3 = s3);
433
+ }
434
+ if (c & 11185) {
435
+ const x4 = hostState(["align","stretch","size","shape","variant","tone","loading","pending"], [v[0], v[9], v[8], v[7], v[13], v[11], v[4], v[5]]);
436
+ const s4 = x4;
437
+ if (s4 !== r.v4) writeAttribute(r.n, "data-ui-button-state", (r.v4 = s4) === "" ? null : s4);
438
+ }
439
+ if (c & 48) {
440
+ const t0 = (truthy(v[4]) || truthy(v[5]));
441
+ if (true) {
442
+ {
443
+ r.b0 = undefined;
444
+ clearRegion(r.a1, r.e0);
445
+ if (t0) { r.b0 = m16(d); r.e0.before(r.b0.n); }
446
+ }
447
+ } else if (r.b0 !== undefined) p16(r.b0, c, d);
448
+ } else if (r.b0 !== undefined) p16(r.b0, c, d);
449
+ if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "", J, false, undefined, d);
450
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m17(d); at.before(r.b1.n); } }
451
+ else if (r.b1 !== undefined) p17(r.b1, c, d);
452
+ };
453
+ const M = [m0, m6, m12, m15], N = [p0, p6, p12, p15];
454
+ let R;
455
+ const p = (c, d) => {
456
+ if (R === null) return;
457
+ if (R === undefined) { R = M[a](element, d); return; }
458
+ if (c & 8194) {
459
+ const t = (((v[13] === "card") && (v[1] === "a")) ? 0 : (v[13] === "card") ? 1 : (v[1] === "a") ? 2 : 3);
460
+ if (t !== a) {
461
+ dispose(R);
462
+ for (const key in I.r) delete I.r[key];
463
+ const previous = I.e, next = armElement(previous, A[a], A[t]);
464
+ I.B.b = Q[t];
465
+ a = t;
466
+ R = null;
467
+ R = M[t](next, d);
468
+ replaceRoot(I, previous, next);
469
+ return;
470
+ }
471
+ }
472
+ N[a](R, c, d);
473
+ };
474
+ const I = { B };
475
+ const J = project(I, children, slots);
476
+ attachGeneratedController(element, S, v, p, C, undefined, I);
477
+ manageProps(I);
189
478
  return element;
190
479
  }
191
-