@adaas/are-html 0.0.2
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 +87 -0
- package/.conf/tsconfig.browser.json +34 -0
- package/.conf/tsconfig.node.json +35 -0
- package/.nvmrc +1 -0
- package/LICENSE +13 -0
- package/README.md +678 -0
- package/dist/browser/index.d.mts +521 -0
- package/dist/browser/index.mjs +1782 -0
- package/dist/browser/index.mjs.map +1 -0
- package/dist/node/AreBinding.attribute-C6JasbJL.d.ts +110 -0
- package/dist/node/AreBinding.attribute-C6qrxN8K.d.mts +110 -0
- package/dist/node/attributes/AreBinding.attribute.d.mts +4 -0
- package/dist/node/attributes/AreBinding.attribute.d.ts +4 -0
- package/dist/node/attributes/AreBinding.attribute.js +15 -0
- package/dist/node/attributes/AreBinding.attribute.js.map +1 -0
- package/dist/node/attributes/AreBinding.attribute.mjs +14 -0
- package/dist/node/attributes/AreBinding.attribute.mjs.map +1 -0
- package/dist/node/attributes/AreDirective.attribute.d.mts +4 -0
- package/dist/node/attributes/AreDirective.attribute.d.ts +4 -0
- package/dist/node/attributes/AreDirective.attribute.js +20 -0
- package/dist/node/attributes/AreDirective.attribute.js.map +1 -0
- package/dist/node/attributes/AreDirective.attribute.mjs +19 -0
- package/dist/node/attributes/AreDirective.attribute.mjs.map +1 -0
- package/dist/node/attributes/AreEvent.attribute.d.mts +4 -0
- package/dist/node/attributes/AreEvent.attribute.d.ts +4 -0
- package/dist/node/attributes/AreEvent.attribute.js +10 -0
- package/dist/node/attributes/AreEvent.attribute.js.map +1 -0
- package/dist/node/attributes/AreEvent.attribute.mjs +9 -0
- package/dist/node/attributes/AreEvent.attribute.mjs.map +1 -0
- package/dist/node/attributes/AreStatic.attribute.d.mts +4 -0
- package/dist/node/attributes/AreStatic.attribute.d.ts +4 -0
- package/dist/node/attributes/AreStatic.attribute.js +10 -0
- package/dist/node/attributes/AreStatic.attribute.js.map +1 -0
- package/dist/node/attributes/AreStatic.attribute.mjs +9 -0
- package/dist/node/attributes/AreStatic.attribute.mjs.map +1 -0
- package/dist/node/chunk-EQQGB2QZ.mjs +15 -0
- package/dist/node/chunk-EQQGB2QZ.mjs.map +1 -0
- package/dist/node/directives/AreComponent.directive.d.mts +2 -0
- package/dist/node/directives/AreComponent.directive.d.ts +2 -0
- package/dist/node/directives/AreComponent.directive.js +4 -0
- package/dist/node/directives/AreComponent.directive.js.map +1 -0
- package/dist/node/directives/AreComponent.directive.mjs +3 -0
- package/dist/node/directives/AreComponent.directive.mjs.map +1 -0
- package/dist/node/directives/AreDirectiveFor.directive.d.mts +41 -0
- package/dist/node/directives/AreDirectiveFor.directive.d.ts +41 -0
- package/dist/node/directives/AreDirectiveFor.directive.js +206 -0
- package/dist/node/directives/AreDirectiveFor.directive.js.map +1 -0
- package/dist/node/directives/AreDirectiveFor.directive.mjs +196 -0
- package/dist/node/directives/AreDirectiveFor.directive.mjs.map +1 -0
- package/dist/node/directives/AreDirectiveIf.directive.d.mts +15 -0
- package/dist/node/directives/AreDirectiveIf.directive.d.ts +15 -0
- package/dist/node/directives/AreDirectiveIf.directive.js +91 -0
- package/dist/node/directives/AreDirectiveIf.directive.js.map +1 -0
- package/dist/node/directives/AreDirectiveIf.directive.mjs +81 -0
- package/dist/node/directives/AreDirectiveIf.directive.mjs.map +1 -0
- package/dist/node/engine/AreHTML.compiler.d.mts +27 -0
- package/dist/node/engine/AreHTML.compiler.d.ts +27 -0
- package/dist/node/engine/AreHTML.compiler.js +150 -0
- package/dist/node/engine/AreHTML.compiler.js.map +1 -0
- package/dist/node/engine/AreHTML.compiler.mjs +140 -0
- package/dist/node/engine/AreHTML.compiler.mjs.map +1 -0
- package/dist/node/engine/AreHTML.constants.d.mts +2 -0
- package/dist/node/engine/AreHTML.constants.d.ts +2 -0
- package/dist/node/engine/AreHTML.constants.js +4 -0
- package/dist/node/engine/AreHTML.constants.js.map +1 -0
- package/dist/node/engine/AreHTML.constants.mjs +3 -0
- package/dist/node/engine/AreHTML.constants.mjs.map +1 -0
- package/dist/node/engine/AreHTML.context.d.mts +108 -0
- package/dist/node/engine/AreHTML.context.d.ts +108 -0
- package/dist/node/engine/AreHTML.context.js +155 -0
- package/dist/node/engine/AreHTML.context.js.map +1 -0
- package/dist/node/engine/AreHTML.context.mjs +154 -0
- package/dist/node/engine/AreHTML.context.mjs.map +1 -0
- package/dist/node/engine/AreHTML.engine.d.mts +21 -0
- package/dist/node/engine/AreHTML.engine.d.ts +21 -0
- package/dist/node/engine/AreHTML.engine.js +191 -0
- package/dist/node/engine/AreHTML.engine.js.map +1 -0
- package/dist/node/engine/AreHTML.engine.mjs +181 -0
- package/dist/node/engine/AreHTML.engine.mjs.map +1 -0
- package/dist/node/engine/AreHTML.interpreter.d.mts +28 -0
- package/dist/node/engine/AreHTML.interpreter.d.ts +28 -0
- package/dist/node/engine/AreHTML.interpreter.js +340 -0
- package/dist/node/engine/AreHTML.interpreter.js.map +1 -0
- package/dist/node/engine/AreHTML.interpreter.mjs +330 -0
- package/dist/node/engine/AreHTML.interpreter.mjs.map +1 -0
- package/dist/node/engine/AreHTML.lifecycle.d.mts +17 -0
- package/dist/node/engine/AreHTML.lifecycle.d.ts +17 -0
- package/dist/node/engine/AreHTML.lifecycle.js +91 -0
- package/dist/node/engine/AreHTML.lifecycle.js.map +1 -0
- package/dist/node/engine/AreHTML.lifecycle.mjs +79 -0
- package/dist/node/engine/AreHTML.lifecycle.mjs.map +1 -0
- package/dist/node/engine/AreHTML.tokenizer.d.mts +13 -0
- package/dist/node/engine/AreHTML.tokenizer.d.ts +13 -0
- package/dist/node/engine/AreHTML.tokenizer.js +83 -0
- package/dist/node/engine/AreHTML.tokenizer.js.map +1 -0
- package/dist/node/engine/AreHTML.tokenizer.mjs +71 -0
- package/dist/node/engine/AreHTML.tokenizer.mjs.map +1 -0
- package/dist/node/engine/AreHTML.transformer.d.mts +11 -0
- package/dist/node/engine/AreHTML.transformer.d.ts +11 -0
- package/dist/node/engine/AreHTML.transformer.js +44 -0
- package/dist/node/engine/AreHTML.transformer.js.map +1 -0
- package/dist/node/engine/AreHTML.transformer.mjs +32 -0
- package/dist/node/engine/AreHTML.transformer.mjs.map +1 -0
- package/dist/node/engine/AreHTML.types.d.mts +6 -0
- package/dist/node/engine/AreHTML.types.d.ts +6 -0
- package/dist/node/engine/AreHTML.types.js +4 -0
- package/dist/node/engine/AreHTML.types.js.map +1 -0
- package/dist/node/engine/AreHTML.types.mjs +3 -0
- package/dist/node/engine/AreHTML.types.mjs.map +1 -0
- package/dist/node/index.d.mts +39 -0
- package/dist/node/index.d.ts +39 -0
- package/dist/node/index.js +294 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/index.mjs +43 -0
- package/dist/node/index.mjs.map +1 -0
- package/dist/node/instructions/AddAttribute.instruction.d.mts +9 -0
- package/dist/node/instructions/AddAttribute.instruction.d.ts +9 -0
- package/dist/node/instructions/AddAttribute.instruction.js +32 -0
- package/dist/node/instructions/AddAttribute.instruction.js.map +1 -0
- package/dist/node/instructions/AddAttribute.instruction.mjs +25 -0
- package/dist/node/instructions/AddAttribute.instruction.mjs.map +1 -0
- package/dist/node/instructions/AddComment.instruction.d.mts +9 -0
- package/dist/node/instructions/AddComment.instruction.d.ts +9 -0
- package/dist/node/instructions/AddComment.instruction.js +35 -0
- package/dist/node/instructions/AddComment.instruction.js.map +1 -0
- package/dist/node/instructions/AddComment.instruction.mjs +28 -0
- package/dist/node/instructions/AddComment.instruction.mjs.map +1 -0
- package/dist/node/instructions/AddElement.instruction.d.mts +8 -0
- package/dist/node/instructions/AddElement.instruction.d.ts +8 -0
- package/dist/node/instructions/AddElement.instruction.js +32 -0
- package/dist/node/instructions/AddElement.instruction.js.map +1 -0
- package/dist/node/instructions/AddElement.instruction.mjs +25 -0
- package/dist/node/instructions/AddElement.instruction.mjs.map +1 -0
- package/dist/node/instructions/AddInterpolation.instruction.d.mts +8 -0
- package/dist/node/instructions/AddInterpolation.instruction.d.ts +8 -0
- package/dist/node/instructions/AddInterpolation.instruction.js +32 -0
- package/dist/node/instructions/AddInterpolation.instruction.js.map +1 -0
- package/dist/node/instructions/AddInterpolation.instruction.mjs +25 -0
- package/dist/node/instructions/AddInterpolation.instruction.mjs.map +1 -0
- package/dist/node/instructions/AddListener.instruction.d.mts +8 -0
- package/dist/node/instructions/AddListener.instruction.d.ts +8 -0
- package/dist/node/instructions/AddListener.instruction.js +32 -0
- package/dist/node/instructions/AddListener.instruction.js.map +1 -0
- package/dist/node/instructions/AddListener.instruction.mjs +25 -0
- package/dist/node/instructions/AddListener.instruction.mjs.map +1 -0
- package/dist/node/instructions/AddStyle.instruction.d.mts +8 -0
- package/dist/node/instructions/AddStyle.instruction.d.ts +8 -0
- package/dist/node/instructions/AddStyle.instruction.js +32 -0
- package/dist/node/instructions/AddStyle.instruction.js.map +1 -0
- package/dist/node/instructions/AddStyle.instruction.mjs +25 -0
- package/dist/node/instructions/AddStyle.instruction.mjs.map +1 -0
- package/dist/node/instructions/AddText.instruction.d.mts +8 -0
- package/dist/node/instructions/AddText.instruction.d.ts +8 -0
- package/dist/node/instructions/AddText.instruction.js +32 -0
- package/dist/node/instructions/AddText.instruction.js.map +1 -0
- package/dist/node/instructions/AddText.instruction.mjs +25 -0
- package/dist/node/instructions/AddText.instruction.mjs.map +1 -0
- package/dist/node/instructions/AreHTML.instructions.constants.d.mts +11 -0
- package/dist/node/instructions/AreHTML.instructions.constants.d.ts +11 -0
- package/dist/node/instructions/AreHTML.instructions.constants.js +15 -0
- package/dist/node/instructions/AreHTML.instructions.constants.js.map +1 -0
- package/dist/node/instructions/AreHTML.instructions.constants.mjs +15 -0
- package/dist/node/instructions/AreHTML.instructions.constants.mjs.map +1 -0
- package/dist/node/instructions/AreHTML.instructions.types.d.mts +46 -0
- package/dist/node/instructions/AreHTML.instructions.types.d.ts +46 -0
- package/dist/node/instructions/AreHTML.instructions.types.js +4 -0
- package/dist/node/instructions/AreHTML.instructions.types.js.map +1 -0
- package/dist/node/instructions/AreHTML.instructions.types.mjs +3 -0
- package/dist/node/instructions/AreHTML.instructions.types.mjs.map +1 -0
- package/dist/node/lib/AreDirective/AreDirective.component.d.mts +4 -0
- package/dist/node/lib/AreDirective/AreDirective.component.d.ts +4 -0
- package/dist/node/lib/AreDirective/AreDirective.component.js +117 -0
- package/dist/node/lib/AreDirective/AreDirective.component.js.map +1 -0
- package/dist/node/lib/AreDirective/AreDirective.component.mjs +107 -0
- package/dist/node/lib/AreDirective/AreDirective.component.mjs.map +1 -0
- package/dist/node/lib/AreDirective/AreDirective.constants.d.mts +16 -0
- package/dist/node/lib/AreDirective/AreDirective.constants.d.ts +16 -0
- package/dist/node/lib/AreDirective/AreDirective.constants.js +20 -0
- package/dist/node/lib/AreDirective/AreDirective.constants.js.map +1 -0
- package/dist/node/lib/AreDirective/AreDirective.constants.mjs +20 -0
- package/dist/node/lib/AreDirective/AreDirective.constants.mjs.map +1 -0
- package/dist/node/lib/AreDirective/AreDirective.context.d.mts +9 -0
- package/dist/node/lib/AreDirective/AreDirective.context.d.ts +9 -0
- package/dist/node/lib/AreDirective/AreDirective.context.js +14 -0
- package/dist/node/lib/AreDirective/AreDirective.context.js.map +1 -0
- package/dist/node/lib/AreDirective/AreDirective.context.mjs +13 -0
- package/dist/node/lib/AreDirective/AreDirective.context.mjs.map +1 -0
- package/dist/node/lib/AreDirective/AreDirective.meta.d.mts +7 -0
- package/dist/node/lib/AreDirective/AreDirective.meta.d.ts +7 -0
- package/dist/node/lib/AreDirective/AreDirective.meta.js +14 -0
- package/dist/node/lib/AreDirective/AreDirective.meta.js.map +1 -0
- package/dist/node/lib/AreDirective/AreDirective.meta.mjs +13 -0
- package/dist/node/lib/AreDirective/AreDirective.meta.mjs.map +1 -0
- package/dist/node/lib/AreDirective/AreDirective.types.d.mts +17 -0
- package/dist/node/lib/AreDirective/AreDirective.types.d.ts +17 -0
- package/dist/node/lib/AreDirective/AreDirective.types.js +4 -0
- package/dist/node/lib/AreDirective/AreDirective.types.js.map +1 -0
- package/dist/node/lib/AreDirective/AreDirective.types.mjs +3 -0
- package/dist/node/lib/AreDirective/AreDirective.types.mjs.map +1 -0
- package/dist/node/lib/AreHTML/AreHTML.tokenizer.d.mts +13 -0
- package/dist/node/lib/AreHTML/AreHTML.tokenizer.d.ts +13 -0
- package/dist/node/lib/AreHTML/AreHTML.tokenizer.js +82 -0
- package/dist/node/lib/AreHTML/AreHTML.tokenizer.js.map +1 -0
- package/dist/node/lib/AreHTML/AreHTML.tokenizer.mjs +70 -0
- package/dist/node/lib/AreHTML/AreHTML.tokenizer.mjs.map +1 -0
- package/dist/node/lib/AreHTMLAttribute/AreHTML.attribute.d.mts +4 -0
- package/dist/node/lib/AreHTMLAttribute/AreHTML.attribute.d.ts +4 -0
- package/dist/node/lib/AreHTMLAttribute/AreHTML.attribute.js +13 -0
- package/dist/node/lib/AreHTMLAttribute/AreHTML.attribute.js.map +1 -0
- package/dist/node/lib/AreHTMLAttribute/AreHTML.attribute.mjs +12 -0
- package/dist/node/lib/AreHTMLAttribute/AreHTML.attribute.mjs.map +1 -0
- package/dist/node/lib/AreHTMLNode/AreHTMLNode.d.mts +4 -0
- package/dist/node/lib/AreHTMLNode/AreHTMLNode.d.ts +4 -0
- package/dist/node/lib/AreHTMLNode/AreHTMLNode.js +82 -0
- package/dist/node/lib/AreHTMLNode/AreHTMLNode.js.map +1 -0
- package/dist/node/lib/AreHTMLNode/AreHTMLNode.mjs +75 -0
- package/dist/node/lib/AreHTMLNode/AreHTMLNode.mjs.map +1 -0
- package/dist/node/lib/AreRoot/AreRoot.component.d.mts +13 -0
- package/dist/node/lib/AreRoot/AreRoot.component.d.ts +13 -0
- package/dist/node/lib/AreRoot/AreRoot.component.js +117 -0
- package/dist/node/lib/AreRoot/AreRoot.component.js.map +1 -0
- package/dist/node/lib/AreRoot/AreRoot.component.mjs +107 -0
- package/dist/node/lib/AreRoot/AreRoot.component.mjs.map +1 -0
- package/dist/node/lib/AreStyle/AreStyle.context.d.mts +8 -0
- package/dist/node/lib/AreStyle/AreStyle.context.d.ts +8 -0
- package/dist/node/lib/AreStyle/AreStyle.context.js +16 -0
- package/dist/node/lib/AreStyle/AreStyle.context.js.map +1 -0
- package/dist/node/lib/AreStyle/AreStyle.context.mjs +15 -0
- package/dist/node/lib/AreStyle/AreStyle.context.mjs.map +1 -0
- package/dist/node/lib/AreStyle/AreStyle.types.d.mts +2 -0
- package/dist/node/lib/AreStyle/AreStyle.types.d.ts +2 -0
- package/dist/node/lib/AreStyle/AreStyle.types.js +4 -0
- package/dist/node/lib/AreStyle/AreStyle.types.js.map +1 -0
- package/dist/node/lib/AreStyle/AreStyle.types.mjs +3 -0
- package/dist/node/lib/AreStyle/AreStyle.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/nodes/AreComment.d.mts +10 -0
- package/dist/node/nodes/AreComment.d.ts +10 -0
- package/dist/node/nodes/AreComment.js +19 -0
- package/dist/node/nodes/AreComment.js.map +1 -0
- package/dist/node/nodes/AreComment.mjs +18 -0
- package/dist/node/nodes/AreComment.mjs.map +1 -0
- package/dist/node/nodes/AreComponent.d.mts +17 -0
- package/dist/node/nodes/AreComponent.d.ts +17 -0
- package/dist/node/nodes/AreComponent.js +35 -0
- package/dist/node/nodes/AreComponent.js.map +1 -0
- package/dist/node/nodes/AreComponent.mjs +28 -0
- package/dist/node/nodes/AreComponent.mjs.map +1 -0
- package/dist/node/nodes/AreInterpolation.d.mts +10 -0
- package/dist/node/nodes/AreInterpolation.d.ts +10 -0
- package/dist/node/nodes/AreInterpolation.js +19 -0
- package/dist/node/nodes/AreInterpolation.js.map +1 -0
- package/dist/node/nodes/AreInterpolation.mjs +18 -0
- package/dist/node/nodes/AreInterpolation.mjs.map +1 -0
- package/dist/node/nodes/AreRoot.d.mts +21 -0
- package/dist/node/nodes/AreRoot.d.ts +21 -0
- package/dist/node/nodes/AreRoot.js +41 -0
- package/dist/node/nodes/AreRoot.js.map +1 -0
- package/dist/node/nodes/AreRoot.mjs +34 -0
- package/dist/node/nodes/AreRoot.mjs.map +1 -0
- package/dist/node/nodes/AreText.d.mts +10 -0
- package/dist/node/nodes/AreText.d.ts +10 -0
- package/dist/node/nodes/AreText.js +19 -0
- package/dist/node/nodes/AreText.js.map +1 -0
- package/dist/node/nodes/AreText.mjs +18 -0
- package/dist/node/nodes/AreText.mjs.map +1 -0
- package/dist/node/signals/AreRoute.signal.d.mts +12 -0
- package/dist/node/signals/AreRoute.signal.d.ts +12 -0
- package/dist/node/signals/AreRoute.signal.js +25 -0
- package/dist/node/signals/AreRoute.signal.js.map +1 -0
- package/dist/node/signals/AreRoute.signal.mjs +24 -0
- package/dist/node/signals/AreRoute.signal.mjs.map +1 -0
- package/docs/a-logo-docs.png +0 -0
- package/examples/dashboard/concept.ts +60 -0
- package/examples/dashboard/containers/UI.container.ts +233 -0
- package/examples/dashboard/dist/index.html +22 -0
- package/examples/dashboard/dist/mnzfypsd-6zjt7w.js +11454 -0
- package/examples/dashboard/dist/styles.css +792 -0
- package/examples/dashboard/public/index.html +22 -0
- package/examples/dashboard/public/styles.css +792 -0
- package/examples/dashboard/src/components/DashboardApp.component.ts +31 -0
- package/examples/dashboard/src/components/DashboardHeader.component.ts +40 -0
- package/examples/dashboard/src/components/DashboardLogo.component.ts +29 -0
- package/examples/dashboard/src/components/DashboardMain.component.ts +57 -0
- package/examples/dashboard/src/components/DashboardMenu.component.ts +94 -0
- package/examples/dashboard/src/components/DashboardNav.component.ts +28 -0
- package/examples/dashboard/src/components/DashboardNavItem.component.ts +32 -0
- package/examples/dashboard/src/components/DashboardSidebar.component.ts +43 -0
- package/examples/dashboard/src/components/DashboardStatCard.component.ts +71 -0
- package/examples/dashboard/src/components/DashboardStats.component.ts +28 -0
- package/examples/dashboard/src/components/DashboardTable.component.ts +138 -0
- package/examples/dashboard/src/components/DashboardUserCard.component.ts +39 -0
- package/examples/dashboard/src/concept.ts +93 -0
- package/examples/jumpstart/concept.ts +60 -0
- package/examples/jumpstart/containers/UI.container.ts +233 -0
- package/examples/jumpstart/dist/index.html +104 -0
- package/examples/jumpstart/dist/mnpl1g4i-nobz9g.js +10882 -0
- package/examples/jumpstart/dist/static/css/main.css +40 -0
- package/examples/jumpstart/dist/static/img/test.png +0 -0
- package/examples/jumpstart/public/index.html +104 -0
- package/examples/jumpstart/public/static/css/main.css +40 -0
- package/examples/jumpstart/public/static/img/test.png +0 -0
- package/examples/jumpstart/src/components/A-Btn.component.ts +150 -0
- package/examples/jumpstart/src/components/A-Input.component.ts +78 -0
- package/examples/jumpstart/src/components/A-Navigation.component.ts +167 -0
- package/examples/jumpstart/src/components/List.component.ts +138 -0
- package/examples/jumpstart/src/components/PromptTextArea.component.ts +359 -0
- package/examples/jumpstart/src/components/SignInComponent.component.ts +127 -0
- package/examples/jumpstart/src/concept.ts +105 -0
- package/jest.config.ts +61 -0
- package/package.json +110 -0
- package/src/attributes/AreBinding.attribute.ts +19 -0
- package/src/attributes/AreDirective.attribute.ts +26 -0
- package/src/attributes/AreEvent.attribute.ts +5 -0
- package/src/attributes/AreStatic.attribute.ts +6 -0
- package/src/directives/AreComponent.directive.ts +0 -0
- package/src/directives/AreDirectiveFor.directive.ts +322 -0
- package/src/directives/AreDirectiveIf.directive.ts +130 -0
- package/src/engine/AreHTML.compiler.ts +226 -0
- package/src/engine/AreHTML.constants.ts +2 -0
- package/src/engine/AreHTML.context.ts +196 -0
- package/src/engine/AreHTML.engine.ts +210 -0
- package/src/engine/AreHTML.interpreter.ts +466 -0
- package/src/engine/AreHTML.lifecycle.ts +96 -0
- package/src/engine/AreHTML.tokenizer.ts +90 -0
- package/src/engine/AreHTML.transformer.ts +37 -0
- package/src/engine/AreHTML.types.ts +6 -0
- package/src/index.ts +80 -0
- package/src/instructions/AddAttribute.instruction.ts +25 -0
- package/src/instructions/AddComment.instruction.ts +27 -0
- package/src/instructions/AddElement.instruction.ts +22 -0
- package/src/instructions/AddInterpolation.instruction.ts +24 -0
- package/src/instructions/AddListener.instruction.ts +24 -0
- package/src/instructions/AddStyle.instruction.ts +24 -0
- package/src/instructions/AddText.instruction.ts +21 -0
- package/src/instructions/AreHTML.instructions.constants.ts +11 -0
- package/src/instructions/AreHTML.instructions.types.ts +51 -0
- package/src/lib/AreDirective/AreDirective.component.ts +124 -0
- package/src/lib/AreDirective/AreDirective.constants.ts +16 -0
- package/src/lib/AreDirective/AreDirective.context.ts +16 -0
- package/src/lib/AreDirective/AreDirective.meta.ts +9 -0
- package/src/lib/AreDirective/AreDirective.types.ts +14 -0
- package/src/lib/AreHTML/AreHTML.tokenizer.ts +86 -0
- package/src/lib/AreHTMLAttribute/AreHTML.attribute.ts +13 -0
- package/src/lib/AreHTMLNode/AreHTMLNode.ts +84 -0
- package/src/lib/AreRoot/AreRoot.component.ts +134 -0
- package/src/lib/AreStyle/AreStyle.context.ts +20 -0
- package/src/lib/AreStyle/AreStyle.types.ts +0 -0
- package/src/lib/AreWatcher/AreWatcher.component.ts +84 -0
- package/src/nodes/AreComment.ts +17 -0
- package/src/nodes/AreComponent.ts +25 -0
- package/src/nodes/AreInterpolation.ts +16 -0
- package/src/nodes/AreRoot.ts +29 -0
- package/src/nodes/AreText.ts +17 -0
- package/src/signals/AreRoute.signal.ts +27 -0
- package/tests/AreTokenizer.test.ts +260 -0
- package/tests/jest.setup.ts +30 -0
- package/tsconfig.json +60 -0
- package/tslint.json +98 -0
- package/tsup.config.ts +108 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { AreStoreWatchingEntity, AreNode, AreAttribute } from '@adaas/are';
|
|
2
|
+
import { A_Component, A_TYPES__Ctor } from '@adaas/a-concept';
|
|
3
|
+
import { AreStyle } from './lib/AreStyle/AreStyle.context.mjs';
|
|
4
|
+
|
|
5
|
+
declare class AreDirective extends A_Component {
|
|
6
|
+
/**
|
|
7
|
+
* Allows to define a compilation order for directives, which is necessary when we have multiple directives on the same node and we want to control the order of their compilation and application. The directive with the highest priority will be compiled and applied first, and the directive with the lowest priority will be compiled and applied last. This is important because some directives may depend on the output of other directives, so we need to ensure that they are compiled and applied in the correct order to avoid errors and ensure the expected behavior.
|
|
8
|
+
*
|
|
9
|
+
* @param priority
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
static Priority(priority: number): <TTarget extends A_TYPES__Ctor<AreDirective>>(target: TTarget) => TTarget;
|
|
13
|
+
/**
|
|
14
|
+
* Allows to define a custom method for transforming the AreNode tree based on the directive attribute. This method is called during the transformation phase of the ARE component and should perform any necessary transformations on the AreNode tree based on the directive's content and context. This can include tasks such as adding or removing nodes, modifying node properties, or restructuring the tree to ensure that the directive is applied correctly during rendering.
|
|
15
|
+
*/
|
|
16
|
+
static get Transform(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
17
|
+
/**
|
|
18
|
+
* Allows to define a custom method for compiling a directive attribute into a set of SceneInstructions.
|
|
19
|
+
* Can be used at any component to extend this logic not only for a AreDirective inherited.
|
|
20
|
+
*/
|
|
21
|
+
static get Compile(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
22
|
+
/**
|
|
23
|
+
* Allows to define a custom method for updating a directive attribute based on changes in the store or other dependencies.
|
|
24
|
+
* Can be used at any component to extend this logic not only for a AreDirective inherited.
|
|
25
|
+
*/
|
|
26
|
+
static get Update(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => any;
|
|
27
|
+
/**
|
|
28
|
+
* Default transform method for directives, which can be overridden by specific directive implementations. This method is called during the transformation phase of the ARE component and should perform any necessary transformations on the AreNode tree based on the directive's content and context. This can include tasks such as adding or removing nodes, modifying node properties, or restructuring the tree to ensure that the directive is applied correctly during rendering.
|
|
29
|
+
*
|
|
30
|
+
* @param attribute - The directive attribute to transform, which contains all the information about the directive as defined in the template (e.g. name, raw content, evaluated value, etc.)
|
|
31
|
+
* @param args - Additional arguments that may be required for the transformation process.
|
|
32
|
+
*/
|
|
33
|
+
transform(attribute: AreDirectiveAttribute, ...args: any[]): void;
|
|
34
|
+
/**
|
|
35
|
+
* Default compile method for directives, which can be overridden by specific directive implementations.
|
|
36
|
+
*
|
|
37
|
+
* @param attribute - The directive attribute to compile, which contains all the information about the directive as defined in the template (e.g. name, raw content, evaluated value, etc.)
|
|
38
|
+
* @param args - Additional arguments that may be required for the compilation process.
|
|
39
|
+
*/
|
|
40
|
+
compile(attribute: AreDirectiveAttribute, ...args: any[]): void;
|
|
41
|
+
/**
|
|
42
|
+
* Default update method for directives, which can be overridden by specific directive implementations. This method is called when there are changes in the store or other dependencies that may affect the directive's behavior or appearance. The method should contain logic to update the directive accordingly, such as re-evaluating its value, modifying the DOM, or triggering re-rendering of the affected nodes.
|
|
43
|
+
*
|
|
44
|
+
* @param attribute - The directive attribute to update, which contains all the information about the directive as defined in the template (e.g. name, raw content, evaluated value, etc.)
|
|
45
|
+
* @param args - Additional arguments that may be required for the update process.
|
|
46
|
+
*/
|
|
47
|
+
update(attribute: AreDirectiveAttribute, ...args: any[]): void;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare class AreDirectiveAttribute extends AreHTMLAttribute implements AreStoreWatchingEntity {
|
|
51
|
+
cache?: any;
|
|
52
|
+
template?: AreHTMLNode;
|
|
53
|
+
/**
|
|
54
|
+
* Returns a custom directive component associated with this attribute, if available.
|
|
55
|
+
*
|
|
56
|
+
* The method uses the attribute's name to resolve the corresponding directive component from the scope. It constructs the expected directive name by converting the attribute name to PascalCase and prefixing it with "AreDirective". If a matching directive component is found in the scope, it is returned; otherwise, the method returns undefined.
|
|
57
|
+
*/
|
|
58
|
+
get component(): AreDirective | undefined;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare class AreEventAttribute extends AreHTMLAttribute {
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare class AreStaticAttribute extends AreHTMLAttribute {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
declare class AreHTMLNode extends AreNode {
|
|
68
|
+
/**
|
|
69
|
+
* Actual node type.
|
|
70
|
+
* By default it's a tag name
|
|
71
|
+
*/
|
|
72
|
+
get tag(): string;
|
|
73
|
+
/**
|
|
74
|
+
* The static attributes defined for the node, which are typically used to represent static properties or characteristics of the node that do not change based on the context or state. These attributes are usually defined in the template and are not reactive.
|
|
75
|
+
*
|
|
76
|
+
* Example: For a node defined as `<div class="static-class">`, the static attribute would be `class="static-class"`.
|
|
77
|
+
*/
|
|
78
|
+
get staticAttributes(): AreStaticAttribute[];
|
|
79
|
+
/**
|
|
80
|
+
* The binding attributes defined for the node, which are typically used to represent dynamic properties or characteristics of the node that can change based on the context or state. These attributes are usually defined in the template with a specific syntax (e.g., `:prop="value"` or `v-bind:prop="value"`) and are reactive, meaning that they will update automatically when the underlying data changes.
|
|
81
|
+
*
|
|
82
|
+
* Example: For a node defined as `<div :class="dynamicClass">`, the binding attribute would be `:class="dynamicClass"`.
|
|
83
|
+
*/
|
|
84
|
+
get bindings(): AreBindingAttribute[];
|
|
85
|
+
/**
|
|
86
|
+
* The directive attributes defined for the node, which are typically used to represent special instructions or behaviors that should be applied to the node. These attributes are usually defined in the template with a specific syntax (e.g., `v-if="condition"` or `v-for="item in list"`) and are processed by the rendering engine to apply the corresponding logic or behavior to the node.
|
|
87
|
+
*
|
|
88
|
+
* Example: For a node defined as `<div v-if="isVisible">`, the directive attribute would be `v-if="isVisible"`.
|
|
89
|
+
*/
|
|
90
|
+
get directives(): AreDirectiveAttribute[];
|
|
91
|
+
/**
|
|
92
|
+
* The event attributes defined for the node, which are typically used to represent event listeners or handlers that should be attached to the node. These attributes are usually defined in the template with a specific syntax (e.g., `@click="handleClick"` or `v-on:click="handleClick"`) and are processed by the rendering engine to attach the corresponding event listeners to the node.
|
|
93
|
+
*
|
|
94
|
+
* Example: For a node defined as `<button @click="handleClick">`, the event attribute would be `@click="handleClick"`.
|
|
95
|
+
*/
|
|
96
|
+
get events(): AreEventAttribute[];
|
|
97
|
+
/**
|
|
98
|
+
* The styles defined for the node, which can include inline styles or styles defined in a separate stylesheet that are applied to the node. These styles can be used to control the visual appearance of the node and can be defined using standard CSS syntax.
|
|
99
|
+
*/
|
|
100
|
+
get styles(): AreStyle;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare class AreHTMLAttribute extends AreAttribute {
|
|
104
|
+
get owner(): AreHTMLNode;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare class AreBindingAttribute extends AreHTMLAttribute {
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export { AreBindingAttribute as A, AreDirective as a, AreDirectiveAttribute as b, AreEventAttribute as c, AreHTMLAttribute as d, AreHTMLNode as e, AreStaticAttribute as f };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var attribute = require('@adaas/are-html/attribute');
|
|
4
|
+
|
|
5
|
+
class AreBindingAttribute extends attribute.AreHTMLAttribute {
|
|
6
|
+
// get value(): string {
|
|
7
|
+
// const [firstPart, ...pathPart] = this.content.split('.');
|
|
8
|
+
// const primaryObject = this.owner.store.get(firstPart);
|
|
9
|
+
// return AreCommonHelper.extractPropertyByPath(primaryObject, pathPart.join('.')) as string;
|
|
10
|
+
// }
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports.AreBindingAttribute = AreBindingAttribute;
|
|
14
|
+
//# sourceMappingURL=AreBinding.attribute.js.map
|
|
15
|
+
//# sourceMappingURL=AreBinding.attribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/attributes/AreBinding.attribute.ts"],"names":["AreHTMLAttribute"],"mappings":";;;;AAOO,MAAM,4BAA4BA,0BAAA,CAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAW1D","file":"AreBinding.attribute.js","sourcesContent":["import { AreHTMLAttribute } from \"@adaas/are-html/attribute\";\n\n\n\n\n\n\nexport class AreBindingAttribute extends AreHTMLAttribute {\n\n // get value(): string {\n\n // const [firstPart, ...pathPart] = this.content.split('.');\n\n // const primaryObject = this.owner.store.get(firstPart);\n\n // return AreCommonHelper.extractPropertyByPath(primaryObject, pathPart.join('.')) as string;\n // }\n\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { AreHTMLAttribute } from '@adaas/are-html/attribute';
|
|
3
|
+
|
|
4
|
+
class AreBindingAttribute extends AreHTMLAttribute {
|
|
5
|
+
// get value(): string {
|
|
6
|
+
// const [firstPart, ...pathPart] = this.content.split('.');
|
|
7
|
+
// const primaryObject = this.owner.store.get(firstPart);
|
|
8
|
+
// return AreCommonHelper.extractPropertyByPath(primaryObject, pathPart.join('.')) as string;
|
|
9
|
+
// }
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { AreBindingAttribute };
|
|
13
|
+
//# sourceMappingURL=AreBinding.attribute.mjs.map
|
|
14
|
+
//# sourceMappingURL=AreBinding.attribute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/attributes/AreBinding.attribute.ts"],"names":[],"mappings":";;;AAOO,MAAM,4BAA4B,gBAAA,CAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAW1D","file":"AreBinding.attribute.mjs","sourcesContent":["import { AreHTMLAttribute } from \"@adaas/are-html/attribute\";\n\n\n\n\n\n\nexport class AreBindingAttribute extends AreHTMLAttribute {\n\n // get value(): string {\n\n // const [firstPart, ...pathPart] = this.content.split('.');\n\n // const primaryObject = this.owner.store.get(firstPart);\n\n // return AreCommonHelper.extractPropertyByPath(primaryObject, pathPart.join('.')) as string;\n // }\n\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var aConcept = require('@adaas/a-concept');
|
|
4
|
+
var attribute = require('@adaas/are-html/attribute');
|
|
5
|
+
|
|
6
|
+
class AreDirectiveAttribute extends attribute.AreHTMLAttribute {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a custom directive component associated with this attribute, if available.
|
|
9
|
+
*
|
|
10
|
+
* The method uses the attribute's name to resolve the corresponding directive component from the scope. It constructs the expected directive name by converting the attribute name to PascalCase and prefixing it with "AreDirective". If a matching directive component is found in the scope, it is returned; otherwise, the method returns undefined.
|
|
11
|
+
*/
|
|
12
|
+
get component() {
|
|
13
|
+
const component = this.scope.resolve(`AreDirective${aConcept.A_FormatterHelper.toPascalCase(this.name)}`);
|
|
14
|
+
return component;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
exports.AreDirectiveAttribute = AreDirectiveAttribute;
|
|
19
|
+
//# sourceMappingURL=AreDirective.attribute.js.map
|
|
20
|
+
//# sourceMappingURL=AreDirective.attribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/attributes/AreDirective.attribute.ts"],"names":["AreHTMLAttribute","A_FormatterHelper"],"mappings":";;;;;AAQO,MAAM,8BAA8BA,0BAAA,CAAmD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAW1F,IAAI,SAAA,GAAsC;AACtC,IAAA,MAAM,SAAA,GAAY,IAAA,CAAK,KAAA,CAAM,OAAA,CAAsB,CAAA,YAAA,EAAeC,2BAAkB,YAAA,CAAa,IAAA,CAAK,IAAI,CAAC,CAAA,CAAE,CAAA;AAE7G,IAAA,OAAO,SAAA;AAAA,EACX;AAEJ","file":"AreDirective.attribute.js","sourcesContent":["import { A_FormatterHelper } from \"@adaas/a-concept\";\nimport type { AreDirective } from \"@adaas/are-html/directive/AreDirective.component\";\nimport { AreHTMLAttribute } from \"@adaas/are-html/attribute\";\nimport { AreStoreWatchingEntity } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\n\n\n\nexport class AreDirectiveAttribute extends AreHTMLAttribute implements AreStoreWatchingEntity {\n\n cache?: any\n\n template?: AreHTMLNode\n\n /**\n * Returns a custom directive component associated with this attribute, if available.\n * \n * The method uses the attribute's name to resolve the corresponding directive component from the scope. It constructs the expected directive name by converting the attribute name to PascalCase and prefixing it with \"AreDirective\". If a matching directive component is found in the scope, it is returned; otherwise, the method returns undefined.\n */\n get component(): AreDirective | undefined {\n const component = this.scope.resolve<AreDirective>(`AreDirective${A_FormatterHelper.toPascalCase(this.name)}`) as AreDirective | undefined;\n\n return component as AreDirective;\n }\n\n}"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import '../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { A_FormatterHelper } from '@adaas/a-concept';
|
|
3
|
+
import { AreHTMLAttribute } from '@adaas/are-html/attribute';
|
|
4
|
+
|
|
5
|
+
class AreDirectiveAttribute extends AreHTMLAttribute {
|
|
6
|
+
/**
|
|
7
|
+
* Returns a custom directive component associated with this attribute, if available.
|
|
8
|
+
*
|
|
9
|
+
* The method uses the attribute's name to resolve the corresponding directive component from the scope. It constructs the expected directive name by converting the attribute name to PascalCase and prefixing it with "AreDirective". If a matching directive component is found in the scope, it is returned; otherwise, the method returns undefined.
|
|
10
|
+
*/
|
|
11
|
+
get component() {
|
|
12
|
+
const component = this.scope.resolve(`AreDirective${A_FormatterHelper.toPascalCase(this.name)}`);
|
|
13
|
+
return component;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { AreDirectiveAttribute };
|
|
18
|
+
//# sourceMappingURL=AreDirective.attribute.mjs.map
|
|
19
|
+
//# sourceMappingURL=AreDirective.attribute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/attributes/AreDirective.attribute.ts"],"names":[],"mappings":";;;;AAQO,MAAM,8BAA8B,gBAAA,CAAmD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAW1F,IAAI,SAAA,GAAsC;AACtC,IAAA,MAAM,SAAA,GAAY,IAAA,CAAK,KAAA,CAAM,OAAA,CAAsB,CAAA,YAAA,EAAe,kBAAkB,YAAA,CAAa,IAAA,CAAK,IAAI,CAAC,CAAA,CAAE,CAAA;AAE7G,IAAA,OAAO,SAAA;AAAA,EACX;AAEJ","file":"AreDirective.attribute.mjs","sourcesContent":["import { A_FormatterHelper } from \"@adaas/a-concept\";\nimport type { AreDirective } from \"@adaas/are-html/directive/AreDirective.component\";\nimport { AreHTMLAttribute } from \"@adaas/are-html/attribute\";\nimport { AreStoreWatchingEntity } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\n\n\n\nexport class AreDirectiveAttribute extends AreHTMLAttribute implements AreStoreWatchingEntity {\n\n cache?: any\n\n template?: AreHTMLNode\n\n /**\n * Returns a custom directive component associated with this attribute, if available.\n * \n * The method uses the attribute's name to resolve the corresponding directive component from the scope. It constructs the expected directive name by converting the attribute name to PascalCase and prefixing it with \"AreDirective\". If a matching directive component is found in the scope, it is returned; otherwise, the method returns undefined.\n */\n get component(): AreDirective | undefined {\n const component = this.scope.resolve<AreDirective>(`AreDirective${A_FormatterHelper.toPascalCase(this.name)}`) as AreDirective | undefined;\n\n return component as AreDirective;\n }\n\n}"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var attribute = require('@adaas/are-html/attribute');
|
|
4
|
+
|
|
5
|
+
class AreEventAttribute extends attribute.AreHTMLAttribute {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
exports.AreEventAttribute = AreEventAttribute;
|
|
9
|
+
//# sourceMappingURL=AreEvent.attribute.js.map
|
|
10
|
+
//# sourceMappingURL=AreEvent.attribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/attributes/AreEvent.attribute.ts"],"names":["AreHTMLAttribute"],"mappings":";;;;AAGO,MAAM,0BAA0BA,0BAAA,CAAiB;AACxD","file":"AreEvent.attribute.js","sourcesContent":["import { AreHTMLAttribute } from \"@adaas/are-html/attribute\";\n\n\nexport class AreEventAttribute extends AreHTMLAttribute {\n}"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { AreHTMLAttribute } from '@adaas/are-html/attribute';
|
|
3
|
+
|
|
4
|
+
class AreEventAttribute extends AreHTMLAttribute {
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { AreEventAttribute };
|
|
8
|
+
//# sourceMappingURL=AreEvent.attribute.mjs.map
|
|
9
|
+
//# sourceMappingURL=AreEvent.attribute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/attributes/AreEvent.attribute.ts"],"names":[],"mappings":";;;AAGO,MAAM,0BAA0B,gBAAA,CAAiB;AACxD","file":"AreEvent.attribute.mjs","sourcesContent":["import { AreHTMLAttribute } from \"@adaas/are-html/attribute\";\n\n\nexport class AreEventAttribute extends AreHTMLAttribute {\n}"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var attribute = require('@adaas/are-html/attribute');
|
|
4
|
+
|
|
5
|
+
class AreStaticAttribute extends attribute.AreHTMLAttribute {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
exports.AreStaticAttribute = AreStaticAttribute;
|
|
9
|
+
//# sourceMappingURL=AreStatic.attribute.js.map
|
|
10
|
+
//# sourceMappingURL=AreStatic.attribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/attributes/AreStatic.attribute.ts"],"names":["AreHTMLAttribute"],"mappings":";;;;AAGO,MAAM,2BAA2BA,0BAAA,CAAiB;AAEzD","file":"AreStatic.attribute.js","sourcesContent":["import { AreHTMLAttribute } from \"@adaas/are-html/attribute\";\n\n\nexport class AreStaticAttribute extends AreHTMLAttribute {\n\n}"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { AreHTMLAttribute } from '@adaas/are-html/attribute';
|
|
3
|
+
|
|
4
|
+
class AreStaticAttribute extends AreHTMLAttribute {
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { AreStaticAttribute };
|
|
8
|
+
//# sourceMappingURL=AreStatic.attribute.mjs.map
|
|
9
|
+
//# sourceMappingURL=AreStatic.attribute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/attributes/AreStatic.attribute.ts"],"names":[],"mappings":";;;AAGO,MAAM,2BAA2B,gBAAA,CAAiB;AAEzD","file":"AreStatic.attribute.mjs","sourcesContent":["import { AreHTMLAttribute } from \"@adaas/are-html/attribute\";\n\n\nexport class AreStaticAttribute extends AreHTMLAttribute {\n\n}"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
var __decorateParam = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
12
|
+
|
|
13
|
+
export { __decorateClass, __decorateParam };
|
|
14
|
+
//# sourceMappingURL=chunk-EQQGB2QZ.mjs.map
|
|
15
|
+
//# sourceMappingURL=chunk-EQQGB2QZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-EQQGB2QZ.mjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"AreComponent.directive.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"AreComponent.directive.mjs"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { A_Scope } from '@adaas/a-concept';
|
|
2
|
+
import { A_Logger } from '@adaas/a-utils/a-logger';
|
|
3
|
+
import { a as AreDirective, b as AreDirectiveAttribute } from '../AreBinding.attribute-C6qrxN8K.mjs';
|
|
4
|
+
import { AreStore, AreScene } from '@adaas/are';
|
|
5
|
+
import '../lib/AreStyle/AreStyle.context.mjs';
|
|
6
|
+
|
|
7
|
+
declare class AreDirectiveFor extends AreDirective {
|
|
8
|
+
transform(attribute: AreDirectiveAttribute, scope: A_Scope, store: AreStore, scene: AreScene, logger: A_Logger, ...args: any[]): void;
|
|
9
|
+
compile(attribute: AreDirectiveAttribute, store: AreStore, scene: AreScene, ...args: any[]): void;
|
|
10
|
+
update(attribute: AreDirectiveAttribute, store: AreStore, scene: AreScene, ...args: any[]): void;
|
|
11
|
+
/**
|
|
12
|
+
* Parses the $for expression string into its constituent parts.
|
|
13
|
+
*
|
|
14
|
+
* Supported formats:
|
|
15
|
+
* item in items
|
|
16
|
+
* item, index in items
|
|
17
|
+
* (item, index) in items
|
|
18
|
+
* item in filter(items)
|
|
19
|
+
* item, index in filter(items, 'active')
|
|
20
|
+
*/
|
|
21
|
+
private parseExpression;
|
|
22
|
+
/**
|
|
23
|
+
* Resolves the array expression against the store.
|
|
24
|
+
* Supports both plain key lookups and function-call expressions:
|
|
25
|
+
* items → store.get('items')
|
|
26
|
+
* filter(items) → store.get('filter')(store.get('items'))
|
|
27
|
+
*/
|
|
28
|
+
private resolveArray;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a single item node from the template, registers it as a child of
|
|
31
|
+
* the owner, initialises it, injects item-scoped store values, and activates
|
|
32
|
+
* its scene so the mount/compile cycle will include it.
|
|
33
|
+
*
|
|
34
|
+
* NOTE: This method does NOT call compile() or mount() — the caller is
|
|
35
|
+
* responsible for doing so when the main lifecycle cycle won't cover it
|
|
36
|
+
* (i.e. during update, but not during the initial compile phase).
|
|
37
|
+
*/
|
|
38
|
+
private spawnItemNode;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { AreDirectiveFor };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { A_Scope } from '@adaas/a-concept';
|
|
2
|
+
import { A_Logger } from '@adaas/a-utils/a-logger';
|
|
3
|
+
import { a as AreDirective, b as AreDirectiveAttribute } from '../AreBinding.attribute-C6JasbJL.js';
|
|
4
|
+
import { AreStore, AreScene } from '@adaas/are';
|
|
5
|
+
import '../lib/AreStyle/AreStyle.context.js';
|
|
6
|
+
|
|
7
|
+
declare class AreDirectiveFor extends AreDirective {
|
|
8
|
+
transform(attribute: AreDirectiveAttribute, scope: A_Scope, store: AreStore, scene: AreScene, logger: A_Logger, ...args: any[]): void;
|
|
9
|
+
compile(attribute: AreDirectiveAttribute, store: AreStore, scene: AreScene, ...args: any[]): void;
|
|
10
|
+
update(attribute: AreDirectiveAttribute, store: AreStore, scene: AreScene, ...args: any[]): void;
|
|
11
|
+
/**
|
|
12
|
+
* Parses the $for expression string into its constituent parts.
|
|
13
|
+
*
|
|
14
|
+
* Supported formats:
|
|
15
|
+
* item in items
|
|
16
|
+
* item, index in items
|
|
17
|
+
* (item, index) in items
|
|
18
|
+
* item in filter(items)
|
|
19
|
+
* item, index in filter(items, 'active')
|
|
20
|
+
*/
|
|
21
|
+
private parseExpression;
|
|
22
|
+
/**
|
|
23
|
+
* Resolves the array expression against the store.
|
|
24
|
+
* Supports both plain key lookups and function-call expressions:
|
|
25
|
+
* items → store.get('items')
|
|
26
|
+
* filter(items) → store.get('filter')(store.get('items'))
|
|
27
|
+
*/
|
|
28
|
+
private resolveArray;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a single item node from the template, registers it as a child of
|
|
31
|
+
* the owner, initialises it, injects item-scoped store values, and activates
|
|
32
|
+
* its scene so the mount/compile cycle will include it.
|
|
33
|
+
*
|
|
34
|
+
* NOTE: This method does NOT call compile() or mount() — the caller is
|
|
35
|
+
* responsible for doing so when the main lifecycle cycle won't cover it
|
|
36
|
+
* (i.e. during update, but not during the initial compile phase).
|
|
37
|
+
*/
|
|
38
|
+
private spawnItemNode;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { AreDirectiveFor };
|