@threadlabs/looma 0.52.12 → 0.53.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (342) hide show
  1. package/components/shared/overlay.js +7 -0
  2. package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
  3. package/components/ui-meter/ui-meter.html +1 -1
  4. package/dist/index.js +1 -1
  5. package/docs/catalog.json +1 -1
  6. package/editor/chunks/extensions.js +2 -2
  7. package/editor/components.css +19 -19
  8. package/editor/index.js +1125 -853
  9. package/package.json +3 -3
  10. package/styles/ui-action-bar.css +1 -1
  11. package/styles/ui-affordance-scope.css +1 -1
  12. package/styles/ui-avatar-group.css +1 -1
  13. package/styles/ui-avatar.css +1 -1
  14. package/styles/ui-badge.css +1 -1
  15. package/styles/ui-breadcrumb-item.css +1 -1
  16. package/styles/ui-breadcrumbs.css +1 -1
  17. package/styles/ui-button.css +1 -1
  18. package/styles/ui-calendar.css +1 -1
  19. package/styles/ui-callout.css +1 -1
  20. package/styles/ui-card-group.css +1 -1
  21. package/styles/ui-card.css +1 -1
  22. package/styles/ui-checkbox.css +1 -1
  23. package/styles/ui-cluster.css +1 -1
  24. package/styles/ui-color-picker.css +1 -1
  25. package/styles/ui-column.css +1 -1
  26. package/styles/ui-combobox.css +1 -1
  27. package/styles/ui-compact-content.css +1 -1
  28. package/styles/ui-compact-editor.css +1 -1
  29. package/styles/ui-compact-mark.css +1 -1
  30. package/styles/ui-compact-node.css +1 -1
  31. package/styles/ui-container.css +1 -1
  32. package/styles/ui-context-menu.css +1 -1
  33. package/styles/ui-cover.css +1 -1
  34. package/styles/ui-curve-editor.css +1 -1
  35. package/styles/ui-cycle-button.css +1 -1
  36. package/styles/ui-data-table.css +1 -1
  37. package/styles/ui-date-field.css +1 -1
  38. package/styles/ui-date-picker.css +1 -1
  39. package/styles/ui-date-range-picker.css +1 -1
  40. package/styles/ui-description-item.css +1 -1
  41. package/styles/ui-description-list.css +1 -1
  42. package/styles/ui-dialog.css +1 -1
  43. package/styles/ui-disclosure.css +1 -1
  44. package/styles/ui-editable.css +1 -1
  45. package/styles/ui-editor-block-actions.css +1 -1
  46. package/styles/ui-editor-chip-editor.css +1 -1
  47. package/styles/ui-editor-code-language.css +1 -1
  48. package/styles/ui-editor-footnote-editor.css +1 -1
  49. package/styles/ui-editor-formatting-tools.css +1 -1
  50. package/styles/ui-editor-image-toolbar.css +1 -1
  51. package/styles/ui-editor-insert-table-grid.css +1 -1
  52. package/styles/ui-editor-link-card.css +1 -1
  53. package/styles/ui-editor-link-form.css +1 -1
  54. package/styles/ui-editor-mention-menu-item.css +1 -1
  55. package/styles/ui-editor-mention-menu.css +1 -1
  56. package/styles/ui-editor-slash-menu-group.css +1 -1
  57. package/styles/ui-editor-slash-menu-item.css +1 -1
  58. package/styles/ui-editor-slash-menu.css +1 -1
  59. package/styles/ui-editor-surface.css +1 -1
  60. package/styles/ui-editor-table-context-menu.css +1 -1
  61. package/styles/ui-editor-table-overlay.css +1 -1
  62. package/styles/ui-editor-table-toolbar.css +1 -1
  63. package/styles/ui-editor-toolbar.css +1 -1
  64. package/styles/ui-editor.css +1 -1
  65. package/styles/ui-file-input.css +1 -1
  66. package/styles/ui-floating-action-button.css +1 -1
  67. package/styles/ui-form-field.css +1 -1
  68. package/styles/ui-grid.css +1 -1
  69. package/styles/ui-icon-button.css +1 -1
  70. package/styles/ui-icon.css +1 -1
  71. package/styles/ui-image.css +1 -1
  72. package/styles/ui-input-group.css +1 -1
  73. package/styles/ui-input.css +1 -1
  74. package/styles/ui-light-editor.css +1 -1
  75. package/styles/ui-list-item.css +1 -1
  76. package/styles/ui-list.css +1 -1
  77. package/styles/ui-listbox.css +1 -1
  78. package/styles/ui-menu-group.css +1 -1
  79. package/styles/ui-menu-item.css +1 -1
  80. package/styles/ui-menu.css +1 -1
  81. package/styles/ui-meter.css +1 -1
  82. package/styles/ui-nav-item.css +1 -1
  83. package/styles/ui-notice-stripe.css +1 -1
  84. package/styles/ui-number-input.css +1 -1
  85. package/styles/ui-page-header.css +1 -1
  86. package/styles/ui-pagination.css +1 -1
  87. package/styles/ui-popover.css +1 -1
  88. package/styles/ui-radio-group.css +1 -1
  89. package/styles/ui-radio.css +1 -1
  90. package/styles/ui-reel.css +1 -1
  91. package/styles/ui-scroll-area.css +1 -1
  92. package/styles/ui-search-result-row.css +1 -1
  93. package/styles/ui-search-shell.css +1 -1
  94. package/styles/ui-section.css +1 -1
  95. package/styles/ui-segmented-control.css +1 -1
  96. package/styles/ui-select.css +1 -1
  97. package/styles/ui-separator.css +1 -1
  98. package/styles/ui-sidebar.css +1 -1
  99. package/styles/ui-site-header.css +1 -1
  100. package/styles/ui-skeleton.css +1 -1
  101. package/styles/ui-slider.css +1 -1
  102. package/styles/ui-spinner.css +1 -1
  103. package/styles/ui-stack.css +1 -1
  104. package/styles/ui-status-message.css +1 -1
  105. package/styles/ui-swatch.css +1 -1
  106. package/styles/ui-switch.css +1 -1
  107. package/styles/ui-switcher.css +1 -1
  108. package/styles/ui-table.css +1 -1
  109. package/styles/ui-tabs.css +1 -1
  110. package/styles/ui-text.css +1 -1
  111. package/styles/ui-textarea.css +1 -1
  112. package/styles/ui-time-field.css +1 -1
  113. package/styles/ui-time-picker.css +1 -1
  114. package/styles/ui-toast-region.css +1 -1
  115. package/styles/ui-toast.css +1 -1
  116. package/styles/ui-tooltip.css +1 -1
  117. package/styles/ui-top-bar.css +1 -1
  118. package/styles/ui-tree-item.css +1 -1
  119. package/styles/ui-tree.css +1 -1
  120. package/styles/ui-wizard.css +1 -1
  121. package/vanilla/UiActionBar.d.ts +1 -1
  122. package/vanilla/UiActionBar.js +14 -12
  123. package/vanilla/UiAffordanceScope.d.ts +1 -1
  124. package/vanilla/UiAffordanceScope.js +13 -11
  125. package/vanilla/UiAvatar.d.ts +1 -1
  126. package/vanilla/UiAvatar.js +27 -25
  127. package/vanilla/UiAvatarGroup.d.ts +1 -1
  128. package/vanilla/UiAvatarGroup.js +26 -23
  129. package/vanilla/UiBadge.d.ts +1 -1
  130. package/vanilla/UiBadge.js +14 -12
  131. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  132. package/vanilla/UiBreadcrumbItem.js +14 -13
  133. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  134. package/vanilla/UiBreadcrumbs.js +10 -10
  135. package/vanilla/UiButton.d.ts +1 -1
  136. package/vanilla/UiButton.js +187 -244
  137. package/vanilla/UiCalendar.d.ts +1 -1
  138. package/vanilla/UiCalendar.js +272 -193
  139. package/vanilla/UiCallout.d.ts +1 -1
  140. package/vanilla/UiCallout.js +32 -27
  141. package/vanilla/UiCard.d.ts +1 -1
  142. package/vanilla/UiCard.js +72 -69
  143. package/vanilla/UiCardGroup.d.ts +1 -1
  144. package/vanilla/UiCardGroup.js +17 -15
  145. package/vanilla/UiCheckbox.d.ts +1 -1
  146. package/vanilla/UiCheckbox.js +32 -30
  147. package/vanilla/UiCluster.d.ts +1 -1
  148. package/vanilla/UiCluster.js +20 -18
  149. package/vanilla/UiColorPicker.d.ts +1 -1
  150. package/vanilla/UiColorPicker.js +22 -20
  151. package/vanilla/UiColumn.d.ts +2 -2
  152. package/vanilla/UiColumn.js +18 -15
  153. package/vanilla/UiCombobox.d.ts +3 -3
  154. package/vanilla/UiCombobox.js +237 -174
  155. package/vanilla/UiCompactContent.d.ts +1 -1
  156. package/vanilla/UiCompactContent.js +13 -8
  157. package/vanilla/UiCompactEditor.d.ts +1 -1
  158. package/vanilla/UiCompactEditor.js +17 -12
  159. package/vanilla/UiCompactMark.d.ts +1 -1
  160. package/vanilla/UiCompactMark.js +47 -45
  161. package/vanilla/UiCompactNode.d.ts +2 -2
  162. package/vanilla/UiCompactNode.js +37 -33
  163. package/vanilla/UiContainer.d.ts +1 -1
  164. package/vanilla/UiContainer.js +13 -11
  165. package/vanilla/UiContextMenu.d.ts +1 -1
  166. package/vanilla/UiContextMenu.js +11 -9
  167. package/vanilla/UiCover.d.ts +1 -1
  168. package/vanilla/UiCover.js +13 -11
  169. package/vanilla/UiCurveEditor.d.ts +1 -1
  170. package/vanilla/UiCurveEditor.js +40 -38
  171. package/vanilla/UiCycleButton.d.ts +2 -2
  172. package/vanilla/UiCycleButton.js +31 -26
  173. package/vanilla/UiDataTable.d.ts +1 -1
  174. package/vanilla/UiDataTable.js +26 -20
  175. package/vanilla/UiDateField.d.ts +1 -1
  176. package/vanilla/UiDateField.js +78 -75
  177. package/vanilla/UiDatePicker.d.ts +1 -1
  178. package/vanilla/UiDatePicker.js +155 -149
  179. package/vanilla/UiDateRangePicker.d.ts +1 -1
  180. package/vanilla/UiDateRangePicker.js +136 -128
  181. package/vanilla/UiDescriptionItem.d.ts +1 -1
  182. package/vanilla/UiDescriptionItem.js +13 -11
  183. package/vanilla/UiDescriptionList.d.ts +1 -1
  184. package/vanilla/UiDescriptionList.js +13 -11
  185. package/vanilla/UiDialog.d.ts +1 -1
  186. package/vanilla/UiDialog.js +14 -14
  187. package/vanilla/UiDisclosure.d.ts +1 -1
  188. package/vanilla/UiDisclosure.js +28 -26
  189. package/vanilla/UiEditable.d.ts +1 -1
  190. package/vanilla/UiEditable.js +29 -27
  191. package/vanilla/UiEditor.d.ts +1 -1
  192. package/vanilla/UiEditor.js +62 -58
  193. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  194. package/vanilla/UiEditorBlockActions.js +14 -12
  195. package/vanilla/UiEditorChipEditor.d.ts +1 -1
  196. package/vanilla/UiEditorChipEditor.js +22 -14
  197. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  198. package/vanilla/UiEditorCodeLanguage.js +23 -16
  199. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  200. package/vanilla/UiEditorFootnoteEditor.js +17 -9
  201. package/vanilla/UiEditorFormattingTools.d.ts +1 -1
  202. package/vanilla/UiEditorFormattingTools.js +108 -71
  203. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  204. package/vanilla/UiEditorImageToolbar.js +68 -66
  205. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  206. package/vanilla/UiEditorInsertTableGrid.js +50 -35
  207. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  208. package/vanilla/UiEditorLinkCard.js +27 -25
  209. package/vanilla/UiEditorLinkForm.d.ts +1 -1
  210. package/vanilla/UiEditorLinkForm.js +79 -57
  211. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  212. package/vanilla/UiEditorMentionMenu.js +63 -44
  213. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  214. package/vanilla/UiEditorMentionMenuItem.js +22 -16
  215. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  216. package/vanilla/UiEditorSlashMenu.js +52 -33
  217. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  218. package/vanilla/UiEditorSlashMenuGroup.js +19 -14
  219. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  220. package/vanilla/UiEditorSlashMenuItem.js +27 -25
  221. package/vanilla/UiEditorSurface.d.ts +1 -1
  222. package/vanilla/UiEditorSurface.js +13 -11
  223. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  224. package/vanilla/UiEditorTableContextMenu.js +81 -52
  225. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  226. package/vanilla/UiEditorTableOverlay.js +107 -68
  227. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  228. package/vanilla/UiEditorTableToolbar.js +121 -70
  229. package/vanilla/UiEditorToolbar.d.ts +1 -1
  230. package/vanilla/UiEditorToolbar.js +20 -12
  231. package/vanilla/UiFileInput.d.ts +1 -1
  232. package/vanilla/UiFileInput.js +94 -80
  233. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  234. package/vanilla/UiFloatingActionButton.js +21 -20
  235. package/vanilla/UiFormField.d.ts +1 -1
  236. package/vanilla/UiFormField.js +21 -19
  237. package/vanilla/UiGrid.d.ts +1 -1
  238. package/vanilla/UiGrid.js +26 -23
  239. package/vanilla/UiIcon.d.ts +1 -1
  240. package/vanilla/UiIcon.js +20 -15
  241. package/vanilla/UiIconButton.d.ts +1 -1
  242. package/vanilla/UiIconButton.js +35 -43
  243. package/vanilla/UiImage.d.ts +1 -1
  244. package/vanilla/UiImage.js +16 -14
  245. package/vanilla/UiInput.d.ts +1 -1
  246. package/vanilla/UiInput.js +29 -35
  247. package/vanilla/UiInputGroup.d.ts +1 -1
  248. package/vanilla/UiInputGroup.js +16 -14
  249. package/vanilla/UiLightEditor.d.ts +1 -1
  250. package/vanilla/UiLightEditor.js +29 -27
  251. package/vanilla/UiList.d.ts +1 -1
  252. package/vanilla/UiList.js +33 -27
  253. package/vanilla/UiListItem.d.ts +1 -1
  254. package/vanilla/UiListItem.js +12 -12
  255. package/vanilla/UiListbox.d.ts +1 -1
  256. package/vanilla/UiListbox.js +90 -80
  257. package/vanilla/UiMenu.d.ts +1 -1
  258. package/vanilla/UiMenu.js +20 -12
  259. package/vanilla/UiMenuGroup.d.ts +1 -1
  260. package/vanilla/UiMenuGroup.js +14 -11
  261. package/vanilla/UiMenuItem.d.ts +1 -1
  262. package/vanilla/UiMenuItem.js +74 -75
  263. package/vanilla/UiMeter.d.ts +1 -1
  264. package/vanilla/UiMeter.js +67 -62
  265. package/vanilla/UiNavItem.d.ts +1 -1
  266. package/vanilla/UiNavItem.js +63 -65
  267. package/vanilla/UiNoticeStripe.d.ts +1 -1
  268. package/vanilla/UiNoticeStripe.js +16 -16
  269. package/vanilla/UiNumberInput.d.ts +1 -1
  270. package/vanilla/UiNumberInput.js +41 -38
  271. package/vanilla/UiPageHeader.d.ts +1 -1
  272. package/vanilla/UiPageHeader.js +17 -15
  273. package/vanilla/UiPagination.d.ts +1 -1
  274. package/vanilla/UiPagination.js +53 -44
  275. package/vanilla/UiPopover.d.ts +1 -1
  276. package/vanilla/UiPopover.js +13 -11
  277. package/vanilla/UiRadio.d.ts +1 -1
  278. package/vanilla/UiRadio.js +25 -23
  279. package/vanilla/UiRadioGroup.d.ts +1 -1
  280. package/vanilla/UiRadioGroup.js +33 -36
  281. package/vanilla/UiReel.d.ts +1 -1
  282. package/vanilla/UiReel.js +20 -12
  283. package/vanilla/UiScrollArea.d.ts +1 -1
  284. package/vanilla/UiScrollArea.js +13 -11
  285. package/vanilla/UiSearchResultRow.d.ts +1 -1
  286. package/vanilla/UiSearchResultRow.js +21 -20
  287. package/vanilla/UiSearchShell.d.ts +1 -1
  288. package/vanilla/UiSearchShell.js +16 -14
  289. package/vanilla/UiSection.d.ts +1 -1
  290. package/vanilla/UiSection.js +48 -45
  291. package/vanilla/UiSegmentedControl.d.ts +2 -2
  292. package/vanilla/UiSegmentedControl.js +52 -47
  293. package/vanilla/UiSelect.d.ts +1 -1
  294. package/vanilla/UiSelect.js +17 -21
  295. package/vanilla/UiSeparator.d.ts +1 -1
  296. package/vanilla/UiSeparator.js +12 -12
  297. package/vanilla/UiSidebar.d.ts +1 -1
  298. package/vanilla/UiSidebar.js +17 -15
  299. package/vanilla/UiSiteHeader.d.ts +1 -1
  300. package/vanilla/UiSiteHeader.js +25 -23
  301. package/vanilla/UiSkeleton.d.ts +1 -1
  302. package/vanilla/UiSkeleton.js +21 -20
  303. package/vanilla/UiSlider.d.ts +1 -1
  304. package/vanilla/UiSlider.js +50 -47
  305. package/vanilla/UiSpinner.d.ts +1 -1
  306. package/vanilla/UiSpinner.js +34 -27
  307. package/vanilla/UiStack.d.ts +1 -1
  308. package/vanilla/UiStack.js +12 -12
  309. package/vanilla/UiStatusMessage.d.ts +1 -1
  310. package/vanilla/UiStatusMessage.js +22 -21
  311. package/vanilla/UiSwatch.d.ts +1 -1
  312. package/vanilla/UiSwatch.js +20 -17
  313. package/vanilla/UiSwitch.d.ts +1 -1
  314. package/vanilla/UiSwitch.js +25 -23
  315. package/vanilla/UiSwitcher.d.ts +1 -1
  316. package/vanilla/UiSwitcher.js +13 -11
  317. package/vanilla/UiTable.d.ts +1 -1
  318. package/vanilla/UiTable.js +13 -11
  319. package/vanilla/UiTabs.d.ts +1 -1
  320. package/vanilla/UiTabs.js +39 -28
  321. package/vanilla/UiText.d.ts +1 -1
  322. package/vanilla/UiText.js +128 -125
  323. package/vanilla/UiTextarea.d.ts +1 -1
  324. package/vanilla/UiTextarea.js +27 -39
  325. package/vanilla/UiTimeField.d.ts +1 -1
  326. package/vanilla/UiTimeField.js +42 -40
  327. package/vanilla/UiTimePicker.d.ts +1 -1
  328. package/vanilla/UiTimePicker.js +105 -102
  329. package/vanilla/UiToast.d.ts +1 -1
  330. package/vanilla/UiToast.js +14 -14
  331. package/vanilla/UiToastRegion.d.ts +1 -1
  332. package/vanilla/UiToastRegion.js +61 -31
  333. package/vanilla/UiTooltip.d.ts +1 -1
  334. package/vanilla/UiTooltip.js +17 -14
  335. package/vanilla/UiTopBar.d.ts +1 -1
  336. package/vanilla/UiTopBar.js +24 -22
  337. package/vanilla/UiTree.d.ts +1 -1
  338. package/vanilla/UiTree.js +17 -12
  339. package/vanilla/UiTreeItem.d.ts +1 -1
  340. package/vanilla/UiTreeItem.js +73 -79
  341. package/vanilla/UiWizard.d.ts +1 -1
  342. package/vanilla/UiWizard.js +61 -40
