@adaas/a-concept 0.0.33 → 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 (365) 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.context.js.map +1 -1
  12. package/dist/src/base/A-Logger/A-Logger.component.js.map +1 -1
  13. package/dist/src/decorators/A-Abstraction/{A-Abstraction.decorator.d.ts → A-Abstraction-Extend.decorator.d.ts} +1 -1
  14. package/dist/src/decorators/A-Abstraction/{A-Abstraction.decorator.js → A-Abstraction-Extend.decorator.js} +6 -6
  15. package/dist/src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.js.map +1 -0
  16. package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.d.ts +1 -1
  17. package/dist/src/decorators/A-Connect/A-Connect.decorator.js.map +1 -1
  18. package/dist/src/decorators/A-Entity/A-Entity.decorator.types.d.ts +1 -1
  19. package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.d.ts +3 -3
  20. package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js +20 -4
  21. package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js.map +1 -1
  22. package/dist/src/decorators/A-Feature/A-Feature.decorator.types.d.ts +3 -2
  23. package/dist/src/decorators/A-Inject/A-Inject.decorator.d.ts +1 -1
  24. package/dist/src/decorators/A-Inject/A-Inject.decorator.js +23 -2
  25. package/dist/src/decorators/A-Inject/A-Inject.decorator.js.map +1 -1
  26. package/dist/src/decorators/A-Inject/A-Inject.decorator.types.d.ts +3 -3
  27. package/dist/src/global/A-Abstraction/A-Abstraction.class.d.ts +40 -0
  28. package/dist/src/global/A-Abstraction/A-Abstraction.class.js +113 -0
  29. package/dist/src/global/A-Abstraction/A-Abstraction.class.js.map +1 -0
  30. package/dist/src/global/A-Abstraction/A-Abstraction.types.d.ts +13 -0
  31. package/dist/src/global/A-Abstraction/A-Abstraction.types.js +11 -0
  32. package/dist/src/global/A-Abstraction/A-Abstraction.types.js.map +1 -0
  33. package/dist/src/global/A-Channel/A-Channel.class.js +0 -1
  34. package/dist/src/global/A-Channel/A-Channel.class.js.map +1 -1
  35. package/dist/src/global/A-Channel/A-Channel.types.d.ts +2 -1
  36. package/dist/src/global/A-Component/A-Component.class.d.ts +5 -30
  37. package/dist/src/global/A-Component/A-Component.class.js +6 -10
  38. package/dist/src/global/A-Component/A-Component.class.js.map +1 -1
  39. package/dist/src/global/A-Component/A-Component.meta.d.ts +9 -2
  40. package/dist/src/global/A-Component/A-Component.meta.js +10 -1
  41. package/dist/src/global/A-Component/A-Component.meta.js.map +1 -1
  42. package/dist/src/global/A-Concept/A_Concept.class.d.ts +16 -17
  43. package/dist/src/global/A-Concept/A_Concept.class.js +31 -65
  44. package/dist/src/global/A-Concept/A_Concept.class.js.map +1 -1
  45. package/dist/src/global/A-Concept/A_Concept.meta.d.ts +10 -0
  46. package/dist/src/global/A-Concept/A_Concept.meta.js +20 -0
  47. package/dist/src/global/A-Concept/A_Concept.meta.js.map +1 -1
  48. package/dist/src/global/A-Concept/A_Concept.types.d.ts +2 -2
  49. package/dist/src/global/A-Container/A-Container.class.d.ts +7 -50
  50. package/dist/src/global/A-Container/A-Container.class.js +9 -19
  51. package/dist/src/global/A-Container/A-Container.class.js.map +1 -1
  52. package/dist/src/global/A-Container/A-Container.meta.d.ts +15 -0
  53. package/dist/src/global/A-Container/A-Container.meta.js +20 -0
  54. package/dist/src/global/A-Container/A-Container.meta.js.map +1 -1
  55. package/dist/src/global/A-Context/A-Context.class.d.ts +20 -20
  56. package/dist/src/global/A-Context/A-Context.class.js +57 -15
  57. package/dist/src/global/A-Context/A-Context.class.js.map +1 -1
  58. package/dist/src/global/A-Entity/A-Entity.class.d.ts +10 -18
  59. package/dist/src/global/A-Entity/A-Entity.class.js +21 -31
  60. package/dist/src/global/A-Entity/A-Entity.class.js.map +1 -1
  61. package/dist/src/global/A-Entity/A-Entity.meta.js.map +1 -1
  62. package/dist/src/global/A-Entity/A-Entity.types.d.ts +3 -2
  63. package/dist/src/global/A-Entity/A-Entity.types.js +1 -0
  64. package/dist/src/global/A-Entity/A-Entity.types.js.map +1 -1
  65. package/dist/src/global/A-Feature/A-Feature.class.d.ts +2 -1
  66. package/dist/src/global/A-Feature/A-Feature.class.js +14 -4
  67. package/dist/src/global/A-Feature/A-Feature.class.js.map +1 -1
  68. package/dist/src/global/A-Feature/A-Feature.types.d.ts +9 -0
  69. package/dist/src/global/A-Feature/A-Feature.types.js.map +1 -1
  70. package/dist/src/global/A-Meta/A-Meta.class.d.ts +1 -0
  71. package/dist/src/global/A-Meta/A-Meta.class.js +3 -6
  72. package/dist/src/global/A-Meta/A-Meta.class.js.map +1 -1
  73. package/dist/src/global/A-Scope/A-Scope.class.d.ts +4 -2
  74. package/dist/src/global/A-Scope/A-Scope.class.js +23 -16
  75. package/dist/src/global/A-Scope/A-Scope.class.js.map +1 -1
  76. package/dist/src/global/A-Scope/A-Scope.types.d.ts +0 -8
  77. package/dist/src/global/A-Stage/A-Stage.class.d.ts +3 -3
  78. package/dist/src/global/A-Stage/A-Stage.class.js +11 -10
  79. package/dist/src/global/A-Stage/A-Stage.class.js.map +1 -1
  80. package/dist/src/global/A-Stage/A-Stage.types.d.ts +1 -1
  81. package/dist/src/global/A-Stage/A-Stage.types.js.map +1 -1
  82. package/dist/src/helpers/StepsManager.class.d.ts +1 -0
  83. package/dist/src/helpers/StepsManager.class.js +10 -7
  84. package/dist/src/helpers/StepsManager.class.js.map +1 -1
  85. package/docs/a-concept-logo.png +0 -0
  86. package/docs/a-logo-docs.png +0 -0
  87. package/examples/fe-be/channels/Test.channel.ts +6 -3
  88. package/examples/simple/components/A.component.ts +7 -0
  89. package/examples/simple/components/B.component.ts +9 -0
  90. package/examples/simple/concept.ts +38 -60
  91. package/examples/simple/containers/Main.container.ts +24 -11
  92. package/examples/simple/entities/EntityA.entity.ts +3 -5
  93. package/examples/simple-http-server/components/http-request-handler.component.ts +6 -4
  94. package/examples/simple-http-server/concept.ts +24 -21
  95. package/examples/simple-http-server/containers/http-server.container.ts +4 -3
  96. package/index.ts +4 -1
  97. package/package.json +6 -2
  98. package/src/base/A-Config/A-Config.container.ts +12 -4
  99. package/src/base/A-Config/components/ConfigReader.component.ts +4 -5
  100. package/src/base/A-Config/components/FileConfigReader.component.ts +0 -2
  101. package/src/base/A-Errors/A-Error.entity.ts +1 -1
  102. package/src/base/A-Errors/A-Errors.context.ts +2 -1
  103. package/src/base/A-Logger/A-Logger.component.ts +0 -1
  104. package/src/decorators/A-Abstraction/{A-Abstraction.decorator.ts → A-Abstraction-Extend.decorator.ts} +5 -6
  105. package/src/decorators/A-Abstraction/A-Abstraction.decorator.types.ts +1 -1
  106. package/src/decorators/A-Connect/A-Connect.decorator.ts +1 -1
  107. package/src/decorators/A-Entity/A-Entity.decorator.types.ts +1 -1
  108. package/src/decorators/A-Feature/A-Feature-Define.decorator.ts +37 -10
  109. package/src/decorators/A-Feature/A-Feature.decorator.types.ts +12 -12
  110. package/src/decorators/A-Inject/A-Inject.decorator.ts +31 -4
  111. package/src/decorators/A-Inject/A-Inject.decorator.types.ts +4 -3
  112. package/src/global/A-Abstraction/A-Abstraction.class.ts +130 -0
  113. package/src/global/A-Abstraction/A-Abstraction.types.ts +22 -0
  114. package/src/global/A-Channel/A-Channel.class.ts +0 -2
  115. package/src/global/A-Channel/A-Channel.types.ts +2 -1
  116. package/src/global/A-Component/A-Component.class.ts +12 -52
  117. package/src/global/A-Component/A-Component.meta.ts +19 -2
  118. package/src/global/A-Concept/A_Concept.class.ts +45 -126
  119. package/src/global/A-Concept/A_Concept.meta.ts +68 -0
  120. package/src/global/A-Concept/A_Concept.types.ts +2 -2
  121. package/src/global/A-Container/A-Container.class.ts +11 -90
  122. package/src/global/A-Container/A-Container.meta.ts +33 -0
  123. package/src/global/A-Context/A-Context.class.ts +134 -56
  124. package/src/global/A-Entity/A-Entity.class.ts +22 -69
  125. package/src/global/A-Entity/A-Entity.meta.ts +3 -2
  126. package/src/global/A-Entity/A-Entity.types.ts +2 -1
  127. package/src/global/A-Feature/A-Feature.class.ts +18 -7
  128. package/src/global/A-Feature/A-Feature.types.ts +10 -2
  129. package/src/global/A-Meta/A-Meta.class.ts +5 -8
  130. package/src/global/A-Scope/A-Scope.class.ts +38 -21
  131. package/src/global/A-Scope/A-Scope.types.ts +2 -2
  132. package/src/global/A-Stage/A-Stage.class.ts +20 -20
  133. package/src/global/A-Stage/A-Stage.types.ts +2 -3
  134. package/src/helpers/StepsManager.class.ts +11 -7
  135. package/trace-require.js +46 -0
  136. package/tsconfig.build.json +57 -0
  137. package/dist/examples/fe-be/channels/Test.channel.d.ts +0 -6
  138. package/dist/examples/fe-be/channels/Test.channel.js +0 -14
  139. package/dist/examples/fe-be/channels/Test.channel.js.map +0 -1
  140. package/dist/examples/fe-be/components/BE-Controller.component.d.ts +0 -4
  141. package/dist/examples/fe-be/components/BE-Controller.component.js +0 -24
  142. package/dist/examples/fe-be/components/BE-Controller.component.js.map +0 -1
  143. package/dist/examples/fe-be/components/FE.component.d.ts +0 -4
  144. package/dist/examples/fe-be/components/FE.component.js +0 -31
  145. package/dist/examples/fe-be/components/FE.component.js.map +0 -1
  146. package/dist/examples/fe-be/components/UserActions.component.d.ts +0 -5
  147. package/dist/examples/fe-be/components/UserActions.component.js +0 -25
  148. package/dist/examples/fe-be/components/UserActions.component.js.map +0 -1
  149. package/dist/examples/fe-be/concept.d.ts +0 -0
  150. package/dist/examples/fe-be/concept.js +0 -2
  151. package/dist/examples/fe-be/concept.js.map +0 -1
  152. package/dist/examples/fe-be/containers/ServerApp.container.d.ts +0 -3
  153. package/dist/examples/fe-be/containers/ServerApp.container.js +0 -8
  154. package/dist/examples/fe-be/containers/ServerApp.container.js.map +0 -1
  155. package/dist/examples/fe-be/containers/WebApp.container.d.ts +0 -3
  156. package/dist/examples/fe-be/containers/WebApp.container.js +0 -8
  157. package/dist/examples/fe-be/containers/WebApp.container.js.map +0 -1
  158. package/dist/examples/multi-container/channels/Direct.channel.d.ts +0 -9
  159. package/dist/examples/multi-container/channels/Direct.channel.js +0 -32
  160. package/dist/examples/multi-container/channels/Direct.channel.js.map +0 -1
  161. package/dist/examples/multi-container/concept.d.ts +0 -0
  162. package/dist/examples/multi-container/concept.js +0 -2
  163. package/dist/examples/multi-container/concept.js.map +0 -1
  164. package/dist/examples/multi-container/containers/Command.container.d.ts +0 -11
  165. package/dist/examples/multi-container/containers/Command.container.js +0 -51
  166. package/dist/examples/multi-container/containers/Command.container.js.map +0 -1
  167. package/dist/examples/multi-container/containers/Schedule.container.d.ts +0 -15
  168. package/dist/examples/multi-container/containers/Schedule.container.js +0 -67
  169. package/dist/examples/multi-container/containers/Schedule.container.js.map +0 -1
  170. package/dist/examples/sdk/concept.d.ts +0 -0
  171. package/dist/examples/sdk/concept.js +0 -21
  172. package/dist/examples/sdk/concept.js.map +0 -1
  173. package/dist/examples/sdk/orders.api.d.ts +0 -0
  174. package/dist/examples/sdk/orders.api.js +0 -16
  175. package/dist/examples/sdk/orders.api.js.map +0 -1
  176. package/dist/examples/sdk/users.api.d.ts +0 -0
  177. package/dist/examples/sdk/users.api.js +0 -16
  178. package/dist/examples/sdk/users.api.js.map +0 -1
  179. package/dist/examples/simple/components/A.component.d.ts +0 -9
  180. package/dist/examples/simple/components/A.component.js +0 -60
  181. package/dist/examples/simple/components/A.component.js.map +0 -1
  182. package/dist/examples/simple/components/B.component.d.ts +0 -13
  183. package/dist/examples/simple/components/B.component.js +0 -88
  184. package/dist/examples/simple/components/B.component.js.map +0 -1
  185. package/dist/examples/simple/concept.d.ts +0 -1
  186. package/dist/examples/simple/concept.js +0 -82
  187. package/dist/examples/simple/concept.js.map +0 -1
  188. package/dist/examples/simple/containers/Main.container.d.ts +0 -11
  189. package/dist/examples/simple/containers/Main.container.js +0 -86
  190. package/dist/examples/simple/containers/Main.container.js.map +0 -1
  191. package/dist/examples/simple/context/Fragment_A.context.d.ts +0 -6
  192. package/dist/examples/simple/context/Fragment_A.context.js +0 -16
  193. package/dist/examples/simple/context/Fragment_A.context.js.map +0 -1
  194. package/dist/examples/simple/context/Fragment_B.context.d.ts +0 -6
  195. package/dist/examples/simple/context/Fragment_B.context.js +0 -16
  196. package/dist/examples/simple/context/Fragment_B.context.js.map +0 -1
  197. package/dist/examples/simple/entities/EntityA.entity.d.ts +0 -8
  198. package/dist/examples/simple/entities/EntityA.entity.js +0 -22
  199. package/dist/examples/simple/entities/EntityA.entity.js.map +0 -1
  200. package/dist/examples/simple-http-server/components/http-error-handler.component.d.ts +0 -10
  201. package/dist/examples/simple-http-server/components/http-error-handler.component.js +0 -65
  202. package/dist/examples/simple-http-server/components/http-error-handler.component.js.map +0 -1
  203. package/dist/examples/simple-http-server/components/http-request-handler.component.d.ts +0 -3
  204. package/dist/examples/simple-http-server/components/http-request-handler.component.js +0 -8
  205. package/dist/examples/simple-http-server/components/http-request-handler.component.js.map +0 -1
  206. package/dist/examples/simple-http-server/concept.d.ts +0 -1
  207. package/dist/examples/simple-http-server/concept.js +0 -35
  208. package/dist/examples/simple-http-server/concept.js.map +0 -1
  209. package/dist/examples/simple-http-server/containers/http-server.container.d.ts +0 -11
  210. package/dist/examples/simple-http-server/containers/http-server.container.js +0 -73
  211. package/dist/examples/simple-http-server/containers/http-server.container.js.map +0 -1
  212. package/dist/examples/simple-http-server/containers/http-server.controller.d.ts +0 -7
  213. package/dist/examples/simple-http-server/containers/http-server.controller.js +0 -37
  214. package/dist/examples/simple-http-server/containers/http-server.controller.js.map +0 -1
  215. package/dist/examples/simple-http-server/containers/http-server.router.d.ts +0 -6
  216. package/dist/examples/simple-http-server/containers/http-server.router.js +0 -39
  217. package/dist/examples/simple-http-server/containers/http-server.router.js.map +0 -1
  218. package/dist/examples/simple-http-server/contexts/http-request.context.d.ts +0 -12
  219. package/dist/examples/simple-http-server/contexts/http-request.context.js +0 -49
  220. package/dist/examples/simple-http-server/contexts/http-request.context.js.map +0 -1
  221. package/dist/examples/simple-http-server/contexts/http-server.context.types.d.ts +0 -0
  222. package/dist/examples/simple-http-server/contexts/http-server.context.types.js +0 -2
  223. package/dist/examples/simple-http-server/contexts/http-server.context.types.js.map +0 -1
  224. package/dist/examples/simple-http-server/contexts/http-server.namespace.d.ts +0 -10
  225. package/dist/examples/simple-http-server/contexts/http-server.namespace.js +0 -26
  226. package/dist/examples/simple-http-server/contexts/http-server.namespace.js.map +0 -1
  227. package/dist/examples/simple-http-server/controllers/orders.controller.d.ts +0 -5
  228. package/dist/examples/simple-http-server/controllers/orders.controller.js +0 -32
  229. package/dist/examples/simple-http-server/controllers/orders.controller.js.map +0 -1
  230. package/dist/examples/simple-http-server/controllers/users.controller.d.ts +0 -0
  231. package/dist/examples/simple-http-server/controllers/users.controller.js +0 -87
  232. package/dist/examples/simple-http-server/controllers/users.controller.js.map +0 -1
  233. package/dist/examples/simple-http-server/modules/simple-http-server.context.d.ts +0 -5
  234. package/dist/examples/simple-http-server/modules/simple-http-server.context.js +0 -25
  235. package/dist/examples/simple-http-server/modules/simple-http-server.context.js.map +0 -1
  236. package/dist/examples/simple-http-server/modules/simple-http-server.module.d.ts +0 -16
  237. package/dist/examples/simple-http-server/modules/simple-http-server.module.js +0 -8
  238. package/dist/examples/simple-http-server/modules/simple-http-server.module.js.map +0 -1
  239. package/dist/examples/simple-http-server/modules/simple-http-server.types.d.ts +0 -2
  240. package/dist/examples/simple-http-server/modules/simple-http-server.types.js +0 -3
  241. package/dist/examples/simple-http-server/modules/simple-http-server.types.js.map +0 -1
  242. package/dist/examples/simple-http-server/test.d.ts +0 -68
  243. package/dist/examples/simple-http-server/test.js +0 -162
  244. package/dist/examples/simple-http-server/test.js.map +0 -1
  245. package/dist/src/containers/A-Config/A-Config.container.d.ts +0 -7
  246. package/dist/src/containers/A-Config/A-Config.container.js +0 -65
  247. package/dist/src/containers/A-Config/A-Config.container.js.map +0 -1
  248. package/dist/src/containers/A-Config/A-Config.namespace.d.ts +0 -28
  249. package/dist/src/containers/A-Config/A-Config.namespace.js +0 -54
  250. package/dist/src/containers/A-Config/A-Config.namespace.js.map +0 -1
  251. package/dist/src/containers/A-Config/A-Config.types.d.ts +0 -12
  252. package/dist/src/containers/A-Config/A-Config.types.js +0 -3
  253. package/dist/src/containers/A-Config/A-Config.types.js.map +0 -1
  254. package/dist/src/containers/A-Config/components/ConfigReader.component.d.ts +0 -18
  255. package/dist/src/containers/A-Config/components/ConfigReader.component.js +0 -37
  256. package/dist/src/containers/A-Config/components/ConfigReader.component.js.map +0 -1
  257. package/dist/src/containers/A-Config/components/ENVConfigReader.component.d.ts +0 -10
  258. package/dist/src/containers/A-Config/components/ENVConfigReader.component.js +0 -37
  259. package/dist/src/containers/A-Config/components/ENVConfigReader.component.js.map +0 -1
  260. package/dist/src/containers/A-Config/components/FileConfigReader.component.d.ts +0 -11
  261. package/dist/src/containers/A-Config/components/FileConfigReader.component.js +0 -47
  262. package/dist/src/containers/A-Config/components/FileConfigReader.component.js.map +0 -1
  263. package/dist/src/containers/A-Errors/A-Errors.container.d.ts +0 -5
  264. package/dist/src/containers/A-Errors/A-Errors.container.js +0 -32
  265. package/dist/src/containers/A-Errors/A-Errors.container.js.map +0 -1
  266. package/dist/src/containers/A-Errors/A-Errors.namespace.d.ts +0 -40
  267. package/dist/src/containers/A-Errors/A-Errors.namespace.js +0 -76
  268. package/dist/src/containers/A-Errors/A-Errors.namespace.js.map +0 -1
  269. package/dist/src/containers/A-Errors/A-Errors.types.d.ts +0 -5
  270. package/dist/src/containers/A-Errors/A-Errors.types.js +0 -3
  271. package/dist/src/containers/A-Errors/A-Errors.types.js.map +0 -1
  272. package/dist/src/containers/A-Logger/A-Logger.container.d.ts +0 -6
  273. package/dist/src/containers/A-Logger/A-Logger.container.js +0 -41
  274. package/dist/src/containers/A-Logger/A-Logger.container.js.map +0 -1
  275. package/dist/src/containers/A-Logger/A-Logger.namespace.d.ts +0 -17
  276. package/dist/src/containers/A-Logger/A-Logger.namespace.js +0 -22
  277. package/dist/src/containers/A-Logger/A-Logger.namespace.js.map +0 -1
  278. package/dist/src/containers/A-Logger/A-Logger.types.d.ts +0 -0
  279. package/dist/src/containers/A-Logger/A-Logger.types.js +0 -2
  280. package/dist/src/containers/A-Logger/A-Logger.types.js.map +0 -1
  281. package/dist/src/containers/A-Logger/components/Logger.component.d.ts +0 -29
  282. package/dist/src/containers/A-Logger/components/Logger.component.js +0 -128
  283. package/dist/src/containers/A-Logger/components/Logger.component.js.map +0 -1
  284. package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.js.map +0 -1
  285. package/dist/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.d.ts +0 -34
  286. package/dist/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.js +0 -3
  287. package/dist/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.js.map +0 -1
  288. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.d.ts +0 -11
  289. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.js +0 -36
  290. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.js.map +0 -1
  291. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.d.ts +0 -7
  292. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.js +0 -3
  293. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.js.map +0 -1
  294. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.d.ts +0 -17
  295. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.js +0 -42
  296. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.js.map +0 -1
  297. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.d.ts +0 -8
  298. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.js +0 -3
  299. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.js.map +0 -1
  300. package/dist/src/decorators/A-ConceptLifecycle/index.d.ts +0 -7
  301. package/dist/src/decorators/A-ConceptLifecycle/index.js +0 -11
  302. package/dist/src/decorators/A-ConceptLifecycle/index.js.map +0 -1
  303. package/dist/src/decorators/A-Define/Feature/Feature.decorator.d.ts +0 -16
  304. package/dist/src/decorators/A-Define/Feature/Feature.decorator.js +0 -36
  305. package/dist/src/decorators/A-Define/Feature/Feature.decorator.js.map +0 -1
  306. package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.d.ts +0 -8
  307. package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.js +0 -3
  308. package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.js.map +0 -1
  309. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.d.ts +0 -14
  310. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.js +0 -24
  311. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.js.map +0 -1
  312. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.d.ts +0 -8
  313. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.js +0 -3
  314. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.js.map +0 -1
  315. package/dist/src/decorators/A-Define/index.d.ts +0 -7
  316. package/dist/src/decorators/A-Define/index.js +0 -10
  317. package/dist/src/decorators/A-Define/index.js.map +0 -1
  318. package/dist/src/decorators/A-Extend/A-Extend.decorator.d.ts +0 -18
  319. package/dist/src/decorators/A-Extend/A-Extend.decorator.js +0 -37
  320. package/dist/src/decorators/A-Extend/A-Extend.decorator.js.map +0 -1
  321. package/dist/src/decorators/A-Extend/A-Extend.decorator.types.d.ts +0 -21
  322. package/dist/src/decorators/A-Extend/A-Extend.decorator.types.js +0 -3
  323. package/dist/src/decorators/A-Extend/A-Extend.decorator.types.js.map +0 -1
  324. package/dist/src/decorators/A-Feature/A-Feature.decorator.d.ts +0 -0
  325. package/dist/src/decorators/A-Feature/A-Feature.decorator.js +0 -11
  326. package/dist/src/decorators/A-Feature/A-Feature.decorator.js.map +0 -1
  327. package/dist/src/decorators/A-Stage/A-Stage.decorator.d.ts +0 -13
  328. package/dist/src/decorators/A-Stage/A-Stage.decorator.js +0 -52
  329. package/dist/src/decorators/A-Stage/A-Stage.decorator.js.map +0 -1
  330. package/dist/src/decorators/A-Stage/A-Stage.decorator.types.d.ts +0 -2
  331. package/dist/src/decorators/A-Stage/A-Stage.decorator.types.js +0 -3
  332. package/dist/src/decorators/A-Stage/A-Stage.decorator.types.js.map +0 -1
  333. package/dist/src/decorators/A_ConceptMethods.decorator.d.ts +0 -0
  334. package/dist/src/decorators/A_ConceptMethods.decorator.js +0 -2
  335. package/dist/src/decorators/A_ConceptMethods.decorator.js.map +0 -1
  336. package/dist/src/decorators/A_Lazy.decorator.d.ts +0 -5
  337. package/dist/src/decorators/A_Lazy.decorator.js +0 -20
  338. package/dist/src/decorators/A_Lazy.decorator.js.map +0 -1
  339. package/dist/src/global/A-Context/A-ContextFragment.class.d.ts +0 -12
  340. package/dist/src/global/A-Context/A-ContextFragment.class.js +0 -19
  341. package/dist/src/global/A-Context/A-ContextFragment.class.js.map +0 -1
  342. package/dist/src/global/A-Namespace/A_Namespace.class.d.ts +0 -47
  343. package/dist/src/global/A-Namespace/A_Namespace.class.js +0 -112
  344. package/dist/src/global/A-Namespace/A_Namespace.class.js.map +0 -1
  345. package/dist/src/global/A-Namespace/A_Namespace.types.d.ts +0 -19
  346. package/dist/src/global/A-Namespace/A_Namespace.types.js +0 -3
  347. package/dist/src/global/A-Namespace/A_Namespace.types.js.map +0 -1
  348. package/dist/src/managers/A_DependencyManager.class.d.ts +0 -24
  349. package/dist/src/managers/A_DependencyManager.class.js +0 -129
  350. package/dist/src/managers/A_DependencyManager.class.js.map +0 -1
  351. package/dist/src/storage/A_Component.storage.d.ts +0 -10
  352. package/dist/src/storage/A_Component.storage.js +0 -17
  353. package/dist/src/storage/A_Component.storage.js.map +0 -1
  354. package/dist/src/storage/A_Concept.storage.d.ts +0 -19
  355. package/dist/src/storage/A_Concept.storage.js +0 -29
  356. package/dist/src/storage/A_Concept.storage.js.map +0 -1
  357. package/dist/src/storage/A_Container.storage.d.ts +0 -8
  358. package/dist/src/storage/A_Container.storage.js +0 -17
  359. package/dist/src/storage/A_Container.storage.js.map +0 -1
  360. package/dist/src/storage/A_Inject.storage.d.ts +0 -9
  361. package/dist/src/storage/A_Inject.storage.js +0 -13
  362. package/dist/src/storage/A_Inject.storage.js.map +0 -1
  363. package/dist/src/types/A_DependencyManager.types.d.ts +0 -15
  364. package/dist/src/types/A_DependencyManager.types.js +0 -3
  365. package/dist/src/types/A_DependencyManager.types.js.map +0 -1
