@adaas/a-concept 0.0.46 → 0.0.47
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.
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { A_Meta } from "../A-Meta/A-Meta.class";
|
|
2
2
|
import { A_TYPES__EntityMeta } from "./A-Entity.types";
|
|
3
|
+
import { A_TYPES__A_DefineDecorator_Meta } from "../../decorators/A-Feature/A-Feature.decorator.types";
|
|
3
4
|
export declare class A_EntityMeta extends A_Meta<A_TYPES__EntityMeta> {
|
|
5
|
+
/**
|
|
6
|
+
* Returns all features defined in the Container
|
|
7
|
+
*
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
features(): Array<A_TYPES__A_DefineDecorator_Meta>;
|
|
4
11
|
}
|
|
@@ -2,7 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.A_EntityMeta = void 0;
|
|
4
4
|
const A_Meta_class_1 = require("../A-Meta/A-Meta.class");
|
|
5
|
+
const A_Entity_types_1 = require("./A-Entity.types");
|
|
5
6
|
class A_EntityMeta extends A_Meta_class_1.A_Meta {
|
|
7
|
+
/**
|
|
8
|
+
* Returns all features defined in the Container
|
|
9
|
+
*
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
features() {
|
|
13
|
+
const features = this.get(A_Entity_types_1.A_TYPES__EntityMetaKey.FEATURES);
|
|
14
|
+
return (features === null || features === void 0 ? void 0 : features.toArray().map(([, feature]) => feature)) || [];
|
|
15
|
+
}
|
|
6
16
|
}
|
|
7
17
|
exports.A_EntityMeta = A_EntityMeta;
|
|
8
18
|
//# sourceMappingURL=A-Entity.meta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Entity.meta.js","sourceRoot":"","sources":["../../../../src/global/A-Entity/A-Entity.meta.ts"],"names":[],"mappings":";;;AACA,yDAAgD;
|
|
1
|
+
{"version":3,"file":"A-Entity.meta.js","sourceRoot":"","sources":["../../../../src/global/A-Entity/A-Entity.meta.ts"],"names":[],"mappings":";;;AACA,yDAAgD;AAChD,qDAA+E;AAI/E,MAAa,YAAa,SAAQ,qBAA2B;IAEzD;;;;OAIG;IACH,QAAQ;QAEJ,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,uCAAsB,CAAC,QAAQ,CAAC,CAAC;QAE3D,OAAO,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,GAEnB,GAAG,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAI,EAAE,CAAC;IAC7C,CAAC;CAEJ;AAhBD,oCAgBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaas/a-concept",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.47",
|
|
4
4
|
"description": "A-Concept is a framework to build new Applications within or outside the ADAAS ecosystem. This framework is designed to be modular structure regardless environment and program goal.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { A_TYPES__A_InjectDecorator_Meta } from "@adaas/a-concept/decorators/A-Inject/A-Inject.decorator.types";
|
|
2
2
|
import { A_Meta } from "../A-Meta/A-Meta.class";
|
|
3
3
|
import { A_TYPES__EntityMeta, A_TYPES__EntityMetaKey } from "./A-Entity.types";
|
|
4
|
+
import { A_TYPES__A_DefineDecorator_Meta } from "@adaas/a-concept/decorators/A-Feature/A-Feature.decorator.types";
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
export class A_EntityMeta extends A_Meta<A_TYPES__EntityMeta> {
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Returns all features defined in the Container
|
|
11
|
+
*
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
features(): Array<A_TYPES__A_DefineDecorator_Meta> {
|
|
15
|
+
|
|
16
|
+
const features = this.get(A_TYPES__EntityMetaKey.FEATURES);
|
|
17
|
+
|
|
18
|
+
return features?.toArray()
|
|
19
|
+
// returns all extensions that match the feature
|
|
20
|
+
.map(([, feature]) => feature) || [];
|
|
21
|
+
}
|
|
9
22
|
|
|
10
23
|
}
|