@threadlabs/looma 0.47.5 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (933) hide show
  1. package/README.md +39 -16
  2. package/components/shared/input-modality.d.ts +2 -0
  3. package/components/shared/input-modality.js +2 -0
  4. package/components/shared/overlay.js +9 -0
  5. package/components/ui-card/ui-card.html +8 -0
  6. package/components/ui-compact-content/ui-compact-content.html +8 -0
  7. package/components/ui-compact-content/ui-compact-content.js +1 -0
  8. package/components/ui-compact-editor/ui-compact-editor.css +39 -0
  9. package/components/ui-compact-editor/ui-compact-editor.html +22 -0
  10. package/components/ui-compact-editor/ui-compact-editor.js +30 -0
  11. package/components/ui-compact-mark/ui-compact-mark.html +26 -0
  12. package/components/ui-compact-node/ui-compact-node.html +14 -0
  13. package/components/ui-dialog/ui-dialog.html +4 -1
  14. package/components/ui-editor/ui-editor.css +531 -0
  15. package/components/ui-editor/ui-editor.html +399 -0
  16. package/components/ui-editor/ui-editor.js +87 -0
  17. package/components/ui-editor-chip-editor/ui-editor-chip-editor.html +2 -1
  18. package/components/ui-editor-chip-editor/ui-editor-chip-editor.js +6 -0
  19. package/components/ui-editor-formatting-tools/ui-editor-formatting-tools.html +59 -0
  20. package/components/ui-editor-formatting-tools/ui-editor-formatting-tools.js +44 -0
  21. package/components/ui-editor-link-form/ui-editor-link-form.html +1 -0
  22. package/components/ui-editor-link-form/ui-editor-link-form.js +7 -0
  23. package/components/ui-editor-surface/ui-editor-surface.css +109 -0
  24. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +1 -1
  25. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +7 -4
  26. package/components/ui-menu/ui-menu.html +4 -1
  27. package/components/ui-meter/ui-meter.html +7 -7
  28. package/components/ui-popover/ui-popover.html +4 -1
  29. package/components/ui-radio-group/ui-radio-group.html +3 -1
  30. package/components/ui-radio-group/ui-radio-group.js +5 -0
  31. package/dist/index.js +57 -53
  32. package/docs/README.md +5 -7
  33. package/docs/catalog.json +945 -86
  34. package/docs/catalog.mjs +2 -2
  35. package/docs/framework-examples.d.mts +7 -0
  36. package/docs/framework-examples.mjs +89 -0
  37. package/docs/index.d.ts +1 -1
  38. package/docs/render.mjs +3 -40
  39. package/editor/chunks/content.js +29 -0
  40. package/{vue/chunks/compact.js → editor/chunks/dist.js} +103 -230
  41. package/editor/chunks/expressmark.js +1 -24
  42. package/editor/chunks/extensions.js +63 -455
  43. package/editor/chunks/session.js +61 -0
  44. package/editor/chunks/{ui.js → table-overlay.js} +51 -1
  45. package/editor/compact.d.ts +22 -0
  46. package/editor/compact.js +63 -0
  47. package/editor/components.css +3699 -0
  48. package/editor/document-session.d.ts +274 -0
  49. package/editor/extensions/index.js +2 -2
  50. package/editor/index.d.ts +4 -0
  51. package/editor/index.js +15578 -4
  52. package/editor/session.d.ts +1 -1
  53. package/editor/toolbar-tooltip.d.ts +5 -1
  54. package/editor/ui.js +1 -2
  55. package/package.json +31 -46
  56. package/styles/ui-action-bar.css +1 -1
  57. package/styles/ui-affordance-scope.css +1 -1
  58. package/styles/ui-avatar-group.css +1 -1
  59. package/styles/ui-avatar.css +1 -1
  60. package/styles/ui-badge.css +1 -1
  61. package/styles/ui-breadcrumb-item.css +1 -1
  62. package/styles/ui-breadcrumbs.css +1 -1
  63. package/styles/ui-button.css +1 -1
  64. package/styles/ui-callout.css +1 -1
  65. package/styles/ui-card-group.css +1 -1
  66. package/styles/ui-card.css +9 -1
  67. package/styles/ui-checkbox.css +1 -1
  68. package/styles/ui-cluster.css +1 -1
  69. package/styles/ui-color-picker.css +1 -1
  70. package/styles/ui-combobox.css +1 -1
  71. package/styles/ui-compact-content.css +1 -0
  72. package/styles/ui-compact-editor.css +1 -0
  73. package/styles/ui-compact-mark.css +1 -0
  74. package/styles/ui-compact-node.css +1 -0
  75. package/styles/ui-container.css +1 -1
  76. package/styles/ui-context-menu.css +1 -1
  77. package/styles/ui-cover.css +1 -1
  78. package/styles/ui-curve-editor.css +1 -1
  79. package/styles/ui-cycle-button.css +1 -1
  80. package/styles/ui-description-item.css +1 -1
  81. package/styles/ui-description-list.css +1 -1
  82. package/styles/ui-dialog.css +9 -3
  83. package/styles/ui-disclosure.css +1 -1
  84. package/styles/ui-editable.css +1 -1
  85. package/styles/ui-editor-block-actions.css +1 -1
  86. package/styles/ui-editor-chip-editor.css +1 -1
  87. package/styles/ui-editor-code-language.css +1 -1
  88. package/styles/ui-editor-footnote-editor.css +1 -1
  89. package/styles/ui-editor-formatting-tools.css +1 -0
  90. package/styles/ui-editor-image-toolbar.css +1 -1
  91. package/styles/ui-editor-insert-table-grid.css +1 -1
  92. package/styles/ui-editor-link-card.css +1 -1
  93. package/styles/ui-editor-link-form.css +1 -1
  94. package/styles/ui-editor-mention-menu-item.css +1 -1
  95. package/styles/ui-editor-mention-menu.css +1 -1
  96. package/styles/ui-editor-slash-menu-group.css +1 -1
  97. package/styles/ui-editor-slash-menu-item.css +1 -1
  98. package/styles/ui-editor-slash-menu.css +1 -1
  99. package/styles/ui-editor-surface.css +1 -1
  100. package/styles/ui-editor-table-context-menu.css +1 -1
  101. package/styles/ui-editor-table-overlay.css +1 -1
  102. package/styles/ui-editor-table-toolbar.css +1 -1
  103. package/styles/ui-editor-toolbar.css +1 -1
  104. package/styles/ui-editor.css +1 -0
  105. package/styles/ui-floating-action-button.css +1 -1
  106. package/styles/ui-form-field.css +1 -1
  107. package/styles/ui-grid.css +1 -1
  108. package/styles/ui-icon-button.css +1 -1
  109. package/styles/ui-icon.css +1 -1
  110. package/styles/ui-image.css +1 -1
  111. package/styles/ui-input-group.css +1 -1
  112. package/styles/ui-input.css +1 -1
  113. package/styles/ui-light-editor.css +1 -1
  114. package/styles/ui-list-item.css +1 -1
  115. package/styles/ui-list.css +1 -1
  116. package/styles/ui-listbox.css +1 -1
  117. package/styles/ui-menu-group.css +1 -1
  118. package/styles/ui-menu-item.css +1 -1
  119. package/styles/ui-menu.css +5 -2
  120. package/styles/ui-meter.css +8 -8
  121. package/styles/ui-nav-item.css +1 -1
  122. package/styles/ui-number-input.css +1 -1
  123. package/styles/ui-page-header.css +1 -1
  124. package/styles/ui-pagination.css +1 -1
  125. package/styles/ui-popover.css +5 -2
  126. package/styles/ui-radio-group.css +1 -1
  127. package/styles/ui-radio.css +1 -1
  128. package/styles/ui-reel.css +1 -1
  129. package/styles/ui-scroll-area.css +1 -1
  130. package/styles/ui-search-result-row.css +1 -1
  131. package/styles/ui-search-shell.css +1 -1
  132. package/styles/ui-section.css +1 -1
  133. package/styles/ui-select.css +1 -1
  134. package/styles/ui-separator.css +1 -1
  135. package/styles/ui-sidebar.css +1 -1
  136. package/styles/ui-site-header.css +1 -1
  137. package/styles/ui-skeleton.css +1 -1
  138. package/styles/ui-slider.css +1 -1
  139. package/styles/ui-spinner.css +1 -1
  140. package/styles/ui-stack.css +1 -1
  141. package/styles/ui-status-message.css +1 -1
  142. package/styles/ui-swatch.css +1 -1
  143. package/styles/ui-switch.css +1 -1
  144. package/styles/ui-switcher.css +1 -1
  145. package/styles/ui-table.css +1 -1
  146. package/styles/ui-tabs.css +1 -1
  147. package/styles/ui-text.css +1 -1
  148. package/styles/ui-textarea.css +1 -1
  149. package/styles/ui-toast-region.css +1 -1
  150. package/styles/ui-toast.css +1 -1
  151. package/styles/ui-tooltip.css +1 -1
  152. package/styles/ui-top-bar.css +1 -1
  153. package/styles/ui-tree-item.css +1 -1
  154. package/styles/ui-tree.css +1 -1
  155. package/vanilla/UiActionBar.d.ts +1 -1
  156. package/vanilla/UiActionBar.js +1 -1
  157. package/vanilla/UiAffordanceScope.d.ts +1 -1
  158. package/vanilla/UiAffordanceScope.js +1 -1
  159. package/vanilla/UiAvatar.d.ts +1 -1
  160. package/vanilla/UiAvatar.js +1 -1
  161. package/vanilla/UiAvatarGroup.d.ts +1 -1
  162. package/vanilla/UiAvatarGroup.js +1 -1
  163. package/vanilla/UiBadge.d.ts +1 -1
  164. package/vanilla/UiBadge.js +1 -1
  165. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  166. package/vanilla/UiBreadcrumbItem.js +1 -1
  167. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  168. package/vanilla/UiBreadcrumbs.js +1 -1
  169. package/vanilla/UiButton.d.ts +1 -1
  170. package/vanilla/UiButton.js +1 -1
  171. package/vanilla/UiCallout.d.ts +1 -1
  172. package/vanilla/UiCallout.js +1 -1
  173. package/vanilla/UiCard.d.ts +1 -1
  174. package/vanilla/UiCard.js +1 -1
  175. package/vanilla/UiCardGroup.d.ts +1 -1
  176. package/vanilla/UiCardGroup.js +1 -1
  177. package/vanilla/UiCheckbox.d.ts +1 -1
  178. package/vanilla/UiCheckbox.js +1 -1
  179. package/vanilla/UiCluster.d.ts +1 -1
  180. package/vanilla/UiCluster.js +1 -1
  181. package/vanilla/UiColorPicker.d.ts +1 -1
  182. package/vanilla/UiColorPicker.js +1 -1
  183. package/vanilla/UiCombobox.d.ts +1 -1
  184. package/vanilla/UiCombobox.js +1 -1
  185. package/vanilla/UiCompactContent.d.ts +23 -0
  186. package/vanilla/UiCompactContent.js +51 -0
  187. package/vanilla/UiCompactEditor.d.ts +29 -0
  188. package/vanilla/UiCompactEditor.js +59 -0
  189. package/vanilla/UiCompactMark.d.ts +25 -0
  190. package/vanilla/UiCompactMark.js +206 -0
  191. package/vanilla/UiCompactNode.d.ts +23 -0
  192. package/vanilla/UiCompactNode.js +156 -0
  193. package/vanilla/UiContainer.d.ts +1 -1
  194. package/vanilla/UiContainer.js +1 -1
  195. package/vanilla/UiContextMenu.d.ts +1 -1
  196. package/vanilla/UiContextMenu.js +1 -1
  197. package/vanilla/UiCover.d.ts +1 -1
  198. package/vanilla/UiCover.js +1 -1
  199. package/vanilla/UiCurveEditor.d.ts +1 -1
  200. package/vanilla/UiCurveEditor.js +1 -1
  201. package/vanilla/UiCycleButton.d.ts +1 -1
  202. package/vanilla/UiCycleButton.js +1 -1
  203. package/vanilla/UiDescriptionItem.d.ts +1 -1
  204. package/vanilla/UiDescriptionItem.js +1 -1
  205. package/vanilla/UiDescriptionList.d.ts +1 -1
  206. package/vanilla/UiDescriptionList.js +1 -1
  207. package/vanilla/UiDialog.d.ts +1 -1
  208. package/vanilla/UiDialog.js +1 -1
  209. package/vanilla/UiDisclosure.d.ts +1 -1
  210. package/vanilla/UiDisclosure.js +1 -1
  211. package/vanilla/UiEditable.d.ts +1 -1
  212. package/vanilla/UiEditable.js +1 -1
  213. package/vanilla/UiEditor.d.ts +57 -0
  214. package/vanilla/UiEditor.js +1067 -0
  215. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  216. package/vanilla/UiEditorBlockActions.js +1 -1
  217. package/vanilla/UiEditorChipEditor.d.ts +2 -1
  218. package/vanilla/UiEditorChipEditor.js +10 -10
  219. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  220. package/vanilla/UiEditorCodeLanguage.js +1 -1
  221. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  222. package/vanilla/UiEditorFootnoteEditor.js +1 -1
  223. package/vanilla/UiEditorFormattingTools.d.ts +27 -0
  224. package/vanilla/UiEditorFormattingTools.js +188 -0
  225. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  226. package/vanilla/UiEditorImageToolbar.js +1 -1
  227. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  228. package/vanilla/UiEditorInsertTableGrid.js +1 -1
  229. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  230. package/vanilla/UiEditorLinkCard.js +1 -1
  231. package/vanilla/UiEditorLinkForm.d.ts +2 -1
  232. package/vanilla/UiEditorLinkForm.js +41 -41
  233. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  234. package/vanilla/UiEditorMentionMenu.js +1 -1
  235. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  236. package/vanilla/UiEditorMentionMenuItem.js +1 -1
  237. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  238. package/vanilla/UiEditorSlashMenu.js +1 -1
  239. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  240. package/vanilla/UiEditorSlashMenuGroup.js +1 -1
  241. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  242. package/vanilla/UiEditorSlashMenuItem.js +1 -1
  243. package/vanilla/UiEditorSurface.d.ts +1 -1
  244. package/vanilla/UiEditorSurface.js +1 -1
  245. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  246. package/vanilla/UiEditorTableContextMenu.js +10 -5
  247. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  248. package/vanilla/UiEditorTableOverlay.js +1 -1
  249. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  250. package/vanilla/UiEditorTableToolbar.js +1 -1
  251. package/vanilla/UiEditorToolbar.d.ts +1 -1
  252. package/vanilla/UiEditorToolbar.js +1 -1
  253. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  254. package/vanilla/UiFloatingActionButton.js +1 -1
  255. package/vanilla/UiFormField.d.ts +1 -1
  256. package/vanilla/UiFormField.js +1 -1
  257. package/vanilla/UiGrid.d.ts +1 -1
  258. package/vanilla/UiGrid.js +1 -1
  259. package/vanilla/UiIcon.d.ts +1 -1
  260. package/vanilla/UiIcon.js +1 -1
  261. package/vanilla/UiIconButton.d.ts +1 -1
  262. package/vanilla/UiIconButton.js +1 -1
  263. package/vanilla/UiImage.d.ts +1 -1
  264. package/vanilla/UiImage.js +1 -1
  265. package/vanilla/UiInput.d.ts +1 -1
  266. package/vanilla/UiInput.js +1 -1
  267. package/vanilla/UiInputGroup.d.ts +1 -1
  268. package/vanilla/UiInputGroup.js +1 -1
  269. package/vanilla/UiLightEditor.d.ts +1 -1
  270. package/vanilla/UiLightEditor.js +1 -1
  271. package/vanilla/UiList.d.ts +1 -1
  272. package/vanilla/UiList.js +1 -1
  273. package/vanilla/UiListItem.d.ts +1 -1
  274. package/vanilla/UiListItem.js +1 -1
  275. package/vanilla/UiListbox.d.ts +1 -1
  276. package/vanilla/UiListbox.js +1 -1
  277. package/vanilla/UiMenu.d.ts +1 -1
  278. package/vanilla/UiMenu.js +1 -1
  279. package/vanilla/UiMenuGroup.d.ts +1 -1
  280. package/vanilla/UiMenuGroup.js +1 -1
  281. package/vanilla/UiMenuItem.d.ts +1 -1
  282. package/vanilla/UiMenuItem.js +1 -1
  283. package/vanilla/UiMeter.d.ts +1 -1
  284. package/vanilla/UiMeter.js +1 -1
  285. package/vanilla/UiNavItem.d.ts +1 -1
  286. package/vanilla/UiNavItem.js +1 -1
  287. package/vanilla/UiNumberInput.d.ts +1 -1
  288. package/vanilla/UiNumberInput.js +1 -1
  289. package/vanilla/UiPageHeader.d.ts +1 -1
  290. package/vanilla/UiPageHeader.js +1 -1
  291. package/vanilla/UiPagination.d.ts +1 -1
  292. package/vanilla/UiPagination.js +1 -1
  293. package/vanilla/UiPopover.d.ts +1 -1
  294. package/vanilla/UiPopover.js +1 -1
  295. package/vanilla/UiRadio.d.ts +1 -1
  296. package/vanilla/UiRadio.js +1 -1
  297. package/vanilla/UiRadioGroup.d.ts +2 -1
  298. package/vanilla/UiRadioGroup.js +33 -28
  299. package/vanilla/UiReel.d.ts +1 -1
  300. package/vanilla/UiReel.js +1 -1
  301. package/vanilla/UiScrollArea.d.ts +1 -1
  302. package/vanilla/UiScrollArea.js +1 -1
  303. package/vanilla/UiSearchResultRow.d.ts +1 -1
  304. package/vanilla/UiSearchResultRow.js +1 -1
  305. package/vanilla/UiSearchShell.d.ts +1 -1
  306. package/vanilla/UiSearchShell.js +1 -1
  307. package/vanilla/UiSection.d.ts +1 -1
  308. package/vanilla/UiSection.js +1 -1
  309. package/vanilla/UiSelect.d.ts +1 -1
  310. package/vanilla/UiSelect.js +1 -1
  311. package/vanilla/UiSeparator.d.ts +1 -1
  312. package/vanilla/UiSeparator.js +1 -1
  313. package/vanilla/UiSidebar.d.ts +1 -1
  314. package/vanilla/UiSidebar.js +1 -1
  315. package/vanilla/UiSiteHeader.d.ts +1 -1
  316. package/vanilla/UiSiteHeader.js +1 -1
  317. package/vanilla/UiSkeleton.d.ts +1 -1
  318. package/vanilla/UiSkeleton.js +1 -1
  319. package/vanilla/UiSlider.d.ts +1 -1
  320. package/vanilla/UiSlider.js +1 -1
  321. package/vanilla/UiSpinner.d.ts +1 -1
  322. package/vanilla/UiSpinner.js +1 -1
  323. package/vanilla/UiStack.d.ts +1 -1
  324. package/vanilla/UiStack.js +1 -1
  325. package/vanilla/UiStatusMessage.d.ts +1 -1
  326. package/vanilla/UiStatusMessage.js +1 -1
  327. package/vanilla/UiSwatch.d.ts +1 -1
  328. package/vanilla/UiSwatch.js +1 -1
  329. package/vanilla/UiSwitch.d.ts +1 -1
  330. package/vanilla/UiSwitch.js +1 -1
  331. package/vanilla/UiSwitcher.d.ts +1 -1
  332. package/vanilla/UiSwitcher.js +1 -1
  333. package/vanilla/UiTable.d.ts +1 -1
  334. package/vanilla/UiTable.js +1 -1
  335. package/vanilla/UiTabs.d.ts +1 -1
  336. package/vanilla/UiTabs.js +1 -1
  337. package/vanilla/UiText.d.ts +1 -1
  338. package/vanilla/UiText.js +1 -1
  339. package/vanilla/UiTextarea.d.ts +1 -1
  340. package/vanilla/UiTextarea.js +1 -1
  341. package/vanilla/UiToast.d.ts +1 -1
  342. package/vanilla/UiToast.js +1 -1
  343. package/vanilla/UiToastRegion.d.ts +1 -1
  344. package/vanilla/UiToastRegion.js +1 -1
  345. package/vanilla/UiTooltip.d.ts +1 -1
  346. package/vanilla/UiTooltip.js +1 -1
  347. package/vanilla/UiTopBar.d.ts +1 -1
  348. package/vanilla/UiTopBar.js +1 -1
  349. package/vanilla/UiTree.d.ts +1 -1
  350. package/vanilla/UiTree.js +1 -1
  351. package/vanilla/UiTreeItem.d.ts +1 -1
  352. package/vanilla/UiTreeItem.js +1 -1
  353. package/vanilla/index.js +6 -0
  354. package/editor/chunks/table-backgrounds.js +0 -51
  355. package/vue/UiActionBar.d.ts +0 -19
  356. package/vue/UiActionBar.js +0 -2
  357. package/vue/UiActionBar.vue +0 -90
  358. package/vue/UiAffordanceScope.d.ts +0 -35
  359. package/vue/UiAffordanceScope.js +0 -2
  360. package/vue/UiAffordanceScope.vue +0 -182
  361. package/vue/UiAvatar.d.ts +0 -71
  362. package/vue/UiAvatar.js +0 -2
  363. package/vue/UiAvatar.vue +0 -394
  364. package/vue/UiAvatarGroup.d.ts +0 -53
  365. package/vue/UiAvatarGroup.js +0 -2
  366. package/vue/UiAvatarGroup.vue +0 -305
  367. package/vue/UiBadge.d.ts +0 -49
  368. package/vue/UiBadge.js +0 -2
  369. package/vue/UiBadge.vue +0 -810
  370. package/vue/UiBreadcrumbItem.d.ts +0 -29
  371. package/vue/UiBreadcrumbItem.js +0 -2
  372. package/vue/UiBreadcrumbItem.vue +0 -192
  373. package/vue/UiBreadcrumbs.d.ts +0 -29
  374. package/vue/UiBreadcrumbs.js +0 -2
  375. package/vue/UiBreadcrumbs.vue +0 -117
  376. package/vue/UiButton.d.ts +0 -131
  377. package/vue/UiButton.js +0 -2
  378. package/vue/UiButton.vue +0 -1609
  379. package/vue/UiCallout.d.ts +0 -35
  380. package/vue/UiCallout.js +0 -2
  381. package/vue/UiCallout.vue +0 -418
  382. package/vue/UiCard.d.ts +0 -81
  383. package/vue/UiCard.js +0 -2
  384. package/vue/UiCard.vue +0 -522
  385. package/vue/UiCardGroup.d.ts +0 -41
  386. package/vue/UiCardGroup.js +0 -2
  387. package/vue/UiCardGroup.vue +0 -168
  388. package/vue/UiCheckbox.d.ts +0 -95
  389. package/vue/UiCheckbox.js +0 -2
  390. package/vue/UiCheckbox.vue +0 -601
  391. package/vue/UiCluster.d.ts +0 -65
  392. package/vue/UiCluster.js +0 -2
  393. package/vue/UiCluster.vue +0 -304
  394. package/vue/UiColorPicker.d.ts +0 -71
  395. package/vue/UiColorPicker.js +0 -2
  396. package/vue/UiColorPicker.vue +0 -563
  397. package/vue/UiCombobox.d.ts +0 -538
  398. package/vue/UiCombobox.js +0 -2
  399. package/vue/UiCombobox.vue +0 -2894
  400. package/vue/UiContainer.d.ts +0 -41
  401. package/vue/UiContainer.js +0 -2
  402. package/vue/UiContainer.vue +0 -177
  403. package/vue/UiContextMenu.d.ts +0 -69
  404. package/vue/UiContextMenu.js +0 -2
  405. package/vue/UiContextMenu.vue +0 -289
  406. package/vue/UiCover.d.ts +0 -29
  407. package/vue/UiCover.js +0 -2
  408. package/vue/UiCover.vue +0 -127
  409. package/vue/UiCurveEditor.d.ts +0 -59
  410. package/vue/UiCurveEditor.js +0 -2
  411. package/vue/UiCurveEditor.vue +0 -429
  412. package/vue/UiCycleButton.d.ts +0 -69
  413. package/vue/UiCycleButton.js +0 -2
  414. package/vue/UiCycleButton.vue +0 -403
  415. package/vue/UiDescriptionItem.d.ts +0 -29
  416. package/vue/UiDescriptionItem.js +0 -2
  417. package/vue/UiDescriptionItem.vue +0 -124
  418. package/vue/UiDescriptionList.d.ts +0 -41
  419. package/vue/UiDescriptionList.js +0 -2
  420. package/vue/UiDescriptionList.vue +0 -217
  421. package/vue/UiDialog.d.ts +0 -97
  422. package/vue/UiDialog.js +0 -2
  423. package/vue/UiDialog.vue +0 -817
  424. package/vue/UiDisclosure.d.ts +0 -107
  425. package/vue/UiDisclosure.js +0 -2
  426. package/vue/UiDisclosure.vue +0 -605
  427. package/vue/UiEditable.d.ts +0 -113
  428. package/vue/UiEditable.js +0 -2
  429. package/vue/UiEditable.vue +0 -582
  430. package/vue/UiEditorBlockActions.d.ts +0 -33
  431. package/vue/UiEditorBlockActions.js +0 -2
  432. package/vue/UiEditorBlockActions.vue +0 -163
  433. package/vue/UiEditorChipEditor.d.ts +0 -45
  434. package/vue/UiEditorChipEditor.js +0 -2
  435. package/vue/UiEditorChipEditor.vue +0 -208
  436. package/vue/UiEditorCodeLanguage.d.ts +0 -41
  437. package/vue/UiEditorCodeLanguage.js +0 -2
  438. package/vue/UiEditorCodeLanguage.vue +0 -200
  439. package/vue/UiEditorFootnoteEditor.d.ts +0 -39
  440. package/vue/UiEditorFootnoteEditor.js +0 -2
  441. package/vue/UiEditorFootnoteEditor.vue +0 -152
  442. package/vue/UiEditorImageToolbar.d.ts +0 -51
  443. package/vue/UiEditorImageToolbar.js +0 -2
  444. package/vue/UiEditorImageToolbar.vue +0 -446
  445. package/vue/UiEditorInsertTableGrid.d.ts +0 -49
  446. package/vue/UiEditorInsertTableGrid.js +0 -2
  447. package/vue/UiEditorInsertTableGrid.vue +0 -367
  448. package/vue/UiEditorLinkCard.d.ts +0 -49
  449. package/vue/UiEditorLinkCard.js +0 -2
  450. package/vue/UiEditorLinkCard.vue +0 -385
  451. package/vue/UiEditorLinkForm.d.ts +0 -131
  452. package/vue/UiEditorLinkForm.js +0 -2
  453. package/vue/UiEditorLinkForm.vue +0 -664
  454. package/vue/UiEditorMentionMenu.d.ts +0 -121
  455. package/vue/UiEditorMentionMenu.js +0 -2
  456. package/vue/UiEditorMentionMenu.vue +0 -596
  457. package/vue/UiEditorMentionMenuItem.d.ts +0 -43
  458. package/vue/UiEditorMentionMenuItem.js +0 -2
  459. package/vue/UiEditorMentionMenuItem.vue +0 -205
  460. package/vue/UiEditorSlashMenu.d.ts +0 -111
  461. package/vue/UiEditorSlashMenu.js +0 -2
  462. package/vue/UiEditorSlashMenu.vue +0 -549
  463. package/vue/UiEditorSlashMenuGroup.d.ts +0 -29
  464. package/vue/UiEditorSlashMenuGroup.js +0 -2
  465. package/vue/UiEditorSlashMenuGroup.vue +0 -113
  466. package/vue/UiEditorSlashMenuItem.d.ts +0 -53
  467. package/vue/UiEditorSlashMenuItem.js +0 -2
  468. package/vue/UiEditorSlashMenuItem.vue +0 -249
  469. package/vue/UiEditorSurface.d.ts +0 -29
  470. package/vue/UiEditorSurface.js +0 -2
  471. package/vue/UiEditorSurface.vue +0 -117
  472. package/vue/UiEditorTableContextMenu.d.ts +0 -57
  473. package/vue/UiEditorTableContextMenu.js +0 -2
  474. package/vue/UiEditorTableContextMenu.vue +0 -694
  475. package/vue/UiEditorTableOverlay.d.ts +0 -191
  476. package/vue/UiEditorTableOverlay.js +0 -2
  477. package/vue/UiEditorTableOverlay.vue +0 -1099
  478. package/vue/UiEditorTableToolbar.d.ts +0 -57
  479. package/vue/UiEditorTableToolbar.js +0 -2
  480. package/vue/UiEditorTableToolbar.vue +0 -834
  481. package/vue/UiEditorToolbar.d.ts +0 -29
  482. package/vue/UiEditorToolbar.js +0 -2
  483. package/vue/UiEditorToolbar.vue +0 -296
  484. package/vue/UiFloatingActionButton.d.ts +0 -41
  485. package/vue/UiFloatingActionButton.js +0 -2
  486. package/vue/UiFloatingActionButton.vue +0 -201
  487. package/vue/UiFormField.d.ts +0 -49
  488. package/vue/UiFormField.js +0 -2
  489. package/vue/UiFormField.vue +0 -256
  490. package/vue/UiGrid.d.ts +0 -41
  491. package/vue/UiGrid.js +0 -2
  492. package/vue/UiGrid.vue +0 -190
  493. package/vue/UiIcon.d.ts +0 -25
  494. package/vue/UiIcon.js +0 -2
  495. package/vue/UiIcon.vue +0 -612
  496. package/vue/UiIconButton.d.ts +0 -101
  497. package/vue/UiIconButton.js +0 -2
  498. package/vue/UiIconButton.vue +0 -1141
  499. package/vue/UiImage.d.ts +0 -85
  500. package/vue/UiImage.js +0 -2
  501. package/vue/UiImage.vue +0 -462
  502. package/vue/UiInput.d.ts +0 -50
  503. package/vue/UiInput.js +0 -2
  504. package/vue/UiInput.vue +0 -671
  505. package/vue/UiInputGroup.d.ts +0 -59
  506. package/vue/UiInputGroup.js +0 -2
  507. package/vue/UiInputGroup.vue +0 -447
  508. package/vue/UiLightEditor.d.ts +0 -83
  509. package/vue/UiLightEditor.js +0 -2
  510. package/vue/UiLightEditor.vue +0 -537
  511. package/vue/UiList.d.ts +0 -49
  512. package/vue/UiList.js +0 -2
  513. package/vue/UiList.vue +0 -260
  514. package/vue/UiListItem.d.ts +0 -65
  515. package/vue/UiListItem.js +0 -2
  516. package/vue/UiListItem.vue +0 -407
  517. package/vue/UiListbox.d.ts +0 -87
  518. package/vue/UiListbox.js +0 -2
  519. package/vue/UiListbox.vue +0 -554
  520. package/vue/UiMenu.d.ts +0 -99
  521. package/vue/UiMenu.js +0 -2
  522. package/vue/UiMenu.vue +0 -541
  523. package/vue/UiMenuGroup.d.ts +0 -29
  524. package/vue/UiMenuGroup.js +0 -2
  525. package/vue/UiMenuGroup.vue +0 -105
  526. package/vue/UiMenuItem.d.ts +0 -89
  527. package/vue/UiMenuItem.js +0 -2
  528. package/vue/UiMenuItem.vue +0 -532
  529. package/vue/UiMeter.d.ts +0 -73
  530. package/vue/UiMeter.js +0 -2
  531. package/vue/UiMeter.vue +0 -1112
  532. package/vue/UiNavItem.d.ts +0 -79
  533. package/vue/UiNavItem.js +0 -2
  534. package/vue/UiNavItem.vue +0 -493
  535. package/vue/UiNumberInput.d.ts +0 -89
  536. package/vue/UiNumberInput.js +0 -2
  537. package/vue/UiNumberInput.vue +0 -445
  538. package/vue/UiPageHeader.d.ts +0 -37
  539. package/vue/UiPageHeader.js +0 -2
  540. package/vue/UiPageHeader.vue +0 -192
  541. package/vue/UiPagination.d.ts +0 -115
  542. package/vue/UiPagination.js +0 -2
  543. package/vue/UiPagination.vue +0 -596
  544. package/vue/UiPopover.d.ts +0 -77
  545. package/vue/UiPopover.js +0 -2
  546. package/vue/UiPopover.vue +0 -495
  547. package/vue/UiRadio.d.ts +0 -77
  548. package/vue/UiRadio.js +0 -2
  549. package/vue/UiRadio.vue +0 -475
  550. package/vue/UiRadioGroup.d.ts +0 -95
  551. package/vue/UiRadioGroup.js +0 -2
  552. package/vue/UiRadioGroup.vue +0 -393
  553. package/vue/UiReel.d.ts +0 -41
  554. package/vue/UiReel.js +0 -2
  555. package/vue/UiReel.vue +0 -223
  556. package/vue/UiScrollArea.d.ts +0 -53
  557. package/vue/UiScrollArea.js +0 -2
  558. package/vue/UiScrollArea.vue +0 -307
  559. package/vue/UiSearchResultRow.d.ts +0 -49
  560. package/vue/UiSearchResultRow.js +0 -2
  561. package/vue/UiSearchResultRow.vue +0 -268
  562. package/vue/UiSearchShell.d.ts +0 -67
  563. package/vue/UiSearchShell.js +0 -2
  564. package/vue/UiSearchShell.vue +0 -391
  565. package/vue/UiSection.d.ts +0 -51
  566. package/vue/UiSection.js +0 -2
  567. package/vue/UiSection.vue +0 -331
  568. package/vue/UiSelect.d.ts +0 -69
  569. package/vue/UiSelect.js +0 -2
  570. package/vue/UiSelect.vue +0 -391
  571. package/vue/UiSeparator.d.ts +0 -37
  572. package/vue/UiSeparator.js +0 -2
  573. package/vue/UiSeparator.vue +0 -199
  574. package/vue/UiSidebar.d.ts +0 -99
  575. package/vue/UiSidebar.js +0 -2
  576. package/vue/UiSidebar.vue +0 -579
  577. package/vue/UiSiteHeader.d.ts +0 -59
  578. package/vue/UiSiteHeader.js +0 -2
  579. package/vue/UiSiteHeader.vue +0 -904
  580. package/vue/UiSkeleton.d.ts +0 -37
  581. package/vue/UiSkeleton.js +0 -2
  582. package/vue/UiSkeleton.vue +0 -287
  583. package/vue/UiSlider.d.ts +0 -89
  584. package/vue/UiSlider.js +0 -2
  585. package/vue/UiSlider.vue +0 -448
  586. package/vue/UiSpinner.d.ts +0 -25
  587. package/vue/UiSpinner.js +0 -2
  588. package/vue/UiSpinner.vue +0 -330
  589. package/vue/UiStack.d.ts +0 -53
  590. package/vue/UiStack.js +0 -2
  591. package/vue/UiStack.vue +0 -247
  592. package/vue/UiStatusMessage.d.ts +0 -43
  593. package/vue/UiStatusMessage.js +0 -2
  594. package/vue/UiStatusMessage.vue +0 -239
  595. package/vue/UiSwatch.d.ts +0 -19
  596. package/vue/UiSwatch.js +0 -2
  597. package/vue/UiSwatch.vue +0 -188
  598. package/vue/UiSwitch.d.ts +0 -77
  599. package/vue/UiSwitch.js +0 -2
  600. package/vue/UiSwitch.vue +0 -478
  601. package/vue/UiSwitcher.d.ts +0 -47
  602. package/vue/UiSwitcher.js +0 -2
  603. package/vue/UiSwitcher.vue +0 -258
  604. package/vue/UiTable.d.ts +0 -35
  605. package/vue/UiTable.js +0 -2
  606. package/vue/UiTable.vue +0 -280
  607. package/vue/UiTabs.d.ts +0 -81
  608. package/vue/UiTabs.js +0 -2
  609. package/vue/UiTabs.vue +0 -493
  610. package/vue/UiText.d.ts +0 -111
  611. package/vue/UiText.js +0 -2
  612. package/vue/UiText.vue +0 -836
  613. package/vue/UiTextarea.d.ts +0 -77
  614. package/vue/UiTextarea.js +0 -2
  615. package/vue/UiTextarea.vue +0 -477
  616. package/vue/UiToast.d.ts +0 -49
  617. package/vue/UiToast.js +0 -2
  618. package/vue/UiToast.vue +0 -337
  619. package/vue/UiToastRegion.d.ts +0 -61
  620. package/vue/UiToastRegion.js +0 -2
  621. package/vue/UiToastRegion.vue +0 -631
  622. package/vue/UiTooltip.d.ts +0 -93
  623. package/vue/UiTooltip.js +0 -2
  624. package/vue/UiTooltip.vue +0 -627
  625. package/vue/UiTopBar.d.ts +0 -35
  626. package/vue/UiTopBar.js +0 -2
  627. package/vue/UiTopBar.vue +0 -240
  628. package/vue/UiTree.d.ts +0 -123
  629. package/vue/UiTree.js +0 -2
  630. package/vue/UiTree.vue +0 -419
  631. package/vue/UiTreeItem.d.ts +0 -133
  632. package/vue/UiTreeItem.js +0 -2
  633. package/vue/UiTreeItem.vue +0 -1962
  634. package/vue/chunks/UiActionBar.js +0 -42
  635. package/vue/chunks/UiAffordanceScope.js +0 -136
  636. package/vue/chunks/UiAvatar.js +0 -341
  637. package/vue/chunks/UiAvatarGroup.js +0 -234
  638. package/vue/chunks/UiBadge.js +0 -188
  639. package/vue/chunks/UiBreadcrumbItem.js +0 -104
  640. package/vue/chunks/UiBreadcrumbs.js +0 -67
  641. package/vue/chunks/UiButton.js +0 -881
  642. package/vue/chunks/UiCallout.js +0 -302
  643. package/vue/chunks/UiCard.js +0 -369
  644. package/vue/chunks/UiCardGroup.js +0 -153
  645. package/vue/chunks/UiCheckbox.js +0 -361
  646. package/vue/chunks/UiCluster.js +0 -236
  647. package/vue/chunks/UiColorPicker.js +0 -375
  648. package/vue/chunks/UiCombobox.js +0 -2186
  649. package/vue/chunks/UiContainer.js +0 -122
  650. package/vue/chunks/UiContextMenu.js +0 -157
  651. package/vue/chunks/UiCover.js +0 -66
  652. package/vue/chunks/UiCurveEditor.js +0 -415
  653. package/vue/chunks/UiCycleButton.js +0 -352
  654. package/vue/chunks/UiDescriptionItem.js +0 -64
  655. package/vue/chunks/UiDescriptionList.js +0 -133
  656. package/vue/chunks/UiDialog.js +0 -367
  657. package/vue/chunks/UiDisclosure.js +0 -403
  658. package/vue/chunks/UiEditable.js +0 -436
  659. package/vue/chunks/UiEditorBlockActions.js +0 -157
  660. package/vue/chunks/UiEditorChipEditor.js +0 -191
  661. package/vue/chunks/UiEditorCodeLanguage.js +0 -181
  662. package/vue/chunks/UiEditorFootnoteEditor.js +0 -114
  663. package/vue/chunks/UiEditorImageToolbar.js +0 -531
  664. package/vue/chunks/UiEditorInsertTableGrid.js +0 -325
  665. package/vue/chunks/UiEditorLinkCard.js +0 -391
  666. package/vue/chunks/UiEditorLinkForm.js +0 -711
  667. package/vue/chunks/UiEditorMentionMenu.js +0 -618
  668. package/vue/chunks/UiEditorMentionMenuItem.js +0 -140
  669. package/vue/chunks/UiEditorSlashMenu.js +0 -555
  670. package/vue/chunks/UiEditorSlashMenuGroup.js +0 -78
  671. package/vue/chunks/UiEditorSlashMenuItem.js +0 -197
  672. package/vue/chunks/UiEditorSurface.js +0 -66
  673. package/vue/chunks/UiEditorTableContextMenu.js +0 -500
  674. package/vue/chunks/UiEditorTableOverlay.js +0 -987
  675. package/vue/chunks/UiEditorTableToolbar.js +0 -707
  676. package/vue/chunks/UiEditorToolbar.js +0 -103
  677. package/vue/chunks/UiFloatingActionButton.js +0 -123
  678. package/vue/chunks/UiFormField.js +0 -172
  679. package/vue/chunks/UiGrid.js +0 -127
  680. package/vue/chunks/UiIcon.js +0 -1361
  681. package/vue/chunks/UiIconButton.js +0 -469
  682. package/vue/chunks/UiImage.js +0 -312
  683. package/vue/chunks/UiInput.js +0 -709
  684. package/vue/chunks/UiInputGroup.js +0 -225
  685. package/vue/chunks/UiLightEditor.js +0 -365
  686. package/vue/chunks/UiList.js +0 -178
  687. package/vue/chunks/UiListItem.js +0 -219
  688. package/vue/chunks/UiListbox.js +0 -489
  689. package/vue/chunks/UiMenu.js +0 -286
  690. package/vue/chunks/UiMenuGroup.js +0 -75
  691. package/vue/chunks/UiMenuItem.js +0 -374
  692. package/vue/chunks/UiMeter.js +0 -540
  693. package/vue/chunks/UiNavItem.js +0 -380
  694. package/vue/chunks/UiNumberInput.js +0 -432
  695. package/vue/chunks/UiPageHeader.js +0 -100
  696. package/vue/chunks/UiPagination.js +0 -537
  697. package/vue/chunks/UiPopover.js +0 -243
  698. package/vue/chunks/UiRadio.js +0 -291
  699. package/vue/chunks/UiRadioGroup.js +0 -300
  700. package/vue/chunks/UiReel.js +0 -133
  701. package/vue/chunks/UiScrollArea.js +0 -219
  702. package/vue/chunks/UiSearchResultRow.js +0 -164
  703. package/vue/chunks/UiSearchShell.js +0 -215
  704. package/vue/chunks/UiSection.js +0 -228
  705. package/vue/chunks/UiSelect.js +0 -251
  706. package/vue/chunks/UiSeparator.js +0 -144
  707. package/vue/chunks/UiSidebar.js +0 -358
  708. package/vue/chunks/UiSiteHeader.js +0 -335
  709. package/vue/chunks/UiSkeleton.js +0 -183
  710. package/vue/chunks/UiSlider.js +0 -427
  711. package/vue/chunks/UiSpinner.js +0 -181
  712. package/vue/chunks/UiStack.js +0 -177
  713. package/vue/chunks/UiStatusMessage.js +0 -176
  714. package/vue/chunks/UiSwatch.js +0 -93
  715. package/vue/chunks/UiSwitch.js +0 -292
  716. package/vue/chunks/UiSwitcher.js +0 -194
  717. package/vue/chunks/UiTable.js +0 -128
  718. package/vue/chunks/UiTabs.js +0 -334
  719. package/vue/chunks/UiText.js +0 -747
  720. package/vue/chunks/UiTextarea.js +0 -313
  721. package/vue/chunks/UiToast.js +0 -174
  722. package/vue/chunks/UiToastRegion.js +0 -275
  723. package/vue/chunks/UiTooltip.js +0 -297
  724. package/vue/chunks/UiTopBar.js +0 -129
  725. package/vue/chunks/UiTree.js +0 -282
  726. package/vue/chunks/UiTreeItem.js +0 -699
  727. package/vue/chunks/_plugin-vue_export-helper.js +0 -1265
  728. package/vue/chunks/control.js +0 -214
  729. package/vue/chunks/props.js +0 -1228
  730. package/vue/components.css +0 -17539
  731. package/vue/editor/LoomaEditor.d.ts +0 -433
  732. package/vue/editor/compact/index.d.ts +0 -84
  733. package/vue/editor/compact/index.js +0 -2
  734. package/vue/editor/index.d.ts +0 -5
  735. package/vue/editor/index.js +0 -17281
  736. package/vue/editor/primitives.d.ts +0 -120
  737. package/vue/host.ts +0 -2272
  738. package/vue/index.d.ts +0 -94
  739. package/vue/index.js +0 -95
  740. package/vue/props.d.ts +0 -272
  741. /package/{vue → editor}/chunks/1c.js +0 -0
  742. /package/{vue → editor}/chunks/abnf.js +0 -0
  743. /package/{vue → editor}/chunks/accesslog.js +0 -0
  744. /package/{vue → editor}/chunks/actionscript.js +0 -0
  745. /package/{vue → editor}/chunks/ada.js +0 -0
  746. /package/{vue → editor}/chunks/angelscript.js +0 -0
  747. /package/{vue → editor}/chunks/apache.js +0 -0
  748. /package/{vue → editor}/chunks/applescript.js +0 -0
  749. /package/{vue → editor}/chunks/arcade.js +0 -0
  750. /package/{vue → editor}/chunks/arduino.js +0 -0
  751. /package/{vue → editor}/chunks/armasm.js +0 -0
  752. /package/{vue → editor}/chunks/asciidoc.js +0 -0
  753. /package/{vue → editor}/chunks/aspectj.js +0 -0
  754. /package/{vue → editor}/chunks/autohotkey.js +0 -0
  755. /package/{vue → editor}/chunks/autoit.js +0 -0
  756. /package/{vue → editor}/chunks/avrasm.js +0 -0
  757. /package/{vue → editor}/chunks/awk.js +0 -0
  758. /package/{vue → editor}/chunks/axapta.js +0 -0
  759. /package/{vue → editor}/chunks/bash.js +0 -0
  760. /package/{vue → editor}/chunks/basic.js +0 -0
  761. /package/{vue → editor}/chunks/bnf.js +0 -0
  762. /package/{vue → editor}/chunks/brainfuck.js +0 -0
  763. /package/{vue → editor}/chunks/c.js +0 -0
  764. /package/{vue → editor}/chunks/cal.js +0 -0
  765. /package/{vue → editor}/chunks/capnproto.js +0 -0
  766. /package/{vue → editor}/chunks/ceylon.js +0 -0
  767. /package/{vue → editor}/chunks/clean.js +0 -0
  768. /package/{vue → editor}/chunks/clojure-repl.js +0 -0
  769. /package/{vue → editor}/chunks/clojure.js +0 -0
  770. /package/{vue → editor}/chunks/cmake.js +0 -0
  771. /package/{vue → editor}/chunks/coffeescript.js +0 -0
  772. /package/{vue → editor}/chunks/coq.js +0 -0
  773. /package/{vue → editor}/chunks/cos.js +0 -0
  774. /package/{vue → editor}/chunks/cpp.js +0 -0
  775. /package/{vue → editor}/chunks/crmsh.js +0 -0
  776. /package/{vue → editor}/chunks/crystal.js +0 -0
  777. /package/{vue → editor}/chunks/csharp.js +0 -0
  778. /package/{vue → editor}/chunks/csp.js +0 -0
  779. /package/{vue → editor}/chunks/css.js +0 -0
  780. /package/{vue → editor}/chunks/d.js +0 -0
  781. /package/{vue → editor}/chunks/dart.js +0 -0
  782. /package/{vue → editor}/chunks/delphi.js +0 -0
  783. /package/{vue → editor}/chunks/diff.js +0 -0
  784. /package/{vue → editor}/chunks/django.js +0 -0
  785. /package/{vue → editor}/chunks/dns.js +0 -0
  786. /package/{vue → editor}/chunks/dockerfile.js +0 -0
  787. /package/{vue → editor}/chunks/dos.js +0 -0
  788. /package/{vue → editor}/chunks/dsconfig.js +0 -0
  789. /package/{vue → editor}/chunks/dts.js +0 -0
  790. /package/{vue → editor}/chunks/dust.js +0 -0
  791. /package/{vue → editor}/chunks/ebnf.js +0 -0
  792. /package/{vue → editor}/chunks/elixir.js +0 -0
  793. /package/{vue → editor}/chunks/elm.js +0 -0
  794. /package/{vue → editor}/chunks/erb.js +0 -0
  795. /package/{vue → editor}/chunks/erlang-repl.js +0 -0
  796. /package/{vue → editor}/chunks/erlang.js +0 -0
  797. /package/{vue → editor}/chunks/excel.js +0 -0
  798. /package/{vue → editor}/chunks/fix.js +0 -0
  799. /package/{vue → editor}/chunks/flix.js +0 -0
  800. /package/{vue → editor}/chunks/fortran.js +0 -0
  801. /package/{vue → editor}/chunks/fsharp.js +0 -0
  802. /package/{vue → editor}/chunks/gams.js +0 -0
  803. /package/{vue → editor}/chunks/gauss.js +0 -0
  804. /package/{vue → editor}/chunks/gcode.js +0 -0
  805. /package/{vue → editor}/chunks/gherkin.js +0 -0
  806. /package/{vue → editor}/chunks/glsl.js +0 -0
  807. /package/{vue → editor}/chunks/gml.js +0 -0
  808. /package/{vue → editor}/chunks/go.js +0 -0
  809. /package/{vue → editor}/chunks/golo.js +0 -0
  810. /package/{vue → editor}/chunks/gradle.js +0 -0
  811. /package/{vue → editor}/chunks/graphql.js +0 -0
  812. /package/{vue → editor}/chunks/groovy.js +0 -0
  813. /package/{vue → editor}/chunks/haml.js +0 -0
  814. /package/{vue → editor}/chunks/handlebars.js +0 -0
  815. /package/{vue → editor}/chunks/haskell.js +0 -0
  816. /package/{vue → editor}/chunks/haxe.js +0 -0
  817. /package/{vue → editor}/chunks/hsp.js +0 -0
  818. /package/{vue → editor}/chunks/http.js +0 -0
  819. /package/{vue → editor}/chunks/hy.js +0 -0
  820. /package/{vue → editor}/chunks/inform7.js +0 -0
  821. /package/{vue → editor}/chunks/ini.js +0 -0
  822. /package/{vue → editor}/chunks/irpf90.js +0 -0
  823. /package/{vue → editor}/chunks/isbl.js +0 -0
  824. /package/{vue → editor}/chunks/java.js +0 -0
  825. /package/{vue → editor}/chunks/javascript.js +0 -0
  826. /package/{vue → editor}/chunks/jboss-cli.js +0 -0
  827. /package/{vue → editor}/chunks/json.js +0 -0
  828. /package/{vue → editor}/chunks/julia-repl.js +0 -0
  829. /package/{vue → editor}/chunks/julia.js +0 -0
  830. /package/{vue → editor}/chunks/kotlin.js +0 -0
  831. /package/{vue → editor}/chunks/lasso.js +0 -0
  832. /package/{vue → editor}/chunks/latex.js +0 -0
  833. /package/{vue → editor}/chunks/ldif.js +0 -0
  834. /package/{vue → editor}/chunks/leaf.js +0 -0
  835. /package/{vue → editor}/chunks/less.js +0 -0
  836. /package/{vue → editor}/chunks/lisp.js +0 -0
  837. /package/{vue → editor}/chunks/livecodeserver.js +0 -0
  838. /package/{vue → editor}/chunks/livescript.js +0 -0
  839. /package/{vue → editor}/chunks/llvm.js +0 -0
  840. /package/{vue → editor}/chunks/lsl.js +0 -0
  841. /package/{vue → editor}/chunks/lua.js +0 -0
  842. /package/{vue → editor}/chunks/makefile.js +0 -0
  843. /package/{vue → editor}/chunks/markdown.js +0 -0
  844. /package/{vue → editor}/chunks/mathematica.js +0 -0
  845. /package/{vue → editor}/chunks/matlab.js +0 -0
  846. /package/{vue → editor}/chunks/maxima.js +0 -0
  847. /package/{vue → editor}/chunks/mel.js +0 -0
  848. /package/{vue → editor}/chunks/mercury.js +0 -0
  849. /package/{vue → editor}/chunks/mipsasm.js +0 -0
  850. /package/{vue → editor}/chunks/mizar.js +0 -0
  851. /package/{vue → editor}/chunks/mojolicious.js +0 -0
  852. /package/{vue → editor}/chunks/monkey.js +0 -0
  853. /package/{vue → editor}/chunks/moonscript.js +0 -0
  854. /package/{vue → editor}/chunks/n1ql.js +0 -0
  855. /package/{vue → editor}/chunks/nestedtext.js +0 -0
  856. /package/{vue → editor}/chunks/nginx.js +0 -0
  857. /package/{vue → editor}/chunks/nim.js +0 -0
  858. /package/{vue → editor}/chunks/nix.js +0 -0
  859. /package/{vue → editor}/chunks/node-repl.js +0 -0
  860. /package/{vue → editor}/chunks/nsis.js +0 -0
  861. /package/{vue → editor}/chunks/objectivec.js +0 -0
  862. /package/{vue → editor}/chunks/ocaml.js +0 -0
  863. /package/{vue → editor}/chunks/openscad.js +0 -0
  864. /package/{vue → editor}/chunks/oxygene.js +0 -0
  865. /package/{vue → editor}/chunks/parser3.js +0 -0
  866. /package/{vue → editor}/chunks/perl.js +0 -0
  867. /package/{vue → editor}/chunks/pf.js +0 -0
  868. /package/{vue → editor}/chunks/pgsql.js +0 -0
  869. /package/{vue → editor}/chunks/php-template.js +0 -0
  870. /package/{vue → editor}/chunks/php.js +0 -0
  871. /package/{vue → editor}/chunks/plaintext.js +0 -0
  872. /package/{vue → editor}/chunks/pony.js +0 -0
  873. /package/{vue → editor}/chunks/powershell.js +0 -0
  874. /package/{vue → editor}/chunks/processing.js +0 -0
  875. /package/{vue → editor}/chunks/profile.js +0 -0
  876. /package/{vue → editor}/chunks/prolog.js +0 -0
  877. /package/{vue → editor}/chunks/properties.js +0 -0
  878. /package/{vue → editor}/chunks/protobuf.js +0 -0
  879. /package/{vue → editor}/chunks/puppet.js +0 -0
  880. /package/{vue → editor}/chunks/purebasic.js +0 -0
  881. /package/{vue → editor}/chunks/python-repl.js +0 -0
  882. /package/{vue → editor}/chunks/python.js +0 -0
  883. /package/{vue → editor}/chunks/q.js +0 -0
  884. /package/{vue → editor}/chunks/qml.js +0 -0
  885. /package/{vue → editor}/chunks/r.js +0 -0
  886. /package/{vue → editor}/chunks/reasonml.js +0 -0
  887. /package/{vue → editor}/chunks/rib.js +0 -0
  888. /package/{vue → editor}/chunks/roboconf.js +0 -0
  889. /package/{vue → editor}/chunks/routeros.js +0 -0
  890. /package/{vue → editor}/chunks/rsl.js +0 -0
  891. /package/{vue → editor}/chunks/ruby.js +0 -0
  892. /package/{vue → editor}/chunks/ruleslanguage.js +0 -0
  893. /package/{vue → editor}/chunks/rust.js +0 -0
  894. /package/{vue → editor}/chunks/sas.js +0 -0
  895. /package/{vue → editor}/chunks/scala.js +0 -0
  896. /package/{vue → editor}/chunks/scheme.js +0 -0
  897. /package/{vue → editor}/chunks/scilab.js +0 -0
  898. /package/{vue → editor}/chunks/scss.js +0 -0
  899. /package/{vue → editor}/chunks/shell.js +0 -0
  900. /package/{vue → editor}/chunks/smali.js +0 -0
  901. /package/{vue → editor}/chunks/smalltalk.js +0 -0
  902. /package/{vue → editor}/chunks/sml.js +0 -0
  903. /package/{vue → editor}/chunks/sqf.js +0 -0
  904. /package/{vue → editor}/chunks/sql.js +0 -0
  905. /package/{vue → editor}/chunks/stan.js +0 -0
  906. /package/{vue → editor}/chunks/stata.js +0 -0
  907. /package/{vue → editor}/chunks/step21.js +0 -0
  908. /package/{vue → editor}/chunks/stylus.js +0 -0
  909. /package/{vue → editor}/chunks/subunit.js +0 -0
  910. /package/{vue → editor}/chunks/swift.js +0 -0
  911. /package/{vue → editor}/chunks/taggerscript.js +0 -0
  912. /package/{vue → editor}/chunks/tap.js +0 -0
  913. /package/{vue → editor}/chunks/tcl.js +0 -0
  914. /package/{vue → editor}/chunks/thrift.js +0 -0
  915. /package/{vue → editor}/chunks/tp.js +0 -0
  916. /package/{vue → editor}/chunks/twig.js +0 -0
  917. /package/{vue → editor}/chunks/typescript.js +0 -0
  918. /package/{vue → editor}/chunks/vala.js +0 -0
  919. /package/{vue → editor}/chunks/vbnet.js +0 -0
  920. /package/{vue → editor}/chunks/vbscript-html.js +0 -0
  921. /package/{vue → editor}/chunks/vbscript.js +0 -0
  922. /package/{vue → editor}/chunks/verilog.js +0 -0
  923. /package/{vue → editor}/chunks/vhdl.js +0 -0
  924. /package/{vue → editor}/chunks/vim.js +0 -0
  925. /package/{vue → editor}/chunks/wasm.js +0 -0
  926. /package/{vue → editor}/chunks/wren.js +0 -0
  927. /package/{vue → editor}/chunks/x86asm.js +0 -0
  928. /package/{vue → editor}/chunks/xl.js +0 -0
  929. /package/{vue → editor}/chunks/xml.js +0 -0
  930. /package/{vue → editor}/chunks/xquery.js +0 -0
  931. /package/{vue → editor}/chunks/yaml.js +0 -0
  932. /package/{vue → editor}/chunks/zephir.js +0 -0
  933. /package/{vue/editor/compact/extensions.d.ts → editor/compact-extensions.d.ts} +0 -0
