@threadlabs/looma 0.1.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 (318) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +21 -0
  3. package/dist/chunk-G53JEAQK.js +94 -0
  4. package/dist/chunk-OF57X5AR.js +10 -0
  5. package/dist/chunk-UL7UIUJZ.js +20 -0
  6. package/dist/chunk-YK4MTZGJ.js +1580 -0
  7. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  8. package/dist/cjs/events-TcQIzpNv.js +19 -0
  9. package/dist/cjs/id-CYbKpaYr.js +9 -0
  10. package/dist/cjs/index-D07f6BOw.js +1569 -0
  11. package/dist/cjs/index.cjs.js +2 -0
  12. package/dist/cjs/loader.cjs.js +13 -0
  13. package/dist/cjs/looma.cjs.js +25 -0
  14. package/dist/cjs/manager-BOpVXb92.js +93 -0
  15. package/dist/cjs/ui-avatar-group.cjs.entry.js +51 -0
  16. package/dist/cjs/ui-avatar.cjs.entry.js +50 -0
  17. package/dist/cjs/ui-badge.cjs.entry.js +19 -0
  18. package/dist/cjs/ui-button.cjs.entry.js +62 -0
  19. package/dist/cjs/ui-checkbox.cjs.entry.js +91 -0
  20. package/dist/cjs/ui-context-menu.cjs.entry.js +201 -0
  21. package/dist/cjs/ui-dialog.cjs.entry.js +93 -0
  22. package/dist/cjs/ui-disclosure.cjs.entry.js +109 -0
  23. package/dist/cjs/ui-floating-action-button.cjs.entry.js +20 -0
  24. package/dist/cjs/ui-form-field.cjs.entry.js +59 -0
  25. package/dist/cjs/ui-icon-button.cjs.entry.js +21 -0
  26. package/dist/cjs/ui-input.cjs.entry.js +101 -0
  27. package/dist/cjs/ui-menu-item.cjs.entry.js +19 -0
  28. package/dist/cjs/ui-menu.cjs.entry.js +96 -0
  29. package/dist/cjs/ui-popover.cjs.entry.js +92 -0
  30. package/dist/cjs/ui-radio-group.cjs.entry.js +134 -0
  31. package/dist/cjs/ui-radio.cjs.entry.js +85 -0
  32. package/dist/cjs/ui-search-result-row.cjs.entry.js +47 -0
  33. package/dist/cjs/ui-search-shell.cjs.entry.js +39 -0
  34. package/dist/cjs/ui-select.cjs.entry.js +100 -0
  35. package/dist/cjs/ui-switch.cjs.entry.js +65 -0
  36. package/dist/cjs/ui-tabs.cjs.entry.js +117 -0
  37. package/dist/cjs/ui-textarea.cjs.entry.js +106 -0
  38. package/dist/cjs/ui-toast-region.cjs.entry.js +67 -0
  39. package/dist/cjs/ui-tooltip.cjs.entry.js +133 -0
  40. package/dist/cjs/ui-top-bar.cjs.entry.js +43 -0
  41. package/dist/collection/collection-manifest.json +38 -0
  42. package/dist/collection/components/ui-avatar/ui-avatar.css +35 -0
  43. package/dist/collection/components/ui-avatar/ui-avatar.js +130 -0
  44. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +32 -0
  45. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +103 -0
  46. package/dist/collection/components/ui-badge/ui-badge.css +74 -0
  47. package/dist/collection/components/ui-badge/ui-badge.js +62 -0
  48. package/dist/collection/components/ui-button/ui-button.css +101 -0
  49. package/dist/collection/components/ui-button/ui-button.js +127 -0
  50. package/dist/collection/components/ui-checkbox/ui-checkbox.css +24 -0
  51. package/dist/collection/components/ui-checkbox/ui-checkbox.js +223 -0
  52. package/dist/collection/components/ui-context-menu/ui-context-menu.css +17 -0
  53. package/dist/collection/components/ui-context-menu/ui-context-menu.js +272 -0
  54. package/dist/collection/components/ui-dialog/ui-dialog.css +65 -0
  55. package/dist/collection/components/ui-dialog/ui-dialog.js +185 -0
  56. package/dist/collection/components/ui-disclosure/ui-disclosure.css +7 -0
  57. package/dist/collection/components/ui-disclosure/ui-disclosure.js +182 -0
  58. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.css +70 -0
  59. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +85 -0
  60. package/dist/collection/components/ui-form-field/ui-form-field.css +21 -0
  61. package/dist/collection/components/ui-form-field/ui-form-field.js +125 -0
  62. package/dist/collection/components/ui-icon-button/ui-icon-button.css +92 -0
  63. package/dist/collection/components/ui-icon-button/ui-icon-button.js +106 -0
  64. package/dist/collection/components/ui-input/ui-input.css +46 -0
  65. package/dist/collection/components/ui-input/ui-input.js +213 -0
  66. package/dist/collection/components/ui-menu/ui-menu.css +37 -0
  67. package/dist/collection/components/ui-menu/ui-menu.js +149 -0
  68. package/dist/collection/components/ui-menu-item/ui-menu-item.css +26 -0
  69. package/dist/collection/components/ui-menu-item/ui-menu-item.js +64 -0
  70. package/dist/collection/components/ui-popover/ui-popover.css +8 -0
  71. package/dist/collection/components/ui-popover/ui-popover.js +144 -0
  72. package/dist/collection/components/ui-radio/ui-radio.css +22 -0
  73. package/dist/collection/components/ui-radio/ui-radio.js +213 -0
  74. package/dist/collection/components/ui-radio-group/ui-radio-group.css +10 -0
  75. package/dist/collection/components/ui-radio-group/ui-radio-group.js +247 -0
  76. package/dist/collection/components/ui-search-result-row/ui-search-result-row.css +80 -0
  77. package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +100 -0
  78. package/dist/collection/components/ui-search-shell/ui-search-shell.css +61 -0
  79. package/dist/collection/components/ui-search-shell/ui-search-shell.js +46 -0
  80. package/dist/collection/components/ui-select/ui-select.css +62 -0
  81. package/dist/collection/components/ui-select/ui-select.js +212 -0
  82. package/dist/collection/components/ui-switch/ui-switch.css +63 -0
  83. package/dist/collection/components/ui-switch/ui-switch.js +177 -0
  84. package/dist/collection/components/ui-tabs/ui-tabs.css +65 -0
  85. package/dist/collection/components/ui-tabs/ui-tabs.js +190 -0
  86. package/dist/collection/components/ui-textarea/ui-textarea.css +48 -0
  87. package/dist/collection/components/ui-textarea/ui-textarea.js +238 -0
  88. package/dist/collection/components/ui-toast-region/ui-toast-region.css +52 -0
  89. package/dist/collection/components/ui-toast-region/ui-toast-region.js +100 -0
  90. package/dist/collection/components/ui-tooltip/ui-tooltip.css +14 -0
  91. package/dist/collection/components/ui-tooltip/ui-tooltip.js +205 -0
  92. package/dist/collection/components/ui-top-bar/ui-top-bar.css +43 -0
  93. package/dist/collection/components/ui-top-bar/ui-top-bar.js +52 -0
  94. package/dist/collection/overlay/manager.js +90 -0
  95. package/dist/collection/utils/events.js +13 -0
  96. package/dist/collection/utils/id.js +5 -0
  97. package/dist/collection/utils/initials.js +11 -0
  98. package/dist/components/index.d.ts +88 -0
  99. package/dist/components/index.js +1 -0
  100. package/dist/components/p-CIA4RyEp.js +1 -0
  101. package/dist/components/p-CR7f2MQC.js +1 -0
  102. package/dist/components/p-JwSoedEO.js +1 -0
  103. package/dist/components/p-WvL4iAhX.js +1 -0
  104. package/dist/components/p-hgBUJRDa.js +1 -0
  105. package/dist/components/ui-avatar-group.d.ts +11 -0
  106. package/dist/components/ui-avatar-group.js +1 -0
  107. package/dist/components/ui-avatar.d.ts +11 -0
  108. package/dist/components/ui-avatar.js +1 -0
  109. package/dist/components/ui-badge.d.ts +11 -0
  110. package/dist/components/ui-badge.js +1 -0
  111. package/dist/components/ui-button.d.ts +11 -0
  112. package/dist/components/ui-button.js +1 -0
  113. package/dist/components/ui-checkbox.d.ts +11 -0
  114. package/dist/components/ui-checkbox.js +1 -0
  115. package/dist/components/ui-context-menu.d.ts +11 -0
  116. package/dist/components/ui-context-menu.js +1 -0
  117. package/dist/components/ui-dialog.d.ts +11 -0
  118. package/dist/components/ui-dialog.js +1 -0
  119. package/dist/components/ui-disclosure.d.ts +11 -0
  120. package/dist/components/ui-disclosure.js +1 -0
  121. package/dist/components/ui-floating-action-button.d.ts +11 -0
  122. package/dist/components/ui-floating-action-button.js +1 -0
  123. package/dist/components/ui-form-field.d.ts +11 -0
  124. package/dist/components/ui-form-field.js +1 -0
  125. package/dist/components/ui-icon-button.d.ts +11 -0
  126. package/dist/components/ui-icon-button.js +1 -0
  127. package/dist/components/ui-input.d.ts +11 -0
  128. package/dist/components/ui-input.js +1 -0
  129. package/dist/components/ui-menu-item.d.ts +11 -0
  130. package/dist/components/ui-menu-item.js +1 -0
  131. package/dist/components/ui-menu.d.ts +11 -0
  132. package/dist/components/ui-menu.js +1 -0
  133. package/dist/components/ui-popover.d.ts +11 -0
  134. package/dist/components/ui-popover.js +1 -0
  135. package/dist/components/ui-radio-group.d.ts +11 -0
  136. package/dist/components/ui-radio-group.js +1 -0
  137. package/dist/components/ui-radio.d.ts +11 -0
  138. package/dist/components/ui-radio.js +1 -0
  139. package/dist/components/ui-search-result-row.d.ts +11 -0
  140. package/dist/components/ui-search-result-row.js +1 -0
  141. package/dist/components/ui-search-shell.d.ts +11 -0
  142. package/dist/components/ui-search-shell.js +1 -0
  143. package/dist/components/ui-select.d.ts +11 -0
  144. package/dist/components/ui-select.js +1 -0
  145. package/dist/components/ui-switch.d.ts +11 -0
  146. package/dist/components/ui-switch.js +1 -0
  147. package/dist/components/ui-tabs.d.ts +11 -0
  148. package/dist/components/ui-tabs.js +1 -0
  149. package/dist/components/ui-textarea.d.ts +11 -0
  150. package/dist/components/ui-textarea.js +1 -0
  151. package/dist/components/ui-toast-region.d.ts +11 -0
  152. package/dist/components/ui-toast-region.js +1 -0
  153. package/dist/components/ui-tooltip.d.ts +11 -0
  154. package/dist/components/ui-tooltip.js +1 -0
  155. package/dist/components/ui-top-bar.d.ts +11 -0
  156. package/dist/components/ui-top-bar.js +1 -0
  157. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  158. package/dist/esm/events-JwSoedEO.js +15 -0
  159. package/dist/esm/id-hgBUJRDa.js +7 -0
  160. package/dist/esm/index-CEeiinfk.js +1561 -0
  161. package/dist/esm/index.js +1 -0
  162. package/dist/esm/loader.js +11 -0
  163. package/dist/esm/looma.js +21 -0
  164. package/dist/esm/manager-CR7f2MQC.js +89 -0
  165. package/dist/esm/ui-avatar-group.entry.js +49 -0
  166. package/dist/esm/ui-avatar.entry.js +48 -0
  167. package/dist/esm/ui-badge.entry.js +17 -0
  168. package/dist/esm/ui-button.entry.js +60 -0
  169. package/dist/esm/ui-checkbox.entry.js +89 -0
  170. package/dist/esm/ui-context-menu.entry.js +199 -0
  171. package/dist/esm/ui-dialog.entry.js +91 -0
  172. package/dist/esm/ui-disclosure.entry.js +107 -0
  173. package/dist/esm/ui-floating-action-button.entry.js +18 -0
  174. package/dist/esm/ui-form-field.entry.js +57 -0
  175. package/dist/esm/ui-icon-button.entry.js +19 -0
  176. package/dist/esm/ui-input.entry.js +99 -0
  177. package/dist/esm/ui-menu-item.entry.js +17 -0
  178. package/dist/esm/ui-menu.entry.js +94 -0
  179. package/dist/esm/ui-popover.entry.js +90 -0
  180. package/dist/esm/ui-radio-group.entry.js +132 -0
  181. package/dist/esm/ui-radio.entry.js +83 -0
  182. package/dist/esm/ui-search-result-row.entry.js +45 -0
  183. package/dist/esm/ui-search-shell.entry.js +37 -0
  184. package/dist/esm/ui-select.entry.js +98 -0
  185. package/dist/esm/ui-switch.entry.js +63 -0
  186. package/dist/esm/ui-tabs.entry.js +115 -0
  187. package/dist/esm/ui-textarea.entry.js +104 -0
  188. package/dist/esm/ui-toast-region.entry.js +65 -0
  189. package/dist/esm/ui-tooltip.entry.js +131 -0
  190. package/dist/esm/ui-top-bar.entry.js +41 -0
  191. package/dist/index.cjs +4062 -0
  192. package/dist/index.cjs.js +1 -0
  193. package/dist/index.d.cts +16 -0
  194. package/dist/index.d.ts +16 -0
  195. package/dist/index.js +129 -0
  196. package/dist/looma/index.esm.js +0 -0
  197. package/dist/looma/looma.esm.js +1 -0
  198. package/dist/looma/p-03f0594b.entry.js +1 -0
  199. package/dist/looma/p-15e619fd.entry.js +1 -0
  200. package/dist/looma/p-201243dc.entry.js +1 -0
  201. package/dist/looma/p-24d7aa5b.entry.js +1 -0
  202. package/dist/looma/p-341ba64a.entry.js +1 -0
  203. package/dist/looma/p-41d62a83.entry.js +1 -0
  204. package/dist/looma/p-4742e6b4.entry.js +1 -0
  205. package/dist/looma/p-4c54d489.entry.js +1 -0
  206. package/dist/looma/p-52c537fa.entry.js +1 -0
  207. package/dist/looma/p-5a645647.entry.js +1 -0
  208. package/dist/looma/p-610b2eca.entry.js +1 -0
  209. package/dist/looma/p-649dad92.entry.js +1 -0
  210. package/dist/looma/p-66a203a1.entry.js +1 -0
  211. package/dist/looma/p-754cfff3.entry.js +1 -0
  212. package/dist/looma/p-93ce1c62.entry.js +1 -0
  213. package/dist/looma/p-955fb814.entry.js +1 -0
  214. package/dist/looma/p-96de71ad.entry.js +1 -0
  215. package/dist/looma/p-CEeiinfk.js +2 -0
  216. package/dist/looma/p-CR7f2MQC.js +1 -0
  217. package/dist/looma/p-DQuL1Twl.js +1 -0
  218. package/dist/looma/p-JwSoedEO.js +1 -0
  219. package/dist/looma/p-ab4151d5.entry.js +1 -0
  220. package/dist/looma/p-c14233bc.entry.js +1 -0
  221. package/dist/looma/p-dc857ed4.entry.js +1 -0
  222. package/dist/looma/p-dfcb2cca.entry.js +1 -0
  223. package/dist/looma/p-dff144bd.entry.js +1 -0
  224. package/dist/looma/p-ebb74106.entry.js +1 -0
  225. package/dist/looma/p-ecb5739b.entry.js +1 -0
  226. package/dist/looma/p-ee31c7b4.entry.js +1 -0
  227. package/dist/looma/p-fa4659c4.entry.js +1 -0
  228. package/dist/looma/p-hgBUJRDa.js +1 -0
  229. package/dist/types/components/ui-avatar/ui-avatar.d.ts +11 -0
  230. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +12 -0
  231. package/dist/types/components/ui-badge/ui-badge.d.ts +5 -0
  232. package/dist/types/components/ui-button/ui-button.d.ts +13 -0
  233. package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +19 -0
  234. package/dist/types/components/ui-context-menu/ui-context-menu.d.ts +37 -0
  235. package/dist/types/components/ui-dialog/ui-dialog.d.ts +19 -0
  236. package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +20 -0
  237. package/dist/types/components/ui-floating-action-button/ui-floating-action-button.d.ts +6 -0
  238. package/dist/types/components/ui-form-field/ui-form-field.d.ts +10 -0
  239. package/dist/types/components/ui-icon-button/ui-icon-button.d.ts +7 -0
  240. package/dist/types/components/ui-input/ui-input.d.ts +19 -0
  241. package/dist/types/components/ui-menu/ui-menu.d.ts +14 -0
  242. package/dist/types/components/ui-menu-item/ui-menu-item.d.ts +5 -0
  243. package/dist/types/components/ui-popover/ui-popover.d.ts +16 -0
  244. package/dist/types/components/ui-radio/ui-radio.d.ts +17 -0
  245. package/dist/types/components/ui-radio-group/ui-radio-group.d.ts +21 -0
  246. package/dist/types/components/ui-search-result-row/ui-search-result-row.d.ts +15 -0
  247. package/dist/types/components/ui-search-shell/ui-search-shell.d.ts +9 -0
  248. package/dist/types/components/ui-select/ui-select.d.ts +19 -0
  249. package/dist/types/components/ui-switch/ui-switch.d.ts +15 -0
  250. package/dist/types/components/ui-tabs/ui-tabs.d.ts +17 -0
  251. package/dist/types/components/ui-textarea/ui-textarea.d.ts +20 -0
  252. package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +12 -0
  253. package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +24 -0
  254. package/dist/types/components/ui-top-bar/ui-top-bar.d.ts +12 -0
  255. package/dist/types/components.d.ts +1148 -0
  256. package/dist/types/overlay/manager.d.ts +14 -0
  257. package/dist/types/stencil-public-runtime.d.ts +1860 -0
  258. package/dist/types/utils/events.d.ts +4 -0
  259. package/dist/types/utils/id.d.ts +1 -0
  260. package/dist/types/utils/initials.d.ts +1 -0
  261. package/dist/ui-avatar-group.entry-BZGXBOSE.js +59 -0
  262. package/dist/ui-avatar.entry-S2O2W5SA.js +51 -0
  263. package/dist/ui-badge.entry-CVJDISCR.js +22 -0
  264. package/dist/ui-button.entry-LNJBEJFE.js +72 -0
  265. package/dist/ui-checkbox.entry-5RA2CB43.js +102 -0
  266. package/dist/ui-context-menu.entry-UUOCT75F.js +211 -0
  267. package/dist/ui-dialog.entry-OEPJTEES.js +106 -0
  268. package/dist/ui-disclosure.entry-LRRISGUD.js +120 -0
  269. package/dist/ui-floating-action-button.entry-7TSAZRXP.js +23 -0
  270. package/dist/ui-form-field.entry-73YOVICF.js +67 -0
  271. package/dist/ui-icon-button.entry-MNXGPG36.js +24 -0
  272. package/dist/ui-input.entry-UWRVAOSW.js +112 -0
  273. package/dist/ui-menu-item.entry-5AOJO5MP.js +22 -0
  274. package/dist/ui-menu.entry-YDS6UMB5.js +98 -0
  275. package/dist/ui-popover.entry-PGWDCQIX.js +104 -0
  276. package/dist/ui-radio-group.entry-RHP5GNWU.js +142 -0
  277. package/dist/ui-radio.entry-5WRWPSTK.js +96 -0
  278. package/dist/ui-search-result-row.entry-IKJB2SJJ.js +50 -0
  279. package/dist/ui-search-shell.entry-ZIWF4ZHH.js +41 -0
  280. package/dist/ui-select.entry-N5TIKHR7.js +111 -0
  281. package/dist/ui-switch.entry-WUSZTXIR.js +75 -0
  282. package/dist/ui-tabs.entry-UFAVAQIF.js +124 -0
  283. package/dist/ui-textarea.entry-BYT47RAQ.js +117 -0
  284. package/dist/ui-toast-region.entry-6UYR3ZU2.js +78 -0
  285. package/dist/ui-tooltip.entry-YS7UX4FS.js +145 -0
  286. package/dist/ui-top-bar.entry-V27H6NFO.js +49 -0
  287. package/editor/chunk-JKRA4D4W.js +435 -0
  288. package/editor/chunk-NOOV344H.js +783 -0
  289. package/editor/extensions/index.d.ts +78 -0
  290. package/editor/extensions/index.js +28 -0
  291. package/editor/index.d.ts +7 -0
  292. package/editor/index.js +29 -0
  293. package/editor/table-overlay-DTr3KC9e.d.ts +12 -0
  294. package/editor/ui.d.ts +48 -0
  295. package/editor/ui.js +1 -0
  296. package/editor.css +662 -0
  297. package/layout/index.cjs +207 -0
  298. package/layout/index.css +166 -0
  299. package/layout/index.d.cts +3 -0
  300. package/layout/index.d.ts +3 -0
  301. package/layout/index.js +182 -0
  302. package/layout.css +124 -0
  303. package/loader/cdn.js +1 -0
  304. package/loader/index.cjs.js +1 -0
  305. package/loader/index.d.ts +24 -0
  306. package/loader/index.es2017.js +1 -0
  307. package/loader/index.js +2 -0
  308. package/package.json +244 -0
  309. package/styles.css +899 -0
  310. package/theme-dark.css +59 -0
  311. package/theme-high-contrast.css +21 -0
  312. package/theme-light.css +30 -0
  313. package/tokens.css +148 -0
  314. package/vue/chunk-J4UBEIIL.js +83 -0
  315. package/vue/editor/index.d.ts +89 -0
  316. package/vue/editor/index.js +125 -0
  317. package/vue/index.d.ts +167 -0
  318. package/vue/index.js +113 -0
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,11 @@
1
+ import { b as bootstrapLazy } from './index-CEeiinfk.js';
2
+ export { s as setNonce } from './index-CEeiinfk.js';
3
+ import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
+
5
+ const defineCustomElements = async (win, options) => {
6
+ if (typeof window === 'undefined') return undefined;
7
+ await globalScripts();
8
+ return bootstrapLazy([["ui-context-menu",[[769,"ui-context-menu",{"open":[4],"defaultOpen":[4,"default-open"],"for":[1],"internalOpen":[32]},null,{"open":[{"syncFromProp":0}],"for":[{"syncTarget":0}],"internalOpen":[{"syncOverlay":0}]}]]],["ui-avatar",[[513,"ui-avatar",{"src":[1],"alt":[1],"name":[1],"fallback":[1],"hasImage":[32]},null,{"src":[{"watchSrc":0}]}]]],["ui-avatar-group",[[769,"ui-avatar-group",{"max":[2],"label":[1],"overflowCount":[32]},null,{"max":[{"syncOverflow":0}]}]]],["ui-badge",[[769,"ui-badge",{"variant":[1],"tone":[1]}]]],["ui-button",[[769,"ui-button",{"variant":[1],"size":[1],"disabled":[4]},null,{"variant":[{"syncToButton":0}],"size":[{"syncToButton":0}],"disabled":[{"syncToButton":0}]}]]],["ui-checkbox",[[769,"ui-checkbox",{"checked":[4],"defaultChecked":[4,"default-checked"],"disabled":[4],"indeterminate":[4],"required":[4],"value":[1],"internalChecked":[32]},null,{"checked":[{"syncFromProp":0}],"internalChecked":[{"syncToInput":0}],"indeterminate":[{"syncToInput":0}],"disabled":[{"syncToInput":0}],"required":[{"syncToInput":0}]}]]],["ui-dialog",[[769,"ui-dialog",{"open":[4],"defaultOpen":[4,"default-open"],"modal":[4],"dismissible":[4],"internalOpen":[32]},null,{"open":[{"syncFromProp":0}],"internalOpen":[{"syncOpen":0}]}]]],["ui-disclosure",[[769,"ui-disclosure",{"open":[4],"defaultOpen":[4,"default-open"],"disabled":[4],"internalOpen":[32],"contentId":[32]},null,{"open":[{"syncFromProp":0}],"internalOpen":[{"syncState":0}]}]]],["ui-floating-action-button",[[769,"ui-floating-action-button",{"disabled":[516],"mobileOnly":[516,"mobile-only"],"label":[1]}]]],["ui-form-field",[[769,"ui-form-field",{"invalid":[4],"disabled":[4],"required":[4]}]]],["ui-icon-button",[[769,"ui-icon-button",{"disabled":[516],"label":[1],"size":[513],"variant":[513]}]]],["ui-input",[[769,"ui-input",{"value":[1],"defaultValue":[1,"default-value"],"disabled":[4],"invalid":[4],"readOnly":[4,"readonly"],"internalValue":[32]},null,{"value":[{"syncFromProp":0}],"internalValue":[{"syncToInput":0}],"defaultValue":[{"syncToInput":0}],"disabled":[{"syncToInput":0}],"invalid":[{"syncToInput":0}],"readOnly":[{"syncToInput":0}]}]]],["ui-menu-item",[[769,"ui-menu-item",{"disabled":[516],"value":[1]}]]],["ui-popover",[[769,"ui-popover",{"open":[4],"defaultOpen":[4,"default-open"],"internalOpen":[32]},null,{"open":[{"syncFromProp":0}],"internalOpen":[{"onOpenChange":0}]}]]],["ui-radio",[[769,"ui-radio",{"checked":[4],"defaultChecked":[4,"default-checked"],"disabled":[4],"name":[1],"required":[4],"value":[1]},null,{"checked":[{"syncToInput":0}],"disabled":[{"syncToInput":0}],"name":[{"syncToInput":0}],"required":[{"syncToInput":0}],"value":[{"syncToInput":0}]}]]],["ui-radio-group",[[769,"ui-radio-group",{"value":[1],"name":[1],"orientation":[1],"disabled":[4],"required":[4],"internalValue":[32]},null,{"value":[{"syncFromProp":0}],"internalValue":[{"syncToRadios":0}],"name":[{"syncToRadios":0}],"orientation":[{"syncToRadios":0}],"disabled":[{"syncToRadios":0}]}]]],["ui-search-result-row",[[769,"ui-search-result-row",{"disabled":[516],"selected":[516],"hasLeading":[32],"hasMeta":[32],"hasExcerpt":[32],"hasTrailing":[32]}]]],["ui-search-shell",[[769,"ui-search-shell",{"hasStatus":[32],"hasFooter":[32]}]]],["ui-select",[[769,"ui-select",{"value":[1],"defaultValue":[1,"default-value"],"disabled":[4],"invalid":[4],"required":[4],"internalValue":[32]},null,{"value":[{"syncFromProp":0}],"internalValue":[{"syncToSelect":0}],"defaultValue":[{"syncToSelect":0}],"disabled":[{"syncToSelect":0}],"invalid":[{"syncToSelect":0}],"required":[{"syncToSelect":0}]}]]],["ui-switch",[[769,"ui-switch",{"checked":[4],"defaultChecked":[4,"default-checked"],"disabled":[4],"required":[4],"value":[1],"internalChecked":[32]},null,{"checked":[{"syncFromProp":0}]}]]],["ui-tabs",[[769,"ui-tabs",{"value":[1],"defaultValue":[1,"default-value"],"orientation":[1],"internalValue":[32]},null,{"value":[{"syncFromProp":0}],"internalValue":[{"syncState":0}],"orientation":[{"syncState":0}]}]]],["ui-textarea",[[769,"ui-textarea",{"value":[1],"defaultValue":[1,"default-value"],"disabled":[4],"invalid":[4],"readOnly":[4,"readonly"],"rows":[2],"internalValue":[32]},null,{"value":[{"syncFromProp":0}],"internalValue":[{"syncToTextarea":0}],"defaultValue":[{"syncToTextarea":0}],"disabled":[{"syncToTextarea":0}],"invalid":[{"syncToTextarea":0}],"readOnly":[{"syncToTextarea":0}],"rows":[{"syncToTextarea":0}]}]]],["ui-toast-region",[[769,"ui-toast-region",{"open":[4],"internalOpen":[32]},null,{"open":[{"syncFromProp":0}]}]]],["ui-tooltip",[[769,"ui-tooltip",{"for":[1],"open":[4],"defaultOpen":[4,"default-open"],"internalOpen":[32]},null,{"open":[{"syncFromProp":0}],"internalOpen":[{"syncOverlay":0}]}]]],["ui-top-bar",[[769,"ui-top-bar",{"hasLeading":[32],"hasSearch":[32],"hasActions":[32]}]]],["ui-menu",[[769,"ui-menu",{"open":[4],"defaultOpen":[4,"default-open"],"internalOpen":[32]},null,{"open":[{"syncFromProp":0}]}]]]], options);
9
+ };
10
+
11
+ export { defineCustomElements };
@@ -0,0 +1,21 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-CEeiinfk.js';
2
+ export { s as setNonce } from './index-CEeiinfk.js';
3
+ import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.43.2 | MIT Licensed | https://stenciljs.com
7
+ */
8
+
9
+ var patchBrowser = () => {
10
+ const importMeta = import.meta.url;
11
+ const opts = {};
12
+ if (importMeta !== "") {
13
+ opts.resourcesUrl = new URL(".", importMeta).href;
14
+ }
15
+ return promiseResolve(opts);
16
+ };
17
+
18
+ patchBrowser().then(async (options) => {
19
+ await globalScripts();
20
+ return bootstrapLazy([["ui-context-menu",[[769,"ui-context-menu",{"open":[4],"defaultOpen":[4,"default-open"],"for":[1],"internalOpen":[32]},null,{"open":[{"syncFromProp":0}],"for":[{"syncTarget":0}],"internalOpen":[{"syncOverlay":0}]}]]],["ui-avatar",[[513,"ui-avatar",{"src":[1],"alt":[1],"name":[1],"fallback":[1],"hasImage":[32]},null,{"src":[{"watchSrc":0}]}]]],["ui-avatar-group",[[769,"ui-avatar-group",{"max":[2],"label":[1],"overflowCount":[32]},null,{"max":[{"syncOverflow":0}]}]]],["ui-badge",[[769,"ui-badge",{"variant":[1],"tone":[1]}]]],["ui-button",[[769,"ui-button",{"variant":[1],"size":[1],"disabled":[4]},null,{"variant":[{"syncToButton":0}],"size":[{"syncToButton":0}],"disabled":[{"syncToButton":0}]}]]],["ui-checkbox",[[769,"ui-checkbox",{"checked":[4],"defaultChecked":[4,"default-checked"],"disabled":[4],"indeterminate":[4],"required":[4],"value":[1],"internalChecked":[32]},null,{"checked":[{"syncFromProp":0}],"internalChecked":[{"syncToInput":0}],"indeterminate":[{"syncToInput":0}],"disabled":[{"syncToInput":0}],"required":[{"syncToInput":0}]}]]],["ui-dialog",[[769,"ui-dialog",{"open":[4],"defaultOpen":[4,"default-open"],"modal":[4],"dismissible":[4],"internalOpen":[32]},null,{"open":[{"syncFromProp":0}],"internalOpen":[{"syncOpen":0}]}]]],["ui-disclosure",[[769,"ui-disclosure",{"open":[4],"defaultOpen":[4,"default-open"],"disabled":[4],"internalOpen":[32],"contentId":[32]},null,{"open":[{"syncFromProp":0}],"internalOpen":[{"syncState":0}]}]]],["ui-floating-action-button",[[769,"ui-floating-action-button",{"disabled":[516],"mobileOnly":[516,"mobile-only"],"label":[1]}]]],["ui-form-field",[[769,"ui-form-field",{"invalid":[4],"disabled":[4],"required":[4]}]]],["ui-icon-button",[[769,"ui-icon-button",{"disabled":[516],"label":[1],"size":[513],"variant":[513]}]]],["ui-input",[[769,"ui-input",{"value":[1],"defaultValue":[1,"default-value"],"disabled":[4],"invalid":[4],"readOnly":[4,"readonly"],"internalValue":[32]},null,{"value":[{"syncFromProp":0}],"internalValue":[{"syncToInput":0}],"defaultValue":[{"syncToInput":0}],"disabled":[{"syncToInput":0}],"invalid":[{"syncToInput":0}],"readOnly":[{"syncToInput":0}]}]]],["ui-menu-item",[[769,"ui-menu-item",{"disabled":[516],"value":[1]}]]],["ui-popover",[[769,"ui-popover",{"open":[4],"defaultOpen":[4,"default-open"],"internalOpen":[32]},null,{"open":[{"syncFromProp":0}],"internalOpen":[{"onOpenChange":0}]}]]],["ui-radio",[[769,"ui-radio",{"checked":[4],"defaultChecked":[4,"default-checked"],"disabled":[4],"name":[1],"required":[4],"value":[1]},null,{"checked":[{"syncToInput":0}],"disabled":[{"syncToInput":0}],"name":[{"syncToInput":0}],"required":[{"syncToInput":0}],"value":[{"syncToInput":0}]}]]],["ui-radio-group",[[769,"ui-radio-group",{"value":[1],"name":[1],"orientation":[1],"disabled":[4],"required":[4],"internalValue":[32]},null,{"value":[{"syncFromProp":0}],"internalValue":[{"syncToRadios":0}],"name":[{"syncToRadios":0}],"orientation":[{"syncToRadios":0}],"disabled":[{"syncToRadios":0}]}]]],["ui-search-result-row",[[769,"ui-search-result-row",{"disabled":[516],"selected":[516],"hasLeading":[32],"hasMeta":[32],"hasExcerpt":[32],"hasTrailing":[32]}]]],["ui-search-shell",[[769,"ui-search-shell",{"hasStatus":[32],"hasFooter":[32]}]]],["ui-select",[[769,"ui-select",{"value":[1],"defaultValue":[1,"default-value"],"disabled":[4],"invalid":[4],"required":[4],"internalValue":[32]},null,{"value":[{"syncFromProp":0}],"internalValue":[{"syncToSelect":0}],"defaultValue":[{"syncToSelect":0}],"disabled":[{"syncToSelect":0}],"invalid":[{"syncToSelect":0}],"required":[{"syncToSelect":0}]}]]],["ui-switch",[[769,"ui-switch",{"checked":[4],"defaultChecked":[4,"default-checked"],"disabled":[4],"required":[4],"value":[1],"internalChecked":[32]},null,{"checked":[{"syncFromProp":0}]}]]],["ui-tabs",[[769,"ui-tabs",{"value":[1],"defaultValue":[1,"default-value"],"orientation":[1],"internalValue":[32]},null,{"value":[{"syncFromProp":0}],"internalValue":[{"syncState":0}],"orientation":[{"syncState":0}]}]]],["ui-textarea",[[769,"ui-textarea",{"value":[1],"defaultValue":[1,"default-value"],"disabled":[4],"invalid":[4],"readOnly":[4,"readonly"],"rows":[2],"internalValue":[32]},null,{"value":[{"syncFromProp":0}],"internalValue":[{"syncToTextarea":0}],"defaultValue":[{"syncToTextarea":0}],"disabled":[{"syncToTextarea":0}],"invalid":[{"syncToTextarea":0}],"readOnly":[{"syncToTextarea":0}],"rows":[{"syncToTextarea":0}]}]]],["ui-toast-region",[[769,"ui-toast-region",{"open":[4],"internalOpen":[32]},null,{"open":[{"syncFromProp":0}]}]]],["ui-tooltip",[[769,"ui-tooltip",{"for":[1],"open":[4],"defaultOpen":[4,"default-open"],"internalOpen":[32]},null,{"open":[{"syncFromProp":0}],"internalOpen":[{"syncOverlay":0}]}]]],["ui-top-bar",[[769,"ui-top-bar",{"hasLeading":[32],"hasSearch":[32],"hasActions":[32]}]]],["ui-menu",[[769,"ui-menu",{"open":[4],"defaultOpen":[4,"default-open"],"internalOpen":[32]},null,{"open":[{"syncFromProp":0}]}]]]], options);
21
+ });
@@ -0,0 +1,89 @@
1
+ const stack = [];
2
+ const scrollLockAttribute = "data-ui-scroll-lock";
3
+ let modalCount = 0;
4
+ let listenersAttached = false;
5
+ function syncScrollLock() {
6
+ if (typeof document === "undefined") {
7
+ return;
8
+ }
9
+ const root = document.documentElement;
10
+ if (modalCount > 0) {
11
+ root.setAttribute(scrollLockAttribute, "true");
12
+ root.style.overflow = "hidden";
13
+ return;
14
+ }
15
+ root.removeAttribute(scrollLockAttribute);
16
+ root.style.removeProperty("overflow");
17
+ }
18
+ function getOverlayDismissible(record) {
19
+ return record.dismissible ?? true;
20
+ }
21
+ function handleEscape(event) {
22
+ if (event.key !== "Escape") {
23
+ return;
24
+ }
25
+ requestTopOverlayClose("escape", "keyboard");
26
+ }
27
+ function handleLightDismiss(event) {
28
+ const top = getTopOverlay();
29
+ if (!top || !getOverlayDismissible(top)) {
30
+ return;
31
+ }
32
+ const target = event.target;
33
+ if (target instanceof Node && top.element.contains(target)) {
34
+ return;
35
+ }
36
+ requestTopOverlayClose("light-dismiss", "pointer");
37
+ }
38
+ function ensureListeners() {
39
+ if (listenersAttached || typeof document === "undefined") {
40
+ return;
41
+ }
42
+ document.addEventListener("keydown", handleEscape);
43
+ document.addEventListener("pointerdown", handleLightDismiss, { capture: true });
44
+ listenersAttached = true;
45
+ }
46
+ function removeListenersIfIdle() {
47
+ if (!listenersAttached || stack.length > 0 || typeof document === "undefined") {
48
+ return;
49
+ }
50
+ document.removeEventListener("keydown", handleEscape);
51
+ document.removeEventListener("pointerdown", handleLightDismiss, { capture: true });
52
+ listenersAttached = false;
53
+ }
54
+ function openOverlay(record) {
55
+ closeOverlay(record.id);
56
+ stack.push(record);
57
+ if (record.modal) {
58
+ modalCount += 1;
59
+ syncScrollLock();
60
+ }
61
+ ensureListeners();
62
+ }
63
+ function closeOverlay(id) {
64
+ const index = stack.findIndex((record) => record.id === id);
65
+ if (index >= 0) {
66
+ const [record] = stack.splice(index, 1);
67
+ if (record?.modal) {
68
+ modalCount = Math.max(0, modalCount - 1);
69
+ syncScrollLock();
70
+ }
71
+ }
72
+ removeListenersIfIdle();
73
+ }
74
+ function getTopOverlay() {
75
+ return stack.at(-1);
76
+ }
77
+ function requestTopOverlayClose(reason, trigger) {
78
+ const top = getTopOverlay();
79
+ if (!top) {
80
+ return false;
81
+ }
82
+ if (!getOverlayDismissible(top) && (reason === "escape" || reason === "light-dismiss")) {
83
+ return false;
84
+ }
85
+ top.requestClose(reason, trigger);
86
+ return true;
87
+ }
88
+
89
+ export { closeOverlay as c, openOverlay as o, requestTopOverlayClose as r };
@@ -0,0 +1,49 @@
1
+ import { r as registerInstance, g as getElement, h, H as Host } from './index-CEeiinfk.js';
2
+
3
+ const uiAvatarGroupCss = () => `:host{display:flex;align-items:center;flex-direction:row-reverse;gap:0}::slotted(*:not([data-ui-avatar-group-overflow])){margin-inline-end:-0.5rem;flex-shrink:0}::slotted(*:last-of-type:not([data-ui-avatar-group-overflow])){margin-inline-end:0}.overflow{margin-inline-end:-0.5rem;display:inline-flex;align-items:center;justify-content:center;inline-size:2.5rem;block-size:2.5rem;border-radius:999px;border:1px solid var(--ui-border-default);background:var(--ui-surface-muted);color:var(--ui-text-secondary);font:inherit;font-size:0.75rem;font-weight:600;flex-shrink:0}`;
4
+
5
+ const OVERFLOW_ATTR = 'data-ui-avatar-group-overflow';
6
+ const UIAvatarGroup = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ }
10
+ get host() { return getElement(this); }
11
+ max = 5;
12
+ label = 'People';
13
+ overflowCount = 0;
14
+ slotRef;
15
+ syncOverflow() {
16
+ this.updateOverflow();
17
+ }
18
+ componentDidLoad() {
19
+ this.slotRef?.addEventListener('slotchange', () => this.updateOverflow());
20
+ this.updateOverflow();
21
+ }
22
+ componentDidUpdate() {
23
+ this.updateOverflow();
24
+ }
25
+ updateOverflow() {
26
+ const slot = this.host.shadowRoot?.querySelector('slot');
27
+ const nodes = slot?.assignedElements() ?? Array.from(this.host.children);
28
+ const children = nodes.filter((el) => !el.hasAttribute(OVERFLOW_ATTR));
29
+ const total = children.length;
30
+ const visibleCount = Math.min(this.max, total);
31
+ const overflowCount = total > this.max ? total - this.max : 0;
32
+ children.forEach((el, i) => {
33
+ el.hidden = i >= visibleCount;
34
+ el.setAttribute('aria-hidden', String(i >= visibleCount));
35
+ });
36
+ this.overflowCount = overflowCount;
37
+ }
38
+ render() {
39
+ return (h(Host, { key: '9c8fbeb6e8c87ef4d86778a70a52f48b62717728', role: "list", "aria-label": this.label || undefined }, h("slot", { key: '432877b335f2a75f6b17a14b4be768c68ba04bfa' }), this.overflowCount > 0 && (h("span", { key: 'ccf8007947e5d97edcdf42b7f4740db33560956b', class: "overflow", role: "listitem", "aria-label": `${this.overflowCount} more`, "data-ui-avatar-group-overflow": true }, "+", this.overflowCount))));
40
+ }
41
+ static get watchers() { return {
42
+ "max": [{
43
+ "syncOverflow": 0
44
+ }]
45
+ }; }
46
+ };
47
+ UIAvatarGroup.style = uiAvatarGroupCss();
48
+
49
+ export { UIAvatarGroup as ui_avatar_group };
@@ -0,0 +1,48 @@
1
+ import { r as registerInstance, h, H as Host } from './index-CEeiinfk.js';
2
+
3
+ function toInitials(value) {
4
+ const tokens = value
5
+ .trim()
6
+ .split(/\s+/)
7
+ .filter((token) => token.length > 0);
8
+ if (tokens.length === 0)
9
+ return '?';
10
+ if (tokens.length === 1)
11
+ return tokens[0].slice(0, 2).toUpperCase();
12
+ return `${tokens[0][0] ?? ''}${tokens[1][0] ?? ''}`.toUpperCase();
13
+ }
14
+
15
+ const uiAvatarCss = () => `:host{display:inline-grid;place-items:center;overflow:hidden;inline-size:2.5rem;block-size:2.5rem;border-radius:999px;border:1px solid var(--ui-border-default);background:var(--ui-surface-muted);color:var(--ui-text-secondary);font:inherit;font-size:0.875rem;font-weight:600;text-transform:uppercase}.avatar{display:contents}.avatar img{grid-area:1 / 1;inline-size:100%;block-size:100%;object-fit:cover}.avatar .fallback{grid-area:1 / 1;display:inline-flex;align-items:center;justify-content:center;inline-size:100%;block-size:100%}`;
16
+
17
+ const UIAvatar = class {
18
+ constructor(hostRef) {
19
+ registerInstance(this, hostRef);
20
+ }
21
+ src = '';
22
+ alt = '';
23
+ name = '';
24
+ fallback = '';
25
+ hasImage = false;
26
+ watchSrc() {
27
+ this.hasImage = false;
28
+ }
29
+ onImageLoad = () => {
30
+ this.hasImage = true;
31
+ };
32
+ onImageError = () => {
33
+ this.hasImage = false;
34
+ };
35
+ render() {
36
+ const fallbackText = this.fallback || toInitials(this.name || this.alt);
37
+ const label = this.alt || this.name || 'Avatar';
38
+ return (h(Host, { key: 'f61c3a4e5556be947b9f573591d4db0687fd01fd', role: "img", "aria-label": label, "data-has-image": this.hasImage ? '' : undefined }, h("div", { key: '03d4a3d1c86bb1d1779ad007ba12407230478dac', class: "avatar" }, h("img", { key: '512015d68f9118bf8b8181b5b5118c133e783baf', src: this.src, alt: label, onLoad: this.onImageLoad, onError: this.onImageError, hidden: !this.hasImage, "aria-hidden": this.hasImage ? 'false' : 'true' }), h("span", { key: '48b0f1f81a6465c6021d4c867af67a559b9b8a67', class: "fallback", hidden: this.hasImage, "aria-hidden": this.hasImage ? 'true' : 'false' }, fallbackText))));
39
+ }
40
+ static get watchers() { return {
41
+ "src": [{
42
+ "watchSrc": 0
43
+ }]
44
+ }; }
45
+ };
46
+ UIAvatar.style = uiAvatarCss();
47
+
48
+ export { UIAvatar as ui_avatar };
@@ -0,0 +1,17 @@
1
+ import { r as registerInstance, h, H as Host } from './index-CEeiinfk.js';
2
+
3
+ const uiBadgeCss = () => `:host{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ui-border-default);border-radius:999px;background:var(--ui-surface-muted);color:var(--ui-text-secondary);font:inherit;font-size:0.75rem;line-height:1;padding:0.25em 0.6em;white-space:nowrap}:host([data-tone='accent']){background:var(--ui-accent-solid);border-color:var(--ui-accent-solid);color:var(--ui-text-on-accent)}:host([data-tone='danger']){background:var(--ui-danger-solid);border-color:var(--ui-danger-solid);color:var(--ui-text-on-accent)}:host([data-tone='success']){background:var(--ui-success-solid);border-color:var(--ui-success-solid);color:var(--ui-text-on-accent)}:host([data-tone='warning']){background:var(--ui-warning-solid);border-color:var(--ui-warning-solid);color:var(--ui-text-primary)}:host([data-tone='info']){background:var(--ui-info-solid);border-color:var(--ui-info-solid);color:var(--ui-text-on-accent)}:host([data-variant='subtle'][data-tone='accent']){background:var(--ui-accent-soft);border-color:var(--ui-accent-soft);color:var(--ui-accent-solid)}:host([data-variant='subtle'][data-tone='danger']){background:var(--ui-danger-soft);border-color:var(--ui-danger-soft);color:var(--ui-danger-solid)}:host([data-variant='subtle'][data-tone='success']){background:var(--ui-success-soft);border-color:var(--ui-success-soft);color:var(--ui-success-solid)}:host([data-variant='subtle'][data-tone='warning']){background:var(--ui-warning-soft);border-color:var(--ui-warning-soft);color:var(--ui-warning-solid)}:host([data-variant='subtle'][data-tone='info']){background:var(--ui-info-soft);border-color:var(--ui-info-soft);color:var(--ui-info-solid)}`;
4
+
5
+ const UIBadge = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ variant;
10
+ tone;
11
+ render() {
12
+ return (h(Host, { key: '53eba0640816bc09ae198de29f9a1ac97c1d5f1d', "data-variant": this.variant || undefined, "data-tone": this.tone || undefined }, h("slot", { key: 'abc8a9e09c2001f222f9aa8f164da76ff8343e01' })));
13
+ }
14
+ };
15
+ UIBadge.style = uiBadgeCss();
16
+
17
+ export { UIBadge as ui_badge };
@@ -0,0 +1,60 @@
1
+ import { r as registerInstance, g as getElement, h, H as Host } from './index-CEeiinfk.js';
2
+ import { i as isActivationKey } from './events-JwSoedEO.js';
3
+
4
+ const uiButtonCss = () => `:host{display:inline-flex;vertical-align:middle;color:var(--ui-text-primary)}::slotted(button){appearance:none;border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-2);background:var(--ui-surface-default);color:inherit;font:inherit;font-weight:var(--ui-font-medium, 500);line-height:var(--ui-line-height-tight);padding:var(--ui-space-2) var(--ui-space-3);cursor:pointer;transition:background-color var(--ui-motion-fast) var(--ui-motion-ease), border-color var(--ui-motion-fast) var(--ui-motion-ease), color var(--ui-motion-fast) var(--ui-motion-ease), box-shadow var(--ui-motion-fast) var(--ui-motion-ease);margin:0}:host([data-size='sm'])::slotted(button){padding:var(--ui-space-1) var(--ui-space-2);font-size:0.875rem}:host([data-size='lg'])::slotted(button){padding:var(--ui-space-3) var(--ui-space-4);font-size:1rem}::slotted(button:hover:enabled){background:var(--ui-surface-muted);border-color:var(--ui-border-strong)}::slotted(button:active:enabled){background:var(--ui-surface-subtle)}:host([data-variant='solid'])::slotted(button){border-color:var(--ui-accent-solid);background:var(--ui-accent-solid);color:var(--ui-text-on-accent);box-shadow:var(--ui-shadow-xs)}:host([data-variant='solid'])::slotted(button:hover:enabled){background:var(--ui-accent-hover);border-color:var(--ui-accent-hover);box-shadow:var(--ui-shadow-sm)}:host([data-variant='solid'])::slotted(button:active:enabled){background:var(--ui-accent-active);border-color:var(--ui-accent-active);box-shadow:none}:host([data-variant='destructive'])::slotted(button){border-color:var(--ui-danger-solid);background:var(--ui-danger-solid);color:var(--ui-text-on-accent);box-shadow:var(--ui-shadow-xs)}:host([data-variant='destructive'])::slotted(button:hover:enabled){background:var(--ui-danger-hover);border-color:var(--ui-danger-hover);box-shadow:var(--ui-shadow-sm)}:host([data-variant='ghost'])::slotted(button){border-color:transparent;background:transparent}:host([data-variant='ghost'])::slotted(button:hover:enabled){background:var(--ui-surface-muted);border-color:transparent}:host([data-variant='ghost'])::slotted(button:active:enabled){background:var(--ui-surface-subtle);border-color:transparent}::slotted(button:focus-visible){outline:2px solid var(--ui-focus-ring);outline-offset:2px}::slotted(button:disabled),:host([data-disabled]){opacity:0.6;cursor:not-allowed}`;
5
+
6
+ const UIButton = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ }
10
+ get host() { return getElement(this); }
11
+ variant;
12
+ size;
13
+ disabled = false;
14
+ slotRef;
15
+ syncToButton() {
16
+ const btn = this.getButton();
17
+ if (!btn)
18
+ return;
19
+ this.host.dataset.variant = this.variant || '';
20
+ this.host.dataset.size = this.size || '';
21
+ this.host.dataset.disabled = this.disabled ? 'true' : '';
22
+ btn.disabled = this.disabled;
23
+ }
24
+ componentDidLoad() {
25
+ this.slotRef?.addEventListener('slotchange', () => this.syncToButton());
26
+ this.syncToButton();
27
+ }
28
+ componentDidUpdate() {
29
+ this.syncToButton();
30
+ }
31
+ getButton() {
32
+ const slot = this.host.shadowRoot?.querySelector('slot');
33
+ const nodes = slot?.assignedElements() ?? Array.from(this.host.children);
34
+ return nodes.find((el) => el.tagName === 'BUTTON') ?? null;
35
+ }
36
+ onKeydown = (e) => {
37
+ const btn = this.getButton();
38
+ if (btn || this.disabled || !isActivationKey(e))
39
+ return;
40
+ e.preventDefault();
41
+ this.host.click();
42
+ };
43
+ render() {
44
+ return (h(Host, { key: '01011aa13228b9e8d10ed11b99c95ef1df91326d', "data-variant": this.variant || undefined, "data-size": this.size || undefined, "data-disabled": this.disabled ? '' : undefined, onKeyDown: this.onKeydown }, h("slot", { key: '2bf0274d2732ea46fdf016a46d85bbe6e0d96bba', ref: (el) => (this.slotRef = el) })));
45
+ }
46
+ static get watchers() { return {
47
+ "variant": [{
48
+ "syncToButton": 0
49
+ }],
50
+ "size": [{
51
+ "syncToButton": 0
52
+ }],
53
+ "disabled": [{
54
+ "syncToButton": 0
55
+ }]
56
+ }; }
57
+ };
58
+ UIButton.style = uiButtonCss();
59
+
60
+ export { UIButton as ui_button };
@@ -0,0 +1,89 @@
1
+ import { r as registerInstance, g as getElement, h, H as Host } from './index-CEeiinfk.js';
2
+ import { d as dispatchDetail, e as eventToTrigger } from './events-JwSoedEO.js';
3
+
4
+ const uiCheckboxCss = () => `:host{display:inline-flex;align-items:center;gap:var(--ui-space-2);color:var(--ui-text-primary)}:host([aria-disabled='true']),:host([data-disabled='true']){opacity:0.6;cursor:not-allowed}::slotted(input[type='checkbox']){accent-color:var(--ui-accent-solid);width:1.125em;height:1.125em;cursor:pointer}::slotted(input[type='checkbox']:focus-visible){outline:2px solid var(--ui-accent-solid);outline-offset:2px}`;
5
+
6
+ const UICheckbox = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ }
10
+ get host() { return getElement(this); }
11
+ checked = false;
12
+ defaultChecked = false;
13
+ disabled = false;
14
+ indeterminate = false;
15
+ required = false;
16
+ value = 'on';
17
+ internalChecked = false;
18
+ slotRef;
19
+ syncFromProp() {
20
+ this.internalChecked = this.checked;
21
+ }
22
+ syncToInput() {
23
+ const input = this.getInput();
24
+ if (!input)
25
+ return;
26
+ this.host.dataset.disabled = this.disabled ? 'true' : '';
27
+ this.host.setAttribute('aria-disabled', String(this.disabled));
28
+ input.checked = this.internalChecked;
29
+ input.indeterminate = this.indeterminate;
30
+ input.disabled = this.disabled;
31
+ input.required = this.required;
32
+ input.value = this.value;
33
+ }
34
+ componentDidLoad() {
35
+ this.syncFromProp();
36
+ this.internalChecked = this.internalChecked || this.defaultChecked;
37
+ this.slotRef?.addEventListener('slotchange', () => this.syncToInput());
38
+ this.syncToInput();
39
+ const input = this.getInput();
40
+ input?.addEventListener('change', this.onInputChange);
41
+ }
42
+ disconnectedCallback() {
43
+ const input = this.getInput();
44
+ input?.removeEventListener('change', this.onInputChange);
45
+ }
46
+ componentDidUpdate() {
47
+ this.syncToInput();
48
+ }
49
+ getInput() {
50
+ const slot = this.host.shadowRoot?.querySelector('slot');
51
+ const nodes = slot?.assignedElements() ?? Array.from(this.host.children);
52
+ return nodes.find((el) => el instanceof HTMLInputElement && el.type === 'checkbox') ?? null;
53
+ }
54
+ onInputChange = (e) => {
55
+ const input = e.target;
56
+ if (!input)
57
+ return;
58
+ this.internalChecked = input.checked;
59
+ this.indeterminate = input.indeterminate;
60
+ dispatchDetail(this.host, 'change', {
61
+ checked: this.internalChecked,
62
+ value: this.value,
63
+ trigger: eventToTrigger(e),
64
+ });
65
+ };
66
+ render() {
67
+ return (h(Host, { key: 'c125eb000960f63f48ae8a96e8f001c843f8baa7', role: "checkbox", "aria-checked": this.indeterminate ? 'mixed' : String(this.internalChecked), "aria-disabled": String(this.disabled), "data-disabled": this.disabled ? '' : undefined }, h("slot", { key: '8eade76069c56e00d160488c5d91dae7b46ccc99', ref: (el) => (this.slotRef = el) })));
68
+ }
69
+ static get watchers() { return {
70
+ "checked": [{
71
+ "syncFromProp": 0
72
+ }],
73
+ "internalChecked": [{
74
+ "syncToInput": 0
75
+ }],
76
+ "indeterminate": [{
77
+ "syncToInput": 0
78
+ }],
79
+ "disabled": [{
80
+ "syncToInput": 0
81
+ }],
82
+ "required": [{
83
+ "syncToInput": 0
84
+ }]
85
+ }; }
86
+ };
87
+ UICheckbox.style = uiCheckboxCss();
88
+
89
+ export { UICheckbox as ui_checkbox };
@@ -0,0 +1,199 @@
1
+ import { r as registerInstance, g as getElement, h, H as Host } from './index-CEeiinfk.js';
2
+ import { o as openOverlay, c as closeOverlay, r as requestTopOverlayClose } from './manager-CR7f2MQC.js';
3
+ import { d as dispatchDetail } from './events-JwSoedEO.js';
4
+
5
+ const uiContextMenuCss = () => `:host{display:contents}.menu{position:fixed;z-index:var(--ui-z-overlay, 1000);min-width:12rem}.menu[data-open]{display:block}.menu:not([data-open]){display:none !important}`;
6
+
7
+ const UIContextMenu = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ }
11
+ get host() { return getElement(this); }
12
+ /** Controls the menu when the consumer owns open state. */
13
+ open = false;
14
+ /** Opens the menu on first client render. */
15
+ defaultOpen = false;
16
+ /** Optional id of the region that should also respond to a context-menu gesture. */
17
+ for;
18
+ internalOpen = false;
19
+ overlayId = `ui-context-menu-${Math.random().toString(36).slice(2, 11)}`;
20
+ trigger = null;
21
+ contextTarget = null;
22
+ pointerX = 0;
23
+ pointerY = 0;
24
+ syncFromProp() {
25
+ this.internalOpen = this.open;
26
+ }
27
+ syncTarget() {
28
+ this.resolveTargets();
29
+ this.attachTargetListeners();
30
+ }
31
+ syncOverlay() {
32
+ this.syncTriggerState();
33
+ if (this.internalOpen) {
34
+ openOverlay({
35
+ id: this.overlayId,
36
+ modal: false,
37
+ element: this.host,
38
+ dismissible: true,
39
+ requestClose: (reason, trigger) => this.closeMenu(reason, trigger),
40
+ });
41
+ }
42
+ else {
43
+ closeOverlay(this.overlayId);
44
+ }
45
+ }
46
+ componentDidLoad() {
47
+ this.syncFromProp();
48
+ this.internalOpen = this.internalOpen || this.defaultOpen;
49
+ this.resolveTargets();
50
+ this.attachTargetListeners();
51
+ this.syncTriggerState();
52
+ this.syncOverlay();
53
+ }
54
+ componentDidUpdate() {
55
+ this.resolveTargets();
56
+ this.attachTargetListeners();
57
+ this.syncTriggerState();
58
+ }
59
+ disconnectedCallback() {
60
+ this.detachTargetListeners();
61
+ closeOverlay(this.overlayId);
62
+ }
63
+ resolveTargets() {
64
+ const previousTrigger = this.trigger;
65
+ const previousContextTarget = this.contextTarget;
66
+ const explicitTrigger = this.host.querySelector('[slot="trigger"]');
67
+ const referencedTarget = this.for ? document.getElementById(this.for) : null;
68
+ this.trigger = explicitTrigger;
69
+ this.contextTarget = referencedTarget ?? explicitTrigger ?? this.host.parentElement;
70
+ if (previousTrigger !== this.trigger || previousContextTarget !== this.contextTarget) {
71
+ previousTrigger?.removeEventListener('click', this.onTriggerClick);
72
+ previousTrigger?.removeEventListener('keydown', this.onTriggerKeydown);
73
+ previousContextTarget?.removeEventListener('contextmenu', this.onContextMenu);
74
+ }
75
+ }
76
+ attachTargetListeners() {
77
+ this.detachTargetListeners();
78
+ this.trigger?.addEventListener('click', this.onTriggerClick);
79
+ this.trigger?.addEventListener('keydown', this.onTriggerKeydown);
80
+ this.contextTarget?.addEventListener('contextmenu', this.onContextMenu);
81
+ }
82
+ detachTargetListeners() {
83
+ this.trigger?.removeEventListener('click', this.onTriggerClick);
84
+ this.trigger?.removeEventListener('keydown', this.onTriggerKeydown);
85
+ this.contextTarget?.removeEventListener('contextmenu', this.onContextMenu);
86
+ }
87
+ syncTriggerState() {
88
+ if (!this.trigger)
89
+ return;
90
+ this.trigger.setAttribute('aria-haspopup', 'menu');
91
+ this.trigger.setAttribute('aria-expanded', this.internalOpen ? 'true' : 'false');
92
+ }
93
+ getItems() {
94
+ return Array.from(this.host.querySelectorAll('ui-menu-item')).filter((item) => !this.isItemDisabled(item));
95
+ }
96
+ focusFirstItem() {
97
+ requestAnimationFrame(() => this.getItems()[0]?.focus());
98
+ }
99
+ openMenu(x, y, trigger) {
100
+ this.pointerX = x;
101
+ this.pointerY = y;
102
+ this.internalOpen = true;
103
+ dispatchDetail(this.host, 'open', {
104
+ open: true,
105
+ reason: 'action',
106
+ trigger,
107
+ });
108
+ this.focusFirstItem();
109
+ }
110
+ openFromTrigger(trigger) {
111
+ if (!this.trigger)
112
+ return;
113
+ const rect = this.trigger.getBoundingClientRect();
114
+ this.openMenu(rect.left, rect.bottom, trigger);
115
+ }
116
+ closeMenu(reason, trigger, returnFocus = true) {
117
+ if (!this.internalOpen)
118
+ return;
119
+ this.internalOpen = false;
120
+ dispatchDetail(this.host, 'close', {
121
+ open: false,
122
+ reason: reason,
123
+ trigger: trigger,
124
+ });
125
+ if (returnFocus) {
126
+ this.trigger?.focus();
127
+ }
128
+ }
129
+ onTriggerClick = (event) => {
130
+ if (this.internalOpen) {
131
+ this.closeMenu('action', event.detail === 0 ? 'keyboard' : 'pointer');
132
+ return;
133
+ }
134
+ this.openFromTrigger(event.detail === 0 ? 'keyboard' : 'pointer');
135
+ };
136
+ onTriggerKeydown = (event) => {
137
+ if (event.key !== 'Enter' && event.key !== ' ' && event.key !== 'ArrowDown')
138
+ return;
139
+ event.preventDefault();
140
+ if (!this.internalOpen) {
141
+ this.openFromTrigger('keyboard');
142
+ return;
143
+ }
144
+ this.focusFirstItem();
145
+ };
146
+ onContextMenu = (event) => {
147
+ event.preventDefault();
148
+ this.openMenu(event.clientX, event.clientY, 'pointer');
149
+ };
150
+ isItemDisabled(item) {
151
+ return (item.getAttribute('aria-disabled') === 'true' ||
152
+ item.hasAttribute('disabled') ||
153
+ item.getAttribute('disabled') === 'true' ||
154
+ item.disabled === true);
155
+ }
156
+ onKeydown = (event) => {
157
+ if (!this.internalOpen)
158
+ return;
159
+ if (event.key === 'Escape') {
160
+ event.preventDefault();
161
+ requestTopOverlayClose('escape', 'keyboard');
162
+ return;
163
+ }
164
+ if (event.key === 'Enter' || event.key === ' ') {
165
+ const target = event.target.closest?.('ui-menu-item');
166
+ if (!target || this.isItemDisabled(target))
167
+ return;
168
+ event.preventDefault();
169
+ const value = target.getAttribute('value') ?? target.getAttribute('data-value') ?? '';
170
+ dispatchDetail(this.host, 'select', { value, trigger: 'keyboard' });
171
+ this.closeMenu('action', 'keyboard');
172
+ }
173
+ };
174
+ onItemClick = (event) => {
175
+ const item = event.target.closest?.('ui-menu-item');
176
+ if (!item || this.isItemDisabled(item))
177
+ return;
178
+ const value = item.getAttribute('value') ?? item.getAttribute('data-value') ?? '';
179
+ dispatchDetail(this.host, 'select', { value, trigger: 'pointer' });
180
+ this.closeMenu('action', 'pointer');
181
+ };
182
+ render() {
183
+ return (h(Host, { key: 'c57c08724714d1de8c22a4a1e86e3a790f45fa20', "data-open": this.internalOpen ? '' : undefined, onKeyDown: this.onKeydown, onClick: this.onItemClick }, h("slot", { key: '4048abb040de1125b8eb02358480914c97ea6b06', name: "trigger" }), h("div", { key: '6ce80f67142319260093903d289456070d49bfcc', class: "menu", "data-open": this.internalOpen ? '' : undefined, style: { left: `${this.pointerX}px`, top: `${this.pointerY}px` } }, h("ui-menu", { key: '2a2c22f0a797ca3a70a1399de41de2b18257abf8', open: this.internalOpen }, h("slot", { key: '252cc6e973704cd561301b5bf96f98481c6c74ff' })))));
184
+ }
185
+ static get watchers() { return {
186
+ "open": [{
187
+ "syncFromProp": 0
188
+ }],
189
+ "for": [{
190
+ "syncTarget": 0
191
+ }],
192
+ "internalOpen": [{
193
+ "syncOverlay": 0
194
+ }]
195
+ }; }
196
+ };
197
+ UIContextMenu.style = uiContextMenuCss();
198
+
199
+ export { UIContextMenu as ui_context_menu };