@tachui/core 0.7.0-alpha1 → 0.7.1-alpha
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/README.md +195 -0
- package/dist/ScrollView-h-6wYMAm.js +515 -0
- package/dist/Spacer-BbteDQ9I.js +5337 -0
- package/dist/binding-CmdpowkI.js +2276 -0
- package/dist/bundles/minimal.d.ts +30 -4
- package/dist/bundles/minimal.d.ts.map +1 -1
- package/dist/common.js +825 -954
- package/dist/compiler/index.js +1386 -10
- package/dist/components/index.js +4166 -101
- package/dist/concatenated-component-DPcl2TEO.js +6779 -0
- package/dist/{runtime/context.js → context--zQFIImS.js} +65 -71
- package/dist/debug.js +0 -1
- package/dist/dom-bridge-Cx-s6Ihx.js +406 -0
- package/dist/effect-CytAc9em.js +66 -0
- package/dist/essential.js +825 -954
- package/dist/index-Nfi2SBQh.js +3268 -0
- package/dist/index.js +825 -954
- package/dist/minimal-prod.js +162 -191
- package/dist/minimal.js +183 -957
- package/dist/modifiers/responsive/index.d.ts +10 -9
- package/dist/modifiers/responsive/index.d.ts.map +1 -1
- package/dist/plugins/index.js +543 -32
- package/dist/reactive/index.js +490 -93
- package/dist/runtime/dom-bridge.js +12 -239
- package/dist/runtime/renderer.js +8 -388
- package/dist/scheduler-7SvC3a21.js +814 -0
- package/dist/validation/index.js +6614 -198
- package/dist/viewport/index.js +2002 -83
- package/package.json +3 -4
- package/dist/assets/Asset.cjs +0 -2
- package/dist/assets/Asset.cjs.map +0 -1
- package/dist/assets/Asset.js +0 -9
- package/dist/assets/Asset.js.map +0 -1
- package/dist/assets/AssetCollection.cjs +0 -2
- package/dist/assets/AssetCollection.cjs.map +0 -1
- package/dist/assets/AssetCollection.js +0 -44
- package/dist/assets/AssetCollection.js.map +0 -1
- package/dist/assets/ColorAsset.cjs +0 -2
- package/dist/assets/ColorAsset.cjs.map +0 -1
- package/dist/assets/ColorAsset.js +0 -114
- package/dist/assets/ColorAsset.js.map +0 -1
- package/dist/assets/FontAsset.cjs +0 -9
- package/dist/assets/FontAsset.cjs.map +0 -1
- package/dist/assets/FontAsset.js +0 -173
- package/dist/assets/FontAsset.js.map +0 -1
- package/dist/assets/ImageAsset.cjs +0 -2
- package/dist/assets/ImageAsset.cjs.map +0 -1
- package/dist/assets/ImageAsset.js +0 -39
- package/dist/assets/ImageAsset.js.map +0 -1
- package/dist/assets/index.cjs +0 -2
- package/dist/assets/index.cjs.map +0 -1
- package/dist/assets/index.js +0 -119
- package/dist/assets/index.js.map +0 -1
- package/dist/common.cjs +0 -2
- package/dist/common.cjs.map +0 -1
- package/dist/common.js.map +0 -1
- package/dist/compiler/advanced-parser.cjs +0 -5
- package/dist/compiler/advanced-parser.cjs.map +0 -1
- package/dist/compiler/advanced-parser.js +0 -440
- package/dist/compiler/advanced-parser.js.map +0 -1
- package/dist/compiler/codegen.cjs +0 -6
- package/dist/compiler/codegen.cjs.map +0 -1
- package/dist/compiler/codegen.js +0 -241
- package/dist/compiler/codegen.js.map +0 -1
- package/dist/compiler/enhanced-codegen.cjs +0 -6
- package/dist/compiler/enhanced-codegen.cjs.map +0 -1
- package/dist/compiler/enhanced-codegen.js +0 -347
- package/dist/compiler/enhanced-codegen.js.map +0 -1
- package/dist/compiler/index.cjs +0 -2
- package/dist/compiler/index.cjs.map +0 -1
- package/dist/compiler/index.js.map +0 -1
- package/dist/compiler/parser.cjs +0 -5
- package/dist/compiler/parser.cjs.map +0 -1
- package/dist/compiler/parser.js +0 -275
- package/dist/compiler/parser.js.map +0 -1
- package/dist/compiler/plugin.cjs +0 -33
- package/dist/compiler/plugin.cjs.map +0 -1
- package/dist/compiler/plugin.js +0 -103
- package/dist/compiler/plugin.js.map +0 -1
- package/dist/components/BasicInput.cjs +0 -2
- package/dist/components/BasicInput.cjs.map +0 -1
- package/dist/components/BasicInput.js +0 -182
- package/dist/components/BasicInput.js.map +0 -1
- package/dist/components/Button.cjs +0 -7
- package/dist/components/Button.cjs.map +0 -1
- package/dist/components/Button.js +0 -408
- package/dist/components/Button.js.map +0 -1
- package/dist/components/Divider.cjs +0 -2
- package/dist/components/Divider.cjs.map +0 -1
- package/dist/components/Divider.js +0 -187
- package/dist/components/Divider.js.map +0 -1
- package/dist/components/EnhancedLink.cjs +0 -2
- package/dist/components/EnhancedLink.cjs.map +0 -1
- package/dist/components/EnhancedLink.js +0 -345
- package/dist/components/EnhancedLink.js.map +0 -1
- package/dist/components/Form.cjs +0 -2
- package/dist/components/Form.cjs.map +0 -1
- package/dist/components/Form.js +0 -244
- package/dist/components/Form.js.map +0 -1
- package/dist/components/Grid.cjs +0 -2
- package/dist/components/Grid.cjs.map +0 -1
- package/dist/components/Grid.js +0 -1045
- package/dist/components/Grid.js.map +0 -1
- package/dist/components/GridResponsive.cjs +0 -2
- package/dist/components/GridResponsive.cjs.map +0 -1
- package/dist/components/GridResponsive.js +0 -382
- package/dist/components/GridResponsive.js.map +0 -1
- package/dist/components/Image.cjs +0 -2
- package/dist/components/Image.cjs.map +0 -1
- package/dist/components/Image.js +0 -212
- package/dist/components/Image.js.map +0 -1
- package/dist/components/List.cjs +0 -2
- package/dist/components/List.cjs.map +0 -1
- package/dist/components/List.js +0 -561
- package/dist/components/List.js.map +0 -1
- package/dist/components/Menu.cjs +0 -2
- package/dist/components/Menu.cjs.map +0 -1
- package/dist/components/Menu.js +0 -443
- package/dist/components/Menu.js.map +0 -1
- package/dist/components/Picker.cjs +0 -2
- package/dist/components/Picker.cjs.map +0 -1
- package/dist/components/Picker.js +0 -478
- package/dist/components/Picker.js.map +0 -1
- package/dist/components/ScrollView.cjs +0 -6
- package/dist/components/ScrollView.cjs.map +0 -1
- package/dist/components/ScrollView.js +0 -363
- package/dist/components/ScrollView.js.map +0 -1
- package/dist/components/Section.cjs +0 -2
- package/dist/components/Section.cjs.map +0 -1
- package/dist/components/Section.js +0 -323
- package/dist/components/Section.js.map +0 -1
- package/dist/components/Show.cjs +0 -2
- package/dist/components/Show.cjs.map +0 -1
- package/dist/components/Show.js +0 -112
- package/dist/components/Show.js.map +0 -1
- package/dist/components/Spacer.cjs +0 -2
- package/dist/components/Spacer.cjs.map +0 -1
- package/dist/components/Spacer.js +0 -53
- package/dist/components/Spacer.js.map +0 -1
- package/dist/components/Text.cjs +0 -2
- package/dist/components/Text.cjs.map +0 -1
- package/dist/components/Text.js +0 -193
- package/dist/components/Text.js.map +0 -1
- package/dist/components/Toggle.cjs +0 -2
- package/dist/components/Toggle.cjs.map +0 -1
- package/dist/components/Toggle.js +0 -477
- package/dist/components/Toggle.js.map +0 -1
- package/dist/components/index.cjs +0 -2
- package/dist/components/index.cjs.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/wrapper.cjs +0 -2
- package/dist/components/wrapper.cjs.map +0 -1
- package/dist/components/wrapper.js +0 -484
- package/dist/components/wrapper.js.map +0 -1
- package/dist/concatenation/concatenatable.cjs +0 -2
- package/dist/concatenation/concatenatable.cjs.map +0 -1
- package/dist/concatenation/concatenatable.js +0 -118
- package/dist/concatenation/concatenatable.js.map +0 -1
- package/dist/concatenation/concatenated-component.cjs +0 -2
- package/dist/concatenation/concatenated-component.cjs.map +0 -1
- package/dist/concatenation/concatenated-component.js +0 -276
- package/dist/concatenation/concatenated-component.js.map +0 -1
- package/dist/concatenation/text-optimizer.cjs +0 -2
- package/dist/concatenation/text-optimizer.cjs.map +0 -1
- package/dist/concatenation/text-optimizer.js +0 -236
- package/dist/concatenation/text-optimizer.js.map +0 -1
- package/dist/concatenation/types.cjs +0 -2
- package/dist/concatenation/types.cjs.map +0 -1
- package/dist/concatenation/types.js +0 -13
- package/dist/concatenation/types.js.map +0 -1
- package/dist/constants/frame-utils.cjs +0 -2
- package/dist/constants/frame-utils.cjs.map +0 -1
- package/dist/constants/frame-utils.js +0 -116
- package/dist/constants/frame-utils.js.map +0 -1
- package/dist/constants/layout.cjs +0 -2
- package/dist/constants/layout.cjs.map +0 -1
- package/dist/constants/layout.js +0 -46
- package/dist/constants/layout.js.map +0 -1
- package/dist/css-classes/component-base.cjs +0 -2
- package/dist/css-classes/component-base.cjs.map +0 -1
- package/dist/css-classes/component-base.js +0 -62
- package/dist/css-classes/component-base.js.map +0 -1
- package/dist/css-classes/css-class-manager.cjs +0 -2
- package/dist/css-classes/css-class-manager.cjs.map +0 -1
- package/dist/css-classes/css-class-manager.js +0 -209
- package/dist/css-classes/css-class-manager.js.map +0 -1
- package/dist/css-classes/dom-integration.cjs +0 -2
- package/dist/css-classes/dom-integration.cjs.map +0 -1
- package/dist/css-classes/dom-integration.js +0 -67
- package/dist/css-classes/dom-integration.js.map +0 -1
- package/dist/css-classes/enhanced-renderer.cjs +0 -2
- package/dist/css-classes/enhanced-renderer.cjs.map +0 -1
- package/dist/css-classes/enhanced-renderer.js +0 -73
- package/dist/css-classes/enhanced-renderer.js.map +0 -1
- package/dist/css-classes/utilities.cjs +0 -2
- package/dist/css-classes/utilities.cjs.map +0 -1
- package/dist/css-classes/utilities.js +0 -41
- package/dist/css-classes/utilities.js.map +0 -1
- package/dist/debug.cjs +0 -52
- package/dist/debug.cjs.map +0 -1
- package/dist/debug.js.map +0 -1
- package/dist/essential.cjs +0 -2
- package/dist/essential.cjs.map +0 -1
- package/dist/essential.js.map +0 -1
- package/dist/gradients/css-generator.cjs +0 -2
- package/dist/gradients/css-generator.cjs.map +0 -1
- package/dist/gradients/css-generator.js +0 -100
- package/dist/gradients/css-generator.js.map +0 -1
- package/dist/gradients/examples.cjs +0 -2
- package/dist/gradients/examples.cjs.map +0 -1
- package/dist/gradients/examples.js +0 -555
- package/dist/gradients/examples.js.map +0 -1
- package/dist/gradients/gradient-asset.cjs +0 -2
- package/dist/gradients/gradient-asset.cjs.map +0 -1
- package/dist/gradients/gradient-asset.js +0 -22
- package/dist/gradients/gradient-asset.js.map +0 -1
- package/dist/gradients/index.cjs +0 -2
- package/dist/gradients/index.cjs.map +0 -1
- package/dist/gradients/index.js +0 -78
- package/dist/gradients/index.js.map +0 -1
- package/dist/gradients/performance.cjs +0 -2
- package/dist/gradients/performance.cjs.map +0 -1
- package/dist/gradients/performance.js +0 -237
- package/dist/gradients/performance.js.map +0 -1
- package/dist/gradients/presets.cjs +0 -2
- package/dist/gradients/presets.cjs.map +0 -1
- package/dist/gradients/presets.js +0 -254
- package/dist/gradients/presets.js.map +0 -1
- package/dist/gradients/reactive.cjs +0 -2
- package/dist/gradients/reactive.cjs.map +0 -1
- package/dist/gradients/reactive.js +0 -239
- package/dist/gradients/reactive.js.map +0 -1
- package/dist/gradients/state-gradient-asset.cjs +0 -2
- package/dist/gradients/state-gradient-asset.cjs.map +0 -1
- package/dist/gradients/state-gradient-asset.js +0 -111
- package/dist/gradients/state-gradient-asset.js.map +0 -1
- package/dist/gradients/utils.cjs +0 -2
- package/dist/gradients/utils.cjs.map +0 -1
- package/dist/gradients/utils.js +0 -385
- package/dist/gradients/utils.js.map +0 -1
- package/dist/gradients/validation.cjs +0 -2
- package/dist/gradients/validation.cjs.map +0 -1
- package/dist/gradients/validation.js +0 -209
- package/dist/gradients/validation.js.map +0 -1
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index2.cjs +0 -2
- package/dist/index2.cjs.map +0 -1
- package/dist/index2.js +0 -293
- package/dist/index2.js.map +0 -1
- package/dist/lifecycle/hooks.cjs +0 -2
- package/dist/lifecycle/hooks.cjs.map +0 -1
- package/dist/lifecycle/hooks.js +0 -159
- package/dist/lifecycle/hooks.js.map +0 -1
- package/dist/minimal-prod.cjs +0 -2
- package/dist/minimal-prod.cjs.map +0 -1
- package/dist/minimal-prod.js.map +0 -1
- package/dist/minimal.cjs +0 -2
- package/dist/minimal.cjs.map +0 -1
- package/dist/minimal.js.map +0 -1
- package/dist/modifiers/as-html-validator.cjs +0 -2
- package/dist/modifiers/as-html-validator.cjs.map +0 -1
- package/dist/modifiers/as-html-validator.js +0 -47
- package/dist/modifiers/as-html-validator.js.map +0 -1
- package/dist/modifiers/as-html.cjs +0 -2
- package/dist/modifiers/as-html.cjs.map +0 -1
- package/dist/modifiers/as-html.js +0 -71
- package/dist/modifiers/as-html.js.map +0 -1
- package/dist/modifiers/attributes.cjs +0 -2
- package/dist/modifiers/attributes.cjs.map +0 -1
- package/dist/modifiers/attributes.js +0 -272
- package/dist/modifiers/attributes.js.map +0 -1
- package/dist/modifiers/backdrop.cjs +0 -2
- package/dist/modifiers/backdrop.cjs.map +0 -1
- package/dist/modifiers/backdrop.js +0 -109
- package/dist/modifiers/backdrop.js.map +0 -1
- package/dist/modifiers/background.cjs +0 -2
- package/dist/modifiers/background.cjs.map +0 -1
- package/dist/modifiers/background.js +0 -67
- package/dist/modifiers/background.js.map +0 -1
- package/dist/modifiers/base.cjs +0 -25
- package/dist/modifiers/base.cjs.map +0 -1
- package/dist/modifiers/base.js +0 -745
- package/dist/modifiers/base.js.map +0 -1
- package/dist/modifiers/basic-sanitizer.cjs +0 -2
- package/dist/modifiers/basic-sanitizer.cjs.map +0 -1
- package/dist/modifiers/basic-sanitizer.js +0 -162
- package/dist/modifiers/basic-sanitizer.js.map +0 -1
- package/dist/modifiers/border.cjs +0 -2
- package/dist/modifiers/border.cjs.map +0 -1
- package/dist/modifiers/border.js +0 -160
- package/dist/modifiers/border.js.map +0 -1
- package/dist/modifiers/builder.cjs +0 -2
- package/dist/modifiers/builder.cjs.map +0 -1
- package/dist/modifiers/builder.js +0 -930
- package/dist/modifiers/builder.js.map +0 -1
- package/dist/modifiers/core.cjs +0 -2
- package/dist/modifiers/core.cjs.map +0 -1
- package/dist/modifiers/core.js +0 -398
- package/dist/modifiers/core.js.map +0 -1
- package/dist/modifiers/css.cjs +0 -2
- package/dist/modifiers/css.cjs.map +0 -1
- package/dist/modifiers/css.js +0 -50
- package/dist/modifiers/css.js.map +0 -1
- package/dist/modifiers/effects.cjs +0 -2
- package/dist/modifiers/effects.cjs.map +0 -1
- package/dist/modifiers/effects.js +0 -178
- package/dist/modifiers/effects.js.map +0 -1
- package/dist/modifiers/elements.cjs +0 -2
- package/dist/modifiers/elements.cjs.map +0 -1
- package/dist/modifiers/elements.js +0 -216
- package/dist/modifiers/elements.js.map +0 -1
- package/dist/modifiers/filters.cjs +0 -2
- package/dist/modifiers/filters.cjs.map +0 -1
- package/dist/modifiers/filters.js +0 -223
- package/dist/modifiers/filters.js.map +0 -1
- package/dist/modifiers/flexbox.cjs +0 -2
- package/dist/modifiers/flexbox.cjs.map +0 -1
- package/dist/modifiers/flexbox.js +0 -56
- package/dist/modifiers/flexbox.js.map +0 -1
- package/dist/modifiers/font.cjs +0 -2
- package/dist/modifiers/font.cjs.map +0 -1
- package/dist/modifiers/font.js +0 -60
- package/dist/modifiers/font.js.map +0 -1
- package/dist/modifiers/grid.cjs +0 -2
- package/dist/modifiers/grid.cjs.map +0 -1
- package/dist/modifiers/grid.js +0 -92
- package/dist/modifiers/grid.js.map +0 -1
- package/dist/modifiers/margin.cjs +0 -2
- package/dist/modifiers/margin.cjs.map +0 -1
- package/dist/modifiers/margin.js +0 -65
- package/dist/modifiers/margin.js.map +0 -1
- package/dist/modifiers/padding.cjs +0 -2
- package/dist/modifiers/padding.cjs.map +0 -1
- package/dist/modifiers/padding.js +0 -109
- package/dist/modifiers/padding.js.map +0 -1
- package/dist/modifiers/registry.cjs +0 -2
- package/dist/modifiers/registry.cjs.map +0 -1
- package/dist/modifiers/registry.js +0 -163
- package/dist/modifiers/registry.js.map +0 -1
- package/dist/modifiers/responsive/advanced-utilities.cjs +0 -2
- package/dist/modifiers/responsive/advanced-utilities.cjs.map +0 -1
- package/dist/modifiers/responsive/advanced-utilities.js +0 -291
- package/dist/modifiers/responsive/advanced-utilities.js.map +0 -1
- package/dist/modifiers/responsive/breakpoints.cjs +0 -2
- package/dist/modifiers/responsive/breakpoints.cjs.map +0 -1
- package/dist/modifiers/responsive/breakpoints.js +0 -168
- package/dist/modifiers/responsive/breakpoints.js.map +0 -1
- package/dist/modifiers/responsive/css-generator.cjs +0 -5
- package/dist/modifiers/responsive/css-generator.cjs.map +0 -1
- package/dist/modifiers/responsive/css-generator.js +0 -261
- package/dist/modifiers/responsive/css-generator.js.map +0 -1
- package/dist/modifiers/responsive/dev-tools.cjs +0 -77
- package/dist/modifiers/responsive/dev-tools.cjs.map +0 -1
- package/dist/modifiers/responsive/dev-tools.js +0 -380
- package/dist/modifiers/responsive/dev-tools.js.map +0 -1
- package/dist/modifiers/responsive/layout-patterns.cjs +0 -2
- package/dist/modifiers/responsive/layout-patterns.cjs.map +0 -1
- package/dist/modifiers/responsive/layout-patterns.js +0 -254
- package/dist/modifiers/responsive/layout-patterns.js.map +0 -1
- package/dist/modifiers/responsive/performance.cjs +0 -3
- package/dist/modifiers/responsive/performance.cjs.map +0 -1
- package/dist/modifiers/responsive/performance.js +0 -212
- package/dist/modifiers/responsive/performance.js.map +0 -1
- package/dist/modifiers/responsive/responsive-builder.cjs +0 -2
- package/dist/modifiers/responsive/responsive-builder.cjs.map +0 -1
- package/dist/modifiers/responsive/responsive-builder.js +0 -272
- package/dist/modifiers/responsive/responsive-builder.js.map +0 -1
- package/dist/modifiers/responsive/responsive-modifier.cjs +0 -3
- package/dist/modifiers/responsive/responsive-modifier.cjs.map +0 -1
- package/dist/modifiers/responsive/responsive-modifier.js +0 -204
- package/dist/modifiers/responsive/responsive-modifier.js.map +0 -1
- package/dist/modifiers/responsive/types.cjs +0 -2
- package/dist/modifiers/responsive/types.cjs.map +0 -1
- package/dist/modifiers/responsive/types.js +0 -26
- package/dist/modifiers/responsive/types.js.map +0 -1
- package/dist/modifiers/responsive/utilities.cjs +0 -16
- package/dist/modifiers/responsive/utilities.cjs.map +0 -1
- package/dist/modifiers/responsive/utilities.js +0 -273
- package/dist/modifiers/responsive/utilities.js.map +0 -1
- package/dist/modifiers/scroll.cjs +0 -2
- package/dist/modifiers/scroll.cjs.map +0 -1
- package/dist/modifiers/scroll.js +0 -82
- package/dist/modifiers/scroll.js.map +0 -1
- package/dist/modifiers/shadows.cjs +0 -2
- package/dist/modifiers/shadows.cjs.map +0 -1
- package/dist/modifiers/shadows.js +0 -147
- package/dist/modifiers/shadows.js.map +0 -1
- package/dist/modifiers/size.cjs +0 -2
- package/dist/modifiers/size.cjs.map +0 -1
- package/dist/modifiers/size.js +0 -74
- package/dist/modifiers/size.js.map +0 -1
- package/dist/modifiers/text.cjs +0 -2
- package/dist/modifiers/text.cjs.map +0 -1
- package/dist/modifiers/text.js +0 -166
- package/dist/modifiers/text.js.map +0 -1
- package/dist/modifiers/transformations.cjs +0 -2
- package/dist/modifiers/transformations.cjs.map +0 -1
- package/dist/modifiers/transformations.js +0 -216
- package/dist/modifiers/transformations.js.map +0 -1
- package/dist/modifiers/transitions.cjs +0 -2
- package/dist/modifiers/transitions.cjs.map +0 -1
- package/dist/modifiers/transitions.js +0 -102
- package/dist/modifiers/transitions.js.map +0 -1
- package/dist/modifiers/types.cjs +0 -2
- package/dist/modifiers/types.cjs.map +0 -1
- package/dist/modifiers/types.js +0 -5
- package/dist/modifiers/types.js.map +0 -1
- package/dist/modifiers/typography.cjs +0 -2
- package/dist/modifiers/typography.cjs.map +0 -1
- package/dist/modifiers/typography.js +0 -76
- package/dist/modifiers/typography.js.map +0 -1
- package/dist/modifiers/utility.cjs +0 -2
- package/dist/modifiers/utility.cjs.map +0 -1
- package/dist/modifiers/utility.js +0 -71
- package/dist/modifiers/utility.js.map +0 -1
- package/dist/modifiers/utils.cjs +0 -2
- package/dist/modifiers/utils.cjs.map +0 -1
- package/dist/modifiers/utils.js +0 -250
- package/dist/modifiers/utils.js.map +0 -1
- package/dist/plugins/index.cjs +0 -2
- package/dist/plugins/index.cjs.map +0 -1
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/legacy-adapter.cjs +0 -2
- package/dist/plugins/legacy-adapter.cjs.map +0 -1
- package/dist/plugins/legacy-adapter.js +0 -30
- package/dist/plugins/legacy-adapter.js.map +0 -1
- package/dist/plugins/simplified-component-registry.cjs +0 -2
- package/dist/plugins/simplified-component-registry.cjs.map +0 -1
- package/dist/plugins/simplified-component-registry.js +0 -71
- package/dist/plugins/simplified-component-registry.js.map +0 -1
- package/dist/plugins/simplified-error-handler.cjs +0 -2
- package/dist/plugins/simplified-error-handler.cjs.map +0 -1
- package/dist/plugins/simplified-error-handler.js +0 -154
- package/dist/plugins/simplified-error-handler.js.map +0 -1
- package/dist/plugins/simplified-lazy-loader.cjs +0 -2
- package/dist/plugins/simplified-lazy-loader.cjs.map +0 -1
- package/dist/plugins/simplified-lazy-loader.js +0 -129
- package/dist/plugins/simplified-lazy-loader.js.map +0 -1
- package/dist/plugins/simplified-plugin-manager.cjs +0 -2
- package/dist/plugins/simplified-plugin-manager.cjs.map +0 -1
- package/dist/plugins/simplified-plugin-manager.js +0 -51
- package/dist/plugins/simplified-plugin-manager.js.map +0 -1
- package/dist/plugins/simplified-tachui-instance.cjs +0 -2
- package/dist/plugins/simplified-tachui-instance.cjs.map +0 -1
- package/dist/plugins/simplified-tachui-instance.js +0 -88
- package/dist/plugins/simplified-tachui-instance.js.map +0 -1
- package/dist/plugins/simplified-types.cjs +0 -2
- package/dist/plugins/simplified-types.cjs.map +0 -1
- package/dist/plugins/simplified-types.js +0 -9
- package/dist/plugins/simplified-types.js.map +0 -1
- package/dist/plugins/simplified-utils.cjs +0 -2
- package/dist/plugins/simplified-utils.cjs.map +0 -1
- package/dist/plugins/simplified-utils.js +0 -40
- package/dist/plugins/simplified-utils.js.map +0 -1
- package/dist/reactive/cleanup.cjs +0 -2
- package/dist/reactive/cleanup.cjs.map +0 -1
- package/dist/reactive/cleanup.js +0 -62
- package/dist/reactive/cleanup.js.map +0 -1
- package/dist/reactive/computed.cjs +0 -2
- package/dist/reactive/computed.cjs.map +0 -1
- package/dist/reactive/computed.js +0 -121
- package/dist/reactive/computed.js.map +0 -1
- package/dist/reactive/context.cjs +0 -2
- package/dist/reactive/context.cjs.map +0 -1
- package/dist/reactive/context.js +0 -143
- package/dist/reactive/context.js.map +0 -1
- package/dist/reactive/effect.cjs +0 -2
- package/dist/reactive/effect.cjs.map +0 -1
- package/dist/reactive/effect.js +0 -67
- package/dist/reactive/effect.js.map +0 -1
- package/dist/reactive/enhanced-effect.cjs +0 -2
- package/dist/reactive/enhanced-effect.cjs.map +0 -1
- package/dist/reactive/enhanced-effect.js +0 -153
- package/dist/reactive/enhanced-effect.js.map +0 -1
- package/dist/reactive/enhanced-signal.cjs +0 -2
- package/dist/reactive/enhanced-signal.cjs.map +0 -1
- package/dist/reactive/enhanced-signal.js +0 -117
- package/dist/reactive/enhanced-signal.js.map +0 -1
- package/dist/reactive/equality.cjs +0 -2
- package/dist/reactive/equality.cjs.map +0 -1
- package/dist/reactive/equality.js +0 -66
- package/dist/reactive/equality.js.map +0 -1
- package/dist/reactive/index.cjs +0 -2
- package/dist/reactive/index.cjs.map +0 -1
- package/dist/reactive/index.js.map +0 -1
- package/dist/reactive/migration.cjs +0 -18
- package/dist/reactive/migration.cjs.map +0 -1
- package/dist/reactive/migration.js +0 -164
- package/dist/reactive/migration.js.map +0 -1
- package/dist/reactive/ownership.cjs +0 -2
- package/dist/reactive/ownership.cjs.map +0 -1
- package/dist/reactive/ownership.js +0 -34
- package/dist/reactive/ownership.js.map +0 -1
- package/dist/reactive/scheduler.cjs +0 -2
- package/dist/reactive/scheduler.cjs.map +0 -1
- package/dist/reactive/scheduler.js +0 -111
- package/dist/reactive/scheduler.js.map +0 -1
- package/dist/reactive/signal.cjs +0 -2
- package/dist/reactive/signal.cjs.map +0 -1
- package/dist/reactive/signal.js +0 -96
- package/dist/reactive/signal.js.map +0 -1
- package/dist/reactive/theme.cjs +0 -2
- package/dist/reactive/theme.cjs.map +0 -1
- package/dist/reactive/theme.js +0 -27
- package/dist/reactive/theme.js.map +0 -1
- package/dist/reactive/types.cjs +0 -2
- package/dist/reactive/types.cjs.map +0 -1
- package/dist/reactive/types.js +0 -5
- package/dist/reactive/types.js.map +0 -1
- package/dist/reactive/unified-scheduler.cjs +0 -2
- package/dist/reactive/unified-scheduler.cjs.map +0 -1
- package/dist/reactive/unified-scheduler.js +0 -219
- package/dist/reactive/unified-scheduler.js.map +0 -1
- package/dist/runtime/component-context.cjs +0 -2
- package/dist/runtime/component-context.cjs.map +0 -1
- package/dist/runtime/component-context.js +0 -177
- package/dist/runtime/component-context.js.map +0 -1
- package/dist/runtime/component.cjs +0 -2
- package/dist/runtime/component.cjs.map +0 -1
- package/dist/runtime/component.js +0 -238
- package/dist/runtime/component.js.map +0 -1
- package/dist/runtime/context.cjs +0 -2
- package/dist/runtime/context.cjs.map +0 -1
- package/dist/runtime/context.js.map +0 -1
- package/dist/runtime/dev-tools.cjs +0 -2
- package/dist/runtime/dev-tools.cjs.map +0 -1
- package/dist/runtime/dev-tools.js +0 -391
- package/dist/runtime/dev-tools.js.map +0 -1
- package/dist/runtime/development-warnings.cjs +0 -2
- package/dist/runtime/development-warnings.cjs.map +0 -1
- package/dist/runtime/development-warnings.js +0 -69
- package/dist/runtime/development-warnings.js.map +0 -1
- package/dist/runtime/dom-bridge.cjs +0 -2
- package/dist/runtime/dom-bridge.cjs.map +0 -1
- package/dist/runtime/dom-bridge.js.map +0 -1
- package/dist/runtime/element-override.cjs +0 -2
- package/dist/runtime/element-override.cjs.map +0 -1
- package/dist/runtime/element-override.js +0 -214
- package/dist/runtime/element-override.js.map +0 -1
- package/dist/runtime/error-boundary.cjs +0 -2
- package/dist/runtime/error-boundary.cjs.map +0 -1
- package/dist/runtime/error-boundary.js +0 -559
- package/dist/runtime/error-boundary.js.map +0 -1
- package/dist/runtime/error-recovery.cjs +0 -2
- package/dist/runtime/error-recovery.cjs.map +0 -1
- package/dist/runtime/error-recovery.js +0 -385
- package/dist/runtime/error-recovery.js.map +0 -1
- package/dist/runtime/error-reporting.cjs +0 -3
- package/dist/runtime/error-reporting.cjs.map +0 -1
- package/dist/runtime/error-reporting.js +0 -479
- package/dist/runtime/error-reporting.js.map +0 -1
- package/dist/runtime/error-utils.cjs +0 -3
- package/dist/runtime/error-utils.cjs.map +0 -1
- package/dist/runtime/error-utils.js +0 -352
- package/dist/runtime/error-utils.js.map +0 -1
- package/dist/runtime/lazy-component.cjs +0 -2
- package/dist/runtime/lazy-component.cjs.map +0 -1
- package/dist/runtime/lazy-component.js +0 -129
- package/dist/runtime/lazy-component.js.map +0 -1
- package/dist/runtime/lifecycle.cjs +0 -2
- package/dist/runtime/lifecycle.cjs.map +0 -1
- package/dist/runtime/lifecycle.js +0 -7
- package/dist/runtime/lifecycle.js.map +0 -1
- package/dist/runtime/mounting.cjs +0 -2
- package/dist/runtime/mounting.cjs.map +0 -1
- package/dist/runtime/mounting.js +0 -12
- package/dist/runtime/mounting.js.map +0 -1
- package/dist/runtime/optimization.cjs +0 -2
- package/dist/runtime/optimization.cjs.map +0 -1
- package/dist/runtime/optimization.js +0 -6
- package/dist/runtime/optimization.js.map +0 -1
- package/dist/runtime/performance.cjs +0 -2
- package/dist/runtime/performance.cjs.map +0 -1
- package/dist/runtime/performance.js +0 -399
- package/dist/runtime/performance.js.map +0 -1
- package/dist/runtime/props.cjs +0 -2
- package/dist/runtime/props.cjs.map +0 -1
- package/dist/runtime/props.js +0 -265
- package/dist/runtime/props.js.map +0 -1
- package/dist/runtime/renderer.cjs +0 -2
- package/dist/runtime/renderer.cjs.map +0 -1
- package/dist/runtime/renderer.js.map +0 -1
- package/dist/runtime/semantic-role-manager.cjs +0 -2
- package/dist/runtime/semantic-role-manager.cjs.map +0 -1
- package/dist/runtime/semantic-role-manager.js +0 -82
- package/dist/runtime/semantic-role-manager.js.map +0 -1
- package/dist/state/binding.cjs +0 -2
- package/dist/state/binding.cjs.map +0 -1
- package/dist/state/binding.js +0 -155
- package/dist/state/binding.js.map +0 -1
- package/dist/state/environment.cjs +0 -2
- package/dist/state/environment.cjs.map +0 -1
- package/dist/state/environment.js +0 -115
- package/dist/state/environment.js.map +0 -1
- package/dist/state/index.cjs +0 -2
- package/dist/state/index.cjs.map +0 -1
- package/dist/state/index.js +0 -63
- package/dist/state/index.js.map +0 -1
- package/dist/state/observed-object.cjs +0 -2
- package/dist/state/observed-object.cjs.map +0 -1
- package/dist/state/observed-object.js +0 -163
- package/dist/state/observed-object.js.map +0 -1
- package/dist/state/state-manager.cjs +0 -2
- package/dist/state/state-manager.cjs.map +0 -1
- package/dist/state/state-manager.js +0 -233
- package/dist/state/state-manager.js.map +0 -1
- package/dist/state/state.cjs +0 -2
- package/dist/state/state.cjs.map +0 -1
- package/dist/state/state.js +0 -159
- package/dist/state/state.js.map +0 -1
- package/dist/sui-compat.cjs +0 -2
- package/dist/sui-compat.cjs.map +0 -1
- package/dist/sui-compat.js +0 -88
- package/dist/sui-compat.js.map +0 -1
- package/dist/validation/advanced-debugging.cjs +0 -44
- package/dist/validation/advanced-debugging.cjs.map +0 -1
- package/dist/validation/advanced-debugging.js +0 -455
- package/dist/validation/advanced-debugging.js.map +0 -1
- package/dist/validation/build-time/detection.cjs +0 -2
- package/dist/validation/build-time/detection.cjs.map +0 -1
- package/dist/validation/build-time/detection.js +0 -199
- package/dist/validation/build-time/detection.js.map +0 -1
- package/dist/validation/build-time/index.cjs +0 -2
- package/dist/validation/build-time/index.cjs.map +0 -1
- package/dist/validation/build-time/index.js +0 -122
- package/dist/validation/build-time/index.js.map +0 -1
- package/dist/validation/build-time/plugins.cjs +0 -3
- package/dist/validation/build-time/plugins.cjs.map +0 -1
- package/dist/validation/build-time/plugins.js +0 -282
- package/dist/validation/build-time/plugins.js.map +0 -1
- package/dist/validation/build-time/rules.cjs +0 -2
- package/dist/validation/build-time/rules.cjs.map +0 -1
- package/dist/validation/build-time/rules.js +0 -576
- package/dist/validation/build-time/rules.js.map +0 -1
- package/dist/validation/build-time/transformer.cjs +0 -3
- package/dist/validation/build-time/transformer.cjs.map +0 -1
- package/dist/validation/build-time/transformer.js +0 -177
- package/dist/validation/build-time/transformer.js.map +0 -1
- package/dist/validation/comprehensive.cjs +0 -9
- package/dist/validation/comprehensive.cjs.map +0 -1
- package/dist/validation/comprehensive.js +0 -916
- package/dist/validation/comprehensive.js.map +0 -1
- package/dist/validation/debug-tools.cjs +0 -16
- package/dist/validation/debug-tools.cjs.map +0 -1
- package/dist/validation/debug-tools.js +0 -405
- package/dist/validation/debug-tools.js.map +0 -1
- package/dist/validation/developer-experience.cjs +0 -17
- package/dist/validation/developer-experience.cjs.map +0 -1
- package/dist/validation/developer-experience.js +0 -433
- package/dist/validation/developer-experience.js.map +0 -1
- package/dist/validation/documentation-integration.cjs +0 -7
- package/dist/validation/documentation-integration.cjs.map +0 -1
- package/dist/validation/documentation-integration.js +0 -440
- package/dist/validation/documentation-integration.js.map +0 -1
- package/dist/validation/enhanced-runtime.cjs +0 -6
- package/dist/validation/enhanced-runtime.cjs.map +0 -1
- package/dist/validation/enhanced-runtime.js +0 -465
- package/dist/validation/enhanced-runtime.js.map +0 -1
- package/dist/validation/error-reporting.cjs +0 -32
- package/dist/validation/error-reporting.cjs.map +0 -1
- package/dist/validation/error-reporting.js +0 -370
- package/dist/validation/error-reporting.js.map +0 -1
- package/dist/validation/ide-integration.cjs +0 -85
- package/dist/validation/ide-integration.cjs.map +0 -1
- package/dist/validation/ide-integration.js +0 -557
- package/dist/validation/ide-integration.js.map +0 -1
- package/dist/validation/index.cjs +0 -6
- package/dist/validation/index.cjs.map +0 -1
- package/dist/validation/index.js.map +0 -1
- package/dist/validation/lifecycle-validation.cjs +0 -2
- package/dist/validation/lifecycle-validation.cjs.map +0 -1
- package/dist/validation/lifecycle-validation.js +0 -314
- package/dist/validation/lifecycle-validation.js.map +0 -1
- package/dist/validation/performance-optimizer.cjs +0 -2
- package/dist/validation/performance-optimizer.cjs.map +0 -1
- package/dist/validation/performance-optimizer.js +0 -338
- package/dist/validation/performance-optimizer.js.map +0 -1
- package/dist/validation/plugin-registration.cjs +0 -2
- package/dist/validation/plugin-registration.cjs.map +0 -1
- package/dist/validation/plugin-registration.js +0 -126
- package/dist/validation/plugin-registration.js.map +0 -1
- package/dist/validation/production-bypass.cjs +0 -2
- package/dist/validation/production-bypass.cjs.map +0 -1
- package/dist/validation/production-bypass.js +0 -218
- package/dist/validation/production-bypass.js.map +0 -1
- package/dist/validation/simple.cjs +0 -9
- package/dist/validation/simple.cjs.map +0 -1
- package/dist/validation/simple.js +0 -146
- package/dist/validation/simple.js.map +0 -1
- package/dist/viewport/adapters/web-adapter.cjs +0 -70
- package/dist/viewport/adapters/web-adapter.cjs.map +0 -1
- package/dist/viewport/adapters/web-adapter.js +0 -823
- package/dist/viewport/adapters/web-adapter.js.map +0 -1
- package/dist/viewport/components.cjs +0 -2
- package/dist/viewport/components.cjs.map +0 -1
- package/dist/viewport/components.js +0 -298
- package/dist/viewport/components.js.map +0 -1
- package/dist/viewport/environment.cjs +0 -2
- package/dist/viewport/environment.cjs.map +0 -1
- package/dist/viewport/environment.js +0 -86
- package/dist/viewport/environment.js.map +0 -1
- package/dist/viewport/index.cjs +0 -2
- package/dist/viewport/index.cjs.map +0 -1
- package/dist/viewport/index.js.map +0 -1
- package/dist/viewport/platform-detection.cjs +0 -2
- package/dist/viewport/platform-detection.cjs.map +0 -1
- package/dist/viewport/platform-detection.js +0 -205
- package/dist/viewport/platform-detection.js.map +0 -1
- package/dist/viewport/types.cjs +0 -2
- package/dist/viewport/types.cjs.map +0 -1
- package/dist/viewport/types.js +0 -13
- package/dist/viewport/types.js.map +0 -1
- package/dist/viewport/viewport-manager.cjs +0 -2
- package/dist/viewport/viewport-manager.cjs.map +0 -1
- package/dist/viewport/viewport-manager.js +0 -524
- package/dist/viewport/viewport-manager.js.map +0 -1
- package/src/assets/Asset.ts +0 -11
- package/src/assets/AssetCollection.ts +0 -99
- package/src/assets/ColorAsset.ts +0 -210
- package/src/assets/FontAsset.ts +0 -380
- package/src/assets/ImageAsset.ts +0 -91
- package/src/assets/README.md +0 -190
- package/src/assets/index.ts +0 -175
- package/src/assets/test-assets.ts +0 -69
- package/src/assets/test-integration.ts +0 -46
- package/src/assets/test-simple.ts +0 -28
- package/src/assets/types.ts +0 -79
- package/src/bundles/common.ts +0 -30
- package/src/bundles/complete.ts +0 -29
- package/src/bundles/essential.ts +0 -26
- package/src/bundles/minimal.ts +0 -26
- package/src/bundles/production-minimal.ts +0 -67
- package/src/compiler/advanced-parser.ts +0 -871
- package/src/compiler/codegen.ts +0 -450
- package/src/compiler/enhanced-codegen.ts +0 -729
- package/src/compiler/index.ts +0 -25
- package/src/compiler/parser.ts +0 -461
- package/src/compiler/plugin.ts +0 -181
- package/src/compiler/types.ts +0 -177
- package/src/components/BasicInput.ts +0 -352
- package/src/components/Button.ts +0 -963
- package/src/components/Divider.ts +0 -341
- package/src/components/EnhancedLink.ts +0 -676
- package/src/components/Form.ts +0 -414
- package/src/components/Grid.ts +0 -2507
- package/src/components/GridResponsive.ts +0 -637
- package/src/components/Image.ts +0 -426
- package/src/components/List.ts +0 -1084
- package/src/components/Menu.ts +0 -807
- package/src/components/Picker.ts +0 -678
- package/src/components/ScrollView.ts +0 -725
- package/src/components/Section.ts +0 -472
- package/src/components/Show.ts +0 -205
- package/src/components/Spacer.ts +0 -93
- package/src/components/Text.ts +0 -447
- package/src/components/Toggle.ts +0 -700
- package/src/components/index.ts +0 -231
- package/src/components/wrapper.ts +0 -828
- package/src/concatenation/concatenatable.ts +0 -211
- package/src/concatenation/concatenated-component.ts +0 -471
- package/src/concatenation/index.ts +0 -41
- package/src/concatenation/styles.css +0 -120
- package/src/concatenation/text-optimizer.ts +0 -440
- package/src/concatenation/types.ts +0 -116
- package/src/constants/README.md +0 -339
- package/src/constants/__tests__/frame-utils.test.ts +0 -276
- package/src/constants/__tests__/layout.test.ts +0 -215
- package/src/constants/frame-utils.ts +0 -174
- package/src/constants/index.ts +0 -8
- package/src/constants/layout.ts +0 -120
- package/src/css-classes/component-base.ts +0 -117
- package/src/css-classes/css-class-manager.ts +0 -372
- package/src/css-classes/dom-integration.ts +0 -162
- package/src/css-classes/enhanced-renderer.ts +0 -166
- package/src/css-classes/index.ts +0 -45
- package/src/css-classes/types.ts +0 -73
- package/src/css-classes/utilities.ts +0 -175
- package/src/debug/index.ts +0 -267
- package/src/developer-experience/enhanced-errors.ts +0 -556
- package/src/developer-experience/enhanced-types.ts +0 -427
- package/src/developer-experience/index.ts +0 -220
- package/src/globals.d.ts +0 -43
- package/src/gradients/__tests__/angular-gradient.test.ts +0 -111
- package/src/gradients/__tests__/background-modifier.test.ts +0 -81
- package/src/gradients/__tests__/comprehensive-gradients.test.ts +0 -296
- package/src/gradients/__tests__/gradient-asset.test.ts +0 -144
- package/src/gradients/__tests__/linear-gradient.test.ts +0 -92
- package/src/gradients/__tests__/phase4-features.test.ts +0 -386
- package/src/gradients/__tests__/radial-gradient.test.ts +0 -110
- package/src/gradients/__tests__/repeating-gradients.test.ts +0 -125
- package/src/gradients/__tests__/state-background-modifier.test.ts +0 -340
- package/src/gradients/__tests__/state-gradient-asset.test.ts +0 -262
- package/src/gradients/__tests__/state-gradient-integration.test.ts +0 -277
- package/src/gradients/css-generator.ts +0 -158
- package/src/gradients/examples.ts +0 -632
- package/src/gradients/gradient-asset.ts +0 -30
- package/src/gradients/index.ts +0 -85
- package/src/gradients/performance.ts +0 -521
- package/src/gradients/presets.ts +0 -422
- package/src/gradients/reactive.ts +0 -470
- package/src/gradients/state-gradient-asset.ts +0 -179
- package/src/gradients/types.ts +0 -148
- package/src/gradients/utils.ts +0 -579
- package/src/gradients/validation.ts +0 -489
- package/src/index.ts +0 -168
- package/src/lifecycle/hooks.ts +0 -332
- package/src/modifiers/__tests__/as-html-integration.test.ts +0 -204
- package/src/modifiers/__tests__/as-html.test.ts +0 -437
- package/src/modifiers/__tests__/basic-sanitizer-security.test.ts +0 -294
- package/src/modifiers/__tests__/border.test.ts +0 -371
- package/src/modifiers/__tests__/margin-string-support.test.ts +0 -41
- package/src/modifiers/__tests__/padding-string-support.test.ts +0 -41
- package/src/modifiers/as-html-validator.ts +0 -68
- package/src/modifiers/as-html.ts +0 -216
- package/src/modifiers/attributes.ts +0 -574
- package/src/modifiers/backdrop.ts +0 -290
- package/src/modifiers/background.ts +0 -165
- package/src/modifiers/base.ts +0 -1815
- package/src/modifiers/basic-sanitizer.ts +0 -227
- package/src/modifiers/border.ts +0 -574
- package/src/modifiers/builder.ts +0 -1747
- package/src/modifiers/core.ts +0 -521
- package/src/modifiers/css.ts +0 -148
- package/src/modifiers/effects.ts +0 -412
- package/src/modifiers/elements.ts +0 -541
- package/src/modifiers/filters.ts +0 -501
- package/src/modifiers/flexbox.ts +0 -180
- package/src/modifiers/font.ts +0 -149
- package/src/modifiers/grid.ts +0 -238
- package/src/modifiers/index.ts +0 -481
- package/src/modifiers/margin.ts +0 -218
- package/src/modifiers/padding.ts +0 -318
- package/src/modifiers/registry.ts +0 -444
- package/src/modifiers/responsive/__tests__/advanced-media-queries.test.ts +0 -392
- package/src/modifiers/responsive/__tests__/advanced-utilities.test.ts +0 -368
- package/src/modifiers/responsive/__tests__/comprehensive-browser-tests.test.ts +0 -556
- package/src/modifiers/responsive/__tests__/layout-patterns.test.ts +0 -558
- package/src/modifiers/responsive/advanced-utilities.ts +0 -562
- package/src/modifiers/responsive/breakpoints.ts +0 -330
- package/src/modifiers/responsive/css-generator.ts +0 -432
- package/src/modifiers/responsive/dev-tools.ts +0 -650
- package/src/modifiers/responsive/index.ts +0 -119
- package/src/modifiers/responsive/layout-patterns.ts +0 -592
- package/src/modifiers/responsive/performance.ts +0 -385
- package/src/modifiers/responsive/responsive-builder.ts +0 -620
- package/src/modifiers/responsive/responsive-modifier.ts +0 -410
- package/src/modifiers/responsive/types.ts +0 -226
- package/src/modifiers/responsive/utilities.ts +0 -478
- package/src/modifiers/scroll.ts +0 -297
- package/src/modifiers/shadows.ts +0 -321
- package/src/modifiers/size.ts +0 -208
- package/src/modifiers/text.ts +0 -416
- package/src/modifiers/transformations.ts +0 -640
- package/src/modifiers/transitions.ts +0 -218
- package/src/modifiers/types.ts +0 -889
- package/src/modifiers/typography.ts +0 -341
- package/src/modifiers/utility.ts +0 -209
- package/src/modifiers/utils.ts +0 -413
- package/src/plugins/__tests__/simplified-plugin-system.test.ts +0 -190
- package/src/plugins/component-loader-registry.ts +0 -371
- package/src/plugins/index.ts +0 -61
- package/src/plugins/legacy-adapter.ts +0 -84
- package/src/plugins/simplified-component-registry.ts +0 -130
- package/src/plugins/simplified-error-handler.ts +0 -372
- package/src/plugins/simplified-index.ts +0 -61
- package/src/plugins/simplified-lazy-loader.ts +0 -242
- package/src/plugins/simplified-plugin-manager.ts +0 -93
- package/src/plugins/simplified-tachui-instance.ts +0 -142
- package/src/plugins/simplified-types.ts +0 -79
- package/src/plugins/simplified-utils.ts +0 -118
- package/src/reactive/cleanup.ts +0 -241
- package/src/reactive/computed.ts +0 -281
- package/src/reactive/context.ts +0 -287
- package/src/reactive/effect.ts +0 -194
- package/src/reactive/enhanced-effect.ts +0 -318
- package/src/reactive/enhanced-signal.ts +0 -227
- package/src/reactive/equality.ts +0 -188
- package/src/reactive/globals.d.ts +0 -5
- package/src/reactive/index.ts +0 -150
- package/src/reactive/migration.ts +0 -335
- package/src/reactive/ownership.ts +0 -182
- package/src/reactive/scheduler.ts +0 -300
- package/src/reactive/signal.ts +0 -201
- package/src/reactive/theme.ts +0 -49
- package/src/reactive/types.ts +0 -103
- package/src/reactive/unified-scheduler.ts +0 -357
- package/src/runtime/component-context.ts +0 -343
- package/src/runtime/component.ts +0 -499
- package/src/runtime/context.ts +0 -527
- package/src/runtime/dev-tools.ts +0 -752
- package/src/runtime/development-warnings.ts +0 -114
- package/src/runtime/dom-bridge.ts +0 -570
- package/src/runtime/element-override.ts +0 -282
- package/src/runtime/error-boundary.ts +0 -955
- package/src/runtime/error-recovery.ts +0 -638
- package/src/runtime/error-reporting.ts +0 -808
- package/src/runtime/error-utils.ts +0 -698
- package/src/runtime/index.ts +0 -202
- package/src/runtime/lazy-component.ts +0 -268
- package/src/runtime/lifecycle.ts +0 -10
- package/src/runtime/mounting.ts +0 -17
- package/src/runtime/optimization.ts +0 -13
- package/src/runtime/performance.ts +0 -693
- package/src/runtime/props.ts +0 -434
- package/src/runtime/refs.ts +0 -13
- package/src/runtime/renderer.ts +0 -674
- package/src/runtime/semantic-role-manager.ts +0 -140
- package/src/runtime/types.ts +0 -282
- package/src/state/binding.ts +0 -381
- package/src/state/environment-object.ts +0 -444
- package/src/state/environment.ts +0 -351
- package/src/state/index.ts +0 -179
- package/src/state/observed-object.ts +0 -405
- package/src/state/state-manager.ts +0 -366
- package/src/state/state.ts +0 -339
- package/src/state/types.ts +0 -192
- package/src/sui-compat.ts +0 -163
- package/src/validation/__tests__/phase-1d-integration.test.ts +0 -558
- package/src/validation/advanced-debugging.ts +0 -860
- package/src/validation/build-time/detection.ts +0 -373
- package/src/validation/build-time/index.ts +0 -222
- package/src/validation/build-time/plugins.ts +0 -515
- package/src/validation/build-time/rules.ts +0 -624
- package/src/validation/build-time/transformer.ts +0 -372
- package/src/validation/build-time/types.ts +0 -232
- package/src/validation/comprehensive.ts +0 -1272
- package/src/validation/debug-tools.ts +0 -724
- package/src/validation/developer-experience.ts +0 -712
- package/src/validation/documentation-integration.ts +0 -835
- package/src/validation/enhanced-runtime.ts +0 -765
- package/src/validation/error-reporting.ts +0 -587
- package/src/validation/ide-integration.ts +0 -845
- package/src/validation/index.ts +0 -353
- package/src/validation/lifecycle-validation.ts +0 -636
- package/src/validation/performance-optimizer.ts +0 -599
- package/src/validation/plugin-registration.ts +0 -249
- package/src/validation/production-bypass.ts +0 -466
- package/src/validation/simple.ts +0 -465
- package/src/viewport/adapters/web-adapter.ts +0 -1385
- package/src/viewport/components.ts +0 -505
- package/src/viewport/environment.ts +0 -173
- package/src/viewport/index.ts +0 -290
- package/src/viewport/platform-detection.ts +0 -431
- package/src/viewport/types.ts +0 -371
- package/src/viewport/viewport-manager.ts +0 -979
|
@@ -1,828 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Component Wrapper System
|
|
3
|
-
*
|
|
4
|
-
* Provides wrapper functions to enhance regular components with modifier support
|
|
5
|
-
* and integrate them with the TachUI modifier system.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { createModifiableComponent, createModifierBuilder } from '../modifiers'
|
|
9
|
-
import type { ModifiableComponent, ModifierBuilder } from '../modifiers/types'
|
|
10
|
-
import { h, text } from '../runtime'
|
|
11
|
-
import type { ComponentInstance, ComponentProps, DOMNode } from '../runtime/types'
|
|
12
|
-
import { useLifecycle } from '../lifecycle/hooks'
|
|
13
|
-
import { registerComponentWithLifecycleHooks } from '../runtime/dom-bridge'
|
|
14
|
-
import {
|
|
15
|
-
processElementOverride,
|
|
16
|
-
type ElementOverrideProps
|
|
17
|
-
} from '../runtime/element-override'
|
|
18
|
-
import {
|
|
19
|
-
ComponentWithCSSClasses,
|
|
20
|
-
type CSSClassesProps
|
|
21
|
-
} from '../css-classes'
|
|
22
|
-
import type { Concatenatable } from '../concatenation/types'
|
|
23
|
-
// Lazy import debug manager to avoid circular dependencies
|
|
24
|
-
let debugManager: any = null
|
|
25
|
-
const getDebugManager = () => {
|
|
26
|
-
if (!debugManager) {
|
|
27
|
-
try {
|
|
28
|
-
const debugModule = require('../debug')
|
|
29
|
-
debugManager = debugModule.debugManager
|
|
30
|
-
} catch {
|
|
31
|
-
// Debug module not available, create a mock
|
|
32
|
-
debugManager = {
|
|
33
|
-
isEnabled: () => false,
|
|
34
|
-
logComponent: () => {},
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return debugManager
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Wrapper options for enhancing components
|
|
43
|
-
*/
|
|
44
|
-
export interface WrapperOptions {
|
|
45
|
-
enableModifiers?: boolean
|
|
46
|
-
enableReactivity?: boolean
|
|
47
|
-
enableErrorBoundary?: boolean
|
|
48
|
-
enablePerformanceTracking?: boolean
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Helper function to check if a component implements Concatenatable
|
|
53
|
-
*/
|
|
54
|
-
function isConcatenatable(component: any): component is Concatenatable {
|
|
55
|
-
return component &&
|
|
56
|
-
typeof component.concat === 'function' &&
|
|
57
|
-
typeof component.toSegment === 'function' &&
|
|
58
|
-
typeof component.isConcatenatable === 'function'
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Enhanced component wrapper that adds modifier support and preserves concatenation methods
|
|
63
|
-
*/
|
|
64
|
-
export function withModifiers<P extends ComponentProps>(
|
|
65
|
-
component: ComponentInstance<P>
|
|
66
|
-
): ModifiableComponent<P> & { modifier: ModifierBuilder<ModifiableComponent<P>> } & (ComponentInstance<P> extends Concatenatable ? Concatenatable : {}) {
|
|
67
|
-
const modifiableComponent = createModifiableComponent(component)
|
|
68
|
-
const modifierBuilder = createModifierBuilder(modifiableComponent)
|
|
69
|
-
|
|
70
|
-
const result: any = {
|
|
71
|
-
...modifiableComponent,
|
|
72
|
-
modifier: modifierBuilder,
|
|
73
|
-
modifierBuilder: modifierBuilder,
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// If the original component supports concatenation, preserve those methods
|
|
77
|
-
if (isConcatenatable(component)) {
|
|
78
|
-
result.concat = function(other: any) {
|
|
79
|
-
return (component as any).concat(other)
|
|
80
|
-
}
|
|
81
|
-
result.toSegment = function() {
|
|
82
|
-
return (component as any).toSegment()
|
|
83
|
-
}
|
|
84
|
-
result.isConcatenatable = function() {
|
|
85
|
-
return (component as any).isConcatenatable()
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return result
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Create a reactive component wrapper with full TachUI features
|
|
94
|
-
*/
|
|
95
|
-
export function createReactiveWrapper<P extends ComponentProps>(
|
|
96
|
-
renderFn: (props: P) => DOMNode | DOMNode[],
|
|
97
|
-
options: WrapperOptions = {}
|
|
98
|
-
): (props: P) => ModifiableComponent<P> & { modifier: ModifierBuilder<ModifiableComponent<P>> } {
|
|
99
|
-
const { enableModifiers = true } = options
|
|
100
|
-
|
|
101
|
-
return (props: P) => {
|
|
102
|
-
// Create a simple component instance that uses the render function
|
|
103
|
-
const component: ComponentInstance<P> = {
|
|
104
|
-
type: 'component' as const,
|
|
105
|
-
id: `wrapper-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
106
|
-
props,
|
|
107
|
-
mounted: false,
|
|
108
|
-
cleanup: [],
|
|
109
|
-
render() {
|
|
110
|
-
const result = renderFn(props)
|
|
111
|
-
return Array.isArray(result) ? result : [result]
|
|
112
|
-
},
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// Add modifier support if enabled
|
|
116
|
-
if (enableModifiers) {
|
|
117
|
-
return withModifiers(component)
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Return basic component with minimal wrapper
|
|
121
|
-
return withModifiers(component)
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Simple element component class
|
|
127
|
-
*/
|
|
128
|
-
class ElementComponent implements ComponentInstance<ComponentProps> {
|
|
129
|
-
public readonly type = 'component' as const
|
|
130
|
-
public readonly id: string
|
|
131
|
-
public mounted = false
|
|
132
|
-
public cleanup: (() => void)[] = []
|
|
133
|
-
|
|
134
|
-
constructor(
|
|
135
|
-
public props: ComponentProps,
|
|
136
|
-
private tag: string,
|
|
137
|
-
private content?: string,
|
|
138
|
-
private attributes: Record<string, any> = {}
|
|
139
|
-
) {
|
|
140
|
-
this.id = `element-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
render() {
|
|
144
|
-
return [h(this.tag, this.attributes, this.content ? text(this.content) : '')]
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Simple HTML element wrappers with modifier support
|
|
150
|
-
*
|
|
151
|
-
* These are basic HTML element wrappers for simple use cases.
|
|
152
|
-
* For enhanced SwiftUI-style components with advanced features,
|
|
153
|
-
* use the main component exports (Button, Image, Text, etc.).
|
|
154
|
-
*/
|
|
155
|
-
export const HTML = {
|
|
156
|
-
/**
|
|
157
|
-
* Create a div element with modifier support
|
|
158
|
-
*/
|
|
159
|
-
div: (props: { children?: any } = {}) => {
|
|
160
|
-
const component = new ElementComponent(
|
|
161
|
-
props,
|
|
162
|
-
'div',
|
|
163
|
-
props.children ? String(props.children) : undefined
|
|
164
|
-
)
|
|
165
|
-
return withModifiers(component)
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Create a span element with modifier support
|
|
170
|
-
*/
|
|
171
|
-
span: (props: { children?: any } = {}) => {
|
|
172
|
-
const component = new ElementComponent(
|
|
173
|
-
props,
|
|
174
|
-
'span',
|
|
175
|
-
props.children ? String(props.children) : undefined
|
|
176
|
-
)
|
|
177
|
-
return withModifiers(component)
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Create a paragraph element with modifier support
|
|
182
|
-
*/
|
|
183
|
-
p: (props: { children?: any } = {}) => {
|
|
184
|
-
const component = new ElementComponent(
|
|
185
|
-
props,
|
|
186
|
-
'p',
|
|
187
|
-
props.children ? String(props.children) : undefined
|
|
188
|
-
)
|
|
189
|
-
return withModifiers(component)
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Create a button element with modifier support
|
|
194
|
-
*
|
|
195
|
-
* Note: For enhanced button features (press states, variants, accessibility),
|
|
196
|
-
* use the main Button component instead.
|
|
197
|
-
*/
|
|
198
|
-
button: (props: { children?: any; onClick?: () => void } = {}) => {
|
|
199
|
-
const component = new ElementComponent(
|
|
200
|
-
props,
|
|
201
|
-
'button',
|
|
202
|
-
props.children ? String(props.children) : undefined,
|
|
203
|
-
{
|
|
204
|
-
onclick: props.onClick,
|
|
205
|
-
}
|
|
206
|
-
)
|
|
207
|
-
return withModifiers(component)
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Create an input element with modifier support
|
|
212
|
-
*/
|
|
213
|
-
input: (
|
|
214
|
-
props: {
|
|
215
|
-
type?: string
|
|
216
|
-
value?: string
|
|
217
|
-
placeholder?: string
|
|
218
|
-
onChange?: (value: string) => void
|
|
219
|
-
} = {}
|
|
220
|
-
) => {
|
|
221
|
-
const component = new ElementComponent(props, 'input', undefined, {
|
|
222
|
-
type: props.type || 'text',
|
|
223
|
-
value: props.value || '',
|
|
224
|
-
placeholder: props.placeholder || '',
|
|
225
|
-
oninput: (e: Event) => {
|
|
226
|
-
const target = e.target as HTMLInputElement
|
|
227
|
-
props.onChange?.(target.value)
|
|
228
|
-
},
|
|
229
|
-
})
|
|
230
|
-
return withModifiers(component)
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Create an image element with modifier support
|
|
235
|
-
*
|
|
236
|
-
* Note: For enhanced image features (loading states, content modes, progressive loading),
|
|
237
|
-
* use the main Image component instead.
|
|
238
|
-
*/
|
|
239
|
-
img: (props: {
|
|
240
|
-
src: string
|
|
241
|
-
alt?: string
|
|
242
|
-
width?: number | string
|
|
243
|
-
height?: number | string
|
|
244
|
-
}) => {
|
|
245
|
-
const component = new ElementComponent(props, 'img', undefined, {
|
|
246
|
-
src: props.src,
|
|
247
|
-
alt: props.alt || '',
|
|
248
|
-
width: props.width,
|
|
249
|
-
height: props.height,
|
|
250
|
-
})
|
|
251
|
-
return withModifiers(component)
|
|
252
|
-
},
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Create a heading element with modifier support
|
|
256
|
-
*/
|
|
257
|
-
heading:
|
|
258
|
-
(level: 1 | 2 | 3 | 4 | 5 | 6) =>
|
|
259
|
-
(props: { children?: any } = {}) => {
|
|
260
|
-
const component = new ElementComponent(
|
|
261
|
-
props,
|
|
262
|
-
`h${level}`,
|
|
263
|
-
props.children ? String(props.children) : undefined
|
|
264
|
-
)
|
|
265
|
-
return withModifiers(component)
|
|
266
|
-
},
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Shorthand for heading elements
|
|
271
|
-
*/
|
|
272
|
-
export const H1 = HTML.heading(1)
|
|
273
|
-
export const H2 = HTML.heading(2)
|
|
274
|
-
export const H3 = HTML.heading(3)
|
|
275
|
-
export const H4 = HTML.heading(4)
|
|
276
|
-
export const H5 = HTML.heading(5)
|
|
277
|
-
export const H6 = HTML.heading(6)
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Layout container component class with element override support
|
|
281
|
-
*/
|
|
282
|
-
class LayoutComponent extends ComponentWithCSSClasses implements ComponentInstance<ComponentProps & ElementOverrideProps & CSSClassesProps> {
|
|
283
|
-
public readonly type = 'component' as const
|
|
284
|
-
public readonly id: string
|
|
285
|
-
public mounted = false
|
|
286
|
-
public cleanup: (() => void)[] = []
|
|
287
|
-
private effectiveTag: string
|
|
288
|
-
private validationResult: any
|
|
289
|
-
|
|
290
|
-
constructor(
|
|
291
|
-
public props: ComponentProps & ElementOverrideProps & CSSClassesProps,
|
|
292
|
-
private layoutType: 'vstack' | 'hstack' | 'zstack',
|
|
293
|
-
public children: ComponentInstance[] = [],
|
|
294
|
-
private layoutProps: any = {}
|
|
295
|
-
) {
|
|
296
|
-
super()
|
|
297
|
-
this.id = `layout-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`
|
|
298
|
-
|
|
299
|
-
// Process element override for tag specification enhancement
|
|
300
|
-
const componentType = this.layoutType === 'hstack' ? 'HStack' :
|
|
301
|
-
this.layoutType === 'vstack' ? 'VStack' : 'ZStack'
|
|
302
|
-
const override = processElementOverride(componentType, 'div', this.props.element)
|
|
303
|
-
this.effectiveTag = override.tag
|
|
304
|
-
this.validationResult = override.validation
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
// Set up lifecycle hooks to process child components
|
|
308
|
-
useLifecycle(this, {
|
|
309
|
-
onDOMReady: (_elements, primaryElement) => {
|
|
310
|
-
// Process lifecycle hooks for child components that have them
|
|
311
|
-
this.children.forEach((child, index) => {
|
|
312
|
-
const enhancedLifecycle = (child as any)._enhancedLifecycle
|
|
313
|
-
|
|
314
|
-
if (enhancedLifecycle && enhancedLifecycle.onDOMReady && !child.domReady) {
|
|
315
|
-
try {
|
|
316
|
-
// Find DOM elements for this child by searching within our container
|
|
317
|
-
if (primaryElement) {
|
|
318
|
-
// For layout components, children are rendered as direct children
|
|
319
|
-
// Try to find the child's DOM element(s)
|
|
320
|
-
const childElements = this.findChildDOMElements(child, primaryElement, index)
|
|
321
|
-
|
|
322
|
-
if (childElements.length > 0) {
|
|
323
|
-
// Set up DOM tracking for the child
|
|
324
|
-
child.domElements = new Map()
|
|
325
|
-
childElements.forEach((element, idx) => {
|
|
326
|
-
const key = element.id || `element-${idx}`
|
|
327
|
-
child.domElements!.set(key, element)
|
|
328
|
-
if (!child.primaryElement) {
|
|
329
|
-
child.primaryElement = element
|
|
330
|
-
}
|
|
331
|
-
})
|
|
332
|
-
|
|
333
|
-
child.domReady = true
|
|
334
|
-
|
|
335
|
-
// Call the child's onDOMReady hook
|
|
336
|
-
const cleanup = enhancedLifecycle.onDOMReady(
|
|
337
|
-
child.domElements,
|
|
338
|
-
child.primaryElement
|
|
339
|
-
)
|
|
340
|
-
if (typeof cleanup === 'function') {
|
|
341
|
-
child.cleanup = child.cleanup || []
|
|
342
|
-
child.cleanup.push(cleanup)
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
// Also call onMount if it exists
|
|
346
|
-
if (enhancedLifecycle.onMount) {
|
|
347
|
-
const mountCleanup = enhancedLifecycle.onMount()
|
|
348
|
-
if (typeof mountCleanup === 'function') {
|
|
349
|
-
child.cleanup = child.cleanup || []
|
|
350
|
-
child.cleanup.push(mountCleanup)
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
} catch (error) {
|
|
356
|
-
console.error(`Error processing lifecycle hooks for child ${child.id}:`, error)
|
|
357
|
-
// Continue processing other children even if one fails
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
})
|
|
361
|
-
}
|
|
362
|
-
})
|
|
363
|
-
|
|
364
|
-
// Register this component for lifecycle processing
|
|
365
|
-
registerComponentWithLifecycleHooks(this)
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* Find DOM elements for a specific child component within the layout container
|
|
370
|
-
*/
|
|
371
|
-
private findChildDOMElements(child: ComponentInstance, container: Element, childIndex: number): Element[] {
|
|
372
|
-
// For Image components, look for img elements with the tachui-image class
|
|
373
|
-
if (child.id.startsWith('image-')) {
|
|
374
|
-
const images = container.querySelectorAll('img.tachui-image')
|
|
375
|
-
// Since we don't have a perfect way to match, we'll use the childIndex as a heuristic
|
|
376
|
-
if (images[childIndex]) {
|
|
377
|
-
return [images[childIndex]]
|
|
378
|
-
}
|
|
379
|
-
// Fallback: return all images and let the component handle it
|
|
380
|
-
return Array.from(images)
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
// For Button components, look for button elements with the tachui-button class
|
|
384
|
-
if (child.id.startsWith('button-')) {
|
|
385
|
-
const buttons = container.querySelectorAll('button.tachui-button')
|
|
386
|
-
if (buttons[childIndex]) {
|
|
387
|
-
return [buttons[childIndex]]
|
|
388
|
-
}
|
|
389
|
-
// Fallback: return all buttons and let the component handle it
|
|
390
|
-
return Array.from(buttons)
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
// For Text components, look for span elements with the tachui-text class
|
|
394
|
-
if (child.id.startsWith('text-')) {
|
|
395
|
-
const textElements = container.querySelectorAll('span.tachui-text, .tachui-text')
|
|
396
|
-
if (textElements[childIndex]) {
|
|
397
|
-
return [textElements[childIndex]]
|
|
398
|
-
}
|
|
399
|
-
return Array.from(textElements)
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
// For other components, try to find any direct children elements
|
|
403
|
-
// This is a fallback that should work for most components
|
|
404
|
-
const allChildren = Array.from(container.children)
|
|
405
|
-
if (allChildren[childIndex]) {
|
|
406
|
-
return [allChildren[childIndex]]
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
// Final fallback: return all children and let the component handle it
|
|
410
|
-
return allChildren
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
render() {
|
|
414
|
-
const { spacing = 0, debugLabel } = this.layoutProps
|
|
415
|
-
// Explicitly handle alignment to avoid default override
|
|
416
|
-
const alignment = this.layoutProps.alignment !== undefined ? this.layoutProps.alignment : 'center'
|
|
417
|
-
|
|
418
|
-
// Log component for debugging
|
|
419
|
-
const debug = getDebugManager()
|
|
420
|
-
debug.logComponent(this.layoutType.toUpperCase(), debugLabel)
|
|
421
|
-
|
|
422
|
-
// Process CSS classes for this component
|
|
423
|
-
const baseClasses = [`tachui-${this.layoutType}`, ...(debug.isEnabled() ? ['tachui-debug'] : [])]
|
|
424
|
-
const classString = this.createClassString(this.props, baseClasses)
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
switch (this.layoutType) {
|
|
428
|
-
case 'vstack': {
|
|
429
|
-
// Render children normally but also make them available for DOM bridge processing
|
|
430
|
-
const vstackRenderedChildren = this.children.map((child) => {
|
|
431
|
-
const childResult = child.render()
|
|
432
|
-
const resultArray = Array.isArray(childResult) ? childResult : [childResult]
|
|
433
|
-
return resultArray
|
|
434
|
-
})
|
|
435
|
-
const vstackFlattened = vstackRenderedChildren.flat()
|
|
436
|
-
|
|
437
|
-
const element = {
|
|
438
|
-
type: 'element' as const,
|
|
439
|
-
tag: this.effectiveTag,
|
|
440
|
-
props: {
|
|
441
|
-
className: classString,
|
|
442
|
-
style: {
|
|
443
|
-
display: 'flex',
|
|
444
|
-
flexDirection: 'column',
|
|
445
|
-
gap: spacing ? `${spacing}px` : '0',
|
|
446
|
-
alignItems:
|
|
447
|
-
alignment === 'leading'
|
|
448
|
-
? 'flex-start'
|
|
449
|
-
: alignment === 'trailing'
|
|
450
|
-
? 'flex-end'
|
|
451
|
-
: 'center',
|
|
452
|
-
},
|
|
453
|
-
// Add debug attributes
|
|
454
|
-
...(debug.isEnabled() && {
|
|
455
|
-
'data-tachui-component': 'VStack',
|
|
456
|
-
...(debugLabel && { 'data-tachui-label': debugLabel })
|
|
457
|
-
})
|
|
458
|
-
},
|
|
459
|
-
children: vstackFlattened,
|
|
460
|
-
// Add component metadata for semantic role processing
|
|
461
|
-
componentMetadata: {
|
|
462
|
-
originalType: 'VStack',
|
|
463
|
-
overriddenTo: this.effectiveTag !== 'div' ? this.effectiveTag : undefined,
|
|
464
|
-
validationResult: this.validationResult
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
return [element]
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
case 'hstack': {
|
|
472
|
-
const hstackRenderedChildren = this.children.map((child) => {
|
|
473
|
-
const childResult = child.render()
|
|
474
|
-
const resultArray = Array.isArray(childResult) ? childResult : [childResult]
|
|
475
|
-
return resultArray
|
|
476
|
-
})
|
|
477
|
-
const hstackFlattened = hstackRenderedChildren.flat()
|
|
478
|
-
|
|
479
|
-
const element = {
|
|
480
|
-
type: 'element' as const,
|
|
481
|
-
tag: this.effectiveTag,
|
|
482
|
-
props: {
|
|
483
|
-
className: classString,
|
|
484
|
-
style: {
|
|
485
|
-
display: 'flex',
|
|
486
|
-
flexDirection: 'row',
|
|
487
|
-
gap: spacing ? `${spacing}px` : '0',
|
|
488
|
-
alignItems:
|
|
489
|
-
alignment === 'top'
|
|
490
|
-
? 'flex-start'
|
|
491
|
-
: alignment === 'bottom'
|
|
492
|
-
? 'flex-end'
|
|
493
|
-
: 'center',
|
|
494
|
-
},
|
|
495
|
-
// Add debug attributes
|
|
496
|
-
...(debug.isEnabled() && {
|
|
497
|
-
'data-tachui-component': 'HStack',
|
|
498
|
-
...(debugLabel && { 'data-tachui-label': debugLabel })
|
|
499
|
-
})
|
|
500
|
-
},
|
|
501
|
-
children: hstackFlattened,
|
|
502
|
-
// Add component metadata for semantic role processing
|
|
503
|
-
componentMetadata: {
|
|
504
|
-
originalType: 'HStack',
|
|
505
|
-
overriddenTo: this.effectiveTag !== 'div' ? this.effectiveTag : undefined,
|
|
506
|
-
validationResult: this.validationResult
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
return [element]
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
case 'zstack': {
|
|
514
|
-
// Find the highest layoutPriority child to determine container size
|
|
515
|
-
let maxPriority = -Infinity
|
|
516
|
-
let highestPriorityChild: ComponentInstance | null = null
|
|
517
|
-
|
|
518
|
-
this.children.forEach((child) => {
|
|
519
|
-
if ('modifiers' in child && Array.isArray(child.modifiers)) {
|
|
520
|
-
const layoutMod = child.modifiers.find(
|
|
521
|
-
(m) =>
|
|
522
|
-
m.type === 'layout' &&
|
|
523
|
-
m.properties &&
|
|
524
|
-
'layoutPriority' in m.properties &&
|
|
525
|
-
typeof m.properties.layoutPriority === 'number'
|
|
526
|
-
)
|
|
527
|
-
if (layoutMod) {
|
|
528
|
-
const priority = layoutMod.properties.layoutPriority as number
|
|
529
|
-
if (priority > maxPriority) {
|
|
530
|
-
maxPriority = priority
|
|
531
|
-
highestPriorityChild = child
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
})
|
|
536
|
-
|
|
537
|
-
const container = h('div', {
|
|
538
|
-
className: classString,
|
|
539
|
-
style: {
|
|
540
|
-
position: 'relative',
|
|
541
|
-
display: 'flex',
|
|
542
|
-
justifyContent: alignment.includes('Leading')
|
|
543
|
-
? 'flex-start'
|
|
544
|
-
: alignment.includes('Trailing')
|
|
545
|
-
? 'flex-end'
|
|
546
|
-
: 'center',
|
|
547
|
-
alignItems: alignment.includes('top')
|
|
548
|
-
? 'flex-start'
|
|
549
|
-
: alignment.includes('bottom')
|
|
550
|
-
? 'flex-end'
|
|
551
|
-
: 'center',
|
|
552
|
-
// Container sizes to the highest priority child
|
|
553
|
-
...(highestPriorityChild
|
|
554
|
-
? {
|
|
555
|
-
minWidth: 'fit-content',
|
|
556
|
-
minHeight: 'fit-content',
|
|
557
|
-
}
|
|
558
|
-
: {}),
|
|
559
|
-
},
|
|
560
|
-
// Add debug attributes
|
|
561
|
-
...(debug.isEnabled() && {
|
|
562
|
-
'data-tachui-component': 'ZStack',
|
|
563
|
-
...(debugLabel && { 'data-tachui-label': debugLabel })
|
|
564
|
-
})
|
|
565
|
-
})
|
|
566
|
-
|
|
567
|
-
// Apply absolute positioning to children for z-stack
|
|
568
|
-
const renderedChildren = this.children.flatMap((child, index) => {
|
|
569
|
-
const childNodes = child.render()
|
|
570
|
-
const nodeArray = Array.isArray(childNodes) ? childNodes : [childNodes]
|
|
571
|
-
|
|
572
|
-
// Get layoutPriority from child's modifiers
|
|
573
|
-
let childPriority = index // Default to index-based z-index
|
|
574
|
-
if ('modifiers' in child && Array.isArray(child.modifiers)) {
|
|
575
|
-
const layoutMod = child.modifiers.find(
|
|
576
|
-
(m) => m.type === 'layout' && m.properties && 'layoutPriority' in m.properties
|
|
577
|
-
)
|
|
578
|
-
if (layoutMod && typeof layoutMod.properties.layoutPriority === 'number') {
|
|
579
|
-
childPriority = layoutMod.properties.layoutPriority
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
return nodeArray.map((node) => {
|
|
584
|
-
if (node.type === 'element') {
|
|
585
|
-
const isHighestPriority = child === highestPriorityChild
|
|
586
|
-
return {
|
|
587
|
-
...node,
|
|
588
|
-
props: {
|
|
589
|
-
...node.props,
|
|
590
|
-
style: {
|
|
591
|
-
...node.props?.style,
|
|
592
|
-
// Highest priority child determines container size
|
|
593
|
-
...(isHighestPriority
|
|
594
|
-
? {
|
|
595
|
-
position: 'relative',
|
|
596
|
-
zIndex: childPriority,
|
|
597
|
-
}
|
|
598
|
-
: {
|
|
599
|
-
position: 'absolute',
|
|
600
|
-
top: 0,
|
|
601
|
-
left: 0,
|
|
602
|
-
right: 0,
|
|
603
|
-
bottom: 0,
|
|
604
|
-
zIndex: childPriority,
|
|
605
|
-
}),
|
|
606
|
-
},
|
|
607
|
-
},
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
return node
|
|
611
|
-
})
|
|
612
|
-
})
|
|
613
|
-
|
|
614
|
-
return [
|
|
615
|
-
{
|
|
616
|
-
type: 'element' as const,
|
|
617
|
-
tag: this.effectiveTag,
|
|
618
|
-
props: {
|
|
619
|
-
...container.props,
|
|
620
|
-
className: classString
|
|
621
|
-
},
|
|
622
|
-
children: renderedChildren,
|
|
623
|
-
// Add component metadata for semantic role processing
|
|
624
|
-
componentMetadata: {
|
|
625
|
-
originalType: 'ZStack',
|
|
626
|
-
overriddenTo: this.effectiveTag !== 'div' ? this.effectiveTag : undefined,
|
|
627
|
-
validationResult: this.validationResult
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
]
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
default:
|
|
634
|
-
return [
|
|
635
|
-
{
|
|
636
|
-
type: 'element' as const,
|
|
637
|
-
tag: 'div',
|
|
638
|
-
props: {},
|
|
639
|
-
children: [],
|
|
640
|
-
},
|
|
641
|
-
]
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
/**
|
|
647
|
-
* Layout container components with modifier support
|
|
648
|
-
*/
|
|
649
|
-
export const Layout = {
|
|
650
|
-
/**
|
|
651
|
-
* Vertical stack container (flexbox column)
|
|
652
|
-
*/
|
|
653
|
-
VStack: (
|
|
654
|
-
props: {
|
|
655
|
-
children?: ComponentInstance[]
|
|
656
|
-
spacing?: number
|
|
657
|
-
alignment?: 'leading' | 'center' | 'trailing'
|
|
658
|
-
} = {}
|
|
659
|
-
) => {
|
|
660
|
-
const { children = [], spacing = 0, alignment = 'center' } = props
|
|
661
|
-
const component = new LayoutComponent(props, 'vstack', children, { spacing, alignment })
|
|
662
|
-
return withModifiers(component)
|
|
663
|
-
},
|
|
664
|
-
|
|
665
|
-
/**
|
|
666
|
-
* Horizontal stack container (flexbox row)
|
|
667
|
-
*/
|
|
668
|
-
HStack: (
|
|
669
|
-
props: {
|
|
670
|
-
children?: ComponentInstance[]
|
|
671
|
-
spacing?: number
|
|
672
|
-
alignment?: 'top' | 'center' | 'bottom'
|
|
673
|
-
} = {}
|
|
674
|
-
) => {
|
|
675
|
-
const { children = [], spacing = 0, alignment = 'center' } = props
|
|
676
|
-
const component = new LayoutComponent(props, 'hstack', children, { spacing, alignment })
|
|
677
|
-
return withModifiers(component)
|
|
678
|
-
},
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* Z-index stack container (absolute positioning)
|
|
682
|
-
*/
|
|
683
|
-
ZStack: (
|
|
684
|
-
props: {
|
|
685
|
-
children?: ComponentInstance[]
|
|
686
|
-
alignment?:
|
|
687
|
-
| 'topLeading'
|
|
688
|
-
| 'top'
|
|
689
|
-
| 'topTrailing'
|
|
690
|
-
| 'leading'
|
|
691
|
-
| 'center'
|
|
692
|
-
| 'trailing'
|
|
693
|
-
| 'bottomLeading'
|
|
694
|
-
| 'bottom'
|
|
695
|
-
| 'bottomTrailing'
|
|
696
|
-
} = {}
|
|
697
|
-
) => {
|
|
698
|
-
const { children = [], alignment = 'center' } = props
|
|
699
|
-
const component = new LayoutComponent(props, 'zstack', children, { alignment })
|
|
700
|
-
return withModifiers(component)
|
|
701
|
-
},
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
* SwiftUI-aligned direct exports for layout components
|
|
706
|
-
* These provide the same functionality as Layout.VStack, Layout.HStack, Layout.ZStack
|
|
707
|
-
* but with direct component names for better SwiftUI syntax alignment
|
|
708
|
-
*/
|
|
709
|
-
export function VStack(
|
|
710
|
-
props: {
|
|
711
|
-
children?: ComponentInstance[]
|
|
712
|
-
spacing?: number
|
|
713
|
-
alignment?: 'leading' | 'center' | 'trailing'
|
|
714
|
-
debugLabel?: string
|
|
715
|
-
element?: string
|
|
716
|
-
} = {}
|
|
717
|
-
) {
|
|
718
|
-
const { children = [], spacing = 0, debugLabel } = props
|
|
719
|
-
// Explicitly handle alignment to avoid default override
|
|
720
|
-
const alignment = props.alignment !== undefined ? props.alignment : 'center'
|
|
721
|
-
const component = new LayoutComponent(props, 'vstack', children, { spacing, alignment, debugLabel })
|
|
722
|
-
return withModifiers(component)
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
export function HStack(
|
|
726
|
-
props: {
|
|
727
|
-
children?: ComponentInstance[]
|
|
728
|
-
spacing?: number
|
|
729
|
-
alignment?: 'top' | 'center' | 'bottom'
|
|
730
|
-
debugLabel?: string
|
|
731
|
-
element?: string
|
|
732
|
-
} = {}
|
|
733
|
-
) {
|
|
734
|
-
const { children = [], spacing = 0, debugLabel } = props
|
|
735
|
-
// Explicitly handle alignment to avoid default override
|
|
736
|
-
const alignment = props.alignment !== undefined ? props.alignment : 'center'
|
|
737
|
-
const component = new LayoutComponent(props, 'hstack', children, { spacing, alignment, debugLabel })
|
|
738
|
-
return withModifiers(component)
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
export function ZStack(
|
|
742
|
-
props: {
|
|
743
|
-
children?: ComponentInstance[]
|
|
744
|
-
alignment?:
|
|
745
|
-
| 'topLeading'
|
|
746
|
-
| 'top'
|
|
747
|
-
| 'topTrailing'
|
|
748
|
-
| 'leading'
|
|
749
|
-
| 'center'
|
|
750
|
-
| 'trailing'
|
|
751
|
-
| 'bottomLeading'
|
|
752
|
-
| 'bottom'
|
|
753
|
-
| 'bottomTrailing'
|
|
754
|
-
element?: string
|
|
755
|
-
} = {}
|
|
756
|
-
) {
|
|
757
|
-
const { children = [], alignment = 'center' } = props
|
|
758
|
-
const component = new LayoutComponent(props, 'zstack', children, { alignment })
|
|
759
|
-
return withModifiers(component)
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
/**
|
|
763
|
-
* Simple Text component with modifier support
|
|
764
|
-
*/
|
|
765
|
-
export function Text(content: string | (() => string)) {
|
|
766
|
-
const component = new ElementComponent(
|
|
767
|
-
{ content },
|
|
768
|
-
'span',
|
|
769
|
-
typeof content === 'function' ? content() : content
|
|
770
|
-
)
|
|
771
|
-
return withModifiers(component)
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* Utility to wrap any component with modifier support
|
|
776
|
-
*/
|
|
777
|
-
export function wrapComponent<P extends ComponentProps>(
|
|
778
|
-
component: ComponentInstance<P>
|
|
779
|
-
): ModifiableComponent<P> & { modifier: ModifierBuilder<ModifiableComponent<P>> } {
|
|
780
|
-
return withModifiers(component)
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
/**
|
|
784
|
-
* Higher-order component wrapper
|
|
785
|
-
*/
|
|
786
|
-
export function withModifierSupport<P extends ComponentProps>(
|
|
787
|
-
ComponentClass: new (props: P) => ComponentInstance<P>
|
|
788
|
-
) {
|
|
789
|
-
return class extends ComponentClass {
|
|
790
|
-
public _modifiableComponent?: ModifiableComponent<P>
|
|
791
|
-
|
|
792
|
-
constructor(props: P) {
|
|
793
|
-
super(props)
|
|
794
|
-
this._modifiableComponent = withModifiers(this)
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
get modifier(): ModifierBuilder<ModifiableComponent<P>> {
|
|
798
|
-
return createModifierBuilder(this._modifiableComponent!)
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
get modifiers() {
|
|
802
|
-
return this._modifiableComponent!.modifiers
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
/**
|
|
808
|
-
* Factory function for creating modifiable components
|
|
809
|
-
*/
|
|
810
|
-
export function createModifiableComponentFactory<P extends ComponentProps>(
|
|
811
|
-
renderFn: (props: P) => DOMNode | DOMNode[]
|
|
812
|
-
) {
|
|
813
|
-
return (props: P) => {
|
|
814
|
-
// Create a simple component instance that uses the render function
|
|
815
|
-
const component: ComponentInstance<P> = {
|
|
816
|
-
type: 'component' as const,
|
|
817
|
-
id: `factory-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
818
|
-
props,
|
|
819
|
-
mounted: false,
|
|
820
|
-
cleanup: [],
|
|
821
|
-
render() {
|
|
822
|
-
const result = renderFn(props)
|
|
823
|
-
return Array.isArray(result) ? result : [result]
|
|
824
|
-
},
|
|
825
|
-
}
|
|
826
|
-
return withModifiers(component)
|
|
827
|
-
}
|
|
828
|
-
}
|