@@ -1,1962 +0,0 @@
1
- <!-- Generated by HTML Next 1.0.0-alpha.69 for Vue 3.5. Do not edit. -->
2
- <script setup lang="ts">
3
- import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
4
- import type { PropType } from 'vue'
5
- import {
6
- attribute,
7
- checkHydratedRoot,
8
- concat,
9
- createDispatch,
10
- nativeAttrs,
11
- useComponentHost,
12
- useReflectedProp,
13
- } from './host'
14
- import { acceptsControllerWrite } from './props'
15
- import {
16
- BINDING_INPUTS_PROP,
17
- checkedProp,
18
- checkPropInput,
19
- type InputBindings,
20
- propValidityState,
21
- READY_INPUT,
22
- requireInputStatus,
23
- UNRESOLVED_INPUT,
24
- vPropValidity,
25
- vuePropInputs,
26
- } from './props'
27
- import UiButton from './UiButton.vue'
28
-
29
- defineOptions({ inheritAttrs: false })
30
-
31
- const propValidityContract = {
32
- props: {
33
- accepts: {
34
- type: { kind: 'terminal', name: 'string' },
35
- required: false,
36
- target: { attribute: 'data-accepts' },
37
- description:
38
- 'A comma-separated list of the dragType values this branch accepts dropped inside it. Empty accepts any type. It does not affect drops before or after the\n item.',
39
- default: '',
40
- },
41
- actionsVisible: {
42
- type: { kind: 'terminal', name: 'boolean' },
43
- required: false,
44
- target: { attribute: 'actionsvisible' },
45
- description:
46
- 'Keeps the actions slot visible before hover or focus, for persistent status or controls. The label fades beneath its measured width on pointer devices;\n touch rows retain a separate actions column with a short end fade. Does not change keyboard navigation or start the marquee.',
47
- default: false,
48
- },
49
- container: {
50
- type: { kind: 'terminal', name: 'boolean' },
51
- required: false,
52
- target: { attribute: 'container' },
53
- description:
54
- 'Makes the item a branch even before it has children: it gets the expand button and aria-expanded, and accepts drops inside it. An item with nested items is\n a branch without it.',
55
- default: false,
56
- },
57
- disabled: {
58
- type: { kind: 'terminal', name: 'boolean' },
59
- required: false,
60
- target: { attribute: 'aria-disabled' },
61
- description:
62
- 'Makes the item unavailable: faded, skipped by keyboard navigation, unable to expand or be dragged, and closed to drops inside it.',
63
- default: false,
64
- },
65
- dragType: {
66
- type: { kind: 'terminal', name: 'string' },
67
- required: false,
68
- target: { attribute: 'data-drag-type' },
69
- description:
70
- 'The item\'s kind, for drag rules: it can be dropped before or after only items of the same type, and inside a branch only if that branch\'s accepts allows\n it. Reported as sourceType and targetType.',
71
- default: 'item',
72
- },
73
- dropDepth: {
74
- type: { kind: 'terminal', name: 'number' },
75
- required: false,
76
- target: { attribute: 'data-drop-depth' },
77
- description:
78
- 'Overrides the level this item counts as when the tree checks maxDepth for a drop onto it. Unset, its level in the rendered tree is used; set it when the\n item sits deeper in the real hierarchy than the rendered tree shows.',
79
- },
80
- dropScope: {
81
- type: { kind: 'terminal', name: 'string' },
82
- required: false,
83
- target: { attribute: 'data-drop-scope' },
84
- description:
85
- 'Names the list the item sits in, such as its parent\'s id, and is reported as sourceScope and targetScope in the tree\'s reorder events, so a handler can\n tell a reorder within one list from a move between lists. It never restricts where an item can be dropped; dragType and accepts do that.',
86
- default: '',
87
- },
88
- expanded: {
89
- type: { kind: 'terminal', name: 'boolean' },
90
- required: false,
91
- target: { attribute: 'expanded' },
92
- description:
93
- 'Whether the branch shows its children, initially or when set externally. The expand button, a click on the row, and the arrow keys toggle it from there,\n each reported as an expand event. Only meaningful for a branch.',
94
- default: false,
95
- },
96
- itemId: {
97
- type: { kind: 'terminal', name: 'string' },
98
- required: false,
99
- target: { attribute: 'data-item-id' },
100
- description:
101
- 'The item\'s identifier, reported as sourceId and targetId in the tree\'s reorder events and as id in its expand event. A sortable item needs one to be\n dragged, and a drop onto an item without one is not reported.',
102
- default: '',
103
- },
104
- label: {
105
- type: { kind: 'terminal', name: 'string' },
106
- required: false,
107
- target: { attribute: 'aria-label' },
108
- description:
109
- 'The item\'s accessible name, also shown as the row text unless the label slot supplies content.',
110
- default: '',
111
- },
112
- lazy: {
113
- type: { kind: 'terminal', name: 'boolean' },
114
- required: false,
115
- target: { attribute: 'lazy' },
116
- description:
117
- 'Keeps an empty item expandable while its children are supplied later. Expanding emits expand; the item is aria-busy until child Tree Items are appended.\n Clear lazy if loading finishes with no children.',
118
- default: false,
119
- },
120
- marquee: {
121
- type: { kind: 'terminal', name: 'boolean' },
122
- required: false,
123
- target: { attribute: 'marquee' },
124
- description:
125
- 'Scrolls a name too long for its row while a pointer hovers the row or keyboard focus is in it, rests at the end, then scrolls it again from the start. A\n touch does not start it. Off by default: a tree of short names should not move, and a product decides whether reading the whole name matters more than a\n still list.',
126
- default: false,
127
- },
128
- selected: {
129
- type: { kind: 'terminal', name: 'boolean' },
130
- required: false,
131
- target: { attribute: 'aria-selected' },
132
- description:
133
- 'Marks the item selected: it sets aria-selected and highlights the row. This is controlled state; respond to the parent Tree\'s select request by updating\n it.',
134
- default: false,
135
- },
136
- sortable: {
137
- type: { kind: 'terminal', name: 'boolean' },
138
- required: false,
139
- target: { attribute: 'sortable' },
140
- description:
141
- 'Gives the item a move handle. Drag it, or activate it according to the tree\'s moveActivation and choose a target by a second click or the keyboard. A\n guided move exposes Cancel on this row. The tree reports reorder and leaves moving the item to you. Needs itemId; disabled items show no handle.',
142
- default: false,
143
- },
144
- subtreeDepth: {
145
- type: { kind: 'terminal', name: 'number' },
146
- required: false,
147
- target: { attribute: 'data-subtree-depth' },
148
- description:
149
- 'Overrides how many levels sit beneath this item when the tree checks maxDepth for a drag of it. Unset, the tree counts the rendered descendants; set it\n when some are not rendered, such as children that load later.',
150
- },
151
- },
152
- } as const
153
- const props = defineProps({
154
- accepts: { type: null as unknown as PropType<string | null> },
155
- actionsVisible: { type: null as unknown as PropType<boolean | null> },
156
- container: { type: null as unknown as PropType<boolean | null> },
157
- disabled: { type: null as unknown as PropType<boolean | null> },
158
- dragType: { type: null as unknown as PropType<string | null> },
159
- dropDepth: { type: null as unknown as PropType<number | null> },
160
- dropScope: { type: null as unknown as PropType<string | null> },
161
- expanded: { type: null as unknown as PropType<boolean | null> },
162
- itemId: { type: null as unknown as PropType<string | null> },
163
- label: { type: null as unknown as PropType<string | null> },
164
- lazy: { type: null as unknown as PropType<boolean | null> },
165
- marquee: { type: null as unknown as PropType<boolean | null> },
166
- selected: { type: null as unknown as PropType<boolean | null> },
167
- sortable: { type: null as unknown as PropType<boolean | null> },
168
- subtreeDepth: { type: null as unknown as PropType<number | null> },
169
- [BINDING_INPUTS_PROP]: { type: null as unknown as PropType<InputBindings> },
170
- })
171
- const acceptedProps: Record<string, unknown> = {
172
- accepts: '',
173
- actionsVisible: false,
174
- container: false,
175
- disabled: false,
176
- dragType: 'item',
177
- dropDepth: null,
178
- dropScope: '',
179
- expanded: false,
180
- itemId: '',
181
- label: '',
182
- lazy: false,
183
- marquee: false,
184
- selected: false,
185
- sortable: false,
186
- subtreeDepth: null,
187
- }
188
- const inputTracking = vuePropInputs(acceptedProps, {
189
- accepts: '',
190
- actionsVisible: false,
191
- container: false,
192
- disabled: false,
193
- dragType: 'item',
194
- dropScope: '',
195
- expanded: false,
196
- itemId: '',
197
- label: '',
198
- lazy: false,
199
- marquee: false,
200
- selected: false,
201
- sortable: false,
202
- }, (name, value, source, values) => {
203
- switch (name) {
204
- case 'accepts':
205
- return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
206
- case 'actionsVisible':
207
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
208
- case 'container':
209
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
210
- case 'disabled':
211
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
212
- case 'dragType':
213
- return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
214
- case 'dropDepth':
215
- return checkPropInput(value, { kind: 'terminal', name: 'number' }, true, true)
216
- case 'dropScope':
217
- return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
218
- case 'expanded':
219
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
220
- case 'itemId':
221
- return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
222
- case 'label':
223
- return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
224
- case 'lazy':
225
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
226
- case 'marquee':
227
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
228
- case 'selected':
229
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
230
- case 'sortable':
231
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
232
- case 'subtreeDepth':
233
- return checkPropInput(value, { kind: 'terminal', name: 'number' }, true, true)
234
- default:
235
- return { ok: false }
236
- }
237
- }, () => {
238
- void checkedProps.value
239
- })
240
- const propInputs = inputTracking.inputs
241
- const checkedProps = computed(() => {
242
- void inputTracking.version.value
243
- return ({
244
- accepts: propInputs.value<string | null>(
245
- 'accepts',
246
- props['accepts'],
247
- props[BINDING_INPUTS_PROP],
248
- ) as string,
249
- actionsVisible: propInputs.value<boolean | null>(
250
- 'actionsVisible',
251
- props['actionsVisible'],
252
- props[BINDING_INPUTS_PROP],
253
- ) as boolean,
254
- container: propInputs.value<boolean | null>(
255
- 'container',
256
- props['container'],
257
- props[BINDING_INPUTS_PROP],
258
- ) as boolean,
259
- disabled: propInputs.value<boolean | null>(
260
- 'disabled',
261
- props['disabled'],
262
- props[BINDING_INPUTS_PROP],
263
- ) as boolean,
264
- dragType: propInputs.value<string | null>(
265
- 'dragType',
266
- props['dragType'],
267
- props[BINDING_INPUTS_PROP],
268
- ) as string,
269
- dropDepth: propInputs.value<number | null>(
270
- 'dropDepth',
271
- props['dropDepth'],
272
- props[BINDING_INPUTS_PROP],
273
- ),
274
- dropScope: propInputs.value<string | null>(
275
- 'dropScope',
276
- props['dropScope'],
277
- props[BINDING_INPUTS_PROP],
278
- ) as string,
279
- expanded: propInputs.value<boolean | null>(
280
- 'expanded',
281
- props['expanded'],
282
- props[BINDING_INPUTS_PROP],
283
- ) as boolean,
284
- itemId: propInputs.value<string | null>(
285
- 'itemId',
286
- props['itemId'],
287
- props[BINDING_INPUTS_PROP],
288
- ) as string,
289
- label: propInputs.value<string | null>(
290
- 'label',
291
- props['label'],
292
- props[BINDING_INPUTS_PROP],
293
- ) as string,
294
- lazy: propInputs.value<boolean | null>(
295
- 'lazy',
296
- props['lazy'],
297
- props[BINDING_INPUTS_PROP],
298
- ) as boolean,
299
- marquee: propInputs.value<boolean | null>(
300
- 'marquee',
301
- props['marquee'],
302
- props[BINDING_INPUTS_PROP],
303
- ) as boolean,
304
- selected: propInputs.value<boolean | null>(
305
- 'selected',
306
- props['selected'],
307
- props[BINDING_INPUTS_PROP],
308
- ) as boolean,
309
- sortable: propInputs.value<boolean | null>(
310
- 'sortable',
311
- props['sortable'],
312
- props[BINDING_INPUTS_PROP],
313
- ) as boolean,
314
- subtreeDepth: propInputs.value<number | null>(
315
- 'subtreeDepth',
316
- props['subtreeDepth'],
317
- props[BINDING_INPUTS_PROP],
318
- ),
319
- })
320
- })
321
- const inputStatus = (name: string, handlesError: boolean) => {
322
- void checkedProps.value
323
- void inputTracking.version.value
324
- return requireInputStatus(propInputs.status(name), handlesError)
325
- }
326
- void checkedProps.value
327
- watchSyncEffect(() => {
328
- void checkedProps.value
329
- })
330
- const reflectedProp = useReflectedProp()
331
- const hydrationInstance = getCurrentInstance()
332
- const emit = defineEmits<{
333
- 'update:expanded': [value: boolean]
334
- expand: [
335
- event: CustomEvent<
336
- {
337
- readonly id: string
338
- readonly expanded: boolean
339
- readonly trigger: 'keyboard' | 'pointer' | 'programmatic'
340
- }
341
- >,
342
- ]
343
- }>()
344
-
345
- const root = ref<HTMLElement | null>(null)
346
- const rowElement = useTemplateRef<HTMLElement>('rowElement')
347
- const dragHandleElement = useTemplateRef<HTMLElement>('dragHandleElement')
348
- const disclosureElement = useTemplateRef<HTMLElement>('disclosureElement')
349
- const leadingElement = useTemplateRef<HTMLElement>('leadingElement')
350
- const labelElement = useTemplateRef<HTMLElement>('labelElement')
351
- const labelTextElement = useTemplateRef<HTMLElement>('labelTextElement')
352
- const actionsElement = useTemplateRef<HTMLElement>('actionsElement')
353
- const childrenElement = useTemplateRef<HTMLElement>('childrenElement')
354
- const internalExpanded = ref(false)
355
- const structuralLevel = ref(1)
356
- const tabStop = ref(false)
357
- const isContainer = ref(false)
358
- const moving = ref(false)
359
- let guardedPrevious: any = null
360
- const guarded = computed(() => {
361
- const candidate: any = ((objectValue: any, indexValue: any) =>
362
- objectValue === Symbol.for('html-next.invalid-result')
363
- || indexValue === Symbol.for('html-next.invalid-result')
364
- ? Symbol.for('html-next.invalid-result')
365
- : objectValue[indexValue])(
366
- (() => {
367
- const value = {
368
- true: concat('Cancel moving ', checkedProps.value.label),
369
- false: concat('Drag ', checkedProps.value.label, ' to reorder'),
370
- }
371
- return Object.values(value).some((entry: unknown) =>
372
- entry === Symbol.for('html-next.invalid-result')
373
- )
374
- ? Symbol.for('html-next.invalid-result')
375
- : value
376
- })(),
377
- concat(moving.value),
378
- )
379
- if (candidate === Symbol.for('html-next.invalid-result')) {
380
- return guardedPrevious
381
- }
382
- return guardedPrevious = typeof (((objectValue: any, indexValue: any) =>
383
- objectValue === Symbol.for('html-next.invalid-result')
384
- || indexValue === Symbol.for('html-next.invalid-result')
385
- ? Symbol.for('html-next.invalid-result')
386
- : objectValue[indexValue])(
387
- (() => {
388
- const value = {
389
- true: concat('Cancel moving ', checkedProps.value.label),
390
- false: concat('Drag ', checkedProps.value.label, ' to reorder'),
391
- }
392
- return Object.values(value).some((entry: unknown) =>
393
- entry === Symbol.for('html-next.invalid-result')
394
- )
395
- ? Symbol.for('html-next.invalid-result')
396
- : value
397
- })(),
398
- concat(moving.value),
399
- )) === 'boolean'
400
- ? String(((objectValue: any, indexValue: any) =>
401
- objectValue === Symbol.for('html-next.invalid-result')
402
- || indexValue === Symbol.for('html-next.invalid-result')
403
- ? Symbol.for('html-next.invalid-result')
404
- : objectValue[indexValue])(
405
- (() => {
406
- const value = {
407
- true: concat('Cancel moving ', checkedProps.value.label),
408
- false: concat('Drag ', checkedProps.value.label, ' to reorder'),
409
- }
410
- return Object.values(value).some((entry: unknown) =>
411
- entry === Symbol.for('html-next.invalid-result')
412
- )
413
- ? Symbol.for('html-next.invalid-result')
414
- : value
415
- })(),
416
- concat(moving.value),
417
- ))
418
- : attribute(((objectValue: any, indexValue: any) =>
419
- objectValue === Symbol.for('html-next.invalid-result')
420
- || indexValue === Symbol.for('html-next.invalid-result')
421
- ? Symbol.for('html-next.invalid-result')
422
- : objectValue[indexValue])(
423
- (() => {
424
- const value = {
425
- true: concat('Cancel moving ', checkedProps.value.label),
426
- false: concat('Drag ', checkedProps.value.label, ' to reorder'),
427
- }
428
- return Object.values(value).some((entry: unknown) =>
429
- entry === Symbol.for('html-next.invalid-result')
430
- )
431
- ? Symbol.for('html-next.invalid-result')
432
- : value
433
- })(),
434
- concat(moving.value),
435
- ))
436
- })
437
- let guardedBindingPrevious: any = null
438
- const guardedBinding = computed(() => {
439
- const candidate: any = concat('Select ', checkedProps.value.label)
440
- if (candidate === Symbol.for('html-next.invalid-result')) return guardedBindingPrevious
441
- return guardedBindingPrevious = candidate
442
- })
443
- provide('html-next:ui-tree-item:internalExpanded', internalExpanded)
444
- provide('html-next:ui-tree-item:structuralLevel', structuralLevel)
445
- provide('html-next:ui-tree-item:tabStop', tabStop)
446
- provide('html-next:ui-tree-item:isContainer', isContainer)
447
- provide('html-next:ui-tree-item:moving', moving)
448
- checkHydratedRoot('div', 'ui-tree-item')
449
-
450
- /** The values the styles' :host() and :state() rules test. */
451
- const hostState = computed(() =>
452
- [
453
- isContainer.value && 'isContainer',
454
- checkedProps.value.selected && 'selected',
455
- checkedProps.value.disabled && 'disabled',
456
- checkedProps.value.actionsVisible && 'actionsVisible',
457
- ].filter(Boolean).join(' ')
458
- )
459
-
460
- const isExpandDetail = (
461
- detail: unknown,
462
- ): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
463
- && typeof (detail as Record<string, unknown>)['id'] === 'string'
464
- && typeof (detail as Record<string, unknown>)['expanded'] === 'boolean'
465
- && ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
466
- || (detail as Record<string, unknown>)['trigger'] === 'pointer'
467
- || (detail as Record<string, unknown>)['trigger'] === 'programmatic')
468
- && Object.keys(detail as object).every((key) => ['id', 'expanded', 'trigger'].includes(key)))
469
- const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
470
- declared: { expand: { bubbles: false, composed: true, cancelable: false } },
471
- checks: {
472
- expand: isExpandDetail,
473
- },
474
- modeled: ['expanded'],
475
- })
476
-
477
- useComponentHost(() => import('../components/ui-tree-item/ui-tree-item.js'), {
478
- root,
479
- module: true,
480
- dispatch,
481
- acceptsState: (name: string, keys: readonly string[], value: unknown) =>
482
- acceptsControllerWrite(
483
- value,
484
- ({
485
- internalExpanded: { kind: 'terminal', name: 'boolean' },
486
- structuralLevel: { kind: 'terminal', name: 'integer' },
487
- tabStop: { kind: 'terminal', name: 'boolean' },
488
- isContainer: { kind: 'terminal', name: 'boolean' },
489
- moving: { kind: 'terminal', name: 'boolean' },
490
- } as Record<string, any>)[name],
491
- keys,
492
- ),
493
- initials: {
494
- internalExpanded: false,
495
- structuralLevel: 1,
496
- tabStop: false,
497
- isContainer: false,
498
- moving: false,
499
- },
500
- controllerSource: {
501
- specifier: '../components/ui-tree-item/ui-tree-item.js',
502
- definition: './components/ui-tree-item/ui-tree-item.html',
503
- },
504
- props: checkedProps,
505
- inputs: propInputs,
506
- inputTracking,
507
- propInputs: (name: string) => {
508
- const incoming = hydrationInstance?.vnode.props
509
- const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
510
- return incoming !== null && incoming !== undefined
511
- ? (incoming[name] ?? incoming[kebab] ?? null)
512
- : null
513
- },
514
- propNames: [
515
- 'accepts',
516
- 'actionsVisible',
517
- 'container',
518
- 'disabled',
519
- 'dragType',
520
- 'dropDepth',
521
- 'dropScope',
522
- 'expanded',
523
- 'itemId',
524
- 'label',
525
- 'lazy',
526
- 'marquee',
527
- 'selected',
528
- 'sortable',
529
- 'subtreeDepth',
530
- ],
531
- propValidity: (name: string) =>
532
- propValidityState({ contract: propValidityContract, values: { ...props } }, name),
533
- refs: {
534
- row: rowElement,
535
- dragHandle: dragHandleElement,
536
- disclosure: disclosureElement,
537
- leading: leadingElement,
538
- label: labelElement,
539
- labelText: labelTextElement,
540
- actions: actionsElement,
541
- children: childrenElement,
542
- },
543
- state: { internalExpanded, structuralLevel, tabStop, isContainer, moving },
544
- })
545
- </script>
546
-
547
- <template>
548
- <div
549
- class="ui-tree-item"
550
- role="treeitem"
551
- v-bind="nativeAttrs($attrs)"
552
- data-hn
553
- data-hn-ui-tree-item
554
- :aria-label="checkedProps.label ?? undefined"
555
- :aria-level="structuralLevel"
556
- :aria-selected="checkedProps.selected ?? undefined"
557
- :aria-disabled="checkedProps.disabled ?? undefined"
558
- :data-item-id="checkedProps.itemId ?? undefined"
559
- :data-drag-type="checkedProps.dragType ?? undefined"
560
- :data-drop-scope="checkedProps.dropScope ?? undefined"
561
- :data-accepts="checkedProps.accepts ?? undefined"
562
- :data-drop-depth="checkedProps.dropDepth ?? undefined"
563
- :data-subtree-depth="checkedProps.subtreeDepth ?? undefined"
564
- v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
565
- :data-ui-tree-item-prop-accepts="reflectedProp('accepts', 'accepts', checkedProps.accepts, undefined, false)"
566
- :data-ui-tree-item-prop-actions-visible="reflectedProp('actionsVisible', 'actions-visible', checkedProps.actionsVisible, undefined, false)"
567
- :data-ui-tree-item-prop-container="reflectedProp('container', 'container', checkedProps.container, undefined, false)"
568
- :data-ui-tree-item-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
569
- :data-ui-tree-item-prop-drag-type="reflectedProp('dragType', 'drag-type', checkedProps.dragType, undefined, false)"
570
- :data-ui-tree-item-prop-drop-depth="reflectedProp('dropDepth', 'drop-depth', checkedProps.dropDepth, undefined, false)"
571
- :data-ui-tree-item-prop-drop-scope="reflectedProp('dropScope', 'drop-scope', checkedProps.dropScope, undefined, false)"
572
- :data-ui-tree-item-prop-expanded="reflectedProp('expanded', 'expanded', checkedProps.expanded, undefined, false)"
573
- :data-ui-tree-item-prop-item-id="reflectedProp('itemId', 'item-id', checkedProps.itemId, undefined, false)"
574
- :data-ui-tree-item-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
575
- :data-ui-tree-item-prop-lazy="reflectedProp('lazy', 'lazy', checkedProps.lazy, undefined, false)"
576
- :data-ui-tree-item-prop-marquee="reflectedProp('marquee', 'marquee', checkedProps.marquee, undefined, false)"
577
- :data-ui-tree-item-prop-selected="reflectedProp('selected', 'selected', checkedProps.selected, undefined, false)"
578
- :data-ui-tree-item-prop-sortable="reflectedProp('sortable', 'sortable', checkedProps.sortable, undefined, false)"
579
- :data-ui-tree-item-prop-subtree-depth="reflectedProp('subtreeDepth', 'subtree-depth', checkedProps.subtreeDepth, undefined, false)"
580
- :data-ui-tree-item-state="hostState || undefined"
581
- ref="root"
582
- >
583
- <div class="row" data-hn-ui-tree-item ref="rowElement">
584
- <button
585
- v-if="checkedProps.sortable && !checkedProps.disabled"
586
- class="drag-handle"
587
- type="button"
588
- draggable="true"
589
- data-hn-ui-tree-item
590
- :aria-label="guarded"
591
- ref="dragHandleElement"
592
- >
593
- <svg
594
- aria-hidden="true"
595
- focusable="false"
596
- viewBox="0 0 24 24"
597
- fill="none"
598
- stroke="currentColor"
599
- stroke-width="2"
600
- stroke-linecap="round"
601
- stroke-linejoin="round"
602
- data-hn-ui-tree-item
603
- >
604
- <circle cx="9" cy="12" r="1" data-hn-ui-tree-item></circle>
605
- <circle cx="9" cy="5" r="1" data-hn-ui-tree-item></circle>
606
- <circle cx="9" cy="19" r="1" data-hn-ui-tree-item></circle>
607
- <circle cx="15" cy="12" r="1" data-hn-ui-tree-item></circle>
608
- <circle cx="15" cy="5" r="1" data-hn-ui-tree-item></circle>
609
- <circle cx="15" cy="19" r="1" data-hn-ui-tree-item></circle>
610
- </svg>
611
- </button>{{ ' ' }}<button
612
- class="disclosure"
613
- type="button"
614
- data-hn-ui-tree-item
615
- :disabled="checkedProps.disabled ?? undefined"
616
- :hidden="!isContainer"
617
- ref="disclosureElement"
618
- >
619
- <span class="disclosure-icon" aria-hidden="true" data-hn-ui-tree-item></span>
620
- </button>{{ ' ' }}<label class="selection-hit" data-hn-ui-tree-item><input
621
- class="selection-checkbox"
622
- type="checkbox"
623
- tabindex="-1"
624
- data-hn-ui-tree-item
625
- :checked.attr="checkedProps.selected ? true : undefined"
626
- :disabled="checkedProps.disabled ?? undefined"
627
- :aria-label="guardedBinding"
628
- ></label>{{ ' ' }}<span class="leading" data-hn-ui-tree-item ref="leadingElement"><slot
629
- name="leading"
630
- /></span>{{ ' ' }}<span class="label" data-hn-ui-tree-item ref="labelElement"><span
631
- class="label-text"
632
- data-hn-ui-tree-item
633
- ref="labelTextElement"
634
- ><slot name="label">{{ checkedProps.label }}</slot></span></span>{{ ' ' }}<span
635
- class="actions"
636
- data-hn-ui-tree-item
637
- ref="actionsElement"
638
- ><UiButton
639
- v-if="moving"
640
- class="ui-button"
641
- data-tree-cancel-move=""
642
- variant="ghost"
643
- tone="neutral"
644
- size="sm"
645
- aria-label="Cancel move"
646
- >Cancel</UiButton>
647
- <span v-else data-hn-ui-tree-item><slot name="actions" /></span></span>{{ ' ' }}<span
648
- class="drop-indicator row-drop-indicator"
649
- aria-hidden="true"
650
- data-hn-ui-tree-item
651
- ></span>
652
- </div>
653
- <div
654
- class="children"
655
- role="group"
656
- data-hn-ui-tree-item
657
- :hidden="!(isContainer && internalExpanded)"
658
- ref="childrenElement"
659
- >
660
- <slot />
661
- </div>
662
- <span
663
- class="drop-indicator subtree-drop-indicator"
664
- aria-hidden="true"
665
- data-hn-ui-tree-item
666
- ></span>
667
- </div>
668
- </template>
669
-
670
- <style scoped>
671
- /* Selection is the same surface recipe as destination and choice rows. */
672
-
673
- /* Child combinators: drop feedback belongs to this item's own row, not the rows nested in it. */
674
-
675
- /* Lucide grip-vertical, filling the handle as in Looma 0.2. */
676
-
677
- /* Slotted content is outside this scope, so :has() cannot see it; hide only a truly empty slot. */
678
-
679
- /* Icons match the label's size (as in Knit's tree): an unsized SVG would otherwise render 300×150. */
680
-
681
- /* The label spans the row's height and centres its content, so slotted content (a link) can
682
- stretch to fill the row as its own hit area; the padding tokens remove the inset. */
683
-
684
- /* Slotted label content fills the cell, so a link is the row's hit area rather than sizing to
685
- its own text and reading as overflow. */
686
-
687
- /* The controls sit over the label's end, so the text fades out where they begin. The fade is
688
- the truncation mark while it shows: an ellipsis under it would read as a second one. */
689
-
690
- /* A hovered row reads its whole name: the label slides far enough to show the end, rests
691
- there, and starts again. Only when it actually overflows — the controller measures by how
692
- much — after the controls have taken their place over its end — and hands over the distance
693
- and a duration from it, so every name moves at the same speed. */
694
-
695
- /* This comes after the hover fade, which it replaces at the same specificity. While the name
696
- slides, the label reaches back under the icon (the controller measures how far) with its text
697
- where it was, and fades out across the gap before the icon, fully gone where the icon begins
698
- to cover it: the name slips under the icon rather than stopping at a hard edge beside it. */
699
-
700
- @keyframes ui-tree-item-marquee {
701
- from {
702
- transform: translateX(0);
703
- }
704
-
705
- to {
706
- transform: translateX(var(--_marquee-distance));
707
- }
708
- }
709
-
710
- /* Reduced motion keeps the fade, which already says the name continues. */
711
-
712
- /* Without hover there is no reveal, so the controls keep their own column. */
713
-
714
- /* The handle sits beside what it drags. A leaf row has no disclosure, so the handle takes that
715
- empty column, right before the icon; a branch's disclosure is there, so its handle sits just
716
- outside the row. It is bare until pointed at: a resting surface behind it read as a faint
717
- patch rather than as a control. */
718
-
719
- /* A component that sets its display still honours the hidden attribute on its root. */
720
-
721
- @scope (.ui-tree-item) to ([data-hn]) {
722
- :global(:scope:where([data-hn-ui-tree-item])) {
723
- /* Resolve shared part values at the root. The tree's density
724
- sets the defaults, in --_ui-default-*. */
725
- --_ui-tree-item-min-block-size: var(
726
- --ui-tree-item-min-block-size,
727
- var(--_ui-default-tree-item-min-block-size)
728
- );
729
- --_ui-tree-item-font-size: var(
730
- --ui-tree-item-font-size,
731
- var(--_ui-default-tree-item-font-size)
732
- );
733
- --_ui-tree-item-label-padding-block: var(
734
- --ui-tree-item-label-padding-block,
735
- var(--_ui-default-tree-item-label-padding-block)
736
- );
737
- --_ui-tree-item-label-padding-inline: var(--ui-tree-item-label-padding-inline);
738
-
739
- --_tree-row-min-height: 32px;
740
- --_tree-disclosure-size: 16px;
741
-
742
- position: relative;
743
- display: block !important;
744
- min-inline-size: 0;
745
- margin-inline-start: calc(var(--_ui-tree-item-indent-step, 0) * var(--_ui-tree-indent, 16px))
746
- !important;
747
- }
748
- :global(.row:where([data-hn-ui-tree-item])) {
749
- position: relative;
750
- display: grid !important;
751
- grid-template-columns: var(--_tree-disclosure-size) auto minmax(0, 1fr);
752
- align-items: center !important;
753
- min-block-size: var(--_ui-tree-item-min-block-size, var(--_tree-row-min-height));
754
- min-inline-size: 0;
755
- font-size: var(--_ui-tree-item-font-size, var(--ui-font-size-sm));
756
- border-radius: var(--ui-selection-radius);
757
- color: var(--ui-text-secondary);
758
- cursor: default;
759
- transition:
760
- background-color var(--ui-motion-fast) var(--ui-motion-ease),
761
- color var(--ui-motion-fast) var(--ui-motion-ease),
762
- opacity var(--ui-motion-fast) var(--ui-motion-ease),
763
- box-shadow var(--ui-motion-fast) var(--ui-motion-ease),
764
- min-block-size var(--ui-motion-base) var(--ui-motion-ease);
765
- }
766
- :global(:scope[data-ui-tree-item-state~="isContainer"]:not([disabled])
767
- > .row:where([data-hn-ui-tree-item])),
768
- :global(:scope[data-selection-mode="single"]:not([disabled])
769
- > .row:where([data-hn-ui-tree-item])),
770
- :global(:scope[data-selection-mode="multiple"]:not([disabled])
771
- > .row:where([data-hn-ui-tree-item])) {
772
- cursor: pointer;
773
- }
774
- :global(.row:hover:where([data-hn-ui-tree-item])),
775
- :global(.row:focus-within:where([data-hn-ui-tree-item])) {
776
- color: var(--ui-text-primary);
777
- background: var(--_ui-selection-context-surface, var(--ui-surface-muted));
778
- box-shadow: inset 0 0 0 var(--ui-border-width)
779
- var(--_ui-selection-context-border, var(--ui-selection-border));
780
- }
781
- :global(:scope[data-ui-tree-item-state~="selected"] > .row:where([data-hn-ui-tree-item])) {
782
- color: var(--_ui-selection-context-text, var(--ui-selection-text));
783
- background: var(--_ui-selection-context-surface, var(--ui-selection-surface));
784
- box-shadow: inset 0 0 0 var(--ui-border-width)
785
- var(--_ui-selection-context-border, var(--ui-selection-border));
786
- }
787
- :global(:scope[data-ui-tree-item-state~="selected"]:not([aria-disabled="true"])
788
- > .row
789
- > .leading:where([data-hn-ui-tree-item])) {
790
- color: var(--_ui-selection-context-text, var(--ui-selection-text));
791
- }
792
-
793
- :global(:scope[data-ui-tree-item-state~="disabled"] .row:where([data-hn-ui-tree-item])) {
794
- color: var(--ui-disabled-text);
795
- background: var(--ui-disabled-surface);
796
- box-shadow: none;
797
- }
798
-
799
- :global(:scope[data-dragging]:not([data-move-source]) .row:where([data-hn-ui-tree-item])) {
800
- opacity: 0.42;
801
- }
802
-
803
- :global(:scope[data-move-source] > .row > .label:where([data-hn-ui-tree-item])),
804
- :global(:scope[data-move-source] > .row > .leading:where([data-hn-ui-tree-item])) {
805
- opacity: 0.42;
806
- }
807
-
808
- :global(:scope:focus:where([data-hn-ui-tree-item])) {
809
- outline: none;
810
- }
811
-
812
- :global(:scope:focus-visible .row:where([data-hn-ui-tree-item])) {
813
- box-shadow: 0 0 0 var(--ui-focus-width) var(--ui-focus-ring);
814
- }
815
- :global(:scope[data-drop-position="inside"] > .row:where([data-hn-ui-tree-item])) {
816
- background: var(--ui-accent-subtle);
817
- box-shadow: inset 0 0 0 var(--ui-accent-line-width)
818
- var(--_ui-tree-drop-color, var(--ui-accent-solid));
819
- }
820
-
821
- :global(.disclosure:where([data-hn-ui-tree-item])),
822
- :global(.disclosure-spacer:where([data-hn-ui-tree-item])) {
823
- grid-column: 1;
824
- grid-row: 1;
825
- inline-size: var(--_tree-disclosure-size);
826
- block-size: 28px;
827
- }
828
-
829
- :global(.disclosure:where([data-hn-ui-tree-item])) {
830
- display: grid !important;
831
- /* Start-aligned: the chevron's ink, not its hit area, aligns with the content above it. */
832
- place-items: center start;
833
- padding: 0 !important;
834
- color: var(--ui-text-muted);
835
- background: transparent;
836
- border: 0;
837
- border-radius: var(--ui-radius-sm);
838
- cursor: pointer;
839
- }
840
-
841
- :global(.disclosure[hidden]:where([data-hn-ui-tree-item])) {
842
- display: none !important;
843
- }
844
-
845
- :global(.selection-hit:where([data-hn-ui-tree-item])) {
846
- display: none !important;
847
- grid-column: 2;
848
- grid-row: 1;
849
- place-items: center;
850
- inline-size: 1.25rem;
851
- block-size: var(--_ui-tree-item-min-block-size, var(--_tree-row-min-height));
852
- cursor: pointer;
853
- }
854
- :global(.selection-checkbox:where([data-hn-ui-tree-item])) {
855
- inline-size: 1rem;
856
- block-size: 1rem;
857
- margin: 0 !important;
858
- accent-color: var(--ui-accent-solid);
859
- }
860
-
861
- :global(:scope[data-selection-mode="multiple"] > .row:where([data-hn-ui-tree-item])) {
862
- grid-template-columns: var(--_tree-disclosure-size) 1.25rem auto minmax(0, 1fr);
863
- }
864
- :global(:scope[data-selection-mode="multiple"]
865
- > .row
866
- > .selection-hit:where([data-hn-ui-tree-item])) {
867
- display: grid !important;
868
- }
869
- :global(:scope[data-selection-mode="multiple"] > .row > .leading:where([data-hn-ui-tree-item])) {
870
- grid-column: 3;
871
- }
872
- :global(:scope[data-selection-mode="multiple"] > .row > .label:where([data-hn-ui-tree-item])) {
873
- grid-column: 4;
874
- }
875
-
876
- :global(.disclosure:hover:where([data-hn-ui-tree-item])) {
877
- color: var(--ui-text-primary);
878
- }
879
-
880
- :global(.disclosure-icon:where([data-hn-ui-tree-item])) {
881
- display: grid !important;
882
- place-items: center;
883
- inline-size: 12px;
884
- block-size: 12px;
885
- transform: rotate(-90deg);
886
- transition: transform var(--ui-motion-fast) var(--ui-motion-ease);
887
- }
888
-
889
- :global(.disclosure-icon:where([data-hn-ui-tree-item])::before) {
890
- display: block !important;
891
- inline-size: 0.375rem;
892
- block-size: 0.375rem;
893
- border-inline-end: 1.5px solid currentColor;
894
- border-block-end: 1.5px solid currentColor;
895
- content: "";
896
- /* A chevron's ink sits below its box centre; lift it so it centres optically (in either rotation). */
897
- transform: translateY(-20%) rotate(45deg);
898
- }
899
-
900
- :global(:scope[aria-expanded="true"]
901
- > .row
902
- > .disclosure
903
- > .disclosure-icon:where([data-hn-ui-tree-item])) {
904
- transform: rotate(0deg);
905
- }
906
- :global(.drag-handle svg:where([data-hn-ui-tree-item])) {
907
- display: block !important;
908
- inline-size: 100%;
909
- block-size: 100%;
910
- }
911
- :global(.leading:where([data-hn-ui-tree-item])) {
912
- display: inline-grid !important;
913
- place-items: center;
914
- grid-column: 2;
915
- grid-row: 1;
916
- inline-size: 1em;
917
- block-size: 1em;
918
- margin-inline-start: var(--ui-space-1) !important;
919
- color: var(--ui-text-muted);
920
- /* Above the label, so a sliding name passes under the icon. */
921
- position: relative;
922
- z-index: 1;
923
- }
924
-
925
- :global(.leading:empty:where([data-hn-ui-tree-item])) {
926
- display: none !important;
927
- }
928
- :global(:where(:not([data-hn-ui-tree-item])):is(svg)),
929
- :global(:where(:not([data-hn-ui-tree-item])):is(img)) {
930
- display: block !important;
931
- inline-size: 1em;
932
- block-size: 1em;
933
- flex: none;
934
- }
935
- :global(.label:where([data-hn-ui-tree-item])) {
936
- grid-column: 3;
937
- grid-row: 1;
938
- align-self: stretch;
939
- display: flex !important;
940
- align-items: center !important;
941
- min-inline-size: 0;
942
- /* The cell clips: a name longer than the row slides inside it rather than over its icons. */
943
- overflow: hidden;
944
- padding: var(--_ui-tree-item-label-padding-block, var(--ui-space-1))
945
- var(--_ui-tree-item-label-padding-inline, var(--ui-space-2)) !important;
946
- /* The length of the fade before the controls. The label's one flex child lays out no gap; this
947
- is where the controller reads the length in pixels to stop a sliding name before the fade. */
948
- column-gap: var(--ui-space-1) !important;
949
- }
950
- :global(.label-text:where([data-hn-ui-tree-item])) {
951
- display: flex !important;
952
- align-items: center !important;
953
- /* Stretches, so slotted content can still be the row's full-height hit area. */
954
- align-self: stretch;
955
- block-size: 100%;
956
- min-inline-size: 0;
957
- inline-size: 100%;
958
- white-space: nowrap;
959
- }
960
-
961
- :global(.label-text > :where(:not([data-hn-ui-tree-item])):is(*)) {
962
- flex: 1 1 auto;
963
- min-inline-size: 0;
964
- }
965
- :global(.row:hover > .label:where([data-hn-ui-tree-item])),
966
- :global(.row:focus-within > .label:where([data-hn-ui-tree-item])),
967
- :global(:scope[data-ui-tree-item-state~="actionsVisible"]
968
- > .row
969
- > .label:where([data-hn-ui-tree-item])),
970
- :global(:scope[data-move-source] > .row > .label:where([data-hn-ui-tree-item])) {
971
- text-overflow: clip;
972
- mask-image: linear-gradient(
973
- to right,
974
- #000 calc(100% - var(--_tree-actions-width, 1.75rem) - var(--ui-space-1)),
975
- transparent calc(100% - var(--_tree-actions-width, 1.75rem))
976
- );
977
- }
978
-
979
- :global(.row:hover > .label:dir(rtl):where([data-hn-ui-tree-item])),
980
- :global(.row:focus-within > .label:dir(rtl):where([data-hn-ui-tree-item])),
981
- :global(:scope[data-ui-tree-item-state~="actionsVisible"]
982
- > .row
983
- > .label:dir(rtl):where([data-hn-ui-tree-item])),
984
- :global(:scope[data-move-source] > .row > .label:dir(rtl):where([data-hn-ui-tree-item])) {
985
- mask-image: linear-gradient(
986
- to left,
987
- #000 calc(100% - var(--_tree-actions-width, 1.75rem) - var(--ui-space-1)),
988
- transparent calc(100% - var(--_tree-actions-width, 1.75rem))
989
- );
990
- }
991
- :global(.row[data-ui-marquee] > .label > .label-text:where([data-hn-ui-tree-item])) {
992
- /* Once per pass: the controller restarts it after a rest at the end, so the name holds still
993
- long enough to read rather than sliding back and forth. */
994
- animation: ui-tree-item-marquee var(--_marquee-duration) linear 0.5s 1 normal forwards;
995
- will-change: transform;
996
- }
997
- :global(.row[data-ui-marquee] > .label:where([data-hn-ui-tree-item])) {
998
- margin-inline-start: calc(-1 * var(--_marquee-lead, 0px)) !important;
999
- padding-inline-start: calc(
1000
- var(--_marquee-lead, 0px) + var(--_ui-tree-item-label-padding-inline, var(--ui-space-2))
1001
- ) !important;
1002
- mask-image: linear-gradient(
1003
- to right,
1004
- transparent var(--_marquee-icon-width, 0px),
1005
- #000 calc(
1006
- var(--_marquee-lead, 0px) + var(--_ui-tree-item-label-padding-inline, var(--ui-space-2))
1007
- ),
1008
- #000 calc(100% - var(--_tree-actions-width, 1.75rem) - var(--ui-space-1)),
1009
- transparent calc(100% - var(--_tree-actions-width, 1.75rem))
1010
- );
1011
- }
1012
-
1013
- :global(.row[data-ui-marquee] > .label:dir(rtl):where([data-hn-ui-tree-item])) {
1014
- mask-image: linear-gradient(
1015
- to left,
1016
- transparent var(--_marquee-icon-width, 0px),
1017
- #000 calc(
1018
- var(--_marquee-lead, 0px) + var(--_ui-tree-item-label-padding-inline, var(--ui-space-2))
1019
- ),
1020
- #000 calc(100% - var(--_tree-actions-width, 1.75rem) - var(--ui-space-1)),
1021
- transparent calc(100% - var(--_tree-actions-width, 1.75rem))
1022
- );
1023
- }
1024
- @media (prefers-reduced-motion: reduce) {
1025
- :global(.row[data-ui-marquee] > .label > .label-text:where([data-hn-ui-tree-item])) {
1026
- animation: none;
1027
- }
1028
- }
1029
-
1030
- :global(.row:hover > .label > :where(:not([data-hn-ui-tree-item])):is(*)),
1031
- :global(.row:focus-within > .label > :where(:not([data-hn-ui-tree-item])):is(*)) {
1032
- text-overflow: clip;
1033
- }
1034
-
1035
- :global(.actions:where([data-hn-ui-tree-item])) {
1036
- position: absolute;
1037
- z-index: 1;
1038
- inset-block: 0;
1039
- inset-inline-end: 0;
1040
- display: inline-flex !important;
1041
- align-items: center !important;
1042
- min-inline-size: 0;
1043
- opacity: 0;
1044
- pointer-events: none;
1045
- transition: opacity var(--ui-motion-fast) var(--ui-motion-ease);
1046
- }
1047
-
1048
- :global(.row:hover > .actions:where([data-hn-ui-tree-item])),
1049
- :global(.row:focus-within > .actions:where([data-hn-ui-tree-item])),
1050
- :global(:scope[data-ui-tree-item-state~="actionsVisible"]
1051
- > .row
1052
- > .actions:where([data-hn-ui-tree-item])),
1053
- :global(:scope[data-move-source] > .row > .actions:where([data-hn-ui-tree-item])) {
1054
- opacity: 1;
1055
- pointer-events: auto;
1056
- }
1057
- @media (hover: none), (pointer: coarse) {
1058
- :global(.row:where([data-hn-ui-tree-item])) {
1059
- grid-template-columns: var(--_tree-disclosure-size) auto minmax(0, 1fr) auto;
1060
- }
1061
-
1062
- :global(.actions:where([data-hn-ui-tree-item])) {
1063
- position: static;
1064
- grid-column: 4;
1065
- grid-row: 1;
1066
- padding-inline-start: 0 !important;
1067
- background: none;
1068
- opacity: 1;
1069
- pointer-events: auto;
1070
- }
1071
-
1072
- :global(.row:is(:hover, :focus-within) > .label:where([data-hn-ui-tree-item])),
1073
- :global(.row:is(:hover, :focus-within) > .label:dir(rtl):where([data-hn-ui-tree-item])),
1074
- :global(:scope[data-move-source] > .row > .label:where([data-hn-ui-tree-item])),
1075
- :global(:scope[data-move-source] > .row > .label:dir(rtl):where([data-hn-ui-tree-item])) {
1076
- mask-image: none;
1077
- }
1078
-
1079
- :global(.row[data-ui-marquee] > .label:where([data-hn-ui-tree-item])) {
1080
- mask-image: linear-gradient(
1081
- to right,
1082
- transparent var(--_marquee-icon-width, 0px),
1083
- #000 calc(
1084
- var(--_marquee-lead, 0px) + var(--_ui-tree-item-label-padding-inline, var(--ui-space-2))
1085
- )
1086
- );
1087
- }
1088
-
1089
- /* Persistent content has its own column on touch. Fade only the label's end. */
1090
- :global(:scope[data-ui-tree-item-state~="actionsVisible"]
1091
- > .row
1092
- > .label:where([data-hn-ui-tree-item])) {
1093
- mask-image: linear-gradient(to right, #000 calc(100% - var(--ui-space-1)), transparent 100%);
1094
- }
1095
- :global(:scope[data-ui-tree-item-state~="actionsVisible"]
1096
- > .row
1097
- > .label:dir(rtl):where([data-hn-ui-tree-item])) {
1098
- mask-image: linear-gradient(to left, #000 calc(100% - var(--ui-space-1)), transparent 100%);
1099
- }
1100
-
1101
- :global(.row[data-ui-marquee] > .label:dir(rtl):where([data-hn-ui-tree-item])) {
1102
- mask-image: linear-gradient(
1103
- to left,
1104
- transparent var(--_marquee-icon-width, 0px),
1105
- #000 calc(
1106
- var(--_marquee-lead, 0px) + var(--_ui-tree-item-label-padding-inline, var(--ui-space-2))
1107
- )
1108
- );
1109
- }
1110
-
1111
- :global(:scope[data-selection-mode="multiple"] > .row:where([data-hn-ui-tree-item])) {
1112
- grid-template-columns: var(--_tree-disclosure-size) 1.25rem auto minmax(0, 1fr) auto;
1113
- }
1114
-
1115
- :global(:scope[data-selection-mode="multiple"]
1116
- > .row
1117
- > .actions:where([data-hn-ui-tree-item])) {
1118
- grid-column: 5;
1119
- }
1120
- }
1121
- :global(.drag-handle:where([data-hn-ui-tree-item])) {
1122
- position: absolute;
1123
- z-index: 2;
1124
- inset-block-start: 50%;
1125
- inset-inline-start: 0;
1126
- inline-size: var(--_tree-disclosure-size);
1127
- block-size: 24px;
1128
- display: grid !important;
1129
- place-items: center;
1130
- padding: 5px 2px !important;
1131
- color: var(--ui-text-muted);
1132
- background: transparent;
1133
- border: 0;
1134
- border-radius: var(--ui-radius-sm);
1135
- cursor: grab;
1136
- /* Hidden until the row is hovered, but always hittable: the handle sits outside the row, and moving
1137
- the pointer onto it must not hide it on the way. */
1138
- opacity: 0;
1139
- transform: translateY(-50%);
1140
- transition: opacity var(--ui-motion-fast) var(--ui-motion-ease);
1141
- }
1142
-
1143
- :global(.row:hover .drag-handle:where([data-hn-ui-tree-item])),
1144
- :global(.drag-handle:hover:where([data-hn-ui-tree-item])),
1145
- :global(.drag-handle:focus-visible:where([data-hn-ui-tree-item])),
1146
- :global(:scope[data-dragging] > .row > .drag-handle:where([data-hn-ui-tree-item])) {
1147
- opacity: 1;
1148
- }
1149
-
1150
- :global(:scope[data-ui-tree-item-state~="isContainer"]
1151
- > .row
1152
- > .drag-handle:where([data-hn-ui-tree-item])) {
1153
- inset-inline-start: calc(-1 * var(--_tree-disclosure-size) - 2px);
1154
- }
1155
-
1156
- :global(.drag-handle:hover:where([data-hn-ui-tree-item])),
1157
- :global(.drag-handle:focus-visible:where([data-hn-ui-tree-item])) {
1158
- color: var(--ui-text-primary);
1159
- background: var(--ui-surface-hover);
1160
- }
1161
-
1162
- :global(.drag-handle:active:where([data-hn-ui-tree-item])) {
1163
- cursor: grabbing;
1164
- }
1165
-
1166
- :global(.drop-indicator:where([data-hn-ui-tree-item])) {
1167
- position: absolute;
1168
- z-index: 3;
1169
- inset-inline: 1px;
1170
- display: none !important;
1171
- block-size: var(--ui-accent-line-width);
1172
- border-radius: var(--ui-radius-round);
1173
- background: var(--_ui-tree-drop-color, var(--ui-accent-solid));
1174
- pointer-events: none;
1175
- }
1176
-
1177
- :global(.drop-indicator:where([data-hn-ui-tree-item])::before),
1178
- :global(.drop-indicator:where([data-hn-ui-tree-item])::after) {
1179
- content: "";
1180
- position: absolute;
1181
- inset-block-start: 50%;
1182
- inline-size: 7px;
1183
- block-size: 7px;
1184
- border: var(--ui-accent-line-width) solid var(--_ui-tree-drop-color, var(--ui-accent-solid));
1185
- border-radius: var(--ui-radius-round);
1186
- background: var(--ui-surface-elevated);
1187
- transform: translateY(-50%);
1188
- }
1189
-
1190
- :global(.drop-indicator:where([data-hn-ui-tree-item])::before) {
1191
- inset-inline-start: -1px;
1192
- }
1193
- :global(.drop-indicator:where([data-hn-ui-tree-item])::after) {
1194
- inset-inline-end: -1px;
1195
- }
1196
-
1197
- :global(:scope[data-drop-position="before"]
1198
- > .row
1199
- > .row-drop-indicator:where([data-hn-ui-tree-item])) {
1200
- display: block !important;
1201
- inset-block-start: calc(-0.5 * var(--ui-accent-line-width));
1202
- }
1203
-
1204
- :global(:scope[data-drop-position="after"]
1205
- > .subtree-drop-indicator:where([data-hn-ui-tree-item])) {
1206
- display: block !important;
1207
- inset-block-end: calc(-0.5 * var(--ui-accent-line-width));
1208
- }
1209
-
1210
- :global(.children[hidden]:where([data-hn-ui-tree-item])) {
1211
- display: none !important;
1212
- }
1213
-
1214
- :global(html[data-ui-input-modality="touch"] :scope:where([data-hn-ui-tree-item])) {
1215
- --_tree-row-min-height: 44px;
1216
- }
1217
-
1218
- :global(html[data-ui-input-modality="touch"] :scope .row:where([data-hn-ui-tree-item])) {
1219
- grid-template-columns: 44px var(--_tree-disclosure-size) auto minmax(0, 1fr);
1220
- }
1221
-
1222
- :global(html[data-ui-input-modality="touch"] :scope .drag-handle:where([data-hn-ui-tree-item])),
1223
- :global(html[data-ui-input-modality="touch"]
1224
- :scope[data-ui-tree-item-state~="isContainer"]
1225
- > .row
1226
- > .drag-handle:where([data-hn-ui-tree-item])) {
1227
- position: relative;
1228
- grid-column: 1;
1229
- grid-row: 1;
1230
- inset: auto;
1231
- inline-size: 44px;
1232
- block-size: 44px;
1233
- padding: 14px !important;
1234
- opacity: 1;
1235
- transform: none;
1236
- cursor: pointer;
1237
- }
1238
-
1239
- :global(html[data-ui-input-modality="touch"] :scope .disclosure:where([data-hn-ui-tree-item])) {
1240
- grid-column: 2;
1241
- }
1242
- :global(html[data-ui-input-modality="touch"] :scope .leading:where([data-hn-ui-tree-item])) {
1243
- grid-column: 3;
1244
- }
1245
- :global(html[data-ui-input-modality="touch"] :scope .label:where([data-hn-ui-tree-item])) {
1246
- grid-column: 4;
1247
- }
1248
-
1249
- :global(html[data-ui-input-modality="touch"]
1250
- :scope[data-selection-mode="multiple"]
1251
- > .row:where([data-hn-ui-tree-item])) {
1252
- grid-template-columns: 44px var(--_tree-disclosure-size) 44px auto minmax(0, 1fr);
1253
- }
1254
- :global(html[data-ui-input-modality="touch"]
1255
- :scope[data-selection-mode="multiple"]
1256
- > .row
1257
- > .selection-hit:where([data-hn-ui-tree-item])) {
1258
- grid-column: 3;
1259
- inline-size: 44px;
1260
- block-size: 44px;
1261
- }
1262
- :global(html[data-ui-input-modality="touch"]
1263
- :scope[data-selection-mode="multiple"]
1264
- > .row
1265
- > .leading:where([data-hn-ui-tree-item])) {
1266
- grid-column: 4;
1267
- }
1268
- :global(html[data-ui-input-modality="touch"]
1269
- :scope[data-selection-mode="multiple"]
1270
- > .row
1271
- > .label:where([data-hn-ui-tree-item])) {
1272
- grid-column: 5;
1273
- }
1274
-
1275
- @media (hover: none), (pointer: coarse) {
1276
- :global(html[data-ui-input-modality="touch"] :scope .row:where([data-hn-ui-tree-item])) {
1277
- grid-template-columns: 44px var(--_tree-disclosure-size) auto minmax(0, 1fr) auto;
1278
- }
1279
-
1280
- :global(html[data-ui-input-modality="touch"] :scope .actions:where([data-hn-ui-tree-item])) {
1281
- grid-column: 5;
1282
- }
1283
-
1284
- :global(html[data-ui-input-modality="touch"]
1285
- :scope[data-selection-mode="multiple"]
1286
- > .row:where([data-hn-ui-tree-item])) {
1287
- grid-template-columns: 44px var(--_tree-disclosure-size) 44px auto minmax(0, 1fr) auto;
1288
- }
1289
-
1290
- :global(html[data-ui-input-modality="touch"]
1291
- :scope[data-selection-mode="multiple"]
1292
- > .row
1293
- > .actions:where([data-hn-ui-tree-item])) {
1294
- grid-column: 6;
1295
- }
1296
- }
1297
-
1298
- @media (prefers-reduced-motion: reduce) {
1299
- :global(.row:where([data-hn-ui-tree-item])),
1300
- :global(.disclosure-icon:where([data-hn-ui-tree-item])),
1301
- :global(.drag-handle:where([data-hn-ui-tree-item])) {
1302
- transition: none;
1303
- }
1304
- }
1305
-
1306
- @media (forced-colors: active) {
1307
- :global(:scope:focus-visible > .row:where([data-hn-ui-tree-item])) {
1308
- outline: var(--ui-focus-width) solid Highlight;
1309
- outline-offset: calc(-1 * var(--ui-focus-width));
1310
- }
1311
- :global(:scope[data-ui-tree-item-state~="selected"]:not(:focus-visible):not([aria-disabled="true"])
1312
- > .row:where([data-hn-ui-tree-item])) {
1313
- outline: var(--ui-border-width) solid Highlight;
1314
- outline-offset: calc(-1 * var(--ui-border-width));
1315
- }
1316
- }
1317
- :global(:scope[hidden]:where([data-hn-ui-tree-item])) {
1318
- display: none !important;
1319
- }
1320
- }
1321
-
1322
- @scope ([data-slotted~="ui-tree-item"]:not([data-hn])) to ([data-hn], [data-slotted]) {
1323
- :global(:where(.ui-tree-item):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1324
- /* Resolve shared part values at the root. The tree's density
1325
- sets the defaults, in --_ui-default-*. */
1326
- --_ui-tree-item-min-block-size: var(
1327
- --ui-tree-item-min-block-size,
1328
- var(--_ui-default-tree-item-min-block-size)
1329
- );
1330
- --_ui-tree-item-font-size: var(
1331
- --ui-tree-item-font-size,
1332
- var(--_ui-default-tree-item-font-size)
1333
- );
1334
- --_ui-tree-item-label-padding-block: var(
1335
- --ui-tree-item-label-padding-block,
1336
- var(--_ui-default-tree-item-label-padding-block)
1337
- );
1338
- --_ui-tree-item-label-padding-inline: var(--ui-tree-item-label-padding-inline);
1339
-
1340
- --_tree-row-min-height: 32px;
1341
- --_tree-disclosure-size: 16px;
1342
-
1343
- position: relative;
1344
- display: block !important;
1345
- min-inline-size: 0;
1346
- margin-inline-start: calc(var(--_ui-tree-item-indent-step, 0) * var(--_ui-tree-indent, 16px))
1347
- !important;
1348
- }
1349
- :global(.row:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1350
- position: relative;
1351
- display: grid !important;
1352
- grid-template-columns: var(--_tree-disclosure-size) auto minmax(0, 1fr);
1353
- align-items: center !important;
1354
- min-block-size: var(--_ui-tree-item-min-block-size, var(--_tree-row-min-height));
1355
- min-inline-size: 0;
1356
- font-size: var(--_ui-tree-item-font-size, var(--ui-font-size-sm));
1357
- border-radius: var(--ui-selection-radius);
1358
- color: var(--ui-text-secondary);
1359
- cursor: default;
1360
- transition:
1361
- background-color var(--ui-motion-fast) var(--ui-motion-ease),
1362
- color var(--ui-motion-fast) var(--ui-motion-ease),
1363
- opacity var(--ui-motion-fast) var(--ui-motion-ease),
1364
- box-shadow var(--ui-motion-fast) var(--ui-motion-ease),
1365
- min-block-size var(--ui-motion-base) var(--ui-motion-ease);
1366
- }
1367
- :global(:where(.ui-tree-item)[data-ui-tree-item-state~="isContainer"]:not([disabled])
1368
- > .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])),
1369
- :global(:where(.ui-tree-item)[data-selection-mode="single"]:not([disabled])
1370
- > .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])),
1371
- :global(:where(.ui-tree-item)[data-selection-mode="multiple"]:not([disabled])
1372
- > .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1373
- cursor: pointer;
1374
- }
1375
- :global(.row:hover:where(:scope, :scope *):where([data-hn-ui-tree-item])),
1376
- :global(.row:focus-within:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1377
- color: var(--ui-text-primary);
1378
- background: var(--_ui-selection-context-surface, var(--ui-surface-muted));
1379
- box-shadow: inset 0 0 0 var(--ui-border-width)
1380
- var(--_ui-selection-context-border, var(--ui-selection-border));
1381
- }
1382
- :global(:where(.ui-tree-item)[data-ui-tree-item-state~="selected"]
1383
- > .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1384
- color: var(--_ui-selection-context-text, var(--ui-selection-text));
1385
- background: var(--_ui-selection-context-surface, var(--ui-selection-surface));
1386
- box-shadow: inset 0 0 0 var(--ui-border-width)
1387
- var(--_ui-selection-context-border, var(--ui-selection-border));
1388
- }
1389
- :global(:where(.ui-tree-item)[data-ui-tree-item-state~="selected"]:not([aria-disabled="true"])
1390
- > .row
1391
- > .leading:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1392
- color: var(--_ui-selection-context-text, var(--ui-selection-text));
1393
- }
1394
-
1395
- :global(:where(.ui-tree-item)[data-ui-tree-item-state~="disabled"]
1396
- .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1397
- color: var(--ui-disabled-text);
1398
- background: var(--ui-disabled-surface);
1399
- box-shadow: none;
1400
- }
1401
-
1402
- :global(:where(.ui-tree-item)[data-dragging]:not([data-move-source])
1403
- .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1404
- opacity: 0.42;
1405
- }
1406
-
1407
- :global(:where(.ui-tree-item)[data-move-source]
1408
- > .row
1409
- > .label:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])),
1410
- :global(:where(.ui-tree-item)[data-move-source]
1411
- > .row
1412
- > .leading:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1413
- opacity: 0.42;
1414
- }
1415
-
1416
- :global(:where(.ui-tree-item):focus:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1417
- outline: none;
1418
- }
1419
-
1420
- :global(:where(.ui-tree-item):focus-visible
1421
- .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1422
- box-shadow: 0 0 0 var(--ui-focus-width) var(--ui-focus-ring);
1423
- }
1424
- :global(:where(.ui-tree-item)[data-drop-position="inside"]
1425
- > .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1426
- background: var(--ui-accent-subtle);
1427
- box-shadow: inset 0 0 0 var(--ui-accent-line-width)
1428
- var(--_ui-tree-drop-color, var(--ui-accent-solid));
1429
- }
1430
-
1431
- :global(.disclosure:where(:scope, :scope *):where([data-hn-ui-tree-item])),
1432
- :global(.disclosure-spacer:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1433
- grid-column: 1;
1434
- grid-row: 1;
1435
- inline-size: var(--_tree-disclosure-size);
1436
- block-size: 28px;
1437
- }
1438
-
1439
- :global(.disclosure:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1440
- display: grid !important;
1441
- /* Start-aligned: the chevron's ink, not its hit area, aligns with the content above it. */
1442
- place-items: center start;
1443
- padding: 0 !important;
1444
- color: var(--ui-text-muted);
1445
- background: transparent;
1446
- border: 0;
1447
- border-radius: var(--ui-radius-sm);
1448
- cursor: pointer;
1449
- }
1450
-
1451
- :global(.disclosure[hidden]:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1452
- display: none !important;
1453
- }
1454
-
1455
- :global(.selection-hit:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1456
- display: none !important;
1457
- grid-column: 2;
1458
- grid-row: 1;
1459
- place-items: center;
1460
- inline-size: 1.25rem;
1461
- block-size: var(--_ui-tree-item-min-block-size, var(--_tree-row-min-height));
1462
- cursor: pointer;
1463
- }
1464
- :global(.selection-checkbox:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1465
- inline-size: 1rem;
1466
- block-size: 1rem;
1467
- margin: 0 !important;
1468
- accent-color: var(--ui-accent-solid);
1469
- }
1470
-
1471
- :global(:where(.ui-tree-item)[data-selection-mode="multiple"]
1472
- > .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1473
- grid-template-columns: var(--_tree-disclosure-size) 1.25rem auto minmax(0, 1fr);
1474
- }
1475
- :global(:where(.ui-tree-item)[data-selection-mode="multiple"]
1476
- > .row
1477
- > .selection-hit:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1478
- display: grid !important;
1479
- }
1480
- :global(:where(.ui-tree-item)[data-selection-mode="multiple"]
1481
- > .row
1482
- > .leading:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1483
- grid-column: 3;
1484
- }
1485
- :global(:where(.ui-tree-item)[data-selection-mode="multiple"]
1486
- > .row
1487
- > .label:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1488
- grid-column: 4;
1489
- }
1490
-
1491
- :global(.disclosure:hover:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1492
- color: var(--ui-text-primary);
1493
- }
1494
-
1495
- :global(.disclosure-icon:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1496
- display: grid !important;
1497
- place-items: center;
1498
- inline-size: 12px;
1499
- block-size: 12px;
1500
- transform: rotate(-90deg);
1501
- transition: transform var(--ui-motion-fast) var(--ui-motion-ease);
1502
- }
1503
-
1504
- :global(.disclosure-icon:where(:not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where(:scope, :scope
1505
- *):where([data-hn-ui-tree-item])::before) {
1506
- display: block !important;
1507
- inline-size: 0.375rem;
1508
- block-size: 0.375rem;
1509
- border-inline-end: 1.5px solid currentColor;
1510
- border-block-end: 1.5px solid currentColor;
1511
- content: "";
1512
- /* A chevron's ink sits below its box centre; lift it so it centres optically (in either rotation). */
1513
- transform: translateY(-20%) rotate(45deg);
1514
- }
1515
-
1516
- :global(:where(.ui-tree-item)[aria-expanded="true"]
1517
- > .row
1518
- > .disclosure
1519
- > .disclosure-icon:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1520
- transform: rotate(0deg);
1521
- }
1522
- :global(.drag-handle:where(:scope, :scope *) svg:where([data-hn-ui-tree-item])) {
1523
- display: block !important;
1524
- inline-size: 100%;
1525
- block-size: 100%;
1526
- }
1527
- :global(.leading:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1528
- display: inline-grid !important;
1529
- place-items: center;
1530
- grid-column: 2;
1531
- grid-row: 1;
1532
- inline-size: 1em;
1533
- block-size: 1em;
1534
- margin-inline-start: var(--ui-space-1) !important;
1535
- color: var(--ui-text-muted);
1536
- /* Above the label, so a sliding name passes under the icon. */
1537
- position: relative;
1538
- z-index: 1;
1539
- }
1540
-
1541
- :global(.leading:empty:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1542
- display: none !important;
1543
- }
1544
- :global(.label:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1545
- grid-column: 3;
1546
- grid-row: 1;
1547
- align-self: stretch;
1548
- display: flex !important;
1549
- align-items: center !important;
1550
- min-inline-size: 0;
1551
- /* The cell clips: a name longer than the row slides inside it rather than over its icons. */
1552
- overflow: hidden;
1553
- padding: var(--_ui-tree-item-label-padding-block, var(--ui-space-1))
1554
- var(--_ui-tree-item-label-padding-inline, var(--ui-space-2)) !important;
1555
- /* The length of the fade before the controls. The label's one flex child lays out no gap; this
1556
- is where the controller reads the length in pixels to stop a sliding name before the fade. */
1557
- column-gap: var(--ui-space-1) !important;
1558
- }
1559
- :global(.label-text:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1560
- display: flex !important;
1561
- align-items: center !important;
1562
- /* Stretches, so slotted content can still be the row's full-height hit area. */
1563
- align-self: stretch;
1564
- block-size: 100%;
1565
- min-inline-size: 0;
1566
- inline-size: 100%;
1567
- white-space: nowrap;
1568
- }
1569
- :global(.row:hover:where(:scope, :scope *) > .label:where([data-hn-ui-tree-item])),
1570
- :global(.row:focus-within:where(:scope, :scope *) > .label:where([data-hn-ui-tree-item])),
1571
- :global(:where(.ui-tree-item)[data-ui-tree-item-state~="actionsVisible"]
1572
- > .row
1573
- > .label:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])),
1574
- :global(:where(.ui-tree-item)[data-move-source]
1575
- > .row
1576
- > .label:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1577
- text-overflow: clip;
1578
- mask-image: linear-gradient(
1579
- to right,
1580
- #000 calc(100% - var(--_tree-actions-width, 1.75rem) - var(--ui-space-1)),
1581
- transparent calc(100% - var(--_tree-actions-width, 1.75rem))
1582
- );
1583
- }
1584
-
1585
- :global(.row:hover:where(:scope, :scope *) > .label:dir(rtl):where([data-hn-ui-tree-item])),
1586
- :global(.row:focus-within:where(:scope, :scope *)
1587
- > .label:dir(rtl):where([data-hn-ui-tree-item])),
1588
- :global(:where(.ui-tree-item)[data-ui-tree-item-state~="actionsVisible"]
1589
- > .row
1590
- > .label:dir(rtl):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])),
1591
- :global(:where(.ui-tree-item)[data-move-source]
1592
- > .row
1593
- > .label:dir(rtl):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1594
- mask-image: linear-gradient(
1595
- to left,
1596
- #000 calc(100% - var(--_tree-actions-width, 1.75rem) - var(--ui-space-1)),
1597
- transparent calc(100% - var(--_tree-actions-width, 1.75rem))
1598
- );
1599
- }
1600
- :global(.row[data-ui-marquee]:where(:scope, :scope *)
1601
- > .label
1602
- > .label-text:where([data-hn-ui-tree-item])) {
1603
- /* Once per pass: the controller restarts it after a rest at the end, so the name holds still
1604
- long enough to read rather than sliding back and forth. */
1605
- animation: ui-tree-item-marquee var(--_marquee-duration) linear 0.5s 1 normal forwards;
1606
- will-change: transform;
1607
- }
1608
- :global(.row[data-ui-marquee]:where(:scope, :scope *) > .label:where([data-hn-ui-tree-item])) {
1609
- margin-inline-start: calc(-1 * var(--_marquee-lead, 0px)) !important;
1610
- padding-inline-start: calc(
1611
- var(--_marquee-lead, 0px) + var(--_ui-tree-item-label-padding-inline, var(--ui-space-2))
1612
- ) !important;
1613
- mask-image: linear-gradient(
1614
- to right,
1615
- transparent var(--_marquee-icon-width, 0px),
1616
- #000 calc(
1617
- var(--_marquee-lead, 0px) + var(--_ui-tree-item-label-padding-inline, var(--ui-space-2))
1618
- ),
1619
- #000 calc(100% - var(--_tree-actions-width, 1.75rem) - var(--ui-space-1)),
1620
- transparent calc(100% - var(--_tree-actions-width, 1.75rem))
1621
- );
1622
- }
1623
-
1624
- :global(.row[data-ui-marquee]:where(:scope, :scope *)
1625
- > .label:dir(rtl):where([data-hn-ui-tree-item])) {
1626
- mask-image: linear-gradient(
1627
- to left,
1628
- transparent var(--_marquee-icon-width, 0px),
1629
- #000 calc(
1630
- var(--_marquee-lead, 0px) + var(--_ui-tree-item-label-padding-inline, var(--ui-space-2))
1631
- ),
1632
- #000 calc(100% - var(--_tree-actions-width, 1.75rem) - var(--ui-space-1)),
1633
- transparent calc(100% - var(--_tree-actions-width, 1.75rem))
1634
- );
1635
- }
1636
- @media (prefers-reduced-motion: reduce) {
1637
- :global(.row[data-ui-marquee]:where(:scope, :scope *)
1638
- > .label
1639
- > .label-text:where([data-hn-ui-tree-item])) {
1640
- animation: none;
1641
- }
1642
- }
1643
-
1644
- :global(.actions:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1645
- position: absolute;
1646
- z-index: 1;
1647
- inset-block: 0;
1648
- inset-inline-end: 0;
1649
- display: inline-flex !important;
1650
- align-items: center !important;
1651
- min-inline-size: 0;
1652
- opacity: 0;
1653
- pointer-events: none;
1654
- transition: opacity var(--ui-motion-fast) var(--ui-motion-ease);
1655
- }
1656
-
1657
- :global(.row:hover:where(:scope, :scope *) > .actions:where([data-hn-ui-tree-item])),
1658
- :global(.row:focus-within:where(:scope, :scope *) > .actions:where([data-hn-ui-tree-item])),
1659
- :global(:where(.ui-tree-item)[data-ui-tree-item-state~="actionsVisible"]
1660
- > .row
1661
- > .actions:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])),
1662
- :global(:where(.ui-tree-item)[data-move-source]
1663
- > .row
1664
- > .actions:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1665
- opacity: 1;
1666
- pointer-events: auto;
1667
- }
1668
- @media (hover: none), (pointer: coarse) {
1669
- :global(.row:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1670
- grid-template-columns: var(--_tree-disclosure-size) auto minmax(0, 1fr) auto;
1671
- }
1672
-
1673
- :global(.actions:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1674
- position: static;
1675
- grid-column: 4;
1676
- grid-row: 1;
1677
- padding-inline-start: 0 !important;
1678
- background: none;
1679
- opacity: 1;
1680
- pointer-events: auto;
1681
- }
1682
-
1683
- :global(.row:is(:hover, :focus-within):where(:scope, :scope *)
1684
- > .label:where([data-hn-ui-tree-item])),
1685
- :global(.row:is(:hover, :focus-within):where(:scope, :scope *)
1686
- > .label:dir(rtl):where([data-hn-ui-tree-item])),
1687
- :global(:where(.ui-tree-item)[data-move-source]
1688
- > .row
1689
- > .label:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])),
1690
- :global(:where(.ui-tree-item)[data-move-source]
1691
- > .row
1692
- > .label:dir(rtl):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1693
- mask-image: none;
1694
- }
1695
-
1696
- :global(.row[data-ui-marquee]:where(:scope, :scope *) > .label:where([data-hn-ui-tree-item])) {
1697
- mask-image: linear-gradient(
1698
- to right,
1699
- transparent var(--_marquee-icon-width, 0px),
1700
- #000 calc(
1701
- var(--_marquee-lead, 0px) + var(--_ui-tree-item-label-padding-inline, var(--ui-space-2))
1702
- )
1703
- );
1704
- }
1705
-
1706
- /* Persistent content has its own column on touch. Fade only the label's end. */
1707
- :global(:where(.ui-tree-item)[data-ui-tree-item-state~="actionsVisible"]
1708
- > .row
1709
- > .label:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1710
- mask-image: linear-gradient(to right, #000 calc(100% - var(--ui-space-1)), transparent 100%);
1711
- }
1712
- :global(:where(.ui-tree-item)[data-ui-tree-item-state~="actionsVisible"]
1713
- > .row
1714
- > .label:dir(rtl):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1715
- mask-image: linear-gradient(to left, #000 calc(100% - var(--ui-space-1)), transparent 100%);
1716
- }
1717
-
1718
- :global(.row[data-ui-marquee]:where(:scope, :scope *)
1719
- > .label:dir(rtl):where([data-hn-ui-tree-item])) {
1720
- mask-image: linear-gradient(
1721
- to left,
1722
- transparent var(--_marquee-icon-width, 0px),
1723
- #000 calc(
1724
- var(--_marquee-lead, 0px) + var(--_ui-tree-item-label-padding-inline, var(--ui-space-2))
1725
- )
1726
- );
1727
- }
1728
-
1729
- :global(:where(.ui-tree-item)[data-selection-mode="multiple"]
1730
- > .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1731
- grid-template-columns: var(--_tree-disclosure-size) 1.25rem auto minmax(0, 1fr) auto;
1732
- }
1733
-
1734
- :global(:where(.ui-tree-item)[data-selection-mode="multiple"]
1735
- > .row
1736
- > .actions:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1737
- grid-column: 5;
1738
- }
1739
- }
1740
- :global(.drag-handle:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1741
- position: absolute;
1742
- z-index: 2;
1743
- inset-block-start: 50%;
1744
- inset-inline-start: 0;
1745
- inline-size: var(--_tree-disclosure-size);
1746
- block-size: 24px;
1747
- display: grid !important;
1748
- place-items: center;
1749
- padding: 5px 2px !important;
1750
- color: var(--ui-text-muted);
1751
- background: transparent;
1752
- border: 0;
1753
- border-radius: var(--ui-radius-sm);
1754
- cursor: grab;
1755
- /* Hidden until the row is hovered, but always hittable: the handle sits outside the row, and moving
1756
- the pointer onto it must not hide it on the way. */
1757
- opacity: 0;
1758
- transform: translateY(-50%);
1759
- transition: opacity var(--ui-motion-fast) var(--ui-motion-ease);
1760
- }
1761
-
1762
- :global(.row:hover:where(:scope, :scope *) .drag-handle:where([data-hn-ui-tree-item])),
1763
- :global(.drag-handle:hover:where(:scope, :scope *):where([data-hn-ui-tree-item])),
1764
- :global(.drag-handle:focus-visible:where(:scope, :scope *):where([data-hn-ui-tree-item])),
1765
- :global(:where(.ui-tree-item)[data-dragging]
1766
- > .row
1767
- > .drag-handle:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1768
- opacity: 1;
1769
- }
1770
-
1771
- :global(:where(.ui-tree-item)[data-ui-tree-item-state~="isContainer"]
1772
- > .row
1773
- > .drag-handle:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1774
- inset-inline-start: calc(-1 * var(--_tree-disclosure-size) - 2px);
1775
- }
1776
-
1777
- :global(.drag-handle:hover:where(:scope, :scope *):where([data-hn-ui-tree-item])),
1778
- :global(.drag-handle:focus-visible:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1779
- color: var(--ui-text-primary);
1780
- background: var(--ui-surface-hover);
1781
- }
1782
-
1783
- :global(.drag-handle:active:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1784
- cursor: grabbing;
1785
- }
1786
-
1787
- :global(.drop-indicator:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1788
- position: absolute;
1789
- z-index: 3;
1790
- inset-inline: 1px;
1791
- display: none !important;
1792
- block-size: var(--ui-accent-line-width);
1793
- border-radius: var(--ui-radius-round);
1794
- background: var(--_ui-tree-drop-color, var(--ui-accent-solid));
1795
- pointer-events: none;
1796
- }
1797
-
1798
- :global(.drop-indicator:where(:not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where(:scope, :scope
1799
- *):where([data-hn-ui-tree-item])::before),
1800
- :global(.drop-indicator:where(:not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where(:scope, :scope
1801
- *):where([data-hn-ui-tree-item])::after) {
1802
- content: "";
1803
- position: absolute;
1804
- inset-block-start: 50%;
1805
- inline-size: 7px;
1806
- block-size: 7px;
1807
- border: var(--ui-accent-line-width) solid var(--_ui-tree-drop-color, var(--ui-accent-solid));
1808
- border-radius: var(--ui-radius-round);
1809
- background: var(--ui-surface-elevated);
1810
- transform: translateY(-50%);
1811
- }
1812
-
1813
- :global(.drop-indicator:where(:not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where(:scope, :scope
1814
- *):where([data-hn-ui-tree-item])::before) {
1815
- inset-inline-start: -1px;
1816
- }
1817
- :global(.drop-indicator:where(:not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where(:scope, :scope
1818
- *):where([data-hn-ui-tree-item])::after) {
1819
- inset-inline-end: -1px;
1820
- }
1821
-
1822
- :global(:where(.ui-tree-item)[data-drop-position="before"]
1823
- > .row
1824
- > .row-drop-indicator:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1825
- display: block !important;
1826
- inset-block-start: calc(-0.5 * var(--ui-accent-line-width));
1827
- }
1828
-
1829
- :global(:where(.ui-tree-item)[data-drop-position="after"]
1830
- > .subtree-drop-indicator:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1831
- display: block !important;
1832
- inset-block-end: calc(-0.5 * var(--ui-accent-line-width));
1833
- }
1834
-
1835
- :global(.children[hidden]:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1836
- display: none !important;
1837
- }
1838
-
1839
- :global(html[data-ui-input-modality="touch"]
1840
- :where(.ui-tree-item):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1841
- --_tree-row-min-height: 44px;
1842
- }
1843
-
1844
- :global(html[data-ui-input-modality="touch"]
1845
- :where(.ui-tree-item)
1846
- .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1847
- grid-template-columns: 44px var(--_tree-disclosure-size) auto minmax(0, 1fr);
1848
- }
1849
-
1850
- :global(html[data-ui-input-modality="touch"]
1851
- :where(.ui-tree-item)
1852
- .drag-handle:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])),
1853
- :global(html[data-ui-input-modality="touch"]
1854
- :where(.ui-tree-item)[data-ui-tree-item-state~="isContainer"]
1855
- > .row
1856
- > .drag-handle:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1857
- position: relative;
1858
- grid-column: 1;
1859
- grid-row: 1;
1860
- inset: auto;
1861
- inline-size: 44px;
1862
- block-size: 44px;
1863
- padding: 14px !important;
1864
- opacity: 1;
1865
- transform: none;
1866
- cursor: pointer;
1867
- }
1868
-
1869
- :global(html[data-ui-input-modality="touch"]
1870
- :where(.ui-tree-item)
1871
- .disclosure:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1872
- grid-column: 2;
1873
- }
1874
- :global(html[data-ui-input-modality="touch"]
1875
- :where(.ui-tree-item)
1876
- .leading:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1877
- grid-column: 3;
1878
- }
1879
- :global(html[data-ui-input-modality="touch"]
1880
- :where(.ui-tree-item)
1881
- .label:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1882
- grid-column: 4;
1883
- }
1884
-
1885
- :global(html[data-ui-input-modality="touch"]
1886
- :where(.ui-tree-item)[data-selection-mode="multiple"]
1887
- > .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1888
- grid-template-columns: 44px var(--_tree-disclosure-size) 44px auto minmax(0, 1fr);
1889
- }
1890
- :global(html[data-ui-input-modality="touch"]
1891
- :where(.ui-tree-item)[data-selection-mode="multiple"]
1892
- > .row
1893
- > .selection-hit:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1894
- grid-column: 3;
1895
- inline-size: 44px;
1896
- block-size: 44px;
1897
- }
1898
- :global(html[data-ui-input-modality="touch"]
1899
- :where(.ui-tree-item)[data-selection-mode="multiple"]
1900
- > .row
1901
- > .leading:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1902
- grid-column: 4;
1903
- }
1904
- :global(html[data-ui-input-modality="touch"]
1905
- :where(.ui-tree-item)[data-selection-mode="multiple"]
1906
- > .row
1907
- > .label:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1908
- grid-column: 5;
1909
- }
1910
-
1911
- @media (hover: none), (pointer: coarse) {
1912
- :global(html[data-ui-input-modality="touch"]
1913
- :where(.ui-tree-item)
1914
- .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1915
- grid-template-columns: 44px var(--_tree-disclosure-size) auto minmax(0, 1fr) auto;
1916
- }
1917
-
1918
- :global(html[data-ui-input-modality="touch"]
1919
- :where(.ui-tree-item)
1920
- .actions:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1921
- grid-column: 5;
1922
- }
1923
-
1924
- :global(html[data-ui-input-modality="touch"]
1925
- :where(.ui-tree-item)[data-selection-mode="multiple"]
1926
- > .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1927
- grid-template-columns: 44px var(--_tree-disclosure-size) 44px auto minmax(0, 1fr) auto;
1928
- }
1929
-
1930
- :global(html[data-ui-input-modality="touch"]
1931
- :where(.ui-tree-item)[data-selection-mode="multiple"]
1932
- > .row
1933
- > .actions:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1934
- grid-column: 6;
1935
- }
1936
- }
1937
-
1938
- @media (prefers-reduced-motion: reduce) {
1939
- :global(.row:where(:scope, :scope *):where([data-hn-ui-tree-item])),
1940
- :global(.disclosure-icon:where(:scope, :scope *):where([data-hn-ui-tree-item])),
1941
- :global(.drag-handle:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
1942
- transition: none;
1943
- }
1944
- }
1945
-
1946
- @media (forced-colors: active) {
1947
- :global(:where(.ui-tree-item):focus-visible
1948
- > .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1949
- outline: var(--ui-focus-width) solid Highlight;
1950
- outline-offset: calc(-1 * var(--ui-focus-width));
1951
- }
1952
- :global(:where(.ui-tree-item)[data-ui-tree-item-state~="selected"]:not(:focus-visible):not([aria-disabled="true"])
1953
- > .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1954
- outline: var(--ui-border-width) solid Highlight;
1955
- outline-offset: calc(-1 * var(--ui-border-width));
1956
- }
1957
- }
1958
- :global(:where(.ui-tree-item)[hidden]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
1959
- display: none !important;
1960
- }
1961
- }
1962
- </style>