@adaas/are-html 0.0.2 → 0.0.4
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/README.md +4 -4
- package/dist/browser/index.d.mts +88 -5
- package/dist/browser/index.mjs +542 -176
- package/dist/browser/index.mjs.map +1 -1
- package/dist/node/attributes/AreBinding.attribute.js +17 -4
- package/dist/node/attributes/AreBinding.attribute.js.map +1 -1
- package/dist/node/attributes/AreBinding.attribute.mjs +10 -3
- package/dist/node/attributes/AreBinding.attribute.mjs.map +1 -1
- package/dist/node/attributes/AreDirective.attribute.js +17 -4
- package/dist/node/attributes/AreDirective.attribute.js.map +1 -1
- package/dist/node/attributes/AreDirective.attribute.mjs +10 -3
- package/dist/node/attributes/AreDirective.attribute.mjs.map +1 -1
- package/dist/node/attributes/AreEvent.attribute.js +17 -4
- package/dist/node/attributes/AreEvent.attribute.js.map +1 -1
- package/dist/node/attributes/AreEvent.attribute.mjs +10 -3
- package/dist/node/attributes/AreEvent.attribute.mjs.map +1 -1
- package/dist/node/attributes/AreStatic.attribute.js +17 -4
- package/dist/node/attributes/AreStatic.attribute.js.map +1 -1
- package/dist/node/attributes/AreStatic.attribute.mjs +10 -3
- package/dist/node/attributes/AreStatic.attribute.mjs.map +1 -1
- package/dist/node/directives/AreDirectiveFor.directive.d.mts +8 -0
- package/dist/node/directives/AreDirectiveFor.directive.d.ts +8 -0
- package/dist/node/directives/AreDirectiveFor.directive.js +78 -33
- package/dist/node/directives/AreDirectiveFor.directive.js.map +1 -1
- package/dist/node/directives/AreDirectiveFor.directive.mjs +78 -33
- package/dist/node/directives/AreDirectiveFor.directive.mjs.map +1 -1
- package/dist/node/directives/AreDirectiveIf.directive.d.mts +18 -0
- package/dist/node/directives/AreDirectiveIf.directive.d.ts +18 -0
- package/dist/node/directives/AreDirectiveIf.directive.js +10 -3
- package/dist/node/directives/AreDirectiveIf.directive.js.map +1 -1
- package/dist/node/directives/AreDirectiveIf.directive.mjs +10 -3
- package/dist/node/directives/AreDirectiveIf.directive.mjs.map +1 -1
- package/dist/node/engine/AreHTML.compiler.d.mts +2 -2
- package/dist/node/engine/AreHTML.compiler.d.ts +2 -2
- package/dist/node/engine/AreHTML.compiler.js +57 -29
- package/dist/node/engine/AreHTML.compiler.js.map +1 -1
- package/dist/node/engine/AreHTML.compiler.mjs +58 -30
- package/dist/node/engine/AreHTML.compiler.mjs.map +1 -1
- package/dist/node/engine/AreHTML.constants.d.mts +53 -1
- package/dist/node/engine/AreHTML.constants.d.ts +53 -1
- package/dist/node/engine/AreHTML.constants.js +100 -0
- package/dist/node/engine/AreHTML.constants.js.map +1 -1
- package/dist/node/engine/AreHTML.constants.mjs +93 -0
- package/dist/node/engine/AreHTML.constants.mjs.map +1 -1
- package/dist/node/engine/AreHTML.context.d.mts +6 -2
- package/dist/node/engine/AreHTML.context.d.ts +6 -2
- package/dist/node/engine/AreHTML.context.js +42 -7
- package/dist/node/engine/AreHTML.context.js.map +1 -1
- package/dist/node/engine/AreHTML.context.mjs +35 -6
- package/dist/node/engine/AreHTML.context.mjs.map +1 -1
- package/dist/node/engine/AreHTML.engine.js +10 -7
- package/dist/node/engine/AreHTML.engine.js.map +1 -1
- package/dist/node/engine/AreHTML.engine.mjs +10 -7
- package/dist/node/engine/AreHTML.engine.mjs.map +1 -1
- package/dist/node/engine/AreHTML.interpreter.js +155 -43
- package/dist/node/engine/AreHTML.interpreter.js.map +1 -1
- package/dist/node/engine/AreHTML.interpreter.mjs +155 -43
- package/dist/node/engine/AreHTML.interpreter.mjs.map +1 -1
- package/dist/node/engine/AreHTML.lifecycle.js +17 -12
- package/dist/node/engine/AreHTML.lifecycle.js.map +1 -1
- package/dist/node/engine/AreHTML.lifecycle.mjs +9 -2
- package/dist/node/engine/AreHTML.lifecycle.mjs.map +1 -1
- package/dist/node/engine/AreHTML.tokenizer.js +14 -9
- package/dist/node/engine/AreHTML.tokenizer.js.map +1 -1
- package/dist/node/engine/AreHTML.tokenizer.mjs +10 -3
- package/dist/node/engine/AreHTML.tokenizer.mjs.map +1 -1
- package/dist/node/engine/AreHTML.transformer.js +13 -8
- package/dist/node/engine/AreHTML.transformer.js.map +1 -1
- package/dist/node/engine/AreHTML.transformer.mjs +9 -2
- package/dist/node/engine/AreHTML.transformer.mjs.map +1 -1
- package/dist/node/index.d.mts +2 -1
- package/dist/node/index.d.ts +2 -1
- package/dist/node/index.js +3 -3
- package/dist/node/index.mjs +1 -1
- package/dist/node/instructions/AddAttribute.instruction.js +3 -4
- package/dist/node/instructions/AddAttribute.instruction.js.map +1 -1
- package/dist/node/instructions/AddAttribute.instruction.mjs +3 -4
- package/dist/node/instructions/AddAttribute.instruction.mjs.map +1 -1
- package/dist/node/instructions/AddComment.instruction.js +3 -4
- package/dist/node/instructions/AddComment.instruction.js.map +1 -1
- package/dist/node/instructions/AddComment.instruction.mjs +3 -4
- package/dist/node/instructions/AddComment.instruction.mjs.map +1 -1
- package/dist/node/instructions/AddElement.instruction.js +3 -4
- package/dist/node/instructions/AddElement.instruction.js.map +1 -1
- package/dist/node/instructions/AddElement.instruction.mjs +3 -4
- package/dist/node/instructions/AddElement.instruction.mjs.map +1 -1
- package/dist/node/instructions/AddInterpolation.instruction.js +3 -4
- package/dist/node/instructions/AddInterpolation.instruction.js.map +1 -1
- package/dist/node/instructions/AddInterpolation.instruction.mjs +3 -4
- package/dist/node/instructions/AddInterpolation.instruction.mjs.map +1 -1
- package/dist/node/instructions/AddListener.instruction.js +3 -4
- package/dist/node/instructions/AddListener.instruction.js.map +1 -1
- package/dist/node/instructions/AddListener.instruction.mjs +3 -4
- package/dist/node/instructions/AddListener.instruction.mjs.map +1 -1
- package/dist/node/instructions/AddStyle.instruction.js +3 -4
- package/dist/node/instructions/AddStyle.instruction.js.map +1 -1
- package/dist/node/instructions/AddStyle.instruction.mjs +3 -4
- package/dist/node/instructions/AddStyle.instruction.mjs.map +1 -1
- package/dist/node/instructions/AddText.instruction.js +3 -4
- package/dist/node/instructions/AddText.instruction.js.map +1 -1
- package/dist/node/instructions/AddText.instruction.mjs +3 -4
- package/dist/node/instructions/AddText.instruction.mjs.map +1 -1
- package/dist/node/lib/AreDirective/AreDirective.component.js +5 -0
- package/dist/node/lib/AreDirective/AreDirective.component.js.map +1 -1
- package/dist/node/lib/AreDirective/AreDirective.component.mjs +5 -0
- package/dist/node/lib/AreDirective/AreDirective.component.mjs.map +1 -1
- package/dist/node/lib/AreHTMLAttribute/AreHTML.attribute.js +17 -4
- package/dist/node/lib/AreHTMLAttribute/AreHTML.attribute.js.map +1 -1
- package/dist/node/lib/AreHTMLAttribute/AreHTML.attribute.mjs +10 -3
- package/dist/node/lib/AreHTMLAttribute/AreHTML.attribute.mjs.map +1 -1
- package/dist/node/lib/AreHTMLNode/AreHTMLNode.js +3 -4
- package/dist/node/lib/AreHTMLNode/AreHTMLNode.js.map +1 -1
- package/dist/node/lib/AreHTMLNode/AreHTMLNode.mjs +3 -4
- package/dist/node/lib/AreHTMLNode/AreHTMLNode.mjs.map +1 -1
- package/dist/node/lib/AreRoot/AreRoot.component.js +3 -4
- package/dist/node/lib/AreRoot/AreRoot.component.js.map +1 -1
- package/dist/node/lib/AreRoot/AreRoot.component.mjs +3 -4
- package/dist/node/lib/AreRoot/AreRoot.component.mjs.map +1 -1
- package/dist/node/lib/{AreWatcher/AreWatcher.component.d.mts → AreRouteWatcher/AreRouteWatcher.component.d.mts} +2 -2
- package/dist/node/lib/{AreWatcher/AreWatcher.component.d.ts → AreRouteWatcher/AreRouteWatcher.component.d.ts} +2 -2
- package/dist/node/lib/{AreWatcher/AreWatcher.component.js → AreRouteWatcher/AreRouteWatcher.component.js} +9 -10
- package/dist/node/lib/AreRouteWatcher/AreRouteWatcher.component.js.map +1 -0
- package/dist/node/lib/{AreWatcher/AreWatcher.component.mjs → AreRouteWatcher/AreRouteWatcher.component.mjs} +10 -11
- package/dist/node/lib/AreRouteWatcher/AreRouteWatcher.component.mjs.map +1 -0
- package/dist/node/lib/AreStyle/AreStyle.context.js +17 -4
- package/dist/node/lib/AreStyle/AreStyle.context.js.map +1 -1
- package/dist/node/lib/AreStyle/AreStyle.context.mjs +10 -3
- package/dist/node/lib/AreStyle/AreStyle.context.mjs.map +1 -1
- package/dist/node/nodes/AreComment.js +17 -4
- package/dist/node/nodes/AreComment.js.map +1 -1
- package/dist/node/nodes/AreComment.mjs +10 -3
- package/dist/node/nodes/AreComment.mjs.map +1 -1
- package/dist/node/nodes/AreComponent.js +3 -4
- package/dist/node/nodes/AreComponent.js.map +1 -1
- package/dist/node/nodes/AreComponent.mjs +3 -4
- package/dist/node/nodes/AreComponent.mjs.map +1 -1
- package/dist/node/nodes/AreInterpolation.js +17 -4
- package/dist/node/nodes/AreInterpolation.js.map +1 -1
- package/dist/node/nodes/AreInterpolation.mjs +10 -3
- package/dist/node/nodes/AreInterpolation.mjs.map +1 -1
- package/dist/node/nodes/AreRoot.js +3 -4
- package/dist/node/nodes/AreRoot.js.map +1 -1
- package/dist/node/nodes/AreRoot.mjs +3 -4
- package/dist/node/nodes/AreRoot.mjs.map +1 -1
- package/dist/node/nodes/AreText.js +17 -4
- package/dist/node/nodes/AreText.js.map +1 -1
- package/dist/node/nodes/AreText.mjs +10 -3
- package/dist/node/nodes/AreText.mjs.map +1 -1
- package/dist/node/signals/AreRoute.signal.js +18 -5
- package/dist/node/signals/AreRoute.signal.js.map +1 -1
- package/dist/node/signals/AreRoute.signal.mjs +10 -3
- package/dist/node/signals/AreRoute.signal.mjs.map +1 -1
- package/docs/SYNTAX.md +714 -0
- package/docs/arehtml.monaco.json +235 -0
- package/docs/arehtml.monaco.ts +119 -0
- package/examples/dashboard/dist/index.html +1 -1
- package/examples/dashboard/dist/mpioi5ab-8c3oa9.js +13674 -0
- package/examples/jumpstart/dist/index.html +1 -1
- package/examples/{dashboard/dist/mnzfypsd-6zjt7w.js → jumpstart/dist/mor90p6y-0plg7g.js} +1869 -1926
- package/examples/jumpstart/dist/{mnpl1g4i-nobz9g.js → mor90p7p-1898bz.js} +2797 -2282
- package/examples/jumpstart/src/components/List.component.ts +14 -13
- package/examples/jumpstart/src/concept.ts +5 -4
- package/jest.config.ts +1 -1
- package/package.json +10 -6
- package/src/attributes/AreBinding.attribute.ts +5 -0
- package/src/attributes/AreDirective.attribute.ts +5 -0
- package/src/attributes/AreEvent.attribute.ts +5 -0
- package/src/attributes/AreStatic.attribute.ts +5 -0
- package/src/directives/AreDirectiveFor.directive.ts +97 -60
- package/src/directives/AreDirectiveIf.directive.ts +37 -15
- package/src/engine/AreHTML.compiler.ts +64 -36
- package/src/engine/AreHTML.constants.ts +144 -0
- package/src/engine/AreHTML.context.ts +33 -4
- package/src/engine/AreHTML.engine.ts +12 -7
- package/src/engine/AreHTML.interpreter.ts +195 -68
- package/src/engine/AreHTML.lifecycle.ts +5 -0
- package/src/engine/AreHTML.tokenizer.ts +6 -1
- package/src/engine/AreHTML.transformer.ts +5 -0
- package/src/index.ts +2 -2
- package/src/instructions/AddAttribute.instruction.ts +3 -4
- package/src/instructions/AddComment.instruction.ts +3 -4
- package/src/instructions/AddElement.instruction.ts +3 -4
- package/src/instructions/AddInterpolation.instruction.ts +3 -4
- package/src/instructions/AddListener.instruction.ts +3 -4
- package/src/instructions/AddStyle.instruction.ts +3 -4
- package/src/instructions/AddText.instruction.ts +3 -4
- package/src/lib/AreDirective/AreDirective.component.ts +5 -0
- package/src/lib/AreHTMLAttribute/AreHTML.attribute.ts +5 -0
- package/src/lib/AreHTMLNode/AreHTMLNode.ts +3 -4
- package/src/lib/AreRoot/AreRoot.component.ts +3 -4
- package/src/lib/{AreWatcher/AreWatcher.component.ts → AreRouteWatcher/AreRouteWatcher.component.ts} +5 -6
- package/src/lib/AreStyle/AreStyle.context.ts +5 -0
- package/src/nodes/AreComment.ts +5 -0
- package/src/nodes/AreComponent.ts +3 -4
- package/src/nodes/AreInterpolation.ts +5 -0
- package/src/nodes/AreRoot.ts +3 -4
- package/src/nodes/AreText.ts +5 -0
- package/src/signals/AreRoute.signal.ts +5 -0
- package/dist/node/lib/AreWatcher/AreWatcher.component.js.map +0 -1
- package/dist/node/lib/AreWatcher/AreWatcher.component.mjs.map +0 -1
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var aConcept = require('@adaas/a-concept');
|
|
4
|
+
var core = require('@adaas/a-frame/core');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
9
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
|
+
if (decorator = decorators[i])
|
|
11
|
+
result = (decorator(result)) || result;
|
|
12
|
+
return result;
|
|
13
|
+
};
|
|
14
|
+
exports.AreStyle = class AreStyle extends aConcept.A_Fragment {
|
|
6
15
|
constructor(styles, aseid) {
|
|
7
16
|
super({
|
|
8
17
|
name: aseid ? aseid.toString() : "default-style"
|
|
9
18
|
});
|
|
10
19
|
this.styles = styles;
|
|
11
20
|
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
21
|
+
};
|
|
22
|
+
exports.AreStyle = __decorateClass([
|
|
23
|
+
core.A_Frame.Define({
|
|
24
|
+
namespace: "a-are-html",
|
|
25
|
+
description: "Context fragment that holds the resolved CSS style rules string for a component scope. Populated during lifecycle initialisation and read by the compiler when emitting AddStyle instructions for inline styles declared on the component host element."
|
|
26
|
+
})
|
|
27
|
+
], exports.AreStyle);
|
|
15
28
|
//# sourceMappingURL=AreStyle.context.js.map
|
|
16
29
|
//# sourceMappingURL=AreStyle.context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/AreStyle/AreStyle.context.ts"],"names":["A_Fragment"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/AreStyle/AreStyle.context.ts"],"names":["AreStyle","A_Fragment","A_Frame"],"mappings":";;;;;;;;;;;;;AAQaA,gBAAA,GAAN,uBAAuBC,mBAAA,CAAW;AAAA,EAIrC,WAAA,CACI,QACA,KAAA,EAEF;AACE,IAAA,KAAA,CAAM;AAAA,MACF,IAAA,EAAM,KAAA,GAAQ,KAAA,CAAM,QAAA,EAAS,GAAI;AAAA,KACpC,CAAA;AAED,IAAA,IAAA,CAAK,MAAA,GAAS,MAAA;AAAA,EAClB;AAEJ;AAhBaD,gBAAA,GAAN,eAAA,CAAA;AAAA,EAJNE,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYF,gBAAA,CAAA","file":"AreStyle.context.js","sourcesContent":["import { A_Fragment, ASEID } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame/core\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Context fragment that holds the resolved CSS style rules string for a component scope. Populated during lifecycle initialisation and read by the compiler when emitting AddStyle instructions for inline styles declared on the component host element.'\n})\nexport class AreStyle extends A_Fragment {\n\n styles!: string;\n\n constructor(\n styles: string,\n aseid?: ASEID | string,\n\n ) {\n super({\n name: aseid ? aseid.toString() : 'default-style',\n });\n\n this.styles = styles;\n }\n\n}"]}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import '../../chunk-EQQGB2QZ.mjs';
|
|
1
|
+
import { __decorateClass } from '../../chunk-EQQGB2QZ.mjs';
|
|
2
2
|
import { A_Fragment } from '@adaas/a-concept';
|
|
3
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
let AreStyle = class extends A_Fragment {
|
|
5
6
|
constructor(styles, aseid) {
|
|
6
7
|
super({
|
|
7
8
|
name: aseid ? aseid.toString() : "default-style"
|
|
8
9
|
});
|
|
9
10
|
this.styles = styles;
|
|
10
11
|
}
|
|
11
|
-
}
|
|
12
|
+
};
|
|
13
|
+
AreStyle = __decorateClass([
|
|
14
|
+
A_Frame.Define({
|
|
15
|
+
namespace: "a-are-html",
|
|
16
|
+
description: "Context fragment that holds the resolved CSS style rules string for a component scope. Populated during lifecycle initialisation and read by the compiler when emitting AddStyle instructions for inline styles declared on the component host element."
|
|
17
|
+
})
|
|
18
|
+
], AreStyle);
|
|
12
19
|
|
|
13
20
|
export { AreStyle };
|
|
14
21
|
//# sourceMappingURL=AreStyle.context.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/AreStyle/AreStyle.context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/AreStyle/AreStyle.context.ts"],"names":[],"mappings":";;;;AAQO,IAAM,QAAA,GAAN,cAAuB,UAAA,CAAW;AAAA,EAIrC,WAAA,CACI,QACA,KAAA,EAEF;AACE,IAAA,KAAA,CAAM;AAAA,MACF,IAAA,EAAM,KAAA,GAAQ,KAAA,CAAM,QAAA,EAAS,GAAI;AAAA,KACpC,CAAA;AAED,IAAA,IAAA,CAAK,MAAA,GAAS,MAAA;AAAA,EAClB;AAEJ;AAhBa,QAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,QAAA,CAAA","file":"AreStyle.context.mjs","sourcesContent":["import { A_Fragment, ASEID } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame/core\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Context fragment that holds the resolved CSS style rules string for a component scope. Populated during lifecycle initialisation and read by the compiler when emitting AddStyle instructions for inline styles declared on the component host element.'\n})\nexport class AreStyle extends A_Fragment {\n\n styles!: string;\n\n constructor(\n styles: string,\n aseid?: ASEID | string,\n\n ) {\n super({\n name: aseid ? aseid.toString() : 'default-style',\n });\n\n this.styles = styles;\n }\n\n}"]}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var node = require('@adaas/are-html/node');
|
|
4
|
+
var core = require('@adaas/a-frame/core');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
9
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
|
+
if (decorator = decorators[i])
|
|
11
|
+
result = (decorator(result)) || result;
|
|
12
|
+
return result;
|
|
13
|
+
};
|
|
14
|
+
exports.AreComment = class AreComment extends node.AreHTMLNode {
|
|
6
15
|
fromNew(newEntity) {
|
|
7
16
|
super.fromNew({
|
|
8
17
|
...newEntity,
|
|
@@ -12,8 +21,12 @@ class AreComment extends node.AreHTMLNode {
|
|
|
12
21
|
}
|
|
13
22
|
});
|
|
14
23
|
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
24
|
+
};
|
|
25
|
+
exports.AreComment = __decorateClass([
|
|
26
|
+
core.A_Frame.Define({
|
|
27
|
+
namespace: "a-are-html",
|
|
28
|
+
description: "Node type representing a comment node in the AreHTMLNode tree. Used as a stable DOM anchor by structural directives such as $if and $for that swap rendered content in and out, ensuring the parent container always has a consistent insertion point."
|
|
29
|
+
})
|
|
30
|
+
], exports.AreComment);
|
|
18
31
|
//# sourceMappingURL=AreComment.js.map
|
|
19
32
|
//# sourceMappingURL=AreComment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/nodes/AreComment.ts"],"names":["AreHTMLNode"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreComment.ts"],"names":["AreComment","AreHTMLNode","A_Frame"],"mappings":";;;;;;;;;;;;;AAQaA,kBAAA,GAAN,yBAAyBC,gBAAA,CAAY;AAAA,EAIxC,QAAQ,SAAA,EAAkC;AACtC,IAAA,KAAA,CAAM,OAAA,CAAQ;AAAA,MACV,GAAG,SAAA;AAAA,MACH,OAAA,EAAQ;AAAA,QACJ,GAAI,SAAA,CAAU,OAAA,IAAW,EAAC;AAAA,QAC1B,MAAA,EAAQ;AAAA;AACZ,KACH,CAAA;AAAA,EACL;AACJ;AAbaD,kBAAA,GAAN,eAAA,CAAA;AAAA,EAJNE,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYF,kBAAA,CAAA","file":"AreComment.js","sourcesContent":["import { AreNodeNewProps } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\nimport { A_Frame } from \"@adaas/a-frame/core\";\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Node type representing a comment node in the AreHTMLNode tree. Used as a stable DOM anchor by structural directives such as $if and $for that swap rendered content in and out, ensuring the parent container always has a consistent insertion point.'\n})\nexport class AreComment extends AreHTMLNode {\n\n\n\n fromNew(newEntity: AreNodeNewProps): void {\n super.fromNew({\n ...newEntity,\n payload:{\n ...(newEntity.payload || {}),\n entity: 'are-comment',\n }\n });\n }\n}"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import '../chunk-EQQGB2QZ.mjs';
|
|
1
|
+
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
2
|
import { AreHTMLNode } from '@adaas/are-html/node';
|
|
3
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
let AreComment = class extends AreHTMLNode {
|
|
5
6
|
fromNew(newEntity) {
|
|
6
7
|
super.fromNew({
|
|
7
8
|
...newEntity,
|
|
@@ -11,7 +12,13 @@ class AreComment extends AreHTMLNode {
|
|
|
11
12
|
}
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
|
-
}
|
|
15
|
+
};
|
|
16
|
+
AreComment = __decorateClass([
|
|
17
|
+
A_Frame.Define({
|
|
18
|
+
namespace: "a-are-html",
|
|
19
|
+
description: "Node type representing a comment node in the AreHTMLNode tree. Used as a stable DOM anchor by structural directives such as $if and $for that swap rendered content in and out, ensuring the parent container always has a consistent insertion point."
|
|
20
|
+
})
|
|
21
|
+
], AreComment);
|
|
15
22
|
|
|
16
23
|
export { AreComment };
|
|
17
24
|
//# sourceMappingURL=AreComment.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/nodes/AreComment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreComment.ts"],"names":[],"mappings":";;;;AAQO,IAAM,UAAA,GAAN,cAAyB,WAAA,CAAY;AAAA,EAIxC,QAAQ,SAAA,EAAkC;AACtC,IAAA,KAAA,CAAM,OAAA,CAAQ;AAAA,MACV,GAAG,SAAA;AAAA,MACH,OAAA,EAAQ;AAAA,QACJ,GAAI,SAAA,CAAU,OAAA,IAAW,EAAC;AAAA,QAC1B,MAAA,EAAQ;AAAA;AACZ,KACH,CAAA;AAAA,EACL;AACJ;AAba,UAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,UAAA,CAAA","file":"AreComment.mjs","sourcesContent":["import { AreNodeNewProps } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\nimport { A_Frame } from \"@adaas/a-frame/core\";\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Node type representing a comment node in the AreHTMLNode tree. Used as a stable DOM anchor by structural directives such as $if and $for that swap rendered content in and out, ensuring the parent container always has a consistent insertion point.'\n})\nexport class AreComment extends AreHTMLNode {\n\n\n\n fromNew(newEntity: AreNodeNewProps): void {\n super.fromNew({\n ...newEntity,\n payload:{\n ...(newEntity.payload || {}),\n entity: 'are-comment',\n }\n });\n }\n}"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var aConcept = require('@adaas/a-concept');
|
|
4
|
-
var
|
|
4
|
+
var core = require('@adaas/a-frame/core');
|
|
5
5
|
var node = require('@adaas/are-html/node');
|
|
6
6
|
|
|
7
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -25,9 +25,8 @@ exports.AreComponentNode = class AreComponentNode extends node.AreHTMLNode {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
exports.AreComponentNode = __decorateClass([
|
|
28
|
-
|
|
29
|
-
namespace: "
|
|
30
|
-
name: "AreComponentNode",
|
|
28
|
+
core.A_Frame.Define({
|
|
29
|
+
namespace: "a-are-html",
|
|
31
30
|
description: "AreComponentNode represents a node in the scene graph that corresponds to a component. It extends the base AreNode and includes additional properties and methods specific to component nodes, such as handling attributes, bindings, directives, events, styles, and interpolations associated with the component."
|
|
32
31
|
})
|
|
33
32
|
], exports.AreComponentNode);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/nodes/AreComponent.ts"],"names":["AreComponentNode","AreHTMLNode","A_FormatterHelper","A_Frame"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreComponent.ts"],"names":["AreComponentNode","AreHTMLNode","A_FormatterHelper","A_Frame"],"mappings":";;;;;;;;;;;;;;AAUaA,wBAAA,GAAN,+BAA+BC,gBAAA,CAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAS9C,IAAI,SAAA,GAA6B;AAC7B,IAAA,OAAO,IAAA,CAAK,MAAM,OAAA,CAAaC,0BAAA,CAAkB,aAAa,IAAA,CAAK,KAAA,CAAM,MAAM,CAAC,CAAA;AAAA,EACpF;AAEJ;AAbaF,wBAAA,GAAN,eAAA,CAAA;AAAA,EAJNG,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYH,wBAAA,CAAA","file":"AreComponent.js","sourcesContent":["import { A_FormatterHelper, } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame/core\"\nimport { Are } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'AreComponentNode represents a node in the scene graph that corresponds to a component. It extends the base AreNode and includes additional properties and methods specific to component nodes, such as handling attributes, bindings, directives, events, styles, and interpolations associated with the component.'\n})\nexport class AreComponentNode extends AreHTMLNode {\n\n /**\n * A custom component associated with this node, which can be used to provide custom logic and behavior for the node. This component is typically defined in the context and can be resolved based on the node's type or other identifying information. The component can include its own template, markup, styles, and features that are specific to the functionality it provides.\n * \n * Example: If the node type is \"custom-component\", the corresponding component would be resolved from the context and can be used to provide custom rendering and behavior for nodes of that type.\n * \n * [!] Note: The component is optional and may not be defined for all nodes. If no component is associated with the node, it will be treated as a standard HTML element or a basic node without custom logic.\n */\n get component(): Are | undefined {\n return this.scope.resolve<Are>(A_FormatterHelper.toPascalCase(this.aseid.entity)) as Are | undefined;\n }\n\n}"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
2
|
import { A_FormatterHelper } from '@adaas/a-concept';
|
|
3
|
-
import { A_Frame } from '@adaas/a-frame';
|
|
3
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
4
4
|
import { AreHTMLNode } from '@adaas/are-html/node';
|
|
5
5
|
|
|
6
6
|
let AreComponentNode = class extends AreHTMLNode {
|
|
@@ -16,9 +16,8 @@ let AreComponentNode = class extends AreHTMLNode {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
AreComponentNode = __decorateClass([
|
|
19
|
-
A_Frame.
|
|
20
|
-
namespace: "
|
|
21
|
-
name: "AreComponentNode",
|
|
19
|
+
A_Frame.Define({
|
|
20
|
+
namespace: "a-are-html",
|
|
22
21
|
description: "AreComponentNode represents a node in the scene graph that corresponds to a component. It extends the base AreNode and includes additional properties and methods specific to component nodes, such as handling attributes, bindings, directives, events, styles, and interpolations associated with the component."
|
|
23
22
|
})
|
|
24
23
|
], AreComponentNode);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/nodes/AreComponent.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreComponent.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,gBAAA,GAAN,cAA+B,WAAA,CAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAS9C,IAAI,SAAA,GAA6B;AAC7B,IAAA,OAAO,IAAA,CAAK,MAAM,OAAA,CAAa,iBAAA,CAAkB,aAAa,IAAA,CAAK,KAAA,CAAM,MAAM,CAAC,CAAA;AAAA,EACpF;AAEJ;AAba,gBAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,gBAAA,CAAA","file":"AreComponent.mjs","sourcesContent":["import { A_FormatterHelper, } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame/core\"\nimport { Are } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'AreComponentNode represents a node in the scene graph that corresponds to a component. It extends the base AreNode and includes additional properties and methods specific to component nodes, such as handling attributes, bindings, directives, events, styles, and interpolations associated with the component.'\n})\nexport class AreComponentNode extends AreHTMLNode {\n\n /**\n * A custom component associated with this node, which can be used to provide custom logic and behavior for the node. This component is typically defined in the context and can be resolved based on the node's type or other identifying information. The component can include its own template, markup, styles, and features that are specific to the functionality it provides.\n * \n * Example: If the node type is \"custom-component\", the corresponding component would be resolved from the context and can be used to provide custom rendering and behavior for nodes of that type.\n * \n * [!] Note: The component is optional and may not be defined for all nodes. If no component is associated with the node, it will be treated as a standard HTML element or a basic node without custom logic.\n */\n get component(): Are | undefined {\n return this.scope.resolve<Are>(A_FormatterHelper.toPascalCase(this.aseid.entity)) as Are | undefined;\n }\n\n}"]}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var node = require('@adaas/are-html/node');
|
|
4
|
+
var core = require('@adaas/a-frame/core');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
9
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
|
+
if (decorator = decorators[i])
|
|
11
|
+
result = (decorator(result)) || result;
|
|
12
|
+
return result;
|
|
13
|
+
};
|
|
14
|
+
exports.AreInterpolation = class AreInterpolation extends node.AreHTMLNode {
|
|
6
15
|
fromNew(newEntity) {
|
|
7
16
|
super.fromNew({
|
|
8
17
|
...newEntity,
|
|
@@ -12,8 +21,12 @@ class AreInterpolation extends node.AreHTMLNode {
|
|
|
12
21
|
}
|
|
13
22
|
});
|
|
14
23
|
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
24
|
+
};
|
|
25
|
+
exports.AreInterpolation = __decorateClass([
|
|
26
|
+
core.A_Frame.Define({
|
|
27
|
+
namespace: "a-are-html",
|
|
28
|
+
description: "Node type representing a reactive inline expression in the AreHTMLNode tree. Its content expression is resolved from the store at render time and kept live via an AddInterpolation instruction that updates the corresponding text node on each reactive cycle."
|
|
29
|
+
})
|
|
30
|
+
], exports.AreInterpolation);
|
|
18
31
|
//# sourceMappingURL=AreInterpolation.js.map
|
|
19
32
|
//# sourceMappingURL=AreInterpolation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/nodes/AreInterpolation.ts"],"names":["AreHTMLNode"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreInterpolation.ts"],"names":["AreInterpolation","AreHTMLNode","A_Frame"],"mappings":";;;;;;;;;;;;;AASaA,wBAAA,GAAN,+BAA+BC,gBAAA,CAAY;AAAA,EAE1C,QAAQ,SAAA,EAAkC;AACtC,IAAA,KAAA,CAAM,OAAA,CAAQ;AAAA,MACV,GAAG,SAAA;AAAA,MACH,OAAA,EAAQ;AAAA,QACJ,GAAI,SAAA,CAAU,OAAA,IAAW,EAAC;AAAA,QAC1B,MAAA,EAAQ;AAAA;AACZ,KACH,CAAA;AAAA,EACL;AACR;AAXaD,wBAAA,GAAN,eAAA,CAAA;AAAA,EAJNE,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYF,wBAAA,CAAA","file":"AreInterpolation.js","sourcesContent":["import { AreNodeNewProps } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\nimport { A_Frame } from \"@adaas/a-frame/core\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Node type representing a reactive inline expression in the AreHTMLNode tree. Its content expression is resolved from the store at render time and kept live via an AddInterpolation instruction that updates the corresponding text node on each reactive cycle.'\n})\nexport class AreInterpolation extends AreHTMLNode {\n\n fromNew(newEntity: AreNodeNewProps): void {\n super.fromNew({\n ...newEntity,\n payload:{\n ...(newEntity.payload || {}),\n entity: 'are-interpolation',\n }\n });\n }\n}"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import '../chunk-EQQGB2QZ.mjs';
|
|
1
|
+
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
2
|
import { AreHTMLNode } from '@adaas/are-html/node';
|
|
3
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
let AreInterpolation = class extends AreHTMLNode {
|
|
5
6
|
fromNew(newEntity) {
|
|
6
7
|
super.fromNew({
|
|
7
8
|
...newEntity,
|
|
@@ -11,7 +12,13 @@ class AreInterpolation extends AreHTMLNode {
|
|
|
11
12
|
}
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
|
-
}
|
|
15
|
+
};
|
|
16
|
+
AreInterpolation = __decorateClass([
|
|
17
|
+
A_Frame.Define({
|
|
18
|
+
namespace: "a-are-html",
|
|
19
|
+
description: "Node type representing a reactive inline expression in the AreHTMLNode tree. Its content expression is resolved from the store at render time and kept live via an AddInterpolation instruction that updates the corresponding text node on each reactive cycle."
|
|
20
|
+
})
|
|
21
|
+
], AreInterpolation);
|
|
15
22
|
|
|
16
23
|
export { AreInterpolation };
|
|
17
24
|
//# sourceMappingURL=AreInterpolation.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/nodes/AreInterpolation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreInterpolation.ts"],"names":[],"mappings":";;;;AASO,IAAM,gBAAA,GAAN,cAA+B,WAAA,CAAY;AAAA,EAE1C,QAAQ,SAAA,EAAkC;AACtC,IAAA,KAAA,CAAM,OAAA,CAAQ;AAAA,MACV,GAAG,SAAA;AAAA,MACH,OAAA,EAAQ;AAAA,QACJ,GAAI,SAAA,CAAU,OAAA,IAAW,EAAC;AAAA,QAC1B,MAAA,EAAQ;AAAA;AACZ,KACH,CAAA;AAAA,EACL;AACR;AAXa,gBAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,gBAAA,CAAA","file":"AreInterpolation.mjs","sourcesContent":["import { AreNodeNewProps } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\nimport { A_Frame } from \"@adaas/a-frame/core\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Node type representing a reactive inline expression in the AreHTMLNode tree. Its content expression is resolved from the store at render time and kept live via an AddInterpolation instruction that updates the corresponding text node on each reactive cycle.'\n})\nexport class AreInterpolation extends AreHTMLNode {\n\n fromNew(newEntity: AreNodeNewProps): void {\n super.fromNew({\n ...newEntity,\n payload:{\n ...(newEntity.payload || {}),\n entity: 'are-interpolation',\n }\n });\n }\n}"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var aConcept = require('@adaas/a-concept');
|
|
4
|
-
var
|
|
4
|
+
var core = require('@adaas/a-frame/core');
|
|
5
5
|
var node = require('@adaas/are-html/node');
|
|
6
6
|
|
|
7
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -31,9 +31,8 @@ exports.AreRootNode = class AreRootNode extends node.AreHTMLNode {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
exports.AreRootNode = __decorateClass([
|
|
34
|
-
|
|
35
|
-
namespace: "
|
|
36
|
-
name: "AreRootNode",
|
|
34
|
+
core.A_Frame.Define({
|
|
35
|
+
namespace: "a-are-html",
|
|
37
36
|
description: "AreRootNode represents the root node in the scene graph. It extends the base AreHTMLNode and includes additional properties and methods specific to the root node, such as handling the root element and its associated component."
|
|
38
37
|
})
|
|
39
38
|
], exports.AreRootNode);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/nodes/AreRoot.ts"],"names":["AreRootNode","AreHTMLNode","A_FormatterHelper","A_Frame"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreRoot.ts"],"names":["AreRootNode","AreHTMLNode","A_FormatterHelper","A_Frame"],"mappings":";;;;;;;;;;;;;;AAUaA,mBAAA,GAAN,0BAA0BC,gBAAA,CAAY;AAAA;AAAA;AAAA;AAAA,EAIzC,IAAI,GAAA,GAAc;AACd,IAAA,OAAO,KAAA;AAAA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,IAAI,SAAA,GAA6B;AAC7B,IAAA,OAAO,IAAA,CAAK,MAAM,OAAA,CAAaC,0BAAA,CAAkB,aAAa,IAAA,CAAK,KAAA,CAAM,MAAM,CAAC,CAAA;AAAA,EACpF;AACJ;AAjBaF,mBAAA,GAAN,eAAA,CAAA;AAAA,EAJNG,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYH,mBAAA,CAAA","file":"AreRoot.js","sourcesContent":["import { A_FormatterHelper, } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame/core\"\nimport { Are } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'AreRootNode represents the root node in the scene graph. It extends the base AreHTMLNode and includes additional properties and methods specific to the root node, such as handling the root element and its associated component.'\n})\nexport class AreRootNode extends AreHTMLNode {\n /**\n * For the root node, we can default to a generic container element like <div> since it serves as the root of the component tree and does not correspond to a specific HTML tag defined in the markup. The actual content and structure of the root node will be determined by the child nodes and components that are rendered within it, allowing for flexibility in how the root node is used and what it contains.\n */\n get tag(): string {\n return 'div';\n }\n /**\n * A custom component associated with this node, which can be used to provide custom logic and behavior for the node. This component is typically defined in the context and can be resolved based on the node's type or other identifying information. The component can include its own template, markup, styles, and features that are specific to the functionality it provides.\n * \n * Example: If the node type is \"custom-component\", the corresponding component would be resolved from the context and can be used to provide custom rendering and behavior for nodes of that type.\n * \n * [!] Note: The component is optional and may not be defined for all nodes. If no component is associated with the node, it will be treated as a standard HTML element or a basic node without custom logic.\n */\n get component(): Are | undefined {\n return this.scope.resolve<Are>(A_FormatterHelper.toPascalCase(this.aseid.entity)) as Are | undefined;\n }\n}"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
2
|
import { A_FormatterHelper } from '@adaas/a-concept';
|
|
3
|
-
import { A_Frame } from '@adaas/a-frame';
|
|
3
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
4
4
|
import { AreHTMLNode } from '@adaas/are-html/node';
|
|
5
5
|
|
|
6
6
|
let AreRootNode = class extends AreHTMLNode {
|
|
@@ -22,9 +22,8 @@ let AreRootNode = class extends AreHTMLNode {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
AreRootNode = __decorateClass([
|
|
25
|
-
A_Frame.
|
|
26
|
-
namespace: "
|
|
27
|
-
name: "AreRootNode",
|
|
25
|
+
A_Frame.Define({
|
|
26
|
+
namespace: "a-are-html",
|
|
28
27
|
description: "AreRootNode represents the root node in the scene graph. It extends the base AreHTMLNode and includes additional properties and methods specific to the root node, such as handling the root element and its associated component."
|
|
29
28
|
})
|
|
30
29
|
], AreRootNode);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/nodes/AreRoot.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreRoot.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,WAAA,GAAN,cAA0B,WAAA,CAAY;AAAA;AAAA;AAAA;AAAA,EAIzC,IAAI,GAAA,GAAc;AACd,IAAA,OAAO,KAAA;AAAA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,IAAI,SAAA,GAA6B;AAC7B,IAAA,OAAO,IAAA,CAAK,MAAM,OAAA,CAAa,iBAAA,CAAkB,aAAa,IAAA,CAAK,KAAA,CAAM,MAAM,CAAC,CAAA;AAAA,EACpF;AACJ;AAjBa,WAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,WAAA,CAAA","file":"AreRoot.mjs","sourcesContent":["import { A_FormatterHelper, } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame/core\"\nimport { Are } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'AreRootNode represents the root node in the scene graph. It extends the base AreHTMLNode and includes additional properties and methods specific to the root node, such as handling the root element and its associated component.'\n})\nexport class AreRootNode extends AreHTMLNode {\n /**\n * For the root node, we can default to a generic container element like <div> since it serves as the root of the component tree and does not correspond to a specific HTML tag defined in the markup. The actual content and structure of the root node will be determined by the child nodes and components that are rendered within it, allowing for flexibility in how the root node is used and what it contains.\n */\n get tag(): string {\n return 'div';\n }\n /**\n * A custom component associated with this node, which can be used to provide custom logic and behavior for the node. This component is typically defined in the context and can be resolved based on the node's type or other identifying information. The component can include its own template, markup, styles, and features that are specific to the functionality it provides.\n * \n * Example: If the node type is \"custom-component\", the corresponding component would be resolved from the context and can be used to provide custom rendering and behavior for nodes of that type.\n * \n * [!] Note: The component is optional and may not be defined for all nodes. If no component is associated with the node, it will be treated as a standard HTML element or a basic node without custom logic.\n */\n get component(): Are | undefined {\n return this.scope.resolve<Are>(A_FormatterHelper.toPascalCase(this.aseid.entity)) as Are | undefined;\n }\n}"]}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var node = require('@adaas/are-html/node');
|
|
4
|
+
var core = require('@adaas/a-frame/core');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
9
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
|
+
if (decorator = decorators[i])
|
|
11
|
+
result = (decorator(result)) || result;
|
|
12
|
+
return result;
|
|
13
|
+
};
|
|
14
|
+
exports.AreText = class AreText extends node.AreHTMLNode {
|
|
6
15
|
fromNew(newEntity) {
|
|
7
16
|
super.fromNew({
|
|
8
17
|
...newEntity,
|
|
@@ -12,8 +21,12 @@ class AreText extends node.AreHTMLNode {
|
|
|
12
21
|
}
|
|
13
22
|
});
|
|
14
23
|
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
24
|
+
};
|
|
25
|
+
exports.AreText = __decorateClass([
|
|
26
|
+
core.A_Frame.Define({
|
|
27
|
+
namespace: "a-are-html",
|
|
28
|
+
description: "Node type representing a plain or partially-dynamic text segment in the AreHTMLNode tree. Emits an AddText instruction that sets or updates the corresponding DOM text node; the content may carry a store getter for any dynamic portion."
|
|
29
|
+
})
|
|
30
|
+
], exports.AreText);
|
|
18
31
|
//# sourceMappingURL=AreText.js.map
|
|
19
32
|
//# sourceMappingURL=AreText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/nodes/AreText.ts"],"names":["AreHTMLNode"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreText.ts"],"names":["AreText","AreHTMLNode","A_Frame"],"mappings":";;;;;;;;;;;;;AASaA,eAAA,GAAN,sBAAsBC,gBAAA,CAAY;AAAA,EAGrC,QAAQ,SAAA,EAAkC;AACtC,IAAA,KAAA,CAAM,OAAA,CAAQ;AAAA,MACV,GAAG,SAAA;AAAA,MACH,OAAA,EAAS;AAAA,QACL,GAAI,SAAA,CAAU,OAAA,IAAW,EAAC;AAAA,QAC1B,MAAA,EAAQ;AAAA;AACZ,KACH,CAAA;AAAA,EACL;AACJ;AAZaD,eAAA,GAAN,eAAA,CAAA;AAAA,EAJNE,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYF,eAAA,CAAA","file":"AreText.js","sourcesContent":["import { AreNodeNewProps } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\nimport { A_Frame } from \"@adaas/a-frame/core\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Node type representing a plain or partially-dynamic text segment in the AreHTMLNode tree. Emits an AddText instruction that sets or updates the corresponding DOM text node; the content may carry a store getter for any dynamic portion.'\n})\nexport class AreText extends AreHTMLNode {\n\n\n fromNew(newEntity: AreNodeNewProps): void {\n super.fromNew({\n ...newEntity,\n payload: {\n ...(newEntity.payload || {}),\n entity: 'are-text',\n }\n });\n }\n}"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import '../chunk-EQQGB2QZ.mjs';
|
|
1
|
+
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
2
|
import { AreHTMLNode } from '@adaas/are-html/node';
|
|
3
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
let AreText = class extends AreHTMLNode {
|
|
5
6
|
fromNew(newEntity) {
|
|
6
7
|
super.fromNew({
|
|
7
8
|
...newEntity,
|
|
@@ -11,7 +12,13 @@ class AreText extends AreHTMLNode {
|
|
|
11
12
|
}
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
|
-
}
|
|
15
|
+
};
|
|
16
|
+
AreText = __decorateClass([
|
|
17
|
+
A_Frame.Define({
|
|
18
|
+
namespace: "a-are-html",
|
|
19
|
+
description: "Node type representing a plain or partially-dynamic text segment in the AreHTMLNode tree. Emits an AddText instruction that sets or updates the corresponding DOM text node; the content may carry a store getter for any dynamic portion."
|
|
20
|
+
})
|
|
21
|
+
], AreText);
|
|
15
22
|
|
|
16
23
|
export { AreText };
|
|
17
24
|
//# sourceMappingURL=AreText.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/nodes/AreText.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreText.ts"],"names":[],"mappings":";;;;AASO,IAAM,OAAA,GAAN,cAAsB,WAAA,CAAY;AAAA,EAGrC,QAAQ,SAAA,EAAkC;AACtC,IAAA,KAAA,CAAM,OAAA,CAAQ;AAAA,MACV,GAAG,SAAA;AAAA,MACH,OAAA,EAAS;AAAA,QACL,GAAI,SAAA,CAAU,OAAA,IAAW,EAAC;AAAA,QAC1B,MAAA,EAAQ;AAAA;AACZ,KACH,CAAA;AAAA,EACL;AACJ;AAZa,OAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,OAAA,CAAA","file":"AreText.mjs","sourcesContent":["import { AreNodeNewProps } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\nimport { A_Frame } from \"@adaas/a-frame/core\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Node type representing a plain or partially-dynamic text segment in the AreHTMLNode tree. Emits an AddText instruction that sets or updates the corresponding DOM text node; the content may carry a store getter for any dynamic portion.'\n})\nexport class AreText extends AreHTMLNode {\n\n\n fromNew(newEntity: AreNodeNewProps): void {\n super.fromNew({\n ...newEntity,\n payload: {\n ...(newEntity.payload || {}),\n entity: 'are-text',\n }\n });\n }\n}"]}
|
|
@@ -2,8 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
var aRoute = require('@adaas/a-utils/a-route');
|
|
4
4
|
var are = require('@adaas/are');
|
|
5
|
+
var core = require('@adaas/a-frame/core');
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
|
+
if (decorator = decorators[i])
|
|
12
|
+
result = (decorator(result)) || result;
|
|
13
|
+
return result;
|
|
14
|
+
};
|
|
15
|
+
exports.AreRoute = class AreRoute extends are.AreSignal {
|
|
7
16
|
constructor(path) {
|
|
8
17
|
super({
|
|
9
18
|
data: new aRoute.A_Route(path)
|
|
@@ -13,13 +22,17 @@ class AreRoute extends are.AreSignal {
|
|
|
13
22
|
return this.data;
|
|
14
23
|
}
|
|
15
24
|
static default() {
|
|
16
|
-
return new AreRoute(document.location.pathname || "/");
|
|
25
|
+
return new exports.AreRoute(document.location.pathname || "/");
|
|
17
26
|
}
|
|
18
27
|
compare(other) {
|
|
19
28
|
return this.route.toRegExp().test(other.data.toString());
|
|
20
29
|
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
};
|
|
31
|
+
exports.AreRoute = __decorateClass([
|
|
32
|
+
core.A_Frame.Define({
|
|
33
|
+
namespace: "a-are-html",
|
|
34
|
+
description: "ARE signal that carries an A_Route value. Dispatched by AreRouteWatcher on client-side navigation events (pushState, replaceState, popstate). The signal bus delivers it to all subscribed root nodes, triggering route-based conditional rendering across the component tree."
|
|
35
|
+
})
|
|
36
|
+
], exports.AreRoute);
|
|
24
37
|
//# sourceMappingURL=AreRoute.signal.js.map
|
|
25
38
|
//# sourceMappingURL=AreRoute.signal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/signals/AreRoute.signal.ts"],"names":["AreSignal","A_Route"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/signals/AreRoute.signal.ts"],"names":["AreRoute","AreSignal","A_Route","A_Frame"],"mappings":";;;;;;;;;;;;;;AAWaA,gBAAA,GAAN,uBAAuBC,aAAA,CAAmB;AAAA,EAE7C,YAAY,IAAA,EAAuB;AAC/B,IAAA,KAAA,CAAM;AAAA,MACF,IAAA,EAAM,IAAIC,cAAA,CAAQ,IAAI;AAAA,KACzB,CAAA;AAAA,EACL;AAAA,EAEA,IAAI,KAAA,GAAiB;AACjB,IAAA,OAAO,IAAA,CAAK,IAAA;AAAA,EAChB;AAAA,EAEA,OAAO,OAAA,GAAgC;AACnC,IAAA,OAAO,IAAIF,gBAAA,CAAS,QAAA,CAAS,QAAA,CAAS,YAAY,GAAG,CAAA;AAAA,EACzD;AAAA,EAGA,QAAQ,KAAA,EAAmC;AACvC,IAAA,OAAO,IAAA,CAAK,MAAM,QAAA,EAAS,CAAE,KAAK,KAAA,CAAM,IAAA,CAAK,UAAU,CAAA;AAAA,EAC3D;AACJ;AApBaA,gBAAA,GAAN,eAAA,CAAA;AAAA,EAJNG,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYH,gBAAA,CAAA","file":"AreRoute.signal.js","sourcesContent":["import { A_Route } from \"@adaas/a-utils/a-route\";\nimport { A_Signal } from \"@adaas/a-utils/a-signal\";\nimport { AreSignal } from \"@adaas/are\";\nimport { A_Frame } from \"@adaas/a-frame/core\";\n\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'ARE signal that carries an A_Route value. Dispatched by AreRouteWatcher on client-side navigation events (pushState, replaceState, popstate). The signal bus delivers it to all subscribed root nodes, triggering route-based conditional rendering across the component tree.'\n})\nexport class AreRoute extends AreSignal<A_Route> {\n\n constructor(path: string | RegExp) {\n super({\n data: new A_Route(path)\n });\n }\n\n get route(): A_Route {\n return this.data;\n }\n\n static default(): AreRoute | undefined {\n return new AreRoute(document.location.pathname || '/');\n }\n\n\n compare(other: A_Signal<A_Route>): boolean {\n return this.route.toRegExp().test(other.data.toString());\n }\n}"]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import '../chunk-EQQGB2QZ.mjs';
|
|
1
|
+
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
2
|
import { A_Route } from '@adaas/a-utils/a-route';
|
|
3
3
|
import { AreSignal } from '@adaas/are';
|
|
4
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
let AreRoute = class extends AreSignal {
|
|
6
7
|
constructor(path) {
|
|
7
8
|
super({
|
|
8
9
|
data: new A_Route(path)
|
|
@@ -17,7 +18,13 @@ class AreRoute extends AreSignal {
|
|
|
17
18
|
compare(other) {
|
|
18
19
|
return this.route.toRegExp().test(other.data.toString());
|
|
19
20
|
}
|
|
20
|
-
}
|
|
21
|
+
};
|
|
22
|
+
AreRoute = __decorateClass([
|
|
23
|
+
A_Frame.Define({
|
|
24
|
+
namespace: "a-are-html",
|
|
25
|
+
description: "ARE signal that carries an A_Route value. Dispatched by AreRouteWatcher on client-side navigation events (pushState, replaceState, popstate). The signal bus delivers it to all subscribed root nodes, triggering route-based conditional rendering across the component tree."
|
|
26
|
+
})
|
|
27
|
+
], AreRoute);
|
|
21
28
|
|
|
22
29
|
export { AreRoute };
|
|
23
30
|
//# sourceMappingURL=AreRoute.signal.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/signals/AreRoute.signal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/signals/AreRoute.signal.ts"],"names":[],"mappings":";;;;;AAWO,IAAM,QAAA,GAAN,cAAuB,SAAA,CAAmB;AAAA,EAE7C,YAAY,IAAA,EAAuB;AAC/B,IAAA,KAAA,CAAM;AAAA,MACF,IAAA,EAAM,IAAI,OAAA,CAAQ,IAAI;AAAA,KACzB,CAAA;AAAA,EACL;AAAA,EAEA,IAAI,KAAA,GAAiB;AACjB,IAAA,OAAO,IAAA,CAAK,IAAA;AAAA,EAChB;AAAA,EAEA,OAAO,OAAA,GAAgC;AACnC,IAAA,OAAO,IAAI,QAAA,CAAS,QAAA,CAAS,QAAA,CAAS,YAAY,GAAG,CAAA;AAAA,EACzD;AAAA,EAGA,QAAQ,KAAA,EAAmC;AACvC,IAAA,OAAO,IAAA,CAAK,MAAM,QAAA,EAAS,CAAE,KAAK,KAAA,CAAM,IAAA,CAAK,UAAU,CAAA;AAAA,EAC3D;AACJ;AApBa,QAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,QAAA,CAAA","file":"AreRoute.signal.mjs","sourcesContent":["import { A_Route } from \"@adaas/a-utils/a-route\";\nimport { A_Signal } from \"@adaas/a-utils/a-signal\";\nimport { AreSignal } from \"@adaas/are\";\nimport { A_Frame } from \"@adaas/a-frame/core\";\n\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'ARE signal that carries an A_Route value. Dispatched by AreRouteWatcher on client-side navigation events (pushState, replaceState, popstate). The signal bus delivers it to all subscribed root nodes, triggering route-based conditional rendering across the component tree.'\n})\nexport class AreRoute extends AreSignal<A_Route> {\n\n constructor(path: string | RegExp) {\n super({\n data: new A_Route(path)\n });\n }\n\n get route(): A_Route {\n return this.data;\n }\n\n static default(): AreRoute | undefined {\n return new AreRoute(document.location.pathname || '/');\n }\n\n\n compare(other: A_Signal<A_Route>): boolean {\n return this.route.toRegExp().test(other.data.toString());\n }\n}"]}
|