@adaas/a-concept 0.2.14 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/.conf/tsconfig.base.json +91 -0
  2. package/.conf/tsconfig.browser.json +36 -0
  3. package/.conf/tsconfig.node.json +40 -0
  4. package/dist/browser/index.d.mts +4166 -212
  5. package/dist/browser/index.mjs +2 -67
  6. package/dist/browser/index.mjs.map +1 -1
  7. package/dist/node/index.cjs +5757 -383
  8. package/dist/node/index.cjs.map +1 -1
  9. package/dist/node/index.d.mts +4193 -212
  10. package/dist/node/index.d.ts +4193 -212
  11. package/dist/node/index.mjs +5699 -66
  12. package/dist/node/index.mjs.map +1 -1
  13. package/jest.config.ts +30 -15
  14. package/package.json +19 -16
  15. package/src/env/env-browser.ts +38 -1
  16. package/src/env/env-node.ts +26 -2
  17. package/src/env/env.base.ts +20 -1
  18. package/src/env/global.browser.d.ts +1 -1
  19. package/src/helpers/A_BasicTypeGuards.helper.ts +81 -0
  20. package/src/helpers/A_Common.helper.ts +2 -2
  21. package/src/helpers/A_Identity.helper.ts +2 -4
  22. package/src/helpers/A_TypeGuards.helper.ts +45 -30
  23. package/src/helpers/index.ts +5 -0
  24. package/src/index.ts +21 -94
  25. package/src/{global → lib}/A-Abstraction/A-Abstraction-Extend.decorator.ts +18 -13
  26. package/src/{global → lib}/A-Abstraction/A-Abstraction.class.ts +5 -5
  27. package/src/{global → lib}/A-Abstraction/A-Abstraction.error.ts +1 -1
  28. package/src/{global → lib}/A-Abstraction/A-Abstraction.types.ts +5 -5
  29. package/src/lib/A-Abstraction/index.ts +8 -0
  30. package/src/{global → lib}/A-Caller/A_Caller.class.ts +3 -4
  31. package/src/{global → lib}/A-Caller/A_Caller.error.ts +1 -4
  32. package/src/{global → lib}/A-Caller/A_Caller.types.ts +4 -4
  33. package/src/lib/A-Caller/index.ts +3 -0
  34. package/src/{global → lib}/A-Component/A-Component.class.ts +2 -3
  35. package/src/{global → lib}/A-Component/A-Component.meta.ts +5 -5
  36. package/src/{global → lib}/A-Component/A-Component.types.ts +5 -5
  37. package/src/lib/A-Component/index.ts +5 -0
  38. package/src/{global → lib}/A-Concept/A-Concept.class.ts +9 -7
  39. package/src/{global → lib}/A-Concept/A-Concept.meta.ts +2 -2
  40. package/src/{global → lib}/A-Concept/A-Concept.types.ts +7 -7
  41. package/src/lib/A-Concept/index.ts +4 -0
  42. package/src/{global → lib}/A-Container/A-Container.class.ts +3 -3
  43. package/src/{global → lib}/A-Container/A-Container.meta.ts +11 -6
  44. package/src/{global → lib}/A-Container/A-Container.types.ts +9 -6
  45. package/src/lib/A-Container/index.ts +5 -0
  46. package/src/{global → lib}/A-Context/A-Context.class.ts +41 -33
  47. package/src/{global → lib}/A-Context/A-Context.error.ts +1 -1
  48. package/src/lib/A-Context/A-Context.types.ts +14 -0
  49. package/src/lib/A-Context/index.ts +5 -0
  50. package/src/{global → lib}/A-Dependency/A-Dependency-All.decorator.ts +11 -11
  51. package/src/{global → lib}/A-Dependency/A-Dependency-Default.decorator.ts +11 -9
  52. package/src/{global → lib}/A-Dependency/A-Dependency-Flat.decorator.ts +11 -8
  53. package/src/{global → lib}/A-Dependency/A-Dependency-Load.decorator.ts +11 -9
  54. package/src/{global → lib}/A-Dependency/A-Dependency-Parent.decorator.ts +11 -9
  55. package/src/{global → lib}/A-Dependency/A-Dependency-Require.decorator.ts +11 -9
  56. package/src/{global → lib}/A-Dependency/A-Dependency.class.ts +9 -3
  57. package/src/{global → lib}/A-Dependency/A-Dependency.error.ts +1 -1
  58. package/src/{global → lib}/A-Dependency/A-Dependency.types.ts +9 -9
  59. package/src/lib/A-Dependency/index.ts +17 -0
  60. package/src/{global → lib}/A-Entity/A-Entity.class.ts +11 -9
  61. package/src/{global → lib}/A-Entity/A-Entity.error.ts +1 -1
  62. package/src/{global → lib}/A-Entity/A-Entity.meta.ts +3 -3
  63. package/src/{global → lib}/A-Entity/A-Entity.types.ts +5 -5
  64. package/src/lib/A-Entity/index.ts +5 -0
  65. package/src/{global → lib}/A-Error/A_Error.class.ts +13 -13
  66. package/src/{global → lib}/A-Error/A_Error.types.ts +2 -2
  67. package/src/lib/A-Error/index.ts +3 -0
  68. package/src/{global → lib}/A-Feature/A-Feature-Define.decorator.ts +16 -10
  69. package/src/{global → lib}/A-Feature/A-Feature-Extend.decorator.ts +13 -9
  70. package/src/{global → lib}/A-Feature/A-Feature.class.ts +15 -13
  71. package/src/{global → lib}/A-Feature/A-Feature.error.ts +2 -2
  72. package/src/{global → lib}/A-Feature/A-Feature.types.ts +21 -12
  73. package/src/lib/A-Feature/index.ts +13 -0
  74. package/src/{global → lib}/A-Fragment/A-Fragment.class.ts +0 -2
  75. package/src/{global → lib}/A-Fragment/A-Fragment.types.ts +1 -1
  76. package/src/lib/A-Fragment/index.ts +5 -0
  77. package/src/{global → lib}/A-Inject/A-Inject.decorator.ts +42 -24
  78. package/src/{global → lib}/A-Inject/A-Inject.error.ts +1 -1
  79. package/src/{global → lib}/A-Inject/A-Inject.types.ts +3 -9
  80. package/src/lib/A-Inject/index.ts +3 -0
  81. package/src/{global → lib}/A-Meta/A-Meta.decorator.ts +2 -2
  82. package/src/{global → lib}/A-Meta/A-Meta.types.ts +18 -10
  83. package/src/lib/A-Meta/index.ts +11 -0
  84. package/src/{global → lib}/A-Scope/A-Scope.class.ts +34 -24
  85. package/src/{global → lib}/A-Scope/A-Scope.error.ts +1 -1
  86. package/src/{global → lib}/A-Scope/A-Scope.types.ts +22 -14
  87. package/src/lib/A-Scope/index.ts +5 -0
  88. package/src/{global → lib}/A-Stage/A-Stage.class.ts +9 -10
  89. package/src/{global → lib}/A-Stage/A-Stage.error.ts +1 -1
  90. package/src/{global → lib}/A-Stage/A-Stage.types.ts +1 -4
  91. package/src/lib/A-Stage/index.ts +5 -0
  92. package/src/{global → lib}/A-StepManager/A-StepManager.class.ts +8 -4
  93. package/src/{global → lib}/A-StepManager/A-StepManager.error.ts +1 -1
  94. package/src/lib/A-StepManager/index.ts +4 -0
  95. package/src/{global → lib}/ASEID/ASEID.class.ts +20 -23
  96. package/src/lib/ASEID/ASEID.error.ts +12 -0
  97. package/src/lib/ASEID/index.ts +4 -0
  98. package/src/types/A_identity.types.ts +4 -0
  99. package/src/types/index.ts +2 -0
  100. package/tests/A-Abstraction.test.ts +6 -6
  101. package/tests/A-Common.test.ts +6 -4
  102. package/tests/A-Component.test.ts +7 -5
  103. package/tests/A-Concept.test.ts +13 -11
  104. package/tests/A-Container.test.ts +4 -3
  105. package/tests/A-Dependency.test.ts +6 -1
  106. package/tests/A-Entity.test.ts +7 -5
  107. package/tests/A-Error.test.ts +7 -4
  108. package/tests/A-Feature.test.ts +12 -8
  109. package/tests/A-Fragment.test.ts +1 -2
  110. package/tests/A-Inject.test.ts +4 -1
  111. package/tests/A-Meta.test.ts +12 -10
  112. package/tests/A-Scope.test.ts +11 -10
  113. package/tests/A-StepManager.test.ts +3 -3
  114. package/tests/ASEID.test.ts +2 -2
  115. package/tests/jest.setup.ts +23 -23
  116. package/tsconfig.json +59 -97
  117. package/tsup.config.ts +18 -13
  118. package/dist/browser/A-Context.types-BtR_HJ0j.d.mts +0 -3828
  119. package/dist/browser/env.d.mts +0 -64
  120. package/dist/browser/env.mjs +0 -3
  121. package/dist/browser/env.mjs.map +0 -1
  122. package/dist/node/A-Context.types-BtR_HJ0j.d.mts +0 -3828
  123. package/dist/node/A-Context.types-BtR_HJ0j.d.ts +0 -3828
  124. package/dist/node/env.cjs +0 -12
  125. package/dist/node/env.cjs.map +0 -1
  126. package/dist/node/env.d.mts +0 -91
  127. package/dist/node/env.d.ts +0 -91
  128. package/dist/node/env.js +0 -12
  129. package/dist/node/env.js.map +0 -1
  130. package/dist/node/env.mjs +0 -3
  131. package/dist/node/env.mjs.map +0 -1
  132. package/dist/node/index.js +0 -387
  133. package/dist/node/index.js.map +0 -1
  134. package/src/global/A-Context/A-Context.types.ts +0 -14
  135. package/src/global/ASEID/ASEID.error.ts +0 -12
  136. /package/src/{global → lib}/A-Component/A-Component.constants.ts +0 -0
  137. /package/src/{global → lib}/A-Concept/A-Concept.constants.ts +0 -0
  138. /package/src/{global → lib}/A-Container/A-Container.constants.ts +0 -0
  139. /package/src/{global → lib}/A-Entity/A-Entity.constants.ts +0 -0
  140. /package/src/{global → lib}/A-Error/A_Error.constants.ts +0 -0
  141. /package/src/{global → lib}/A-Meta/A-Meta.class.ts +0 -0
  142. /package/src/{global → lib}/ASEID/ASEID.constants.ts +0 -0
  143. /package/src/{global → lib}/ASEID/ASEID.types.ts +0 -0
