zova-core 5.0.64

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 (549) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/bean/beanBase.d.ts +17 -0
  4. package/dist/bean/beanBase.d.ts.map +1 -0
  5. package/dist/bean/beanBase.js +39 -0
  6. package/dist/bean/beanBase.js.map +1 -0
  7. package/dist/bean/beanBaseSimple.d.ts +9 -0
  8. package/dist/bean/beanBaseSimple.d.ts.map +1 -0
  9. package/dist/bean/beanBaseSimple.js +21 -0
  10. package/dist/bean/beanBaseSimple.js.map +1 -0
  11. package/dist/bean/beanContainer.d.ts +63 -0
  12. package/dist/bean/beanContainer.d.ts.map +1 -0
  13. package/dist/bean/beanContainer.js +716 -0
  14. package/dist/bean/beanContainer.js.map +1 -0
  15. package/dist/bean/beanControllerBase.d.ts +16 -0
  16. package/dist/bean/beanControllerBase.d.ts.map +1 -0
  17. package/dist/bean/beanControllerBase.js +26 -0
  18. package/dist/bean/beanControllerBase.js.map +1 -0
  19. package/dist/bean/beanControllerPageBase.d.ts +6 -0
  20. package/dist/bean/beanControllerPageBase.d.ts.map +1 -0
  21. package/dist/bean/beanControllerPageBase.js +10 -0
  22. package/dist/bean/beanControllerPageBase.js.map +1 -0
  23. package/dist/bean/beanMotherBase.d.ts +10 -0
  24. package/dist/bean/beanMotherBase.d.ts.map +1 -0
  25. package/dist/bean/beanMotherBase.js +40 -0
  26. package/dist/bean/beanMotherBase.js.map +1 -0
  27. package/dist/bean/beanMotherPageBase.d.ts +6 -0
  28. package/dist/bean/beanMotherPageBase.d.ts.map +1 -0
  29. package/dist/bean/beanMotherPageBase.js +23 -0
  30. package/dist/bean/beanMotherPageBase.js.map +1 -0
  31. package/dist/bean/beanRenderBase.d.ts +10 -0
  32. package/dist/bean/beanRenderBase.d.ts.map +1 -0
  33. package/dist/bean/beanRenderBase.js +23 -0
  34. package/dist/bean/beanRenderBase.js.map +1 -0
  35. package/dist/bean/beanRenderBase.jsx +43 -0
  36. package/dist/bean/beanRenderBase.jsx.map +1 -0
  37. package/dist/bean/beanSimple.d.ts +8 -0
  38. package/dist/bean/beanSimple.d.ts.map +1 -0
  39. package/dist/bean/beanSimple.js +8 -0
  40. package/dist/bean/beanSimple.js.map +1 -0
  41. package/dist/bean/index.d.ts +10 -0
  42. package/dist/bean/index.d.ts.map +1 -0
  43. package/dist/bean/index.js +10 -0
  44. package/dist/bean/index.js.map +1 -0
  45. package/dist/bean/resource/component/index.d.ts +2 -0
  46. package/dist/bean/resource/component/index.d.ts.map +1 -0
  47. package/dist/bean/resource/component/index.js +2 -0
  48. package/dist/bean/resource/component/index.js.map +1 -0
  49. package/dist/bean/resource/component/type.d.ts +2 -0
  50. package/dist/bean/resource/component/type.d.ts.map +1 -0
  51. package/dist/bean/resource/component/type.js +2 -0
  52. package/dist/bean/resource/component/type.js.map +1 -0
  53. package/dist/bean/resource/config/index.d.ts +2 -0
  54. package/dist/bean/resource/config/index.d.ts.map +1 -0
  55. package/dist/bean/resource/config/index.js +2 -0
  56. package/dist/bean/resource/config/index.js.map +1 -0
  57. package/dist/bean/resource/config/type.d.ts +42 -0
  58. package/dist/bean/resource/config/type.d.ts.map +1 -0
  59. package/dist/bean/resource/config/type.js +2 -0
  60. package/dist/bean/resource/config/type.js.map +1 -0
  61. package/dist/bean/resource/constant/index.d.ts +2 -0
  62. package/dist/bean/resource/constant/index.d.ts.map +1 -0
  63. package/dist/bean/resource/constant/index.js +2 -0
  64. package/dist/bean/resource/constant/index.js.map +1 -0
  65. package/dist/bean/resource/constant/type.d.ts +2 -0
  66. package/dist/bean/resource/constant/type.d.ts.map +1 -0
  67. package/dist/bean/resource/constant/type.js +2 -0
  68. package/dist/bean/resource/constant/type.js.map +1 -0
  69. package/dist/bean/resource/error/beanScopeError.d.ts +11 -0
  70. package/dist/bean/resource/error/beanScopeError.d.ts.map +1 -0
  71. package/dist/bean/resource/error/beanScopeError.js +17 -0
  72. package/dist/bean/resource/error/beanScopeError.js.map +1 -0
  73. package/dist/bean/resource/error/beanScopeErrorImpl.d.ts +14 -0
  74. package/dist/bean/resource/error/beanScopeErrorImpl.d.ts.map +1 -0
  75. package/dist/bean/resource/error/beanScopeErrorImpl.js +34 -0
  76. package/dist/bean/resource/error/beanScopeErrorImpl.js.map +1 -0
  77. package/dist/bean/resource/error/errorClass.d.ts +10 -0
  78. package/dist/bean/resource/error/errorClass.d.ts.map +1 -0
  79. package/dist/bean/resource/error/errorClass.js +53 -0
  80. package/dist/bean/resource/error/errorClass.js.map +1 -0
  81. package/dist/bean/resource/error/errorGlobal.d.ts +8 -0
  82. package/dist/bean/resource/error/errorGlobal.d.ts.map +1 -0
  83. package/dist/bean/resource/error/errorGlobal.js +2 -0
  84. package/dist/bean/resource/error/errorGlobal.js.map +1 -0
  85. package/dist/bean/resource/error/errorInternal.d.ts +67 -0
  86. package/dist/bean/resource/error/errorInternal.d.ts.map +1 -0
  87. package/dist/bean/resource/error/errorInternal.js +67 -0
  88. package/dist/bean/resource/error/errorInternal.js.map +1 -0
  89. package/dist/bean/resource/error/errorObject.d.ts +5 -0
  90. package/dist/bean/resource/error/errorObject.d.ts.map +1 -0
  91. package/dist/bean/resource/error/errorObject.js +2 -0
  92. package/dist/bean/resource/error/errorObject.js.map +1 -0
  93. package/dist/bean/resource/error/index.d.ts +7 -0
  94. package/dist/bean/resource/error/index.d.ts.map +1 -0
  95. package/dist/bean/resource/error/index.js +7 -0
  96. package/dist/bean/resource/error/index.js.map +1 -0
  97. package/dist/bean/resource/error/type.d.ts +9 -0
  98. package/dist/bean/resource/error/type.d.ts.map +1 -0
  99. package/dist/bean/resource/error/type.js +2 -0
  100. package/dist/bean/resource/error/type.js.map +1 -0
  101. package/dist/bean/resource/icon/cabloyIcon.d.ts +16 -0
  102. package/dist/bean/resource/icon/cabloyIcon.d.ts.map +1 -0
  103. package/dist/bean/resource/icon/cabloyIcon.js +45 -0
  104. package/dist/bean/resource/icon/cabloyIcon.js.map +1 -0
  105. package/dist/bean/resource/icon/icon.d.ts +16 -0
  106. package/dist/bean/resource/icon/icon.d.ts.map +1 -0
  107. package/dist/bean/resource/icon/icon.js +156 -0
  108. package/dist/bean/resource/icon/icon.js.map +1 -0
  109. package/dist/bean/resource/icon/iconGroup.d.ts +7 -0
  110. package/dist/bean/resource/icon/iconGroup.d.ts.map +1 -0
  111. package/dist/bean/resource/icon/iconGroup.js +9 -0
  112. package/dist/bean/resource/icon/iconGroup.js.map +1 -0
  113. package/dist/bean/resource/icon/index.d.ts +5 -0
  114. package/dist/bean/resource/icon/index.d.ts.map +1 -0
  115. package/dist/bean/resource/icon/index.js +5 -0
  116. package/dist/bean/resource/icon/index.js.map +1 -0
  117. package/dist/bean/resource/icon/types.d.ts +19 -0
  118. package/dist/bean/resource/icon/types.d.ts.map +1 -0
  119. package/dist/bean/resource/icon/types.js +2 -0
  120. package/dist/bean/resource/icon/types.js.map +1 -0
  121. package/dist/bean/resource/icon/useCabloyIcon.d.ts +7 -0
  122. package/dist/bean/resource/icon/useCabloyIcon.d.ts.map +1 -0
  123. package/dist/bean/resource/icon/useCabloyIcon.js +16 -0
  124. package/dist/bean/resource/icon/useCabloyIcon.js.map +1 -0
  125. package/dist/bean/resource/icon/useZovaIcon.d.ts +7 -0
  126. package/dist/bean/resource/icon/useZovaIcon.d.ts.map +1 -0
  127. package/dist/bean/resource/icon/useZovaIcon.js +16 -0
  128. package/dist/bean/resource/icon/useZovaIcon.js.map +1 -0
  129. package/dist/bean/resource/icon/utils.d.ts +5 -0
  130. package/dist/bean/resource/icon/utils.d.ts.map +1 -0
  131. package/dist/bean/resource/icon/utils.js +15 -0
  132. package/dist/bean/resource/icon/utils.js.map +1 -0
  133. package/dist/bean/resource/icon/zovaIcon.d.ts +16 -0
  134. package/dist/bean/resource/icon/zovaIcon.d.ts.map +1 -0
  135. package/dist/bean/resource/icon/zovaIcon.js +45 -0
  136. package/dist/bean/resource/icon/zovaIcon.js.map +1 -0
  137. package/dist/bean/resource/index.d.ts +8 -0
  138. package/dist/bean/resource/index.d.ts.map +1 -0
  139. package/dist/bean/resource/index.js +8 -0
  140. package/dist/bean/resource/index.js.map +1 -0
  141. package/dist/bean/resource/locale/beanScopeLocale.d.ts +11 -0
  142. package/dist/bean/resource/locale/beanScopeLocale.d.ts.map +1 -0
  143. package/dist/bean/resource/locale/beanScopeLocale.js +18 -0
  144. package/dist/bean/resource/locale/beanScopeLocale.js.map +1 -0
  145. package/dist/bean/resource/locale/beanScopeLocaleImpl.d.ts +4 -0
  146. package/dist/bean/resource/locale/beanScopeLocaleImpl.d.ts.map +1 -0
  147. package/dist/bean/resource/locale/beanScopeLocaleImpl.js +13 -0
  148. package/dist/bean/resource/locale/beanScopeLocaleImpl.js.map +1 -0
  149. package/dist/bean/resource/locale/index.d.ts +3 -0
  150. package/dist/bean/resource/locale/index.d.ts.map +1 -0
  151. package/dist/bean/resource/locale/index.js +3 -0
  152. package/dist/bean/resource/locale/index.js.map +1 -0
  153. package/dist/bean/resource/locale/type.d.ts +19 -0
  154. package/dist/bean/resource/locale/type.d.ts.map +1 -0
  155. package/dist/bean/resource/locale/type.js +2 -0
  156. package/dist/bean/resource/locale/type.js.map +1 -0
  157. package/dist/bean/resource/page/index.d.ts +2 -0
  158. package/dist/bean/resource/page/index.d.ts.map +1 -0
  159. package/dist/bean/resource/page/index.js +2 -0
  160. package/dist/bean/resource/page/index.js.map +1 -0
  161. package/dist/bean/resource/page/page.d.ts +3 -0
  162. package/dist/bean/resource/page/page.d.ts.map +1 -0
  163. package/dist/bean/resource/page/page.js +6 -0
  164. package/dist/bean/resource/page/page.js.map +1 -0
  165. package/dist/bean/resource/page/type.d.ts +15 -0
  166. package/dist/bean/resource/page/type.d.ts.map +1 -0
  167. package/dist/bean/resource/page/type.js +2 -0
  168. package/dist/bean/resource/page/type.js.map +1 -0
  169. package/dist/bean/resource/route/index.d.ts +2 -0
  170. package/dist/bean/resource/route/index.d.ts.map +1 -0
  171. package/dist/bean/resource/route/index.js +2 -0
  172. package/dist/bean/resource/route/index.js.map +1 -0
  173. package/dist/bean/resource/route/type.d.ts +13 -0
  174. package/dist/bean/resource/route/type.d.ts.map +1 -0
  175. package/dist/bean/resource/route/type.js +2 -0
  176. package/dist/bean/resource/route/type.js.map +1 -0
  177. package/dist/bean/scope/beanScopeBase.d.ts +18 -0
  178. package/dist/bean/scope/beanScopeBase.d.ts.map +1 -0
  179. package/dist/bean/scope/beanScopeBase.js +58 -0
  180. package/dist/bean/scope/beanScopeBase.js.map +1 -0
  181. package/dist/bean/scope/index.d.ts +3 -0
  182. package/dist/bean/scope/index.d.ts.map +1 -0
  183. package/dist/bean/scope/index.js +5 -0
  184. package/dist/bean/scope/index.js.map +1 -0
  185. package/dist/bean/scope/type.d.ts +14 -0
  186. package/dist/bean/scope/type.d.ts.map +1 -0
  187. package/dist/bean/scope/type.js +2 -0
  188. package/dist/bean/scope/type.js.map +1 -0
  189. package/dist/bean/type.d.ts +25 -0
  190. package/dist/bean/type.d.ts.map +1 -0
  191. package/dist/bean/type.js +3 -0
  192. package/dist/bean/type.js.map +1 -0
  193. package/dist/composables/index.d.ts +5 -0
  194. package/dist/composables/index.d.ts.map +1 -0
  195. package/dist/composables/index.js +5 -0
  196. package/dist/composables/index.js.map +1 -0
  197. package/dist/composables/onControllerMounted.d.ts +2 -0
  198. package/dist/composables/onControllerMounted.d.ts.map +1 -0
  199. package/dist/composables/onControllerMounted.js +12 -0
  200. package/dist/composables/onControllerMounted.js.map +1 -0
  201. package/dist/composables/useApp.d.ts +3 -0
  202. package/dist/composables/useApp.d.ts.map +1 -0
  203. package/dist/composables/useApp.js +6 -0
  204. package/dist/composables/useApp.js.map +1 -0
  205. package/dist/composables/useContext.d.ts +3 -0
  206. package/dist/composables/useContext.d.ts.map +1 -0
  207. package/dist/composables/useContext.js +6 -0
  208. package/dist/composables/useContext.js.map +1 -0
  209. package/dist/composables/useController.d.ts +7 -0
  210. package/dist/composables/useController.d.ts.map +1 -0
  211. package/dist/composables/useController.js +60 -0
  212. package/dist/composables/useController.js.map +1 -0
  213. package/dist/core/app/application.d.ts +19 -0
  214. package/dist/core/app/application.d.ts.map +1 -0
  215. package/dist/core/app/application.js +48 -0
  216. package/dist/core/app/application.js.map +1 -0
  217. package/dist/core/app/config.d.ts +47 -0
  218. package/dist/core/app/config.d.ts.map +1 -0
  219. package/dist/core/app/config.js +27 -0
  220. package/dist/core/app/config.js.map +1 -0
  221. package/dist/core/app/constant.d.ts +9 -0
  222. package/dist/core/app/constant.d.ts.map +1 -0
  223. package/dist/core/app/constant.js +4 -0
  224. package/dist/core/app/constant.js.map +1 -0
  225. package/dist/core/app/index.d.ts +7 -0
  226. package/dist/core/app/index.d.ts.map +1 -0
  227. package/dist/core/app/index.js +7 -0
  228. package/dist/core/app/index.js.map +1 -0
  229. package/dist/core/app/locale.d.ts +10 -0
  230. package/dist/core/app/locale.d.ts.map +1 -0
  231. package/dist/core/app/locale.js +4 -0
  232. package/dist/core/app/locale.js.map +1 -0
  233. package/dist/core/app/meta.d.ts +21 -0
  234. package/dist/core/app/meta.d.ts.map +1 -0
  235. package/dist/core/app/meta.js +35 -0
  236. package/dist/core/app/meta.js.map +1 -0
  237. package/dist/core/app/module.d.ts +22 -0
  238. package/dist/core/app/module.d.ts.map +1 -0
  239. package/dist/core/app/module.js +151 -0
  240. package/dist/core/app/module.js.map +1 -0
  241. package/dist/core/app/util.d.ts +9 -0
  242. package/dist/core/app/util.d.ts.map +1 -0
  243. package/dist/core/app/util.js +28 -0
  244. package/dist/core/app/util.js.map +1 -0
  245. package/dist/core/app/view.d.ts +6 -0
  246. package/dist/core/app/view.d.ts.map +1 -0
  247. package/dist/core/app/view.js +17 -0
  248. package/dist/core/app/view.js.map +1 -0
  249. package/dist/core/component/cabloyIcon.d.ts +36 -0
  250. package/dist/core/component/cabloyIcon.d.ts.map +1 -0
  251. package/dist/core/component/cabloyIcon.js +52 -0
  252. package/dist/core/component/cabloyIcon.js.map +1 -0
  253. package/dist/core/component/component.d.ts +8 -0
  254. package/dist/core/component/component.d.ts.map +1 -0
  255. package/dist/core/component/component.js +39 -0
  256. package/dist/core/component/component.js.map +1 -0
  257. package/dist/core/component/error.d.ts +4 -0
  258. package/dist/core/component/error.d.ts.map +1 -0
  259. package/dist/core/component/error.js +16 -0
  260. package/dist/core/component/error.js.map +1 -0
  261. package/dist/core/component/event.d.ts +10 -0
  262. package/dist/core/component/event.d.ts.map +1 -0
  263. package/dist/core/component/event.js +61 -0
  264. package/dist/core/component/event.js.map +1 -0
  265. package/dist/core/component/index.d.ts +4 -0
  266. package/dist/core/component/index.d.ts.map +1 -0
  267. package/dist/core/component/index.js +4 -0
  268. package/dist/core/component/index.js.map +1 -0
  269. package/dist/core/component/locale.d.ts +14 -0
  270. package/dist/core/component/locale.d.ts.map +1 -0
  271. package/dist/core/component/locale.js +66 -0
  272. package/dist/core/component/locale.js.map +1 -0
  273. package/dist/core/component/module.d.ts +25 -0
  274. package/dist/core/component/module.d.ts.map +1 -0
  275. package/dist/core/component/module.js +248 -0
  276. package/dist/core/component/module.js.map +1 -0
  277. package/dist/core/component/router.d.ts +13 -0
  278. package/dist/core/component/router.d.ts.map +1 -0
  279. package/dist/core/component/router.js +49 -0
  280. package/dist/core/component/router.js.map +1 -0
  281. package/dist/core/component/view.d.ts +7 -0
  282. package/dist/core/component/view.d.ts.map +1 -0
  283. package/dist/core/component/view.js +21 -0
  284. package/dist/core/component/view.js.map +1 -0
  285. package/dist/core/context/context.d.ts +17 -0
  286. package/dist/core/context/context.d.ts.map +1 -0
  287. package/dist/core/context/context.js +28 -0
  288. package/dist/core/context/context.js.map +1 -0
  289. package/dist/core/context/index.d.ts +4 -0
  290. package/dist/core/context/index.d.ts.map +1 -0
  291. package/dist/core/context/index.js +4 -0
  292. package/dist/core/context/index.js.map +1 -0
  293. package/dist/core/context/meta.d.ts +11 -0
  294. package/dist/core/context/meta.d.ts.map +1 -0
  295. package/dist/core/context/meta.js +15 -0
  296. package/dist/core/context/meta.js.map +1 -0
  297. package/dist/core/context/state.d.ts +10 -0
  298. package/dist/core/context/state.d.ts.map +1 -0
  299. package/dist/core/context/state.js +17 -0
  300. package/dist/core/context/state.js.map +1 -0
  301. package/dist/core/context/util.d.ts +5 -0
  302. package/dist/core/context/util.d.ts.map +1 -0
  303. package/dist/core/context/util.js +21 -0
  304. package/dist/core/context/util.js.map +1 -0
  305. package/dist/core/index.d.ts +6 -0
  306. package/dist/core/index.d.ts.map +1 -0
  307. package/dist/core/index.js +6 -0
  308. package/dist/core/index.js.map +1 -0
  309. package/dist/core/metadata.d.ts +12 -0
  310. package/dist/core/metadata.d.ts.map +1 -0
  311. package/dist/core/metadata.js +48 -0
  312. package/dist/core/metadata.js.map +1 -0
  313. package/dist/core/resource.d.ts +32 -0
  314. package/dist/core/resource.d.ts.map +1 -0
  315. package/dist/core/resource.js +152 -0
  316. package/dist/core/resource.js.map +1 -0
  317. package/dist/decorator/class/bean.d.ts +3 -0
  318. package/dist/decorator/class/bean.d.ts.map +1 -0
  319. package/dist/decorator/class/bean.js +18 -0
  320. package/dist/decorator/class/bean.js.map +1 -0
  321. package/dist/decorator/class/index.d.ts +9 -0
  322. package/dist/decorator/class/index.d.ts.map +1 -0
  323. package/dist/decorator/class/index.js +9 -0
  324. package/dist/decorator/class/index.js.map +1 -0
  325. package/dist/decorator/class/local.d.ts +3 -0
  326. package/dist/decorator/class/local.d.ts.map +1 -0
  327. package/dist/decorator/class/local.js +17 -0
  328. package/dist/decorator/class/local.js.map +1 -0
  329. package/dist/decorator/class/scope.d.ts +3 -0
  330. package/dist/decorator/class/scope.d.ts.map +1 -0
  331. package/dist/decorator/class/scope.js +18 -0
  332. package/dist/decorator/class/scope.js.map +1 -0
  333. package/dist/decorator/class/store.d.ts +3 -0
  334. package/dist/decorator/class/store.d.ts.map +1 -0
  335. package/dist/decorator/class/store.js +18 -0
  336. package/dist/decorator/class/store.js.map +1 -0
  337. package/dist/decorator/class/use.d.ts +5 -0
  338. package/dist/decorator/class/use.d.ts.map +1 -0
  339. package/dist/decorator/class/use.js +20 -0
  340. package/dist/decorator/class/use.js.map +1 -0
  341. package/dist/decorator/class/useComposable.d.ts +3 -0
  342. package/dist/decorator/class/useComposable.d.ts.map +1 -0
  343. package/dist/decorator/class/useComposable.js +14 -0
  344. package/dist/decorator/class/useComposable.js.map +1 -0
  345. package/dist/decorator/class/useHook.d.ts +3 -0
  346. package/dist/decorator/class/useHook.d.ts.map +1 -0
  347. package/dist/decorator/class/useHook.js +14 -0
  348. package/dist/decorator/class/useHook.js.map +1 -0
  349. package/dist/decorator/class/useScope.d.ts +5 -0
  350. package/dist/decorator/class/useScope.d.ts.map +1 -0
  351. package/dist/decorator/class/useScope.js +16 -0
  352. package/dist/decorator/class/useScope.js.map +1 -0
  353. package/dist/decorator/class/virtual.d.ts +3 -0
  354. package/dist/decorator/class/virtual.d.ts.map +1 -0
  355. package/dist/decorator/class/virtual.js +19 -0
  356. package/dist/decorator/class/virtual.js.map +1 -0
  357. package/dist/decorator/index.d.ts +7 -0
  358. package/dist/decorator/index.d.ts.map +1 -0
  359. package/dist/decorator/index.js +7 -0
  360. package/dist/decorator/index.js.map +1 -0
  361. package/dist/decorator/interface/beanOptions.d.ts +49 -0
  362. package/dist/decorator/interface/beanOptions.d.ts.map +1 -0
  363. package/dist/decorator/interface/beanOptions.js +2 -0
  364. package/dist/decorator/interface/beanOptions.js.map +1 -0
  365. package/dist/decorator/interface/useOptions.d.ts +34 -0
  366. package/dist/decorator/interface/useOptions.d.ts.map +1 -0
  367. package/dist/decorator/interface/useOptions.js +2 -0
  368. package/dist/decorator/interface/useOptions.js.map +1 -0
  369. package/dist/decorator/type/constructable.d.ts +2 -0
  370. package/dist/decorator/type/constructable.d.ts.map +1 -0
  371. package/dist/decorator/type/constructable.js +2 -0
  372. package/dist/decorator/type/constructable.js.map +1 -0
  373. package/dist/decorator/type/containerScope.d.ts +2 -0
  374. package/dist/decorator/type/containerScope.d.ts.map +1 -0
  375. package/dist/decorator/type/containerScope.js +2 -0
  376. package/dist/decorator/type/containerScope.js.map +1 -0
  377. package/dist/decorator/type/functionable.d.ts +2 -0
  378. package/dist/decorator/type/functionable.d.ts.map +1 -0
  379. package/dist/decorator/type/functionable.js +2 -0
  380. package/dist/decorator/type/functionable.js.map +1 -0
  381. package/dist/hooks/index.d.ts +5 -0
  382. package/dist/hooks/index.d.ts.map +1 -0
  383. package/dist/hooks/index.js +5 -0
  384. package/dist/hooks/index.js.map +1 -0
  385. package/dist/hooks/onControllerMounted.d.ts +2 -0
  386. package/dist/hooks/onControllerMounted.d.ts.map +1 -0
  387. package/dist/hooks/onControllerMounted.js +9 -0
  388. package/dist/hooks/onControllerMounted.js.map +1 -0
  389. package/dist/hooks/onMotherMounted.d.ts +2 -0
  390. package/dist/hooks/onMotherMounted.d.ts.map +1 -0
  391. package/dist/hooks/onMotherMounted.js +9 -0
  392. package/dist/hooks/onMotherMounted.js.map +1 -0
  393. package/dist/hooks/useApp.d.ts +3 -0
  394. package/dist/hooks/useApp.d.ts.map +1 -0
  395. package/dist/hooks/useApp.js +6 -0
  396. package/dist/hooks/useApp.js.map +1 -0
  397. package/dist/hooks/useCabloyIcon.d.ts +7 -0
  398. package/dist/hooks/useCabloyIcon.d.ts.map +1 -0
  399. package/dist/hooks/useCabloyIcon.js +29 -0
  400. package/dist/hooks/useCabloyIcon.js.map +1 -0
  401. package/dist/hooks/useContext.d.ts +3 -0
  402. package/dist/hooks/useContext.d.ts.map +1 -0
  403. package/dist/hooks/useContext.js +6 -0
  404. package/dist/hooks/useContext.js.map +1 -0
  405. package/dist/hooks/useController.d.ts +7 -0
  406. package/dist/hooks/useController.d.ts.map +1 -0
  407. package/dist/hooks/useController.js +58 -0
  408. package/dist/hooks/useController.js.map +1 -0
  409. package/dist/hooks/useCtx.d.ts +3 -0
  410. package/dist/hooks/useCtx.d.ts.map +1 -0
  411. package/dist/hooks/useCtx.js +6 -0
  412. package/dist/hooks/useCtx.js.map +1 -0
  413. package/dist/hooks/useMother.d.ts +7 -0
  414. package/dist/hooks/useMother.d.ts.map +1 -0
  415. package/dist/hooks/useMother.js +58 -0
  416. package/dist/hooks/useMother.js.map +1 -0
  417. package/dist/index.d.ts +10 -0
  418. package/dist/index.d.ts.map +1 -0
  419. package/dist/index.js +10 -0
  420. package/dist/index.js.map +1 -0
  421. package/dist/plugins/bean.d.ts +5 -0
  422. package/dist/plugins/bean.d.ts.map +1 -0
  423. package/dist/plugins/bean.js +27 -0
  424. package/dist/plugins/bean.js.map +1 -0
  425. package/dist/plugins/cabloy.d.ts +6 -0
  426. package/dist/plugins/cabloy.d.ts.map +1 -0
  427. package/dist/plugins/cabloy.js +9 -0
  428. package/dist/plugins/cabloy.js.map +1 -0
  429. package/dist/plugins/index.d.ts +3 -0
  430. package/dist/plugins/index.d.ts.map +1 -0
  431. package/dist/plugins/index.js +3 -0
  432. package/dist/plugins/index.js.map +1 -0
  433. package/dist/plugins/zova.d.ts +6 -0
  434. package/dist/plugins/zova.d.ts.map +1 -0
  435. package/dist/plugins/zova.js +9 -0
  436. package/dist/plugins/zova.js.map +1 -0
  437. package/dist/types/index.d.ts +3 -0
  438. package/dist/types/index.d.ts.map +1 -0
  439. package/dist/types/index.js +3 -0
  440. package/dist/types/index.js.map +1 -0
  441. package/dist/types/interface/component.d.ts +20 -0
  442. package/dist/types/interface/component.d.ts.map +1 -0
  443. package/dist/types/interface/component.js +2 -0
  444. package/dist/types/interface/component.js.map +1 -0
  445. package/dist/types/interface/event.d.ts +23 -0
  446. package/dist/types/interface/event.d.ts.map +1 -0
  447. package/dist/types/interface/event.js +2 -0
  448. package/dist/types/interface/event.js.map +1 -0
  449. package/dist/types/interface/icon.d.ts +3 -0
  450. package/dist/types/interface/icon.d.ts.map +1 -0
  451. package/dist/types/interface/icon.js +2 -0
  452. package/dist/types/interface/icon.js.map +1 -0
  453. package/dist/types/interface/index.d.ts +7 -0
  454. package/dist/types/interface/index.d.ts.map +1 -0
  455. package/dist/types/interface/index.js +7 -0
  456. package/dist/types/interface/index.js.map +1 -0
  457. package/dist/types/interface/inject.d.ts +4 -0
  458. package/dist/types/interface/inject.d.ts.map +1 -0
  459. package/dist/types/interface/inject.js +2 -0
  460. package/dist/types/interface/inject.js.map +1 -0
  461. package/dist/types/interface/module.d.ts +29 -0
  462. package/dist/types/interface/module.d.ts.map +1 -0
  463. package/dist/types/interface/module.js +2 -0
  464. package/dist/types/interface/module.js.map +1 -0
  465. package/dist/types/interface/monkey.d.ts +33 -0
  466. package/dist/types/interface/monkey.d.ts.map +1 -0
  467. package/dist/types/interface/monkey.js +2 -0
  468. package/dist/types/interface/monkey.js.map +1 -0
  469. package/dist/types/interface/pluginCabloy.d.ts +16 -0
  470. package/dist/types/interface/pluginCabloy.d.ts.map +1 -0
  471. package/dist/types/interface/pluginCabloy.js +2 -0
  472. package/dist/types/interface/pluginCabloy.js.map +1 -0
  473. package/dist/types/interface/pluginZova.d.ts +16 -0
  474. package/dist/types/interface/pluginZova.d.ts.map +1 -0
  475. package/dist/types/interface/pluginZova.js +2 -0
  476. package/dist/types/interface/pluginZova.js.map +1 -0
  477. package/dist/types/utils/cast.d.ts +6 -0
  478. package/dist/types/utils/cast.d.ts.map +1 -0
  479. package/dist/types/utils/cast.js +4 -0
  480. package/dist/types/utils/cast.js.map +1 -0
  481. package/dist/types/utils/env.d.ts +34 -0
  482. package/dist/types/utils/env.d.ts.map +1 -0
  483. package/dist/types/utils/env.js +2 -0
  484. package/dist/types/utils/env.js.map +1 -0
  485. package/dist/types/utils/index.d.ts +4 -0
  486. package/dist/types/utils/index.d.ts.map +1 -0
  487. package/dist/types/utils/index.js +4 -0
  488. package/dist/types/utils/index.js.map +1 -0
  489. package/dist/types/utils/inject.d.ts +3 -0
  490. package/dist/types/utils/inject.d.ts.map +1 -0
  491. package/dist/types/utils/inject.js +2 -0
  492. package/dist/types/utils/inject.js.map +1 -0
  493. package/dist/types/utils/jsx.d.ts +10 -0
  494. package/dist/types/utils/jsx.d.ts.map +1 -0
  495. package/dist/types/utils/jsx.js +2 -0
  496. package/dist/types/utils/jsx.js.map +1 -0
  497. package/dist/types/utils/powerPartial.d.ts +4 -0
  498. package/dist/types/utils/powerPartial.d.ts.map +1 -0
  499. package/dist/types/utils/powerPartial.js +2 -0
  500. package/dist/types/utils/powerPartial.js.map +1 -0
  501. package/dist/types/utils/symbol.d.ts +2 -0
  502. package/dist/types/utils/symbol.d.ts.map +1 -0
  503. package/dist/types/utils/symbol.js +2 -0
  504. package/dist/types/utils/symbol.js.map +1 -0
  505. package/dist/utils/index.d.ts +2 -0
  506. package/dist/utils/index.d.ts.map +1 -0
  507. package/dist/utils/index.js +2 -0
  508. package/dist/utils/index.js.map +1 -0
  509. package/dist/utils/isClass.d.ts +2 -0
  510. package/dist/utils/isClass.d.ts.map +1 -0
  511. package/dist/utils/isClass.js +16 -0
  512. package/dist/utils/isClass.js.map +1 -0
  513. package/dist/utils/stateLock.d.ts +10 -0
  514. package/dist/utils/stateLock.d.ts.map +1 -0
  515. package/dist/utils/stateLock.js +37 -0
  516. package/dist/utils/stateLock.js.map +1 -0
  517. package/dist/utils/uuid.d.ts +5 -0
  518. package/dist/utils/uuid.d.ts.map +1 -0
  519. package/dist/utils/uuid.js +72 -0
  520. package/dist/utils/uuid.js.map +1 -0
  521. package/dist/vue/composable.d.ts +8 -0
  522. package/dist/vue/composable.d.ts.map +1 -0
  523. package/dist/vue/composable.js +4 -0
  524. package/dist/vue/composable.js.map +1 -0
  525. package/dist/vue/computed.d.ts +4 -0
  526. package/dist/vue/computed.d.ts.map +1 -0
  527. package/dist/vue/computed.js +5 -0
  528. package/dist/vue/computed.js.map +1 -0
  529. package/dist/vue/hook.d.ts +8 -0
  530. package/dist/vue/hook.d.ts.map +1 -0
  531. package/dist/vue/hook.js +4 -0
  532. package/dist/vue/hook.js.map +1 -0
  533. package/dist/vue/index.d.ts +3 -0
  534. package/dist/vue/index.d.ts.map +1 -0
  535. package/dist/vue/index.js +3 -0
  536. package/dist/vue/index.js.map +1 -0
  537. package/dist/zod/index.d.ts +3 -0
  538. package/dist/zod/index.d.ts.map +1 -0
  539. package/dist/zod/index.js +3 -0
  540. package/dist/zod/index.js.map +1 -0
  541. package/dist/zod/patch.d.ts +71 -0
  542. package/dist/zod/patch.d.ts.map +1 -0
  543. package/dist/zod/patch.js +33 -0
  544. package/dist/zod/patch.js.map +1 -0
  545. package/dist/zod/zz.d.ts +13 -0
  546. package/dist/zod/zz.d.ts.map +1 -0
  547. package/dist/zod/zz.js +54 -0
  548. package/dist/zod/zz.js.map +1 -0
  549. package/package.json +52 -0
