@threadlabs/looma 0.52.12 → 0.53.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (342) hide show
  1. package/components/shared/overlay.js +7 -0
  2. package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
  3. package/components/ui-meter/ui-meter.html +1 -1
  4. package/dist/index.js +1 -1
  5. package/docs/catalog.json +1 -1
  6. package/editor/chunks/extensions.js +2 -2
  7. package/editor/components.css +19 -19
  8. package/editor/index.js +1125 -853
  9. package/package.json +3 -3
  10. package/styles/ui-action-bar.css +1 -1
  11. package/styles/ui-affordance-scope.css +1 -1
  12. package/styles/ui-avatar-group.css +1 -1
  13. package/styles/ui-avatar.css +1 -1
  14. package/styles/ui-badge.css +1 -1
  15. package/styles/ui-breadcrumb-item.css +1 -1
  16. package/styles/ui-breadcrumbs.css +1 -1
  17. package/styles/ui-button.css +1 -1
  18. package/styles/ui-calendar.css +1 -1
  19. package/styles/ui-callout.css +1 -1
  20. package/styles/ui-card-group.css +1 -1
  21. package/styles/ui-card.css +1 -1
  22. package/styles/ui-checkbox.css +1 -1
  23. package/styles/ui-cluster.css +1 -1
  24. package/styles/ui-color-picker.css +1 -1
  25. package/styles/ui-column.css +1 -1
  26. package/styles/ui-combobox.css +1 -1
  27. package/styles/ui-compact-content.css +1 -1
  28. package/styles/ui-compact-editor.css +1 -1
  29. package/styles/ui-compact-mark.css +1 -1
  30. package/styles/ui-compact-node.css +1 -1
  31. package/styles/ui-container.css +1 -1
  32. package/styles/ui-context-menu.css +1 -1
  33. package/styles/ui-cover.css +1 -1
  34. package/styles/ui-curve-editor.css +1 -1
  35. package/styles/ui-cycle-button.css +1 -1
  36. package/styles/ui-data-table.css +1 -1
  37. package/styles/ui-date-field.css +1 -1
  38. package/styles/ui-date-picker.css +1 -1
  39. package/styles/ui-date-range-picker.css +1 -1
  40. package/styles/ui-description-item.css +1 -1
  41. package/styles/ui-description-list.css +1 -1
  42. package/styles/ui-dialog.css +1 -1
  43. package/styles/ui-disclosure.css +1 -1
  44. package/styles/ui-editable.css +1 -1
  45. package/styles/ui-editor-block-actions.css +1 -1
  46. package/styles/ui-editor-chip-editor.css +1 -1
  47. package/styles/ui-editor-code-language.css +1 -1
  48. package/styles/ui-editor-footnote-editor.css +1 -1
  49. package/styles/ui-editor-formatting-tools.css +1 -1
  50. package/styles/ui-editor-image-toolbar.css +1 -1
  51. package/styles/ui-editor-insert-table-grid.css +1 -1
  52. package/styles/ui-editor-link-card.css +1 -1
  53. package/styles/ui-editor-link-form.css +1 -1
  54. package/styles/ui-editor-mention-menu-item.css +1 -1
  55. package/styles/ui-editor-mention-menu.css +1 -1
  56. package/styles/ui-editor-slash-menu-group.css +1 -1
  57. package/styles/ui-editor-slash-menu-item.css +1 -1
  58. package/styles/ui-editor-slash-menu.css +1 -1
  59. package/styles/ui-editor-surface.css +1 -1
  60. package/styles/ui-editor-table-context-menu.css +1 -1
  61. package/styles/ui-editor-table-overlay.css +1 -1
  62. package/styles/ui-editor-table-toolbar.css +1 -1
  63. package/styles/ui-editor-toolbar.css +1 -1
  64. package/styles/ui-editor.css +1 -1
  65. package/styles/ui-file-input.css +1 -1
  66. package/styles/ui-floating-action-button.css +1 -1
  67. package/styles/ui-form-field.css +1 -1
  68. package/styles/ui-grid.css +1 -1
  69. package/styles/ui-icon-button.css +1 -1
  70. package/styles/ui-icon.css +1 -1
  71. package/styles/ui-image.css +1 -1
  72. package/styles/ui-input-group.css +1 -1
  73. package/styles/ui-input.css +1 -1
  74. package/styles/ui-light-editor.css +1 -1
  75. package/styles/ui-list-item.css +1 -1
  76. package/styles/ui-list.css +1 -1
  77. package/styles/ui-listbox.css +1 -1
  78. package/styles/ui-menu-group.css +1 -1
  79. package/styles/ui-menu-item.css +1 -1
  80. package/styles/ui-menu.css +1 -1
  81. package/styles/ui-meter.css +1 -1
  82. package/styles/ui-nav-item.css +1 -1
  83. package/styles/ui-notice-stripe.css +1 -1
  84. package/styles/ui-number-input.css +1 -1
  85. package/styles/ui-page-header.css +1 -1
  86. package/styles/ui-pagination.css +1 -1
  87. package/styles/ui-popover.css +1 -1
  88. package/styles/ui-radio-group.css +1 -1
  89. package/styles/ui-radio.css +1 -1
  90. package/styles/ui-reel.css +1 -1
  91. package/styles/ui-scroll-area.css +1 -1
  92. package/styles/ui-search-result-row.css +1 -1
  93. package/styles/ui-search-shell.css +1 -1
  94. package/styles/ui-section.css +1 -1
  95. package/styles/ui-segmented-control.css +1 -1
  96. package/styles/ui-select.css +1 -1
  97. package/styles/ui-separator.css +1 -1
  98. package/styles/ui-sidebar.css +1 -1
  99. package/styles/ui-site-header.css +1 -1
  100. package/styles/ui-skeleton.css +1 -1
  101. package/styles/ui-slider.css +1 -1
  102. package/styles/ui-spinner.css +1 -1
  103. package/styles/ui-stack.css +1 -1
  104. package/styles/ui-status-message.css +1 -1
  105. package/styles/ui-swatch.css +1 -1
  106. package/styles/ui-switch.css +1 -1
  107. package/styles/ui-switcher.css +1 -1
  108. package/styles/ui-table.css +1 -1
  109. package/styles/ui-tabs.css +1 -1
  110. package/styles/ui-text.css +1 -1
  111. package/styles/ui-textarea.css +1 -1
  112. package/styles/ui-time-field.css +1 -1
  113. package/styles/ui-time-picker.css +1 -1
  114. package/styles/ui-toast-region.css +1 -1
  115. package/styles/ui-toast.css +1 -1
  116. package/styles/ui-tooltip.css +1 -1
  117. package/styles/ui-top-bar.css +1 -1
  118. package/styles/ui-tree-item.css +1 -1
  119. package/styles/ui-tree.css +1 -1
  120. package/styles/ui-wizard.css +1 -1
  121. package/vanilla/UiActionBar.d.ts +1 -1
  122. package/vanilla/UiActionBar.js +14 -12
  123. package/vanilla/UiAffordanceScope.d.ts +1 -1
  124. package/vanilla/UiAffordanceScope.js +13 -11
  125. package/vanilla/UiAvatar.d.ts +1 -1
  126. package/vanilla/UiAvatar.js +27 -25
  127. package/vanilla/UiAvatarGroup.d.ts +1 -1
  128. package/vanilla/UiAvatarGroup.js +26 -23
  129. package/vanilla/UiBadge.d.ts +1 -1
  130. package/vanilla/UiBadge.js +14 -12
  131. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  132. package/vanilla/UiBreadcrumbItem.js +14 -13
  133. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  134. package/vanilla/UiBreadcrumbs.js +10 -10
  135. package/vanilla/UiButton.d.ts +1 -1
  136. package/vanilla/UiButton.js +187 -244
  137. package/vanilla/UiCalendar.d.ts +1 -1
  138. package/vanilla/UiCalendar.js +272 -193
  139. package/vanilla/UiCallout.d.ts +1 -1
  140. package/vanilla/UiCallout.js +32 -27
  141. package/vanilla/UiCard.d.ts +1 -1
  142. package/vanilla/UiCard.js +72 -69
  143. package/vanilla/UiCardGroup.d.ts +1 -1
  144. package/vanilla/UiCardGroup.js +17 -15
  145. package/vanilla/UiCheckbox.d.ts +1 -1
  146. package/vanilla/UiCheckbox.js +32 -30
  147. package/vanilla/UiCluster.d.ts +1 -1
  148. package/vanilla/UiCluster.js +20 -18
  149. package/vanilla/UiColorPicker.d.ts +1 -1
  150. package/vanilla/UiColorPicker.js +22 -20
  151. package/vanilla/UiColumn.d.ts +2 -2
  152. package/vanilla/UiColumn.js +18 -15
  153. package/vanilla/UiCombobox.d.ts +3 -3
  154. package/vanilla/UiCombobox.js +237 -174
  155. package/vanilla/UiCompactContent.d.ts +1 -1
  156. package/vanilla/UiCompactContent.js +13 -8
  157. package/vanilla/UiCompactEditor.d.ts +1 -1
  158. package/vanilla/UiCompactEditor.js +17 -12
  159. package/vanilla/UiCompactMark.d.ts +1 -1
  160. package/vanilla/UiCompactMark.js +47 -45
  161. package/vanilla/UiCompactNode.d.ts +2 -2
  162. package/vanilla/UiCompactNode.js +37 -33
  163. package/vanilla/UiContainer.d.ts +1 -1
  164. package/vanilla/UiContainer.js +13 -11
  165. package/vanilla/UiContextMenu.d.ts +1 -1
  166. package/vanilla/UiContextMenu.js +11 -9
  167. package/vanilla/UiCover.d.ts +1 -1
  168. package/vanilla/UiCover.js +13 -11
  169. package/vanilla/UiCurveEditor.d.ts +1 -1
  170. package/vanilla/UiCurveEditor.js +40 -38
  171. package/vanilla/UiCycleButton.d.ts +2 -2
  172. package/vanilla/UiCycleButton.js +31 -26
  173. package/vanilla/UiDataTable.d.ts +1 -1
  174. package/vanilla/UiDataTable.js +26 -20
  175. package/vanilla/UiDateField.d.ts +1 -1
  176. package/vanilla/UiDateField.js +78 -75
  177. package/vanilla/UiDatePicker.d.ts +1 -1
  178. package/vanilla/UiDatePicker.js +155 -149
  179. package/vanilla/UiDateRangePicker.d.ts +1 -1
  180. package/vanilla/UiDateRangePicker.js +136 -128
  181. package/vanilla/UiDescriptionItem.d.ts +1 -1
  182. package/vanilla/UiDescriptionItem.js +13 -11
  183. package/vanilla/UiDescriptionList.d.ts +1 -1
  184. package/vanilla/UiDescriptionList.js +13 -11
  185. package/vanilla/UiDialog.d.ts +1 -1
  186. package/vanilla/UiDialog.js +14 -14
  187. package/vanilla/UiDisclosure.d.ts +1 -1
  188. package/vanilla/UiDisclosure.js +28 -26
  189. package/vanilla/UiEditable.d.ts +1 -1
  190. package/vanilla/UiEditable.js +29 -27
  191. package/vanilla/UiEditor.d.ts +1 -1
  192. package/vanilla/UiEditor.js +62 -58
  193. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  194. package/vanilla/UiEditorBlockActions.js +14 -12
  195. package/vanilla/UiEditorChipEditor.d.ts +1 -1
  196. package/vanilla/UiEditorChipEditor.js +22 -14
  197. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  198. package/vanilla/UiEditorCodeLanguage.js +23 -16
  199. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  200. package/vanilla/UiEditorFootnoteEditor.js +17 -9
  201. package/vanilla/UiEditorFormattingTools.d.ts +1 -1
  202. package/vanilla/UiEditorFormattingTools.js +108 -71
  203. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  204. package/vanilla/UiEditorImageToolbar.js +68 -66
  205. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  206. package/vanilla/UiEditorInsertTableGrid.js +50 -35
  207. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  208. package/vanilla/UiEditorLinkCard.js +27 -25
  209. package/vanilla/UiEditorLinkForm.d.ts +1 -1
  210. package/vanilla/UiEditorLinkForm.js +79 -57
  211. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  212. package/vanilla/UiEditorMentionMenu.js +63 -44
  213. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  214. package/vanilla/UiEditorMentionMenuItem.js +22 -16
  215. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  216. package/vanilla/UiEditorSlashMenu.js +52 -33
  217. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  218. package/vanilla/UiEditorSlashMenuGroup.js +19 -14
  219. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  220. package/vanilla/UiEditorSlashMenuItem.js +27 -25
  221. package/vanilla/UiEditorSurface.d.ts +1 -1
  222. package/vanilla/UiEditorSurface.js +13 -11
  223. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  224. package/vanilla/UiEditorTableContextMenu.js +81 -52
  225. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  226. package/vanilla/UiEditorTableOverlay.js +107 -68
  227. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  228. package/vanilla/UiEditorTableToolbar.js +121 -70
  229. package/vanilla/UiEditorToolbar.d.ts +1 -1
  230. package/vanilla/UiEditorToolbar.js +20 -12
  231. package/vanilla/UiFileInput.d.ts +1 -1
  232. package/vanilla/UiFileInput.js +94 -80
  233. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  234. package/vanilla/UiFloatingActionButton.js +21 -20
  235. package/vanilla/UiFormField.d.ts +1 -1
  236. package/vanilla/UiFormField.js +21 -19
  237. package/vanilla/UiGrid.d.ts +1 -1
  238. package/vanilla/UiGrid.js +26 -23
  239. package/vanilla/UiIcon.d.ts +1 -1
  240. package/vanilla/UiIcon.js +20 -15
  241. package/vanilla/UiIconButton.d.ts +1 -1
  242. package/vanilla/UiIconButton.js +35 -43
  243. package/vanilla/UiImage.d.ts +1 -1
  244. package/vanilla/UiImage.js +16 -14
  245. package/vanilla/UiInput.d.ts +1 -1
  246. package/vanilla/UiInput.js +29 -35
  247. package/vanilla/UiInputGroup.d.ts +1 -1
  248. package/vanilla/UiInputGroup.js +16 -14
  249. package/vanilla/UiLightEditor.d.ts +1 -1
  250. package/vanilla/UiLightEditor.js +29 -27
  251. package/vanilla/UiList.d.ts +1 -1
  252. package/vanilla/UiList.js +33 -27
  253. package/vanilla/UiListItem.d.ts +1 -1
  254. package/vanilla/UiListItem.js +12 -12
  255. package/vanilla/UiListbox.d.ts +1 -1
  256. package/vanilla/UiListbox.js +90 -80
  257. package/vanilla/UiMenu.d.ts +1 -1
  258. package/vanilla/UiMenu.js +20 -12
  259. package/vanilla/UiMenuGroup.d.ts +1 -1
  260. package/vanilla/UiMenuGroup.js +14 -11
  261. package/vanilla/UiMenuItem.d.ts +1 -1
  262. package/vanilla/UiMenuItem.js +74 -75
  263. package/vanilla/UiMeter.d.ts +1 -1
  264. package/vanilla/UiMeter.js +67 -62
  265. package/vanilla/UiNavItem.d.ts +1 -1
  266. package/vanilla/UiNavItem.js +63 -65
  267. package/vanilla/UiNoticeStripe.d.ts +1 -1
  268. package/vanilla/UiNoticeStripe.js +16 -16
  269. package/vanilla/UiNumberInput.d.ts +1 -1
  270. package/vanilla/UiNumberInput.js +41 -38
  271. package/vanilla/UiPageHeader.d.ts +1 -1
  272. package/vanilla/UiPageHeader.js +17 -15
  273. package/vanilla/UiPagination.d.ts +1 -1
  274. package/vanilla/UiPagination.js +53 -44
  275. package/vanilla/UiPopover.d.ts +1 -1
  276. package/vanilla/UiPopover.js +13 -11
  277. package/vanilla/UiRadio.d.ts +1 -1
  278. package/vanilla/UiRadio.js +25 -23
  279. package/vanilla/UiRadioGroup.d.ts +1 -1
  280. package/vanilla/UiRadioGroup.js +33 -36
  281. package/vanilla/UiReel.d.ts +1 -1
  282. package/vanilla/UiReel.js +20 -12
  283. package/vanilla/UiScrollArea.d.ts +1 -1
  284. package/vanilla/UiScrollArea.js +13 -11
  285. package/vanilla/UiSearchResultRow.d.ts +1 -1
  286. package/vanilla/UiSearchResultRow.js +21 -20
  287. package/vanilla/UiSearchShell.d.ts +1 -1
  288. package/vanilla/UiSearchShell.js +16 -14
  289. package/vanilla/UiSection.d.ts +1 -1
  290. package/vanilla/UiSection.js +48 -45
  291. package/vanilla/UiSegmentedControl.d.ts +2 -2
  292. package/vanilla/UiSegmentedControl.js +52 -47
  293. package/vanilla/UiSelect.d.ts +1 -1
  294. package/vanilla/UiSelect.js +17 -21
  295. package/vanilla/UiSeparator.d.ts +1 -1
  296. package/vanilla/UiSeparator.js +12 -12
  297. package/vanilla/UiSidebar.d.ts +1 -1
  298. package/vanilla/UiSidebar.js +17 -15
  299. package/vanilla/UiSiteHeader.d.ts +1 -1
  300. package/vanilla/UiSiteHeader.js +25 -23
  301. package/vanilla/UiSkeleton.d.ts +1 -1
  302. package/vanilla/UiSkeleton.js +21 -20
  303. package/vanilla/UiSlider.d.ts +1 -1
  304. package/vanilla/UiSlider.js +50 -47
  305. package/vanilla/UiSpinner.d.ts +1 -1
  306. package/vanilla/UiSpinner.js +34 -27
  307. package/vanilla/UiStack.d.ts +1 -1
  308. package/vanilla/UiStack.js +12 -12
  309. package/vanilla/UiStatusMessage.d.ts +1 -1
  310. package/vanilla/UiStatusMessage.js +22 -21
  311. package/vanilla/UiSwatch.d.ts +1 -1
  312. package/vanilla/UiSwatch.js +20 -17
  313. package/vanilla/UiSwitch.d.ts +1 -1
  314. package/vanilla/UiSwitch.js +25 -23
  315. package/vanilla/UiSwitcher.d.ts +1 -1
  316. package/vanilla/UiSwitcher.js +13 -11
  317. package/vanilla/UiTable.d.ts +1 -1
  318. package/vanilla/UiTable.js +13 -11
  319. package/vanilla/UiTabs.d.ts +1 -1
  320. package/vanilla/UiTabs.js +39 -28
  321. package/vanilla/UiText.d.ts +1 -1
  322. package/vanilla/UiText.js +128 -125
  323. package/vanilla/UiTextarea.d.ts +1 -1
  324. package/vanilla/UiTextarea.js +27 -39
  325. package/vanilla/UiTimeField.d.ts +1 -1
  326. package/vanilla/UiTimeField.js +42 -40
  327. package/vanilla/UiTimePicker.d.ts +1 -1
  328. package/vanilla/UiTimePicker.js +105 -102
  329. package/vanilla/UiToast.d.ts +1 -1
  330. package/vanilla/UiToast.js +14 -14
  331. package/vanilla/UiToastRegion.d.ts +1 -1
  332. package/vanilla/UiToastRegion.js +61 -31
  333. package/vanilla/UiTooltip.d.ts +1 -1
  334. package/vanilla/UiTooltip.js +17 -14
  335. package/vanilla/UiTopBar.d.ts +1 -1
  336. package/vanilla/UiTopBar.js +24 -22
  337. package/vanilla/UiTree.d.ts +1 -1
  338. package/vanilla/UiTree.js +17 -12
  339. package/vanilla/UiTreeItem.d.ts +1 -1
  340. package/vanilla/UiTreeItem.js +73 -79
  341. package/vanilla/UiWizard.d.ts +1 -1
  342. package/vanilla/UiWizard.js +61 -40
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, clearRegion, KeyedList, NONCONFORMING, readIndex, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, computedCycle, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, readonlyView, checkBoolean, checkFormat, checkList, checkObject, checkRecord, checkString, checkUnknown, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, checkedReferenceValue, equalValue, buildTemplate, clearRegion, KeyedList, NONCONFORMING, readIndex, readMember, textCall, toAttribute, toText, trackContainer, truthy, truthyValue, writeAttribute, computedCycle, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, readonlyView, checkBoolean, checkFormat, checkList, checkObject, checkRecord, checkString, checkUnknown, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor-link-form/ui-editor-link-form.js";
4
4
  import "../styles/ui-editor-link-form.css";
