@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
|
@@ -4,8 +4,9 @@ import { A_Logger } from '@adaas/a-utils/a-logger';
|
|
|
4
4
|
import { AreAttributeFeatures, AreStore, AreTransformer } from '@adaas/are';
|
|
5
5
|
import { AreDirectiveAttribute } from '@adaas/are-html/attributes/AreDirective.attribute';
|
|
6
6
|
import { AreDirectiveFeatures } from '@adaas/are-html/directive/AreDirective.constants';
|
|
7
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
let AreHTMLTransformer = class extends AreTransformer {
|
|
9
10
|
transformDirectiveAttribute(directive, store, feature, logger, ...args) {
|
|
10
11
|
store.watch(directive);
|
|
11
12
|
if (directive.component) {
|
|
@@ -15,7 +16,7 @@ class AreHTMLTransformer extends AreTransformer {
|
|
|
15
16
|
}
|
|
16
17
|
store.unwatch(directive);
|
|
17
18
|
}
|
|
18
|
-
}
|
|
19
|
+
};
|
|
19
20
|
__decorateClass([
|
|
20
21
|
A_Feature.Extend({
|
|
21
22
|
name: AreAttributeFeatures.Transform,
|
|
@@ -26,6 +27,12 @@ __decorateClass([
|
|
|
26
27
|
__decorateParam(2, A_Inject(A_Feature)),
|
|
27
28
|
__decorateParam(3, A_Inject(A_Logger))
|
|
28
29
|
], AreHTMLTransformer.prototype, "transformDirectiveAttribute", 1);
|
|
30
|
+
AreHTMLTransformer = __decorateClass([
|
|
31
|
+
A_Frame.Define({
|
|
32
|
+
namespace: "a-are-html",
|
|
33
|
+
description: "HTML-specific transformer extending AreTransformer. Handles directive-attribute structural rewrites before compilation \u2014 sorting directives by declared priority and expanding compound directive expressions \u2014 so the compiler receives a clean, ordered AreHTMLNode tree ready for instruction emission."
|
|
34
|
+
})
|
|
35
|
+
], AreHTMLTransformer);
|
|
29
36
|
|
|
30
37
|
export { AreHTMLTransformer };
|
|
31
38
|
//# sourceMappingURL=AreHTML.transformer.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/engine/AreHTML.transformer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/engine/AreHTML.transformer.ts"],"names":[],"mappings":";;;;;;;;AAYO,IAAM,kBAAA,GAAN,cAAiC,cAAA,CAAe;AAAA,EAMnD,2BAAA,CACwB,SAAA,EACA,KAAA,EACC,OAAA,EACD,WACjB,IAAA,EACL;AACE,IAAA,KAAA,CAAM,MAAM,SAAS,CAAA;AAQrB,IAAA,IAAI,UAAU,SAAA,EAAW;AACrB,MAAA,OAAA,CAAQ,MAAM,SAAA,CAAU,SAAA,EAAW,qBAAqB,SAAA,EAAW,SAAA,CAAU,MAAM,KAAK,CAAA;AAAA,IAC5F,CAAA,MAAO;AACH,MAAA,MAAA,EAAQ,OAAA,CAAQ,CAAA,qDAAA,EAAwD,SAAA,CAAU,IAAI,CAAA,qDAAA,EAAwD,kBAAkB,YAAA,CAAa,SAAA,CAAU,IAAI,CAAC,CAAA,2BAAA,CAA6B,CAAA;AAAA,IAC7N;AAEA,IAAA,KAAA,CAAM,QAAQ,SAAS,CAAA;AAAA,EAC3B;AACJ;AAvBI,eAAA,CAAA;AAAA,EAJC,UAAU,MAAA,CAAO;AAAA,IACd,MAAM,oBAAA,CAAqB,SAAA;AAAA,IAC3B,KAAA,EAAO,CAAC,qBAAqB;AAAA,GAChC,CAAA;AAAA,EAEI,4BAAS,QAAQ,CAAA,CAAA;AAAA,EACjB,4BAAS,QAAQ,CAAA,CAAA;AAAA,EACjB,4BAAS,SAAS,CAAA,CAAA;AAAA,EAClB,4BAAS,QAAQ,CAAA;AAAA,CAAA,EAVb,kBAAA,CAMT,SAAA,EAAA,6BAAA,EAAA,CAAA,CAAA;AANS,kBAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,kBAAA,CAAA","file":"AreHTML.transformer.mjs","sourcesContent":["import { A_Caller, A_Feature, A_FormatterHelper, A_Inject, A_Scope } from \"@adaas/a-concept\";\nimport { A_Logger } from \"@adaas/a-utils/a-logger\";\nimport { AreAttributeFeatures, AreTransformer, AreStore } from \"@adaas/are\";\nimport { AreDirectiveAttribute } from \"@adaas/are-html/attributes/AreDirective.attribute\";\nimport { AreDirectiveFeatures } from \"@adaas/are-html/directive/AreDirective.constants\";\nimport { A_Frame } from \"@adaas/a-frame/core\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'HTML-specific transformer extending AreTransformer. Handles directive-attribute structural rewrites before compilation — sorting directives by declared priority and expanding compound directive expressions — so the compiler receives a clean, ordered AreHTMLNode tree ready for instruction emission.'\n})\nexport class AreHTMLTransformer extends AreTransformer {\n\n @A_Feature.Extend({\n name: AreAttributeFeatures.Transform,\n scope: [AreDirectiveAttribute],\n })\n transformDirectiveAttribute(\n @A_Inject(A_Caller) directive: AreDirectiveAttribute,\n @A_Inject(AreStore) store: AreStore,\n @A_Inject(A_Feature) feature: A_Feature,\n @A_Inject(A_Logger) logger?: A_Logger,\n ...args: any[]\n ) {\n store.watch(directive);\n\n /**\n * 3. If the attribute is a directive, then we should find a component that is responsible for\n * the directive compiling logic, and call it. \n * In case component is not found we just want to log a warning, \n * since the directive may be handled by some parent component or simply is a mistake in the template.\n */\n if (directive.component) {\n feature.chain(directive.component, AreDirectiveFeatures.Transform, directive.owner.scope);\n } else {\n logger?.warning(`Directive handler component not found for directive: ${directive.name}. Make sure to create a component named \"AreDirective${A_FormatterHelper.toPascalCase(directive.name)}\" to handle this directive.`);\n }\n\n store.unwatch(directive);\n }\n}"]}
|
package/dist/node/index.d.mts
CHANGED
|
@@ -15,6 +15,7 @@ export { AreInterpolation } from './nodes/AreInterpolation.mjs';
|
|
|
15
15
|
export { AreRootNode } from './nodes/AreRoot.mjs';
|
|
16
16
|
export { AreText } from './nodes/AreText.mjs';
|
|
17
17
|
export { AreRoute } from './signals/AreRoute.signal.mjs';
|
|
18
|
+
export { BOOLEAN_ATTRIBUTES, IDL_FORM_PROPERTIES, LISTENER_OPTION_MODIFIERS, ParsedEventName, isBooleanAttribute, isIDLFormProperty, normalizeClassValue, normalizeStyleValue, parseEventName, toDOMString } from './engine/AreHTML.constants.mjs';
|
|
18
19
|
export { AreHTMLEngineContext } from './engine/AreHTML.context.mjs';
|
|
19
20
|
export { AreHTMLContextConstructor } from './engine/AreHTML.types.mjs';
|
|
20
21
|
export { AreHTMLCompiler } from './engine/AreHTML.compiler.mjs';
|
|
@@ -29,7 +30,7 @@ export { AreDirectiveMeta } from './lib/AreDirective/AreDirective.meta.mjs';
|
|
|
29
30
|
export { AreDirectiveOrderDecoratorParameters } from './lib/AreDirective/AreDirective.types.mjs';
|
|
30
31
|
export { AreRoot } from './lib/AreRoot/AreRoot.component.mjs';
|
|
31
32
|
export { AreStyle } from './lib/AreStyle/AreStyle.context.mjs';
|
|
32
|
-
export {
|
|
33
|
+
export { AreRouteWatcher } from './lib/AreRouteWatcher/AreRouteWatcher.component.mjs';
|
|
33
34
|
import '@adaas/are';
|
|
34
35
|
import '@adaas/a-concept';
|
|
35
36
|
import '@adaas/a-utils/a-logger';
|
package/dist/node/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export { AreInterpolation } from './nodes/AreInterpolation.js';
|
|
|
15
15
|
export { AreRootNode } from './nodes/AreRoot.js';
|
|
16
16
|
export { AreText } from './nodes/AreText.js';
|
|
17
17
|
export { AreRoute } from './signals/AreRoute.signal.js';
|
|
18
|
+
export { BOOLEAN_ATTRIBUTES, IDL_FORM_PROPERTIES, LISTENER_OPTION_MODIFIERS, ParsedEventName, isBooleanAttribute, isIDLFormProperty, normalizeClassValue, normalizeStyleValue, parseEventName, toDOMString } from './engine/AreHTML.constants.js';
|
|
18
19
|
export { AreHTMLEngineContext } from './engine/AreHTML.context.js';
|
|
19
20
|
export { AreHTMLContextConstructor } from './engine/AreHTML.types.js';
|
|
20
21
|
export { AreHTMLCompiler } from './engine/AreHTML.compiler.js';
|
|
@@ -29,7 +30,7 @@ export { AreDirectiveMeta } from './lib/AreDirective/AreDirective.meta.js';
|
|
|
29
30
|
export { AreDirectiveOrderDecoratorParameters } from './lib/AreDirective/AreDirective.types.js';
|
|
30
31
|
export { AreRoot } from './lib/AreRoot/AreRoot.component.js';
|
|
31
32
|
export { AreStyle } from './lib/AreStyle/AreStyle.context.js';
|
|
32
|
-
export {
|
|
33
|
+
export { AreRouteWatcher } from './lib/AreRouteWatcher/AreRouteWatcher.component.js';
|
|
33
34
|
import '@adaas/are';
|
|
34
35
|
import '@adaas/a-concept';
|
|
35
36
|
import '@adaas/a-utils/a-logger';
|
package/dist/node/index.js
CHANGED
|
@@ -40,7 +40,7 @@ var AreDirective_types = require('./lib/AreDirective/AreDirective.types');
|
|
|
40
40
|
var AreRoot_component = require('./lib/AreRoot/AreRoot.component');
|
|
41
41
|
var AreStyle_context = require('./lib/AreStyle/AreStyle.context');
|
|
42
42
|
var AreStyle_types = require('./lib/AreStyle/AreStyle.types');
|
|
43
|
-
var
|
|
43
|
+
var AreRouteWatcher_component = require('./lib/AreRouteWatcher/AreRouteWatcher.component');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -284,10 +284,10 @@ Object.keys(AreStyle_types).forEach(function (k) {
|
|
|
284
284
|
get: function () { return AreStyle_types[k]; }
|
|
285
285
|
});
|
|
286
286
|
});
|
|
287
|
-
Object.keys(
|
|
287
|
+
Object.keys(AreRouteWatcher_component).forEach(function (k) {
|
|
288
288
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
289
289
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
290
|
+
get: function () { return AreRouteWatcher_component[k]; }
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
293
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.mjs
CHANGED
|
@@ -38,6 +38,6 @@ export * from './lib/AreDirective/AreDirective.types';
|
|
|
38
38
|
export * from './lib/AreRoot/AreRoot.component';
|
|
39
39
|
export * from './lib/AreStyle/AreStyle.context';
|
|
40
40
|
export * from './lib/AreStyle/AreStyle.types';
|
|
41
|
-
export * from './lib/
|
|
41
|
+
export * from './lib/AreRouteWatcher/AreRouteWatcher.component';
|
|
42
42
|
//# sourceMappingURL=index.mjs.map
|
|
43
43
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var core = require('@adaas/a-frame/core');
|
|
4
4
|
var are = require('@adaas/are');
|
|
5
5
|
var AreHTML_instructions_constants = require('./AreHTML.instructions.constants');
|
|
6
6
|
|
|
@@ -22,9 +22,8 @@ exports.AddAttributeInstruction = class AddAttributeInstruction extends are.AreM
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
exports.AddAttributeInstruction = __decorateClass([
|
|
25
|
-
|
|
26
|
-
namespace: "
|
|
27
|
-
name: "AddAttributeInstruction",
|
|
25
|
+
core.A_Frame.Define({
|
|
26
|
+
namespace: "a-are-html",
|
|
28
27
|
description: "Sets an attribute on an HTML element. Apply calls setAttribute; revert calls removeAttribute."
|
|
29
28
|
})
|
|
30
29
|
], exports.AddAttributeInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddAttribute.instruction.ts"],"names":["AddAttributeInstruction","AreMutation","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddAttribute.instruction.ts"],"names":["AddAttributeInstruction","AreMutation","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;AAUaA,+BAAA,GAAN,sCAAsCC,eAAA,CAAmD;AAAA,EAI5F,WAAA,CACI,QACA,KAAA,EAAgH;AAChH,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAwE,CAAA;AAAA,IAClF,CAAA,MAAO;AACH,MAAA,KAAA,CAAMC,kDAAA,CAAoB,YAAA,EAAc,MAAA,EAAQ,KAAK,CAAA;AAAA,IACzD;AAAA,EACJ;AACJ;AAbaF,+BAAA,GAAN,eAAA,CAAA;AAAA,EAJNG,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYH,+BAAA,CAAA","file":"AddAttribute.instruction.js","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreMutation, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddAttributeInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Sets an attribute on an HTML element. Apply calls setAttribute; revert calls removeAttribute.'\n})\nexport class AddAttributeInstruction extends AreMutation<AreHtmlAddAttributeInstructionPayload> {\n\n cache?: string;\n\n constructor(\n parent: AreDeclaration,\n props: AreHtmlAddAttributeInstructionPayload | AreInstructionSerialized<AreHtmlAddAttributeInstructionPayload>) {\n if ('aseid' in props) {\n super(props as AreInstructionSerialized<AreHtmlAddAttributeInstructionPayload>);\n } else {\n super(AreHTMLInstructions.AddAttribute, parent, props);\n }\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
|
-
import { A_Frame } from '@adaas/a-frame';
|
|
2
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
3
3
|
import { AreMutation } from '@adaas/are';
|
|
4
4
|
import { AreHTMLInstructions } from './AreHTML.instructions.constants';
|
|
5
5
|
|
|
@@ -13,9 +13,8 @@ let AddAttributeInstruction = class extends AreMutation {
|
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
AddAttributeInstruction = __decorateClass([
|
|
16
|
-
A_Frame.
|
|
17
|
-
namespace: "
|
|
18
|
-
name: "AddAttributeInstruction",
|
|
16
|
+
A_Frame.Define({
|
|
17
|
+
namespace: "a-are-html",
|
|
19
18
|
description: "Sets an attribute on an HTML element. Apply calls setAttribute; revert calls removeAttribute."
|
|
20
19
|
})
|
|
21
20
|
], AddAttributeInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddAttribute.instruction.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddAttribute.instruction.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,uBAAA,GAAN,cAAsC,WAAA,CAAmD;AAAA,EAI5F,WAAA,CACI,QACA,KAAA,EAAgH;AAChH,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAwE,CAAA;AAAA,IAClF,CAAA,MAAO;AACH,MAAA,KAAA,CAAM,mBAAA,CAAoB,YAAA,EAAc,MAAA,EAAQ,KAAK,CAAA;AAAA,IACzD;AAAA,EACJ;AACJ;AAba,uBAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,uBAAA,CAAA","file":"AddAttribute.instruction.mjs","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreMutation, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddAttributeInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Sets an attribute on an HTML element. Apply calls setAttribute; revert calls removeAttribute.'\n})\nexport class AddAttributeInstruction extends AreMutation<AreHtmlAddAttributeInstructionPayload> {\n\n cache?: string;\n\n constructor(\n parent: AreDeclaration,\n props: AreHtmlAddAttributeInstructionPayload | AreInstructionSerialized<AreHtmlAddAttributeInstructionPayload>) {\n if ('aseid' in props) {\n super(props as AreInstructionSerialized<AreHtmlAddAttributeInstructionPayload>);\n } else {\n super(AreHTMLInstructions.AddAttribute, parent, props);\n }\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var core = require('@adaas/a-frame/core');
|
|
4
4
|
var are = require('@adaas/are');
|
|
5
5
|
var AreHTML_instructions_constants = require('./AreHTML.instructions.constants');
|
|
6
6
|
|
|
@@ -25,9 +25,8 @@ exports.AddCommentInstruction = class AddCommentInstruction extends are.AreDecla
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
exports.AddCommentInstruction = __decorateClass([
|
|
28
|
-
|
|
29
|
-
namespace: "
|
|
30
|
-
name: "AddCommentInstruction",
|
|
28
|
+
core.A_Frame.Define({
|
|
29
|
+
namespace: "a-are-html",
|
|
31
30
|
description: "Appends a comment node to an element. Apply creates the comment node; revert removes it. Content can be a static string or a dynamic getter for interpolations."
|
|
32
31
|
})
|
|
33
32
|
], exports.AddCommentInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddComment.instruction.ts"],"names":["AddCommentInstruction","AreDeclaration","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddComment.instruction.ts"],"names":["AddCommentInstruction","AreDeclaration","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;AAUaA,6BAAA,GAAN,oCAAoCC,kBAAA,CAAoD;AAAA,EAE3F,IAAI,OAAA,GAAU;AACV,IAAA,OAAO,KAAK,OAAA,CAAQ,OAAA;AAAA,EACxB;AAAA,EAEA,YACI,KAAA,EACF;AACE,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAsE,CAAA;AAAA,IAChF,CAAA,MAAO;AACH,MAAA,KAAA,CAAMC,kDAAA,CAAoB,YAAY,KAAK,CAAA;AAAA,IAC/C;AAAA,EACJ;AACJ;AAfaF,6BAAA,GAAN,eAAA,CAAA;AAAA,EAJNG,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYH,6BAAA,CAAA","file":"AddComment.instruction.js","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddCommentInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Appends a comment node to an element. Apply creates the comment node; revert removes it. Content can be a static string or a dynamic getter for interpolations.'\n})\nexport class AddCommentInstruction extends AreDeclaration<AreHtmlAddCommentInstructionPayload> {\n\n get content() {\n return this.payload.content;\n }\n\n constructor(\n props: AreHtmlAddCommentInstructionPayload | AreInstructionSerialized<AreHtmlAddCommentInstructionPayload>\n ) {\n if ('aseid' in props) {\n super(props as AreInstructionSerialized<AreHtmlAddCommentInstructionPayload>);\n } else {\n super(AreHTMLInstructions.AddComment, props);\n }\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
|
-
import { A_Frame } from '@adaas/a-frame';
|
|
2
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
3
3
|
import { AreDeclaration } from '@adaas/are';
|
|
4
4
|
import { AreHTMLInstructions } from './AreHTML.instructions.constants';
|
|
5
5
|
|
|
@@ -16,9 +16,8 @@ let AddCommentInstruction = class extends AreDeclaration {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
AddCommentInstruction = __decorateClass([
|
|
19
|
-
A_Frame.
|
|
20
|
-
namespace: "
|
|
21
|
-
name: "AddCommentInstruction",
|
|
19
|
+
A_Frame.Define({
|
|
20
|
+
namespace: "a-are-html",
|
|
22
21
|
description: "Appends a comment node to an element. Apply creates the comment node; revert removes it. Content can be a static string or a dynamic getter for interpolations."
|
|
23
22
|
})
|
|
24
23
|
], AddCommentInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddComment.instruction.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddComment.instruction.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,qBAAA,GAAN,cAAoC,cAAA,CAAoD;AAAA,EAE3F,IAAI,OAAA,GAAU;AACV,IAAA,OAAO,KAAK,OAAA,CAAQ,OAAA;AAAA,EACxB;AAAA,EAEA,YACI,KAAA,EACF;AACE,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAsE,CAAA;AAAA,IAChF,CAAA,MAAO;AACH,MAAA,KAAA,CAAM,mBAAA,CAAoB,YAAY,KAAK,CAAA;AAAA,IAC/C;AAAA,EACJ;AACJ;AAfa,qBAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,qBAAA,CAAA","file":"AddComment.instruction.mjs","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddCommentInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Appends a comment node to an element. Apply creates the comment node; revert removes it. Content can be a static string or a dynamic getter for interpolations.'\n})\nexport class AddCommentInstruction extends AreDeclaration<AreHtmlAddCommentInstructionPayload> {\n\n get content() {\n return this.payload.content;\n }\n\n constructor(\n props: AreHtmlAddCommentInstructionPayload | AreInstructionSerialized<AreHtmlAddCommentInstructionPayload>\n ) {\n if ('aseid' in props) {\n super(props as AreInstructionSerialized<AreHtmlAddCommentInstructionPayload>);\n } else {\n super(AreHTMLInstructions.AddComment, props);\n }\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var core = require('@adaas/a-frame/core');
|
|
4
4
|
var are = require('@adaas/are');
|
|
5
5
|
var AreHTML_instructions_constants = require('./AreHTML.instructions.constants');
|
|
6
6
|
|
|
@@ -22,9 +22,8 @@ exports.AddElementInstruction = class AddElementInstruction extends are.AreDecla
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
exports.AddElementInstruction = __decorateClass([
|
|
25
|
-
|
|
26
|
-
namespace: "
|
|
27
|
-
name: "AddElementInstruction",
|
|
25
|
+
core.A_Frame.Define({
|
|
26
|
+
namespace: "a-are-html",
|
|
28
27
|
description: "Creates a new HTML element in the DOM. Apply creates the element; revert removes it."
|
|
29
28
|
})
|
|
30
29
|
], exports.AddElementInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddElement.instruction.ts"],"names":["AddElementInstruction","AreDeclaration","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddElement.instruction.ts"],"names":["AddElementInstruction","AreDeclaration","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;AAUaA,6BAAA,GAAN,oCAAoCC,kBAAA,CAAoD;AAAA,EAC3F,YACI,KAAA,EACF;AACE,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAK,CAAA;AAAA,IACf,CAAA,MAAO;AACH,MAAA,KAAA,CAAMC,kDAAA,CAAoB,YAAY,KAAK,CAAA;AAAA,IAC/C;AAAA,EACJ;AACJ;AAVaF,6BAAA,GAAN,eAAA,CAAA;AAAA,EAJNG,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYH,6BAAA,CAAA","file":"AddElement.instruction.js","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddElementInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Creates a new HTML element in the DOM. Apply creates the element; revert removes it.'\n})\nexport class AddElementInstruction extends AreDeclaration<AreHtmlAddElementInstructionPayload> {\n constructor(\n props: AreHtmlAddElementInstructionPayload | AreInstructionSerialized<AreHtmlAddElementInstructionPayload>\n ) {\n if ('aseid' in props) {\n super(props);\n } else {\n super(AreHTMLInstructions.AddElement, props);\n }\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
|
-
import { A_Frame } from '@adaas/a-frame';
|
|
2
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
3
3
|
import { AreDeclaration } from '@adaas/are';
|
|
4
4
|
import { AreHTMLInstructions } from './AreHTML.instructions.constants';
|
|
5
5
|
|
|
@@ -13,9 +13,8 @@ let AddElementInstruction = class extends AreDeclaration {
|
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
AddElementInstruction = __decorateClass([
|
|
16
|
-
A_Frame.
|
|
17
|
-
namespace: "
|
|
18
|
-
name: "AddElementInstruction",
|
|
16
|
+
A_Frame.Define({
|
|
17
|
+
namespace: "a-are-html",
|
|
19
18
|
description: "Creates a new HTML element in the DOM. Apply creates the element; revert removes it."
|
|
20
19
|
})
|
|
21
20
|
], AddElementInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddElement.instruction.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddElement.instruction.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,qBAAA,GAAN,cAAoC,cAAA,CAAoD;AAAA,EAC3F,YACI,KAAA,EACF;AACE,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAK,CAAA;AAAA,IACf,CAAA,MAAO;AACH,MAAA,KAAA,CAAM,mBAAA,CAAoB,YAAY,KAAK,CAAA;AAAA,IAC/C;AAAA,EACJ;AACJ;AAVa,qBAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,qBAAA,CAAA","file":"AddElement.instruction.mjs","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddElementInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Creates a new HTML element in the DOM. Apply creates the element; revert removes it.'\n})\nexport class AddElementInstruction extends AreDeclaration<AreHtmlAddElementInstructionPayload> {\n constructor(\n props: AreHtmlAddElementInstructionPayload | AreInstructionSerialized<AreHtmlAddElementInstructionPayload>\n ) {\n if ('aseid' in props) {\n super(props);\n } else {\n super(AreHTMLInstructions.AddElement, props);\n }\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var core = require('@adaas/a-frame/core');
|
|
4
4
|
var are = require('@adaas/are');
|
|
5
5
|
var AreHTML_instructions_constants = require('./AreHTML.instructions.constants');
|
|
6
6
|
|
|
@@ -22,9 +22,8 @@ exports.AddInterpolationInstruction = class AddInterpolationInstruction extends
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
exports.AddInterpolationInstruction = __decorateClass([
|
|
25
|
-
|
|
26
|
-
namespace: "
|
|
27
|
-
name: "AddInterpolationInstruction",
|
|
25
|
+
core.A_Frame.Define({
|
|
26
|
+
namespace: "a-are-html",
|
|
28
27
|
description: "Appends a reactive text node whose content is resolved dynamically from the store. Apply creates the text node with the getter; revert removes it."
|
|
29
28
|
})
|
|
30
29
|
], exports.AddInterpolationInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddInterpolation.instruction.ts"],"names":["AddInterpolationInstruction","AreMutation","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddInterpolation.instruction.ts"],"names":["AddInterpolationInstruction","AreMutation","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;AAUaA,mCAAA,GAAN,0CAA0CC,eAAA,CAAuD;AAAA,EAEpG,WAAA,CACI,QACA,KAAA,EACF;AACE,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAA4E,CAAA;AAAA,IACtF,CAAA,MAAO;AACH,MAAA,KAAA,CAAMC,kDAAA,CAAoB,gBAAA,EAAkB,MAAA,EAAQ,KAAK,CAAA;AAAA,IAC7D;AAAA,EACJ;AACJ;AAZaF,mCAAA,GAAN,eAAA,CAAA;AAAA,EAJNG,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYH,mCAAA,CAAA","file":"AddInterpolation.instruction.js","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreMutation, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddInterpolationInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Appends a reactive text node whose content is resolved dynamically from the store. Apply creates the text node with the getter; revert removes it.'\n})\nexport class AddInterpolationInstruction extends AreMutation<AreHtmlAddInterpolationInstructionPayload> {\n\n constructor(\n parent: AreDeclaration,\n props: AreHtmlAddInterpolationInstructionPayload | AreInstructionSerialized<AreHtmlAddInterpolationInstructionPayload>\n ) {\n if ('aseid' in props) {\n super(props as AreInstructionSerialized<AreHtmlAddInterpolationInstructionPayload>);\n } else {\n super(AreHTMLInstructions.AddInterpolation, parent, props);\n }\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
|
-
import { A_Frame } from '@adaas/a-frame';
|
|
2
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
3
3
|
import { AreMutation } from '@adaas/are';
|
|
4
4
|
import { AreHTMLInstructions } from './AreHTML.instructions.constants';
|
|
5
5
|
|
|
@@ -13,9 +13,8 @@ let AddInterpolationInstruction = class extends AreMutation {
|
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
AddInterpolationInstruction = __decorateClass([
|
|
16
|
-
A_Frame.
|
|
17
|
-
namespace: "
|
|
18
|
-
name: "AddInterpolationInstruction",
|
|
16
|
+
A_Frame.Define({
|
|
17
|
+
namespace: "a-are-html",
|
|
19
18
|
description: "Appends a reactive text node whose content is resolved dynamically from the store. Apply creates the text node with the getter; revert removes it."
|
|
20
19
|
})
|
|
21
20
|
], AddInterpolationInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddInterpolation.instruction.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddInterpolation.instruction.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,2BAAA,GAAN,cAA0C,WAAA,CAAuD;AAAA,EAEpG,WAAA,CACI,QACA,KAAA,EACF;AACE,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAA4E,CAAA;AAAA,IACtF,CAAA,MAAO;AACH,MAAA,KAAA,CAAM,mBAAA,CAAoB,gBAAA,EAAkB,MAAA,EAAQ,KAAK,CAAA;AAAA,IAC7D;AAAA,EACJ;AACJ;AAZa,2BAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,2BAAA,CAAA","file":"AddInterpolation.instruction.mjs","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreMutation, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddInterpolationInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Appends a reactive text node whose content is resolved dynamically from the store. Apply creates the text node with the getter; revert removes it.'\n})\nexport class AddInterpolationInstruction extends AreMutation<AreHtmlAddInterpolationInstructionPayload> {\n\n constructor(\n parent: AreDeclaration,\n props: AreHtmlAddInterpolationInstructionPayload | AreInstructionSerialized<AreHtmlAddInterpolationInstructionPayload>\n ) {\n if ('aseid' in props) {\n super(props as AreInstructionSerialized<AreHtmlAddInterpolationInstructionPayload>);\n } else {\n super(AreHTMLInstructions.AddInterpolation, parent, props);\n }\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var core = require('@adaas/a-frame/core');
|
|
4
4
|
var are = require('@adaas/are');
|
|
5
5
|
var AreHTML_instructions_constants = require('./AreHTML.instructions.constants');
|
|
6
6
|
|
|
@@ -22,9 +22,8 @@ exports.AddListenerInstruction = class AddListenerInstruction extends are.AreMut
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
exports.AddListenerInstruction = __decorateClass([
|
|
25
|
-
|
|
26
|
-
namespace: "
|
|
27
|
-
name: "AddListenerInstruction",
|
|
25
|
+
core.A_Frame.Define({
|
|
26
|
+
namespace: "a-are-html",
|
|
28
27
|
description: "Attaches a DOM event listener to an element. Apply calls addEventListener; revert calls removeEventListener."
|
|
29
28
|
})
|
|
30
29
|
], exports.AddListenerInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddListener.instruction.ts"],"names":["AddListenerInstruction","AreMutation","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddListener.instruction.ts"],"names":["AddListenerInstruction","AreMutation","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;AAUaA,8BAAA,GAAN,qCAAqCC,eAAA,CAAkD;AAAA,EAE1F,WAAA,CACI,QACA,KAAA,EACF;AACE,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAuE,CAAA;AAAA,IACjF,CAAA,MAAO;AACH,MAAA,KAAA,CAAMC,kDAAA,CAAoB,WAAA,EAAa,MAAA,EAAQ,KAAK,CAAA;AAAA,IACxD;AAAA,EACJ;AACJ;AAZaF,8BAAA,GAAN,eAAA,CAAA;AAAA,EAJNG,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYH,8BAAA,CAAA","file":"AddListener.instruction.js","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreMutation, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddListenerInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Attaches a DOM event listener to an element. Apply calls addEventListener; revert calls removeEventListener.'\n})\nexport class AddListenerInstruction extends AreMutation<AreHtmlAddListenerInstructionPayload> {\n\n constructor(\n parent: AreDeclaration,\n props: AreHtmlAddListenerInstructionPayload | AreInstructionSerialized<AreHtmlAddListenerInstructionPayload>\n ) {\n if ('aseid' in props) {\n super(props as AreInstructionSerialized<AreHtmlAddListenerInstructionPayload>);\n } else {\n super(AreHTMLInstructions.AddListener, parent, props);\n }\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
|
-
import { A_Frame } from '@adaas/a-frame';
|
|
2
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
3
3
|
import { AreMutation } from '@adaas/are';
|
|
4
4
|
import { AreHTMLInstructions } from './AreHTML.instructions.constants';
|
|
5
5
|
|
|
@@ -13,9 +13,8 @@ let AddListenerInstruction = class extends AreMutation {
|
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
AddListenerInstruction = __decorateClass([
|
|
16
|
-
A_Frame.
|
|
17
|
-
namespace: "
|
|
18
|
-
name: "AddListenerInstruction",
|
|
16
|
+
A_Frame.Define({
|
|
17
|
+
namespace: "a-are-html",
|
|
19
18
|
description: "Attaches a DOM event listener to an element. Apply calls addEventListener; revert calls removeEventListener."
|
|
20
19
|
})
|
|
21
20
|
], AddListenerInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddListener.instruction.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddListener.instruction.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,sBAAA,GAAN,cAAqC,WAAA,CAAkD;AAAA,EAE1F,WAAA,CACI,QACA,KAAA,EACF;AACE,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAuE,CAAA;AAAA,IACjF,CAAA,MAAO;AACH,MAAA,KAAA,CAAM,mBAAA,CAAoB,WAAA,EAAa,MAAA,EAAQ,KAAK,CAAA;AAAA,IACxD;AAAA,EACJ;AACJ;AAZa,sBAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,sBAAA,CAAA","file":"AddListener.instruction.mjs","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreMutation, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddListenerInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Attaches a DOM event listener to an element. Apply calls addEventListener; revert calls removeEventListener.'\n})\nexport class AddListenerInstruction extends AreMutation<AreHtmlAddListenerInstructionPayload> {\n\n constructor(\n parent: AreDeclaration,\n props: AreHtmlAddListenerInstructionPayload | AreInstructionSerialized<AreHtmlAddListenerInstructionPayload>\n ) {\n if ('aseid' in props) {\n super(props as AreInstructionSerialized<AreHtmlAddListenerInstructionPayload>);\n } else {\n super(AreHTMLInstructions.AddListener, parent, props);\n }\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var core = require('@adaas/a-frame/core');
|
|
4
4
|
var are = require('@adaas/are');
|
|
5
5
|
var AreHTML_instructions_constants = require('./AreHTML.instructions.constants');
|
|
6
6
|
|
|
@@ -22,9 +22,8 @@ exports.AddStyleInstruction = class AddStyleInstruction extends are.AreMutation
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
exports.AddStyleInstruction = __decorateClass([
|
|
25
|
-
|
|
26
|
-
namespace: "
|
|
27
|
-
name: "AddStyleInstruction",
|
|
25
|
+
core.A_Frame.Define({
|
|
26
|
+
namespace: "a-are-html",
|
|
28
27
|
description: "Sets an inline CSS style property on an element. Apply sets the property; revert removes it."
|
|
29
28
|
})
|
|
30
29
|
], exports.AddStyleInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddStyle.instruction.ts"],"names":["AddStyleInstruction","AreMutation","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddStyle.instruction.ts"],"names":["AddStyleInstruction","AreMutation","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;AAUaA,2BAAA,GAAN,kCAAkCC,eAAA,CAA+C;AAAA,EAEpF,WAAA,CACI,QACA,KAAA,EACF;AACE,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAoE,CAAA;AAAA,IAC9E,CAAA,MAAO;AACH,MAAA,KAAA,CAAMC,kDAAA,CAAoB,QAAA,EAAU,MAAA,EAAQ,KAAK,CAAA;AAAA,IACrD;AAAA,EACJ;AACJ;AAZaF,2BAAA,GAAN,eAAA,CAAA;AAAA,EAJNG,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYH,2BAAA,CAAA","file":"AddStyle.instruction.js","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreMutation, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddStyleInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Sets an inline CSS style property on an element. Apply sets the property; revert removes it.'\n})\nexport class AddStyleInstruction extends AreMutation<AreHtmlAddStyleInstructionPayload> {\n\n constructor(\n parent: AreDeclaration,\n props: AreHtmlAddStyleInstructionPayload | AreInstructionSerialized<AreHtmlAddStyleInstructionPayload>\n ) {\n if ('aseid' in props) {\n super(props as AreInstructionSerialized<AreHtmlAddStyleInstructionPayload>);\n } else {\n super(AreHTMLInstructions.AddStyle, parent, props);\n }\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
|
-
import { A_Frame } from '@adaas/a-frame';
|
|
2
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
3
3
|
import { AreMutation } from '@adaas/are';
|
|
4
4
|
import { AreHTMLInstructions } from './AreHTML.instructions.constants';
|
|
5
5
|
|
|
@@ -13,9 +13,8 @@ let AddStyleInstruction = class extends AreMutation {
|
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
AddStyleInstruction = __decorateClass([
|
|
16
|
-
A_Frame.
|
|
17
|
-
namespace: "
|
|
18
|
-
name: "AddStyleInstruction",
|
|
16
|
+
A_Frame.Define({
|
|
17
|
+
namespace: "a-are-html",
|
|
19
18
|
description: "Sets an inline CSS style property on an element. Apply sets the property; revert removes it."
|
|
20
19
|
})
|
|
21
20
|
], AddStyleInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddStyle.instruction.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddStyle.instruction.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,mBAAA,GAAN,cAAkC,WAAA,CAA+C;AAAA,EAEpF,WAAA,CACI,QACA,KAAA,EACF;AACE,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAoE,CAAA;AAAA,IAC9E,CAAA,MAAO;AACH,MAAA,KAAA,CAAM,mBAAA,CAAoB,QAAA,EAAU,MAAA,EAAQ,KAAK,CAAA;AAAA,IACrD;AAAA,EACJ;AACJ;AAZa,mBAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,mBAAA,CAAA","file":"AddStyle.instruction.mjs","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreMutation, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddStyleInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Sets an inline CSS style property on an element. Apply sets the property; revert removes it.'\n})\nexport class AddStyleInstruction extends AreMutation<AreHtmlAddStyleInstructionPayload> {\n\n constructor(\n parent: AreDeclaration,\n props: AreHtmlAddStyleInstructionPayload | AreInstructionSerialized<AreHtmlAddStyleInstructionPayload>\n ) {\n if ('aseid' in props) {\n super(props as AreInstructionSerialized<AreHtmlAddStyleInstructionPayload>);\n } else {\n super(AreHTMLInstructions.AddStyle, parent, props);\n }\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var core = require('@adaas/a-frame/core');
|
|
4
4
|
var are = require('@adaas/are');
|
|
5
5
|
var AreHTML_instructions_constants = require('./AreHTML.instructions.constants');
|
|
6
6
|
|
|
@@ -22,9 +22,8 @@ exports.AddTextInstruction = class AddTextInstruction extends are.AreDeclaration
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
exports.AddTextInstruction = __decorateClass([
|
|
25
|
-
|
|
26
|
-
namespace: "
|
|
27
|
-
name: "AddTextInstruction",
|
|
25
|
+
core.A_Frame.Define({
|
|
26
|
+
namespace: "a-are-html",
|
|
28
27
|
description: "Appends a text node to an element. Apply creates the text node; revert removes it. Content can be a static string or a dynamic getter for interpolations."
|
|
29
28
|
})
|
|
30
29
|
], exports.AddTextInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddText.instruction.ts"],"names":["AddTextInstruction","AreDeclaration","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddText.instruction.ts"],"names":["AddTextInstruction","AreDeclaration","AreHTMLInstructions","A_Frame"],"mappings":";;;;;;;;;;;;;;AAUaA,0BAAA,GAAN,iCAAiCC,kBAAA,CAAiD;AAAA,EAErF,YAAY,KAAA,EAAsG;AAC9G,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAmE,CAAA;AAAA,IAC7E,CAAA,MAAO;AACH,MAAA,KAAA,CAAMC,kDAAA,CAAoB,SAAS,KAAK,CAAA;AAAA,IAC5C;AAAA,EACJ;AACJ;AATaF,0BAAA,GAAN,eAAA,CAAA;AAAA,EAJNG,aAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYH,0BAAA,CAAA","file":"AddText.instruction.js","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddTextInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Appends a text node to an element. Apply creates the text node; revert removes it. Content can be a static string or a dynamic getter for interpolations.'\n})\nexport class AddTextInstruction extends AreDeclaration<AreHtmlAddTextInstructionPayload> {\n\n constructor(props: AreHtmlAddTextInstructionPayload | AreInstructionSerialized<AreHtmlAddTextInstructionPayload>) {\n if ('aseid' in props) {\n super(props as AreInstructionSerialized<AreHtmlAddTextInstructionPayload>);\n } else {\n super(AreHTMLInstructions.AddText, props);\n }\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
|
-
import { A_Frame } from '@adaas/a-frame';
|
|
2
|
+
import { A_Frame } from '@adaas/a-frame/core';
|
|
3
3
|
import { AreDeclaration } from '@adaas/are';
|
|
4
4
|
import { AreHTMLInstructions } from './AreHTML.instructions.constants';
|
|
5
5
|
|
|
@@ -13,9 +13,8 @@ let AddTextInstruction = class extends AreDeclaration {
|
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
AddTextInstruction = __decorateClass([
|
|
16
|
-
A_Frame.
|
|
17
|
-
namespace: "
|
|
18
|
-
name: "AddTextInstruction",
|
|
16
|
+
A_Frame.Define({
|
|
17
|
+
namespace: "a-are-html",
|
|
19
18
|
description: "Appends a text node to an element. Apply creates the text node; revert removes it. Content can be a static string or a dynamic getter for interpolations."
|
|
20
19
|
})
|
|
21
20
|
], AddTextInstruction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instructions/AddText.instruction.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/instructions/AddText.instruction.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,kBAAA,GAAN,cAAiC,cAAA,CAAiD;AAAA,EAErF,YAAY,KAAA,EAAsG;AAC9G,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAmE,CAAA;AAAA,IAC7E,CAAA,MAAO;AACH,MAAA,KAAA,CAAM,mBAAA,CAAoB,SAAS,KAAK,CAAA;AAAA,IAC5C;AAAA,EACJ;AACJ;AATa,kBAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,kBAAA,CAAA","file":"AddText.instruction.mjs","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddTextInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n namespace: 'a-are-html',\n description: 'Appends a text node to an element. Apply creates the text node; revert removes it. Content can be a static string or a dynamic getter for interpolations.'\n})\nexport class AddTextInstruction extends AreDeclaration<AreHtmlAddTextInstructionPayload> {\n\n constructor(props: AreHtmlAddTextInstructionPayload | AreInstructionSerialized<AreHtmlAddTextInstructionPayload>) {\n if ('aseid' in props) {\n super(props as AreInstructionSerialized<AreHtmlAddTextInstructionPayload>);\n } else {\n super(AreHTMLInstructions.AddText, props);\n }\n }\n}\n"]}
|
|
@@ -4,6 +4,7 @@ var aConcept = require('@adaas/a-concept');
|
|
|
4
4
|
var aLogger = require('@adaas/a-utils/a-logger');
|
|
5
5
|
var AreDirective_meta = require('./AreDirective.meta');
|
|
6
6
|
var AreDirective_constants = require('./AreDirective.constants');
|
|
7
|
+
var core = require('@adaas/a-frame/core');
|
|
7
8
|
|
|
8
9
|
var __defProp = Object.defineProperty;
|
|
9
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -111,6 +112,10 @@ __decorateClass([
|
|
|
111
112
|
__decorateParam(0, aConcept.A_Inject(aConcept.A_Caller))
|
|
112
113
|
], exports.AreDirective.prototype, "update", 1);
|
|
113
114
|
exports.AreDirective = __decorateClass([
|
|
115
|
+
core.A_Frame.Define({
|
|
116
|
+
namespace: "a-are-html",
|
|
117
|
+
description: "Abstract base component for all ARE directive types. Provides lifecycle decorators (Transform, Compile, Apply, Revert, Priority) that subclasses hook into at each pipeline stage. Subclasses implement Transform to rewrite the attribute or template node, Compile to emit scene instructions, Apply to activate them in the DOM, and Revert to undo them on removal."
|
|
118
|
+
}),
|
|
114
119
|
aConcept.A_Meta.Define(AreDirective_meta.AreDirectiveMeta)
|
|
115
120
|
], exports.AreDirective);
|
|
116
121
|
//# sourceMappingURL=AreDirective.component.js.map
|