package/vanilla/UiText.js CHANGED
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, armElement, replaceRoot, checkBoolean, checkFormat, defineComponent } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, equalValue, buildTemplate, truthy, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, armElement, replaceRoot, checkBoolean, checkFormat, initializeSlot, sharePlainSlots, forwardAttributes, resetForwardedAttributes, defineComponent } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-text.css";
4
4
 
5
5
  const T0 = ["",[],4];
@@ -33,94 +33,47 @@ const Q = [[],[],[],[],[],[],[],[],[],[],[],[]];
33
33
  const D = { g: "ui-text", props: { "align": { "required":false,"values":["start","center"],"default":"start", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "as": { "required":false,"values":["p","span","div","small","strong","label","h1","h2","h3","h4","h5","h6"],"default":"p", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "font": { "required":false,"values":["inherit","sans"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "grow": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["inherit","xs","sm","md","lg"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["default","secondary","muted","accent","accent-secondary","accent-tertiary","danger","success","info","warning"],"default":"default", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "trim": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "truncate": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "variant": { "required":false,"values":["body","display","heading","label","caption","eyebrow","code"],"default":"body", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "weight": { "required":false,"values":["inherit","normal","medium","semibold"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "wrap": { "required":false,"values":["normal","anywhere"],"default":"normal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
34
34
 
35
35
  export function createUiText(options = {}, html) {
36
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
36
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
37
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["align","as","font","grow","size","tone","trim","truncate","variant","weight","wrap"].includes(name)));
37
38
  const v = [null, null, null, null, null, null, null, null, null, null, null];
38
39
  let B = acceptProps(undefined, D, S.n, v, componentProps, [], html);
39
- let a = ((v[1] === "span") ? 0 : (v[1] === "div") ? 1 : (v[1] === "small") ? 2 : (v[1] === "strong") ? 3 : (v[1] === "label") ? 4 : (v[1] === "h1") ? 5 : (v[1] === "h2") ? 6 : (v[1] === "h3") ? 7 : (v[1] === "h4") ? 8 : (v[1] === "h5") ? 9 : (v[1] === "h6") ? 10 : 11);
40
+ let a = (truthy(equalValue(v[1], "span")) ? 0 : truthy(equalValue(v[1], "div")) ? 1 : truthy(equalValue(v[1], "small")) ? 2 : truthy(equalValue(v[1], "strong")) ? 3 : truthy(equalValue(v[1], "label")) ? 4 : truthy(equalValue(v[1], "h1")) ? 5 : truthy(equalValue(v[1], "h2")) ? 6 : truthy(equalValue(v[1], "h3")) ? 7 : truthy(equalValue(v[1], "h4")) ? 8 : truthy(equalValue(v[1], "h5")) ? 9 : truthy(equalValue(v[1], "h6")) ? 10 : 11);
40
41
  let element;
41
42
  if (a === 0) {
42
43
  element = document.createElement("span");
43
- for (const [name, value] of Object.entries(attributes)) {
44
- if (value === null || value === undefined || value === false) continue;
45
- element.setAttribute(name, value === true ? "" : String(value));
46
- }
47
44
  element.setAttribute("component", "ui-text");
48
45
  } else if (a === 1) {
49
46
  element = document.createElement("div");
50
- for (const [name, value] of Object.entries(attributes)) {
51
- if (value === null || value === undefined || value === false) continue;
52
- element.setAttribute(name, value === true ? "" : String(value));
53
- }
54
47
  element.setAttribute("component", "ui-text");
55
48
  } else if (a === 2) {
56
49
  element = document.createElement("small");
57
- for (const [name, value] of Object.entries(attributes)) {
58
- if (value === null || value === undefined || value === false) continue;
59
- element.setAttribute(name, value === true ? "" : String(value));
60
- }
61
50
  element.setAttribute("component", "ui-text");
62
51
  } else if (a === 3) {
63
52
  element = document.createElement("strong");
64
- for (const [name, value] of Object.entries(attributes)) {
65
- if (value === null || value === undefined || value === false) continue;
66
- element.setAttribute(name, value === true ? "" : String(value));
67
- }
68
53
  element.setAttribute("component", "ui-text");
69
54
  } else if (a === 4) {
70
55
  element = document.createElement("label");
71
- for (const [name, value] of Object.entries(attributes)) {
72
- if (value === null || value === undefined || value === false) continue;
73
- element.setAttribute(name, value === true ? "" : String(value));
74
- }
75
56
  element.setAttribute("component", "ui-text");
76
57
  } else if (a === 5) {
77
58
  element = document.createElement("h1");
78
- for (const [name, value] of Object.entries(attributes)) {
79
- if (value === null || value === undefined || value === false) continue;
80
- element.setAttribute(name, value === true ? "" : String(value));
81
- }
82
59
  element.setAttribute("component", "ui-text");
83
60
  } else if (a === 6) {
84
61
  element = document.createElement("h2");
85
- for (const [name, value] of Object.entries(attributes)) {
86
- if (value === null || value === undefined || value === false) continue;
87
- element.setAttribute(name, value === true ? "" : String(value));
88
- }
89
62
  element.setAttribute("component", "ui-text");
90
63
  } else if (a === 7) {
91
64
  element = document.createElement("h3");
92
- for (const [name, value] of Object.entries(attributes)) {
93
- if (value === null || value === undefined || value === false) continue;
94
- element.setAttribute(name, value === true ? "" : String(value));
95
- }
96
65
  element.setAttribute("component", "ui-text");
97
66
  } else if (a === 8) {
98
67
  element = document.createElement("h4");
99
- for (const [name, value] of Object.entries(attributes)) {
100
- if (value === null || value === undefined || value === false) continue;
101
- element.setAttribute(name, value === true ? "" : String(value));
102
- }
103
68
  element.setAttribute("component", "ui-text");
104
69
  } else if (a === 9) {
105
70
  element = document.createElement("h5");
106
- for (const [name, value] of Object.entries(attributes)) {
107
- if (value === null || value === undefined || value === false) continue;
108
- element.setAttribute(name, value === true ? "" : String(value));
109
- }
110
71
  element.setAttribute("component", "ui-text");
111
72
  } else if (a === 10) {
112
73
  element = document.createElement("h6");
113
- for (const [name, value] of Object.entries(attributes)) {
114
- if (value === null || value === undefined || value === false) continue;
115
- element.setAttribute(name, value === true ? "" : String(value));
116
- }
117
74
  element.setAttribute("component", "ui-text");
118
75
  } else {
119
76
  element = document.createElement("p");
120
- for (const [name, value] of Object.entries(attributes)) {
121
- if (value === null || value === undefined || value === false) continue;
122
- element.setAttribute(name, value === true ? "" : String(value));
123
- }
124
77
  element.setAttribute("component", "ui-text");
125
78
  }
126
79
  B = acceptProps(element, D, S.n, v, componentProps, Q[a], html);
@@ -223,206 +176,254 @@ export function createUiText(options = {}, html) {
223
176
  const m0 = (n, d) => {
224
177
  n.append((P0 ??= buildTemplate(T0)).cloneNode(true));
225
178
  const t0 = n.firstChild;
226
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
179
+ const r = { n, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
227
180
  p0(r, -1, d);
228
181
  return r;
229
182
  };
230
183
  const p0 = (r, c, d) => {
184
+ if (c === -1) {
185
+ resetForwardedAttributes(r.n, attributes, r.v0);
186
+ r.v0 = forwardAttributes(r.n, attributes);
187
+ }
231
188
  if (c & 2045) {
232
189
  const x0 = hostState(["grow","size","trim","tone","weight","variant","truncate","align","font","wrap"], [v[3], v[4], v[6], v[5], v[9], v[8], v[7], v[0], v[2], v[10]]);
233
- const s0 = x0;
234
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
190
+ const s1 = x0;
191
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
235
192
  }
236
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
237
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
238
- else if (r.b0 !== undefined) p1(r.b0, c, d);
193
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a1, r.e0, "", J, false, undefined, d);
194
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m1(d, undefined, r), p1); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
195
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p1(r.b0, c, d);
239
196
  };
240
197
  const m2 = (n, d) => {
241
198
  n.append((P2 ??= buildTemplate(T2)).cloneNode(true));
242
199
  const t0 = n.firstChild;
243
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
200
+ const r = { n, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
244
201
  p2(r, -1, d);
245
202
  return r;
246
203
  };
247
204
  const p2 = (r, c, d) => {
205
+ if (c === -1) {
206
+ resetForwardedAttributes(r.n, attributes, r.v0);
207
+ r.v0 = forwardAttributes(r.n, attributes);
208
+ }
248
209
  if (c & 2045) {
249
210
  const x0 = hostState(["grow","size","trim","tone","weight","variant","truncate","align","font","wrap"], [v[3], v[4], v[6], v[5], v[9], v[8], v[7], v[0], v[2], v[10]]);
250
- const s0 = x0;
251
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
211
+ const s1 = x0;
212
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
252
213
  }
253
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
254
- 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); } }
255
- else if (r.b0 !== undefined) p3(r.b0, c, d);
214
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a1, r.e0, "", J, false, undefined, d);
215
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m3(d, undefined, r), p3); else 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); } }
216
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p3(r.b0, c, d);
256
217
  };
257
218
  const m4 = (n, d) => {
258
219
  n.append((P4 ??= buildTemplate(T4)).cloneNode(true));
259
220
  const t0 = n.firstChild;
260
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
221
+ const r = { n, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
261
222
  p4(r, -1, d);
262
223
  return r;
263
224
  };
264
225
  const p4 = (r, c, d) => {
226
+ if (c === -1) {
227
+ resetForwardedAttributes(r.n, attributes, r.v0);
228
+ r.v0 = forwardAttributes(r.n, attributes);
229
+ }
265
230
  if (c & 2045) {
266
231
  const x0 = hostState(["grow","size","trim","tone","weight","variant","truncate","align","font","wrap"], [v[3], v[4], v[6], v[5], v[9], v[8], v[7], v[0], v[2], v[10]]);
267
- const s0 = x0;
268
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
232
+ const s1 = x0;
233
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
269
234
  }
270
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
271
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m5(d); at.before(r.b0.n); } }
272
- else if (r.b0 !== undefined) p5(r.b0, c, d);
235
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a1, r.e0, "", J, false, undefined, d);
236
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m5(d, undefined, r), p5); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m5(d); at.before(r.b0.n); } }
237
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p5(r.b0, c, d);
273
238
  };
