@tachui/core 0.7.0-alpha1
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/LICENSE +363 -0
- package/dist/assets/Asset.cjs +2 -0
- package/dist/assets/Asset.cjs.map +1 -0
- package/dist/assets/Asset.d.ts +11 -0
- package/dist/assets/Asset.d.ts.map +1 -0
- package/dist/assets/Asset.js +9 -0
- package/dist/assets/Asset.js.map +1 -0
- package/dist/assets/AssetCollection.cjs +2 -0
- package/dist/assets/AssetCollection.cjs.map +1 -0
- package/dist/assets/AssetCollection.d.ts +14 -0
- package/dist/assets/AssetCollection.d.ts.map +1 -0
- package/dist/assets/AssetCollection.js +44 -0
- package/dist/assets/AssetCollection.js.map +1 -0
- package/dist/assets/ColorAsset.cjs +2 -0
- package/dist/assets/ColorAsset.cjs.map +1 -0
- package/dist/assets/ColorAsset.d.ts +31 -0
- package/dist/assets/ColorAsset.d.ts.map +1 -0
- package/dist/assets/ColorAsset.js +114 -0
- package/dist/assets/ColorAsset.js.map +1 -0
- package/dist/assets/FontAsset.cjs +9 -0
- package/dist/assets/FontAsset.cjs.map +1 -0
- package/dist/assets/FontAsset.d.ts +114 -0
- package/dist/assets/FontAsset.d.ts.map +1 -0
- package/dist/assets/FontAsset.js +173 -0
- package/dist/assets/FontAsset.js.map +1 -0
- package/dist/assets/ImageAsset.cjs +2 -0
- package/dist/assets/ImageAsset.cjs.map +1 -0
- package/dist/assets/ImageAsset.d.ts +35 -0
- package/dist/assets/ImageAsset.d.ts.map +1 -0
- package/dist/assets/ImageAsset.js +39 -0
- package/dist/assets/ImageAsset.js.map +1 -0
- package/dist/assets/index.cjs +2 -0
- package/dist/assets/index.cjs.map +1 -0
- package/dist/assets/index.d.ts +26 -0
- package/dist/assets/index.d.ts.map +1 -0
- package/dist/assets/index.js +119 -0
- package/dist/assets/index.js.map +1 -0
- package/dist/assets/types.d.ts +70 -0
- package/dist/assets/types.d.ts.map +1 -0
- package/dist/bundles/common.d.ts +24 -0
- package/dist/bundles/common.d.ts.map +1 -0
- package/dist/bundles/complete.d.ts +27 -0
- package/dist/bundles/complete.d.ts.map +1 -0
- package/dist/bundles/essential.d.ts +24 -0
- package/dist/bundles/essential.d.ts.map +1 -0
- package/dist/bundles/minimal.d.ts +24 -0
- package/dist/bundles/minimal.d.ts.map +1 -0
- package/dist/bundles/production-minimal.d.ts +35 -0
- package/dist/bundles/production-minimal.d.ts.map +1 -0
- package/dist/common.cjs +2 -0
- package/dist/common.cjs.map +1 -0
- package/dist/common.js +985 -0
- package/dist/common.js.map +1 -0
- package/dist/compiler/advanced-parser.cjs +5 -0
- package/dist/compiler/advanced-parser.cjs.map +1 -0
- package/dist/compiler/advanced-parser.d.ts +113 -0
- package/dist/compiler/advanced-parser.d.ts.map +1 -0
- package/dist/compiler/advanced-parser.js +440 -0
- package/dist/compiler/advanced-parser.js.map +1 -0
- package/dist/compiler/codegen.cjs +6 -0
- package/dist/compiler/codegen.cjs.map +1 -0
- package/dist/compiler/codegen.d.ts +20 -0
- package/dist/compiler/codegen.d.ts.map +1 -0
- package/dist/compiler/codegen.js +241 -0
- package/dist/compiler/codegen.js.map +1 -0
- package/dist/compiler/enhanced-codegen.cjs +6 -0
- package/dist/compiler/enhanced-codegen.cjs.map +1 -0
- package/dist/compiler/enhanced-codegen.d.ts +121 -0
- package/dist/compiler/enhanced-codegen.d.ts.map +1 -0
- package/dist/compiler/enhanced-codegen.js +347 -0
- package/dist/compiler/enhanced-codegen.js.map +1 -0
- package/dist/compiler/index.cjs +2 -0
- package/dist/compiler/index.cjs.map +1 -0
- package/dist/compiler/index.d.ts +14 -0
- package/dist/compiler/index.d.ts.map +1 -0
- package/dist/compiler/index.js +13 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/compiler/parser.cjs +5 -0
- package/dist/compiler/parser.cjs.map +1 -0
- package/dist/compiler/parser.d.ts +12 -0
- package/dist/compiler/parser.d.ts.map +1 -0
- package/dist/compiler/parser.js +275 -0
- package/dist/compiler/parser.js.map +1 -0
- package/dist/compiler/plugin.cjs +33 -0
- package/dist/compiler/plugin.cjs.map +1 -0
- package/dist/compiler/plugin.d.ts +13 -0
- package/dist/compiler/plugin.d.ts.map +1 -0
- package/dist/compiler/plugin.js +103 -0
- package/dist/compiler/plugin.js.map +1 -0
- package/dist/compiler/types.d.ts +149 -0
- package/dist/compiler/types.d.ts.map +1 -0
- package/dist/components/BasicInput.cjs +2 -0
- package/dist/components/BasicInput.cjs.map +1 -0
- package/dist/components/BasicInput.d.ts +116 -0
- package/dist/components/BasicInput.d.ts.map +1 -0
- package/dist/components/BasicInput.js +182 -0
- package/dist/components/BasicInput.js.map +1 -0
- package/dist/components/Button.cjs +7 -0
- package/dist/components/Button.cjs.map +1 -0
- package/dist/components/Button.d.ts +252 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +408 -0
- package/dist/components/Button.js.map +1 -0
- package/dist/components/Divider.cjs +2 -0
- package/dist/components/Divider.cjs.map +1 -0
- package/dist/components/Divider.d.ts +141 -0
- package/dist/components/Divider.d.ts.map +1 -0
- package/dist/components/Divider.js +187 -0
- package/dist/components/Divider.js.map +1 -0
- package/dist/components/EnhancedLink.cjs +2 -0
- package/dist/components/EnhancedLink.cjs.map +1 -0
- package/dist/components/EnhancedLink.d.ts +365 -0
- package/dist/components/EnhancedLink.d.ts.map +1 -0
- package/dist/components/EnhancedLink.js +345 -0
- package/dist/components/EnhancedLink.js.map +1 -0
- package/dist/components/Form.cjs +2 -0
- package/dist/components/Form.cjs.map +1 -0
- package/dist/components/Form.d.ts +141 -0
- package/dist/components/Form.d.ts.map +1 -0
- package/dist/components/Form.js +244 -0
- package/dist/components/Form.js.map +1 -0
- package/dist/components/Grid.cjs +2 -0
- package/dist/components/Grid.cjs.map +1 -0
- package/dist/components/Grid.d.ts +698 -0
- package/dist/components/Grid.d.ts.map +1 -0
- package/dist/components/Grid.js +1045 -0
- package/dist/components/Grid.js.map +1 -0
- package/dist/components/GridResponsive.cjs +2 -0
- package/dist/components/GridResponsive.cjs.map +1 -0
- package/dist/components/GridResponsive.d.ts +214 -0
- package/dist/components/GridResponsive.d.ts.map +1 -0
- package/dist/components/GridResponsive.js +382 -0
- package/dist/components/GridResponsive.js.map +1 -0
- package/dist/components/Image.cjs +2 -0
- package/dist/components/Image.cjs.map +1 -0
- package/dist/components/Image.d.ts +162 -0
- package/dist/components/Image.d.ts.map +1 -0
- package/dist/components/Image.js +212 -0
- package/dist/components/Image.js.map +1 -0
- package/dist/components/List.cjs +2 -0
- package/dist/components/List.cjs.map +1 -0
- package/dist/components/List.d.ts +287 -0
- package/dist/components/List.d.ts.map +1 -0
- package/dist/components/List.js +561 -0
- package/dist/components/List.js.map +1 -0
- package/dist/components/Menu.cjs +2 -0
- package/dist/components/Menu.cjs.map +1 -0
- package/dist/components/Menu.d.ts +159 -0
- package/dist/components/Menu.d.ts.map +1 -0
- package/dist/components/Menu.js +443 -0
- package/dist/components/Menu.js.map +1 -0
- package/dist/components/Picker.cjs +2 -0
- package/dist/components/Picker.cjs.map +1 -0
- package/dist/components/Picker.d.ts +153 -0
- package/dist/components/Picker.d.ts.map +1 -0
- package/dist/components/Picker.js +478 -0
- package/dist/components/Picker.js.map +1 -0
- package/dist/components/ScrollView.cjs +6 -0
- package/dist/components/ScrollView.cjs.map +1 -0
- package/dist/components/ScrollView.d.ts +222 -0
- package/dist/components/ScrollView.d.ts.map +1 -0
- package/dist/components/ScrollView.js +363 -0
- package/dist/components/ScrollView.js.map +1 -0
- package/dist/components/Section.cjs +2 -0
- package/dist/components/Section.cjs.map +1 -0
- package/dist/components/Section.d.ts +153 -0
- package/dist/components/Section.d.ts.map +1 -0
- package/dist/components/Section.js +323 -0
- package/dist/components/Section.js.map +1 -0
- package/dist/components/Show.cjs +2 -0
- package/dist/components/Show.cjs.map +1 -0
- package/dist/components/Show.d.ts +64 -0
- package/dist/components/Show.d.ts.map +1 -0
- package/dist/components/Show.js +112 -0
- package/dist/components/Show.js.map +1 -0
- package/dist/components/Spacer.cjs +2 -0
- package/dist/components/Spacer.cjs.map +1 -0
- package/dist/components/Spacer.d.ts +35 -0
- package/dist/components/Spacer.d.ts.map +1 -0
- package/dist/components/Spacer.js +53 -0
- package/dist/components/Spacer.js.map +1 -0
- package/dist/components/Text.cjs +2 -0
- package/dist/components/Text.cjs.map +1 -0
- package/dist/components/Text.d.ts +242 -0
- package/dist/components/Text.d.ts.map +1 -0
- package/dist/components/Text.js +193 -0
- package/dist/components/Text.js.map +1 -0
- package/dist/components/Toggle.cjs +2 -0
- package/dist/components/Toggle.cjs.map +1 -0
- package/dist/components/Toggle.d.ts +207 -0
- package/dist/components/Toggle.d.ts.map +1 -0
- package/dist/components/Toggle.js +477 -0
- package/dist/components/Toggle.js.map +1 -0
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.cjs.map +1 -0
- package/dist/components/index.d.ts +45 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +104 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/wrapper.cjs +2 -0
- package/dist/components/wrapper.cjs.map +1 -0
- package/dist/components/wrapper.d.ts +249 -0
- package/dist/components/wrapper.d.ts.map +1 -0
- package/dist/components/wrapper.js +484 -0
- package/dist/components/wrapper.js.map +1 -0
- package/dist/concatenation/concatenatable.cjs +2 -0
- package/dist/concatenation/concatenatable.cjs.map +1 -0
- package/dist/concatenation/concatenatable.d.ts +63 -0
- package/dist/concatenation/concatenatable.d.ts.map +1 -0
- package/dist/concatenation/concatenatable.js +118 -0
- package/dist/concatenation/concatenatable.js.map +1 -0
- package/dist/concatenation/concatenated-component.cjs +2 -0
- package/dist/concatenation/concatenated-component.cjs.map +1 -0
- package/dist/concatenation/concatenated-component.d.ts +110 -0
- package/dist/concatenation/concatenated-component.d.ts.map +1 -0
- package/dist/concatenation/concatenated-component.js +276 -0
- package/dist/concatenation/concatenated-component.js.map +1 -0
- package/dist/concatenation/index.d.ts +13 -0
- package/dist/concatenation/index.d.ts.map +1 -0
- package/dist/concatenation/text-optimizer.cjs +2 -0
- package/dist/concatenation/text-optimizer.cjs.map +1 -0
- package/dist/concatenation/text-optimizer.d.ts +104 -0
- package/dist/concatenation/text-optimizer.d.ts.map +1 -0
- package/dist/concatenation/text-optimizer.js +236 -0
- package/dist/concatenation/text-optimizer.js.map +1 -0
- package/dist/concatenation/types.cjs +2 -0
- package/dist/concatenation/types.cjs.map +1 -0
- package/dist/concatenation/types.d.ts +88 -0
- package/dist/concatenation/types.d.ts.map +1 -0
- package/dist/concatenation/types.js +13 -0
- package/dist/concatenation/types.js.map +1 -0
- package/dist/constants/frame-utils.cjs +2 -0
- package/dist/constants/frame-utils.cjs.map +1 -0
- package/dist/constants/frame-utils.d.ts +68 -0
- package/dist/constants/frame-utils.d.ts.map +1 -0
- package/dist/constants/frame-utils.js +116 -0
- package/dist/constants/frame-utils.js.map +1 -0
- package/dist/constants/index.d.ts +8 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/layout.cjs +2 -0
- package/dist/constants/layout.cjs.map +1 -0
- package/dist/constants/layout.d.ts +60 -0
- package/dist/constants/layout.d.ts.map +1 -0
- package/dist/constants/layout.js +46 -0
- package/dist/constants/layout.js.map +1 -0
- package/dist/css-classes/component-base.cjs +2 -0
- package/dist/css-classes/component-base.cjs.map +1 -0
- package/dist/css-classes/component-base.d.ts +40 -0
- package/dist/css-classes/component-base.d.ts.map +1 -0
- package/dist/css-classes/component-base.js +62 -0
- package/dist/css-classes/component-base.js.map +1 -0
- package/dist/css-classes/css-class-manager.cjs +2 -0
- package/dist/css-classes/css-class-manager.cjs.map +1 -0
- package/dist/css-classes/css-class-manager.d.ts +89 -0
- package/dist/css-classes/css-class-manager.d.ts.map +1 -0
- package/dist/css-classes/css-class-manager.js +209 -0
- package/dist/css-classes/css-class-manager.js.map +1 -0
- package/dist/css-classes/dom-integration.cjs +2 -0
- package/dist/css-classes/dom-integration.cjs.map +1 -0
- package/dist/css-classes/dom-integration.d.ts +76 -0
- package/dist/css-classes/dom-integration.d.ts.map +1 -0
- package/dist/css-classes/dom-integration.js +67 -0
- package/dist/css-classes/dom-integration.js.map +1 -0
- package/dist/css-classes/enhanced-renderer.cjs +2 -0
- package/dist/css-classes/enhanced-renderer.cjs.map +1 -0
- package/dist/css-classes/enhanced-renderer.d.ts +42 -0
- package/dist/css-classes/enhanced-renderer.d.ts.map +1 -0
- package/dist/css-classes/enhanced-renderer.js +73 -0
- package/dist/css-classes/enhanced-renderer.js.map +1 -0
- package/dist/css-classes/index.d.ts +14 -0
- package/dist/css-classes/index.d.ts.map +1 -0
- package/dist/css-classes/types.d.ts +59 -0
- package/dist/css-classes/types.d.ts.map +1 -0
- package/dist/css-classes/utilities.cjs +2 -0
- package/dist/css-classes/utilities.cjs.map +1 -0
- package/dist/css-classes/utilities.d.ts +104 -0
- package/dist/css-classes/utilities.d.ts.map +1 -0
- package/dist/css-classes/utilities.js +41 -0
- package/dist/css-classes/utilities.js.map +1 -0
- package/dist/debug/index.d.ts +61 -0
- package/dist/debug/index.d.ts.map +1 -0
- package/dist/debug.cjs +52 -0
- package/dist/debug.cjs.map +1 -0
- package/dist/debug.js +179 -0
- package/dist/debug.js.map +1 -0
- package/dist/developer-experience/enhanced-errors.d.ts +128 -0
- package/dist/developer-experience/enhanced-errors.d.ts.map +1 -0
- package/dist/developer-experience/enhanced-types.d.ts +281 -0
- package/dist/developer-experience/enhanced-types.d.ts.map +1 -0
- package/dist/developer-experience/index.d.ts +44 -0
- package/dist/developer-experience/index.d.ts.map +1 -0
- package/dist/essential.cjs +2 -0
- package/dist/essential.cjs.map +1 -0
- package/dist/essential.js +968 -0
- package/dist/essential.js.map +1 -0
- package/dist/gradients/css-generator.cjs +2 -0
- package/dist/gradients/css-generator.cjs.map +1 -0
- package/dist/gradients/css-generator.d.ts +10 -0
- package/dist/gradients/css-generator.d.ts.map +1 -0
- package/dist/gradients/css-generator.js +100 -0
- package/dist/gradients/css-generator.js.map +1 -0
- package/dist/gradients/examples.cjs +2 -0
- package/dist/gradients/examples.cjs.map +1 -0
- package/dist/gradients/examples.d.ts +432 -0
- package/dist/gradients/examples.d.ts.map +1 -0
- package/dist/gradients/examples.js +555 -0
- package/dist/gradients/examples.js.map +1 -0
- package/dist/gradients/gradient-asset.cjs +2 -0
- package/dist/gradients/gradient-asset.cjs.map +1 -0
- package/dist/gradients/gradient-asset.d.ts +10 -0
- package/dist/gradients/gradient-asset.d.ts.map +1 -0
- package/dist/gradients/gradient-asset.js +22 -0
- package/dist/gradients/gradient-asset.js.map +1 -0
- package/dist/gradients/index.cjs +2 -0
- package/dist/gradients/index.cjs.map +1 -0
- package/dist/gradients/index.d.ts +19 -0
- package/dist/gradients/index.d.ts.map +1 -0
- package/dist/gradients/index.js +78 -0
- package/dist/gradients/index.js.map +1 -0
- package/dist/gradients/performance.cjs +2 -0
- package/dist/gradients/performance.cjs.map +1 -0
- package/dist/gradients/performance.d.ts +146 -0
- package/dist/gradients/performance.d.ts.map +1 -0
- package/dist/gradients/performance.js +237 -0
- package/dist/gradients/performance.js.map +1 -0
- package/dist/gradients/presets.cjs +2 -0
- package/dist/gradients/presets.cjs.map +1 -0
- package/dist/gradients/presets.d.ts +165 -0
- package/dist/gradients/presets.d.ts.map +1 -0
- package/dist/gradients/presets.js +254 -0
- package/dist/gradients/presets.js.map +1 -0
- package/dist/gradients/reactive.cjs +2 -0
- package/dist/gradients/reactive.cjs.map +1 -0
- package/dist/gradients/reactive.d.ts +167 -0
- package/dist/gradients/reactive.d.ts.map +1 -0
- package/dist/gradients/reactive.js +239 -0
- package/dist/gradients/reactive.js.map +1 -0
- package/dist/gradients/state-gradient-asset.cjs +2 -0
- package/dist/gradients/state-gradient-asset.cjs.map +1 -0
- package/dist/gradients/state-gradient-asset.d.ts +67 -0
- package/dist/gradients/state-gradient-asset.d.ts.map +1 -0
- package/dist/gradients/state-gradient-asset.js +111 -0
- package/dist/gradients/state-gradient-asset.js.map +1 -0
- package/dist/gradients/types.d.ts +94 -0
- package/dist/gradients/types.d.ts.map +1 -0
- package/dist/gradients/utils.cjs +2 -0
- package/dist/gradients/utils.cjs.map +1 -0
- package/dist/gradients/utils.d.ts +313 -0
- package/dist/gradients/utils.d.ts.map +1 -0
- package/dist/gradients/utils.js +385 -0
- package/dist/gradients/utils.js.map +1 -0
- package/dist/gradients/validation.cjs +2 -0
- package/dist/gradients/validation.cjs.map +1 -0
- package/dist/gradients/validation.d.ts +156 -0
- package/dist/gradients/validation.d.ts.map +1 -0
- package/dist/gradients/validation.js +209 -0
- package/dist/gradients/validation.js.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +965 -0
- package/dist/index.js.map +1 -0
- package/dist/index2.cjs +2 -0
- package/dist/index2.cjs.map +1 -0
- package/dist/index2.js +293 -0
- package/dist/index2.js.map +1 -0
- package/dist/lifecycle/hooks.cjs +2 -0
- package/dist/lifecycle/hooks.cjs.map +1 -0
- package/dist/lifecycle/hooks.d.ts +101 -0
- package/dist/lifecycle/hooks.d.ts.map +1 -0
- package/dist/lifecycle/hooks.js +159 -0
- package/dist/lifecycle/hooks.js.map +1 -0
- package/dist/minimal-prod.cjs +2 -0
- package/dist/minimal-prod.cjs.map +1 -0
- package/dist/minimal-prod.js +193 -0
- package/dist/minimal-prod.js.map +1 -0
- package/dist/minimal.cjs +2 -0
- package/dist/minimal.cjs.map +1 -0
- package/dist/minimal.js +968 -0
- package/dist/minimal.js.map +1 -0
- package/dist/modifiers/as-html-validator.cjs +2 -0
- package/dist/modifiers/as-html-validator.cjs.map +1 -0
- package/dist/modifiers/as-html-validator.d.ts +20 -0
- package/dist/modifiers/as-html-validator.d.ts.map +1 -0
- package/dist/modifiers/as-html-validator.js +47 -0
- package/dist/modifiers/as-html-validator.js.map +1 -0
- package/dist/modifiers/as-html.cjs +2 -0
- package/dist/modifiers/as-html.cjs.map +1 -0
- package/dist/modifiers/as-html.d.ts +65 -0
- package/dist/modifiers/as-html.d.ts.map +1 -0
- package/dist/modifiers/as-html.js +71 -0
- package/dist/modifiers/as-html.js.map +1 -0
- package/dist/modifiers/attributes.cjs +2 -0
- package/dist/modifiers/attributes.cjs.map +1 -0
- package/dist/modifiers/attributes.d.ts +203 -0
- package/dist/modifiers/attributes.d.ts.map +1 -0
- package/dist/modifiers/attributes.js +272 -0
- package/dist/modifiers/attributes.js.map +1 -0
- package/dist/modifiers/backdrop.cjs +2 -0
- package/dist/modifiers/backdrop.cjs.map +1 -0
- package/dist/modifiers/backdrop.d.ts +59 -0
- package/dist/modifiers/backdrop.d.ts.map +1 -0
- package/dist/modifiers/backdrop.js +109 -0
- package/dist/modifiers/backdrop.js.map +1 -0
- package/dist/modifiers/background.cjs +2 -0
- package/dist/modifiers/background.cjs.map +1 -0
- package/dist/modifiers/background.d.ts +21 -0
- package/dist/modifiers/background.d.ts.map +1 -0
- package/dist/modifiers/background.js +67 -0
- package/dist/modifiers/background.js.map +1 -0
- package/dist/modifiers/base.cjs +25 -0
- package/dist/modifiers/base.cjs.map +1 -0
- package/dist/modifiers/base.d.ts +156 -0
- package/dist/modifiers/base.d.ts.map +1 -0
- package/dist/modifiers/base.js +745 -0
- package/dist/modifiers/base.js.map +1 -0
- package/dist/modifiers/basic-sanitizer.cjs +2 -0
- package/dist/modifiers/basic-sanitizer.cjs.map +1 -0
- package/dist/modifiers/basic-sanitizer.d.ts +54 -0
- package/dist/modifiers/basic-sanitizer.d.ts.map +1 -0
- package/dist/modifiers/basic-sanitizer.js +162 -0
- package/dist/modifiers/basic-sanitizer.js.map +1 -0
- package/dist/modifiers/border.cjs +2 -0
- package/dist/modifiers/border.cjs.map +1 -0
- package/dist/modifiers/border.d.ts +217 -0
- package/dist/modifiers/border.d.ts.map +1 -0
- package/dist/modifiers/border.js +160 -0
- package/dist/modifiers/border.js.map +1 -0
- package/dist/modifiers/builder.cjs +2 -0
- package/dist/modifiers/builder.cjs.map +1 -0
- package/dist/modifiers/builder.d.ts +377 -0
- package/dist/modifiers/builder.d.ts.map +1 -0
- package/dist/modifiers/builder.js +930 -0
- package/dist/modifiers/builder.js.map +1 -0
- package/dist/modifiers/core.cjs +2 -0
- package/dist/modifiers/core.cjs.map +1 -0
- package/dist/modifiers/core.d.ts +407 -0
- package/dist/modifiers/core.d.ts.map +1 -0
- package/dist/modifiers/core.js +398 -0
- package/dist/modifiers/core.js.map +1 -0
- package/dist/modifiers/css.cjs +2 -0
- package/dist/modifiers/css.cjs.map +1 -0
- package/dist/modifiers/css.d.ts +86 -0
- package/dist/modifiers/css.d.ts.map +1 -0
- package/dist/modifiers/css.js +50 -0
- package/dist/modifiers/css.js.map +1 -0
- package/dist/modifiers/effects.cjs +2 -0
- package/dist/modifiers/effects.cjs.map +1 -0
- package/dist/modifiers/effects.d.ts +159 -0
- package/dist/modifiers/effects.d.ts.map +1 -0
- package/dist/modifiers/effects.js +178 -0
- package/dist/modifiers/effects.js.map +1 -0
- package/dist/modifiers/elements.cjs +2 -0
- package/dist/modifiers/elements.cjs.map +1 -0
- package/dist/modifiers/elements.d.ts +240 -0
- package/dist/modifiers/elements.d.ts.map +1 -0
- package/dist/modifiers/elements.js +216 -0
- package/dist/modifiers/elements.js.map +1 -0
- package/dist/modifiers/filters.cjs +2 -0
- package/dist/modifiers/filters.cjs.map +1 -0
- package/dist/modifiers/filters.d.ts +275 -0
- package/dist/modifiers/filters.d.ts.map +1 -0
- package/dist/modifiers/filters.js +223 -0
- package/dist/modifiers/filters.js.map +1 -0
- package/dist/modifiers/flexbox.cjs +2 -0
- package/dist/modifiers/flexbox.cjs.map +1 -0
- package/dist/modifiers/flexbox.d.ts +82 -0
- package/dist/modifiers/flexbox.d.ts.map +1 -0
- package/dist/modifiers/flexbox.js +56 -0
- package/dist/modifiers/flexbox.js.map +1 -0
- package/dist/modifiers/font.cjs +2 -0
- package/dist/modifiers/font.cjs.map +1 -0
- package/dist/modifiers/font.d.ts +71 -0
- package/dist/modifiers/font.d.ts.map +1 -0
- package/dist/modifiers/font.js +60 -0
- package/dist/modifiers/font.js.map +1 -0
- package/dist/modifiers/grid.cjs +2 -0
- package/dist/modifiers/grid.cjs.map +1 -0
- package/dist/modifiers/grid.d.ts +92 -0
- package/dist/modifiers/grid.d.ts.map +1 -0
- package/dist/modifiers/grid.js +92 -0
- package/dist/modifiers/grid.js.map +1 -0
- package/dist/modifiers/index.d.ts +58 -0
- package/dist/modifiers/index.d.ts.map +1 -0
- package/dist/modifiers/margin.cjs +2 -0
- package/dist/modifiers/margin.cjs.map +1 -0
- package/dist/modifiers/margin.d.ts +128 -0
- package/dist/modifiers/margin.d.ts.map +1 -0
- package/dist/modifiers/margin.js +65 -0
- package/dist/modifiers/margin.js.map +1 -0
- package/dist/modifiers/padding.cjs +2 -0
- package/dist/modifiers/padding.cjs.map +1 -0
- package/dist/modifiers/padding.d.ts +204 -0
- package/dist/modifiers/padding.d.ts.map +1 -0
- package/dist/modifiers/padding.js +109 -0
- package/dist/modifiers/padding.js.map +1 -0
- package/dist/modifiers/registry.cjs +2 -0
- package/dist/modifiers/registry.cjs.map +1 -0
- package/dist/modifiers/registry.d.ts +69 -0
- package/dist/modifiers/registry.d.ts.map +1 -0
- package/dist/modifiers/registry.js +163 -0
- package/dist/modifiers/registry.js.map +1 -0
- package/dist/modifiers/responsive/advanced-utilities.cjs +2 -0
- package/dist/modifiers/responsive/advanced-utilities.cjs.map +1 -0
- package/dist/modifiers/responsive/advanced-utilities.d.ts +118 -0
- package/dist/modifiers/responsive/advanced-utilities.d.ts.map +1 -0
- package/dist/modifiers/responsive/advanced-utilities.js +291 -0
- package/dist/modifiers/responsive/advanced-utilities.js.map +1 -0
- package/dist/modifiers/responsive/breakpoints.cjs +2 -0
- package/dist/modifiers/responsive/breakpoints.cjs.map +1 -0
- package/dist/modifiers/responsive/breakpoints.d.ts +81 -0
- package/dist/modifiers/responsive/breakpoints.d.ts.map +1 -0
- package/dist/modifiers/responsive/breakpoints.js +168 -0
- package/dist/modifiers/responsive/breakpoints.js.map +1 -0
- package/dist/modifiers/responsive/css-generator.cjs +5 -0
- package/dist/modifiers/responsive/css-generator.cjs.map +1 -0
- package/dist/modifiers/responsive/css-generator.d.ts +100 -0
- package/dist/modifiers/responsive/css-generator.d.ts.map +1 -0
- package/dist/modifiers/responsive/css-generator.js +261 -0
- package/dist/modifiers/responsive/css-generator.js.map +1 -0
- package/dist/modifiers/responsive/dev-tools.cjs +77 -0
- package/dist/modifiers/responsive/dev-tools.cjs.map +1 -0
- package/dist/modifiers/responsive/dev-tools.d.ts +107 -0
- package/dist/modifiers/responsive/dev-tools.d.ts.map +1 -0
- package/dist/modifiers/responsive/dev-tools.js +380 -0
- package/dist/modifiers/responsive/dev-tools.js.map +1 -0
- package/dist/modifiers/responsive/index.d.ts +28 -0
- package/dist/modifiers/responsive/index.d.ts.map +1 -0
- package/dist/modifiers/responsive/layout-patterns.cjs +2 -0
- package/dist/modifiers/responsive/layout-patterns.cjs.map +1 -0
- package/dist/modifiers/responsive/layout-patterns.d.ts +230 -0
- package/dist/modifiers/responsive/layout-patterns.d.ts.map +1 -0
- package/dist/modifiers/responsive/layout-patterns.js +254 -0
- package/dist/modifiers/responsive/layout-patterns.js.map +1 -0
- package/dist/modifiers/responsive/performance.cjs +3 -0
- package/dist/modifiers/responsive/performance.cjs.map +1 -0
- package/dist/modifiers/responsive/performance.d.ts +130 -0
- package/dist/modifiers/responsive/performance.d.ts.map +1 -0
- package/dist/modifiers/responsive/performance.js +212 -0
- package/dist/modifiers/responsive/performance.js.map +1 -0
- package/dist/modifiers/responsive/responsive-builder.cjs +2 -0
- package/dist/modifiers/responsive/responsive-builder.cjs.map +1 -0
- package/dist/modifiers/responsive/responsive-builder.d.ts +133 -0
- package/dist/modifiers/responsive/responsive-builder.d.ts.map +1 -0
- package/dist/modifiers/responsive/responsive-builder.js +272 -0
- package/dist/modifiers/responsive/responsive-builder.js.map +1 -0
- package/dist/modifiers/responsive/responsive-modifier.cjs +3 -0
- package/dist/modifiers/responsive/responsive-modifier.cjs.map +1 -0
- package/dist/modifiers/responsive/responsive-modifier.d.ts +123 -0
- package/dist/modifiers/responsive/responsive-modifier.d.ts.map +1 -0
- package/dist/modifiers/responsive/responsive-modifier.js +204 -0
- package/dist/modifiers/responsive/responsive-modifier.js.map +1 -0
- package/dist/modifiers/responsive/types.cjs +2 -0
- package/dist/modifiers/responsive/types.cjs.map +1 -0
- package/dist/modifiers/responsive/types.d.ts +183 -0
- package/dist/modifiers/responsive/types.d.ts.map +1 -0
- package/dist/modifiers/responsive/types.js +26 -0
- package/dist/modifiers/responsive/types.js.map +1 -0
- package/dist/modifiers/responsive/utilities.cjs +16 -0
- package/dist/modifiers/responsive/utilities.cjs.map +1 -0
- package/dist/modifiers/responsive/utilities.d.ts +149 -0
- package/dist/modifiers/responsive/utilities.d.ts.map +1 -0
- package/dist/modifiers/responsive/utilities.js +273 -0
- package/dist/modifiers/responsive/utilities.js.map +1 -0
- package/dist/modifiers/scroll.cjs +2 -0
- package/dist/modifiers/scroll.cjs.map +1 -0
- package/dist/modifiers/scroll.d.ts +143 -0
- package/dist/modifiers/scroll.d.ts.map +1 -0
- package/dist/modifiers/scroll.js +82 -0
- package/dist/modifiers/scroll.js.map +1 -0
- package/dist/modifiers/shadows.cjs +2 -0
- package/dist/modifiers/shadows.cjs.map +1 -0
- package/dist/modifiers/shadows.d.ts +114 -0
- package/dist/modifiers/shadows.d.ts.map +1 -0
- package/dist/modifiers/shadows.js +147 -0
- package/dist/modifiers/shadows.js.map +1 -0
- package/dist/modifiers/size.cjs +2 -0
- package/dist/modifiers/size.cjs.map +1 -0
- package/dist/modifiers/size.d.ts +113 -0
- package/dist/modifiers/size.d.ts.map +1 -0
- package/dist/modifiers/size.js +74 -0
- package/dist/modifiers/size.js.map +1 -0
- package/dist/modifiers/text.cjs +2 -0
- package/dist/modifiers/text.cjs.map +1 -0
- package/dist/modifiers/text.d.ts +147 -0
- package/dist/modifiers/text.d.ts.map +1 -0
- package/dist/modifiers/text.js +166 -0
- package/dist/modifiers/text.js.map +1 -0
- package/dist/modifiers/transformations.cjs +2 -0
- package/dist/modifiers/transformations.cjs.map +1 -0
- package/dist/modifiers/transformations.d.ts +329 -0
- package/dist/modifiers/transformations.d.ts.map +1 -0
- package/dist/modifiers/transformations.js +216 -0
- package/dist/modifiers/transformations.js.map +1 -0
- package/dist/modifiers/transitions.cjs +2 -0
- package/dist/modifiers/transitions.cjs.map +1 -0
- package/dist/modifiers/transitions.d.ts +98 -0
- package/dist/modifiers/transitions.d.ts.map +1 -0
- package/dist/modifiers/transitions.js +102 -0
- package/dist/modifiers/transitions.js.map +1 -0
- package/dist/modifiers/types.cjs +2 -0
- package/dist/modifiers/types.cjs.map +1 -0
- package/dist/modifiers/types.d.ts +655 -0
- package/dist/modifiers/types.d.ts.map +1 -0
- package/dist/modifiers/types.js +5 -0
- package/dist/modifiers/types.js.map +1 -0
- package/dist/modifiers/typography.cjs +2 -0
- package/dist/modifiers/typography.cjs.map +1 -0
- package/dist/modifiers/typography.d.ts +192 -0
- package/dist/modifiers/typography.d.ts.map +1 -0
- package/dist/modifiers/typography.js +76 -0
- package/dist/modifiers/typography.js.map +1 -0
- package/dist/modifiers/utility.cjs +2 -0
- package/dist/modifiers/utility.cjs.map +1 -0
- package/dist/modifiers/utility.d.ts +69 -0
- package/dist/modifiers/utility.d.ts.map +1 -0
- package/dist/modifiers/utility.js +71 -0
- package/dist/modifiers/utility.js.map +1 -0
- package/dist/modifiers/utils.cjs +2 -0
- package/dist/modifiers/utils.cjs.map +1 -0
- package/dist/modifiers/utils.d.ts +75 -0
- package/dist/modifiers/utils.d.ts.map +1 -0
- package/dist/modifiers/utils.js +250 -0
- package/dist/modifiers/utils.js.map +1 -0
- package/dist/plugins/component-loader-registry.d.ts +143 -0
- package/dist/plugins/component-loader-registry.d.ts.map +1 -0
- package/dist/plugins/index.cjs +2 -0
- package/dist/plugins/index.cjs.map +1 -0
- package/dist/plugins/index.d.ts +17 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +34 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/legacy-adapter.cjs +2 -0
- package/dist/plugins/legacy-adapter.cjs.map +1 -0
- package/dist/plugins/legacy-adapter.d.ts +35 -0
- package/dist/plugins/legacy-adapter.d.ts.map +1 -0
- package/dist/plugins/legacy-adapter.js +30 -0
- package/dist/plugins/legacy-adapter.js.map +1 -0
- package/dist/plugins/simplified-component-registry.cjs +2 -0
- package/dist/plugins/simplified-component-registry.cjs.map +1 -0
- package/dist/plugins/simplified-component-registry.d.ts +40 -0
- package/dist/plugins/simplified-component-registry.d.ts.map +1 -0
- package/dist/plugins/simplified-component-registry.js +71 -0
- package/dist/plugins/simplified-component-registry.js.map +1 -0
- package/dist/plugins/simplified-error-handler.cjs +2 -0
- package/dist/plugins/simplified-error-handler.cjs.map +1 -0
- package/dist/plugins/simplified-error-handler.d.ts +83 -0
- package/dist/plugins/simplified-error-handler.d.ts.map +1 -0
- package/dist/plugins/simplified-error-handler.js +154 -0
- package/dist/plugins/simplified-error-handler.js.map +1 -0
- package/dist/plugins/simplified-index.d.ts +17 -0
- package/dist/plugins/simplified-index.d.ts.map +1 -0
- package/dist/plugins/simplified-lazy-loader.cjs +2 -0
- package/dist/plugins/simplified-lazy-loader.cjs.map +1 -0
- package/dist/plugins/simplified-lazy-loader.d.ts +65 -0
- package/dist/plugins/simplified-lazy-loader.d.ts.map +1 -0
- package/dist/plugins/simplified-lazy-loader.js +129 -0
- package/dist/plugins/simplified-lazy-loader.js.map +1 -0
- package/dist/plugins/simplified-plugin-manager.cjs +2 -0
- package/dist/plugins/simplified-plugin-manager.cjs.map +1 -0
- package/dist/plugins/simplified-plugin-manager.d.ts +24 -0
- package/dist/plugins/simplified-plugin-manager.d.ts.map +1 -0
- package/dist/plugins/simplified-plugin-manager.js +51 -0
- package/dist/plugins/simplified-plugin-manager.js.map +1 -0
- package/dist/plugins/simplified-tachui-instance.cjs +2 -0
- package/dist/plugins/simplified-tachui-instance.cjs.map +1 -0
- package/dist/plugins/simplified-tachui-instance.d.ts +54 -0
- package/dist/plugins/simplified-tachui-instance.d.ts.map +1 -0
- package/dist/plugins/simplified-tachui-instance.js +88 -0
- package/dist/plugins/simplified-tachui-instance.js.map +1 -0
- package/dist/plugins/simplified-types.cjs +2 -0
- package/dist/plugins/simplified-types.cjs.map +1 -0
- package/dist/plugins/simplified-types.d.ts +63 -0
- package/dist/plugins/simplified-types.d.ts.map +1 -0
- package/dist/plugins/simplified-types.js +9 -0
- package/dist/plugins/simplified-types.js.map +1 -0
- package/dist/plugins/simplified-utils.cjs +2 -0
- package/dist/plugins/simplified-utils.cjs.map +1 -0
- package/dist/plugins/simplified-utils.d.ts +39 -0
- package/dist/plugins/simplified-utils.d.ts.map +1 -0
- package/dist/plugins/simplified-utils.js +40 -0
- package/dist/plugins/simplified-utils.js.map +1 -0
- package/dist/reactive/cleanup.cjs +2 -0
- package/dist/reactive/cleanup.cjs.map +1 -0
- package/dist/reactive/cleanup.d.ts +115 -0
- package/dist/reactive/cleanup.d.ts.map +1 -0
- package/dist/reactive/cleanup.js +62 -0
- package/dist/reactive/cleanup.js.map +1 -0
- package/dist/reactive/computed.cjs +2 -0
- package/dist/reactive/computed.cjs.map +1 -0
- package/dist/reactive/computed.d.ts +115 -0
- package/dist/reactive/computed.d.ts.map +1 -0
- package/dist/reactive/computed.js +121 -0
- package/dist/reactive/computed.js.map +1 -0
- package/dist/reactive/context.cjs +2 -0
- package/dist/reactive/context.cjs.map +1 -0
- package/dist/reactive/context.d.ts +82 -0
- package/dist/reactive/context.d.ts.map +1 -0
- package/dist/reactive/context.js +143 -0
- package/dist/reactive/context.js.map +1 -0
- package/dist/reactive/effect.cjs +2 -0
- package/dist/reactive/effect.cjs.map +1 -0
- package/dist/reactive/effect.d.ts +79 -0
- package/dist/reactive/effect.d.ts.map +1 -0
- package/dist/reactive/effect.js +67 -0
- package/dist/reactive/effect.js.map +1 -0
- package/dist/reactive/enhanced-effect.cjs +2 -0
- package/dist/reactive/enhanced-effect.cjs.map +1 -0
- package/dist/reactive/enhanced-effect.d.ts +108 -0
- package/dist/reactive/enhanced-effect.d.ts.map +1 -0
- package/dist/reactive/enhanced-effect.js +153 -0
- package/dist/reactive/enhanced-effect.js.map +1 -0
- package/dist/reactive/enhanced-signal.cjs +2 -0
- package/dist/reactive/enhanced-signal.cjs.map +1 -0
- package/dist/reactive/enhanced-signal.d.ts +91 -0
- package/dist/reactive/enhanced-signal.d.ts.map +1 -0
- package/dist/reactive/enhanced-signal.js +117 -0
- package/dist/reactive/enhanced-signal.js.map +1 -0
- package/dist/reactive/equality.cjs +2 -0
- package/dist/reactive/equality.cjs.map +1 -0
- package/dist/reactive/equality.d.ts +51 -0
- package/dist/reactive/equality.d.ts.map +1 -0
- package/dist/reactive/equality.js +66 -0
- package/dist/reactive/equality.js.map +1 -0
- package/dist/reactive/index.cjs +2 -0
- package/dist/reactive/index.cjs.map +1 -0
- package/dist/reactive/index.d.ts +21 -0
- package/dist/reactive/index.d.ts.map +1 -0
- package/dist/reactive/index.js +95 -0
- package/dist/reactive/index.js.map +1 -0
- package/dist/reactive/migration.cjs +18 -0
- package/dist/reactive/migration.cjs.map +1 -0
- package/dist/reactive/migration.d.ts +104 -0
- package/dist/reactive/migration.d.ts.map +1 -0
- package/dist/reactive/migration.js +164 -0
- package/dist/reactive/migration.js.map +1 -0
- package/dist/reactive/ownership.cjs +2 -0
- package/dist/reactive/ownership.cjs.map +1 -0
- package/dist/reactive/ownership.d.ts +75 -0
- package/dist/reactive/ownership.d.ts.map +1 -0
- package/dist/reactive/ownership.js +34 -0
- package/dist/reactive/ownership.js.map +1 -0
- package/dist/reactive/scheduler.cjs +2 -0
- package/dist/reactive/scheduler.cjs.map +1 -0
- package/dist/reactive/scheduler.d.ts +56 -0
- package/dist/reactive/scheduler.d.ts.map +1 -0
- package/dist/reactive/scheduler.js +111 -0
- package/dist/reactive/scheduler.js.map +1 -0
- package/dist/reactive/signal.cjs +2 -0
- package/dist/reactive/signal.cjs.map +1 -0
- package/dist/reactive/signal.d.ts +82 -0
- package/dist/reactive/signal.d.ts.map +1 -0
- package/dist/reactive/signal.js +96 -0
- package/dist/reactive/signal.js.map +1 -0
- package/dist/reactive/theme.cjs +2 -0
- package/dist/reactive/theme.cjs.map +1 -0
- package/dist/reactive/theme.d.ts +12 -0
- package/dist/reactive/theme.d.ts.map +1 -0
- package/dist/reactive/theme.js +27 -0
- package/dist/reactive/theme.js.map +1 -0
- package/dist/reactive/types.cjs +2 -0
- package/dist/reactive/types.cjs.map +1 -0
- package/dist/reactive/types.d.ts +93 -0
- package/dist/reactive/types.d.ts.map +1 -0
- package/dist/reactive/types.js +5 -0
- package/dist/reactive/types.js.map +1 -0
- package/dist/reactive/unified-scheduler.cjs +2 -0
- package/dist/reactive/unified-scheduler.cjs.map +1 -0
- package/dist/reactive/unified-scheduler.d.ts +112 -0
- package/dist/reactive/unified-scheduler.d.ts.map +1 -0
- package/dist/reactive/unified-scheduler.js +219 -0
- package/dist/reactive/unified-scheduler.js.map +1 -0
- package/dist/runtime/component-context.cjs +2 -0
- package/dist/runtime/component-context.cjs.map +1 -0
- package/dist/runtime/component-context.d.ts +73 -0
- package/dist/runtime/component-context.d.ts.map +1 -0
- package/dist/runtime/component-context.js +177 -0
- package/dist/runtime/component-context.js.map +1 -0
- package/dist/runtime/component.cjs +2 -0
- package/dist/runtime/component.cjs.map +1 -0
- package/dist/runtime/component.d.ts +112 -0
- package/dist/runtime/component.d.ts.map +1 -0
- package/dist/runtime/component.js +238 -0
- package/dist/runtime/component.js.map +1 -0
- package/dist/runtime/context.cjs +2 -0
- package/dist/runtime/context.cjs.map +1 -0
- package/dist/runtime/context.d.ts +138 -0
- package/dist/runtime/context.d.ts.map +1 -0
- package/dist/runtime/context.js +289 -0
- package/dist/runtime/context.js.map +1 -0
- package/dist/runtime/dev-tools.cjs +2 -0
- package/dist/runtime/dev-tools.cjs.map +1 -0
- package/dist/runtime/dev-tools.d.ts +240 -0
- package/dist/runtime/dev-tools.d.ts.map +1 -0
- package/dist/runtime/dev-tools.js +391 -0
- package/dist/runtime/dev-tools.js.map +1 -0
- package/dist/runtime/development-warnings.cjs +2 -0
- package/dist/runtime/development-warnings.cjs.map +1 -0
- package/dist/runtime/development-warnings.d.ts +42 -0
- package/dist/runtime/development-warnings.d.ts.map +1 -0
- package/dist/runtime/development-warnings.js +69 -0
- package/dist/runtime/development-warnings.js.map +1 -0
- package/dist/runtime/dom-bridge.cjs +2 -0
- package/dist/runtime/dom-bridge.cjs.map +1 -0
- package/dist/runtime/dom-bridge.d.ts +70 -0
- package/dist/runtime/dom-bridge.d.ts.map +1 -0
- package/dist/runtime/dom-bridge.js +241 -0
- package/dist/runtime/dom-bridge.js.map +1 -0
- package/dist/runtime/element-override.cjs +2 -0
- package/dist/runtime/element-override.cjs.map +1 -0
- package/dist/runtime/element-override.d.ts +82 -0
- package/dist/runtime/element-override.d.ts.map +1 -0
- package/dist/runtime/element-override.js +214 -0
- package/dist/runtime/element-override.js.map +1 -0
- package/dist/runtime/error-boundary.cjs +2 -0
- package/dist/runtime/error-boundary.cjs.map +1 -0
- package/dist/runtime/error-boundary.d.ts +302 -0
- package/dist/runtime/error-boundary.d.ts.map +1 -0
- package/dist/runtime/error-boundary.js +559 -0
- package/dist/runtime/error-boundary.js.map +1 -0
- package/dist/runtime/error-recovery.cjs +2 -0
- package/dist/runtime/error-recovery.cjs.map +1 -0
- package/dist/runtime/error-recovery.d.ts +267 -0
- package/dist/runtime/error-recovery.d.ts.map +1 -0
- package/dist/runtime/error-recovery.js +385 -0
- package/dist/runtime/error-recovery.js.map +1 -0
- package/dist/runtime/error-reporting.cjs +3 -0
- package/dist/runtime/error-reporting.cjs.map +1 -0
- package/dist/runtime/error-reporting.d.ts +287 -0
- package/dist/runtime/error-reporting.d.ts.map +1 -0
- package/dist/runtime/error-reporting.js +479 -0
- package/dist/runtime/error-reporting.js.map +1 -0
- package/dist/runtime/error-utils.cjs +3 -0
- package/dist/runtime/error-utils.cjs.map +1 -0
- package/dist/runtime/error-utils.d.ts +204 -0
- package/dist/runtime/error-utils.d.ts.map +1 -0
- package/dist/runtime/error-utils.js +352 -0
- package/dist/runtime/error-utils.js.map +1 -0
- package/dist/runtime/index.d.ts +29 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/lazy-component.cjs +2 -0
- package/dist/runtime/lazy-component.cjs.map +1 -0
- package/dist/runtime/lazy-component.d.ts +58 -0
- package/dist/runtime/lazy-component.d.ts.map +1 -0
- package/dist/runtime/lazy-component.js +129 -0
- package/dist/runtime/lazy-component.js.map +1 -0
- package/dist/runtime/lifecycle.cjs +2 -0
- package/dist/runtime/lifecycle.cjs.map +1 -0
- package/dist/runtime/lifecycle.d.ts +8 -0
- package/dist/runtime/lifecycle.d.ts.map +1 -0
- package/dist/runtime/lifecycle.js +7 -0
- package/dist/runtime/lifecycle.js.map +1 -0
- package/dist/runtime/mounting.cjs +2 -0
- package/dist/runtime/mounting.cjs.map +1 -0
- package/dist/runtime/mounting.d.ts +9 -0
- package/dist/runtime/mounting.d.ts.map +1 -0
- package/dist/runtime/mounting.js +12 -0
- package/dist/runtime/mounting.js.map +1 -0
- package/dist/runtime/optimization.cjs +2 -0
- package/dist/runtime/optimization.cjs.map +1 -0
- package/dist/runtime/optimization.d.ts +8 -0
- package/dist/runtime/optimization.d.ts.map +1 -0
- package/dist/runtime/optimization.js +6 -0
- package/dist/runtime/optimization.js.map +1 -0
- package/dist/runtime/performance.cjs +2 -0
- package/dist/runtime/performance.cjs.map +1 -0
- package/dist/runtime/performance.d.ts +217 -0
- package/dist/runtime/performance.d.ts.map +1 -0
- package/dist/runtime/performance.js +399 -0
- package/dist/runtime/performance.js.map +1 -0
- package/dist/runtime/props.cjs +2 -0
- package/dist/runtime/props.cjs.map +1 -0
- package/dist/runtime/props.d.ts +154 -0
- package/dist/runtime/props.d.ts.map +1 -0
- package/dist/runtime/props.js +265 -0
- package/dist/runtime/props.js.map +1 -0
- package/dist/runtime/refs.d.ts +8 -0
- package/dist/runtime/refs.d.ts.map +1 -0
- package/dist/runtime/renderer.cjs +2 -0
- package/dist/runtime/renderer.cjs.map +1 -0
- package/dist/runtime/renderer.d.ts +116 -0
- package/dist/runtime/renderer.d.ts.map +1 -0
- package/dist/runtime/renderer.js +390 -0
- package/dist/runtime/renderer.js.map +1 -0
- package/dist/runtime/semantic-role-manager.cjs +2 -0
- package/dist/runtime/semantic-role-manager.cjs.map +1 -0
- package/dist/runtime/semantic-role-manager.d.ts +37 -0
- package/dist/runtime/semantic-role-manager.d.ts.map +1 -0
- package/dist/runtime/semantic-role-manager.js +82 -0
- package/dist/runtime/semantic-role-manager.js.map +1 -0
- package/dist/runtime/types.d.ts +230 -0
- package/dist/runtime/types.d.ts.map +1 -0
- package/dist/state/binding.cjs +2 -0
- package/dist/state/binding.cjs.map +1 -0
- package/dist/state/binding.d.ts +96 -0
- package/dist/state/binding.d.ts.map +1 -0
- package/dist/state/binding.js +155 -0
- package/dist/state/binding.js.map +1 -0
- package/dist/state/environment-object.d.ts +130 -0
- package/dist/state/environment-object.d.ts.map +1 -0
- package/dist/state/environment.cjs +2 -0
- package/dist/state/environment.cjs.map +1 -0
- package/dist/state/environment.d.ts +178 -0
- package/dist/state/environment.d.ts.map +1 -0
- package/dist/state/environment.js +115 -0
- package/dist/state/environment.js.map +1 -0
- package/dist/state/index.cjs +2 -0
- package/dist/state/index.cjs.map +1 -0
- package/dist/state/index.d.ts +108 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +63 -0
- package/dist/state/index.js.map +1 -0
- package/dist/state/observed-object.cjs +2 -0
- package/dist/state/observed-object.cjs.map +1 -0
- package/dist/state/observed-object.d.ts +126 -0
- package/dist/state/observed-object.d.ts.map +1 -0
- package/dist/state/observed-object.js +163 -0
- package/dist/state/observed-object.js.map +1 -0
- package/dist/state/state-manager.cjs +2 -0
- package/dist/state/state-manager.cjs.map +1 -0
- package/dist/state/state-manager.d.ts +97 -0
- package/dist/state/state-manager.d.ts.map +1 -0
- package/dist/state/state-manager.js +233 -0
- package/dist/state/state-manager.js.map +1 -0
- package/dist/state/state.cjs +2 -0
- package/dist/state/state.cjs.map +1 -0
- package/dist/state/state.d.ts +78 -0
- package/dist/state/state.d.ts.map +1 -0
- package/dist/state/state.js +159 -0
- package/dist/state/state.js.map +1 -0
- package/dist/state/types.d.ts +159 -0
- package/dist/state/types.d.ts.map +1 -0
- package/dist/sui-compat.cjs +2 -0
- package/dist/sui-compat.cjs.map +1 -0
- package/dist/sui-compat.d.ts +110 -0
- package/dist/sui-compat.d.ts.map +1 -0
- package/dist/sui-compat.js +88 -0
- package/dist/sui-compat.js.map +1 -0
- package/dist/validation/advanced-debugging.cjs +44 -0
- package/dist/validation/advanced-debugging.cjs.map +1 -0
- package/dist/validation/advanced-debugging.d.ts +319 -0
- package/dist/validation/advanced-debugging.d.ts.map +1 -0
- package/dist/validation/advanced-debugging.js +455 -0
- package/dist/validation/advanced-debugging.js.map +1 -0
- package/dist/validation/build-time/detection.cjs +2 -0
- package/dist/validation/build-time/detection.cjs.map +1 -0
- package/dist/validation/build-time/detection.d.ts +32 -0
- package/dist/validation/build-time/detection.d.ts.map +1 -0
- package/dist/validation/build-time/detection.js +199 -0
- package/dist/validation/build-time/detection.js.map +1 -0
- package/dist/validation/build-time/index.cjs +2 -0
- package/dist/validation/build-time/index.cjs.map +1 -0
- package/dist/validation/build-time/index.d.ts +84 -0
- package/dist/validation/build-time/index.d.ts.map +1 -0
- package/dist/validation/build-time/index.js +122 -0
- package/dist/validation/build-time/index.js.map +1 -0
- package/dist/validation/build-time/plugins.cjs +3 -0
- package/dist/validation/build-time/plugins.cjs.map +1 -0
- package/dist/validation/build-time/plugins.d.ts +75 -0
- package/dist/validation/build-time/plugins.d.ts.map +1 -0
- package/dist/validation/build-time/plugins.js +282 -0
- package/dist/validation/build-time/plugins.js.map +1 -0
- package/dist/validation/build-time/rules.cjs +2 -0
- package/dist/validation/build-time/rules.cjs.map +1 -0
- package/dist/validation/build-time/rules.d.ts +73 -0
- package/dist/validation/build-time/rules.d.ts.map +1 -0
- package/dist/validation/build-time/rules.js +576 -0
- package/dist/validation/build-time/rules.js.map +1 -0
- package/dist/validation/build-time/transformer.cjs +3 -0
- package/dist/validation/build-time/transformer.cjs.map +1 -0
- package/dist/validation/build-time/transformer.d.ts +23 -0
- package/dist/validation/build-time/transformer.d.ts.map +1 -0
- package/dist/validation/build-time/transformer.js +177 -0
- package/dist/validation/build-time/transformer.js.map +1 -0
- package/dist/validation/build-time/types.d.ts +212 -0
- package/dist/validation/build-time/types.d.ts.map +1 -0
- package/dist/validation/comprehensive.cjs +9 -0
- package/dist/validation/comprehensive.cjs.map +1 -0
- package/dist/validation/comprehensive.d.ts +160 -0
- package/dist/validation/comprehensive.d.ts.map +1 -0
- package/dist/validation/comprehensive.js +916 -0
- package/dist/validation/comprehensive.js.map +1 -0
- package/dist/validation/debug-tools.cjs +16 -0
- package/dist/validation/debug-tools.cjs.map +1 -0
- package/dist/validation/debug-tools.d.ts +251 -0
- package/dist/validation/debug-tools.d.ts.map +1 -0
- package/dist/validation/debug-tools.js +405 -0
- package/dist/validation/debug-tools.js.map +1 -0
- package/dist/validation/developer-experience.cjs +17 -0
- package/dist/validation/developer-experience.cjs.map +1 -0
- package/dist/validation/developer-experience.d.ts +243 -0
- package/dist/validation/developer-experience.d.ts.map +1 -0
- package/dist/validation/developer-experience.js +433 -0
- package/dist/validation/developer-experience.js.map +1 -0
- package/dist/validation/documentation-integration.cjs +7 -0
- package/dist/validation/documentation-integration.cjs.map +1 -0
- package/dist/validation/documentation-integration.d.ts +269 -0
- package/dist/validation/documentation-integration.d.ts.map +1 -0
- package/dist/validation/documentation-integration.js +440 -0
- package/dist/validation/documentation-integration.js.map +1 -0
- package/dist/validation/enhanced-runtime.cjs +6 -0
- package/dist/validation/enhanced-runtime.cjs.map +1 -0
- package/dist/validation/enhanced-runtime.d.ts +279 -0
- package/dist/validation/enhanced-runtime.d.ts.map +1 -0
- package/dist/validation/enhanced-runtime.js +465 -0
- package/dist/validation/enhanced-runtime.js.map +1 -0
- package/dist/validation/error-reporting.cjs +32 -0
- package/dist/validation/error-reporting.cjs.map +1 -0
- package/dist/validation/error-reporting.d.ts +186 -0
- package/dist/validation/error-reporting.d.ts.map +1 -0
- package/dist/validation/error-reporting.js +370 -0
- package/dist/validation/error-reporting.js.map +1 -0
- package/dist/validation/ide-integration.cjs +85 -0
- package/dist/validation/ide-integration.cjs.map +1 -0
- package/dist/validation/ide-integration.d.ts +328 -0
- package/dist/validation/ide-integration.d.ts.map +1 -0
- package/dist/validation/ide-integration.js +557 -0
- package/dist/validation/ide-integration.js.map +1 -0
- package/dist/validation/index.cjs +6 -0
- package/dist/validation/index.cjs.map +1 -0
- package/dist/validation/index.d.ts +171 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +309 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/lifecycle-validation.cjs +2 -0
- package/dist/validation/lifecycle-validation.cjs.map +1 -0
- package/dist/validation/lifecycle-validation.d.ts +165 -0
- package/dist/validation/lifecycle-validation.d.ts.map +1 -0
- package/dist/validation/lifecycle-validation.js +314 -0
- package/dist/validation/lifecycle-validation.js.map +1 -0
- package/dist/validation/performance-optimizer.cjs +2 -0
- package/dist/validation/performance-optimizer.cjs.map +1 -0
- package/dist/validation/performance-optimizer.d.ts +218 -0
- package/dist/validation/performance-optimizer.d.ts.map +1 -0
- package/dist/validation/performance-optimizer.js +338 -0
- package/dist/validation/performance-optimizer.js.map +1 -0
- package/dist/validation/plugin-registration.cjs +2 -0
- package/dist/validation/plugin-registration.cjs.map +1 -0
- package/dist/validation/plugin-registration.d.ts +88 -0
- package/dist/validation/plugin-registration.d.ts.map +1 -0
- package/dist/validation/plugin-registration.js +126 -0
- package/dist/validation/plugin-registration.js.map +1 -0
- package/dist/validation/production-bypass.cjs +2 -0
- package/dist/validation/production-bypass.cjs.map +1 -0
- package/dist/validation/production-bypass.d.ts +175 -0
- package/dist/validation/production-bypass.d.ts.map +1 -0
- package/dist/validation/production-bypass.js +218 -0
- package/dist/validation/production-bypass.js.map +1 -0
- package/dist/validation/simple.cjs +9 -0
- package/dist/validation/simple.cjs.map +1 -0
- package/dist/validation/simple.d.ts +111 -0
- package/dist/validation/simple.d.ts.map +1 -0
- package/dist/validation/simple.js +146 -0
- package/dist/validation/simple.js.map +1 -0
- package/dist/viewport/adapters/web-adapter.cjs +70 -0
- package/dist/viewport/adapters/web-adapter.cjs.map +1 -0
- package/dist/viewport/adapters/web-adapter.d.ts +227 -0
- package/dist/viewport/adapters/web-adapter.d.ts.map +1 -0
- package/dist/viewport/adapters/web-adapter.js +823 -0
- package/dist/viewport/adapters/web-adapter.js.map +1 -0
- package/dist/viewport/components.cjs +2 -0
- package/dist/viewport/components.cjs.map +1 -0
- package/dist/viewport/components.d.ts +131 -0
- package/dist/viewport/components.d.ts.map +1 -0
- package/dist/viewport/components.js +298 -0
- package/dist/viewport/components.js.map +1 -0
- package/dist/viewport/environment.cjs +2 -0
- package/dist/viewport/environment.cjs.map +1 -0
- package/dist/viewport/environment.d.ts +75 -0
- package/dist/viewport/environment.d.ts.map +1 -0
- package/dist/viewport/environment.js +86 -0
- package/dist/viewport/environment.js.map +1 -0
- package/dist/viewport/index.cjs +2 -0
- package/dist/viewport/index.cjs.map +1 -0
- package/dist/viewport/index.d.ts +138 -0
- package/dist/viewport/index.d.ts.map +1 -0
- package/dist/viewport/index.js +166 -0
- package/dist/viewport/index.js.map +1 -0
- package/dist/viewport/platform-detection.cjs +2 -0
- package/dist/viewport/platform-detection.cjs.map +1 -0
- package/dist/viewport/platform-detection.d.ts +59 -0
- package/dist/viewport/platform-detection.d.ts.map +1 -0
- package/dist/viewport/platform-detection.js +205 -0
- package/dist/viewport/platform-detection.js.map +1 -0
- package/dist/viewport/types.cjs +2 -0
- package/dist/viewport/types.cjs.map +1 -0
- package/dist/viewport/types.d.ts +301 -0
- package/dist/viewport/types.d.ts.map +1 -0
- package/dist/viewport/types.js +13 -0
- package/dist/viewport/types.js.map +1 -0
- package/dist/viewport/viewport-manager.cjs +2 -0
- package/dist/viewport/viewport-manager.cjs.map +1 -0
- package/dist/viewport/viewport-manager.d.ts +118 -0
- package/dist/viewport/viewport-manager.d.ts.map +1 -0
- package/dist/viewport/viewport-manager.js +524 -0
- package/dist/viewport/viewport-manager.js.map +1 -0
- package/package.json +128 -0
- package/src/assets/Asset.ts +11 -0
- package/src/assets/AssetCollection.ts +99 -0
- package/src/assets/ColorAsset.ts +210 -0
- package/src/assets/FontAsset.ts +380 -0
- package/src/assets/ImageAsset.ts +91 -0
- package/src/assets/README.md +190 -0
- package/src/assets/index.ts +175 -0
- package/src/assets/test-assets.ts +69 -0
- package/src/assets/test-integration.ts +46 -0
- package/src/assets/test-simple.ts +28 -0
- package/src/assets/types.ts +79 -0
- package/src/bundles/common.ts +30 -0
- package/src/bundles/complete.ts +29 -0
- package/src/bundles/essential.ts +26 -0
- package/src/bundles/minimal.ts +26 -0
- package/src/bundles/production-minimal.ts +67 -0
- package/src/compiler/advanced-parser.ts +871 -0
- package/src/compiler/codegen.ts +450 -0
- package/src/compiler/enhanced-codegen.ts +729 -0
- package/src/compiler/index.ts +25 -0
- package/src/compiler/parser.ts +461 -0
- package/src/compiler/plugin.ts +181 -0
- package/src/compiler/types.ts +177 -0
- package/src/components/BasicInput.ts +352 -0
- package/src/components/Button.ts +963 -0
- package/src/components/Divider.ts +341 -0
- package/src/components/EnhancedLink.ts +676 -0
- package/src/components/Form.ts +414 -0
- package/src/components/Grid.ts +2507 -0
- package/src/components/GridResponsive.ts +637 -0
- package/src/components/Image.ts +426 -0
- package/src/components/List.ts +1084 -0
- package/src/components/Menu.ts +807 -0
- package/src/components/Picker.ts +678 -0
- package/src/components/ScrollView.ts +725 -0
- package/src/components/Section.ts +472 -0
- package/src/components/Show.ts +205 -0
- package/src/components/Spacer.ts +93 -0
- package/src/components/Text.ts +447 -0
- package/src/components/Toggle.ts +700 -0
- package/src/components/index.ts +231 -0
- package/src/components/wrapper.ts +828 -0
- package/src/concatenation/concatenatable.ts +211 -0
- package/src/concatenation/concatenated-component.ts +471 -0
- package/src/concatenation/index.ts +41 -0
- package/src/concatenation/styles.css +120 -0
- package/src/concatenation/text-optimizer.ts +440 -0
- package/src/concatenation/types.ts +116 -0
- package/src/constants/README.md +339 -0
- package/src/constants/__tests__/frame-utils.test.ts +276 -0
- package/src/constants/__tests__/layout.test.ts +215 -0
- package/src/constants/frame-utils.ts +174 -0
- package/src/constants/index.ts +8 -0
- package/src/constants/layout.ts +120 -0
- package/src/css-classes/component-base.ts +117 -0
- package/src/css-classes/css-class-manager.ts +372 -0
- package/src/css-classes/dom-integration.ts +162 -0
- package/src/css-classes/enhanced-renderer.ts +166 -0
- package/src/css-classes/index.ts +45 -0
- package/src/css-classes/types.ts +73 -0
- package/src/css-classes/utilities.ts +175 -0
- package/src/debug/index.ts +267 -0
- package/src/developer-experience/enhanced-errors.ts +556 -0
- package/src/developer-experience/enhanced-types.ts +427 -0
- package/src/developer-experience/index.ts +220 -0
- package/src/globals.d.ts +43 -0
- package/src/gradients/__tests__/angular-gradient.test.ts +111 -0
- package/src/gradients/__tests__/background-modifier.test.ts +81 -0
- package/src/gradients/__tests__/comprehensive-gradients.test.ts +296 -0
- package/src/gradients/__tests__/gradient-asset.test.ts +144 -0
- package/src/gradients/__tests__/linear-gradient.test.ts +92 -0
- package/src/gradients/__tests__/phase4-features.test.ts +386 -0
- package/src/gradients/__tests__/radial-gradient.test.ts +110 -0
- package/src/gradients/__tests__/repeating-gradients.test.ts +125 -0
- package/src/gradients/__tests__/state-background-modifier.test.ts +340 -0
- package/src/gradients/__tests__/state-gradient-asset.test.ts +262 -0
- package/src/gradients/__tests__/state-gradient-integration.test.ts +277 -0
- package/src/gradients/css-generator.ts +158 -0
- package/src/gradients/examples.ts +632 -0
- package/src/gradients/gradient-asset.ts +30 -0
- package/src/gradients/index.ts +85 -0
- package/src/gradients/performance.ts +521 -0
- package/src/gradients/presets.ts +422 -0
- package/src/gradients/reactive.ts +470 -0
- package/src/gradients/state-gradient-asset.ts +179 -0
- package/src/gradients/types.ts +148 -0
- package/src/gradients/utils.ts +579 -0
- package/src/gradients/validation.ts +489 -0
- package/src/index.ts +168 -0
- package/src/lifecycle/hooks.ts +332 -0
- package/src/modifiers/__tests__/as-html-integration.test.ts +204 -0
- package/src/modifiers/__tests__/as-html.test.ts +437 -0
- package/src/modifiers/__tests__/basic-sanitizer-security.test.ts +294 -0
- package/src/modifiers/__tests__/border.test.ts +371 -0
- package/src/modifiers/__tests__/margin-string-support.test.ts +41 -0
- package/src/modifiers/__tests__/padding-string-support.test.ts +41 -0
- package/src/modifiers/as-html-validator.ts +68 -0
- package/src/modifiers/as-html.ts +216 -0
- package/src/modifiers/attributes.ts +574 -0
- package/src/modifiers/backdrop.ts +290 -0
- package/src/modifiers/background.ts +165 -0
- package/src/modifiers/base.ts +1815 -0
- package/src/modifiers/basic-sanitizer.ts +227 -0
- package/src/modifiers/border.ts +574 -0
- package/src/modifiers/builder.ts +1747 -0
- package/src/modifiers/core.ts +521 -0
- package/src/modifiers/css.ts +148 -0
- package/src/modifiers/effects.ts +412 -0
- package/src/modifiers/elements.ts +541 -0
- package/src/modifiers/filters.ts +501 -0
- package/src/modifiers/flexbox.ts +180 -0
- package/src/modifiers/font.ts +149 -0
- package/src/modifiers/grid.ts +238 -0
- package/src/modifiers/index.ts +481 -0
- package/src/modifiers/margin.ts +218 -0
- package/src/modifiers/padding.ts +318 -0
- package/src/modifiers/registry.ts +444 -0
- package/src/modifiers/responsive/__tests__/advanced-media-queries.test.ts +392 -0
- package/src/modifiers/responsive/__tests__/advanced-utilities.test.ts +368 -0
- package/src/modifiers/responsive/__tests__/comprehensive-browser-tests.test.ts +556 -0
- package/src/modifiers/responsive/__tests__/layout-patterns.test.ts +558 -0
- package/src/modifiers/responsive/advanced-utilities.ts +562 -0
- package/src/modifiers/responsive/breakpoints.ts +330 -0
- package/src/modifiers/responsive/css-generator.ts +432 -0
- package/src/modifiers/responsive/dev-tools.ts +650 -0
- package/src/modifiers/responsive/index.ts +119 -0
- package/src/modifiers/responsive/layout-patterns.ts +592 -0
- package/src/modifiers/responsive/performance.ts +385 -0
- package/src/modifiers/responsive/responsive-builder.ts +620 -0
- package/src/modifiers/responsive/responsive-modifier.ts +410 -0
- package/src/modifiers/responsive/types.ts +226 -0
- package/src/modifiers/responsive/utilities.ts +478 -0
- package/src/modifiers/scroll.ts +297 -0
- package/src/modifiers/shadows.ts +321 -0
- package/src/modifiers/size.ts +208 -0
- package/src/modifiers/text.ts +416 -0
- package/src/modifiers/transformations.ts +640 -0
- package/src/modifiers/transitions.ts +218 -0
- package/src/modifiers/types.ts +889 -0
- package/src/modifiers/typography.ts +341 -0
- package/src/modifiers/utility.ts +209 -0
- package/src/modifiers/utils.ts +413 -0
- package/src/plugins/__tests__/simplified-plugin-system.test.ts +190 -0
- package/src/plugins/component-loader-registry.ts +371 -0
- package/src/plugins/index.ts +61 -0
- package/src/plugins/legacy-adapter.ts +84 -0
- package/src/plugins/simplified-component-registry.ts +130 -0
- package/src/plugins/simplified-error-handler.ts +372 -0
- package/src/plugins/simplified-index.ts +61 -0
- package/src/plugins/simplified-lazy-loader.ts +242 -0
- package/src/plugins/simplified-plugin-manager.ts +93 -0
- package/src/plugins/simplified-tachui-instance.ts +142 -0
- package/src/plugins/simplified-types.ts +79 -0
- package/src/plugins/simplified-utils.ts +118 -0
- package/src/reactive/cleanup.ts +241 -0
- package/src/reactive/computed.ts +281 -0
- package/src/reactive/context.ts +287 -0
- package/src/reactive/effect.ts +194 -0
- package/src/reactive/enhanced-effect.ts +318 -0
- package/src/reactive/enhanced-signal.ts +227 -0
- package/src/reactive/equality.ts +188 -0
- package/src/reactive/globals.d.ts +5 -0
- package/src/reactive/index.ts +150 -0
- package/src/reactive/migration.ts +335 -0
- package/src/reactive/ownership.ts +182 -0
- package/src/reactive/scheduler.ts +300 -0
- package/src/reactive/signal.ts +201 -0
- package/src/reactive/theme.ts +49 -0
- package/src/reactive/types.ts +103 -0
- package/src/reactive/unified-scheduler.ts +357 -0
- package/src/runtime/component-context.ts +343 -0
- package/src/runtime/component.ts +499 -0
- package/src/runtime/context.ts +527 -0
- package/src/runtime/dev-tools.ts +752 -0
- package/src/runtime/development-warnings.ts +114 -0
- package/src/runtime/dom-bridge.ts +570 -0
- package/src/runtime/element-override.ts +282 -0
- package/src/runtime/error-boundary.ts +955 -0
- package/src/runtime/error-recovery.ts +638 -0
- package/src/runtime/error-reporting.ts +808 -0
- package/src/runtime/error-utils.ts +698 -0
- package/src/runtime/index.ts +202 -0
- package/src/runtime/lazy-component.ts +268 -0
- package/src/runtime/lifecycle.ts +10 -0
- package/src/runtime/mounting.ts +17 -0
- package/src/runtime/optimization.ts +13 -0
- package/src/runtime/performance.ts +693 -0
- package/src/runtime/props.ts +434 -0
- package/src/runtime/refs.ts +13 -0
- package/src/runtime/renderer.ts +674 -0
- package/src/runtime/semantic-role-manager.ts +140 -0
- package/src/runtime/types.ts +282 -0
- package/src/state/binding.ts +381 -0
- package/src/state/environment-object.ts +444 -0
- package/src/state/environment.ts +351 -0
- package/src/state/index.ts +179 -0
- package/src/state/observed-object.ts +405 -0
- package/src/state/state-manager.ts +366 -0
- package/src/state/state.ts +339 -0
- package/src/state/types.ts +192 -0
- package/src/sui-compat.ts +163 -0
- package/src/validation/__tests__/phase-1d-integration.test.ts +558 -0
- package/src/validation/advanced-debugging.ts +860 -0
- package/src/validation/build-time/detection.ts +373 -0
- package/src/validation/build-time/index.ts +222 -0
- package/src/validation/build-time/plugins.ts +515 -0
- package/src/validation/build-time/rules.ts +624 -0
- package/src/validation/build-time/transformer.ts +372 -0
- package/src/validation/build-time/types.ts +232 -0
- package/src/validation/comprehensive.ts +1272 -0
- package/src/validation/debug-tools.ts +724 -0
- package/src/validation/developer-experience.ts +712 -0
- package/src/validation/documentation-integration.ts +835 -0
- package/src/validation/enhanced-runtime.ts +765 -0
- package/src/validation/error-reporting.ts +587 -0
- package/src/validation/ide-integration.ts +845 -0
- package/src/validation/index.ts +353 -0
- package/src/validation/lifecycle-validation.ts +636 -0
- package/src/validation/performance-optimizer.ts +599 -0
- package/src/validation/plugin-registration.ts +249 -0
- package/src/validation/production-bypass.ts +466 -0
- package/src/validation/simple.ts +465 -0
- package/src/viewport/adapters/web-adapter.ts +1385 -0
- package/src/viewport/components.ts +505 -0
- package/src/viewport/environment.ts +173 -0
- package/src/viewport/index.ts +290 -0
- package/src/viewport/platform-detection.ts +431 -0
- package/src/viewport/types.ts +371 -0
- package/src/viewport/viewport-manager.ts +979 -0
|
@@ -0,0 +1,1385 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web Viewport Adapter
|
|
3
|
+
*
|
|
4
|
+
* Handles viewport management for web browsers using modals, portals, and popup windows.
|
|
5
|
+
* Provides fallback strategies for different browser capabilities.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { createSignal } from '../../reactive'
|
|
9
|
+
import type { Signal } from '../../reactive/types'
|
|
10
|
+
import type { ComponentInstance } from '../../runtime/types'
|
|
11
|
+
import { mountComponentTree } from '../../runtime/dom-bridge'
|
|
12
|
+
import { detectViewportEnvironment, type PlatformDetectionConfig } from '../platform-detection'
|
|
13
|
+
import {
|
|
14
|
+
ViewportAdapter,
|
|
15
|
+
type ViewportEnvironment,
|
|
16
|
+
type ViewportInstance,
|
|
17
|
+
type ViewportState,
|
|
18
|
+
type ViewportType,
|
|
19
|
+
type WindowConfig,
|
|
20
|
+
} from '../types'
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Web-specific viewport adapter
|
|
24
|
+
*/
|
|
25
|
+
export class WebViewportAdapter extends ViewportAdapter {
|
|
26
|
+
readonly environment: ViewportEnvironment
|
|
27
|
+
private portals = new Map<string, WebPortalInstance>()
|
|
28
|
+
private modals = new Map<string, WebModalInstance>()
|
|
29
|
+
private popups = new Map<string, WebPopupInstance>()
|
|
30
|
+
private portalContainer: HTMLElement | null = null
|
|
31
|
+
private broadcastChannel: BroadcastChannel | null = null
|
|
32
|
+
|
|
33
|
+
constructor(config: PlatformDetectionConfig = {}) {
|
|
34
|
+
super()
|
|
35
|
+
this.environment = detectViewportEnvironment(config)
|
|
36
|
+
this.initializePortalContainer()
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Check if we can create a window with given config
|
|
41
|
+
*/
|
|
42
|
+
canCreateWindow(config: WindowConfig): boolean {
|
|
43
|
+
// Always can create modals and portals
|
|
44
|
+
if (!config.preferNativeWindow) {
|
|
45
|
+
return true
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Check if we can create popup windows
|
|
49
|
+
try {
|
|
50
|
+
return this.environment.capabilities.multiWindow
|
|
51
|
+
} catch {
|
|
52
|
+
return false
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Create a viewport instance
|
|
58
|
+
*/
|
|
59
|
+
createWindow(config: WindowConfig): ViewportInstance {
|
|
60
|
+
const windowType = this.determineWindowType(config)
|
|
61
|
+
|
|
62
|
+
switch (windowType) {
|
|
63
|
+
case 'window':
|
|
64
|
+
return this.createPopupWindow(config)
|
|
65
|
+
|
|
66
|
+
case 'modal':
|
|
67
|
+
return this.createModal(config)
|
|
68
|
+
|
|
69
|
+
case 'portal':
|
|
70
|
+
return this.createPortal(config)
|
|
71
|
+
|
|
72
|
+
default:
|
|
73
|
+
return this.createModal(config)
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Destroy a window
|
|
79
|
+
*/
|
|
80
|
+
async destroyWindow(windowId: string): Promise<void> {
|
|
81
|
+
// Try each type
|
|
82
|
+
const portal = this.portals.get(windowId)
|
|
83
|
+
if (portal) {
|
|
84
|
+
portal.dispose()
|
|
85
|
+
this.portals.delete(windowId)
|
|
86
|
+
return
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const modal = this.modals.get(windowId)
|
|
90
|
+
if (modal) {
|
|
91
|
+
modal.dispose()
|
|
92
|
+
this.modals.delete(windowId)
|
|
93
|
+
return
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const popup = this.popups.get(windowId)
|
|
97
|
+
if (popup) {
|
|
98
|
+
popup.dispose()
|
|
99
|
+
this.popups.delete(windowId)
|
|
100
|
+
return
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Set up cross-window communication
|
|
106
|
+
*/
|
|
107
|
+
setupCrossWindowCommunication(): void {
|
|
108
|
+
if ('BroadcastChannel' in window) {
|
|
109
|
+
// Use BroadcastChannel for same-origin communication
|
|
110
|
+
this.broadcastChannel = new BroadcastChannel('tachui-viewport')
|
|
111
|
+
|
|
112
|
+
this.broadcastChannel.addEventListener('message', (event: MessageEvent) => {
|
|
113
|
+
this.handleCrossWindowMessage(event.data)
|
|
114
|
+
})
|
|
115
|
+
} else {
|
|
116
|
+
// Fallback to localStorage events
|
|
117
|
+
const handleStorage = (event: StorageEvent) => {
|
|
118
|
+
if (event.key === 'tachui-viewport-message') {
|
|
119
|
+
try {
|
|
120
|
+
const message = JSON.parse(event.newValue || '{}')
|
|
121
|
+
this.handleCrossWindowMessage(message)
|
|
122
|
+
} catch {
|
|
123
|
+
// Ignore malformed messages
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (typeof window !== 'undefined') {
|
|
128
|
+
;(window as any).addEventListener('storage', handleStorage)
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Broadcast message to other windows
|
|
135
|
+
*/
|
|
136
|
+
broadcastMessage(message: any, _excludeWindow?: string): void {
|
|
137
|
+
const messageData = {
|
|
138
|
+
...message,
|
|
139
|
+
timestamp: Date.now(),
|
|
140
|
+
source: window.location.href,
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (this.broadcastChannel) {
|
|
144
|
+
this.broadcastChannel.postMessage(messageData)
|
|
145
|
+
} else {
|
|
146
|
+
// Fallback to localStorage
|
|
147
|
+
localStorage.setItem('tachui-viewport-message', JSON.stringify(messageData))
|
|
148
|
+
// Clear after a moment to avoid storage bloat
|
|
149
|
+
setTimeout(() => {
|
|
150
|
+
localStorage.removeItem('tachui-viewport-message')
|
|
151
|
+
}, 100)
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Optimize for web platform
|
|
157
|
+
*/
|
|
158
|
+
optimizeForPlatform(): void {
|
|
159
|
+
// Set up CSS custom properties for theming
|
|
160
|
+
document.documentElement.style.setProperty('--tachui-modal-backdrop-blur', '8px')
|
|
161
|
+
document.documentElement.style.setProperty('--tachui-modal-animation-duration', '200ms')
|
|
162
|
+
document.documentElement.style.setProperty('--tachui-modal-z-index', '1000')
|
|
163
|
+
|
|
164
|
+
// Set up global styles for modals if needed
|
|
165
|
+
this.injectGlobalStyles()
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Create popup window (native browser window)
|
|
170
|
+
*/
|
|
171
|
+
private createPopupWindow(config: WindowConfig): WebPopupInstance {
|
|
172
|
+
const popup = new WebPopupInstance(config)
|
|
173
|
+
this.popups.set(config.id, popup)
|
|
174
|
+
return popup
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Create modal overlay
|
|
179
|
+
*/
|
|
180
|
+
protected createModal(config: WindowConfig): WebModalInstance {
|
|
181
|
+
const modal = new WebModalInstance(config)
|
|
182
|
+
this.modals.set(config.id, modal)
|
|
183
|
+
return modal
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Create portal
|
|
188
|
+
*/
|
|
189
|
+
protected createPortal(config: WindowConfig): WebPortalInstance {
|
|
190
|
+
const portal = new WebPortalInstance(config, this.portalContainer!)
|
|
191
|
+
this.portals.set(config.id, portal)
|
|
192
|
+
return portal
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Determine optimal window type
|
|
197
|
+
*/
|
|
198
|
+
private determineWindowType(config: WindowConfig): ViewportType {
|
|
199
|
+
if (config.preferNativeWindow && this.environment.capabilities.multiWindow) {
|
|
200
|
+
return 'window'
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (config.modal !== false) {
|
|
204
|
+
return 'modal'
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
return 'portal'
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Initialize portal container
|
|
212
|
+
*/
|
|
213
|
+
private initializePortalContainer(): void {
|
|
214
|
+
// For single-page apps, try to use the existing app container first
|
|
215
|
+
let container = document.getElementById('app')
|
|
216
|
+
|
|
217
|
+
if (container) {
|
|
218
|
+
this.portalContainer = container
|
|
219
|
+
return
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// Fallback to creating a separate portal container
|
|
223
|
+
container = document.getElementById('tachui-portals')
|
|
224
|
+
|
|
225
|
+
if (!container) {
|
|
226
|
+
container = document.createElement('div')
|
|
227
|
+
container.id = 'tachui-portals'
|
|
228
|
+
container.style.position = 'relative'
|
|
229
|
+
container.style.zIndex = '999'
|
|
230
|
+
document.body.appendChild(container)
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
this.portalContainer = container
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Handle cross-window messages
|
|
238
|
+
*/
|
|
239
|
+
private handleCrossWindowMessage(message: any): void {
|
|
240
|
+
// Forward to all viewport instances
|
|
241
|
+
this.portals.forEach((portal) => portal.receiveMessage(message))
|
|
242
|
+
this.modals.forEach((modal) => modal.receiveMessage(message))
|
|
243
|
+
this.popups.forEach((popup) => popup.receiveMessage(message))
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Inject global CSS styles
|
|
248
|
+
*/
|
|
249
|
+
private injectGlobalStyles(): void {
|
|
250
|
+
const styleId = 'tachui-viewport-styles'
|
|
251
|
+
|
|
252
|
+
if (document.getElementById(styleId)) {
|
|
253
|
+
return // Already injected
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const style = document.createElement('style')
|
|
257
|
+
style.id = styleId
|
|
258
|
+
style.textContent = `
|
|
259
|
+
.tachui-modal-backdrop {
|
|
260
|
+
position: fixed;
|
|
261
|
+
top: 0;
|
|
262
|
+
left: 0;
|
|
263
|
+
right: 0;
|
|
264
|
+
bottom: 0;
|
|
265
|
+
background: rgba(0, 0, 0, 0.5);
|
|
266
|
+
backdrop-filter: blur(var(--tachui-modal-backdrop-blur, 8px));
|
|
267
|
+
z-index: var(--tachui-modal-z-index, 1000);
|
|
268
|
+
display: flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
justify-content: center;
|
|
271
|
+
animation: tachui-fade-in var(--tachui-modal-animation-duration, 200ms) ease-out;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.tachui-modal-content {
|
|
275
|
+
background: white;
|
|
276
|
+
border-radius: 8px;
|
|
277
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
|
|
278
|
+
max-width: 90vw;
|
|
279
|
+
max-height: 90vh;
|
|
280
|
+
overflow: auto;
|
|
281
|
+
animation: tachui-scale-in var(--tachui-modal-animation-duration, 200ms) ease-out;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.tachui-portal {
|
|
285
|
+
position: relative;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
@keyframes tachui-fade-in {
|
|
289
|
+
from {
|
|
290
|
+
opacity: 0;
|
|
291
|
+
}
|
|
292
|
+
to {
|
|
293
|
+
opacity: 1;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@keyframes tachui-scale-in {
|
|
298
|
+
from {
|
|
299
|
+
opacity: 0;
|
|
300
|
+
transform: scale(0.95);
|
|
301
|
+
}
|
|
302
|
+
to {
|
|
303
|
+
opacity: 1;
|
|
304
|
+
transform: scale(1);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
@media (prefers-reduced-motion: reduce) {
|
|
309
|
+
.tachui-modal-backdrop,
|
|
310
|
+
.tachui-modal-content {
|
|
311
|
+
animation: none;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
`
|
|
315
|
+
|
|
316
|
+
document.head.appendChild(style)
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Web popup window instance (using window.open)
|
|
322
|
+
*/
|
|
323
|
+
class WebPopupInstance implements ViewportInstance {
|
|
324
|
+
readonly id: string
|
|
325
|
+
readonly type: ViewportType = 'window'
|
|
326
|
+
readonly config: WindowConfig
|
|
327
|
+
state: Signal<ViewportState>
|
|
328
|
+
|
|
329
|
+
private nativeWindow: Window | null = null
|
|
330
|
+
private messageHandlers = new Set<(message: any) => void>()
|
|
331
|
+
private eventHandlers = new Map<string, Set<() => void>>()
|
|
332
|
+
private setState: (
|
|
333
|
+
value: ViewportState | ((prev: ViewportState) => ViewportState)
|
|
334
|
+
) => ViewportState
|
|
335
|
+
|
|
336
|
+
constructor(config: WindowConfig) {
|
|
337
|
+
this.id = config.id
|
|
338
|
+
this.config = config
|
|
339
|
+
|
|
340
|
+
const [state, setState] = createSignal<ViewportState>({
|
|
341
|
+
id: config.id,
|
|
342
|
+
title: config.title || config.id,
|
|
343
|
+
isVisible: false,
|
|
344
|
+
isMinimized: false,
|
|
345
|
+
isMaximized: false,
|
|
346
|
+
isFullscreen: false,
|
|
347
|
+
isFocused: false,
|
|
348
|
+
bounds: {
|
|
349
|
+
x: config.x || 100,
|
|
350
|
+
y: config.y || 100,
|
|
351
|
+
width: config.width || 800,
|
|
352
|
+
height: config.height || 600,
|
|
353
|
+
},
|
|
354
|
+
// Phase 2: Enhanced state properties
|
|
355
|
+
isPooled: false,
|
|
356
|
+
lastUsed: Date.now(),
|
|
357
|
+
groupId: undefined,
|
|
358
|
+
tabIndex: undefined,
|
|
359
|
+
parentWindowId: undefined,
|
|
360
|
+
})
|
|
361
|
+
|
|
362
|
+
this.state = state as Signal<ViewportState>
|
|
363
|
+
this.setState = setState
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
render(_component: ComponentInstance): void {
|
|
367
|
+
// For popup windows, we need to render the component in the popup's document
|
|
368
|
+
if (!this.nativeWindow) return
|
|
369
|
+
|
|
370
|
+
// This would need integration with TachUI's rendering system
|
|
371
|
+
// For now, just set basic content
|
|
372
|
+
this.nativeWindow.document.title = this.config.title || this.config.id
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
async show(): Promise<void> {
|
|
376
|
+
if (this.nativeWindow && !this.nativeWindow.closed) {
|
|
377
|
+
this.nativeWindow.focus()
|
|
378
|
+
return
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
const features = this.buildWindowFeatures()
|
|
382
|
+
this.nativeWindow = window.open('', this.config.id, features)
|
|
383
|
+
|
|
384
|
+
if (!this.nativeWindow) {
|
|
385
|
+
throw new Error('Failed to open popup window (likely blocked by popup blocker)')
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
this.setupPopupEventHandlers()
|
|
389
|
+
|
|
390
|
+
// Update state
|
|
391
|
+
this.setState((prevState) => ({
|
|
392
|
+
...prevState,
|
|
393
|
+
isVisible: true,
|
|
394
|
+
isFocused: true,
|
|
395
|
+
}))
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
async hide(): Promise<void> {
|
|
399
|
+
if (this.nativeWindow && !this.nativeWindow.closed) {
|
|
400
|
+
this.nativeWindow.blur()
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
async focus(): Promise<void> {
|
|
405
|
+
if (this.nativeWindow && !this.nativeWindow.closed) {
|
|
406
|
+
this.nativeWindow.focus()
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
async minimize(): Promise<void> {
|
|
411
|
+
// Not supported in web popups
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
async maximize(): Promise<void> {
|
|
415
|
+
// Not supported in web popups
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
async restore(): Promise<void> {
|
|
419
|
+
// Not supported in web popups
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
async close(): Promise<void> {
|
|
423
|
+
if (this.nativeWindow && !this.nativeWindow.closed) {
|
|
424
|
+
this.nativeWindow.close()
|
|
425
|
+
}
|
|
426
|
+
this.dispose()
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
dispose(): void {
|
|
430
|
+
this.messageHandlers.clear()
|
|
431
|
+
this.eventHandlers.clear()
|
|
432
|
+
this.nativeWindow = null
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
postMessage(message: any): void {
|
|
436
|
+
if (this.nativeWindow && !this.nativeWindow.closed) {
|
|
437
|
+
this.nativeWindow.postMessage(message, '*')
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
onMessage(handler: (message: any) => void): () => void {
|
|
442
|
+
this.messageHandlers.add(handler)
|
|
443
|
+
return () => this.messageHandlers.delete(handler)
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
receiveMessage(message: any): void {
|
|
447
|
+
this.messageHandlers.forEach((handler) => handler(message))
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
onShow(handler: () => void): () => void {
|
|
451
|
+
return this.addEventListener('show', handler)
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
onHide(handler: () => void): () => void {
|
|
455
|
+
return this.addEventListener('hide', handler)
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
onFocus(handler: () => void): () => void {
|
|
459
|
+
return this.addEventListener('focus', handler)
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
onBlur(handler: () => void): () => void {
|
|
463
|
+
return this.addEventListener('blur', handler)
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
onResize(_handler: (bounds: ViewportState['bounds']) => void): () => void {
|
|
467
|
+
// Web popups don't provide reliable resize events
|
|
468
|
+
return () => {}
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
onClose(handler: () => void): () => void {
|
|
472
|
+
return this.addEventListener('close', handler)
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
private addEventListener(event: string, handler: () => void): () => void {
|
|
476
|
+
if (!this.eventHandlers.has(event)) {
|
|
477
|
+
this.eventHandlers.set(event, new Set())
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
this.eventHandlers.get(event)!.add(handler)
|
|
481
|
+
|
|
482
|
+
return () => {
|
|
483
|
+
this.eventHandlers.get(event)?.delete(handler)
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
private emit(event: string): void {
|
|
488
|
+
const handlers = this.eventHandlers.get(event)
|
|
489
|
+
if (handlers) {
|
|
490
|
+
handlers.forEach((handler) => handler())
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
private buildWindowFeatures(): string {
|
|
495
|
+
const features = []
|
|
496
|
+
|
|
497
|
+
if (this.config.width) features.push(`width=${this.config.width}`)
|
|
498
|
+
if (this.config.height) features.push(`height=${this.config.height}`)
|
|
499
|
+
if (this.config.x) features.push(`left=${this.config.x}`)
|
|
500
|
+
if (this.config.y) features.push(`top=${this.config.y}`)
|
|
501
|
+
|
|
502
|
+
features.push(`resizable=${this.config.resizable !== false ? 'yes' : 'no'}`)
|
|
503
|
+
features.push('scrollbars=yes')
|
|
504
|
+
features.push('status=no')
|
|
505
|
+
features.push('toolbar=no')
|
|
506
|
+
features.push('menubar=no')
|
|
507
|
+
features.push('location=no')
|
|
508
|
+
|
|
509
|
+
return features.join(',')
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
private setupPopupEventHandlers(): void {
|
|
513
|
+
if (!this.nativeWindow) return
|
|
514
|
+
|
|
515
|
+
// Check if window is closed
|
|
516
|
+
const checkClosed = () => {
|
|
517
|
+
if (this.nativeWindow?.closed) {
|
|
518
|
+
this.emit('close')
|
|
519
|
+
return
|
|
520
|
+
}
|
|
521
|
+
setTimeout(checkClosed, 1000)
|
|
522
|
+
}
|
|
523
|
+
checkClosed()
|
|
524
|
+
|
|
525
|
+
// Listen for messages
|
|
526
|
+
window.addEventListener('message', (event) => {
|
|
527
|
+
if (event.source === this.nativeWindow) {
|
|
528
|
+
this.messageHandlers.forEach((handler) => handler(event.data))
|
|
529
|
+
}
|
|
530
|
+
})
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
// ==================== Phase 2: Enhanced Methods ====================
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Window pooling and reuse
|
|
537
|
+
*/
|
|
538
|
+
async prepareForReuse(): Promise<void> {
|
|
539
|
+
// Clear current content and reset state for reuse
|
|
540
|
+
if (this.nativeWindow && !this.nativeWindow.closed) {
|
|
541
|
+
this.nativeWindow.document.body.innerHTML = ''
|
|
542
|
+
this.nativeWindow.document.title = ''
|
|
543
|
+
}
|
|
544
|
+
this.messageHandlers.clear()
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
isReusable(): boolean {
|
|
548
|
+
return this.nativeWindow != null && !this.nativeWindow.closed
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
markAsUsed(): void {
|
|
552
|
+
this.setState((prev) => ({
|
|
553
|
+
...prev,
|
|
554
|
+
lastUsed: Date.now(),
|
|
555
|
+
}))
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
async returnToPool(): Promise<void> {
|
|
559
|
+
await this.hide()
|
|
560
|
+
this.setState((prev) => ({
|
|
561
|
+
...prev,
|
|
562
|
+
isPooled: true,
|
|
563
|
+
lastUsed: Date.now(),
|
|
564
|
+
}))
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* State synchronization (limited in popup windows due to cross-origin restrictions)
|
|
569
|
+
*/
|
|
570
|
+
syncState<T>(_key: string, _value: T): void {
|
|
571
|
+
// Store locally for this window
|
|
572
|
+
if (!this.nativeWindow || this.nativeWindow.closed) return
|
|
573
|
+
|
|
574
|
+
try {
|
|
575
|
+
// Try to sync via postMessage (may fail due to CORS)
|
|
576
|
+
this.nativeWindow.postMessage({ type: 'sync_state', key: _key, value: _value }, '*')
|
|
577
|
+
} catch (error) {
|
|
578
|
+
console.warn('Failed to sync state to popup window:', error)
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
getSharedState<T>(_key: string): T | undefined {
|
|
583
|
+
// Cannot access shared state from popup due to security restrictions
|
|
584
|
+
return undefined
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
onSharedStateChange<T>(_key: string, _callback: (value: T) => void): () => void {
|
|
588
|
+
// Limited implementation due to popup security restrictions
|
|
589
|
+
return () => {} // No-op unsubscribe
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Tab grouping (not supported for popup windows)
|
|
594
|
+
*/
|
|
595
|
+
async attachToTab(_tabContainer: ViewportInstance): Promise<void> {
|
|
596
|
+
throw new Error('Tab grouping not supported for popup windows')
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
async detachFromTab(): Promise<ViewportInstance> {
|
|
600
|
+
return this // Already detached
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
getTabContainer(): ViewportInstance | null {
|
|
604
|
+
return null
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
getTabIndex(): number {
|
|
608
|
+
return this.state().tabIndex || 0
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
setTabIndex(index: number): void {
|
|
612
|
+
this.setState((prev) => ({
|
|
613
|
+
...prev,
|
|
614
|
+
tabIndex: index,
|
|
615
|
+
}))
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Parent-child relationships (limited for popup windows)
|
|
620
|
+
*/
|
|
621
|
+
setParentWindow(parent: ViewportInstance): void {
|
|
622
|
+
this.setState((prev) => ({
|
|
623
|
+
...prev,
|
|
624
|
+
parentWindowId: parent.id,
|
|
625
|
+
}))
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
getParentWindow(): ViewportInstance | null {
|
|
629
|
+
// Cannot access parent window reference due to security
|
|
630
|
+
return null
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
getChildWindows(): ViewportInstance[] {
|
|
634
|
+
// Cannot track child windows from popup
|
|
635
|
+
return []
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
addChildWindow(_child: ViewportInstance): void {
|
|
639
|
+
// Not supported for popup windows
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
removeChildWindow(_childId: string): void {
|
|
643
|
+
// Not supported for popup windows
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Web modal instance (overlay on current page)
|
|
649
|
+
*/
|
|
650
|
+
class WebModalInstance implements ViewportInstance {
|
|
651
|
+
readonly id: string
|
|
652
|
+
readonly type: ViewportType = 'modal'
|
|
653
|
+
readonly config: WindowConfig
|
|
654
|
+
state: Signal<ViewportState>
|
|
655
|
+
|
|
656
|
+
private backdropElement: HTMLElement | null = null
|
|
657
|
+
private contentElement: HTMLElement | null = null
|
|
658
|
+
private messageHandlers = new Set<(message: any) => void>()
|
|
659
|
+
private eventHandlers = new Map<string, Set<() => void>>()
|
|
660
|
+
private setState: (
|
|
661
|
+
value: ViewportState | ((prev: ViewportState) => ViewportState)
|
|
662
|
+
) => ViewportState
|
|
663
|
+
|
|
664
|
+
constructor(config: WindowConfig) {
|
|
665
|
+
this.id = config.id
|
|
666
|
+
this.config = config
|
|
667
|
+
|
|
668
|
+
const [state, setState] = createSignal<ViewportState>({
|
|
669
|
+
id: config.id,
|
|
670
|
+
title: config.title || config.id,
|
|
671
|
+
isVisible: false,
|
|
672
|
+
isMinimized: false,
|
|
673
|
+
isMaximized: false,
|
|
674
|
+
isFullscreen: false,
|
|
675
|
+
isFocused: false,
|
|
676
|
+
bounds: {
|
|
677
|
+
x: 0,
|
|
678
|
+
y: 0,
|
|
679
|
+
width: config.width || 600,
|
|
680
|
+
height: config.height || 400,
|
|
681
|
+
},
|
|
682
|
+
zIndex: 1000,
|
|
683
|
+
// Phase 2: Enhanced state properties
|
|
684
|
+
isPooled: false,
|
|
685
|
+
lastUsed: Date.now(),
|
|
686
|
+
groupId: undefined,
|
|
687
|
+
tabIndex: undefined,
|
|
688
|
+
parentWindowId: undefined,
|
|
689
|
+
})
|
|
690
|
+
|
|
691
|
+
this.state = state as Signal<ViewportState>
|
|
692
|
+
this.setState = setState
|
|
693
|
+
this.createElement()
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
render(_component: ComponentInstance): void {
|
|
697
|
+
if (!this.contentElement) return
|
|
698
|
+
|
|
699
|
+
// This would integrate with TachUI's renderer
|
|
700
|
+
// For now, just set basic content
|
|
701
|
+
this.contentElement.innerHTML = `<div>Modal: ${this.config.title}</div>`
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
async show(): Promise<void> {
|
|
705
|
+
if (!this.backdropElement) return
|
|
706
|
+
|
|
707
|
+
document.body.appendChild(this.backdropElement)
|
|
708
|
+
|
|
709
|
+
// Update state
|
|
710
|
+
this.setState((prevState) => ({
|
|
711
|
+
...prevState,
|
|
712
|
+
isVisible: true,
|
|
713
|
+
isFocused: true,
|
|
714
|
+
}))
|
|
715
|
+
|
|
716
|
+
this.emit('show')
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
async hide(): Promise<void> {
|
|
720
|
+
if (this.backdropElement?.parentNode) {
|
|
721
|
+
this.backdropElement.parentNode.removeChild(this.backdropElement)
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
// Update state
|
|
725
|
+
this.setState((prevState) => ({
|
|
726
|
+
...prevState,
|
|
727
|
+
isVisible: false,
|
|
728
|
+
isFocused: false,
|
|
729
|
+
}))
|
|
730
|
+
|
|
731
|
+
this.emit('hide')
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
async focus(): Promise<void> {
|
|
735
|
+
if (this.contentElement) {
|
|
736
|
+
this.contentElement.focus()
|
|
737
|
+
}
|
|
738
|
+
this.emit('focus')
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
async minimize(): Promise<void> {
|
|
742
|
+
await this.hide()
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
async maximize(): Promise<void> {
|
|
746
|
+
// Could implement fullscreen modal
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
async restore(): Promise<void> {
|
|
750
|
+
await this.show()
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
async close(): Promise<void> {
|
|
754
|
+
await this.hide()
|
|
755
|
+
this.emit('close')
|
|
756
|
+
this.dispose()
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
dispose(): void {
|
|
760
|
+
if (this.backdropElement?.parentNode) {
|
|
761
|
+
this.backdropElement.parentNode.removeChild(this.backdropElement)
|
|
762
|
+
}
|
|
763
|
+
this.messageHandlers.clear()
|
|
764
|
+
this.eventHandlers.clear()
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
postMessage(_message: any): void {
|
|
768
|
+
// Broadcast to other modals/windows
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
onMessage(handler: (message: any) => void): () => void {
|
|
772
|
+
this.messageHandlers.add(handler)
|
|
773
|
+
return () => this.messageHandlers.delete(handler)
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
receiveMessage(message: any): void {
|
|
777
|
+
this.messageHandlers.forEach((handler) => handler(message))
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
onShow(handler: () => void): () => void {
|
|
781
|
+
return this.addEventListener('show', handler)
|
|
782
|
+
}
|
|
783
|
+
onHide(handler: () => void): () => void {
|
|
784
|
+
return this.addEventListener('hide', handler)
|
|
785
|
+
}
|
|
786
|
+
onFocus(handler: () => void): () => void {
|
|
787
|
+
return this.addEventListener('focus', handler)
|
|
788
|
+
}
|
|
789
|
+
onBlur(handler: () => void): () => void {
|
|
790
|
+
return this.addEventListener('blur', handler)
|
|
791
|
+
}
|
|
792
|
+
onResize(_handler: (bounds: ViewportState['bounds']) => void): () => void {
|
|
793
|
+
return () => {}
|
|
794
|
+
}
|
|
795
|
+
onClose(handler: () => void): () => void {
|
|
796
|
+
return this.addEventListener('close', handler)
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
private addEventListener(event: string, handler: () => void): () => void {
|
|
800
|
+
if (!this.eventHandlers.has(event)) {
|
|
801
|
+
this.eventHandlers.set(event, new Set())
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
this.eventHandlers.get(event)!.add(handler)
|
|
805
|
+
|
|
806
|
+
return () => {
|
|
807
|
+
this.eventHandlers.get(event)?.delete(handler)
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
private emit(event: string): void {
|
|
812
|
+
const handlers = this.eventHandlers.get(event)
|
|
813
|
+
if (handlers) {
|
|
814
|
+
handlers.forEach((handler) => handler())
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
private createElement(): void {
|
|
819
|
+
// Create backdrop
|
|
820
|
+
this.backdropElement = document.createElement('div')
|
|
821
|
+
this.backdropElement.className = 'tachui-modal-backdrop'
|
|
822
|
+
|
|
823
|
+
// Create content container
|
|
824
|
+
this.contentElement = document.createElement('div')
|
|
825
|
+
this.contentElement.className = 'tachui-modal-content'
|
|
826
|
+
this.contentElement.style.width = `${this.config.width || 600}px`
|
|
827
|
+
this.contentElement.style.height = `${this.config.height || 400}px`
|
|
828
|
+
|
|
829
|
+
this.backdropElement.appendChild(this.contentElement)
|
|
830
|
+
|
|
831
|
+
// Handle backdrop clicks
|
|
832
|
+
this.backdropElement.addEventListener('click', (e) => {
|
|
833
|
+
if (e.target === this.backdropElement && this.config.backdropDismiss !== false) {
|
|
834
|
+
this.close()
|
|
835
|
+
}
|
|
836
|
+
})
|
|
837
|
+
|
|
838
|
+
// Handle escape key
|
|
839
|
+
document.addEventListener('keydown', (e) => {
|
|
840
|
+
if (e.key === 'Escape' && this.config.escapeKeyDismiss !== false) {
|
|
841
|
+
this.close()
|
|
842
|
+
}
|
|
843
|
+
})
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
// ==================== Phase 2: Enhanced Methods ====================
|
|
847
|
+
|
|
848
|
+
private sharedState = new Map<string, any>()
|
|
849
|
+
private stateChangeCallbacks = new Map<string, Set<(value: any) => void>>()
|
|
850
|
+
private childWindows = new Map<string, ViewportInstance>()
|
|
851
|
+
private parentWindow: ViewportInstance | null = null
|
|
852
|
+
private tabContainer: ViewportInstance | null = null
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* Window pooling and reuse
|
|
856
|
+
*/
|
|
857
|
+
async prepareForReuse(): Promise<void> {
|
|
858
|
+
// Clear current content and reset for reuse
|
|
859
|
+
if (this.contentElement) {
|
|
860
|
+
this.contentElement.innerHTML = ''
|
|
861
|
+
}
|
|
862
|
+
this.messageHandlers.clear()
|
|
863
|
+
this.sharedState.clear()
|
|
864
|
+
this.stateChangeCallbacks.clear()
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
isReusable(): boolean {
|
|
868
|
+
return this.backdropElement != null && this.contentElement != null
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
markAsUsed(): void {
|
|
872
|
+
this.setState((prev) => ({
|
|
873
|
+
...prev,
|
|
874
|
+
lastUsed: Date.now(),
|
|
875
|
+
}))
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
async returnToPool(): Promise<void> {
|
|
879
|
+
await this.hide()
|
|
880
|
+
this.setState((prev) => ({
|
|
881
|
+
...prev,
|
|
882
|
+
isPooled: true,
|
|
883
|
+
lastUsed: Date.now(),
|
|
884
|
+
}))
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* State synchronization (full support for modals)
|
|
889
|
+
*/
|
|
890
|
+
syncState<T>(key: string, value: T): void {
|
|
891
|
+
this.sharedState.set(key, value)
|
|
892
|
+
|
|
893
|
+
// Notify local callbacks
|
|
894
|
+
const callbacks = this.stateChangeCallbacks.get(key)
|
|
895
|
+
if (callbacks) {
|
|
896
|
+
callbacks.forEach((callback) => callback(value))
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
// Sync to child windows
|
|
900
|
+
this.childWindows.forEach((child) => {
|
|
901
|
+
child.syncState(key, value)
|
|
902
|
+
})
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
getSharedState<T>(key: string): T | undefined {
|
|
906
|
+
return this.sharedState.get(key)
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
onSharedStateChange<T>(key: string, callback: (value: T) => void): () => void {
|
|
910
|
+
if (!this.stateChangeCallbacks.has(key)) {
|
|
911
|
+
this.stateChangeCallbacks.set(key, new Set())
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
this.stateChangeCallbacks.get(key)!.add(callback)
|
|
915
|
+
|
|
916
|
+
return () => {
|
|
917
|
+
this.stateChangeCallbacks.get(key)?.delete(callback)
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Tab grouping (web modal tab simulation)
|
|
923
|
+
*/
|
|
924
|
+
async attachToTab(tabContainer: ViewportInstance): Promise<void> {
|
|
925
|
+
this.tabContainer = tabContainer
|
|
926
|
+
// For web modals, we can simulate tabs by adding tab headers
|
|
927
|
+
this.createTabInterface()
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
async detachFromTab(): Promise<ViewportInstance> {
|
|
931
|
+
this.tabContainer = null
|
|
932
|
+
this.removeTabInterface()
|
|
933
|
+
return this
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
getTabContainer(): ViewportInstance | null {
|
|
937
|
+
return this.tabContainer
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
getTabIndex(): number {
|
|
941
|
+
return this.state().tabIndex || 0
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
setTabIndex(index: number): void {
|
|
945
|
+
this.setState((prev) => ({
|
|
946
|
+
...prev,
|
|
947
|
+
tabIndex: index,
|
|
948
|
+
}))
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Parent-child relationships (full support for modals)
|
|
953
|
+
*/
|
|
954
|
+
setParentWindow(parent: ViewportInstance): void {
|
|
955
|
+
this.parentWindow = parent
|
|
956
|
+
this.setState((prev) => ({
|
|
957
|
+
...prev,
|
|
958
|
+
parentWindowId: parent.id,
|
|
959
|
+
}))
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
getParentWindow(): ViewportInstance | null {
|
|
963
|
+
return this.parentWindow
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
getChildWindows(): ViewportInstance[] {
|
|
967
|
+
return Array.from(this.childWindows.values())
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
addChildWindow(child: ViewportInstance): void {
|
|
971
|
+
this.childWindows.set(child.id, child)
|
|
972
|
+
child.setParentWindow(this)
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
removeChildWindow(childId: string): void {
|
|
976
|
+
this.childWindows.delete(childId)
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Tab interface helpers
|
|
981
|
+
*/
|
|
982
|
+
private createTabInterface(): void {
|
|
983
|
+
if (!this.contentElement || !this.tabContainer) return
|
|
984
|
+
|
|
985
|
+
// Create tab header
|
|
986
|
+
const tabHeader = document.createElement('div')
|
|
987
|
+
tabHeader.className = 'tachui-modal-tab-header'
|
|
988
|
+
tabHeader.style.cssText = `
|
|
989
|
+
display: flex;
|
|
990
|
+
border-bottom: 1px solid #e0e0e0;
|
|
991
|
+
background: #f5f5f5;
|
|
992
|
+
min-height: 40px;
|
|
993
|
+
`
|
|
994
|
+
|
|
995
|
+
// Insert tab header
|
|
996
|
+
this.contentElement.insertBefore(tabHeader, this.contentElement.firstChild)
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
private removeTabInterface(): void {
|
|
1000
|
+
if (!this.contentElement) return
|
|
1001
|
+
|
|
1002
|
+
const tabHeader = this.contentElement.querySelector('.tachui-modal-tab-header')
|
|
1003
|
+
if (tabHeader) {
|
|
1004
|
+
tabHeader.remove()
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Web portal instance (renders in portal container)
|
|
1011
|
+
*/
|
|
1012
|
+
class WebPortalInstance implements ViewportInstance {
|
|
1013
|
+
readonly id: string
|
|
1014
|
+
readonly type: ViewportType = 'portal'
|
|
1015
|
+
readonly config: WindowConfig
|
|
1016
|
+
state: Signal<ViewportState>
|
|
1017
|
+
|
|
1018
|
+
private portalElement: HTMLElement | null = null
|
|
1019
|
+
private messageHandlers = new Set<(message: any) => void>()
|
|
1020
|
+
private eventHandlers = new Map<string, Set<() => void>>()
|
|
1021
|
+
private cleanupFunction: (() => void) | null = null
|
|
1022
|
+
private setState: (
|
|
1023
|
+
value: ViewportState | ((prev: ViewportState) => ViewportState)
|
|
1024
|
+
) => ViewportState
|
|
1025
|
+
|
|
1026
|
+
constructor(
|
|
1027
|
+
config: WindowConfig,
|
|
1028
|
+
private container: HTMLElement
|
|
1029
|
+
) {
|
|
1030
|
+
this.id = config.id
|
|
1031
|
+
this.config = config
|
|
1032
|
+
|
|
1033
|
+
const [state, setState] = createSignal<ViewportState>({
|
|
1034
|
+
id: config.id,
|
|
1035
|
+
title: config.title || config.id,
|
|
1036
|
+
isVisible: false,
|
|
1037
|
+
isMinimized: false,
|
|
1038
|
+
isMaximized: false,
|
|
1039
|
+
isFullscreen: false,
|
|
1040
|
+
isFocused: false,
|
|
1041
|
+
bounds: {
|
|
1042
|
+
x: config.x || 0,
|
|
1043
|
+
y: config.y || 0,
|
|
1044
|
+
width: config.width || 400,
|
|
1045
|
+
height: config.height || 300,
|
|
1046
|
+
},
|
|
1047
|
+
// Phase 2: Enhanced state properties
|
|
1048
|
+
isPooled: false,
|
|
1049
|
+
lastUsed: Date.now(),
|
|
1050
|
+
groupId: undefined,
|
|
1051
|
+
tabIndex: undefined,
|
|
1052
|
+
parentWindowId: undefined,
|
|
1053
|
+
})
|
|
1054
|
+
|
|
1055
|
+
this.state = state as Signal<ViewportState>
|
|
1056
|
+
this.setState = setState
|
|
1057
|
+
this.createElement()
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
render(component: ComponentInstance): void {
|
|
1061
|
+
if (!this.portalElement) {
|
|
1062
|
+
return
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
// Clear existing content
|
|
1066
|
+
this.portalElement.innerHTML = ''
|
|
1067
|
+
|
|
1068
|
+
try {
|
|
1069
|
+
// Use enhanced DOM bridge mounting to ensure lifecycle hooks are called
|
|
1070
|
+
const cleanup = mountComponentTree(component, this.portalElement)
|
|
1071
|
+
|
|
1072
|
+
// Store cleanup function for later disposal
|
|
1073
|
+
this.cleanupFunction = cleanup
|
|
1074
|
+
} catch (error) {
|
|
1075
|
+
console.error('Error during mountComponentTree:', error)
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
async show(): Promise<void> {
|
|
1080
|
+
if (!this.portalElement) {
|
|
1081
|
+
return
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
// For single-page apps, replace the loading content instead of appending
|
|
1085
|
+
if (this.container.id === 'app') {
|
|
1086
|
+
this.container.innerHTML = ''
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
this.container.appendChild(this.portalElement)
|
|
1090
|
+
this.portalElement.style.display = 'block'
|
|
1091
|
+
|
|
1092
|
+
this.setState((prevState) => ({
|
|
1093
|
+
...prevState,
|
|
1094
|
+
isVisible: true,
|
|
1095
|
+
}))
|
|
1096
|
+
|
|
1097
|
+
this.emit('show')
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
async hide(): Promise<void> {
|
|
1101
|
+
if (this.portalElement) {
|
|
1102
|
+
this.portalElement.style.display = 'none'
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
this.setState((prevState) => ({
|
|
1106
|
+
...prevState,
|
|
1107
|
+
isVisible: false,
|
|
1108
|
+
}))
|
|
1109
|
+
|
|
1110
|
+
this.emit('hide')
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
async focus(): Promise<void> {
|
|
1114
|
+
this.emit('focus')
|
|
1115
|
+
}
|
|
1116
|
+
async minimize(): Promise<void> {
|
|
1117
|
+
await this.hide()
|
|
1118
|
+
}
|
|
1119
|
+
async maximize(): Promise<void> {}
|
|
1120
|
+
async restore(): Promise<void> {
|
|
1121
|
+
await this.show()
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
async close(): Promise<void> {
|
|
1125
|
+
if (this.portalElement?.parentNode) {
|
|
1126
|
+
this.portalElement.parentNode.removeChild(this.portalElement)
|
|
1127
|
+
}
|
|
1128
|
+
this.emit('close')
|
|
1129
|
+
this.dispose()
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
dispose(): void {
|
|
1133
|
+
// Call component cleanup function first
|
|
1134
|
+
if (this.cleanupFunction) {
|
|
1135
|
+
this.cleanupFunction()
|
|
1136
|
+
this.cleanupFunction = null
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
if (this.portalElement?.parentNode) {
|
|
1140
|
+
this.portalElement.parentNode.removeChild(this.portalElement)
|
|
1141
|
+
}
|
|
1142
|
+
this.messageHandlers.clear()
|
|
1143
|
+
this.eventHandlers.clear()
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
postMessage(_message: any): void {}
|
|
1147
|
+
onMessage(handler: (message: any) => void): () => void {
|
|
1148
|
+
this.messageHandlers.add(handler)
|
|
1149
|
+
return () => this.messageHandlers.delete(handler)
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
receiveMessage(message: any): void {
|
|
1153
|
+
this.messageHandlers.forEach((handler) => handler(message))
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
onShow(handler: () => void): () => void {
|
|
1157
|
+
return this.addEventListener('show', handler)
|
|
1158
|
+
}
|
|
1159
|
+
onHide(handler: () => void): () => void {
|
|
1160
|
+
return this.addEventListener('hide', handler)
|
|
1161
|
+
}
|
|
1162
|
+
onFocus(handler: () => void): () => void {
|
|
1163
|
+
return this.addEventListener('focus', handler)
|
|
1164
|
+
}
|
|
1165
|
+
onBlur(handler: () => void): () => void {
|
|
1166
|
+
return this.addEventListener('blur', handler)
|
|
1167
|
+
}
|
|
1168
|
+
onResize(_handler: (bounds: ViewportState['bounds']) => void): () => void {
|
|
1169
|
+
return () => {}
|
|
1170
|
+
}
|
|
1171
|
+
onClose(handler: () => void): () => void {
|
|
1172
|
+
return this.addEventListener('close', handler)
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
private addEventListener(event: string, handler: () => void): () => void {
|
|
1176
|
+
if (!this.eventHandlers.has(event)) {
|
|
1177
|
+
this.eventHandlers.set(event, new Set())
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
this.eventHandlers.get(event)!.add(handler)
|
|
1181
|
+
|
|
1182
|
+
return () => {
|
|
1183
|
+
this.eventHandlers.get(event)?.delete(handler)
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
private emit(event: string): void {
|
|
1188
|
+
const handlers = this.eventHandlers.get(event)
|
|
1189
|
+
if (handlers) {
|
|
1190
|
+
handlers.forEach((handler) => handler())
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
private createElement(): void {
|
|
1195
|
+
this.portalElement = document.createElement('div')
|
|
1196
|
+
this.portalElement.className = 'tachui-portal'
|
|
1197
|
+
|
|
1198
|
+
// For single-page apps using the #app container, render transparently
|
|
1199
|
+
if (this.container && this.container.id === 'app') {
|
|
1200
|
+
// No positioning, background, or borders - just a transparent container
|
|
1201
|
+
this.portalElement.style.position = 'static'
|
|
1202
|
+
this.portalElement.style.width = '100%'
|
|
1203
|
+
this.portalElement.style.height = 'auto'
|
|
1204
|
+
this.portalElement.style.background = 'transparent'
|
|
1205
|
+
this.portalElement.style.border = 'none'
|
|
1206
|
+
this.portalElement.style.display = 'block'
|
|
1207
|
+
} else {
|
|
1208
|
+
// Traditional portal with positioning and styling
|
|
1209
|
+
this.portalElement.style.position = 'absolute'
|
|
1210
|
+
this.portalElement.style.left = `${this.config.x || 0}px`
|
|
1211
|
+
this.portalElement.style.top = `${this.config.y || 0}px`
|
|
1212
|
+
this.portalElement.style.width = `${this.config.width || 400}px`
|
|
1213
|
+
this.portalElement.style.height = `${this.config.height || 300}px`
|
|
1214
|
+
this.portalElement.style.background = 'white'
|
|
1215
|
+
this.portalElement.style.border = '1px solid #ccc'
|
|
1216
|
+
this.portalElement.style.borderRadius = '8px'
|
|
1217
|
+
this.portalElement.style.boxShadow = '0 4px 12px rgba(0, 0, 0, 0.15)'
|
|
1218
|
+
this.portalElement.style.display = 'none'
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
// ==================== Phase 2: Enhanced Methods ====================
|
|
1223
|
+
|
|
1224
|
+
private sharedState = new Map<string, any>()
|
|
1225
|
+
private stateChangeCallbacks = new Map<string, Set<(value: any) => void>>()
|
|
1226
|
+
private childWindows = new Map<string, ViewportInstance>()
|
|
1227
|
+
private parentWindow: ViewportInstance | null = null
|
|
1228
|
+
private tabContainer: ViewportInstance | null = null
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Window pooling and reuse (excellent for portals)
|
|
1232
|
+
*/
|
|
1233
|
+
async prepareForReuse(): Promise<void> {
|
|
1234
|
+
// Clear current content and reset for reuse
|
|
1235
|
+
if (this.portalElement) {
|
|
1236
|
+
this.portalElement.innerHTML = ''
|
|
1237
|
+
}
|
|
1238
|
+
this.messageHandlers.clear()
|
|
1239
|
+
this.sharedState.clear()
|
|
1240
|
+
this.stateChangeCallbacks.clear()
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
isReusable(): boolean {
|
|
1244
|
+
return this.portalElement != null
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
markAsUsed(): void {
|
|
1248
|
+
this.setState((prev) => ({
|
|
1249
|
+
...prev,
|
|
1250
|
+
lastUsed: Date.now(),
|
|
1251
|
+
}))
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
async returnToPool(): Promise<void> {
|
|
1255
|
+
await this.hide()
|
|
1256
|
+
this.setState((prev) => ({
|
|
1257
|
+
...prev,
|
|
1258
|
+
isPooled: true,
|
|
1259
|
+
lastUsed: Date.now(),
|
|
1260
|
+
}))
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* State synchronization (full support for portals)
|
|
1265
|
+
*/
|
|
1266
|
+
syncState<T>(key: string, value: T): void {
|
|
1267
|
+
this.sharedState.set(key, value)
|
|
1268
|
+
|
|
1269
|
+
// Notify local callbacks
|
|
1270
|
+
const callbacks = this.stateChangeCallbacks.get(key)
|
|
1271
|
+
if (callbacks) {
|
|
1272
|
+
callbacks.forEach((callback) => callback(value))
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
// Sync to child windows
|
|
1276
|
+
this.childWindows.forEach((child) => {
|
|
1277
|
+
child.syncState(key, value)
|
|
1278
|
+
})
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
getSharedState<T>(key: string): T | undefined {
|
|
1282
|
+
return this.sharedState.get(key)
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
onSharedStateChange<T>(key: string, callback: (value: T) => void): () => void {
|
|
1286
|
+
if (!this.stateChangeCallbacks.has(key)) {
|
|
1287
|
+
this.stateChangeCallbacks.set(key, new Set())
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
this.stateChangeCallbacks.get(key)!.add(callback)
|
|
1291
|
+
|
|
1292
|
+
return () => {
|
|
1293
|
+
this.stateChangeCallbacks.get(key)?.delete(callback)
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Tab grouping (portal-based tab simulation)
|
|
1299
|
+
*/
|
|
1300
|
+
async attachToTab(tabContainer: ViewportInstance): Promise<void> {
|
|
1301
|
+
this.tabContainer = tabContainer
|
|
1302
|
+
// Create visual tab interface for portals
|
|
1303
|
+
this.createPortalTabInterface()
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
async detachFromTab(): Promise<ViewportInstance> {
|
|
1307
|
+
this.tabContainer = null
|
|
1308
|
+
this.removePortalTabInterface()
|
|
1309
|
+
return this
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
getTabContainer(): ViewportInstance | null {
|
|
1313
|
+
return this.tabContainer
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
getTabIndex(): number {
|
|
1317
|
+
return this.state().tabIndex || 0
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
setTabIndex(index: number): void {
|
|
1321
|
+
this.setState((prev) => ({
|
|
1322
|
+
...prev,
|
|
1323
|
+
tabIndex: index,
|
|
1324
|
+
}))
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* Parent-child relationships (full support for portals)
|
|
1329
|
+
*/
|
|
1330
|
+
setParentWindow(parent: ViewportInstance): void {
|
|
1331
|
+
this.parentWindow = parent
|
|
1332
|
+
this.setState((prev) => ({
|
|
1333
|
+
...prev,
|
|
1334
|
+
parentWindowId: parent.id,
|
|
1335
|
+
}))
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
getParentWindow(): ViewportInstance | null {
|
|
1339
|
+
return this.parentWindow
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
getChildWindows(): ViewportInstance[] {
|
|
1343
|
+
return Array.from(this.childWindows.values())
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
addChildWindow(child: ViewportInstance): void {
|
|
1347
|
+
this.childWindows.set(child.id, child)
|
|
1348
|
+
child.setParentWindow(this)
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
removeChildWindow(childId: string): void {
|
|
1352
|
+
this.childWindows.delete(childId)
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* Portal tab interface helpers
|
|
1357
|
+
*/
|
|
1358
|
+
private createPortalTabInterface(): void {
|
|
1359
|
+
if (!this.portalElement || !this.tabContainer) return
|
|
1360
|
+
|
|
1361
|
+
// Create tab header for portals
|
|
1362
|
+
const tabHeader = document.createElement('div')
|
|
1363
|
+
tabHeader.className = 'tachui-portal-tab-header'
|
|
1364
|
+
tabHeader.style.cssText = `
|
|
1365
|
+
display: flex;
|
|
1366
|
+
background: #f8f9fa;
|
|
1367
|
+
border-bottom: 1px solid #dee2e6;
|
|
1368
|
+
min-height: 36px;
|
|
1369
|
+
padding: 0 8px;
|
|
1370
|
+
align-items: center;
|
|
1371
|
+
`
|
|
1372
|
+
|
|
1373
|
+
// Insert tab header
|
|
1374
|
+
this.portalElement.insertBefore(tabHeader, this.portalElement.firstChild)
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
private removePortalTabInterface(): void {
|
|
1378
|
+
if (!this.portalElement) return
|
|
1379
|
+
|
|
1380
|
+
const tabHeader = this.portalElement.querySelector('.tachui-portal-tab-header')
|
|
1381
|
+
if (tabHeader) {
|
|
1382
|
+
tabHeader.remove()
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
}
|