5
5
 
@@ -15,6 +15,7 @@ const T8 = ["ui-icon",["slot","trailing","name","check"]];
15
15
  const T9 = ["",[],"\n ",["ui-checkbox",["size","sm","data-link-new-tab",""],"Open in new tab"],"\n "];
16
16
  const T10 = ["",[],"\n ",["ui-form-field",[],["label",["slot","label"],"Text"],["ui-input",["data-link-text","","size","sm"]]],"\n "];
17
17
  const T11 = ["ui-text",["size","sm","tone","danger","role","alert"],0];
18
+ const RC0 = ["s", "string"];
18
19
  let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11;
19
20
  const emptyDirty = new Map();
20
21
  const S = { n: ["base","heading","fieldLabel"], t: ["s","?","?"], f: import.meta.url, g: "ui-editor-link-form", k: 1, d: { "destination": [detailCheck(checkObject([["value", checkString, false]], false)), true, true, false], "text": [detailCheck(checkObject([["text", checkString, false]], false)), true, true, false], "new-tab": [detailCheck(checkObject([["newTab", checkBoolean, false]], false)), true, true, false], "choose": [detailCheck(checkObject([["id", checkString, false]], false)), true, true, false], "clear": [detailCheck(checkRecord(checkUnknown)), true, true, false], "save": [detailCheck(checkRecord(checkUnknown)), true, true, false], "dismiss": [detailCheck(checkRecord(checkUnknown)), true, true, false] }, x: dispatchDeclared, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs, i: ["ui-editor-link-form"] };
