@ecopages/radiant 0.2.0 → 0.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (445) hide show
  1. package/README.md +293 -34
  2. package/dist/chunk-0bswvy25.js +4 -0
  3. package/dist/chunk-0bswvy25.js.map +10 -0
  4. package/dist/chunk-0btkzzyc.js +4 -0
  5. package/dist/chunk-0btkzzyc.js.map +10 -0
  6. package/dist/chunk-0g0j9re6.js +4 -0
  7. package/dist/chunk-0g0j9re6.js.map +10 -0
  8. package/dist/chunk-1x26p09c.js +4 -0
  9. package/dist/chunk-1x26p09c.js.map +10 -0
  10. package/dist/chunk-21a7jask.js +4 -0
  11. package/dist/chunk-21a7jask.js.map +10 -0
  12. package/dist/chunk-25zjh0kg.js +4 -0
  13. package/dist/chunk-25zjh0kg.js.map +10 -0
  14. package/dist/chunk-30x4hggg.js +4 -0
  15. package/dist/chunk-30x4hggg.js.map +10 -0
  16. package/dist/chunk-3ryr5wx2.js +4 -0
  17. package/dist/chunk-3ryr5wx2.js.map +10 -0
  18. package/dist/chunk-3xxvmd5c.js +4 -0
  19. package/dist/chunk-3xxvmd5c.js.map +10 -0
  20. package/dist/chunk-3ynk7e1e.js +4 -0
  21. package/dist/chunk-3ynk7e1e.js.map +10 -0
  22. package/dist/chunk-4e559cy5.js +4 -0
  23. package/dist/chunk-4e559cy5.js.map +10 -0
  24. package/dist/chunk-5b1en9vz.js +4 -0
  25. package/dist/chunk-5b1en9vz.js.map +10 -0
  26. package/dist/chunk-5bkat72n.js +4 -0
  27. package/dist/chunk-5bkat72n.js.map +10 -0
  28. package/dist/chunk-5qeaq3tj.js +4 -0
  29. package/dist/chunk-5qeaq3tj.js.map +10 -0
  30. package/dist/chunk-66e6s792.js +4 -0
  31. package/dist/chunk-66e6s792.js.map +10 -0
  32. package/dist/chunk-79jg8q67.js +4 -0
  33. package/dist/chunk-79jg8q67.js.map +10 -0
  34. package/dist/chunk-8d5ddvvf.js +4 -0
  35. package/dist/chunk-8d5ddvvf.js.map +10 -0
  36. package/dist/chunk-8e9fgtbn.js +4 -0
  37. package/dist/chunk-8e9fgtbn.js.map +10 -0
  38. package/dist/chunk-9mqtp3js.js +4 -0
  39. package/dist/chunk-9mqtp3js.js.map +10 -0
  40. package/dist/chunk-9rj2rwes.js +4 -0
  41. package/dist/chunk-9rj2rwes.js.map +10 -0
  42. package/dist/chunk-atms6yrh.js +4 -0
  43. package/dist/chunk-atms6yrh.js.map +10 -0
  44. package/dist/chunk-bk2nbmcd.js +4 -0
  45. package/dist/chunk-bk2nbmcd.js.map +10 -0
  46. package/dist/chunk-bk6qkvfp.js +4 -0
  47. package/dist/chunk-bk6qkvfp.js.map +10 -0
  48. package/dist/chunk-c0qyz98c.js +4 -0
  49. package/dist/chunk-c0qyz98c.js.map +10 -0
  50. package/dist/chunk-c52qhh0j.js +4 -0
  51. package/dist/chunk-c52qhh0j.js.map +10 -0
  52. package/dist/chunk-cnyxrh9r.js +4 -0
  53. package/dist/chunk-cnyxrh9r.js.map +10 -0
  54. package/dist/chunk-cvz9mrxa.js +4 -0
  55. package/dist/chunk-cvz9mrxa.js.map +10 -0
  56. package/dist/chunk-dabagjk6.js +4 -0
  57. package/dist/chunk-dabagjk6.js.map +10 -0
  58. package/dist/chunk-e0r6ca2g.js +4 -0
  59. package/dist/chunk-e0r6ca2g.js.map +10 -0
  60. package/dist/chunk-eevw1j2q.js +4 -0
  61. package/dist/chunk-eevw1j2q.js.map +10 -0
  62. package/dist/chunk-ek664x1c.js +4 -0
  63. package/dist/chunk-ek664x1c.js.map +10 -0
  64. package/dist/chunk-eyw14d6y.js +4 -0
  65. package/dist/chunk-eyw14d6y.js.map +10 -0
  66. package/dist/chunk-fs4j94bk.js +4 -0
  67. package/dist/chunk-fs4j94bk.js.map +10 -0
  68. package/dist/chunk-g2z3mm6b.js +4 -0
  69. package/dist/chunk-g2z3mm6b.js.map +10 -0
  70. package/dist/chunk-g5n3m11h.js +4 -0
  71. package/dist/chunk-g5n3m11h.js.map +10 -0
  72. package/dist/chunk-gdkte2vd.js +4 -0
  73. package/dist/chunk-gdkte2vd.js.map +10 -0
  74. package/dist/chunk-gg74gdpv.js +4 -0
  75. package/dist/chunk-gg74gdpv.js.map +10 -0
  76. package/dist/chunk-h9k7crjc.js +4 -0
  77. package/dist/chunk-h9k7crjc.js.map +10 -0
  78. package/dist/chunk-hpzgnxgq.js +4 -0
  79. package/dist/chunk-hpzgnxgq.js.map +10 -0
  80. package/dist/chunk-hrjc8b1y.js +4 -0
  81. package/dist/chunk-hrjc8b1y.js.map +10 -0
  82. package/dist/chunk-hvy4zvcc.js +4 -0
  83. package/dist/chunk-hvy4zvcc.js.map +10 -0
  84. package/dist/chunk-hztr86b4.js +4 -0
  85. package/dist/chunk-hztr86b4.js.map +10 -0
  86. package/dist/chunk-j3v7rca5.js +4 -0
  87. package/dist/chunk-j3v7rca5.js.map +10 -0
  88. package/dist/chunk-j864sv4w.js +4 -0
  89. package/dist/chunk-j864sv4w.js.map +10 -0
  90. package/dist/chunk-jkb2y7c8.js +4 -0
  91. package/dist/chunk-jkb2y7c8.js.map +10 -0
  92. package/dist/chunk-kakpjgzf.js +4 -0
  93. package/dist/chunk-kakpjgzf.js.map +10 -0
  94. package/dist/chunk-kmebacvv.js +4 -0
  95. package/dist/chunk-kmebacvv.js.map +10 -0
  96. package/dist/chunk-knqsm6v3.js +4 -0
  97. package/dist/chunk-knqsm6v3.js.map +10 -0
  98. package/dist/chunk-mp2vtrkg.js +4 -0
  99. package/dist/chunk-mp2vtrkg.js.map +10 -0
  100. package/dist/chunk-mpsj3cjs.js +4 -0
  101. package/dist/chunk-mpsj3cjs.js.map +10 -0
  102. package/dist/chunk-n4p2542b.js +4 -0
  103. package/dist/chunk-n4p2542b.js.map +10 -0
  104. package/dist/chunk-nctznxyz.js +4 -0
  105. package/dist/chunk-nctznxyz.js.map +10 -0
  106. package/dist/chunk-ndw3hc3v.js +4 -0
  107. package/dist/chunk-ndw3hc3v.js.map +10 -0
  108. package/dist/chunk-nnnb6pac.js +4 -0
  109. package/dist/chunk-nnnb6pac.js.map +10 -0
  110. package/dist/chunk-nssj2x13.js +4 -0
  111. package/dist/chunk-nssj2x13.js.map +10 -0
  112. package/dist/chunk-nvr37vma.js +4 -0
  113. package/dist/chunk-nvr37vma.js.map +10 -0
  114. package/dist/chunk-p8k4g99a.js +4 -0
  115. package/dist/chunk-p8k4g99a.js.map +10 -0
  116. package/dist/chunk-pkszgjqf.js +4 -0
  117. package/dist/chunk-pkszgjqf.js.map +10 -0
  118. package/dist/chunk-q9z6tnzw.js +4 -0
  119. package/dist/chunk-q9z6tnzw.js.map +10 -0
  120. package/dist/chunk-qdz5sncz.js +4 -0
  121. package/dist/chunk-qdz5sncz.js.map +10 -0
  122. package/dist/chunk-qe0eww1n.js +4 -0
  123. package/dist/chunk-qe0eww1n.js.map +10 -0
  124. package/dist/chunk-r33zvvda.js +4 -0
  125. package/dist/chunk-r33zvvda.js.map +10 -0
  126. package/dist/chunk-rkh1vkb9.js +4 -0
  127. package/dist/chunk-rkh1vkb9.js.map +10 -0
  128. package/dist/chunk-rrg759ht.js +4 -0
  129. package/dist/chunk-rrg759ht.js.map +10 -0
  130. package/dist/chunk-s09s5ayx.js +4 -0
  131. package/dist/chunk-s09s5ayx.js.map +10 -0
  132. package/dist/chunk-s5p5z3z4.js +4 -0
  133. package/dist/chunk-s5p5z3z4.js.map +10 -0
  134. package/dist/chunk-sf4a2gy5.js +4 -0
  135. package/dist/chunk-sf4a2gy5.js.map +10 -0
  136. package/dist/chunk-ssnnxzrj.js +4 -0
  137. package/dist/chunk-ssnnxzrj.js.map +10 -0
  138. package/dist/chunk-t8xtvgyg.js +4 -0
  139. package/dist/chunk-t8xtvgyg.js.map +10 -0
  140. package/dist/chunk-v3ta7hnv.js +4 -0
  141. package/dist/chunk-v3ta7hnv.js.map +10 -0
  142. package/dist/chunk-v92hp9g0.js +4 -0
  143. package/dist/chunk-v92hp9g0.js.map +10 -0
  144. package/dist/chunk-vgtggzb6.js +4 -0
  145. package/dist/chunk-vgtggzb6.js.map +9 -0
  146. package/dist/chunk-vk48hgm4.js +4 -0
  147. package/dist/chunk-vk48hgm4.js.map +10 -0
  148. package/dist/chunk-w8s5fnsq.js +4 -0
  149. package/dist/chunk-w8s5fnsq.js.map +10 -0
  150. package/dist/chunk-wd23rn4q.js +4 -0
  151. package/dist/chunk-wd23rn4q.js.map +10 -0
  152. package/dist/chunk-wds4href.js +4 -0
  153. package/dist/chunk-wds4href.js.map +10 -0
  154. package/dist/chunk-wvd1ffe4.js +4 -0
  155. package/dist/chunk-wvd1ffe4.js.map +10 -0
  156. package/dist/chunk-wwbjz9k4.js +4 -0
  157. package/dist/chunk-wwbjz9k4.js.map +10 -0
  158. package/dist/chunk-x2k0ngpz.js +4 -0
  159. package/dist/chunk-x2k0ngpz.js.map +10 -0
  160. package/dist/chunk-x457d0ap.js +4 -0
  161. package/dist/chunk-x457d0ap.js.map +10 -0
  162. package/dist/chunk-xbhtzkre.js +4 -0
  163. package/dist/chunk-xbhtzkre.js.map +10 -0
  164. package/dist/chunk-y139ycfm.js +4 -0
  165. package/dist/chunk-y139ycfm.js.map +10 -0
  166. package/dist/chunk-z9kxfckm.js +4 -0
  167. package/dist/chunk-z9kxfckm.js.map +10 -0
  168. package/dist/chunk-zx5txex8.js +4 -0
  169. package/dist/chunk-zx5txex8.js.map +10 -0
  170. package/dist/client/hydrator.d.ts +19 -0
  171. package/dist/client/hydrator.js +3 -0
  172. package/dist/client/hydrator.js.map +9 -0
  173. package/dist/client/install-hydrator.d.ts +1 -0
  174. package/dist/client/install-hydrator.js +3 -0
  175. package/dist/client/install-hydrator.js.map +10 -0
  176. package/dist/context/context-consumer-bootstrap.d.ts +41 -0
  177. package/dist/context/context-consumer-bootstrap.js +3 -0
  178. package/dist/context/context-consumer-bootstrap.js.map +9 -0
  179. package/dist/context/context-consumer-runtime.d.ts +34 -0
  180. package/dist/context/context-consumer-runtime.js +3 -0
  181. package/dist/context/context-consumer-runtime.js.map +9 -0
  182. package/dist/context/context-provider.d.ts +50 -2
  183. package/dist/context/context-provider.js +2 -3
  184. package/dist/context/context-provider.js.map +3 -4
  185. package/dist/context/context-ssr-bridge.d.ts +16 -0
  186. package/dist/context/context-ssr-bridge.js +3 -0
  187. package/dist/context/context-ssr-bridge.js.map +9 -0
  188. package/dist/context/create-context.js +2 -3
  189. package/dist/context/create-context.js.map +3 -4
  190. package/dist/context/decorators/consume-context.d.ts +8 -4
  191. package/dist/context/decorators/consume-context.js +2 -3
  192. package/dist/context/decorators/consume-context.js.map +3 -4
  193. package/dist/context/decorators/context-selection-delivery.d.ts +1 -0
  194. package/dist/context/decorators/context-selection-delivery.js +3 -0
  195. package/dist/context/decorators/context-selection-delivery.js.map +9 -0
  196. package/dist/context/decorators/context-selector.d.ts +26 -8
  197. package/dist/context/decorators/context-selector.js +2 -3
  198. package/dist/context/decorators/context-selector.js.map +3 -4
  199. package/dist/context/decorators/legacy/consume-context.d.ts +1 -1
  200. package/dist/context/decorators/legacy/consume-context.js +2 -3
  201. package/dist/context/decorators/legacy/consume-context.js.map +3 -4
  202. package/dist/context/decorators/legacy/context-selector-field.d.ts +8 -0
  203. package/dist/context/decorators/legacy/context-selector-field.js +3 -0
  204. package/dist/context/decorators/legacy/context-selector-field.js.map +9 -0
  205. package/dist/context/decorators/legacy/context-selector.d.ts +3 -3
  206. package/dist/context/decorators/legacy/context-selector.js +2 -3
  207. package/dist/context/decorators/legacy/context-selector.js.map +3 -4
  208. package/dist/context/decorators/legacy/provide-context.d.ts +1 -1
  209. package/dist/context/decorators/legacy/provide-context.js +2 -3
  210. package/dist/context/decorators/legacy/provide-context.js.map +3 -4
  211. package/dist/context/decorators/on-context-update.d.ts +31 -0
  212. package/dist/context/decorators/on-context-update.js +3 -0
  213. package/dist/context/decorators/on-context-update.js.map +9 -0
  214. package/dist/context/decorators/provide-context.d.ts +12 -0
  215. package/dist/context/decorators/provide-context.js +2 -3
  216. package/dist/context/decorators/provide-context.js.map +3 -4
  217. package/dist/context/decorators/standard/consume-context.d.ts +1 -1
  218. package/dist/context/decorators/standard/consume-context.js +2 -3
  219. package/dist/context/decorators/standard/consume-context.js.map +3 -4
  220. package/dist/context/decorators/standard/context-selector-field.d.ts +8 -0
  221. package/dist/context/decorators/standard/context-selector-field.js +3 -0
  222. package/dist/context/decorators/standard/context-selector-field.js.map +9 -0
  223. package/dist/context/decorators/standard/context-selector.d.ts +4 -3
  224. package/dist/context/decorators/standard/context-selector.js +2 -3
  225. package/dist/context/decorators/standard/context-selector.js.map +3 -4
  226. package/dist/context/decorators/standard/provide-context.d.ts +1 -1
  227. package/dist/context/decorators/standard/provide-context.js +2 -3
  228. package/dist/context/decorators/standard/provide-context.js.map +3 -4
  229. package/dist/context/events.js +2 -3
  230. package/dist/context/events.js.map +3 -4
  231. package/dist/context/hydration-script.d.ts +13 -0
  232. package/dist/context/hydration-script.js +3 -0
  233. package/dist/context/hydration-script.js.map +9 -0
  234. package/dist/core/custom-element-metadata.d.ts +3 -0
  235. package/dist/core/custom-element-metadata.js +3 -0
  236. package/dist/core/custom-element-metadata.js.map +9 -0
  237. package/dist/core/hydration-codec.d.ts +24 -0
  238. package/dist/core/hydration-codec.js +3 -0
  239. package/dist/core/hydration-codec.js.map +9 -0
  240. package/dist/core/radiant-component-ssr-registry.d.ts +54 -0
  241. package/dist/core/radiant-component-ssr-registry.js +3 -0
  242. package/dist/core/radiant-component-ssr-registry.js.map +9 -0
  243. package/dist/core/radiant-component-ssr.d.ts +29 -0
  244. package/dist/core/radiant-component-ssr.js +3 -0
  245. package/dist/core/radiant-component-ssr.js.map +9 -0
  246. package/dist/core/radiant-component.d.ts +113 -0
  247. package/dist/core/radiant-component.js +3 -0
  248. package/dist/core/radiant-component.js.map +9 -0
  249. package/dist/core/radiant-element.d.ts +217 -9
  250. package/dist/core/radiant-element.js +2 -3
  251. package/dist/core/radiant-element.js.map +3 -4
  252. package/dist/core/radiant-hydrator-state.d.ts +20 -0
  253. package/dist/core/radiant-hydrator-state.js +3 -0
  254. package/dist/core/radiant-hydrator-state.js.map +9 -0
  255. package/dist/core/reactive-jsx-value.d.ts +10 -0
  256. package/dist/core/reactive-jsx-value.js +3 -0
  257. package/dist/core/reactive-jsx-value.js.map +9 -0
  258. package/dist/core/reactive-prop-metadata.d.ts +7 -0
  259. package/dist/core/reactive-prop-metadata.js +3 -0
  260. package/dist/core/reactive-prop-metadata.js.map +9 -0
  261. package/dist/core/slot-projection-runtime.d.ts +14 -0
  262. package/dist/core/slot-projection-runtime.js +3 -0
  263. package/dist/core/slot-projection-runtime.js.map +9 -0
  264. package/dist/core/ssr-hydration-binding.d.ts +14 -0
  265. package/dist/core/ssr-hydration-binding.js +2 -0
  266. package/dist/core/ssr-hydration-binding.js.map +9 -0
  267. package/dist/core/ssr-preparation.d.ts +18 -0
  268. package/dist/core/ssr-preparation.js +3 -0
  269. package/dist/core/ssr-preparation.js.map +9 -0
  270. package/dist/decorators/bound.js +2 -2
  271. package/dist/decorators/bound.js.map +3 -4
  272. package/dist/decorators/bridge.d.ts +8 -0
  273. package/dist/decorators/bridge.js +3 -0
  274. package/dist/decorators/bridge.js.map +9 -0
  275. package/dist/decorators/custom-element.js +2 -3
  276. package/dist/decorators/custom-element.js.map +3 -4
  277. package/dist/decorators/debounce.js +2 -2
  278. package/dist/decorators/debounce.js.map +3 -4
  279. package/dist/decorators/event.js +2 -3
  280. package/dist/decorators/event.js.map +3 -4
  281. package/dist/decorators/legacy/bound.js +2 -3
  282. package/dist/decorators/legacy/bound.js.map +3 -4
  283. package/dist/decorators/legacy/custom-element.js +2 -3
  284. package/dist/decorators/legacy/custom-element.js.map +3 -4
  285. package/dist/decorators/legacy/debounce.js +2 -3
  286. package/dist/decorators/legacy/debounce.js.map +3 -4
  287. package/dist/decorators/legacy/event.d.ts +1 -1
  288. package/dist/decorators/legacy/event.js +2 -2
  289. package/dist/decorators/legacy/event.js.map +3 -4
  290. package/dist/decorators/legacy/instance-initializers.d.ts +17 -0
  291. package/dist/decorators/legacy/instance-initializers.js +3 -0
  292. package/dist/decorators/legacy/instance-initializers.js.map +9 -0
  293. package/dist/decorators/legacy/on-event.d.ts +2 -11
  294. package/dist/decorators/legacy/on-event.js +2 -3
  295. package/dist/decorators/legacy/on-event.js.map +3 -4
  296. package/dist/decorators/legacy/on-updated.js +2 -3
  297. package/dist/decorators/legacy/on-updated.js.map +3 -4
  298. package/dist/decorators/legacy/query-slot.d.ts +3 -0
  299. package/dist/decorators/legacy/query-slot.js +3 -0
  300. package/dist/decorators/legacy/query-slot.js.map +9 -0
  301. package/dist/decorators/legacy/query.js +2 -3
  302. package/dist/decorators/legacy/query.js.map +3 -4
  303. package/dist/decorators/legacy/reactive-field.js +2 -3
  304. package/dist/decorators/legacy/reactive-field.js.map +3 -4
  305. package/dist/decorators/legacy/reactive-prop.d.ts +2 -1
  306. package/dist/decorators/legacy/reactive-prop.js +2 -3
  307. package/dist/decorators/legacy/reactive-prop.js.map +3 -4
  308. package/dist/decorators/legacy/signal.d.ts +10 -0
  309. package/dist/decorators/legacy/signal.js +3 -0
  310. package/dist/decorators/legacy/signal.js.map +9 -0
  311. package/dist/decorators/on-event.d.ts +3 -11
  312. package/dist/decorators/on-event.js +2 -3
  313. package/dist/decorators/on-event.js.map +3 -4
  314. package/dist/decorators/on-updated.js +2 -3
  315. package/dist/decorators/on-updated.js.map +3 -4
  316. package/dist/decorators/prop.d.ts +14 -0
  317. package/dist/decorators/prop.js +3 -0
  318. package/dist/decorators/prop.js.map +9 -0
  319. package/dist/decorators/query-slot.d.ts +13 -0
  320. package/dist/decorators/query-slot.js +3 -0
  321. package/dist/decorators/query-slot.js.map +9 -0
  322. package/dist/decorators/query.d.ts +4 -13
  323. package/dist/decorators/query.js +2 -3
  324. package/dist/decorators/query.js.map +3 -4
  325. package/dist/decorators/signal.d.ts +23 -0
  326. package/dist/decorators/signal.js +3 -0
  327. package/dist/decorators/signal.js.map +9 -0
  328. package/dist/decorators/standard/bound.js +2 -3
  329. package/dist/decorators/standard/bound.js.map +3 -4
  330. package/dist/decorators/standard/custom-element.js +2 -3
  331. package/dist/decorators/standard/custom-element.js.map +3 -4
  332. package/dist/decorators/standard/debounce.js +2 -3
  333. package/dist/decorators/standard/debounce.js.map +3 -4
  334. package/dist/decorators/standard/event.d.ts +1 -1
  335. package/dist/decorators/standard/event.js +2 -3
  336. package/dist/decorators/standard/event.js.map +3 -4
  337. package/dist/decorators/standard/on-event.d.ts +1 -11
  338. package/dist/decorators/standard/on-event.js +2 -3
  339. package/dist/decorators/standard/on-event.js.map +3 -4
  340. package/dist/decorators/standard/on-updated.js +2 -3
  341. package/dist/decorators/standard/on-updated.js.map +3 -4
  342. package/dist/decorators/standard/query-slot.d.ts +8 -0
  343. package/dist/decorators/standard/query-slot.js +3 -0
  344. package/dist/decorators/standard/query-slot.js.map +9 -0
  345. package/dist/decorators/standard/query.js +2 -3
  346. package/dist/decorators/standard/query.js.map +3 -4
  347. package/dist/decorators/standard/reactive-field.js +2 -3
  348. package/dist/decorators/standard/reactive-field.js.map +3 -4
  349. package/dist/decorators/standard/reactive-prop.d.ts +1 -1
  350. package/dist/decorators/standard/reactive-prop.js +2 -3
  351. package/dist/decorators/standard/reactive-prop.js.map +3 -4
  352. package/dist/decorators/standard/signal.d.ts +33 -0
  353. package/dist/decorators/standard/signal.js +3 -0
  354. package/dist/decorators/standard/signal.js.map +9 -0
  355. package/dist/decorators/state.d.ts +11 -0
  356. package/dist/decorators/state.js +3 -0
  357. package/dist/decorators/state.js.map +9 -0
  358. package/dist/helpers/create-event-listener.d.ts +28 -0
  359. package/dist/helpers/create-event-listener.js +3 -0
  360. package/dist/helpers/create-event-listener.js.map +9 -0
  361. package/dist/helpers/create-event.d.ts +9 -0
  362. package/dist/helpers/create-event.js +3 -0
  363. package/dist/helpers/create-event.js.map +9 -0
  364. package/dist/helpers/create-query-slot.d.ts +20 -0
  365. package/dist/helpers/create-query-slot.js +3 -0
  366. package/dist/helpers/create-query-slot.js.map +9 -0
  367. package/dist/helpers/create-query.d.ts +27 -0
  368. package/dist/helpers/create-query.js +3 -0
  369. package/dist/helpers/create-query.js.map +9 -0
  370. package/dist/helpers/debounce.d.ts +39 -0
  371. package/dist/helpers/debounce.js +3 -0
  372. package/dist/helpers/debounce.js.map +9 -0
  373. package/dist/helpers/index.d.ts +5 -0
  374. package/dist/helpers/index.js +3 -0
  375. package/dist/{mixins → helpers}/index.js.map +1 -1
  376. package/dist/index.d.ts +13 -5
  377. package/dist/index.js +2 -2
  378. package/dist/index.js.map +1 -1
  379. package/dist/server/context-ssr.d.ts +27 -0
  380. package/dist/server/context-ssr.js +3 -0
  381. package/dist/server/context-ssr.js.map +9 -0
  382. package/dist/server/html-parser.d.ts +21 -0
  383. package/dist/server/html-parser.js +3 -0
  384. package/dist/server/html-parser.js.map +9 -0
  385. package/dist/server/install-light-dom-shim.d.ts +1 -0
  386. package/dist/server/install-light-dom-shim.js +3 -0
  387. package/dist/server/install-light-dom-shim.js.map +10 -0
  388. package/dist/server/light-dom-shim.d.ts +53 -0
  389. package/dist/server/light-dom-shim.js +3 -0
  390. package/dist/server/light-dom-shim.js.map +9 -0
  391. package/dist/server/project-root.d.ts +20 -0
  392. package/dist/server/project-root.js +3 -0
  393. package/dist/server/project-root.js.map +11 -0
  394. package/dist/server/radiant-component-ssr-runtime.d.ts +9 -0
  395. package/dist/server/radiant-component-ssr-runtime.js +3 -0
  396. package/dist/server/radiant-component-ssr-runtime.js.map +9 -0
  397. package/dist/server/render-component.d.ts +195 -0
  398. package/dist/server/render-component.js +3 -0
  399. package/dist/server/render-component.js.map +10 -0
  400. package/dist/server/slot-projection-html.d.ts +3 -0
  401. package/dist/server/slot-projection-html.js +3 -0
  402. package/dist/server/slot-projection-html.js.map +10 -0
  403. package/dist/signals/host-resource.d.ts +59 -0
  404. package/dist/signals/host-resource.js +3 -0
  405. package/dist/signals/host-resource.js.map +10 -0
  406. package/dist/signals/host-signal.d.ts +45 -0
  407. package/dist/signals/host-signal.js +3 -0
  408. package/dist/signals/host-signal.js.map +9 -0
  409. package/dist/signals/hydration-script.d.ts +7 -0
  410. package/dist/signals/hydration-script.js +3 -0
  411. package/dist/signals/hydration-script.js.map +9 -0
  412. package/dist/tools/escape-script-json.d.ts +5 -0
  413. package/dist/tools/escape-script-json.js +3 -0
  414. package/dist/tools/escape-script-json.js.map +9 -0
  415. package/dist/tools/event-emitter.js +2 -3
  416. package/dist/tools/event-emitter.js.map +3 -4
  417. package/dist/tools/index.d.ts +2 -0
  418. package/dist/tools/index.js +2 -2
  419. package/dist/tools/index.js.map +1 -1
  420. package/dist/tools/render-jsx-template.d.ts +5 -0
  421. package/dist/tools/render-jsx-template.js +3 -0
  422. package/dist/tools/render-jsx-template.js.map +9 -0
  423. package/dist/tools/stringify-typed.d.ts +4 -6
  424. package/dist/tools/stringify-typed.js +2 -3
  425. package/dist/tools/stringify-typed.js.map +3 -4
  426. package/dist/types.d.ts +0 -21
  427. package/dist/types.js +2 -2
  428. package/dist/types.js.map +3 -3
  429. package/dist/utils/attribute-utils.js +2 -3
  430. package/dist/utils/attribute-utils.js.map +3 -4
  431. package/dist/utils/index.js +2 -2
  432. package/dist/utils/index.js.map +1 -1
  433. package/package.json +106 -21
  434. package/size-budget.json +16 -0
  435. package/dist/decorators/reactive-field.d.ts +0 -6
  436. package/dist/decorators/reactive-field.js +0 -4
  437. package/dist/decorators/reactive-field.js.map +0 -10
  438. package/dist/decorators/reactive-prop.d.ts +0 -8
  439. package/dist/decorators/reactive-prop.js +0 -4
  440. package/dist/decorators/reactive-prop.js.map +0 -10
  441. package/dist/mixins/index.d.ts +0 -1
  442. package/dist/mixins/index.js +0 -3
  443. package/dist/mixins/with-kita.d.ts +0 -15
  444. package/dist/mixins/with-kita.js +0 -4
  445. package/dist/mixins/with-kita.js.map +0 -10
