@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
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Logger = void 0;
|
|
4
|
-
const A_Component_class_1 = require("../../../global/A-Component/A-Component.class");
|
|
5
|
-
const a_utils_1 = require("@adaas/a-utils");
|
|
6
|
-
class Logger extends A_Component_class_1.A_Component {
|
|
7
|
-
constructor(namespace, config) {
|
|
8
|
-
super(namespace);
|
|
9
|
-
this.namespace = namespace;
|
|
10
|
-
this.config = config;
|
|
11
|
-
this.colors = {
|
|
12
|
-
green: '32',
|
|
13
|
-
blue: '34',
|
|
14
|
-
red: '31',
|
|
15
|
-
yellow: '33',
|
|
16
|
-
gray: '90',
|
|
17
|
-
magenta: '35',
|
|
18
|
-
cyan: '36',
|
|
19
|
-
white: '37',
|
|
20
|
-
pink: '95',
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
get namespaceLength() {
|
|
24
|
-
return this.namespaceLength;
|
|
25
|
-
}
|
|
26
|
-
compile(color, ...args) {
|
|
27
|
-
return [
|
|
28
|
-
`\x1b[${this.colors[color]}m[${this.namespace}] |${this.getTime()}|`,
|
|
29
|
-
(args.length > 1
|
|
30
|
-
? '\n' + `${' '.repeat(this.namespaceLength + 3)}|-------------------------------`
|
|
31
|
-
: ''),
|
|
32
|
-
...(args
|
|
33
|
-
.map((arg, i) => {
|
|
34
|
-
switch (true) {
|
|
35
|
-
case arg instanceof a_utils_1.A_Error:
|
|
36
|
-
return this.compile_A_Error(arg);
|
|
37
|
-
case arg instanceof Error:
|
|
38
|
-
return this.compile_Error(arg);
|
|
39
|
-
case typeof arg === 'object':
|
|
40
|
-
return JSON.stringify(arg, null, 2)
|
|
41
|
-
.replace(/\n/g, '\n' + `${' '.repeat(this.namespaceLength + 3)}| `);
|
|
42
|
-
default:
|
|
43
|
-
return String(((i > 0 || args.length > 1) ? '\n' : '')
|
|
44
|
-
+ arg)
|
|
45
|
-
.replace(/\n/g, '\n' + `${' '.repeat(this.namespaceLength + 3)}| `);
|
|
46
|
-
}
|
|
47
|
-
})),
|
|
48
|
-
(args.length > 1
|
|
49
|
-
? '\n' + `${' '.repeat(this.namespaceLength + 3)}|-------------------------------\x1b[0m`
|
|
50
|
-
: '\x1b[0m')
|
|
51
|
-
];
|
|
52
|
-
}
|
|
53
|
-
log(...args) {
|
|
54
|
-
if (!this.config.get('CONFIG_VERBOSE'))
|
|
55
|
-
return;
|
|
56
|
-
console.log(...this.compile('blue', ...args));
|
|
57
|
-
}
|
|
58
|
-
warning(...args) {
|
|
59
|
-
if (!this.config.get('CONFIG_VERBOSE'))
|
|
60
|
-
return;
|
|
61
|
-
console.log(...this.compile('yellow', ...args));
|
|
62
|
-
}
|
|
63
|
-
error(...args) {
|
|
64
|
-
if (this.config.get('CONFIG_IGNORE_ERRORS'))
|
|
65
|
-
return;
|
|
66
|
-
return console.log(...this.compile('red', ...args));
|
|
67
|
-
}
|
|
68
|
-
log_A_Error(error) {
|
|
69
|
-
var _a, _b;
|
|
70
|
-
const time = this.getTime();
|
|
71
|
-
console.log(`\x1b[31m[${this.namespace}] |${time}| ERROR ${error.code}
|
|
72
|
-
${' '.repeat(this.namespaceLength + 3)}| ${error.message}
|
|
73
|
-
${' '.repeat(this.namespaceLength + 3)}| ${error.description}
|
|
74
|
-
${' '.repeat(this.namespaceLength + 3)}|-------------------------------
|
|
75
|
-
${' '.repeat(this.namespaceLength + 3)}| ${((_a = error.stack) === null || _a === void 0 ? void 0 : _a.split('\n').map((line, index) => index === 0 ? line : `${' '.repeat(this.namespaceLength + 3)}| ${line}`).join('\n')) || 'No stack trace'}
|
|
76
|
-
${' '.repeat(this.namespaceLength + 3)}|-------------------------------
|
|
77
|
-
\x1b[0m`
|
|
78
|
-
+ (error.originalError ? `\x1b[31m${' '.repeat(this.namespaceLength + 3)}| Wrapped From ${error.originalError.message}
|
|
79
|
-
${' '.repeat(this.namespaceLength + 3)}|-------------------------------
|
|
80
|
-
${' '.repeat(this.namespaceLength + 3)}| ${((_b = error.originalError.stack) === null || _b === void 0 ? void 0 : _b.split('\n').map((line, index) => index === 0 ? line : `${' '.repeat(this.namespaceLength + 3)}| ${line}`).join('\n')) || 'No stack trace'}
|
|
81
|
-
${' '.repeat(this.namespaceLength + 3)}|-------------------------------
|
|
82
|
-
\x1b[0m` : '')
|
|
83
|
-
+ (error.link ? `\x1b[31m${' '.repeat(this.namespaceLength + 3)}| Read in docs: ${error.link}
|
|
84
|
-
${' '.repeat(this.namespaceLength + 3)}|-------------------------------
|
|
85
|
-
\x1b[0m` : ''));
|
|
86
|
-
}
|
|
87
|
-
compile_A_Error(error) {
|
|
88
|
-
var _a, _b;
|
|
89
|
-
const time = this.getTime();
|
|
90
|
-
return '\n' +
|
|
91
|
-
`${' '.repeat(this.namespaceLength + 3)}|-------------------------------` +
|
|
92
|
-
'\n' +
|
|
93
|
-
`${' '.repeat(this.namespaceLength + 3)}| Error: | ${error.code}
|
|
94
|
-
${' '.repeat(this.namespaceLength + 3)}|-------------------------------
|
|
95
|
-
${' '.repeat(this.namespaceLength + 3)}|${' '.repeat(10)}| ${error.message}
|
|
96
|
-
${' '.repeat(this.namespaceLength + 3)}|${' '.repeat(10)}| ${error.description}
|
|
97
|
-
${' '.repeat(this.namespaceLength + 3)}|-------------------------------
|
|
98
|
-
${' '.repeat(this.namespaceLength + 3)}| ${((_a = error.stack) === null || _a === void 0 ? void 0 : _a.split('\n').map((line, index) => index === 0 ? line : `${' '.repeat(this.namespaceLength + 3)}| ${line}`).join('\n')) || 'No stack trace'}
|
|
99
|
-
${' '.repeat(this.namespaceLength + 3)}|-------------------------------`
|
|
100
|
-
+
|
|
101
|
-
(error.originalError ? `${' '.repeat(this.namespaceLength + 3)}| Wrapped From ${error.originalError.message}
|
|
102
|
-
${' '.repeat(this.namespaceLength + 3)}|-------------------------------
|
|
103
|
-
${' '.repeat(this.namespaceLength + 3)}| ${((_b = error.originalError.stack) === null || _b === void 0 ? void 0 : _b.split('\n').map((line, index) => index === 0 ? line : `${' '.repeat(this.namespaceLength + 3)}| ${line}`).join('\n')) || 'No stack trace'}
|
|
104
|
-
${' '.repeat(this.namespaceLength + 3)}|-------------------------------` : '')
|
|
105
|
-
+
|
|
106
|
-
(error.link ? `${' '.repeat(this.namespaceLength + 3)}| Read in docs: ${error.link}
|
|
107
|
-
${' '.repeat(this.namespaceLength + 3)}|-------------------------------` : '');
|
|
108
|
-
}
|
|
109
|
-
compile_Error(error) {
|
|
110
|
-
var _a;
|
|
111
|
-
return JSON.stringify({
|
|
112
|
-
name: error.name,
|
|
113
|
-
message: error.message,
|
|
114
|
-
stack: (_a = error.stack) === null || _a === void 0 ? void 0 : _a.split('\n').map((line, index) => index === 0 ? line : `${' '.repeat(this.namespaceLength + 3)}| ${line}`).join('\n')
|
|
115
|
-
}, null, 2)
|
|
116
|
-
.replace(/\n/g, '\n' + `${' '.repeat(this.namespaceLength + 3)}| `)
|
|
117
|
-
.replace(/\\n/g, '\n');
|
|
118
|
-
}
|
|
119
|
-
getTime() {
|
|
120
|
-
const now = new Date();
|
|
121
|
-
const minutes = String(now.getMinutes()).padStart(2, '0');
|
|
122
|
-
const seconds = String(now.getSeconds()).padStart(2, '0');
|
|
123
|
-
const milliseconds = String(now.getMilliseconds()).padStart(4, '0');
|
|
124
|
-
return `${minutes}:${seconds}:${milliseconds}`;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.Logger = Logger;
|
|
128
|
-
//# sourceMappingURL=Logger.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Logger.component.js","sourceRoot":"","sources":["../../../../../src/containers/A-Logger/components/Logger.component.ts"],"names":[],"mappings":";;;AAAA,6FAAoF;AAEpF,4CAAyC;AAIzC,MAAa,MAAO,SAAQ,+BAAW;IAEnC,YACc,SAAsB,EACtB,MAAgB;QAE1B,KAAK,CAAC,SAAS,CAAC,CAAC;QAHP,cAAS,GAAT,SAAS,CAAa;QACtB,WAAM,GAAN,MAAM,CAAU;QAKrB,WAAM,GAAG;Y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G,CAAC,CAAC;QACpE,OAAO,GAAG,OAAO,IAAI,OAAO,IAAI,YAAY,EAAE,CAAC;IACnD,CAAC;CACJ;AAlKD,wBAkKC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Abstraction.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Abstraction/A-Abstraction.decorator.ts"],"names":[],"mappings":";;AAuBA,sCA0DC;AAjFD,6FAAoF;AAIpF,6FAAkG;AAClG,uFAA8E;AAC9E,6FAAoF;AACpF,6FAAkG;AAIlG,8EAAqE;AAIrE;;;;;;;GAOG;AACH,SAAgB,aAAa,CACzB,MAA6B,EAC7B,SAAoD,EAAE;IAEtD,OAAO,UACH,MAAsC,EACtC,WAAmB,EACnB,UAAqD;QAGrD,MAAM,IAAI,GAAsC,2BAAS,CAAC,IAAI,CAAC,MAAa,CAAC,CAAC;QAE9E,IAAI,OAAO,CAAC;QAEZ,MAAM,QAAQ,GAAG,wBAAwB,MAAM,EAAE,CAAC;QAElD,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,QAAQ,CAAC,IAAI,EAAE,CAAC;QAGzD,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,QAAQ,EAAE,gBAAgB,CAAC,CAAC;QAG5C,sEAAsE;QACtE,2BAAS;aACJ,IAAI,CAAC,MAAa,CAAC;aACnB,GAAG,CACA,OAAO,EACP,WAAW,CACd,CAAC;IAEV,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export type A_TYPES__ConceptLifecycle_MethodDeclarationConfig = {
|
|
2
|
-
/**
|
|
3
|
-
* The name of the method. If not provided, the name of the function will be used.
|
|
4
|
-
* The name is connected to the class name.
|
|
5
|
-
* e.g. 'YourClass.yourMethod'
|
|
6
|
-
*/
|
|
7
|
-
name: string;
|
|
8
|
-
/**
|
|
9
|
-
* Allows to override the method with a new implementation.
|
|
10
|
-
* The methods listed will not be called.
|
|
11
|
-
* e.g. ['YourClass.yourMethod']
|
|
12
|
-
*/
|
|
13
|
-
override: Array<string> | string | Function;
|
|
14
|
-
/**
|
|
15
|
-
* Defines a flexible dependency management mechanism to enable pipeline-like behavior.
|
|
16
|
-
* The target method will be called before the methods listed.
|
|
17
|
-
* e.g. ['YourClass.yourMethod']
|
|
18
|
-
*/
|
|
19
|
-
before: Array<string> | string | Function;
|
|
20
|
-
/**
|
|
21
|
-
* Defines a flexible dependency management mechanism to enable pipeline-like behavior.
|
|
22
|
-
* The target method will be called after the methods listed.
|
|
23
|
-
* e.g. ['YourClass.yourMethod']
|
|
24
|
-
*/
|
|
25
|
-
after: Array<string> | string | Function;
|
|
26
|
-
/**
|
|
27
|
-
* Allows to define a behavior of the method
|
|
28
|
-
* Sync - blocks other Concept Lifecycle methods until the method is ready
|
|
29
|
-
* Async - allows to initialize method after Concept Lifecycle initialization
|
|
30
|
-
*/
|
|
31
|
-
behavior: 'sync' | 'async';
|
|
32
|
-
type: 'extension' | 'pipe';
|
|
33
|
-
};
|
|
34
|
-
export type A_TYPES__ConceptLifecycle_MethodDeclarationStorage = {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-ConceptLifecycle.decorator.types.js","sourceRoot":"","sources":["../../../../src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { A_TYPES__A_LoadDecoratorConfig, A_TYPES__A_LoadDecoratorDescriptor } from "./A-Load.decorator.types";
|
|
2
|
-
import { A_Container } from "../../../global/A-Container/A-Container.class";
|
|
3
|
-
/**
|
|
4
|
-
* A-Load decorator
|
|
5
|
-
*
|
|
6
|
-
* This Decorator allows to an extended flow of Concept loading.
|
|
7
|
-
*
|
|
8
|
-
* @param params
|
|
9
|
-
* @returns
|
|
10
|
-
*/
|
|
11
|
-
export declare function A_Load(config?: Partial<A_TYPES__A_LoadDecoratorConfig>): (target: A_Container, propertyKey: string, descriptor: A_TYPES__A_LoadDecoratorDescriptor) => void;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.A_Load = A_Load;
|
|
4
|
-
const A_Concept_storage_1 = require("src/storage/A_Concept.storage");
|
|
5
|
-
const a_utils_1 = require("@adaas/a-utils");
|
|
6
|
-
const A_ConceptLifecycle_constants_1 = require("../../../constants/A_ConceptLifecycle.constants");
|
|
7
|
-
/**
|
|
8
|
-
* A-Load decorator
|
|
9
|
-
*
|
|
10
|
-
* This Decorator allows to an extended flow of Concept loading.
|
|
11
|
-
*
|
|
12
|
-
* @param params
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
function A_Load(config = {}) {
|
|
16
|
-
return function (target, propertyKey, descriptor) {
|
|
17
|
-
const targetProperty = A_Concept_storage_1.A_CONCEPT_STORAGE__MODULE_DECLARATION_Lifecycle_RootLoad;
|
|
18
|
-
const existedMeta = A_Concept_storage_1.A_CONCEPT_ModulesDeclarationStorage.get(target.constructor) || new Map();
|
|
19
|
-
const inheritMeta = A_Concept_storage_1.A_CONCEPT_ModulesDeclarationStorage.get(Object.getPrototypeOf(target.constructor)) || new Map();
|
|
20
|
-
const inheritedInstructions = inheritMeta.get(targetProperty) || [];
|
|
21
|
-
const instructions = existedMeta.get(targetProperty) || [...inheritedInstructions];
|
|
22
|
-
/**
|
|
23
|
-
* That's is needed to remove the previous definition of the method from parent classes
|
|
24
|
-
* and override it with the new one
|
|
25
|
-
*/
|
|
26
|
-
const targetInstructions = instructions
|
|
27
|
-
.filter((instr) => instr.handler !== propertyKey);
|
|
28
|
-
targetInstructions.push({
|
|
29
|
-
handler: propertyKey,
|
|
30
|
-
config: a_utils_1.A_CommonHelper.deepCloneAndMerge(config, A_ConceptLifecycle_constants_1.A_CONSTANTS__DEFAULT_CONCEPT_LIFECYCLE_METHOD_DECLARATION_CONFIG)
|
|
31
|
-
});
|
|
32
|
-
existedMeta.set(targetProperty, targetInstructions);
|
|
33
|
-
A_Concept_storage_1.A_CONCEPT_ModulesDeclarationStorage.set(target.constructor, existedMeta);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=A-Load.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Load.decorator.js","sourceRoot":"","sources":["../../../../../src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.ts"],"names":[],"mappings":";;AAiBA,wBAqCC;AArDD,qEAA8I;AAC9I,4CAAgD;AAChD,0GAA2I;AAM3I;;;;;;;GAOG;AACH,SAAgB,MAAM,CAClB,SAAkD,EAAE;IAGpD,OAAO,UACH,MAAmB,EACnB,WAAmB,EACnB,UAA8C;QAE9C,MAAM,cAAc,GAAW,4EAAwD,CAAC;QAIxF,MAAM,WAAW,GAAG,uDAAmC,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAC7F,MAAM,WAAW,GAAG,uDAAmC,CAAC,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAEpH,MAAM,qBAAqB,GAAG,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QACpE,MAAM,YAAY,GAAsD,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,qBAAqB,CAAC,CAAC;QAEtI;;;WAGG;QACH,MAAM,kBAAkB,GAAG,YAAY;aAClC,MAAM,CACH,CAAC,KAAiD,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,WAAW,CACvF,CAAC;QAEN,kBAAkB,CAAC,IAAI,CAAC;YACpB,OAAO,EAAE,WAAW;YACpB,MAAM,EAAE,wBAAc,CAAC,iBAAiB,CAAC,MAAM,EAAE,+FAAgE,CAAC;SACrH,CAAC,CAAC;QAEH,WAAW,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;QAEpD,uDAAmC,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAC7E,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { A_TYPES__ConceptLifecycle_MethodDeclarationConfig } from "../A-ConceptLifecycle.decorator.types";
|
|
2
|
-
export type A_TYPES__A_LoadDecoratorDescriptor = TypedPropertyDescriptor<(...args: any[]) => void> | TypedPropertyDescriptor<(...args: any[]) => Promise<void>>;
|
|
3
|
-
export type A_TYPES__A_LoadDecoratorConfig = {} & A_TYPES__ConceptLifecycle_MethodDeclarationConfig;
|
|
4
|
-
export type A_TYPES__A_LoadDecoratorStorageInstruction = {
|
|
5
|
-
handler: string;
|
|
6
|
-
config: A_TYPES__A_LoadDecoratorConfig;
|
|
7
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Load.decorator.types.js","sourceRoot":"","sources":["../../../../../src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { A_TYPES__A_RunDecoratorConfig, A_TYPES__A_RunDecoratorDescriptor } from "./A-Run.decorator.types";
|
|
2
|
-
import { A_Container } from "../../../global/A-Container/A-Container.class";
|
|
3
|
-
/**
|
|
4
|
-
* A-Run decorator
|
|
5
|
-
*
|
|
6
|
-
* This decorator is used to define a method that will be executed during the lifecycle of the module.
|
|
7
|
-
* Depending on the definition and configurations
|
|
8
|
-
* it will be executed during the run command
|
|
9
|
-
* modifying and adjusting the whole [root.run] pipeline.
|
|
10
|
-
*
|
|
11
|
-
* This decorator can be used in case of the need to define a custom logic that will be executed during the run command.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* @param params
|
|
15
|
-
* @returns
|
|
16
|
-
*/
|
|
17
|
-
export declare function A_Run(config?: Partial<A_TYPES__A_RunDecoratorConfig>): (target: A_Container, propertyKey: string, descriptor: A_TYPES__A_RunDecoratorDescriptor) => void;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.A_Run = A_Run;
|
|
4
|
-
const A_Concept_storage_1 = require("src/storage/A_Concept.storage");
|
|
5
|
-
const a_utils_1 = require("@adaas/a-utils");
|
|
6
|
-
const A_ConceptLifecycle_constants_1 = require("../../../constants/A_ConceptLifecycle.constants");
|
|
7
|
-
/**
|
|
8
|
-
* A-Run decorator
|
|
9
|
-
*
|
|
10
|
-
* This decorator is used to define a method that will be executed during the lifecycle of the module.
|
|
11
|
-
* Depending on the definition and configurations
|
|
12
|
-
* it will be executed during the run command
|
|
13
|
-
* modifying and adjusting the whole [root.run] pipeline.
|
|
14
|
-
*
|
|
15
|
-
* This decorator can be used in case of the need to define a custom logic that will be executed during the run command.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @param params
|
|
19
|
-
* @returns
|
|
20
|
-
*/
|
|
21
|
-
function A_Run(config = {}) {
|
|
22
|
-
return function (target, propertyKey, descriptor) {
|
|
23
|
-
const targetProperty = A_Concept_storage_1.A_CONCEPT_STORAGE__MODULE_DECLARATION_Lifecycle_RootRun;
|
|
24
|
-
const existedMeta = A_Concept_storage_1.A_CONCEPT_ModulesDeclarationStorage.get(target.constructor) || new Map();
|
|
25
|
-
const inheritMeta = A_Concept_storage_1.A_CONCEPT_ModulesDeclarationStorage.get(Object.getPrototypeOf(target.constructor)) || new Map();
|
|
26
|
-
const inheritedInstructions = inheritMeta.get(targetProperty) || [];
|
|
27
|
-
const instructions = existedMeta.get(targetProperty) || [...inheritedInstructions];
|
|
28
|
-
/**
|
|
29
|
-
* That's is needed to remove the previous definition of the method from parent classes
|
|
30
|
-
* and override it with the new one
|
|
31
|
-
*/
|
|
32
|
-
const targetInstructions = instructions
|
|
33
|
-
.filter((instr) => instr.handler !== propertyKey);
|
|
34
|
-
targetInstructions.push({
|
|
35
|
-
handler: propertyKey,
|
|
36
|
-
config: a_utils_1.A_CommonHelper.deepCloneAndMerge(config, A_ConceptLifecycle_constants_1.A_CONSTANTS__DEFAULT_CONCEPT_LIFECYCLE_METHOD_DECLARATION_CONFIG)
|
|
37
|
-
});
|
|
38
|
-
existedMeta.set(targetProperty, targetInstructions);
|
|
39
|
-
A_Concept_storage_1.A_CONCEPT_ModulesDeclarationStorage.set(target.constructor, existedMeta);
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=A-Run.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Run.decorator.js","sourceRoot":"","sources":["../../../../../src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.ts"],"names":[],"mapp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odDeclarationConfig } from "../A-ConceptLifecycle.decorator.types";
|
|
3
|
-
export type A_TYPES__A_RunDecoratorDescriptor = TypedPropertyDescriptor<(params: A_TYPES__A_CONCEPT_RootRunParams) => any> | TypedPropertyDescriptor<() => any> | TypedPropertyDescriptor<(params: A_TYPES__A_CONCEPT_RootRunParams) => Promise<any>> | TypedPropertyDescriptor<() => Promise<any>>;
|
|
4
|
-
export type A_TYPES__A_RunDecoratorConfig = {} & A_TYPES__ConceptLifecycle_MethodDeclarationConfig;
|
|
5
|
-
export type A_TYPES__A_RunDecoratorStorageInstruction = {
|
|
6
|
-
handler: string;
|
|
7
|
-
config: A_TYPES__A_RunDecoratorConfig;
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Run.decorator.types.js","sourceRoot":"","sources":["../../../../../src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.A_Lifecycle = void 0;
|
|
4
|
-
const A_Load_decorator_1 = require("./A-Load/A-Load.decorator");
|
|
5
|
-
const A_Run_decorator_1 = require("./A-Run/A-Run.decorator");
|
|
6
|
-
exports.A_Lifecycle = {
|
|
7
|
-
Load: A_Load_decorator_1.A_Load,
|
|
8
|
-
Run: A_Run_decorator_1.A_Run,
|
|
9
|
-
Build: A_Run_decorator_1.A_Run
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/decorators/A-ConceptLifecycle/index.ts"],"names":[],"mappings":";;;AAAA,gEAAmD;AACnD,6DAAgD;AAGnC,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,yBAAM;IACZ,GAAG,EAAE,uBAAK;IACV,KAAK,EAAE,uBAAK;CACf,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { A_TYPES__A_FeatureDecoratorConfig, A_TYPES__A_FeatureDecoratorDescriptor } from "./Feature.decorator.types";
|
|
2
|
-
import { A_Container } from "../../../global/A-Container/A-Container.class";
|
|
3
|
-
/**
|
|
4
|
-
* A-Feature decorator
|
|
5
|
-
*
|
|
6
|
-
* This decorator allows to define a custom Feature stage for the Container.
|
|
7
|
-
* These stages are executed in a container-specific order and can be extended by components that are injected into the container.
|
|
8
|
-
* This approach allows to create a flexible and extendable architecture for the application.
|
|
9
|
-
*
|
|
10
|
-
* The main difference between the A-Feature and A-Feature decorators is that A-Feature methods can be inherited and overridden by child classes.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* @param params
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
export declare function A_Feature(config?: Partial<A_TYPES__A_FeatureDecoratorConfig>): (target: A_Container, propertyKey: string, descriptor: A_TYPES__A_FeatureDecoratorDescriptor) => void;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.A_Feature = A_Feature;
|
|
4
|
-
const A_Container_storage_1 = require("../../../storage/A_Container.storage");
|
|
5
|
-
/**
|
|
6
|
-
* A-Feature decorator
|
|
7
|
-
*
|
|
8
|
-
* This decorator allows to define a custom Feature stage for the Container.
|
|
9
|
-
* These stages are executed in a container-specific order and can be extended by components that are injected into the container.
|
|
10
|
-
* This approach allows to create a flexible and extendable architecture for the application.
|
|
11
|
-
*
|
|
12
|
-
* The main difference between the A-Feature and A-Feature decorators is that A-Feature methods can be inherited and overridden by child classes.
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @param params
|
|
16
|
-
* @returns
|
|
17
|
-
*/
|
|
18
|
-
function A_Feature(config = {}) {
|
|
19
|
-
return function (target, propertyKey, descriptor) {
|
|
20
|
-
const existedMeta = A_Container_storage_1.A_CONTAINER_Storage.get(target.constructor) || new Map();
|
|
21
|
-
const inheritMeta = A_Container_storage_1.A_CONTAINER_Storage.get(Object.getPrototypeOf(target.constructor)) || new Map();
|
|
22
|
-
const inheritedFeature = inheritMeta.get(A_Container_storage_1.A_CONTAINER_STORAGE__Definition__Feature) || new Map();
|
|
23
|
-
const feature = existedMeta.get(A_Container_storage_1.A_CONTAINER_STORAGE__Definition__Feature) || new Map(inheritedFeature);
|
|
24
|
-
feature.set(propertyKey, {
|
|
25
|
-
handler: propertyKey,
|
|
26
|
-
config: Object.assign({ name: propertyKey }, config)
|
|
27
|
-
});
|
|
28
|
-
// targetInstructions.push({
|
|
29
|
-
// handler: propertyKey,
|
|
30
|
-
// config: A_CommonHelper.deepCloneAndMerge(config, A_CONSTANTS__DEFAULT_CONCEPT_Feature_METHOD_DECLARATION_CONFIG)
|
|
31
|
-
// });
|
|
32
|
-
existedMeta.set(A_Container_storage_1.A_CONTAINER_STORAGE__Definition__Feature, feature);
|
|
33
|
-
A_Container_storage_1.A_CONTAINER_Storage.set(target.constructor, existedMeta);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=Feature.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Feature.decorator.js","sourceRoot":"","sources":["../../../../../src/decorators/A-Define/Feature/Feature.decorator.ts"],"names":[],"mappings":";;AAyBA,8BAiCC;AAnDD,sFAA6H;AAK7H;;;;;;;;;;;;GAYG;AACH,SAAgB,SAAS,CACrB,SAAqD,EAAE;IAEvD,OAAO,UACH,MAAmB,EACnB,WAAmB,EACnB,UAAiD;QAEjD,MAAM,WAAW,GAAG,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAC7E,MAAM,WAAW,GAAG,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAGpG,MAAM,gBAAgB,GAAG,WAAW,CAAC,GAAG,CAAC,8DAAwC,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAChG,MAAM,OAAO,GAA+D,WAAW,CAAC,GAAG,CAAC,8DAAwC,CAAC,IAAI,IAAI,GAAG,CAAC,gBAAgB,CAAC,CAAA;QAGlK,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE;YACrB,OAAO,EAAE,WAAW;YACpB,MAAM,kBACF,IAAI,EAAE,WAAW,IACd,MAAM,CACZ;SACJ,CAAC,CAAC;QAEH,4BAA4B;QAC5B,4BAA4B;QAC5B,uHAAuH;QACvH,MAAM;QAGN,WAAW,CAAC,GAAG,CAAC,8DAAwC,EAAE,OAAO,CAAC,CAAC;QACnE,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAC7D,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type A_TYPES__A_FeatureDecoratorDescriptor = TypedPropertyDescriptor<() => any> | TypedPropertyDescriptor<(...args: any[]) => any> | TypedPropertyDescriptor<(...args: any[]) => Promise<any>> | TypedPropertyDescriptor<() => Promise<any>>;
|
|
2
|
-
export type A_TYPES__A_FeatureDecoratorConfig = {
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
5
|
-
export type A_TYPES__A_FeatureDecoratorStorageInstruction = {
|
|
6
|
-
handler: string;
|
|
7
|
-
config: A_TYPES__A_FeatureDecoratorConfig;
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Feature.decorator.types.js","sourceRoot":"","sources":["../../../../../src/decorators/A-Define/Feature/Feature.decorator.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A-Lifecycle decorator
|
|
3
|
-
*
|
|
4
|
-
* This decorator allows to define a custom lifecycle stage for the Container.
|
|
5
|
-
* These stages are executed in a container-specific order and can be extended by components that are injected into the container.
|
|
6
|
-
* This approach allows to create a flexible and extendable architecture for the application.
|
|
7
|
-
*
|
|
8
|
-
* The main difference between the A-Lifecycle and A-Feature decorators is that A-Lifecycle methods can be inherited and overridden by child classes.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @param params
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
export declare function A_Lifecycle(): any;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.A_Lifecycle = A_Lifecycle;
|
|
4
|
-
const A_Container_storage_1 = require("../../../storage/A_Container.storage");
|
|
5
|
-
function A_Lifecycle(config = {}) {
|
|
6
|
-
return function (target, propertyKey, descriptor) {
|
|
7
|
-
const existedMeta = A_Container_storage_1.A_CONTAINER_Storage.get(target.constructor) || new Map();
|
|
8
|
-
const inheritMeta = A_Container_storage_1.A_CONTAINER_Storage.get(Object.getPrototypeOf(target.constructor)) || new Map();
|
|
9
|
-
const inheritedLifecycle = inheritMeta.get(A_Container_storage_1.A_CONTAINER_STORAGE__Definition__Lifecycle) || new Map();
|
|
10
|
-
const lifecycle = existedMeta.get(A_Container_storage_1.A_CONTAINER_STORAGE__Definition__Lifecycle) || new Map(inheritedLifecycle);
|
|
11
|
-
lifecycle.set(propertyKey, {
|
|
12
|
-
handler: propertyKey,
|
|
13
|
-
config: Object.assign(Object.assign({}, config), { name: `${target.constructor.name}.${propertyKey || config.name}` })
|
|
14
|
-
// config: A_CommonHelper.deepCloneAndMerge(config, A_CONSTANTS__DEFAULT_CONCEPT_LIFECYCLE_METHOD_DECLARATION_CONFIG)
|
|
15
|
-
});
|
|
16
|
-
// targetInstructions.push({
|
|
17
|
-
// handler: propertyKey,
|
|
18
|
-
// config: A_CommonHelper.deepCloneAndMerge(config, A_CONSTANTS__DEFAULT_CONCEPT_LIFECYCLE_METHOD_DECLARATION_CONFIG)
|
|
19
|
-
// });
|
|
20
|
-
existedMeta.set(A_Container_storage_1.A_CONTAINER_STORAGE__Definition__Lifecycle, lifecycle);
|
|
21
|
-
A_Container_storage_1.A_CONTAINER_Storage.set(target.constructor, existedMeta);
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=Lifecycle.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Lifecycle.decorator.js","sourceRoot":"","sources":["../../../../../src/decorators/A-Define/Lifecycle/Lifecycle.decorator.ts"],"names":[],"mappings":";;AA2BA,kCAkCC;AAtDD,sFAA+H;AAoB/H,SAAgB,WAAW,CACvB,SAAuD,EAAE;IAEzD,OAAO,UACH,MAAmB,EACnB,WAAmB,EACnB,UAAmD;QAEnD,MAAM,WAAW,GAAG,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAC7E,MAAM,WAAW,GAAG,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAEpG,MAAM,kBAAkB,GAAG,WAAW,CAAC,GAAG,CAAC,gEAA0C,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QACpG,MAAM,SAAS,GAAiE,WAAW,CAAC,GAAG,CAAC,gEAA0C,CAAC,IAAI,IAAI,GAAG,CAAC,kBAAkB,CAAC,CAAA;QAG1K,SAAS,CAAC,GAAG,CAAC,WAAW,EAAE;YACvB,OAAO,EAAE,WAAW;YACpB,MAAM,kCACC,MAAM,KACT,IAAI,EAAE,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,WAAW,IAAI,MAAM,CAAC,IAAI,EAAE,GACnE;YAED,qHAAqH;SACxH,CAAC,CAAC;QAEH,4BAA4B;QAC5B,4BAA4B;QAC5B,yHAAyH;QACzH,MAAM;QAGN,WAAW,CAAC,GAAG,CAAC,gEAA0C,EAAE,SAAS,CAAC,CAAC;QACvE,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAC7D,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type A_TYPES__A_LifecycleDecoratorDescriptor = TypedPropertyDescriptor<() => any> | TypedPropertyDescriptor<(...args: any[]) => any> | TypedPropertyDescriptor<(...args: any[]) => Promise<any>> | TypedPropertyDescriptor<() => Promise<any>>;
|
|
2
|
-
export type A_TYPES__A_LifecycleDecoratorConfig = {
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
5
|
-
export type A_TYPES__A_LifecycleDecoratorStorageInstruction = {
|
|
6
|
-
handler: string;
|
|
7
|
-
config: A_TYPES__A_LifecycleDecoratorConfig;
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Lifecycle.decorator.types.js","sourceRoot":"","sources":["../../../../../src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.A_Define = void 0;
|
|
4
|
-
const Feature_decorator_1 = require("./Feature/Feature.decorator");
|
|
5
|
-
const Lifecycle_decorator_1 = require("./Lifecycle/Lifecycle.decorator");
|
|
6
|
-
exports.A_Define = {
|
|
7
|
-
Lifecycle: Lifecycle_decorator_1.A_Lifecycle,
|
|
8
|
-
Feature: Feature_decorator_1.A_Feature
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/decorators/A-Define/index.ts"],"names":[],"mappings":";;;AAAA,mEAAwD;AACxD,yEAA8D;AAQjD,QAAA,QAAQ,GAAc;IAC/B,SAAS,EAAE,iCAAW;IACtB,OAAO,EAAE,6BAAS;CACrB,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { A_TYPES__A_ExtendDecoratorConfig, A_TYPES__A_ExtendDecoratorDescriptor } from "./A-Extend.decorator.types";
|
|
2
|
-
import { A_Component } from "../../global/A-Component/A-Component.class";
|
|
3
|
-
/**
|
|
4
|
-
* A-Extend decorator
|
|
5
|
-
*
|
|
6
|
-
* This decorator allows to define a custom Extend stage for the Container.
|
|
7
|
-
* These stages are executed in a container-specific order and can be extended by components that are injected into the container.
|
|
8
|
-
* This approach allows to create a flexible and extendable architecture for the application.
|
|
9
|
-
*
|
|
10
|
-
* The main difference between the A-Extend and A-Extend decorators is that A-Extend methods can be inherited and overridden by child classes.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* @param params
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
export declare function A_Extend(config?: Partial<A_TYPES__A_ExtendDecoratorConfig>): (target: A_Component | {
|
|
17
|
-
new (...args: any[]): any;
|
|
18
|
-
}, propertyKey: string, descriptor: A_TYPES__A_ExtendDecoratorDescriptor) => void;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.A_Extend = A_Extend;
|
|
4
|
-
const A_Component_storage_1 = require("../../storage/A_Component.storage");
|
|
5
|
-
/**
|
|
6
|
-
* A-Extend decorator
|
|
7
|
-
*
|
|
8
|
-
* This decorator allows to define a custom Extend stage for the Container.
|
|
9
|
-
* These stages are executed in a container-specific order and can be extended by components that are injected into the container.
|
|
10
|
-
* This approach allows to create a flexible and extendable architecture for the application.
|
|
11
|
-
*
|
|
12
|
-
* The main difference between the A-Extend and A-Extend decorators is that A-Extend methods can be inherited and overridden by child classes.
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @param params
|
|
16
|
-
* @returns
|
|
17
|
-
*/
|
|
18
|
-
function A_Extend(config = {}) {
|
|
19
|
-
return function (target, propertyKey, descriptor) {
|
|
20
|
-
const existedMeta = A_Component_storage_1.A_COMPONENT_Storage.get(target.constructor) || new Map();
|
|
21
|
-
const inheritMeta = A_Component_storage_1.A_COMPONENT_Storage.get(Object.getPrototypeOf(target.constructor)) || new Map();
|
|
22
|
-
const inheritedExtension = inheritMeta.get(A_Component_storage_1.A_COMPONENT_STORAGE__Definition__Extensions) || new Map();
|
|
23
|
-
const extensionDefinition = existedMeta.get(A_Component_storage_1.A_COMPONENT_STORAGE__Definition__Extensions) || new Map(inheritedExtension);
|
|
24
|
-
extensionDefinition.set(propertyKey, {
|
|
25
|
-
name: config.name || propertyKey,
|
|
26
|
-
handler: propertyKey,
|
|
27
|
-
container: config.container
|
|
28
|
-
? typeof config.container === 'string'
|
|
29
|
-
? config.container
|
|
30
|
-
: config.container.name
|
|
31
|
-
: '*',
|
|
32
|
-
});
|
|
33
|
-
existedMeta.set(A_Component_storage_1.A_COMPONENT_STORAGE__Definition__Extensions, extensionDefinition);
|
|
34
|
-
A_Component_storage_1.A_COMPONENT_Storage.set(target.constructor, existedMeta);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=A-Extend.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Extend.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Extend/A-Extend.decorator.ts"],"names":[],"mappings":";;AA0BA,4BA6BC;AA/CD,sFAAgI;AAKhI;;;;;;;;;;;;GAYG;AACH,SAAgB,QAAQ,CACpB,SAAoD,EAAE;IAEtD,OAAO,UACH,MAAkD,EAClD,WAAmB,EACnB,UAAgD;QAGhD,MAAM,WAAW,GAAG,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAC7E,MAAM,WAAW,GAAG,yCAAmB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