@adaas/a-concept 0.0.32 → 0.0.34

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 (368) hide show
  1. package/README.md +156 -8
  2. package/dist/index.d.ts +3 -1
  3. package/dist/index.js +6 -3
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/base/A-Config/A-Config.container.d.ts +5 -2
  6. package/dist/src/base/A-Config/A-Config.container.js +7 -2
  7. package/dist/src/base/A-Config/A-Config.container.js.map +1 -1
  8. package/dist/src/base/A-Config/components/ConfigReader.component.js +1 -1
  9. package/dist/src/base/A-Config/components/ConfigReader.component.js.map +1 -1
  10. package/dist/src/base/A-Config/components/FileConfigReader.component.js.map +1 -1
  11. package/dist/src/base/A-Errors/A-Errors.component.js +3 -3
  12. package/dist/src/base/A-Errors/A-Errors.component.js.map +1 -1
  13. package/dist/src/base/A-Errors/A-Errors.context.js.map +1 -1
  14. package/dist/src/base/A-Logger/A-Logger.component.js.map +1 -1
  15. package/dist/src/decorators/A-Abstraction/{A-Abstraction.decorator.d.ts → A-Abstraction-Extend.decorator.d.ts} +1 -1
  16. package/dist/src/decorators/A-Abstraction/{A-Abstraction.decorator.js → A-Abstraction-Extend.decorator.js} +6 -6
  17. package/dist/src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.js.map +1 -0
  18. package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.d.ts +1 -1
  19. package/dist/src/decorators/A-Connect/A-Connect.decorator.js.map +1 -1
  20. package/dist/src/decorators/A-Entity/A-Entity.decorator.types.d.ts +1 -1
  21. package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.d.ts +3 -3
  22. package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js +20 -4
  23. package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js.map +1 -1
  24. package/dist/src/decorators/A-Feature/A-Feature.decorator.types.d.ts +3 -2
  25. package/dist/src/decorators/A-Inject/A-Inject.decorator.d.ts +1 -1
  26. package/dist/src/decorators/A-Inject/A-Inject.decorator.js +23 -2
  27. package/dist/src/decorators/A-Inject/A-Inject.decorator.js.map +1 -1
  28. package/dist/src/decorators/A-Inject/A-Inject.decorator.types.d.ts +3 -3
  29. package/dist/src/global/A-Abstraction/A-Abstraction.class.d.ts +40 -0
  30. package/dist/src/global/A-Abstraction/A-Abstraction.class.js +113 -0
  31. package/dist/src/global/A-Abstraction/A-Abstraction.class.js.map +1 -0
  32. package/dist/src/global/A-Abstraction/A-Abstraction.types.d.ts +13 -0
  33. package/dist/src/global/A-Abstraction/A-Abstraction.types.js +11 -0
  34. package/dist/src/global/A-Abstraction/A-Abstraction.types.js.map +1 -0
  35. package/dist/src/global/A-Channel/A-Channel.class.js +0 -1
  36. package/dist/src/global/A-Channel/A-Channel.class.js.map +1 -1
  37. package/dist/src/global/A-Channel/A-Channel.types.d.ts +2 -1
  38. package/dist/src/global/A-Component/A-Component.class.d.ts +5 -30
  39. package/dist/src/global/A-Component/A-Component.class.js +6 -10
  40. package/dist/src/global/A-Component/A-Component.class.js.map +1 -1
  41. package/dist/src/global/A-Component/A-Component.meta.d.ts +9 -2
  42. package/dist/src/global/A-Component/A-Component.meta.js +10 -1
  43. package/dist/src/global/A-Component/A-Component.meta.js.map +1 -1
  44. package/dist/src/global/A-Concept/A_Concept.class.d.ts +43 -20
  45. package/dist/src/global/A-Concept/A_Concept.class.js +77 -65
  46. package/dist/src/global/A-Concept/A_Concept.class.js.map +1 -1
  47. package/dist/src/global/A-Concept/A_Concept.meta.d.ts +10 -0
  48. package/dist/src/global/A-Concept/A_Concept.meta.js +20 -0
  49. package/dist/src/global/A-Concept/A_Concept.meta.js.map +1 -1
  50. package/dist/src/global/A-Concept/A_Concept.types.d.ts +9 -6
  51. package/dist/src/global/A-Container/A-Container.class.d.ts +7 -50
  52. package/dist/src/global/A-Container/A-Container.class.js +9 -19
  53. package/dist/src/global/A-Container/A-Container.class.js.map +1 -1
  54. package/dist/src/global/A-Container/A-Container.meta.d.ts +15 -0
  55. package/dist/src/global/A-Container/A-Container.meta.js +20 -0
  56. package/dist/src/global/A-Container/A-Container.meta.js.map +1 -1
  57. package/dist/src/global/A-Context/A-Context.class.d.ts +21 -21
  58. package/dist/src/global/A-Context/A-Context.class.js +60 -15
  59. package/dist/src/global/A-Context/A-Context.class.js.map +1 -1
  60. package/dist/src/global/A-Entity/A-Entity.class.d.ts +10 -18
  61. package/dist/src/global/A-Entity/A-Entity.class.js +21 -31
  62. package/dist/src/global/A-Entity/A-Entity.class.js.map +1 -1
  63. package/dist/src/global/A-Entity/A-Entity.meta.js.map +1 -1
  64. package/dist/src/global/A-Entity/A-Entity.types.d.ts +3 -2
  65. package/dist/src/global/A-Entity/A-Entity.types.js +1 -0
  66. package/dist/src/global/A-Entity/A-Entity.types.js.map +1 -1
  67. package/dist/src/global/A-Feature/A-Feature.class.d.ts +2 -1
  68. package/dist/src/global/A-Feature/A-Feature.class.js +14 -4
  69. package/dist/src/global/A-Feature/A-Feature.class.js.map +1 -1
  70. package/dist/src/global/A-Feature/A-Feature.types.d.ts +9 -0
  71. package/dist/src/global/A-Feature/A-Feature.types.js.map +1 -1
  72. package/dist/src/global/A-Meta/A-Meta.class.d.ts +1 -0
  73. package/dist/src/global/A-Meta/A-Meta.class.js +3 -6
  74. package/dist/src/global/A-Meta/A-Meta.class.js.map +1 -1
  75. package/dist/src/global/A-Scope/A-Scope.class.d.ts +4 -2
  76. package/dist/src/global/A-Scope/A-Scope.class.js +25 -16
  77. package/dist/src/global/A-Scope/A-Scope.class.js.map +1 -1
  78. package/dist/src/global/A-Scope/A-Scope.types.d.ts +4 -6
  79. package/dist/src/global/A-Stage/A-Stage.class.d.ts +3 -3
  80. package/dist/src/global/A-Stage/A-Stage.class.js +11 -10
  81. package/dist/src/global/A-Stage/A-Stage.class.js.map +1 -1
  82. package/dist/src/global/A-Stage/A-Stage.types.d.ts +1 -1
  83. package/dist/src/global/A-Stage/A-Stage.types.js.map +1 -1
  84. package/dist/src/helpers/StepsManager.class.d.ts +1 -0
  85. package/dist/src/helpers/StepsManager.class.js +10 -7
  86. package/dist/src/helpers/StepsManager.class.js.map +1 -1
  87. package/docs/a-concept-logo.png +0 -0
  88. package/docs/a-logo-docs.png +0 -0
  89. package/examples/fe-be/channels/Test.channel.ts +6 -3
  90. package/examples/simple/components/A.component.ts +7 -0
  91. package/examples/simple/components/B.component.ts +9 -0
  92. package/examples/simple/concept.ts +38 -60
  93. package/examples/simple/containers/Main.container.ts +25 -12
  94. package/examples/simple/entities/EntityA.entity.ts +3 -5
  95. package/examples/simple-http-server/components/http-request-handler.component.ts +6 -4
  96. package/examples/simple-http-server/concept.ts +24 -21
  97. package/examples/simple-http-server/containers/http-server.container.ts +4 -3
  98. package/index.ts +4 -1
  99. package/package.json +6 -2
  100. package/src/base/A-Config/A-Config.container.ts +12 -4
  101. package/src/base/A-Config/components/ConfigReader.component.ts +4 -5
  102. package/src/base/A-Config/components/FileConfigReader.component.ts +0 -2
  103. package/src/base/A-Errors/A-Error.entity.ts +1 -1
  104. package/src/base/A-Errors/A-Errors.component.ts +3 -3
  105. package/src/base/A-Errors/A-Errors.context.ts +2 -1
  106. package/src/base/A-Logger/A-Logger.component.ts +0 -1
  107. package/src/decorators/A-Abstraction/{A-Abstraction.decorator.ts → A-Abstraction-Extend.decorator.ts} +5 -6
  108. package/src/decorators/A-Abstraction/A-Abstraction.decorator.types.ts +1 -1
  109. package/src/decorators/A-Connect/A-Connect.decorator.ts +1 -1
  110. package/src/decorators/A-Entity/A-Entity.decorator.types.ts +1 -1
  111. package/src/decorators/A-Feature/A-Feature-Define.decorator.ts +37 -10
  112. package/src/decorators/A-Feature/A-Feature.decorator.types.ts +12 -12
  113. package/src/decorators/A-Inject/A-Inject.decorator.ts +31 -4
  114. package/src/decorators/A-Inject/A-Inject.decorator.types.ts +4 -3
  115. package/src/global/A-Abstraction/A-Abstraction.class.ts +130 -0
  116. package/src/global/A-Abstraction/A-Abstraction.types.ts +22 -0
  117. package/src/global/A-Channel/A-Channel.class.ts +0 -2
  118. package/src/global/A-Channel/A-Channel.types.ts +2 -1
  119. package/src/global/A-Component/A-Component.class.ts +12 -52
  120. package/src/global/A-Component/A-Component.meta.ts +19 -2
  121. package/src/global/A-Concept/A_Concept.class.ts +109 -111
  122. package/src/global/A-Concept/A_Concept.meta.ts +68 -0
  123. package/src/global/A-Concept/A_Concept.types.ts +11 -4
  124. package/src/global/A-Container/A-Container.class.ts +11 -90
  125. package/src/global/A-Container/A-Container.meta.ts +33 -0
  126. package/src/global/A-Context/A-Context.class.ts +139 -56
  127. package/src/global/A-Entity/A-Entity.class.ts +22 -69
  128. package/src/global/A-Entity/A-Entity.meta.ts +3 -2
  129. package/src/global/A-Entity/A-Entity.types.ts +2 -1
  130. package/src/global/A-Feature/A-Feature.class.ts +18 -7
  131. package/src/global/A-Feature/A-Feature.types.ts +10 -2
  132. package/src/global/A-Meta/A-Meta.class.ts +5 -8
  133. package/src/global/A-Scope/A-Scope.class.ts +40 -21
  134. package/src/global/A-Scope/A-Scope.types.ts +8 -2
  135. package/src/global/A-Stage/A-Stage.class.ts +20 -20
  136. package/src/global/A-Stage/A-Stage.types.ts +2 -3
  137. package/src/helpers/StepsManager.class.ts +11 -7
  138. package/trace-require.js +46 -0
  139. package/tsconfig.build.json +57 -0
  140. package/dist/examples/fe-be/channels/Test.channel.d.ts +0 -6
  141. package/dist/examples/fe-be/channels/Test.channel.js +0 -14
  142. package/dist/examples/fe-be/channels/Test.channel.js.map +0 -1
  143. package/dist/examples/fe-be/components/BE-Controller.component.d.ts +0 -4
  144. package/dist/examples/fe-be/components/BE-Controller.component.js +0 -24
  145. package/dist/examples/fe-be/components/BE-Controller.component.js.map +0 -1
  146. package/dist/examples/fe-be/components/FE.component.d.ts +0 -4
  147. package/dist/examples/fe-be/components/FE.component.js +0 -31
  148. package/dist/examples/fe-be/components/FE.component.js.map +0 -1
  149. package/dist/examples/fe-be/components/UserActions.component.d.ts +0 -5
  150. package/dist/examples/fe-be/components/UserActions.component.js +0 -25
  151. package/dist/examples/fe-be/components/UserActions.component.js.map +0 -1
  152. package/dist/examples/fe-be/concept.d.ts +0 -0
  153. package/dist/examples/fe-be/concept.js +0 -2
  154. package/dist/examples/fe-be/concept.js.map +0 -1
  155. package/dist/examples/fe-be/containers/ServerApp.container.d.ts +0 -3
  156. package/dist/examples/fe-be/containers/ServerApp.container.js +0 -8
  157. package/dist/examples/fe-be/containers/ServerApp.container.js.map +0 -1
  158. package/dist/examples/fe-be/containers/WebApp.container.d.ts +0 -3
  159. package/dist/examples/fe-be/containers/WebApp.container.js +0 -8
  160. package/dist/examples/fe-be/containers/WebApp.container.js.map +0 -1
  161. package/dist/examples/multi-container/channels/Direct.channel.d.ts +0 -9
  162. package/dist/examples/multi-container/channels/Direct.channel.js +0 -32
  163. package/dist/examples/multi-container/channels/Direct.channel.js.map +0 -1
  164. package/dist/examples/multi-container/concept.d.ts +0 -0
  165. package/dist/examples/multi-container/concept.js +0 -2
  166. package/dist/examples/multi-container/concept.js.map +0 -1
  167. package/dist/examples/multi-container/containers/Command.container.d.ts +0 -11
  168. package/dist/examples/multi-container/containers/Command.container.js +0 -51
  169. package/dist/examples/multi-container/containers/Command.container.js.map +0 -1
  170. package/dist/examples/multi-container/containers/Schedule.container.d.ts +0 -15
  171. package/dist/examples/multi-container/containers/Schedule.container.js +0 -67
  172. package/dist/examples/multi-container/containers/Schedule.container.js.map +0 -1
  173. package/dist/examples/sdk/concept.d.ts +0 -0
  174. package/dist/examples/sdk/concept.js +0 -21
  175. package/dist/examples/sdk/concept.js.map +0 -1
  176. package/dist/examples/sdk/orders.api.d.ts +0 -0
  177. package/dist/examples/sdk/orders.api.js +0 -16
  178. package/dist/examples/sdk/orders.api.js.map +0 -1
  179. package/dist/examples/sdk/users.api.d.ts +0 -0
  180. package/dist/examples/sdk/users.api.js +0 -16
  181. package/dist/examples/sdk/users.api.js.map +0 -1
  182. package/dist/examples/simple/components/A.component.d.ts +0 -9
  183. package/dist/examples/simple/components/A.component.js +0 -60
  184. package/dist/examples/simple/components/A.component.js.map +0 -1
  185. package/dist/examples/simple/components/B.component.d.ts +0 -13
  186. package/dist/examples/simple/components/B.component.js +0 -88
  187. package/dist/examples/simple/components/B.component.js.map +0 -1
  188. package/dist/examples/simple/concept.d.ts +0 -1
  189. package/dist/examples/simple/concept.js +0 -82
  190. package/dist/examples/simple/concept.js.map +0 -1
  191. package/dist/examples/simple/containers/Main.container.d.ts +0 -11
  192. package/dist/examples/simple/containers/Main.container.js +0 -86
  193. package/dist/examples/simple/containers/Main.container.js.map +0 -1
  194. package/dist/examples/simple/context/Fragment_A.context.d.ts +0 -6
  195. package/dist/examples/simple/context/Fragment_A.context.js +0 -16
  196. package/dist/examples/simple/context/Fragment_A.context.js.map +0 -1
  197. package/dist/examples/simple/context/Fragment_B.context.d.ts +0 -6
  198. package/dist/examples/simple/context/Fragment_B.context.js +0 -16
  199. package/dist/examples/simple/context/Fragment_B.context.js.map +0 -1
  200. package/dist/examples/simple/entities/EntityA.entity.d.ts +0 -8
  201. package/dist/examples/simple/entities/EntityA.entity.js +0 -22
  202. package/dist/examples/simple/entities/EntityA.entity.js.map +0 -1
  203. package/dist/examples/simple-http-server/components/http-error-handler.component.d.ts +0 -10
  204. package/dist/examples/simple-http-server/components/http-error-handler.component.js +0 -65
  205. package/dist/examples/simple-http-server/components/http-error-handler.component.js.map +0 -1
  206. package/dist/examples/simple-http-server/components/http-request-handler.component.d.ts +0 -3
  207. package/dist/examples/simple-http-server/components/http-request-handler.component.js +0 -8
  208. package/dist/examples/simple-http-server/components/http-request-handler.component.js.map +0 -1
  209. package/dist/examples/simple-http-server/concept.d.ts +0 -1
  210. package/dist/examples/simple-http-server/concept.js +0 -35
  211. package/dist/examples/simple-http-server/concept.js.map +0 -1
  212. package/dist/examples/simple-http-server/containers/http-server.container.d.ts +0 -11
  213. package/dist/examples/simple-http-server/containers/http-server.container.js +0 -73
  214. package/dist/examples/simple-http-server/containers/http-server.container.js.map +0 -1
  215. package/dist/examples/simple-http-server/containers/http-server.controller.d.ts +0 -7
  216. package/dist/examples/simple-http-server/containers/http-server.controller.js +0 -37
  217. package/dist/examples/simple-http-server/containers/http-server.controller.js.map +0 -1
  218. package/dist/examples/simple-http-server/containers/http-server.router.d.ts +0 -6
  219. package/dist/examples/simple-http-server/containers/http-server.router.js +0 -39
  220. package/dist/examples/simple-http-server/containers/http-server.router.js.map +0 -1
  221. package/dist/examples/simple-http-server/contexts/http-request.context.d.ts +0 -12
  222. package/dist/examples/simple-http-server/contexts/http-request.context.js +0 -49
  223. package/dist/examples/simple-http-server/contexts/http-request.context.js.map +0 -1
  224. package/dist/examples/simple-http-server/contexts/http-server.context.types.d.ts +0 -0
  225. package/dist/examples/simple-http-server/contexts/http-server.context.types.js +0 -2
  226. package/dist/examples/simple-http-server/contexts/http-server.context.types.js.map +0 -1
  227. package/dist/examples/simple-http-server/contexts/http-server.namespace.d.ts +0 -10
  228. package/dist/examples/simple-http-server/contexts/http-server.namespace.js +0 -26
  229. package/dist/examples/simple-http-server/contexts/http-server.namespace.js.map +0 -1
  230. package/dist/examples/simple-http-server/controllers/orders.controller.d.ts +0 -5
  231. package/dist/examples/simple-http-server/controllers/orders.controller.js +0 -32
  232. package/dist/examples/simple-http-server/controllers/orders.controller.js.map +0 -1
  233. package/dist/examples/simple-http-server/controllers/users.controller.d.ts +0 -0
  234. package/dist/examples/simple-http-server/controllers/users.controller.js +0 -87
  235. package/dist/examples/simple-http-server/controllers/users.controller.js.map +0 -1
  236. package/dist/examples/simple-http-server/modules/simple-http-server.context.d.ts +0 -5
  237. package/dist/examples/simple-http-server/modules/simple-http-server.context.js +0 -25
  238. package/dist/examples/simple-http-server/modules/simple-http-server.context.js.map +0 -1
  239. package/dist/examples/simple-http-server/modules/simple-http-server.module.d.ts +0 -16
  240. package/dist/examples/simple-http-server/modules/simple-http-server.module.js +0 -8
  241. package/dist/examples/simple-http-server/modules/simple-http-server.module.js.map +0 -1
  242. package/dist/examples/simple-http-server/modules/simple-http-server.types.d.ts +0 -2
  243. package/dist/examples/simple-http-server/modules/simple-http-server.types.js +0 -3
  244. package/dist/examples/simple-http-server/modules/simple-http-server.types.js.map +0 -1
  245. package/dist/examples/simple-http-server/test.d.ts +0 -68
  246. package/dist/examples/simple-http-server/test.js +0 -162
  247. package/dist/examples/simple-http-server/test.js.map +0 -1
  248. package/dist/src/containers/A-Config/A-Config.container.d.ts +0 -7
  249. package/dist/src/containers/A-Config/A-Config.container.js +0 -65
  250. package/dist/src/containers/A-Config/A-Config.container.js.map +0 -1
  251. package/dist/src/containers/A-Config/A-Config.namespace.d.ts +0 -28
  252. package/dist/src/containers/A-Config/A-Config.namespace.js +0 -54
  253. package/dist/src/containers/A-Config/A-Config.namespace.js.map +0 -1
  254. package/dist/src/containers/A-Config/A-Config.types.d.ts +0 -12
  255. package/dist/src/containers/A-Config/A-Config.types.js +0 -3
  256. package/dist/src/containers/A-Config/A-Config.types.js.map +0 -1
  257. package/dist/src/containers/A-Config/components/ConfigReader.component.d.ts +0 -18
  258. package/dist/src/containers/A-Config/components/ConfigReader.component.js +0 -37
  259. package/dist/src/containers/A-Config/components/ConfigReader.component.js.map +0 -1
  260. package/dist/src/containers/A-Config/components/ENVConfigReader.component.d.ts +0 -10
  261. package/dist/src/containers/A-Config/components/ENVConfigReader.component.js +0 -37
  262. package/dist/src/containers/A-Config/components/ENVConfigReader.component.js.map +0 -1
  263. package/dist/src/containers/A-Config/components/FileConfigReader.component.d.ts +0 -11
  264. package/dist/src/containers/A-Config/components/FileConfigReader.component.js +0 -47
  265. package/dist/src/containers/A-Config/components/FileConfigReader.component.js.map +0 -1
  266. package/dist/src/containers/A-Errors/A-Errors.container.d.ts +0 -5
  267. package/dist/src/containers/A-Errors/A-Errors.container.js +0 -32
  268. package/dist/src/containers/A-Errors/A-Errors.container.js.map +0 -1
  269. package/dist/src/containers/A-Errors/A-Errors.namespace.d.ts +0 -40
  270. package/dist/src/containers/A-Errors/A-Errors.namespace.js +0 -76
  271. package/dist/src/containers/A-Errors/A-Errors.namespace.js.map +0 -1
  272. package/dist/src/containers/A-Errors/A-Errors.types.d.ts +0 -5
  273. package/dist/src/containers/A-Errors/A-Errors.types.js +0 -3
  274. package/dist/src/containers/A-Errors/A-Errors.types.js.map +0 -1
  275. package/dist/src/containers/A-Logger/A-Logger.container.d.ts +0 -6
  276. package/dist/src/containers/A-Logger/A-Logger.container.js +0 -41
  277. package/dist/src/containers/A-Logger/A-Logger.container.js.map +0 -1
  278. package/dist/src/containers/A-Logger/A-Logger.namespace.d.ts +0 -17
  279. package/dist/src/containers/A-Logger/A-Logger.namespace.js +0 -22
  280. package/dist/src/containers/A-Logger/A-Logger.namespace.js.map +0 -1
  281. package/dist/src/containers/A-Logger/A-Logger.types.d.ts +0 -0
  282. package/dist/src/containers/A-Logger/A-Logger.types.js +0 -2
  283. package/dist/src/containers/A-Logger/A-Logger.types.js.map +0 -1
  284. package/dist/src/containers/A-Logger/components/Logger.component.d.ts +0 -29
  285. package/dist/src/containers/A-Logger/components/Logger.component.js +0 -128
  286. package/dist/src/containers/A-Logger/components/Logger.component.js.map +0 -1
  287. package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.js.map +0 -1
  288. package/dist/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.d.ts +0 -34
  289. package/dist/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.js +0 -3
  290. package/dist/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.js.map +0 -1
  291. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.d.ts +0 -11
  292. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.js +0 -36
  293. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.js.map +0 -1
  294. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.d.ts +0 -7
  295. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.js +0 -3
  296. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.js.map +0 -1
  297. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.d.ts +0 -17
  298. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.js +0 -42
  299. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.js.map +0 -1
  300. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.d.ts +0 -8
  301. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.js +0 -3
  302. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.js.map +0 -1
  303. package/dist/src/decorators/A-ConceptLifecycle/index.d.ts +0 -7
  304. package/dist/src/decorators/A-ConceptLifecycle/index.js +0 -11
  305. package/dist/src/decorators/A-ConceptLifecycle/index.js.map +0 -1
  306. package/dist/src/decorators/A-Define/Feature/Feature.decorator.d.ts +0 -16
  307. package/dist/src/decorators/A-Define/Feature/Feature.decorator.js +0 -36
  308. package/dist/src/decorators/A-Define/Feature/Feature.decorator.js.map +0 -1
  309. package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.d.ts +0 -8
  310. package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.js +0 -3
  311. package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.js.map +0 -1
  312. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.d.ts +0 -14
  313. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.js +0 -24
  314. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.js.map +0 -1
  315. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.d.ts +0 -8
  316. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.js +0 -3
  317. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.js.map +0 -1
  318. package/dist/src/decorators/A-Define/index.d.ts +0 -7
  319. package/dist/src/decorators/A-Define/index.js +0 -10
  320. package/dist/src/decorators/A-Define/index.js.map +0 -1
  321. package/dist/src/decorators/A-Extend/A-Extend.decorator.d.ts +0 -18
  322. package/dist/src/decorators/A-Extend/A-Extend.decorator.js +0 -37
  323. package/dist/src/decorators/A-Extend/A-Extend.decorator.js.map +0 -1
  324. package/dist/src/decorators/A-Extend/A-Extend.decorator.types.d.ts +0 -21
  325. package/dist/src/decorators/A-Extend/A-Extend.decorator.types.js +0 -3
  326. package/dist/src/decorators/A-Extend/A-Extend.decorator.types.js.map +0 -1
  327. package/dist/src/decorators/A-Feature/A-Feature.decorator.d.ts +0 -0
  328. package/dist/src/decorators/A-Feature/A-Feature.decorator.js +0 -11
  329. package/dist/src/decorators/A-Feature/A-Feature.decorator.js.map +0 -1
  330. package/dist/src/decorators/A-Stage/A-Stage.decorator.d.ts +0 -13
  331. package/dist/src/decorators/A-Stage/A-Stage.decorator.js +0 -52
  332. package/dist/src/decorators/A-Stage/A-Stage.decorator.js.map +0 -1
  333. package/dist/src/decorators/A-Stage/A-Stage.decorator.types.d.ts +0 -2
  334. package/dist/src/decorators/A-Stage/A-Stage.decorator.types.js +0 -3
  335. package/dist/src/decorators/A-Stage/A-Stage.decorator.types.js.map +0 -1
  336. package/dist/src/decorators/A_ConceptMethods.decorator.d.ts +0 -0
  337. package/dist/src/decorators/A_ConceptMethods.decorator.js +0 -2
  338. package/dist/src/decorators/A_ConceptMethods.decorator.js.map +0 -1
  339. package/dist/src/decorators/A_Lazy.decorator.d.ts +0 -5
  340. package/dist/src/decorators/A_Lazy.decorator.js +0 -20
  341. package/dist/src/decorators/A_Lazy.decorator.js.map +0 -1
  342. package/dist/src/global/A-Context/A-ContextFragment.class.d.ts +0 -12
  343. package/dist/src/global/A-Context/A-ContextFragment.class.js +0 -19
  344. package/dist/src/global/A-Context/A-ContextFragment.class.js.map +0 -1
  345. package/dist/src/global/A-Namespace/A_Namespace.class.d.ts +0 -47
  346. package/dist/src/global/A-Namespace/A_Namespace.class.js +0 -112
  347. package/dist/src/global/A-Namespace/A_Namespace.class.js.map +0 -1
  348. package/dist/src/global/A-Namespace/A_Namespace.types.d.ts +0 -19
  349. package/dist/src/global/A-Namespace/A_Namespace.types.js +0 -3
  350. package/dist/src/global/A-Namespace/A_Namespace.types.js.map +0 -1
  351. package/dist/src/managers/A_DependencyManager.class.d.ts +0 -24
  352. package/dist/src/managers/A_DependencyManager.class.js +0 -129
  353. package/dist/src/managers/A_DependencyManager.class.js.map +0 -1
  354. package/dist/src/storage/A_Component.storage.d.ts +0 -10
  355. package/dist/src/storage/A_Component.storage.js +0 -17
  356. package/dist/src/storage/A_Component.storage.js.map +0 -1
  357. package/dist/src/storage/A_Concept.storage.d.ts +0 -19
  358. package/dist/src/storage/A_Concept.storage.js +0 -29
  359. package/dist/src/storage/A_Concept.storage.js.map +0 -1
  360. package/dist/src/storage/A_Container.storage.d.ts +0 -8
  361. package/dist/src/storage/A_Container.storage.js +0 -17
  362. package/dist/src/storage/A_Container.storage.js.map +0 -1
  363. package/dist/src/storage/A_Inject.storage.d.ts +0 -9
  364. package/dist/src/storage/A_Inject.storage.js +0 -13
  365. package/dist/src/storage/A_Inject.storage.js.map +0 -1
  366. package/dist/src/types/A_DependencyManager.types.d.ts +0 -15
  367. package/dist/src/types/A_DependencyManager.types.js +0 -3
  368. package/dist/src/types/A_DependencyManager.types.js.map +0 -1
