@threadlabs/looma 0.2.4 → 0.2.6

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 (428) hide show
  1. package/dist/chunk-3K45IWIJ.js +4733 -0
  2. package/dist/chunk-MLKGABMK.js +9 -0
  3. package/dist/chunk-UHHA4WT5.js +2916 -0
  4. package/dist/declarative-generated.cjs +135 -0
  5. package/dist/declarative-generated.d.cts +10 -0
  6. package/dist/declarative-generated.d.ts +10 -0
  7. package/dist/declarative-generated.js +111 -0
  8. package/dist/declarative.cjs +2944 -0
  9. package/dist/declarative.d.cts +27 -0
  10. package/dist/declarative.d.ts +27 -0
  11. package/dist/declarative.js +13 -0
  12. package/dist/index.cjs +7480 -6457
  13. package/dist/index.d.cts +4 -58
  14. package/dist/index.d.ts +4 -58
  15. package/dist/index.js +15 -27
  16. package/dist/loader.cjs +7654 -0
  17. package/dist/loader.d.cts +4 -0
  18. package/dist/loader.d.ts +4 -0
  19. package/dist/loader.js +16 -0
  20. package/dist/valibot.cjs +31 -0
  21. package/dist/valibot.d.cts +10 -0
  22. package/dist/valibot.d.ts +1 -43
  23. package/dist/valibot.js +2 -0
  24. package/dist/{types/field/validation.d.ts → validation-bxcou-l-.d.cts} +13 -11
  25. package/dist/validation-bxcou-l-.d.ts +58 -0
  26. package/editor/{chunk-B5WVJOPV.js → chunk-BXICJBWS.js} +118 -8
  27. package/editor/{chunk-ZOUKEZ77.js → chunk-JK53ENSG.js} +8 -21
  28. package/editor/chunk-WI7ZA44X.js +2558 -0
  29. package/editor/extensions/index.d.ts +11 -2
  30. package/editor/extensions/index.js +9 -7
  31. package/editor/index.d.ts +1 -1
  32. package/editor/index.js +10 -8
  33. package/editor/ui.js +2 -2
  34. package/editor.css +32 -0
  35. package/layout/index.cjs +466 -400
  36. package/layout/index.d.cts +1 -2
  37. package/layout/index.d.ts +1 -2
  38. package/layout/index.js +471 -395
  39. package/package.json +14 -5
  40. package/styles.css +8 -8
  41. package/vue/chunk-4DPYH3IT.js +3538 -0
  42. package/vue/editor/index.d.ts +17 -7
  43. package/vue/editor/index.js +53 -35
  44. package/vue/index.d.ts +48 -31
  45. package/vue/index.js +1 -1
  46. package/dist/chunk-24OTMNIU.js +0 -1617
  47. package/dist/chunk-D5WRORG6.js +0 -366
  48. package/dist/chunk-HNFCGIBP.js +0 -8
  49. package/dist/chunk-NB6DBRXQ.js +0 -323
  50. package/dist/chunk-OF57X5AR.js +0 -10
  51. package/dist/chunk-TL4FIE7X.js +0 -93
  52. package/dist/chunk-UL7UIUJZ.js +0 -20
  53. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  54. package/dist/cjs/controlled-state-BFya8rAX.js +0 -9
  55. package/dist/cjs/events-TcQIzpNv.js +0 -19
  56. package/dist/cjs/icons-BAdjrnhS.js +0 -680
  57. package/dist/cjs/id-CYbKpaYr.js +0 -9
  58. package/dist/cjs/index-BHG9Rpil.js +0 -1602
  59. package/dist/cjs/index.cjs.js +0 -2
  60. package/dist/cjs/loader.cjs.js +0 -13
  61. package/dist/cjs/looma.cjs.js +0 -25
  62. package/dist/cjs/manager-Ce25WRtl.js +0 -95
  63. package/dist/cjs/positioning-CCR6ifPj.js +0 -426
  64. package/dist/cjs/ui-affordance-scope.cjs.entry.js +0 -43
  65. package/dist/cjs/ui-avatar-group.cjs.entry.js +0 -43
  66. package/dist/cjs/ui-avatar.cjs.entry.js +0 -50
  67. package/dist/cjs/ui-badge.cjs.entry.js +0 -19
  68. package/dist/cjs/ui-button.cjs.entry.js +0 -75
  69. package/dist/cjs/ui-callout.cjs.entry.js +0 -27
  70. package/dist/cjs/ui-checkbox.cjs.entry.js +0 -97
  71. package/dist/cjs/ui-chip_2.cjs.entry.js +0 -258
  72. package/dist/cjs/ui-combobox.cjs.entry.js +0 -708
  73. package/dist/cjs/ui-context-menu.cjs.entry.js +0 -239
  74. package/dist/cjs/ui-dialog.cjs.entry.js +0 -131
  75. package/dist/cjs/ui-disclosure.cjs.entry.js +0 -112
  76. package/dist/cjs/ui-editable.cjs.entry.js +0 -100
  77. package/dist/cjs/ui-floating-action-button.cjs.entry.js +0 -20
  78. package/dist/cjs/ui-form-field.cjs.entry.js +0 -114
  79. package/dist/cjs/ui-icon-button.cjs.entry.js +0 -23
  80. package/dist/cjs/ui-input.cjs.entry.js +0 -106
  81. package/dist/cjs/ui-menu-item.cjs.entry.js +0 -19
  82. package/dist/cjs/ui-menu.cjs.entry.js +0 -182
  83. package/dist/cjs/ui-popover.cjs.entry.js +0 -135
  84. package/dist/cjs/ui-radio-group.cjs.entry.js +0 -134
  85. package/dist/cjs/ui-radio.cjs.entry.js +0 -94
  86. package/dist/cjs/ui-search-result-row.cjs.entry.js +0 -47
  87. package/dist/cjs/ui-search-shell.cjs.entry.js +0 -39
  88. package/dist/cjs/ui-select.cjs.entry.js +0 -108
  89. package/dist/cjs/ui-switch.cjs.entry.js +0 -74
  90. package/dist/cjs/ui-tabs.cjs.entry.js +0 -118
  91. package/dist/cjs/ui-textarea.cjs.entry.js +0 -110
  92. package/dist/cjs/ui-toast-region.cjs.entry.js +0 -93
  93. package/dist/cjs/ui-top-bar.cjs.entry.js +0 -43
  94. package/dist/cjs/ui-tree-item.cjs.entry.js +0 -135
  95. package/dist/cjs/ui-tree.cjs.entry.js +0 -500
  96. package/dist/collection/collection-manifest.json +0 -45
  97. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.css +0 -8
  98. package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.js +0 -70
  99. package/dist/collection/components/ui-avatar/ui-avatar.css +0 -35
  100. package/dist/collection/components/ui-avatar/ui-avatar.js +0 -130
  101. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +0 -32
  102. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +0 -95
  103. package/dist/collection/components/ui-badge/ui-badge.css +0 -90
  104. package/dist/collection/components/ui-badge/ui-badge.js +0 -62
  105. package/dist/collection/components/ui-button/ui-button.css +0 -121
  106. package/dist/collection/components/ui-button/ui-button.js +0 -141
  107. package/dist/collection/components/ui-callout/ui-callout.css +0 -74
  108. package/dist/collection/components/ui-callout/ui-callout.js +0 -59
  109. package/dist/collection/components/ui-checkbox/ui-checkbox.css +0 -24
  110. package/dist/collection/components/ui-checkbox/ui-checkbox.js +0 -228
  111. package/dist/collection/components/ui-chip/ui-chip.css +0 -57
  112. package/dist/collection/components/ui-chip/ui-chip.js +0 -67
  113. package/dist/collection/components/ui-combobox/ui-combobox.css +0 -47
  114. package/dist/collection/components/ui-combobox/ui-combobox.js +0 -1295
  115. package/dist/collection/components/ui-context-menu/ui-context-menu.css +0 -34
  116. package/dist/collection/components/ui-context-menu/ui-context-menu.js +0 -311
  117. package/dist/collection/components/ui-dialog/ui-dialog.css +0 -72
  118. package/dist/collection/components/ui-dialog/ui-dialog.js +0 -242
  119. package/dist/collection/components/ui-disclosure/ui-disclosure.css +0 -7
  120. package/dist/collection/components/ui-disclosure/ui-disclosure.js +0 -184
  121. package/dist/collection/components/ui-editable/ui-editable.css +0 -2
  122. package/dist/collection/components/ui-editable/ui-editable.js +0 -196
  123. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.css +0 -73
  124. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +0 -85
  125. package/dist/collection/components/ui-form-field/ui-form-field.css +0 -25
  126. package/dist/collection/components/ui-form-field/ui-form-field.js +0 -180
  127. package/dist/collection/components/ui-icon-button/ui-icon-button.css +0 -145
  128. package/dist/collection/components/ui-icon-button/ui-icon-button.js +0 -128
  129. package/dist/collection/components/ui-input/ui-input.css +0 -48
  130. package/dist/collection/components/ui-input/ui-input.js +0 -217
  131. package/dist/collection/components/ui-menu/ui-menu.css +0 -73
  132. package/dist/collection/components/ui-menu/ui-menu.js +0 -280
  133. package/dist/collection/components/ui-menu-item/ui-menu-item.css +0 -32
  134. package/dist/collection/components/ui-menu-item/ui-menu-item.js +0 -64
  135. package/dist/collection/components/ui-popover/ui-popover.css +0 -58
  136. package/dist/collection/components/ui-popover/ui-popover.js +0 -232
  137. package/dist/collection/components/ui-radio/ui-radio.css +0 -22
  138. package/dist/collection/components/ui-radio/ui-radio.js +0 -226
  139. package/dist/collection/components/ui-radio-group/ui-radio-group.css +0 -10
  140. package/dist/collection/components/ui-radio-group/ui-radio-group.js +0 -247
  141. package/dist/collection/components/ui-search-result-row/ui-search-result-row.css +0 -80
  142. package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +0 -100
  143. package/dist/collection/components/ui-search-shell/ui-search-shell.css +0 -63
  144. package/dist/collection/components/ui-search-shell/ui-search-shell.js +0 -46
  145. package/dist/collection/components/ui-select/ui-select.css +0 -64
  146. package/dist/collection/components/ui-select/ui-select.js +0 -218
  147. package/dist/collection/components/ui-switch/ui-switch.css +0 -63
  148. package/dist/collection/components/ui-switch/ui-switch.js +0 -185
  149. package/dist/collection/components/ui-tabs/ui-tabs.css +0 -68
  150. package/dist/collection/components/ui-tabs/ui-tabs.js +0 -190
  151. package/dist/collection/components/ui-textarea/ui-textarea.css +0 -49
  152. package/dist/collection/components/ui-textarea/ui-textarea.js +0 -241
  153. package/dist/collection/components/ui-toast-region/ui-toast-region.css +0 -59
  154. package/dist/collection/components/ui-toast-region/ui-toast-region.js +0 -126
  155. package/dist/collection/components/ui-tooltip/ui-tooltip.css +0 -43
  156. package/dist/collection/components/ui-tooltip/ui-tooltip.js +0 -430
  157. package/dist/collection/components/ui-top-bar/ui-top-bar.css +0 -51
  158. package/dist/collection/components/ui-top-bar/ui-top-bar.js +0 -52
  159. package/dist/collection/components/ui-tree/ui-tree.css +0 -12
  160. package/dist/collection/components/ui-tree/ui-tree.js +0 -515
  161. package/dist/collection/components/ui-tree-item/ui-tree-item.css +0 -217
  162. package/dist/collection/components/ui-tree-item/ui-tree-item.js +0 -406
  163. package/dist/collection/field/combobox.js +0 -4
  164. package/dist/collection/field/editable.js +0 -1
  165. package/dist/collection/field/multi-combobox.js +0 -1
  166. package/dist/collection/field/valibot.js +0 -5
  167. package/dist/collection/field/validation.js +0 -62
  168. package/dist/collection/icons.js +0 -71
  169. package/dist/collection/input-modality.js +0 -24
  170. package/dist/collection/overlay/manager.js +0 -92
  171. package/dist/collection/overlay/positioning.js +0 -424
  172. package/dist/collection/utils/controlled-state.js +0 -4
  173. package/dist/collection/utils/drag-drop.js +0 -51
  174. package/dist/collection/utils/events.js +0 -13
  175. package/dist/collection/utils/id.js +0 -5
  176. package/dist/collection/utils/initials.js +0 -11
  177. package/dist/components/index.d.ts +0 -102
  178. package/dist/components/index.js +0 -1
  179. package/dist/components/p-6SWSrfmW.js +0 -1
  180. package/dist/components/p-B_DaIVEY.js +0 -1
  181. package/dist/components/p-Bh_1GxOD.js +0 -1
  182. package/dist/components/p-BnGhGgTH.js +0 -1
  183. package/dist/components/p-BzaB_bXo.js +0 -1
  184. package/dist/components/p-C-0syqXZ.js +0 -1
  185. package/dist/components/p-CoFximGM.js +0 -13
  186. package/dist/components/p-JwSoedEO.js +0 -1
  187. package/dist/components/p-Vc4ExHFc.js +0 -1
  188. package/dist/components/p-hgBUJRDa.js +0 -1
  189. package/dist/components/ui-affordance-scope.d.ts +0 -11
  190. package/dist/components/ui-affordance-scope.js +0 -1
  191. package/dist/components/ui-avatar-group.d.ts +0 -11
  192. package/dist/components/ui-avatar-group.js +0 -1
  193. package/dist/components/ui-avatar.d.ts +0 -11
  194. package/dist/components/ui-avatar.js +0 -1
  195. package/dist/components/ui-badge.d.ts +0 -11
  196. package/dist/components/ui-badge.js +0 -1
  197. package/dist/components/ui-button.d.ts +0 -11
  198. package/dist/components/ui-button.js +0 -1
  199. package/dist/components/ui-callout.d.ts +0 -11
  200. package/dist/components/ui-callout.js +0 -1
  201. package/dist/components/ui-checkbox.d.ts +0 -11
  202. package/dist/components/ui-checkbox.js +0 -1
  203. package/dist/components/ui-chip.d.ts +0 -11
  204. package/dist/components/ui-chip.js +0 -1
  205. package/dist/components/ui-combobox.d.ts +0 -11
  206. package/dist/components/ui-combobox.js +0 -1
  207. package/dist/components/ui-context-menu.d.ts +0 -11
  208. package/dist/components/ui-context-menu.js +0 -1
  209. package/dist/components/ui-dialog.d.ts +0 -11
  210. package/dist/components/ui-dialog.js +0 -1
  211. package/dist/components/ui-disclosure.d.ts +0 -11
  212. package/dist/components/ui-disclosure.js +0 -1
  213. package/dist/components/ui-editable.d.ts +0 -11
  214. package/dist/components/ui-editable.js +0 -1
  215. package/dist/components/ui-floating-action-button.d.ts +0 -11
  216. package/dist/components/ui-floating-action-button.js +0 -1
  217. package/dist/components/ui-form-field.d.ts +0 -11
  218. package/dist/components/ui-form-field.js +0 -1
  219. package/dist/components/ui-icon-button.d.ts +0 -11
  220. package/dist/components/ui-icon-button.js +0 -1
  221. package/dist/components/ui-input.d.ts +0 -11
  222. package/dist/components/ui-input.js +0 -1
  223. package/dist/components/ui-menu-item.d.ts +0 -11
  224. package/dist/components/ui-menu-item.js +0 -1
  225. package/dist/components/ui-menu.d.ts +0 -11
  226. package/dist/components/ui-menu.js +0 -1
  227. package/dist/components/ui-popover.d.ts +0 -11
  228. package/dist/components/ui-popover.js +0 -1
  229. package/dist/components/ui-radio-group.d.ts +0 -11
  230. package/dist/components/ui-radio-group.js +0 -1
  231. package/dist/components/ui-radio.d.ts +0 -11
  232. package/dist/components/ui-radio.js +0 -1
  233. package/dist/components/ui-search-result-row.d.ts +0 -11
  234. package/dist/components/ui-search-result-row.js +0 -1
  235. package/dist/components/ui-search-shell.d.ts +0 -11
  236. package/dist/components/ui-search-shell.js +0 -1
  237. package/dist/components/ui-select.d.ts +0 -11
  238. package/dist/components/ui-select.js +0 -1
  239. package/dist/components/ui-switch.d.ts +0 -11
  240. package/dist/components/ui-switch.js +0 -1
  241. package/dist/components/ui-tabs.d.ts +0 -11
  242. package/dist/components/ui-tabs.js +0 -1
  243. package/dist/components/ui-textarea.d.ts +0 -11
  244. package/dist/components/ui-textarea.js +0 -1
  245. package/dist/components/ui-toast-region.d.ts +0 -11
  246. package/dist/components/ui-toast-region.js +0 -1
  247. package/dist/components/ui-tooltip.d.ts +0 -11
  248. package/dist/components/ui-tooltip.js +0 -1
  249. package/dist/components/ui-top-bar.d.ts +0 -11
  250. package/dist/components/ui-top-bar.js +0 -1
  251. package/dist/components/ui-tree-item.d.ts +0 -11
  252. package/dist/components/ui-tree-item.js +0 -1
  253. package/dist/components/ui-tree.d.ts +0 -11
  254. package/dist/components/ui-tree.js +0 -1
  255. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  256. package/dist/esm/controlled-state-BnGhGgTH.js +0 -6
  257. package/dist/esm/events-JwSoedEO.js +0 -15
  258. package/dist/esm/icons-CoFximGM.js +0 -678
  259. package/dist/esm/id-hgBUJRDa.js +0 -7
  260. package/dist/esm/index-8BGiMGQ0.js +0 -1593
  261. package/dist/esm/index.js +0 -1
  262. package/dist/esm/loader.js +0 -11
  263. package/dist/esm/looma.js +0 -21
  264. package/dist/esm/manager-C-0syqXZ.js +0 -91
  265. package/dist/esm/positioning-ZOr-2PSe.js +0 -421
  266. package/dist/esm/ui-affordance-scope.entry.js +0 -41
  267. package/dist/esm/ui-avatar-group.entry.js +0 -41
  268. package/dist/esm/ui-avatar.entry.js +0 -48
  269. package/dist/esm/ui-badge.entry.js +0 -17
  270. package/dist/esm/ui-button.entry.js +0 -73
  271. package/dist/esm/ui-callout.entry.js +0 -25
  272. package/dist/esm/ui-checkbox.entry.js +0 -95
  273. package/dist/esm/ui-chip_2.entry.js +0 -255
  274. package/dist/esm/ui-combobox.entry.js +0 -706
  275. package/dist/esm/ui-context-menu.entry.js +0 -237
  276. package/dist/esm/ui-dialog.entry.js +0 -129
  277. package/dist/esm/ui-disclosure.entry.js +0 -110
  278. package/dist/esm/ui-editable.entry.js +0 -98
  279. package/dist/esm/ui-floating-action-button.entry.js +0 -18
  280. package/dist/esm/ui-form-field.entry.js +0 -112
  281. package/dist/esm/ui-icon-button.entry.js +0 -21
  282. package/dist/esm/ui-input.entry.js +0 -104
  283. package/dist/esm/ui-menu-item.entry.js +0 -17
  284. package/dist/esm/ui-menu.entry.js +0 -180
  285. package/dist/esm/ui-popover.entry.js +0 -133
  286. package/dist/esm/ui-radio-group.entry.js +0 -132
  287. package/dist/esm/ui-radio.entry.js +0 -92
  288. package/dist/esm/ui-search-result-row.entry.js +0 -45
  289. package/dist/esm/ui-search-shell.entry.js +0 -37
  290. package/dist/esm/ui-select.entry.js +0 -106
  291. package/dist/esm/ui-switch.entry.js +0 -72
  292. package/dist/esm/ui-tabs.entry.js +0 -116
  293. package/dist/esm/ui-textarea.entry.js +0 -108
  294. package/dist/esm/ui-toast-region.entry.js +0 -91
  295. package/dist/esm/ui-top-bar.entry.js +0 -41
  296. package/dist/esm/ui-tree-item.entry.js +0 -133
  297. package/dist/esm/ui-tree.entry.js +0 -498
  298. package/dist/index.cjs.js +0 -1
  299. package/dist/looma/index.esm.js +0 -0
  300. package/dist/looma/looma.esm.js +0 -1
  301. package/dist/looma/p-08f80207.entry.js +0 -1
  302. package/dist/looma/p-0b5b8d9e.entry.js +0 -1
  303. package/dist/looma/p-1249a806.entry.js +0 -1
  304. package/dist/looma/p-16e0669d.entry.js +0 -1
  305. package/dist/looma/p-1c00670f.entry.js +0 -1
  306. package/dist/looma/p-1c5a7522.entry.js +0 -1
  307. package/dist/looma/p-22842f8c.entry.js +0 -1
  308. package/dist/looma/p-2915d5c0.entry.js +0 -1
  309. package/dist/looma/p-3b2961a6.entry.js +0 -1
  310. package/dist/looma/p-3f60f4c8.entry.js +0 -1
  311. package/dist/looma/p-424d6719.entry.js +0 -1
  312. package/dist/looma/p-4caccfce.entry.js +0 -1
  313. package/dist/looma/p-5fdcee1d.entry.js +0 -1
  314. package/dist/looma/p-6d8b99ee.entry.js +0 -1
  315. package/dist/looma/p-6f20d470.entry.js +0 -1
  316. package/dist/looma/p-7c0b5364.entry.js +0 -1
  317. package/dist/looma/p-8BGiMGQ0.js +0 -2
  318. package/dist/looma/p-8bdd9495.entry.js +0 -1
  319. package/dist/looma/p-99116a72.entry.js +0 -1
  320. package/dist/looma/p-9cfbf722.entry.js +0 -1
  321. package/dist/looma/p-9d2662ca.entry.js +0 -1
  322. package/dist/looma/p-9ff2fa19.entry.js +0 -1
  323. package/dist/looma/p-BnGhGgTH.js +0 -1
  324. package/dist/looma/p-C-0syqXZ.js +0 -1
  325. package/dist/looma/p-CoFximGM.js +0 -13
  326. package/dist/looma/p-DQuL1Twl.js +0 -1
  327. package/dist/looma/p-JwSoedEO.js +0 -1
  328. package/dist/looma/p-ZOr-2PSe.js +0 -1
  329. package/dist/looma/p-a2dd4c6c.entry.js +0 -1
  330. package/dist/looma/p-add67e4c.entry.js +0 -1
  331. package/dist/looma/p-b6ede6bb.entry.js +0 -1
  332. package/dist/looma/p-b76e2111.entry.js +0 -1
  333. package/dist/looma/p-ca2a54fd.entry.js +0 -1
  334. package/dist/looma/p-d372b0db.entry.js +0 -1
  335. package/dist/looma/p-d4825822.entry.js +0 -1
  336. package/dist/looma/p-d56571a2.entry.js +0 -1
  337. package/dist/looma/p-d5c3954f.entry.js +0 -1
  338. package/dist/looma/p-e604e906.entry.js +0 -1
  339. package/dist/looma/p-f1f7c5cb.entry.js +0 -1
  340. package/dist/looma/p-hgBUJRDa.js +0 -1
  341. package/dist/types/components/ui-affordance-scope/ui-affordance-scope.d.ts +0 -11
  342. package/dist/types/components/ui-avatar/ui-avatar.d.ts +0 -11
  343. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +0 -11
  344. package/dist/types/components/ui-badge/ui-badge.d.ts +0 -5
  345. package/dist/types/components/ui-button/ui-button.d.ts +0 -13
  346. package/dist/types/components/ui-callout/ui-callout.d.ts +0 -6
  347. package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +0 -20
  348. package/dist/types/components/ui-chip/ui-chip.d.ts +0 -8
  349. package/dist/types/components/ui-combobox/ui-combobox.d.ts +0 -128
  350. package/dist/types/components/ui-context-menu/ui-context-menu.d.ts +0 -43
  351. package/dist/types/components/ui-dialog/ui-dialog.d.ts +0 -27
  352. package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +0 -21
  353. package/dist/types/components/ui-editable/ui-editable.d.ts +0 -24
  354. package/dist/types/components/ui-floating-action-button/ui-floating-action-button.d.ts +0 -6
  355. package/dist/types/components/ui-form-field/ui-form-field.d.ts +0 -18
  356. package/dist/types/components/ui-icon-button/ui-icon-button.d.ts +0 -9
  357. package/dist/types/components/ui-input/ui-input.d.ts +0 -19
  358. package/dist/types/components/ui-menu/ui-menu.d.ts +0 -28
  359. package/dist/types/components/ui-menu-item/ui-menu-item.d.ts +0 -5
  360. package/dist/types/components/ui-popover/ui-popover.d.ts +0 -26
  361. package/dist/types/components/ui-radio/ui-radio.d.ts +0 -20
  362. package/dist/types/components/ui-radio-group/ui-radio-group.d.ts +0 -21
  363. package/dist/types/components/ui-search-result-row/ui-search-result-row.d.ts +0 -15
  364. package/dist/types/components/ui-search-shell/ui-search-shell.d.ts +0 -9
  365. package/dist/types/components/ui-select/ui-select.d.ts +0 -20
  366. package/dist/types/components/ui-switch/ui-switch.d.ts +0 -16
  367. package/dist/types/components/ui-tabs/ui-tabs.d.ts +0 -18
  368. package/dist/types/components/ui-textarea/ui-textarea.d.ts +0 -20
  369. package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +0 -16
  370. package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +0 -57
  371. package/dist/types/components/ui-top-bar/ui-top-bar.d.ts +0 -12
  372. package/dist/types/components/ui-tree/ui-tree.d.ts +0 -53
  373. package/dist/types/components/ui-tree-item/ui-tree-item.d.ts +0 -44
  374. package/dist/types/components.d.ts +0 -1889
  375. package/dist/types/field/combobox.d.ts +0 -46
  376. package/dist/types/field/editable.d.ts +0 -5
  377. package/dist/types/field/multi-combobox.d.ts +0 -11
  378. package/dist/types/field/valibot.d.ts +0 -7
  379. package/dist/types/icons.d.ts +0 -53
  380. package/dist/types/input-modality.d.ts +0 -6
  381. package/dist/types/overlay/manager.d.ts +0 -17
  382. package/dist/types/overlay/positioning.d.ts +0 -74
  383. package/dist/types/stencil-public-runtime.d.ts +0 -1860
  384. package/dist/types/utils/controlled-state.d.ts +0 -4
  385. package/dist/types/utils/drag-drop.d.ts +0 -15
  386. package/dist/types/utils/events.d.ts +0 -4
  387. package/dist/types/utils/id.d.ts +0 -1
  388. package/dist/types/utils/initials.d.ts +0 -1
  389. package/dist/ui-affordance-scope.entry-L6TIXYOP.js +0 -54
  390. package/dist/ui-avatar-group.entry-TCAA6P72.js +0 -51
  391. package/dist/ui-avatar.entry-52DQ7VXA.js +0 -51
  392. package/dist/ui-badge.entry-2XCAA6LL.js +0 -22
  393. package/dist/ui-button.entry-MNFBMNSX.js +0 -83
  394. package/dist/ui-callout.entry-SSHT5TH2.js +0 -32
  395. package/dist/ui-checkbox.entry-LOWIWIWI.js +0 -111
  396. package/dist/ui-chip_2.entry-BIMTSF6C.js +0 -272
  397. package/dist/ui-combobox.entry-25Z4MN7N.js +0 -717
  398. package/dist/ui-context-menu.entry-YZDL5Y4M.js +0 -248
  399. package/dist/ui-dialog.entry-HIXZX5AB.js +0 -146
  400. package/dist/ui-disclosure.entry-2JZHZNDQ.js +0 -126
  401. package/dist/ui-editable.entry-U3VR3XPT.js +0 -110
  402. package/dist/ui-floating-action-button.entry-6S3QN3KJ.js +0 -23
  403. package/dist/ui-form-field.entry-GQOSMLHT.js +0 -120
  404. package/dist/ui-icon-button.entry-QJXKVDM6.js +0 -26
  405. package/dist/ui-input.entry-UWMQ6JMP.js +0 -114
  406. package/dist/ui-menu-item.entry-NHNZKKJS.js +0 -22
  407. package/dist/ui-menu.entry-D53RUJND.js +0 -192
  408. package/dist/ui-popover.entry-7ZSIWCFQ.js +0 -152
  409. package/dist/ui-radio-group.entry-37MSYIH4.js +0 -142
  410. package/dist/ui-radio.entry-7YGCDHXT.js +0 -108
  411. package/dist/ui-search-result-row.entry-6FCCLGAS.js +0 -50
  412. package/dist/ui-search-shell.entry-HSBEXPER.js +0 -41
  413. package/dist/ui-select.entry-GIDIAYRD.js +0 -117
  414. package/dist/ui-switch.entry-MYAL6XPC.js +0 -87
  415. package/dist/ui-tabs.entry-R4TEXQSD.js +0 -128
  416. package/dist/ui-textarea.entry-FW32JNDV.js +0 -119
  417. package/dist/ui-toast-region.entry-BTMFPKZF.js +0 -104
  418. package/dist/ui-top-bar.entry-5DQGJF3B.js +0 -49
  419. package/dist/ui-tree-item.entry-ADT7DSOS.js +0 -145
  420. package/dist/ui-tree.entry-7PYQ5RIN.js +0 -470
  421. package/editor/chunk-64GLF274.js +0 -1271
  422. package/layout/index.css +0 -387
  423. package/loader/cdn.js +0 -1
  424. package/loader/index.cjs.js +0 -1
  425. package/loader/index.d.ts +0 -24
  426. package/loader/index.es2017.js +0 -1
  427. package/loader/index.js +0 -2
  428. package/vue/chunk-ROMBQS2L.js +0 -352
