@adaas/a-concept 0.0.3 → 0.0.5
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/dist/examples/simple/components/A.component.d.ts +7 -0
- package/dist/examples/simple/components/A.component.js +57 -0
- package/dist/examples/simple/components/A.component.js.map +1 -0
- package/dist/examples/simple/components/B.component.d.ts +9 -0
- package/dist/examples/simple/components/B.component.js +77 -0
- package/dist/examples/simple/components/B.component.js.map +1 -0
- package/dist/examples/simple/concept.d.ts +1 -0
- package/dist/examples/simple/concept.js +53 -11
- package/dist/examples/simple/concept.js.map +1 -1
- package/dist/examples/simple/containers/Main.container.d.ts +11 -0
- package/dist/examples/simple/containers/Main.container.js +71 -0
- package/dist/examples/simple/containers/Main.container.js.map +1 -0
- package/dist/examples/simple/context/Fragment_A.context.d.ts +6 -0
- package/dist/examples/simple/context/Fragment_A.context.js +16 -0
- package/dist/examples/simple/context/Fragment_A.context.js.map +1 -0
- package/dist/examples/simple/context/Fragment_B.context.d.ts +6 -0
- package/dist/examples/simple/context/Fragment_B.context.js +16 -0
- package/dist/examples/simple/context/Fragment_B.context.js.map +1 -0
- package/dist/examples/simple-http-server/components/http-error-handler.component.d.ts +9 -0
- package/dist/examples/simple-http-server/components/http-error-handler.component.js +63 -0
- package/dist/examples/simple-http-server/components/http-error-handler.component.js.map +1 -0
- package/dist/examples/simple-http-server/components/http-request-handler.component.d.ts +2 -0
- package/dist/examples/simple-http-server/components/http-request-handler.component.js +7 -0
- package/dist/examples/simple-http-server/components/http-request-handler.component.js.map +1 -0
- package/dist/examples/simple-http-server/concept.js +21 -22
- package/dist/examples/simple-http-server/concept.js.map +1 -1
- package/dist/examples/simple-http-server/containers/http-server.container.d.ts +8 -8
- package/dist/examples/simple-http-server/containers/http-server.container.js +34 -30
- package/dist/examples/simple-http-server/containers/http-server.container.js.map +1 -1
- package/dist/examples/simple-http-server/containers/http-server.controller.js +1 -1
- package/dist/examples/simple-http-server/containers/http-server.router.js +2 -2
- package/dist/examples/simple-http-server/containers/http-server.router.js.map +1 -1
- package/dist/examples/simple-http-server/contexts/http-request.context.d.ts +13 -0
- package/dist/examples/simple-http-server/contexts/http-request.context.js +51 -0
- package/dist/examples/simple-http-server/contexts/http-request.context.js.map +1 -0
- package/dist/examples/simple-http-server/contexts/http-server.context.types.d.ts +0 -4
- package/dist/examples/simple-http-server/contexts/http-server.context.types.js +0 -98
- package/dist/examples/simple-http-server/contexts/http-server.context.types.js.map +1 -1
- package/dist/examples/simple-http-server/contexts/http-server.namespace.d.ts +1 -1
- package/dist/examples/simple-http-server/contexts/http-server.namespace.js +1 -1
- package/dist/examples/simple-http-server/controllers/users.controller.js +2 -2
- package/dist/examples/simple-http-server/test.d.ts +68 -0
- package/dist/examples/simple-http-server/test.js +162 -0
- package/dist/examples/simple-http-server/test.js.map +1 -0
- package/dist/index.d.ts +27 -19
- package/dist/index.js +58 -26
- package/dist/index.js.map +1 -1
- package/dist/src/base/A-Config/A-Config.container.d.ts +8 -0
- package/dist/src/base/A-Config/A-Config.container.js +64 -0
- package/dist/src/base/A-Config/A-Config.container.js.map +1 -0
- package/dist/src/base/A-Config/A-Config.context.d.ts +30 -0
- package/dist/src/base/A-Config/A-Config.context.js +58 -0
- package/dist/src/base/A-Config/A-Config.context.js.map +1 -0
- package/dist/src/base/A-Config/A-Config.types.d.ts +16 -0
- package/dist/src/base/A-Config/A-Config.types.js +7 -0
- package/dist/src/base/A-Config/A-Config.types.js.map +1 -0
- package/dist/src/base/A-Config/components/ConfigReader.component.d.ts +19 -0
- package/dist/src/base/A-Config/components/ConfigReader.component.js +53 -0
- package/dist/src/base/A-Config/components/ConfigReader.component.js.map +1 -0
- package/dist/src/base/A-Config/components/ENVConfigReader.component.d.ts +10 -0
- package/dist/src/base/A-Config/components/ENVConfigReader.component.js +37 -0
- package/dist/src/base/A-Config/components/ENVConfigReader.component.js.map +1 -0
- package/dist/src/base/A-Config/components/FileConfigReader.component.d.ts +11 -0
- package/dist/src/base/A-Config/components/FileConfigReader.component.js +47 -0
- package/dist/src/base/A-Config/components/FileConfigReader.component.js.map +1 -0
- package/dist/src/base/A-Errors/A-Errors.component.d.ts +18 -0
- package/dist/src/base/A-Errors/A-Errors.component.js +85 -0
- package/dist/src/base/A-Errors/A-Errors.component.js.map +1 -0
- package/dist/src/base/A-Errors/A-Errors.context.d.ts +27 -0
- package/dist/src/base/A-Errors/A-Errors.context.js +50 -0
- package/dist/src/base/A-Errors/A-Errors.context.js.map +1 -0
- package/dist/src/base/A-Errors/A-Errors.types.d.ts +5 -0
- package/dist/src/base/A-Errors/A-Errors.types.js +3 -0
- package/dist/src/base/A-Errors/A-Errors.types.js.map +1 -0
- package/dist/src/base/A-Logger/A-Logger.component.d.ts +28 -0
- package/dist/src/base/A-Logger/A-Logger.component.js +142 -0
- package/dist/src/base/A-Logger/A-Logger.component.js.map +1 -0
- package/dist/src/base/A-Logger/A-Logger.types.js +2 -0
- package/dist/src/base/A-Logger/A-Logger.types.js.map +1 -0
- package/dist/src/constants/A_ConceptLifecycle.constants.d.ts +0 -2
- package/dist/src/constants/A_ConceptLifecycle.constants.js +9 -10
- package/dist/src/constants/A_ConceptLifecycle.constants.js.map +1 -1
- package/dist/src/containers/A-Config/A-Config.container.js +1 -1
- package/dist/src/containers/A-Config/A-Config.namespace.d.ts +1 -1
- package/dist/src/containers/A-Config/A-Config.namespace.js +1 -1
- package/dist/src/containers/A-Config/A-Config.types.d.ts +1 -1
- package/dist/src/containers/A-Errors/A-Errors.container.js +1 -1
- package/dist/src/containers/A-Errors/A-Errors.namespace.d.ts +1 -1
- package/dist/src/containers/A-Errors/A-Errors.namespace.js +1 -1
- package/dist/src/containers/A-Errors/A-Errors.types.d.ts +1 -1
- package/dist/src/containers/A-Logger/A-Logger.container.js +1 -1
- package/dist/src/containers/A-Logger/A-Logger.namespace.d.ts +1 -1
- package/dist/src/containers/A-Logger/A-Logger.namespace.js +1 -1
- package/dist/src/containers/A-Logger/components/Logger.component.d.ts +1 -1
- package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.js.map +1 -1
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.d.ts +16 -0
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.js +36 -0
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.js.map +1 -0
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.d.ts +8 -0
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.js +3 -0
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.js.map +1 -0
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.d.ts +14 -0
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.js +24 -0
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.js.map +1 -0
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.d.ts +8 -0
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.js +3 -0
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.js.map +1 -0
- package/dist/src/decorators/A-Define/index.d.ts +7 -0
- package/dist/src/decorators/A-Define/index.js +10 -0
- package/dist/src/decorators/A-Define/index.js.map +1 -0
- package/dist/src/decorators/A-Extend/A-Extend.decorator.d.ts +18 -0
- package/dist/src/decorators/A-Extend/A-Extend.decorator.js +37 -0
- package/dist/src/decorators/A-Extend/A-Extend.decorator.js.map +1 -0
- package/dist/src/decorators/A-Extend/A-Extend.decorator.types.d.ts +21 -0
- package/dist/src/decorators/A-Extend/A-Extend.decorator.types.js +3 -0
- package/dist/src/decorators/A-Extend/A-Extend.decorator.types.js.map +1 -0
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.d.ts +16 -0
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js +37 -0
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js.map +1 -0
- package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.d.ts +16 -0
- package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.js +42 -0
- package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.js.map +1 -0
- package/dist/src/decorators/A-Feature/A-Feature.decorator.types.d.ts +20 -0
- package/dist/src/decorators/A-Feature/A-Feature.decorator.types.js +1 -0
- package/dist/src/decorators/A-Inject/A-Inject.decorator.d.ts +12 -10
- package/dist/src/decorators/A-Inject/A-Inject.decorator.js +16 -26
- 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 +4 -3
- package/dist/src/decorators/A-Stage/A-Stage.decorator.d.ts +12 -0
- package/dist/src/decorators/A-Stage/A-Stage.decorator.js +35 -0
- package/dist/src/decorators/A-Stage/A-Stage.decorator.js.map +1 -0
- package/dist/src/decorators/A-Stage/A-Stage.decorator.types.d.ts +2 -0
- package/dist/src/decorators/A-Stage/A-Stage.decorator.types.js +3 -0
- package/dist/src/decorators/A-Stage/A-Stage.decorator.types.js.map +1 -0
- package/dist/src/global/A-Channel/A-Channel.class.d.ts +18 -0
- package/dist/src/global/A-Channel/A-Channel.class.js +54 -0
- package/dist/src/global/A-Channel/A-Channel.class.js.map +1 -0
- package/dist/src/global/A-Channel/A-Channel.types.d.ts +35 -0
- package/dist/src/global/A-Channel/A-Channel.types.js +3 -0
- package/dist/src/global/A-Channel/A-Channel.types.js.map +1 -0
- package/dist/src/global/A-Component/A-Component.class.d.ts +1 -11
- package/dist/src/global/A-Component/A-Component.class.js +0 -7
- package/dist/src/global/A-Component/A-Component.class.js.map +1 -1
- package/dist/src/global/A-Component/A-Component.meta.d.ts +4 -0
- package/dist/src/global/A-Component/A-Component.meta.js +8 -0
- package/dist/src/global/A-Component/A-Component.meta.js.map +1 -0
- package/dist/src/global/A-Component/A-Component.types.d.ts +18 -0
- package/dist/src/global/A-Component/A-Component.types.js +10 -0
- package/dist/src/global/A-Component/A-Component.types.js.map +1 -0
- package/dist/src/global/A-Concept/A_Concept.class.d.ts +41 -17
- package/dist/src/global/A-Concept/A_Concept.class.js +120 -43
- package/dist/src/global/A-Concept/A_Concept.class.js.map +1 -1
- package/dist/src/global/A-Concept/A_Concept.meta.d.ts +3 -0
- package/dist/src/global/A-Concept/A_Concept.meta.js +9 -0
- package/dist/src/global/A-Concept/A_Concept.meta.js.map +1 -0
- package/dist/src/global/A-Concept/A_Concept.types.d.ts +31 -16
- package/dist/src/global/A-Concept/A_Concept.types.js +25 -0
- package/dist/src/global/A-Concept/A_Concept.types.js.map +1 -1
- package/dist/src/global/A-Container/A-Container.class.d.ts +72 -10
- package/dist/src/global/A-Container/A-Container.class.js +119 -9
- package/dist/src/global/A-Container/A-Container.class.js.map +1 -1
- package/dist/src/global/A-Container/A-Container.meta.d.ts +7 -0
- package/dist/src/global/A-Container/A-Container.meta.js +54 -0
- package/dist/src/global/A-Container/A-Container.meta.js.map +1 -0
- package/dist/src/global/A-Container/A-Container.types.d.ts +31 -0
- package/dist/src/global/A-Container/A-Container.types.js +9 -0
- package/dist/src/global/A-Container/A-Container.types.js.map +1 -0
- package/dist/src/global/A-Context/A-Context.class.d.ts +37 -54
- package/dist/src/global/A-Context/A-Context.class.js +129 -61
- package/dist/src/global/A-Context/A-Context.class.js.map +1 -1
- package/dist/src/global/A-Context/A-Context.types.d.ts +12 -0
- package/dist/src/global/A-Context/A-Context.types.js +1 -0
- package/dist/src/global/A-Context/A-ContextFragment.class.d.ts +12 -0
- package/dist/src/global/A-Context/A-ContextFragment.class.js +19 -0
- package/dist/src/global/A-Context/A-ContextFragment.class.js.map +1 -0
- package/dist/src/global/A-Dependency/A-DependencyReference.class.d.ts +0 -17
- package/dist/src/global/A-Dependency/A-DependencyReference.class.js +47 -65
- package/dist/src/global/A-Dependency/A-DependencyReference.class.js.map +1 -1
- package/dist/src/global/A-Dependency/A-DependencyReference.types.d.ts +0 -55
- package/dist/src/global/A-Dependency/A-DependencyReference.types.js +56 -1
- package/dist/src/global/A-Dependency/A-DependencyReference.types.js.map +1 -1
- package/dist/src/global/A-Entity/A-Entity.class.d.ts +57 -0
- package/dist/src/global/A-Entity/A-Entity.class.js +102 -0
- package/dist/src/global/A-Entity/A-Entity.class.js.map +1 -0
- package/dist/src/global/A-Entity/A-Entity.types.d.ts +13 -0
- package/dist/src/global/A-Entity/A-Entity.types.js +4 -0
- package/dist/src/global/A-Entity/A-Entity.types.js.map +1 -0
- package/dist/src/global/A-Feature/A-Feature.class.d.ts +44 -0
- package/dist/src/global/A-Feature/A-Feature.class.js +125 -0
- package/dist/src/global/A-Feature/A-Feature.class.js.map +1 -0
- package/dist/src/global/A-Feature/A-Feature.types.d.ts +17 -0
- package/dist/src/global/A-Feature/A-Feature.types.js +11 -0
- package/dist/src/global/A-Feature/A-Feature.types.js.map +1 -0
- package/dist/src/global/A-Fragment/A-Fragment.class.d.ts +38 -0
- package/dist/src/global/A-Fragment/A-Fragment.class.js +107 -0
- package/dist/src/global/A-Fragment/A-Fragment.class.js.map +1 -0
- package/dist/src/global/A-Fragment/A-Fragment.types.d.ts +3 -0
- package/dist/src/global/A-Fragment/A-Fragment.types.js +3 -0
- package/dist/src/global/A-Fragment/A-Fragment.types.js.map +1 -0
- package/dist/src/global/A-Meta/A-Meta.class.d.ts +16 -0
- package/dist/src/global/A-Meta/A-Meta.class.js +69 -0
- package/dist/src/global/A-Meta/A-Meta.class.js.map +1 -0
- package/dist/src/global/A-Meta/A-Meta.types.js +2 -0
- package/dist/src/global/A-Meta/A-Meta.types.js.map +1 -0
- package/dist/src/global/A-Scope/A-Scope.class.d.ts +51 -0
- package/dist/src/global/A-Scope/A-Scope.class.js +135 -0
- package/dist/src/global/A-Scope/A-Scope.class.js.map +1 -0
- package/dist/src/global/A-Scope/A-Scope.types.d.ts +32 -0
- package/dist/src/global/A-Scope/A-Scope.types.js +3 -0
- package/dist/src/global/A-Scope/A-Scope.types.js.map +1 -0
- package/dist/src/storage/A_Component.storage.d.ts +10 -0
- package/dist/src/storage/A_Component.storage.js +17 -0
- package/dist/src/storage/A_Component.storage.js.map +1 -0
- package/dist/src/storage/A_Concept.storage.js +2 -2
- package/dist/src/storage/A_Concept.storage.js.map +1 -1
- package/dist/src/storage/A_Container.storage.d.ts +8 -0
- package/dist/src/storage/A_Container.storage.js +17 -0
- package/dist/src/storage/A_Container.storage.js.map +1 -0
- package/dist/src/storage/A_Inject.storage.d.ts +9 -0
- package/dist/src/storage/A_Inject.storage.js +13 -0
- package/dist/src/storage/A_Inject.storage.js.map +1 -0
- package/examples/simple/components/A.component.ts +35 -0
- package/examples/simple/components/B.component.ts +46 -0
- package/examples/simple/concept.ts +49 -12
- package/examples/simple/containers/Main.container.ts +47 -0
- package/examples/simple/context/Fragment_A.context.ts +25 -0
- package/examples/simple/context/Fragment_B.context.ts +19 -0
- package/examples/simple-http-server/components/http-error-handler.component.ts +44 -0
- package/examples/simple-http-server/components/http-request-handler.component.ts +9 -0
- package/examples/simple-http-server/concept.ts +22 -21
- package/examples/simple-http-server/containers/http-server.container.ts +23 -38
- package/examples/simple-http-server/contexts/http-request.context.ts +59 -0
- package/examples/simple-http-server/contexts/http-server.context.types.ts +0 -108
- package/examples/simple-http-server/test.ts +290 -0
- package/index.ts +53 -22
- package/jest.config.ts +1 -3
- package/package.json +4 -7
- package/src/{containers → base}/A-Config/A-Config.container.ts +21 -20
- package/src/{containers/A-Config/A-Config.namespace.ts → base/A-Config/A-Config.context.ts} +12 -5
- package/src/{containers → base}/A-Config/A-Config.types.ts +15 -4
- package/src/{containers → base}/A-Config/components/ConfigReader.component.ts +7 -3
- package/src/{containers → base}/A-Config/components/ENVConfigReader.component.ts +1 -1
- package/src/{containers → base}/A-Config/components/FileConfigReader.component.ts +1 -1
- package/src/base/A-Errors/A-Errors.component.ts +102 -0
- package/src/{containers/A-Errors/A-Errors.namespace.ts → base/A-Errors/A-Errors.context.ts} +24 -39
- package/src/{containers → base}/A-Errors/A-Errors.types.ts +2 -2
- package/src/base/A-Logger/A-Logger.component.ts +169 -0
- package/src/base/A-Logger/A-Logger.types.ts +0 -0
- package/src/constants/A_ConceptLifecycle.constants.ts +9 -9
- package/src/decorators/A-Feature/A-Feature-Define.decorator.ts +57 -0
- package/src/decorators/A-Feature/A-Feature-Extend.decorator.ts +57 -0
- package/src/decorators/A-Feature/A-Feature.decorator.types.ts +56 -0
- package/src/decorators/A-Inject/A-Inject.decorator.ts +64 -53
- package/src/decorators/A-Inject/A-Inject.decorator.types.ts +31 -4
- package/src/decorators/A-Stage/A-Stage.decorator.ts +57 -0
- package/src/decorators/A-Stage/A-Stage.decorator.types.ts +23 -0
- package/src/global/A-Channel/A-Channel.class.ts +48 -0
- package/src/global/A-Channel/A-Channel.types.ts +60 -0
- package/src/global/A-Component/A-Component.class.ts +1 -29
- package/src/global/A-Component/A-Component.meta.ts +9 -0
- package/src/global/A-Component/A-Component.types.ts +40 -0
- package/src/global/A-Concept/A_Concept.class.ts +160 -66
- package/src/global/A-Concept/A_Concept.meta.ts +9 -0
- package/src/global/A-Concept/A_Concept.types.ts +45 -10
- package/src/global/A-Container/A-Container.class.ts +172 -22
- package/src/global/A-Container/A-Container.meta.ts +80 -0
- package/src/global/A-Container/A-Container.types.ts +40 -0
- package/src/global/A-Context/A-Context.class.ts +233 -130
- package/src/global/A-Context/A-Context.types.ts +15 -0
- package/src/global/A-Dependency/A-DependencyReference.class.ts +61 -61
- package/src/global/A-Dependency/A-DependencyReference.types.ts +56 -56
- package/src/global/A-Entity/A-Entity.class.ts +141 -0
- package/src/global/A-Entity/A-Entity.types.ts +17 -0
- package/src/global/A-Feature/A-Feature.class.ts +156 -0
- package/src/global/A-Feature/A-Feature.types.ts +20 -0
- package/src/global/{A-Namespace/A_Namespace.class.ts → A-Fragment/A-Fragment.class.ts} +24 -30
- package/src/global/A-Fragment/A-Fragment.types.ts +6 -0
- package/src/global/A-Meta/A-Meta.class.ts +96 -0
- package/src/global/A-Meta/A-Meta.types.ts +0 -0
- package/src/global/A-Scope/A-Scope.class.ts +211 -0
- package/src/global/A-Scope/A-Scope.types.ts +37 -0
- package/tsconfig.json +1 -3
- package/examples/sdk/concept.ts +0 -24
- package/examples/sdk/orders.api.ts +0 -21
- package/examples/sdk/users.api.ts +0 -21
- package/examples/simple-http-server/containers/http-server.controller.ts +0 -24
- package/examples/simple-http-server/containers/http-server.router.ts +0 -23
- package/examples/simple-http-server/contexts/http-server.namespace.ts +0 -36
- package/src/containers/A-Errors/A-Errors.container.ts +0 -14
- package/src/containers/A-Logger/A-Logger.container.ts +0 -22
- package/src/containers/A-Logger/A-Logger.namespace.ts +0 -26
- package/src/containers/A-Logger/components/Logger.component.ts +0 -169
- package/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.ts +0 -46
- package/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.ts +0 -55
- package/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.ts +0 -20
- package/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.ts +0 -62
- package/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.ts +0 -28
- package/src/decorators/A-ConceptLifecycle/index.ts +0 -9
- package/src/decorators/A-Feature/A-Feature.decorator.ts +0 -13
- package/src/decorators/A_Lazy.decorator.ts +0 -31
- package/src/global/A-Namespace/A_Namespace.types.ts +0 -24
- package/src/storage/A_Concept.storage.ts +0 -45
- /package/{src/containers/A-Logger/A-Logger.types.ts → dist/src/base/A-Logger/A-Logger.types.d.ts} +0 -0
- /package/{src/decorators/A_ConceptMethods.decorator.ts → dist/src/global/A-Meta/A-Meta.types.d.ts} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ContextFragmentA } from "../context/Fragment_A.context";
|
|
2
|
+
import { ContextFragmentB } from "../context/Fragment_B.context";
|
|
3
|
+
export declare class ComponentA {
|
|
4
|
+
load(): Promise<void>;
|
|
5
|
+
method_A(fragmentA: ContextFragmentA): Promise<void>;
|
|
6
|
+
someMethod(fragmentB: ContextFragmentB): Promise<void>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
11
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.ComponentA = void 0;
|
|
22
|
+
const A_Feature_class_1 = require("../../../src/global/A-Feature/A-Feature.class");
|
|
23
|
+
const Fragment_A_context_1 = require("../context/Fragment_A.context");
|
|
24
|
+
const Fragment_B_context_1 = require("../context/Fragment_B.context");
|
|
25
|
+
const A_Inject_decorator_1 = require("../../../src/decorators/A-Inject/A-Inject.decorator");
|
|
26
|
+
class ComponentA {
|
|
27
|
+
load() {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () { });
|
|
29
|
+
}
|
|
30
|
+
method_A(fragmentA) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
console.log('Component A -> method_A()');
|
|
33
|
+
fragmentA.decrement();
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
someMethod(fragmentB) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
console.log('Component A -> method_A() -> someMethod()');
|
|
39
|
+
fragmentB.increment();
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ComponentA = ComponentA;
|
|
44
|
+
__decorate([
|
|
45
|
+
A_Feature_class_1.A_Feature.Extend()
|
|
46
|
+
], ComponentA.prototype, "load", null);
|
|
47
|
+
__decorate([
|
|
48
|
+
A_Feature_class_1.A_Feature.Extend(),
|
|
49
|
+
__param(0, (0, A_Inject_decorator_1.A_Inject)(Fragment_A_context_1.ContextFragmentA))
|
|
50
|
+
], ComponentA.prototype, "method_A", null);
|
|
51
|
+
__decorate([
|
|
52
|
+
A_Feature_class_1.A_Feature.Extend({
|
|
53
|
+
name: 'method_A'
|
|
54
|
+
}),
|
|
55
|
+
__param(0, (0, A_Inject_decorator_1.A_Inject)(Fragment_B_context_1.ContextFragmentB))
|
|
56
|
+
], ComponentA.prototype, "someMethod", null);
|
|
57
|
+
//# sourceMappingURL=A.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A.component.js","sourceRoot":"","sources":["../../../../examples/simple/components/A.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,uFAA8E;AAC9E,sEAAiE;AACjE,sEAAiE;AACjE,gGAAmF;AAEnF,MAAa,UAAU;IAIb,IAAI;8DAAK,CAAC;KAAA;IAKV,QAAQ,CACkB,SAA2B;;YAEvD,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;YAC1C,SAAS,CAAC,SAAS,EAAE,CAAC;QAC1B,CAAC;KAAA;IAOK,UAAU,CACgB,SAA2B;;YAEvD,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;YAE1D,SAAS,CAAC,SAAS,EAAE,CAAC;QAC1B,CAAC;KAAA;CAEJ;AA7BD,gCA6BC;AAzBS;IADL,2BAAS,CAAC,MAAM,EAAE;sCACH;AAKV;IADL,2BAAS,CAAC,MAAM,EAAE;IAEd,WAAA,IAAA,6BAAQ,EAAC,qCAAgB,CAAC,CAAA;0CAI9B;AAOK;IAHL,2BAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,UAAU;KACnB,CAAC;IAEG,WAAA,IAAA,6BAAQ,EAAC,qCAAgB,CAAC,CAAA;4CAK9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ContextFragmentB } from "../context/Fragment_B.context";
|
|
2
|
+
import { ContextFragmentA } from "../context/Fragment_A.context";
|
|
3
|
+
export declare class ComponentB {
|
|
4
|
+
load(): Promise<void>;
|
|
5
|
+
method_B(): Promise<void>;
|
|
6
|
+
someMethod(): Promise<void>;
|
|
7
|
+
someMethod2(): Promise<void>;
|
|
8
|
+
someMethod3(context: ContextFragmentB, context2: ContextFragmentA): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
11
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.ComponentB = void 0;
|
|
22
|
+
const A_Inject_decorator_1 = require("../../../src/decorators/A-Inject/A-Inject.decorator");
|
|
23
|
+
const Fragment_B_context_1 = require("../context/Fragment_B.context");
|
|
24
|
+
const Fragment_A_context_1 = require("../context/Fragment_A.context");
|
|
25
|
+
const A_Feature_class_1 = require("../../../src/global/A-Feature/A-Feature.class");
|
|
26
|
+
class ComponentB {
|
|
27
|
+
load() {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
console.log('Component B -> load()');
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
method_B() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
console.log('Component B -> method_B()');
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
someMethod() {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
console.log('Component B -> method_B() -> someMethod()');
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
someMethod2() {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
console.log('Component B -> method_B() -> someMethod2()');
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
someMethod3(context, context2) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
console.log('Component B -> method_A() -> someMethod3()');
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.ComponentB = ComponentB;
|
|
54
|
+
__decorate([
|
|
55
|
+
A_Feature_class_1.A_Feature.Extend()
|
|
56
|
+
], ComponentB.prototype, "load", null);
|
|
57
|
+
__decorate([
|
|
58
|
+
A_Feature_class_1.A_Feature.Extend()
|
|
59
|
+
], ComponentB.prototype, "method_B", null);
|
|
60
|
+
__decorate([
|
|
61
|
+
A_Feature_class_1.A_Feature.Extend({
|
|
62
|
+
name: 'method_B'
|
|
63
|
+
})
|
|
64
|
+
], ComponentB.prototype, "someMethod", null);
|
|
65
|
+
__decorate([
|
|
66
|
+
A_Feature_class_1.A_Feature.Extend({
|
|
67
|
+
name: 'method_B'
|
|
68
|
+
})
|
|
69
|
+
], ComponentB.prototype, "someMethod2", null);
|
|
70
|
+
__decorate([
|
|
71
|
+
A_Feature_class_1.A_Feature.Extend({
|
|
72
|
+
name: 'method_A'
|
|
73
|
+
}),
|
|
74
|
+
__param(0, (0, A_Inject_decorator_1.A_Inject)(Fragment_B_context_1.ContextFragmentB)),
|
|
75
|
+
__param(1, (0, A_Inject_decorator_1.A_Inject)(Fragment_A_context_1.ContextFragmentA))
|
|
76
|
+
], ComponentB.prototype, "someMethod3", null);
|
|
77
|
+
//# sourceMappingURL=B.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"B.component.js","sourceRoot":"","sources":["../../../../examples/simple/components/B.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gGAAmF;AACnF,sEAAiE;AACjE,sEAAiE;AACjE,uFAA8E;AAG9E,MAAa,UAAU;IAIb,IAAI;;YACN,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QAC1C,CAAC;KAAA;IAIK,QAAQ;;YACV,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAC9C,CAAC;KAAA;IAKK,UAAU;;YACZ,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;QAC9D,CAAC;KAAA;IAMK,WAAW;;YACb,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;QAC/D,CAAC;KAAA;IAKK,WAAW,CACe,OAAyB,EACzB,QAA0B;;YAEtD,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;QAC/D,CAAC;KAAA;CAEJ;AAvCD,gCAuCC;AAnCS;IADL,2BAAS,CAAC,MAAM,EAAE;sCAGlB;AAIK;IADL,2BAAS,CAAC,MAAM,EAAE;0CAGlB;AAKK;IAHL,2BAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,UAAU;KACnB,CAAC;4CAGD;AAMK;IAHL,2BAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,UAAU;KACnB,CAAC;6CAGD;AAKK;IAHL,2BAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,UAAU;KACnB,CAAC;IAEG,WAAA,IAAA,6BAAQ,EAAC,qCAAgB,CAAC,CAAA;IAC1B,WAAA,IAAA,6BAAQ,EAAC,qCAAgB,CAAC,CAAA;6CAG9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,55 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const A_Concept_class_1 = require("../../src/global/A-Concept/A_Concept.class");
|
|
13
|
+
const Main_container_1 = require("./containers/Main.container");
|
|
14
|
+
const A_component_1 = require("./components/A.component");
|
|
15
|
+
const B_component_1 = require("./components/B.component");
|
|
16
|
+
const A_Config_context_1 = require("../../src/base/A-Config/A-Config.context");
|
|
17
|
+
const A_Errors_context_1 = require("../../src/base/A-Errors/A-Errors.context");
|
|
18
|
+
const A_Container_class_1 = require("../../src/global/A-Container/A-Container.class");
|
|
19
|
+
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
+
console.log('Start');
|
|
21
|
+
class foo extends A_Container_class_1.A_Container {
|
|
22
|
+
}
|
|
23
|
+
const simpleConcept = new A_Concept_class_1.A_Concept({
|
|
24
|
+
name: 'simple-concept',
|
|
25
|
+
fragments: [
|
|
26
|
+
new A_Config_context_1.A_Config({
|
|
27
|
+
variables: ['A', 'B', 'C'],
|
|
28
|
+
defaults: {
|
|
29
|
+
A: 1,
|
|
30
|
+
}
|
|
31
|
+
}),
|
|
32
|
+
new A_Errors_context_1.A_Errors({
|
|
33
|
+
errors: [
|
|
34
|
+
{
|
|
35
|
+
code: 'some_error',
|
|
36
|
+
description: 'Error 1',
|
|
37
|
+
message: 'Error 1'
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
})
|
|
41
|
+
],
|
|
42
|
+
containers: [
|
|
43
|
+
new Main_container_1.MainContainer({
|
|
44
|
+
components: [
|
|
45
|
+
A_component_1.ComponentA,
|
|
46
|
+
B_component_1.ComponentB
|
|
47
|
+
]
|
|
48
|
+
}),
|
|
49
|
+
new foo({})
|
|
50
|
+
]
|
|
51
|
+
});
|
|
52
|
+
yield simpleConcept.run({});
|
|
53
|
+
simpleConcept.call('method_B');
|
|
54
|
+
}))();
|
|
13
55
|
//# sourceMappingURL=concept.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concept.js","sourceRoot":"","sources":["../../../examples/simple/concept.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"concept.js","sourceRoot":"","sources":["../../../examples/simple/concept.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,uFAA8E;AAC9E,gEAA4D;AAC5D,0DAAsD;AACtD,0DAAsD;AACtD,sFAA2E;AAC3E,sFAA2E;AAC3E,6FAAoF;AAGpF,CAAC,GAAS,EAAE;IAER,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAErB,MAAM,GAAI,SAAQ,+BAAwB;KAEzC;IAGD,MAAM,aAAa,GAAG,IAAI,2BAAS,CAAC;QAChC,IAAI,EAAE,gBAAgB;QACtB,SAAS,EAAE;YACP,IAAI,2BAAQ,CAAC;gBACT,SAAS,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;gBAC1B,QAAQ,EAAE;oBACN,CAAC,EAAE,CAAC;iBACP;aACJ,CAAC;YACF,IAAI,2BAAQ,CAAC;gBACT,MAAM,EAAE;oBACJ;wBACI,IAAI,EAAE,YAAY;wBAClB,WAAW,EAAE,SAAS;wBACtB,OAAO,EAAE,SAAS;qBACrB;iBACJ;aACJ,CAAC;SACL;QACD,UAAU,EAAE;YACR,IAAI,8BAAa,CAAC;gBACd,UAAU,EAAE;oBACR,wBAAU;oBACV,wBAAU;iBACb;aACJ,CAAC;YACF,IAAI,GAAG,CAAC,EAAE,CAAC;SACd;KACJ,CAAC,CAAC;IAEH,MAAM,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IAE3B,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAEnC,CAAC,CAAA,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { A_Container } from "../../../src/global/A-Container/A-Container.class";
|
|
2
|
+
import { A_Feature } from "../../../src/global/A-Feature/A-Feature.class";
|
|
3
|
+
export declare class MainContainer extends A_Container<[
|
|
4
|
+
'method_A',
|
|
5
|
+
'method_B'
|
|
6
|
+
]> {
|
|
7
|
+
load(): Promise<void>;
|
|
8
|
+
start(params?: any): Promise<void>;
|
|
9
|
+
method_A(): Promise<void>;
|
|
10
|
+
method_B(): Promise<A_Feature>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
11
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.MainContainer = void 0;
|
|
22
|
+
const A_Container_class_1 = require("../../../src/global/A-Container/A-Container.class");
|
|
23
|
+
const A_Feature_class_1 = require("../../../src/global/A-Feature/A-Feature.class");
|
|
24
|
+
const Fragment_A_context_1 = require("../context/Fragment_A.context");
|
|
25
|
+
const Fragment_B_context_1 = require("../context/Fragment_B.context");
|
|
26
|
+
const A_Concept_class_1 = require("../../../src/global/A-Concept/A_Concept.class");
|
|
27
|
+
const A_Inject_decorator_1 = require("../../../src/decorators/A-Inject/A-Inject.decorator");
|
|
28
|
+
class MainContainer extends A_Container_class_1.A_Container {
|
|
29
|
+
load() {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
console.log('Main container loaded');
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
start(params) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
if (params) {
|
|
37
|
+
console.log('Start');
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
method_A() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
console.log('Method A');
|
|
44
|
+
const feature = this.call('method_A', {
|
|
45
|
+
fragments: [new Fragment_A_context_1.ContextFragmentA(), new Fragment_B_context_1.ContextFragmentB()]
|
|
46
|
+
});
|
|
47
|
+
yield feature.process();
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
method_B() {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
console.log('Method B');
|
|
53
|
+
return this.call('method_B');
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.MainContainer = MainContainer;
|
|
58
|
+
__decorate([
|
|
59
|
+
A_Concept_class_1.A_Concept.Load()
|
|
60
|
+
], MainContainer.prototype, "load", null);
|
|
61
|
+
__decorate([
|
|
62
|
+
A_Concept_class_1.A_Concept.Start(),
|
|
63
|
+
__param(0, (0, A_Inject_decorator_1.A_Inject)(MainContainer))
|
|
64
|
+
], MainContainer.prototype, "start", null);
|
|
65
|
+
__decorate([
|
|
66
|
+
A_Feature_class_1.A_Feature.Define()
|
|
67
|
+
], MainContainer.prototype, "method_A", null);
|
|
68
|
+
__decorate([
|
|
69
|
+
A_Feature_class_1.A_Feature.Define()
|
|
70
|
+
], MainContainer.prototype, "method_B", null);
|
|
71
|
+
//# sourceMappingURL=Main.container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Main.container.js","sourceRoot":"","sources":["../../../../examples/simple/containers/Main.container.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,6FAAoF;AACpF,uFAA8E;AAC9E,sEAAiE;AACjE,sEAAiE;AACjE,uFAA8E;AAC9E,gGAAmF;AAInF,MAAa,aAAc,SAAQ,+BAElC;IAGS,IAAI;;YACN,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACzC,CAAC;KAAA;IAGK,KAAK,CACkB,MAAY;;YAErC,IAAI,MAAM,EAAE,CAAC;gBACT,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAEzB,CAAC;QACL,CAAC;KAAA;IAMK,QAAQ;;YACV,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YACxB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;gBAClC,SAAS,EAAE,CAAC,IAAI,qCAAgB,EAAE,EAAE,IAAI,qCAAgB,EAAE,CAAC;aAC9D,CAAC,CAAC;YAEH,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;QAC5B,CAAC;KAAA;IAGK,QAAQ;;YACV,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YACxB,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACjC,CAAC;KAAA;CACJ;AArCD,sCAqCC;AAhCS;IADL,2BAAS,CAAC,IAAI,EAAE;yCAGhB;AAGK;IADL,2BAAS,CAAC,KAAK,EAAE;IAEb,WAAA,IAAA,6BAAQ,EAAC,aAAa,CAAC,CAAA;0CAM3B;AAMK;IADL,2BAAS,CAAC,MAAM,EAAE;6CAQlB;AAGK;IADL,2BAAS,CAAC,MAAM,EAAE;6CAIlB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContextFragmentA = void 0;
|
|
4
|
+
const A_Fragment_class_1 = require("../../../src/global/A-Fragment/A-Fragment.class");
|
|
5
|
+
class ContextFragmentA extends A_Fragment_class_1.A_Fragment {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.variable = 0;
|
|
9
|
+
}
|
|
10
|
+
decrement() {
|
|
11
|
+
this.variable--;
|
|
12
|
+
console.log('ContextFragmentA -> Variable decremented to: ', this.variable);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.ContextFragmentA = ContextFragmentA;
|
|
16
|
+
//# sourceMappingURL=Fragment_A.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fragment_A.context.js","sourceRoot":"","sources":["../../../../examples/simple/context/Fragment_A.context.ts"],"names":[],"mappings":";;;AAAA,0FAAiF;AAKjF,MAAa,gBAAiB,SAAQ,6BAAU;IAK5C;QACI,KAAK,EAAE,CAAC;QAHZ,aAAQ,GAAW,CAAC,CAAC;IAIrB,CAAC;IAKD,SAAS;QACL,IAAI,CAAC,QAAQ,EAAE,CAAC;QAEhB,OAAO,CAAC,GAAG,CAAC,+CAA+C,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChF,CAAC;CACJ;AAjBD,4CAiBC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContextFragmentB = void 0;
|
|
4
|
+
const A_Fragment_class_1 = require("../../../src/global/A-Fragment/A-Fragment.class");
|
|
5
|
+
class ContextFragmentB extends A_Fragment_class_1.A_Fragment {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.variable = 0;
|
|
9
|
+
}
|
|
10
|
+
increment() {
|
|
11
|
+
this.variable++;
|
|
12
|
+
console.log('ContextFragmentB -> Variable incremented to: ', this.variable);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.ContextFragmentB = ContextFragmentB;
|
|
16
|
+
//# sourceMappingURL=Fragment_B.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fragment_B.context.js","sourceRoot":"","sources":["../../../../examples/simple/context/Fragment_B.context.ts"],"names":[],"mappings":";;;AAAA,0FAAiF;AAGjF,MAAa,gBAAiB,SAAQ,6BAAU;IAI5C;QACI,KAAK,EAAE,CAAC;QAHZ,aAAQ,GAAW,CAAC,CAAC;IAIrB,CAAC;IAGD,SAAS;QACL,IAAI,CAAC,QAAQ,EAAE,CAAC;QAEhB,OAAO,CAAC,GAAG,CAAC,+CAA+C,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChF,CAAC;CAEJ;AAfD,4CAeC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTTPRequest } from "../contexts/http-request.context";
|
|
2
|
+
import { A_Logger } from "../../../src/base/A-Logger/A-Logger.component";
|
|
3
|
+
import { A_Feature } from "../../../src/global/A-Feature/A-Feature.class";
|
|
4
|
+
export declare class HTTPErrorHandler {
|
|
5
|
+
private logger;
|
|
6
|
+
constructor(logger: A_Logger);
|
|
7
|
+
onErrorPage(request: HTTPRequest, feature: A_Feature): Promise<void>;
|
|
8
|
+
onRequest(request: HTTPRequest): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
11
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.HTTPErrorHandler = void 0;
|
|
22
|
+
const A_Inject_decorator_1 = require("../../../src/decorators/A-Inject/A-Inject.decorator");
|
|
23
|
+
const http_request_context_1 = require("../contexts/http-request.context");
|
|
24
|
+
const A_Logger_component_1 = require("../../../src/base/A-Logger/A-Logger.component");
|
|
25
|
+
const http_server_container_1 = require("../containers/http-server.container");
|
|
26
|
+
const A_Feature_class_1 = require("../../../src/global/A-Feature/A-Feature.class");
|
|
27
|
+
let HTTPErrorHandler = class HTTPErrorHandler {
|
|
28
|
+
constructor(logger) {
|
|
29
|
+
this.logger = logger;
|
|
30
|
+
}
|
|
31
|
+
onErrorPage(request, feature) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
this.logger.log('HTTP Error Handler -> onErrorPage()');
|
|
34
|
+
yield feature.completed();
|
|
35
|
+
if (request.state !== 'end' && request.request.url === '/error')
|
|
36
|
+
request.end('Error Page');
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
onRequest(request) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
this.logger.log('HTTP Error Handler -> onRequest()');
|
|
42
|
+
if (request.state !== 'end')
|
|
43
|
+
request.end('Error');
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.HTTPErrorHandler = HTTPErrorHandler;
|
|
48
|
+
__decorate([
|
|
49
|
+
A_Feature_class_1.A_Feature.Extend({
|
|
50
|
+
name: 'onRequest',
|
|
51
|
+
container: http_server_container_1.HttpServer
|
|
52
|
+
}),
|
|
53
|
+
__param(0, (0, A_Inject_decorator_1.A_Inject)(http_request_context_1.HTTPRequest)),
|
|
54
|
+
__param(1, (0, A_Inject_decorator_1.A_Inject)(A_Feature_class_1.A_Feature))
|
|
55
|
+
], HTTPErrorHandler.prototype, "onErrorPage", null);
|
|
56
|
+
__decorate([
|
|
57
|
+
A_Feature_class_1.A_Feature.Extend(),
|
|
58
|
+
__param(0, (0, A_Inject_decorator_1.A_Inject)(http_request_context_1.HTTPRequest))
|
|
59
|
+
], HTTPErrorHandler.prototype, "onRequest", null);
|
|
60
|
+
exports.HTTPErrorHandler = HTTPErrorHandler = __decorate([
|
|
61
|
+
__param(0, (0, A_Inject_decorator_1.A_Inject)(A_Logger_component_1.A_Logger))
|
|
62
|
+
], HTTPErrorHandler);
|
|
63
|
+
//# sourceMappingURL=http-error-handler.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-error-handler.component.js","sourceRoot":"","sources":["../../../../examples/simple-http-server/components/http-error-handler.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gGAAmF;AACnF,2EAA+D;AAC/D,0FAA6E;AAC7E,+EAAiE;AACjE,uFAA8E;AAGvE,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAEzB,YACgC,MAAgB;QAAhB,WAAM,GAAN,MAAM,CAAU;IAC5C,CAAC;IAQC,WAAW,CACU,OAAoB,EACtB,OAAkB;;YAEvC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;YAEvD,MAAM,OAAO,CAAC,SAAS,EAAE,CAAC;YAE1B,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,KAAK,QAAQ;gBAC3D,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAElC,CAAC;KAAA;IAKK,SAAS,CACY,OAAoB;;YAE3C,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;YAErD,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK;gBACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC7B,CAAC;KAAA;CACJ,CAAA;AApCY,4CAAgB;AAYnB;IAJL,2BAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kCAAU;KACxB,CAAC;IAEG,WAAA,IAAA,6BAAQ,EAAC,kCAAW,CAAC,CAAA;IACrB,WAAA,IAAA,6BAAQ,EAAC,2BAAS,CAAC,CAAA;mDASvB;AAKK;IADL,2BAAS,CAAC,MAAM,EAAE;IAEd,WAAA,IAAA,6BAAQ,EAAC,kCAAW,CAAC,CAAA;iDAMzB;2BAnCQ,gBAAgB;IAGpB,WAAA,IAAA,6BAAQ,EAAC,6BAAQ,CAAC,CAAA;GAHd,gBAAgB,CAoC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-request-handler.component.js","sourceRoot":"","sources":["../../../../examples/simple-http-server/components/http-request-handler.component.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAkB;CAQ9B;AARD,gDAQC"}
|
|
@@ -9,28 +9,27 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const A_Concept_class_1 = require("../../src/global/A-Concept/A_Concept.class");
|
|
13
|
-
const http_server_container_1 = require("./containers/http-server.container");
|
|
14
|
-
const http_server_namespace_1 = require("./contexts/http-server.namespace");
|
|
15
12
|
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
|
-
const simpleConcept = new
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
})
|
|
34
|
-
|
|
13
|
+
// const simpleConcept = new A_Concept({
|
|
14
|
+
// // name: 'test-server',
|
|
15
|
+
// // // import: [
|
|
16
|
+
// // // server1,
|
|
17
|
+
// // // server2
|
|
18
|
+
// // // ],
|
|
19
|
+
// // containers: [
|
|
20
|
+
// // new DefaultHttpServer({
|
|
21
|
+
// // components: []
|
|
22
|
+
// // })
|
|
23
|
+
// // ],
|
|
24
|
+
// // context: [
|
|
25
|
+
// // new HttpServer({
|
|
26
|
+
// // port: 3000
|
|
27
|
+
// // }),
|
|
28
|
+
// // new HttpServer({
|
|
29
|
+
// // port: 3001
|
|
30
|
+
// // })
|
|
31
|
+
// // ],
|
|
32
|
+
// })
|
|
33
|
+
// await simpleConcept.run();
|
|
35
34
|
}))();
|
|
36
35
|
//# sourceMappingURL=concept.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concept.js","sourceRoot":"","sources":["../../../examples/simple-http-server/concept.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"concept.js","sourceRoot":"","sources":["../../../examples/simple-http-server/concept.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,CAAC,GAAS,EAAE;IACR,wCAAwC;IACxC,8BAA8B;IAC9B,sBAAsB;IACtB,yBAAyB;IACzB,wBAAwB;IACxB,eAAe;IACf,uBAAuB;IACvB,qCAAqC;IACrC,gCAAgC;IAChC,gBAAgB;IAChB,YAAY;IACZ,oBAAoB;IACpB,8BAA8B;IAC9B,4BAA4B;IAC5B,iBAAiB;IACjB,8BAA8B;IAC9B,4BAA4B;IAC5B,gBAAgB;IAChB,YAAY;IACZ,KAAK;IAIL,6BAA6B;AAEjC,CAAC,CAAA,CAAC,EAAE,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { A_Container } from "../../../src/global/A-Container/A-Container.class";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { A_Config } from "src/containers/A-Config/A-Config.namespace";
|
|
7
|
-
export declare class DefaultHttpServer extends A_Container<HttpServer> {
|
|
2
|
+
import { IncomingMessage, Server, ServerResponse } from "http";
|
|
3
|
+
import { A_Config } from "../../../src/base/A-Config/A-Config.context";
|
|
4
|
+
import { A_Feature } from "../../../src/global/A-Feature/A-Feature.class";
|
|
5
|
+
export declare class HttpServer extends A_Container<['start', 'stop', 'onRequest']> {
|
|
8
6
|
server: Server;
|
|
9
7
|
port: number;
|
|
10
|
-
create(
|
|
11
|
-
run(
|
|
8
|
+
create(config: A_Config<'PORT'>): Promise<void>;
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
onRequest(req: IncomingMessage, res: ServerResponse): Promise<A_Feature>;
|
|
11
|
+
stop(): Promise<void>;
|
|
12
12
|
}
|