@@ -7,7 +7,11 @@ import {
7
7
  } from "../A-Component/A-Component.types";
8
8
  import { A_Component } from "../A-Component/A-Component.class";
9
9
  import { A_Entity } from "../A-Entity/A-Entity.class";
10
- import { A_TYPES__A_InjectDecorator_EntityInjectionInstructions, A_TYPES__A_InjectDecorator_EntityInjectionQuery, A_TYPES__A_InjectDecorator_Injectable } from "@adaas/a-concept/decorators/A-Inject/A-Inject.decorator.types";
10
+ import {
11
+ A_TYPES__A_InjectDecorator_EntityInjectionInstructions,
12
+ A_TYPES__A_InjectDecorator_Injectable
13
+ } from "@adaas/a-concept/decorators/A-Inject/A-Inject.decorator.types";
14
+
11
15
 
12
16
  /**
13
17
  *
@@ -24,13 +28,13 @@ import { A_TYPES__A_InjectDecorator_EntityInjectionInstructions, A_TYPES__A_Inje
24
28
  */
25
29
  export class A_Scope {
26
30
 
27
- name: string = '';
31
+ readonly name: string = '';
28
32
 
29
33
  private _components: WeakMap<typeof A_Component.constructor, any> = new WeakMap();
30
34
  private _fragments: WeakMap<typeof A_Fragment.constructor, any> = new WeakMap();
31
35
  private _entities: Map<string, A_Entity> = new Map();
32
36
 
33
- private parent?: A_Scope;
37
+ private _parent?: A_Scope;
34
38
 
35
39
  protected params!: A_TYPES__ScopeConstructor
36
40
 
@@ -46,8 +50,9 @@ export class A_Scope {
46
50
  name: '',
47
51
  components: [],
48
52
  fragments: [],
49
- import: [],
50
- export: [],
53
+ entities: [],
54
+ // import: [],
55
+ // export: [],
51
56
  };
52
57
 
53
58
 
@@ -58,9 +63,10 @@ export class A_Scope {
58
63
 
59
64
  this.initComponents(params.components || []);
60
65
  this.initFragments(params.fragments || []);
66
+ this.initEntities(params.entities || []);
61
67
 
62
68
  if (config.parent) {
63
- this.parent = config.parent;
69
+ this._parent = config.parent;
64
70
  }
65
71
  }
66
72
 
@@ -90,6 +96,19 @@ export class A_Scope {
90
96
  }
91
97
 
92
98
 
99
+ parent(setValue: A_Scope): void
100
+ parent(): A_Scope
101
+ parent(
102
+ setValue?: A_Scope
103
+ ): A_Scope | undefined {
104
+ if (setValue) {
105
+ this._parent = setValue;
106
+ return;
107
+ }
108
+
109
+ return this._parent;
110
+ }
111
+
93
112
 
94
113
  /**
95
114
  * This method is used to check if the component is available in the scope
@@ -116,8 +135,8 @@ export class A_Scope {
116
135
  case A_CommonHelper.isInheritedFrom(entity, A_Component): {
117
136
  const found = this.params.components.includes(entity as { new(...args: any[]): A_Component });
118
137
 
119
- if (!found && !!this.parent)
120
- return this.parent.has(entity as any);
138
+ if (!found && !!this._parent)
139
+ return this._parent.has(entity as any);
121
140
 
122
141
  return found;
123
142
  }
@@ -133,8 +152,8 @@ export class A_Scope {
133
152
  case A_CommonHelper.isInheritedFrom(entity, A_Fragment): {
134
153
  const found = this._fragments.has(entity);
135
154
 
136
- if (!found && !!this.parent)
137
- return this.parent.has(entity as any);
155
+ if (!found && !!this._parent)
156
+ return this._parent.has(entity as any);
138
157
 
139
158
  return found;
140
159
  }
@@ -198,6 +217,8 @@ export class A_Scope {
198
217
  component: T,
199
218
  instructions?: Partial<A_TYPES__A_InjectDecorator_EntityInjectionInstructions>
200
219
  ): InstanceType<T> {
220
+
221
+
201
222
  switch (true) {
202
223
  case A_CommonHelper.isInheritedFrom(component, A_Entity): {
203
224
  return this.resolveEntity(component as typeof A_Entity, instructions) as InstanceType<T>;
@@ -241,8 +262,8 @@ export class A_Scope {
241
262
  case !!found:
242
263
  return found as InstanceType<T>;
243
264
 
244
- case !found && !!this.parent:
245
- return this.parent.resolveEntity(entity, instructions);
265
+ case !found && !!this._parent:
266
+ return this._parent.resolveEntity(entity, instructions);
246
267
 
247
268
  default:
248
269
  throw new Error(`Fragment ${entity.name} not found in the scope ${this.name}`);
@@ -290,8 +311,8 @@ export class A_Scope {
290
311
  case fragmentInstancePresented && !this._fragments.has(fragment):
291
312
  return this.fragments.find(fr => fr instanceof fragment) as InstanceType<T>;
292
313
 
293
- case !fragmentInstancePresented && !!this.parent:
294
- return this.parent.resolveFragment(fragment);
314
+ case !fragmentInstancePresented && !!this._parent:
315
+ return this._parent.resolveFragment(fragment);
295
316
 
296
317
  default:
297
318
  throw new Error(`Fragment ${fragment.name} not found in the scope ${this.name}`);
@@ -308,11 +329,9 @@ export class A_Scope {
308
329
  new(...args: any[]): T
309
330
  }): T {
310
331
 
311
- // The idea here that in case when Scope has no exact component we have to resolve it from the parent
312
- // BUT: if it's not presented in parent we have to check for inheritance
332
+ // The idea here that in case when Scope has no exact component we have to resolve it from the _parent
333
+ // BUT: if it's not presented in _parent we have to check for inheritance
313
334
  // That means that we should ensure that there's no components that are children of the required component
314
-
315
-
316
335
  switch (true) {
317
336
  // In case when the component is available and exists in the scope
318
337
  case this.components.includes(component) && this._components.has(component): {
@@ -352,9 +371,9 @@ export class A_Scope {
352
371
  return this.resolveComponent<T>(found as any);
353
372
  }
354
373
 
355
- // In case when the component is not available in the scope but the parent is available
356
- case !this.components.includes(component) && !!this.parent: {
357
- return this.parent.resolveComponent(component);
374
+ // In case when the component is not available in the scope but the _parent is available
375
+ case !this.components.includes(component) && !!this._parent: {
376
+ return this._parent.resolveComponent(component);
358
377
  }
359
378
 
360
379
  default:
@@ -1,4 +1,5 @@
1
1
  import { A_Component } from "../A-Component/A-Component.class"
2
+ import { A_Entity } from "../A-Entity/A-Entity.class"
2
3
  import { A_Fragment } from "../A-Fragment/A-Fragment.class"
3
4
  import { A_Scope } from "./A-Scope.class"
4
5
 
@@ -18,15 +19,20 @@ export type A_TYPES__ScopeConstructor = {
18
19
  */
19
20
  components: Array<{ new(...args: any[]): A_Component }>
20
21
 
22
+ /**
23
+ * A set of Entities available in the Scope
24
+ *
25
+ */
26
+ entities: Array<A_Entity>
21
27
 
22
28
  /**
23
29
  * A list of Features/Lifecycle Hooks available in the Scope
24
30
  */
25
- import: Array<string>,
31
+ // import: Array<string>,
26
32
  /**
27
33
  * A list of Features/Lifecycle Hooks available to be exported from the Scope
28
34
  */
29
- export: Array<string>
35
+ // export: Array<string>
30
36
  }