274
239
  const m6 = (n, d) => {
275
240
  n.append((P6 ??= buildTemplate(T6)).cloneNode(true));
276
241
  const t0 = n.firstChild;
277
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
242
+ const r = { n, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
278
243
  p6(r, -1, d);
279
244
  return r;
280
245
  };
281
246
  const p6 = (r, c, d) => {
247
+ if (c === -1) {
248
+ resetForwardedAttributes(r.n, attributes, r.v0);
249
+ r.v0 = forwardAttributes(r.n, attributes);
250
+ }
282
251
  if (c & 2045) {
283
252
  const x0 = hostState(["grow","size","trim","tone","weight","variant","truncate","align","font","wrap"], [v[3], v[4], v[6], v[5], v[9], v[8], v[7], v[0], v[2], v[10]]);
284
- const s0 = x0;
285
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
253
+ const s1 = x0;
254
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
286
255
  }
287
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
288
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m7(d); at.before(r.b0.n); } }
289
- else if (r.b0 !== undefined) p7(r.b0, c, d);
256
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a1, r.e0, "", J, false, undefined, d);
257
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m7(d, undefined, r), p7); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m7(d); at.before(r.b0.n); } }
258
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p7(r.b0, c, d);
290
259
  };
291
260
  const m8 = (n, d) => {
292
261
  n.append((P8 ??= buildTemplate(T8)).cloneNode(true));
293
262
  const t0 = n.firstChild;
294
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
263
+ const r = { n, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
295
264
  p8(r, -1, d);
296
265
  return r;
297
266
  };
298
267
  const p8 = (r, c, d) => {
268
+ if (c === -1) {
269
+ resetForwardedAttributes(r.n, attributes, r.v0);
270
+ r.v0 = forwardAttributes(r.n, attributes);
271
+ }
299
272
  if (c & 2045) {
300
273
  const x0 = hostState(["grow","size","trim","tone","weight","variant","truncate","align","font","wrap"], [v[3], v[4], v[6], v[5], v[9], v[8], v[7], v[0], v[2], v[10]]);
301
- const s0 = x0;
302
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
274
+ const s1 = x0;
275
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
303
276
  }
304
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
305
- 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); } }
306
- else if (r.b0 !== undefined) p9(r.b0, c, d);
277
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a1, r.e0, "", J, false, undefined, d);
278
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m9(d, undefined, r), p9); else 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); } }
279
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p9(r.b0, c, d);
307
280
  };
