@adaas/are 0.0.4 → 0.0.5

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 (68) hide show
  1. package/README.md +11 -1
  2. package/dist/browser/index.d.mts +843 -751
  3. package/dist/browser/index.mjs +2729 -2481
  4. package/dist/browser/index.mjs.map +1 -1
  5. package/dist/node/AreInstruction.entity-Ceyy0tbf.d.mts +163 -0
  6. package/dist/node/AreInstruction.entity-Ceyy0tbf.d.ts +163 -0
  7. package/dist/node/index.d.mts +37 -1
  8. package/dist/node/index.d.ts +37 -1
  9. package/dist/node/index.js +28 -0
  10. package/dist/node/index.mjs +4 -0
  11. package/dist/node/lib/AreAttribute/AreAttribute.entity.d.mts +80 -13
  12. package/dist/node/lib/AreAttribute/AreAttribute.entity.d.ts +80 -13
  13. package/dist/node/lib/AreCompiler/AreCompiler.component.d.mts +3 -13
  14. package/dist/node/lib/AreCompiler/AreCompiler.component.d.ts +3 -13
  15. package/dist/node/lib/AreComponent/Are.context.d.mts +64 -14
  16. package/dist/node/lib/AreComponent/Are.context.d.ts +64 -14
  17. package/dist/node/lib/AreEngine/AreEngine.component.d.mts +9 -23
  18. package/dist/node/lib/AreEngine/AreEngine.component.d.ts +9 -23
  19. package/dist/node/lib/AreEngine/AreEngine.types.d.mts +9 -25
  20. package/dist/node/lib/AreEngine/AreEngine.types.d.ts +9 -25
  21. package/dist/node/lib/AreInstruction/AreInstruction.entity.d.mts +3 -13
  22. package/dist/node/lib/AreInstruction/AreInstruction.entity.d.ts +3 -13
  23. package/dist/node/lib/AreInstruction/AreInstruction.types.d.mts +3 -13
  24. package/dist/node/lib/AreInstruction/AreInstruction.types.d.ts +3 -13
  25. package/dist/node/lib/AreInstruction/types/AreDeclaration.instruction.d.mts +37 -14
  26. package/dist/node/lib/AreInstruction/types/AreDeclaration.instruction.d.ts +37 -14
  27. package/dist/node/lib/AreInstruction/types/AreMutation.instruction.d.mts +29 -14
  28. package/dist/node/lib/AreInstruction/types/AreMutation.instruction.d.ts +29 -14
  29. package/dist/node/lib/AreInterpreter/AreInterpreter.component.d.mts +3 -13
  30. package/dist/node/lib/AreInterpreter/AreInterpreter.component.d.ts +3 -13
  31. package/dist/node/lib/AreLifecycle/AreLifecycle.component.d.mts +4 -13
  32. package/dist/node/lib/AreLifecycle/AreLifecycle.component.d.ts +4 -13
  33. package/dist/node/lib/AreLoader/AreLoader.component.d.mts +2 -13
  34. package/dist/node/lib/AreLoader/AreLoader.component.d.ts +2 -13
  35. package/dist/node/lib/AreNode/AreNode.entity.d.mts +197 -13
  36. package/dist/node/lib/AreNode/AreNode.entity.d.ts +197 -13
  37. package/dist/node/lib/AreNode/AreNode.types.d.mts +8 -14
  38. package/dist/node/lib/AreNode/AreNode.types.d.ts +8 -14
  39. package/dist/node/lib/AreScene/AreScene.context.d.mts +170 -13
  40. package/dist/node/lib/AreScene/AreScene.context.d.ts +170 -13
  41. package/dist/node/lib/AreScene/AreScene.types.d.mts +21 -14
  42. package/dist/node/lib/AreScene/AreScene.types.d.ts +21 -14
  43. package/dist/node/lib/AreSignals/AreSignals.component.d.mts +3 -12
  44. package/dist/node/lib/AreSignals/AreSignals.component.d.ts +3 -12
  45. package/dist/node/lib/AreSignals/AreSignals.context.d.mts +2 -12
  46. package/dist/node/lib/AreSignals/AreSignals.context.d.ts +2 -12
  47. package/dist/node/lib/AreSignals/AreSignals.meta.d.mts +1 -3
  48. package/dist/node/lib/AreSignals/AreSignals.meta.d.ts +1 -3
  49. package/dist/node/lib/AreSignals/AreSignals.types.d.mts +1 -3
  50. package/dist/node/lib/AreSignals/AreSignals.types.d.ts +1 -3
  51. package/dist/node/lib/AreSignals/entities/AreInit.signal.d.mts +1 -2
  52. package/dist/node/lib/AreSignals/entities/AreInit.signal.d.ts +1 -2
  53. package/dist/node/lib/AreSignals/entities/AreRoute.signal.d.mts +1 -1
  54. package/dist/node/lib/AreSignals/entities/AreRoute.signal.d.ts +1 -1
  55. package/dist/node/lib/AreStore/AreStore.context.d.mts +54 -13
  56. package/dist/node/lib/AreStore/AreStore.context.d.ts +54 -13
  57. package/dist/node/lib/AreSyntax/AreSyntax.context.d.mts +10 -12
  58. package/dist/node/lib/AreSyntax/AreSyntax.context.d.ts +10 -12
  59. package/dist/node/lib/AreSyntax/AreSyntax.types.d.mts +79 -14
  60. package/dist/node/lib/AreSyntax/AreSyntax.types.d.ts +79 -14
  61. package/dist/node/lib/AreTokenizer/AreTokenizer.component.d.mts +4 -14
  62. package/dist/node/lib/AreTokenizer/AreTokenizer.component.d.ts +4 -14
  63. package/dist/node/lib/AreTransformer/AreTransformer.component.d.mts +2 -13
  64. package/dist/node/lib/AreTransformer/AreTransformer.component.d.ts +2 -13
  65. package/package.json +3 -2
  66. package/src/index.ts +6 -0
  67. package/dist/node/Are.context-9Ija_fdC.d.ts +0 -846
  68. package/dist/node/Are.context-D7w32H1G.d.mts +0 -846