@@ -1,14 +1,6 @@
1
- import type { RadiantElementEventListener } from '../core/radiant-element';
2
1
  import type { StandardOrLegacyMethodDecoratorArgs } from '../types';
3
- type OnEventConfig = Pick<RadiantElementEventListener, 'type' | 'options'> & ({
4
- selector: string;
5
- } | {
6
- ref: string;
7
- } | {
8
- window: boolean;
9
- } | {
10
- document: boolean;
11
- });
2
+ import type { OnEventConfig, OnEventScope } from '../helpers/create-event-listener';
3
+ export type { OnEventConfig, OnEventScope };
12
4
  /**
13
5
  * A decorator to subscribe to an event on the target element.
14
6
  * The event listener will be automatically unsubscribed when the element is disconnected.
@@ -16,8 +8,8 @@ type OnEventConfig = Pick<RadiantElementEventListener, 'type' | 'options'> & ({
16
8
  * Note: This decorator uses event delegation, which means it relies on event bubbling.
17
9
  * Therefore, it will not work with events that do not bubble, such as `focus`, `blur`, `load`, `unload`, `scroll`, etc.
18
10
  * For focus and blur events, consider using `focusin` and `focusout` which are similar but do bubble.
11
+ * Delegated listeners observe the host light DOM by default, and can optionally observe the shadow root or both trees.
19
12
  *
20
13
  * @param options {@link OnEventConfig} The event configuration.
21
14
  */