@@ -0,0 +1,48 @@
1
+ import 'reflect-metadata';
2
+ export class AppMetadata {
3
+ defineMetadata(metadataKey, metadataValue, target) {
4
+ Reflect.defineMetadata(metadataKey, metadataValue, target);
5
+ }
6
+ getOwnMetadata(metadataKey, target) {
7
+ return Reflect.getOwnMetadata(metadataKey, target);
8
+ }
9
+ getMetadata(metadataKey, target, prop) {
10
+ if (prop) {
11
+ return Reflect.getMetadata(metadataKey, target, prop);
12
+ }
13
+ return Reflect.getMetadata(metadataKey, target);
14
+ }
15
+ getOwnMetadataArray(metadataKey, target) {
16
+ let own = this.getOwnMetadata(metadataKey, target);
17
+ if (!own) {
18
+ const parent = this.getMetadata(metadataKey, target);
19
+ if (parent) {
20
+ own = parent.slice();
21
+ }
22
+ else {
23
+ own = [];
24
+ }
25
+ this.defineMetadata(metadataKey, own, target);
26
+ }
27
+ return own;
28
+ }
29
+ getOwnMetadataMap(metadataKey, target) {
30
+ let own = this.getOwnMetadata(metadataKey, target);
31
+ if (!own) {
32
+ const parent = this.getMetadata(metadataKey, target);
33
+ if (parent) {
34
+ own = Object.assign({}, parent);
35
+ }
36
+ else {
37
+ own = {};
38
+ }
39
+ this.defineMetadata(metadataKey, own, target);
40
+ }
41
+ return own;
42
+ }
43
+ getDesignType(target, prop) {
44
+ return this.getMetadata('design:type', target, prop);
45
+ }
46
+ }
47
+ export const appMetadata = new AppMetadata();
48
+ //# s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Ac,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAC7E,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,MAAM,MAAM,GAA6B,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;YAC/E,IAAI,MAAM,EAAE,CAAC;gBACX,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;YAClC,CAAC;iBAAM,CAAC;gBACN,GAAG,GAAG,EAAkB,CAAC;YAC3B,CAAC;YACD,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;QAChD,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAED,aAAa,CAAC,MAAc,EAAE,IAAkB;QAC9C,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,MAAa,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;CACF;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { Constructable, Functionable, IDecoratorBeanOptionsBase, IDecoratorUseOptionsBase } from '../decorator/index.js';
2
+ import { MetadataKey } from './metadata.js';
3
+ import { IBeanRecord } from '../bean/type.js';
4
+ import { BeanSimple } from '../bean/beanSimple.js';
5
+ export declare const DecoratorBeanFullName: unique symbol;
6
+ export declare const DecoratorUse: unique symbol;
7
+ export declare const DecoratorBeanFullNameOfComposable: unique symbol;
8
+ export declare class AppResource extends BeanSimple {
9
+ beans: Record<string, IDecoratorBeanOptionsBase>;
10
+ aops: Record<string, IDecoratorBeanOptionsBase>;
11
+ addUse(target: object, options: IDecoratorUseOptionsBase): void;
12
+ getUses(target: object): Record<MetadataKey, IDecoratorUseOptionsBase> | undefined;
13
+ addAop<T>(options: Partial<IDecoratorBeanOptionsBase<T>>): IDecoratorBeanOptionsBase<T>;
14
+ addBean<T>(options: Partial<IDecoratorBeanOptionsBase<T>>): IDecoratorBeanOptionsBase<T>;
15
+ getBeanFullName<T>(A: Constructable<T>): string | undefined;
16
+ getBeanFullNameOfComposable(beanComposable: Functionable | undefined): string | undefined;
17
+ getBean<T>(A: Constructable<T>): IDecoratorBeanOptionsBase<T> | undefined;
18
+ getBean<K extends keyof IBeanRecord>(beanFullName: K): IDecoratorBeanOptionsBase<IBeanRecord[K]> | undefined;
19
+ getBean<T>(beanFullName: string): IDecoratorBeanOptionsBase<T> | undefined;
20
+ _fixClassName(className: string): string;
21
+ _parseSceneAndBeanName<T>(beanClass: Constructable<T>, scene?: string, name?: string): {
22
+ scene: string;
23
+ name: string;
24
+ };
25
+ _parseModuleBelong(module: any, beanClass: any, virtual: any): any;
26
+ _getModuleBelong<T>(A: Constructable<T>): string;
27
+ _getModuleBelong<K extends keyof IBeanRecord>(beanFullName: K): string;
28
+ _getModuleBelong(beanFullName: string): string;
29
+ findAopsMatched(_beanFullName: string): any[];
30
+ }
31
+ export declare const appResource: AppResource;
32
+ //# sourceMappingURL=resource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../src/core/resource.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAe,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAInD,eAAO,MAAM,qBAAqB,eAAuC,CAAC;AAC1E,eAAO,MAAM,YAAY,eAA8B,CAAC;AACxD,eAAO,MAAM,iCAAiC,eAAmD,CAAC;AAElG,qBAAa,WAAY,SAAQ,UAAU;IACzC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAM;IACtD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAA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ChD,gBAAgB,CAAC,CAAC,SAAS,MAAM,WAAW,EAAE,YAAY,EAAE,CAAC,GAAG,MAAM;IACtE,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAO9C,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,GAAG,EAAE;CAG9C;AAED,eAAO,MAAM,WAAW,aAAoB,CAAC"}
@@ -0,0 +1,152 @@
1
+ import { isClass } from '../utils/isClass.js';
2
+ import { appMetadata } from './metadata.js';
3
+ import { BeanSimple } from '../bean/beanSimple.js';
4
+ import { parseLastWord, skipLastWord, skipPrefix, splitWords } from '@cabloy/last-word';
5
+ import { uuid } from '../utils/uuid.js';
6
+ export const DecoratorBeanFullName = Symbol.for('Decorator#BeanFullName');
7
+ export const DecoratorUse = Symbol.for('Decorator#Use');
8
+ export const DecoratorBeanFullNameOfComposable = Symbol.for('Decorator#BeanFullNameOfComposable');
9
+ export class AppResource extends BeanSimple {
10
+ beans = {};
11
+ aops = {};
12
+ addUse(target, options) {
13
+ const uses = appMetadata.getOwnMetadataMap(DecoratorUse, target);
14
+ uses[options.prop] = options;
15
+ }
16
+ getUses(target) {
17
+ return appMetadata.getMetadata(DecoratorUse, target);
18
+ }
19
+ addAop(options) {
20
+ // bean
21
+ const beanOptions = this.addBean(options);
22
+ // aop
23
+ this.aops[beanOptions.beanFullName] = beanOptions;
24
+ // ok
25
+ return beanOptions;
26
+ }
27
+ addBean(options) {
28
+ const { module, beanClass, virtual } = options;
29
+ // name
30
+ const { scene, name } = this._parseSceneAndBeanName(beanClass, options.scene, options.name);
31
+ // uuid
32
+ const beanUuid = uuid();
33
+ // beanFullName
34
+ let beanFullName;
35
+ if (['local'].includes(scene)) {
36
+ beanFullName = beanUuid;
37
+ }
38
+ else {
39
+ beanFullName = `${module}.${scene}.${name}`;
40
+ }
41
+ // moduleBelong
42
+ const moduleBelong = this._parseModuleBelong(module, beanClass, virtual);
43
+ // options
44
+ const beanOptions = {
45
+ ...options,
46
+ scene,
47
+ name,
48
+ beanUuid,
49
+ beanFullName,
50
+ moduleBelong,
51
+ };
52
+ beanOptions.__aopChains__ = null;
53
+ beanOptions.__aopChainsKey__ = {};
54
+ // record
55
+ this.beans[beanOptions.beanFullName] = beanOptions;
56
+ // set metadata
57
+ appMetadata.defineMetadata(DecoratorBeanFullName, beanOptions.beanFullName, beanOptions.beanClass);
58
+ // ok
59
+ return beanOptions;
60
+ }
61
+ getBeanFullName(A) {
62
+ return appMetadata.getOwnMetadata(DecoratorBeanFullName, A);
63
+ }
64
+ getBeanFullNameOfComposable(beanComposable) {
65
+ if (!beanComposable)
66
+ return;
67
+ if (!beanComposable[DecoratorBeanFullNameOfComposable]) {
68
+ beanComposable[DecoratorBeanFullNameOfComposable] = `useComposable.${uuid()}`;
69
+ }
70
+ return beanComposable[DecoratorBeanFullNameOfComposable];
71
+ }
72
+ getBean(beanFullName) {
73
+ let fullName;
74
+ if (typeof beanFullName === 'function' && isClass(beanFullName)) {
75
+ fullName = appMetadata.getOwnMetadata(DecoratorBeanFullName, beanFullName);
76
+ }
77
+ else {
78
+ fullName = beanFullName;
79
+ }
80
+ if (!fullName)
81
+ return null;
82
+ return this.beans[fullName];
83
+ }
84
+ _fixClassName(className) {
85
+ const ch = className.charAt(className.length - 1);
86
+ if (ch >= '0' && ch <= '9')
87
+ return className.substring(0, className.length - 1);
88
+ return className;
89
+ }
90
+ _parseSceneAndBeanName(beanClass, scene, name) {
91
+ if (scene && name) {
92
+ return { scene, name };
93
+ }
94
+ // bean class name
95
+ let beanClassName = this._fixClassName(beanClass.name);
96
+ // skip prefix: Bean
97
+ if (beanClassName.toLowerCase().startsWith('bean')) {
98
+ beanClassName = beanClassName.substring('bean'.length);
99
+ }
100
+ else {
101
+ beanClassName = beanClassName;
102
+ }
103
+ // name
104
+ if (!name) {
105
+ if (scene) {
106
+ name = skipPrefix(beanClassName, scene, true);
107
+ }
108
+ else {
109
+ name = parseLastWord(beanClassName, true);
110
+ }
111
+ }
112
+ // scene
113
+ if (!scene) {
114
+ scene = skipLastWord(beanClassName, name, true);
115
+ scene = splitWords(scene, true, '.');
116
+ }
117
+ // ok
118
+ return { scene, name };
119
+ }
120
+ _parseModuleBelong(module, beanClass, virtual) {
121
+ // not set when virtual
122
+ if (virtual)
123
+ return;
124
+ // check parent
125
+ let moduleBelong;
126
+ let parent = Object.getPrototypeOf(beanClass);
127
+ while (parent) {
128
+ const beanOptions = this.getBean(parent);
129
+ if (beanOptions && beanOptions.moduleBelong) {
130
+ moduleBelong = beanOptions.moduleBelong;
131
+ break;
132
+ }
133
+ parent = Object.getPrototypeOf(parent);
134
+ }
135
+ // set to current when parent not set
136
+ if (!moduleBelong) {
137
+ moduleBelong = module;
138
+ }
139
+ return moduleBelong;
140
+ }
141
+ _getModuleBelong(beanFullName) {
142
+ const beanOptions = this.getBean(beanFullName);
143
+ if (!beanOptions || !beanOptions.moduleBelong)
144
+ throw new Error(`not found module belong: ${beanFullName}`);
145
+ return beanOptions.moduleBelong;
146
+ }
147
+ findAopsMatched(_beanFullName) {
148
+ return [];
149
+ }
150
+ }
151
+ export const appResource = new AppResource();
152
+ //# sourceMappingURL=resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.js","sourceRoot":"","sources":["../../src/core/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAO9C,OAAO,EAAe,WAAW,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,eAA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anOptions.js';
2
+ export declare function Bean<T>(options?: IDecoratorBeanOptions): ClassDecorator;
3
+ //# sourceMappingURL=bean.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bean.d.ts","sourceRoot":"","sources":["../../../src/decorator/class/bean.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,wBAAgB,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,cAAc,CAavE"}
@@ -0,0 +1,18 @@
1
+ import { appResource } from '../../core/resource.js';
2
+ import { Cast } from '../../types/utils/cast.js';
3
+ export function Bean(options) {
4
+ return function (target) {
5
+ if (!options)
6
+ options = {};
7
+ // add
8
+ appResource.addBean({
9
+ module: Cast(options).module,
10
+ scene: options.scene,
11
+ name: options.name,
12
+ containerScope: options.containerScope,
13
+ markReactive: options.markReactive,
14
+ beanClass: target,
15
+ });
16
+ };
17
+ }
18
+ //# sourceMappingURL=bean.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bean.js","sourceRoot":"","sources":["../../../src/decorator/class/bean.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAIjD,MAAM,UAAU,IAAI,CAAI,OAA+B;IACrD,OAAO,UAAU,MAAM;QACrB,IAAI,CAAC,OAAO;YAAE,OAAO,GAAG,EAAE,CAAC;QAC3B,MAAM;QACN,WAAW,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM;YAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,cAAc,EAAE,OAAO,CAAC,cAAc;YACtC,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,SAAS,EAAE,MAAqC;SACjD,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,9 @@
1
+ export * from './bean.js';
2
+ export * from './local.js';
3
+ export * from './scope.js';
4
+ export * from './store.js';
5
+ export * from './use.js';
6
+ export * from './useComposable.js';
7
+ export * from './useScope.js';
8
+ export * from './virtual.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorator/class/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,9 @@
1
+ export * from './bean.js';
2
+ export * from './local.js';
3
+ export * from './scope.js';
4
+ export * from './store.js';
5
+ export * from './use.js';
6
+ export * from './useComposable.js';
7
+ export * from './useScope.js';
8
+ export * from './virtual.js';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorator/class/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IDecoratorLocalOptions } from '../interface/beanOptions.js';
2
+ export declare function Local<T>(options?: IDecoratorLocalOptions): ClassDecorator;
3
+ //# sourceMappingURL=local.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../src/decorator/class/local.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,cAAc,CAYzE"}
@@ -0,0 +1,17 @@
1
+ import { appResource } from '../../core/resource.js';
2
+ import { Cast } from '../../types/utils/cast.js';
3
+ export function Local(options) {
4
+ return function (target) {
5
+ if (!options)
6
+ options = {};
7
+ // add
8
+ appResource.addBean({
9
+ module: Cast(options).module,
10
+ scene: 'local',
11
+ containerScope: options.containerScope,
12
+ markReactive: options.markReactive,
13
+ beanClass: target,
14
+ });
15
+ };
16
+ }
17
+ //# sourceMappingURL=local.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local.js","sourceRoot":"","sources":["../../../src/decorator/class/local.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAIjD,MAAM,UAAU,KAAK,CAAI,OAAgC;IACvD,OAAO,UAAU,MAAM;QACrB,IAAI,CAAC,OAAO;YAAE,OAAO,GAAG,EAAE,CAAC;QAC3B,MAAM;QACN,WAAW,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM;YAC5B,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,OAAO,CAAC,cAAc;YACtC,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,SAAS,EAAE,MAAqC;SACjD,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IDecoratorScopeOptions } from '../index.js';
2
+ export declare function Scope<T>(options?: IDecoratorScopeOptions): ClassDecorator;
3
+ //# sourceMappingURL=scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../src/decorator/class/scope.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAEpE,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,cAAc,CAazE"}
@@ -0,0 +1,18 @@
1
+ import { appResource } from '../../core/resource.js';
2
+ import { Cast } from '../../types/utils/cast.js';
3
+ export function Scope(options) {
4
+ return function (target) {
5
+ if (!options)
6
+ options = {};
7
+ // add
8
+ appResource.addBean({
9
+ module: Cast(options).module,
10
+ scene: 'scope',
11
+ name: 'module', // force to the same name
12
+ containerScope: 'app',
13
+ markReactive: false,
14
+ beanClass: target,
15
+ });
16
+ };
17
+ }
18
+ //# sourceMappingURL=scope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope.js","sourceRoot":"","sources":["../../../src/decorator/class/scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD,MAAM,UAAU,KAAK,CAAI,OAAgC;IACvD,OAAO,UAAU,MAAM;QACrB,IAAI,CAAC,OAAO;YAAE,OAAO,GAAG,EAAE,CAAC;QAC3B,MAAM;QACN,WAAW,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM;YAC5B,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,QAAQ,EAAE,yBAAyB;YACzC,cAAc,EAAE,KAAK;YACrB,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,MAAqC;SACjD,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IDecoratorStoreOptions } from '../index.js';
2
+ export declare function Store<T>(options?: IDecoratorStoreOptions): ClassDecorator;
3
+ //# sourceMappingURL=store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/decorator/class/store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAEpE,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,cAAc,CAazE"}
@@ -0,0 +1,18 @@
1
+ import { appResource } from '../../core/resource.js';
2
+ import { Cast } from '../../types/utils/cast.js';
3
+ export function Store(options) {
4
+ return function (target) {
5
+ if (!options)
6
+ options = {};
7
+ // add
8
+ appResource.addBean({
9
+ module: Cast(options).module,
10
+ scene: options.scene || 'store',
11
+ name: options.name,
12
+ containerScope: 'app',
13
+ markReactive: options.markReactive,
14
+ beanClass: target,
15
+ });
16
+ };
17
+ }
18
+ //# sourceMappingURL=store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/decorator/class/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD,MAAM,UAAU,KAAK,CAAI,OAAgC;IACvD,OAAO,UAAU,MAAM;QACrB,IAAI,CAAC,OAAO;YAAE,OAAO,GAAG,EAAE,CAAC;QAC3B,MAAM;QACN,WAAW,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM;YAC5B,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,OAAO;YAC/B,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,cAAc,EAAE,KAAK;YACrB,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,SAAS,EAAE,MAAqC;SACjD,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { IBeanRecord } from '../../bean/type.js';
2
+ import { IDecoratorUseOptions } from '../index.js';
3
+ export declare function Use(options?: IDecoratorUseOptions): PropertyDecorator;
4
+ export declare function Use<T extends keyof IBeanRecord>(beanFullName?: T): PropertyDecorator;
5
+ //# sourceMappingURL=use.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/decorator/class/use.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAAiB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAElE,wBAAgB,GAAG,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,iBAAiB,CAAC;AACvE,wBAAgB,GAAG,CAAC,CAAC,SAAS,MAAM,WAAW,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { appMetadata } from '../../core/metadata.js';
2
+ import { appResource } from '../../core/resource.js';
3
+ export function Use(options) {
4
+ return function (target, prop) {
5
+ if (!options)
6
+ options = {};
7
+ if (typeof options === 'string') {
8
+ options = { beanFullName: options };
9
+ }
10
+ // beanClass
11
+ const beanClass = appMetadata.getDesignType(target, prop);
12
+ // record
13
+ appResource.addUse(target, {
14
+ ...options,
15
+ prop,
16
+ beanClass,
17
+ });
18
+ };
19
+ }
20
+ //# sourceMappingURL=use.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use.js","sourceRoot":"","sources":["../../../src/decorator/class/use.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAe,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAKrD,MAAM,UAAU,GAAG,CAAC,OAAuC;IACzD,OAAO,UAAU,MAAc,EAAE,IAAiB;QAChD,IAAI,CAAC,OAAO;YAAE,OAAO,GAAG,EAAE,CAAC;QAC3B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YAChC,OAAO,GAAG,EAAE,YAAY,EAAE,OAAO,EAAqC,CAAC;QACzE,CAAC;QACD,YAAY;QACZ,MAAM,SAAS,GAAG,WAAW,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAkB,CAAC;QAC3E,SAAS;QACT,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE;YACzB,GAAG,OAAO;YACV,IAAI;YACJ,SAAS;SACV,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Functionable, IDecoratorUseComposableOptions } from '../index.js';
2
+ export declare function UseComposable(options: IDecoratorUseComposableOptions | Functionable): PropertyDecorator;
3
+ //# sourceMappingURL=useComposable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useComposable.d.ts","sourceRoot":"","sources":["../../../src/decorator/class/useComposable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAE3E,wBAAgB,aAAa,CAAC,OAAO,EAAE,8BAA8B,GAAG,YAAY,GAAG,iBAAiB,CAWvG"}
@@ -0,0 +1,14 @@
1
+ import { appResource } from '../../core/resource.js';
2
+ export function UseComposable(options) {
3
+ return function (target, prop) {
4
+ if (typeof options === 'function') {
5
+ options = { beanComposable: options };
6
+ }
7
+ // record
8
+ appResource.addUse(target, {
9
+ ...options,
10
+ prop,
11
+ });
12
+ };
13
+ }
14
+ //# sourceMappingURL=useComposable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useComposable.js","sourceRoot":"","sources":["../../../src/decorator/class/useComposable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,MAAM,UAAU,aAAa,CAAC,OAAsD;IAClF,OAAO,UAAU,MAAc,EAAE,IAAiB;QAChD,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE,CAAC;YAClC,OAAO,GAAG,EAAE,cAAc,EAAE,OAAO,EAAoC,CAAC;QAC1E,CAAC;QACD,SAAS;QACT,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE;YACzB,GAAG,OAAO;YACV,IAAI;SACL,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Functionable, IDecoratorUseHookOptions } from '../index.js';
2
+ export declare function UseHook(options: IDecoratorUseHookOptions | Functionable): PropertyDecorator;
3
+ //# sourceMappingURL=useHook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHook.d.ts","sourceRoot":"","sources":["../../../src/decorator/class/useHook.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAErE,wBAAgB,OAAO,CAAC,OAAO,EAAE,wBAAwB,GAAG,YAAY,GAAG,iBAAiB,CAW3F"}
@@ -0,0 +1,14 @@
1
+ import { appResource } from '../../core/resource.js';
2
+ export function UseHook(options) {
3
+ return function (target, prop) {
4
+ if (typeof options === 'function') {
5
+ options = { beanHook: options };
6
+ }
7
+ // record
8
+ appResource.addUse(target, {
9
+ ...options,
10
+ prop,
11
+ });
12
+ };
13
+ }
14
+ //# sourceMappingURL=useHook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHook.js","sourceRoot":"","sources":["../../../src/decorator/class/useHook.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,MAAM,UAAU,OAAO,CAAC,OAAgD;IACtE,OAAO,UAAU,MAAc,EAAE,IAAiB;QAChD,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE,CAAC;YAClC,OAAO,GAAG,EAAE,QAAQ,EAAE,OAAO,EAA8B,CAAC;QAC9D,CAAC;QACD,SAAS;QACT,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE;YACzB,GAAG,OAAO;YACV,IAAI;SACL,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { IBeanScopeRecord } from '../../bean/type.js';
2
+ import { IDecoratorUseScopeOptions } from '../index.js';
3
+ export declare function UseScope(options: IDecoratorUseScopeOptions): PropertyDecorator;
4
+ export declare function UseScope<T extends keyof IBeanScopeRecord>(module: T): PropertyDecorator;
5
+ //# sourceMappingURL=useScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScope.d.ts","sourceRoot":"","sources":["../../../src/decorator/class/useScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAExD,wBAAgB,QAAQ,CAAC,OAAO,EAAE,yBAAyB,GAAG,iBAAiB,CAAC;AAChF,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,gBAAgB,EAAE,MAAM,EAAE,CAAC,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { appResource } from '../../core/resource.js';
2
+ export function UseScope(options) {
3
+ return function (target, prop) {
4
+ if (typeof options === 'string') {
5
+ options = { module: options };
6
+ }
7
+ const beanFullName = `${options.module}.scope.module`;
8
+ // record
9
+ appResource.addUse(target, {
10
+ ...options,
11
+ prop,
12
+ beanFullName,
13
+ });
14
+ };
15
+ }
16
+ //# sourceMappingURL=useScope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScope.js","sourceRoot":"","sources":["../../../src/decorator/class/useScope.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAKrD,MAAM,UAAU,QAAQ,CAAC,OAA2C;IAClE,OAAO,UAAU,MAAc,EAAE,IAAiB;QAChD,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YAChC,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,EAA+B,CAAC;QAC7D,CAAC;QACD,MAAM,YAAY,GAAG,GAAG,OAAO,CAAC,MAAM,eAAe,CAAC;QACtD,SAAS;QACT,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE;YACzB,GAAG,OAAO;YACV,IAAI;YACJ,YAAY;SACb,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IDecoratorVirtualOptions } from '../interface/beanOptions.js';
2
+ export declare function Virtual<T>(options?: IDecoratorVirtualOptions): ClassDecorator;
3
+ //# sourceMappingURL=virtual.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtual.d.ts","sourceRoot":"","sources":["../../../src/decorator/class/virtual.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAGvE,wBAAgB,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,wBAAwB,GAAG,cAAc,CAc7E"}
@@ -0,0 +1,19 @@
1
+ import { appResource } from '../../core/resource.js';
2
+ import { Cast } from '../../types/utils/cast.js';
3
+ export function Virtual(options) {
4
+ return function (target) {
5
+ if (!options)
6
+ options = {};
7
+ // add
8
+ appResource.addBean({
9
+ module: Cast(options).module,
10
+ scene: options.scene || 'virtual',
11
+ name: options.name,
12
+ containerScope: options.containerScope,
13
+ markReactive: options.markReactive,
14
+ beanClass: target,
15
+ virtual: true,
16
+ });
17
+ };
18
+ }
19
+ //# sourceMappingURL=virtual.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtual.js","sourceRoot":"","sources":["../../../src/decorator/class/virtual.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAIjD,MAAM,UAAU,OAAO,CAAI,OAAkC;IAC3D,OAAO,UAAU,MAAM;QACrB,IAAI,CAAC,OAAO;YAAE,OAAO,GAAG,EAAE,CAAC;QAC3B,MAAM;QACN,WAAW,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM;YAC5B,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,SAAS;YACjC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,cAAc,EAAE,OAAO,CAAC,cAAc;YACtC,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,SAAS,EAAE,MAAqC;YAChD,OAAO,EAAE,IAAI;SACd,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './class/index.js';
2
+ export * from './interface/beanOptions.js';
3
+ export * from './interface/useOptions.js';
4
+ export * from './type/constructable.js';
5
+ export * from './type/containerScope.js';
6
+ export * from './type/functionable.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decorator/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './class/index.js';
2
+ export * from './interface/beanOptions.js';
3
+ export * from './interface/useOptions.js';
4
+ export * from './type/constructable.js';
5
+ export * from './type/containerScope.js';
6
+ export * from './type/functionable.js';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorator/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC"}