@@ -1,14 +1,81 @@
1
- import '@adaas/a-concept';
2
- export { A as AreAttribute } from '../../Are.context-D7w32H1G.mjs';
3
- import './AreAttribute.types.mjs';
4
- import '@adaas/a-utils/a-signal';
5
- import '../AreEvent/AreEvent.context.mjs';
6
- import '@adaas/a-utils/a-execution';
7
- import '../AreStore/AreStore.types.mjs';
8
- import '../AreStore/AreStore.constants.mjs';
9
- import '../AreScene/AreScene.constants.mjs';
10
- import '../AreComponent/Are.component.mjs';
11
- import '../AreComponent/Are.types.mjs';
12
- import '../AreComponent/Are.constants.mjs';
13
- import '../AreNode/AreNode.constants.mjs';
1
+ import * as _adaas_a_concept from '@adaas/a-concept';
2
+ import { A_Entity, A_Scope } from '@adaas/a-concept';
3
+ import { AreNode } from '@adaas/are/node/AreNode.entity';
4
+ import { AreAttribute_Init, AreAttribute_Serialized } from './AreAttribute.types.mjs';
14
5
  import './AreAttribute.constants.mjs';
6
+
7
+ declare class AreAttribute extends A_Entity<AreAttribute_Init, AreAttribute_Serialized> {
8
+ /**
9
+ * Property name (e.g. "label")
10
+ */
11
+ name: string;
12
+ /**
13
+ * Full raw attribute (e.g. ' :label="buttonLabel" ')
14
+ */
15
+ raw: string;
16
+ /**
17
+ * Attribute content (e.g. "buttonLabel")
18
+ * Example: For a directive like `v-if="condition"`, the raw value is "condition", but the content would be "condition" without the quotes, and the value would be the result of evaluating "condition" in the current scope.
19
+ */
20
+ content: string;
21
+ /**
22
+ * The evaluated value of the attribute, which can be different from the raw value depending on the context and type of the attribute. For example, for a directive like `v-if="condition"`, the raw value is "condition", but the evaluated value would be the result of evaluating "condition" in the current scope.
23
+ */
24
+ value: any;
25
+ /**
26
+ * The prefix of the attribute, for example for ':label' it would be ':', for 'v-if' it would be 'v-'. This can be used to determine the type of the attribute and how to process it.
27
+ */
28
+ prefix: string;
29
+ /**
30
+ * The scope where the attribute is defined, which can be used to access other entities and features within the same scope. This is particularly useful for attributes that need to interact with other parts of the scene or component, as it allows them to access shared data and functionality without needing to pass it explicitly through parameters.
31
+ */
32
+ get scope(): A_Scope<any, _adaas_a_concept.A_TYPES__Component_Constructor<_adaas_a_concept.A_Component>[], _adaas_a_concept.A_TYPES__Error_Constructor<_adaas_a_concept.A_Error<_adaas_a_concept.A_TYPES__Error_Init, _adaas_a_concept.A_TYPES__Error_Serialized>>[], _adaas_a_concept.A_TYPES__Entity_Constructor<A_Entity<any, _adaas_a_concept.A_TYPES__Entity_Serialized>>[], _adaas_a_concept.A_Fragment<_adaas_a_concept.A_TYPES__Fragment_Serialized>[]>;
33
+ /**
34
+ * The owner node of the attribute, which is the node that the attribute is attached to. This can be used to access the properties and features of the owner node, as well as to determine the context in which the attribute is being used. For example, if the attribute is attached to a button element, the owner would be that button node, and the attribute could use this information to modify the button's behavior or appearance based on its content and context.
35
+ */
36
+ get owner(): AreNode;
37
+ /**
38
+ * Initializes the attribute based on the provided properties. This method is called when a new attribute is created and should set up the attribute's state based on the provided properties. It can also be used to generate a unique ASEID for the attribute based on its name and content, which can be used for caching and identification purposes within the ARE framework.
39
+ *
40
+ * @param newEntity
41
+ */
42
+ fromNew(newEntity: AreAttribute_Init): void;
43
+ /**
44
+ * Creates a clone of the current attribute instance. This method can be used to create a new instance of the attribute with the same properties and state as the original, which can be useful in scenarios where you want to reuse an attribute's configuration or create variations of it without modifying the original instance.
45
+ *
46
+ * @returns
47
+ */
48
+ clone(): this;
49
+ /**
50
+ * Initializes the attribute. This method is called when the attribute is first created and should set up any necessary state or perform any initial processing based on the provided content and context. It can also be used to validate the attribute's content and throw errors if it is invalid.
51
+ *
52
+ * @param scope
53
+ */
54
+ init(scope?: A_Scope): void;
55
+ /**
56
+ * Generates all rendering instructions for the attribute. This method is called during the compilation phase of the ARE component and should return an array of instructions that describe how to render the attribute based on its content and context. The instructions can include details such as which DOM properties to set, which events to listen for, and how to update the attribute when the underlying data changes.
57
+ *
58
+ * @param scope
59
+ */
60
+ transform(scope?: A_Scope): void;
61
+ /**
62
+ * Compiles the attribute. This method should transform attribute details into a set of SceneInstructions. It may also modify attribute value, since this field is editable during runtime.
63
+ *
64
+ * @param scope
65
+ */
66
+ compile(scope?: A_Scope): void;
67
+ /**
68
+ * Updates the attribute based on changes in the store or other dependencies. This method is called during the update phase of the ARE component and should perform any necessary updates to the attribute based on changes in the underlying data or context. This can include tasks such as updating DOM properties, re-evaluating expressions, or modifying event listeners to ensure that the attribute remains in sync with the current state of the application.
69
+ *
70
+ * @param scope
71
+ */
72
+ update(scope?: A_Scope): void;
73
+ /**
74
+ * Validates the attribute's content and context. This method is called during the validation phase of the ARE component and should check whether the attribute's content is valid based on its expected format, type, or other constraints. If the content is invalid, this method should throw an error with a descriptive message to help developers identify and fix the issue.
75
+ *
76
+ * @param scope
77
+ */
78
+ validate(scope?: A_Scope): void;
79
+ }
80
+
81
+ export { AreAttribute };
@@ -1,14 +1,81 @@
1
- import '@adaas/a-concept';
2
- export { A as AreAttribute } from '../../Are.context-9Ija_fdC.js';
3
- import './AreAttribute.types.js';
4
- import '@adaas/a-utils/a-signal';
5
- import '../AreEvent/AreEvent.context.js';
6
- import '@adaas/a-utils/a-execution';
7
- import '../AreStore/AreStore.types.js';
8
- import '../AreStore/AreStore.constants.js';
9
- import '../AreScene/AreScene.constants.js';
10
- import '../AreComponent/Are.component.js';
11
- import '../AreComponent/Are.types.js';
12
- import '../AreComponent/Are.constants.js';
13
- import '../AreNode/AreNode.constants.js';
1
+ import * as _adaas_a_concept from '@adaas/a-concept';
2
+ import { A_Entity, A_Scope } from '@adaas/a-concept';
3
+ import { AreNode } from '@adaas/are/node/AreNode.entity';
4
+ import { AreAttribute_Init, AreAttribute_Serialized } from './AreAttribute.types.js';
14
5
  import './AreAttribute.constants.js';
