@adaas/a-concept 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/examples/simple/components/A.component.d.ts +4 -2
- package/dist/examples/simple/components/A.component.js +7 -4
- package/dist/examples/simple/components/A.component.js.map +1 -1
- package/dist/examples/simple/components/B.component.d.ts +6 -2
- package/dist/examples/simple/components/B.component.js +18 -7
- package/dist/examples/simple/components/B.component.js.map +1 -1
- package/dist/examples/simple/concept.js +59 -32
- package/dist/examples/simple/concept.js.map +1 -1
- package/dist/examples/simple/containers/Main.container.d.ts +1 -2
- package/dist/examples/simple/containers/Main.container.js +18 -5
- package/dist/examples/simple/containers/Main.container.js.map +1 -1
- package/dist/examples/simple-http-server/components/http-error-handler.component.d.ts +2 -1
- package/dist/examples/simple-http-server/components/http-error-handler.component.js +3 -1
- package/dist/examples/simple-http-server/components/http-error-handler.component.js.map +1 -1
- package/dist/examples/simple-http-server/components/http-request-handler.component.d.ts +2 -1
- package/dist/examples/simple-http-server/components/http-request-handler.component.js +2 -1
- package/dist/examples/simple-http-server/components/http-request-handler.component.js.map +1 -1
- package/dist/examples/simple-http-server/containers/http-server.container.d.ts +1 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/src/base/A-Config/A-Config.container.d.ts +1 -3
- package/dist/src/base/A-Config/A-Config.container.js +6 -22
- package/dist/src/base/A-Config/A-Config.container.js.map +1 -1
- package/dist/src/base/A-Config/A-Config.context.d.ts +1 -0
- package/dist/src/base/A-Config/A-Config.context.js +20 -2
- package/dist/src/base/A-Config/A-Config.context.js.map +1 -1
- package/dist/src/base/A-Config/A-Config.types.d.ts +2 -2
- package/dist/src/base/A-Config/components/ConfigReader.component.d.ts +2 -1
- package/dist/src/base/A-Config/components/ConfigReader.component.js +3 -1
- package/dist/src/base/A-Config/components/ConfigReader.component.js.map +1 -1
- package/dist/src/base/A-Errors/A-Errors.component.d.ts +2 -1
- package/dist/src/base/A-Errors/A-Errors.component.js +3 -1
- package/dist/src/base/A-Errors/A-Errors.component.js.map +1 -1
- package/dist/src/base/A-Logger/A-Logger.component.d.ts +4 -2
- package/dist/src/base/A-Logger/A-Logger.component.js +11 -3
- package/dist/src/base/A-Logger/A-Logger.component.js.map +1 -1
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js.map +1 -1
- package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.js +9 -9
- package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.js.map +1 -1
- package/dist/src/decorators/A-Inject/A-Inject.decorator.d.ts +0 -2
- package/dist/src/decorators/A-Inject/A-Inject.decorator.js +4 -2
- package/dist/src/decorators/A-Inject/A-Inject.decorator.js.map +1 -1
- package/dist/src/global/A-Component/A-Component.class.d.ts +28 -1
- package/dist/src/global/A-Component/A-Component.class.js +22 -0
- package/dist/src/global/A-Component/A-Component.class.js.map +1 -1
- package/dist/src/global/A-Component/A-Component.meta.d.ts +8 -1
- package/dist/src/global/A-Component/A-Component.meta.js +26 -0
- package/dist/src/global/A-Component/A-Component.meta.js.map +1 -1
- package/dist/src/global/A-Component/A-Component.types.d.ts +43 -6
- package/dist/src/global/A-Component/A-Component.types.js +5 -0
- package/dist/src/global/A-Component/A-Component.types.js.map +1 -1
- package/dist/src/global/A-Concept/A_Concept.class.d.ts +7 -7
- package/dist/src/global/A-Concept/A_Concept.class.js +1 -2
- package/dist/src/global/A-Concept/A_Concept.class.js.map +1 -1
- package/dist/src/global/A-Container/A-Container.class.d.ts +5 -4
- package/dist/src/global/A-Container/A-Container.class.js +13 -24
- package/dist/src/global/A-Container/A-Container.class.js.map +1 -1
- package/dist/src/global/A-Container/A-Container.meta.d.ts +0 -3
- package/dist/src/global/A-Container/A-Container.meta.js +0 -46
- package/dist/src/global/A-Container/A-Container.meta.js.map +1 -1
- package/dist/src/global/A-Context/A-Context.class.d.ts +35 -5
- package/dist/src/global/A-Context/A-Context.class.js +135 -53
- package/dist/src/global/A-Context/A-Context.class.js.map +1 -1
- package/dist/src/global/A-Context/A-Context.types.d.ts +0 -12
- package/dist/src/global/A-Context/A-Context.types.js +0 -1
- package/dist/src/global/A-Entity/A-Entity.class.d.ts +28 -4
- package/dist/src/global/A-Entity/A-Entity.class.js +23 -3
- package/dist/src/global/A-Entity/A-Entity.class.js.map +1 -1
- package/dist/src/global/A-Entity/A-Entity.meta.d.ts +4 -0
- package/dist/src/global/A-Entity/A-Entity.meta.js +8 -0
- package/dist/src/global/A-Entity/A-Entity.meta.js.map +1 -0
- package/dist/src/global/A-Entity/A-Entity.types.d.ts +43 -0
- package/dist/src/global/A-Entity/A-Entity.types.js +13 -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 +11 -1
- package/dist/src/global/A-Feature/A-Feature.class.js +48 -12
- package/dist/src/global/A-Feature/A-Feature.class.js.map +1 -1
- package/dist/src/global/A-Feature/A-Feature.types.d.ts +5 -4
- package/dist/src/global/A-Feature/A-Feature.types.js.map +1 -1
- package/dist/src/global/A-Fragment/A-Fragment.class.js +1 -2
- package/dist/src/global/A-Fragment/A-Fragment.class.js.map +1 -1
- package/dist/src/global/A-Meta/A-Meta.class.d.ts +75 -1
- package/dist/src/global/A-Meta/A-Meta.class.js +100 -10
- package/dist/src/global/A-Meta/A-Meta.class.js.map +1 -1
- package/dist/src/global/A-Scope/A-Scope.class.d.ts +15 -6
- package/dist/src/global/A-Scope/A-Scope.class.js +53 -17
- package/dist/src/global/A-Scope/A-Scope.class.js.map +1 -1
- package/examples/simple/components/A.component.ts +6 -3
- package/examples/simple/components/B.component.ts +19 -6
- package/examples/simple/concept.ts +65 -33
- package/examples/simple/containers/Main.container.ts +28 -7
- package/examples/simple-http-server/components/http-error-handler.component.ts +5 -2
- package/examples/simple-http-server/components/http-request-handler.component.ts +3 -1
- package/index.ts +6 -1
- package/package.json +1 -1
- package/src/base/A-Config/A-Config.container.ts +5 -8
- package/src/base/A-Config/A-Config.context.ts +10 -2
- package/src/base/A-Config/A-Config.types.ts +2 -2
- package/src/base/A-Config/components/ConfigReader.component.ts +5 -2
- package/src/base/A-Errors/A-Errors.component.ts +3 -2
- package/src/base/A-Logger/A-Logger.component.ts +21 -3
- package/src/decorators/A-Feature/A-Feature-Define.decorator.ts +0 -1
- package/src/decorators/A-Feature/A-Feature-Extend.decorator.ts +15 -10
- package/src/decorators/A-Inject/A-Inject.decorator.ts +13 -11
- package/src/global/A-Component/A-Component.class.ts +56 -1
- package/src/global/A-Component/A-Component.meta.ts +40 -1
- package/src/global/A-Component/A-Component.types.ts +51 -19
- package/src/global/A-Concept/A_Concept.class.ts +2 -2
- package/src/global/A-Container/A-Container.class.ts +22 -34
- package/src/global/A-Container/A-Container.meta.ts +0 -64
- package/src/global/A-Context/A-Context.class.ts +240 -79
- package/src/global/A-Context/A-Context.types.ts +0 -15
- package/src/global/A-Entity/A-Entity.class.ts +65 -8
- package/src/global/A-Entity/A-Entity.meta.ts +9 -0
- package/src/global/A-Entity/A-Entity.types.ts +58 -0
- package/src/global/A-Feature/A-Feature.class.ts +62 -20
- package/src/global/A-Feature/A-Feature.types.ts +8 -2
- package/src/global/A-Fragment/A-Fragment.class.ts +1 -5
- package/src/global/A-Meta/A-Meta.class.ts +114 -22
- package/src/global/A-Scope/A-Scope.class.ts +93 -33
|
@@ -5,11 +5,11 @@ export type A_TYPES__ConfigContainerConstructor<T extends string> = {
|
|
|
5
5
|
/**
|
|
6
6
|
* Allows to define the names of variable to be loaded
|
|
7
7
|
*/
|
|
8
|
-
variables
|
|
8
|
+
variables: Array<T>;
|
|
9
9
|
/**
|
|
10
10
|
* Allows to set the default values for the variables
|
|
11
11
|
*/
|
|
12
|
-
defaults
|
|
12
|
+
defaults: {
|
|
13
13
|
[key in T]?: any;
|
|
14
14
|
};
|
|
15
15
|
} & A_TYPES__FragmentConstructor;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { A_Scope } from "../../../global/A-Scope/A-Scope.class";
|
|
2
|
+
import { A_Component } from "../../../global/A-Component/A-Component.class";
|
|
2
3
|
/**
|
|
3
4
|
* Config Reader
|
|
4
5
|
*/
|
|
5
|
-
export declare class ConfigReader {
|
|
6
|
+
export declare class ConfigReader extends A_Component {
|
|
6
7
|
protected scope: A_Scope;
|
|
7
8
|
constructor(scope: A_Scope);
|
|
8
9
|
/**
|
|
@@ -21,11 +21,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
exports.ConfigReader = void 0;
|
|
22
22
|
const A_Scope_class_1 = require("../../../global/A-Scope/A-Scope.class");
|
|
23
23
|
const A_Inject_decorator_1 = require("../../../decorators/A-Inject/A-Inject.decorator");
|
|
24
|
+
const A_Component_class_1 = require("../../../global/A-Component/A-Component.class");
|
|
24
25
|
/**
|
|
25
26
|
* Config Reader
|
|
26
27
|
*/
|
|
27
|
-
let ConfigReader = class ConfigReader {
|
|
28
|
+
let ConfigReader = class ConfigReader extends A_Component_class_1.A_Component {
|
|
28
29
|
constructor(scope) {
|
|
30
|
+
super();
|
|
29
31
|
this.scope = scope;
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigReader.component.js","sourceRoot":"","sources":["../../../../../src/base/A-Config/components/ConfigReader.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,iFAAwE;AACxE,gGAAmF;
|
|
1
|
+
{"version":3,"file":"ConfigReader.component.js","sourceRoot":"","sources":["../../../../../src/base/A-Config/components/ConfigReader.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,iFAAwE;AACxE,gGAAmF;AACnF,6FAAoF;AAIpF;;GAEG;AACI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,+BAAW;IAEzC,YACiC,KAAc;QAE3C,KAAK,EAAE,CAAC;QAFqB,UAAK,GAAL,KAAK,CAAS;IAG/C,CAAC;IAGD;;;OAGG;IACH,OAAO,CAAoB,QAAgB;QACvC,OAAO,QAAuB,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACG,IAAI;6DACN,YAAsB,EAAE;YAExB,OAAO,EAAoB,CAAC;QAChC,CAAC;KAAA;CACJ,CAAA;AA3BY,oCAAY;uBAAZ,YAAY;IAGhB,WAAA,IAAA,6BAAQ,EAAC,uBAAO,CAAC,CAAA;GAHb,YAAY,CA2BxB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { A_Scope } from "../../global/A-Scope/A-Scope.class";
|
|
2
2
|
import { A_Errors } from "./A-Errors.context";
|
|
3
3
|
import { A_CONSTANTS__ERROR_CODES, A_Error, A_ServerError } from "@adaas/a-utils";
|
|
4
|
-
|
|
4
|
+
import { A_Component } from "../../global/A-Component/A-Component.class";
|
|
5
|
+
export declare class A_ErrorsManager extends A_Component {
|
|
5
6
|
protected scope: A_Scope;
|
|
6
7
|
protected errors: A_Errors;
|
|
7
8
|
constructor(scope: A_Scope, errors: A_Errors);
|
|
@@ -15,8 +15,10 @@ const A_Inject_decorator_1 = require("../../decorators/A-Inject/A-Inject.decorat
|
|
|
15
15
|
const A_Errors_context_1 = require("./A-Errors.context");
|
|
16
16
|
const a_utils_1 = require("@adaas/a-utils");
|
|
17
17
|
const A_Context_class_1 = require("../../global/A-Context/A-Context.class");
|
|
18
|
-
|
|
18
|
+
const A_Component_class_1 = require("../../global/A-Component/A-Component.class");
|
|
19
|
+
let A_ErrorsManager = class A_ErrorsManager extends A_Component_class_1.A_Component {
|
|
19
20
|
constructor(scope, errors) {
|
|
21
|
+
super();
|
|
20
22
|
this.scope = scope;
|
|
21
23
|
this.errors = errors;
|
|
22
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Errors.component.js","sourceRoot":"","sources":["../../../../src/base/A-Errors/A-Errors.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iFAAwE;AACxE,gGAAmF;AACnF,yD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eAAe,CA+F3B"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { A_Error } from "@adaas/a-utils";
|
|
2
2
|
import { A_Config } from "../A-Config/A-Config.context";
|
|
3
3
|
import { A_Scope } from "../../global/A-Scope/A-Scope.class";
|
|
4
|
-
|
|
4
|
+
import { A_Component } from "../../global/A-Component/A-Component.class";
|
|
5
|
+
export declare class A_Logger extends A_Component {
|
|
5
6
|
protected scope: A_Scope;
|
|
6
7
|
protected config: A_Config;
|
|
7
8
|
constructor(scope: A_Scope, config: A_Config);
|
|
@@ -18,7 +19,8 @@ export declare class A_Logger {
|
|
|
18
19
|
};
|
|
19
20
|
get scopeLength(): number;
|
|
20
21
|
compile(color: keyof typeof this.colors, ...args: any[]): Array<string>;
|
|
21
|
-
log(...args: any[]):
|
|
22
|
+
log(color: keyof typeof this.colors, ...args: any[]): any;
|
|
23
|
+
log(...args: any[]): any;
|
|
22
24
|
warning(...args: any[]): void;
|
|
23
25
|
error(...args: any[]): void;
|
|
24
26
|
protected log_A_Error(error: A_Error): void;
|
|
@@ -14,8 +14,10 @@ const A_Inject_decorator_1 = require("../../decorators/A-Inject/A-Inject.decorat
|
|
|
14
14
|
const a_utils_1 = require("@adaas/a-utils");
|
|
15
15
|
const A_Config_context_1 = require("../A-Config/A-Config.context");
|
|
16
16
|
const A_Scope_class_1 = require("../../global/A-Scope/A-Scope.class");
|
|
17
|
-
|
|
17
|
+
const A_Component_class_1 = require("../../global/A-Component/A-Component.class");
|
|
18
|
+
let A_Logger = class A_Logger extends A_Component_class_1.A_Component {
|
|
18
19
|
constructor(scope, config) {
|
|
20
|
+
super();
|
|
19
21
|
this.scope = scope;
|
|
20
22
|
this.config = config;
|
|
21
23
|
this.colors = {
|
|
@@ -60,10 +62,16 @@ let A_Logger = class A_Logger {
|
|
|
60
62
|
: '\x1b[0m')
|
|
61
63
|
];
|
|
62
64
|
}
|
|
63
|
-
log(...args) {
|
|
65
|
+
log(param1, ...args) {
|
|
64
66
|
if (!this.config.get('CONFIG_VERBOSE'))
|
|
65
67
|
return;
|
|
66
|
-
|
|
68
|
+
if (typeof param1 === 'string' && this.colors[param1]) {
|
|
69
|
+
console.log(...this.compile(param1, ...args));
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
console.log(...this.compile('blue', param1, ...args));
|
|
74
|
+
}
|
|
67
75
|
}
|
|
68
76
|
warning(...args) {
|
|
69
77
|
if (!this.config.get('CONFIG_VERBOSE'))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Logger.component.js","sourceRoot":"","sources":["../../../../src/base/A-Logger/A-Logger.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAAmF;AACnF,4CAAyC;AACzC,mEAAwD;AACxD,iFAAwE;
|
|
1
|
+
{"version":3,"file":"A-Logger.component.js","sourceRoot":"","sources":["../../../../src/base/A-Logger/A-Logger.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAAmF;AACnF,4CAAyC;AACzC,mEAAwD;AACxD,iFAAwE;AACxE,6FAAoF;AAI7E,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,+BAAW;IAErC,YACuB,KAAwB,EACvB,MAA0B;QAE9C,KAAK,EAAE,CAAC;QAHqB,UAAK,GAAL,KAAK,CAAS;QACb,WAAM,GAAN,MAAM,CAAU;QAKzC,WAAM,GAAG;YACd,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;YACV,GAAG,EAAE,IAAI;YACT,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACJ,CAAA;IAZV,CAAC;IAeD,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;IAClC,CAAC;IAGD,OAAO,CACH,KAA+B,EAC/B,GAAG,IAAW;QA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,EAAE,CAAC;IACnD,CAAC;CACJ,CAAA;AAlLY,4BAAQ;mBAAR,QAAQ;IAGZ,WAAA,IAAA,6BAAQ,EAAC,uBAAO,CAAC,CAAA;IACjB,WAAA,IAAA,6BAAQ,EAAC,2BAAQ,CAAC,CAAA;GAJd,QAAQ,CAkLpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Feature-Define.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Feature/A-Feature-Define.decorator.ts"],"names":[],"mappings":";;AAsBA,
|
|
1
|
+
{"version":3,"file":"A-Feature-Define.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Feature/A-Feature-Define.decorator.ts"],"names":[],"mappings":";;AAsBA,4CAiCC;AAlDD,6FAAkG;AAClG,uFAA8E;AAG9E;;;;;;;;;;;;GAYG;AACH,SAAgB,gBAAgB,CAC5B,SAAqD,EAAE;IAEvD,OAAO,UACH,MAAwB,EACxB,WAAmB,EACnB,UAAiD;QAGjD,+CAA+C;QAC/C,MAAM,WAAW,GAAG,2BAAS;aACxB,IAAI,CAAC,MAAM,CAAC;aACZ,GAAG,CAAC,6CAAyB,CAAC,QAAQ,CAAC;eACrC,IAAI,GAAG,EAAE,CAAC;QAGjB,uEAAuE;QACvE,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE;YACzB,OAAO,EAAE,WAAW;YACpB,MAAM,kCACC,MAAM,KACT,IAAI,EAAE,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,WAAW,IAAI,MAAM,CAAC,IAAI,EAAE,GACnE;SACJ,CAAC,CAAC;QAEH,wEAAwE;QACxE,2BAAS;aACJ,IAAI,CAAC,MAAM,CAAC;aACZ,GAAG,CACA,6CAAyB,CAAC,QAAQ,EAClC,WAAW,CACd,CAAC;IACV,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.A_Feature_Extend = A_Feature_Extend;
|
|
4
4
|
const A_Component_types_1 = require("../../global/A-Component/A-Component.types");
|
|
5
5
|
const A_Context_class_1 = require("../../global/A-Context/A-Context.class");
|
|
6
|
+
const A_Meta_class_1 = require("../../global/A-Meta/A-Meta.class");
|
|
6
7
|
/**
|
|
7
8
|
* A-Extend decorator
|
|
8
9
|
*
|
|
@@ -18,21 +19,20 @@ const A_Context_class_1 = require("../../global/A-Context/A-Context.class");
|
|
|
18
19
|
*/
|
|
19
20
|
function A_Feature_Extend(config = {}) {
|
|
20
21
|
return function (target, propertyKey, descriptor) {
|
|
22
|
+
const extensionName = config.name || propertyKey;
|
|
21
23
|
// Get the existed metadata or create a new one
|
|
22
24
|
const existedMeta = A_Context_class_1.A_Context
|
|
23
25
|
.meta(target)
|
|
24
26
|
.get(A_Component_types_1.A_TYPES__ComponentMetaKey.EXTENSIONS)
|
|
25
|
-
|| new
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
|| new A_Meta_class_1.A_Meta();
|
|
28
|
+
const existedMetaValue = existedMeta.get(extensionName) || [];
|
|
29
|
+
// Add the new method to the metadata
|
|
30
|
+
existedMetaValue.push({
|
|
31
|
+
name: extensionName,
|
|
29
32
|
handler: propertyKey,
|
|
30
|
-
container: config.container
|
|
31
|
-
? typeof config.container === 'string'
|
|
32
|
-
? config.container
|
|
33
|
-
: config.container.name
|
|
34
|
-
: '*',
|
|
35
33
|
});
|
|
34
|
+
// Set the metadata of the method to define a custom Feature with name
|
|
35
|
+
existedMeta.set(extensionName, existedMetaValue);
|
|
36
36
|
// Update the metadata of the container with the new Feature definition
|
|
37
37
|
A_Context_class_1.A_Context
|
|
38
38
|
.meta(target)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Feature-Extend.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Feature/A-Feature-Extend.decorator.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"A-Feature-Extend.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Feature/A-Feature-Extend.decorator.ts"],"names":[],"mappings":";;AA2BA,4CAkCC;AAxDD,6FAAkG;AAClG,uFAA8E;AAG9E,8EAAqE;AAKrE;;;;;;;;;;;;GAYG;AACH,SAAgB,gBAAgB,CAC5B,SAAoD,EAAE;IAEtD,OAAO,UACH,MAAmB,EACnB,WAAmB,EACnB,UAAgD;QAGhD,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,IAAI,WAAW,CAAA;QAEhD,+CAA+C;QAC/C,MAAM,WAAW,GAAG,2BAAS;aACxB,IAAI,CAAC,MAAM,CAAC;aACZ,GAAG,CAAC,6CAAyB,CAAC,UAAU,CAAC;eACvC,IAAI,qBAAM,EAAE,CAAC;QAGpB,MAAM,gBAAgB,GAAG,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;QAE9D,qCAAqC;QACrC,gBAAgB,CAAC,IAAI,CAAC;YAClB,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,WAAW;SACvB,CAAC,CAAC;QAEH,sEAAsE;QACtE,WAAW,CAAC,GAAG,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;QAEjD,wEAAwE;QACxE,2BAAS;aACJ,IAAI,CAAC,MAAM,CAAC;aACZ,GAAG,CAAC,6CAAyB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAChE,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { A_Component } from "../../global/A-Component/A-Component.class";
|
|
2
|
-
import { A_Container } from "../../global/A-Container/A-Container.class";
|
|
3
2
|
import { A_TYPES__A_InjectDecoratorReturn } from "./A-Inject.decorator.types";
|
|
4
3
|
import { A_Fragment } from "../../global/A-Fragment/A-Fragment.class";
|
|
5
4
|
import { A_Scope } from "../../global/A-Scope/A-Scope.class";
|
|
@@ -19,6 +18,5 @@ export declare function A_Inject(component: typeof A_Component): A_TYPES__A_Inje
|
|
|
19
18
|
export declare function A_Inject(component: {
|
|
20
19
|
new (...args: any[]): any;
|
|
21
20
|
}): A_TYPES__A_InjectDecoratorReturn;
|
|
22
|
-
export declare function A_Inject(container: typeof A_Container): A_TYPES__A_InjectDecoratorReturn;
|
|
23
21
|
export declare function A_Inject(fragment: typeof A_Fragment): A_TYPES__A_InjectDecoratorReturn;
|
|
24
22
|
export declare function A_Inject<T extends Array<typeof A_Fragment>>(fragments: T): A_TYPES__A_InjectDecoratorReturn;
|
|
@@ -3,14 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.A_Inject = A_Inject;
|
|
4
4
|
const A_Context_class_1 = require("../../global/A-Context/A-Context.class");
|
|
5
5
|
const A_Component_types_1 = require("../../global/A-Component/A-Component.types");
|
|
6
|
+
const A_Meta_class_1 = require("../../global/A-Meta/A-Meta.class");
|
|
6
7
|
// ====================== BASE FUNCTION ======================
|
|
7
8
|
function A_Inject(param1) {
|
|
8
9
|
return function (target, methodName, parameterIndex) {
|
|
9
|
-
const method = methodName ? methodName : 'constructor';
|
|
10
|
+
const method = methodName ? String(methodName) : 'constructor';
|
|
11
|
+
console.log('target: ', target);
|
|
10
12
|
const existedMeta = A_Context_class_1.A_Context
|
|
11
13
|
.meta(target)
|
|
12
14
|
.get(A_Component_types_1.A_TYPES__ComponentMetaKey.INJECTIONS)
|
|
13
|
-
|| new
|
|
15
|
+
|| new A_Meta_class_1.A_Meta();
|
|
14
16
|
const paramsArray = existedMeta.get(method) || [];
|
|
15
17
|
paramsArray[parameterIndex] = param1;
|
|
16
18
|
existedMeta.set(method, paramsArray);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Inject.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Inject/A-Inject.decorator.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"A-Inject.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Inject/A-Inject.decorator.ts"],"names":[],"mappings":";;AAqDA,4BAkCC;AAnFD,uFAA8E;AAC9E,6FAAkG;AAClG,8EAAqE;AA8CrE,8DAA8D;AAC9D,SAAgB,QAAQ,CACpB,MAAkF;IAGlF,OAAO,UACH,MAAmB,EACnB,UAAuC,EACvC,cAAsB;QAGtB,MAAM,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;QAE/D,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAEhC,MAAM,WAAW,GAAG,2BAAS;aACxB,IAAI,CAAC,MAAM,CAAC;aACZ,GAAG,CAAC,6CAAyB,CAAC,UAAU,CAAC;eACvC,IAAI,qBAAM,EAAE,CAAC;QAGpB,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QAElD,WAAW,CAAC,cAAc,CAAC,GAAG,MAAM,CAAC;QAErC,WAAW,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAGrC,2BAAS;aACJ,IAAI,CAAC,MAAM,CAAC;aACZ,GAAG,CACA,6CAAyB,CAAC,UAAU,EACpC,WAAW,CACd,CAAA;IACT,CAAC,CAAA;AACL,CAAC"}
|
|
@@ -1,6 +1,33 @@
|
|
|
1
|
+
import { A_TYPES__Required } from "@adaas/a-utils";
|
|
2
|
+
import { A_TYPES__ComponentCallParams } from "./A-Component.types";
|
|
1
3
|
/**
|
|
2
4
|
* This element only contains the specific code
|
|
3
5
|
*
|
|
4
6
|
*/
|
|
5
|
-
export declare class A_Component {
|
|
7
|
+
export declare class A_Component<_FeatureNames extends Array<string> = any> {
|
|
8
|
+
/**
|
|
9
|
+
* Call a feature of the component
|
|
10
|
+
*
|
|
11
|
+
* @param lifecycleMethod
|
|
12
|
+
* @param args
|
|
13
|
+
*/
|
|
14
|
+
call(
|
|
15
|
+
/**
|
|
16
|
+
* A-Feature method name to be called
|
|
17
|
+
*/
|
|
18
|
+
feature: _FeatureNames[number]): Promise<any>;
|
|
19
|
+
call(
|
|
20
|
+
/**
|
|
21
|
+
* A-Feature name to be called
|
|
22
|
+
*/
|
|
23
|
+
params: A_TYPES__Required<Partial<A_TYPES__ComponentCallParams<_FeatureNames[number]>>, ['name']>): Promise<any>;
|
|
24
|
+
call(
|
|
25
|
+
/**
|
|
26
|
+
* A-Feature method name to be called
|
|
27
|
+
*/
|
|
28
|
+
feature: string,
|
|
29
|
+
/**
|
|
30
|
+
* Parameters to provide additional data to the feature
|
|
31
|
+
*/
|
|
32
|
+
params: Partial<A_TYPES__ComponentCallParams<_FeatureNames[number]>>): Promise<any>;
|
|
6
33
|
}
|
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.A_Component = void 0;
|
|
13
|
+
const A_Context_class_1 = require("../A-Context/A-Context.class");
|
|
4
14
|
/**
|
|
5
15
|
* This element only contains the specific code
|
|
6
16
|
*
|
|
7
17
|
*/
|
|
8
18
|
class A_Component {
|
|
19
|
+
call(param1, param2) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const feature = typeof param1 === 'string'
|
|
22
|
+
? param1
|
|
23
|
+
: param1.name;
|
|
24
|
+
const params = typeof param1 === 'string'
|
|
25
|
+
? param2 || {}
|
|
26
|
+
: param1;
|
|
27
|
+
const newFeature = A_Context_class_1.A_Context.feature(this, feature, params);
|
|
28
|
+
return yield newFeature.process();
|
|
29
|
+
});
|
|
30
|
+
}
|
|
9
31
|
}
|
|
10
32
|
exports.A_Component = A_Component;
|
|
11
33
|
//# sourceMappingURL=A-Component.class.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Component.class.js","sourceRoot":"","sources":["../../../../src/global/A-Component/A-Component.class.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"A-Component.class.js","sourceRoot":"","sources":["../../../../src/global/A-Component/A-Component.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,kEAAyD;AAGzD;;;GAGG;AACH,MAAa,WAAW;IAmCd,IAAI,CACN,MAAyH,EACzH,MAAqE;;YAGrE,MAAM,OAAO,GAAW,OAAO,MAAM,KAAK,QAAQ;gBAC9C,CAAC,CAAC,MAAM;gBACR,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;YAClB,MAAM,MAAM,GAAiE,OAAO,MAAM,KAAK,QAAQ;gBACnG,CAAC,CAAC,MAAM,IAAI,EAAE;gBACd,CAAC,CAAC,MAAM,CAAC;YAEb,MAAM,UAAU,GAAG,2BAAS,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;YAE5D,OAAO,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC;QACtC,CAAC;KAAA;CACJ;AAnDD,kCAmDC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { A_Meta } from "../A-Meta/A-Meta.class";
|
|
2
|
-
import { A_TYPES__ComponentMeta } from "./A-Component.types";
|
|
2
|
+
import { A_TYPES__ComponentMeta, A_TYPES__ComponentMetaExtension } from "./A-Component.types";
|
|
3
3
|
export declare class A_ComponentMeta extends A_Meta<A_TYPES__ComponentMeta> {
|
|
4
|
+
/**
|
|
5
|
+
* Allows to get all the extensions for a given feature
|
|
6
|
+
*
|
|
7
|
+
* @param feature
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
extensions(feature: string): A_TYPES__ComponentMetaExtension[];
|
|
4
11
|
}
|
|
@@ -2,7 +2,33 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.A_ComponentMeta = void 0;
|
|
4
4
|
const A_Meta_class_1 = require("../A-Meta/A-Meta.class");
|
|
5
|
+
const A_Component_types_1 = require("./A-Component.types");
|
|
5
6
|
class A_ComponentMeta extends A_Meta_class_1.A_Meta {
|
|
7
|
+
/**
|
|
8
|
+
* Allows to get all the extensions for a given feature
|
|
9
|
+
*
|
|
10
|
+
* @param feature
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
extensions(feature) {
|
|
14
|
+
const steps = [];
|
|
15
|
+
const extensions = this.get(A_Component_types_1.A_TYPES__ComponentMetaKey.EXTENSIONS);
|
|
16
|
+
const injections = this.get(A_Component_types_1.A_TYPES__ComponentMetaKey.INJECTIONS);
|
|
17
|
+
// const constructor = A_Context.component(this);
|
|
18
|
+
extensions === null || extensions === void 0 ? void 0 : extensions
|
|
19
|
+
// returns all extensions that match the feature
|
|
20
|
+
.find(feature).forEach(([handler, extensions]) => {
|
|
21
|
+
extensions.forEach(extension => {
|
|
22
|
+
const args = (injections === null || injections === void 0 ? void 0 : injections.get(extension.handler)) || [];
|
|
23
|
+
steps.push({
|
|
24
|
+
// component: constructor,
|
|
25
|
+
handler: extension.handler,
|
|
26
|
+
args
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
return steps;
|
|
31
|
+
}
|
|
6
32
|
}
|
|
7
33
|
exports.A_ComponentMeta = A_ComponentMeta;
|
|
8
34
|
//# sourceMappingURL=A-Component.meta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Component.meta.js","sourceRoot":"","sources":["../../../../src/global/A-Component/A-Component.meta.ts"],"names":[],"mappings":";;;AAAA,yDAAgD;
|
|
1
|
+
{"version":3,"file":"A-Component.meta.js","sourceRoot":"","sources":["../../../../src/global/A-Component/A-Component.meta.ts"],"names":[],"mappings":";;;AAAA,yDAAgD;AAChD,2DAAyH;AAGzH,MAAa,eAAgB,SAAQ,qBAA8B;IAK/D;;;;;OAKG;IACH,UAAU,CACN,OAAe;QAEf,MAAM,KAAK,GAAsC,EAAE,CAAC;QAEpD,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,6CAAyB,CAAC,UAAU,CAAC,CAAC;QAClE,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,6CAAyB,CAAC,UAAU,CAAC,CAAC;QAElE,iDAAiD;QAGjD,UAAU,aAAV,UAAU,uBAAV,UAAU;QACN,gDAAgD;SAC9C,IAAI,CAAC,OAAO,EACb,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,EAAE;YAC/B,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;gBAE3B,MAAM,IAAI,GAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,KAAI,EAAE,CAAC;gBAEtD,KAAK,CAAC,IAAI,CAAC;oBACP,0BAA0B;oBAC1B,OAAO,EAAE,SAAS,CAAC,OAAO;oBAC1B,IAAI;iBACP,CAAC,CAAC;YAEP,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QAGP,OAAO,KAAK,CAAC;IACjB,CAAC;CAEJ;AA3CD,0CA2CC"}
|
|
@@ -1,18 +1,55 @@
|
|
|
1
|
+
import { A_Feature } from "../A-Feature/A-Feature.class";
|
|
2
|
+
import { A_Fragment } from "../A-Fragment/A-Fragment.class";
|
|
3
|
+
import { A_Meta } from "../A-Meta/A-Meta.class";
|
|
4
|
+
import { A_Scope } from "../A-Scope/A-Scope.class";
|
|
5
|
+
import { A_Component } from "./A-Component.class";
|
|
6
|
+
export type A_TYPES__ComponentCallParams<T extends string> = {
|
|
7
|
+
name: T;
|
|
8
|
+
fragments: Array<A_Fragment>;
|
|
9
|
+
components: Array<{
|
|
10
|
+
new (...args: any[]): any;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
1
13
|
export type A_TYPES__ComponentMeta = {
|
|
2
|
-
[A_TYPES__ComponentMetaKey.EXTENSIONS]:
|
|
14
|
+
[A_TYPES__ComponentMetaKey.EXTENSIONS]: A_Meta<{
|
|
15
|
+
/**
|
|
16
|
+
* Where Key the regexp for what to apply the extension
|
|
17
|
+
* A set of container names or a wildcard, or a regexp
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
* Where value is the extension instructions
|
|
21
|
+
*/
|
|
22
|
+
[Key: string]: A_TYPES__ComponentMeta_ExtensionItem[];
|
|
23
|
+
}>;
|
|
3
24
|
[A_TYPES__ComponentMetaKey.FEATURES]: any[];
|
|
4
|
-
[A_TYPES__ComponentMetaKey.INJECTIONS]:
|
|
25
|
+
[A_TYPES__ComponentMetaKey.INJECTIONS]: A_Meta<{
|
|
26
|
+
/**
|
|
27
|
+
* Where Key is the name of the injection
|
|
28
|
+
*
|
|
29
|
+
* Where value is the list of injections
|
|
30
|
+
*/
|
|
31
|
+
[Key: string]: Array<A_TYPES__ComponentMeta_InjectionParam>;
|
|
32
|
+
}>;
|
|
5
33
|
};
|
|
6
34
|
export declare enum A_TYPES__ComponentMetaKey {
|
|
7
35
|
EXTENSIONS = "a-component-extensions",
|
|
8
36
|
FEATURES = "a-component-features",
|
|
9
37
|
INJECTIONS = "a-component-injections"
|
|
10
38
|
}
|
|
39
|
+
export type A_TYPES__ComponentMetaExtension = {
|
|
40
|
+
handler: string;
|
|
41
|
+
args: A_TYPES__ComponentMeta_InjectionParam[];
|
|
42
|
+
};
|
|
11
43
|
export type A_TYPES__ComponentMeta_ExtensionItem = {
|
|
12
44
|
name: string;
|
|
13
|
-
container: string;
|
|
14
45
|
handler: string;
|
|
15
46
|
};
|
|
16
|
-
export type
|
|
17
|
-
new (...args: any[]):
|
|
18
|
-
}
|
|
47
|
+
export type A_TYPES__ComponentMeta_InjectionParam = {
|
|
48
|
+
new (...args: any[]): A_Fragment;
|
|
49
|
+
} | {
|
|
50
|
+
new (...args: any[]): A_Component;
|
|
51
|
+
} | {
|
|
52
|
+
new (...args: any[]): A_Scope;
|
|
53
|
+
} | {
|
|
54
|
+
new (...args: any[]): A_Feature;
|
|
55
|
+
};
|
|
@@ -7,4 +7,9 @@ var A_TYPES__ComponentMetaKey;
|
|
|
7
7
|
A_TYPES__ComponentMetaKey["FEATURES"] = "a-component-features";
|
|
8
8
|
A_TYPES__ComponentMetaKey["INJECTIONS"] = "a-component-injections";
|
|
9
9
|
})(A_TYPES__ComponentMetaKey || (exports.A_TYPES__ComponentMetaKey = A_TYPES__ComponentMetaKey = {}));
|
|
10
|
+
// typeof A_Fragment
|
|
11
|
+
// | typeof A_Component
|
|
12
|
+
// // | { new(...args: any[]): any }
|
|
13
|
+
// | typeof A_Scope
|
|
14
|
+
// | typeof A_Feature;
|
|
10
15
|
//# sourceMappingURL=A-Component.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Component.types.js","sourceRoot":"","sources":["../../../../src/global/A-Component/A-Component.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"A-Component.types.js","sourceRoot":"","sources":["../../../../src/global/A-Component/A-Component.types.ts"],"names":[],"mappings":";;;AAyCA,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACjC,kEAAqC,CAAA;IACrC,8DAAiC,CAAA;IACjC,kEAAqC,CAAA;AACzC,CAAC,EAJW,yBAAyB,yCAAzB,yBAAyB,QAIpC;AAqBD,oBAAoB;AACpB,uBAAuB;AACvB,oCAAoC;AACpC,mBAAmB;AACnB,sBAAsB"}
|
|
@@ -18,36 +18,36 @@ export declare class A_Concept<_Features extends A_Container<any>[] = any> {
|
|
|
18
18
|
/**
|
|
19
19
|
* Load the concept. This step runs before any other steps to ensure that all components are loaded.
|
|
20
20
|
*/
|
|
21
|
-
static get Load(): (config?: Partial<import("
|
|
21
|
+
static get Load(): (config?: Partial<import("../../..").A_TYPES__A_StageDecoratorConfig>) => (target: A_Container<any>, propertyKey: string, descriptor: import("../../..").A_TYPES__A_StageDecoratorDescriptor) => void;
|
|
22
22
|
/**
|
|
23
23
|
* Publish the concept to ADAAS platform. (Or any other place defined in the concept)
|
|
24
24
|
*
|
|
25
25
|
* [!] To extend the logic just create a custom containers and override the default behavior.
|
|
26
26
|
*/
|
|
27
|
-
static get Publish(): (config?: Partial<import("
|
|
27
|
+
static get Publish(): (config?: Partial<import("../../..").A_TYPES__A_StageDecoratorConfig>) => (target: A_Container<any>, propertyKey: string, descriptor: import("../../..").A_TYPES__A_StageDecoratorDescriptor) => void;
|
|
28
28
|
/**
|
|
29
29
|
* Deploy the concept to the environment.
|
|
30
30
|
*/
|
|
31
|
-
static get Deploy(): (config?: Partial<import("
|
|
31
|
+
static get Deploy(): (config?: Partial<import("../../..").A_TYPES__A_StageDecoratorConfig>) => (target: A_Container<any>, propertyKey: string, descriptor: import("../../..").A_TYPES__A_StageDecoratorDescriptor) => void;
|
|
32
32
|
/**
|
|
33
33
|
* Compiles the Concept in case there are some containers that require that.
|
|
34
34
|
*
|
|
35
35
|
* Can be used for static websites or any other concept that requires a build step.
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
38
|
-
static get Build(): (config?: Partial<import("
|
|
38
|
+
static get Build(): (config?: Partial<import("../../..").A_TYPES__A_StageDecoratorConfig>) => (target: A_Container<any>, propertyKey: string, descriptor: import("../../..").A_TYPES__A_StageDecoratorDescriptor) => void;
|
|
39
39
|
/**
|
|
40
40
|
* Main execution of the concept.
|
|
41
41
|
*/
|
|
42
|
-
static get Run(): (config?: Partial<import("
|
|
42
|
+
static get Run(): (config?: Partial<import("../../..").A_TYPES__A_StageDecoratorConfig>) => (target: A_Container<any>, propertyKey: string, descriptor: import("../../..").A_TYPES__A_StageDecoratorDescriptor) => void;
|
|
43
43
|
/**
|
|
44
44
|
* Start the concept. Uses for servers or any other background services.
|
|
45
45
|
*/
|
|
46
|
-
static get Start(): (config?: Partial<import("
|
|
46
|
+
static get Start(): (config?: Partial<import("../../..").A_TYPES__A_StageDecoratorConfig>) => (target: A_Container<any>, propertyKey: string, descriptor: import("../../..").A_TYPES__A_StageDecoratorDescriptor) => void;
|
|
47
47
|
/**
|
|
48
48
|
* Stop the concept. Uses for servers or any other background services.
|
|
49
49
|
*/
|
|
50
|
-
static get Stop(): (config?: Partial<import("
|
|
50
|
+
static get Stop(): (config?: Partial<import("../../..").A_TYPES__A_StageDecoratorConfig>) => (target: A_Container<any>, propertyKey: string, descriptor: import("../../..").A_TYPES__A_StageDecoratorDescriptor) => void;
|
|
51
51
|
protected containers: A_Container<any>[];
|
|
52
52
|
constructor(props: A_TYPES__IConceptConstructor<_Features>);
|
|
53
53
|
get namespace(): string;
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.A_Concept = void 0;
|
|
13
13
|
const A_Concept_types_1 = require("./A_Concept.types");
|
|
14
14
|
const A_Context_class_1 = require("../A-Context/A-Context.class");
|
|
15
|
-
const A_Logger_component_1 = require("../../base/A-Logger/A-Logger.component");
|
|
16
15
|
const A_Container_types_1 = require("../A-Container/A-Container.types");
|
|
17
16
|
const A_Stage_decorator_1 = require("../../decorators/A-Stage/A-Stage.decorator");
|
|
18
17
|
// export type RunParams<T> = T extends A_Container<any, infer Params> ? Params : never;
|
|
@@ -90,7 +89,7 @@ class A_Concept {
|
|
|
90
89
|
fragments: props.fragments || [],
|
|
91
90
|
// containers: props.containers
|
|
92
91
|
components: [
|
|
93
|
-
|
|
92
|
+
// A_Logger,
|
|
94
93
|
]
|
|
95
94
|
});
|
|
96
95
|
this.containers = props.containers || [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A_Concept.class.js","sourceRoot":"","sources":["../../../../src/global/A-Concept/A_Concept.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAqH;AACrH,kEAAyD;
|
|
1
|
+
{"version":3,"file":"A_Concept.class.js","sourceRoot":"","sources":["../../../../src/global/A-Concept/A_Concept.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAqH;AACrH,kEAAyD;AAIzD,wEAA6E;AAC7E,6FAAgF;AAKhF,wFAAwF;AAIxF;;;;;;;;;;;GAWG;AACH,MAAa,SAAS;IAIlB,iFAAiF;IACjF,iFAAiF;IACjF,iFAAiF;IACjF;;OAEG;IACH,MAAM,KAAK,IAAI;QACX,OAAO,IAAA,2BAAO,EAAC,uCAAqB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED;;;;OAIG;IACH,MAAM,KAAK,OAAO;QACd,OAAO,IAAA,2BAAO,EAAC,uCAAqB,CAAC,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,MAAM,KAAK,MAAM;QACb,OAAO,IAAA,2BAAO,EAAC,uCAAqB,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACH,MAAM,KAAK,KAAK;QACZ,OAAO,IAAA,2BAAO,EAAC,uCAAqB,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,MAAM,KAAK,GAAG;QACV,OAAO,IAAA,2BAAO,EAAC,uCAAqB,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,MAAM,KAAK,KAAK;QACZ,OAAO,IAAA,2BAAO,EAAC,uCAAqB,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,MAAM,KAAK,IAAI;QACX,OAAO,IAAA,2BAAO,EAAC,uCAAqB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAUD,YACc,KAA8C;QAA9C,UAAK,GAAL,KAAK,CAAyC;QAP5D,iFAAiF;QACj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M,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,eAAe,EAAE,CAAC;wBAC1C,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;4BACxB,MAAM,CAAC,IAAI,CAAC;gCACR,IAAI;gCACJ,SAAS;6BACZ,CAAC,CAAC;wBACP,CAAC;oBACL,CAAC;gBAEL,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,MAAM,KAAK,GAAG,2BAAS,CAAC,QAAQ,CAAC,IAAI,EAAE;gBACnC,UAAU,EAAE,MAAM,CAAC,UAAU;gBAC7B,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,MAAM,EAAE,2BAAS,CAAC,KAAK,CAAC,IAAI,CAAC;aAChC,CAAC,CAAC;YAEH,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;gBACzB,MAAM,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;YAC9C,CAAC;QAEL,CAAC;KAAA;IAGa,OAAO,CACjB,MAA4C;;YAE5C,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;YACzC,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;YAG1C,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;gBAC5B,MAAM,IAAI,GAAG,2BAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBAEvC,IAAI,CAAC,GAAG,CAAC,6CAAyB,CAAC,QAAQ,CAAC,CAAA;YAEhD,CAAC,CAAC,CAAC;QAGP,CAAC;KAAA;CAEJ;AAhND,8BAgNC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A_TYPES__ContainerCallParams, A_TYPES__ContainerConstructor } from "./A-Container.types";
|
|
2
2
|
import { A_TYPES__Required } from "@adaas/a-utils";
|
|
3
|
-
import {
|
|
3
|
+
import { A_Scope } from "../A-Scope/A-Scope.class";
|
|
4
4
|
/**
|
|
5
5
|
* This class should combine Components to achieve the goal withing Concept
|
|
6
6
|
*
|
|
@@ -20,6 +20,7 @@ export declare class A_Container<_FeatureNames extends Array<string>> {
|
|
|
20
20
|
ready: Promise<void>;
|
|
21
21
|
get exports(): _FeatureNames;
|
|
22
22
|
get name(): string;
|
|
23
|
+
get Scope(): A_Scope;
|
|
23
24
|
constructor(
|
|
24
25
|
/**
|
|
25
26
|
* Configuration of the container that will be used to run it.
|
|
@@ -42,12 +43,12 @@ export declare class A_Container<_FeatureNames extends Array<string>> {
|
|
|
42
43
|
/**
|
|
43
44
|
* A-Feature method name to be called
|
|
44
45
|
*/
|
|
45
|
-
feature: _FeatureNames[number]):
|
|
46
|
+
feature: _FeatureNames[number]): Promise<any>;
|
|
46
47
|
call(
|
|
47
48
|
/**
|
|
48
49
|
* A-Feature name to be called
|
|
49
50
|
*/
|
|
50
|
-
params: A_TYPES__Required<Partial<A_TYPES__ContainerCallParams<_FeatureNames[number]>>, ['name']>):
|
|
51
|
+
params: A_TYPES__Required<Partial<A_TYPES__ContainerCallParams<_FeatureNames[number]>>, ['name']>): Promise<any>;
|
|
51
52
|
call(
|
|
52
53
|
/**
|
|
53
54
|
* A-Feature method name to be called
|
|
@@ -56,7 +57,7 @@ export declare class A_Container<_FeatureNames extends Array<string>> {
|
|
|
56
57
|
/**
|
|
57
58
|
* Parameters to provide additional data to the feature
|
|
58
59
|
*/
|
|
59
|
-
params: Partial<A_TYPES__ContainerCallParams<_FeatureNames[number]>>):
|
|
60
|
+
params: Partial<A_TYPES__ContainerCallParams<_FeatureNames[number]>>): Promise<any>;
|
|
60
61
|
/**
|
|
61
62
|
* Before init hook to be used in inherited classes
|
|
62
63
|
*
|