@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,13 @@
|
|
|
1
|
+
import { A_Logger } from '@adaas/a-utils/a-logger';
|
|
2
|
+
import { AreTokenizer, AreNode, AreContext } from '@adaas/are';
|
|
3
|
+
import { d as AreHTMLAttribute } from '../AreBinding.attribute-C6qrxN8K.mjs';
|
|
4
|
+
import '@adaas/a-concept';
|
|
5
|
+
import '../lib/AreStyle/AreStyle.context.mjs';
|
|
6
|
+
|
|
7
|
+
declare class AreHTMLTokenizer extends AreTokenizer {
|
|
8
|
+
ATTR_PATTERN: RegExp;
|
|
9
|
+
tokenize(node: AreNode, context: AreContext, logger?: A_Logger): void;
|
|
10
|
+
extractAttributes(markup: string): AreHTMLAttribute[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { AreHTMLTokenizer };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { A_Logger } from '@adaas/a-utils/a-logger';
|
|
2
|
+
import { AreTokenizer, AreNode, AreContext } from '@adaas/are';
|
|
3
|
+
import { d as AreHTMLAttribute } from '../AreBinding.attribute-C6JasbJL.js';
|
|
4
|
+
import '@adaas/a-concept';
|
|
5
|
+
import '../lib/AreStyle/AreStyle.context.js';
|
|
6
|
+
|
|
7
|
+
declare class AreHTMLTokenizer extends AreTokenizer {
|
|
8
|
+
ATTR_PATTERN: RegExp;
|
|
9
|
+
tokenize(node: AreNode, context: AreContext, logger?: A_Logger): void;
|
|
10
|
+
extractAttributes(markup: string): AreHTMLAttribute[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { AreHTMLTokenizer };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var aConcept = require('@adaas/a-concept');
|
|
4
|
+
var aLogger = require('@adaas/a-utils/a-logger');
|
|
5
|
+
var are = require('@adaas/are');
|
|
6
|
+
var AreComponent = require('@adaas/are-html/nodes/AreComponent');
|
|
7
|
+
var AreRoot = require('@adaas/are-html/nodes/AreRoot');
|
|
8
|
+
var AreDirective_attribute = require('@adaas/are-html/attributes/AreDirective.attribute');
|
|
9
|
+
var AreEvent_attribute = require('@adaas/are-html/attributes/AreEvent.attribute');
|
|
10
|
+
var AreBinding_attribute = require('@adaas/are-html/attributes/AreBinding.attribute');
|
|
11
|
+
var AreStatic_attribute = require('@adaas/are-html/attributes/AreStatic.attribute');
|
|
12
|
+
|
|
13
|
+
var __defProp = Object.defineProperty;
|
|
14
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
16
|
+
var result = __getOwnPropDesc(target, key) ;
|
|
17
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
18
|
+
if (decorator = decorators[i])
|
|
19
|
+
result = (decorator(target, key, result) ) || result;
|
|
20
|
+
if (result) __defProp(target, key, result);
|
|
21
|
+
return result;
|
|
22
|
+
};
|
|
23
|
+
var __decorateParam = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
24
|
+
class AreHTMLTokenizer extends are.AreTokenizer {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.ATTR_PATTERN = /([$:@]?[\w-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>/"'=]+)))?/g;
|
|
28
|
+
}
|
|
29
|
+
tokenize(node, context, logger) {
|
|
30
|
+
super.tokenize(node, context, logger);
|
|
31
|
+
context.startPerformance("attributeExtraction");
|
|
32
|
+
const attributes = this.extractAttributes(node.markup);
|
|
33
|
+
for (const attr of attributes) {
|
|
34
|
+
node.scope.register(attr);
|
|
35
|
+
}
|
|
36
|
+
context.endPerformance("attributeExtraction");
|
|
37
|
+
}
|
|
38
|
+
extractAttributes(markup) {
|
|
39
|
+
const withoutTag = markup.replace(/^<[a-zA-Z][a-zA-Z0-9-]*\s*/, "");
|
|
40
|
+
let inSingle = false;
|
|
41
|
+
let inDouble = false;
|
|
42
|
+
let endIdx = withoutTag.length;
|
|
43
|
+
for (let i = 0; i < withoutTag.length; i++) {
|
|
44
|
+
const ch = withoutTag[i];
|
|
45
|
+
if (ch === '"' && !inSingle) inDouble = !inDouble;
|
|
46
|
+
else if (ch === "'" && !inDouble) inSingle = !inSingle;
|
|
47
|
+
else if (ch === ">" && !inSingle && !inDouble) {
|
|
48
|
+
endIdx = i;
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const attrString = withoutTag.slice(0, endIdx).replace(/\s*\/?\s*$/, "").trim();
|
|
53
|
+
const results = [];
|
|
54
|
+
for (const match of attrString.matchAll(this.ATTR_PATTERN)) {
|
|
55
|
+
const raw = match[0];
|
|
56
|
+
const full = match[1];
|
|
57
|
+
if (!full) continue;
|
|
58
|
+
const value = match[2] ?? match[3] ?? match[4] ?? "true";
|
|
59
|
+
const prefix = full[0];
|
|
60
|
+
const isSpecial = prefix === ":" || prefix === "@" || prefix === "$";
|
|
61
|
+
const name = isSpecial ? full.slice(1) : full;
|
|
62
|
+
const meta = { name, content: value, raw, prefix: isSpecial ? prefix : "" };
|
|
63
|
+
if (prefix === ":") results.push(new AreBinding_attribute.AreBindingAttribute(meta));
|
|
64
|
+
else if (prefix === "@") results.push(new AreEvent_attribute.AreEventAttribute(meta));
|
|
65
|
+
else if (prefix === "$") results.push(new AreDirective_attribute.AreDirectiveAttribute(meta));
|
|
66
|
+
else results.push(new AreStatic_attribute.AreStaticAttribute(meta));
|
|
67
|
+
}
|
|
68
|
+
return results;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
__decorateClass([
|
|
72
|
+
aConcept.A_Feature.Extend({
|
|
73
|
+
name: are.AreNodeFeatures.onTokenize,
|
|
74
|
+
scope: [AreComponent.AreComponentNode, AreRoot.AreRootNode]
|
|
75
|
+
}),
|
|
76
|
+
__decorateParam(0, aConcept.A_Inject(aConcept.A_Caller)),
|
|
77
|
+
__decorateParam(1, aConcept.A_Inject(are.AreContext)),
|
|
78
|
+
__decorateParam(2, aConcept.A_Inject(aLogger.A_Logger))
|
|
79
|
+
], AreHTMLTokenizer.prototype, "tokenize");
|
|
80
|
+
|
|
81
|
+
exports.AreHTMLTokenizer = AreHTMLTokenizer;
|
|
82
|
+
//# sourceMappingURL=AreHTML.tokenizer.js.map
|
|
83
|
+
//# sourceMappingURL=AreHTML.tokenizer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/engine/AreHTML.tokenizer.ts"],"names":["AreTokenizer","AreBindingAttribute","AreEventAttribute","AreDirectiveAttribute","AreStaticAttribute","A_Feature","AreNodeFeatures","AreComponentNode","AreRootNode","A_Caller","AreContext","A_Logger"],"mappings":"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","file":"AreHTML.tokenizer.js","sourcesContent":["import { A_Caller, A_Feature, A_Inject } from \"@adaas/a-concept\";\nimport { A_Logger } from \"@adaas/a-utils/a-logger\";\nimport { AreNodeFeatures, AreNode, AreTokenizer, AreAttribute_Init, AreContext } from \"@adaas/are\";\nimport { AreComponentNode } from \"@adaas/are-html/nodes/AreComponent\";\nimport { AreRootNode } from \"@adaas/are-html/nodes/AreRoot\";\nimport { AreDirectiveAttribute } from \"@adaas/are-html/attributes/AreDirective.attribute\";\nimport { AreEventAttribute } from \"@adaas/are-html/attributes/AreEvent.attribute\";\nimport { AreBindingAttribute } from \"@adaas/are-html/attributes/AreBinding.attribute\";\nimport { AreStaticAttribute } from \"@adaas/are-html/attributes/AreStatic.attribute\";\nimport { AreHTMLAttribute } from \"../lib/AreHTMLAttribute/AreHTML.attribute\";\n\n\nexport class AreHTMLTokenizer extends AreTokenizer {\n\n ATTR_PATTERN = /([$:@]?[\\w-]+)(?:\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\\s>/\"'=]+)))?/g\n\n\n @A_Feature.Extend({\n name: AreNodeFeatures.onTokenize,\n scope: [AreComponentNode, AreRootNode]\n })\n tokenize(\n @A_Inject(A_Caller) node: AreNode,\n @A_Inject(AreContext) context: AreContext,\n @A_Inject(A_Logger) logger?: A_Logger\n ): void {\n\n super.tokenize(node, context, logger);\n\n context.startPerformance('attributeExtraction');\n\n const attributes = this.extractAttributes(node.markup);\n\n for (const attr of attributes) {\n node.scope.register(attr);\n }\n\n context.endPerformance('attributeExtraction');\n }\n\n\n\n extractAttributes(markup: string): AreHTMLAttribute[] {\n // Strip the tag name, then remove the closing > that is NOT inside quotes\n const withoutTag = markup.replace(/^<[a-zA-Z][a-zA-Z0-9-]*\\s*/, '')\n\n // Walk the string to find the closing > that isn't inside a quoted value\n let inSingle = false\n let inDouble = false\n let endIdx = withoutTag.length\n\n for (let i = 0; i < withoutTag.length; i++) {\n const ch = withoutTag[i]\n if (ch === '\"' && !inSingle) inDouble = !inDouble\n else if (ch === \"'\" && !inDouble) inSingle = !inSingle\n else if (ch === '>' && !inSingle && !inDouble) {\n endIdx = i\n break\n }\n }\n\n const attrString = withoutTag.slice(0, endIdx).replace(/\\s*\\/?\\s*$/, '').trim()\n\n const results: AreHTMLAttribute[] = []\n\n for (const match of attrString.matchAll(this.ATTR_PATTERN)) {\n const raw = match[0]\n const full = match[1] // e.g. ':class', '@click', '$for', 'id'\n\n // skip zero-length or name-less regex matches\n if (!full) continue\n\n const value = match[2] ?? match[3] ?? match[4] ?? 'true'\n\n const prefix = full[0]\n const isSpecial = prefix === ':' || prefix === '@' || prefix === '$'\n const name = isSpecial ? full.slice(1) : full\n\n const meta: AreAttribute_Init = { name, content: value, raw, prefix: isSpecial ? prefix : '' }\n\n if (prefix === ':') results.push(new AreBindingAttribute(meta))\n else if (prefix === '@') results.push(new AreEventAttribute(meta))\n else if (prefix === '$') results.push(new AreDirectiveAttribute(meta))\n else results.push(new AreStaticAttribute(meta))\n }\n\n return results\n }\n\n}"]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { __decorateClass, __decorateParam } from '../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { A_Feature, A_Inject, A_Caller } from '@adaas/a-concept';
|
|
3
|
+
import { A_Logger } from '@adaas/a-utils/a-logger';
|
|
4
|
+
import { AreNodeFeatures, AreContext, AreTokenizer } from '@adaas/are';
|
|
5
|
+
import { AreComponentNode } from '@adaas/are-html/nodes/AreComponent';
|
|
6
|
+
import { AreRootNode } from '@adaas/are-html/nodes/AreRoot';
|
|
7
|
+
import { AreDirectiveAttribute } from '@adaas/are-html/attributes/AreDirective.attribute';
|
|
8
|
+
import { AreEventAttribute } from '@adaas/are-html/attributes/AreEvent.attribute';
|
|
9
|
+
import { AreBindingAttribute } from '@adaas/are-html/attributes/AreBinding.attribute';
|
|
10
|
+
import { AreStaticAttribute } from '@adaas/are-html/attributes/AreStatic.attribute';
|
|
11
|
+
|
|
12
|
+
class AreHTMLTokenizer extends AreTokenizer {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.ATTR_PATTERN = /([$:@]?[\w-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>/"'=]+)))?/g;
|
|
16
|
+
}
|
|
17
|
+
tokenize(node, context, logger) {
|
|
18
|
+
super.tokenize(node, context, logger);
|
|
19
|
+
context.startPerformance("attributeExtraction");
|
|
20
|
+
const attributes = this.extractAttributes(node.markup);
|
|
21
|
+
for (const attr of attributes) {
|
|
22
|
+
node.scope.register(attr);
|
|
23
|
+
}
|
|
24
|
+
context.endPerformance("attributeExtraction");
|
|
25
|
+
}
|
|
26
|
+
extractAttributes(markup) {
|
|
27
|
+
const withoutTag = markup.replace(/^<[a-zA-Z][a-zA-Z0-9-]*\s*/, "");
|
|
28
|
+
let inSingle = false;
|
|
29
|
+
let inDouble = false;
|
|
30
|
+
let endIdx = withoutTag.length;
|
|
31
|
+
for (let i = 0; i < withoutTag.length; i++) {
|
|
32
|
+
const ch = withoutTag[i];
|
|
33
|
+
if (ch === '"' && !inSingle) inDouble = !inDouble;
|
|
34
|
+
else if (ch === "'" && !inDouble) inSingle = !inSingle;
|
|
35
|
+
else if (ch === ">" && !inSingle && !inDouble) {
|
|
36
|
+
endIdx = i;
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
const attrString = withoutTag.slice(0, endIdx).replace(/\s*\/?\s*$/, "").trim();
|
|
41
|
+
const results = [];
|
|
42
|
+
for (const match of attrString.matchAll(this.ATTR_PATTERN)) {
|
|
43
|
+
const raw = match[0];
|
|
44
|
+
const full = match[1];
|
|
45
|
+
if (!full) continue;
|
|
46
|
+
const value = match[2] ?? match[3] ?? match[4] ?? "true";
|
|
47
|
+
const prefix = full[0];
|
|
48
|
+
const isSpecial = prefix === ":" || prefix === "@" || prefix === "$";
|
|
49
|
+
const name = isSpecial ? full.slice(1) : full;
|
|
50
|
+
const meta = { name, content: value, raw, prefix: isSpecial ? prefix : "" };
|
|
51
|
+
if (prefix === ":") results.push(new AreBindingAttribute(meta));
|
|
52
|
+
else if (prefix === "@") results.push(new AreEventAttribute(meta));
|
|
53
|
+
else if (prefix === "$") results.push(new AreDirectiveAttribute(meta));
|
|
54
|
+
else results.push(new AreStaticAttribute(meta));
|
|
55
|
+
}
|
|
56
|
+
return results;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
__decorateClass([
|
|
60
|
+
A_Feature.Extend({
|
|
61
|
+
name: AreNodeFeatures.onTokenize,
|
|
62
|
+
scope: [AreComponentNode, AreRootNode]
|
|
63
|
+
}),
|
|
64
|
+
__decorateParam(0, A_Inject(A_Caller)),
|
|
65
|
+
__decorateParam(1, A_Inject(AreContext)),
|
|
66
|
+
__decorateParam(2, A_Inject(A_Logger))
|
|
67
|
+
], AreHTMLTokenizer.prototype, "tokenize", 1);
|
|
68
|
+
|
|
69
|
+
export { AreHTMLTokenizer };
|
|
70
|
+
//# sourceMappingURL=AreHTML.tokenizer.mjs.map
|
|
71
|
+
//# sourceMappingURL=AreHTML.tokenizer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/engine/AreHTML.tokenizer.ts"],"names":[],"mappings":"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","file":"AreHTML.tokenizer.mjs","sourcesContent":["import { A_Caller, A_Feature, A_Inject } from \"@adaas/a-concept\";\nimport { A_Logger } from \"@adaas/a-utils/a-logger\";\nimport { AreNodeFeatures, AreNode, AreTokenizer, AreAttribute_Init, AreContext } from \"@adaas/are\";\nimport { AreComponentNode } from \"@adaas/are-html/nodes/AreComponent\";\nimport { AreRootNode } from \"@adaas/are-html/nodes/AreRoot\";\nimport { AreDirectiveAttribute } from \"@adaas/are-html/attributes/AreDirective.attribute\";\nimport { AreEventAttribute } from \"@adaas/are-html/attributes/AreEvent.attribute\";\nimport { AreBindingAttribute } from \"@adaas/are-html/attributes/AreBinding.attribute\";\nimport { AreStaticAttribute } from \"@adaas/are-html/attributes/AreStatic.attribute\";\nimport { AreHTMLAttribute } from \"../lib/AreHTMLAttribute/AreHTML.attribute\";\n\n\nexport class AreHTMLTokenizer extends AreTokenizer {\n\n ATTR_PATTERN = /([$:@]?[\\w-]+)(?:\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\\s>/\"'=]+)))?/g\n\n\n @A_Feature.Extend({\n name: AreNodeFeatures.onTokenize,\n scope: [AreComponentNode, AreRootNode]\n })\n tokenize(\n @A_Inject(A_Caller) node: AreNode,\n @A_Inject(AreContext) context: AreContext,\n @A_Inject(A_Logger) logger?: A_Logger\n ): void {\n\n super.tokenize(node, context, logger);\n\n context.startPerformance('attributeExtraction');\n\n const attributes = this.extractAttributes(node.markup);\n\n for (const attr of attributes) {\n node.scope.register(attr);\n }\n\n context.endPerformance('attributeExtraction');\n }\n\n\n\n extractAttributes(markup: string): AreHTMLAttribute[] {\n // Strip the tag name, then remove the closing > that is NOT inside quotes\n const withoutTag = markup.replace(/^<[a-zA-Z][a-zA-Z0-9-]*\\s*/, '')\n\n // Walk the string to find the closing > that isn't inside a quoted value\n let inSingle = false\n let inDouble = false\n let endIdx = withoutTag.length\n\n for (let i = 0; i < withoutTag.length; i++) {\n const ch = withoutTag[i]\n if (ch === '\"' && !inSingle) inDouble = !inDouble\n else if (ch === \"'\" && !inDouble) inSingle = !inSingle\n else if (ch === '>' && !inSingle && !inDouble) {\n endIdx = i\n break\n }\n }\n\n const attrString = withoutTag.slice(0, endIdx).replace(/\\s*\\/?\\s*$/, '').trim()\n\n const results: AreHTMLAttribute[] = []\n\n for (const match of attrString.matchAll(this.ATTR_PATTERN)) {\n const raw = match[0]\n const full = match[1] // e.g. ':class', '@click', '$for', 'id'\n\n // skip zero-length or name-less regex matches\n if (!full) continue\n\n const value = match[2] ?? match[3] ?? match[4] ?? 'true'\n\n const prefix = full[0]\n const isSpecial = prefix === ':' || prefix === '@' || prefix === '$'\n const name = isSpecial ? full.slice(1) : full\n\n const meta: AreAttribute_Init = { name, content: value, raw, prefix: isSpecial ? prefix : '' }\n\n if (prefix === ':') results.push(new AreBindingAttribute(meta))\n else if (prefix === '@') results.push(new AreEventAttribute(meta))\n else if (prefix === '$') results.push(new AreDirectiveAttribute(meta))\n else results.push(new AreStaticAttribute(meta))\n }\n\n return results\n }\n\n}"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { A_Feature } from '@adaas/a-concept';
|
|
2
|
+
import { A_Logger } from '@adaas/a-utils/a-logger';
|
|
3
|
+
import { AreTransformer, AreStore } from '@adaas/are';
|
|
4
|
+
import { b as AreDirectiveAttribute } from '../AreBinding.attribute-C6qrxN8K.mjs';
|
|
5
|
+
import '../lib/AreStyle/AreStyle.context.mjs';
|
|
6
|
+
|
|
7
|
+
declare class AreHTMLTransformer extends AreTransformer {
|
|
8
|
+
transformDirectiveAttribute(directive: AreDirectiveAttribute, store: AreStore, feature: A_Feature, logger?: A_Logger, ...args: any[]): void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { AreHTMLTransformer };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { A_Feature } from '@adaas/a-concept';
|
|
2
|
+
import { A_Logger } from '@adaas/a-utils/a-logger';
|
|
3
|
+
import { AreTransformer, AreStore } from '@adaas/are';
|
|
4
|
+
import { b as AreDirectiveAttribute } from '../AreBinding.attribute-C6JasbJL.js';
|
|
5
|
+
import '../lib/AreStyle/AreStyle.context.js';
|
|
6
|
+
|
|
7
|
+
declare class AreHTMLTransformer extends AreTransformer {
|
|
8
|
+
transformDirectiveAttribute(directive: AreDirectiveAttribute, store: AreStore, feature: A_Feature, logger?: A_Logger, ...args: any[]): void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { AreHTMLTransformer };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var aConcept = require('@adaas/a-concept');
|
|
4
|
+
var aLogger = require('@adaas/a-utils/a-logger');
|
|
5
|
+
var are = require('@adaas/are');
|
|
6
|
+
var AreDirective_attribute = require('@adaas/are-html/attributes/AreDirective.attribute');
|
|
7
|
+
var AreDirective_constants = require('@adaas/are-html/directive/AreDirective.constants');
|
|
8
|
+
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
+
var result = __getOwnPropDesc(target, key) ;
|
|
13
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
+
if (decorator = decorators[i])
|
|
15
|
+
result = (decorator(target, key, result) ) || result;
|
|
16
|
+
if (result) __defProp(target, key, result);
|
|
17
|
+
return result;
|
|
18
|
+
};
|
|
19
|
+
var __decorateParam = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
20
|
+
class AreHTMLTransformer extends are.AreTransformer {
|
|
21
|
+
transformDirectiveAttribute(directive, store, feature, logger, ...args) {
|
|
22
|
+
store.watch(directive);
|
|
23
|
+
if (directive.component) {
|
|
24
|
+
feature.chain(directive.component, AreDirective_constants.AreDirectiveFeatures.Transform, directive.owner.scope);
|
|
25
|
+
} else {
|
|
26
|
+
logger?.warning(`Directive handler component not found for directive: ${directive.name}. Make sure to create a component named "AreDirective${aConcept.A_FormatterHelper.toPascalCase(directive.name)}" to handle this directive.`);
|
|
27
|
+
}
|
|
28
|
+
store.unwatch(directive);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
__decorateClass([
|
|
32
|
+
aConcept.A_Feature.Extend({
|
|
33
|
+
name: are.AreAttributeFeatures.Transform,
|
|
34
|
+
scope: [AreDirective_attribute.AreDirectiveAttribute]
|
|
35
|
+
}),
|
|
36
|
+
__decorateParam(0, aConcept.A_Inject(aConcept.A_Caller)),
|
|
37
|
+
__decorateParam(1, aConcept.A_Inject(are.AreStore)),
|
|
38
|
+
__decorateParam(2, aConcept.A_Inject(aConcept.A_Feature)),
|
|
39
|
+
__decorateParam(3, aConcept.A_Inject(aLogger.A_Logger))
|
|
40
|
+
], AreHTMLTransformer.prototype, "transformDirectiveAttribute");
|
|
41
|
+
|
|
42
|
+
exports.AreHTMLTransformer = AreHTMLTransformer;
|
|
43
|
+
//# sourceMappingURL=AreHTML.transformer.js.map
|
|
44
|
+
//# sourceMappingURL=AreHTML.transformer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/engine/AreHTML.transformer.ts"],"names":["AreTransformer","AreDirectiveFeatures","A_FormatterHelper","A_Feature","AreAttributeFeatures","AreDirectiveAttribute","A_Caller","AreStore","A_Logger"],"mappings":";;;;;;;;;;;;;;;;;;;AAOO,MAAM,2BAA2BA,kBAAA,CAAe;AAAA,EAMnD,2BAAA,CACwB,SAAA,EACA,KAAA,EACC,OAAA,EACD,WACjB,IAAA,EACL;AACE,IAAA,KAAA,CAAM,MAAM,SAAS,CAAA;AAQrB,IAAA,IAAI,UAAU,SAAA,EAAW;AACrB,MAAA,OAAA,CAAQ,MAAM,SAAA,CAAU,SAAA,EAAWC,4CAAqB,SAAA,EAAW,SAAA,CAAU,MAAM,KAAK,CAAA;AAAA,IAC5F,CAAA,MAAO;AACH,MAAA,MAAA,EAAQ,OAAA,CAAQ,CAAA,qDAAA,EAAwD,SAAA,CAAU,IAAI,CAAA,qDAAA,EAAwDC,2BAAkB,YAAA,CAAa,SAAA,CAAU,IAAI,CAAC,CAAA,2BAAA,CAA6B,CAAA;AAAA,IAC7N;AAEA,IAAA,KAAA,CAAM,QAAQ,SAAS,CAAA;AAAA,EAC3B;AACJ;AAvBI,eAAA,CAAA;AAAA,EAJCC,mBAAU,MAAA,CAAO;AAAA,IACd,MAAMC,wBAAA,CAAqB,SAAA;AAAA,IAC3B,KAAA,EAAO,CAACC,4CAAqB;AAAA,GAChC,CAAA;AAAA,EAEI,qCAASC,iBAAQ,CAAA,CAAA;AAAA,EACjB,qCAASC,YAAQ,CAAA,CAAA;AAAA,EACjB,qCAASJ,kBAAS,CAAA,CAAA;AAAA,EAClB,qCAASK,gBAAQ,CAAA;AAAA,CAAA,EAVb,kBAAA,CAMT,SAAA,EAAA,6BAAA,CAAA","file":"AreHTML.transformer.js","sourcesContent":["import { A_Caller, A_Feature, A_FormatterHelper, A_Inject, A_Scope } from \"@adaas/a-concept\";\nimport { A_Logger } from \"@adaas/a-utils/a-logger\";\nimport { AreAttributeFeatures, AreTransformer, AreStore } from \"@adaas/are\";\nimport { AreDirectiveAttribute } from \"@adaas/are-html/attributes/AreDirective.attribute\";\nimport { AreDirectiveFeatures } from \"@adaas/are-html/directive/AreDirective.constants\";\n\n\nexport class AreHTMLTransformer extends AreTransformer {\n\n @A_Feature.Extend({\n name: AreAttributeFeatures.Transform,\n scope: [AreDirectiveAttribute],\n })\n transformDirectiveAttribute(\n @A_Inject(A_Caller) directive: AreDirectiveAttribute,\n @A_Inject(AreStore) store: AreStore,\n @A_Inject(A_Feature) feature: A_Feature,\n @A_Inject(A_Logger) logger?: A_Logger,\n ...args: any[]\n ) {\n store.watch(directive);\n\n /**\n * 3. If the attribute is a directive, then we should find a component that is responsible for\n * the directive compiling logic, and call it. \n * In case component is not found we just want to log a warning, \n * since the directive may be handled by some parent component or simply is a mistake in the template.\n */\n if (directive.component) {\n feature.chain(directive.component, AreDirectiveFeatures.Transform, directive.owner.scope);\n } else {\n logger?.warning(`Directive handler component not found for directive: ${directive.name}. Make sure to create a component named \"AreDirective${A_FormatterHelper.toPascalCase(directive.name)}\" to handle this directive.`);\n }\n\n store.unwatch(directive);\n }\n}"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __decorateClass, __decorateParam } from '../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { A_Feature, A_Inject, A_Caller, A_FormatterHelper } from '@adaas/a-concept';
|
|
3
|
+
import { A_Logger } from '@adaas/a-utils/a-logger';
|
|
4
|
+
import { AreAttributeFeatures, AreStore, AreTransformer } from '@adaas/are';
|
|
5
|
+
import { AreDirectiveAttribute } from '@adaas/are-html/attributes/AreDirective.attribute';
|
|
6
|
+
import { AreDirectiveFeatures } from '@adaas/are-html/directive/AreDirective.constants';
|
|
7
|
+
|
|
8
|
+
class AreHTMLTransformer extends AreTransformer {
|
|
9
|
+
transformDirectiveAttribute(directive, store, feature, logger, ...args) {
|
|
10
|
+
store.watch(directive);
|
|
11
|
+
if (directive.component) {
|
|
12
|
+
feature.chain(directive.component, AreDirectiveFeatures.Transform, directive.owner.scope);
|
|
13
|
+
} else {
|
|
14
|
+
logger?.warning(`Directive handler component not found for directive: ${directive.name}. Make sure to create a component named "AreDirective${A_FormatterHelper.toPascalCase(directive.name)}" to handle this directive.`);
|
|
15
|
+
}
|
|
16
|
+
store.unwatch(directive);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
__decorateClass([
|
|
20
|
+
A_Feature.Extend({
|
|
21
|
+
name: AreAttributeFeatures.Transform,
|
|
22
|
+
scope: [AreDirectiveAttribute]
|
|
23
|
+
}),
|
|
24
|
+
__decorateParam(0, A_Inject(A_Caller)),
|
|
25
|
+
__decorateParam(1, A_Inject(AreStore)),
|
|
26
|
+
__decorateParam(2, A_Inject(A_Feature)),
|
|
27
|
+
__decorateParam(3, A_Inject(A_Logger))
|
|
28
|
+
], AreHTMLTransformer.prototype, "transformDirectiveAttribute", 1);
|
|
29
|
+
|
|
30
|
+
export { AreHTMLTransformer };
|
|
31
|
+
//# sourceMappingURL=AreHTML.transformer.mjs.map
|
|
32
|
+
//# sourceMappingURL=AreHTML.transformer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/engine/AreHTML.transformer.ts"],"names":[],"mappings":";;;;;;;AAOO,MAAM,2BAA2B,cAAA,CAAe;AAAA,EAMnD,2BAAA,CACwB,SAAA,EACA,KAAA,EACC,OAAA,EACD,WACjB,IAAA,EACL;AACE,IAAA,KAAA,CAAM,MAAM,SAAS,CAAA;AAQrB,IAAA,IAAI,UAAU,SAAA,EAAW;AACrB,MAAA,OAAA,CAAQ,MAAM,SAAA,CAAU,SAAA,EAAW,qBAAqB,SAAA,EAAW,SAAA,CAAU,MAAM,KAAK,CAAA;AAAA,IAC5F,CAAA,MAAO;AACH,MAAA,MAAA,EAAQ,OAAA,CAAQ,CAAA,qDAAA,EAAwD,SAAA,CAAU,IAAI,CAAA,qDAAA,EAAwD,kBAAkB,YAAA,CAAa,SAAA,CAAU,IAAI,CAAC,CAAA,2BAAA,CAA6B,CAAA;AAAA,IAC7N;AAEA,IAAA,KAAA,CAAM,QAAQ,SAAS,CAAA;AAAA,EAC3B;AACJ;AAvBI,eAAA,CAAA;AAAA,EAJC,UAAU,MAAA,CAAO;AAAA,IACd,MAAM,oBAAA,CAAqB,SAAA;AAAA,IAC3B,KAAA,EAAO,CAAC,qBAAqB;AAAA,GAChC,CAAA;AAAA,EAEI,4BAAS,QAAQ,CAAA,CAAA;AAAA,EACjB,4BAAS,QAAQ,CAAA,CAAA;AAAA,EACjB,4BAAS,SAAS,CAAA,CAAA;AAAA,EAClB,4BAAS,QAAQ,CAAA;AAAA,CAAA,EAVb,kBAAA,CAMT,SAAA,EAAA,6BAAA,EAAA,CAAA,CAAA","file":"AreHTML.transformer.mjs","sourcesContent":["import { A_Caller, A_Feature, A_FormatterHelper, A_Inject, A_Scope } from \"@adaas/a-concept\";\nimport { A_Logger } from \"@adaas/a-utils/a-logger\";\nimport { AreAttributeFeatures, AreTransformer, AreStore } from \"@adaas/are\";\nimport { AreDirectiveAttribute } from \"@adaas/are-html/attributes/AreDirective.attribute\";\nimport { AreDirectiveFeatures } from \"@adaas/are-html/directive/AreDirective.constants\";\n\n\nexport class AreHTMLTransformer extends AreTransformer {\n\n @A_Feature.Extend({\n name: AreAttributeFeatures.Transform,\n scope: [AreDirectiveAttribute],\n })\n transformDirectiveAttribute(\n @A_Inject(A_Caller) directive: AreDirectiveAttribute,\n @A_Inject(AreStore) store: AreStore,\n @A_Inject(A_Feature) feature: A_Feature,\n @A_Inject(A_Logger) logger?: A_Logger,\n ...args: any[]\n ) {\n store.watch(directive);\n\n /**\n * 3. If the attribute is a directive, then we should find a component that is responsible for\n * the directive compiling logic, and call it. \n * In case component is not found we just want to log a warning, \n * since the directive may be handled by some parent component or simply is a mistake in the template.\n */\n if (directive.component) {\n feature.chain(directive.component, AreDirectiveFeatures.Transform, directive.owner.scope);\n } else {\n logger?.warning(`Directive handler component not found for directive: ${directive.name}. Make sure to create a component named \"AreDirective${A_FormatterHelper.toPascalCase(directive.name)}\" to handle this directive.`);\n }\n\n store.unwatch(directive);\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"AreHTML.types.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"AreHTML.types.mjs"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export { A as AreBindingAttribute, a as AreDirective, b as AreDirectiveAttribute, c as AreEventAttribute, d as AreHTMLAttribute, e as AreHTMLNode, f as AreStaticAttribute } from './AreBinding.attribute-C6qrxN8K.mjs';
|
|
2
|
+
export { AreDirectiveFor } from './directives/AreDirectiveFor.directive.mjs';
|
|
3
|
+
export { AreDirectiveIf } from './directives/AreDirectiveIf.directive.mjs';
|
|
4
|
+
export { AddAttributeInstruction } from './instructions/AddAttribute.instruction.mjs';
|
|
5
|
+
export { AddElementInstruction } from './instructions/AddElement.instruction.mjs';
|
|
6
|
+
export { AddInterpolationInstruction } from './instructions/AddInterpolation.instruction.mjs';
|
|
7
|
+
export { AddListenerInstruction } from './instructions/AddListener.instruction.mjs';
|
|
8
|
+
export { AddStyleInstruction } from './instructions/AddStyle.instruction.mjs';
|
|
9
|
+
export { AddTextInstruction } from './instructions/AddText.instruction.mjs';
|
|
10
|
+
export { AreHTMLInstructions } from './instructions/AreHTML.instructions.constants.mjs';
|
|
11
|
+
export { AreHtmlAddAttributeInstructionPayload, AreHtmlAddCommentInstructionPayload, AreHtmlAddElementInstructionPayload, AreHtmlAddInterpolationInstructionPayload, AreHtmlAddListenerInstructionPayload, AreHtmlAddStyleInstructionPayload, AreHtmlAddTextInstructionPayload } from './instructions/AreHTML.instructions.types.mjs';
|
|
12
|
+
export { AreComment } from './nodes/AreComment.mjs';
|
|
13
|
+
export { AreComponentNode } from './nodes/AreComponent.mjs';
|
|
14
|
+
export { AreInterpolation } from './nodes/AreInterpolation.mjs';
|
|
15
|
+
export { AreRootNode } from './nodes/AreRoot.mjs';
|
|
16
|
+
export { AreText } from './nodes/AreText.mjs';
|
|
17
|
+
export { AreRoute } from './signals/AreRoute.signal.mjs';
|
|
18
|
+
export { AreHTMLEngineContext } from './engine/AreHTML.context.mjs';
|
|
19
|
+
export { AreHTMLContextConstructor } from './engine/AreHTML.types.mjs';
|
|
20
|
+
export { AreHTMLCompiler } from './engine/AreHTML.compiler.mjs';
|
|
21
|
+
export { AreHTMLEngine } from './engine/AreHTML.engine.mjs';
|
|
22
|
+
export { AreHTMLInterpreter } from './engine/AreHTML.interpreter.mjs';
|
|
23
|
+
export { AreHTMLLifecycle } from './engine/AreHTML.lifecycle.mjs';
|
|
24
|
+
export { AreHTMLTokenizer } from './engine/AreHTML.tokenizer.mjs';
|
|
25
|
+
export { AreHTMLTransformer } from './engine/AreHTML.transformer.mjs';
|
|
26
|
+
export { AreDirectiveFeatures } from './lib/AreDirective/AreDirective.constants.mjs';
|
|
27
|
+
export { AreDirectiveContext } from './lib/AreDirective/AreDirective.context.mjs';
|
|
28
|
+
export { AreDirectiveMeta } from './lib/AreDirective/AreDirective.meta.mjs';
|
|
29
|
+
export { AreDirectiveOrderDecoratorParameters } from './lib/AreDirective/AreDirective.types.mjs';
|
|
30
|
+
export { AreRoot } from './lib/AreRoot/AreRoot.component.mjs';
|
|
31
|
+
export { AreStyle } from './lib/AreStyle/AreStyle.context.mjs';
|
|
32
|
+
export { AreWatcher } from './lib/AreWatcher/AreWatcher.component.mjs';
|
|
33
|
+
import '@adaas/are';
|
|
34
|
+
import '@adaas/a-concept';
|
|
35
|
+
import '@adaas/a-utils/a-logger';
|
|
36
|
+
import '@adaas/a-utils/a-route';
|
|
37
|
+
import '@adaas/a-utils/a-signal';
|
|
38
|
+
import './instructions/AddComment.instruction.mjs';
|
|
39
|
+
import '@adaas/a-utils/a-execution';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export { A as AreBindingAttribute, a as AreDirective, b as AreDirectiveAttribute, c as AreEventAttribute, d as AreHTMLAttribute, e as AreHTMLNode, f as AreStaticAttribute } from './AreBinding.attribute-C6JasbJL.js';
|
|
2
|
+
export { AreDirectiveFor } from './directives/AreDirectiveFor.directive.js';
|
|
3
|
+
export { AreDirectiveIf } from './directives/AreDirectiveIf.directive.js';
|
|
4
|
+
export { AddAttributeInstruction } from './instructions/AddAttribute.instruction.js';
|
|
5
|
+
export { AddElementInstruction } from './instructions/AddElement.instruction.js';
|
|
6
|
+
export { AddInterpolationInstruction } from './instructions/AddInterpolation.instruction.js';
|
|
7
|
+
export { AddListenerInstruction } from './instructions/AddListener.instruction.js';
|
|
8
|
+
export { AddStyleInstruction } from './instructions/AddStyle.instruction.js';
|
|
9
|
+
export { AddTextInstruction } from './instructions/AddText.instruction.js';
|
|
10
|
+
export { AreHTMLInstructions } from './instructions/AreHTML.instructions.constants.js';
|
|
11
|
+
export { AreHtmlAddAttributeInstructionPayload, AreHtmlAddCommentInstructionPayload, AreHtmlAddElementInstructionPayload, AreHtmlAddInterpolationInstructionPayload, AreHtmlAddListenerInstructionPayload, AreHtmlAddStyleInstructionPayload, AreHtmlAddTextInstructionPayload } from './instructions/AreHTML.instructions.types.js';
|
|
12
|
+
export { AreComment } from './nodes/AreComment.js';
|
|
13
|
+
export { AreComponentNode } from './nodes/AreComponent.js';
|
|
14
|
+
export { AreInterpolation } from './nodes/AreInterpolation.js';
|
|
15
|
+
export { AreRootNode } from './nodes/AreRoot.js';
|
|
16
|
+
export { AreText } from './nodes/AreText.js';
|
|
17
|
+
export { AreRoute } from './signals/AreRoute.signal.js';
|
|
18
|
+
export { AreHTMLEngineContext } from './engine/AreHTML.context.js';
|
|
19
|
+
export { AreHTMLContextConstructor } from './engine/AreHTML.types.js';
|
|
20
|
+
export { AreHTMLCompiler } from './engine/AreHTML.compiler.js';
|
|
21
|
+
export { AreHTMLEngine } from './engine/AreHTML.engine.js';
|
|
22
|
+
export { AreHTMLInterpreter } from './engine/AreHTML.interpreter.js';
|
|
23
|
+
export { AreHTMLLifecycle } from './engine/AreHTML.lifecycle.js';
|
|
24
|
+
export { AreHTMLTokenizer } from './engine/AreHTML.tokenizer.js';
|
|
25
|
+
export { AreHTMLTransformer } from './engine/AreHTML.transformer.js';
|
|
26
|
+
export { AreDirectiveFeatures } from './lib/AreDirective/AreDirective.constants.js';
|
|
27
|
+
export { AreDirectiveContext } from './lib/AreDirective/AreDirective.context.js';
|
|
28
|
+
export { AreDirectiveMeta } from './lib/AreDirective/AreDirective.meta.js';
|
|
29
|
+
export { AreDirectiveOrderDecoratorParameters } from './lib/AreDirective/AreDirective.types.js';
|
|
30
|
+
export { AreRoot } from './lib/AreRoot/AreRoot.component.js';
|
|
31
|
+
export { AreStyle } from './lib/AreStyle/AreStyle.context.js';
|
|
32
|
+
export { AreWatcher } from './lib/AreWatcher/AreWatcher.component.js';
|
|
33
|
+
import '@adaas/are';
|
|
34
|
+
import '@adaas/a-concept';
|
|
35
|
+
import '@adaas/a-utils/a-logger';
|
|
36
|
+
import '@adaas/a-utils/a-route';
|
|
37
|
+
import '@adaas/a-utils/a-signal';
|
|
38
|
+
import './instructions/AddComment.instruction.js';
|
|
39
|
+
import '@adaas/a-utils/a-execution';
|