308
281
  const m10 = (n, d) => {
309
282
  n.append((P10 ??= buildTemplate(T10)).cloneNode(true));
310
283
  const t0 = n.firstChild;
311
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
284
+ const r = { n, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
312
285
  p10(r, -1, d);
313
286
  return r;
314
287
  };
315
288
  const p10 = (r, c, d) => {
289
+ if (c === -1) {
290
+ resetForwardedAttributes(r.n, attributes, r.v0);
291
+ r.v0 = forwardAttributes(r.n, attributes);
292
+ }
316
293
  if (c & 2045) {
317
294
  const x0 = hostState(["grow","size","trim","tone","weight","variant","truncate","align","font","wrap"], [v[3], v[4], v[6], v[5], v[9], v[8], v[7], v[0], v[2], v[10]]);
318
- const s0 = x0;
319
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
295
+ const s1 = x0;
296
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
320
297
  }
321
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
322
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m11(d); at.before(r.b0.n); } }
323
- else if (r.b0 !== undefined) p11(r.b0, c, d);
298
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a1, r.e0, "", J, false, undefined, d);
299
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m11(d, undefined, r), p11); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m11(d); at.before(r.b0.n); } }
300
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p11(r.b0, c, d);
324
301
  };
325
302
  const m12 = (n, d) => {
326
303
  n.append((P12 ??= buildTemplate(T12)).cloneNode(true));
327
304
  const t0 = n.firstChild;
328
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
305
+ const r = { n, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
329
306
  p12(r, -1, d);
330
307
  return r;
331
308
  };
332
309
  const p12 = (r, c, d) => {
310
+ if (c === -1) {
311
+ resetForwardedAttributes(r.n, attributes, r.v0);
312
+ r.v0 = forwardAttributes(r.n, attributes);
313
+ }
333
314
  if (c & 2045) {
334
315
  const x0 = hostState(["grow","size","trim","tone","weight","variant","truncate","align","font","wrap"], [v[3], v[4], v[6], v[5], v[9], v[8], v[7], v[0], v[2], v[10]]);
335
- const s0 = x0;
336
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
316
+ const s1 = x0;
317
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
337
318
  }
338
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
339
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m13(d); at.before(r.b0.n); } }
340
- else if (r.b0 !== undefined) p13(r.b0, c, d);
319
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a1, r.e0, "", J, false, undefined, d);
320
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m13(d, undefined, r), p13); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m13(d); at.before(r.b0.n); } }
321
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p13(r.b0, c, d);
341
322
  };