6
+
7
+ declare class AreAttribute extends A_Entity<AreAttribute_Init, AreAttribute_Serialized> {
8
+ /**
9
+ * Property name (e.g. "label")
10
+ */
11
+ name: string;
12
+ /**
13
+ * Full raw attribute (e.g. ' :label="buttonLabel" ')
14
+ */
15
+ raw: string;
16
+ /**
17
+ * Attribute content (e.g. "buttonLabel")
18
+ * Example: For a directive like `v-if="condition"`, the raw value is "condition", but the content would be "condition" without the quotes, and the value would be the result of evaluating "condition" in the current scope.
19
+ */
20
+ content: string;
21
+ /**
22
+ * The evaluated value of the attribute, which can be different from the raw value depending on the context and type of the attribute. For example, for a directive like `v-if="condition"`, the raw value is "condition", but the evaluated value would be the result of evaluating "condition" in the current scope.
23
+ */
24
+ value: any;
25
+ /**
26
+ * The prefix of the attribute, for example for ':label' it would be ':', for 'v-if' it would be 'v-'. This can be used to determine the type of the attribute and how to process it.
27
+ */
28
+ prefix: string;
29
+ /**
30
+ * The scope where the attribute is defined, which can be used to access other entities and features within the same scope. This is particularly useful for attributes that need to interact with other parts of the scene or component, as it allows them to access shared data and functionality without needing to pass it explicitly through parameters.
31
+ */
32
+ get scope(): A_Scope<any, _adaas_a_concept.A_TYPES__Component_Constructor<_adaas_a_concept.A_Component>[], _adaas_a_concept.A_TYPES__Error_Constructor<_adaas_a_concept.A_Error<_adaas_a_concept.A_TYPES__Error_Init, _adaas_a_concept.A_TYPES__Error_Serialized>>[], _adaas_a_concept.A_TYPES__Entity_Constructor<A_Entity<any, _adaas_a_concept.A_TYPES__Entity_Serialized>>[], _adaas_a_concept.A_Fragment<_adaas_a_concept.A_TYPES__Fragment_Serialized>[]>;
33
+ /**
34
+ * The owner node of the attribute, which is the node that the attribute is attached to. This can be used to access the properties and features of the owner node, as well as to determine the context in which the attribute is being used. For example, if the attribute is attached to a button element, the owner would be that button node, and the attribute could use this information to modify the button's behavior or appearance based on its content and context.
35
+ */
36
+ get owner(): AreNode;
37
+ /**
38
+ * Initializes the attribute based on the provided properties. This method is called when a new attribute is created and should set up the attribute's state based on the provided properties. It can also be used to generate a unique ASEID for the attribute based on its name and content, which can be used for caching and identification purposes within the ARE framework.
39
+ *
40
+ * @param newEntity
41
+ */
42
+ fromNew(newEntity: AreAttribute_Init): void;
43
+ /**
44
+ * Creates a clone of the current attribute instance. This method can be used to create a new instance of the attribute with the same properties and state as the original, which can be useful in scenarios where you want to reuse an attribute's configuration or create variations of it without modifying the original instance.
45
+ *
46
+ * @returns
47
+ */
48
+ clone(): this;
49
+ /**
50
+ * Initializes the attribute. This method is called when the attribute is first created and should set up any necessary state or perform any initial processing based on the provided content and context. It can also be used to validate the attribute's content and throw errors if it is invalid.
51
+ *
52
+ * @param scope
53
+ */
54
+ init(scope?: A_Scope): void;
55
+ /**
56
+ * Generates all rendering instructions for the attribute. This method is called during the compilation phase of the ARE component and should return an array of instructions that describe how to render the attribute based on its content and context. The instructions can include details such as which DOM properties to set, which events to listen for, and how to update the attribute when the underlying data changes.
57
+ *
58
+ * @param scope
59
+ */
60
+ transform(scope?: A_Scope): void;
61
+ /**
62
+ * Compiles the attribute. This method should transform attribute details into a set of SceneInstructions. It may also modify attribute value, since this field is editable during runtime.
63
+ *
64
+ * @param scope
65
+ */
66
+ compile(scope?: A_Scope): void;
67
+ /**
68
+ * Updates the attribute based on changes in the store or other dependencies. This method is called during the update phase of the ARE component and should perform any necessary updates to the attribute based on changes in the underlying data or context. This can include tasks such as updating DOM properties, re-evaluating expressions, or modifying event listeners to ensure that the attribute remains in sync with the current state of the application.
69
+ *
70
+ * @param scope
71
+ */
72
+ update(scope?: A_Scope): void;
73
+ /**
74
+ * Validates the attribute's content and context. This method is called during the validation phase of the ARE component and should check whether the attribute's content is valid based on its expected format, type, or other constraints. If the content is invalid, this method should throw an error with a descriptive message to help developers identify and fix the issue.
75
+ *
76
+ * @param scope
77
+ */
78
+ validate(scope?: A_Scope): void;
79
+ }
80
+
81
+ export { AreAttribute };
@@ -1,18 +1,8 @@
1
1
  import { A_Component, A_TYPES__Entity_Constructor } from '@adaas/a-concept';