22
15
  export declare function onEvent(options: OnEventConfig): (protoOrTarget: StandardOrLegacyMethodDecoratorArgs["protoOrTarget"], nameOrContext: StandardOrLegacyMethodDecoratorArgs["nameOrContext"], descriptor?: StandardOrLegacyMethodDecoratorArgs["descriptor"]) => any;
23
- export {};
@@ -1,4 +1,3 @@
1
- import{P as B}from"./legacy/on-event.js";import{Q as D}from"./standard/on-event.js";function J(q){return function(z,j,G){if(typeof j==="object")return D(q)(z,j);return B(q)(z,j,G)}}export{J as onEvent};
2
- export{J as O};
1
+ import{sa as a}from"../chunk-1x26p09c.js";import"../chunk-9rj2rwes.js";import"../chunk-v3ta7hnv.js";import"../chunk-cnyxrh9r.js";import"../chunk-q9z6tnzw.js";import"../chunk-hrjc8b1y.js";import"../chunk-vgtggzb6.js";export{a as onEvent};
3
2
 
4
- //# debugId=EC8F79E3191830C064756E2164756E21
3
+ //# debugId=150E85DEB6DBE7E464756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/decorators/on-event.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { RadiantElementEventListener } from '../core/radiant-element';\nimport type {\n LegacyMethodDecoratorArgs,\n StandardMethodDecoratorArgs,\n StandardOrLegacyMethodDecoratorArgs,\n} from '../types';\nimport { onEvent as legacyOnEvent } from './legacy/on-event';\nimport { onEvent as standardOnEvent } from './standard/on-event';\n\ntype OnEventConfig = Pick<RadiantElementEventListener, 'type' | 'options'> &\n (\n | {\n selector: string;\n }\n | {\n ref: string;\n }\n | {\n window: boolean;\n }\n | {\n document: boolean;\n }\n );\n\n/**\n * A decorator to subscribe to an event on the target element.\n * The event listener will be automatically unsubscribed when the element is disconnected.\n *\n * Note: This decorator uses event delegation, which means it relies on event bubbling.\n * Therefore, it will not work with events that do not bubble, such as `focus`, `blur`, `load`, `unload`, `scroll`, etc.\n * For focus and blur events, consider using `focusin` and `focusout` which are similar but do bubble.\n *\n * @param options {@link OnEventConfig} The event configuration.\n */\nexport function onEvent(options: OnEventConfig) {\n return function (\n protoOrTarget: StandardOrLegacyMethodDecoratorArgs['protoOrTarget'],\n nameOrContext: StandardOrLegacyMethodDecoratorArgs['nameOrContext'],\n descriptor?: StandardOrLegacyMethodDecoratorArgs['descriptor'],\n ): any {\n if (typeof nameOrContext === 'object') {\n return standardOnEvent(options)(\n protoOrTarget as StandardMethodDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardMethodDecoratorArgs['nameOrContext'],\n );\n }\n return legacyOnEvent(options)(\n protoOrTarget as LegacyMethodDecoratorArgs['protoOrTarget'],\n nameOrContext as LegacyMethodDecoratorArgs['nameOrContext'],\n descriptor as LegacyMethodDecoratorArgs['descriptor'],\n );\n };\n}\n"
6
5
  ],