342
323
  const m14 = (n, d) => {
343
324
  n.append((P14 ??= buildTemplate(T14)).cloneNode(true));
344
325
  const t0 = n.firstChild;
345
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
326
+ const r = { n, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
346
327
  p14(r, -1, d);
347
328
  return r;
348
329
  };
349
330
  const p14 = (r, c, d) => {
331
+ if (c === -1) {
332
+ resetForwardedAttributes(r.n, attributes, r.v0);
333
+ r.v0 = forwardAttributes(r.n, attributes);
334
+ }
350
335
  if (c & 2045) {
351
336
  const x0 = hostState(["grow","size","trim","tone","weight","variant","truncate","align","font","wrap"], [v[3], v[4], v[6], v[5], v[9], v[8], v[7], v[0], v[2], v[10]]);
352
- const s0 = x0;
353
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
337
+ const s1 = x0;
338
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
354
339
  }
355
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
356
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m15(d); at.before(r.b0.n); } }
357
- else if (r.b0 !== undefined) p15(r.b0, c, d);
340
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a1, r.e0, "", J, false, undefined, d);
341
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m15(d, undefined, r), p15); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m15(d); at.before(r.b0.n); } }
342
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p15(r.b0, c, d);
358
343
  };
359
344
  const m16 = (n, d) => {
360
345
  n.append((P16 ??= buildTemplate(T16)).cloneNode(true));
361
346
  const t0 = n.firstChild;
362
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
347
+ const r = { n, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
363
348
  p16(r, -1, d);
364
349
  return r;
365
350
  };
366
351
  const p16 = (r, c, d) => {
352
+ if (c === -1) {
353
+ resetForwardedAttributes(r.n, attributes, r.v0);
354
+ r.v0 = forwardAttributes(r.n, attributes);
355
+ }
367
356
  if (c & 2045) {
368
357
  const x0 = hostState(["grow","size","trim","tone","weight","variant","truncate","align","font","wrap"], [v[3], v[4], v[6], v[5], v[9], v[8], v[7], v[0], v[2], v[10]]);
369
- const s0 = x0;
370
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
358
+ const s1 = x0;
359
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
371
360
  }
372
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
373
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m17(d); at.before(r.b0.n); } }
374
- else if (r.b0 !== undefined) p17(r.b0, c, d);
361
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a1, r.e0, "", J, false, undefined, d);
362
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m17(d, undefined, r), p17); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m17(d); at.before(r.b0.n); } }
363
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p17(r.b0, c, d);
375
364
  };
