@adaas/a-concept 0.1.24 → 0.1.26

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 (227) hide show
  1. package/dist/index.cjs +3 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.mts +3961 -0
  4. package/dist/index.d.ts +3961 -50
  5. package/dist/index.mjs +3 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +5 -6
  8. package/src/global/A-Abstraction/A-Abstraction-Extend.decorator.ts +2 -1
  9. package/src/global/A-Context/A-Context.class.ts +81 -7
  10. package/src/global/A-Context/A-Context.error.ts +4 -0
  11. package/src/global/A-Dependency/A-Dependency-Default.decorator.ts +75 -0
  12. package/src/global/A-Dependency/A-Dependency-Load.decorator.ts +80 -0
  13. package/src/global/A-Dependency/A-Dependency-Require.decorator.ts +68 -0
  14. package/src/global/A-Dependency/A-Dependency.class.ts +33 -0
  15. package/src/global/A-Dependency/A-Dependency.error.ts +13 -0
  16. package/src/global/A-Dependency/A-Dependency.types.ts +28 -0
  17. package/src/global/A-Feature/A-Feature-Define.decorator.ts +2 -1
  18. package/src/global/A-Feature/A-Feature-Extend.decorator.ts +2 -1
  19. package/src/global/A-Feature/A-Feature.class.ts +11 -0
  20. package/src/global/A-Inject/A-Inject.decorator.ts +4 -2
  21. package/src/global/A-Inject/A-Inject.types.ts +5 -3
  22. package/src/global/A-Scope/A-Scope.class.ts +85 -57
  23. package/src/global/A-Stage/A-Stage.class.ts +22 -2
  24. package/src/global/A-Stage/A-Stage.error.ts +2 -0
  25. package/src/helpers/A_Common.helper.ts +101 -0
  26. package/src/helpers/A_TypeGuards.helper.ts +8 -0
  27. package/src/index.ts +88 -0
  28. package/tests/A-Component.test.ts +1 -1
  29. package/tests/A-Concept.test.ts +5 -6
  30. package/tests/A-Dependency.test.ts +93 -0
  31. package/tests/A-Feature.test.ts +7 -7
  32. package/tests/A-Scope.test.ts +10 -10
  33. package/tsconfig.json +2 -2
  34. package/tsup.config.ts +32 -0
  35. package/dist/index.js +0 -112
  36. package/dist/index.js.map +0 -1
  37. package/dist/src/constants/env.constants.d.ts +0 -33
  38. package/dist/src/constants/env.constants.js +0 -47
  39. package/dist/src/constants/env.constants.js.map +0 -1
  40. package/dist/src/global/A-Abstraction/A-Abstraction-Extend.decorator.d.ts +0 -23
  41. package/dist/src/global/A-Abstraction/A-Abstraction-Extend.decorator.js +0 -96
  42. package/dist/src/global/A-Abstraction/A-Abstraction-Extend.decorator.js.map +0 -1
  43. package/dist/src/global/A-Abstraction/A-Abstraction.class.d.ts +0 -74
  44. package/dist/src/global/A-Abstraction/A-Abstraction.class.js +0 -130
  45. package/dist/src/global/A-Abstraction/A-Abstraction.class.js.map +0 -1
  46. package/dist/src/global/A-Abstraction/A-Abstraction.error.d.ts +0 -7
  47. package/dist/src/global/A-Abstraction/A-Abstraction.error.js +0 -12
  48. package/dist/src/global/A-Abstraction/A-Abstraction.error.js.map +0 -1
  49. package/dist/src/global/A-Abstraction/A-Abstraction.types.d.ts +0 -38
  50. package/dist/src/global/A-Abstraction/A-Abstraction.types.js +0 -3
  51. package/dist/src/global/A-Abstraction/A-Abstraction.types.js.map +0 -1
  52. package/dist/src/global/A-Caller/A_Caller.class.d.ts +0 -33
  53. package/dist/src/global/A-Caller/A_Caller.class.js +0 -44
  54. package/dist/src/global/A-Caller/A_Caller.class.js.map +0 -1
  55. package/dist/src/global/A-Caller/A_Caller.error.d.ts +0 -7
  56. package/dist/src/global/A-Caller/A_Caller.error.js +0 -12
  57. package/dist/src/global/A-Caller/A_Caller.error.js.map +0 -1
  58. package/dist/src/global/A-Caller/A_Caller.types.d.ts +0 -18
  59. package/dist/src/global/A-Caller/A_Caller.types.js +0 -3
  60. package/dist/src/global/A-Caller/A_Caller.types.js.map +0 -1
  61. package/dist/src/global/A-Component/A-Component.class.d.ts +0 -34
  62. package/dist/src/global/A-Component/A-Component.class.js +0 -56
  63. package/dist/src/global/A-Component/A-Component.class.js.map +0 -1
  64. package/dist/src/global/A-Component/A-Component.constants.d.ts +0 -6
  65. package/dist/src/global/A-Component/A-Component.constants.js +0 -11
  66. package/dist/src/global/A-Component/A-Component.constants.js.map +0 -1
  67. package/dist/src/global/A-Component/A-Component.meta.d.ts +0 -34
  68. package/dist/src/global/A-Component/A-Component.meta.js +0 -78
  69. package/dist/src/global/A-Component/A-Component.meta.js.map +0 -1
  70. package/dist/src/global/A-Component/A-Component.types.d.ts +0 -76
  71. package/dist/src/global/A-Component/A-Component.types.js +0 -4
  72. package/dist/src/global/A-Component/A-Component.types.js.map +0 -1
  73. package/dist/src/global/A-Concept/A-Concept.class.d.ts +0 -153
  74. package/dist/src/global/A-Concept/A-Concept.class.js +0 -260
  75. package/dist/src/global/A-Concept/A-Concept.class.js.map +0 -1
  76. package/dist/src/global/A-Concept/A-Concept.constants.d.ts +0 -33
  77. package/dist/src/global/A-Concept/A-Concept.constants.js +0 -39
  78. package/dist/src/global/A-Concept/A-Concept.constants.js.map +0 -1
  79. package/dist/src/global/A-Concept/A-Concept.meta.d.ts +0 -6
  80. package/dist/src/global/A-Concept/A-Concept.meta.js +0 -12
  81. package/dist/src/global/A-Concept/A-Concept.meta.js.map +0 -1
  82. package/dist/src/global/A-Concept/A-Concept.types.d.ts +0 -66
  83. package/dist/src/global/A-Concept/A-Concept.types.js +0 -3
  84. package/dist/src/global/A-Concept/A-Concept.types.js.map +0 -1
  85. package/dist/src/global/A-Container/A-Container.class.d.ts +0 -52
  86. package/dist/src/global/A-Container/A-Container.class.js +0 -78
  87. package/dist/src/global/A-Container/A-Container.class.js.map +0 -1
  88. package/dist/src/global/A-Container/A-Container.constants.d.ts +0 -6
  89. package/dist/src/global/A-Container/A-Container.constants.js +0 -11
  90. package/dist/src/global/A-Container/A-Container.constants.js.map +0 -1
  91. package/dist/src/global/A-Container/A-Container.meta.d.ts +0 -35
  92. package/dist/src/global/A-Container/A-Container.meta.js +0 -76
  93. package/dist/src/global/A-Container/A-Container.meta.js.map +0 -1
  94. package/dist/src/global/A-Container/A-Container.types.d.ts +0 -75
  95. package/dist/src/global/A-Container/A-Container.types.js +0 -4
  96. package/dist/src/global/A-Container/A-Container.types.js.map +0 -1
  97. package/dist/src/global/A-Context/A-Context.class.d.ts +0 -361
  98. package/dist/src/global/A-Context/A-Context.class.js +0 -603
  99. package/dist/src/global/A-Context/A-Context.class.js.map +0 -1
  100. package/dist/src/global/A-Context/A-Context.error.d.ts +0 -20
  101. package/dist/src/global/A-Context/A-Context.error.js +0 -25
  102. package/dist/src/global/A-Context/A-Context.error.js.map +0 -1
  103. package/dist/src/global/A-Context/A-Context.types.d.ts +0 -5
  104. package/dist/src/global/A-Context/A-Context.types.js +0 -3
  105. package/dist/src/global/A-Context/A-Context.types.js.map +0 -1
  106. package/dist/src/global/A-Dependency/A-DependencyReference.class.d.ts +0 -0
  107. package/dist/src/global/A-Dependency/A-DependencyReference.class.js +0 -49
  108. package/dist/src/global/A-Dependency/A-DependencyReference.class.js.map +0 -1
  109. package/dist/src/global/A-Dependency/A-DependencyReference.types.d.ts +0 -0
  110. package/dist/src/global/A-Dependency/A-DependencyReference.types.js +0 -58
  111. package/dist/src/global/A-Dependency/A-DependencyReference.types.js.map +0 -1
  112. package/dist/src/global/A-Entity/A-Entity.class.d.ts +0 -214
  113. package/dist/src/global/A-Entity/A-Entity.class.js +0 -282
  114. package/dist/src/global/A-Entity/A-Entity.class.js.map +0 -1
  115. package/dist/src/global/A-Entity/A-Entity.constants.d.ts +0 -11
  116. package/dist/src/global/A-Entity/A-Entity.constants.js +0 -17
  117. package/dist/src/global/A-Entity/A-Entity.constants.js.map +0 -1
  118. package/dist/src/global/A-Entity/A-Entity.error.d.ts +0 -7
  119. package/dist/src/global/A-Entity/A-Entity.error.js +0 -12
  120. package/dist/src/global/A-Entity/A-Entity.error.js.map +0 -1
  121. package/dist/src/global/A-Entity/A-Entity.meta.d.ts +0 -11
  122. package/dist/src/global/A-Entity/A-Entity.meta.js +0 -18
  123. package/dist/src/global/A-Entity/A-Entity.meta.js.map +0 -1
  124. package/dist/src/global/A-Entity/A-Entity.types.d.ts +0 -56
  125. package/dist/src/global/A-Entity/A-Entity.types.js +0 -5
  126. package/dist/src/global/A-Entity/A-Entity.types.js.map +0 -1
  127. package/dist/src/global/A-Error/A_Error.class.d.ts +0 -229
  128. package/dist/src/global/A-Error/A_Error.class.js +0 -296
  129. package/dist/src/global/A-Error/A_Error.class.js.map +0 -1
  130. package/dist/src/global/A-Error/A_Error.constants.d.ts +0 -5
  131. package/dist/src/global/A-Error/A_Error.constants.js +0 -9
  132. package/dist/src/global/A-Error/A_Error.constants.js.map +0 -1
  133. package/dist/src/global/A-Error/A_Error.types.d.ts +0 -93
  134. package/dist/src/global/A-Error/A_Error.types.js +0 -3
  135. package/dist/src/global/A-Error/A_Error.types.js.map +0 -1
  136. package/dist/src/global/A-Feature/A-Feature-Define.decorator.d.ts +0 -15
  137. package/dist/src/global/A-Feature/A-Feature-Define.decorator.js +0 -76
  138. package/dist/src/global/A-Feature/A-Feature-Define.decorator.js.map +0 -1
  139. package/dist/src/global/A-Feature/A-Feature-Extend.decorator.d.ts +0 -56
  140. package/dist/src/global/A-Feature/A-Feature-Extend.decorator.js +0 -128
  141. package/dist/src/global/A-Feature/A-Feature-Extend.decorator.js.map +0 -1
  142. package/dist/src/global/A-Feature/A-Feature.class.d.ts +0 -175
  143. package/dist/src/global/A-Feature/A-Feature.class.js +0 -318
  144. package/dist/src/global/A-Feature/A-Feature.class.js.map +0 -1
  145. package/dist/src/global/A-Feature/A-Feature.error.d.ts +0 -25
  146. package/dist/src/global/A-Feature/A-Feature.error.js +0 -33
  147. package/dist/src/global/A-Feature/A-Feature.error.js.map +0 -1
  148. package/dist/src/global/A-Feature/A-Feature.types.d.ts +0 -334
  149. package/dist/src/global/A-Feature/A-Feature.types.js +0 -26
  150. package/dist/src/global/A-Feature/A-Feature.types.js.map +0 -1
  151. package/dist/src/global/A-Fragment/A-Fragment.class.d.ts +0 -36
  152. package/dist/src/global/A-Fragment/A-Fragment.class.js +0 -46
  153. package/dist/src/global/A-Fragment/A-Fragment.class.js.map +0 -1
  154. package/dist/src/global/A-Fragment/A-Fragment.types.d.ts +0 -21
  155. package/dist/src/global/A-Fragment/A-Fragment.types.js +0 -6
  156. package/dist/src/global/A-Fragment/A-Fragment.types.js.map +0 -1
  157. package/dist/src/global/A-Inject/A-Inject.decorator.d.ts +0 -80
  158. package/dist/src/global/A-Inject/A-Inject.decorator.js +0 -49
  159. package/dist/src/global/A-Inject/A-Inject.decorator.js.map +0 -1
  160. package/dist/src/global/A-Inject/A-Inject.error.d.ts +0 -5
  161. package/dist/src/global/A-Inject/A-Inject.error.js +0 -10
  162. package/dist/src/global/A-Inject/A-Inject.error.js.map +0 -1
  163. package/dist/src/global/A-Inject/A-Inject.types.d.ts +0 -42
  164. package/dist/src/global/A-Inject/A-Inject.types.js +0 -3
  165. package/dist/src/global/A-Inject/A-Inject.types.js.map +0 -1
  166. package/dist/src/global/A-Meta/A-Meta.class.d.ts +0 -97
  167. package/dist/src/global/A-Meta/A-Meta.class.js +0 -164
  168. package/dist/src/global/A-Meta/A-Meta.class.js.map +0 -1
  169. package/dist/src/global/A-Meta/A-Meta.types.d.ts +0 -14
  170. package/dist/src/global/A-Meta/A-Meta.types.js +0 -3
  171. package/dist/src/global/A-Meta/A-Meta.types.js.map +0 -1
  172. package/dist/src/global/A-Scope/A-Scope.class.d.ts +0 -466
  173. package/dist/src/global/A-Scope/A-Scope.class.js +0 -791
  174. package/dist/src/global/A-Scope/A-Scope.class.js.map +0 -1
  175. package/dist/src/global/A-Scope/A-Scope.error.d.ts +0 -8
  176. package/dist/src/global/A-Scope/A-Scope.error.js +0 -13
  177. package/dist/src/global/A-Scope/A-Scope.error.js.map +0 -1
  178. package/dist/src/global/A-Scope/A-Scope.types.d.ts +0 -81
  179. package/dist/src/global/A-Scope/A-Scope.types.js +0 -3
  180. package/dist/src/global/A-Scope/A-Scope.types.js.map +0 -1
  181. package/dist/src/global/A-Stage/A-Stage.class.d.ts +0 -112
  182. package/dist/src/global/A-Stage/A-Stage.class.js +0 -240
  183. package/dist/src/global/A-Stage/A-Stage.class.js.map +0 -1
  184. package/dist/src/global/A-Stage/A-Stage.error.d.ts +0 -4
  185. package/dist/src/global/A-Stage/A-Stage.error.js +0 -11
  186. package/dist/src/global/A-Stage/A-Stage.error.js.map +0 -1
  187. package/dist/src/global/A-Stage/A-Stage.types.d.ts +0 -101
  188. package/dist/src/global/A-Stage/A-Stage.types.js +0 -43
  189. package/dist/src/global/A-Stage/A-Stage.types.js.map +0 -1
  190. package/dist/src/global/A-StepManager/A-StepManager.class.d.ts +0 -20
  191. package/dist/src/global/A-StepManager/A-StepManager.class.js +0 -112
  192. package/dist/src/global/A-StepManager/A-StepManager.class.js.map +0 -1
  193. package/dist/src/global/A-StepManager/A-StepManager.error.d.ts +0 -4
  194. package/dist/src/global/A-StepManager/A-StepManager.error.js +0 -9
  195. package/dist/src/global/A-StepManager/A-StepManager.error.js.map +0 -1
  196. package/dist/src/global/ASEID/ASEID.class.d.ts +0 -130
  197. package/dist/src/global/ASEID/ASEID.class.js +0 -167
  198. package/dist/src/global/ASEID/ASEID.class.js.map +0 -1
  199. package/dist/src/global/ASEID/ASEID.constants.d.ts +0 -0
  200. package/dist/src/global/ASEID/ASEID.constants.js +0 -2
  201. package/dist/src/global/ASEID/ASEID.constants.js.map +0 -1
  202. package/dist/src/global/ASEID/ASEID.error.d.ts +0 -5
  203. package/dist/src/global/ASEID/ASEID.error.js +0 -10
  204. package/dist/src/global/ASEID/ASEID.error.js.map +0 -1
  205. package/dist/src/global/ASEID/ASEID.types.d.ts +0 -65
  206. package/dist/src/global/ASEID/ASEID.types.js +0 -5
  207. package/dist/src/global/ASEID/ASEID.types.js.map +0 -1
  208. package/dist/src/helpers/A_Common.helper.d.ts +0 -28
  209. package/dist/src/helpers/A_Common.helper.js +0 -170
  210. package/dist/src/helpers/A_Common.helper.js.map +0 -1
  211. package/dist/src/helpers/A_Formatter.helper.d.ts +0 -35
  212. package/dist/src/helpers/A_Formatter.helper.js +0 -62
  213. package/dist/src/helpers/A_Formatter.helper.js.map +0 -1
  214. package/dist/src/helpers/A_Identity.helper.d.ts +0 -29
  215. package/dist/src/helpers/A_Identity.helper.js +0 -43
  216. package/dist/src/helpers/A_Identity.helper.js.map +0 -1
  217. package/dist/src/helpers/A_TypeGuards.helper.d.ts +0 -207
  218. package/dist/src/helpers/A_TypeGuards.helper.js +0 -296
  219. package/dist/src/helpers/A_TypeGuards.helper.js.map +0 -1
  220. package/dist/src/types/A_Common.types.d.ts +0 -36
  221. package/dist/src/types/A_Common.types.js +0 -3
  222. package/dist/src/types/A_Common.types.js.map +0 -1
  223. package/index.ts +0 -81
  224. package/src/global/A-Dependency/A-DependencyReference.class.ts +0 -61
  225. package/src/global/A-Dependency/A-DependencyReference.types.ts +0 -61
  226. package/trace-require.js +0 -46
  227. package/tsconfig.build.json +0 -58