@@ -23,13 +23,13 @@ export type A_TYPES__A_InjectDecorator_Injectable = {
23
23
  } | {
24
24
  new (...args: any[]): A_Component;
25
25
  } | {
26
- new (...args: any[]): A_Container<any>;
26
+ new (...args: any[]): A_Container;
27
27
  } | {
28
28
  new (...args: any[]): A_Scope;
29
29
  } | {
30
30
  new (...args: any[]): A_Feature;
31
31
  } | {
32
- new (...args: any[]): A_Entity<any, any, any>;
32
+ new (...args: any[]): A_Entity;
33
33
  };
34
34
  export type A_TYPES__A_InjectDecorator_EntityInjectionInstructions = {
35
35
  query: Partial<A_TYPES__A_InjectDecorator_EntityInjectionQuery>;
@@ -39,7 +39,7 @@ export type A_TYPES__A_InjectDecorator_EntityInjectionQuery = {
39
39
  aseid: string | ASEID;
40
40
  id: string;
41
41
  type: {
42
- new (...args: any[]): A_Entity<any, any, any>;
42
+ new (...args: any[]): A_Entity;
43
43
  };
44
44
  entity: string;
45
45
  };
@@ -0,0 +1,40 @@
1
+ import { A_Abstraction_Extend } from "../../decorators/A-Abstraction/A-Abstraction-Extend.decorator";
2
+ import { A_Feature } from "../A-Feature/A-Feature.class";
3
+ import { A_TYPES__A_AbstractionConstructor, A_TYPES__AbstractionState } from "./A-Abstraction.types";
4
+ import { A_Error, A_TYPES__Required } from "@adaas/a-utils";
5
+ export declare class A_Abstraction {
6
+ name: string;
7
+ protected features: A_Feature[];
8
+ protected _current?: A_Feature;
9
+ protected _index: number;
10
+ state: A_TYPES__AbstractionState;
11
+ error?: A_Error;
12
+ /**
13
+ * Define a new A-Abstraction
14
+ */
15
+ static get Extend(): typeof A_Abstraction_Extend;
16
+ constructor(params: A_TYPES__Required<Partial<A_TYPES__A_AbstractionConstructor>, ['name', 'features']>);
17
+ get feature(): A_Feature | undefined;
18
+ [Symbol.iterator](): Iterator<A_Feature, any>;
19
+ /**
20
+ * This method moves the feature to the next stage
21
+ *
22
+ * @param stage
23
+ */
24
+ next(stage: any): void;
25
+ completed(): Promise<void>;
26
+ /**
27
+ * This method marks the feature as failed and throws an error
28
+ * Uses to interrupt or end the feature processing
29
+ *
30
+ * @param error
31
+ */
32
+ failed(error: Error | A_Error | unknown): Promise<void>;
33
+ /**
34
+ * This method checks if the A-Feature is done
35
+ *
36
+ * @returns
37
+ */
38
+ isDone(): boolean;
39
+ process(): Promise<void>;
40
+ }
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.A_Abstraction = void 0;
13
+ const A_Abstraction_Extend_decorator_1 = require("../../decorators/A-Abstraction/A-Abstraction-Extend.decorator");
14
+ const A_Feature_class_1 = require("../A-Feature/A-Feature.class");
15
+ const A_Abstraction_types_1 = require("./A-Abstraction.types");
16
+ class A_Abstraction {
17
+ /**
18
+ * Define a new A-Abstraction
19
+ */
20
+ static get Extend() {
21
+ return A_Abstraction_Extend_decorator_1.A_Abstraction_Extend;
22
+ }
23
+ constructor(params) {
24
+ this.features = [];
25
+ this._index = 0;
26
+ this.state = A_Abstraction_types_1.A_TYPES__AbstractionState.INITIALIZED;
27
+ this.name = params.name;
28
+ this.features = params.features.map(def => new A_Feature_class_1.A_Feature(def));
29
+ this._current = this.features[0];
30
+ }
31
+ get feature() {
32
+ return this._current;
33
+ }
34
+ [Symbol.iterator]() {
35
+ return {
36
+ // Custom next method
37
+ next: () => {
38
+ if (!this.isDone()) {
39
+ this._current = this.features[this._index];
40
+ return {
41
+ value: this._current,
42
+ done: false
43
+ };
44
+ }
45
+ else {
46
+ this._current = undefined; // Reset current on end
47
+ return {
48
+ value: undefined,
49
+ done: true
50
+ };
51
+ }
52
+ }
53
+ };
54
+ }
55
+ /**
56
+ * This method moves the feature to the next stage
57
+ *
58
+ * @param stage
59
+ */
60
+ next(stage) {
61
+ const stageIndex = this.features.indexOf(stage);
62
+ this._index = stageIndex + 1;
63
+ if (this._index >= this.features.length) {
64
+ this.completed();
65
+ }
66
+ }
67
+ completed() {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ this.state = A_Abstraction_types_1.A_TYPES__AbstractionState.COMPLETED;
70
+ });
71
+ }
72
+ /**
73
+ * This method marks the feature as failed and throws an error
74
+ * Uses to interrupt or end the feature processing
75
+ *
76
+ * @param error
77
+ */
78
+ failed(error) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ this.error = error;
81
+ this.state = A_Abstraction_types_1.A_TYPES__AbstractionState.FAILED;
82
+ });
83
+ }
84
+ /**
85
+ * This method checks if the A-Feature is done
86
+ *
87
+ * @returns
88
+ */
89
+ isDone() {
90
+ return !this.feature
91
+ || this._index >= this.features.length
92
+ || this.state === A_Abstraction_types_1.A_TYPES__AbstractionState.COMPLETED
93
+ || this.state === A_Abstraction_types_1.A_TYPES__AbstractionState.FAILED;
94
+ }
95
+ process() {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ if (this.isDone())
98
+ return;
99
+ try {
100
+ this.state = A_Abstraction_types_1.A_TYPES__AbstractionState.PROCESSING;
101
+ for (const feature of this.features) {
102
+ yield feature.process();
103
+ }
104
+ yield this.completed();
105
+ }
106
+ catch (error) {
107
+ yield this.failed(error);
108
+ }
109
+ });
110
+ }
111
+ }
112
+ exports.A_Abstraction = A_Abstraction;
113
+ //# sourceMappingURL=A-Abstraction.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A-Abstraction.class.js","sourceRoot":"","sources":["../../../../src/global/A-Abstraction/A-Abstraction.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6HAAgH;AAChH,kEAAyD;AACzD,+DAAqG;AAIrG,MAAa,aAAa;IAYtB;;OAEG;IACH,MAAM,KAAK,MAAM;QACb,OAAO,qDAAoB,CAAC;IAChC,CAAC;IAID,YAAY,MAA2F;QAlB7F,aAAQ,GAAgB,EAAE,CAAC;QAE3B,WAAM,GAAW,CAAC,CAAC;QAE7B,UAAK,GAA8B,+CAAyB,CAAC,WAAW,CAAC;QAerE,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,2BAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QAE/D,IAAI,CAAC,QAAQ,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IACH,MAAM;QACF,OAAO,CAAC,IAAI,CAAC,OAAO;eACb,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM;eACnC,IAAI,CAAC,KAAK,KAAK,+CAAyB,CAAC,SAAS;eAClD,IAAI,CAAC,KAAK,KAAK,+CAAyB,CAAC,MAAM,CAAC;IAC3D,CAAC;IAGK,OAAO;;YACT,IAAI,IAAI,CAAC,MAAM,EAAE;gBACb,OAAO;YACX,IAAI,CAAC;gBACD,IAAI,CAAC,KAAK,GAAG,+CAAyB,CAAC,UAAU,CAAC;gBAElD,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAElC,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;gBAC5B,CAAC;gBAED,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;YAE3B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACb,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC7B,CAAC;QAEL,CAAC;KAAA;CACJ;AA3HD,sCA2HC"}
@@ -0,0 +1,13 @@
1
+ import { A_TYPES__Required } from "@adaas/a-utils";
2
+ import { A_TYPES__FeatureConstructor } from "../A-Feature/A-Feature.types";
3
+ import { A_TYPES__ScopeConstructor } from "../A-Scope/A-Scope.types";
4
+ export type A_TYPES__A_AbstractionConstructor = {
5
+ name: string;
6
+ features: Array<A_TYPES__Required<Partial<A_TYPES__FeatureConstructor>, ['steps']>>;
7
+ } & A_TYPES__ScopeConstructor;
8
+ export declare enum A_TYPES__AbstractionState {
9
+ INITIALIZED = "INITIALIZED",
10
+ PROCESSING = "PROCESSING",
11
+ COMPLETED = "COMPLETED",
12
+ FAILED = "FAILED"
13
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.A_TYPES__AbstractionState = void 0;
4
+ var A_TYPES__AbstractionState;
5
+ (function (A_TYPES__AbstractionState) {
6
+ A_TYPES__AbstractionState["INITIALIZED"] = "INITIALIZED";
7
+ A_TYPES__AbstractionState["PROCESSING"] = "PROCESSING";
8
+ A_TYPES__AbstractionState["COMPLETED"] = "COMPLETED";
9
+ A_TYPES__AbstractionState["FAILED"] = "FAILED";
10
+ })(A_TYPES__AbstractionState || (exports.A_TYPES__AbstractionState = A_TYPES__AbstractionState = {}));
11
+ //# sourceMappingURL=A-Abstraction.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A-Abstraction.types.js","sourceRoot":"","sources":["../../../../src/global/A-Abstraction/A-Abstraction.types.ts"],"names":[],"mappings":";;;AAeA,IAAY,yBAMX;AAND,WAAY,yBAAyB;IACjC,wDAA2B,CAAA;IAC3B,sDAAyB,CAAA;IAEzB,oDAAuB,CAAA;IACvB,8CAAiB,CAAA;AACrB,CAAC,EANW,yBAAyB,yCAAzB,yBAAyB,QAMpC"}
@@ -31,7 +31,6 @@ class A_Channel {
31
31
  call(prop, params) {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  // do HTTP Call or just inject class or whatever you want
34
- console.log('Calling method', prop);
35
34
  return {};
36
35
  });
37
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"A-Channel.class.js","sourceRoot":"","sources":["../../../../src/global/A-Channel/A-Channel.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA;;;;;;GAMG;AACH,MAAa,SAAS;IAUlB,YAAY,MAAqC;QAC7C,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;QAEpB,IAAI,CAAC,OAAO,GAAG,IAAI,KAAK,CACpB,EAAqC,EACrC;YACI,GAAG,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE;gBAClB,OAAO,CAAO,GAAG,IAAW,EAAE,EAAE;oBAC5B,IAAI,CAAC,IAAI,CAAC,IAA6C,CAAC,CAAC;gBAC7D,CAAC,CAAA,CAAC;YACN,CAAC;SACJ,CAAC,CAAC;IACX,CAAC;IAGK,IAAI,CAAoB,IAA2C,EAAE,MAA8C;;YACrH,yDAAyD;YAEzD,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;YAEpC,OAAO,EAAW,CAAC;QACvB,CAAC;KAAA;CACJ;AAhCD,8BAgCC"}
1
+ {"version":3,"file":"A-Channel.class.js","sourceRoot":"","sources":["../../../../src/global/A-Channel/A-Channel.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA;;;;;;GAMG;AACH,MAAa,SAAS;IAUlB,YAAY,MAAqC;QAC7C,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;QAEpB,IAAI,CAAC,OAAO,GAAG,IAAI,KAAK,CACpB,EAAqC,EACrC;YACI,GAAG,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE;gBAClB,OAAO,CAAO,GAAG,IAAW,EAAE,EAAE;oBAC5B,IAAI,CAAC,IAAI,CAAC,IAA6C,CAAC,CAAC;gBAC7D,CAAC,CAAA,CAAC;YACN,CAAC;SACJ,CAAC,CAAC;IACX,CAAC;IAGK,IAAI,CAAoB,IAA2C,EAAE,MAA8C;;YACrH,yDAAyD;YAEzD,OAAO,EAAW,CAAC;QACvB,CAAC;KAAA;CACJ;AA9BD,8BA8BC"}
@@ -1,3 +1,4 @@
1
+ import { A_Container } from "../A-Container/A-Container.class";
1
2
  import { A_Component } from "../A-Component/A-Component.class";
2
3
  import { A_Fragment } from "../A-Fragment/A-Fragment.class";
3
4
  export type A_TYPES__A_DependencyReferenceConstructor = {
@@ -48,7 +49,7 @@ export type A_TYPES__A_ExecutableMethods<T> = {
48
49
  /**
49
50
  * Returns a string set of possible methods that could be called on a set of provided set of A-Components
50
51
  */
51
- export type A_TYPES__A_ChannelAggregateMethods<TClasses extends A_Component[]> = {
52
+ export type A_TYPES__A_ChannelAggregateMethods<TClasses extends (A_Component | A_Container)[]> = {
52
53
  [K in keyof TClasses]: TClasses[K] extends infer Instance ? A_TYPES__A_ExecutableMethods<Instance> : never;
53
54
  }[number];
54
55
  /**
@@ -1,35 +1,10 @@
1
- import { A_TYPES__Required } from "@adaas/a-utils";
2
- import { A_TYPES__ComponentCallParams, A_TYPES__ComponentConstructor } from "./A-Component.types";
3
- import { A_Scope } from "../A-Scope/A-Scope.class";
1
+ import { A_TYPES__ComponentConstructor } from "./A-Component.types";
2
+ import { A_TYPES__FeatureCallParams } from "../A-Feature/A-Feature.types";
4
3
  /**
5
4
  * This element only contains the specific code
6
5
  *
7
6
  */
8
- export declare class A_Component<_FeatureNames extends Array<string> = any> {
9
- constructor(params?: Partial<A_TYPES__ComponentConstructor<_FeatureNames>>);
10
- /**
11
- * Call a feature of the component
12
- *
13
- * @param lifecycleMethod
14
- * @param args
15
- */
16
- call(scope: A_Scope,
17
- /**
18
- * A-Feature method name to be called
19
- */
20
- feature: _FeatureNames[number]): Promise<any>;
21
- call(scope: A_Scope,
22
- /**
23
- * A-Feature name to be called
24
- */
25
- params: A_TYPES__Required<Partial<A_TYPES__ComponentCallParams<_FeatureNames[number]>>, ['name']>): Promise<any>;
26
- call(scope: A_Scope,
27
- /**
28
- * A-Feature method name to be called
29
- */
30
- feature: string,
31
- /**
32
- * Parameters to provide additional data to the feature
33
- */
34
- params: Partial<A_TYPES__ComponentCallParams<_FeatureNames[number]>>): Promise<any>;
7
+ export declare class A_Component {
8
+ constructor(params?: Partial<A_TYPES__ComponentConstructor<any>>);
9
+ call(feature: string, params?: Partial<A_TYPES__FeatureCallParams>): Promise<any>;
35
10
  }
@@ -16,16 +16,12 @@ const A_Context_class_1 = require("../A-Context/A-Context.class");
16
16
  *
17
17
  */
18
18
  class A_Component {
19
- constructor(params) { }
20
- call(scope, param1, param2) {
21
- return __awaiter(this, void 0, void 0, function* () {
22
- const feature = typeof param1 === 'string'
23
- ? param1
24
- : param1.name;
25
- const params = typeof param1 === 'string'
26
- ? param2 || {}
27
- : param1;
28
- const newFeature = A_Context_class_1.A_Context.feature(scope, this, feature, params);
19
+ constructor(params) {
20
+ console.log('A-Component instance created', this);
21
+ }
22
+ call(feature_1) {
23
+ return __awaiter(this, arguments, void 0, function* (feature, params = {}) {
24
+ const newFeature = A_Context_class_1.A_Context.feature(A_Context_class_1.A_Context.scope(this), this, feature, params);
29
25
  return yield newFeature.process();
30
26
  });
31
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"A-Component.class.js","sourceRoot":"","sources":["../../../../src/global/A-Component/A-Component.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,kEAAyD;AAMzD;;;GAGG;AACH,MAAa,WAAW;IAGpB,YACI,MAA8D,IAC9D,CAAC;IAoCC,IAAI,CACN,KAAc,EACd,MAAyH,EACzH,MAAqE;;YAGrE,MAAM,OAAO,GAAW,OAAO,MAAM,KAAK,QAAQ;gBAC9C,CAAC,CAAC,MAAM;gBACR,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;YAClB,MAAM,MAAM,GAAiE,OAAO,MAAM,KAAK,QAAQ;gBACnG,CAAC,CAAC,MAAM,IAAI,EAAE;gBACd,CAAC,CAAC,MAAM,CAAC;YAEb,MAAM,UAAU,GAAG,2BAAS,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;YAEnE,OAAO,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC;QACtC,CAAC;KAAA;CACJ;AA1DD,kCA0DC"}
1
+ {"version":3,"file":"A-Component.class.js","sourceRoot":"","sources":["../../../../src/global/A-Component/A-Component.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAAyD;AAMzD;;;GAGG;AACH,MAAa,WAAW;IACpB,YACI,MAAoD;QAEpD,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAC;IAEtD,CAAC;IAGK,IAAI;6DACN,OAAe,EACf,SAA8C,EAAE;YAEhD,MAAM,UAAU,GAAG,2BAAS,CAAC,OAAO,CAAC,2BAAS,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;YAEnF,OAAO,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC;QACtC,CAAC;KAAA;CAGJ;AAnBD,kCAmBC"}
@@ -1,7 +1,8 @@
1
1
  import { A_TYPES__A_InjectDecorator_Meta } from "../../decorators/A-Inject/A-Inject.decorator.types";
2
- import { A_TYPES__ConceptAbstractionMeta, A_TYPES__ConceptStage } from "../A-Concept/A_Concept.types";
2
+ import { A_TYPES__ConceptAbstractionMeta } from "../A-Concept/A_Concept.types";
3
3
  import { A_Meta } from "../A-Meta/A-Meta.class";
4
4
  import { A_TYPES__ComponentMeta, A_TYPES__ComponentMetaExtension } from "./A-Component.types";
5
+ import { A_TYPES__A_DefineDecorator_Meta } from "../../decorators/A-Feature/A-Feature.decorator.types";
5
6
  export declare class A_ComponentMeta extends A_Meta<A_TYPES__ComponentMeta> {
6
7
  /**
7
8
  * Allows to get all the injections for a given handler
@@ -17,11 +18,17 @@ export declare class A_ComponentMeta extends A_Meta<A_TYPES__ComponentMeta> {
17
18
  * @returns
18
19
  */
19
20
  extensions(feature: string): A_TYPES__ComponentMetaExtension[];
21
+ /**
22
+ * Returns all features defined in the Component
23
+ *
24
+ * @returns
25
+ */
26
+ features(): Array<A_TYPES__A_DefineDecorator_Meta>;
20
27
  /**
21
28
  * Returns a set of instructions to run proper methods in Component during A-Concept Stage
22
29
  *
23
30
  * @param stage
24
31
  * @returns
25
32
  */
26
- abstractions(abstraction: A_TYPES__ConceptStage): A_TYPES__ConceptAbstractionMeta[];
33
+ abstractions(abstraction: any): A_TYPES__ConceptAbstractionMeta[];
27
34
  }
@@ -41,6 +41,15 @@ class A_ComponentMeta extends A_Meta_class_1.A_Meta {
41
41
  });
42
42
  return steps;
43
43
  }
44
+ /**
45
+ * Returns all features defined in the Component
46
+ *
47
+ * @returns
48
+ */
49
+ features() {
50
+ const features = this.get(A_Component_types_1.A_TYPES__ComponentMetaKey.FEATURES);
51
+ return (features === null || features === void 0 ? void 0 : features.toArray().map(([, feature]) => feature)) || [];
52
+ }
44
53
  /**
45
54
  * Returns a set of instructions to run proper methods in Component during A-Concept Stage
46
55
  *
@@ -54,7 +63,7 @@ class A_ComponentMeta extends A_Meta_class_1.A_Meta {
54
63
  // const constructor = A_Context.component(this);
55
64
  abstractions === null || abstractions === void 0 ? void 0 : abstractions
56
65
  // returns all extensions that match the feature
57
- .find(`CONCEPT_ABSTRACTION::${abstraction}`).forEach(([handler, extensions]) => {
66
+ .find(abstraction).forEach(([handler, extensions]) => {
58
67
  extensions.forEach(extension => {
59
68
  const args = (injections === null || injections === void 0 ? void 0 : injections.get(extension.handler)) || [];
60
69
  steps.push(Object.assign(Object.assign({}, extension), {
@@ -1 +1 @@
1
- {"version":3,"file":"A-Component.meta.js","sourceRoot":"","sources":["../../../../src/global/A-Component/A-Component.meta.ts"],"names":[],"mappings":";;;AAEA,yDAAgD;AAChD,2DAAyH;AAGzH,MAAa,eAAgB,SAAQ,qBAA8B;IAI/D;;;;;OAKG;IACH,UAAU,CACN,OAAe;QAEf,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,6CAAyB,CAAC,UAAU,CAAC,CAAC;QAElE,MAAM,IAAI,GAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,OAAO,CAAC,KAAI,EAAE,CAAC;QAE5C,OAAO,IAAI,CAAC;IAChB,CAAC;IAID;;;;;OAKG;IACH,UAAU,CACN,OAAe;QAEf,MAAM,KAAK,GAAsC,EAAE,CAAC;QAEpD,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,6CAAyB,CAAC,UAAU,CAAC,CAAC;QAClE,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,6CAAyB,CAAC,UAAU,CAAC,CAAC;QAElE,UAAU,aAAV,UAAU,uBAAV,UAAU;QACN,gDAAgD;SAC9C,IAAI,CAAC,OAAO,EACb,OAAO,CAAC,CAAC,CAAC,OAA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AQ;QAEJ,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,6CAAyB,CAAC,QAAQ,CAAC,CAAC;QAE9D,OAAO,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,GAEnB,GAAG,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAI,EAAE,CAAC;IAC7C,CAAC;IAGD;;;;;OAKG;IACH,YAAY,CACR,WAAgB;QAEhB,MAAM,KAAK,GAAsC,EAAE,CAAC;QAEpD,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,6CAAyB,CAAC,YAAY,CAAC,CAAC;QACtE,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,6CAAyB,CAAC,UAAU,CAAC,CAAC;QAElE,iDAAiD;QAGjD,YAAY,aAAZ,YAAY,uBAAZ,YAAY;QACR,gDAAgD;SAC9C,IAAI,CAAC,WAAW,EACjB,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,EAAE;YAC/B,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;gBAC3B,MAAM,IAAI,GAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,KAAI,EAAE,CAAC;gBAEtD,KAAK,CAAC,IAAI,iCACH,SAAS;oBACZ,0BAA0B;oBAC1B,IAAI,IACN,CAAC;YAEP,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QAGP,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ;AA9GD,0CA8GC"}
@@ -1,7 +1,6 @@
1
- import { A_TYPES__ConceptStage, A_TYPES__ConceptAbstractionCallParams, A_TYPES__IConceptConstructor } from "./A_Concept.types";
1
+ import { A_TYPES__ConceptAbstractionCallParams, A_TYPES__IConceptConstructor } from "./A_Concept.types";
2
2
  import { A_Container } from "../A-Container/A-Container.class";
3
- import { A_TYPES__FeatureConstructor } from "../A-Feature/A-Feature.types";
4
- import { A_TYPES__Required } from "@adaas/a-utils";
3
+ import { A_Abstraction_Extend } from "../../decorators/A-Abstraction/A-Abstraction-Extend.decorator";
5
4
  /**
6
5
  * A_Concept is a placeholder for the concept of the ani program.
7
6
  *
@@ -14,43 +13,45 @@ import { A_TYPES__Required } from "@adaas/a-utils";
14
13
  *
15
14
  *
16
15
  */
17
- export declare class A_Concept<_Features extends A_Container<any>[] = any> {
18
- protected props: A_TYPES__IConceptConstructor<_Features>;
16
+ export declare class A_Concept<_Imports extends A_Container[] = any> {
17
+ protected props: A_TYPES__IConceptConstructor<_Imports>;
19
18
  /**
20
19
  * Load the concept. This step runs before any other steps to ensure that all components are loaded.
21
20
  */
22
- static Load(): (target: A_Container<any> | import("../A-Component/A-Component.class").A_Component, propertyKey: string, descriptor: import("../../..").A_TYPES__A_AbstractionDecoratorDescriptor) => void;
21
+ static Load(): ReturnType<typeof A_Abstraction_Extend>;
23
22
  /**
24
23
  * Publish the concept to ADAAS platform. (Or any other place defined in the concept)
25
24
  *
26
25
  * [!] To extend the logic just create a custom containers and override the default behavior.
27
26
  */
28
- static Publish(): (target: A_Container<any> | import("../A-Component/A-Component.class").A_Component, propertyKey: string, descriptor: import("../../..").A_TYPES__A_AbstractionDecoratorDescriptor) => void;
27
+ static Publish(): ReturnType<typeof A_Abstraction_Extend>;
29
28
  /**
30
29
  * Deploy the concept to the environment.
31
30
  */
32
- static Deploy(): (target: A_Container<any> | import("../A-Component/A-Component.class").A_Component, propertyKey: string, descriptor: import("../../..").A_TYPES__A_AbstractionDecoratorDescriptor) => void;
31
+ static Deploy(): (target: A_Container | import("../A-Component/A-Component.class").A_Component, propertyKey: string, descriptor: import("../../..").A_TYPES__A_AbstractionDecoratorDescriptor) => void;
33
32
  /**
34
33
  * Compiles the Concept in case there are some containers that require that.
35
34
  *
36
35
  * Can be used for static websites or any other concept that requires a build step.
37
36
  *
38
37
  */
39
- static Build(): (target: A_Container<any> | import("../A-Component/A-Component.class").A_Component, propertyKey: string, descriptor: import("../../..").A_TYPES__A_AbstractionDecoratorDescriptor) => void;
38
+ static Build(): (target: A_Container | import("../A-Component/A-Component.class").A_Component, propertyKey: string, descriptor: import("../../..").A_TYPES__A_AbstractionDecoratorDescriptor) => void;
40
39
  /**
41
40
  * Main execution of the concept.
42
41
  */
43
- static Run(): (target: A_Container<any> | import("../A-Component/A-Component.class").A_Component, propertyKey: string, descriptor: import("../../..").A_TYPES__A_AbstractionDecoratorDescriptor) => void;
42
+ static Run(): (target: A_Container | import("../A-Component/A-Component.class").A_Component, propertyKey: string, descriptor: import("../../..").A_TYPES__A_AbstractionDecoratorDescriptor) => void;
44
43
  /**
45
44
  * Start the concept. Uses for servers or any other background services.
46
45
  */
47
- static Start(): (target: A_Container<any> | import("../A-Component/A-Component.class").A_Component, propertyKey: string, descriptor: import("../../..").A_TYPES__A_AbstractionDecoratorDescriptor) => void;
46
+ static Start(): (target: A_Container | import("../A-Component/A-Component.class").A_Component, propertyKey: string, descriptor: import("../../..").A_TYPES__A_AbstractionDecoratorDescriptor) => void;
48
47
  /**
49
48
  * Stop the concept. Uses for servers or any other background services.
50
49
  */
51
- static Stop(): (target: A_Container<any> | import("../A-Component/A-Component.class").A_Component, propertyKey: string, descriptor: import("../../..").A_TYPES__A_AbstractionDecoratorDescriptor) => void;
52
- protected containers: A_Container<any>[];
53
- constructor(props: A_TYPES__IConceptConstructor<_Features>);
50
+ static Stop(): (target: A_Container | import("../A-Component/A-Component.class").A_Component, propertyKey: string, descriptor: import("../../..").A_TYPES__A_AbstractionDecoratorDescriptor) => void;
51
+ private sharedBase;
52
+ private meta;
53
+ protected containers: A_Container[];
54
+ constructor(props: A_TYPES__IConceptConstructor<_Imports>);
54
55
  get namespace(): string;
55
56
  get Scope(): import("../A-Scope/A-Scope.class").A_Scope;
56
57
  /**
@@ -88,7 +89,5 @@ export declare class A_Concept<_Features extends A_Container<any>[] = any> {
88
89
  /**
89
90
  * Call the specific method of the concept or included modules.
90
91
  */
91
- call<K extends Record<_Features[number]['name'], _Features[number]['exports'][number]>>(container: K[keyof K], params?: Partial<A_TYPES__ConceptAbstractionCallParams>): Promise<void>;
92
- abstractionDefinition(method: A_TYPES__ConceptStage, params?: Partial<A_TYPES__ConceptAbstractionCallParams>): A_TYPES__Required<Partial<A_TYPES__FeatureConstructor>, ['steps', 'fragments', 'name', 'components']>;
93
- private execute;
92
+ call<K extends Record<_Imports[number]['name'], string>>(container: K[keyof K], params?: Partial<A_TYPES__ConceptAbstractionCallParams>): Promise<void>;
94
93
  }