376
365
  const m18 = (n, d) => {
377
366
  n.append((P18 ??= buildTemplate(T18)).cloneNode(true));
378
367
  const t0 = n.firstChild;
379
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
368
+ const r = { n, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
380
369
  p18(r, -1, d);
381
370
  return r;
382
371
  };
383
372
  const p18 = (r, c, d) => {
373
+ if (c === -1) {
374
+ resetForwardedAttributes(r.n, attributes, r.v0);
375
+ r.v0 = forwardAttributes(r.n, attributes);
376
+ }
384
377
  if (c & 2045) {
385
378
  const x0 = hostState(["grow","size","trim","tone","weight","variant","truncate","align","font","wrap"], [v[3], v[4], v[6], v[5], v[9], v[8], v[7], v[0], v[2], v[10]]);
386
- const s0 = x0;
387
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
379
+ const s1 = x0;
380
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
388
381
  }
389
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
390
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m19(d); at.before(r.b0.n); } }
391
- else if (r.b0 !== undefined) p19(r.b0, c, d);
382
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a1, r.e0, "", J, false, undefined, d);
383
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m19(d, undefined, r), p19); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m19(d); at.before(r.b0.n); } }
384
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p19(r.b0, c, d);
392
385
  };
393
386
  const m20 = (n, d) => {
394
387
  n.append((P20 ??= buildTemplate(T20)).cloneNode(true));
395
388
  const t0 = n.firstChild;
396
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
389
+ const r = { n, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
397
390
  p20(r, -1, d);
398
391
  return r;
399
392
  };
400
393
  const p20 = (r, c, d) => {
394
+ if (c === -1) {
395
+ resetForwardedAttributes(r.n, attributes, r.v0);
396
+ r.v0 = forwardAttributes(r.n, attributes);
397
+ }
401
398
  if (c & 2045) {
402
399
  const x0 = hostState(["grow","size","trim","tone","weight","variant","truncate","align","font","wrap"], [v[3], v[4], v[6], v[5], v[9], v[8], v[7], v[0], v[2], v[10]]);
403
- const s0 = x0;
404
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
400
+ const s1 = x0;
401
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
405
402
  }
406
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
407
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m21(d); at.before(r.b0.n); } }
408
- else if (r.b0 !== undefined) p21(r.b0, c, d);
403
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a1, r.e0, "", J, false, undefined, d);
404
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m21(d, undefined, r), p21); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m21(d); at.before(r.b0.n); } }
405
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p21(r.b0, c, d);
409
406
  };
