@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,10 @@
|
|
|
1
|
+
import { AreNodeNewProps } from '@adaas/are';
|
|
2
|
+
import { e as AreHTMLNode } from '../AreBinding.attribute-C6JasbJL.js';
|
|
3
|
+
import '@adaas/a-concept';
|
|
4
|
+
import '../lib/AreStyle/AreStyle.context.js';
|
|
5
|
+
|
|
6
|
+
declare class AreInterpolation extends AreHTMLNode {
|
|
7
|
+
fromNew(newEntity: AreNodeNewProps): void;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { AreInterpolation };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var node = require('@adaas/are-html/node');
|
|
4
|
+
|
|
5
|
+
class AreInterpolation extends node.AreHTMLNode {
|
|
6
|
+
fromNew(newEntity) {
|
|
7
|
+
super.fromNew({
|
|
8
|
+
...newEntity,
|
|
9
|
+
payload: {
|
|
10
|
+
...newEntity.payload || {},
|
|
11
|
+
entity: "are-interpolation"
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.AreInterpolation = AreInterpolation;
|
|
18
|
+
//# sourceMappingURL=AreInterpolation.js.map
|
|
19
|
+
//# sourceMappingURL=AreInterpolation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreInterpolation.ts"],"names":["AreHTMLNode"],"mappings":";;;;AAIO,MAAM,yBAAyBA,gBAAA,CAAY;AAAA,EAE1C,QAAQ,SAAA,EAAkC;AACtC,IAAA,KAAA,CAAM,OAAA,CAAQ;AAAA,MACV,GAAG,SAAA;AAAA,MACH,OAAA,EAAQ;AAAA,QACJ,GAAI,SAAA,CAAU,OAAA,IAAW,EAAC;AAAA,QAC1B,MAAA,EAAQ;AAAA;AACZ,KACH,CAAA;AAAA,EACL;AACR","file":"AreInterpolation.js","sourcesContent":["import { AreNodeNewProps } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\n\n\nexport class AreInterpolation extends AreHTMLNode {\n\n fromNew(newEntity: AreNodeNewProps): void {\n super.fromNew({\n ...newEntity,\n payload:{\n ...(newEntity.payload || {}),\n entity: 'are-interpolation',\n }\n });\n }\n}"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import '../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { AreHTMLNode } from '@adaas/are-html/node';
|
|
3
|
+
|
|
4
|
+
class AreInterpolation extends AreHTMLNode {
|
|
5
|
+
fromNew(newEntity) {
|
|
6
|
+
super.fromNew({
|
|
7
|
+
...newEntity,
|
|
8
|
+
payload: {
|
|
9
|
+
...newEntity.payload || {},
|
|
10
|
+
entity: "are-interpolation"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { AreInterpolation };
|
|
17
|
+
//# sourceMappingURL=AreInterpolation.mjs.map
|
|
18
|
+
//# sourceMappingURL=AreInterpolation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreInterpolation.ts"],"names":[],"mappings":";;;AAIO,MAAM,yBAAyB,WAAA,CAAY;AAAA,EAE1C,QAAQ,SAAA,EAAkC;AACtC,IAAA,KAAA,CAAM,OAAA,CAAQ;AAAA,MACV,GAAG,SAAA;AAAA,MACH,OAAA,EAAQ;AAAA,QACJ,GAAI,SAAA,CAAU,OAAA,IAAW,EAAC;AAAA,QAC1B,MAAA,EAAQ;AAAA;AACZ,KACH,CAAA;AAAA,EACL;AACR","file":"AreInterpolation.mjs","sourcesContent":["import { AreNodeNewProps } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\n\n\nexport class AreInterpolation extends AreHTMLNode {\n\n fromNew(newEntity: AreNodeNewProps): void {\n super.fromNew({\n ...newEntity,\n payload:{\n ...(newEntity.payload || {}),\n entity: 'are-interpolation',\n }\n });\n }\n}"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Are } from '@adaas/are';
|
|
2
|
+
import { e as AreHTMLNode } from '../AreBinding.attribute-C6qrxN8K.mjs';
|
|
3
|
+
import '@adaas/a-concept';
|
|
4
|
+
import '../lib/AreStyle/AreStyle.context.mjs';
|
|
5
|
+
|
|
6
|
+
declare class AreRootNode extends AreHTMLNode {
|
|
7
|
+
/**
|
|
8
|
+
* For the root node, we can default to a generic container element like <div> since it serves as the root of the component tree and does not correspond to a specific HTML tag defined in the markup. The actual content and structure of the root node will be determined by the child nodes and components that are rendered within it, allowing for flexibility in how the root node is used and what it contains.
|
|
9
|
+
*/
|
|
10
|
+
get tag(): string;
|
|
11
|
+
/**
|
|
12
|
+
* A custom component associated with this node, which can be used to provide custom logic and behavior for the node. This component is typically defined in the context and can be resolved based on the node's type or other identifying information. The component can include its own template, markup, styles, and features that are specific to the functionality it provides.
|
|
13
|
+
*
|
|
14
|
+
* Example: If the node type is "custom-component", the corresponding component would be resolved from the context and can be used to provide custom rendering and behavior for nodes of that type.
|
|
15
|
+
*
|
|
16
|
+
* [!] Note: The component is optional and may not be defined for all nodes. If no component is associated with the node, it will be treated as a standard HTML element or a basic node without custom logic.
|
|
17
|
+
*/
|
|
18
|
+
get component(): Are | undefined;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { AreRootNode };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Are } from '@adaas/are';
|
|
2
|
+
import { e as AreHTMLNode } from '../AreBinding.attribute-C6JasbJL.js';
|
|
3
|
+
import '@adaas/a-concept';
|
|
4
|
+
import '../lib/AreStyle/AreStyle.context.js';
|
|
5
|
+
|
|
6
|
+
declare class AreRootNode extends AreHTMLNode {
|
|
7
|
+
/**
|
|
8
|
+
* For the root node, we can default to a generic container element like <div> since it serves as the root of the component tree and does not correspond to a specific HTML tag defined in the markup. The actual content and structure of the root node will be determined by the child nodes and components that are rendered within it, allowing for flexibility in how the root node is used and what it contains.
|
|
9
|
+
*/
|
|
10
|
+
get tag(): string;
|
|
11
|
+
/**
|
|
12
|
+
* A custom component associated with this node, which can be used to provide custom logic and behavior for the node. This component is typically defined in the context and can be resolved based on the node's type or other identifying information. The component can include its own template, markup, styles, and features that are specific to the functionality it provides.
|
|
13
|
+
*
|
|
14
|
+
* Example: If the node type is "custom-component", the corresponding component would be resolved from the context and can be used to provide custom rendering and behavior for nodes of that type.
|
|
15
|
+
*
|
|
16
|
+
* [!] Note: The component is optional and may not be defined for all nodes. If no component is associated with the node, it will be treated as a standard HTML element or a basic node without custom logic.
|
|
17
|
+
*/
|
|
18
|
+
get component(): Are | undefined;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { AreRootNode };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var aConcept = require('@adaas/a-concept');
|
|
4
|
+
var aFrame = require('@adaas/a-frame');
|
|
5
|
+
var node = require('@adaas/are-html/node');
|
|
6
|
+
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
|
+
if (decorator = decorators[i])
|
|
12
|
+
result = (decorator(result)) || result;
|
|
13
|
+
return result;
|
|
14
|
+
};
|
|
15
|
+
exports.AreRootNode = class AreRootNode extends node.AreHTMLNode {
|
|
16
|
+
/**
|
|
17
|
+
* For the root node, we can default to a generic container element like <div> since it serves as the root of the component tree and does not correspond to a specific HTML tag defined in the markup. The actual content and structure of the root node will be determined by the child nodes and components that are rendered within it, allowing for flexibility in how the root node is used and what it contains.
|
|
18
|
+
*/
|
|
19
|
+
get tag() {
|
|
20
|
+
return "div";
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A custom component associated with this node, which can be used to provide custom logic and behavior for the node. This component is typically defined in the context and can be resolved based on the node's type or other identifying information. The component can include its own template, markup, styles, and features that are specific to the functionality it provides.
|
|
24
|
+
*
|
|
25
|
+
* Example: If the node type is "custom-component", the corresponding component would be resolved from the context and can be used to provide custom rendering and behavior for nodes of that type.
|
|
26
|
+
*
|
|
27
|
+
* [!] Note: The component is optional and may not be defined for all nodes. If no component is associated with the node, it will be treated as a standard HTML element or a basic node without custom logic.
|
|
28
|
+
*/
|
|
29
|
+
get component() {
|
|
30
|
+
return this.scope.resolve(aConcept.A_FormatterHelper.toPascalCase(this.aseid.entity));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.AreRootNode = __decorateClass([
|
|
34
|
+
aFrame.A_Frame.Entity({
|
|
35
|
+
namespace: "A-ARE",
|
|
36
|
+
name: "AreRootNode",
|
|
37
|
+
description: "AreRootNode represents the root node in the scene graph. It extends the base AreHTMLNode and includes additional properties and methods specific to the root node, such as handling the root element and its associated component."
|
|
38
|
+
})
|
|
39
|
+
], exports.AreRootNode);
|
|
40
|
+
//# sourceMappingURL=AreRoot.js.map
|
|
41
|
+
//# sourceMappingURL=AreRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreRoot.ts"],"names":["AreRootNode","AreHTMLNode","A_FormatterHelper","A_Frame"],"mappings":";;;;;;;;;;;;;;AAWaA,mBAAA,GAAN,0BAA0BC,gBAAA,CAAY;AAAA;AAAA;AAAA;AAAA,EAIzC,IAAI,GAAA,GAAc;AACd,IAAA,OAAO,KAAA;AAAA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,IAAI,SAAA,GAA6B;AAC7B,IAAA,OAAO,IAAA,CAAK,MAAM,OAAA,CAAaC,0BAAA,CAAkB,aAAa,IAAA,CAAK,KAAA,CAAM,MAAM,CAAC,CAAA;AAAA,EACpF;AACJ;AAjBaF,mBAAA,GAAN,eAAA,CAAA;AAAA,EALNG,eAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,OAAA;AAAA,IACX,IAAA,EAAM,aAAA;AAAA,IACN,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYH,mBAAA,CAAA","file":"AreRoot.js","sourcesContent":["import { A_FormatterHelper, } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame\";\nimport { Are } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\n\n\n@A_Frame.Entity({\n namespace: 'A-ARE',\n name: 'AreRootNode',\n description: 'AreRootNode represents the root node in the scene graph. It extends the base AreHTMLNode and includes additional properties and methods specific to the root node, such as handling the root element and its associated component.'\n})\nexport class AreRootNode extends AreHTMLNode {\n /**\n * For the root node, we can default to a generic container element like <div> since it serves as the root of the component tree and does not correspond to a specific HTML tag defined in the markup. The actual content and structure of the root node will be determined by the child nodes and components that are rendered within it, allowing for flexibility in how the root node is used and what it contains.\n */\n get tag(): string {\n return 'div';\n }\n /**\n * A custom component associated with this node, which can be used to provide custom logic and behavior for the node. This component is typically defined in the context and can be resolved based on the node's type or other identifying information. The component can include its own template, markup, styles, and features that are specific to the functionality it provides.\n * \n * Example: If the node type is \"custom-component\", the corresponding component would be resolved from the context and can be used to provide custom rendering and behavior for nodes of that type.\n * \n * [!] Note: The component is optional and may not be defined for all nodes. If no component is associated with the node, it will be treated as a standard HTML element or a basic node without custom logic.\n */\n get component(): Are | undefined {\n return this.scope.resolve<Are>(A_FormatterHelper.toPascalCase(this.aseid.entity)) as Are | undefined;\n }\n}"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { __decorateClass } from '../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { A_FormatterHelper } from '@adaas/a-concept';
|
|
3
|
+
import { A_Frame } from '@adaas/a-frame';
|
|
4
|
+
import { AreHTMLNode } from '@adaas/are-html/node';
|
|
5
|
+
|
|
6
|
+
let AreRootNode = class extends AreHTMLNode {
|
|
7
|
+
/**
|
|
8
|
+
* For the root node, we can default to a generic container element like <div> since it serves as the root of the component tree and does not correspond to a specific HTML tag defined in the markup. The actual content and structure of the root node will be determined by the child nodes and components that are rendered within it, allowing for flexibility in how the root node is used and what it contains.
|
|
9
|
+
*/
|
|
10
|
+
get tag() {
|
|
11
|
+
return "div";
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A custom component associated with this node, which can be used to provide custom logic and behavior for the node. This component is typically defined in the context and can be resolved based on the node's type or other identifying information. The component can include its own template, markup, styles, and features that are specific to the functionality it provides.
|
|
15
|
+
*
|
|
16
|
+
* Example: If the node type is "custom-component", the corresponding component would be resolved from the context and can be used to provide custom rendering and behavior for nodes of that type.
|
|
17
|
+
*
|
|
18
|
+
* [!] Note: The component is optional and may not be defined for all nodes. If no component is associated with the node, it will be treated as a standard HTML element or a basic node without custom logic.
|
|
19
|
+
*/
|
|
20
|
+
get component() {
|
|
21
|
+
return this.scope.resolve(A_FormatterHelper.toPascalCase(this.aseid.entity));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
AreRootNode = __decorateClass([
|
|
25
|
+
A_Frame.Entity({
|
|
26
|
+
namespace: "A-ARE",
|
|
27
|
+
name: "AreRootNode",
|
|
28
|
+
description: "AreRootNode represents the root node in the scene graph. It extends the base AreHTMLNode and includes additional properties and methods specific to the root node, such as handling the root element and its associated component."
|
|
29
|
+
})
|
|
30
|
+
], AreRootNode);
|
|
31
|
+
|
|
32
|
+
export { AreRootNode };
|
|
33
|
+
//# sourceMappingURL=AreRoot.mjs.map
|
|
34
|
+
//# sourceMappingURL=AreRoot.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreRoot.ts"],"names":[],"mappings":";;;;;AAWO,IAAM,WAAA,GAAN,cAA0B,WAAA,CAAY;AAAA;AAAA;AAAA;AAAA,EAIzC,IAAI,GAAA,GAAc;AACd,IAAA,OAAO,KAAA;AAAA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,IAAI,SAAA,GAA6B;AAC7B,IAAA,OAAO,IAAA,CAAK,MAAM,OAAA,CAAa,iBAAA,CAAkB,aAAa,IAAA,CAAK,KAAA,CAAM,MAAM,CAAC,CAAA;AAAA,EACpF;AACJ;AAjBa,WAAA,GAAN,eAAA,CAAA;AAAA,EALN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,OAAA;AAAA,IACX,IAAA,EAAM,aAAA;AAAA,IACN,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,WAAA,CAAA","file":"AreRoot.mjs","sourcesContent":["import { A_FormatterHelper, } from \"@adaas/a-concept\";\nimport { A_Frame } from \"@adaas/a-frame\";\nimport { Are } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\n\n\n@A_Frame.Entity({\n namespace: 'A-ARE',\n name: 'AreRootNode',\n description: 'AreRootNode represents the root node in the scene graph. It extends the base AreHTMLNode and includes additional properties and methods specific to the root node, such as handling the root element and its associated component.'\n})\nexport class AreRootNode extends AreHTMLNode {\n /**\n * For the root node, we can default to a generic container element like <div> since it serves as the root of the component tree and does not correspond to a specific HTML tag defined in the markup. The actual content and structure of the root node will be determined by the child nodes and components that are rendered within it, allowing for flexibility in how the root node is used and what it contains.\n */\n get tag(): string {\n return 'div';\n }\n /**\n * A custom component associated with this node, which can be used to provide custom logic and behavior for the node. This component is typically defined in the context and can be resolved based on the node's type or other identifying information. The component can include its own template, markup, styles, and features that are specific to the functionality it provides.\n * \n * Example: If the node type is \"custom-component\", the corresponding component would be resolved from the context and can be used to provide custom rendering and behavior for nodes of that type.\n * \n * [!] Note: The component is optional and may not be defined for all nodes. If no component is associated with the node, it will be treated as a standard HTML element or a basic node without custom logic.\n */\n get component(): Are | undefined {\n return this.scope.resolve<Are>(A_FormatterHelper.toPascalCase(this.aseid.entity)) as Are | undefined;\n }\n}"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AreNodeNewProps } from '@adaas/are';
|
|
2
|
+
import { e as AreHTMLNode } from '../AreBinding.attribute-C6qrxN8K.mjs';
|
|
3
|
+
import '@adaas/a-concept';
|
|
4
|
+
import '../lib/AreStyle/AreStyle.context.mjs';
|
|
5
|
+
|
|
6
|
+
declare class AreText extends AreHTMLNode {
|
|
7
|
+
fromNew(newEntity: AreNodeNewProps): void;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { AreText };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AreNodeNewProps } from '@adaas/are';
|
|
2
|
+
import { e as AreHTMLNode } from '../AreBinding.attribute-C6JasbJL.js';
|
|
3
|
+
import '@adaas/a-concept';
|
|
4
|
+
import '../lib/AreStyle/AreStyle.context.js';
|
|
5
|
+
|
|
6
|
+
declare class AreText extends AreHTMLNode {
|
|
7
|
+
fromNew(newEntity: AreNodeNewProps): void;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { AreText };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var node = require('@adaas/are-html/node');
|
|
4
|
+
|
|
5
|
+
class AreText extends node.AreHTMLNode {
|
|
6
|
+
fromNew(newEntity) {
|
|
7
|
+
super.fromNew({
|
|
8
|
+
...newEntity,
|
|
9
|
+
payload: {
|
|
10
|
+
...newEntity.payload || {},
|
|
11
|
+
entity: "are-text"
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.AreText = AreText;
|
|
18
|
+
//# sourceMappingURL=AreText.js.map
|
|
19
|
+
//# sourceMappingURL=AreText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreText.ts"],"names":["AreHTMLNode"],"mappings":";;;;AAIO,MAAM,gBAAgBA,gBAAA,CAAY;AAAA,EAGrC,QAAQ,SAAA,EAAkC;AACtC,IAAA,KAAA,CAAM,OAAA,CAAQ;AAAA,MACV,GAAG,SAAA;AAAA,MACH,OAAA,EAAS;AAAA,QACL,GAAI,SAAA,CAAU,OAAA,IAAW,EAAC;AAAA,QAC1B,MAAA,EAAQ;AAAA;AACZ,KACH,CAAA;AAAA,EACL;AACJ","file":"AreText.js","sourcesContent":["import { AreNodeNewProps } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\n\n\nexport class AreText extends AreHTMLNode {\n\n\n fromNew(newEntity: AreNodeNewProps): void {\n super.fromNew({\n ...newEntity,\n payload: {\n ...(newEntity.payload || {}),\n entity: 'are-text',\n }\n });\n }\n}"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import '../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { AreHTMLNode } from '@adaas/are-html/node';
|
|
3
|
+
|
|
4
|
+
class AreText extends AreHTMLNode {
|
|
5
|
+
fromNew(newEntity) {
|
|
6
|
+
super.fromNew({
|
|
7
|
+
...newEntity,
|
|
8
|
+
payload: {
|
|
9
|
+
...newEntity.payload || {},
|
|
10
|
+
entity: "are-text"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { AreText };
|
|
17
|
+
//# sourceMappingURL=AreText.mjs.map
|
|
18
|
+
//# sourceMappingURL=AreText.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/nodes/AreText.ts"],"names":[],"mappings":";;;AAIO,MAAM,gBAAgB,WAAA,CAAY;AAAA,EAGrC,QAAQ,SAAA,EAAkC;AACtC,IAAA,KAAA,CAAM,OAAA,CAAQ;AAAA,MACV,GAAG,SAAA;AAAA,MACH,OAAA,EAAS;AAAA,QACL,GAAI,SAAA,CAAU,OAAA,IAAW,EAAC;AAAA,QAC1B,MAAA,EAAQ;AAAA;AACZ,KACH,CAAA;AAAA,EACL;AACJ","file":"AreText.mjs","sourcesContent":["import { AreNodeNewProps } from \"@adaas/are\";\nimport { AreHTMLNode } from \"@adaas/are-html/node\";\n\n\nexport class AreText extends AreHTMLNode {\n\n\n fromNew(newEntity: AreNodeNewProps): void {\n super.fromNew({\n ...newEntity,\n payload: {\n ...(newEntity.payload || {}),\n entity: 'are-text',\n }\n });\n }\n}"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { A_Route } from '@adaas/a-utils/a-route';
|
|
2
|
+
import { A_Signal } from '@adaas/a-utils/a-signal';
|
|
3
|
+
import { AreSignal } from '@adaas/are';
|
|
4
|
+
|
|
5
|
+
declare class AreRoute extends AreSignal<A_Route> {
|
|
6
|
+
constructor(path: string | RegExp);
|
|
7
|
+
get route(): A_Route;
|
|
8
|
+
static default(): AreRoute | undefined;
|
|
9
|
+
compare(other: A_Signal<A_Route>): boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { AreRoute };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { A_Route } from '@adaas/a-utils/a-route';
|
|
2
|
+
import { A_Signal } from '@adaas/a-utils/a-signal';
|
|
3
|
+
import { AreSignal } from '@adaas/are';
|
|
4
|
+
|
|
5
|
+
declare class AreRoute extends AreSignal<A_Route> {
|
|
6
|
+
constructor(path: string | RegExp);
|
|
7
|
+
get route(): A_Route;
|
|
8
|
+
static default(): AreRoute | undefined;
|
|
9
|
+
compare(other: A_Signal<A_Route>): boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { AreRoute };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var aRoute = require('@adaas/a-utils/a-route');
|
|
4
|
+
var are = require('@adaas/are');
|
|
5
|
+
|
|
6
|
+
class AreRoute extends are.AreSignal {
|
|
7
|
+
constructor(path) {
|
|
8
|
+
super({
|
|
9
|
+
data: new aRoute.A_Route(path)
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
get route() {
|
|
13
|
+
return this.data;
|
|
14
|
+
}
|
|
15
|
+
static default() {
|
|
16
|
+
return new AreRoute(document.location.pathname || "/");
|
|
17
|
+
}
|
|
18
|
+
compare(other) {
|
|
19
|
+
return this.route.toRegExp().test(other.data.toString());
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.AreRoute = AreRoute;
|
|
24
|
+
//# sourceMappingURL=AreRoute.signal.js.map
|
|
25
|
+
//# sourceMappingURL=AreRoute.signal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/signals/AreRoute.signal.ts"],"names":["AreSignal","A_Route"],"mappings":";;;;;AAMO,MAAM,iBAAiBA,aAAA,CAAmB;AAAA,EAE7C,YAAY,IAAA,EAAuB;AAC/B,IAAA,KAAA,CAAM;AAAA,MACF,IAAA,EAAM,IAAIC,cAAA,CAAQ,IAAI;AAAA,KACzB,CAAA;AAAA,EACL;AAAA,EAEA,IAAI,KAAA,GAAiB;AACjB,IAAA,OAAO,IAAA,CAAK,IAAA;AAAA,EAChB;AAAA,EAEA,OAAO,OAAA,GAAgC;AACnC,IAAA,OAAO,IAAI,QAAA,CAAS,QAAA,CAAS,QAAA,CAAS,YAAY,GAAG,CAAA;AAAA,EACzD;AAAA,EAGA,QAAQ,KAAA,EAAmC;AACvC,IAAA,OAAO,IAAA,CAAK,MAAM,QAAA,EAAS,CAAE,KAAK,KAAA,CAAM,IAAA,CAAK,UAAU,CAAA;AAAA,EAC3D;AACJ","file":"AreRoute.signal.js","sourcesContent":["import { A_Route } from \"@adaas/a-utils/a-route\";\nimport { A_Signal } from \"@adaas/a-utils/a-signal\";\nimport { AreSignal } from \"@adaas/are\";\n\n\n\nexport class AreRoute extends AreSignal<A_Route> {\n\n constructor(path: string | RegExp) {\n super({\n data: new A_Route(path)\n });\n }\n\n get route(): A_Route {\n return this.data;\n }\n\n static default(): AreRoute | undefined {\n return new AreRoute(document.location.pathname || '/');\n }\n\n\n compare(other: A_Signal<A_Route>): boolean {\n return this.route.toRegExp().test(other.data.toString());\n }\n}"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import '../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { A_Route } from '@adaas/a-utils/a-route';
|
|
3
|
+
import { AreSignal } from '@adaas/are';
|
|
4
|
+
|
|
5
|
+
class AreRoute extends AreSignal {
|
|
6
|
+
constructor(path) {
|
|
7
|
+
super({
|
|
8
|
+
data: new A_Route(path)
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
get route() {
|
|
12
|
+
return this.data;
|
|
13
|
+
}
|
|
14
|
+
static default() {
|
|
15
|
+
return new AreRoute(document.location.pathname || "/");
|
|
16
|
+
}
|
|
17
|
+
compare(other) {
|
|
18
|
+
return this.route.toRegExp().test(other.data.toString());
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { AreRoute };
|
|
23
|
+
//# sourceMappingURL=AreRoute.signal.mjs.map
|
|
24
|
+
//# sourceMappingURL=AreRoute.signal.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/signals/AreRoute.signal.ts"],"names":[],"mappings":";;;;AAMO,MAAM,iBAAiB,SAAA,CAAmB;AAAA,EAE7C,YAAY,IAAA,EAAuB;AAC/B,IAAA,KAAA,CAAM;AAAA,MACF,IAAA,EAAM,IAAI,OAAA,CAAQ,IAAI;AAAA,KACzB,CAAA;AAAA,EACL;AAAA,EAEA,IAAI,KAAA,GAAiB;AACjB,IAAA,OAAO,IAAA,CAAK,IAAA;AAAA,EAChB;AAAA,EAEA,OAAO,OAAA,GAAgC;AACnC,IAAA,OAAO,IAAI,QAAA,CAAS,QAAA,CAAS,QAAA,CAAS,YAAY,GAAG,CAAA;AAAA,EACzD;AAAA,EAGA,QAAQ,KAAA,EAAmC;AACvC,IAAA,OAAO,IAAA,CAAK,MAAM,QAAA,EAAS,CAAE,KAAK,KAAA,CAAM,IAAA,CAAK,UAAU,CAAA;AAAA,EAC3D;AACJ","file":"AreRoute.signal.mjs","sourcesContent":["import { A_Route } from \"@adaas/a-utils/a-route\";\nimport { A_Signal } from \"@adaas/a-utils/a-signal\";\nimport { AreSignal } from \"@adaas/are\";\n\n\n\nexport class AreRoute extends AreSignal<A_Route> {\n\n constructor(path: string | RegExp) {\n super({\n data: new A_Route(path)\n });\n }\n\n get route(): A_Route {\n return this.data;\n }\n\n static default(): AreRoute | undefined {\n return new AreRoute(document.location.pathname || '/');\n }\n\n\n compare(other: A_Signal<A_Route>): boolean {\n return this.route.toRegExp().test(other.data.toString());\n }\n}"]}
|
|
Binary file
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { A_Concept, A_CONSTANTS__DEFAULT_ENV_VARIABLES_ARRAY, A_Context } from "@adaas/a-concept"
|
|
2
|
+
import { UIContainer } from "./containers/UI.container"
|
|
3
|
+
import { A_Logger } from "@adaas/a-utils/a-logger";
|
|
4
|
+
import { A_Polyfill } from "@adaas/a-utils/a-polyfill";
|
|
5
|
+
import { A_Config, ENVConfigReader } from "@adaas/a-utils/a-config";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
(async () => {
|
|
12
|
+
try {
|
|
13
|
+
const Application = new UIContainer({
|
|
14
|
+
name: 'ARE Dashboard',
|
|
15
|
+
components: [
|
|
16
|
+
// ----------------------------------
|
|
17
|
+
// Allowed Entities
|
|
18
|
+
// ----------------------------------
|
|
19
|
+
// ............
|
|
20
|
+
// ----------------------------------
|
|
21
|
+
// Allowed Commands
|
|
22
|
+
// ----------------------------------
|
|
23
|
+
// ............
|
|
24
|
+
// ----------------------------------
|
|
25
|
+
// Addons
|
|
26
|
+
// ----------------------------------
|
|
27
|
+
A_Polyfill,
|
|
28
|
+
ENVConfigReader,
|
|
29
|
+
A_Logger
|
|
30
|
+
// A_ServerProxy
|
|
31
|
+
|
|
32
|
+
],
|
|
33
|
+
fragments: [
|
|
34
|
+
new A_Config({
|
|
35
|
+
defaults: {
|
|
36
|
+
PORT: 8080,
|
|
37
|
+
CONFIG_VERBOSE: true,
|
|
38
|
+
DEV_MODE: true
|
|
39
|
+
}
|
|
40
|
+
}),
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
const concept = new A_Concept({
|
|
47
|
+
name: 'adaas-are-example-jumpstart',
|
|
48
|
+
components: [A_Logger, A_Polyfill, ENVConfigReader],
|
|
49
|
+
containers: [Application],
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
await concept.load();
|
|
53
|
+
await concept.start();
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
} catch (error) {
|
|
57
|
+
const logger = A_Context.root.resolve<A_Logger>(A_Logger)!;
|
|
58
|
+
logger.error(error);
|
|
59
|
+
}
|
|
60
|
+
})();
|