@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
|
@@ -7,7 +7,11 @@ import {
|
|
|
7
7
|
} from "../A-Component/A-Component.types";
|
|
8
8
|
import { A_Component } from "../A-Component/A-Component.class";
|
|
9
9
|
import { A_Entity } from "../A-Entity/A-Entity.class";
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
A_TYPES__A_InjectDecorator_EntityInjectionInstructions,
|
|
12
|
+
A_TYPES__A_InjectDecorator_Injectable
|
|
13
|
+
} from "@adaas/a-concept/decorators/A-Inject/A-Inject.decorator.types";
|
|
14
|
+
|
|
11
15
|
|
|
12
16
|
/**
|
|
13
17
|
*
|
|
@@ -24,13 +28,13 @@ import { A_TYPES__A_InjectDecorator_EntityInjectionInstructions, A_TYPES__A_Inje
|
|
|
24
28
|
*/
|
|
25
29
|
export class A_Scope {
|
|
26
30
|
|
|
27
|
-
name: string = '';
|
|
31
|
+
readonly name: string = '';
|
|
28
32
|
|
|
29
33
|
private _components: WeakMap<typeof A_Component.constructor, any> = new WeakMap();
|
|
30
34
|
private _fragments: WeakMap<typeof A_Fragment.constructor, any> = new WeakMap();
|
|
31
35
|
private _entities: Map<string, A_Entity> = new Map();
|
|
32
36
|
|
|
33
|
-
private
|
|
37
|
+
private _parent?: A_Scope;
|
|
34
38
|
|
|
35
39
|
protected params!: A_TYPES__ScopeConstructor
|
|
36
40
|
|
|
@@ -46,8 +50,9 @@ export class A_Scope {
|
|
|
46
50
|
name: '',
|
|
47
51
|
components: [],
|
|
48
52
|
fragments: [],
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
entities: [],
|
|
54
|
+
// import: [],
|
|
55
|
+
// export: [],
|
|
51
56
|
};
|
|
52
57
|
|
|
53
58
|
|
|
@@ -58,9 +63,10 @@ export class A_Scope {
|
|
|
58
63
|
|
|
59
64
|
this.initComponents(params.components || []);
|
|
60
65
|
this.initFragments(params.fragments || []);
|
|
66
|
+
this.initEntities(params.entities || []);
|
|
61
67
|
|
|
62
68
|
if (config.parent) {
|
|
63
|
-
this.
|
|
69
|
+
this._parent = config.parent;
|
|
64
70
|
}
|
|
65
71
|
}
|
|
66
72
|
|
|
@@ -90,6 +96,19 @@ export class A_Scope {
|
|
|
90
96
|
}
|
|
91
97
|
|
|
92
98
|
|
|
99
|
+
parent(setValue: A_Scope): void
|
|
100
|
+
parent(): A_Scope
|
|
101
|
+
parent(
|
|
102
|
+
setValue?: A_Scope
|
|
103
|
+
): A_Scope | undefined {
|
|
104
|
+
if (setValue) {
|
|
105
|
+
this._parent = setValue;
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return this._parent;
|
|
110
|
+
}
|
|
111
|
+
|
|
93
112
|
|
|
94
113
|
/**
|
|
95
114
|
* This method is used to check if the component is available in the scope
|
|
@@ -116,8 +135,8 @@ export class A_Scope {
|
|
|
116
135
|
case A_CommonHelper.isInheritedFrom(entity, A_Component): {
|
|
117
136
|
const found = this.params.components.includes(entity as { new(...args: any[]): A_Component });
|
|
118
137
|
|
|
119
|
-
if (!found && !!this.
|
|
120
|
-
return this.
|
|
138
|
+
if (!found && !!this._parent)
|
|
139
|
+
return this._parent.has(entity as any);
|
|
121
140
|
|
|
122
141
|
return found;
|
|
123
142
|
}
|
|
@@ -133,8 +152,8 @@ export class A_Scope {
|
|
|
133
152
|
case A_CommonHelper.isInheritedFrom(entity, A_Fragment): {
|
|
134
153
|
const found = this._fragments.has(entity);
|
|
135
154
|
|
|
136
|
-
if (!found && !!this.
|
|
137
|
-
return this.
|
|
155
|
+
if (!found && !!this._parent)
|
|
156
|
+
return this._parent.has(entity as any);
|
|
138
157
|
|
|
139
158
|
return found;
|
|
140
159
|
}
|
|
@@ -198,6 +217,8 @@ export class A_Scope {
|
|
|
198
217
|
component: T,
|
|
199
218
|
instructions?: Partial<A_TYPES__A_InjectDecorator_EntityInjectionInstructions>
|
|
200
219
|
): InstanceType<T> {
|
|
220
|
+
|
|
221
|
+
|
|
201
222
|
switch (true) {
|
|
202
223
|
case A_CommonHelper.isInheritedFrom(component, A_Entity): {
|
|
203
224
|
return this.resolveEntity(component as typeof A_Entity, instructions) as InstanceType<T>;
|
|
@@ -241,8 +262,8 @@ export class A_Scope {
|
|
|
241
262
|
case !!found:
|
|
242
263
|
return found as InstanceType<T>;
|
|
243
264
|
|
|
244
|
-
case !found && !!this.
|
|
245
|
-
return this.
|
|
265
|
+
case !found && !!this._parent:
|
|
266
|
+
return this._parent.resolveEntity(entity, instructions);
|
|
246
267
|
|
|
247
268
|
default:
|
|
248
269
|
throw new Error(`Fragment ${entity.name} not found in the scope ${this.name}`);
|
|
@@ -290,8 +311,8 @@ export class A_Scope {
|
|
|
290
311
|
case fragmentInstancePresented && !this._fragments.has(fragment):
|
|
291
312
|
return this.fragments.find(fr => fr instanceof fragment) as InstanceType<T>;
|
|
292
313
|
|
|
293
|
-
case !fragmentInstancePresented && !!this.
|
|
294
|
-
return this.
|
|
314
|
+
case !fragmentInstancePresented && !!this._parent:
|
|
315
|
+
return this._parent.resolveFragment(fragment);
|
|
295
316
|
|
|
296
317
|
default:
|
|
297
318
|
throw new Error(`Fragment ${fragment.name} not found in the scope ${this.name}`);
|
|
@@ -308,11 +329,9 @@ export class A_Scope {
|
|
|
308
329
|
new(...args: any[]): T
|
|
309
330
|
}): T {
|
|
310
331
|
|
|
311
|
-
// The idea here that in case when Scope has no exact component we have to resolve it from the
|
|
312
|
-
// BUT: if it's not presented in
|
|
332
|
+
// The idea here that in case when Scope has no exact component we have to resolve it from the _parent
|
|
333
|
+
// BUT: if it's not presented in _parent we have to check for inheritance
|
|
313
334
|
// That means that we should ensure that there's no components that are children of the required component
|
|
314
|
-
|
|
315
|
-
|
|
316
335
|
switch (true) {
|
|
317
336
|
// In case when the component is available and exists in the scope
|
|
318
337
|
case this.components.includes(component) && this._components.has(component): {
|
|
@@ -352,9 +371,9 @@ export class A_Scope {
|
|
|
352
371
|
return this.resolveComponent<T>(found as any);
|
|
353
372
|
}
|
|
354
373
|
|
|
355
|
-
// In case when the component is not available in the scope but the
|
|
356
|
-
case !this.components.includes(component) && !!this.
|
|
357
|
-
return this.
|
|
374
|
+
// In case when the component is not available in the scope but the _parent is available
|
|
375
|
+
case !this.components.includes(component) && !!this._parent: {
|
|
376
|
+
return this._parent.resolveComponent(component);
|
|
358
377
|
}
|
|
359
378
|
|
|
360
379
|
default:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { A_Component } from "../A-Component/A-Component.class"
|
|
2
|
+
import { A_Entity } from "../A-Entity/A-Entity.class"
|
|
2
3
|
import { A_Fragment } from "../A-Fragment/A-Fragment.class"
|
|
3
4
|
import { A_Scope } from "./A-Scope.class"
|
|
4
5
|
|
|
@@ -18,15 +19,20 @@ export type A_TYPES__ScopeConstructor = {
|
|
|
18
19
|
*/
|
|
19
20
|
components: Array<{ new(...args: any[]): A_Component }>
|
|
20
21
|
|
|
22
|
+
/**
|
|
23
|
+
* A set of Entities available in the Scope
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
entities: Array<A_Entity>
|
|
21
27
|
|
|
22
28
|
/**
|
|
23
29
|
* A list of Features/Lifecycle Hooks available in the Scope
|
|
24
30
|
*/
|
|
25
|
-
import: Array<string>,
|
|
31
|
+
// import: Array<string>,
|
|
26
32
|
/**
|
|
27
33
|
* A list of Features/Lifecycle Hooks available to be exported from the Scope
|
|
28
34
|
*/
|
|
29
|
-
export: Array<string>
|
|
35
|
+
// export: Array<string>
|
|
30
36
|
}
|
|
31
37
|
|
|
32
38
|
|
|
@@ -5,7 +5,6 @@ import { A_TYPES__A_Stage_JSON, A_TYPES__A_Stage_Status, A_TYPES__A_StageStep }
|
|
|
5
5
|
import { A_Container } from "../A-Container/A-Container.class";
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
/**
|
|
10
9
|
* A_Stage is a set of A_Functions within A_Feature that should be run in a specific order.
|
|
11
10
|
* Each stage may contain one or more functions.
|
|
@@ -53,21 +52,20 @@ export class A_Stage {
|
|
|
53
52
|
* @returns
|
|
54
53
|
*/
|
|
55
54
|
protected async getStepArgs(step: A_TYPES__A_StageStep) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
step.handler
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
);
|
|
55
|
+
return Promise
|
|
56
|
+
.all(A_Context
|
|
57
|
+
.meta(
|
|
58
|
+
step.component instanceof A_Container
|
|
59
|
+
? step.component.constructor
|
|
60
|
+
: step.component
|
|
61
|
+
)
|
|
62
|
+
.injections(step.handler)
|
|
63
|
+
.map(async arg =>
|
|
64
|
+
// In case if the target is a feature step then pass the current feature
|
|
65
|
+
A_CommonHelper.isInheritedFrom(arg.target, A_Feature)
|
|
66
|
+
? this.feature
|
|
67
|
+
: A_Context.scope(this.feature).resolve(arg.target)
|
|
68
|
+
));
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
|
|
@@ -95,6 +93,7 @@ export class A_Stage {
|
|
|
95
93
|
protected getStepInstance(step: A_TYPES__A_StageStep) {
|
|
96
94
|
const { component, handler } = step;
|
|
97
95
|
|
|
96
|
+
|
|
98
97
|
// TODO: probably would be better to do it another way. let's think about it
|
|
99
98
|
const instance = component instanceof A_Container
|
|
100
99
|
? component
|
|
@@ -117,11 +116,12 @@ export class A_Stage {
|
|
|
117
116
|
* @param step
|
|
118
117
|
* @returns
|
|
119
118
|
*/
|
|
120
|
-
protected async
|
|
119
|
+
protected async callStepHandler(step: A_TYPES__A_StageStep) {
|
|
121
120
|
|
|
122
|
-
const instance = this.getStepInstance(step);
|
|
121
|
+
const instance = await this.getStepInstance(step);
|
|
123
122
|
const callArgs = await this.getStepArgs(step);
|
|
124
123
|
|
|
124
|
+
|
|
125
125
|
return instance[step.handler](...callArgs);
|
|
126
126
|
|
|
127
127
|
}
|
|
@@ -148,14 +148,14 @@ export class A_Stage {
|
|
|
148
148
|
.all([
|
|
149
149
|
|
|
150
150
|
// Run async steps that are independent of each other
|
|
151
|
-
...asyncSteps.map(step => this.
|
|
151
|
+
...asyncSteps.map(step => this.callStepHandler(step)),
|
|
152
152
|
|
|
153
153
|
// Run sync steps that are dependent on each other
|
|
154
154
|
new Promise<void>(
|
|
155
155
|
async (r, j) => {
|
|
156
156
|
try {
|
|
157
157
|
for (const step of syncSteps) {
|
|
158
|
-
await this.
|
|
158
|
+
await this.callStepHandler(step);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
return r();
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { A_TYPES__A_InjectDecorator_Meta } from "@adaas/a-concept/decorators/A-Inject/A-Inject.decorator.types"
|
|
2
1
|
import { A_Component } from "../A-Component/A-Component.class"
|
|
3
2
|
import { A_Container } from "../A-Container/A-Container.class"
|
|
4
|
-
import { A_TYPES__A_ExtendDecorator_BehaviorConfig
|
|
3
|
+
import { A_TYPES__A_ExtendDecorator_BehaviorConfig } from "@adaas/a-concept/decorators/A-Feature/A-Feature.decorator.types"
|
|
5
4
|
|
|
6
5
|
|
|
7
6
|
|
|
@@ -66,7 +65,7 @@ export type A_TYPES__A_StageStep = {
|
|
|
66
65
|
/**
|
|
67
66
|
* The component to be called
|
|
68
67
|
*/
|
|
69
|
-
component: typeof A_Component
|
|
68
|
+
component: typeof A_Component | A_Container
|
|
70
69
|
|
|
71
70
|
/**
|
|
72
71
|
* The method to be called on the component
|
|
@@ -17,11 +17,16 @@ export class StepsManager {
|
|
|
17
17
|
this.visited = new Set();
|
|
18
18
|
this.tempMark = new Set();
|
|
19
19
|
this.sortedEntities = [];
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
private ID(step: A_TYPES__A_StageStep) {
|
|
24
|
+
return `${step.component.name}.${step.handler}`;
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
private buildGraph() {
|
|
23
28
|
// Initialize graph nodes
|
|
24
|
-
this.entities.forEach(entity => this.graph.set(entity
|
|
29
|
+
this.entities.forEach(entity => this.graph.set(this.ID(entity), new Set()));
|
|
25
30
|
|
|
26
31
|
// Add directed edges based on 'before' and 'after'
|
|
27
32
|
this.entities.forEach(entity => {
|
|
@@ -51,8 +56,8 @@ export class StepsManager {
|
|
|
51
56
|
private matchEntities(pattern) {
|
|
52
57
|
const regex = new RegExp(`^${pattern}$`);
|
|
53
58
|
return this.entities
|
|
54
|
-
.filter(entity => regex.test(entity
|
|
55
|
-
.map(entity => entity
|
|
59
|
+
.filter(entity => regex.test(this.ID(entity)))
|
|
60
|
+
.map(entity => this.ID(entity));
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
// Topological sort with cycle detection
|
|
@@ -74,16 +79,15 @@ export class StepsManager {
|
|
|
74
79
|
|
|
75
80
|
// Start topological sort
|
|
76
81
|
this.entities.forEach(entity => {
|
|
77
|
-
if (!this.visited.has(entity
|
|
82
|
+
if (!this.visited.has(this.ID(entity))) this.visit(this.ID(entity));
|
|
78
83
|
});
|
|
79
84
|
|
|
80
85
|
const stages: A_Stage[] = [];
|
|
81
86
|
|
|
82
87
|
// Map sorted names back to entity objects
|
|
83
88
|
this.sortedEntities
|
|
84
|
-
.map(
|
|
85
|
-
|
|
86
|
-
const step = this.entities.find(entity => entity.name === name)!;
|
|
89
|
+
.map(id => {
|
|
90
|
+
const step = this.entities.find(entity => this.ID(entity) === id)!;
|
|
87
91
|
|
|
88
92
|
let stage = stages.find(stage => {
|
|
89
93
|
return stage.after.every(after => step.after.includes(after))
|
package/trace-require.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const Module = require("module");
|
|
2
|
+
const path = require("path");
|
|
3
|
+
|
|
4
|
+
// Colors (ANSI escape codes)
|
|
5
|
+
const colors = {
|
|
6
|
+
reset: "\x1b[0m",
|
|
7
|
+
gray: "\x1b[90m",
|
|
8
|
+
green: "\x1b[32m",
|
|
9
|
+
cyan: "\x1b[36m",
|
|
10
|
+
yellow: "\x1b[33m",
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// Indent helper
|
|
14
|
+
function indent(level) {
|
|
15
|
+
return " ".repeat(level);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const originalLoad = Module._load;
|
|
19
|
+
let stack = [];
|
|
20
|
+
|
|
21
|
+
Module._load = function (request, parent, isMain) {
|
|
22
|
+
const resolved = Module._resolveFilename(request, parent);
|
|
23
|
+
const parentFile = parent && parent.filename ? parent.filename : "<root>";
|
|
24
|
+
const depth = stack.length;
|
|
25
|
+
|
|
26
|
+
let color = colors.gray;
|
|
27
|
+
let label = resolved;
|
|
28
|
+
|
|
29
|
+
if (resolved.includes("/src/")) {
|
|
30
|
+
color = colors.green; // project source
|
|
31
|
+
label = path.relative(process.cwd(), resolved);
|
|
32
|
+
} else if (resolved.includes("node_modules")) {
|
|
33
|
+
color = colors.cyan; // external deps
|
|
34
|
+
label = path.relative(process.cwd(), resolved);
|
|
35
|
+
} else {
|
|
36
|
+
color = colors.yellow; // stdlib / others
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
console.log(indent(depth) + color + label + colors.reset);
|
|
40
|
+
|
|
41
|
+
stack.push(resolved);
|
|
42
|
+
const result = originalLoad.apply(this, arguments);
|
|
43
|
+
stack.pop();
|
|
44
|
+
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compileOnSave": false,
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "dist",
|
|
5
|
+
"strict": true,
|
|
6
|
+
"noImplicitAny": false,
|
|
7
|
+
"noFallthroughCasesInSwitch": true,
|
|
8
|
+
"downlevelIteration": true,
|
|
9
|
+
"strictFunctionTypes": true,
|
|
10
|
+
"strictNullChecks": true,
|
|
11
|
+
"strictPropertyInitialization": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"noErrorTruncation": true,
|
|
15
|
+
"jsx": "react",
|
|
16
|
+
"target": "es2015",
|
|
17
|
+
"module": "commonjs",
|
|
18
|
+
"moduleResolution": "node",
|
|
19
|
+
"allowSyntheticDefaultImports": true,
|
|
20
|
+
"esModuleInterop": true,
|
|
21
|
+
"noUnusedLocals": false,
|
|
22
|
+
"noUnusedParameters": false,
|
|
23
|
+
"removeComments": false,
|
|
24
|
+
"preserveConstEnums": true,
|
|
25
|
+
"sourceMap": true,
|
|
26
|
+
"baseUrl": ".",
|
|
27
|
+
"experimentalDecorators": true,
|
|
28
|
+
"skipLibCheck": true,
|
|
29
|
+
"typeRoots": [
|
|
30
|
+
"node_modules/@types"
|
|
31
|
+
],
|
|
32
|
+
"paths": {
|
|
33
|
+
"@adaas/a-concept/constants/*": ["src/constants/*"],
|
|
34
|
+
"@adaas/a-concept/global/*": ["src/global/*"],
|
|
35
|
+
"@adaas/a-concept/types/*": ["src/types/*"],
|
|
36
|
+
"@adaas/a-concept/helpers/*": ["src/helpers/*"],
|
|
37
|
+
"@adaas/a-concept/decorators/*": ["src/decorators/*"],
|
|
38
|
+
"@adaas/a-concept/base/*": ["src/base/*"]
|
|
39
|
+
},
|
|
40
|
+
"lib": [
|
|
41
|
+
"dom",
|
|
42
|
+
"esnext.asynciterable",
|
|
43
|
+
"es2015",
|
|
44
|
+
"es2016",
|
|
45
|
+
"es2017.object"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"include": [
|
|
49
|
+
"src/**/*",
|
|
50
|
+
"index.ts"
|
|
51
|
+
],
|
|
52
|
+
"exclude": [
|
|
53
|
+
"node_modules/**/*",
|
|
54
|
+
"dist/**/*",
|
|
55
|
+
"node_modules/@types/mocha/index.d.ts"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestChannel = void 0;
|
|
4
|
-
const A_Channel_class_1 = require("../../../src/global/A-Channel/A-Channel.class");
|
|
5
|
-
class TestChannel extends A_Channel_class_1.A_Channel {
|
|
6
|
-
getVersion(params) {
|
|
7
|
-
}
|
|
8
|
-
getUser() {
|
|
9
|
-
}
|
|
10
|
-
getPage() {
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.TestChannel = TestChannel;
|
|
14
|
-
//# sourceMappingURL=Test.channel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Test.channel.js","sourceRoot":"","sources":["../../../../examples/fe-be/channels/Test.channel.ts"],"names":[],"mappings":";;;AAAA,uFAA8E;AAG9E,MAAa,WAAY,SAAQ,2BAAc;IAG3C,UAAU,CACN,MAAM;IAGV,CAAC;IAGD,OAAO;IAEP,CAAC;IAGD,OAAO;IACP,CAAC;CAIJ;AApBD,kCAoBC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.BEController = void 0;
|
|
10
|
-
const A_Component_class_1 = require("../../../src/global/A-Component/A-Component.class");
|
|
11
|
-
const A_Feature_class_1 = require("../../../src/global/A-Feature/A-Feature.class");
|
|
12
|
-
class BEController extends A_Component_class_1.A_Component {
|
|
13
|
-
getOrdersCount() {
|
|
14
|
-
return 0;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.BEController = BEController;
|
|
18
|
-
__decorate([
|
|
19
|
-
A_Feature_class_1.A_Feature.Define({
|
|
20
|
-
name: 'getOrdersCount',
|
|
21
|
-
// channel
|
|
22
|
-
})
|
|
23
|
-
], BEController.prototype, "getOrdersCount", null);
|
|
24
|
-
//# sourceMappingURL=BE-Controller.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BE-Controller.component.js","sourceRoot":"","sources":["../../../../examples/fe-be/components/BE-Controller.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6FAAoF;AACpF,uFAA8E;AAI9E,MAAa,YAAa,SAAQ,+BAAW;IAQzC,cAAc;QAEV,OAAO,CAAC,CAAC;IACb,CAAC;CAGJ;AAdD,oCAcC;AANG;IAJC,2BAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,gBAAgB;QACtB,UAAU;KACb,CAAC;kDAID"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.FEComponent = void 0;
|
|
19
|
-
const A_Component_class_1 = require("../../../src/global/A-Component/A-Component.class");
|
|
20
|
-
const A_Concept_class_1 = require("../../../src/global/A-Concept/A_Concept.class");
|
|
21
|
-
class FEComponent extends A_Component_class_1.A_Component {
|
|
22
|
-
renderHomePage() {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.FEComponent = FEComponent;
|
|
28
|
-
__decorate([
|
|
29
|
-
A_Concept_class_1.A_Concept.Load()
|
|
30
|
-
], FEComponent.prototype, "renderHomePage", null);
|
|
31
|
-
//# sourceMappingURL=FE.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FE.component.js","sourceRoot":"","sources":["../../../../examples/fe-be/components/FE.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,6FAAoF;AACpF,uFAA8E;AAI9E,MAAa,WAAY,SAAQ,+BAAW;IAIlC,cAAc;;QAEpB,CAAC;KAAA;CACJ;AAPD,kCAOC;AAHS;IADL,2BAAS,CAAC,IAAI,EAAE;iDAGhB"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UserActions = void 0;
|
|
13
|
-
const A_Inject_decorator_1 = require("../../../src/decorators/A-Inject/A-Inject.decorator");
|
|
14
|
-
const A_Channel_class_1 = require("../../../src/global/A-Channel/A-Channel.class");
|
|
15
|
-
const A_Component_class_1 = require("../../../src/global/A-Component/A-Component.class");
|
|
16
|
-
class UserActions extends A_Component_class_1.A_Component {
|
|
17
|
-
getUserDetails(channel) {
|
|
18
|
-
channel.call('');
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.UserActions = UserActions;
|
|
22
|
-
__decorate([
|
|
23
|
-
__param(0, (0, A_Inject_decorator_1.A_Inject)(A_Channel_class_1.A_Channel))
|
|
24
|
-
], UserActions.prototype, "getUserDetails", null);
|
|
25
|
-
//# sourceMappingURL=UserActions.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserActions.component.js","sourceRoot":"","sources":["../../../../examples/fe-be/components/UserActions.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAAmF;AACnF,uFAA8E;AAC9E,6FAAoF;AAIpF,MAAa,WAAY,SAAQ,+BAAW;IAExC,cAAc,CACW,OAAuB;QAE5C,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACpB,CAAC;CACJ;AAPD,kCAOC;AALG;IACK,WAAA,IAAA,6BAAQ,EAAC,2BAAS,CAAC,CAAA;iDAGvB"}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"concept.js","sourceRoot":"","sources":["../../../examples/fe-be/concept.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServerApp = void 0;
|
|
4
|
-
const A_Container_class_1 = require("../../../src/global/A-Container/A-Container.class");
|
|
5
|
-
class ServerApp extends A_Container_class_1.A_Container {
|
|
6
|
-
}
|
|
7
|
-
exports.ServerApp = ServerApp;
|
|
8
|
-
//# sourceMappingURL=ServerApp.container.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServerApp.container.js","sourceRoot":"","sources":["../../../../examples/fe-be/containers/ServerApp.container.ts"],"names":[],"mappings":";;;AAAA,6FAAoF;AAGpF,MAAa,SAAU,SAAQ,+BAAW;CAIzC;AAJD,8BAIC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebApp = void 0;
|
|
4
|
-
const A_Container_class_1 = require("../../../src/global/A-Container/A-Container.class");
|
|
5
|
-
class WebApp extends A_Container_class_1.A_Container {
|
|
6
|
-
}
|
|
7
|
-
exports.WebApp = WebApp;
|
|
8
|
-
//# sourceMappingURL=WebApp.container.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebApp.container.js","sourceRoot":"","sources":["../../../../examples/fe-be/containers/WebApp.container.ts"],"names":[],"mappings":";;;AAAA,6FAAoF;AAIpF,MAAa,MAAO,SAAQ,+BAAW;CAQtC;AARD,wBAQC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { A_Channel } from "../../../src/global/A-Channel/A-Channel.class";
|
|
2
|
-
import { A_TYPES__A_ChannelAggregateMethods, A_TYPES__A_ChannelCallParams } from "../../../src/global/A-Channel/A-Channel.types";
|
|
3
|
-
import { A_Container } from "../../../src/global/A-Container/A-Container.class";
|
|
4
|
-
export declare class DirectChannel<T extends A_Container<any>> extends A_Channel<[T]> {
|
|
5
|
-
container: T;
|
|
6
|
-
protected instance: T;
|
|
7
|
-
constructor(container: T);
|
|
8
|
-
call<_Resp extends unknown>(prop: A_TYPES__A_ChannelAggregateMethods<[T]>, params?: Partial<A_TYPES__A_ChannelCallParams>): Promise<_Resp>;
|
|
9
|
-
}
|