7
- "mappings": "uFAmCO,MAAS,CAAO,CAAC,EAAwB,CAC9C,eAAgB,CACd,EACA,EACA,EACK,CACL,UAAW,IAAkB,SAC3B,OAAO,EAAgB,CAAO,EAC5B,EACA,CACF,EAEF,OAAO,EAAc,CAAO,EAC1B,EACA,EACA,CACF",
8
- "debugId": "EC8F79E3191830C064756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "150E85DEB6DBE7E464756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,4 +1,3 @@
1
- import{W as v}from"./legacy/on-updated.js";import{X as w}from"./standard/on-updated.js";function E(j){return function(q,f,z){if(typeof f==="object")return w(j)(q,f);return v(j)(q,f)}}export{E as onUpdated};
2
- export{E as V};
1
+ import{ma as a}from"../chunk-0g0j9re6.js";import"../chunk-8e9fgtbn.js";import"../chunk-bk2nbmcd.js";import"../chunk-cnyxrh9r.js";import"../chunk-q9z6tnzw.js";import"../chunk-vgtggzb6.js";export{a as onUpdated};
3
2
 
4
- //# debugId=D7596CDDF700FE1B64756E2164756E21
3
+ //# debugId=3BA04257139C3F7664756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/decorators/on-updated.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type {\n LegacyMethodDecoratorArgs,\n StandardMethodDecoratorArgs,\n StandardOrLegacyMethodDecoratorArgs,\n} from '../types';\nimport { onUpdated as legacyOnUpdated } from './legacy/on-updated';\nimport { onUpdated as standardOnUpdated } from './standard/on-updated';\n\n/**\n * A decorator to bind a method to the instance.\n */\nexport function onUpdated(keyOrKeys: string | string[]) {\n return function (\n protoOrTarget: StandardOrLegacyMethodDecoratorArgs['protoOrTarget'],\n nameOrContext: StandardOrLegacyMethodDecoratorArgs['nameOrContext'],\n descriptor?: StandardOrLegacyMethodDecoratorArgs['descriptor'],\n ): any {\n if (typeof nameOrContext === 'object') {\n return standardOnUpdated(keyOrKeys)(\n protoOrTarget as StandardMethodDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardMethodDecoratorArgs['nameOrContext'],\n );\n }\n return legacyOnUpdated(keyOrKeys)(\n protoOrTarget as LegacyMethodDecoratorArgs['protoOrTarget'],\n nameOrContext as LegacyMethodDecoratorArgs['nameOrContext'],\n );\n };\n}\n"
6
5
  ],
