@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.
- package/README.md +156 -8
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/src/base/A-Config/A-Config.container.d.ts +5 -2
- package/dist/src/base/A-Config/A-Config.container.js +7 -2
- package/dist/src/base/A-Config/A-Config.container.js.map +1 -1
- package/dist/src/base/A-Config/components/ConfigReader.component.js +1 -1
- package/dist/src/base/A-Config/components/ConfigReader.component.js.map +1 -1
- package/dist/src/base/A-Config/components/FileConfigReader.component.js.map +1 -1
- package/dist/src/base/A-Errors/A-Errors.component.js +3 -3
- package/dist/src/base/A-Errors/A-Errors.component.js.map +1 -1
- package/dist/src/base/A-Errors/A-Errors.context.js.map +1 -1
- package/dist/src/base/A-Logger/A-Logger.component.js.map +1 -1
- package/dist/src/decorators/A-Abstraction/{A-Abstraction.decorator.d.ts → A-Abstraction-Extend.decorator.d.ts} +1 -1
- package/dist/src/decorators/A-Abstraction/{A-Abstraction.decorator.js → A-Abstraction-Extend.decorator.js} +6 -6
- package/dist/src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.js.map +1 -0
- package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.d.ts +1 -1
- package/dist/src/decorators/A-Connect/A-Connect.decorator.js.map +1 -1
- package/dist/src/decorators/A-Entity/A-Entity.decorator.types.d.ts +1 -1
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.d.ts +3 -3
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js +20 -4
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js.map +1 -1
- package/dist/src/decorators/A-Feature/A-Feature.decorator.types.d.ts +3 -2
- package/dist/src/decorators/A-Inject/A-Inject.decorator.d.ts +1 -1
- package/dist/src/decorators/A-Inject/A-Inject.decorator.js +23 -2
- package/dist/src/decorators/A-Inject/A-Inject.decorator.js.map +1 -1
- package/dist/src/decorators/A-Inject/A-Inject.decorator.types.d.ts +3 -3
- package/dist/src/global/A-Abstraction/A-Abstraction.class.d.ts +40 -0
- package/dist/src/global/A-Abstraction/A-Abstraction.class.js +113 -0
- package/dist/src/global/A-Abstraction/A-Abstraction.class.js.map +1 -0
- package/dist/src/global/A-Abstraction/A-Abstraction.types.d.ts +13 -0
- package/dist/src/global/A-Abstraction/A-Abstraction.types.js +11 -0
- package/dist/src/global/A-Abstraction/A-Abstraction.types.js.map +1 -0
- package/dist/src/global/A-Channel/A-Channel.class.js +0 -1
- package/dist/src/global/A-Channel/A-Channel.class.js.map +1 -1
- package/dist/src/global/A-Channel/A-Channel.types.d.ts +2 -1
- package/dist/src/global/A-Component/A-Component.class.d.ts +5 -30
- package/dist/src/global/A-Component/A-Component.class.js +6 -10
- package/dist/src/global/A-Component/A-Component.class.js.map +1 -1
- package/dist/src/global/A-Component/A-Component.meta.d.ts +9 -2
- package/dist/src/global/A-Component/A-Component.meta.js +10 -1
- package/dist/src/global/A-Component/A-Component.meta.js.map +1 -1
- package/dist/src/global/A-Concept/A_Concept.class.d.ts +43 -20
- package/dist/src/global/A-Concept/A_Concept.class.js +77 -65
- package/dist/src/global/A-Concept/A_Concept.class.js.map +1 -1
- package/dist/src/global/A-Concept/A_Concept.meta.d.ts +10 -0
- package/dist/src/global/A-Concept/A_Concept.meta.js +20 -0
- package/dist/src/global/A-Concept/A_Concept.meta.js.map +1 -1
- package/dist/src/global/A-Concept/A_Concept.types.d.ts +9 -6
- package/dist/src/global/A-Container/A-Container.class.d.ts +7 -50
- package/dist/src/global/A-Container/A-Container.class.js +9 -19
- package/dist/src/global/A-Container/A-Container.class.js.map +1 -1
- package/dist/src/global/A-Container/A-Container.meta.d.ts +15 -0
- package/dist/src/global/A-Container/A-Container.meta.js +20 -0
- package/dist/src/global/A-Container/A-Container.meta.js.map +1 -1
- package/dist/src/global/A-Context/A-Context.class.d.ts +21 -21
- package/dist/src/global/A-Context/A-Context.class.js +60 -15
- package/dist/src/global/A-Context/A-Context.class.js.map +1 -1
- package/dist/src/global/A-Entity/A-Entity.class.d.ts +10 -18
- package/dist/src/global/A-Entity/A-Entity.class.js +21 -31
- package/dist/src/global/A-Entity/A-Entity.class.js.map +1 -1
- package/dist/src/global/A-Entity/A-Entity.meta.js.map +1 -1
- package/dist/src/global/A-Entity/A-Entity.types.d.ts +3 -2
- package/dist/src/global/A-Entity/A-Entity.types.js +1 -0
- package/dist/src/global/A-Entity/A-Entity.types.js.map +1 -1
- package/dist/src/global/A-Feature/A-Feature.class.d.ts +2 -1
- package/dist/src/global/A-Feature/A-Feature.class.js +14 -4
- package/dist/src/global/A-Feature/A-Feature.class.js.map +1 -1
- package/dist/src/global/A-Feature/A-Feature.types.d.ts +9 -0
- package/dist/src/global/A-Feature/A-Feature.types.js.map +1 -1
- package/dist/src/global/A-Meta/A-Meta.class.d.ts +1 -0
- package/dist/src/global/A-Meta/A-Meta.class.js +3 -6
- package/dist/src/global/A-Meta/A-Meta.class.js.map +1 -1
- package/dist/src/global/A-Scope/A-Scope.class.d.ts +4 -2
- package/dist/src/global/A-Scope/A-Scope.class.js +25 -16
- package/dist/src/global/A-Scope/A-Scope.class.js.map +1 -1
- package/dist/src/global/A-Scope/A-Scope.types.d.ts +4 -6
- package/dist/src/global/A-Stage/A-Stage.class.d.ts +3 -3
- package/dist/src/global/A-Stage/A-Stage.class.js +11 -10
- package/dist/src/global/A-Stage/A-Stage.class.js.map +1 -1
- package/dist/src/global/A-Stage/A-Stage.types.d.ts +1 -1
- package/dist/src/global/A-Stage/A-Stage.types.js.map +1 -1
- package/dist/src/helpers/StepsManager.class.d.ts +1 -0
- package/dist/src/helpers/StepsManager.class.js +10 -7
- package/dist/src/helpers/StepsManager.class.js.map +1 -1
- package/docs/a-concept-logo.png +0 -0
- package/docs/a-logo-docs.png +0 -0
- package/examples/fe-be/channels/Test.channel.ts +6 -3
- package/examples/simple/components/A.component.ts +7 -0
- package/examples/simple/components/B.component.ts +9 -0
- package/examples/simple/concept.ts +38 -60
- package/examples/simple/containers/Main.container.ts +25 -12
- package/examples/simple/entities/EntityA.entity.ts +3 -5
- package/examples/simple-http-server/components/http-request-handler.component.ts +6 -4
- package/examples/simple-http-server/concept.ts +24 -21
- package/examples/simple-http-server/containers/http-server.container.ts +4 -3
- package/index.ts +4 -1
- package/package.json +6 -2
- package/src/base/A-Config/A-Config.container.ts +12 -4
- package/src/base/A-Config/components/ConfigReader.component.ts +4 -5
- package/src/base/A-Config/components/FileConfigReader.component.ts +0 -2
- package/src/base/A-Errors/A-Error.entity.ts +1 -1
- package/src/base/A-Errors/A-Errors.component.ts +3 -3
- package/src/base/A-Errors/A-Errors.context.ts +2 -1
- package/src/base/A-Logger/A-Logger.component.ts +0 -1
- package/src/decorators/A-Abstraction/{A-Abstraction.decorator.ts → A-Abstraction-Extend.decorator.ts} +5 -6
- package/src/decorators/A-Abstraction/A-Abstraction.decorator.types.ts +1 -1
- package/src/decorators/A-Connect/A-Connect.decorator.ts +1 -1
- package/src/decorators/A-Entity/A-Entity.decorator.types.ts +1 -1
- package/src/decorators/A-Feature/A-Feature-Define.decorator.ts +37 -10
- package/src/decorators/A-Feature/A-Feature.decorator.types.ts +12 -12
- package/src/decorators/A-Inject/A-Inject.decorator.ts +31 -4
- package/src/decorators/A-Inject/A-Inject.decorator.types.ts +4 -3
- package/src/global/A-Abstraction/A-Abstraction.class.ts +130 -0
- package/src/global/A-Abstraction/A-Abstraction.types.ts +22 -0
- package/src/global/A-Channel/A-Channel.class.ts +0 -2
- package/src/global/A-Channel/A-Channel.types.ts +2 -1
- package/src/global/A-Component/A-Component.class.ts +12 -52
- package/src/global/A-Component/A-Component.meta.ts +19 -2
- package/src/global/A-Concept/A_Concept.class.ts +109 -111
- package/src/global/A-Concept/A_Concept.meta.ts +68 -0
- package/src/global/A-Concept/A_Concept.types.ts +11 -4
- package/src/global/A-Container/A-Container.class.ts +11 -90
- package/src/global/A-Container/A-Container.meta.ts +33 -0
- package/src/global/A-Context/A-Context.class.ts +139 -56
- package/src/global/A-Entity/A-Entity.class.ts +22 -69
- package/src/global/A-Entity/A-Entity.meta.ts +3 -2
- package/src/global/A-Entity/A-Entity.types.ts +2 -1
- package/src/global/A-Feature/A-Feature.class.ts +18 -7
- package/src/global/A-Feature/A-Feature.types.ts +10 -2
- package/src/global/A-Meta/A-Meta.class.ts +5 -8
- package/src/global/A-Scope/A-Scope.class.ts +40 -21
- package/src/global/A-Scope/A-Scope.types.ts +8 -2
- package/src/global/A-Stage/A-Stage.class.ts +20 -20
- package/src/global/A-Stage/A-Stage.types.ts +2 -3
- package/src/helpers/StepsManager.class.ts +11 -7
- package/trace-require.js +46 -0
- package/tsconfig.build.json +57 -0
- package/dist/examples/fe-be/channels/Test.channel.d.ts +0 -6
- package/dist/examples/fe-be/channels/Test.channel.js +0 -14
- package/dist/examples/fe-be/channels/Test.channel.js.map +0 -1
- package/dist/examples/fe-be/components/BE-Controller.component.d.ts +0 -4
- package/dist/examples/fe-be/components/BE-Controller.component.js +0 -24
- package/dist/examples/fe-be/components/BE-Controller.component.js.map +0 -1
- package/dist/examples/fe-be/components/FE.component.d.ts +0 -4
- package/dist/examples/fe-be/components/FE.component.js +0 -31
- package/dist/examples/fe-be/components/FE.component.js.map +0 -1
- package/dist/examples/fe-be/components/UserActions.component.d.ts +0 -5
- package/dist/examples/fe-be/components/UserActions.component.js +0 -25
- package/dist/examples/fe-be/components/UserActions.component.js.map +0 -1
- package/dist/examples/fe-be/concept.d.ts +0 -0
- package/dist/examples/fe-be/concept.js +0 -2
- package/dist/examples/fe-be/concept.js.map +0 -1
- package/dist/examples/fe-be/containers/ServerApp.container.d.ts +0 -3
- package/dist/examples/fe-be/containers/ServerApp.container.js +0 -8
- package/dist/examples/fe-be/containers/ServerApp.container.js.map +0 -1
- package/dist/examples/fe-be/containers/WebApp.container.d.ts +0 -3
- package/dist/examples/fe-be/containers/WebApp.container.js +0 -8
- package/dist/examples/fe-be/containers/WebApp.container.js.map +0 -1
- package/dist/examples/multi-container/channels/Direct.channel.d.ts +0 -9
- package/dist/examples/multi-container/channels/Direct.channel.js +0 -32
- package/dist/examples/multi-container/channels/Direct.channel.js.map +0 -1
- package/dist/examples/multi-container/concept.d.ts +0 -0
- package/dist/examples/multi-container/concept.js +0 -2
- package/dist/examples/multi-container/concept.js.map +0 -1
- package/dist/examples/multi-container/containers/Command.container.d.ts +0 -11
- package/dist/examples/multi-container/containers/Command.container.js +0 -51
- package/dist/examples/multi-container/containers/Command.container.js.map +0 -1
- package/dist/examples/multi-container/containers/Schedule.container.d.ts +0 -15
- package/dist/examples/multi-container/containers/Schedule.container.js +0 -67
- package/dist/examples/multi-container/containers/Schedule.container.js.map +0 -1
- package/dist/examples/sdk/concept.d.ts +0 -0
- package/dist/examples/sdk/concept.js +0 -21
- package/dist/examples/sdk/concept.js.map +0 -1
- package/dist/examples/sdk/orders.api.d.ts +0 -0
- package/dist/examples/sdk/orders.api.js +0 -16
- package/dist/examples/sdk/orders.api.js.map +0 -1
- package/dist/examples/sdk/users.api.d.ts +0 -0
- package/dist/examples/sdk/users.api.js +0 -16
- package/dist/examples/sdk/users.api.js.map +0 -1
- package/dist/examples/simple/components/A.component.d.ts +0 -9
- package/dist/examples/simple/components/A.component.js +0 -60
- package/dist/examples/simple/components/A.component.js.map +0 -1
- package/dist/examples/simple/components/B.component.d.ts +0 -13
- package/dist/examples/simple/components/B.component.js +0 -88
- package/dist/examples/simple/components/B.component.js.map +0 -1
- package/dist/examples/simple/concept.d.ts +0 -1
- package/dist/examples/simple/concept.js +0 -82
- package/dist/examples/simple/concept.js.map +0 -1
- package/dist/examples/simple/containers/Main.container.d.ts +0 -11
- package/dist/examples/simple/containers/Main.container.js +0 -86
- package/dist/examples/simple/containers/Main.container.js.map +0 -1
- package/dist/examples/simple/context/Fragment_A.context.d.ts +0 -6
- package/dist/examples/simple/context/Fragment_A.context.js +0 -16
- package/dist/examples/simple/context/Fragment_A.context.js.map +0 -1
- package/dist/examples/simple/context/Fragment_B.context.d.ts +0 -6
- package/dist/examples/simple/context/Fragment_B.context.js +0 -16
- package/dist/examples/simple/context/Fragment_B.context.js.map +0 -1
- package/dist/examples/simple/entities/EntityA.entity.d.ts +0 -8
- package/dist/examples/simple/entities/EntityA.entity.js +0 -22
- package/dist/examples/simple/entities/EntityA.entity.js.map +0 -1
- package/dist/examples/simple-http-server/components/http-error-handler.component.d.ts +0 -10
- package/dist/examples/simple-http-server/components/http-error-handler.component.js +0 -65
- package/dist/examples/simple-http-server/components/http-error-handler.component.js.map +0 -1
- package/dist/examples/simple-http-server/components/http-request-handler.component.d.ts +0 -3
- package/dist/examples/simple-http-server/components/http-request-handler.component.js +0 -8
- package/dist/examples/simple-http-server/components/http-request-handler.component.js.map +0 -1
- package/dist/examples/simple-http-server/concept.d.ts +0 -1
- package/dist/examples/simple-http-server/concept.js +0 -35
- package/dist/examples/simple-http-server/concept.js.map +0 -1
- package/dist/examples/simple-http-server/containers/http-server.container.d.ts +0 -11
- package/dist/examples/simple-http-server/containers/http-server.container.js +0 -73
- package/dist/examples/simple-http-server/containers/http-server.container.js.map +0 -1
- package/dist/examples/simple-http-server/containers/http-server.controller.d.ts +0 -7
- package/dist/examples/simple-http-server/containers/http-server.controller.js +0 -37
- package/dist/examples/simple-http-server/containers/http-server.controller.js.map +0 -1
- package/dist/examples/simple-http-server/containers/http-server.router.d.ts +0 -6
- package/dist/examples/simple-http-server/containers/http-server.router.js +0 -39
- package/dist/examples/simple-http-server/containers/http-server.router.js.map +0 -1
- package/dist/examples/simple-http-server/contexts/http-request.context.d.ts +0 -12
- package/dist/examples/simple-http-server/contexts/http-request.context.js +0 -49
- package/dist/examples/simple-http-server/contexts/http-request.context.js.map +0 -1
- package/dist/examples/simple-http-server/contexts/http-server.context.types.d.ts +0 -0
- package/dist/examples/simple-http-server/contexts/http-server.context.types.js +0 -2
- package/dist/examples/simple-http-server/contexts/http-server.context.types.js.map +0 -1
- package/dist/examples/simple-http-server/contexts/http-server.namespace.d.ts +0 -10
- package/dist/examples/simple-http-server/contexts/http-server.namespace.js +0 -26
- package/dist/examples/simple-http-server/contexts/http-server.namespace.js.map +0 -1
- package/dist/examples/simple-http-server/controllers/orders.controller.d.ts +0 -5
- package/dist/examples/simple-http-server/controllers/orders.controller.js +0 -32
- package/dist/examples/simple-http-server/controllers/orders.controller.js.map +0 -1
- package/dist/examples/simple-http-server/controllers/users.controller.d.ts +0 -0
- package/dist/examples/simple-http-server/controllers/users.controller.js +0 -87
- package/dist/examples/simple-http-server/controllers/users.controller.js.map +0 -1
- package/dist/examples/simple-http-server/modules/simple-http-server.context.d.ts +0 -5
- package/dist/examples/simple-http-server/modules/simple-http-server.context.js +0 -25
- package/dist/examples/simple-http-server/modules/simple-http-server.context.js.map +0 -1
- package/dist/examples/simple-http-server/modules/simple-http-server.module.d.ts +0 -16
- package/dist/examples/simple-http-server/modules/simple-http-server.module.js +0 -8
- package/dist/examples/simple-http-server/modules/simple-http-server.module.js.map +0 -1
- package/dist/examples/simple-http-server/modules/simple-http-server.types.d.ts +0 -2
- package/dist/examples/simple-http-server/modules/simple-http-server.types.js +0 -3
- package/dist/examples/simple-http-server/modules/simple-http-server.types.js.map +0 -1
- package/dist/examples/simple-http-server/test.d.ts +0 -68
- package/dist/examples/simple-http-server/test.js +0 -162
- package/dist/examples/simple-http-server/test.js.map +0 -1
- package/dist/src/containers/A-Config/A-Config.container.d.ts +0 -7
- package/dist/src/containers/A-Config/A-Config.container.js +0 -65
- package/dist/src/containers/A-Config/A-Config.container.js.map +0 -1
- package/dist/src/containers/A-Config/A-Config.namespace.d.ts +0 -28
- package/dist/src/containers/A-Config/A-Config.namespace.js +0 -54
- package/dist/src/containers/A-Config/A-Config.namespace.js.map +0 -1
- package/dist/src/containers/A-Config/A-Config.types.d.ts +0 -12
- package/dist/src/containers/A-Config/A-Config.types.js +0 -3
- package/dist/src/containers/A-Config/A-Config.types.js.map +0 -1
- package/dist/src/containers/A-Config/components/ConfigReader.component.d.ts +0 -18
- package/dist/src/containers/A-Config/components/ConfigReader.component.js +0 -37
- package/dist/src/containers/A-Config/components/ConfigReader.component.js.map +0 -1
- package/dist/src/containers/A-Config/components/ENVConfigReader.component.d.ts +0 -10
- package/dist/src/containers/A-Config/components/ENVConfigReader.component.js +0 -37
- package/dist/src/containers/A-Config/components/ENVConfigReader.component.js.map +0 -1
- package/dist/src/containers/A-Config/components/FileConfigReader.component.d.ts +0 -11
- package/dist/src/containers/A-Config/components/FileConfigReader.component.js +0 -47
- package/dist/src/containers/A-Config/components/FileConfigReader.component.js.map +0 -1
- package/dist/src/containers/A-Errors/A-Errors.container.d.ts +0 -5
- package/dist/src/containers/A-Errors/A-Errors.container.js +0 -32
- package/dist/src/containers/A-Errors/A-Errors.container.js.map +0 -1
- package/dist/src/containers/A-Errors/A-Errors.namespace.d.ts +0 -40
- package/dist/src/containers/A-Errors/A-Errors.namespace.js +0 -76
- package/dist/src/containers/A-Errors/A-Errors.namespace.js.map +0 -1
- package/dist/src/containers/A-Errors/A-Errors.types.d.ts +0 -5
- package/dist/src/containers/A-Errors/A-Errors.types.js +0 -3
- package/dist/src/containers/A-Errors/A-Errors.types.js.map +0 -1
- package/dist/src/containers/A-Logger/A-Logger.container.d.ts +0 -6
- package/dist/src/containers/A-Logger/A-Logger.container.js +0 -41
- package/dist/src/containers/A-Logger/A-Logger.container.js.map +0 -1
- package/dist/src/containers/A-Logger/A-Logger.namespace.d.ts +0 -17
- package/dist/src/containers/A-Logger/A-Logger.namespace.js +0 -22
- package/dist/src/containers/A-Logger/A-Logger.namespace.js.map +0 -1
- package/dist/src/containers/A-Logger/A-Logger.types.d.ts +0 -0
- package/dist/src/containers/A-Logger/A-Logger.types.js +0 -2
- package/dist/src/containers/A-Logger/A-Logger.types.js.map +0 -1
- package/dist/src/containers/A-Logger/components/Logger.component.d.ts +0 -29
- package/dist/src/containers/A-Logger/components/Logger.component.js +0 -128
- package/dist/src/containers/A-Logger/components/Logger.component.js.map +0 -1
- package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.js.map +0 -1
- package/dist/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.d.ts +0 -34
- package/dist/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.js +0 -3
- package/dist/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.js.map +0 -1
- package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.d.ts +0 -11
- package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.js +0 -36
- package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.js.map +0 -1
- package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.d.ts +0 -7
- package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.js +0 -3
- package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.js.map +0 -1
- package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.d.ts +0 -17
- package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.js +0 -42
- package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.js.map +0 -1
- package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.d.ts +0 -8
- package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.js +0 -3
- package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.js.map +0 -1
- package/dist/src/decorators/A-ConceptLifecycle/index.d.ts +0 -7
- package/dist/src/decorators/A-ConceptLifecycle/index.js +0 -11
- package/dist/src/decorators/A-ConceptLifecycle/index.js.map +0 -1
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.d.ts +0 -16
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.js +0 -36
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.js.map +0 -1
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.d.ts +0 -8
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.js +0 -3
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.js.map +0 -1
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.d.ts +0 -14
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.js +0 -24
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.js.map +0 -1
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.d.ts +0 -8
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.js +0 -3
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.js.map +0 -1
- package/dist/src/decorators/A-Define/index.d.ts +0 -7
- package/dist/src/decorators/A-Define/index.js +0 -10
- package/dist/src/decorators/A-Define/index.js.map +0 -1
- package/dist/src/decorators/A-Extend/A-Extend.decorator.d.ts +0 -18
- package/dist/src/decorators/A-Extend/A-Extend.decorator.js +0 -37
- package/dist/src/decorators/A-Extend/A-Extend.decorator.js.map +0 -1
- package/dist/src/decorators/A-Extend/A-Extend.decorator.types.d.ts +0 -21
- package/dist/src/decorators/A-Extend/A-Extend.decorator.types.js +0 -3
- package/dist/src/decorators/A-Extend/A-Extend.decorator.types.js.map +0 -1
- package/dist/src/decorators/A-Feature/A-Feature.decorator.d.ts +0 -0
- package/dist/src/decorators/A-Feature/A-Feature.decorator.js +0 -11
- package/dist/src/decorators/A-Feature/A-Feature.decorator.js.map +0 -1
- package/dist/src/decorators/A-Stage/A-Stage.decorator.d.ts +0 -13
- package/dist/src/decorators/A-Stage/A-Stage.decorator.js +0 -52
- package/dist/src/decorators/A-Stage/A-Stage.decorator.js.map +0 -1
- package/dist/src/decorators/A-Stage/A-Stage.decorator.types.d.ts +0 -2
- package/dist/src/decorators/A-Stage/A-Stage.decorator.types.js +0 -3
- package/dist/src/decorators/A-Stage/A-Stage.decorator.types.js.map +0 -1
- package/dist/src/decorators/A_ConceptMethods.decorator.d.ts +0 -0
- package/dist/src/decorators/A_ConceptMethods.decorator.js +0 -2
- package/dist/src/decorators/A_ConceptMethods.decorator.js.map +0 -1
- package/dist/src/decorators/A_Lazy.decorator.d.ts +0 -5
- package/dist/src/decorators/A_Lazy.decorator.js +0 -20
- package/dist/src/decorators/A_Lazy.decorator.js.map +0 -1
- package/dist/src/global/A-Context/A-ContextFragment.class.d.ts +0 -12
- package/dist/src/global/A-Context/A-ContextFragment.class.js +0 -19
- package/dist/src/global/A-Context/A-ContextFragment.class.js.map +0 -1
- package/dist/src/global/A-Namespace/A_Namespace.class.d.ts +0 -47
- package/dist/src/global/A-Namespace/A_Namespace.class.js +0 -112
- package/dist/src/global/A-Namespace/A_Namespace.class.js.map +0 -1
- package/dist/src/global/A-Namespace/A_Namespace.types.d.ts +0 -19
- package/dist/src/global/A-Namespace/A_Namespace.types.js +0 -3
- package/dist/src/global/A-Namespace/A_Namespace.types.js.map +0 -1
- package/dist/src/managers/A_DependencyManager.class.d.ts +0 -24
- package/dist/src/managers/A_DependencyManager.class.js +0 -129
- package/dist/src/managers/A_DependencyManager.class.js.map +0 -1
- package/dist/src/storage/A_Component.storage.d.ts +0 -10
- package/dist/src/storage/A_Component.storage.js +0 -17
- package/dist/src/storage/A_Component.storage.js.map +0 -1
- package/dist/src/storage/A_Concept.storage.d.ts +0 -19
- package/dist/src/storage/A_Concept.storage.js +0 -29
- package/dist/src/storage/A_Concept.storage.js.map +0 -1
- package/dist/src/storage/A_Container.storage.d.ts +0 -8
- package/dist/src/storage/A_Container.storage.js +0 -17
- package/dist/src/storage/A_Container.storage.js.map +0 -1
- package/dist/src/storage/A_Inject.storage.d.ts +0 -9
- package/dist/src/storage/A_Inject.storage.js +0 -13
- package/dist/src/storage/A_Inject.storage.js.map +0 -1
- package/dist/src/types/A_DependencyManager.types.d.ts +0 -15
- package/dist/src/types/A_DependencyManager.types.js +0 -3
- package/dist/src/types/A_DependencyManager.types.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,19 +1,167 @@
|
|
|
1
|
-
<img align="left" style="margin-right:40px; margin-bottom:80px;" width="
|
|
1
|
+
<img align="left" style="margin-right:40px; margin-bottom:80px;" width="200" height="200" src="./docs/a-concept-logo.png" alt="ADAAS Logo">
|
|
2
2
|
|
|
3
|
-
# A
|
|
3
|
+
# A-Concept
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|---------------|----------|---------------------------|
|
|
7
|
-
| v1.0.0 | v1.0.1 | [@adaas/a-concept](https://npm.com) |
|
|
5
|
+
🚀 A Paradigm Shift for Software Development in the Age of AI and [Industry 5.0](https://research-and-innovation.ec.europa.eu/research-area/industrial-research-and-innovation/industry-50_en).
|
|
8
6
|
|
|
7
|
+
[](https://www.npmjs.com/package/@adaas/a-concept)
|
|
8
|
+
[](https://github.com/ADAAS-org/adaas-a-concept/releases)
|
|
9
|
+
[](https://www.linkedin.com/in/your-profile/)
|
|
10
|
+
[](LICENSE)
|
|
11
|
+
[](https://github.com/your-framework/repo/issues)
|
|
12
|
+
[](https://a-concept.com/docs)
|
|
13
|
+
<!-- [](https://github.com/your-framework/repo/releases/tag/v1.0.0) -->
|
|
9
14
|
|
|
10
|
-
## Install SDK
|
|
11
15
|
|
|
12
|
-
```bash
|
|
13
16
|
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 📖 **Table of Contents**
|
|
20
|
+
|
|
21
|
+
1. [Overview](#-overview)
|
|
22
|
+
2. [Why Choose A-Concept?](#-why-choose-a-concept)
|
|
23
|
+
3. [Core Principles](#-core-principles)
|
|
24
|
+
- [Technology](#-technology)
|
|
25
|
+
- [Collaboration](#-collaboration)
|
|
26
|
+
- [Bridging Architecture & Code](#-bridging-architecture--code)
|
|
27
|
+
4. [Getting Started](#-getting-started)
|
|
28
|
+
5. [Challenges in Modern Development](#-challenges-in-modern-development)
|
|
29
|
+
- [AI Hallucinations and Incorrect Code Outputs](#-ai-hallucinations-and-incorrect-code-outputs)
|
|
30
|
+
- [The Gap Between Software Design and Implementation](#-the-gap-between-software-design-and-implementation)
|
|
31
|
+
- [Scaling and Product Evolution](#-scaling-and-product-evolution)
|
|
32
|
+
- [Inappropriate Role Combinations and Team Structures](#-inappropriate-role-combinations-and-team-structures)
|
|
33
|
+
- [Outdated SDLC Methodologies](#-outdated-sdlc-methodologies)
|
|
34
|
+
6. [About the Team](#-about-the-team)
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## 📖 Overview
|
|
40
|
+
|
|
41
|
+
A-Concept is a modern framework created by the ADAAS R&D team to redefine how we design and develop software in the Industry 5.0 era. It combines:
|
|
42
|
+
|
|
43
|
+
1. **The A-Concept Paradigm**: A revolutionary architectural framework rooted in an enhanced C4 model, designed to bridge software design and actual development.
|
|
44
|
+
|
|
45
|
+
2. **The A-Concept Framework**: A robust software development toolkit that brings the paradigm to life. It includes tools, APIs, and integrations to enable developers to implement the A-Concept methodology seamlessly in their projects, regardless of the platform or domain.
|
|
46
|
+
|
|
47
|
+
3. **A-Concept Ecosystem**: A suite of AI-prepared components, libraries, and modules designed to ensure AI-generated code is not only functional but also architecturally sound.
|
|
48
|
+
|
|
49
|
+
With A-Concept, developers and businesses can create software that evolves seamlessly, breaking free from outdated methodologies and limitations.
|
|
50
|
+
|
|
51
|
+
## 🌍 Core Principles
|
|
52
|
+
|
|
53
|
+
### 🔧 Technology
|
|
54
|
+
|
|
55
|
+
Unlike traditional frameworks that impose restrictions, A-Concept:
|
|
56
|
+
- Offers tools, not rules.
|
|
57
|
+
- Encourages flexibility to build, combine, and innovate across platforms.
|
|
58
|
+
- Provides AI-ready modules for faster and more accurate development.
|
|
59
|
+
|
|
60
|
+
### 🫠 Collaboration
|
|
61
|
+
|
|
62
|
+
SCRUM is outdated. Here’s why A-Concept takes a futuristic approach:
|
|
63
|
+
- Simplifies processes for solo entrepreneurs and lean enterprises.
|
|
64
|
+
- Eliminates unnecessary rituals, focusing instead on results and innovation.
|
|
65
|
+
- Enhances developer productivity by automating repetitive tasks, enabling teams to focus on optimized, high-quality code.
|
|
66
|
+
|
|
67
|
+
### 🔽 Bridging Architecture & Code
|
|
68
|
+
|
|
69
|
+
Traditional development often struggles with a disconnect between architecture and code. A-Concept fixes this by:
|
|
70
|
+
- Extending the C4 model to include design capabilities.
|
|
71
|
+
- Ensuring architecture and code stay in sync with AI-assisted tools.
|
|
72
|
+
- Empowering developers to become architects with intuitive and self-documented workflows.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## Problems
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## 📂 Getting Started
|
|
80
|
+
|
|
81
|
+
```bash
|
|
14
82
|
cd /your/project/location
|
|
15
|
-
adf
|
|
16
83
|
npm i @adaas/a-concept
|
|
84
|
+
```
|
|
85
|
+
Then export
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
import { Concept } from '@adaas/a-concept';
|
|
89
|
+
const concept = new Concept({
|
|
90
|
+
name: 'my-concept'
|
|
91
|
+
});
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
and extend
|
|
17
95
|
|
|
96
|
+
```ts
|
|
97
|
+
(async () => {
|
|
98
|
+
const concept = new A_Concept({
|
|
99
|
+
name: 'test-simple',
|
|
100
|
+
fragments: [
|
|
101
|
+
new A_Config({
|
|
102
|
+
variables: ['CONFIG_VERBOSE'],
|
|
103
|
+
defaults: {
|
|
104
|
+
'CONFIG_VERBOSE': true
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
],
|
|
108
|
+
containers: [
|
|
109
|
+
new A_ConfigLoader({
|
|
110
|
+
components: [
|
|
111
|
+
ENVConfigReader
|
|
112
|
+
]
|
|
113
|
+
})
|
|
114
|
+
]
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
await concept.start();
|
|
118
|
+
})();
|
|
18
119
|
```
|
|
19
120
|
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
## 👨💻 About the Team
|
|
124
|
+
|
|
125
|
+
The [ADAAS R&D](https://adaas.org) team comprises seasoned developers and architects who’ve been part of software evolution from its early days. We understand the pain points of traditional methodologies and are passionate about creating tools that bridge gaps and propel development into the future.
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
## 🗋 Challenges in Modern Development
|
|
130
|
+
|
|
131
|
+
### 🚀 AI Hallucinations and Incorrect Code Outputs
|
|
132
|
+
|
|
133
|
+
The rapid rise of AI tools for code generation has introduced a significant challenge: hallucinations. These occur when AI generates plausible-looking but fundamentally flawed code. While impressive, AI outputs often lack precision and fail to align with the overall architectural vision.
|
|
134
|
+
|
|
135
|
+
Solution:
|
|
136
|
+
A-Concept creates an ecosystem where AI operates within clearly defined boundaries, leveraging self-documenting primitives and an extended C4 model. This ensures that AI’s contributions align with the intended design and functionality.
|
|
137
|
+
|
|
138
|
+
### 🔗 The Gap Between Software Design and Implementation
|
|
139
|
+
|
|
140
|
+
One of the most persistent problems in software development is the disconnect between high-level architectural plans and actual implementation. Traditional methodologies often result in documentation that quickly becomes outdated, leading to chaotic, hard-to-maintain codebases.
|
|
141
|
+
|
|
142
|
+
Solution:
|
|
143
|
+
A-Concept merges design and implementation into a single, seamless process. The framework’s self-documenting capabilities mean that architecture is always synchronized with the code, offering clarity for both developers and stakeholders.
|
|
144
|
+
|
|
145
|
+
### 📈 Scaling and Product Evolution
|
|
146
|
+
|
|
147
|
+
Scaling a product over time is a daunting task. As projects grow, technical debt accumulates, making it harder to introduce new features or pivot to meet market demands. Existing frameworks often fail to provide tools that support long-term evolution.
|
|
148
|
+
|
|
149
|
+
Solution:
|
|
150
|
+
A-Concept introduces an ecosystem built with scalability in mind. Its modular design enables projects to adapt, evolve, and scale without compromising the integrity of the underlying architecture.
|
|
151
|
+
|
|
152
|
+
### 🛠️ Inappropriate Role Combinations and Team Structures
|
|
153
|
+
|
|
154
|
+
The industry’s current approach to team roles and responsibilities is often inefficient. Developers juggle multiple hats, ranging from low-level coding to high-level architectural design. This mismatch leads to burnout and suboptimal results.
|
|
155
|
+
|
|
156
|
+
Solution:
|
|
157
|
+
A-Concept reimagines collaboration by enabling developers to focus on their strengths. The framework’s tools allow low-level specialists to optimize performance while product-focused professionals drive business outcomes. AI handles routine tasks, freeing teams to innovate.
|
|
158
|
+
|
|
159
|
+
### 🗂 Outdated SDLC Methodologies
|
|
160
|
+
|
|
161
|
+
Traditional methodologies like SCRUM and Waterfall were revolutionary in their time, but they struggle to meet the demands of modern software development. These methodologies are ritual-heavy, time-consuming, and ill-suited for AI-driven development.
|
|
162
|
+
|
|
163
|
+
Solution:
|
|
164
|
+
A-Concept promotes a streamlined approach. By leveraging AI and rethinking team structures, we eliminate unnecessary rituals and focus on achieving results. This makes the development process leaner, faster, and more aligned with business goals.
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { A_Context } from './src/global/A-Context/A-Context.class';
|
|
2
|
+
export { A_Abstraction } from './src/global/A-Abstraction/A-Abstraction.class';
|
|
3
|
+
export * from './src/global/A-Abstraction/A-Abstraction.types';
|
|
2
4
|
export { A_Concept } from './src/global/A-Concept/A_Concept.class';
|
|
3
5
|
export { A_ConceptMeta } from './src/global/A-Concept/A_Concept.meta';
|
|
4
6
|
export * from './src/global/A-Concept/A_Concept.types';
|
|
@@ -26,7 +28,7 @@ export * from './src/decorators/A-Inject/A-Inject.decorator.types';
|
|
|
26
28
|
export { A_Feature_Define } from './src/decorators/A-Feature/A-Feature-Define.decorator';
|
|
27
29
|
export { A_Feature_Extend } from './src/decorators/A-Feature/A-Feature-Extend.decorator';
|
|
28
30
|
export * from './src/decorators/A-Feature/A-Feature.decorator.types';
|
|
29
|
-
export {
|
|
31
|
+
export { A_Abstraction_Extend } from './src/decorators/A-Abstraction/A-Abstraction-Extend.decorator';
|
|
30
32
|
export * from './src/decorators/A-Abstraction/A-Abstraction.decorator.types';
|
|
31
33
|
export { A_Connect } from './src/decorators/A-Connect/A-Connect.decorator';
|
|
32
34
|
export * from './src/decorators/A-Connect/A-Connect.decorator.types';
|
package/dist/index.js
CHANGED
|
@@ -17,11 +17,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
17
17
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.A_Errors = exports.A_ErrorsManager = exports.FileConfigReader = exports.ENVConfigReader = exports.ConfigReader = exports.A_Config = exports.A_ConfigLoader = exports.A_Connect = exports.
|
|
20
|
+
exports.A_Errors = exports.A_ErrorsManager = exports.FileConfigReader = exports.ENVConfigReader = exports.ConfigReader = exports.A_Config = exports.A_ConfigLoader = exports.A_Connect = exports.A_Abstraction_Extend = exports.A_Feature_Extend = exports.A_Feature_Define = exports.A_Inject = exports.A_Fragment = exports.A_Meta = exports.A_Scope = exports.A_Stage = exports.A_Feature = exports.A_Channel = exports.A_Entity = exports.A_ComponentMeta = exports.A_Component = exports.A_ContainerMeta = exports.A_Container = exports.A_ConceptMeta = exports.A_Concept = exports.A_Abstraction = exports.A_Context = void 0;
|
|
21
21
|
// ---------------------- Major Components ----------------------
|
|
22
22
|
var A_Context_class_1 = require("./src/global/A-Context/A-Context.class");
|
|
23
23
|
Object.defineProperty(exports, "A_Context", { enumerable: true, get: function () { return A_Context_class_1.A_Context; } });
|
|
24
24
|
// export * from './src/global/A-Context/A-Context.types';
|
|
25
|
+
var A_Abstraction_class_1 = require("./src/global/A-Abstraction/A-Abstraction.class");
|
|
26
|
+
Object.defineProperty(exports, "A_Abstraction", { enumerable: true, get: function () { return A_Abstraction_class_1.A_Abstraction; } });
|
|
27
|
+
__exportStar(require("./src/global/A-Abstraction/A-Abstraction.types"), exports);
|
|
25
28
|
var A_Concept_class_1 = require("./src/global/A-Concept/A_Concept.class");
|
|
26
29
|
Object.defineProperty(exports, "A_Concept", { enumerable: true, get: function () { return A_Concept_class_1.A_Concept; } });
|
|
27
30
|
var A_Concept_meta_1 = require("./src/global/A-Concept/A_Concept.meta");
|
|
@@ -70,8 +73,8 @@ Object.defineProperty(exports, "A_Feature_Define", { enumerable: true, get: func
|
|
|
70
73
|
var A_Feature_Extend_decorator_1 = require("./src/decorators/A-Feature/A-Feature-Extend.decorator");
|
|
71
74
|
Object.defineProperty(exports, "A_Feature_Extend", { enumerable: true, get: function () { return A_Feature_Extend_decorator_1.A_Feature_Extend; } });
|
|
72
75
|
__exportStar(require("./src/decorators/A-Feature/A-Feature.decorator.types"), exports);
|
|
73
|
-
var
|
|
74
|
-
Object.defineProperty(exports, "
|
|
76
|
+
var A_Abstraction_Extend_decorator_1 = require("./src/decorators/A-Abstraction/A-Abstraction-Extend.decorator");
|
|
77
|
+
Object.defineProperty(exports, "A_Abstraction_Extend", { enumerable: true, get: function () { return A_Abstraction_Extend_decorator_1.A_Abstraction_Extend; } });
|
|
75
78
|
__exportStar(require("./src/decorators/A-Abstraction/A-Abstraction.decorator.types"), exports);
|
|
76
79
|
var A_Connect_decorator_1 = require("./src/decorators/A-Connect/A-Connect.decorator");
|
|
77
80
|
Object.defineProperty(exports, "A_Connect", { enumerable: true, get: function () { return A_Connect_decorator_1.A_Connect; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;;;;;;;;;;;;;;;;;AAEpG,iEAAiE;AACjE,0EAAmE;AAA1D,4GAAA,SAAS,OAAA;AAClB,0DAA0D;AAE1D,0EAAmE;AAA1D,4GAAA,SAAS,OAAA;AAClB,wEAAsE;AAA7D,+GAAA,aAAa,OAAA;AACtB,yEAAuD;AAEvD,gFAAyE;AAAhE,gHAAA,WAAW,OAAA;AACpB,8EAA4E;AAAnE,mHAAA,eAAe,OAAA;AACxB,6EAA2D;AAE3D,gFAAyE;AAAhE,gHAAA,WA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A-Scope.class";
|
|
2
3
|
import { A_Config } from "./A-Config.context";
|
|
3
|
-
|
|
4
|
+
import { A_TYPES__ContainerConstructor } from "../../global/A-Container/A-Container.types";
|
|
5
|
+
export declare class A_ConfigLoader extends A_Container {
|
|
4
6
|
private reader;
|
|
7
|
+
constructor(params: Partial<A_TYPES__ContainerConstructor<['load', 'read']>>);
|
|
5
8
|
prepare(config: A_Config): Promise<void>;
|
|
6
|
-
readVariables(config: A_Config): Promise<void>;
|
|
9
|
+
readVariables(config: A_Config, scope: A_Scope): Promise<void>;
|
|
7
10
|
}
|
|
@@ -25,9 +25,13 @@ const a_utils_1 = require("@adaas/a-utils");
|
|
|
25
25
|
const A_Context_class_1 = require("../../global/A-Context/A-Context.class");
|
|
26
26
|
const FileConfigReader_component_1 = require("./components/FileConfigReader.component");
|
|
27
27
|
const ENVConfigReader_component_1 = require("./components/ENVConfigReader.component");
|
|
28
|
+
const A_Scope_class_1 = require("../../global/A-Scope/A-Scope.class");
|
|
28
29
|
const A_Concept_class_1 = require("../../global/A-Concept/A_Concept.class");
|
|
29
30
|
const A_Config_context_1 = require("./A-Config.context");
|
|
30
31
|
class A_ConfigLoader extends A_Container_class_1.A_Container {
|
|
32
|
+
constructor(params) {
|
|
33
|
+
super(Object.assign(Object.assign({}, params), { name: params.name || 'a-config-loader' }));
|
|
34
|
+
}
|
|
31
35
|
prepare(config) {
|
|
32
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
37
|
const fs = yield a_utils_1.A_Polyfills.fs();
|
|
@@ -47,7 +51,7 @@ class A_ConfigLoader extends A_Container_class_1.A_Container {
|
|
|
47
51
|
}
|
|
48
52
|
});
|
|
49
53
|
}
|
|
50
|
-
readVariables(config) {
|
|
54
|
+
readVariables(config, scope) {
|
|
51
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52
56
|
yield this.reader.inject(config);
|
|
53
57
|
});
|
|
@@ -60,7 +64,8 @@ __decorate([
|
|
|
60
64
|
], A_ConfigLoader.prototype, "prepare", null);
|
|
61
65
|
__decorate([
|
|
62
66
|
A_Concept_class_1.A_Concept.Load(),
|
|
63
|
-
__param(0, (0, A_Inject_decorator_1.A_Inject)(A_Config_context_1.A_Config))
|
|
67
|
+
__param(0, (0, A_Inject_decorator_1.A_Inject)(A_Config_context_1.A_Config)),
|
|
68
|
+
__param(1, (0, A_Inject_decorator_1.A_Inject)(A_Scope_class_1.A_Scope))
|
|
64
69
|
], A_ConfigLoader.prototype, "readVariables", null);
|
|
65
70
|
const foo = new A_ConfigLoader({});
|
|
66
71
|
//# sourceMappingURL=A-Config.container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Config.container.js","sourceRoot":"","sources":["../../../../src/base/A-Config/A-Config.container.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,6FAAoF;
|
|
1
|
+
{"version":3,"file":"A-Config.container.js","sourceRoot":"","sources":["../../../../src/base/A-Config/A-Config.container.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,6FAAoF;AAEpF,gGAAmF;AACnF,4CAA6C;AAC7C,uFAA8E;AAC9E,wFAA2E;AAC3E,sFAAyE;AACzE,iFAAwE;AACxE,uFAA8E;AAC9E,yDAA8C;AAI9C,MAAa,cAAe,SAAQ,+BAAW;IAK3C,YAAY,MAA+D;QACvE,KAAK,iCACE,MAAM,KACT,IAAI,EAAC,MAAM,CAAC,IAAI,IAAI,iBAAiB,IACvC,CAAC;IACP,CAAC;IAIK,OAAO,CACW,MAAgB;;YAEpC,MAAM,EAAE,GAAG,MAAM,qBAAW,CAAC,EAAE,EAAE,CAAC;YAElC,QAAQ,IAAI,EAAE,CAAC;gBAEX,KAAK,2BAAS,CAAC,WAAW,KAAK,QAAQ,IAAI,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC;oBACtF,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,6CAAgB,CAAC,CAAC;oBACnD,MAAM;gBAEV,KAAK,2BAAS,CAAC,WAAW,KAAK,QAAQ;oBAAE,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC,CAAA;oBACnF,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,2CAAe,CAAC,CAAC;oBAClD,MAAM;gBAEV,KAAK,2BAAS,CAAC,WAAW,KAAK,SAAS;oBACpC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,2CAAe,CAAC,CAAC;oBAClD,MAAM;gBAEV;oBACI,MAAM,IAAI,KAAK,CAAC,eAAe,2BAAS,CAAC,WAAW,mBAAmB,CAAC,CAAC;YACjF,CAAC;QAEL,CAAC;KAAA;IAKK,aAAa,CACK,MAAgB,EACjB,KAAc;;YAEjC,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrC,CAAC;KAAA;CAEJ;AAjDD,wCAiDC;AAnCS;IADL,2BAAS,CAAC,IAAI,EAAE;IAEZ,WAAA,IAAA,6BAAQ,EAAC,2BAAQ,CAAC,CAAA;6CAsBtB;AAKK;IADL,2BAAS,CAAC,IAAI,EAAE;IAEZ,WAAA,IAAA,6BAAQ,EAAC,2BAAQ,CAAC,CAAA;IAClB,WAAA,IAAA,6BAAQ,EAAC,uBAAO,CAAC,CAAA;mDAGrB;AAQL,MAAM,GAAG,GAAG,IAAI,cAAc,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -22,8 +22,8 @@ exports.ConfigReader = void 0;
|
|
|
22
22
|
const A_Scope_class_1 = require("../../../global/A-Scope/A-Scope.class");
|
|
23
23
|
const A_Inject_decorator_1 = require("../../../decorators/A-Inject/A-Inject.decorator");
|
|
24
24
|
const A_Component_class_1 = require("../../../global/A-Component/A-Component.class");
|
|
25
|
-
const A_Concept_class_1 = require("../../../global/A-Concept/A_Concept.class");
|
|
26
25
|
const A_Config_context_1 = require("../A-Config.context");
|
|
26
|
+
const A_Concept_class_1 = require("../../../global/A-Concept/A_Concept.class");
|
|
27
27
|
/**
|
|
28
28
|
* Config Reader
|
|
29
29
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigReader.component.js","sourceRoot":"","sources":["../../../../../src/base/A-Config/components/ConfigReader.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ConfigReader.component.js","sourceRoot":"","sources":["../../../../../src/base/A-Config/components/ConfigReader.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,iFAAwE;AACxE,gGAAmF;AACnF,6FAAoF;AACpF,0DAA+C;AAC/C,uFAA8E;AAE9E;;GAEG;AACI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,+BAAW;IAEzC,YACiC,KAAc;QAE3C,KAAK,EAAE,CAAC;QAFqB,UAAK,GAAL,KAAK,CAAS;IAG/C,CAAC;IAIK,MAAM,CACY,MAAgB;;YAGpC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;YAEjD,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAEjB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;YAE5C,MAAM,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;QAC/C,CAAC;KAAA;IAGD;;;OAGG;IACH,OAAO,CAAoB,QAAgB;QACvC,OAAO,QAAuB,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACG,IAAI;6DACN,YAAsB,EAAE;YAExB,OAAO,EAAoB,CAAC;QAChC,CAAC;KAAA;IAGD;;;;;OAKG;IACa,cAAc;6DAAC,SAAS,GAAG,SAAS;YAChD,+BAA+B;YAE/B,qCAAqC;YAErC,0DAA0D;YAC1D,iFAAiF;YACjF,6DAA6D;YAC7D,6EAA6E;YAC7E,uBAAuB;YACvB,QAAQ;YACR,gCAAgC;YAChC,IAAI;YAEJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC;QACzB,CAAC;KAAA;CACJ,CAAA;AAlEY,oCAAY;AAUf;IADL,2BAAS,CAAC,IAAI,EAAE;IAEZ,WAAA,IAAA,6BAAQ,EAAC,2BAAQ,CAAC,CAAA;0CAUtB;uBArBQ,YAAY;IAGhB,WAAA,IAAA,6BAAQ,EAAC,uBAAO,CAAC,CAAA;GAHb,YAAY,CAkExB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileConfigReader.component.js","sourceRoot":"","sources":["../../../../../src/base/A-Config/components/FileConfigReader.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA6D;AAC7D,qEAAwD;
|
|
1
|
+
{"version":3,"file":"FileConfigReader.component.js","sourceRoot":"","sources":["../../../../../src/base/A-Config/components/FileConfigReader.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA6D;AAC7D,qEAAwD;AAExD,MAAa,gBAAiB,SAAQ,qCAAY;IAAlD;;QAEY,aAAQ,GAAqB,IAAI,GAAG,EAAe,CAAC;IAkChE,CAAC;IAhCG;;;OAGG;IACH,mCAAmC,CAAC,QAAgB;QAChD,OAAO,wBAAc,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;IAGD,OAAO,CAAoB,QAAgB;QACvC,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAmC,CAAC,QAAQ,CAAC,CAAgB,CAAC;IAChG,CAAC;IAGK,IAAI,CACN,SAAoB;;YAEpB,MAAM,EAAE,GAAG,MAAM,qBAAW,CAAC,EAAE,EAAE,CAAC;YAClC,IAAI,CAAC;gBACD,MAAM,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,YAAY,EAAE,MAAM,CAAC,CAAC;gBAErE,MAAM,MAAM,GAAmB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAEhD,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;gBAEhD,OAAO,MAAM,CAAC;YAElB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACb,oCAAoC;gBACpC,OAAO,EAAoB,CAAC;YAChC,CAAC;QACL,CAAC;KAAA;CACJ;AApCD,4CAoCC"}
|
|
@@ -27,7 +27,7 @@ let A_ErrorsManager = class A_ErrorsManager extends A_Component_class_1.A_Compon
|
|
|
27
27
|
// In case of error code
|
|
28
28
|
case typeof param === 'string':
|
|
29
29
|
const template = this.errors.get(param);
|
|
30
|
-
const namedCode = `${A_Context_class_1.A_Context.root}@${this.scope.name}:error:${template.code}`;
|
|
30
|
+
const namedCode = `${A_Context_class_1.A_Context.root.name}@${this.scope.name}:error:${template.code}`;
|
|
31
31
|
if ('serverCode' in template)
|
|
32
32
|
throw new a_utils_1.A_ServerError(Object.assign(Object.assign({}, template), { code: namedCode }));
|
|
33
33
|
else
|
|
@@ -49,11 +49,11 @@ let A_ErrorsManager = class A_ErrorsManager extends A_Component_class_1.A_Compon
|
|
|
49
49
|
wrap(error) {
|
|
50
50
|
switch (true) {
|
|
51
51
|
case error instanceof a_utils_1.A_Error:
|
|
52
|
-
let newCode = `${A_Context_class_1.A_Context.root}@${this.scope.name}:error:${error.code}`;
|
|
52
|
+
let newCode = `${A_Context_class_1.A_Context.root.name}@${this.scope.name}:error:${error.code}`;
|
|
53
53
|
if (a_utils_1.ASEID.isASEID(error.code)) {
|
|
54
54
|
const aseid = new a_utils_1.ASEID(error.code);
|
|
55
55
|
if (aseid.scope !== this.scope.name)
|
|
56
|
-
newCode = `${A_Context_class_1.A_Context.root}@${this.scope.name}:error:${aseid.id}`;
|
|
56
|
+
newCode = `${A_Context_class_1.A_Context.root.name}@${this.scope.name}:error:${aseid.id}`;
|
|
57
57
|
}
|
|
58
58
|
if ('serverCode' in error)
|
|
59
59
|
return new a_utils_1.A_ServerError({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Errors.component.js","sourceRoot":"","sources":["../../../../src/base/A-Errors/A-Errors.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iFAAwE;AACxE,gGAAmF;AACnF,yDAA8C;AAC9C,4CAAyF;AACzF,uFAA8E;AAC9E,6FAAoF;AAE7E,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,+BAAW;IAE5C,YACiC,KAAc,EACb,MAAgB;QAE9C,KAAK,EAAE,CAAC;QAHqB,UAAK,GAAL,KAAK,CAAS;QACb,WAAM,GAAN,MAAM,CAAU;IAGlD,CAAC;IAcD,KAAK,CACD,KAAkE;QAElE,QAAQ,IAAI,EAAE,CAAC;YACX,wBAAwB;YACxB,KAAK,OAAO,KAAK,KAAK,QAAQ;gBAC1B,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;gBACxC,MAAM,SAAS,GAAG,GAAG,2BAAS,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,UAAU,QAAQ,CAAC,IAAI,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"A-Errors.component.js","sourceRoot":"","sources":["../../../../src/base/A-Errors/A-Errors.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iFAAwE;AACxE,gGAAmF;AACnF,yDAA8C;AAC9C,4CAAyF;AACzF,uFAA8E;AAC9E,6FAAoF;AAE7E,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,+BAAW;IAE5C,YACiC,KAAc,EACb,MAAgB;QAE9C,KAAK,EAAE,CAAC;QAHqB,UAAK,GAAL,KAAK,CAAS;QACb,WAAM,GAAN,MAAM,CAAU;IAGlD,CAAC;IAcD,KAAK,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CAAC,EAAE,EAAE,CAAC;gBAChF,CAAC;gBAED,IAAI,YAAY,IAAI,KAAK;oBACrB,OAAO,IAAI,uBAAa,CAAC;wBACrB,aAAa,EAAE,KAAK;wBACpB,IAAI,EAAE,OAAO;wBACb,UAAU,EAAE,KAAK,CAAC,UAAU;wBAC5B,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,OAAO,EAAE,KAAK,CAAC,OAAO;wBACtB,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,WAAW,EAAE,KAAK,CAAC,WAAW;qBACjC,CAAC,CAAC;;oBAEH,OAAO,IAAI,iBAAO,CAAC;wBACf,aAAa,EAAE,KAAK;wBACpB,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,OAAO,EAAE,KAAK,CAAC,OAAO;wBACtB,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,WAAW,EAAE,KAAK,CAAC,WAAW;qBACjC,CAAC,CAAC;YAEX;gBACI,OAAO,IAAI,iBAAO,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;IACL,CAAC;CACJ,CAAA;AA/FY,0CAAe;0BAAf,eAAe;IAGnB,WAAA,IAAA,6BAAQ,EAAC,uBAAO,CAAC,CAAA;IACjB,WAAA,IAAA,6BAAQ,EAAC,2BAAQ,CAAC,CAAA;GAJd,eAAe,CA+F3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Errors.context.js","sourceRoot":"","sources":["../../../../src/base/A-Errors/A-Errors.context.ts"],"names":[],"mappings":";;;AAAA,4CAA6I;AAE7I,yFAAiG;AACjG,0FAAiF;AAGjF,MAAa,QAAS,SAAQ,6BAAU;
|
|
1
|
+
{"version":3,"file":"A-Errors.context.js","sourceRoot":"","sources":["../../../../src/base/A-Errors/A-Errors.context.ts"],"names":[],"mappings":";;;AAAA,4CAA6I;AAE7I,yFAAiG;AACjG,0FAAiF;AAGjF,MAAa,QAAS,SAAQ,6BAAU;IA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],"mappings":";;;;;;;;;;;;AAAA,gGAAmF;AACnF,4CAAyC;AACzC,mEAAwD;AACxD,iFAAwE;AACxE,6FAAoF;
|
|
1
|
+
{"version":3,"file":"A-Logger.component.js","sourceRoot":"","sources":["../../../../src/base/A-Logger/A-Logger.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAAmF;AACnF,4CAAyC;AACzC,mEAAwD;AACxD,iFAAwE;AACxE,6FAAoF;AAG7E,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,+BAAW;IAErC,YACuB,KAAwB,EACvB,MAA0B;QAE9C,KAAK,EAAE,CAAC;QAHqB,UAAK,GAAL,KAAK,CAAS;QACb,WAAM,GAAN,MAAM,CAAU;QAKzC,WAAM,GAAG;YACd,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;YACV,GAAG,EAAE,IAAI;YACT,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACJ,CAAA;IAZV,CAAC;IAeD,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;IAClC,CAAC;IAGD,OAAO,CACH,KAA+B,EAC/B,GAAG,IAAW;QAGd,OAAO;YACH,QAAQ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE,GAAG;YACrE,CACI,IAAI,CAAC,MAAM,GAAG,CAAC;gBACX,CAAC,CAAC,IAAI,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,kCAAkC;gBAC9E,CAAC,CAAC,EAAE,CAEX;YACD,GAAG,CAAC,IAAI;iBACH,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;gBAGZ,QAAQ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4 @@ import { A_TYPES__A_ExtendDecoratorConfig } from "../A-Feature/A-Feature.decorat
|
|
|
11
11
|
* @param params
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
|
-
export declare function
|
|
14
|
+
export declare function A_Abstraction_Extend(method: A_TYPES__ConceptStage, config?: Partial<A_TYPES__A_ExtendDecoratorConfig>): (target: A_Container | A_Component, propertyKey: string, descriptor: A_TYPES__A_AbstractionDecoratorDescriptor) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.A_Abstraction_Extend = A_Abstraction_Extend;
|
|
4
4
|
const A_Component_class_1 = require("../../global/A-Component/A-Component.class");
|
|
5
5
|
const A_Component_types_1 = require("../../global/A-Component/A-Component.types");
|
|
6
6
|
const A_Context_class_1 = require("../../global/A-Context/A-Context.class");
|
|
@@ -15,11 +15,11 @@ const A_Meta_class_1 = require("../../global/A-Meta/A-Meta.class");
|
|
|
15
15
|
* @param params
|
|
16
16
|
* @returns
|
|
17
17
|
*/
|
|
18
|
-
function
|
|
18
|
+
function A_Abstraction_Extend(method, config = {}) {
|
|
19
19
|
return function (target, propertyKey, descriptor) {
|
|
20
20
|
const meta = A_Context_class_1.A_Context.meta(target);
|
|
21
21
|
let metaKey;
|
|
22
|
-
const
|
|
22
|
+
const abstractionKey = `${method}`;
|
|
23
23
|
switch (true) {
|
|
24
24
|
case target instanceof A_Container_class_1.A_Container:
|
|
25
25
|
metaKey = A_Container_types_1.A_TYPES__ContainerMetaKey.ABSTRACTIONS;
|
|
@@ -33,7 +33,7 @@ function A_Abstraction(method, config = {}) {
|
|
|
33
33
|
// Get the existed metadata or create a new one
|
|
34
34
|
const existedMeta = meta.get(metaKey) || new A_Meta_class_1.A_Meta();
|
|
35
35
|
// Set the metadata of the method to define a custom Stage with name
|
|
36
|
-
const existedMetaValue = existedMeta.get(
|
|
36
|
+
const existedMetaValue = existedMeta.get(abstractionKey) || [];
|
|
37
37
|
// Add the new method to the metadata
|
|
38
38
|
existedMetaValue.push({
|
|
39
39
|
name: method,
|
|
@@ -43,11 +43,11 @@ function A_Abstraction(method, config = {}) {
|
|
|
43
43
|
behavior: config.behavior || 'sync'
|
|
44
44
|
});
|
|
45
45
|
// Set the metadata of the method to define a custom Feature with name
|
|
46
|
-
existedMeta.set(
|
|
46
|
+
existedMeta.set(abstractionKey, existedMetaValue);
|
|
47
47
|
// Update the metadata of the container with the new Stage definition
|
|
48
48
|
A_Context_class_1.A_Context
|
|
49
49
|
.meta(target)
|
|
50
50
|
.set(metaKey, existedMeta);
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
//# sourceMappingURL=A-Abstraction.decorator.js.map
|
|
53
|
+
//# sourceMappingURL=A-Abstraction-Extend.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A-Abstraction-Extend.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.ts"],"names":[],"mappings":";;AAsBA,oDA0DC;AAhFD,6FAAoF;AAIpF,6FAAkG;AAClG,uFAA8E;AAC9E,6FAAoF;AACpF,6FAAkG;AAIlG,8EAAqE;AAGrE;;;;;;;GAOG;AACH,SAAgB,oBAAoB,CAChC,MAA6B,EAC7B,SAAoD,EAAE;IAEtD,OAAO,UACH,MAAiC,EACjC,WAAmB,EACnB,UAAqD;QAGrD,MAAM,IAAI,GAAsC,2BAAS,CAAC,IAAI,CAAC,MAAa,CAAC,CAAC;QAE9E,IAAI,OAAO,CAAC;QAEZ,MAAM,cAAc,GAAG,GAAG,MAAM,EAAE,CAAC;QAEnC,QAAQ,IAAI,EAAE,CAAC;YACX,KAAK,MAAM,YAAY,+BAAW;gBAC9B,OAAO,GAAG,6CAAyB,CAAC,YAAY,CAAA;gBAChD,MAAM;YACV,KAAK,MAAM,YAAY,+BAAW;gBAC9B,OAAO,GAAG,6CAAyB,CAAC,YAAY,CAAA;gBAChD,MAAM;YACV;gBACI,MAAM,IAAI,KAAK,CAAC,0CAA0C,MAAM,QAAQ,CAAC,CAAC;QAClF,CAAC;QAED,+CAA+C;QAC/C,MAAM,WAAW,GAEZ,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,qBAAM,EAAE,CAAC;QAEvC,oEAAoE;QACpE,MAAM,gBAAgB,GAAG,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QAG/D,qCAAqC;QACrC,gBAAgB,CAAC,IAAI,CAAC;YAClB,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,WAAW;YACpB,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,EAAE;YAC3B,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE;YACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,MAAM;SACtC,CAAC,CAAC;QAEH,sEAAsE;QACtE,WAAW,CAAC,GAAG,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;QAGlD,sEAAsE;QACtE,2BAAS;aACJ,IAAI,CAAC,MAAa,CAAC;aACnB,GAAG,CACA,OAAO,EACP,WAAW,CACd,CAAC;IAEV,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type A_TYPES__A_AbstractionDecoratorDescriptor = TypedPropertyDescriptor<() => any> | TypedPropertyDescriptor<(...args: any[]) => any> | TypedPropertyDescriptor<(...args: any[]) => Promise<any>> | TypedPropertyDescriptor<() => Promise<any>>;
|
|
2
|
-
export type
|
|
2
|
+
export type A_TYPES__A_AbstractionDecoratorConfig = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Connect.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Connect/A-Connect.decorator.ts"],"names":[],"mappings":";;AA4BA,8BA0CC;AArED,uFAA8E;AA2B9E,SAAgB,SAAS,CACrB,OAAyB,EACzB,MAAqB;IAErB,OAAO,UACH,
|
|
1
|
+
{"version":3,"file":"A-Connect.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Connect/A-Connect.decorator.ts"],"names":[],"mappings":";;AA4BA,8BA0CC;AArED,uFAA8E;AA2B9E,SAAgB,SAAS,CACrB,OAAyB,EACzB,MAAqB;IAErB,OAAO,UACH,MAAiC,EACjC,UAAuC,EACvC,cAAsB;QAGtB,MAAM,IAAI,GAAsC,2BAAS,CAAC,IAAI,CAAC,MAAa,CAAC,CAAC;QAE9E,IAAI,OAAO,CAAC;QAGZ,kDAAkD;QAClD,8BAA8B;QAC9B,8DAA8D;QAC9D,0CAA0C;QAE1C,uEAAuE;QACvE,4DAA4D;QAE5D,wCAAwC;QACxC,0BAA0B;QAC1B,oBAAoB;QACpB,4BAA4B;QAC5B,MAAM;QAEN,yEAAyE;QACzE,+CAA+C;QAG/C,yEAAyE;QACzE,YAAY;QACZ,2BAA2B;QAC3B,YAAY;QACZ,mBAAmB;QACnB,sBAAsB;QACtB,SAAS;IAEb,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A_Component } from "../../global/A-Component/A-Component.class";
|
|
2
1
|
import { A_TYPES__A_FeatureDecoratorConfig, A_TYPES__A_FeatureDecoratorDescriptor } from "./A-Feature.decorator.types";
|
|
3
|
-
import { A_Container } from "../../global/A-Container/A-Container.class";
|
|
4
2
|
import { A_Entity } from "../../global/A-Entity/A-Entity.class";
|
|
3
|
+
import { A_Component } from "../../global/A-Component/A-Component.class";
|
|
4
|
+
import { A_Container } from "../../global/A-Container/A-Container.class";
|
|
5
5
|
/**
|
|
6
6
|
* A-Feature decorator
|
|
7
7
|
*
|
|
@@ -15,4 +15,4 @@ import { A_Entity } from "../../global/A-Entity/A-Entity.class";
|
|
|
15
15
|
* @param params
|
|
16
16
|
* @returns
|
|
17
17
|
*/
|
|
18
|
-
export declare function A_Feature_Define(config?: Partial<A_TYPES__A_FeatureDecoratorConfig>): (target: A_Container
|
|
18
|
+
export declare function A_Feature_Define(config?: Partial<A_TYPES__A_FeatureDecoratorConfig>): (target: A_Container | A_Entity | A_Component, propertyKey: string, descriptor: A_TYPES__A_FeatureDecoratorDescriptor) => A_TYPES__A_FeatureDecoratorDescriptor;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.A_Feature_Define = A_Feature_Define;
|
|
4
|
+
const A_Entity_class_1 = require("../../global/A-Entity/A-Entity.class");
|
|
5
|
+
const A_Context_class_1 = require("../../global/A-Context/A-Context.class");
|
|
4
6
|
const A_Component_class_1 = require("../../global/A-Component/A-Component.class");
|
|
5
7
|
const A_Container_class_1 = require("../../global/A-Container/A-Container.class");
|
|
6
8
|
const A_Container_types_1 = require("../../global/A-Container/A-Container.types");
|
|
7
|
-
const A_Context_class_1 = require("../../global/A-Context/A-Context.class");
|
|
8
9
|
const A_Entity_types_1 = require("../../global/A-Entity/A-Entity.types");
|
|
9
10
|
const A_Component_types_1 = require("../../global/A-Component/A-Component.types");
|
|
10
|
-
const A_Entity_class_1 = require("../../global/A-Entity/A-Entity.class");
|
|
11
11
|
const A_Meta_class_1 = require("../../global/A-Meta/A-Meta.class");
|
|
12
12
|
/**
|
|
13
13
|
* A-Feature decorator
|
|
@@ -41,10 +41,12 @@ function A_Feature_Define(config = {}) {
|
|
|
41
41
|
}
|
|
42
42
|
// Get the existed metadata or create a new one
|
|
43
43
|
const existedMeta = meta.get(metaKey) || new A_Meta_class_1.A_Meta();
|
|
44
|
+
const handlerName = config.name || propertyKey;
|
|
45
|
+
const invoke = config.invoke !== false;
|
|
44
46
|
// Set the metadata of the method to define a custom Feature with name
|
|
45
47
|
existedMeta.set(propertyKey, {
|
|
46
|
-
name: `${target.constructor.name}.${
|
|
47
|
-
handler:
|
|
48
|
+
name: `${target.constructor.name}.${handlerName}`,
|
|
49
|
+
handler: handlerName,
|
|
48
50
|
template: config.template && config.template.length ? config.template.map(item => (Object.assign(Object.assign({}, item), { before: item.before || [], after: item.after || [], behavior: item.behavior || 'sync' }))) : [],
|
|
49
51
|
channel: config.channel || []
|
|
50
52
|
});
|
|
@@ -52,6 +54,20 @@ function A_Feature_Define(config = {}) {
|
|
|
52
54
|
A_Context_class_1.A_Context
|
|
53
55
|
.meta(target.constructor)
|
|
54
56
|
.set(metaKey, existedMeta);
|
|
57
|
+
const originalMethod = descriptor.value;
|
|
58
|
+
// Wrap the original method to add the call to `call`
|
|
59
|
+
// this helps to automatically call the container/entity/component method when it's called
|
|
60
|
+
descriptor.value = function (...args) {
|
|
61
|
+
// Call the original method
|
|
62
|
+
if (!invoke)
|
|
63
|
+
return originalMethod.apply(this, args);
|
|
64
|
+
else
|
|
65
|
+
originalMethod.apply(this, args);
|
|
66
|
+
// Call your `call` with the function name
|
|
67
|
+
if (typeof this.call === "function" && invoke)
|
|
68
|
+
return this.call(propertyKey);
|
|
69
|
+
};
|
|
70
|
+
return descriptor;
|
|
55
71
|
};
|
|
56
72
|
}
|
|
57
73
|
//# sourceMappingURL=A-Feature-Define.decorator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Feature-Define.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Feature/A-Feature-Define.decorator.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"A-Feature-Define.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Feature/A-Feature-Define.decorator.ts"],"names":[],"mappings":";;AA8BA,4CA2FC;AApHD,oFAA2E;AAC3E,uFAA8E;AAC9E,6FAAoF;AACpF,6FAAoF;AACpF,6FAAkG;AAIlG,oFAAyF;AACzF,6FAAkG;AAClG,8EAAqE;AAErE;;;;;;;;;;;;GAYG;AACH,SAAgB,gBAAgB,CAC5B,SAAqD,EAAE;IAEvD,OAAO,UACH,MAA4C,EAC5C,WAAmB,EACnB,UAAiD;QAGjD,MAAM,IAA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E,MAAM,CAAC,OAAO,IAAI,EAAE;SAChC,CAAC,CAAC;QAEH,wEAAwE;QACxE,2BAAS;aACJ,IAAI,CAAC,MAAM,CAAC,WAAkB,CAAC;aAC/B,GAAG,CACA,OAAO,EACP,WAAW,CACd,CAAC;QAGN,MAAM,cAAc,GAAG,UAAU,CAAC,KAAM,CAAC;QAIzC,qDAAqD;QACrD,0FAA0F;QAC1F,UAAU,CAAC,KAAK,GAAG,UAAU,GAAG,IAAW;YAEvC,2BAA2B;YAC3B,IAAI,CAAC,MAAM;gBACP,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;;gBAExC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAErC,0CAA0C;YAC1C,IAAI,OAAQ,IAAY,CAAC,IAAI,KAAK,UAAU,IAAI,MAAM;gBAClD,OAAQ,IAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE/C,CAAC,CAAC;QAEF,OAAO,UAAU,CAAC;IACtB,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -9,9 +9,10 @@ export type A_TYPES__A_Feature_Extend = {
|
|
|
9
9
|
(config: Partial<A_TYPES__A_ExtendDecoratorConfig>): MethodDecorator;
|
|
10
10
|
(): MethodDecorator;
|
|
11
11
|
};
|
|
12
|
-
export type A_TYPES__A_FeatureDecoratorDescriptor = TypedPropertyDescriptor<(
|
|
12
|
+
export type A_TYPES__A_FeatureDecoratorDescriptor = TypedPropertyDescriptor<((...args: any[]) => any) | ((...args: any[]) => Promise<any>) | (() => any) | (() => Promise<any>)>;
|
|
13
13
|
export type A_TYPES__A_FeatureDecoratorConfig = {
|
|
14
14
|
name: string;
|
|
15
|
+
invoke: boolean;
|
|
15
16
|
channel: Array<typeof A_Channel>;
|
|
16
17
|
template: Array<A_TYPES__A_FeatureTemplateItem>;
|
|
17
18
|
};
|
|
@@ -38,7 +39,7 @@ export type A_TYPES__A_ExtendDecoratorConfig = {
|
|
|
38
39
|
* [!!] By default uses OR to join all provided items. If you need more complex Logic, please use Regexp instead
|
|
39
40
|
*/
|
|
40
41
|
scope: Array<{
|
|
41
|
-
new (...args: any[]): A_Container
|
|
42
|
+
new (...args: any[]): A_Container;
|
|
42
43
|
} | {
|
|
43
44
|
new (...args: any[]): A_Entity;
|
|
44
45
|
} | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A_Component } from "../../global/A-Component/A-Component.class";
|
|
2
1
|
import { A_TYPES__A_InjectDecorator_EntityInjectionInstructions, A_TYPES__A_InjectDecoratorReturn } from "./A-Inject.decorator.types";
|
|
2
|
+
import { A_Component } from "../../global/A-Component/A-Component.class";
|
|
3
3
|
import { A_Fragment } from "../../global/A-Fragment/A-Fragment.class";
|
|
4
4
|
import { A_Scope } from "../../global/A-Scope/A-Scope.class";
|
|
5
5
|
import { A_Feature } from "../../global/A-Feature/A-Feature.class";
|