2
2
  import { A_Logger } from '@adaas/a-utils/a-logger';
3
- import { g as AreNode, A as AreAttribute, k as AreScene } from '../../Are.context-D7w32H1G.mjs';
4
- import '@adaas/a-utils/a-signal';
5
- import '../AreEvent/AreEvent.context.mjs';
6
- import '@adaas/a-utils/a-execution';
7
- import '../AreStore/AreStore.types.mjs';
8
- import '../AreStore/AreStore.constants.mjs';
9
- import '../AreScene/AreScene.constants.mjs';
10
- import '../AreAttribute/AreAttribute.types.mjs';
11
- import '../AreAttribute/AreAttribute.constants.mjs';
12
- import '../AreComponent/Are.component.mjs';
13
- import '../AreComponent/Are.types.mjs';
14
- import '../AreComponent/Are.constants.mjs';
15
- import '../AreNode/AreNode.constants.mjs';
3
+ import { AreScene } from '@adaas/are/scene/AreScene.context';
4
+ import { AreNode } from '@adaas/are/node/AreNode.entity';
5
+ import { AreAttribute } from '@adaas/are/attribute/AreAttribute.entity';
16
6
 
17
7
  declare class AreCompiler extends A_Component {
18
8
  /**
@@ -1,18 +1,8 @@
1
1
  import { A_Component, A_TYPES__Entity_Constructor } from '@adaas/a-concept';
2
2
  import { A_Logger } from '@adaas/a-utils/a-logger';
3
- import { g as AreNode, A as AreAttribute, k as AreScene } from '../../Are.context-9Ija_fdC.js';
4
- import '@adaas/a-utils/a-signal';
5
- import '../AreEvent/AreEvent.context.js';
6
- import '@adaas/a-utils/a-execution';
7
- import '../AreStore/AreStore.types.js';
8
- import '../AreStore/AreStore.constants.js';
9
- import '../AreScene/AreScene.constants.js';
10
- import '../AreAttribute/AreAttribute.types.js';
11
- import '../AreAttribute/AreAttribute.constants.js';
12
- import '../AreComponent/Are.component.js';
13
- import '../AreComponent/Are.types.js';
14
- import '../AreComponent/Are.constants.js';
15
- import '../AreNode/AreNode.constants.js';
3
+ import { AreScene } from '@adaas/are/scene/AreScene.context';
4
+ import { AreNode } from '@adaas/are/node/AreNode.entity';
5
+ import { AreAttribute } from '@adaas/are/attribute/AreAttribute.entity';
16
6
 
17
7
  declare class AreCompiler extends A_Component {
18
8
  /**
@@ -1,14 +1,64 @@
1
- import '@adaas/a-concept';
2
- import '@adaas/a-utils/a-signal';
3
- export { a as AreContext } from '../../Are.context-D7w32H1G.mjs';
4
- import '@adaas/a-utils/a-execution';
5
- import '../AreEvent/AreEvent.context.mjs';
6
- import '../AreStore/AreStore.types.mjs';
7
- import '../AreStore/AreStore.constants.mjs';
8
- import '../AreScene/AreScene.constants.mjs';
9
- import '../AreAttribute/AreAttribute.types.mjs';
10
- import '../AreAttribute/AreAttribute.constants.mjs';
11
- import './Are.component.mjs';
12
- import './Are.types.mjs';
13
- import './Are.constants.mjs';
14
- import '../AreNode/AreNode.constants.mjs';
1
+ import * as _adaas_a_concept from '@adaas/a-concept';
2
+ import { A_Fragment } from '@adaas/a-concept';
3
+ import { A_SignalVector } from '@adaas/a-utils/a-signal';
4
+ import { AreNode } from '@adaas/are/node/AreNode.entity';
5
+ import { A_ExecutionContext } from '@adaas/a-utils/a-execution';
6
+
7
+ declare class AreContext extends A_ExecutionContext {
8
+ /**
9
+ * The source string represents the original template or input from which the ARE scene is generated. This can be used for debugging, error reporting, or any features that require access to the raw template data. The roots array holds references to the root nodes of the ARE scene, allowing for easy access and management of the top-level components in the rendering hierarchy. The signalsMap is a mapping between root nodes and their associated signal vectors, enabling efficient management of reactive updates and interactions within the ARE framework based on changes in the application state or user input.
10
+ */
11
+ protected _source: string;
12
+ /**
13
+ * The roots array holds references to the root nodes of the ARE scene, allowing for easy access and management of the top-level components in the rendering hierarchy. The signalsMap is a mapping between root nodes and their associated signal vectors, enabling efficient management of reactive updates and interactions within the ARE framework based on changes in the application state or user input.
14
+ */
15
+ protected _roots: Array<AreNode>;
16
+ /**
17
+ * This property stores a map between root node and conditions that should be met to render particular component inside the root node. This can be used to manage complex rendering logic and to optimize performance by ensuring that components are only rendered when necessary based on the defined conditions.
18
+ */
19
+ protected _signalsMap: Map<string, A_SignalVector>;
20
+ protected _performance: Map<string, number>;
21
+ protected _performanceStart: Map<string, number>;
22
+ protected _performanceDepth: Map<string, number>;
23
+ /**
24
+ * The global object can be used to store any global data or configurations that need to be accessed across different components and entities within the ARE framework. This can include things like theme settings, user preferences, or any other shared data that is relevant to the entire scene or application. By centralizing this information in the context, it allows for easier management and access to global state without needing to pass it through multiple layers of components or entities.
25
+ */
26
+ get globals(): any;
27
+ constructor(
28
+ /**
29
+ * The source string represents the original template or input from which the ARE scene is generated. This can be used for debugging, error reporting, or any features that require access to the raw template data. The roots array holds references to the root nodes of the ARE scene, allowing for easy access and management of the top-level components in the rendering hierarchy. The signalsMap is a mapping between root nodes and their associated signal vectors, enabling efficient management of reactive updates and interactions within the ARE framework based on changes in the application state or user input.
30
+ */
31
+ source?: string);
32
+ /**
33
+ * The scope of the context, which can be used to access other entities and features within the same scope. This is particularly useful for components that need to interact with other parts of the scene or component, as it allows them to access shared data and functionality without needing to pass it explicitly through parameters.
34
+ */
35
+ get scope(): _adaas_a_concept.A_Scope<any, _adaas_a_concept.A_TYPES__Component_Constructor<_adaas_a_concept.A_Component>[], _adaas_a_concept.A_TYPES__Error_Constructor<_adaas_a_concept.A_Error<_adaas_a_concept.A_TYPES__Error_Init, _adaas_a_concept.A_TYPES__Error_Serialized>>[], _adaas_a_concept.A_TYPES__Entity_Constructor<_adaas_a_concept.A_Entity<any, _adaas_a_concept.A_TYPES__Entity_Serialized>>[], A_Fragment<_adaas_a_concept.A_TYPES__Fragment_Serialized>[]>;
36
+ /**
37
+ * The roots array holds references to the root nodes of the ARE scene, allowing for easy access and management of the top-level components in the rendering hierarchy. The signalsMap is a mapping between root nodes and their associated signal vectors, enabling efficient management of reactive updates and interactions within the ARE framework based on changes in the application state or user input.
38
+ */
39
+ get roots(): Array<AreNode>;
40
+ /**
41
+ * This property stores a map between root node and conditions that should be met to render particular component inside the root node. This can be used to manage complex rendering logic and to optimize performance by ensuring that components are only rendered when necessary based on the defined conditions.
42
+ */
43
+ get source(): string;
44
+ get performance(): Array<string>;
45
+ get stats(): string[];
46
+ protected countInstructions(node: AreNode): number;
47
+ protected countNodes(node: AreNode): number;
48
+ /**
49
+ * This property stores a map between root node and conditions that should be met to render particular component inside the root node. This can be used to manage complex rendering logic and to optimize performance by ensuring that components are only rendered when necessary based on the defined conditions.
50
+ *
51
+ * @param node
52
+ */
53
+ addRoot(node: AreNode): void;
54
+ /**
55
+ * This property stores a map between root node and conditions that should be met to render particular component inside the root node. This can be used to manage complex rendering logic and to optimize performance by ensuring that components are only rendered when necessary based on the defined conditions.
56
+ *
57
+ * @param node
58
+ */
59
+ removeRoot(node: AreNode): void;
60
+ startPerformance(label?: string): void;
61
+ endPerformance(label: string): void;
62
+ }
63
+
64
+ export { AreContext };
@@ -1,14 +1,64 @@
1
- import '@adaas/a-concept';
2
- import '@adaas/a-utils/a-signal';
3
- export { a as AreContext } from '../../Are.context-9Ija_fdC.js';
4
- import '@adaas/a-utils/a-execution';
5
- import '../AreEvent/AreEvent.context.js';
6
- import '../AreStore/AreStore.types.js';
7
- import '../AreStore/AreStore.constants.js';
8
- import '../AreScene/AreScene.constants.js';
9
- import '../AreAttribute/AreAttribute.types.js';
10
- import '../AreAttribute/AreAttribute.constants.js';
11
- import './Are.component.js';
12
- import './Are.types.js';
13
- import './Are.constants.js';
14
- import '../AreNode/AreNode.constants.js';
1
+ import * as _adaas_a_concept from '@adaas/a-concept';
2
+ import { A_Fragment } from '@adaas/a-concept';
3
+ import { A_SignalVector } from '@adaas/a-utils/a-signal';
4
+ import { AreNode } from '@adaas/are/node/AreNode.entity';
5
+ import { A_ExecutionContext } from '@adaas/a-utils/a-execution';
6
+
7
+ declare class AreContext extends A_ExecutionContext {
8
+ /**
9
+ * The source string represents the original template or input from which the ARE scene is generated. This can be used for debugging, error reporting, or any features that require access to the raw template data. The roots array holds references to the root nodes of the ARE scene, allowing for easy access and management of the top-level components in the rendering hierarchy. The signalsMap is a mapping between root nodes and their associated signal vectors, enabling efficient management of reactive updates and interactions within the ARE framework based on changes in the application state or user input.
10
+ */
11
+ protected _source: string;
12
+ /**
13
+ * The roots array holds references to the root nodes of the ARE scene, allowing for easy access and management of the top-level components in the rendering hierarchy. The signalsMap is a mapping between root nodes and their associated signal vectors, enabling efficient management of reactive updates and interactions within the ARE framework based on changes in the application state or user input.
14
+ */
15
+ protected _roots: Array<AreNode>;
16
+ /**
17
+ * This property stores a map between root node and conditions that should be met to render particular component inside the root node. This can be used to manage complex rendering logic and to optimize performance by ensuring that components are only rendered when necessary based on the defined conditions.
18
+ */
19
+ protected _signalsMap: Map<string, A_SignalVector>;
20
+ protected _performance: Map<string, number>;
21
+ protected _performanceStart: Map<string, number>;
22
+ protected _performanceDepth: Map<string, number>;
23
+ /**
24
+ * The global object can be used to store any global data or configurations that need to be accessed across different components and entities within the ARE framework. This can include things like theme settings, user preferences, or any other shared data that is relevant to the entire scene or application. By centralizing this information in the context, it allows for easier management and access to global state without needing to pass it through multiple layers of components or entities.
25
+ */
26
+ get globals(): any;
27
+ constructor(
28
+ /**
29
+ * The source string represents the original template or input from which the ARE scene is generated. This can be used for debugging, error reporting, or any features that require access to the raw template data. The roots array holds references to the root nodes of the ARE scene, allowing for easy access and management of the top-level components in the rendering hierarchy. The signalsMap is a mapping between root nodes and their associated signal vectors, enabling efficient management of reactive updates and interactions within the ARE framework based on changes in the application state or user input.
30
+ */
31
+ source?: string);
32
+ /**
33
+ * The scope of the context, which can be used to access other entities and features within the same scope. This is particularly useful for components that need to interact with other parts of the scene or component, as it allows them to access shared data and functionality without needing to pass it explicitly through parameters.
34
+ */
35
+ get scope(): _adaas_a_concept.A_Scope<any, _adaas_a_concept.A_TYPES__Component_Constructor<_adaas_a_concept.A_Component>[], _adaas_a_concept.A_TYPES__Error_Constructor<_adaas_a_concept.A_Error<_adaas_a_concept.A_TYPES__Error_Init, _adaas_a_concept.A_TYPES__Error_Serialized>>[], _adaas_a_concept.A_TYPES__Entity_Constructor<_adaas_a_concept.A_Entity<any, _adaas_a_concept.A_TYPES__Entity_Serialized>>[], A_Fragment<_adaas_a_concept.A_TYPES__Fragment_Serialized>[]>;
36
+ /**
37
+ * The roots array holds references to the root nodes of the ARE scene, allowing for easy access and management of the top-level components in the rendering hierarchy. The signalsMap is a mapping between root nodes and their associated signal vectors, enabling efficient management of reactive updates and interactions within the ARE framework based on changes in the application state or user input.
38
+ */
39
+ get roots(): Array<AreNode>;
40
+ /**
41
+ * This property stores a map between root node and conditions that should be met to render particular component inside the root node. This can be used to manage complex rendering logic and to optimize performance by ensuring that components are only rendered when necessary based on the defined conditions.
42
+ */
43
+ get source(): string;
44
+ get performance(): Array<string>;
45
+ get stats(): string[];
46
+ protected countInstructions(node: AreNode): number;
47
+ protected countNodes(node: AreNode): number;
48
+ /**
49
+ * This property stores a map between root node and conditions that should be met to render particular component inside the root node. This can be used to manage complex rendering logic and to optimize performance by ensuring that components are only rendered when necessary based on the defined conditions.
50
+ *
51
+ * @param node
52
+ */
53
+ addRoot(node: AreNode): void;
54
+ /**
55
+ * This property stores a map between root node and conditions that should be met to render particular component inside the root node. This can be used to manage complex rendering logic and to optimize performance by ensuring that components are only rendered when necessary based on the defined conditions.
56
+ *
57
+ * @param node
58
+ */
59
+ removeRoot(node: AreNode): void;
60
+ startPerformance(label?: string): void;
61
+ endPerformance(label: string): void;
62
+ }
63
+
64
+ export { AreContext };
@@ -1,30 +1,16 @@
1
1
  import { A_Component, A_Scope, A_TYPES__A_DependencyInjectable, A_TYPES__Ctor } from '@adaas/a-concept';