410
407
  const m22 = (n, d) => {
411
408
  n.append((P22 ??= buildTemplate(T22)).cloneNode(true));
412
409
  const t0 = n.firstChild;
413
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
410
+ const r = { n, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
414
411
  p22(r, -1, d);
415
412
  return r;
416
413
  };
417
414
  const p22 = (r, c, d) => {
415
+ if (c === -1) {
416
+ resetForwardedAttributes(r.n, attributes, r.v0);
417
+ r.v0 = forwardAttributes(r.n, attributes);
418
+ }
418
419
  if (c & 2045) {
419
420
  const x0 = hostState(["grow","size","trim","tone","weight","variant","truncate","align","font","wrap"], [v[3], v[4], v[6], v[5], v[9], v[8], v[7], v[0], v[2], v[10]]);
420
- const s0 = x0;
421
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
421
+ const s1 = x0;
422
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
422
423
  }
423
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
424
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m23(d); at.before(r.b0.n); } }
425
- else if (r.b0 !== undefined) p23(r.b0, c, d);
424
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a1, r.e0, "", J, false, undefined, d);
425
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m23(d, undefined, r), p23); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m23(d); at.before(r.b0.n); } }
426
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p23(r.b0, c, d);
426
427
  };
427
428
  const M = [m0, m2, m4, m6, m8, m10, m12, m14, m16, m18, m20, m22], N = [p0, p2, p4, p6, p8, p10, p12, p14, p16, p18, p20, p22];
428
429
  let R;