31
37
 
32
38
 
@@ -5,7 +5,6 @@ import { A_TYPES__A_Stage_JSON, A_TYPES__A_Stage_Status, A_TYPES__A_StageStep }
5
5
  import { A_Container } from "../A-Container/A-Container.class";
6
6
 
7
7
 
8
-
9
8
  /**
10
9
  * A_Stage is a set of A_Functions within A_Feature that should be run in a specific order.
11
10
  * Each stage may contain one or more functions.
@@ -53,21 +52,20 @@ export class A_Stage {
53
52
  * @returns
54
53
  */
55
54
  protected async getStepArgs(step: A_TYPES__A_StageStep) {
56
-
57
- const target = step.component instanceof A_Container ?
58
- step.component.constructor : step.component;
59
-
60
- return A_Context
61
- .meta(target)
62
- .injections(
63
- step.handler
64
- )
65
- .map(async arg =>
66
- // In case if the target is a feature step then pass the current feature
67
- A_CommonHelper.isInheritedFrom(arg.target, A_Feature)
68
- ? this
69
- : A_Context.scope(this.feature).resolve(arg.target)
70
- );
55
+ return Promise
56
+ .all(A_Context
57
+ .meta(
58
+ step.component instanceof A_Container
59
+ ? step.component.constructor
60
+ : step.component
61
+ )
62
+ .injections(step.handler)
63
+ .map(async arg =>
64
+ // In case if the target is a feature step then pass the current feature
65
+ A_CommonHelper.isInheritedFrom(arg.target, A_Feature)
66
+ ? this.feature
67
+ : A_Context.scope(this.feature).resolve(arg.target)
68
+ ));
71
69
  }