2
- import { AreSyntax } from '../AreSyntax/AreSyntax.context.mjs';
2
+ import { AreSyntax } from '@adaas/are/syntax/AreSyntax.context';
3
3
  import { A_Logger } from '@adaas/a-utils/a-logger';
4
- import { AreCompiler } from '../AreCompiler/AreCompiler.component.mjs';
5
- import { AreTransformer } from '../AreTransformer/AreTransformer.component.mjs';
6
- import { AreLoader } from '../AreLoader/AreLoader.component.mjs';
7
- import { AreInterpreter } from '../AreInterpreter/AreInterpreter.component.mjs';
8
- import { AreLifecycle } from '../AreLifecycle/AreLifecycle.component.mjs';
9
- import { a as AreContext } from '../../Are.context-D7w32H1G.mjs';
4
+ import { AreCompiler } from '@adaas/are/compiler/AreCompiler.component';
5
+ import { AreTransformer } from '@adaas/are/transformer/AreTransformer.component';
6
+ import { AreLoader } from '@adaas/are/loader/AreLoader.component';
7
+ import { AreInterpreter } from '@adaas/are/interpreter/AreInterpreter.component';
8
+ import { AreLifecycle } from '@adaas/are/lifecycle/AreLifecycle.component';
9
+ import { AreContext } from '@adaas/are/component/Are.context';
10
10
  import { AreEngineDependencies } from './AreEngine.types.mjs';