@@ -1,500 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-BHG9Rpil.js');
4
- var events = require('./events-TcQIzpNv.js');
5
-
6
- /**
7
- * Classify the pointer against stable edge bands. Containers reserve their
8
- * middle half for containment; leaf rows split cleanly at their midpoint.
9
- */
10
- function classifyDropPosition(rect, clientY, acceptsChildren) {
11
- const progress = rect.height > 0
12
- ? Math.min(1, Math.max(0, (clientY - rect.top) / rect.height))
13
- : 0.5;
14
- if (!acceptsChildren)
15
- return progress < 0.5 ? 'before' : 'after';
16
- if (progress < 0.25)
17
- return 'before';
18
- if (progress > 0.75)
19
- return 'after';
20
- return 'inside';
21
- }
22
- /** Use the rendered row—not the tiny handle—as the browser drag preview. */
23
- function setElementDragImage(dataTransfer, element) {
24
- if (!dataTransfer || typeof dataTransfer.setDragImage !== 'function')
25
- return;
26
- const { height } = element.getBoundingClientRect();
27
- dataTransfer.setDragImage(element, 16, Math.max(0, height / 2));
28
- }
29
- /** A keyed, replaceable hover timer suitable for expansion and disclosure intent. */
30
- function createHoverIntent(delay, onIntent) {
31
- let timer;
32
- let pendingKey;
33
- function cancel() {
34
- if (timer)
35
- clearTimeout(timer);
36
- timer = undefined;
37
- pendingKey = undefined;
38
- }
39
- return {
40
- schedule(key) {
41
- if (pendingKey === key && timer)
42
- return;
43
- cancel();
44
- pendingKey = key;
45
- timer = setTimeout(() => {
46
- timer = undefined;
47
- const resolvedKey = pendingKey;
48
- pendingKey = undefined;
49
- if (resolvedKey)
50
- onIntent(resolvedKey);
51
- }, Math.max(0, delay));
52
- },
53
- cancel,
54
- destroy: cancel,
55
- };
56
- }
57
-
58
- const uiTreeCss = () => `:host{--ui-tree-indent:16px;--ui-tree-gutter:0px;display:block;min-inline-size:0;padding-inline-start:var(--ui-tree-gutter)}::slotted(ui-tree-item){--ui-tree-indent:inherit}`;
59
-
60
- const UITree = class {
61
- constructor(hostRef) {
62
- index.registerInstance(this, hostRef);
63
- }
64
- get host() { return index.getElement(this); }
65
- label = 'Tree';
66
- hoverExpandDelay = 700;
67
- /** Maximum resulting item depth accepted by pointer reordering. Zero is unlimited. */
68
- maxDepth = 0;
69
- source = null;
70
- target = null;
71
- position = null;
72
- rejectedTarget = null;
73
- rejectedPosition = null;
74
- rejection = null;
75
- hoverIntent = null;
76
- structureObserver = null;
77
- tabStop = null;
78
- componentDidLoad() {
79
- this.hoverIntent = createHoverIntent(this.hoverExpandDelay, this.expandTarget);
80
- this.host.addEventListener('dragstart', this.onDragStart);
81
- this.host.addEventListener('drag', this.onDrag);
82
- this.host.addEventListener('dragenter', this.onDragOver);
83
- this.host.addEventListener('dragover', this.onDragOver);
84
- this.host.addEventListener('dragleave', this.onDragLeave);
85
- this.host.addEventListener('drop', this.onDrop);
86
- this.host.addEventListener('dragend', this.onDragEnd);
87
- this.host.addEventListener('keydown', this.onKeyDown);
88
- this.host.addEventListener('focusin', this.onFocusIn);
89
- this.host.addEventListener('ui-tree-expansion-change', this.onExpansionChange);
90
- this.syncStructuralLevels();
91
- this.structureObserver = new MutationObserver(this.syncStructuralLevels);
92
- this.structureObserver.observe(this.host, { childList: true, subtree: true });
93
- }
94
- disconnectedCallback() {
95
- this.hoverIntent?.destroy();
96
- this.host.removeEventListener('dragstart', this.onDragStart);
97
- this.host.removeEventListener('drag', this.onDrag);
98
- this.host.removeEventListener('dragenter', this.onDragOver);
99
- this.host.removeEventListener('dragover', this.onDragOver);
100
- this.host.removeEventListener('dragleave', this.onDragLeave);
101
- this.host.removeEventListener('drop', this.onDrop);
102
- this.host.removeEventListener('dragend', this.onDragEnd);
103
- this.host.removeEventListener('keydown', this.onKeyDown);
104
- this.host.removeEventListener('focusin', this.onFocusIn);
105
- this.host.removeEventListener('ui-tree-expansion-change', this.onExpansionChange);
106
- this.structureObserver?.disconnect();
107
- this.structureObserver = null;
108
- }
109
- syncStructuralLevels = () => {
110
- for (const item of Array.from(this.host.querySelectorAll('ui-tree-item'))) {
111
- item.dispatchEvent(new CustomEvent('ui-tree-structure-sync'));
112
- }
113
- this.syncTabStop();
114
- };
115
- syncTabStop(preferred) {
116
- const items = this.visibleItems();
117
- const next = preferred && items.includes(preferred)
118
- ? preferred
119
- : this.tabStop && items.includes(this.tabStop)
120
- ? this.tabStop
121
- : items[0] ?? null;
122
- this.tabStop = next;
123
- for (const item of items) {
124
- item.dispatchEvent(new CustomEvent('ui-tree-roving-tab-stop', {
125
- detail: { active: item === next },
126
- }));
127
- }
128
- }
129
- itemFromEvent(event) {
130
- return event.composedPath().find(node => (node instanceof HTMLElement && node.localName === 'ui-tree-item')) ?? null;
131
- }
132
- eventTargetsInteractiveContent(event) {
133
- for (const node of event.composedPath()) {
134
- if (node instanceof HTMLElement && node.localName === 'ui-tree-item')
135
- break;
136
- if (node instanceof HTMLElement && node.matches('a, button, input, select, textarea, [role="button"], [role="link"]')) {
137
- return true;
138
- }
139
- }
140
- return false;
141
- }
142
- itemId(item) {
143
- return item.itemId || item.getAttribute('item-id') || '';
144
- }
145
- rowFor(item) {
146
- return item.shadowRoot?.querySelector('[part="row"]') ?? null;
147
- }
148
- itemAtPoint(clientX, clientY) {
149
- let element = this.host.ownerDocument.elementFromPoint(clientX, clientY);
150
- while (element) {
151
- if (element.localName === 'ui-tree-item' && this.host.contains(element)) {
152
- return element;
153
- }
154
- const root = element.getRootNode();
155
- element = root instanceof ShadowRoot ? root.host : element.parentElement;
156
- }
157
- return null;
158
- }
159
- isWithinTree(node) {
160
- let element = node instanceof HTMLElement ? node : null;
161
- while (element) {
162
- if (element === this.host || this.host.contains(element))
163
- return true;
164
- const root = element.getRootNode();
165
- element = root instanceof ShadowRoot ? root.host : element.parentElement;
166
- }
167
- return false;
168
- }
169
- acceptsChildren(item) {
170
- return Boolean(item.container ?? item.hasAttribute('container'))
171
- && !Boolean(item.disabled ?? item.hasAttribute('disabled'));
172
- }
173
- itemMetadata(item) {
174
- return {
175
- type: item.getAttribute('data-drag-type') || item.getAttribute('drag-type') || 'item',
176
- scope: item.getAttribute('data-drop-scope') || item.getAttribute('drop-scope') || '',
177
- accepts: (item.getAttribute('data-accepts') || item.getAttribute('accepts') || '')
178
- .split(',')
179
- .map(value => value.trim())
180
- .filter(Boolean),
181
- };
182
- }
183
- constraintDepth(item) {
184
- if (item.dropDepth !== undefined)
185
- return item.dropDepth;
186
- const dropDepth = item.getAttribute('drop-depth');
187
- if (dropDepth !== null)
188
- return Number(dropDepth);
189
- return Number(item.getAttribute('aria-level')) || 1;
190
- }
191
- subtreeDepth(item) {
192
- if (item.subtreeDepth !== undefined)
193
- return Math.max(0, Math.floor(item.subtreeDepth));
194
- const override = item.getAttribute('subtree-depth');
195
- if (override !== null)
196
- return Math.max(0, Math.floor(Number(override)));
197
- return Array.from(item.querySelectorAll('ui-tree-item')).reduce((deepest, descendant) => {
198
- let nesting = 0;
199
- let ancestor = descendant.parentElement?.closest('ui-tree-item') ?? null;
200
- while (ancestor && ancestor !== item) {
201
- nesting += 1;
202
- ancestor = ancestor.parentElement?.closest('ui-tree-item') ?? null;
203
- }
204
- return ancestor === item ? Math.max(deepest, nesting + 1) : deepest;
205
- }, 0);
206
- }
207
- dropRejection(source, target, position) {
208
- // A tree item can never move into (or beside) one of its own descendants.
209
- // Reject the target before showing any insertion affordance so the preview
210
- // stays truthful instead of promising a move the consumer must undo.
211
- if (source.contains(target))
212
- return { reason: 'descendant' };
213
- const sourceMeta = this.itemMetadata(source);
214
- const targetMeta = this.itemMetadata(target);
215
- if (position === 'inside') {
216
- if (!this.acceptsChildren(target)
217
- || (targetMeta.accepts.length > 0 && !targetMeta.accepts.includes(sourceMeta.type))) {
218
- return { reason: 'incompatible' };
219
- }
220
- }
221
- else if (sourceMeta.type !== targetMeta.type) {
222
- return { reason: 'incompatible' };
223
- }
224
- const maxDepth = Math.max(0, Math.floor(this.maxDepth));
225
- if (maxDepth > 0) {
226
- const targetDepth = Math.max(0, Math.floor(this.constraintDepth(target)));
227
- const subtreeDepth = this.subtreeDepth(source);
228
- const resultingDepth = targetDepth + (position === 'inside' ? 1 : 0) + subtreeDepth;
229
- if (resultingDepth > maxDepth)
230
- return { reason: 'max-depth', maxDepth, resultingDepth };
231
- }
232
- return null;
233
- }
234
- clearTarget() {
235
- this.target?.removeAttribute('data-drop-position');
236
- this.target = null;
237
- this.position = null;
238
- this.hoverIntent?.cancel();
239
- }
240
- clearRejection() {
241
- this.rejectedTarget = null;
242
- this.rejectedPosition = null;
243
- this.rejection = null;
244
- }
245
- finishDrag() {
246
- this.source?.removeAttribute('data-dragging');
247
- this.source = null;
248
- this.clearTarget();
249
- this.clearRejection();
250
- }
251
- expandTarget = (itemId) => {
252
- const item = Array.from(this.host.querySelectorAll('ui-tree-item'))
253
- .find(candidate => this.itemId(candidate) === itemId);
254
- if (!item || item.getAttribute('aria-expanded') !== 'false')
255
- return;
256
- item.dispatchEvent(new CustomEvent('ui-tree-auto-expand'));
257
- };
258
- onDragStart = (event) => {
259
- const item = this.itemFromEvent(event);
260
- if (!item || !Boolean(item.sortable ?? item.hasAttribute('sortable'))
261
- || Boolean(item.disabled ?? item.hasAttribute('disabled')))
262
- return;
263
- const fromHandle = event.composedPath().some(node => (node instanceof HTMLElement && node.getAttribute('part') === 'drag-handle'));
264
- if (!fromHandle) {
265
- event.preventDefault();
266
- return;
267
- }
268
- const sourceId = this.itemId(item);
269
- const row = this.rowFor(item);
270
- if (!sourceId || !row) {
271
- event.preventDefault();
272
- return;
273
- }
274
- this.source = item;
275
- item.setAttribute('data-dragging', 'true');
276
- if (event.dataTransfer) {
277
- event.dataTransfer.effectAllowed = 'move';
278
- event.dataTransfer.setData('text/plain', sourceId);
279
- }
280
- setElementDragImage(event.dataTransfer, row);
281
- };
282
- updateTarget(target, clientY, dataTransfer) {
283
- if (!this.source)
284
- return false;
285
- if (!target || target === this.source) {
286
- this.clearTarget();
287
- this.clearRejection();
288
- return false;
289
- }
290
- const row = this.rowFor(target);
291
- if (!row)
292
- return false;
293
- const position = classifyDropPosition(row.getBoundingClientRect(), clientY, this.acceptsChildren(target));
294
- const rejection = this.dropRejection(this.source, target, position);
295
- if (rejection) {
296
- if (dataTransfer)
297
- dataTransfer.dropEffect = 'none';
298
- this.clearTarget();
299
- if (rejection.reason === 'max-depth') {
300
- this.rejectedTarget = target;
301
- this.rejectedPosition = position;
302
- this.rejection = rejection;
303
- }
304
- else {
305
- this.clearRejection();
306
- }
307
- return false;
308
- }
309
- this.clearRejection();
310
- if (dataTransfer)
311
- dataTransfer.dropEffect = 'move';
312
- if (this.target !== target || this.position !== position) {
313
- this.clearTarget();
314
- this.target = target;
315
- this.position = position;
316
- target.setAttribute('data-drop-position', position);
317
- }
318
- if (position === 'inside' && target.getAttribute('aria-expanded') === 'false') {
319
- this.hoverIntent?.schedule(this.itemId(target));
320
- }
321
- else {
322
- this.hoverIntent?.cancel();
323
- }
324
- return true;
325
- }
326
- onDrag = (event) => {
327
- if (!this.source || (event.clientX === 0 && event.clientY === 0))
328
- return;
329
- const target = this.itemAtPoint(event.clientX, event.clientY);
330
- // Native dragenter does not fire when a nested source moves onto an
331
- // ancestor row: the pointer was already inside that ancestor's host. The
332
- // source drag event still carries the live pointer coordinates, so use it
333
- // to keep ancestor/outdent feedback current.
334
- if (target)
335
- this.updateTarget(target, event.clientY, event.dataTransfer);
336
- };
337
- onDragOver = (event) => {
338
- if (!this.source)
339
- return;
340
- const target = this.itemFromEvent(event);
341
- if (this.updateTarget(target, event.clientY, event.dataTransfer)) {
342
- event.preventDefault();
343
- }
344
- };
345
- onDragLeave = (event) => {
346
- if (this.isWithinTree(event.relatedTarget))
347
- return;
348
- if (this.itemAtPoint(event.clientX, event.clientY))
349
- return;
350
- this.clearTarget();
351
- this.clearRejection();
352
- };
353
- dispatchReorder(source, target, position) {
354
- const sourceId = this.itemId(source);
355
- const targetId = this.itemId(target);
356
- if (!sourceId || !targetId)
357
- return;
358
- if (position === 'inside')
359
- this.expandTarget(targetId);
360
- const sourceMeta = this.itemMetadata(source);
361
- const targetMeta = this.itemMetadata(target);
362
- events.dispatchDetail(this.host, 'reorder', {
363
- sourceId,
364
- targetId,
365
- position,
366
- sourceType: sourceMeta.type,
367
- targetType: targetMeta.type,
368
- sourceScope: sourceMeta.scope,
369
- targetScope: targetMeta.scope,
370
- trigger: 'pointer',
371
- });
372
- }
373
- dispatchReorderRejected(source, target, position, rejection) {
374
- const sourceId = this.itemId(source);
375
- const targetId = this.itemId(target);
376
- if (!sourceId || !targetId)
377
- return;
378
- events.dispatchDetail(this.host, 'reorder-rejected', {
379
- sourceId,
380
- targetId,
381
- position,
382
- reason: 'max-depth',
383
- maxDepth: rejection.maxDepth,
384
- resultingDepth: rejection.resultingDepth,
385
- trigger: 'pointer',
386
- });
387
- }
388
- onDrop = (event) => {
389
- if (!this.source || !this.target || !this.position)
390
- return;
391
- event.preventDefault();
392
- this.dispatchReorder(this.source, this.target, this.position);
393
- this.finishDrag();
394
- };
395
- onDragEnd = (event) => {
396
- if (this.source) {
397
- if (this.rejectedTarget && this.rejectedPosition && this.rejection) {
398
- this.dispatchReorderRejected(this.source, this.rejectedTarget, this.rejectedPosition, this.rejection);
399
- this.finishDrag();
400
- return;
401
- }
402
- const target = this.itemAtPoint(event.clientX, event.clientY);
403
- if (target && target !== this.source) {
404
- const row = this.rowFor(target);
405
- if (row) {
406
- const position = classifyDropPosition(row.getBoundingClientRect(), event.clientY, this.acceptsChildren(target));
407
- const rejection = this.dropRejection(this.source, target, position);
408
- if (!rejection) {
409
- this.dispatchReorder(this.source, target, position);
410
- }
411
- else if (rejection.reason === 'max-depth') {
412
- this.dispatchReorderRejected(this.source, target, position, rejection);
413
- }
414
- }
415
- }
416
- }
417
- this.finishDrag();
418
- };
419
- visibleItems() {
420
- return Array.from(this.host.querySelectorAll('ui-tree-item'))
421
- .filter(item => item.getClientRects().length > 0 && !item.hasAttribute('disabled'));
422
- }
423
- parentItem(item) {
424
- const parent = item.parentElement?.closest('ui-tree-item') ?? null;
425
- return parent && this.host.contains(parent) ? parent : null;
426
- }
427
- firstVisibleChild(item, items) {
428
- return items.find(candidate => this.parentItem(candidate) === item) ?? null;
429
- }
430
- focusItem(item) {
431
- this.syncTabStop(item);
432
- item.focus();
433
- }
434
- requestExpansion(item, expanded) {
435
- item.dispatchEvent(new CustomEvent('ui-tree-request-expanded', {
436
- detail: { expanded, trigger: 'keyboard' },
437
- }));
438
- }
439
- onFocusIn = (event) => {
440
- if (this.eventTargetsInteractiveContent(event))
441
- return;
442
- const item = this.itemFromEvent(event);
443
- if (item)
444
- this.syncTabStop(item);
445
- };
446
- onExpansionChange = () => {
447
- requestAnimationFrame(() => this.syncTabStop());
448
- };
449
- onKeyDown = (event) => {
450
- if (this.eventTargetsInteractiveContent(event))
451
- return;
452
- const current = this.itemFromEvent(event);
453
- if (!current)
454
- return;
455
- const items = this.visibleItems();
456
- const index = items.indexOf(current);
457
- if (index < 0)
458
- return;
459
- const next = event.key === 'ArrowDown' ? items[index + 1]
460
- : event.key === 'ArrowUp' ? items[index - 1]
461
- : event.key === 'Home' ? items[0]
462
- : event.key === 'End' ? items.at(-1)
463
- : null;
464
- if (next) {
465
- event.preventDefault();
466
- this.focusItem(next);
467
- return;
468
- }
469
- if (event.key === 'ArrowLeft') {
470
- if (current.getAttribute('aria-expanded') === 'true') {
471
- event.preventDefault();
472
- this.requestExpansion(current, false);
473
- }
474
- else if (this.parentItem(current)) {
475
- event.preventDefault();
476
- this.focusItem(this.parentItem(current));
477
- }
478
- return;
479
- }
480
- if (event.key === 'ArrowRight') {
481
- if (current.getAttribute('aria-expanded') === 'false') {
482
- event.preventDefault();
483
- this.requestExpansion(current, true);
484
- }
485
- else if (current.getAttribute('aria-expanded') === 'true') {
486
- const child = this.firstVisibleChild(current, items);
487
- if (child) {
488
- event.preventDefault();
489
- this.focusItem(child);
490
- }
491
- }
492
- }
493
- };
494
- render() {
495
- return (index.h(index.Host, { key: 'bae06665078a67c59db2d9e72c7dea6ddeeb9e56', role: "tree", "aria-label": this.label || 'Tree' }, index.h("slot", { key: '232cb02f1a50bc5e18a92c0d8677e917870ec75e' })));
496
- }
497
- };
498
- UITree.style = uiTreeCss();
499
-
500
- exports.ui_tree = UITree;
@@ -1,45 +0,0 @@
1
- {
2
- "entries": [
3
- "components/ui-callout/ui-callout.js",
4
- "components/ui-affordance-scope/ui-affordance-scope.js",
5
- "components/ui-avatar/ui-avatar.js",
6
- "components/ui-avatar-group/ui-avatar-group.js",
7
- "components/ui-badge/ui-badge.js",
8
- "components/ui-button/ui-button.js",
9
- "components/ui-checkbox/ui-checkbox.js",
10
- "components/ui-chip/ui-chip.js",
11
- "components/ui-combobox/ui-combobox.js",
12
- "components/ui-context-menu/ui-context-menu.js",
13
- "components/ui-dialog/ui-dialog.js",
14
- "components/ui-disclosure/ui-disclosure.js",
15
- "components/ui-editable/ui-editable.js",
16
- "components/ui-floating-action-button/ui-floating-action-button.js",
17
- "components/ui-form-field/ui-form-field.js",
18
- "components/ui-icon-button/ui-icon-button.js",
19
- "components/ui-input/ui-input.js",
20
- "components/ui-menu/ui-menu.js",
21
- "components/ui-menu-item/ui-menu-item.js",
22
- "components/ui-popover/ui-popover.js",
23
- "components/ui-radio/ui-radio.js",
24
- "components/ui-radio-group/ui-radio-group.js",
25
- "components/ui-search-result-row/ui-search-result-row.js",
26
- "components/ui-search-shell/ui-search-shell.js",
27
- "components/ui-select/ui-select.js",
28
- "components/ui-switch/ui-switch.js",
29
- "components/ui-tabs/ui-tabs.js",
30
- "components/ui-textarea/ui-textarea.js",
31
- "components/ui-toast-region/ui-toast-region.js",
32
- "components/ui-tooltip/ui-tooltip.js",
33
- "components/ui-top-bar/ui-top-bar.js",
34
- "components/ui-tree/ui-tree.js",
35
- "components/ui-tree-item/ui-tree-item.js"
36
- ],
37
- "mixins": [],
38
- "compiler": {
39
- "name": "@stencil/core",
40
- "version": "4.43.2",
41
- "typescriptVersion": "5.8.3"
42
- },
43
- "collections": [],
44
- "bundles": []
45
- }
@@ -1,8 +0,0 @@
1
- :host {
2
- display: contents;
3
- --ui-affordance-scope-engaged: 0;
4
- }
5
-
6
- :host([data-ui-interaction='engaged']) {
7
- --ui-affordance-scope-engaged: 1;
8
- }
@@ -1,70 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- import { createProximityCoordinator, DEFAULT_AFFORDANCE_NEAR_RADIUS, } from "../../overlay/positioning";
3
- export class UIAffordanceScope {
4
- host;
5
- /** Distance outside each registered affordance that reveals its near state. */
6
- nearRadius = DEFAULT_AFFORDANCE_NEAR_RADIUS;
7
- coordinator = null;
8
- componentDidLoad() {
9
- this.connectCoordinator();
10
- }
11
- disconnectedCallback() {
12
- this.coordinator?.destroy();
13
- this.coordinator = null;
14
- }
15
- connectCoordinator() {
16
- this.coordinator?.destroy();
17
- this.coordinator = createProximityCoordinator(this.host, {
18
- nearRadius: this.nearRadius,
19
- });
20
- }
21
- onSlotChange = () => {
22
- this.coordinator?.refresh();
23
- };
24
- render() {
25
- return (h(Host, { key: 'f500fa48554ed6224efd2dbe9632880bf0a15a19' }, h("slot", { key: '37c5c5b7925b260ff8f9edd411ee6c90a12a4909', onSlotchange: this.onSlotChange })));
26
- }
27
- static get is() { return "ui-affordance-scope"; }
28
- static get encapsulation() { return "shadow"; }
29
- static get originalStyleUrls() {
30
- return {
31
- "$": ["ui-affordance-scope.css"]
32
- };
33
- }
34
- static get styleUrls() {
35
- return {
36
- "$": ["ui-affordance-scope.css"]
37
- };
38
- }
39
- static get properties() {
40
- return {
41
- "nearRadius": {
42
- "type": "number",
43
- "mutable": false,
44
- "complexType": {
45
- "original": "number",
46
- "resolved": "number",
47
- "references": {}
48
- },
49
- "required": false,
50
- "optional": false,
51
- "docs": {
52
- "tags": [],
53
- "text": "Distance outside each registered affordance that reveals its near state."
54
- },
55
- "getter": false,
56
- "setter": false,
57
- "reflect": true,
58
- "attribute": "near-radius",
59
- "defaultValue": "DEFAULT_AFFORDANCE_NEAR_RADIUS"
60
- }
61
- };
62
- }
63
- static get elementRef() { return "host"; }
64
- static get watchers() {
65
- return [{
66
- "propName": "nearRadius",
67
- "methodName": "connectCoordinator"
68
- }];
69
- }
70
- }
@@ -1,35 +0,0 @@
1
- :host {
2
- display: inline-flex;
3
- }
4
-
5
- .avatar {
6
- display: inline-grid;
7
- place-items: center;
8
- overflow: hidden;
9
- inline-size: 2.5rem;
10
- block-size: 2.5rem;
11
- border-radius: 999px;
12
- border: 1px solid var(--ui-border-default);
13
- background: var(--ui-surface-muted);
14
- color: var(--ui-text-secondary);
15
- font: inherit;
16
- font-size: 0.875rem;
17
- font-weight: 600;
18
- text-transform: uppercase;
19
- }
20
-
21
- .avatar img {
22
- grid-area: 1 / 1;
23
- inline-size: 100%;
24
- block-size: 100%;
25
- object-fit: cover;
26
- }
27
-
28
- .avatar .fallback {
29
- grid-area: 1 / 1;
30
- display: inline-flex;
31
- align-items: center;
32
- justify-content: center;
33
- inline-size: 100%;
34
- block-size: 100%;
35
- }