@@ -22,12 +23,9 @@ const D = { g: "ui-editor-link-form", props: { "autofocus": { "required":false,"
22
23
  const C = (host) => activateModule(controller, host);
23
24
 
24
25
  export function createUiEditorLinkForm(options = {}, html) {
25
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
26
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
27
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["autofocus","error","existing","mode","new-tab","placeholder","results","searchable","selected","status","text","text-editable","value"].includes(name)));
26
28
  const element = document.createElement("form");
27
- for (const [name, value] of Object.entries(attributes)) {
28
- if (value === null || value === undefined || value === false) continue;
29
- element.setAttribute(name, value === true ? "" : String(value));
30
- }
31
29
  if (!element.hasAttribute("aria-label")) element.setAttribute("aria-label", "Edit link");
32
30
  element.setAttribute("component", "ui-editor-link-form");
33
31
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
@@ -61,7 +59,7 @@ export function createUiEditorLinkForm(options = {}, html) {
61
59
  };
62
60
  const p1 = (r, c, d) => {
63
61
  if (c & 1073741888) {
64
- const x0 = readIndex({ "true": "search", "false": "link" }, textCall("concat", [(v[6] === "target")]));
62
+ const x0 = readIndex({ "true": "search", "false": "link" }, textCall("concat", [equalValue(v[6], "target")]));
65
63
  if (x0 !== NONCONFORMING) {
66
64
  const s0 = toAttribute(x0, "name");
67
65
  if (s0 !== r.v0) writeAttribute(r.a0, "name", r.v0 = s0);
@@ -84,7 +82,7 @@ export function createUiEditorLinkForm(options = {}, html) {
84
82
  const s3 = toAttribute(x3, "value");
85
83
  if (s3 !== r.v3) writeAttribute(r.a1, "value", r.v3 = s3);
86
84
  }
87
- if (c & 32768 && !((v[15] !== "")) !== !r.b0) {
85
+ if (c & 32768 && !(truthy(equalValue(v[15], "", true))) !== !r.b0) {
88
86
  if (r.b0) { r.b0 = undefined; clearRegion(r.a2, r.e0); }
89
87
  else { r.b0 = m2(d); r.e0.before(r.b0.n); }
90
88
  } else if (r.b0 !== undefined) p2(r.b0, c, d);
@@ -132,7 +130,7 @@ export function createUiEditorLinkForm(options = {}, html) {
132
130
  return r;
133
131
  };
134
132
  const p4 = (r, c, d) => {
135
- if (c & 4096 && !((v[12] !== "")) !== !r.b0) {
133
+ if (c & 4096 && !(truthy(equalValue(v[12], "", true))) !== !r.b0) {
136
134
  if (r.b0) { r.b0 = undefined; clearRegion(r.a0, r.e0); }
137
135
  else { r.b0 = m5(d); r.e0.before(r.b0.n); }
138
136
  } else if (r.b0 !== undefined) p5(r.b0, c, d);
@@ -167,27 +165,39 @@ export function createUiEditorLinkForm(options = {}, html) {
167
165
  const o = r.i;
168
166
  if (c & 1073741824) r.w = 0;
169
167
  if (c & 1073743872) {
170
- const x0 = (readMember(o, "id") === v[11]);
171
- const s0 = toAttribute(x0, "selected");
172
- if (s0 !== r.v0) writeAttribute(r.n, "selected", r.v0 = s0);
168
+ const x0 = equalValue(checkedReferenceValue(S, readMember(o, "id"), RC0, "expression:$result.id = $selected:result.id", "result.id"), v[11]);
169
+ if (x0 !== NONCONFORMING) {
170
+ const s0 = toAttribute(x0, "selected");
171
+ if (s0 !== r.v0) writeAttribute(r.n, "selected", r.v0 = s0);
172
+ }
173
173
  }
174
174
  if (c & 1073741824) {
175
- const x1 = trackContainer(r, readMember(o, "id"));
176
- const s1 = toAttribute(x1, "data-link-id");
177
- if (s1 !== r.v1) writeAttribute(r.n, "data-link-id", r.v1 = s1);
178
- const x2 = trackContainer(r, readMember(o, "label"));
179
- const s2 = toAttribute(x2, "title");
180
- if (s2 !== r.v2) writeAttribute(r.a1, "title", r.v2 = s2);
181
- const s3 = toText(x2);
182
- if (s3 !== r.v3) r.a2.data = r.v3 = s3;
175
+ const x1 = trackContainer(r, checkedReferenceValue(S, readMember(o, "id"), RC0, "expression:$result.id:result.id", "result.id"));
176
+ if (x1 !== NONCONFORMING) {
177
+ const s1 = toAttribute(x1, "data-link-id");
178
+ if (s1 !== r.v1) writeAttribute(r.n, "data-link-id", r.v1 = s1);
179
+ }
180
+ const x2 = trackContainer(r, checkedReferenceValue(S, readMember(o, "label"), RC0, "expression:$result.label:result.label", "result.label"));
181
+ if (x2 !== NONCONFORMING) {
182
+ const s2 = toAttribute(x2, "title");
183
+ if (s2 !== r.v2) writeAttribute(r.a1, "title", r.v2 = s2);
184
+ }
185
+ if (x2 !== NONCONFORMING) {
186
+ const s3 = toText(x2);
187
+ if (s3 !== r.v3) r.a2.data = r.v3 = s3;
188
+ }
183
189
  }
184
- if (c & 1073741824 && !(truthy(trackContainer(r, readMember(o, "detail")))) !== !r.b0) {
185
- if (r.b0) { r.b0 = undefined; clearRegion(r.a3, r.e0); }
186
- else { r.b0 = m7(d, undefined, r); r.e0.before(r.b0.n); }
190
+ let t0;
191
+ if (c & 1073741824 && (t0 = truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(o, "detail"), RC0, "expression:$result.detail:result.detail", "result.detail")))) !== NONCONFORMING && !t0 !== !r.b0) {
192
+ r.b0 = undefined;
193
+ clearRegion(r.a3, r.e0);
194
+ if (t0) { r.b0 = m7(d, undefined, r); r.e0.before(r.b0.n); }
187
195
  } else if (r.b0 !== undefined) p7(r.b0, c, d);
188
- if (c & 1073743872 && !((readMember(o, "id") === v[11])) !== !r.b1) {
189
- if (r.b1) { r.b1 = undefined; clearRegion(r.a4, r.e1); }
190
- else { r.b1 = m8(d); r.e1.before(r.b1.n); }
196
+ let t1;
197
+ if (c & 1073743872 && (t1 = truthyValue(equalValue(checkedReferenceValue(S, readMember(o, "id"), RC0, "expression:$result.id = $selected:result.id", "result.id"), v[11]))) !== NONCONFORMING && !t1 !== !r.b1) {
198
+ r.b1 = undefined;
199
+ clearRegion(r.a4, r.e1);
200
+ if (t1) { r.b1 = m8(d); r.e1.before(r.b1.n); }
191
201
  } else if (r.b1 !== undefined) p8(r.b1, c, d);
192
202
  };
193
203
  const m7 = (d, o, u) => {
@@ -200,11 +210,15 @@ export function createUiEditorLinkForm(options = {}, html) {
200
210
  const p7 = (r, c, d) => {
201
211
  if (c & 1073741824) {
202
212
  r.w = 0;
203
- const x0 = trackContainer(r, readMember(r.u.i, "detail"));
204
- const s0 = toAttribute(x0, "title");
205
- if (s0 !== r.v0) writeAttribute(r.n, "title", r.v0 = s0);
206
- const s1 = toText(x0);
207
- if (s1 !== r.v1) r.a1.data = r.v1 = s1;
213
+ const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "detail"), RC0, "expression:$result.detail:result.detail", "result.detail"));
214
+ if (x0 !== NONCONFORMING) {
215
+ const s0 = toAttribute(x0, "title");
216
+ if (s0 !== r.v0) writeAttribute(r.n, "title", r.v0 = s0);
217
+ }
218
+ if (x0 !== NONCONFORMING) {
219
+ const s1 = toText(x0);
220
+ if (s1 !== r.v1) r.a1.data = r.v1 = s1;
221
+ }
208
222
  }
209
223
  };
210
224
  const m8 = (d) => {
@@ -271,54 +285,61 @@ export function createUiEditorLinkForm(options = {}, html) {
271
285
  }
272
286
  };
273
287
  const p0 = (r, c, d) => {
288
+ if (c === -1) {
289
+ resetForwardedAttributes(r.n, attributes, r.v0);
290
+ r.v0 = forwardAttributes(r.n, attributes);
291
+ const x0 = "Edit link";
292
+ const s1 = toAttribute(x0, "aria-label");
293
+ writeAttribute(r.n, "aria-label", r.v1 = s1);
294
+ }
274
295
  if (c & 1073741856) {
275
- const x0 = g(1);
276
- if (x0 !== NONCONFORMING) {
277
- const s0 = toText(x0);
278
- if (s0 !== r.v0) r.a0.data = r.v0 = s0;
296
+ const x1 = g(1);
297
+ if (x1 !== NONCONFORMING) {
298
+ const s2 = toText(x1);
299
+ if (s2 !== r.v2) r.a1.data = r.v2 = s2;
279
300
  }
280
301
  }
281
302
  if (c & 16) {
282
- const x1 = (v[4] !== "");
283
- const s1 = toAttribute(x1, "invalid");
284
- if (s1 !== r.v1) writeAttribute(r.a1, "invalid", r.v1 = s1);
303
+ const x2 = equalValue(v[4], "", true);
304
+ const s3 = toAttribute(x2, "invalid");
305
+ if (s3 !== r.v3) writeAttribute(r.a2, "invalid", r.v3 = s3);
285
306
  }
286
307
  if (c & 1) {
287
- const x2 = textCall("concat", [v[0], "-destination"]);
288
- if (x2 !== NONCONFORMING) {
289
- const s2 = toAttribute(x2, "for");
290
- if (s2 !== r.v2) writeAttribute(r.a2, "for", r.v2 = s2);
308
+ const x3 = textCall("concat", [v[0], "-destination"]);
309
+ if (x3 !== NONCONFORMING) {
310
+ const s4 = toAttribute(x3, "for");
311
+ if (s4 !== r.v4) writeAttribute(r.a3, "for", r.v4 = s4);
291
312
  }
292
313
  }
293
314
  if (c & 1073742848) {
294
- const x3 = g(2);
295
- if (x3 !== NONCONFORMING) {
296
- const s3 = toText(x3);
297
- if (s3 !== r.v3) r.a3.data = r.v3 = s3;
315
+ const x4 = g(2);
316
+ if (x4 !== NONCONFORMING) {
317
+ const s5 = toText(x4);
318
+ if (s5 !== r.v5) r.a4.data = r.v5 = s5;
298
319
  }
299
320
  }
300
321
  if (c & 1024 && !(truthy(v[10])) !== !r.b0) {
301
- if (r.b0) { r.b0 = undefined; clearRegion(r.a4, r.e0); }
322
+ if (r.b0) { r.b0 = undefined; clearRegion(r.a5, r.e0); }
302
323
  else { r.b0 = m1(d); r.e0.before(r.b0.n); }
303
324
  } else if (r.b0 !== undefined) p1(r.b0, c, d);
304
325
  if (c & 1024 && !(!truthy(v[10])) !== !r.b1) {
305
- if (r.b1) { r.b1 = undefined; clearRegion(r.a5, r.e1); }
326
+ if (r.b1) { r.b1 = undefined; clearRegion(r.a6, r.e1); }
306
327
  else { r.b1 = m3(d); r.e1.before(r.b1.n); }
307
328
  } else if (r.b1 !== undefined) p3(r.b1, c, d);
308
- if (c & 64 && !((v[6] === "target")) !== !r.b2) {
309
- if (r.b2) { r.b2 = undefined; clearRegion(r.a6, r.e2); }
329
+ if (c & 64 && !(truthy(equalValue(v[6], "target"))) !== !r.b2) {
330
+ if (r.b2) { r.b2 = undefined; clearRegion(r.a7, r.e2); }
310
331
  else { r.b2 = m4(d); r.e2.before(r.b2.n); }
311
332
  } else if (r.b2 !== undefined) p4(r.b2, c, d);
312
- if (c & 64 && !((v[6] === "url")) !== !r.b3) {
313
- if (r.b3) { r.b3 = undefined; clearRegion(r.a7, r.e3); }
333
+ if (c & 64 && !(truthy(equalValue(v[6], "url"))) !== !r.b3) {
334
+ if (r.b3) { r.b3 = undefined; clearRegion(r.a8, r.e3); }
314
335
  else { r.b3 = m9(d); r.e3.before(r.b3.n); }
315
336
  } else if (r.b3 !== undefined) p9(r.b3, c, d);
316
337
  if (c & 16384 && !(truthy(v[14])) !== !r.b4) {
317
- if (r.b4) { r.b4 = undefined; clearRegion(r.a8, r.e4); }
338
+ if (r.b4) { r.b4 = undefined; clearRegion(r.a9, r.e4); }
318
339
  else { r.b4 = m10(d); r.e4.before(r.b4.n); }
319
340
  } else if (r.b4 !== undefined) p10(r.b4, c, d);
320
- if (c & 16 && !((v[4] !== "")) !== !r.b5) {
321
- if (r.b5) { r.b5 = undefined; clearRegion(r.a9, r.e5); }
341
+ if (c & 16 && !(truthy(equalValue(v[4], "", true))) !== !r.b5) {
342
+ if (r.b5) { r.b5 = undefined; clearRegion(r.a10, r.e5); }
322
343
  else { r.b5 = m11(d); r.e5.before(r.b5.n); }
323
344
  } else if (r.b5 !== undefined) p11(r.b5, c, d);
324
345
  };
@@ -335,9 +356,10 @@ export function createUiEditorLinkForm(options = {}, html) {
335
356
  const t10 = t9.nextSibling.nextSibling.nextSibling;
336
357
  const t11 = t3.nextSibling.nextSibling;
337
358
  const t12 = t11.nextSibling.nextSibling.nextSibling;
338
- const R = { a0: t2, a1: t4, a2: t5, a3: t6, v0: "", v1: null, v2: null, v3: "", a4: t7, e0: t7.nextSibling, b0: undefined, a5: t8, e1: t8.nextSibling, b1: undefined, a6: t9, e2: t9.nextSibling, b2: undefined, a7: t10, e3: t10.nextSibling, b3: undefined, a8: t11, e4: t11.nextSibling, b4: undefined, a9: t12, e5: t12.nextSibling, b5: undefined };
359
+ const R = { n: element, a1: t2, a2: t4, a3: t5, a4: t6, v0: undefined, v1: undefined, v2: "", v3: null, v4: null, v5: "", a5: t7, e0: t7.nextSibling, b0: undefined, a6: t8, e1: t8.nextSibling, b1: undefined, a7: t9, e2: t9.nextSibling, b2: undefined, a8: t10, e3: t10.nextSibling, b3: undefined, a9: t11, e4: t11.nextSibling, b4: undefined, a10: t12, e5: t12.nextSibling, b5: undefined };
339
360
  const I = { B };
340
361
  I.R = new Set();
362
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
341
363
  attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, X, I);
342
364
  manageProps(I);
343
365
  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 UiEditorMentionMenuEventMap {
3
3
  highlight: CustomEvent<{ readonly index: number; readonly value: string }>;
4
4
  select: CustomEvent<{ readonly index: number; readonly value: string }>;
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, IndexedList, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkInteger, checkList, checkNumber, checkObject, 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, checkedReferenceValue, equalValue, buildTemplate, clearRegion, NONCONFORMING, readMember, textCall, toAttribute, toText, trackContainer, truthy, truthyValue, writeAttribute, dispatchDeclared, detailCheck, dispose, IndexedList, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkInteger, checkList, checkNumber, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-editor-mention-menu/ui-editor-mention-menu.js";
4
4
  import "../styles/ui-editor-mention-menu.css";
5
5
 
@@ -11,6 +11,8 @@ const T4 = ["li",["class","item","role","option"],"\n ",["span",["class",
11
11
  const T5 = ["span",["class","detail"],0];
12
12
  const T6 = ["",[]];
13
13
  const T7 = ["",[]];
14
+ const RC0 = ["n", "number"];
15
+ const RC1 = ["s", "string"];
14
16
  let P0, P1, P2, P3, P4, P5, P6, P7;
15
17
  const emptyDirty = new Map();
16
18
  const S = { n: ["visible","rows","searching","active","prefix"], t: ["b",["l",["o",["id","s","label","s","detail","s","initials","s"]]],"b","i","s"], f: import.meta.url, g: "ui-editor-mention-menu", d: { "highlight": [detailCheck(checkObject([["index", checkInteger, false], ["value", checkString, false]], false)), true, true, false], "select": [detailCheck(checkObject([["index", checkInteger, false], ["value", checkString, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [false, [], false, 0, "ui-editor-mention-menu"] };
@@ -18,12 +20,9 @@ const D = { g: "ui-editor-mention-menu", props: { "anchorRect": { "required":fal
18
20
  const C = (host) => activateModule(controller, host);
19
21
 
20
22
  export function createUiEditorMentionMenu(options = {}, html) {
21
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
23
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
24
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["anchor-rect","items","label","loading","loading-label","open","query","selected-index"].includes(name)));
22
25
  const element = document.createElement("div");
23
- for (const [name, value] of Object.entries(attributes)) {
24
- if (value === null || value === undefined || value === false) continue;
25
- element.setAttribute(name, value === true ? "" : String(value));
26
- }
27
26
  if (!element.hasAttribute("role")) element.setAttribute("role", "listbox");
28
27
  element.setAttribute("component", "ui-editor-mention-menu");
29
28
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
@@ -82,38 +81,52 @@ export function createUiEditorMentionMenu(options = {}, html) {
82
81
  const o = r.i;
83
82
  if (c & 1073741824) r.w = 0;
84
83
  if (c & -1073741808) {
85
- const x0 = textCall("concat", [v[4], "-option-", r.j]);
84
+ const x0 = textCall("concat", [v[4], "-option-", checkedReferenceValue(S, r.j, RC0, "expression:concat($prefix, '-option-', $index):index", "index")]);
86
85
  if (x0 !== NONCONFORMING) {
87
86
  const s0 = toAttribute(x0, "id");
88
87
  if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
89
88
  }
90
89
  }
91
90
  if (c & -1073741816) {
92
- const x1 = (r.j === v[3]);
93
- const s1 = x1;
94
- if (s1 !== r.v1) r.n.classList.toggle("active", r.v1 = s1);
95
- const s2 = toAttribute(x1, "aria-selected");
96
- if (s2 !== r.v2) writeAttribute(r.n, "aria-selected", r.v2 = s2);
91
+ const x1 = equalValue(checkedReferenceValue(S, r.j, RC0, "expression:$index = $active:index", "index"), v[3]);
92
+ if (x1 !== NONCONFORMING) {
93
+ const s1 = truthy(x1);
94
+ if (s1 !== r.v1) r.n.classList.toggle("active", r.v1 = s1);
95
+ }
96
+ if (x1 !== NONCONFORMING) {
97
+ const s2 = toAttribute(x1, "aria-selected");
98
+ if (s2 !== r.v2) writeAttribute(r.n, "aria-selected", r.v2 = s2);
99
+ }
97
100
  }
98
101
  if (c & -1073741824) {
99
- const x2 = r.j;
100
- const s3 = toAttribute(x2, "data-index");
101
- if (s3 !== r.v3) writeAttribute(r.n, "data-index", r.v3 = s3);
102
+ const x2 = checkedReferenceValue(S, r.j, RC0, "expression:$index:index", "index");
103
+ if (x2 !== NONCONFORMING) {
104
+ const s3 = toAttribute(x2, "data-index");
105
+ if (s3 !== r.v3) writeAttribute(r.n, "data-index", r.v3 = s3);
106
+ }
102
107
  }
103
108
  if (c & 1073741824) {
104
- const x3 = trackContainer(r, readMember(o, "id"));
105
- const s4 = toAttribute(x3, "data-value");
106
- if (s4 !== r.v4) writeAttribute(r.n, "data-value", r.v4 = s4);
107
- const x4 = trackContainer(r, readMember(o, "initials"));
108
- const s5 = toText(x4);
109
- if (s5 !== r.v5) r.a1.data = r.v5 = s5;
110
- const x5 = trackContainer(r, readMember(o, "label"));
111
- const s6 = toText(x5);
112
- if (s6 !== r.v6) r.a2.data = r.v6 = s6;
109
+ const x3 = trackContainer(r, checkedReferenceValue(S, readMember(o, "id"), RC1, "expression:$row.id:row.id", "row.id"));
110
+ if (x3 !== NONCONFORMING) {
111
+ const s4 = toAttribute(x3, "data-value");
112
+ if (s4 !== r.v4) writeAttribute(r.n, "data-value", r.v4 = s4);
113
+ }
114
+ const x4 = trackContainer(r, checkedReferenceValue(S, readMember(o, "initials"), RC1, "expression:$row.initials:row.initials", "row.initials"));
115
+ if (x4 !== NONCONFORMING) {
116
+ const s5 = toText(x4);
117
+ if (s5 !== r.v5) r.a1.data = r.v5 = s5;
118
+ }
119
+ const x5 = trackContainer(r, checkedReferenceValue(S, readMember(o, "label"), RC1, "expression:$row.label:row.label", "row.label"));
120
+ if (x5 !== NONCONFORMING) {
121
+ const s6 = toText(x5);
122
+ if (s6 !== r.v6) r.a2.data = r.v6 = s6;
123
+ }
113
124
  }
114
- if (c & 1073741824 && !(truthy(trackContainer(r, readMember(o, "detail")))) !== !r.b0) {
115
- if (r.b0) { r.b0 = undefined; clearRegion(r.a3, r.e0); }
116
- else { r.b0 = m5(d, undefined, r); r.e0.before(r.b0.n); }
125
+ let t0;
126
+ if (c & 1073741824 && (t0 = truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(o, "detail"), RC1, "expression:$row.detail:row.detail", "row.detail")))) !== NONCONFORMING && !t0 !== !r.b0) {
127
+ r.b0 = undefined;
128
+ clearRegion(r.a3, r.e0);
129
+ if (t0) { r.b0 = m5(d, undefined, r); r.e0.before(r.b0.n); }
117
130
  } else if (r.b0 !== undefined) p5(r.b0, c, d);
118
131
  };
119
132
  const m5 = (d, o, u) => {
@@ -126,9 +139,11 @@ export function createUiEditorMentionMenu(options = {}, html) {
126
139
  const p5 = (r, c, d) => {
127
140
  if (c & 1073741824) {
128
141
  r.w = 0;
129
- const x0 = trackContainer(r, readMember(r.u.i, "detail"));
130
- const s0 = toText(x0);
131
- if (s0 !== r.v0) r.a0.data = r.v0 = s0;
142
+ const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "detail"), RC1, "expression:$row.detail:row.detail", "row.detail"));
143
+ if (x0 !== NONCONFORMING) {
144
+ const s0 = toText(x0);
145
+ if (s0 !== r.v0) r.a0.data = r.v0 = s0;
146
+ }
132
147
  }
133
148
  };
134
149
  const m6 = (d) => {
@@ -148,16 +163,22 @@ export function createUiEditorMentionMenu(options = {}, html) {
148
163
  const p7 = (r, c, d) => {
149
164
  };
150
165
  const p0 = (r, c, d) => {
151
- if (c & 256) {
152
- const x0 = v[8];
153
- const s0 = toAttribute(x0, "aria-busy");
154
- if (s0 !== r.v0) writeAttribute(r.n, "aria-busy", r.v0 = s0);
155
- }
156
- if (c & 1) {
157
- const x1 = !v[0];
158
- const s1 = toAttribute(x1, "hidden");
159
- if (s1 !== r.v1) writeAttribute(r.n, "hidden", r.v1 = s1);
166
+ if (c & 257) {
167
+ resetForwardedAttributes(r.n, attributes, r.v0);
168
+ r.v0 = forwardAttributes(r.n, attributes);
169
+ const x0 = "listbox";
170
+ const s1 = toAttribute(x0, "role");
171
+ writeAttribute(r.n, "role", r.v1 = s1);
172
+ const x1 = v[8];
173
+ const s2 = toAttribute(x1, "aria-busy");
174
+ writeAttribute(r.n, "aria-busy", r.v2 = s2);
175
+ const x2 = !v[0];
176
+ const s3 = toAttribute(x2, "hidden");
177
+ writeAttribute(r.n, "hidden", r.v3 = s3);
160
178
  }
179
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "header", J, false, undefined, d);
180
+ 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); } }
181
+ else if (r.b0 !== undefined) p1(r.b0, c, d);
161
182
  if (c & 4 && !(v[2]) !== !r.b1) {
162
183
  if (r.b1) { r.b1 = undefined; clearRegion(r.a2, r.e1); }
163
184
  else { r.b1 = m2(d); r.e1.before(r.b1.n); }
@@ -166,9 +187,6 @@ export function createUiEditorMentionMenu(options = {}, html) {
166
187
  if (r.b2) { dispose(r.b2); r.b2 = undefined; clearRegion(r.a3, r.e2); }
167
188
  else { r.b2 = m3(d); r.e2.before(r.b2.n); }
168
189
  } else if (r.b2 !== undefined) p3(r.b2, c, d);
169
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "header", J, false, undefined, d);
170
- 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); } }
171
- else if (r.b0 !== undefined) p1(r.b0, c, d);
172
190
  if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a5, r.e3, "empty", J, false, undefined, d);
173
191
  if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m7(d); at.before(r.b3.n); } }
174
192
  else if (r.b3 !== undefined) p7(r.b3, c, d);
@@ -179,10 +197,11 @@ export function createUiEditorMentionMenu(options = {}, html) {
179
197
  const t3 = t2.nextSibling.nextSibling.nextSibling;
180
198
  const t4 = t3.nextSibling.nextSibling.nextSibling;
181
199
  const t5 = t4.firstChild;
182
- const R = { n: element, v0: undefined, v1: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, a5: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
200
+ const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, a5: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
183
201
  const I = { B };
184
202
  const J = project(I, children, slots);
185
203
  I.R = new Set();
204
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
186
205
  attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
187
206
  manageProps(I);
188
207
  I.r["empty"] = t4;
@@ -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 UiEditorMentionMenuItemEventMap {
3
3
  }
4
4
  export interface UiEditorMentionMenuItemElement extends HTMLLIElement {
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, clearRegion, toAttribute, toText, truthy, writeAttribute, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, clearRegion, toAttribute, toText, truthy, writeAttribute, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkString, forwardAttributes, resetForwardedAttributes, defineComponent } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-editor-mention-menu-item.css";
4
4
 
5
5
  const T0 = ["",[],"\n ",["span",["class","avatar","aria-hidden","true"],4],"\n ",["span",["class","body"],["span",["class","label"],4],1],"\n "];
@@ -11,12 +11,9 @@ const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-mention-menu-item",
11
11
  const D = { g: "ui-editor-mention-menu-item", props: { "detail": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "initials": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "value": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" } } };
12
12
 
13
13
  export function createUiEditorMentionMenuItem(options = {}, html) {
14
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
14
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
15
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["detail","initials","value"].includes(name)));
15
16
  const element = document.createElement("li");
16
- for (const [name, value] of Object.entries(attributes)) {
17
- if (value === null || value === undefined || value === false) continue;
18
- element.setAttribute(name, value === true ? "" : String(value));
19
- }
20
17
  if (!element.hasAttribute("role")) element.setAttribute("role", "option");
21
18
  if (!element.hasAttribute("tabindex")) element.setAttribute("tabindex", "-1");
22
19
  element.setAttribute("component", "ui-editor-mention-menu-item");
@@ -61,20 +58,28 @@ export function createUiEditorMentionMenuItem(options = {}, html) {
61
58
  };
62
59
  const p0 = (r, c, d) => {
63
60
  if (c & 4) {
64
- const x0 = v[2];
65
- const s0 = toAttribute(x0, "data-value");
66
- if (s0 !== r.v0) writeAttribute(r.n, "data-value", r.v0 = s0);
61
+ resetForwardedAttributes(r.n, attributes, r.v0);
62
+ r.v0 = forwardAttributes(r.n, attributes);
63
+ const x0 = "option";
64
+ const s1 = toAttribute(x0, "role");
65
+ writeAttribute(r.n, "role", r.v1 = s1);
66
+ const x1 = "-1";
67
+ const s2 = toAttribute(x1, "tabindex");
68
+ writeAttribute(r.n, "tabindex", r.v2 = s2);
69
+ const x2 = v[2];
70
+ const s3 = toAttribute(x2, "data-value");
71
+ writeAttribute(r.n, "data-value", r.v3 = s3);
67
72
  }
68
- if (c & 1 && !(truthy(v[0])) !== !r.b2) {
69
- if (r.b2) { r.b2 = undefined; clearRegion(r.a3, r.e2); }
70
- else { r.b2 = m3(d); r.e2.before(r.b2.n); }
71
- } else if (r.b2 !== undefined) p3(r.b2, c, d);
72
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "start", J, true, undefined, d);
73
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "start", J, true, undefined, d, r.z ??= []);
73
74
  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); } }
74
75
  else if (r.b0 !== undefined) p1(r.b0, c, d);
75
76
  if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "", J, false, undefined, d);
76
77
  if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m2(d); at.before(r.b1.n); } }
77
78
  else if (r.b1 !== undefined) p2(r.b1, c, d);
79
+ if (c & 1 && !(truthy(v[0])) !== !r.b2) {
80
+ if (r.b2) { r.b2 = undefined; clearRegion(r.a3, r.e2); }
81
+ else { r.b2 = m3(d); r.e2.before(r.b2.n); }
82
+ } else if (r.b2 !== undefined) p3(r.b2, c, d);
78
83
  };
79
84
  const t0 = element.firstChild.nextSibling;
80
85
  const t1 = t0.firstChild;
@@ -82,9 +87,10 @@ export function createUiEditorMentionMenuItem(options = {}, html) {
82
87
  const t3 = t2.firstChild;
83
88
  const t4 = t3.firstChild;
84
89
  const t5 = t3.nextSibling;
85
- const R = { n: element, v0: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a2: t4, e1: t4.nextSibling, b1: undefined, f1: undefined, a3: t5, e2: t5.nextSibling, b2: undefined };
90
+ const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a2: t4, e1: t4.nextSibling, b1: undefined, f1: undefined, a3: t5, e2: t5.nextSibling, b2: undefined };
86
91
  const I = { B };
87
92
  const J = project(I, children, slots);
93
+ I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
88
94
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
89
95
  manageProps(I);
90
96
  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 UiEditorSlashMenuEventMap {
3
3
  highlight: CustomEvent<{ readonly index: number; readonly value: string }>;
4
4
  select: CustomEvent<{ readonly index: number; readonly value: string }>;