7
- "mappings": "yFAWO,QAAS,CAAS,CAAC,EAA8B,CACtD,eAAgB,CACd,EACA,EACA,EACK,CACL,UAAW,IAAkB,SAC3B,OAAO,EAAkB,CAAS,EAChC,EACA,CACF,EAEF,OAAO,EAAgB,CAAS,EAC9B,EACA,CACF",
8
- "debugId": "D7596CDDF700FE1B64756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "3BA04257139C3F7664756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -0,0 +1,14 @@
1
+ import type { ReactivePropertyOptions } from '../core/radiant-element';
2
+ import type { StandardOrLegacyFieldDecoratorArgs } from '../types';
3
+ /**
4
+ * Declares a reactive property backed by an HTML attribute.
5
+ *
6
+ * Every write triggers `notifyUpdate` so update callbacks, bindings, and
7
+ * `RadiantComponent` renders stay in sync. When no explicit `bind` option
8
+ * is supplied, `RadiantComponent` hosts expose a JSX companion binding
9
+ * accessor automatically while plain `RadiantElement` hosts keep binding
10
+ * opt-in.
11
+ *
12
+ * @param options {@link ReactivePropertyOptions} The options for the reactive property.
13
+ */
14
+ export declare function prop<T = unknown>(options: ReactivePropertyOptions<T>): (protoOrTarget: StandardOrLegacyFieldDecoratorArgs["protoOrTarget"], nameOrContext: StandardOrLegacyFieldDecoratorArgs["nameOrContext"]) => any;
@@ -0,0 +1,3 @@
1
+ import{Ba as a}from"../chunk-xbhtzkre.js";import"../chunk-atms6yrh.js";import"../chunk-n4p2542b.js";import"../chunk-cnyxrh9r.js";import"../chunk-q9z6tnzw.js";import"../chunk-9mqtp3js.js";import"../chunk-66e6s792.js";import"../chunk-vgtggzb6.js";export{a as prop};
2
+
3
+ //# debugId=FCC5A278BEB4CD0264756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "FCC5A278BEB4CD0264756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,13 @@
1
+ import type { StandardOrLegacyFieldDecoratorArgs } from '../types';
2
+ import type { QuerySlotConfig } from '../helpers/create-query-slot';
3
+ export type { QuerySlotConfig };
4
+ /**
5
+ * Queries projected light-DOM content assigned to a RadiantComponent slot.
6
+ *
7
+ * The decorator returns assigned elements from the default slot when `name` is
8
+ * omitted, or from the named slot when `name` is provided. Results are cached
9
+ * by default and automatically invalidated when slot projection changes.
10
+ *
11
+ * @param options Slot query options.
12
+ */
13
+ export declare function querySlot<T extends Element | Element[]>(options?: QuerySlotConfig): (protoOrTarget: StandardOrLegacyFieldDecoratorArgs["protoOrTarget"], nameOrContext: StandardOrLegacyFieldDecoratorArgs["nameOrContext"]) => any;
@@ -0,0 +1,3 @@
1
+ import{va as a}from"../chunk-eevw1j2q.js";import"../chunk-knqsm6v3.js";import"../chunk-eyw14d6y.js";import"../chunk-v92hp9g0.js";import"../chunk-cnyxrh9r.js";import"../chunk-q9z6tnzw.js";import"../chunk-bk6qkvfp.js";import"../chunk-vgtggzb6.js";export{a as querySlot};
2
+
3
+ //# debugId=6FB0BED93804FFB464756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "6FB0BED93804FFB464756E2164756E21",
8
+ "names": []
9
+ }
@@ -1,20 +1,11 @@
1
1
  import type { StandardOrLegacyFieldDecoratorArgs } from '../types';
2
- type BaseQueryConfig = {
3
- all?: boolean;
4
- cache?: boolean;
5
- };
6
- type QueryBySelector = {
7
- selector: string;
8
- };
9
- type QueryByRef = {
10
- ref: string;
11
- };
12
- export type QueryConfig = BaseQueryConfig & (QueryBySelector | QueryByRef);
2
+ import type { QueryConfig, QueryScope } from '../helpers/create-query';
3
+ export type { QueryConfig, QueryScope };
13
4
  /**
14
5
  * A decorator to query by CSS selector or data-ref attribute.
15
6
  * By default it queries for the first element that matches the selector, but it can be configured to query for all elements.
16
- * It cache the result by default, but it can be configured to not cache it.
7
+ * It caches the result only when `cache` is enabled.
8
+ * Queries run against the host light DOM by default, but can be directed to the shadow root or both trees.
17
9
  * @param options {@link QueryConfig} The options for the reactive property.
18
10
  */
19
11
  export declare function query<T extends Element | Element[]>(options: QueryConfig): (protoOrTarget: StandardOrLegacyFieldDecoratorArgs["protoOrTarget"], nameOrContext: StandardOrLegacyFieldDecoratorArgs["nameOrContext"]) => any;
20
- export {};
@@ -1,4 +1,3 @@
1
- import{u as D}from"./legacy/query.js";import{v as E}from"./standard/query.js";function H(w){return function(z,j){if(typeof j==="object")return E(w)(z,j);return D(w)(z,j)}}export{H as query};
2
- export{H as t};
1
+ import{Z as a}from"../chunk-ndw3hc3v.js";import"../chunk-mpsj3cjs.js";import"../chunk-0bswvy25.js";import"../chunk-cnyxrh9r.js";import"../chunk-q9z6tnzw.js";import"../chunk-wwbjz9k4.js";import"../chunk-vgtggzb6.js";export{a as query};
3
2
 
4
- //# debugId=0DD98124DFF9C20D64756E2164756E21
3
+ //# debugId=FF3EFC9A7E922D8664756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/decorators/query.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type {\n LegacyFieldDecoratorArgs,\n StandardFieldDecoratorArgs,\n StandardOrLegacyFieldDecoratorArgs,\n} from '../types';\nimport { query as legacyQuery } from './legacy/query';\nimport { query as standardQuery } from './standard/query';\n\ntype BaseQueryConfig = {\n all?: boolean;\n cache?: boolean;\n};\n\ntype QueryBySelector = { selector: string };\n\ntype QueryByRef = { ref: string };\n\nexport type QueryConfig = BaseQueryConfig & (QueryBySelector | QueryByRef);\n\n/**\n * A decorator to query by CSS selector or data-ref attribute.\n * By default it queries for the first element that matches the selector, but it can be configured to query for all elements.\n * It cache the result by default, but it can be configured to not cache it.\n * @param options {@link QueryConfig} The options for the reactive property.\n */\nexport function query<T extends Element | Element[]>(options: QueryConfig) {\n return function (\n protoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext'],\n ): any {\n if (typeof nameOrContext === 'object') {\n return standardQuery(options)(\n protoOrTarget as StandardFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardFieldDecoratorArgs<HTMLElement, Element | Element[]>['nameOrContext'],\n );\n }\n return legacyQuery<T>(options)(\n protoOrTarget as LegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as LegacyFieldDecoratorArgs['nameOrContext'],\n );\n };\n}\n"
6
5
  ],
7
- "mappings": "oFAyBO,GAAS,CAAoC,CAAC,EAAsB,CACzE,eAAgB,CACd,EACA,EACK,CACL,UAAW,IAAkB,SAC3B,OAAO,EAAc,CAAO,EAC1B,EACA,CACF,EAEF,OAAO,EAAe,CAAO,EAC3B,EACA,CACF",
8
- "debugId": "0DD98124DFF9C20D64756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "FF3EFC9A7E922D8664756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -0,0 +1,23 @@
1
+ import type { StandardOrLegacyFieldDecoratorArgs } from '../types';
2
+ import { type SignalDecoratorOptions } from './legacy/signal';
3
+ export type { SignalDecoratorOptions } from './standard/signal';
4
+ /**
5
+ * Declares a host-aware writable signal field.
6
+ *
7
+ * The decorated member becomes a real `WritableSignal` instance that JSX can
8
+ * consume directly in child or attribute positions. By default the decorator
9
+ * creates a host-owned signal, but it can also connect an existing shared
10
+ * signal through the `source` option or a signal-valued field initializer.
11
+ *
12
+ * Connected signals still flow through Radiant's update callback channel so
13
+ * `@onUpdated(...)` and `this.$.name` bindings continue to work. On
14
+ * `RadiantComponent`, any signal or store reads performed during `render()`
15
+ * now participate in rerender invalidation directly, which makes module-level
16
+ * shared stores a natural fit without prop-bridging them through a second
17
+ * reactive layer.
18
+ *
19
+ * When `hydrate` is provided, SSR host output appends a keyed JSON script so
20
+ * the client can restore the signal's initial value during hydration.
21
+ */
22
+ export declare function signal(protoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'], nameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext']): any;
23
+ export declare function signal(options?: SignalDecoratorOptions): any;
@@ -0,0 +1,3 @@
1
+ import{aa as a}from"../chunk-pkszgjqf.js";import"../chunk-x457d0ap.js";import"../chunk-vk48hgm4.js";import"../chunk-nnnb6pac.js";import"../chunk-dabagjk6.js";import"../chunk-cnyxrh9r.js";import"../chunk-hpzgnxgq.js";import"../chunk-nssj2x13.js";import"../chunk-vgtggzb6.js";export{a as signal};
2
+
3
+ //# debugId=772B269B2EA6985664756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "772B269B2EA6985664756E2164756E21",
8
+ "names": []
9
+ }
@@ -1,4 +1,3 @@
1
- function o(i,t){const e=String(t.name);if(t.private)throw new Error(`'bound' cannot decorate private properties like ${e}.`);t.addInitializer(function(){this[e]=this[e].bind(this)})}export{o as bound};
2
- export{o as b};
1
+ import{ia as a}from"../../chunk-rkh1vkb9.js";import"../../chunk-vgtggzb6.js";export{a as bound};
3
2
 