72
70
 
73
71
 
@@ -95,6 +93,7 @@ export class A_Stage {
95
93
  protected getStepInstance(step: A_TYPES__A_StageStep) {
96
94
  const { component, handler } = step;
97
95
 
96
+
98
97
  // TODO: probably would be better to do it another way. let's think about it
99
98
  const instance = component instanceof A_Container
100
99
  ? component
@@ -117,11 +116,12 @@ export class A_Stage {
117
116
  * @param step
118
117
  * @returns
119
118
  */
120
- protected async getStepHandler(step: A_TYPES__A_StageStep) {
119
+ protected async callStepHandler(step: A_TYPES__A_StageStep) {
121
120
 
122
- const instance = this.getStepInstance(step);
121
+ const instance = await this.getStepInstance(step);
123
122
  const callArgs = await this.getStepArgs(step);
124
123
 
124
+
125
125
  return instance[step.handler](...callArgs);
126
126
 
127
127
  }
@@ -148,14 +148,14 @@ export class A_Stage {
148
148
  .all([
149
149
 
150
150
  // Run async steps that are independent of each other
151
- ...asyncSteps.map(step => this.getStepHandler(step)),
151
+ ...asyncSteps.map(step => this.callStepHandler(step)),
152
152
 
153
153
  // Run sync steps that are dependent on each other
154
154
  new Promise<void>(
155
155
  async (r, j) => {
156
156
  try {
157
157
  for (const step of syncSteps) {
158
- await this.getStepHandler(step);
158
+ await this.callStepHandler(step);
159
159
  }
160
160
 
161
161
  return r();
@@ -1,7 +1,6 @@
1
- import { A_TYPES__A_InjectDecorator_Meta } from "@adaas/a-concept/decorators/A-Inject/A-Inject.decorator.types"
2
1
  import { A_Component } from "../A-Component/A-Component.class"
3
2
  import { A_Container } from "../A-Container/A-Container.class"
4
- import { A_TYPES__A_ExtendDecorator_BehaviorConfig, A_TYPES__A_ExtendDecorator_Meta } from "@adaas/a-concept/decorators/A-Feature/A-Feature.decorator.types"
3
+ import { A_TYPES__A_ExtendDecorator_BehaviorConfig } from "@adaas/a-concept/decorators/A-Feature/A-Feature.decorator.types"
5
4
 
6
5
 
7
6
 
@@ -66,7 +65,7 @@ export type A_TYPES__A_StageStep = {
66
65
  /**
67
66
  * The component to be called
68
67
  */
69
- component: typeof A_Component<any> | typeof A_Container<any> | A_Container<any>
68
+ component: typeof A_Component | A_Container
70
69
 
71
70
  /**
72
71
  * The method to be called on the component
@@ -17,11 +17,16 @@ export class StepsManager {
17
17
  this.visited = new Set();
18
18
  this.tempMark = new Set();
19
19
  this.sortedEntities = [];
20
+
21
+ }
22
+
23
+ private ID(step: A_TYPES__A_StageStep) {
24
+ return `${step.component.name}.${step.handler}`;
20
25
  }
21
26
 
22
27
  private buildGraph() {
23
28
  // Initialize graph nodes
24
- this.entities.forEach(entity => this.graph.set(entity.name, new Set()));
29
+ this.entities.forEach(entity => this.graph.set(this.ID(entity), new Set()));
25
30
 
26
31
  // Add directed edges based on 'before' and 'after'
27
32
  this.entities.forEach(entity => {
@@ -51,8 +56,8 @@ export class StepsManager {
51
56
  private matchEntities(pattern) {
52
57
  const regex = new RegExp(`^${pattern}$`);
53
58
  return this.entities
54
- .filter(entity => regex.test(entity.name))
55
- .map(entity => entity.name);
59
+ .filter(entity => regex.test(this.ID(entity)))
60
+ .map(entity => this.ID(entity));
56
61
  }
57
62
 
58
63
  // Topological sort with cycle detection
@@ -74,16 +79,15 @@ export class StepsManager {
74
79
 
75
80
  // Start topological sort
76
81
  this.entities.forEach(entity => {
77
- if (!this.visited.has(entity.name)) this.visit(entity.name);
82
+ if (!this.visited.has(this.ID(entity))) this.visit(this.ID(entity));
78
83
  });
79
84
 
80
85
  const stages: A_Stage[] = [];
81
86
 
82
87
  // Map sorted names back to entity objects
83
88
  this.sortedEntities
84
- .map(name => {
85
-
86
- const step = this.entities.find(entity => entity.name === name)!;
89
+ .map(id => {
90
+ const step = this.entities.find(entity => this.ID(entity) === id)!;
87
91
 
88
92
  let stage = stages.find(stage => {
89
93
  return stage.after.every(after => step.after.includes(after))
@@ -0,0 +1,46 @@
1
+ const Module = require("module");
2
+ const path = require("path");
3
+
4
+ // Colors (ANSI escape codes)
5
+ const colors = {
6
+ reset: "\x1b[0m",
7
+ gray: "\x1b[90m",
8
+ green: "\x1b[32m",
9
+ cyan: "\x1b[36m",
10
+ yellow: "\x1b[33m",
11
+ };
12
+
13
+ // Indent helper
14
+ function indent(level) {
15
+ return " ".repeat(level);
16
+ }
17
+
18
+ const originalLoad = Module._load;
19
+ let stack = [];
20
+
21
+ Module._load = function (request, parent, isMain) {
22
+ const resolved = Module._resolveFilename(request, parent);
23
+ const parentFile = parent && parent.filename ? parent.filename : "<root>";
24
+ const depth = stack.length;
25
+
26
+ let color = colors.gray;
27
+ let label = resolved;
28
+
29
+ if (resolved.includes("/src/")) {
30
+ color = colors.green; // project source
31
+ label = path.relative(process.cwd(), resolved);
32
+ } else if (resolved.includes("node_modules")) {
33
+ color = colors.cyan; // external deps
34
+ label = path.relative(process.cwd(), resolved);
35
+ } else {
36
+ color = colors.yellow; // stdlib / others
37
+ }
38
+
39
+ console.log(indent(depth) + color + label + colors.reset);
40
+
41
+ stack.push(resolved);
42
+ const result = originalLoad.apply(this, arguments);
43
+ stack.pop();
44
+
45
+ return result;
46
+ };
@@ -0,0 +1,57 @@
1
+ {
2
+ "compileOnSave": false,
3
+ "compilerOptions": {
4
+ "outDir": "dist",
5
+ "strict": true,
6
+ "noImplicitAny": false,
7
+ "noFallthroughCasesInSwitch": true,
8
+ "downlevelIteration": true,
9
+ "strictFunctionTypes": true,
10
+ "strictNullChecks": true,
11
+ "strictPropertyInitialization": true,
12
+ "forceConsistentCasingInFileNames": true,
13
+ "resolveJsonModule": true,
14
+ "noErrorTruncation": true,
15
+ "jsx": "react",
16
+ "target": "es2015",
17
+ "module": "commonjs",
18
+ "moduleResolution": "node",
19
+ "allowSyntheticDefaultImports": true,
20
+ "esModuleInterop": true,
21
+ "noUnusedLocals": false,
22
+ "noUnusedParameters": false,
23
+ "removeComments": false,
24
+ "preserveConstEnums": true,
25
+ "sourceMap": true,
26
+ "baseUrl": ".",
27
+ "experimentalDecorators": true,
28
+ "skipLibCheck": true,
29
+ "typeRoots": [
30
+ "node_modules/@types"
31
+ ],
32
+ "paths": {
33
+ "@adaas/a-concept/constants/*": ["src/constants/*"],
34
+ "@adaas/a-concept/global/*": ["src/global/*"],
35
+ "@adaas/a-concept/types/*": ["src/types/*"],
36
+ "@adaas/a-concept/helpers/*": ["src/helpers/*"],
37
+ "@adaas/a-concept/decorators/*": ["src/decorators/*"],
38
+ "@adaas/a-concept/base/*": ["src/base/*"]
39
+ },
40
+ "lib": [
41
+ "dom",
42
+ "esnext.asynciterable",
43
+ "es2015",
44
+ "es2016",
45
+ "es2017.object"
46
+ ]
47
+ },
48
+ "include": [
49
+ "src/**/*",
50
+ "index.ts"
51
+ ],
52
+ "exclude": [
53
+ "node_modules/**/*",
54
+ "dist/**/*",
55
+ "node_modules/@types/mocha/index.d.ts"
56
+ ]
57
+ }
@@ -1,6 +0,0 @@
1
- import { A_Channel } from "../../../src/global/A-Channel/A-Channel.class";
2
- export declare class TestChannel extends A_Channel<any> {
3
- getVersion(params: any): void;
4
- getUser(): void;
5
- getPage(): void;
6
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TestChannel = void 0;
4
- const A_Channel_class_1 = require("../../../src/global/A-Channel/A-Channel.class");
5
- class TestChannel extends A_Channel_class_1.A_Channel {
6
- getVersion(params) {
7
- }
8
- getUser() {
9
- }
10
- getPage() {
11
- }
12
- }
13
- exports.TestChannel = TestChannel;
14
- //# sourceMappingURL=Test.channel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Test.channel.js","sourceRoot":"","sources":["../../../../examples/fe-be/channels/Test.channel.ts"],"names":[],"mappings":";;;AAAA,uFAA8E;AAG9E,MAAa,WAAY,SAAQ,2BAAc;IAG3C,UAAU,CACN,MAAM;IAGV,CAAC;IAGD,OAAO;IAEP,CAAC;IAGD,OAAO;IACP,CAAC;CAIJ;AApBD,kCAoBC"}
@@ -1,4 +0,0 @@
1
- import { A_Component } from "../../../src/global/A-Component/A-Component.class";
2
- export declare class BEController extends A_Component {
3
- getOrdersCount(): number;
4
- }
@@ -1,24 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.BEController = void 0;
10
- const A_Component_class_1 = require("../../../src/global/A-Component/A-Component.class");
11
- const A_Feature_class_1 = require("../../../src/global/A-Feature/A-Feature.class");
12
- class BEController extends A_Component_class_1.A_Component {
13
- getOrdersCount() {
14
- return 0;
15
- }
16
- }
17
- exports.BEController = BEController;
18
- __decorate([
19
- A_Feature_class_1.A_Feature.Define({
20
- name: 'getOrdersCount',
21
- // channel
22
- })
23
- ], BEController.prototype, "getOrdersCount", null);
24
- //# sourceMappingURL=BE-Controller.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BE-Controller.component.js","sourceRoot":"","sources":["../../../../examples/fe-be/components/BE-Controller.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6FAAoF;AACpF,uFAA8E;AAI9E,MAAa,YAAa,SAAQ,+BAAW;IAQzC,cAAc;QAEV,OAAO,CAAC,CAAC;IACb,CAAC;CAGJ;AAdD,oCAcC;AANG;IAJC,2BAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,gBAAgB;QACtB,UAAU;KACb,CAAC;kDAID"}
@@ -1,4 +0,0 @@
1
- import { A_Component } from "../../../src/global/A-Component/A-Component.class";
2
- export declare class FEComponent extends A_Component {
3
- renderHomePage(): Promise<void>;
4
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
9
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10
- return new (P || (P = Promise))(function (resolve, reject) {
11
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
12
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
13
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
14
- step((generator = generator.apply(thisArg, _arguments || [])).next());
15
- });
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.FEComponent = void 0;
19
- const A_Component_class_1 = require("../../../src/global/A-Component/A-Component.class");
20
- const A_Concept_class_1 = require("../../../src/global/A-Concept/A_Concept.class");
21
- class FEComponent extends A_Component_class_1.A_Component {
22
- renderHomePage() {
23
- return __awaiter(this, void 0, void 0, function* () {
24
- });
25
- }
26
- }
27
- exports.FEComponent = FEComponent;
28
- __decorate([
29
- A_Concept_class_1.A_Concept.Load()
30
- ], FEComponent.prototype, "renderHomePage", null);
31
- //# sourceMappingURL=FE.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FE.component.js","sourceRoot":"","sources":["../../../../examples/fe-be/components/FE.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,6FAAoF;AACpF,uFAA8E;AAI9E,MAAa,WAAY,SAAQ,+BAAW;IAIlC,cAAc;;QAEpB,CAAC;KAAA;CACJ;AAPD,kCAOC;AAHS;IADL,2BAAS,CAAC,IAAI,EAAE;iDAGhB"}
@@ -1,5 +0,0 @@
1
- import { A_Channel } from "../../../src/global/A-Channel/A-Channel.class";
2
- import { A_Component } from "../../../src/global/A-Component/A-Component.class";
3
- export declare class UserActions extends A_Component {
4
- getUserDetails(channel: A_Channel<any>): void;
5
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __param = (this && this.__param) || function (paramIndex, decorator) {
9
- return function (target, key) { decorator(target, key, paramIndex); }
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UserActions = void 0;
13
- const A_Inject_decorator_1 = require("../../../src/decorators/A-Inject/A-Inject.decorator");
14
- const A_Channel_class_1 = require("../../../src/global/A-Channel/A-Channel.class");
15
- const A_Component_class_1 = require("../../../src/global/A-Component/A-Component.class");
16
- class UserActions extends A_Component_class_1.A_Component {
17
- getUserDetails(channel) {
18
- channel.call('');
19
- }
20
- }
21
- exports.UserActions = UserActions;
22
- __decorate([
23
- __param(0, (0, A_Inject_decorator_1.A_Inject)(A_Channel_class_1.A_Channel))
24
- ], UserActions.prototype, "getUserDetails", null);
25
- //# sourceMappingURL=UserActions.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserActions.component.js","sourceRoot":"","sources":["../../../../examples/fe-be/components/UserActions.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAAmF;AACnF,uFAA8E;AAC9E,6FAAoF;AAIpF,MAAa,WAAY,SAAQ,+BAAW;IAExC,cAAc,CACW,OAAuB;QAE5C,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACpB,CAAC;CACJ;AAPD,kCAOC;AALG;IACK,WAAA,IAAA,6BAAQ,EAAC,2BAAS,CAAC,CAAA;iDAGvB"}
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=concept.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"concept.js","sourceRoot":"","sources":["../../../examples/fe-be/concept.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { A_Container } from "../../../src/global/A-Container/A-Container.class";
2
- export declare class ServerApp extends A_Container {
3
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServerApp = void 0;
4
- const A_Container_class_1 = require("../../../src/global/A-Container/A-Container.class");
5
- class ServerApp extends A_Container_class_1.A_Container {
6
- }
7
- exports.ServerApp = ServerApp;
8
- //# sourceMappingURL=ServerApp.container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServerApp.container.js","sourceRoot":"","sources":["../../../../examples/fe-be/containers/ServerApp.container.ts"],"names":[],"mappings":";;;AAAA,6FAAoF;AAGpF,MAAa,SAAU,SAAQ,+BAAW;CAIzC;AAJD,8BAIC"}
@@ -1,3 +0,0 @@
1
- import { A_Container } from "../../../src/global/A-Container/A-Container.class";
2
- export declare class WebApp extends A_Container {
3
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebApp = void 0;
4
- const A_Container_class_1 = require("../../../src/global/A-Container/A-Container.class");
5
- class WebApp extends A_Container_class_1.A_Container {
6
- }
7
- exports.WebApp = WebApp;
8
- //# sourceMappingURL=WebApp.container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebApp.container.js","sourceRoot":"","sources":["../../../../examples/fe-be/containers/WebApp.container.ts"],"names":[],"mappings":";;;AAAA,6FAAoF;AAIpF,MAAa,MAAO,SAAQ,+BAAW;CAQtC;AARD,wBAQC"}
@@ -1,9 +0,0 @@
1
- import { A_Channel } from "../../../src/global/A-Channel/A-Channel.class";
2
- import { A_TYPES__A_ChannelAggregateMethods, A_TYPES__A_ChannelCallParams } from "../../../src/global/A-Channel/A-Channel.types";
3
- import { A_Container } from "../../../src/global/A-Container/A-Container.class";
4
- export declare class DirectChannel<T extends A_Container<any>> extends A_Channel<[T]> {
5
- container: T;
6
- protected instance: T;
7
- constructor(container: T);
8
- call<_Resp extends unknown>(prop: A_TYPES__A_ChannelAggregateMethods<[T]>, params?: Partial<A_TYPES__A_ChannelCallParams>): Promise<_Resp>;
9
- }