@adaas/are 0.0.2 → 0.0.3
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/.conf/tsconfig.base.json +25 -32
- package/.conf/tsconfig.browser.json +24 -32
- package/.conf/tsconfig.node.json +24 -33
- package/CHANGELOG.md +39 -0
- package/README.md +214 -2
- package/dist/browser/index.d.mts +1375 -727
- package/dist/browser/index.mjs +2812 -2170
- package/dist/browser/index.mjs.map +1 -1
- package/dist/node/Are.context-9Ija_fdC.d.ts +846 -0
- package/dist/node/Are.context-D7w32H1G.d.mts +846 -0
- package/dist/node/index.d.mts +32 -31
- package/dist/node/index.d.ts +32 -31
- package/dist/node/index.js +371 -42
- package/dist/node/index.mjs +61 -14
- package/dist/node/lib/AreAttribute/AreAttribute.constants.d.mts +24 -0
- package/dist/node/lib/AreAttribute/AreAttribute.constants.d.ts +24 -0
- package/dist/node/lib/AreAttribute/AreAttribute.constants.js +28 -0
- package/dist/node/lib/AreAttribute/AreAttribute.constants.js.map +1 -0
- package/dist/node/lib/AreAttribute/AreAttribute.constants.mjs +28 -0
- package/dist/node/lib/AreAttribute/AreAttribute.constants.mjs.map +1 -0
- package/dist/node/lib/AreAttribute/AreAttribute.entity.d.mts +14 -0
- package/dist/node/lib/AreAttribute/AreAttribute.entity.d.ts +14 -0
- package/dist/node/lib/AreAttribute/AreAttribute.entity.js +113 -0
- package/dist/node/lib/AreAttribute/AreAttribute.entity.js.map +1 -0
- package/dist/node/lib/AreAttribute/AreAttribute.entity.mjs +104 -0
- package/dist/node/lib/AreAttribute/AreAttribute.entity.mjs.map +1 -0
- package/dist/node/lib/AreAttribute/AreAttribute.types.d.mts +47 -0
- package/dist/node/lib/AreAttribute/AreAttribute.types.d.ts +47 -0
- package/dist/node/lib/AreAttribute/AreAttribute.types.js +4 -0
- package/dist/node/lib/AreAttribute/AreAttribute.types.js.map +1 -0
- package/dist/node/lib/AreAttribute/AreAttribute.types.mjs +3 -0
- package/dist/node/lib/AreAttribute/AreAttribute.types.mjs.map +1 -0
- package/dist/node/lib/AreCompiler/AreCompiler.component.d.mts +19 -224
- package/dist/node/lib/AreCompiler/AreCompiler.component.d.ts +19 -224
- package/dist/node/lib/AreCompiler/AreCompiler.component.js +31 -607
- package/dist/node/lib/AreCompiler/AreCompiler.component.js.map +1 -1
- package/dist/node/lib/AreCompiler/AreCompiler.component.mjs +29 -605
- package/dist/node/lib/AreCompiler/AreCompiler.component.mjs.map +1 -1
- package/dist/node/lib/AreComponent/Are.component.d.mts +59 -7
- package/dist/node/lib/AreComponent/Are.component.d.ts +59 -7
- package/dist/node/lib/AreComponent/Are.component.js +84 -25
- package/dist/node/lib/AreComponent/Are.component.js.map +1 -1
- package/dist/node/lib/AreComponent/Are.component.mjs +85 -26
- package/dist/node/lib/AreComponent/Are.component.mjs.map +1 -1
- package/dist/node/lib/AreComponent/Are.constants.d.mts +46 -30
- package/dist/node/lib/AreComponent/Are.constants.d.ts +46 -30
- package/dist/node/lib/AreComponent/Are.constants.js +58 -21
- package/dist/node/lib/AreComponent/Are.constants.js.map +1 -1
- package/dist/node/lib/AreComponent/Are.constants.mjs +58 -21
- package/dist/node/lib/AreComponent/Are.constants.mjs.map +1 -1
- package/dist/node/lib/AreComponent/Are.context.d.mts +13 -21
- package/dist/node/lib/AreComponent/Are.context.d.ts +13 -21
- package/dist/node/lib/AreComponent/Are.context.js +91 -2
- package/dist/node/lib/AreComponent/Are.context.js.map +1 -1
- package/dist/node/lib/AreComponent/Are.context.mjs +92 -3
- package/dist/node/lib/AreComponent/Are.context.mjs.map +1 -1
- package/dist/node/lib/AreComponent/Are.meta.d.mts +14 -0
- package/dist/node/lib/AreComponent/Are.meta.d.ts +14 -0
- package/dist/node/lib/AreComponent/Are.meta.js +10 -0
- package/dist/node/lib/AreComponent/Are.meta.js.map +1 -0
- package/dist/node/lib/AreComponent/Are.meta.mjs +9 -0
- package/dist/node/lib/AreComponent/Are.meta.mjs.map +1 -0
- package/dist/node/lib/AreComponent/Are.types.d.mts +30 -1
- package/dist/node/lib/AreComponent/Are.types.d.ts +30 -1
- package/dist/node/lib/AreEngine/AreEngine.component.d.mts +77 -0
- package/dist/node/lib/AreEngine/AreEngine.component.d.ts +77 -0
- package/dist/node/lib/AreEngine/AreEngine.component.js +259 -0
- package/dist/node/lib/AreEngine/AreEngine.component.js.map +1 -0
- package/dist/node/lib/AreEngine/AreEngine.component.mjs +249 -0
- package/dist/node/lib/AreEngine/AreEngine.component.mjs.map +1 -0
- package/dist/node/lib/AreEngine/AreEngine.constants.d.mts +7 -0
- package/dist/node/lib/AreEngine/AreEngine.constants.d.ts +7 -0
- package/dist/node/lib/AreEngine/AreEngine.constants.js +11 -0
- package/dist/node/lib/AreEngine/AreEngine.constants.js.map +1 -0
- package/dist/node/lib/AreEngine/AreEngine.constants.mjs +11 -0
- package/dist/node/lib/AreEngine/AreEngine.constants.mjs.map +1 -0
- package/dist/node/lib/AreEngine/AreEngine.error.d.mts +7 -0
- package/dist/node/lib/AreEngine/AreEngine.error.d.ts +7 -0
- package/dist/node/lib/AreEngine/AreEngine.error.js +11 -0
- package/dist/node/lib/AreEngine/AreEngine.error.js.map +1 -0
- package/dist/node/lib/AreEngine/AreEngine.error.mjs +10 -0
- package/dist/node/lib/AreEngine/AreEngine.error.mjs.map +1 -0
- package/dist/node/lib/AreEngine/AreEngine.types.d.mts +40 -0
- package/dist/node/lib/AreEngine/AreEngine.types.d.ts +40 -0
- package/dist/node/lib/AreEngine/AreEngine.types.js +4 -0
- package/dist/node/lib/AreEngine/AreEngine.types.js.map +1 -0
- package/dist/node/lib/AreEngine/AreEngine.types.mjs +3 -0
- package/dist/node/lib/AreEngine/AreEngine.types.mjs.map +1 -0
- package/dist/node/lib/AreEvent/AreEvent.context.d.mts +6 -8
- package/dist/node/lib/AreEvent/AreEvent.context.d.ts +6 -8
- package/dist/node/lib/AreEvent/AreEvent.context.js +2 -12
- package/dist/node/lib/AreEvent/AreEvent.context.js.map +1 -1
- package/dist/node/lib/AreEvent/AreEvent.context.mjs +2 -12
- package/dist/node/lib/AreEvent/AreEvent.context.mjs.map +1 -1
- package/dist/node/lib/AreInstruction/AreInstruction.constants.d.mts +21 -0
- package/dist/node/lib/AreInstruction/AreInstruction.constants.d.ts +21 -0
- package/dist/node/lib/AreInstruction/AreInstruction.constants.js +26 -0
- package/dist/node/lib/AreInstruction/AreInstruction.constants.js.map +1 -0
- package/dist/node/lib/AreInstruction/AreInstruction.constants.mjs +25 -0
- package/dist/node/lib/AreInstruction/AreInstruction.constants.mjs.map +1 -0
- package/dist/node/lib/AreInstruction/AreInstruction.entity.d.mts +14 -0
- package/dist/node/lib/AreInstruction/AreInstruction.entity.d.ts +14 -0
- package/dist/node/lib/AreInstruction/AreInstruction.entity.js +152 -0
- package/dist/node/lib/AreInstruction/AreInstruction.entity.js.map +1 -0
- package/dist/node/lib/AreInstruction/AreInstruction.entity.mjs +145 -0
- package/dist/node/lib/AreInstruction/AreInstruction.entity.mjs.map +1 -0
- package/dist/node/lib/AreInstruction/AreInstruction.error.d.mts +6 -0
- package/dist/node/lib/AreInstruction/AreInstruction.error.d.ts +6 -0
- package/dist/node/lib/AreInstruction/AreInstruction.error.js +10 -0
- package/dist/node/lib/AreInstruction/AreInstruction.error.js.map +1 -0
- package/dist/node/lib/AreInstruction/AreInstruction.error.mjs +9 -0
- package/dist/node/lib/AreInstruction/AreInstruction.error.mjs.map +1 -0
- package/dist/node/lib/AreInstruction/AreInstruction.types.d.mts +14 -0
- package/dist/node/lib/AreInstruction/AreInstruction.types.d.ts +14 -0
- package/dist/node/lib/AreInstruction/AreInstruction.types.js +4 -0
- package/dist/node/lib/AreInstruction/AreInstruction.types.js.map +1 -0
- package/dist/node/lib/AreInstruction/AreInstruction.types.mjs +3 -0
- package/dist/node/lib/AreInstruction/AreInstruction.types.mjs.map +1 -0
- package/dist/node/lib/AreInstruction/types/AreDeclaration.instruction.d.mts +14 -0
- package/dist/node/lib/AreInstruction/types/AreDeclaration.instruction.d.ts +14 -0
- package/dist/node/lib/AreInstruction/types/AreDeclaration.instruction.js +37 -0
- package/dist/node/lib/AreInstruction/types/AreDeclaration.instruction.js.map +1 -0
- package/dist/node/lib/AreInstruction/types/AreDeclaration.instruction.mjs +30 -0
- package/dist/node/lib/AreInstruction/types/AreDeclaration.instruction.mjs.map +1 -0
- package/dist/node/lib/AreInstruction/types/AreMutation.instruction.d.mts +14 -0
- package/dist/node/lib/AreInstruction/types/AreMutation.instruction.d.ts +14 -0
- package/dist/node/lib/AreInstruction/types/AreMutation.instruction.js +52 -0
- package/dist/node/lib/AreInstruction/types/AreMutation.instruction.js.map +1 -0
- package/dist/node/lib/AreInstruction/types/AreMutation.instruction.mjs +45 -0
- package/dist/node/lib/AreInstruction/types/AreMutation.instruction.mjs.map +1 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.component.d.mts +49 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.component.d.ts +49 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.component.js +164 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.component.js.map +1 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.component.mjs +154 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.component.mjs.map +1 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.constants.js +4 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.constants.js.map +1 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.constants.mjs +3 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.constants.mjs.map +1 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.error.d.mts +6 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.error.d.ts +6 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.error.js +10 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.error.js.map +1 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.error.mjs +9 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.error.mjs.map +1 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.types.js +4 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.types.js.map +1 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.types.mjs +3 -0
- package/dist/node/lib/AreInterpreter/AreInterpreter.types.mjs.map +1 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.component.d.mts +188 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.component.d.ts +188 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.component.js +349 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.component.js.map +1 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.component.mjs +339 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.component.mjs.map +1 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.constants.d.mts +2 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.constants.d.ts +2 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.constants.js +4 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.constants.js.map +1 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.constants.mjs +3 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.constants.mjs.map +1 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.error.d.mts +7 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.error.d.ts +7 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.error.js +11 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.error.js.map +1 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.error.mjs +10 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.error.mjs.map +1 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.types.d.mts +2 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.types.d.ts +2 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.types.js +4 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.types.js.map +1 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.types.mjs +3 -0
- package/dist/node/lib/AreLifecycle/AreLifecycle.types.mjs.map +1 -0
- package/dist/node/lib/AreLoader/AreLoader.component.d.mts +31 -0
- package/dist/node/lib/AreLoader/AreLoader.component.d.ts +31 -0
- package/dist/node/lib/AreLoader/AreLoader.component.js +64 -0
- package/dist/node/lib/AreLoader/AreLoader.component.js.map +1 -0
- package/dist/node/lib/AreLoader/AreLoader.component.mjs +54 -0
- package/dist/node/lib/AreLoader/AreLoader.component.mjs.map +1 -0
- package/dist/node/lib/AreLoader/AreLoader.constants.d.mts +2 -0
- package/dist/node/lib/AreLoader/AreLoader.constants.d.ts +2 -0
- package/dist/node/lib/AreLoader/AreLoader.constants.js +4 -0
- package/dist/node/lib/AreLoader/AreLoader.constants.js.map +1 -0
- package/dist/node/lib/AreLoader/AreLoader.constants.mjs +3 -0
- package/dist/node/lib/AreLoader/AreLoader.constants.mjs.map +1 -0
- package/dist/node/lib/AreLoader/AreLoader.error.d.mts +8 -0
- package/dist/node/lib/AreLoader/AreLoader.error.d.ts +8 -0
- package/dist/node/lib/AreLoader/AreLoader.error.js +12 -0
- package/dist/node/lib/AreLoader/AreLoader.error.js.map +1 -0
- package/dist/node/lib/AreLoader/AreLoader.error.mjs +11 -0
- package/dist/node/lib/AreLoader/AreLoader.error.mjs.map +1 -0
- package/dist/node/lib/AreLoader/AreLoader.types.d.mts +2 -0
- package/dist/node/lib/AreLoader/AreLoader.types.d.ts +2 -0
- package/dist/node/lib/AreLoader/AreLoader.types.js +4 -0
- package/dist/node/lib/AreLoader/AreLoader.types.js.map +1 -0
- package/dist/node/lib/AreLoader/AreLoader.types.mjs +3 -0
- package/dist/node/lib/AreLoader/AreLoader.types.mjs.map +1 -0
- package/dist/node/lib/AreNode/AreNode.constants.d.mts +87 -17
- package/dist/node/lib/AreNode/AreNode.constants.d.ts +87 -17
- package/dist/node/lib/AreNode/AreNode.constants.js +111 -11
- package/dist/node/lib/AreNode/AreNode.constants.js.map +1 -1
- package/dist/node/lib/AreNode/AreNode.constants.mjs +111 -12
- package/dist/node/lib/AreNode/AreNode.constants.mjs.map +1 -1
- package/dist/node/lib/AreNode/AreNode.entity.d.mts +12 -6
- package/dist/node/lib/AreNode/AreNode.entity.d.ts +12 -6
- package/dist/node/lib/AreNode/AreNode.entity.js +281 -49
- package/dist/node/lib/AreNode/AreNode.entity.js.map +1 -1
- package/dist/node/lib/AreNode/AreNode.entity.mjs +282 -50
- package/dist/node/lib/AreNode/AreNode.entity.mjs.map +1 -1
- package/dist/node/lib/AreNode/AreNode.types.d.mts +14 -13
- package/dist/node/lib/AreNode/AreNode.types.d.ts +14 -13
- package/dist/node/lib/AreScene/AreScene.constants.d.mts +7 -0
- package/dist/node/lib/AreScene/AreScene.constants.d.ts +7 -0
- package/dist/node/lib/AreScene/AreScene.constants.js +11 -0
- package/dist/node/lib/AreScene/AreScene.constants.js.map +1 -0
- package/dist/node/lib/AreScene/AreScene.constants.mjs +11 -0
- package/dist/node/lib/AreScene/AreScene.constants.mjs.map +1 -0
- package/dist/node/lib/AreScene/AreScene.context.d.mts +12 -6
- package/dist/node/lib/AreScene/AreScene.context.d.ts +12 -6
- package/dist/node/lib/AreScene/AreScene.context.js +284 -186
- package/dist/node/lib/AreScene/AreScene.context.js.map +1 -1
- package/dist/node/lib/AreScene/AreScene.context.mjs +277 -185
- package/dist/node/lib/AreScene/AreScene.context.mjs.map +1 -1
- package/dist/node/lib/AreScene/AreScene.error.d.mts +4 -0
- package/dist/node/lib/AreScene/AreScene.error.d.ts +4 -0
- package/dist/node/lib/AreScene/AreScene.error.js +4 -0
- package/dist/node/lib/AreScene/AreScene.error.js.map +1 -1
- package/dist/node/lib/AreScene/AreScene.error.mjs +4 -0
- package/dist/node/lib/AreScene/AreScene.error.mjs.map +1 -1
- package/dist/node/lib/AreScene/AreScene.types.d.mts +14 -9
- package/dist/node/lib/AreScene/AreScene.types.d.ts +14 -9
- package/dist/node/lib/AreSignals/AreSignal.entity.d.mts +6 -0
- package/dist/node/lib/AreSignals/AreSignal.entity.d.ts +6 -0
- package/dist/node/lib/AreSignals/AreSignal.entity.js +24 -0
- package/dist/node/lib/AreSignals/AreSignal.entity.js.map +1 -0
- package/dist/node/lib/AreSignals/AreSignal.entity.mjs +17 -0
- package/dist/node/lib/AreSignals/AreSignal.entity.mjs.map +1 -0
- package/dist/node/lib/AreSignals/AreSignals.component.d.mts +35 -0
- package/dist/node/lib/AreSignals/AreSignals.component.d.ts +35 -0
- package/dist/node/lib/AreSignals/AreSignals.component.js +90 -0
- package/dist/node/lib/AreSignals/AreSignals.component.js.map +1 -0
- package/dist/node/lib/AreSignals/AreSignals.component.mjs +80 -0
- package/dist/node/lib/AreSignals/AreSignals.component.mjs.map +1 -0
- package/dist/node/lib/AreSignals/AreSignals.constants.d.mts +2 -0
- package/dist/node/lib/AreSignals/AreSignals.constants.d.ts +2 -0
- package/dist/node/lib/AreSignals/AreSignals.constants.js +4 -0
- package/dist/node/lib/AreSignals/AreSignals.constants.js.map +1 -0
- package/dist/node/lib/AreSignals/AreSignals.constants.mjs +3 -0
- package/dist/node/lib/AreSignals/AreSignals.constants.mjs.map +1 -0
- package/dist/node/lib/AreSignals/AreSignals.context.d.mts +86 -0
- package/dist/node/lib/AreSignals/AreSignals.context.d.ts +86 -0
- package/dist/node/lib/AreSignals/AreSignals.context.js +153 -0
- package/dist/node/lib/AreSignals/AreSignals.context.js.map +1 -0
- package/dist/node/lib/AreSignals/AreSignals.context.mjs +146 -0
- package/dist/node/lib/AreSignals/AreSignals.context.mjs.map +1 -0
- package/dist/node/lib/AreSignals/AreSignals.meta.d.mts +15 -0
- package/dist/node/lib/AreSignals/AreSignals.meta.d.ts +15 -0
- package/dist/node/lib/AreSignals/AreSignals.meta.js +48 -0
- package/dist/node/lib/AreSignals/AreSignals.meta.js.map +1 -0
- package/dist/node/lib/AreSignals/AreSignals.meta.mjs +47 -0
- package/dist/node/lib/AreSignals/AreSignals.meta.mjs.map +1 -0
- package/dist/node/lib/AreSignals/AreSignals.types.d.mts +18 -0
- package/dist/node/lib/AreSignals/AreSignals.types.d.ts +18 -0
- package/dist/node/lib/AreSignals/AreSignals.types.js +4 -0
- package/dist/node/lib/AreSignals/AreSignals.types.js.map +1 -0
- package/dist/node/lib/AreSignals/AreSignals.types.mjs +3 -0
- package/dist/node/lib/AreSignals/AreSignals.types.mjs.map +1 -0
- package/dist/node/lib/AreSignals/entities/AreInit.signal.d.mts +8 -0
- package/dist/node/lib/AreSignals/entities/AreInit.signal.d.ts +8 -0
- package/dist/node/lib/AreSignals/entities/AreInit.signal.js +13 -0
- package/dist/node/lib/AreSignals/entities/AreInit.signal.js.map +1 -0
- package/dist/node/lib/AreSignals/entities/AreInit.signal.mjs +12 -0
- package/dist/node/lib/AreSignals/entities/AreInit.signal.mjs.map +1 -0
- package/dist/node/lib/AreSignals/entities/AreRoute.signal.d.mts +12 -0
- package/dist/node/lib/AreSignals/entities/AreRoute.signal.d.ts +12 -0
- package/dist/node/lib/AreSignals/entities/AreRoute.signal.js +25 -0
- package/dist/node/lib/AreSignals/entities/AreRoute.signal.js.map +1 -0
- package/dist/node/lib/AreSignals/entities/AreRoute.signal.mjs +24 -0
- package/dist/node/lib/AreSignals/entities/AreRoute.signal.mjs.map +1 -0
- package/dist/node/lib/AreStore/AreStore.constants.d.mts +5 -0
- package/dist/node/lib/AreStore/AreStore.constants.d.ts +5 -0
- package/dist/node/lib/AreStore/AreStore.constants.js +9 -0
- package/dist/node/lib/AreStore/AreStore.constants.js.map +1 -0
- package/dist/node/lib/AreStore/AreStore.constants.mjs +9 -0
- package/dist/node/lib/AreStore/AreStore.constants.mjs.map +1 -0
- package/dist/node/lib/AreStore/AreStore.context.d.mts +14 -10
- package/dist/node/lib/AreStore/AreStore.context.d.ts +14 -10
- package/dist/node/lib/AreStore/AreStore.context.js +162 -6
- package/dist/node/lib/AreStore/AreStore.context.js.map +1 -1
- package/dist/node/lib/AreStore/AreStore.context.mjs +162 -6
- package/dist/node/lib/AreStore/AreStore.context.mjs.map +1 -1
- package/dist/node/lib/AreStore/AreStore.types.d.mts +9 -0
- package/dist/node/lib/AreStore/AreStore.types.d.ts +9 -0
- package/dist/node/lib/AreStore/AreStore.types.js +4 -0
- package/dist/node/lib/AreStore/AreStore.types.js.map +1 -0
- package/dist/node/lib/AreStore/AreStore.types.mjs +3 -0
- package/dist/node/lib/AreStore/AreStore.types.mjs.map +1 -0
- package/dist/node/lib/AreSyntax/AreSyntax.constants.d.mts +2 -0
- package/dist/node/lib/AreSyntax/AreSyntax.constants.d.ts +2 -0
- package/dist/node/lib/AreSyntax/AreSyntax.constants.js +4 -0
- package/dist/node/lib/AreSyntax/AreSyntax.constants.js.map +1 -0
- package/dist/node/lib/AreSyntax/AreSyntax.constants.mjs +3 -0
- package/dist/node/lib/AreSyntax/AreSyntax.constants.mjs.map +1 -0
- package/dist/node/lib/AreSyntax/AreSyntax.context.d.mts +99 -51
- package/dist/node/lib/AreSyntax/AreSyntax.context.d.ts +99 -51
- package/dist/node/lib/AreSyntax/AreSyntax.context.js +305 -73
- package/dist/node/lib/AreSyntax/AreSyntax.context.js.map +1 -1
- package/dist/node/lib/AreSyntax/AreSyntax.context.mjs +306 -74
- package/dist/node/lib/AreSyntax/AreSyntax.context.mjs.map +1 -1
- package/dist/node/lib/AreSyntax/AreSyntax.types.d.mts +14 -132
- package/dist/node/lib/AreSyntax/AreSyntax.types.d.ts +14 -132
- package/dist/node/lib/AreSyntax/AreSyntax.types.js.map +1 -1
- package/dist/node/lib/AreSyntax/AreSyntax.types.mjs.map +1 -1
- package/dist/node/lib/AreTokenizer/AreTokenizer.component.d.mts +43 -0
- package/dist/node/lib/AreTokenizer/AreTokenizer.component.d.ts +43 -0
- package/dist/node/lib/AreTokenizer/AreTokenizer.component.js +238 -0
- package/dist/node/lib/AreTokenizer/AreTokenizer.component.js.map +1 -0
- package/dist/node/lib/AreTokenizer/AreTokenizer.component.mjs +228 -0
- package/dist/node/lib/AreTokenizer/AreTokenizer.component.mjs.map +1 -0
- package/dist/node/lib/AreTokenizer/AreTokenizer.error.d.mts +6 -0
- package/dist/node/lib/AreTokenizer/AreTokenizer.error.d.ts +6 -0
- package/dist/node/lib/AreTokenizer/AreTokenizer.error.js +10 -0
- package/dist/node/lib/AreTokenizer/AreTokenizer.error.js.map +1 -0
- package/dist/node/lib/AreTokenizer/AreTokenizer.error.mjs +9 -0
- package/dist/node/lib/AreTokenizer/AreTokenizer.error.mjs.map +1 -0
- package/dist/node/lib/AreTransformer/AreTransformer.component.d.mts +20 -0
- package/dist/node/lib/AreTransformer/AreTransformer.component.d.ts +20 -0
- package/dist/node/lib/AreTransformer/AreTransformer.component.js +48 -0
- package/dist/node/lib/AreTransformer/AreTransformer.component.js.map +1 -0
- package/dist/node/lib/AreTransformer/AreTransformer.component.mjs +38 -0
- package/dist/node/lib/AreTransformer/AreTransformer.component.mjs.map +1 -0
- package/dist/node/lib/AreTransformer/AreTransformer.constants.d.mts +2 -0
- package/dist/node/lib/AreTransformer/AreTransformer.constants.d.ts +2 -0
- package/dist/node/lib/AreTransformer/AreTransformer.constants.js +4 -0
- package/dist/node/lib/AreTransformer/AreTransformer.constants.js.map +1 -0
- package/dist/node/lib/AreTransformer/AreTransformer.constants.mjs +3 -0
- package/dist/node/lib/AreTransformer/AreTransformer.constants.mjs.map +1 -0
- package/dist/node/lib/AreTransformer/AreTransformer.types.d.mts +2 -0
- package/dist/node/lib/AreTransformer/AreTransformer.types.d.ts +2 -0
- package/dist/node/lib/AreTransformer/AreTransformer.types.js +4 -0
- package/dist/node/lib/AreTransformer/AreTransformer.types.js.map +1 -0
- package/dist/node/lib/AreTransformer/AreTransformer.types.mjs +3 -0
- package/dist/node/lib/AreTransformer/AreTransformer.types.mjs.map +1 -0
- package/dist/node/lib/AreWatcher/AreWatcher.component.d.mts +18 -0
- package/dist/node/lib/AreWatcher/AreWatcher.component.d.ts +18 -0
- package/dist/node/lib/AreWatcher/AreWatcher.component.js +78 -0
- package/dist/node/lib/AreWatcher/AreWatcher.component.js.map +1 -0
- package/dist/node/lib/AreWatcher/AreWatcher.component.mjs +71 -0
- package/dist/node/lib/AreWatcher/AreWatcher.component.mjs.map +1 -0
- package/dist/node/lib/AreWatcher/AreWatcher.constants.d.mts +2 -0
- package/dist/node/lib/AreWatcher/AreWatcher.constants.d.ts +2 -0
- package/dist/node/lib/AreWatcher/AreWatcher.constants.js +4 -0
- package/dist/node/lib/AreWatcher/AreWatcher.constants.js.map +1 -0
- package/dist/node/lib/AreWatcher/AreWatcher.constants.mjs +3 -0
- package/dist/node/lib/AreWatcher/AreWatcher.constants.mjs.map +1 -0
- package/dist/node/lib/AreWatcher/AreWatcher.context.d.mts +2 -0
- package/dist/node/lib/AreWatcher/AreWatcher.context.d.ts +2 -0
- package/dist/node/lib/AreWatcher/AreWatcher.context.js +4 -0
- package/dist/node/lib/AreWatcher/AreWatcher.context.js.map +1 -0
- package/dist/node/lib/AreWatcher/AreWatcher.context.mjs +3 -0
- package/dist/node/lib/AreWatcher/AreWatcher.context.mjs.map +1 -0
- package/dist/node/lib/AreWatcher/AreWatcher.types.d.mts +2 -0
- package/dist/node/lib/AreWatcher/AreWatcher.types.d.ts +2 -0
- package/dist/node/lib/AreWatcher/AreWatcher.types.js +4 -0
- package/dist/node/lib/AreWatcher/AreWatcher.types.js.map +1 -0
- package/dist/node/lib/AreWatcher/AreWatcher.types.mjs +3 -0
- package/dist/node/lib/AreWatcher/AreWatcher.types.mjs.map +1 -0
- package/jest.config.ts +30 -19
- package/package.json +10 -8
- package/src/index.ts +92 -15
- package/src/lib/AreAttribute/AreAttribute.constants.ts +22 -0
- package/src/lib/AreAttribute/AreAttribute.entity.ts +136 -0
- package/src/lib/AreAttribute/AreAttribute.types.ts +51 -0
- package/src/lib/AreCompiler/AreCompiler.component.ts +48 -980
- package/src/lib/AreComponent/Are.component.ts +102 -50
- package/src/lib/AreComponent/Are.constants.ts +59 -39
- package/src/lib/AreComponent/Are.context.ts +120 -8
- package/src/lib/AreComponent/Are.meta.ts +16 -0
- package/src/lib/AreComponent/Are.types.ts +30 -0
- package/src/lib/AreEngine/AreEngine.component.ts +317 -0
- package/src/lib/AreEngine/AreEngine.constants.ts +7 -0
- package/src/lib/AreEngine/AreEngine.error.ts +9 -0
- package/src/lib/AreEngine/AreEngine.types.ts +24 -0
- package/src/lib/AreEvent/AreEvent.context.ts +3 -27
- package/src/lib/AreInstruction/AreInstruction.constants.ts +23 -0
- package/src/lib/AreInstruction/AreInstruction.entity.ts +207 -0
- package/src/lib/AreInstruction/AreInstruction.error.ts +7 -0
- package/src/lib/AreInstruction/AreInstruction.types.ts +63 -0
- package/src/lib/AreInstruction/types/AreDeclaration.instruction.ts +77 -0
- package/src/lib/AreInstruction/types/AreMutation.instruction.ts +87 -0
- package/src/lib/AreInterpreter/AreInterpreter.component.ts +208 -0
- package/src/lib/AreInterpreter/AreInterpreter.error.ts +6 -0
- package/src/lib/AreLifecycle/AreLifecycle.component.ts +638 -0
- package/src/lib/AreLifecycle/AreLifecycle.constants.ts +0 -0
- package/src/lib/AreLifecycle/AreLifecycle.error.ts +9 -0
- package/src/lib/AreLifecycle/AreLifecycle.types.ts +0 -0
- package/src/lib/AreLoader/AreLoader.component.ts +89 -0
- package/src/lib/AreLoader/AreLoader.constants.ts +0 -0
- package/src/lib/AreLoader/AreLoader.error.ts +10 -0
- package/src/lib/AreLoader/AreLoader.types.ts +0 -0
- package/src/lib/AreNode/AreNode.constants.ts +111 -16
- package/src/lib/AreNode/AreNode.entity.ts +380 -91
- package/src/lib/AreNode/AreNode.types.ts +7 -11
- package/src/lib/AreScene/AreScene.constants.ts +7 -0
- package/src/lib/AreScene/AreScene.context.ts +305 -284
- package/src/lib/AreScene/AreScene.error.ts +9 -1
- package/src/lib/AreScene/AreScene.types.ts +21 -3
- package/src/lib/AreSignals/AreSignal.entity.ts +17 -0
- package/src/lib/AreSignals/AreSignals.component.ts +98 -0
- package/src/lib/AreSignals/AreSignals.constants.ts +0 -0
- package/src/lib/AreSignals/AreSignals.context.ts +196 -0
- package/src/lib/AreSignals/AreSignals.meta.ts +75 -0
- package/src/lib/AreSignals/AreSignals.types.ts +18 -0
- package/src/lib/AreSignals/entities/AreInit.signal.ts +7 -0
- package/src/lib/AreSignals/entities/AreRoute.signal.ts +27 -0
- package/src/lib/AreStore/AreStore.constants.ts +6 -0
- package/src/lib/AreStore/AreStore.context.ts +243 -14
- package/src/lib/AreStore/AreStore.types.ts +19 -0
- package/src/lib/AreSyntax/AreSyntax.constants.ts +0 -0
- package/src/lib/AreSyntax/AreSyntax.context.ts +352 -78
- package/src/lib/AreSyntax/AreSyntax.types.ts +75 -139
- package/src/lib/AreTokenizer/AreTokenizer.component.ts +289 -0
- package/src/lib/AreTokenizer/AreTokenizer.error.ts +7 -0
- package/src/lib/AreTransformer/AreTransformer.component.ts +46 -0
- package/src/lib/AreTransformer/AreTransformer.constants.ts +0 -0
- package/src/lib/AreTransformer/AreTransformer.types.ts +0 -0
- package/src/lib/AreWatcher/AreWatcher.component.ts +84 -0
- package/src/lib/AreWatcher/AreWatcher.constants.ts +0 -0
- package/src/lib/AreWatcher/AreWatcher.context.ts +0 -0
- package/src/lib/AreWatcher/AreWatcher.types.ts +0 -0
- package/tests/AreInstruction.test.ts +73 -0
- package/tests/AreScene.test.ts +62 -0
- package/tests/AreSignals.test.ts +55 -0
- package/tests/AreTokenizer.test.ts +254 -0
- package/tests/jest.setup.ts +30 -0
- package/tsconfig.json +19 -19
- package/tsup.config.ts +6 -0
- package/dist/node/engines/html/AreHTML.compiler.d.mts +0 -114
- package/dist/node/engines/html/AreHTML.compiler.d.ts +0 -114
- package/dist/node/engines/html/AreHTML.compiler.js +0 -408
- package/dist/node/engines/html/AreHTML.compiler.js.map +0 -1
- package/dist/node/engines/html/AreHTML.compiler.mjs +0 -398
- package/dist/node/engines/html/AreHTML.compiler.mjs.map +0 -1
- package/dist/node/engines/html/AreHTML.engine.d.mts +0 -36
- package/dist/node/engines/html/AreHTML.engine.d.ts +0 -36
- package/dist/node/engines/html/AreHTML.engine.js +0 -122
- package/dist/node/engines/html/AreHTML.engine.js.map +0 -1
- package/dist/node/engines/html/AreHTML.engine.mjs +0 -112
- package/dist/node/engines/html/AreHTML.engine.mjs.map +0 -1
- package/dist/node/engines/html/index.d.mts +0 -26
- package/dist/node/engines/html/index.d.ts +0 -26
- package/dist/node/engines/html/index.js +0 -17
- package/dist/node/engines/html/index.js.map +0 -1
- package/dist/node/engines/html/index.mjs +0 -5
- package/dist/node/engines/html/index.mjs.map +0 -1
- package/dist/node/engines/json/AreJSON.compiler.d.mts +0 -21
- package/dist/node/engines/json/AreJSON.compiler.d.ts +0 -21
- package/dist/node/engines/json/AreJSON.compiler.js +0 -24
- package/dist/node/engines/json/AreJSON.compiler.js.map +0 -1
- package/dist/node/engines/json/AreJSON.compiler.mjs +0 -17
- package/dist/node/engines/json/AreJSON.compiler.mjs.map +0 -1
- package/dist/node/index-BD-6iOuR.d.ts +0 -238
- package/dist/node/index-DMXWCL7R.d.mts +0 -238
- package/dist/node/lib/AreApp/AreApp.container.d.mts +0 -22
- package/dist/node/lib/AreApp/AreApp.container.d.ts +0 -22
- package/dist/node/lib/AreApp/AreApp.container.js +0 -60
- package/dist/node/lib/AreApp/AreApp.container.js.map +0 -1
- package/dist/node/lib/AreApp/AreApp.container.mjs +0 -48
- package/dist/node/lib/AreApp/AreApp.container.mjs.map +0 -1
- package/dist/node/lib/AreApp/AreApp.env.js +0 -4
- package/dist/node/lib/AreApp/AreApp.env.js.map +0 -1
- package/dist/node/lib/AreApp/AreApp.env.mjs +0 -3
- package/dist/node/lib/AreApp/AreApp.env.mjs.map +0 -1
- package/dist/node/lib/AreApp/AreApp.error.d.mts +0 -6
- package/dist/node/lib/AreApp/AreApp.error.d.ts +0 -6
- package/dist/node/lib/AreApp/AreApp.error.js +0 -10
- package/dist/node/lib/AreApp/AreApp.error.js.map +0 -1
- package/dist/node/lib/AreApp/AreApp.error.mjs +0 -9
- package/dist/node/lib/AreApp/AreApp.error.mjs.map +0 -1
- package/dist/node/lib/AreApp/AreApp.types.js +0 -4
- package/dist/node/lib/AreApp/AreApp.types.js.map +0 -1
- package/dist/node/lib/AreApp/AreApp.types.mjs +0 -3
- package/dist/node/lib/AreApp/AreApp.types.mjs.map +0 -1
- package/dist/node/lib/AreApp/index.d.mts +0 -17
- package/dist/node/lib/AreApp/index.d.ts +0 -17
- package/dist/node/lib/AreApp/index.js +0 -24
- package/dist/node/lib/AreApp/index.js.map +0 -1
- package/dist/node/lib/AreApp/index.mjs +0 -6
- package/dist/node/lib/AreApp/index.mjs.map +0 -1
- package/dist/node/lib/AreCompiler/index.d.mts +0 -17
- package/dist/node/lib/AreCompiler/index.d.ts +0 -17
- package/dist/node/lib/AreCompiler/index.js +0 -24
- package/dist/node/lib/AreCompiler/index.js.map +0 -1
- package/dist/node/lib/AreCompiler/index.mjs +0 -6
- package/dist/node/lib/AreCompiler/index.mjs.map +0 -1
- package/dist/node/lib/AreComponent/index.d.mts +0 -11
- package/dist/node/lib/AreComponent/index.d.ts +0 -11
- package/dist/node/lib/AreComponent/index.js +0 -31
- package/dist/node/lib/AreComponent/index.js.map +0 -1
- package/dist/node/lib/AreComponent/index.mjs +0 -7
- package/dist/node/lib/AreComponent/index.mjs.map +0 -1
- package/dist/node/lib/AreEvent/index.d.mts +0 -8
- package/dist/node/lib/AreEvent/index.d.ts +0 -8
- package/dist/node/lib/AreEvent/index.js +0 -19
- package/dist/node/lib/AreEvent/index.js.map +0 -1
- package/dist/node/lib/AreEvent/index.mjs +0 -5
- package/dist/node/lib/AreEvent/index.mjs.map +0 -1
- package/dist/node/lib/AreIndex/AreIndex.context.d.mts +0 -8
- package/dist/node/lib/AreIndex/AreIndex.context.d.ts +0 -8
- package/dist/node/lib/AreIndex/AreIndex.context.js +0 -142
- package/dist/node/lib/AreIndex/AreIndex.context.js.map +0 -1
- package/dist/node/lib/AreIndex/AreIndex.context.mjs +0 -141
- package/dist/node/lib/AreIndex/AreIndex.context.mjs.map +0 -1
- package/dist/node/lib/AreIndex/index.d.mts +0 -8
- package/dist/node/lib/AreIndex/index.d.ts +0 -8
- package/dist/node/lib/AreIndex/index.js +0 -12
- package/dist/node/lib/AreIndex/index.js.map +0 -1
- package/dist/node/lib/AreIndex/index.mjs +0 -4
- package/dist/node/lib/AreIndex/index.mjs.map +0 -1
- package/dist/node/lib/AreNode/index.d.mts +0 -9
- package/dist/node/lib/AreNode/index.d.ts +0 -9
- package/dist/node/lib/AreNode/index.js +0 -26
- package/dist/node/lib/AreNode/index.js.map +0 -1
- package/dist/node/lib/AreNode/index.mjs +0 -6
- package/dist/node/lib/AreNode/index.mjs.map +0 -1
- package/dist/node/lib/AreProps/AreProps.context.d.mts +0 -9
- package/dist/node/lib/AreProps/AreProps.context.d.ts +0 -9
- package/dist/node/lib/AreProps/AreProps.context.js +0 -32
- package/dist/node/lib/AreProps/AreProps.context.js.map +0 -1
- package/dist/node/lib/AreProps/AreProps.context.mjs +0 -25
- package/dist/node/lib/AreProps/AreProps.context.mjs.map +0 -1
- package/dist/node/lib/AreProps/index.d.mts +0 -3
- package/dist/node/lib/AreProps/index.d.ts +0 -3
- package/dist/node/lib/AreProps/index.js +0 -12
- package/dist/node/lib/AreProps/index.js.map +0 -1
- package/dist/node/lib/AreProps/index.mjs +0 -4
- package/dist/node/lib/AreProps/index.mjs.map +0 -1
- package/dist/node/lib/AreRoot/AreRoot.component.d.mts +0 -18
- package/dist/node/lib/AreRoot/AreRoot.component.d.ts +0 -18
- package/dist/node/lib/AreRoot/AreRoot.component.js +0 -53
- package/dist/node/lib/AreRoot/AreRoot.component.js.map +0 -1
- package/dist/node/lib/AreRoot/AreRoot.component.mjs +0 -41
- package/dist/node/lib/AreRoot/AreRoot.component.mjs.map +0 -1
- package/dist/node/lib/AreRoot/index.d.mts +0 -11
- package/dist/node/lib/AreRoot/index.d.ts +0 -11
- package/dist/node/lib/AreRoot/index.js +0 -12
- package/dist/node/lib/AreRoot/index.js.map +0 -1
- package/dist/node/lib/AreRoot/index.mjs +0 -4
- package/dist/node/lib/AreRoot/index.mjs.map +0 -1
- package/dist/node/lib/AreRouter/AreRouter.componeent.d.mts +0 -17
- package/dist/node/lib/AreRouter/AreRouter.componeent.d.ts +0 -17
- package/dist/node/lib/AreRouter/AreRouter.componeent.js +0 -37
- package/dist/node/lib/AreRouter/AreRouter.componeent.js.map +0 -1
- package/dist/node/lib/AreRouter/AreRouter.componeent.mjs +0 -25
- package/dist/node/lib/AreRouter/AreRouter.componeent.mjs.map +0 -1
- package/dist/node/lib/AreRouter/index.d.mts +0 -12
- package/dist/node/lib/AreRouter/index.d.ts +0 -12
- package/dist/node/lib/AreRouter/index.js +0 -12
- package/dist/node/lib/AreRouter/index.js.map +0 -1
- package/dist/node/lib/AreRouter/index.mjs +0 -4
- package/dist/node/lib/AreRouter/index.mjs.map +0 -1
- package/dist/node/lib/AreScene/index.d.mts +0 -9
- package/dist/node/lib/AreScene/index.d.ts +0 -9
- package/dist/node/lib/AreScene/index.js +0 -24
- package/dist/node/lib/AreScene/index.js.map +0 -1
- package/dist/node/lib/AreScene/index.mjs +0 -6
- package/dist/node/lib/AreScene/index.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.constants.d.mts +0 -7
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.constants.d.ts +0 -7
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.constants.js +0 -12
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.constants.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.constants.mjs +0 -12
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.constants.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.entity.d.mts +0 -8
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.entity.d.ts +0 -8
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.entity.js +0 -95
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.entity.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.entity.mjs +0 -94
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.entity.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.types.d.mts +0 -8
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.types.d.ts +0 -8
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.types.js +0 -4
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.types.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.types.mjs +0 -3
- package/dist/node/lib/AreSceneInstruction/AreSceneInstruction.types.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/index.d.mts +0 -19
- package/dist/node/lib/AreSceneInstruction/index.d.ts +0 -19
- package/dist/node/lib/AreSceneInstruction/index.js +0 -33
- package/dist/node/lib/AreSceneInstruction/index.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/index.mjs +0 -7
- package/dist/node/lib/AreSceneInstruction/index.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/AddAttribute.instruction.d.mts +0 -19
- package/dist/node/lib/AreSceneInstruction/types/AddAttribute.instruction.d.ts +0 -19
- package/dist/node/lib/AreSceneInstruction/types/AddAttribute.instruction.js +0 -27
- package/dist/node/lib/AreSceneInstruction/types/AddAttribute.instruction.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/AddAttribute.instruction.mjs +0 -26
- package/dist/node/lib/AreSceneInstruction/types/AddAttribute.instruction.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/AddDirective.instruction.d.mts +0 -20
- package/dist/node/lib/AreSceneInstruction/types/AddDirective.instruction.d.ts +0 -20
- package/dist/node/lib/AreSceneInstruction/types/AddDirective.instruction.js +0 -27
- package/dist/node/lib/AreSceneInstruction/types/AddDirective.instruction.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/AddDirective.instruction.mjs +0 -26
- package/dist/node/lib/AreSceneInstruction/types/AddDirective.instruction.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/AddStyle.instruction.d.mts +0 -17
- package/dist/node/lib/AreSceneInstruction/types/AddStyle.instruction.d.ts +0 -17
- package/dist/node/lib/AreSceneInstruction/types/AddStyle.instruction.js +0 -23
- package/dist/node/lib/AreSceneInstruction/types/AddStyle.instruction.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/AddStyle.instruction.mjs +0 -22
- package/dist/node/lib/AreSceneInstruction/types/AddStyle.instruction.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/AddStyleProperty.instruction.d.mts +0 -19
- package/dist/node/lib/AreSceneInstruction/types/AddStyleProperty.instruction.d.ts +0 -19
- package/dist/node/lib/AreSceneInstruction/types/AddStyleProperty.instruction.js +0 -27
- package/dist/node/lib/AreSceneInstruction/types/AddStyleProperty.instruction.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/AddStyleProperty.instruction.mjs +0 -26
- package/dist/node/lib/AreSceneInstruction/types/AddStyleProperty.instruction.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/AttachListener.instruction.d.mts +0 -23
- package/dist/node/lib/AreSceneInstruction/types/AttachListener.instruction.d.ts +0 -23
- package/dist/node/lib/AreSceneInstruction/types/AttachListener.instruction.js +0 -41
- package/dist/node/lib/AreSceneInstruction/types/AttachListener.instruction.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/AttachListener.instruction.mjs +0 -40
- package/dist/node/lib/AreSceneInstruction/types/AttachListener.instruction.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/AttachRootNode.instruction.d.mts +0 -15
- package/dist/node/lib/AreSceneInstruction/types/AttachRootNode.instruction.d.ts +0 -15
- package/dist/node/lib/AreSceneInstruction/types/AttachRootNode.instruction.js +0 -21
- package/dist/node/lib/AreSceneInstruction/types/AttachRootNode.instruction.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/AttachRootNode.instruction.mjs +0 -20
- package/dist/node/lib/AreSceneInstruction/types/AttachRootNode.instruction.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/MountNode.instruction.d.mts +0 -17
- package/dist/node/lib/AreSceneInstruction/types/MountNode.instruction.d.ts +0 -17
- package/dist/node/lib/AreSceneInstruction/types/MountNode.instruction.js +0 -23
- package/dist/node/lib/AreSceneInstruction/types/MountNode.instruction.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/MountNode.instruction.mjs +0 -22
- package/dist/node/lib/AreSceneInstruction/types/MountNode.instruction.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/ReplaceInterpolation.instruction.d.mts +0 -23
- package/dist/node/lib/AreSceneInstruction/types/ReplaceInterpolation.instruction.d.ts +0 -23
- package/dist/node/lib/AreSceneInstruction/types/ReplaceInterpolation.instruction.js +0 -34
- package/dist/node/lib/AreSceneInstruction/types/ReplaceInterpolation.instruction.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/ReplaceInterpolation.instruction.mjs +0 -33
- package/dist/node/lib/AreSceneInstruction/types/ReplaceInterpolation.instruction.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/UnmountNode.instruction.d.mts +0 -16
- package/dist/node/lib/AreSceneInstruction/types/UnmountNode.instruction.d.ts +0 -16
- package/dist/node/lib/AreSceneInstruction/types/UnmountNode.instruction.js +0 -20
- package/dist/node/lib/AreSceneInstruction/types/UnmountNode.instruction.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/UnmountNode.instruction.mjs +0 -19
- package/dist/node/lib/AreSceneInstruction/types/UnmountNode.instruction.mjs.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/index.d.mts +0 -18
- package/dist/node/lib/AreSceneInstruction/types/index.d.ts +0 -18
- package/dist/node/lib/AreSceneInstruction/types/index.js +0 -52
- package/dist/node/lib/AreSceneInstruction/types/index.js.map +0 -1
- package/dist/node/lib/AreSceneInstruction/types/index.mjs +0 -12
- package/dist/node/lib/AreSceneInstruction/types/index.mjs.map +0 -1
- package/dist/node/lib/AreSlot/AreSlot.component.d.mts +0 -8
- package/dist/node/lib/AreSlot/AreSlot.component.d.ts +0 -8
- package/dist/node/lib/AreSlot/AreSlot.component.js +0 -37
- package/dist/node/lib/AreSlot/AreSlot.component.js.map +0 -1
- package/dist/node/lib/AreSlot/AreSlot.component.mjs +0 -36
- package/dist/node/lib/AreSlot/AreSlot.component.mjs.map +0 -1
- package/dist/node/lib/AreStore/index.d.mts +0 -3
- package/dist/node/lib/AreStore/index.d.ts +0 -3
- package/dist/node/lib/AreStore/index.js +0 -12
- package/dist/node/lib/AreStore/index.js.map +0 -1
- package/dist/node/lib/AreStore/index.mjs +0 -4
- package/dist/node/lib/AreStore/index.mjs.map +0 -1
- package/dist/node/lib/AreSyntax/AreSyntax.component.d.mts +0 -89
- package/dist/node/lib/AreSyntax/AreSyntax.component.d.ts +0 -89
- package/dist/node/lib/AreSyntax/AreSyntax.component.js +0 -241
- package/dist/node/lib/AreSyntax/AreSyntax.component.js.map +0 -1
- package/dist/node/lib/AreSyntax/AreSyntax.component.mjs +0 -232
- package/dist/node/lib/AreSyntax/AreSyntax.component.mjs.map +0 -1
- package/dist/node/lib/AreSyntax/index.d.mts +0 -12
- package/dist/node/lib/AreSyntax/index.d.ts +0 -12
- package/dist/node/lib/AreSyntax/index.js +0 -29
- package/dist/node/lib/AreSyntax/index.js.map +0 -1
- package/dist/node/lib/AreSyntax/index.mjs +0 -7
- package/dist/node/lib/AreSyntax/index.mjs.map +0 -1
- package/dist/node/signals/AreInit.signal.d.mts +0 -7
- package/dist/node/signals/AreInit.signal.d.ts +0 -7
- package/dist/node/signals/AreInit.signal.js +0 -13
- package/dist/node/signals/AreInit.signal.js.map +0 -1
- package/dist/node/signals/AreInit.signal.mjs +0 -12
- package/dist/node/signals/AreInit.signal.mjs.map +0 -1
- package/dist/node/signals/AreRoute.signal.d.mts +0 -12
- package/dist/node/signals/AreRoute.signal.d.ts +0 -12
- package/dist/node/signals/AreRoute.signal.js +0 -24
- package/dist/node/signals/AreRoute.signal.js.map +0 -1
- package/dist/node/signals/AreRoute.signal.mjs +0 -23
- package/dist/node/signals/AreRoute.signal.mjs.map +0 -1
- package/dist/node/signals/index.d.mts +0 -4
- package/dist/node/signals/index.d.ts +0 -4
- package/dist/node/signals/index.js +0 -17
- package/dist/node/signals/index.js.map +0 -1
- package/dist/node/signals/index.mjs +0 -5
- package/dist/node/signals/index.mjs.map +0 -1
- package/examples/jumpstart/concept.ts +0 -60
- package/examples/jumpstart/containers/UI.container.ts +0 -172
- package/examples/jumpstart/dist/index.html +0 -22
- package/examples/jumpstart/dist/mls3rrlq-lofs95.js +0 -129
- package/examples/jumpstart/dist/static/css/main.css +0 -40
- package/examples/jumpstart/dist/static/img/test.png +0 -0
- package/examples/jumpstart/public/index.html +0 -22
- package/examples/jumpstart/public/static/css/main.css +0 -40
- package/examples/jumpstart/public/static/img/test.png +0 -0
- package/examples/jumpstart/src/components/A-Btn.component.ts +0 -124
- package/examples/jumpstart/src/components/A-Input.component.ts +0 -78
- package/examples/jumpstart/src/components/A-Navigation.component.ts +0 -167
- package/examples/jumpstart/src/components/SignInComponent.component.ts +0 -127
- package/examples/jumpstart/src/concept.ts +0 -92
- package/src/engines/html/AreHTML.compiler.ts +0 -657
- package/src/engines/html/AreHTML.engine.ts +0 -62
- package/src/engines/html/index.ts +0 -2
- package/src/engines/json/AreJSON.compiler.ts +0 -13
- package/src/lib/AreApp/AreApp.container.ts +0 -77
- package/src/lib/AreApp/AreApp.error.ts +0 -7
- package/src/lib/AreApp/index.ts +0 -4
- package/src/lib/AreCompiler/index.ts +0 -3
- package/src/lib/AreComponent/index.ts +0 -4
- package/src/lib/AreEvent/index.ts +0 -2
- package/src/lib/AreIndex/AreIndex.context.ts +0 -174
- package/src/lib/AreIndex/index.ts +0 -1
- package/src/lib/AreNode/index.ts +0 -4
- package/src/lib/AreProps/AreProps.context.ts +0 -26
- package/src/lib/AreProps/index.ts +0 -1
- package/src/lib/AreRoot/AreRoot.component.ts +0 -54
- package/src/lib/AreRoot/index.ts +0 -1
- package/src/lib/AreRouter/AreRouter.componeent.ts +0 -24
- package/src/lib/AreRouter/index.ts +0 -1
- package/src/lib/AreScene/index.ts +0 -3
- package/src/lib/AreSceneInstruction/AreSceneInstruction.constants.ts +0 -7
- package/src/lib/AreSceneInstruction/AreSceneInstruction.entity.ts +0 -156
- package/src/lib/AreSceneInstruction/AreSceneInstruction.types.ts +0 -8
- package/src/lib/AreSceneInstruction/index.ts +0 -4
- package/src/lib/AreSceneInstruction/types/AddAttribute.instruction.ts +0 -34
- package/src/lib/AreSceneInstruction/types/AddDirective.instruction.ts +0 -36
- package/src/lib/AreSceneInstruction/types/AddStyle.instruction.ts +0 -26
- package/src/lib/AreSceneInstruction/types/AddStyleProperty.instruction.ts +0 -32
- package/src/lib/AreSceneInstruction/types/AttachListener.instruction.ts +0 -57
- package/src/lib/AreSceneInstruction/types/AttachRootNode.instruction.ts +0 -23
- package/src/lib/AreSceneInstruction/types/MountNode.instruction.ts +0 -29
- package/src/lib/AreSceneInstruction/types/ReplaceInterpolation.instruction.ts +0 -45
- package/src/lib/AreSceneInstruction/types/UnmountNode.instruction.ts +0 -22
- package/src/lib/AreSceneInstruction/types/index.ts +0 -10
- package/src/lib/AreSlot/AreSlot.component.ts +0 -48
- package/src/lib/AreStore/index.ts +0 -1
- package/src/lib/AreSyntax/AreSyntax.component.ts +0 -378
- package/src/lib/AreSyntax/index.ts +0 -4
- package/src/signals/AreInit.signal.ts +0 -7
- package/src/signals/AreRoute.signal.ts +0 -25
- package/src/signals/index.ts +0 -2
- package/tests/A-HttpChannel.test.ts +0 -204
- package/tests/A-HttpServerError.test.ts +0 -204
- package/tests/A-Request.test.ts +0 -742
- package/tests/A-Service.test.ts +0 -18
- /package/dist/node/lib/{AreApp/AreApp.env.d.mts → AreInterpreter/AreInterpreter.constants.d.mts} +0 -0
- /package/dist/node/lib/{AreApp/AreApp.env.d.ts → AreInterpreter/AreInterpreter.constants.d.ts} +0 -0
- /package/dist/node/lib/{AreApp/AreApp.types.d.mts → AreInterpreter/AreInterpreter.types.d.mts} +0 -0
- /package/dist/node/lib/{AreApp/AreApp.types.d.ts → AreInterpreter/AreInterpreter.types.d.ts} +0 -0
- /package/src/lib/{AreApp/AreApp.env.ts → AreInterpreter/AreInterpreter.constants.ts} +0 -0
- /package/src/lib/{AreApp/AreApp.types.ts → AreInterpreter/AreInterpreter.types.ts} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '@adaas/a-concept';
|
|
2
|
+
export { d as AreInstructionNewProps, e as AreInstructionSerialized } from '../../Are.context-D7w32H1G.mjs';
|
|
3
|
+
import '@adaas/a-utils/a-signal';
|
|
4
|
+
import '../AreEvent/AreEvent.context.mjs';
|
|
5
|
+
import '@adaas/a-utils/a-execution';
|
|
6
|
+
import '../AreStore/AreStore.types.mjs';
|
|
7
|
+
import '../AreStore/AreStore.constants.mjs';
|
|
8
|
+
import '../AreScene/AreScene.constants.mjs';
|
|
9
|
+
import '../AreAttribute/AreAttribute.types.mjs';
|
|
10
|
+
import '../AreAttribute/AreAttribute.constants.mjs';
|
|
11
|
+
import '../AreComponent/Are.component.mjs';
|
|
12
|
+
import '../AreComponent/Are.types.mjs';
|
|
13
|
+
import '../AreComponent/Are.constants.mjs';
|
|
14
|
+
import '../AreNode/AreNode.constants.mjs';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '@adaas/a-concept';
|
|
2
|
+
export { d as AreInstructionNewProps, e as AreInstructionSerialized } from '../../Are.context-9Ija_fdC.js';
|
|
3
|
+
import '@adaas/a-utils/a-signal';
|
|
4
|
+
import '../AreEvent/AreEvent.context.js';
|
|
5
|
+
import '@adaas/a-utils/a-execution';
|
|
6
|
+
import '../AreStore/AreStore.types.js';
|
|
7
|
+
import '../AreStore/AreStore.constants.js';
|
|
8
|
+
import '../AreScene/AreScene.constants.js';
|
|
9
|
+
import '../AreAttribute/AreAttribute.types.js';
|
|
10
|
+
import '../AreAttribute/AreAttribute.constants.js';
|
|
11
|
+
import '../AreComponent/Are.component.js';
|
|
12
|
+
import '../AreComponent/Are.types.js';
|
|
13
|
+
import '../AreComponent/Are.constants.js';
|
|
14
|
+
import '../AreNode/AreNode.constants.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"AreInstruction.types.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"AreInstruction.types.mjs"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { b as AreDeclaration } from '../../../Are.context-D7w32H1G.mjs';
|
|
2
|
+
import '@adaas/a-concept';
|
|
3
|
+
import '@adaas/a-utils/a-signal';
|
|
4
|
+
import '../../AreEvent/AreEvent.context.mjs';
|
|
5
|
+
import '@adaas/a-utils/a-execution';
|
|
6
|
+
import '../../AreStore/AreStore.types.mjs';
|
|
7
|
+
import '../../AreStore/AreStore.constants.mjs';
|
|
8
|
+
import '../../AreScene/AreScene.constants.mjs';
|
|
9
|
+
import '../../AreAttribute/AreAttribute.types.mjs';
|
|
10
|
+
import '../../AreAttribute/AreAttribute.constants.mjs';
|
|
11
|
+
import '../../AreComponent/Are.component.mjs';
|
|
12
|
+
import '../../AreComponent/Are.types.mjs';
|
|
13
|
+
import '../../AreComponent/Are.constants.mjs';
|
|
14
|
+
import '../../AreNode/AreNode.constants.mjs';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { b as AreDeclaration } from '../../../Are.context-9Ija_fdC.js';
|
|
2
|
+
import '@adaas/a-concept';
|
|
3
|
+
import '@adaas/a-utils/a-signal';
|
|
4
|
+
import '../../AreEvent/AreEvent.context.js';
|
|
5
|
+
import '@adaas/a-utils/a-execution';
|
|
6
|
+
import '../../AreStore/AreStore.types.js';
|
|
7
|
+
import '../../AreStore/AreStore.constants.js';
|
|
8
|
+
import '../../AreScene/AreScene.constants.js';
|
|
9
|
+
import '../../AreAttribute/AreAttribute.types.js';
|
|
10
|
+
import '../../AreAttribute/AreAttribute.constants.js';
|
|
11
|
+
import '../../AreComponent/Are.component.js';
|
|
12
|
+
import '../../AreComponent/Are.types.js';
|
|
13
|
+
import '../../AreComponent/Are.constants.js';
|
|
14
|
+
import '../../AreNode/AreNode.constants.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var aFrame = require('@adaas/a-frame');
|
|
4
|
+
var AreInstruction_entity = require('@adaas/are/instruction/AreInstruction.entity');
|
|
5
|
+
var AreInstruction_constants = require('@adaas/are/instruction/AreInstruction.constants');
|
|
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.AreDeclaration = class AreDeclaration extends AreInstruction_entity.AreInstruction {
|
|
16
|
+
constructor(param1, param2, param3) {
|
|
17
|
+
if (typeof param1 === "object" && "aseid" in param1)
|
|
18
|
+
super(param1);
|
|
19
|
+
else
|
|
20
|
+
super({
|
|
21
|
+
name: param1 || AreInstruction_constants.AreInstructionDefaultNames.Default,
|
|
22
|
+
parent: param2 instanceof exports.AreDeclaration ? param2 : void 0,
|
|
23
|
+
group: param2 instanceof exports.AreDeclaration ? param2.group : void 0,
|
|
24
|
+
payload: param2 instanceof exports.AreDeclaration ? param3 || {} : param2 || {}
|
|
25
|
+
// id: [param1, A_IdentityHelper.generateTimeId(), param2 instanceof AreDeclaration ? (param3 || {}) as T : (param2 || {}) as T]
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.AreDeclaration = __decorateClass([
|
|
30
|
+
aFrame.A_Frame.Entity({
|
|
31
|
+
namespace: "A-ARE",
|
|
32
|
+
name: "AreDeclaration",
|
|
33
|
+
description: "AreDeclaration is a top-level rendering instruction that represents the creation of a new element in the ARE scene. It carries the target tag name and parent reference needed by the Host to construct the DOM element, and can be applied or reverted to manage element creation and removal deterministically."
|
|
34
|
+
})
|
|
35
|
+
], exports.AreDeclaration);
|
|
36
|
+
//# sourceMappingURL=AreDeclaration.instruction.js.map
|
|
37
|
+
//# sourceMappingURL=AreDeclaration.instruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/AreInstruction/types/AreDeclaration.instruction.ts"],"names":["AreDeclaration","AreInstruction","AreInstructionDefaultNames","A_Frame"],"mappings":";;;;;;;;;;;;;;AAeaA,sBAAA,GAAN,6BAGGC,oCAAA,CAAqB;AAAA,EAgC3B,WAAA,CAII,MAAA,EAIA,MAAA,EAIA,MAAA,EACF;AACE,IAAA,IAAI,OAAO,MAAA,KAAW,QAAA,IAAY,OAAA,IAAW,MAAA;AACzC,MAAA,KAAA,CAAM,MAAM,CAAA;AAAA;AAEZ,MAAA,KAAA,CAAM;AAAA,QACF,IAAA,EAAM,UAAUC,mDAAA,CAA2B,OAAA;AAAA,QAC3C,MAAA,EAAQ,MAAA,YAAkBF,sBAAA,GAAiB,MAAA,GAAS,MAAA;AAAA,QACpD,KAAA,EAAO,MAAA,YAAkBA,sBAAA,GAAiB,MAAA,CAAO,KAAA,GAAQ,MAAA;AAAA,QACzD,SAAS,MAAA,YAAkBA,sBAAA,GAAkB,UAAU,EAAC,GAAW,UAAU;AAAC;AAAA,OAEpD,CAAA;AAAA,EACtC;AAEJ;AA7DaA,sBAAA,GAAN,eAAA,CAAA;AAAA,EALNG,eAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,OAAA;AAAA,IACX,IAAA,EAAM,gBAAA;AAAA,IACN,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYH,sBAAA,CAAA","file":"AreDeclaration.instruction.js","sourcesContent":["import { A_IdentityHelper } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame\";\nimport { AreInstruction } from \"@adaas/are/instruction/AreInstruction.entity\";\nimport { AreInstructionNewProps, AreInstructionSerialized } from \"@adaas/are/instruction/AreInstruction.types\";\nimport { AreInstructionDefaultNames } from \"@adaas/are/instruction/AreInstruction.constants\";\n\n\n/**\n * This is a top-level instruction that represents the creation of a new element in the scene. It contains all the necessary information to create a new element, such as its tag and parent. This instruction can be applied to the scene to create a new element and can be reverted to remove the created element.\n */\n@A_Frame.Entity({\n namespace: 'A-ARE',\n name: 'AreDeclaration',\n description: 'AreDeclaration is a top-level rendering instruction that represents the creation of a new element in the ARE scene. It carries the target tag name and parent reference needed by the Host to construct the DOM element, and can be applied or reverted to manage element creation and removal deterministically.'\n})\nexport class AreDeclaration<\n T extends Record<string, any> = Record<string, any>,\n S extends AreInstructionSerialized<T> = AreInstructionSerialized<T>\n> extends AreInstruction<T, S> {\n\n constructor(\n /**\n * Serialized form of the instruction, used for deserialization and reconstruction of the instruction instance. This allows for the instruction to be easily stored, transmitted, and recreated in different contexts or at different times, while maintaining all the necessary information and relationships intact.\n */\n serialized: AreInstructionSerialized,\n )\n constructor(\n /**\n * The name of the operation to be performed in Host. For example, for CreateElement instruction, the name can be \"createElement\", so the Host can have a method with the same name to handle this instruction.\n */\n name: string,\n /**\n * In case this is a child instruction that is related to a declaration instruction, we can pass the parent declaration instruction to establish the relationship between them. This allows us to manage related instructions together and ensure that they are executed in the correct order in the scene.\n */\n parent: AreDeclaration,\n /**\n * A set of additional parameters that may be needed for the rendering purpose. For example, for CreateElement instruction, the payload can contain the tag name and parent information, so the Host can use this information to create the element in the correct place in the scene.\n */\n payload: T,\n )\n constructor(\n /**\n * The name of the operation to be performed in Host. For example, for CreateElement instruction, the name can be \"createElement\", so the Host can have a method with the same name to handle this instruction.\n */\n name?: string,\n /**\n * A set of additional parameters that may be needed for the rendering purpose. For example, for CreateElement instruction, the payload can contain the tag name and parent information, so the Host can use this information to create the element in the correct place in the scene.\n */\n payload?: T,\n )\n constructor(\n /**\n * The name of the operation to be performed in Host. For example, for CreateElement instruction, the name can be \"createElement\", so the Host can have a method with the same name to handle this instruction.\n */\n param1?: string | S,\n /**\n * A set of additional parameters that may be needed for the rendering purpose. For example, for CreateElement instruction, the payload can contain the tag name and parent information, so the Host can use this information to create the element in the correct place in the scene.\n */\n param2?: T | AreDeclaration,\n /**\n * In case this is a child instruction that is related to a declaration instruction, we can pass the parent declaration instruction to establish the relationship between them. This allows us to manage related instructions together and ensure that they are executed in the correct order in the scene.\n */\n param3?: AreDeclaration | T,\n ) {\n if (typeof param1 === 'object' && 'aseid' in param1)\n super(param1);\n else\n super({\n name: param1 || AreInstructionDefaultNames.Default,\n parent: param2 instanceof AreDeclaration ? param2 : undefined,\n group: param2 instanceof AreDeclaration ? param2.group : undefined,\n payload: param2 instanceof AreDeclaration ? (param3 || {}) as T : (param2 || {}) as T,\n // id: [param1, A_IdentityHelper.generateTimeId(), param2 instanceof AreDeclaration ? (param3 || {}) as T : (param2 || {}) as T]\n } as AreInstructionNewProps<T>);\n }\n\n}"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { __decorateClass } from '../../../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { A_Frame } from '@adaas/a-frame';
|
|
3
|
+
import { AreInstruction } from '@adaas/are/instruction/AreInstruction.entity';
|
|
4
|
+
import { AreInstructionDefaultNames } from '@adaas/are/instruction/AreInstruction.constants';
|
|
5
|
+
|
|
6
|
+
let AreDeclaration = class extends AreInstruction {
|
|
7
|
+
constructor(param1, param2, param3) {
|
|
8
|
+
if (typeof param1 === "object" && "aseid" in param1)
|
|
9
|
+
super(param1);
|
|
10
|
+
else
|
|
11
|
+
super({
|
|
12
|
+
name: param1 || AreInstructionDefaultNames.Default,
|
|
13
|
+
parent: param2 instanceof AreDeclaration ? param2 : void 0,
|
|
14
|
+
group: param2 instanceof AreDeclaration ? param2.group : void 0,
|
|
15
|
+
payload: param2 instanceof AreDeclaration ? param3 || {} : param2 || {}
|
|
16
|
+
// id: [param1, A_IdentityHelper.generateTimeId(), param2 instanceof AreDeclaration ? (param3 || {}) as T : (param2 || {}) as T]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
AreDeclaration = __decorateClass([
|
|
21
|
+
A_Frame.Entity({
|
|
22
|
+
namespace: "A-ARE",
|
|
23
|
+
name: "AreDeclaration",
|
|
24
|
+
description: "AreDeclaration is a top-level rendering instruction that represents the creation of a new element in the ARE scene. It carries the target tag name and parent reference needed by the Host to construct the DOM element, and can be applied or reverted to manage element creation and removal deterministically."
|
|
25
|
+
})
|
|
26
|
+
], AreDeclaration);
|
|
27
|
+
|
|
28
|
+
export { AreDeclaration };
|
|
29
|
+
//# sourceMappingURL=AreDeclaration.instruction.mjs.map
|
|
30
|
+
//# sourceMappingURL=AreDeclaration.instruction.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/AreInstruction/types/AreDeclaration.instruction.ts"],"names":[],"mappings":";;;;;AAeO,IAAM,cAAA,GAAN,cAGG,cAAA,CAAqB;AAAA,EAgC3B,WAAA,CAII,MAAA,EAIA,MAAA,EAIA,MAAA,EACF;AACE,IAAA,IAAI,OAAO,MAAA,KAAW,QAAA,IAAY,OAAA,IAAW,MAAA;AACzC,MAAA,KAAA,CAAM,MAAM,CAAA;AAAA;AAEZ,MAAA,KAAA,CAAM;AAAA,QACF,IAAA,EAAM,UAAU,0BAAA,CAA2B,OAAA;AAAA,QAC3C,MAAA,EAAQ,MAAA,YAAkB,cAAA,GAAiB,MAAA,GAAS,MAAA;AAAA,QACpD,KAAA,EAAO,MAAA,YAAkB,cAAA,GAAiB,MAAA,CAAO,KAAA,GAAQ,MAAA;AAAA,QACzD,SAAS,MAAA,YAAkB,cAAA,GAAkB,UAAU,EAAC,GAAW,UAAU;AAAC;AAAA,OAEpD,CAAA;AAAA,EACtC;AAEJ;AA7Da,cAAA,GAAN,eAAA,CAAA;AAAA,EALN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,OAAA;AAAA,IACX,IAAA,EAAM,gBAAA;AAAA,IACN,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,cAAA,CAAA","file":"AreDeclaration.instruction.mjs","sourcesContent":["import { A_IdentityHelper } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame\";\nimport { AreInstruction } from \"@adaas/are/instruction/AreInstruction.entity\";\nimport { AreInstructionNewProps, AreInstructionSerialized } from \"@adaas/are/instruction/AreInstruction.types\";\nimport { AreInstructionDefaultNames } from \"@adaas/are/instruction/AreInstruction.constants\";\n\n\n/**\n * This is a top-level instruction that represents the creation of a new element in the scene. It contains all the necessary information to create a new element, such as its tag and parent. This instruction can be applied to the scene to create a new element and can be reverted to remove the created element.\n */\n@A_Frame.Entity({\n namespace: 'A-ARE',\n name: 'AreDeclaration',\n description: 'AreDeclaration is a top-level rendering instruction that represents the creation of a new element in the ARE scene. It carries the target tag name and parent reference needed by the Host to construct the DOM element, and can be applied or reverted to manage element creation and removal deterministically.'\n})\nexport class AreDeclaration<\n T extends Record<string, any> = Record<string, any>,\n S extends AreInstructionSerialized<T> = AreInstructionSerialized<T>\n> extends AreInstruction<T, S> {\n\n constructor(\n /**\n * Serialized form of the instruction, used for deserialization and reconstruction of the instruction instance. This allows for the instruction to be easily stored, transmitted, and recreated in different contexts or at different times, while maintaining all the necessary information and relationships intact.\n */\n serialized: AreInstructionSerialized,\n )\n constructor(\n /**\n * The name of the operation to be performed in Host. For example, for CreateElement instruction, the name can be \"createElement\", so the Host can have a method with the same name to handle this instruction.\n */\n name: string,\n /**\n * In case this is a child instruction that is related to a declaration instruction, we can pass the parent declaration instruction to establish the relationship between them. This allows us to manage related instructions together and ensure that they are executed in the correct order in the scene.\n */\n parent: AreDeclaration,\n /**\n * A set of additional parameters that may be needed for the rendering purpose. For example, for CreateElement instruction, the payload can contain the tag name and parent information, so the Host can use this information to create the element in the correct place in the scene.\n */\n payload: T,\n )\n constructor(\n /**\n * The name of the operation to be performed in Host. For example, for CreateElement instruction, the name can be \"createElement\", so the Host can have a method with the same name to handle this instruction.\n */\n name?: string,\n /**\n * A set of additional parameters that may be needed for the rendering purpose. For example, for CreateElement instruction, the payload can contain the tag name and parent information, so the Host can use this information to create the element in the correct place in the scene.\n */\n payload?: T,\n )\n constructor(\n /**\n * The name of the operation to be performed in Host. For example, for CreateElement instruction, the name can be \"createElement\", so the Host can have a method with the same name to handle this instruction.\n */\n param1?: string | S,\n /**\n * A set of additional parameters that may be needed for the rendering purpose. For example, for CreateElement instruction, the payload can contain the tag name and parent information, so the Host can use this information to create the element in the correct place in the scene.\n */\n param2?: T | AreDeclaration,\n /**\n * In case this is a child instruction that is related to a declaration instruction, we can pass the parent declaration instruction to establish the relationship between them. This allows us to manage related instructions together and ensure that they are executed in the correct order in the scene.\n */\n param3?: AreDeclaration | T,\n ) {\n if (typeof param1 === 'object' && 'aseid' in param1)\n super(param1);\n else\n super({\n name: param1 || AreInstructionDefaultNames.Default,\n parent: param2 instanceof AreDeclaration ? param2 : undefined,\n group: param2 instanceof AreDeclaration ? param2.group : undefined,\n payload: param2 instanceof AreDeclaration ? (param3 || {}) as T : (param2 || {}) as T,\n // id: [param1, A_IdentityHelper.generateTimeId(), param2 instanceof AreDeclaration ? (param3 || {}) as T : (param2 || {}) as T]\n } as AreInstructionNewProps<T>);\n }\n\n}"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { f as AreMutation } from '../../../Are.context-D7w32H1G.mjs';
|
|
2
|
+
import '@adaas/a-concept';
|
|
3
|
+
import '@adaas/a-utils/a-signal';
|
|
4
|
+
import '../../AreEvent/AreEvent.context.mjs';
|
|
5
|
+
import '@adaas/a-utils/a-execution';
|
|
6
|
+
import '../../AreStore/AreStore.types.mjs';
|
|
7
|
+
import '../../AreStore/AreStore.constants.mjs';
|
|
8
|
+
import '../../AreScene/AreScene.constants.mjs';
|
|
9
|
+
import '../../AreAttribute/AreAttribute.types.mjs';
|
|
10
|
+
import '../../AreAttribute/AreAttribute.constants.mjs';
|
|
11
|
+
import '../../AreComponent/Are.component.mjs';
|
|
12
|
+
import '../../AreComponent/Are.types.mjs';
|
|
13
|
+
import '../../AreComponent/Are.constants.mjs';
|
|
14
|
+
import '../../AreNode/AreNode.constants.mjs';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { f as AreMutation } from '../../../Are.context-9Ija_fdC.js';
|
|
2
|
+
import '@adaas/a-concept';
|
|
3
|
+
import '@adaas/a-utils/a-signal';
|
|
4
|
+
import '../../AreEvent/AreEvent.context.js';
|
|
5
|
+
import '@adaas/a-utils/a-execution';
|
|
6
|
+
import '../../AreStore/AreStore.types.js';
|
|
7
|
+
import '../../AreStore/AreStore.constants.js';
|
|
8
|
+
import '../../AreScene/AreScene.constants.js';
|
|
9
|
+
import '../../AreAttribute/AreAttribute.types.js';
|
|
10
|
+
import '../../AreAttribute/AreAttribute.constants.js';
|
|
11
|
+
import '../../AreComponent/Are.component.js';
|
|
12
|
+
import '../../AreComponent/Are.types.js';
|
|
13
|
+
import '../../AreComponent/Are.constants.js';
|
|
14
|
+
import '../../AreNode/AreNode.constants.js';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var aFrame = require('@adaas/a-frame');
|
|
4
|
+
var AreInstruction_constants = require('@adaas/are/instruction/AreInstruction.constants');
|
|
5
|
+
var AreInstruction_entity = require('@adaas/are/instruction/AreInstruction.entity');
|
|
6
|
+
var AreInstruction_error = require('@adaas/are/instruction/AreInstruction.error');
|
|
7
|
+
|
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
+
if (decorator = decorators[i])
|
|
13
|
+
result = (decorator(result)) || result;
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
exports.AreMutation = class AreMutation extends AreInstruction_entity.AreInstruction {
|
|
17
|
+
get parent() {
|
|
18
|
+
return this._parent;
|
|
19
|
+
}
|
|
20
|
+
get group() {
|
|
21
|
+
return this._group || this.parent;
|
|
22
|
+
}
|
|
23
|
+
constructor(param1, param2, param3) {
|
|
24
|
+
if (typeof param1 === "object" && "aseid" in param1)
|
|
25
|
+
super(param1);
|
|
26
|
+
else
|
|
27
|
+
super({
|
|
28
|
+
name: param1 || AreInstruction_constants.AreInstructionDefaultNames.Mutation,
|
|
29
|
+
group: param2,
|
|
30
|
+
parent: param2,
|
|
31
|
+
payload: param3
|
|
32
|
+
// id: [param1, param3, param2?.group]
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
fromNew(newEntity) {
|
|
36
|
+
if (!newEntity.parent)
|
|
37
|
+
throw new AreInstruction_error.AreInstructionError({
|
|
38
|
+
title: "Mutation instruction must have a parent declaration instruction",
|
|
39
|
+
description: `Mutation instruction with name ${newEntity.name} must have a parent declaration instruction for grouping and organization purposes. Please provide a parent declaration instruction when creating this mutation instruction.`
|
|
40
|
+
});
|
|
41
|
+
super.fromNew(newEntity);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.AreMutation = __decorateClass([
|
|
45
|
+
aFrame.A_Frame.Entity({
|
|
46
|
+
namespace: "A-ARE",
|
|
47
|
+
name: "AreMutation",
|
|
48
|
+
description: "AreMutation is a rendering instruction that represents a reversible change applied to an existing declaration node in the ARE scene \u2014 such as updating an attribute, modifying content, or altering child structure. It references a parent AreDeclaration and is grouped with related mutations for coordinated apply and revert operations."
|
|
49
|
+
})
|
|
50
|
+
], exports.AreMutation);
|
|
51
|
+
//# sourceMappingURL=AreMutation.instruction.js.map
|
|
52
|
+
//# sourceMappingURL=AreMutation.instruction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/AreInstruction/types/AreMutation.instruction.ts"],"names":["AreMutation","AreInstruction","AreInstructionDefaultNames","AreInstructionError","A_Frame"],"mappings":";;;;;;;;;;;;;;;AAeaA,mBAAA,GAAN,0BAGGC,oCAAA,CAAqB;AAAA,EAE3B,IAAI,MAAA,GAAiB;AACjB,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,EAChB;AAAA,EAGA,IAAI,KAAA,GAAgB;AAChB,IAAA,OAAO,IAAA,CAAK,UAAU,IAAA,CAAK,MAAA;AAAA,EAC/B;AAAA,EAsBA,WAAA,CAII,MAAA,EAIA,MAAA,EAIA,MAAA,EACF;AACE,IAAA,IAAI,OAAO,MAAA,KAAW,QAAA,IAAY,OAAA,IAAW,MAAA;AACzC,MAAA,KAAA,CAAM,MAAM,CAAA;AAAA;AAEZ,MAAA,KAAA,CAAM;AAAA,QACF,IAAA,EAAM,UAAUC,mDAAA,CAA2B,QAAA;AAAA,QAC3C,KAAA,EAAO,MAAA;AAAA,QACP,MAAA,EAAQ,MAAA;AAAA,QACR,OAAA,EAAS;AAAA;AAAA,OAEiB,CAAA;AAAA,EACtC;AAAA,EAIA,QAAQ,SAAA,EAA4C;AAChD,IAAA,IAAI,CAAC,SAAA,CAAU,MAAA;AACX,MAAA,MAAM,IAAIC,wCAAA,CAAoB;AAAA,QAC1B,KAAA,EAAO,iEAAA;AAAA,QACP,WAAA,EAAa,CAAA,+BAAA,EAAkC,SAAA,CAAU,IAAI,CAAA,4KAAA;AAAA,OAChE,CAAA;AAEL,IAAA,KAAA,CAAM,QAAQ,SAAS,CAAA;AAAA,EAC3B;AACJ;AAvEaH,mBAAA,GAAN,eAAA,CAAA;AAAA,EALNI,eAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,OAAA;AAAA,IACX,IAAA,EAAM,aAAA;AAAA,IACN,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYJ,mBAAA,CAAA","file":"AreMutation.instruction.js","sourcesContent":["import { title } from \"process\";\nimport { A_Frame } from \"@adaas/a-frame\";\nimport { AreInstructionDefaultNames } from \"@adaas/are/instruction/AreInstruction.constants\";\nimport { AreInstruction } from \"@adaas/are/instruction/AreInstruction.entity\";\nimport { AreInstructionError } from \"@adaas/are/instruction/AreInstruction.error\";\nimport { AreInstructionNewProps, AreInstructionSerialized } from \"@adaas/are/instruction/AreInstruction.types\";\nimport { AreDeclaration } from \"./AreDeclaration.instruction\";\n\n\n\n@A_Frame.Entity({\n namespace: 'A-ARE',\n name: 'AreMutation',\n description: 'AreMutation is a rendering instruction that represents a reversible change applied to an existing declaration node in the ARE scene — such as updating an attribute, modifying content, or altering child structure. It references a parent AreDeclaration and is grouped with related mutations for coordinated apply and revert operations.'\n})\nexport class AreMutation<\n T extends Record<string, any> = Record<string, any>,\n S extends AreInstructionSerialized<T> = AreInstructionSerialized<T>\n> extends AreInstruction<T, S> {\n\n get parent(): string {\n return this._parent!;\n }\n\n\n get group(): string {\n return this._group || this.parent;\n }\n\n constructor(\n /**\n * Serialized form of the instruction, used for deserialization and reconstruction of the instruction instance. This allows for the instruction to be easily stored, transmitted, and recreated in different contexts or at different times, while maintaining all the necessary information and relationships intact.\n */\n serialized: S,\n )\n constructor(\n /**\n * The name of the operation to be performed in Host.\n */\n name: string,\n /**\n * Parent instruction for grouping in case of mutations related to a specific declaration. This allows for better organization and management of instructions in the scene, as all mutations related to the same declaration will be executed together.\n */\n parent: AreDeclaration,\n /**\n * A set of additional parameters that may be needed for the rendering purpose. For example, for AddAttribute instruction, the payload can contain the attribute name and value as a payload, so the Host can use this information to add the attribute to the node.\n */\n payload?: T,\n )\n constructor(\n /**\n * The name of the operation to be performed in Host.\n */\n param1: string | S,\n /**\n * Parent instruction for grouping in case of mutations related to a specific declaration. This allows for better organization and management of instructions in the scene, as all mutations related to the same declaration will be executed together.\n */\n param2?: AreDeclaration,\n /**\n * A set of additional parameters that may be needed for the rendering purpose. For example, for AddAttribute instruction, the payload can contain the attribute name and value as a payload, so the Host can use this information to add the attribute to the node.\n */\n param3?: T,\n ) {\n if (typeof param1 === 'object' && 'aseid' in param1)\n super(param1);\n else\n super({\n name: param1 || AreInstructionDefaultNames.Mutation,\n group: param2,\n parent: param2,\n payload: param3,\n // id: [param1, param3, param2?.group]\n } as AreInstructionNewProps<T>);\n }\n\n\n\n fromNew(newEntity: AreInstructionNewProps<T>): void {\n if (!newEntity.parent)\n throw new AreInstructionError({\n title: \"Mutation instruction must have a parent declaration instruction\",\n description: `Mutation instruction with name ${newEntity.name} must have a parent declaration instruction for grouping and organization purposes. Please provide a parent declaration instruction when creating this mutation instruction.`\n });\n\n super.fromNew(newEntity);\n }\n}"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { __decorateClass } from '../../../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { A_Frame } from '@adaas/a-frame';
|
|
3
|
+
import { AreInstructionDefaultNames } from '@adaas/are/instruction/AreInstruction.constants';
|
|
4
|
+
import { AreInstruction } from '@adaas/are/instruction/AreInstruction.entity';
|
|
5
|
+
import { AreInstructionError } from '@adaas/are/instruction/AreInstruction.error';
|
|
6
|
+
|
|
7
|
+
let AreMutation = class extends AreInstruction {
|
|
8
|
+
get parent() {
|
|
9
|
+
return this._parent;
|
|
10
|
+
}
|
|
11
|
+
get group() {
|
|
12
|
+
return this._group || this.parent;
|
|
13
|
+
}
|
|
14
|
+
constructor(param1, param2, param3) {
|
|
15
|
+
if (typeof param1 === "object" && "aseid" in param1)
|
|
16
|
+
super(param1);
|
|
17
|
+
else
|
|
18
|
+
super({
|
|
19
|
+
name: param1 || AreInstructionDefaultNames.Mutation,
|
|
20
|
+
group: param2,
|
|
21
|
+
parent: param2,
|
|
22
|
+
payload: param3
|
|
23
|
+
// id: [param1, param3, param2?.group]
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
fromNew(newEntity) {
|
|
27
|
+
if (!newEntity.parent)
|
|
28
|
+
throw new AreInstructionError({
|
|
29
|
+
title: "Mutation instruction must have a parent declaration instruction",
|
|
30
|
+
description: `Mutation instruction with name ${newEntity.name} must have a parent declaration instruction for grouping and organization purposes. Please provide a parent declaration instruction when creating this mutation instruction.`
|
|
31
|
+
});
|
|
32
|
+
super.fromNew(newEntity);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
AreMutation = __decorateClass([
|
|
36
|
+
A_Frame.Entity({
|
|
37
|
+
namespace: "A-ARE",
|
|
38
|
+
name: "AreMutation",
|
|
39
|
+
description: "AreMutation is a rendering instruction that represents a reversible change applied to an existing declaration node in the ARE scene \u2014 such as updating an attribute, modifying content, or altering child structure. It references a parent AreDeclaration and is grouped with related mutations for coordinated apply and revert operations."
|
|
40
|
+
})
|
|
41
|
+
], AreMutation);
|
|
42
|
+
|
|
43
|
+
export { AreMutation };
|
|
44
|
+
//# sourceMappingURL=AreMutation.instruction.mjs.map
|
|
45
|
+
//# sourceMappingURL=AreMutation.instruction.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/AreInstruction/types/AreMutation.instruction.ts"],"names":[],"mappings":";;;;;;AAeO,IAAM,WAAA,GAAN,cAGG,cAAA,CAAqB;AAAA,EAE3B,IAAI,MAAA,GAAiB;AACjB,IAAA,OAAO,IAAA,CAAK,OAAA;AAAA,EAChB;AAAA,EAGA,IAAI,KAAA,GAAgB;AAChB,IAAA,OAAO,IAAA,CAAK,UAAU,IAAA,CAAK,MAAA;AAAA,EAC/B;AAAA,EAsBA,WAAA,CAII,MAAA,EAIA,MAAA,EAIA,MAAA,EACF;AACE,IAAA,IAAI,OAAO,MAAA,KAAW,QAAA,IAAY,OAAA,IAAW,MAAA;AACzC,MAAA,KAAA,CAAM,MAAM,CAAA;AAAA;AAEZ,MAAA,KAAA,CAAM;AAAA,QACF,IAAA,EAAM,UAAU,0BAAA,CAA2B,QAAA;AAAA,QAC3C,KAAA,EAAO,MAAA;AAAA,QACP,MAAA,EAAQ,MAAA;AAAA,QACR,OAAA,EAAS;AAAA;AAAA,OAEiB,CAAA;AAAA,EACtC;AAAA,EAIA,QAAQ,SAAA,EAA4C;AAChD,IAAA,IAAI,CAAC,SAAA,CAAU,MAAA;AACX,MAAA,MAAM,IAAI,mBAAA,CAAoB;AAAA,QAC1B,KAAA,EAAO,iEAAA;AAAA,QACP,WAAA,EAAa,CAAA,+BAAA,EAAkC,SAAA,CAAU,IAAI,CAAA,4KAAA;AAAA,OAChE,CAAA;AAEL,IAAA,KAAA,CAAM,QAAQ,SAAS,CAAA;AAAA,EAC3B;AACJ;AAvEa,WAAA,GAAN,eAAA,CAAA;AAAA,EALN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,OAAA;AAAA,IACX,IAAA,EAAM,aAAA;AAAA,IACN,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,WAAA,CAAA","file":"AreMutation.instruction.mjs","sourcesContent":["import { title } from \"process\";\nimport { A_Frame } from \"@adaas/a-frame\";\nimport { AreInstructionDefaultNames } from \"@adaas/are/instruction/AreInstruction.constants\";\nimport { AreInstruction } from \"@adaas/are/instruction/AreInstruction.entity\";\nimport { AreInstructionError } from \"@adaas/are/instruction/AreInstruction.error\";\nimport { AreInstructionNewProps, AreInstructionSerialized } from \"@adaas/are/instruction/AreInstruction.types\";\nimport { AreDeclaration } from \"./AreDeclaration.instruction\";\n\n\n\n@A_Frame.Entity({\n namespace: 'A-ARE',\n name: 'AreMutation',\n description: 'AreMutation is a rendering instruction that represents a reversible change applied to an existing declaration node in the ARE scene — such as updating an attribute, modifying content, or altering child structure. It references a parent AreDeclaration and is grouped with related mutations for coordinated apply and revert operations.'\n})\nexport class AreMutation<\n T extends Record<string, any> = Record<string, any>,\n S extends AreInstructionSerialized<T> = AreInstructionSerialized<T>\n> extends AreInstruction<T, S> {\n\n get parent(): string {\n return this._parent!;\n }\n\n\n get group(): string {\n return this._group || this.parent;\n }\n\n constructor(\n /**\n * Serialized form of the instruction, used for deserialization and reconstruction of the instruction instance. This allows for the instruction to be easily stored, transmitted, and recreated in different contexts or at different times, while maintaining all the necessary information and relationships intact.\n */\n serialized: S,\n )\n constructor(\n /**\n * The name of the operation to be performed in Host.\n */\n name: string,\n /**\n * Parent instruction for grouping in case of mutations related to a specific declaration. This allows for better organization and management of instructions in the scene, as all mutations related to the same declaration will be executed together.\n */\n parent: AreDeclaration,\n /**\n * A set of additional parameters that may be needed for the rendering purpose. For example, for AddAttribute instruction, the payload can contain the attribute name and value as a payload, so the Host can use this information to add the attribute to the node.\n */\n payload?: T,\n )\n constructor(\n /**\n * The name of the operation to be performed in Host.\n */\n param1: string | S,\n /**\n * Parent instruction for grouping in case of mutations related to a specific declaration. This allows for better organization and management of instructions in the scene, as all mutations related to the same declaration will be executed together.\n */\n param2?: AreDeclaration,\n /**\n * A set of additional parameters that may be needed for the rendering purpose. For example, for AddAttribute instruction, the payload can contain the attribute name and value as a payload, so the Host can use this information to add the attribute to the node.\n */\n param3?: T,\n ) {\n if (typeof param1 === 'object' && 'aseid' in param1)\n super(param1);\n else\n super({\n name: param1 || AreInstructionDefaultNames.Mutation,\n group: param2,\n parent: param2,\n payload: param3,\n // id: [param1, param3, param2?.group]\n } as AreInstructionNewProps<T>);\n }\n\n\n\n fromNew(newEntity: AreInstructionNewProps<T>): void {\n if (!newEntity.parent)\n throw new AreInstructionError({\n title: \"Mutation instruction must have a parent declaration instruction\",\n description: `Mutation instruction with name ${newEntity.name} must have a parent declaration instruction for grouping and organization purposes. Please provide a parent declaration instruction when creating this mutation instruction.`\n });\n\n super.fromNew(newEntity);\n }\n}"]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { A_Component, A_Scope, A_Feature } from '@adaas/a-concept';
|
|
2
|
+
import { k as AreScene, c as AreInstruction, o as AreStore } from '../../Are.context-D7w32H1G.mjs';
|
|
3
|
+
import '@adaas/a-utils/a-signal';
|
|
4
|
+
import '../AreEvent/AreEvent.context.mjs';
|
|
5
|
+
import '@adaas/a-utils/a-execution';
|
|
6
|
+
import '../AreStore/AreStore.types.mjs';
|
|
7
|
+
import '../AreStore/AreStore.constants.mjs';
|
|
8
|
+
import '../AreScene/AreScene.constants.mjs';
|
|
9
|
+
import '../AreAttribute/AreAttribute.types.mjs';
|
|
10
|
+
import '../AreAttribute/AreAttribute.constants.mjs';
|
|
11
|
+
import '../AreComponent/Are.component.mjs';
|
|
12
|
+
import '../AreComponent/Are.types.mjs';
|
|
13
|
+
import '../AreComponent/Are.constants.mjs';
|
|
14
|
+
import '../AreNode/AreNode.constants.mjs';
|
|
15
|
+
|
|
16
|
+
declare class AreInterpreter extends A_Component {
|
|
17
|
+
/**
|
|
18
|
+
* Decorator to mark a method as an instruction Apply handler for the specific instruction type. The method will be called during the render phase of the ARE component when the corresponding instruction needs to be applied. The method should contain logic to perform the necessary operations on the rendering target based on the instruction's content and context.
|
|
19
|
+
*
|
|
20
|
+
* @param action
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
static Apply(action: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
24
|
+
/**
|
|
25
|
+
* Decorator to mark a method as an instruction Update handler for the specific instruction type. The method will be called during the render phase of the ARE component when the corresponding instruction has been updated. The method should contain logic to perform the necessary operations on the rendering target to update the effects of the instruction based on its new content and context.
|
|
26
|
+
*
|
|
27
|
+
* @param action
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
static Update(action: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
31
|
+
/**
|
|
32
|
+
* Decorator to mark a method as an instruction Revert handler for the specific instruction type. The method will be called during the render phase of the ARE component when the corresponding instruction needs to be reverted. The method should contain logic to perform the necessary operations on the rendering target to undo the effects of the instruction based on its content and context.
|
|
33
|
+
*
|
|
34
|
+
* @param action
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
static Revert(action: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
38
|
+
/**
|
|
39
|
+
* The method responsible for executing the render operation based on the current state of the Scene. It processes the instructions that need to be applied and reverted, ensuring that the rendering target is updated accordingly. The method handles any errors that may occur during the application or reversion of instructions, maintaining the integrity of the rendering process.
|
|
40
|
+
*
|
|
41
|
+
* @param scene
|
|
42
|
+
*/
|
|
43
|
+
interpret(scene: AreScene): void;
|
|
44
|
+
protected applyInstruction(instruction: AreInstruction, interpreter: AreInterpreter, store: AreStore, scope: A_Scope, feature: A_Feature, ...args: any[]): void;
|
|
45
|
+
protected updateInstruction(instruction: AreInstruction, interpreter: AreInterpreter, store: AreStore, scope: A_Scope, feature: A_Feature, ...args: any[]): void;
|
|
46
|
+
protected revertInstruction(instruction: AreInstruction, interpreter: AreInterpreter, store: AreStore, scope: A_Scope, feature: A_Feature, ...args: any[]): void;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { AreInterpreter };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { A_Component, A_Scope, A_Feature } from '@adaas/a-concept';
|
|
2
|
+
import { k as AreScene, c as AreInstruction, o as AreStore } from '../../Are.context-9Ija_fdC.js';
|
|
3
|
+
import '@adaas/a-utils/a-signal';
|
|
4
|
+
import '../AreEvent/AreEvent.context.js';
|
|
5
|
+
import '@adaas/a-utils/a-execution';
|
|
6
|
+
import '../AreStore/AreStore.types.js';
|
|
7
|
+
import '../AreStore/AreStore.constants.js';
|
|
8
|
+
import '../AreScene/AreScene.constants.js';
|
|
9
|
+
import '../AreAttribute/AreAttribute.types.js';
|
|
10
|
+
import '../AreAttribute/AreAttribute.constants.js';
|
|
11
|
+
import '../AreComponent/Are.component.js';
|
|
12
|
+
import '../AreComponent/Are.types.js';
|
|
13
|
+
import '../AreComponent/Are.constants.js';
|
|
14
|
+
import '../AreNode/AreNode.constants.js';
|
|
15
|
+
|
|
16
|
+
declare class AreInterpreter extends A_Component {
|
|
17
|
+
/**
|
|
18
|
+
* Decorator to mark a method as an instruction Apply handler for the specific instruction type. The method will be called during the render phase of the ARE component when the corresponding instruction needs to be applied. The method should contain logic to perform the necessary operations on the rendering target based on the instruction's content and context.
|
|
19
|
+
*
|
|
20
|
+
* @param action
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
static Apply(action: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
24
|
+
/**
|
|
25
|
+
* Decorator to mark a method as an instruction Update handler for the specific instruction type. The method will be called during the render phase of the ARE component when the corresponding instruction has been updated. The method should contain logic to perform the necessary operations on the rendering target to update the effects of the instruction based on its new content and context.
|
|
26
|
+
*
|
|
27
|
+
* @param action
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
static Update(action: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
31
|
+
/**
|
|
32
|
+
* Decorator to mark a method as an instruction Revert handler for the specific instruction type. The method will be called during the render phase of the ARE component when the corresponding instruction needs to be reverted. The method should contain logic to perform the necessary operations on the rendering target to undo the effects of the instruction based on its content and context.
|
|
33
|
+
*
|
|
34
|
+
* @param action
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
static Revert(action: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
38
|
+
/**
|
|
39
|
+
* The method responsible for executing the render operation based on the current state of the Scene. It processes the instructions that need to be applied and reverted, ensuring that the rendering target is updated accordingly. The method handles any errors that may occur during the application or reversion of instructions, maintaining the integrity of the rendering process.
|
|
40
|
+
*
|
|
41
|
+
* @param scene
|
|
42
|
+
*/
|
|
43
|
+
interpret(scene: AreScene): void;
|
|
44
|
+
protected applyInstruction(instruction: AreInstruction, interpreter: AreInterpreter, store: AreStore, scope: A_Scope, feature: A_Feature, ...args: any[]): void;
|
|
45
|
+
protected updateInstruction(instruction: AreInstruction, interpreter: AreInterpreter, store: AreStore, scope: A_Scope, feature: A_Feature, ...args: any[]): void;
|
|
46
|
+
protected revertInstruction(instruction: AreInstruction, interpreter: AreInterpreter, store: AreStore, scope: A_Scope, feature: A_Feature, ...args: any[]): void;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { AreInterpreter };
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var aConcept = require('@adaas/a-concept');
|
|
4
|
+
var aFrame = require('@adaas/a-frame');
|
|
5
|
+
var AreScene_context = require('@adaas/are/scene/AreScene.context');
|
|
6
|
+
var AreNode_entity = require('@adaas/are/node/AreNode.entity');
|
|
7
|
+
var AreNode_constants = require('@adaas/are/node/AreNode.constants');
|
|
8
|
+
var AreInstruction_constants = require('@adaas/are/instruction/AreInstruction.constants');
|
|
9
|
+
var AreInstruction_entity = require('@adaas/are/instruction/AreInstruction.entity');
|
|
10
|
+
var AreStore_context = require('@adaas/are/store/AreStore.context');
|
|
11
|
+
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
15
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
16
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
17
|
+
if (decorator = decorators[i])
|
|
18
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
19
|
+
if (kind && result) __defProp(target, key, result);
|
|
20
|
+
return result;
|
|
21
|
+
};
|
|
22
|
+
var __decorateParam = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
23
|
+
exports.AreInterpreter = class AreInterpreter extends aConcept.A_Component {
|
|
24
|
+
/**
|
|
25
|
+
* Decorator to mark a method as an instruction Apply handler for the specific instruction type. The method will be called during the render phase of the ARE component when the corresponding instruction needs to be applied. The method should contain logic to perform the necessary operations on the rendering target based on the instruction's content and context.
|
|
26
|
+
*
|
|
27
|
+
* @param action
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
static Apply(action) {
|
|
31
|
+
const name = action + AreInstruction_constants.AreInstructionFeatures.Apply;
|
|
32
|
+
return (target, propertyKey, descriptor) => {
|
|
33
|
+
return aConcept.A_Feature.Extend({
|
|
34
|
+
name,
|
|
35
|
+
scope: [target.constructor]
|
|
36
|
+
})(target, propertyKey, descriptor);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Decorator to mark a method as an instruction Update handler for the specific instruction type. The method will be called during the render phase of the ARE component when the corresponding instruction has been updated. The method should contain logic to perform the necessary operations on the rendering target to update the effects of the instruction based on its new content and context.
|
|
41
|
+
*
|
|
42
|
+
* @param action
|
|
43
|
+
* @returns
|
|
44
|
+
*/
|
|
45
|
+
static Update(action) {
|
|
46
|
+
const name = action + AreInstruction_constants.AreInstructionFeatures.Update;
|
|
47
|
+
return (target, propertyKey, descriptor) => {
|
|
48
|
+
return aConcept.A_Feature.Extend({
|
|
49
|
+
name,
|
|
50
|
+
scope: [target.constructor]
|
|
51
|
+
})(target, propertyKey, descriptor);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Decorator to mark a method as an instruction Revert handler for the specific instruction type. The method will be called during the render phase of the ARE component when the corresponding instruction needs to be reverted. The method should contain logic to perform the necessary operations on the rendering target to undo the effects of the instruction based on its content and context.
|
|
56
|
+
*
|
|
57
|
+
* @param action
|
|
58
|
+
* @returns
|
|
59
|
+
*/
|
|
60
|
+
static Revert(action) {
|
|
61
|
+
const name = action + AreInstruction_constants.AreInstructionFeatures.Revert;
|
|
62
|
+
return (target, propertyKey, descriptor) => {
|
|
63
|
+
return aConcept.A_Feature.Extend({
|
|
64
|
+
name,
|
|
65
|
+
scope: [target.constructor]
|
|
66
|
+
})(target, propertyKey, descriptor);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
interpret(scene) {
|
|
70
|
+
const { toApply, toRevert } = scene.changes;
|
|
71
|
+
for (const instruction of toRevert) {
|
|
72
|
+
try {
|
|
73
|
+
instruction.revert();
|
|
74
|
+
scene.unApply(instruction);
|
|
75
|
+
} catch (error) {
|
|
76
|
+
instruction.apply();
|
|
77
|
+
scene.apply(instruction);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
for (const instruction of toApply) {
|
|
81
|
+
try {
|
|
82
|
+
instruction.apply();
|
|
83
|
+
scene.apply(instruction);
|
|
84
|
+
} catch (error) {
|
|
85
|
+
instruction.revert();
|
|
86
|
+
scene.unApply(instruction);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
applyInstruction(instruction, interpreter, store, scope, feature, ...args) {
|
|
91
|
+
try {
|
|
92
|
+
store.watch(instruction);
|
|
93
|
+
feature.chain(interpreter, instruction.name + AreInstruction_constants.AreInstructionFeatures.Apply, scope);
|
|
94
|
+
store.unwatch(instruction);
|
|
95
|
+
} catch (error) {
|
|
96
|
+
store.unwatch(instruction);
|
|
97
|
+
throw error;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
updateInstruction(instruction, interpreter, store, scope, feature, ...args) {
|
|
101
|
+
try {
|
|
102
|
+
store.watch(instruction);
|
|
103
|
+
feature.chain(interpreter, instruction.name + AreInstruction_constants.AreInstructionFeatures.Update, scope);
|
|
104
|
+
store.unwatch(instruction);
|
|
105
|
+
} catch (error) {
|
|
106
|
+
store.unwatch(instruction);
|
|
107
|
+
throw error;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
revertInstruction(instruction, interpreter, store, scope, feature, ...args) {
|
|
111
|
+
try {
|
|
112
|
+
feature.chain(interpreter, instruction.name + AreInstruction_constants.AreInstructionFeatures.Revert, scope);
|
|
113
|
+
} catch (error) {
|
|
114
|
+
throw error;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
__decorateClass([
|
|
119
|
+
aConcept.A_Feature.Extend({
|
|
120
|
+
name: AreNode_constants.AreNodeFeatures.onInterpret,
|
|
121
|
+
scope: [AreNode_entity.AreNode]
|
|
122
|
+
}),
|
|
123
|
+
__decorateParam(0, aConcept.A_Inject(AreScene_context.AreScene))
|
|
124
|
+
], exports.AreInterpreter.prototype, "interpret", 1);
|
|
125
|
+
__decorateClass([
|
|
126
|
+
aConcept.A_Feature.Extend({
|
|
127
|
+
name: AreInstruction_constants.AreInstructionFeatures.Apply,
|
|
128
|
+
scope: [AreInstruction_entity.AreInstruction]
|
|
129
|
+
}),
|
|
130
|
+
__decorateParam(0, aConcept.A_Inject(aConcept.A_Caller)),
|
|
131
|
+
__decorateParam(1, aConcept.A_Inject(exports.AreInterpreter)),
|
|
132
|
+
__decorateParam(2, aConcept.A_Inject(AreStore_context.AreStore)),
|
|
133
|
+
__decorateParam(3, aConcept.A_Inject(aConcept.A_Scope)),
|
|
134
|
+
__decorateParam(4, aConcept.A_Inject(aConcept.A_Feature))
|
|
135
|
+
], exports.AreInterpreter.prototype, "applyInstruction", 1);
|
|
136
|
+
__decorateClass([
|
|
137
|
+
aConcept.A_Feature.Extend({
|
|
138
|
+
name: AreInstruction_constants.AreInstructionFeatures.Update,
|
|
139
|
+
scope: [AreInstruction_entity.AreInstruction]
|
|
140
|
+
}),
|
|
141
|
+
__decorateParam(0, aConcept.A_Inject(aConcept.A_Caller)),
|
|
142
|
+
__decorateParam(1, aConcept.A_Inject(exports.AreInterpreter)),
|
|
143
|
+
__decorateParam(2, aConcept.A_Inject(AreStore_context.AreStore)),
|
|
144
|
+
__decorateParam(3, aConcept.A_Inject(aConcept.A_Scope)),
|
|
145
|
+
__decorateParam(4, aConcept.A_Inject(aConcept.A_Feature))
|
|
146
|
+
], exports.AreInterpreter.prototype, "updateInstruction", 1);
|
|
147
|
+
__decorateClass([
|
|
148
|
+
aConcept.A_Feature.Extend({
|
|
149
|
+
name: AreInstruction_constants.AreInstructionFeatures.Revert,
|
|
150
|
+
scope: [AreInstruction_entity.AreInstruction]
|
|
151
|
+
}),
|
|
152
|
+
__decorateParam(0, aConcept.A_Inject(aConcept.A_Caller)),
|
|
153
|
+
__decorateParam(1, aConcept.A_Inject(exports.AreInterpreter)),
|
|
154
|
+
__decorateParam(2, aConcept.A_Inject(AreStore_context.AreStore)),
|
|
155
|
+
__decorateParam(3, aConcept.A_Inject(aConcept.A_Scope)),
|
|
156
|
+
__decorateParam(4, aConcept.A_Inject(aConcept.A_Feature))
|
|
157
|
+
], exports.AreInterpreter.prototype, "revertInstruction", 1);
|
|
158
|
+
exports.AreInterpreter = __decorateClass([
|
|
159
|
+
aFrame.A_Frame.Component({
|
|
160
|
+
description: "Stateless executor that reads the Scene and translates its instructions into operations on a rendering target. Computes the diff between applied and planned, calls revert on removed instructions and apply on added ones. Owns no state of its own \u2014 all state lives in the Scene. Can be swapped for any target implementation (DOMInterpreter, SSRInterpreter, CanvasInterpreter) without touching any other part of the pipeline."
|
|
161
|
+
})
|
|
162
|
+
], exports.AreInterpreter);
|
|
163
|
+
//# sourceMappingURL=AreInterpreter.component.js.map
|
|
164
|
+
//# sourceMappingURL=AreInterpreter.component.js.map
|