@@ -1,170 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.A_CommonHelper = void 0;
4
- class A_CommonHelper {
5
- /**
6
- * A simple promise that resolves immediately.
7
- * Can be used in async functions to create a resolved promise.
8
- */
9
- static resolve() {
10
- return new Promise((resolve) => resolve());
11
- }
12
- /**
13
- * Check if a class is inherited from another class
14
- *
15
- * @param childClass
16
- * @param parentClass
17
- * @returns
18
- */
19
- static isInheritedFrom(childClass, parentClass) {
20
- let current = childClass;
21
- // Traverse the prototype chain
22
- while (current) {
23
- if (current === parentClass) {
24
- return true;
25
- }
26
- current = Object.getPrototypeOf(current);
27
- }
28
- return false;
29
- }
30
- /**
31
- * Omit properties from an object or array with nested objects
32
- *
33
- * @param input
34
- * @param paths
35
- * @returns
36
- */
37
- static omitProperties(input, paths) {
38
- // Deep clone the input object or array
39
- const result = JSON.parse(JSON.stringify(input));
40
- // Helper function to recursively remove properties
41
- function removeProperties(target, currPath) {
42
- const currKey = currPath[0];
43
- if (currPath.length === 1) {
44
- // If current path has only one key, delete the property
45
- delete target[currKey];
46
- }
47
- else if (target[currKey] !== undefined && typeof target[currKey] === 'object') {
48
- // If current key exists and is an object, recursively call removeProperties
49
- removeProperties(target[currKey], currPath.slice(1));
50
- }
51
- }
52
- // Iterate through each path and remove corresponding properties from the result
53
- paths.forEach(path => {
54
- const pathKeys = path.split('.');
55
- removeProperties(result, pathKeys);
56
- });
57
- return result;
58
- }
59
- static isObject(item) {
60
- return item !== null && typeof item === 'object' && !Array.isArray(item);
61
- }
62
- static deepMerge(target, source, visited = new Map()) {
63
- if (this.isObject(target) && this.isObject(source)) {
64
- for (const key in source) {
65
- if (this.isObject(source[key])) {
66
- if (!target[key]) {
67
- target[key] = {};
68
- }
69
- // Check if the source object has already been visited
70
- if (!visited.has(source[key])) {
71
- visited.set(source[key], {});
72
- this.deepMerge(target[key], source[key], visited);
73
- }
74
- else {
75
- target[key] = visited.get(source[key]);
76
- }
77
- }
78
- else {
79
- target[key] = source[key];
80
- }
81
- }
82
- }
83
- return target;
84
- }
85
- static deepClone(target) {
86
- // Check if the value is null or undefined
87
- if (target === null || target === undefined) {
88
- return target;
89
- }
90
- // Handle primitive types (string, number, boolean, etc.)
91
- if (typeof target !== 'object') {
92
- return target;
93
- }
94
- // Handle Date
95
- if (target instanceof Date) {
96
- return new Date(target.getTime());
97
- }
98
- // Handle Array
99
- if (Array.isArray(target)) {
100
- return target.map(item => this.deepClone(item));
101
- }
102
- // Handle Function
103
- if (typeof target === 'function') {
104
- return target;
105
- }
106
- // Handle Object
107
- if (target instanceof Object) {
108
- const clone = {};
109
- for (const key in target) {
110
- if (target.hasOwnProperty(key)) {
111
- clone[key] = this.deepClone(target[key]);
112
- }
113
- }
114
- return clone;
115
- }
116
- // For any other cases
117
- throw new Error('Unable to clone the object. Unsupported type.');
118
- }
119
- static deepCloneAndMerge(target, source) {
120
- if ((source === null || source === undefined) &&
121
- (target === null || target === undefined))
122
- return target;
123
- // Check if the value is null or undefined
124
- if ((target === null || target === undefined) &&
125
- source) {
126
- return this.deepClone(source);
127
- }
128
- // Handle primitive types (string, number, boolean, etc.)
129
- if (typeof target !== 'object') {
130
- return target;
131
- }
132
- // Handle Date
133
- if (target instanceof Date) {
134
- return new Date(target.getTime());
135
- }
136
- // Handle Array
137
- if (Array.isArray(target)) {
138
- return target.map(item => this.deepCloneAndMerge(item, source));
139
- }
140
- // Handle Function
141
- if (typeof target === 'function') {
142
- return target;
143
- }
144
- // Handle Object
145
- if (target instanceof Object) {
146
- const clone = {};
147
- for (const key in target) {
148
- if (source[key] !== null
149
- &&
150
- source[key] !== undefined)
151
- clone[key] = this.deepCloneAndMerge(target[key], source[key]);
152
- else
153
- clone[key] = this.deepClone(target[key]);
154
- }
155
- for (const key in source) {
156
- if (target[key] !== undefined
157
- &&
158
- target[key] !== null)
159
- clone[key] = this.deepCloneAndMerge(target[key], source[key]);
160
- else
161
- clone[key] = this.deepClone(source[key]);
162
- }
163
- return clone;
164
- }
165
- // For any other cases
166
- throw new Error('Unable to clone the object. Unsupported type.');
167
- }
168
- }
169
- exports.A_CommonHelper = A_CommonHelper;
170
- //# sourceMappingURL=A_Common.helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A_Common.helper.js","sourceRoot":"","sources":["../../../src/helpers/A_Common.helper.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;IAEvB;;;OAGG;IACH,MAAM,CAAC,OAAO;QACV,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;IACrD,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,CAAC,UAAe,EAAE,WAAgB;QACpD,IAAI,OAAO,GAAG,UAAU,CAAC;QAEzB,+BAA+B;QAC/B,OAAO,OAAO,EAAE,CAAC;YACb,IAAI,OAAO,KAAK,WAAW,EAAE,CAAC;gBAC1B,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,OAAO,GAAG,MAAM,CAAC,cAAc,CAAC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,CAAC,CAAC;;oBAE9D,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;YACjD,CAAC;YACD,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,sBAAsB;QACtB,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IACrE,CAAC;CACJ;AAzMD,wCAyMC"}
@@ -1,35 +0,0 @@
1
- /**
2
- * A_FormatterHelper
3
- *
4
- * Helper class for formatting strings into different cases.
5
- */
6
- export declare class A_FormatterHelper {
7
- /**
8
- * Convert string to UPPER_SNAKE_CASE
9
- *
10
- * @param str
11
- * @returns
12
- */
13
- static toUpperSnakeCase(str: string): string;
14
- /**
15
- * Convert string to camelCase
16
- *
17
- * @param str
18
- * @returns
19
- */
20
- static toCamelCase(str: string): string;
21
- /**
22
- * Convert string to PascalCase
23
- *
24
- * @param str
25
- * @returns
26
- */
27
- static toPascalCase(str: string): string;
28
- /**
29
- * Convert string to kebab-case
30
- *
31
- * @param str
32
- * @returns
33
- */
34
- static toKebabCase(str: string): string;
35
- }
@@ -1,62 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.A_FormatterHelper = void 0;
4
- /**
5
- * A_FormatterHelper
6
- *
7
- * Helper class for formatting strings into different cases.
8
- */
9
- class A_FormatterHelper {
10
- /**
11
- * Convert string to UPPER_SNAKE_CASE
12
- *
13
- * @param str
14
- * @returns
15
- */
16
- static toUpperSnakeCase(str) {
17
- return str
18
- .replace(/([a-z])([A-Z])/g, '$1_$2') // Handle lowercase followed by uppercase
19
- .replace(/[-\s]([A-Z])/g, '_$1') // Handle non-alphabetical followed by uppercase
20
- .replace(/-/g, '_')
21
- .toUpperCase();
22
- }
23
- /**
24
- * Convert string to camelCase
25
- *
26
- * @param str
27
- * @returns
28
- */
29
- static toCamelCase(str) {
30
- return str.toLowerCase().replace(/_([a-z])/g, (match, letter) => letter.toUpperCase());
31
- }
32
- /**
33
- * Convert string to PascalCase
34
- *
35
- * @param str
36
- * @returns
37
- */
38
- static toPascalCase(str) {
39
- const camelCase = this.toCamelCase(str);
40
- return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
41
- }
42
- /**
43
- * Convert string to kebab-case
44
- *
45
- * @param str
46
- * @returns
47
- */
48
- static toKebabCase(str) {
49
- return str
50
- // 1. Replace all non-alphanumeric (underscore, dot, etc.) with a space
51
- .replace(/[^a-zA-Z0-9]+/g, ' ')
52
- // 2. Insert space before any uppercase preceded by lowercase or digit
53
- .replace(/([a-z0-9])([A-Z])/g, '$1 $2')
54
- // 3. Trim spaces at both ends and replace remaining spaces with dashes
55
- .trim()
56
- .replace(/\s+/g, '-')
57
- // 4. Lowercase everything
58
- .toLowerCase();
59
- }
60
- }
61
- exports.A_FormatterHelper = A_FormatterHelper;
62
- //# sourceMappingURL=A_Formatter.helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A_Formatter.helper.js","sourceRoot":"","sources":["../../../src/helpers/A_Formatter.helper.ts"],"names":[],"mappings":";;;AACA;;;;GAIG;AACH,MAAa,iBAAiB;IAC1B;;;;;OAKG;IACH,MAAM,CAAC,gBAAgB,CAAC,GAAW;QAC/B,OAAO,GAAG;aACL,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAE,yCAAyC;aAC9E,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC,CAAM,gDAAgD;aACrF,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;aAClB,WAAW,EAAE,CAAC;IACvB,CAAC;IACD;;;;;OAKG;IACH,MAAM,CAAC,WAAW,CAAC,GAAW;QAC1B,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;IAC3F,CAAC;IACD;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CAAC,GAAW;QAC3B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACxC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAClE,CAAC;IACD;;;;;OAKG;IACH,MAAM,CAAC,WAAW,CAAC,GAAW;QAC1B,OAAO,GAAG;YACN,uEAAuE;aACtE,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC;YAC/B,sEAAsE;aACrE,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC;YACvC,uEAAuE;aACtE,IAAI,EAAE;aACN,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;YACrB,0BAA0B;aACzB,WAAW,EAAE,CAAC;IACvB,CAAC;CACJ;AAnDD,8CAmDC"}
@@ -1,29 +0,0 @@
1
- export type A_ID_TYPES__TimeId_Parts = {
2
- timestamp: Date;
3
- random: string;
4
- };
5
- export declare class A_IdentityHelper {
6
- /**
7
- * Generates a short, time-based unique ID.
8
- * Encodes current time (ms since epoch) and random bits in base36.
9
- * Example: "mb4f1g-7f9a1c"
10
- */
11
- static generateTimeId(parts?: A_ID_TYPES__TimeId_Parts): string;
12
- /**
13
- * Parses a short ID back into its parts.
14
- * Returns an object with the original timestamp (as Date) and random string.
15
- */
16
- static parseTimeId(id: string): A_ID_TYPES__TimeId_Parts;
17
- /**
18
- * Format a number with leading zeros to a fixed length
19
- *
20
- * @param number
21
- * @param maxZeros
22
- * @returns
23
- */
24
- static formatWithLeadingZeros(number: any, maxZeros?: number): string;
25
- /**
26
- * Remove leading zeros from a formatted number
27
- */
28
- static removeLeadingZeros(formattedNumber: any): string;
29
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.A_IdentityHelper = void 0;
4
- class A_IdentityHelper {
5
- /**
6
- * Generates a short, time-based unique ID.
7
- * Encodes current time (ms since epoch) and random bits in base36.
8
- * Example: "mb4f1g-7f9a1c"
9
- */
10
- static generateTimeId(parts = { timestamp: new Date(), random: Math.random().toString(36).slice(2, 8) }) {
11
- const time = parts.timestamp.getTime().toString(36); // base36-encoded timestamp
12
- const random = parts.random; // use provided random string
13
- return `${time}-${random}`;
14
- }
15
- /**
16
- * Parses a short ID back into its parts.
17
- * Returns an object with the original timestamp (as Date) and random string.
18
- */
19
- static parseTimeId(id) {
20
- const [timePart, randomPart] = id.split('-');
21
- const timestamp = new Date(parseInt(timePart, 36));
22
- return { timestamp, random: randomPart };
23
- }
24
- /**
25
- * Format a number with leading zeros to a fixed length
26
- *
27
- * @param number
28
- * @param maxZeros
29
- * @returns
30
- */
31
- static formatWithLeadingZeros(number, maxZeros = 10) {
32
- const formattedNumber = String(number).padStart(maxZeros + 1, '0');
33
- return formattedNumber.slice(-maxZeros);
34
- }
35
- /**
36
- * Remove leading zeros from a formatted number
37
- */
38
- static removeLeadingZeros(formattedNumber) {
39
- return String(Number(formattedNumber)); // Convert to number and back to string to remove leading zeros
40
- }
41
- }
42
- exports.A_IdentityHelper = A_IdentityHelper;
43
- //# sourceMappingURL=A_Identity.helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A_Identity.helper.js","sourceRoot":"","sources":["../../../src/helpers/A_Identity.helper.ts"],"names":[],"mappings":";;;AAOA,MAAa,gBAAgB;IACzB;;;;KAIC;IACD,MAAM,CAAC,cAAc,CACjB,QAAkC,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;QAE3G,MAAM,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,2BAA2B;QAChF,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,6BAA6B;QAC1D,OAAO,GAAG,IAAI,IAAI,MAAM,EAAE,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,EAAU;QACzB,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC7C,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;QACnD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IAC7C,CAAC;IAGD;;;;;;OAMG;IACH,MAAM,CAAC,sBAAsB,CAAC,MAAM,EAAE,QAAQ,GAAG,EAAE;QAC/C,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;QACnE,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,eAAe;QACrC,OAAO,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,+DAA+D;IAC3G,CAAC;CAGJ;AA7CD,4CA6CC"}
@@ -1,207 +0,0 @@
1
- import { A_TYPES__Feature_Constructor, A_TYPES__FeatureAvailableComponents, A_TYPES__FeatureExtendDecoratorTarget } from "../global/A-Feature/A-Feature.types";
2
- import { A_TYPES__Error_Constructor, A_TYPES__Error_Init } from "../global/A-Error/A_Error.types";
3
- import { A_Component } from "../global/A-Component/A-Component.class";
4
- import { A_ComponentMeta } from "../global/A-Component/A-Component.meta";
5
- import { A_TYPES__Component_Constructor } from "../global/A-Component/A-Component.types";
6
- import { A_Container } from "../global/A-Container/A-Container.class";
7
- import { A_ContainerMeta } from "../global/A-Container/A-Container.meta";
8
- import { A_TYPES__Container_Constructor } from "../global/A-Container/A-Container.types";
9
- import { A_Entity } from "../global/A-Entity/A-Entity.class";
10
- import { A_EntityMeta } from "../global/A-Entity/A-Entity.meta";
11
- import { A_TYPES__Entity_Constructor } from "../global/A-Entity/A-Entity.types";
12
- import { A_Feature } from "../global/A-Feature/A-Feature.class";
13
- import { A_Fragment } from "../global/A-Fragment/A-Fragment.class";
14
- import { A_TYPES__Fragment_Constructor } from "../global/A-Fragment/A-Fragment.types";
15
- import { A_Scope } from "../global/A-Scope/A-Scope.class";
16
- import { A_TYPES__Caller_Constructor } from "../global/A-Caller/A_Caller.types";
17
- import { A_Error } from "../global/A-Error/A_Error.class";
18
- import { A_TYPES__AbstractionAvailableComponents } from "../global/A-Abstraction/A-Abstraction.types";
19
- import { A_TYPES__Scope_Constructor, A_TYPES__ScopeLinkedComponents, A_TYPES__ScopeLinkedConstructors } from "../global/A-Scope/A-Scope.types";
20
- import { A_TYPES__InjectableTargets } from "../global/A-Inject/A-Inject.types";
21
- export declare class A_TypeGuards {
22
- /**
23
- * Check if value is a string
24
- *
25
- * @param value
26
- * @returns
27
- */
28
- static isString(value: any): value is string;
29
- /**
30
- * Check if value is a number
31
- *
32
- * @param value
33
- * @returns
34
- */
35
- static isNumber(value: any): value is number;
36
- /**
37
- * Check if value is a boolean
38
- *
39
- * @param value
40
- * @returns
41
- */
42
- static isBoolean(value: any): value is boolean;
43
- /**
44
- * Check if value is an array
45
- *
46
- * @param value
47
- * @returns
48
- */
49
- static isArray(value: any): value is Array<any>;
50
- /**
51
- * Check if value is an object
52
- *
53
- * @param value
54
- * @returns
55
- */
56
- static isObject<T extends Object = Object>(value: any): value is T;
57
- /**
58
- * Check if value is a function
59
- *
60
- * @param value
61
- * @returns
62
- */
63
- static isFunction(value: any): value is Function;
64
- static isUndefined(value: any): value is undefined;
65
- static isRegExp(value: any): value is RegExp;
66
- /**
67
- * Type guard to check if the constructor is of type A_Container
68
- *
69
- * @param ctor
70
- * @returns
71
- */
72
- static isContainerConstructor(ctor: any): ctor is A_TYPES__Container_Constructor;
73
- /**
74
- * Type guard to check if the constructor is of type A_Component
75
- *
76
- * @param ctor
77
- * @returns
78
- */
79
- static isComponentConstructor(ctor: any): ctor is A_TYPES__Component_Constructor;
80
- /**
81
- * Type guard to check if the constructor is of type A_Fragment
82
- *
83
- * @param ctor
84
- * @returns
85
- */
86
- static isFragmentConstructor(ctor: any): ctor is A_TYPES__Fragment_Constructor;
87
- /**
88
- * Type guard to check if the constructor is of type A_Entity
89
- *
90
- * @param ctor
91
- * @returns
92
- */
93
- static isEntityConstructor(ctor: any): ctor is A_TYPES__Entity_Constructor;
94
- /**
95
- * Type guard to check if the constructor is of type A_Scope
96
- *
97
- * @param ctor
98
- * @returns
99
- */
100
- static isScopeConstructor(ctor: any): ctor is A_TYPES__Scope_Constructor;
101
- /**
102
- * Type guard to check if the constructor is of type A_Scope
103
- *
104
- * @param ctor
105
- * @returns
106
- */
107
- static isErrorConstructor(ctor: any): ctor is A_TYPES__Error_Constructor;
108
- /**
109
- * Type guard to check if the constructor is of type A_Feature
110
- *
111
- * @param ctor
112
- * @returns
113
- */
114
- static isFeatureConstructor(ctor: any): ctor is A_TYPES__Feature_Constructor;
115
- /**
116
- * Type guard to check if the constructor is of type A_Caller
117
- *
118
- * @param ctor
119
- * @returns
120
- */
121
- static isCallerConstructor(ctor: any): ctor is A_TYPES__Caller_Constructor;
122
- /**
123
- * Type guard to check if the instance is of type A_Container
124
- *
125
- * @param instance
126
- * @returns
127
- */
128
- static isContainerInstance(instance: any): instance is A_Container;
129
- /**
130
- * Type guard to check if the instance is of type A_Component
131
- *
132
- * @param instance
133
- * @returns
134
- */
135
- static isComponentInstance(instance: any): instance is A_Component;
136
- /**
137
- * Type guard to check if the instance is of type A_Feature
138
- *
139
- * @param instance
140
- * @returns
141
- */
142
- static isFeatureInstance(instance: any): instance is A_Feature;
143
- /**
144
- * Type guard to check if the instance is of type A_Fragment
145
- *
146
- * @param instance
147
- * @returns
148
- */
149
- static isFragmentInstance(instance: any): instance is A_Fragment;
150
- /**
151
- * Type guard to check if the instance is of type A_Entity
152
- *
153
- * @param instance
154
- * @returns
155
- */
156
- static isEntityInstance(instance: any): instance is A_Entity;
157
- /**
158
- * Type guard to check if the instance is of type A_Scope
159
- *
160
- * @param instance
161
- * @returns
162
- */
163
- static isScopeInstance(instance: any): instance is A_Scope;
164
- /**
165
- * Type guard to check if the instance is of type A_Error
166
- *
167
- * @param instance
168
- * @returns
169
- */
170
- static isErrorInstance(instance: any): instance is A_Error;
171
- /**
172
- * Type guard to check if the instance is of type A_ComponentMeta
173
- *
174
- * @param instance
175
- * @returns
176
- */
177
- static isComponentMetaInstance(instance: any): instance is A_ComponentMeta;
178
- /**
179
- * Type guard to check if the instance is of type A_ContainerMeta
180
- *
181
- * @param instance
182
- * @returns
183
- */
184
- static isContainerMetaInstance(instance: any): instance is A_ContainerMeta;
185
- /**
186
- * Type guard to check if the instance is of type A_EntityMeta
187
- *
188
- * @param instance
189
- * @returns
190
- */
191
- static isEntityMetaInstance(instance: any): instance is A_EntityMeta;
192
- static isConstructorAllowedForScopeAllocation(target: any): target is A_TYPES__ScopeLinkedConstructors;
193
- static isInstanceAllowedForScopeAllocation(target: any): target is A_TYPES__ScopeLinkedComponents;
194
- static isConstructorAvailableForAbstraction(target: any): target is A_TYPES__AbstractionAvailableComponents;
195
- static isTargetAvailableForInjection(target: any): target is A_TYPES__InjectableTargets;
196
- static isAllowedForFeatureCall(param: any): param is A_TYPES__FeatureAvailableComponents;
197
- static isAllowedForFeatureDefinition(param: any): param is A_TYPES__FeatureAvailableComponents;
198
- static isAllowedForFeatureExtension(param: any): param is A_TYPES__FeatureExtendDecoratorTarget;
199
- static isAllowedForAbstractionDefinition(param: any): param is A_TYPES__AbstractionAvailableComponents;
200
- /**
201
- * Allows to check if the provided param is of constructor type.
202
- *
203
- * @param param
204
- * @returns
205
- */
206
- static isConstructorType<T extends A_TYPES__Error_Init>(param: any): param is T;
207
- }