@@ -0,0 +1,8 @@
1
+ export { A_Abstraction } from './A-Abstraction.class';
2
+ export { A_AbstractionError } from './A-Abstraction.error';
3
+ export * from './A-Abstraction.types';
4
+
5
+ // --------------------------------------------------------
6
+ // -----------------------Decorators-----------------------
7
+ // --------------------------------------------------------
8
+ export { A_Abstraction_Extend } from './A-Abstraction-Extend.decorator';
@@ -1,5 +1,5 @@
1
- import { A_TypeGuards } from "@adaas/a-concept/helpers/A_TypeGuards.helper";
2
- import { A_TYPES__FeatureAvailableComponents } from "../A-Feature/A-Feature.types";
1
+ import { A_TypeGuards} from "@adaas/a-concept/helpers/A_TypeGuards.helper";
2
+ import { A_TYPES__FeatureAvailableComponents } from "@adaas/a-concept/a-feature";
3
3
  import { A_CallerError } from "./A_Caller.error";
4
4
 
5
5
 
@@ -53,8 +53,7 @@ export class A_Caller<T extends A_TYPES__FeatureAvailableComponents = A_TYPES__F
53
53
  ) {
54
54
  if (!A_TypeGuards.isAllowedForFeatureCall(component)) {
55
55
  throw new A_CallerError(
56
- A_CallerError.CallerInitializationError,
57
- `Invalid A-Caller component provided of type: ${typeof component} with value: ${JSON.stringify(component).slice(0, 100)}...`
56
+ `[${A_CallerError.CallerInitializationError}]: Invalid A-Caller component provided of type: ${typeof component} with value: ${JSON.stringify(component).slice(0, 100)}...`
58
57
  );
59
58
  }
60
59
  }