4
- //# debugId=5E969AAAFC48310564756E2164756E21
3
+ //# debugId=1CF81EC19E4E722764756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/decorators/standard/bound.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { Method } from '../../types';\n\nexport function bound<T extends Method>(_: T, context: ClassMethodDecoratorContext) {\n const methodName = String(context.name);\n if (context.private) {\n throw new Error(`'bound' cannot decorate private properties like ${methodName as string}.`);\n }\n context.addInitializer(function (this: any) {\n this[methodName] = this[methodName].bind(this);\n });\n}\n"
6
5
  ],
7
- "mappings": "AAEO,SAAS,CAAuB,CAAC,EAAM,EAAsC,CAClF,MAAM,EAAa,OAAO,EAAQ,IAAI,EACtC,GAAI,EAAQ,QACV,MAAM,IAAI,MAAM,mDAAmD,IAAuB,EAE5F,EAAQ,uBAAwB,EAAY,CAC1C,KAAK,GAAc,KAAK,GAAY,KAAK,IAAI,EAC9C",
8
- "debugId": "5E969AAAFC48310564756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "1CF81EC19E4E722764756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,4 +1,3 @@
1
- function i(t,n){return function(o,e){e.addInitializer(function(){if(!window.customElements.get(t))customElements.define(t,this,n)})}}export{i as customElement};
2
- export{i as y};
1
+ import{ra as a}from"../../chunk-mp2vtrkg.js";import"../../chunk-hztr86b4.js";import"../../chunk-vgtggzb6.js";export{a as customElement};
3
2
 
4
- //# debugId=E1F3CF85FE4BDE1464756E2164756E21
3
+ //# debugId=444C90C7499A037B64756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/decorators/standard/custom-element.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "export function customElement(name: string, options?: ElementDefinitionOptions) {\n return function <T extends CustomElementConstructor>(_: T, context: ClassDecoratorContext<T>) {\n context.addInitializer(function () {\n if (!window.customElements.get(name)) {\n customElements.define(name, this, options);\n }\n });\n };\n}\n"
6
5
  ],
7
- "mappings": "AAAO,SAAS,CAAa,CAAC,EAAc,EAAoC,CAC9E,eAAoD,CAAC,EAAM,EAAmC,CAC5F,EAAQ,uBAAwB,EAAG,CACjC,IAAK,OAAO,eAAe,IAAI,CAAI,EACjC,eAAe,OAAO,EAAM,KAAM,CAAO,EAE5C",
8
- "debugId": "E1F3CF85FE4BDE1464756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "444C90C7499A037B64756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,4 +1,3 @@
1
- function o(n){let e=null;return(t)=>{return function(...u){if(e!==null)clearTimeout(e);return e=setTimeout(()=>{t.apply(this,u)},n),t}}}export{o as debounce};
2
- export{o as D};
1
+ import{la as a}from"../../chunk-8d5ddvvf.js";import"../../chunk-wd23rn4q.js";import"../../chunk-vgtggzb6.js";export{a as debounce};
3
2
 
4
- //# debugId=DF32024986E9C26864756E2164756E21
3
+ //# debugId=1224EAAB2694FF7064756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/decorators/standard/debounce.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { Method } from '../../types';\n\nexport function debounce(timeout: number): Method {\n let timeoutRef: ReturnType<typeof setTimeout> | null = null;\n\n return <T extends Method>(originalMethod: T): Method => {\n return function (this: any, ...args: any[]): T {\n if (timeoutRef !== null) {\n clearTimeout(timeoutRef);\n }\n\n timeoutRef = setTimeout(() => {\n originalMethod.apply(this, args);\n }, timeout);\n\n return originalMethod;\n };\n };\n}\n"
6
5
  ],
7
- "mappings": "AAEO,SAAS,CAAQ,CAAC,EAAyB,CAChD,IAAI,EAAmD,KAEvD,MAAO,CAAmB,IAA8B,CACtD,eAAgB,IAAe,EAAgB,CAC7C,GAAI,IAAe,KACjB,aAAa,CAAU,EAOzB,OAJA,EAAa,WAAW,IAAM,CAC5B,EAAe,MAAM,KAAM,CAAI,GAC9B,CAAO,EAEH",
8
- "debugId": "DF32024986E9C26864756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "1224EAAB2694FF7064756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,5 +1,5 @@
1
1
  import type { RadiantElement } from '../../core/radiant-element';
2
- import { type EventEmitterConfig } from '../../tools/event-emitter';
2
+ import type { EventEmitterConfig } from '../../tools/event-emitter';
3
3
  /**
4
4
  * Decorator that attaches an EventEmitter to the class field property.
5
5
  * The EventEmitter can be used to dispatch custom events from the target element.
@@ -1,4 +1,3 @@
1
- import{U as z}from"../../tools/event-emitter.js";function F(j){return function(A,q){q.addInitializer(function(){this.registerEventEmitter(j.name,new z(this,j)),Object.defineProperty(this,q.name,{get(){return this.eventEmitters.get(j.name)},enumerable:!0,configurable:!0})})}}export{F as event};
2
- export{F as T};
1
+ import{fa as a}from"../../chunk-w8s5fnsq.js";import"../../chunk-rrg759ht.js";import"../../chunk-wvd1ffe4.js";import"../../chunk-vgtggzb6.js";export{a as event};
3
2
 
4
- //# debugId=60C8B5654FFB2E2B64756E2164756E21
3
+ //# debugId=9A561DDB1B5B4B5064756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/decorators/standard/event.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { RadiantElement } from '../../core/radiant-element';\nimport { EventEmitter, type EventEmitterConfig } from '../../tools/event-emitter';\n\n/**\n * Decorator that attaches an EventEmitter to the class field property.\n * The EventEmitter can be used to dispatch custom events from the target element.\n * @param eventConfig Configuration for the event emitter.\n * @see {@link EventEmitter} for more details about how the EventEmitter works.\n */\nexport function event(eventConfig: EventEmitterConfig) {\n return function <T extends RadiantElement, V>(_: undefined, context: ClassFieldDecoratorContext<T, V>) {\n context.addInitializer(function (this: T) {\n this.registerEventEmitter(eventConfig.name, new EventEmitter(this, eventConfig));\n\n Object.defineProperty(this, context.name, {\n get() {\n return this.eventEmitters.get(eventConfig.name);\n },\n enumerable: true,\n configurable: true,\n });\n });\n };\n}\n"
6
5
  ],
7
- "mappings": "iDASO,SAAS,CAAK,CAAC,EAAiC,CACrD,eAA6C,CAAC,EAAc,EAA2C,CACrG,EAAQ,uBAAwB,EAAU,CACxC,KAAK,qBAAqB,EAAY,KAAM,IAAI,EAAa,KAAM,CAAW,CAAC,EAE/E,OAAO,eAAe,KAAM,EAAQ,KAAM,CACxC,GAAG,EAAG,CACJ,OAAO,KAAK,cAAc,IAAI,EAAY,IAAI,GAEhD,WAAY,GACZ,aAAc,EAChB,CAAC,EACF",
8
- "debugId": "60C8B5654FFB2E2B64756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "9A561DDB1B5B4B5064756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,14 +1,5 @@
1
- import type { RadiantElementEventListener } from '../../core/radiant-element';
1
+ import type { OnEventConfig } from '../on-event';
2
2
  import type { Method } from '../../types';
3
- type OnEventConfig = Pick<RadiantElementEventListener, 'type' | 'options'> & ({
4
- selector: string;
5
- } | {
6
- ref: string;
7
- } | {
8
- window: boolean;
9
- } | {
10
- document: boolean;
11
- });
12
3
  /**
13
4
  * A decorator to subscribe to an event on the target element.
14
5
  * The event listener will be automatically unsubscribed when the element is disconnected.
@@ -24,4 +15,3 @@ type OnEventConfig = Pick<RadiantElementEventListener, 'type' | 'options'> & ({
24
15
  * @param eventConfig.options Optional. An options object that specifies characteristics about the event listener.
25
16
  */
26
17
  export declare function onEvent(eventConfig: OnEventConfig): <T extends Method>(originalMethod: T, context: ClassMethodDecoratorContext) => void;
27
- export {};
@@ -1,4 +1,3 @@
1
- function G(q){return function(D,E){E.addInitializer(function(){const z=D.bind(this);if("window"in q)window.addEventListener(q.type,z,q.options),this.registerCleanupCallback(()=>{window.removeEventListener(q.type,z,q.options)});if("document"in q)document.addEventListener(q.type,z,q.options),this.registerCleanupCallback(()=>{document.removeEventListener(q.type,z,q.options)});const B="selector"in q?q.selector:("ref"in q)&&`[data-ref="${q.ref}"]`;if(B)this.subscribeEvent({selector:B,type:q.type,listener:z,options:q?.options??void 0})})}}export{G as onEvent};
2
- export{G as Q};
1
+ import{ua as a}from"../../chunk-v3ta7hnv.js";import"../../chunk-hrjc8b1y.js";import"../../chunk-vgtggzb6.js";export{a as onEvent};
3
2
 