11
11
  import { A_SignalBus } from '@adaas/a-utils/a-signal';
12
- import '../AreEvent/AreEvent.context.mjs';
13
- import '@adaas/a-utils/a-execution';
14
- import '../AreStore/AreStore.types.mjs';
15
- import '../AreStore/AreStore.constants.mjs';
16
- import '../AreScene/AreScene.constants.mjs';
17
- import '../AreAttribute/AreAttribute.types.mjs';
18
- import '../AreAttribute/AreAttribute.constants.mjs';
19
- import '../AreComponent/Are.component.mjs';
20
- import '../AreComponent/Are.types.mjs';
21
- import '../AreComponent/Are.constants.mjs';
22
- import '../AreNode/AreNode.constants.mjs';
23
- import '../AreTokenizer/AreTokenizer.component.mjs';
24
- import '../AreSignals/AreSignals.component.mjs';
25
- import '../AreSignals/AreSignals.context.mjs';
26
- import '../AreSignals/AreSignals.types.mjs';
27
- import '../AreSignals/AreSignals.meta.mjs';
12
+ import '@adaas/are/tokenizer/AreTokenizer.component';
13
+ import '@adaas/are/signals/AreSignals.component';
28
14
 
29
15
  declare class AreEngine extends A_Component {
30
16
  /**
@@ -1,30 +1,16 @@
1
1
  import { A_Component, A_Scope, A_TYPES__A_DependencyInjectable, A_TYPES__Ctor } from '@adaas/a-concept';
2
- import { AreSyntax } from '../AreSyntax/AreSyntax.context.js';
2
+ import { AreSyntax } from '@adaas/are/syntax/AreSyntax.context';
3
3
  import { A_Logger } from '@adaas/a-utils/a-logger';
4
- import { AreCompiler } from '../AreCompiler/AreCompiler.component.js';
5
- import { AreTransformer } from '../AreTransformer/AreTransformer.component.js';
6
- import { AreLoader } from '../AreLoader/AreLoader.component.js';
7
- import { AreInterpreter } from '../AreInterpreter/AreInterpreter.component.js';
8
- import { AreLifecycle } from '../AreLifecycle/AreLifecycle.component.js';
9
- import { a as AreContext } from '../../Are.context-9Ija_fdC.js';
4
+ import { AreCompiler } from '@adaas/are/compiler/AreCompiler.component';
5
+ import { AreTransformer } from '@adaas/are/transformer/AreTransformer.component';
6
+ import { AreLoader } from '@adaas/are/loader/AreLoader.component';
7
+ import { AreInterpreter } from '@adaas/are/interpreter/AreInterpreter.component';
8
+ import { AreLifecycle } from '@adaas/are/lifecycle/AreLifecycle.component';
9
+ import { AreContext } from '@adaas/are/component/Are.context';
10
10
  import { AreEngineDependencies } from './AreEngine.types.js';
11
11
  import { A_SignalBus } from '@adaas/a-utils/a-signal';
12
- import '../AreEvent/AreEvent.context.js';
13
- import '@adaas/a-utils/a-execution';
14
- import '../AreStore/AreStore.types.js';
15
- import '../AreStore/AreStore.constants.js';
16
- import '../AreScene/AreScene.constants.js';
17
- import '../AreAttribute/AreAttribute.types.js';
18
- import '../AreAttribute/AreAttribute.constants.js';
19
- import '../AreComponent/Are.component.js';
20
- import '../AreComponent/Are.types.js';
21
- import '../AreComponent/Are.constants.js';
22
- import '../AreNode/AreNode.constants.js';
23
- import '../AreTokenizer/AreTokenizer.component.js';
24
- import '../AreSignals/AreSignals.component.js';
25
- import '../AreSignals/AreSignals.context.js';
26
- import '../AreSignals/AreSignals.types.js';
27
- import '../AreSignals/AreSignals.meta.js';
12
+ import '@adaas/are/tokenizer/AreTokenizer.component';
13
+ import '@adaas/are/signals/AreSignals.component';
28
14
 
29
15
  declare class AreEngine extends A_Component {
30
16
  /**
@@ -1,29 +1,13 @@
1
1
  import { A_TYPES__Component_Constructor } from '@adaas/a-concept';
2
- import { AreCompiler } from '../AreCompiler/AreCompiler.component.mjs';
3
- import { a as AreContext } from '../../Are.context-D7w32H1G.mjs';
4
- import { AreLoader } from '../AreLoader/AreLoader.component.mjs';
5
- import { AreSyntax } from '../AreSyntax/AreSyntax.context.mjs';
6
- import { AreTokenizer } from '../AreTokenizer/AreTokenizer.component.mjs';
7
- import { AreTransformer } from '../AreTransformer/AreTransformer.component.mjs';
8
- import { AreInterpreter } from '../AreInterpreter/AreInterpreter.component.mjs';
9
- import { AreLifecycle } from '../AreLifecycle/AreLifecycle.component.mjs';
10
- import { AreSignals } from '../AreSignals/AreSignals.component.mjs';
11
- import '@adaas/a-utils/a-logger';
12
- import '@adaas/a-utils/a-signal';
13
- import '../AreEvent/AreEvent.context.mjs';
14
- import '@adaas/a-utils/a-execution';
15
- import '../AreStore/AreStore.types.mjs';
16
- import '../AreStore/AreStore.constants.mjs';
17
- import '../AreScene/AreScene.constants.mjs';
18
- import '../AreAttribute/AreAttribute.types.mjs';
19
- import '../AreAttribute/AreAttribute.constants.mjs';
20
- import '../AreComponent/Are.component.mjs';
21
- import '../AreComponent/Are.types.mjs';
22
- import '../AreComponent/Are.constants.mjs';
23
- import '../AreNode/AreNode.constants.mjs';
24
- import '../AreSignals/AreSignals.context.mjs';
25
- import '../AreSignals/AreSignals.types.mjs';
26
- import '../AreSignals/AreSignals.meta.mjs';
2
+ import { AreCompiler } from '@adaas/are/compiler/AreCompiler.component';
3
+ import { AreContext } from '@adaas/are/component/Are.context';
4
+ import { AreLoader } from '@adaas/are/loader/AreLoader.component';
5
+ import { AreSyntax } from '@adaas/are/syntax/AreSyntax.context';
6
+ import { AreTokenizer } from '@adaas/are/tokenizer/AreTokenizer.component';
7
+ import { AreTransformer } from '@adaas/are/transformer/AreTransformer.component';
8
+ import { AreInterpreter } from '@adaas/are/interpreter/AreInterpreter.component';
9
+ import { AreLifecycle } from '@adaas/are/lifecycle/AreLifecycle.component';
10
+ import { AreSignals } from '@adaas/are/signals/AreSignals.component';
27
11
 
28
12
  type AreEngineDependencies = {
29
13
  context: AreContext;
@@ -1,29 +1,13 @@
1
1
  import { A_TYPES__Component_Constructor } from '@adaas/a-concept';
2
- import { AreCompiler } from '../AreCompiler/AreCompiler.component.js';
3
- import { a as AreContext } from '../../Are.context-9Ija_fdC.js';
4
- import { AreLoader } from '../AreLoader/AreLoader.component.js';
5
- import { AreSyntax } from '../AreSyntax/AreSyntax.context.js';
6
- import { AreTokenizer } from '../AreTokenizer/AreTokenizer.component.js';
7
- import { AreTransformer } from '../AreTransformer/AreTransformer.component.js';
8
- import { AreInterpreter } from '../AreInterpreter/AreInterpreter.component.js';
9
- import { AreLifecycle } from '../AreLifecycle/AreLifecycle.component.js';
10
- import { AreSignals } from '../AreSignals/AreSignals.component.js';
11
- import '@adaas/a-utils/a-logger';
12
- import '@adaas/a-utils/a-signal';
13
- import '../AreEvent/AreEvent.context.js';
14
- import '@adaas/a-utils/a-execution';
15
- import '../AreStore/AreStore.types.js';
16
- import '../AreStore/AreStore.constants.js';
17
- import '../AreScene/AreScene.constants.js';
18
- import '../AreAttribute/AreAttribute.types.js';
19
- import '../AreAttribute/AreAttribute.constants.js';
20
- import '../AreComponent/Are.component.js';
21
- import '../AreComponent/Are.types.js';
22
- import '../AreComponent/Are.constants.js';
23
- import '../AreNode/AreNode.constants.js';
24
- import '../AreSignals/AreSignals.context.js';
25
- import '../AreSignals/AreSignals.types.js';
26
- import '../AreSignals/AreSignals.meta.js';
2
+ import { AreCompiler } from '@adaas/are/compiler/AreCompiler.component';
3
+ import { AreContext } from '@adaas/are/component/Are.context';
4
+ import { AreLoader } from '@adaas/are/loader/AreLoader.component';
5
+ import { AreSyntax } from '@adaas/are/syntax/AreSyntax.context';
6
+ import { AreTokenizer } from '@adaas/are/tokenizer/AreTokenizer.component';
7
+ import { AreTransformer } from '@adaas/are/transformer/AreTransformer.component';
8
+ import { AreInterpreter } from '@adaas/are/interpreter/AreInterpreter.component';
9
+ import { AreLifecycle } from '@adaas/are/lifecycle/AreLifecycle.component';
10
+ import { AreSignals } from '@adaas/are/signals/AreSignals.component';
27
11
 
28
12
  type AreEngineDependencies = {
29
13
  context: AreContext;
@@ -1,14 +1,4 @@
1
1
  import '@adaas/a-concept';
2
- export { c as AreInstruction } from '../../Are.context-D7w32H1G.mjs';
3
- import '../AreStore/AreStore.types.mjs';
4
- import '@adaas/a-utils/a-signal';
5
- import '../AreEvent/AreEvent.context.mjs';
6
- import '@adaas/a-utils/a-execution';
7
- import '../AreScene/AreScene.constants.mjs';
8
- import '../AreAttribute/AreAttribute.types.mjs';
9
- import '../AreAttribute/AreAttribute.constants.mjs';
10
- import '../AreComponent/Are.component.mjs';
11
- import '../AreComponent/Are.types.mjs';
12
- import '../AreComponent/Are.constants.mjs';
13
- import '../AreNode/AreNode.constants.mjs';
14
- import '../AreStore/AreStore.constants.mjs';
2
+ import '@adaas/are/node/AreNode.entity';
3
+ export { A as AreInstruction } from '../../AreInstruction.entity-Ceyy0tbf.mjs';
4
+ import '@adaas/are/store/AreStore.types';
@@ -1,14 +1,4 @@
1
1
  import '@adaas/a-concept';
2
- export { c as AreInstruction } from '../../Are.context-9Ija_fdC.js';
3
- import '../AreStore/AreStore.types.js';
4
- import '@adaas/a-utils/a-signal';
5
- import '../AreEvent/AreEvent.context.js';
6
- import '@adaas/a-utils/a-execution';
7
- import '../AreScene/AreScene.constants.js';
8
- import '../AreAttribute/AreAttribute.types.js';
9
- import '../AreAttribute/AreAttribute.constants.js';
10
- import '../AreComponent/Are.component.js';
11
- import '../AreComponent/Are.types.js';
12
- import '../AreComponent/Are.constants.js';
13
- import '../AreNode/AreNode.constants.js';
14
- import '../AreStore/AreStore.constants.js';
2
+ import '@adaas/are/node/AreNode.entity';
3
+ export { A as AreInstruction } from '../../AreInstruction.entity-Ceyy0tbf.js';
4
+ import '@adaas/are/store/AreStore.types';
@@ -1,14 +1,4 @@
1
1
  import '@adaas/a-concept';
2
- export { d as AreInstructionNewProps, e as AreInstructionSerialized } from '../../Are.context-D7w32H1G.mjs';
3
- import '@adaas/a-utils/a-signal';
4
- import '../AreEvent/AreEvent.context.mjs';
5
- import '@adaas/a-utils/a-execution';
6
- import '../AreStore/AreStore.types.mjs';
7
- import '../AreStore/AreStore.constants.mjs';
8
- import '../AreScene/AreScene.constants.mjs';
9
- import '../AreAttribute/AreAttribute.types.mjs';
10
- import '../AreAttribute/AreAttribute.constants.mjs';
11
- import '../AreComponent/Are.component.mjs';
12
- import '../AreComponent/Are.types.mjs';
13
- import '../AreComponent/Are.constants.mjs';
14
- import '../AreNode/AreNode.constants.mjs';
2
+ export { a as AreInstructionNewProps, b as AreInstructionSerialized } from '../../AreInstruction.entity-Ceyy0tbf.mjs';
3
+ import '@adaas/are/node/AreNode.entity';
4
+ import '@adaas/are/store/AreStore.types';