@@ -1,7 +1,4 @@
1
- import { A_Error } from "../A-Error/A_Error.class";
2
-
3
-
4
- export class A_CallerError extends A_Error {
1
+ export class A_CallerError extends Error {
5
2
 
6
3
  /**
7
4
  * This error code indicates that there was an issue initializing the A-Caller
@@ -1,7 +1,7 @@
1
- import { A_TYPES__Ctor } from "@adaas/a-concept/types/A_Common.types";
2
- import { A_Component } from "../A-Component/A-Component.class";
3
- import { A_Container } from "../A-Container/A-Container.class";
4
- import { A_Entity } from "../A-Entity/A-Entity.class";
1
+ import { A_TYPES__Ctor } from "@adaas/a-concept/types";
2
+ import { A_Component } from "@adaas/a-concept/a-component";
3
+ import { A_Container } from "@adaas/a-concept/a-container";
4
+ import { A_Entity } from "@adaas/a-concept/a-entity";
5
5
  import { A_Caller } from "./A_Caller.class";
6
6
 
7
7
 
@@ -0,0 +1,3 @@
1
+ export { A_Caller } from './A_Caller.class';
2
+ export { A_CallerError } from './A_Caller.error';
3
+ export * from './A_Caller.types'
@@ -1,6 +1,5 @@
1
- import { A_Context } from "../A-Context/A-Context.class";
2
- import { A_Feature } from "../A-Feature/A-Feature.class";
3
- import { A_Scope } from "../A-Scope/A-Scope.class";
1
+ import { A_Feature } from "@adaas/a-concept/a-feature";
2
+ import { A_Scope } from "@adaas/a-concept/a-scope";
4
3
 
5
4
 
6
5
 
@@ -1,9 +1,9 @@
1
- import { A_TYPES__A_InjectDecorator_Meta } from "@adaas/a-concept/global/A-Inject/A-Inject.types";
2
- import { A_TYPES__ConceptAbstractionMeta } from "../A-Concept/A-Concept.types";
3
- import { A_Meta } from "../A-Meta/A-Meta.class";
1
+ import { A_TYPES__A_InjectDecorator_Meta } from "@adaas/a-concept/a-inject";
2
+ import { A_TYPES__ConceptAbstractionMeta } from "@adaas/a-concept/a-concept";
3
+ import { A_Meta } from "@adaas/a-concept/a-meta";
4
4
  import { A_TYPES__ComponentMeta, A_TYPES__ComponentMetaExtension } from "./A-Component.types";
5
5
  import { A_TYPES__ComponentMetaKey } from "./A-Component.constants";
6
- import { A_TYPES__FeatureDefineDecoratorMeta } from "../A-Feature/A-Feature.types";
6
+ import { A_TYPES__FeatureDefineDecoratorMeta } from "@adaas/a-concept/a-feature";
7
7
 
8
8
 
9
9
  export class A_ComponentMeta<T extends A_TYPES__ComponentMeta = A_TYPES__ComponentMeta> extends A_Meta<T> {
@@ -50,7 +50,7 @@ export class A_ComponentMeta<T extends A_TYPES__ComponentMeta = A_TYPES__Compone
50
50
  before: extension.before || '',
51
51
  after: extension.after || '',
52
52
  throwOnError: extension.throwOnError || true,
53
- override:''
53
+ override: ''
54
54
  });
55
55
 
56
56
  });
@@ -1,10 +1,10 @@
1
- import { A_TYPES__A_InjectDecorator_Meta } from "@adaas/a-concept/global/A-Inject/A-Inject.types"
2
- import { A_Meta } from "../A-Meta/A-Meta.class"
3
- import { A_TYPES__ConceptAbstraction } from "../A-Concept/A-Concept.types"
1
+ import { A_TYPES__A_InjectDecorator_Meta } from "@adaas/a-concept/a-inject"
2
+ import { A_Meta } from "@adaas/a-concept/a-meta"
3
+ import { A_TYPES__ConceptAbstraction } from "@adaas/a-concept/a-concept"
4
4
  import { A_Component } from "./A-Component.class"
5
5
  import { A_TYPES__ComponentMetaKey } from "./A-Component.constants"
6
- import { A_TYPES__FeatureDefineDecoratorMeta, A_TYPES__FeatureExtendDecoratorMeta } from "../A-Feature/A-Feature.types"
7
- import { A_TYPES__Ctor } from "@adaas/a-concept/types/A_Common.types"
6
+ import { A_TYPES__FeatureDefineDecoratorMeta, A_TYPES__FeatureExtendDecoratorMeta } from "@adaas/a-concept/a-feature"
7
+ import { A_TYPES__Ctor } from "@adaas/a-concept/types"
8
8
 
9
9
 
10
10
 
@@ -0,0 +1,5 @@
1
+ export { A_Component } from './A-Component.class';
2
+ export { A_ComponentMeta } from './A-Component.meta';
3
+ // export { A_ComponentError } from './A-Component.error';
4
+ export * from './A-Component.types';
5
+ export * from './A-Component.constants';
@@ -1,12 +1,14 @@
1
- import { A_Container } from "../A-Container/A-Container.class";
2
- import { A_Abstraction } from "../A-Abstraction/A-Abstraction.class";
3
- import { A_Abstraction_Extend } from "@adaas/a-concept/global/A-Abstraction/A-Abstraction-Extend.decorator";
4
- import { A_Scope } from "../A-Scope/A-Scope.class";
5
- import { A_Context } from "../A-Context/A-Context.class";
1
+ import { A_Container } from "@adaas/a-concept/a-container";
2
+ import {
3
+ A_Abstraction,
4
+ A_TYPES__AbstractionDecoratorConfig
5
+ } from "@adaas/a-concept/a-abstraction";
6
+ import { A_Abstraction_Extend } from "@adaas/a-concept/a-abstraction";
7
+ import { A_Scope } from "@adaas/a-concept/a-scope";
8
+ import { A_Context } from "@adaas/a-concept/a-context";
6
9
  import { A_TYPES__ConceptAbstractions } from "./A-Concept.constants";
7
10
  import { A_TYPES__Concept_Init } from "./A-Concept.types";
8
- import { A_TYPES__AbstractionDecoratorConfig } from "../A-Abstraction/A-Abstraction.types";
9
- import { A_Feature } from "../A-Feature/A-Feature.class";
11
+ import { A_Feature } from "@adaas/a-concept/a-feature";
10
12
 
11
13
 
12
14
 
@@ -1,6 +1,6 @@
1
1
 
2
- import { A_Container } from "@adaas/a-concept/global/A-Container/A-Container.class";
3
- import { A_Meta } from "../A-Meta/A-Meta.class";
2
+ import { A_Container } from "@adaas/a-concept/a-container";
3
+ import { A_Meta } from "@adaas/a-concept/a-meta";
4
4
 
5
5
 
6
6
 
@@ -1,11 +1,11 @@
1
- import { A_Container } from "../A-Container/A-Container.class";
1
+ import { A_Container } from "@adaas/a-concept/a-container";
2
2
  import { A_Concept } from "./A-Concept.class";
3
- import { A_TYPES__FeatureExtendDecoratorMeta } from "../A-Feature/A-Feature.types";
4
- import { A_TYPES__Component_Constructor } from "../A-Component/A-Component.types";
5
- import { A_TYPES__Fragment_Constructor } from "../A-Fragment/A-Fragment.types";
6
- import { A_TYPES__Entity_Constructor } from "../A-Entity/A-Entity.types";
7
- import { A_TYPES__A_InjectDecorator_Meta } from "../A-Inject/A-Inject.types";
8
- import { A_TYPES__Ctor } from "@adaas/a-concept/types/A_Common.types";
3
+ import { A_TYPES__FeatureExtendDecoratorMeta } from "@adaas/a-concept/a-feature";
4
+ import { A_TYPES__Component_Constructor } from "@adaas/a-concept/a-component";
5
+ import { A_TYPES__Fragment_Constructor } from "@adaas/a-concept/a-fragment";
6
+ import { A_TYPES__Entity_Constructor } from "@adaas/a-concept/a-entity";
7
+ import { A_TYPES__A_InjectDecorator_Meta } from "@adaas/a-concept/a-inject";
8
+ import { A_TYPES__Ctor } from "@adaas/a-concept/types";
9
9
 
10
10
 
11
11
  // ============================================================================
@@ -0,0 +1,4 @@
1
+ export { A_Concept } from './A-Concept.class';
2
+ export { A_ConceptMeta } from './A-Concept.meta';
3
+ export * from './A-Concept.types';
4
+ export * from './A-Concept.constants';
@@ -1,6 +1,6 @@
1
- import { A_Context } from "../A-Context/A-Context.class";
2
- import { A_Feature } from "../A-Feature/A-Feature.class";
3
- import { A_Scope } from "../A-Scope/A-Scope.class";
1
+ import { A_Context } from "@adaas/a-concept/a-context";
2
+ import { A_Feature } from "@adaas/a-concept/a-feature";
3
+ import { A_Scope } from "@adaas/a-concept/a-scope";
4
4
  import { A_TYPES__Container_Init } from "./A-Container.types";
5
5
 
6
6
 
@@ -1,10 +1,15 @@
1
- import { A_TYPES__ContainerMeta, A_TYPES__ContainerMetaExtension, } from "./A-Container.types";
2
- import { A_TYPES__A_InjectDecorator_Meta } from "@adaas/a-concept/global/A-Inject/A-Inject.types";
3
- import { A_TYPES__ConceptAbstraction, A_TYPES__ConceptAbstractionMeta } from "../A-Concept/A-Concept.types";
4
- import { A_Meta } from "../A-Meta/A-Meta.class";
1
+ import {
2
+ A_TYPES__ContainerMeta,
3
+ A_TYPES__ContainerMetaExtension,
4
+ } from "./A-Container.types";
5
+ import { A_TYPES__A_InjectDecorator_Meta } from "@adaas/a-concept/a-inject";
6
+ import {
7
+ A_TYPES__ConceptAbstractionMeta,
8
+ A_TYPES__ConceptAbstractions
9
+ } from "@adaas/a-concept/a-concept";
10
+ import { A_Meta } from "@adaas/a-concept/a-meta";
5
11
  import { A_TYPES__ContainerMetaKey } from "./A-Container.constants";
6
- import { A_TYPES__FeatureDefineDecoratorMeta } from "../A-Feature/A-Feature.types";
7
- import { A_TYPES__ConceptAbstractions } from "../A-Concept/A-Concept.constants";
12
+ import { A_TYPES__FeatureDefineDecoratorMeta } from "@adaas/a-concept/a-feature";
8
13
 
9
14
 
10
15
 
@@ -1,11 +1,14 @@
1
- import { A_TYPES__A_InjectDecorator_Meta } from "@adaas/a-concept/global/A-Inject/A-Inject.types";
2
- import { A_TYPES__ConceptAbstraction, } from "../A-Concept/A-Concept.types";
3
- import { A_Meta } from "../A-Meta/A-Meta.class";
4
- import { A_TYPES__Scope_Init } from "../A-Scope/A-Scope.types";
1
+ import { A_TYPES__A_InjectDecorator_Meta } from "@adaas/a-concept/a-inject";
2
+ import { A_TYPES__ConceptAbstraction, } from "@adaas/a-concept/a-concept";
3
+ import { A_Meta } from "@adaas/a-concept/a-meta";
4
+ import { A_TYPES__Scope_Init } from "@adaas/a-concept/a-scope";
5
5
  import { A_TYPES__ContainerMetaKey } from "./A-Container.constants";
6
6
  import { A_Container } from "./A-Container.class";
7
- import { A_TYPES__FeatureDefineDecoratorMeta, A_TYPES__FeatureExtendDecoratorMeta } from "../A-Feature/A-Feature.types";
8
- import { A_TYPES__Ctor } from "@adaas/a-concept/types/A_Common.types";
7
+ import {
8
+ A_TYPES__FeatureDefineDecoratorMeta,
9
+ A_TYPES__FeatureExtendDecoratorMeta
10
+ } from "@adaas/a-concept/a-feature";
11
+ import { A_TYPES__Ctor } from "@adaas/a-concept/types";
9
12
 
10
13
 
11
14
  // ============================================================================
@@ -0,0 +1,5 @@
1
+ export { A_Container } from './A-Container.class';
2
+ export { A_ContainerMeta } from './A-Container.meta';
3
+ // export { A_ContainerError } from './A-Container.error';
4
+ export * from './A-Container.types';
5
+ export * from './A-Container.constants';
@@ -1,44 +1,52 @@
1
+
1
2
  import {
3
+ A_Scope,
2
4
  A_TYPES__Scope_Init,
3
5
  A_TYPES__ScopeConfig,
4
6
  A_TYPES__ScopeLinkedComponents,
5
7
  A_TYPES_ScopeDependentComponents
6
- } from "../A-Scope/A-Scope.types";
8
+ } from "@adaas/a-concept/a-scope";
7
9
  import {
10
+ A_Meta,
8
11
  A_TYPES__MetaLinkedComponentConstructors,
9
12
  A_TYPES__MetaLinkedComponents
10
- } from "../A-Meta/A-Meta.types";
11
- import {
13
+ } from "@adaas/a-concept/a-meta";
14
+ import type {
15
+ A_Feature,
12
16
  A_TYPES__FeatureAvailableComponents,
13
17
  A_TYPES__FeatureDefineDecoratorMeta
14
- } from "../A-Feature/A-Feature.types";
15
- import { A_Component } from "../A-Component/A-Component.class";
16
- import { A_Feature } from "../A-Feature/A-Feature.class";
17
- import { A_Container } from "../A-Container/A-Container.class";
18
- import { A_Scope } from "../A-Scope/A-Scope.class";
19
- import { A_Meta } from "../A-Meta/A-Meta.class";
20
- import { A_ComponentMeta } from "../A-Component/A-Component.meta";
21
- import { A_ContainerMeta } from "../A-Container/A-Container.meta";
22
- import { A_Entity } from "../A-Entity/A-Entity.class";
23
- import { A_EntityMeta } from "../A-Entity/A-Entity.meta";
24
- import { A_TYPES__A_StageStep } from "../A-Stage/A-Stage.types";
25
- import { A_TYPES__EntityMetaKey } from "../A-Entity/A-Entity.constants";
26
- import { A_TYPES__ContainerMetaKey } from "../A-Container/A-Container.constants";
27
- import { A_TYPES__ComponentMetaKey } from "../A-Component/A-Component.constants";
18
+ } from "@adaas/a-concept/a-feature";
19
+ import {
20
+ A_Component,
21
+ A_TYPES__ComponentMetaKey,
22
+ A_TYPES__Component_Constructor,
23
+ A_ComponentMeta
24
+ } from "@adaas/a-concept/a-component";
25
+ import {
26
+ A_Container,
27
+ A_TYPES__ContainerMetaKey,
28
+ A_TYPES__Container_Constructor,
29
+ A_ContainerMeta
30
+ } from "@adaas/a-concept/a-container";
31
+ import {
32
+ A_Entity,
33
+ A_TYPES__EntityMetaKey,
34
+ A_TYPES__Entity_Constructor,
35
+ A_EntityMeta
36
+ } from "@adaas/a-concept/a-entity";
37
+ import { A_TYPES__A_StageStep } from "@adaas/a-concept/a-stage";
28
38
  import { A_TYPES__ContextEnvironment } from "./A-Context.types";
29
- import { A_TypeGuards } from "@adaas/a-concept/helpers/A_TypeGuards.helper";
39
+ import { A_TypeGuards} from "@adaas/a-concept/helpers/A_TypeGuards.helper";
40
+ import { A_FormatterHelper} from "@adaas/a-concept/helpers/A_Formatter.helper";
41
+ import { A_CommonHelper} from "@adaas/a-concept/helpers/A_Common.helper";
30
42
  import { A_ContextError } from "./A-Context.error";
31
- import { A_TYPES__Container_Constructor } from "../A-Container/A-Container.types";
32
- import { A_TYPES__Entity_Constructor } from "../A-Entity/A-Entity.types";
33
- import { A_TYPES__Component_Constructor } from "../A-Component/A-Component.types";
34
- import { A_FormatterHelper } from "@adaas/a-concept/helpers/A_Formatter.helper";
35
- import { A_Fragment } from "../A-Fragment/A-Fragment.class";
36
- import { A_TYPES__InjectableTargets } from "../A-Inject/A-Inject.types";
37
- import { A_TYPES__ConceptAbstractions } from "../A-Concept/A-Concept.constants";
38
- import { A_CommonHelper } from "@adaas/a-concept/helpers/A_Common.helper";
39
- import { A_TYPES__Fragment_Constructor } from "../A-Fragment/A-Fragment.types";
40
- import { A_Dependency } from "../A-Dependency/A-Dependency.class";
41
- import { A_TYPES__Ctor } from "@adaas/a-concept/types/A_Common.types";
43
+ import {
44
+ A_Fragment,
45
+ A_TYPES__Fragment_Constructor
46
+ } from "@adaas/a-concept/a-fragment";
47
+ import { A_TYPES__ConceptAbstractions } from "@adaas/a-concept/a-concept";
48
+ import { A_Dependency } from "@adaas/a-concept/a-dependency";
49
+ import { A_TYPES__Ctor } from "@adaas/a-concept/types";
42
50
  import { A_CONCEPT_ENV } from "@adaas/a-concept/env";
43
51
 
44
52
 
@@ -344,11 +352,11 @@ export class A_Context {
344
352
  */
345
353
  container: A_TYPES__Container_Constructor,
346
354
  ): T
347
- static meta<T extends A_ContainerMeta>(
355
+ static meta<T extends A_ContainerMeta, S extends A_Container>(
348
356
  /**
349
357
  * Get meta for the specific container instance.
350
358
  */
351
- container: A_Container,
359
+ container: S,
352
360
  ): T
353
361
  static meta<T extends A_EntityMeta>(
354
362
  /**
@@ -368,11 +376,11 @@ export class A_Context {
368
376
  */
369
377
  component: A_TYPES__Component_Constructor,
370
378
  ): T
371
- static meta<T extends A_ComponentMeta>(
379
+ static meta<T extends A_ComponentMeta, S extends A_Component>(
372
380
  /**
373
381
  * Get meta for the specific component instance.
374
382
  */
375
- component: A_Component,
383
+ component: S,
376
384
  ): T
377
385
  static meta<T extends A_Meta>(
378
386
  /**
@@ -1,4 +1,4 @@
1
- import { A_Error } from "../A-Error/A_Error.class";
1
+ import { A_Error } from "@adaas/a-concept/a-error";
2
2
 
3
3
 
4
4
 
@@ -0,0 +1,14 @@
1
+ import { A_ComponentMeta } from "@adaas/a-concept/a-component";
2
+ import { A_ContainerMeta } from "@adaas/a-concept/a-container";
3
+ import { A_EntityMeta } from "@adaas/a-concept/a-entity";
4
+
5
+
6
+
7
+ export type A_TYPES__ContextEnvironment = 'server' | 'browser' | 'mobile' | 'desktop' | 'embedded' | 'unknown';
8
+
9
+
10
+
11
+
12
+ export type A_TYPES__FeatureExtendableMeta = A_ContainerMeta
13
+ | A_ComponentMeta
14
+ | A_EntityMeta
@@ -0,0 +1,5 @@
1
+ export { A_Context } from './A-Context.class';
2
+ // export { A_ContextMeta } from './A-Context.meta';
3
+ export { A_ContextError } from './A-Context.error';
4
+ export * from './A-Context.types';
5
+ // export * from './A-Context.constants';
@@ -1,17 +1,17 @@
1
1
 
2
- import { A_Context } from "@adaas/a-concept/global/A-Context/A-Context.class";
3
- import { A_Meta } from "@adaas/a-concept/global/A-Meta/A-Meta.class";
4
- import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/global/A-Component/A-Component.constants";
5
- import { A_TYPES__ContainerMetaKey } from "@adaas/a-concept/global/A-Container/A-Container.constants";
6
- import { A_TypeGuards } from "@adaas/a-concept/helpers/A_TypeGuards.helper";
7
- import { A_TYPES__A_InjectDecorator_Meta, A_TYPES__InjectableTargets } from "../A-Inject/A-Inject.types";
2
+ import { A_Context } from "@adaas/a-concept/a-context";
3
+ import { A_Meta } from "@adaas/a-concept/a-meta";
4
+ import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/a-component";
5
+ import { A_TYPES__ContainerMetaKey } from "@adaas/a-concept/a-container";
8
6
  import { A_TYPES__A_Dependency_AllDecoratorReturn } from "./A-Dependency.types";
9
7
  import { A_DependencyError } from "./A-Dependency.error";
10
- import { A_CommonHelper } from "@adaas/a-concept/helpers/A_Common.helper";
11
- import { A_Entity } from "../A-Entity/A-Entity.class";
12
- import { A_TYPES__Entity_Constructor } from "../A-Entity/A-Entity.types";
13
- import { A_TYPES__EntityMetaKey } from "../A-Entity/A-Entity.constants";
14
-
8
+ import { A_TYPES__EntityMetaKey } from "@adaas/a-concept/a-entity";
9
+ import {
10
+ A_TYPES__A_InjectDecorator_Meta,
11
+ A_TYPES__InjectableTargets
12
+ } from "@adaas/a-concept/a-inject";
13
+ import { A_TypeGuards} from "@adaas/a-concept/helpers/A_TypeGuards.helper";
14
+ import { A_CommonHelper} from "@adaas/a-concept/helpers/A_Common.helper";
15
15
 
16
16
  /**
17
17
  * Should indicate which All is required
@@ -1,14 +1,16 @@
1
-
2
- import { A_Context } from "@adaas/a-concept/global/A-Context/A-Context.class";
3
- import { A_Meta } from "@adaas/a-concept/global/A-Meta/A-Meta.class";
4
- import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/global/A-Component/A-Component.constants";
5
- import { A_TYPES__ContainerMetaKey } from "@adaas/a-concept/global/A-Container/A-Container.constants";
6
- import { A_TypeGuards } from "@adaas/a-concept/helpers/A_TypeGuards.helper";
7
- import { A_TYPES__A_InjectDecorator_Meta, A_TYPES__InjectableTargets } from "../A-Inject/A-Inject.types";
1
+ import { A_Context } from "@adaas/a-concept/a-context";
2
+ import { A_Meta } from "@adaas/a-concept/a-meta";
3
+ import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/a-component";
4
+ import { A_TYPES__ContainerMetaKey } from "@adaas/a-concept/a-container";
8
5
  import { A_TYPES__A_Dependency_DefaultDecoratorReturn } from "./A-Dependency.types";
9
6
  import { A_DependencyError } from "./A-Dependency.error";
10
- import { A_CommonHelper } from "@adaas/a-concept/helpers/A_Common.helper";
11
- import { A_TYPES__EntityMetaKey } from "../A-Entity/A-Entity.constants";
7
+ import { A_TYPES__EntityMetaKey } from "@adaas/a-concept/a-entity";
8
+ import {
9
+ A_TYPES__A_InjectDecorator_Meta,
10
+ A_TYPES__InjectableTargets
11
+ } from "@adaas/a-concept/a-inject";
12
+ import { A_TypeGuards} from "@adaas/a-concept/helpers/A_TypeGuards.helper";
13
+ import { A_CommonHelper} from "@adaas/a-concept/helpers/A_Common.helper";
12
14
 
13
15
 
14
16
  /**
@@ -1,14 +1,17 @@
1
1
 
2
- import { A_Context } from "@adaas/a-concept/global/A-Context/A-Context.class";
3
- import { A_Meta } from "@adaas/a-concept/global/A-Meta/A-Meta.class";
4
- import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/global/A-Component/A-Component.constants";
5
- import { A_TYPES__ContainerMetaKey } from "@adaas/a-concept/global/A-Container/A-Container.constants";
6
- import { A_TypeGuards } from "@adaas/a-concept/helpers/A_TypeGuards.helper";
7
- import { A_TYPES__A_InjectDecorator_Meta, A_TYPES__InjectableTargets } from "../A-Inject/A-Inject.types";
2
+ import { A_Context } from "@adaas/a-concept/a-context";
3
+ import { A_Meta } from "@adaas/a-concept/a-meta";
4
+ import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/a-component";
5
+ import { A_TYPES__ContainerMetaKey } from "@adaas/a-concept/a-container";
8
6
  import { A_TYPES__A_Dependency_FlatDecoratorReturn } from "./A-Dependency.types";
9
7
  import { A_DependencyError } from "./A-Dependency.error";
10
- import { A_CommonHelper } from "@adaas/a-concept/helpers/A_Common.helper";
11
- import { A_TYPES__EntityMetaKey } from "../A-Entity/A-Entity.constants";
8
+ import { A_TYPES__EntityMetaKey } from "@adaas/a-concept/a-entity";
9
+ import {
10
+ A_TYPES__A_InjectDecorator_Meta,
11
+ A_TYPES__InjectableTargets
12
+ } from "@adaas/a-concept/a-inject";
13
+ import { A_TypeGuards} from "@adaas/a-concept/helpers/A_TypeGuards.helper";
14
+ import { A_CommonHelper} from "@adaas/a-concept/helpers/A_Common.helper";
12
15
 
13
16
 
14
17
  /**
@@ -1,14 +1,16 @@
1
-
2
- import { A_Context } from "@adaas/a-concept/global/A-Context/A-Context.class";
3
- import { A_Meta } from "@adaas/a-concept/global/A-Meta/A-Meta.class";
4
- import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/global/A-Component/A-Component.constants";
5
- import { A_TYPES__ContainerMetaKey } from "@adaas/a-concept/global/A-Container/A-Container.constants";
6
- import { A_TypeGuards } from "@adaas/a-concept/helpers/A_TypeGuards.helper";
7
- import { A_TYPES__A_InjectDecorator_Meta, A_TYPES__InjectableTargets } from "../A-Inject/A-Inject.types";
1
+ import { A_Context } from "@adaas/a-concept/a-context";
2
+ import { A_Meta } from "@adaas/a-concept/a-meta";
3
+ import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/a-component";
4
+ import { A_TYPES__ContainerMetaKey } from "@adaas/a-concept/a-container";
8
5
  import { A_TYPES__A_Dependency_LoadDecoratorReturn } from "./A-Dependency.types";
9
6
  import { A_DependencyError } from "./A-Dependency.error";
10
- import { A_CommonHelper } from "@adaas/a-concept/helpers/A_Common.helper";
11
- import { A_TYPES__EntityMetaKey } from "../A-Entity/A-Entity.constants";
7
+ import { A_TYPES__EntityMetaKey } from "@adaas/a-concept/a-entity";
8
+ import {
9
+ A_TYPES__A_InjectDecorator_Meta,
10
+ A_TYPES__InjectableTargets
11
+ } from "@adaas/a-concept/a-inject";
12
+ import { A_TypeGuards} from "@adaas/a-concept/helpers/A_TypeGuards.helper";
13
+ import { A_CommonHelper} from "@adaas/a-concept/helpers/A_Common.helper";
12
14
 
13
15
 
14
16
  /**
@@ -1,14 +1,16 @@
1
-
2
- import { A_Context } from "@adaas/a-concept/global/A-Context/A-Context.class";
3
- import { A_Meta } from "@adaas/a-concept/global/A-Meta/A-Meta.class";
4
- import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/global/A-Component/A-Component.constants";
5
- import { A_TYPES__ContainerMetaKey } from "@adaas/a-concept/global/A-Container/A-Container.constants";
6
- import { A_TypeGuards } from "@adaas/a-concept/helpers/A_TypeGuards.helper";
7
- import { A_TYPES__A_InjectDecorator_Meta, A_TYPES__InjectableTargets } from "../A-Inject/A-Inject.types";
1
+ import { A_Context } from "@adaas/a-concept/a-context";
2
+ import { A_Meta } from "@adaas/a-concept/a-meta";
3
+ import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/a-component";
4
+ import { A_TYPES__ContainerMetaKey } from "@adaas/a-concept/a-container";
8
5
  import { A_TYPES__A_Dependency_ParentDecoratorReturn } from "./A-Dependency.types";
9
6
  import { A_DependencyError } from "./A-Dependency.error";
10
- import { A_CommonHelper } from "@adaas/a-concept/helpers/A_Common.helper";
11
- import { A_TYPES__EntityMetaKey } from "../A-Entity/A-Entity.constants";
7
+ import { A_TYPES__EntityMetaKey } from "@adaas/a-concept/a-entity";
8
+ import {
9
+ A_TYPES__A_InjectDecorator_Meta,
10
+ A_TYPES__InjectableTargets
11
+ } from "@adaas/a-concept/a-inject";
12
+ import { A_TypeGuards} from "@adaas/a-concept/helpers/A_TypeGuards.helper";
13
+ import { A_CommonHelper} from "@adaas/a-concept/helpers/A_Common.helper";
12
14
 
13
15
 
14
16
  /**
@@ -1,14 +1,16 @@
1
-
2
- import { A_Context } from "@adaas/a-concept/global/A-Context/A-Context.class";
3
- import { A_Meta } from "@adaas/a-concept/global/A-Meta/A-Meta.class";
4
- import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/global/A-Component/A-Component.constants";
5
- import { A_TYPES__ContainerMetaKey } from "@adaas/a-concept/global/A-Container/A-Container.constants";
6
- import { A_TypeGuards } from "@adaas/a-concept/helpers/A_TypeGuards.helper";
7
- import { A_TYPES__A_InjectDecorator_Meta, A_TYPES__InjectableTargets } from "../A-Inject/A-Inject.types";
1
+ import { A_Context } from "@adaas/a-concept/a-context";
2
+ import { A_Meta } from "@adaas/a-concept/a-meta";
3
+ import { A_TYPES__ComponentMetaKey } from "@adaas/a-concept/a-component";
4
+ import { A_TYPES__ContainerMetaKey } from "@adaas/a-concept/a-container";
8
5
  import { A_TYPES__A_Dependency_RequireDecoratorReturn } from "./A-Dependency.types";
9
6
  import { A_DependencyError } from "./A-Dependency.error";
10
- import { A_CommonHelper } from "@adaas/a-concept/helpers/A_Common.helper";
11
- import { A_TYPES__EntityMetaKey } from "../A-Entity/A-Entity.constants";
7
+ import { A_TYPES__EntityMetaKey } from "@adaas/a-concept/a-entity";
8
+ import {
9
+ A_TYPES__A_InjectDecorator_Meta,
10
+ A_TYPES__InjectableTargets
11
+ } from "@adaas/a-concept/a-inject";
12
+ import { A_TypeGuards} from "@adaas/a-concept/helpers/A_TypeGuards.helper";
13
+ import { A_CommonHelper} from "@adaas/a-concept/helpers/A_Common.helper";
12
14
 
13
15
 
14
16
  /**
@@ -1,12 +1,18 @@
1
- import { A_CommonHelper } from "@adaas/a-concept/helpers/A_Common.helper";
1
+ import { A_CommonHelper} from "@adaas/a-concept/helpers/A_Common.helper";
2
2
  import { A_Dependency_Default } from "./A-Dependency-Default.decorator";
3
3
  import { A_Dependency_Flat } from "./A-Dependency-Flat.decorator";
4
4
  import { A_Dependency_Load } from "./A-Dependency-Load.decorator";
5
5
  import { A_Dependency_Parent } from "./A-Dependency-Parent.decorator";
6
6
  import { A_Dependency_Require } from "./A-Dependency-Require.decorator";
7
7
  import { A_DependencyError } from "./A-Dependency.error";
8
- import { A_TYPES__A_Dependency_EntityInjectionPagination, A_TYPES__A_Dependency_EntityInjectionQuery, A_TYPES__A_Dependency_Serialized, A_TYPES__A_DependencyInjectable, A_TYPES__A_DependencyResolutionStrategy } from "./A-Dependency.types";
9
- import { A_TYPES__Ctor } from "@adaas/a-concept/types/A_Common.types";
8
+ import {
9
+ A_TYPES__A_Dependency_EntityInjectionPagination,
10
+ A_TYPES__A_Dependency_EntityInjectionQuery,
11
+ A_TYPES__A_Dependency_Serialized,
12
+ A_TYPES__A_DependencyInjectable,
13
+ A_TYPES__A_DependencyResolutionStrategy
14
+ } from "./A-Dependency.types";
15
+ import { A_TYPES__Ctor } from "@adaas/a-concept/types";
10
16
  import { A_Dependency_All } from "./A-Dependency-All.decorator";
11
17
 
12
18
 
@@ -1,4 +1,4 @@
1
- import { A_Error } from "../A-Error/A_Error.class";
1
+ import { A_Error } from "@adaas/a-concept/a-error";
2
2
 
3
3
  export class A_DependencyError extends A_Error {
4
4
 
@@ -1,15 +1,15 @@
1
1
  // ==================================== A-Dependency types ==================================== //
2
2
 
3
- import { A_TYPES__Ctor } from "@adaas/a-concept/types/A_Common.types";
4
- import { A_Caller } from "../A-Caller/A_Caller.class";
5
- import { A_Component } from "../A-Component/A-Component.class";
6
- import { A_Container } from "../A-Container/A-Container.class";
7
- import { A_Entity } from "../A-Entity/A-Entity.class"
8
- import { A_Error } from "../A-Error/A_Error.class";
9
- import { A_Feature } from "../A-Feature/A-Feature.class";
10
- import { A_Fragment } from "../A-Fragment/A-Fragment.class";
3
+ import { A_TYPES__Ctor } from "@adaas/a-concept/types";
4
+ import { A_Caller } from "@adaas/a-concept/a-caller";
5
+ import { A_Component } from "@adaas/a-concept/a-component";
6
+ import { A_Container } from "@adaas/a-concept/a-container";
7
+ import { A_Entity } from "@adaas/a-concept/a-entity"
8
+ import { A_Error } from "@adaas/a-concept/a-error";
9
+ import { A_Feature } from "@adaas/a-concept/a-feature";
10
+ import { A_Fragment } from "@adaas/a-concept/a-fragment";
11
+ import { A_Scope } from "@adaas/a-concept/a-scope";
11
12
  import { A_Dependency } from "./A-Dependency.class";
12
- import { A_Scope } from "../A-Scope/A-Scope.class";
13
13
 
14
14
 
15
15
  // ===========================================================================================