4
- //# debugId=5CF41968C454A83F64756E2164756E21
3
+ //# debugId=840EA949D6BDDCC064756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/decorators/standard/on-event.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { RadiantElement, RadiantElementEventListener } from '../../core/radiant-element';\nimport type { Method } from '../../types';\n\ntype OnEventConfig = Pick<RadiantElementEventListener, 'type' | 'options'> &\n (\n | {\n selector: string;\n }\n | {\n ref: string;\n }\n | {\n window: boolean;\n }\n | {\n document: boolean;\n }\n );\n\n/**\n * A decorator to subscribe to an event on the target element.\n * The event listener will be automatically unsubscribed when the element is disconnected.\n *\n * Note: This decorator uses event delegation, which means it relies on event bubbling.\n * Therefore, it will not work with events that do not bubble, such as `focus`, `blur`, `load`, `unload`, `scroll`, etc.\n * For focus and blur events, consider using `focusin` and `focusout` which are similar but do bubble.\n *\n * @param eventConfig The event configuration.\n * @param eventConfig.selectors The CSS selector(s) of the target element(s).\n * @param eventConfig.ref The data-ref attribute of the target element.\n * @param eventConfig.type The type of the event to listen for.\n * @param eventConfig.options Optional. An options object that specifies characteristics about the event listener.\n */\nexport function onEvent(eventConfig: OnEventConfig) {\n return function <T extends Method>(originalMethod: T, context: ClassMethodDecoratorContext): void {\n context.addInitializer(function (this: any) {\n const boundMethod = originalMethod.bind(this);\n\n if ('window' in eventConfig) {\n window.addEventListener(eventConfig.type, boundMethod, eventConfig.options);\n (this as RadiantElement).registerCleanupCallback(() => {\n window.removeEventListener(eventConfig.type, boundMethod, eventConfig.options);\n });\n }\n\n if ('document' in eventConfig) {\n document.addEventListener(eventConfig.type, boundMethod, eventConfig.options);\n (this as RadiantElement).registerCleanupCallback(() => {\n document.removeEventListener(eventConfig.type, boundMethod, eventConfig.options);\n });\n }\n\n const selector =\n 'selector' in eventConfig ? eventConfig.selector : 'ref' in eventConfig && `[data-ref=\"${eventConfig.ref}\"]`;\n\n if (selector) {\n (this as RadiantElement).subscribeEvent({\n selector: selector,\n type: eventConfig.type,\n listener: boundMethod,\n options: eventConfig?.options ?? undefined,\n });\n }\n });\n };\n}\n"
6
5
  ],
7
- "mappings": "AAiCO,SAAS,CAAO,CAAC,EAA4B,CAClD,eAAkC,CAAC,EAAmB,EAA4C,CAChG,EAAQ,uBAAwB,EAAY,CAC1C,MAAM,EAAc,EAAe,KAAK,IAAI,EAE5C,GAAI,WAAY,EACd,OAAO,iBAAiB,EAAY,KAAM,EAAa,EAAY,OAAO,EACzE,KAAwB,wBAAwB,IAAM,CACrD,OAAO,oBAAoB,EAAY,KAAM,EAAa,EAAY,OAAO,EAC9E,EAGH,GAAI,aAAc,EAChB,SAAS,iBAAiB,EAAY,KAAM,EAAa,EAAY,OAAO,EAC3E,KAAwB,wBAAwB,IAAM,CACrD,SAAS,oBAAoB,EAAY,KAAM,EAAa,EAAY,OAAO,EAChF,EAGH,MAAM,EACJ,aAAc,EAAc,EAAY,UAAW,QAAS,IAAe,cAAc,EAAY,QAEvG,GAAI,EACF,AAAC,KAAwB,eAAe,CACtC,SAAU,EACV,KAAM,EAAY,KAClB,SAAU,EACV,QAAS,GAAa,SAAW,MACnC,CAAC,EAEJ",
8
- "debugId": "5CF41968C454A83F64756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "840EA949D6BDDCC064756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,4 +1,3 @@
1
- function n(i){return function(e,t){t.addInitializer(function(){if(this[t.name]=this[t.name].bind(this),Array.isArray(i))for(let a of i)this.registerUpdateCallback(a,this[t.name]);else if(typeof i==="string")this.registerUpdateCallback(i,this[t.name])})}}export{n as onUpdated};
2
- export{n as X};
1
+ import{oa as a}from"../../chunk-bk2nbmcd.js";import"../../chunk-vgtggzb6.js";export{a as onUpdated};
3
2
 
4
- //# debugId=1B72F69206926A9C64756E2164756E21
3
+ //# debugId=E7173F7AB3F2422864756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/decorators/standard/on-updated.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { RadiantElement } from '../../core/radiant-element';\nimport type { Method } from '../../types';\n\nexport function onUpdated(keyOrKeys: string | string[]) {\n return function <T extends Method>(_: T, context: ClassMethodDecoratorContext): void {\n context.addInitializer(function (this: any) {\n this[context.name] = this[context.name].bind(this);\n if (Array.isArray(keyOrKeys)) {\n for (const key of keyOrKeys) {\n (this as RadiantElement).registerUpdateCallback(key, this[context.name]);\n }\n } else if (typeof keyOrKeys === 'string') {\n (this as RadiantElement).registerUpdateCallback(keyOrKeys, this[context.name]);\n }\n });\n };\n}\n"
6
5
  ],
7
- "mappings": "AAGO,SAAS,CAAS,CAAC,EAA8B,CACtD,eAAkC,CAAC,EAAM,EAA4C,CACnF,EAAQ,uBAAwB,EAAY,CAE1C,GADA,KAAK,EAAQ,MAAQ,KAAK,EAAQ,MAAM,KAAK,IAAI,EAC7C,MAAM,QAAQ,CAAS,EACzB,QAAW,KAAO,EAChB,AAAC,KAAwB,uBAAuB,EAAK,KAAK,EAAQ,KAAK,iBAEzD,IAAc,SAC9B,AAAC,KAAwB,uBAAuB,EAAW,KAAK,EAAQ,KAAK,EAEhF",
8
- "debugId": "1B72F69206926A9C64756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "E7173F7AB3F2422864756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -0,0 +1,8 @@
1
+ import type { QuerySlotConfig } from '../query-slot';
2
+ type SlotQueryHost = HTMLElement & {
3
+ getSlotElement<T extends Element = Element>(name?: string): T | null;
4
+ getSlotElements<T extends Element = Element>(name?: string): T[];
5
+ slotProjectionVersion?: number;
6
+ };
7
+ export declare function querySlot(options?: QuerySlotConfig): <T extends SlotQueryHost, V extends Element | Element[]>(_: undefined, context: ClassFieldDecoratorContext<T, V>) => void;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import{Aa as a}from"../../chunk-v92hp9g0.js";import"../../chunk-bk6qkvfp.js";import"../../chunk-vgtggzb6.js";export{a as querySlot};
2
+
3
+ //# debugId=5B95E59F960534D864756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "5B95E59F960534D864756E2164756E21",
8
+ "names": []
9
+ }
@@ -1,4 +1,3 @@
1
- function o(e){return function(s,t){const n=String(t.name),r=Symbol(`__${String(n)}__cache`),l="selector"in e?e.selector:`[data-ref="${e.ref}"]`,i=(u)=>{let c=[];if(e?.all){const a=u.querySelectorAll(l);return c=a.length?Array.from(a):[],c}return u.querySelector(l)};t.addInitializer(function(){Object.defineProperty(this,n,{get(){if(e?.cache){if(!this[r]||e?.all&&!this[r].length)this[r]=i(this);return this[r]}return i(this)},enumerable:!0,configurable:!0})})}}export{o as query};
2
- export{o as v};
1
+ import{$ as a}from"../../chunk-0bswvy25.js";import"../../chunk-wwbjz9k4.js";import"../../chunk-vgtggzb6.js";export{a as query};
3
2
 
4
- //# debugId=D06D9FAD60782C4364756E2164756E21
3
+ //# debugId=764DACD7760EA5BD64756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/decorators/standard/query.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { QueryConfig } from '../query';\n\nexport function query(options: QueryConfig) {\n return function <T extends HTMLElement, V extends Element | Element[]>(\n _: undefined,\n context: ClassFieldDecoratorContext<T, V>,\n ) {\n const propertyName = String(context.name);\n const privatePropertyKey = Symbol(`__${String(propertyName)}__cache`);\n\n const selector = 'selector' in options ? options.selector : `[data-ref=\"${options.ref}\"]`;\n\n const executeQuery = (instance: T) => {\n let result: V | V[] = [];\n if (options?.all) {\n const queried = instance.querySelectorAll(selector);\n result = queried.length ? (Array.from(queried) as V) : [];\n return result;\n }\n\n return instance.querySelector(selector);\n };\n\n context.addInitializer(function (this: T) {\n Object.defineProperty(this, propertyName, {\n get() {\n if (options?.cache) {\n if (!this[privatePropertyKey] || (options?.all && !this[privatePropertyKey].length)) {\n this[privatePropertyKey] = executeQuery(this);\n }\n return this[privatePropertyKey];\n }\n return executeQuery(this) as V;\n },\n enumerable: true,\n configurable: true,\n });\n });\n };\n}\n"
6
5
  ],