@@ -430,7 +431,7 @@ export function createUiText(options = {}, html) {
430
431
  if (R === null) return;
431
432
  if (R === undefined) { R = M[a](element, d); return; }
432
433
  if (c & 2) {
433
- const t = ((v[1] === "span") ? 0 : (v[1] === "div") ? 1 : (v[1] === "small") ? 2 : (v[1] === "strong") ? 3 : (v[1] === "label") ? 4 : (v[1] === "h1") ? 5 : (v[1] === "h2") ? 6 : (v[1] === "h3") ? 7 : (v[1] === "h4") ? 8 : (v[1] === "h5") ? 9 : (v[1] === "h6") ? 10 : 11);
434
+ const t = (truthy(equalValue(v[1], "span")) ? 0 : truthy(equalValue(v[1], "div")) ? 1 : truthy(equalValue(v[1], "small")) ? 2 : truthy(equalValue(v[1], "strong")) ? 3 : truthy(equalValue(v[1], "label")) ? 4 : truthy(equalValue(v[1], "h1")) ? 5 : truthy(equalValue(v[1], "h2")) ? 6 : truthy(equalValue(v[1], "h3")) ? 7 : truthy(equalValue(v[1], "h4")) ? 8 : truthy(equalValue(v[1], "h5")) ? 9 : truthy(equalValue(v[1], "h6")) ? 10 : 11);
434
435
  if (t !== a) {
435
436
  dispose(R);
436
437
  for (const key in I.r) delete I.r[key];
@@ -447,6 +448,8 @@ export function createUiText(options = {}, html) {
447
448
  };
448
449
  const I = { B };
449
450
  const J = project(I, children, slots);
451
+ sharePlainSlots(I, J, [""]);
452
+ I.F = { values: attributes, draw: () => p(-1) };
450
453
  attachGeneratedController(element, S, v, p, undefined, undefined, I);
451
454
  manageProps(I);
452
455
  return element;
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
2
  export interface UiTextareaEventMap {
3
3
  }
4
4
  export interface UiTextareaElement extends HTMLTextAreaElement {
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, toAttribute, toText, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkFormat, checkInteger, checkString, 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, toAttribute, toText, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkFormat, checkInteger, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-textarea/ui-textarea.js";
4
4
  import "../styles/ui-textarea.css";
5
5
 
@@ -8,61 +8,49 @@ const D = { g: "ui-textarea", props: { "autosize": { "required":false,"default":
8
8
  const C = (host) => activateModule(controller, host);
9
9
 
10
10
  export function createUiTextarea(options = {}, html) {
11
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
11
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
12
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["autosize","disabled","invalid","max-rows","readonly","required","rows","size","value"].includes(name)));
12
13
  const element = document.createElement("textarea");
13
- for (const [name, value] of Object.entries(attributes)) {
14
- if (value === null || value === undefined || value === false) continue;
15
- element.setAttribute(name, value === true ? "" : String(value));
16
- }
17
14
  element.setAttribute("component", "ui-textarea");
18
15
  const v = [null, null, null, null, null, null, null, null, null];
19
16
  const B = acceptProps(element, D, S.n, v, componentProps, [], html);
20
17
  const p0 = (r, c, d) => {
21
- if (c & 256) {
18
+ if (c & 382) {
19
+ resetForwardedAttributes(r.n, attributes, r.v0);
20
+ r.v0 = forwardAttributes(r.n, attributes);
22
21
  const x0 = v[8];
23
- const s0 = toAttribute(x0, "value");
24
- if (s0 !== r.v0) writeAttribute(r.n, "value", r.v0 = s0);
25
- }
26
- if (c & 2) {
22
+ const s1 = toAttribute(x0, "value");
23
+ writeAttribute(r.n, "value", r.v1 = s1);
27
24
  const x1 = v[1];
28
- const s1 = toAttribute(x1, "disabled");
29
- if (s1 !== r.v1) writeAttribute(r.n, "disabled", r.v1 = s1);
30
- }
31
- if (c & 16) {
25
+ const s2 = toAttribute(x1, "disabled");
26
+ writeAttribute(r.n, "disabled", r.v2 = s2);
32
27
  const x2 = v[4];
33
- const s2 = toAttribute(x2, "readonly");
34
- if (s2 !== r.v2) writeAttribute(r.n, "readonly", r.v2 = s2);
35
- }
36
- if (c & 32) {
28
+ const s3 = toAttribute(x2, "readonly");
29
+ writeAttribute(r.n, "readonly", r.v3 = s3);
37
30
  const x3 = v[5];
38
- const s3 = toAttribute(x3, "required");
39
- if (s3 !== r.v3) writeAttribute(r.n, "required", r.v3 = s3);
40
- }
41
- if (c & 4) {
31
+ const s4 = toAttribute(x3, "required");
32
+ writeAttribute(r.n, "required", r.v4 = s4);
42
33
  const x4 = v[2];
43
- const s4 = toAttribute(x4, "aria-invalid");
44
- if (s4 !== r.v4) writeAttribute(r.n, "aria-invalid", r.v4 = s4);
45
- }
46
- if (c & 64) {
34
+ const s5 = toAttribute(x4, "aria-invalid");
35
+ writeAttribute(r.n, "aria-invalid", r.v5 = s5);
47
36
  const x5 = v[6];
48
- const s5 = toAttribute(x5, "rows");
49
- if (s5 !== r.v5) writeAttribute(r.n, "rows", r.v5 = s5);
50
- const s6 = toText(x5);
51
- if (s6 !== r.v6) r.n.style.setProperty("--_rows", r.v6 = s6);
52
- }
53
- if (c & 8) {
37
+ const s6 = toAttribute(x5, "rows");
38
+ writeAttribute(r.n, "rows", r.v6 = s6);
39
+ const s7 = toText(x5);
40
+ r.n.style.setProperty("--_rows", r.v7 = s7);
54
41
  const x6 = v[3];
55
- const s7 = toText(x6);
56
- if (s7 !== r.v7) r.n.style.setProperty("--_max-rows", r.v7 = s7);
42
+ const s8 = toText(x6);
43
+ r.n.style.setProperty("--_max-rows", r.v8 = s8);
57
44
  }
58
45
  if (c & 137) {
59
46
  const x7 = hostState(["size","maxRows","autosize"], [v[7], v[3], v[0]]);
60
- const s8 = x7;
61
- if (s8 !== r.v8) writeAttribute(r.n, "data-ui-textarea-state", (r.v8 = s8) === "" ? null : s8);
47
+ const s9 = x7;
48
+ if (s9 !== r.v9) writeAttribute(r.n, "data-ui-textarea-state", (r.v9 = s9) === "" ? null : s9);
62
49
  }
63
50
  };
64
- const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined };
51
+ const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined };
65
52
  const I = { B };
53
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
66
54
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
67
55
  manageProps(I);
68
56
  return element;
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
2
  export interface UiTimeFieldEventMap {
3
3
  input: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  change: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;