7
- "mappings": "AAEO,SAAS,CAAK,CAAC,EAAsB,CAC1C,eAAsE,CACpE,EACA,EACA,CACA,MAAM,EAAe,OAAO,EAAQ,IAAI,EAClC,EAAqB,OAAO,KAAK,OAAO,CAAY,UAAU,EAE9D,EAAW,aAAc,EAAU,EAAQ,SAAW,cAAc,EAAQ,QAE5E,EAAe,CAAC,IAAgB,CACpC,IAAI,EAAkB,CAAC,EACvB,GAAI,GAAS,IAAK,CAChB,MAAM,EAAU,EAAS,iBAAiB,CAAQ,EAElD,OADA,EAAS,EAAQ,OAAU,MAAM,KAAK,CAAO,EAAU,CAAC,EACjD,EAGT,OAAO,EAAS,cAAc,CAAQ,GAGxC,EAAQ,uBAAwB,EAAU,CACxC,OAAO,eAAe,KAAM,EAAc,CACxC,GAAG,EAAG,CACJ,GAAI,GAAS,MAAO,CAClB,IAAK,KAAK,IAAwB,GAAS,MAAQ,KAAK,GAAoB,OAC1E,KAAK,GAAsB,EAAa,IAAI,EAE9C,OAAO,KAAK,GAEd,OAAO,EAAa,IAAI,GAE1B,WAAY,GACZ,aAAc,EAChB,CAAC,EACF",
8
- "debugId": "D06D9FAD60782C4364756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "764DACD7760EA5BD64756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,4 +1,3 @@
1
- function o(a,e){const n=Symbol(`__${String(e.name)}__value`),r=String(e.name);return e.addInitializer(function(){Object.defineProperty(this,e.name,{get(){return this[n]},set(t){const i=this[n];if(i!==t)this[n]=t,this.notifyUpdate(r,i,t)},enumerable:!0,configurable:!0})}),function(t){return this[n]=t,t}}export{o as reactiveField};
2
- export{o as B};
1
+ import{La as a}from"../../chunk-79jg8q67.js";import"../../chunk-vgtggzb6.js";export{a as reactiveField};
3
2
 
4
- //# debugId=6D2C82AC75BF57FA64756E2164756E21
3
+ //# debugId=507CDCBB050330D064756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/decorators/standard/reactive-field.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { RadiantElement } from '../../core/radiant-element';\n\nexport function reactiveField<T extends RadiantElement, V>(_: undefined, context: ClassFieldDecoratorContext<T, V>) {\n const privatePropertyKey = Symbol(`__${String(context.name)}__value`);\n\n const contextName = String(context.name);\n\n context.addInitializer(function (this: T) {\n Object.defineProperty(this, context.name, {\n get() {\n return this[privatePropertyKey];\n },\n set(newValue: unknown) {\n const oldValue = this[privatePropertyKey];\n if (oldValue !== newValue) {\n this[privatePropertyKey] = newValue;\n (this as RadiantElement).notifyUpdate(contextName, oldValue, newValue);\n }\n },\n enumerable: true,\n configurable: true,\n });\n });\n\n return function (this: T, value: V) {\n (this as any)[privatePropertyKey] = value;\n return value;\n };\n}\n"
6
5
  ],
7
- "mappings": "AAEO,SAAS,CAA0C,CAAC,EAAc,EAA2C,CAClH,MAAM,EAAqB,OAAO,KAAK,OAAO,EAAQ,IAAI,UAAU,EAE9D,EAAc,OAAO,EAAQ,IAAI,EAmBvC,OAjBA,EAAQ,uBAAwB,EAAU,CACxC,OAAO,eAAe,KAAM,EAAQ,KAAM,CACxC,GAAG,EAAG,CACJ,OAAO,KAAK,IAEd,GAAG,CAAC,EAAmB,CACrB,MAAM,EAAW,KAAK,GACtB,GAAI,IAAa,EACf,KAAK,GAAsB,EAC1B,KAAwB,aAAa,EAAa,EAAU,CAAQ,GAGzE,WAAY,GACZ,aAAc,EAChB,CAAC,EACF,UAEe,CAAU,EAAU,CAElC,OADC,KAAa,GAAsB,EAC7B",
8
- "debugId": "6D2C82AC75BF57FA64756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "507CDCBB050330D064756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,2 +1,2 @@
1
1
  import type { RadiantElement, ReactivePropertyOptions } from '../../core/radiant-element.js';
2
- export declare function reactiveProp<P = unknown>({ type, attribute, reflect, defaultValue }: ReactivePropertyOptions<P>): <T extends RadiantElement, V>(_: undefined, context: ClassFieldDecoratorContext<T, V>) => void;
2
+ export declare function reactiveProp<P = unknown>({ type, attribute, reflect, defaultValue, bind, }: ReactivePropertyOptions<P>): <T extends RadiantElement, V>(_: undefined, context: ClassFieldDecoratorContext<T, V>) => (this: T, value: V) => V;
@@ -1,4 +1,3 @@
1
- function p({type:n,attribute:i,reflect:r,defaultValue:a}){return function(c,t){const e=String(t.name),o=i??e;t.addInitializer(function(){this.createReactiveProp(e,{type:n,reflect:r,attribute:o,defaultValue:a})})}}export{p as reactiveProp};
2
- export{p as N};
1
+ import{Da as a}from"../../chunk-n4p2542b.js";import"../../chunk-9mqtp3js.js";import"../../chunk-66e6s792.js";import"../../chunk-vgtggzb6.js";export{a as reactiveProp};
3
2
 
4
- //# debugId=BFD78D04A8E9585464756E2164756E21
3
+ //# debugId=DB762ECF4CA299BA64756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/decorators/standard/reactive-prop.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { RadiantElement, ReactivePropertyOptions } from '../../core/radiant-element.js';\n\nexport function reactiveProp<P = unknown>({ type, attribute, reflect, defaultValue }: ReactivePropertyOptions<P>) {\n return function <T extends RadiantElement, V>(_: undefined, context: ClassFieldDecoratorContext<T, V>) {\n const propertyName = String(context.name);\n const attributeKey = attribute ?? propertyName;\n\n context.addInitializer(function (this: T) {\n this.createReactiveProp(propertyName, { type, reflect, attribute: attributeKey, defaultValue });\n });\n };\n}\n"
6
5
  ],
7
- "mappings": "AAEO,SAAS,CAAyB,EAAG,OAAM,YAAW,UAAS,gBAA4C,CAChH,eAA6C,CAAC,EAAc,EAA2C,CACrG,MAAM,EAAe,OAAO,EAAQ,IAAI,EAClC,EAAe,GAAa,EAElC,EAAQ,uBAAwB,EAAU,CACxC,KAAK,mBAAmB,EAAc,CAAE,OAAM,UAAS,UAAW,EAAc,cAAa,CAAC,EAC/F",
8
- "debugId": "BFD78D04A8E9585464756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "DB762ECF4CA299BA64756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -0,0 +1,33 @@
1
+ import type { WritableSignal } from '@ecopages/signals';
2
+ import type { RadiantElement, ReactiveBindingOption } from '../../core/radiant-element';
3
+ import type { AttributeTypeConstant } from '../../utils/attribute-utils';
4
+ /** Options for the `@signal` decorator. */
5
+ export type SignalDecoratorOptions<Value = unknown> = {
6
+ /**
7
+ * Exposes a JSX binding companion for the decorated signal.
8
+ *
9
+ * - `true` creates a `$propertyName` accessor.
10
+ * - a string creates a custom accessor with that name.
11
+ * - `undefined` defers to the host default.
12
+ */
13
+ bind?: ReactiveBindingOption;
14
+ /**
15
+ * Optional initial value used when the field does not provide one directly.
16
+ *
17
+ * This is primarily useful with `declare field: WritableSignal<T>` syntax,
18
+ * which keeps the component surface clean while still letting the decorator
19
+ * own signal construction.
20
+ */
21
+ initial?: Value;
22
+ /**
23
+ * Connects an existing writable signal to the host instead of creating a
24
+ * host-owned one.
25
+ */
26
+ source?: WritableSignal<Value> | ((host: RadiantElement) => WritableSignal<Value>);
27
+ /**
28
+ * Serializes the current signal value into a keyed hydration script during
29
+ * SSR and restores it on the client.
30
+ */
31
+ hydrate?: AttributeTypeConstant;
32
+ };
33
+ export declare function signal<Value = unknown>(options?: SignalDecoratorOptions<Value>): <T extends RadiantElement, Value_1>(_: undefined, context: ClassFieldDecoratorContext<T, unknown>) => (this: T, initialValue: Value_1) => WritableSignal<Value_1>;
@@ -0,0 +1,3 @@
1
+ import{ca as a}from"../../chunk-vk48hgm4.js";import"../../chunk-nnnb6pac.js";import"../../chunk-dabagjk6.js";import"../../chunk-hpzgnxgq.js";import"../../chunk-nssj2x13.js";import"../../chunk-vgtggzb6.js";export{a as signal};
2
+
3
+ //# debugId=42DD5B20B129A11A64756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "42DD5B20B129A11A64756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,11 @@
1
+ import type { StandardOrLegacyFieldDecoratorArgs } from '../types';
2
+ /**
3
+ * Declares internal mutable component state.
4
+ *
5
+ * Each write triggers `notifyUpdate` so update callbacks, bindings, and
6
+ * `RadiantComponent` renders stay in sync. When no explicit binding option
7
+ * is supplied, `RadiantComponent` hosts expose a JSX companion binding
8
+ * accessor automatically while plain `RadiantElement` hosts keep binding
9
+ * opt-in.
10
+ */
11
+ export declare function state(protoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'], nameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext']): any;
@@ -0,0 +1,3 @@
1
+ import{Ja as a}from"../chunk-j3v7rca5.js";import"../chunk-hvy4zvcc.js";import"../chunk-79jg8q67.js";import"../chunk-cnyxrh9r.js";import"../chunk-q9z6tnzw.js";import"../chunk-vgtggzb6.js";export{a as state};
2
+
3
+ //# debugId=4454722E801135AC64756E2164756E21