@tachui/core 0.7.0-alpha1 → 0.8.0-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/bundles/common.d.ts +1 -1
- package/dist/bundles/common.d.ts.map +1 -1
- package/dist/bundles/minimal.d.ts +17 -5
- package/dist/bundles/minimal.d.ts.map +1 -1
- package/dist/bundles/production-minimal.d.ts +2 -16
- package/dist/bundles/production-minimal.d.ts.map +1 -1
- package/dist/common.js +402 -955
- package/dist/compiler/advanced-parser.d.ts.map +1 -1
- package/dist/compiler/index.js +1392 -10
- package/dist/component-XAzF1xqs.js +487 -0
- package/dist/component-base-x2XmHFjy.js +255 -0
- package/dist/components/index.d.ts +4 -38
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +7 -102
- package/dist/components/wrapper.d.ts +5 -152
- package/dist/components/wrapper.d.ts.map +1 -1
- package/dist/concatenated-component-ByPl3_FF.js +2933 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/layout.d.ts +47 -4
- package/dist/constants/layout.d.ts.map +1 -1
- package/dist/constants/layout.js +52 -14
- package/dist/css-classes/index.js +176 -0
- package/dist/dom-bridge-CAa1N2zX.js +406 -0
- package/dist/effect-B9Knft0b.js +66 -0
- package/dist/essential.js +394 -953
- package/dist/index-DCPJFUm9.js +1407 -0
- package/dist/index-DIvMCJQO.js +268 -0
- package/dist/index-vdsiw6gQ.js +777 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +394 -953
- package/dist/minimal-prod.js +107 -190
- package/dist/minimal.js +115 -955
- package/dist/modifiers/background.d.ts +41 -11
- package/dist/modifiers/background.d.ts.map +1 -1
- package/dist/modifiers/base.d.ts +6 -33
- package/dist/modifiers/base.d.ts.map +1 -1
- package/dist/modifiers/base.js +275 -533
- package/dist/modifiers/builder.d.ts +103 -195
- package/dist/modifiers/builder.d.ts.map +1 -1
- package/dist/modifiers/builder.js +7 -928
- package/dist/modifiers/core.d.ts +9 -401
- package/dist/modifiers/core.d.ts.map +1 -1
- package/dist/modifiers/{utils.d.ts → factories.d.ts} +18 -5
- package/dist/modifiers/factories.d.ts.map +1 -0
- package/dist/modifiers/index.d.ts +8 -52
- package/dist/modifiers/index.d.ts.map +1 -1
- package/dist/modifiers/index.js +38 -0
- package/dist/modifiers/presets.d.ts +368 -0
- package/dist/modifiers/presets.d.ts.map +1 -0
- package/dist/modifiers/registry.js +8 -161
- package/dist/modifiers/types.d.ts +39 -211
- package/dist/modifiers/types.d.ts.map +1 -1
- package/dist/modifiers/types.js +0 -1
- package/dist/performance-optimizer-stub-CtfXUwl4.js +38 -0
- package/dist/plugins/index.d.ts +5 -6
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +393 -32
- package/dist/plugins/simplified-index.d.ts +5 -6
- package/dist/plugins/simplified-index.d.ts.map +1 -1
- package/dist/production-minimal-BY_gMc-l.js +2532 -0
- package/dist/reactive/index.js +489 -91
- package/dist/reactive/types.js +0 -1
- package/dist/runtime/dom-bridge.js +12 -239
- package/dist/runtime/element-override.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +0 -7
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/renderer.d.ts.map +1 -1
- package/dist/runtime/renderer.js +7 -388
- package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
- package/dist/runtime/types.js +1 -0
- package/dist/scheduler-BKeqwrYE.js +814 -0
- package/dist/validation/build-time-stub.d.ts +33 -0
- package/dist/validation/build-time-stub.d.ts.map +1 -0
- package/dist/validation/debug-tools-stub.d.ts +67 -0
- package/dist/validation/debug-tools-stub.d.ts.map +1 -0
- package/dist/validation/index.d.ts +23 -78
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +788 -233
- package/dist/validation/lifecycle-validation.d.ts.map +1 -1
- package/dist/validation/performance-optimizer-stub.d.ts +50 -0
- package/dist/validation/performance-optimizer-stub.d.ts.map +1 -0
- package/dist/validation/plugin-registration.d.ts +5 -1
- package/dist/validation/plugin-registration.d.ts.map +1 -1
- package/dist/validation/production-bypass-core.d.ts +69 -0
- package/dist/validation/production-bypass-core.d.ts.map +1 -0
- package/package.json +43 -8
- 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.d.ts +0 -116
- package/dist/components/BasicInput.d.ts.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.d.ts +0 -252
- package/dist/components/Button.d.ts.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.d.ts +0 -141
- package/dist/components/Divider.d.ts.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.d.ts +0 -365
- package/dist/components/EnhancedLink.d.ts.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.d.ts +0 -141
- package/dist/components/Form.d.ts.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.d.ts +0 -698
- package/dist/components/Grid.d.ts.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.d.ts +0 -214
- package/dist/components/GridResponsive.d.ts.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.d.ts +0 -162
- package/dist/components/Image.d.ts.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.d.ts +0 -287
- package/dist/components/List.d.ts.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.d.ts +0 -159
- package/dist/components/Menu.d.ts.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.d.ts +0 -153
- package/dist/components/Picker.d.ts.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.d.ts +0 -222
- package/dist/components/ScrollView.d.ts.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.d.ts +0 -153
- package/dist/components/Section.d.ts.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.d.ts +0 -64
- package/dist/components/Show.d.ts.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.d.ts +0 -35
- package/dist/components/Spacer.d.ts.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.d.ts +0 -242
- package/dist/components/Text.d.ts.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.d.ts +0 -207
- package/dist/components/Toggle.d.ts.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.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/index.d.ts +0 -61
- package/dist/debug/index.d.ts.map +0 -1
- package/dist/debug.cjs +0 -52
- package/dist/debug.cjs.map +0 -1
- package/dist/debug.js +0 -179
- package/dist/debug.js.map +0 -1
- package/dist/developer-experience/enhanced-errors.d.ts +0 -128
- package/dist/developer-experience/enhanced-errors.d.ts.map +0 -1
- package/dist/developer-experience/enhanced-types.d.ts +0 -281
- package/dist/developer-experience/enhanced-types.d.ts.map +0 -1
- package/dist/developer-experience/index.d.ts +0 -44
- package/dist/developer-experience/index.d.ts.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.d.ts +0 -203
- package/dist/modifiers/attributes.d.ts.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.d.ts +0 -59
- package/dist/modifiers/backdrop.d.ts.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.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.d.ts +0 -217
- package/dist/modifiers/border.d.ts.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.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.d.ts +0 -159
- package/dist/modifiers/effects.d.ts.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.d.ts +0 -240
- package/dist/modifiers/elements.d.ts.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.d.ts +0 -275
- package/dist/modifiers/filters.d.ts.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.d.ts +0 -82
- package/dist/modifiers/flexbox.d.ts.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.d.ts +0 -71
- package/dist/modifiers/font.d.ts.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.d.ts +0 -92
- package/dist/modifiers/grid.d.ts.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.d.ts +0 -128
- package/dist/modifiers/margin.d.ts.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.d.ts +0 -204
- package/dist/modifiers/padding.d.ts.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.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.d.ts +0 -118
- package/dist/modifiers/responsive/advanced-utilities.d.ts.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.d.ts +0 -81
- package/dist/modifiers/responsive/breakpoints.d.ts.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.d.ts +0 -100
- package/dist/modifiers/responsive/css-generator.d.ts.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.d.ts +0 -107
- package/dist/modifiers/responsive/dev-tools.d.ts.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/index.d.ts +0 -28
- package/dist/modifiers/responsive/index.d.ts.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.d.ts +0 -230
- package/dist/modifiers/responsive/layout-patterns.d.ts.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.d.ts +0 -130
- package/dist/modifiers/responsive/performance.d.ts.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.d.ts +0 -133
- package/dist/modifiers/responsive/responsive-builder.d.ts.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.d.ts +0 -123
- package/dist/modifiers/responsive/responsive-modifier.d.ts.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.d.ts +0 -183
- package/dist/modifiers/responsive/types.d.ts.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.d.ts +0 -149
- package/dist/modifiers/responsive/utilities.d.ts.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.d.ts +0 -143
- package/dist/modifiers/scroll.d.ts.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.d.ts +0 -114
- package/dist/modifiers/shadows.d.ts.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.d.ts +0 -113
- package/dist/modifiers/size.d.ts.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.d.ts +0 -147
- package/dist/modifiers/text.d.ts.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.d.ts +0 -329
- package/dist/modifiers/transformations.d.ts.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.d.ts +0 -98
- package/dist/modifiers/transitions.d.ts.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.map +0 -1
- package/dist/modifiers/typography.cjs +0 -2
- package/dist/modifiers/typography.cjs.map +0 -1
- package/dist/modifiers/typography.d.ts +0 -192
- package/dist/modifiers/typography.d.ts.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.d.ts +0 -69
- package/dist/modifiers/utility.d.ts.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.d.ts.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.d.ts +0 -83
- package/dist/plugins/simplified-error-handler.d.ts.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.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 +0 -289
- 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.d.ts +0 -240
- package/dist/runtime/dev-tools.d.ts.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.d.ts +0 -42
- package/dist/runtime/development-warnings.d.ts.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.d.ts +0 -302
- package/dist/runtime/error-boundary.d.ts.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.d.ts +0 -267
- package/dist/runtime/error-recovery.d.ts.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.d.ts +0 -287
- package/dist/runtime/error-reporting.d.ts.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.d.ts +0 -204
- package/dist/runtime/error-utils.d.ts.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.d.ts +0 -217
- package/dist/runtime/performance.d.ts.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.d.ts +0 -110
- package/dist/sui-compat.d.ts.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.d.ts +0 -319
- package/dist/validation/advanced-debugging.d.ts.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.d.ts +0 -32
- package/dist/validation/build-time/detection.d.ts.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.d.ts +0 -84
- package/dist/validation/build-time/index.d.ts.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.d.ts +0 -75
- package/dist/validation/build-time/plugins.d.ts.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.d.ts +0 -73
- package/dist/validation/build-time/rules.d.ts.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.d.ts +0 -23
- package/dist/validation/build-time/transformer.d.ts.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/build-time/types.d.ts +0 -212
- package/dist/validation/build-time/types.d.ts.map +0 -1
- package/dist/validation/comprehensive.cjs +0 -9
- package/dist/validation/comprehensive.cjs.map +0 -1
- package/dist/validation/comprehensive.d.ts +0 -160
- package/dist/validation/comprehensive.d.ts.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.d.ts +0 -251
- package/dist/validation/debug-tools.d.ts.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.d.ts +0 -243
- package/dist/validation/developer-experience.d.ts.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.d.ts +0 -269
- package/dist/validation/documentation-integration.d.ts.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.d.ts +0 -279
- package/dist/validation/enhanced-runtime.d.ts.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.d.ts +0 -186
- package/dist/validation/error-reporting.d.ts.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.d.ts +0 -328
- package/dist/validation/ide-integration.d.ts.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.d.ts +0 -218
- package/dist/validation/performance-optimizer.d.ts.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.d.ts +0 -175
- package/dist/validation/production-bypass.d.ts.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.d.ts +0 -111
- package/dist/validation/simple.d.ts.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.d.ts +0 -227
- package/dist/viewport/adapters/web-adapter.d.ts.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.d.ts +0 -131
- package/dist/viewport/components.d.ts.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.d.ts +0 -75
- package/dist/viewport/environment.d.ts.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.d.ts +0 -138
- package/dist/viewport/index.d.ts.map +0 -1
- package/dist/viewport/index.js +0 -166
- 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.d.ts +0 -59
- package/dist/viewport/platform-detection.d.ts.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.d.ts +0 -301
- package/dist/viewport/types.d.ts.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.d.ts +0 -118
- package/dist/viewport/viewport-manager.d.ts.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
|
@@ -0,0 +1,1407 @@
|
|
|
1
|
+
import { infinity as c } from "./constants/layout.js";
|
|
2
|
+
import { LayoutModifier as d } from "./modifiers/base.js";
|
|
3
|
+
import { C as y, u as U } from "./concatenated-component-ByPl3_FF.js";
|
|
4
|
+
import { a as D, j as R, R as B, L as W, v as H } from "./production-minimal-BY_gMc-l.js";
|
|
5
|
+
import { G as I, W as z } from "./scheduler-BKeqwrYE.js";
|
|
6
|
+
import { c as A } from "./effect-B9Knft0b.js";
|
|
7
|
+
import { d as S, g as L, p as F, c as q } from "./dom-bridge-CAa1N2zX.js";
|
|
8
|
+
import "./component-XAzF1xqs.js";
|
|
9
|
+
import "./index-vdsiw6gQ.js";
|
|
10
|
+
import "./component-base-x2XmHFjy.js";
|
|
11
|
+
import "./plugins/index.js";
|
|
12
|
+
import "./validation/index.js";
|
|
13
|
+
function Pe() {
|
|
14
|
+
return new d({
|
|
15
|
+
frame: {
|
|
16
|
+
maxWidth: c
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function De() {
|
|
21
|
+
return new d({
|
|
22
|
+
frame: {
|
|
23
|
+
maxHeight: c
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function Ie() {
|
|
28
|
+
return new d({
|
|
29
|
+
frame: {
|
|
30
|
+
maxWidth: c,
|
|
31
|
+
maxHeight: c
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function ze() {
|
|
36
|
+
return new d({
|
|
37
|
+
frame: {
|
|
38
|
+
width: c,
|
|
39
|
+
height: c
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function Ae(n) {
|
|
44
|
+
return new d({
|
|
45
|
+
frame: {
|
|
46
|
+
width: n,
|
|
47
|
+
maxHeight: c
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function $e(n) {
|
|
52
|
+
return new d({
|
|
53
|
+
frame: {
|
|
54
|
+
height: n,
|
|
55
|
+
maxWidth: c
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function ke(n, e) {
|
|
60
|
+
return new d({
|
|
61
|
+
frame: {
|
|
62
|
+
width: c,
|
|
63
|
+
height: c,
|
|
64
|
+
maxWidth: n,
|
|
65
|
+
maxHeight: e
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function Ge(n, e, t, r) {
|
|
70
|
+
return new d({
|
|
71
|
+
frame: {
|
|
72
|
+
width: c,
|
|
73
|
+
height: c,
|
|
74
|
+
minWidth: n,
|
|
75
|
+
maxWidth: e,
|
|
76
|
+
minHeight: t,
|
|
77
|
+
maxHeight: r
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function Ue() {
|
|
82
|
+
return new d({
|
|
83
|
+
frame: {
|
|
84
|
+
maxWidth: c,
|
|
85
|
+
maxHeight: c
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function Re() {
|
|
90
|
+
return new d({
|
|
91
|
+
frame: {
|
|
92
|
+
width: "100vw",
|
|
93
|
+
height: "100vh"
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function Be() {
|
|
98
|
+
return new d({
|
|
99
|
+
frame: {
|
|
100
|
+
width: c,
|
|
101
|
+
height: c
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function We() {
|
|
106
|
+
return new d({
|
|
107
|
+
frame: {
|
|
108
|
+
width: c
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
const He = Symbol.for("tachui.concat");
|
|
113
|
+
function Le(n) {
|
|
114
|
+
return n && typeof n == "object" && typeof n.isConcatenatable == "function" && n.isConcatenatable();
|
|
115
|
+
}
|
|
116
|
+
function Fe(n) {
|
|
117
|
+
return n && typeof n == "object" && n.constructor.name === "ConcatenatedComponent";
|
|
118
|
+
}
|
|
119
|
+
const qe = Symbol.for("tachui.concat");
|
|
120
|
+
class Ke {
|
|
121
|
+
/**
|
|
122
|
+
* Concatenate this component with another concatenatable component
|
|
123
|
+
*/
|
|
124
|
+
concat(e) {
|
|
125
|
+
const t = this.toSegment(), r = e.toSegment();
|
|
126
|
+
return e instanceof y ? new y(
|
|
127
|
+
[t, ...e.segments],
|
|
128
|
+
this.mergeMetadata(e.metadata, e.segments.length + 1)
|
|
129
|
+
) : new y(
|
|
130
|
+
[t, r],
|
|
131
|
+
this.createMetadata(2)
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Check if this component supports concatenation
|
|
136
|
+
*/
|
|
137
|
+
isConcatenatable() {
|
|
138
|
+
return !0;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Create metadata for a new concatenated component
|
|
142
|
+
*/
|
|
143
|
+
createMetadata(e) {
|
|
144
|
+
return {
|
|
145
|
+
totalSegments: e,
|
|
146
|
+
accessibilityRole: this.determineAccessibilityRole(),
|
|
147
|
+
semanticStructure: this.determineSemanticStructure()
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Merge metadata when concatenating with existing concatenated component
|
|
152
|
+
*/
|
|
153
|
+
mergeMetadata(e, t) {
|
|
154
|
+
return {
|
|
155
|
+
totalSegments: t,
|
|
156
|
+
accessibilityRole: this.mergeAccessibilityRoles(e.accessibilityRole),
|
|
157
|
+
semanticStructure: this.mergeSemanticStructures(e.semanticStructure)
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Determine the accessibility role for this component
|
|
162
|
+
*/
|
|
163
|
+
determineAccessibilityRole() {
|
|
164
|
+
const e = this.constructor.name;
|
|
165
|
+
return e === "EnhancedText" ? "text" : e === "EnhancedImage" || e === "EnhancedButton" || e === "EnhancedLink" ? "group" : "composite";
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Determine the semantic structure for this component
|
|
169
|
+
*/
|
|
170
|
+
determineSemanticStructure() {
|
|
171
|
+
const e = this.constructor.name;
|
|
172
|
+
return e === "EnhancedText" || e === "EnhancedImage" ? "inline" : "mixed";
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Merge accessibility roles when combining components
|
|
176
|
+
*/
|
|
177
|
+
mergeAccessibilityRoles(e) {
|
|
178
|
+
const t = this.determineAccessibilityRole();
|
|
179
|
+
return t === "text" && e === "text" ? "text" : t === "composite" || e === "composite" ? "composite" : "group";
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Merge semantic structures when combining components
|
|
183
|
+
*/
|
|
184
|
+
mergeSemanticStructures(e) {
|
|
185
|
+
const t = this.determineSemanticStructure();
|
|
186
|
+
return t === "inline" && e === "inline" ? "inline" : t === "block" && e === "block" ? "block" : "mixed";
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
function Je(n) {
|
|
190
|
+
const e = n;
|
|
191
|
+
return e.concat = function(t) {
|
|
192
|
+
const r = {
|
|
193
|
+
id: this.id,
|
|
194
|
+
component: this,
|
|
195
|
+
modifiers: this.modifiers || [],
|
|
196
|
+
render: () => {
|
|
197
|
+
const s = this.render();
|
|
198
|
+
return Array.isArray(s) ? s[0] : s;
|
|
199
|
+
}
|
|
200
|
+
}, i = t.toSegment();
|
|
201
|
+
return t instanceof y ? new y(
|
|
202
|
+
[r, ...t.segments],
|
|
203
|
+
{
|
|
204
|
+
totalSegments: t.segments.length + 1,
|
|
205
|
+
accessibilityRole: "group",
|
|
206
|
+
semanticStructure: "mixed"
|
|
207
|
+
}
|
|
208
|
+
) : new y(
|
|
209
|
+
[r, i],
|
|
210
|
+
{
|
|
211
|
+
totalSegments: 2,
|
|
212
|
+
accessibilityRole: "group",
|
|
213
|
+
semanticStructure: "mixed"
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
}, e.toSegment = function() {
|
|
217
|
+
return {
|
|
218
|
+
id: this.id,
|
|
219
|
+
component: this,
|
|
220
|
+
modifiers: this.modifiers || [],
|
|
221
|
+
render: () => {
|
|
222
|
+
const t = this.render();
|
|
223
|
+
return Array.isArray(t) ? t[0] : t;
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
}, e.isConcatenatable = function() {
|
|
227
|
+
return !0;
|
|
228
|
+
}, e;
|
|
229
|
+
}
|
|
230
|
+
const h = /* @__PURE__ */ new Map(), K = 300 * 1e3, T = 100;
|
|
231
|
+
class Xe {
|
|
232
|
+
/**
|
|
233
|
+
* Optimize an array of segments by merging compatible adjacent text segments
|
|
234
|
+
* Enhanced with caching and performance monitoring
|
|
235
|
+
*/
|
|
236
|
+
static optimize(e) {
|
|
237
|
+
const t = performance.now();
|
|
238
|
+
if (e.length < 2) return e;
|
|
239
|
+
const r = this.generateCacheKey(e), i = this.getCachedOptimization(r);
|
|
240
|
+
if (i)
|
|
241
|
+
return i.optimizedSegments;
|
|
242
|
+
const s = this.performOptimization(e), a = performance.now() - t, o = {
|
|
243
|
+
...this.getOptimizationStats(e, s),
|
|
244
|
+
processingTimeMs: a
|
|
245
|
+
};
|
|
246
|
+
return this.cacheOptimization(r, s, o), process.env.NODE_ENV === "development" && a > 5 && console.log(`TachUI Concatenation: Optimization took ${a.toFixed(2)}ms for ${e.length} segments`), s;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Core optimization algorithm separated for clarity
|
|
250
|
+
*/
|
|
251
|
+
static performOptimization(e) {
|
|
252
|
+
const t = [];
|
|
253
|
+
for (const r of e) {
|
|
254
|
+
const i = t[t.length - 1];
|
|
255
|
+
i && this.canMergeTextSegments(i, r) ? t[t.length - 1] = this.mergeTextSegments(i, r) : t.push(r);
|
|
256
|
+
}
|
|
257
|
+
return t;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Generate a cache key from segments
|
|
261
|
+
*/
|
|
262
|
+
static generateCacheKey(e) {
|
|
263
|
+
return e.map((r) => {
|
|
264
|
+
const i = r.component, s = this.extractTextContent(i), a = this.hashModifiers(r.modifiers);
|
|
265
|
+
return `${i.constructor.name}:${s}:${a}`;
|
|
266
|
+
}).join("|");
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Hash modifiers for cache key generation
|
|
270
|
+
*/
|
|
271
|
+
static hashModifiers(e) {
|
|
272
|
+
if (e.length === 0) return "none";
|
|
273
|
+
try {
|
|
274
|
+
const t = e.map((i) => ({
|
|
275
|
+
type: i.type,
|
|
276
|
+
props: i.properties
|
|
277
|
+
})), r = JSON.stringify(t);
|
|
278
|
+
return typeof btoa == "function" ? btoa(r).substring(0, 8) : this.simpleHash(r).toString(16).substring(0, 8);
|
|
279
|
+
} catch {
|
|
280
|
+
return "hash-error";
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Simple hash function fallback for environments without btoa
|
|
285
|
+
*/
|
|
286
|
+
static simpleHash(e) {
|
|
287
|
+
let t = 0;
|
|
288
|
+
for (let r = 0; r < e.length; r++) {
|
|
289
|
+
const i = e.charCodeAt(r);
|
|
290
|
+
t = (t << 5) - t + i, t = t & t;
|
|
291
|
+
}
|
|
292
|
+
return Math.abs(t);
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Get cached optimization result
|
|
296
|
+
*/
|
|
297
|
+
static getCachedOptimization(e) {
|
|
298
|
+
const t = h.get(e);
|
|
299
|
+
return t ? Date.now() - t.timestamp > K ? (h.delete(e), null) : t : null;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Cache optimization result
|
|
303
|
+
*/
|
|
304
|
+
static cacheOptimization(e, t, r) {
|
|
305
|
+
if (h.size >= T) {
|
|
306
|
+
const i = h.keys().next().value;
|
|
307
|
+
i && h.delete(i);
|
|
308
|
+
}
|
|
309
|
+
h.set(e, {
|
|
310
|
+
optimizedSegments: t,
|
|
311
|
+
stats: r,
|
|
312
|
+
timestamp: Date.now()
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Clear optimization cache (useful for testing)
|
|
317
|
+
*/
|
|
318
|
+
static clearCache() {
|
|
319
|
+
h.clear();
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Get cache statistics
|
|
323
|
+
*/
|
|
324
|
+
static getCacheStats() {
|
|
325
|
+
return {
|
|
326
|
+
size: h.size,
|
|
327
|
+
maxSize: T,
|
|
328
|
+
hitRate: 0
|
|
329
|
+
// Would need to track hits/misses to calculate this
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Check if two segments can be merged
|
|
334
|
+
*/
|
|
335
|
+
static canMergeTextSegments(e, t) {
|
|
336
|
+
return e.component.constructor.name !== "EnhancedText" || t.component.constructor.name !== "EnhancedText" ? !1 : this.modifiersCompatible(e.modifiers, t.modifiers);
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Check if two modifier arrays are compatible for merging
|
|
340
|
+
*/
|
|
341
|
+
static modifiersCompatible(e, t) {
|
|
342
|
+
if (e.length !== t.length) return !1;
|
|
343
|
+
for (let r = 0; r < e.length; r++)
|
|
344
|
+
if (!this.modifierEqual(e[r], t[r]))
|
|
345
|
+
return !1;
|
|
346
|
+
return !0;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Check if two modifiers are equal (simplified comparison)
|
|
350
|
+
*/
|
|
351
|
+
static modifierEqual(e, t) {
|
|
352
|
+
if (e.type !== t.type) return !1;
|
|
353
|
+
try {
|
|
354
|
+
return JSON.stringify(e.properties) === JSON.stringify(t.properties);
|
|
355
|
+
} catch {
|
|
356
|
+
return !1;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Merge two text segments into a single segment
|
|
361
|
+
*/
|
|
362
|
+
static mergeTextSegments(e, t) {
|
|
363
|
+
const r = e.component, i = t.component, s = this.extractTextContent(r), a = this.extractTextContent(i), o = s + a;
|
|
364
|
+
return {
|
|
365
|
+
id: `merged-${e.id}-${t.id}`,
|
|
366
|
+
component: this.createMergedTextComponent(o, r.props, e.modifiers),
|
|
367
|
+
modifiers: e.modifiers,
|
|
368
|
+
// Use modifiers from first segment (they're identical)
|
|
369
|
+
render: () => this.createMergedTextComponent(o, r.props, e.modifiers).render()[0]
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Extract text content from a text component
|
|
374
|
+
*/
|
|
375
|
+
static extractTextContent(e) {
|
|
376
|
+
const t = e.props?.content;
|
|
377
|
+
return typeof t == "string" ? t : typeof t == "function" ? t() : t && typeof t == "object" && "peek" in t && t.peek() || "";
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Create a new merged text component
|
|
381
|
+
*/
|
|
382
|
+
static createMergedTextComponent(e, t, r) {
|
|
383
|
+
const i = {
|
|
384
|
+
...t,
|
|
385
|
+
content: e
|
|
386
|
+
};
|
|
387
|
+
return {
|
|
388
|
+
type: "Text",
|
|
389
|
+
id: `merged-text-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
390
|
+
props: i,
|
|
391
|
+
mounted: !1,
|
|
392
|
+
cleanup: [],
|
|
393
|
+
modifiers: r,
|
|
394
|
+
render() {
|
|
395
|
+
const s = globalThis.__tachui_runtime;
|
|
396
|
+
if (s && s.h && s.text) {
|
|
397
|
+
const a = s.text(e);
|
|
398
|
+
return [s.h("span", {}, [a])];
|
|
399
|
+
}
|
|
400
|
+
return [];
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Analyze segments and determine if optimization would be beneficial
|
|
406
|
+
*/
|
|
407
|
+
static shouldOptimize(e) {
|
|
408
|
+
if (e.length < 2) return !1;
|
|
409
|
+
let t = 0;
|
|
410
|
+
for (let r = 0; r < e.length - 1; r++) {
|
|
411
|
+
const i = e[r], s = e[r + 1];
|
|
412
|
+
i.component.constructor.name === "EnhancedText" && s.component.constructor.name === "EnhancedText" && t++;
|
|
413
|
+
}
|
|
414
|
+
return t > 0;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Get optimization statistics (enhanced for Phase 4.1)
|
|
418
|
+
*/
|
|
419
|
+
static getOptimizationStats(e, t) {
|
|
420
|
+
const r = e.length - t.length, i = e.length > 0 ? Math.round(r / e.length * 100) : 0;
|
|
421
|
+
return {
|
|
422
|
+
originalCount: e.length,
|
|
423
|
+
optimizedCount: t.length,
|
|
424
|
+
reductionPercent: i,
|
|
425
|
+
textSegmentsMerged: r
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Advanced optimization analysis for performance monitoring
|
|
430
|
+
*/
|
|
431
|
+
static analyzeOptimizationOpportunities(e) {
|
|
432
|
+
let t = 0, r = 0, i = 0, s = 0;
|
|
433
|
+
for (let o = 0; o < e.length; o++) {
|
|
434
|
+
const u = e[o];
|
|
435
|
+
switch (u.component.constructor.name) {
|
|
436
|
+
case "EnhancedText":
|
|
437
|
+
if (t++, o < e.length - 1) {
|
|
438
|
+
const b = e[o + 1];
|
|
439
|
+
this.canMergeTextSegments(u, b) && s++;
|
|
440
|
+
}
|
|
441
|
+
break;
|
|
442
|
+
case "EnhancedImage":
|
|
443
|
+
r++;
|
|
444
|
+
break;
|
|
445
|
+
case "EnhancedButton":
|
|
446
|
+
case "EnhancedLinkComponent":
|
|
447
|
+
i++;
|
|
448
|
+
break;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
const a = e.length > 0 ? Math.round(s / e.length * 100) : 0;
|
|
452
|
+
return {
|
|
453
|
+
totalSegments: e.length,
|
|
454
|
+
textSegments: t,
|
|
455
|
+
imageSegments: r,
|
|
456
|
+
interactiveSegments: i,
|
|
457
|
+
optimizableTextPairs: s,
|
|
458
|
+
estimatedReductionPercent: a
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
class Ye {
|
|
463
|
+
// Placeholder implementation
|
|
464
|
+
}
|
|
465
|
+
function Ze() {
|
|
466
|
+
}
|
|
467
|
+
function Qe() {
|
|
468
|
+
}
|
|
469
|
+
function et() {
|
|
470
|
+
}
|
|
471
|
+
function tt() {
|
|
472
|
+
}
|
|
473
|
+
class J extends D {
|
|
474
|
+
constructor(e, t) {
|
|
475
|
+
super(e), this.definitions = t;
|
|
476
|
+
}
|
|
477
|
+
resolve() {
|
|
478
|
+
const e = this.getCurrentTheme(), t = this.definitions[e] || this.definitions.light;
|
|
479
|
+
return U(t);
|
|
480
|
+
}
|
|
481
|
+
getCurrentTheme() {
|
|
482
|
+
return typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
function nt(n) {
|
|
486
|
+
return new J("gradient-asset", n);
|
|
487
|
+
}
|
|
488
|
+
var X = Object.defineProperty, Y = (n, e, t) => e in n ? X(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, j = (n, e, t) => Y(n, typeof e != "symbol" ? e + "" : e, t);
|
|
489
|
+
class E extends D {
|
|
490
|
+
constructor(e, t, r) {
|
|
491
|
+
super(e), this.reactiveDefinition = t, j(this, "currentGradient"), j(this, "subscriptions", []), j(this, "updateCallback"), this.updateCallback = r, this.currentGradient = this.resolveStaticGradient(), this.setupSignalSubscriptions();
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Resolve current gradient to CSS
|
|
495
|
+
*/
|
|
496
|
+
resolve() {
|
|
497
|
+
return this.gradientToCSS(this.currentGradient);
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* Get current static gradient (resolved from signals)
|
|
501
|
+
*/
|
|
502
|
+
getCurrentGradient() {
|
|
503
|
+
return this.currentGradient;
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Update the reactive definition and re-subscribe to signals
|
|
507
|
+
*/
|
|
508
|
+
updateDefinition(e) {
|
|
509
|
+
this.cleanup(), this.reactiveDefinition = e, this.currentGradient = this.resolveStaticGradient(), this.setupSignalSubscriptions(), this.notifyUpdate();
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Clean up signal subscriptions
|
|
513
|
+
*/
|
|
514
|
+
cleanup() {
|
|
515
|
+
this.subscriptions.forEach((e) => e()), this.subscriptions = [];
|
|
516
|
+
}
|
|
517
|
+
resolveStaticGradient() {
|
|
518
|
+
const { type: e, options: t } = this.reactiveDefinition;
|
|
519
|
+
switch (e) {
|
|
520
|
+
case "linear":
|
|
521
|
+
return W(this.resolveLinearOptions(t));
|
|
522
|
+
case "radial":
|
|
523
|
+
return B(this.resolveRadialOptions(t));
|
|
524
|
+
case "angular":
|
|
525
|
+
case "conic":
|
|
526
|
+
return R(this.resolveAngularOptions(t));
|
|
527
|
+
default:
|
|
528
|
+
throw new Error(`Unsupported reactive gradient type: ${e}`);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
resolveLinearOptions(e) {
|
|
532
|
+
return {
|
|
533
|
+
colors: e.colors.map((t) => this.resolveValue(t)),
|
|
534
|
+
stops: e.stops?.map((t) => this.resolveValue(t)),
|
|
535
|
+
startPoint: this.resolveValue(e.startPoint),
|
|
536
|
+
endPoint: this.resolveValue(e.endPoint),
|
|
537
|
+
angle: e.angle ? this.resolveValue(e.angle) : void 0
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
resolveRadialOptions(e) {
|
|
541
|
+
return {
|
|
542
|
+
colors: e.colors.map((t) => this.resolveValue(t)),
|
|
543
|
+
stops: e.stops?.map((t) => this.resolveValue(t)),
|
|
544
|
+
center: this.resolveValue(e.center),
|
|
545
|
+
startRadius: this.resolveValue(e.startRadius),
|
|
546
|
+
endRadius: this.resolveValue(e.endRadius),
|
|
547
|
+
shape: e.shape ? this.resolveValue(e.shape) : void 0
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
resolveAngularOptions(e) {
|
|
551
|
+
return {
|
|
552
|
+
colors: e.colors.map((t) => this.resolveValue(t)),
|
|
553
|
+
stops: e.stops?.map((t) => this.resolveValue(t)),
|
|
554
|
+
center: this.resolveValue(e.center),
|
|
555
|
+
startAngle: this.resolveValue(e.startAngle),
|
|
556
|
+
endAngle: this.resolveValue(e.endAngle)
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
resolveValue(e) {
|
|
560
|
+
return this.isSignal(e) ? e.value : e;
|
|
561
|
+
}
|
|
562
|
+
isSignal(e) {
|
|
563
|
+
return e !== null && typeof e == "object" && "value" in e && "subscribe" in e;
|
|
564
|
+
}
|
|
565
|
+
setupSignalSubscriptions() {
|
|
566
|
+
this.subscribeToSignalsInOptions(this.reactiveDefinition.options);
|
|
567
|
+
}
|
|
568
|
+
subscribeToSignalsInOptions(e) {
|
|
569
|
+
for (const [t, r] of Object.entries(e))
|
|
570
|
+
if (Array.isArray(r))
|
|
571
|
+
r.forEach((i) => {
|
|
572
|
+
if (this.isSignal(i)) {
|
|
573
|
+
const s = i.subscribe(() => this.handleSignalChange());
|
|
574
|
+
this.subscriptions.push(s);
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
else if (this.isSignal(r)) {
|
|
578
|
+
const i = r.subscribe(() => this.handleSignalChange());
|
|
579
|
+
this.subscriptions.push(i);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
handleSignalChange() {
|
|
583
|
+
this.currentGradient = this.resolveStaticGradient(), this.notifyUpdate();
|
|
584
|
+
}
|
|
585
|
+
notifyUpdate() {
|
|
586
|
+
this.updateCallback && this.updateCallback();
|
|
587
|
+
}
|
|
588
|
+
gradientToCSS(e) {
|
|
589
|
+
const { gradientToCSS: t } = require("./css-generator");
|
|
590
|
+
return t(e);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
class l extends H {
|
|
594
|
+
constructor(e, t, r) {
|
|
595
|
+
const i = l.resolveStateOptions(t);
|
|
596
|
+
super(e, i), this.reactiveStateGradients = t, this.updateCallback = r, j(this, "reactiveSubscriptions", []), this.setupStateSignalSubscriptions();
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* Update reactive state configuration
|
|
600
|
+
*/
|
|
601
|
+
updateReactiveState(e) {
|
|
602
|
+
this.cleanupStateSubscriptions(), this.reactiveStateGradients = e;
|
|
603
|
+
const t = l.resolveStateOptions(e);
|
|
604
|
+
this.updateStateGradients(t), this.setupStateSignalSubscriptions(), this.notifyStateUpdate();
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* Clean up signal subscriptions
|
|
608
|
+
*/
|
|
609
|
+
cleanupStateSubscriptions() {
|
|
610
|
+
this.reactiveSubscriptions.forEach((e) => e()), this.reactiveSubscriptions = [];
|
|
611
|
+
}
|
|
612
|
+
static resolveStateOptions(e) {
|
|
613
|
+
const t = {
|
|
614
|
+
default: l.resolveValue(e.default),
|
|
615
|
+
animation: e.animation
|
|
616
|
+
};
|
|
617
|
+
return e.hover && (t.hover = l.resolveValue(e.hover)), e.active && (t.active = l.resolveValue(e.active)), e.focus && (t.focus = l.resolveValue(e.focus)), e.disabled && (t.disabled = l.resolveValue(e.disabled)), t;
|
|
618
|
+
}
|
|
619
|
+
static resolveValue(e) {
|
|
620
|
+
return e !== null && typeof e == "object" && "value" in e && "subscribe" in e ? e.value : e;
|
|
621
|
+
}
|
|
622
|
+
static isSignal(e) {
|
|
623
|
+
return e !== null && typeof e == "object" && "value" in e && "subscribe" in e;
|
|
624
|
+
}
|
|
625
|
+
setupStateSignalSubscriptions() {
|
|
626
|
+
Object.entries(this.reactiveStateGradients).forEach(([e, t]) => {
|
|
627
|
+
if (e !== "animation" && l.isSignal(t)) {
|
|
628
|
+
const r = t.subscribe(() => this.handleStateSignalChange());
|
|
629
|
+
this.reactiveSubscriptions.push(r);
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
handleStateSignalChange() {
|
|
634
|
+
const e = l.resolveStateOptions(this.reactiveStateGradients);
|
|
635
|
+
this.updateStateGradients(e), this.notifyStateUpdate();
|
|
636
|
+
}
|
|
637
|
+
notifyStateUpdate() {
|
|
638
|
+
this.updateCallback && this.updateCallback();
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
const V = {
|
|
642
|
+
/**
|
|
643
|
+
* Create a reactive linear gradient
|
|
644
|
+
*/
|
|
645
|
+
linear: (n, e) => new E(
|
|
646
|
+
"reactive-linear",
|
|
647
|
+
{ type: "linear", options: n, __reactive: !0 },
|
|
648
|
+
e
|
|
649
|
+
),
|
|
650
|
+
/**
|
|
651
|
+
* Create a reactive radial gradient
|
|
652
|
+
*/
|
|
653
|
+
radial: (n, e) => new E(
|
|
654
|
+
"reactive-radial",
|
|
655
|
+
{ type: "radial", options: n, __reactive: !0 },
|
|
656
|
+
e
|
|
657
|
+
),
|
|
658
|
+
/**
|
|
659
|
+
* Create a reactive angular gradient
|
|
660
|
+
*/
|
|
661
|
+
angular: (n, e) => new E(
|
|
662
|
+
"reactive-angular",
|
|
663
|
+
{ type: "angular", options: n, __reactive: !0 },
|
|
664
|
+
e
|
|
665
|
+
),
|
|
666
|
+
/**
|
|
667
|
+
* Create a reactive state gradient
|
|
668
|
+
*/
|
|
669
|
+
state: (n, e, t) => new l(n, e, t)
|
|
670
|
+
}, rt = {
|
|
671
|
+
/**
|
|
672
|
+
* Create an animated gradient that cycles through colors
|
|
673
|
+
*/
|
|
674
|
+
createAnimatedGradient: (n, e = 3e3) => {
|
|
675
|
+
const t = {
|
|
676
|
+
value: n[0],
|
|
677
|
+
subscribe: (r) => () => {
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
return V.linear({
|
|
681
|
+
colors: [t, n[1]],
|
|
682
|
+
startPoint: "top",
|
|
683
|
+
endPoint: "bottom"
|
|
684
|
+
});
|
|
685
|
+
},
|
|
686
|
+
/**
|
|
687
|
+
* Create a progress gradient that fills based on a signal
|
|
688
|
+
*/
|
|
689
|
+
createProgressGradient: (n, e = "#007AFF") => V.linear({
|
|
690
|
+
colors: [e, "transparent"],
|
|
691
|
+
stops: [n, n],
|
|
692
|
+
// Both stops use the same signal
|
|
693
|
+
startPoint: "leading",
|
|
694
|
+
endPoint: "trailing"
|
|
695
|
+
}),
|
|
696
|
+
/**
|
|
697
|
+
* Create a data-driven gradient that reflects numeric values
|
|
698
|
+
*/
|
|
699
|
+
createDataGradient: (n, e, t, r = ["#ff0000", "#ffff00", "#00ff00"]) => V.linear({
|
|
700
|
+
colors: r,
|
|
701
|
+
startPoint: "top",
|
|
702
|
+
endPoint: "bottom"
|
|
703
|
+
})
|
|
704
|
+
}, it = {
|
|
705
|
+
/**
|
|
706
|
+
* Check if a background value is reactive
|
|
707
|
+
*/
|
|
708
|
+
isReactiveBackground: (n) => n instanceof E || n instanceof l,
|
|
709
|
+
/**
|
|
710
|
+
* Create a reactive background from a signal
|
|
711
|
+
*/
|
|
712
|
+
fromSignal: (n) => V.state("signal-background", {
|
|
713
|
+
default: n
|
|
714
|
+
})
|
|
715
|
+
};
|
|
716
|
+
function M(n, e = {}) {
|
|
717
|
+
const { fallback: t, errorFallback: r, timeout: i = 1e4, preload: s = "never" } = e;
|
|
718
|
+
let a = !1, o = null, u = !1, m = null, b = null;
|
|
719
|
+
const O = async () => {
|
|
720
|
+
a || u || o || b || (a = !0, u = !0, m = null, b = (async () => {
|
|
721
|
+
try {
|
|
722
|
+
const f = await Promise.race([
|
|
723
|
+
n(),
|
|
724
|
+
new Promise(
|
|
725
|
+
(_, x) => setTimeout(() => x(new Error("Component load timeout")), i)
|
|
726
|
+
)
|
|
727
|
+
]);
|
|
728
|
+
o = "default" in f ? f.default : f;
|
|
729
|
+
} catch (f) {
|
|
730
|
+
const _ = f;
|
|
731
|
+
(typeof process > "u" || process.env.NODE_ENV !== "test") && console.error("Failed to load lazy component:", _), m = _;
|
|
732
|
+
} finally {
|
|
733
|
+
u = !1, b = null;
|
|
734
|
+
}
|
|
735
|
+
})(), await b);
|
|
736
|
+
};
|
|
737
|
+
return s === "idle" && typeof requestIdleCallback < "u" ? requestIdleCallback(() => {
|
|
738
|
+
O().catch(() => {
|
|
739
|
+
});
|
|
740
|
+
}) : s === "idle" ? setTimeout(() => {
|
|
741
|
+
O().catch(() => {
|
|
742
|
+
});
|
|
743
|
+
}, 100) : s === "immediate" && O().catch(() => {
|
|
744
|
+
}), (f) => {
|
|
745
|
+
if (!a && !u && !o && O().catch(() => {
|
|
746
|
+
}), m)
|
|
747
|
+
return r ? r(m) : N(m);
|
|
748
|
+
if (u || !o)
|
|
749
|
+
return t || Q();
|
|
750
|
+
try {
|
|
751
|
+
return typeof o == "function" ? o(f) : o;
|
|
752
|
+
} catch (_) {
|
|
753
|
+
const x = _;
|
|
754
|
+
return (typeof process > "u" || process.env.NODE_ENV !== "test") && console.error("Error rendering lazy component:", x), N(x);
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
function st(n) {
|
|
759
|
+
return {
|
|
760
|
+
type: "component",
|
|
761
|
+
render: () => ({
|
|
762
|
+
type: "element",
|
|
763
|
+
tag: "div",
|
|
764
|
+
props: { class: "tachui-suspense" },
|
|
765
|
+
children: n.children.map(() => ({
|
|
766
|
+
type: "element",
|
|
767
|
+
tag: "div",
|
|
768
|
+
children: []
|
|
769
|
+
}))
|
|
770
|
+
}),
|
|
771
|
+
props: n,
|
|
772
|
+
id: `suspense-${Math.random().toString(36).substr(2, 9)}`
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
function Z(n) {
|
|
776
|
+
return n().then((e) => e && typeof e == "object" && "default" in e ? e.default : e);
|
|
777
|
+
}
|
|
778
|
+
function at(n, e = {}) {
|
|
779
|
+
const t = {};
|
|
780
|
+
for (const [r, i] of Object.entries(n))
|
|
781
|
+
t[r] = M(i, e);
|
|
782
|
+
return t;
|
|
783
|
+
}
|
|
784
|
+
function ot(n) {
|
|
785
|
+
const e = Object.entries(n).map(
|
|
786
|
+
async ([t, r]) => [t, await Z(r)]
|
|
787
|
+
);
|
|
788
|
+
return Promise.all(e).then((t) => {
|
|
789
|
+
const r = {};
|
|
790
|
+
for (const [i, s] of t)
|
|
791
|
+
r[i] = s;
|
|
792
|
+
return r;
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
function Q() {
|
|
796
|
+
return {
|
|
797
|
+
type: "element",
|
|
798
|
+
tag: "div",
|
|
799
|
+
props: {
|
|
800
|
+
class: "tachui-lazy-loading",
|
|
801
|
+
style: "padding: 16px; color: #666; text-align: center;"
|
|
802
|
+
},
|
|
803
|
+
children: [
|
|
804
|
+
{
|
|
805
|
+
type: "text",
|
|
806
|
+
text: "Loading component..."
|
|
807
|
+
}
|
|
808
|
+
]
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
function N(n) {
|
|
812
|
+
return {
|
|
813
|
+
type: "element",
|
|
814
|
+
tag: "div",
|
|
815
|
+
props: {
|
|
816
|
+
class: "tachui-lazy-error",
|
|
817
|
+
style: "padding: 16px; color: #d32f2f; border: 1px solid #d32f2f; border-radius: 4px; background: #ffeaea;"
|
|
818
|
+
},
|
|
819
|
+
children: [
|
|
820
|
+
{
|
|
821
|
+
type: "text",
|
|
822
|
+
text: `Failed to load component: ${n.message}`
|
|
823
|
+
}
|
|
824
|
+
]
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
function ct(n, e = {}) {
|
|
828
|
+
const { rootMargin: t = "50px", threshold: r = 0.1, ...i } = e;
|
|
829
|
+
return i.preload === "visible" && typeof IntersectionObserver < "u" ? (s) => {
|
|
830
|
+
const a = M(n, { ...i, preload: "never" });
|
|
831
|
+
return setTimeout(() => {
|
|
832
|
+
a(s);
|
|
833
|
+
}, 100), a(s);
|
|
834
|
+
} : M(n, i);
|
|
835
|
+
}
|
|
836
|
+
var ee = Object.defineProperty, te = (n, e, t) => e in n ? ee(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, g = (n, e, t) => te(n, typeof e != "symbol" ? e + "" : e, t);
|
|
837
|
+
class ne {
|
|
838
|
+
constructor(e) {
|
|
839
|
+
g(this, "_signal"), g(this, "_setter"), g(this, "_subscribers", /* @__PURE__ */ new Set());
|
|
840
|
+
const [t, r] = I(e);
|
|
841
|
+
this._signal = t, this._setter = r;
|
|
842
|
+
}
|
|
843
|
+
get value() {
|
|
844
|
+
return this._signal();
|
|
845
|
+
}
|
|
846
|
+
set value(e) {
|
|
847
|
+
this._setter(e), this.notifySubscribers();
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* Update a property of the environment object
|
|
851
|
+
*/
|
|
852
|
+
updateProperty(e, t) {
|
|
853
|
+
const i = { ...this._signal(), [e]: t };
|
|
854
|
+
this._setter(i), this.notifySubscribers();
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* Subscribe to changes
|
|
858
|
+
*/
|
|
859
|
+
subscribe(e) {
|
|
860
|
+
return this._subscribers.add(e), () => this._subscribers.delete(e);
|
|
861
|
+
}
|
|
862
|
+
notifySubscribers() {
|
|
863
|
+
for (const e of this._subscribers)
|
|
864
|
+
try {
|
|
865
|
+
e();
|
|
866
|
+
} catch (t) {
|
|
867
|
+
console.error("Error in environment object subscriber:", t);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* Create a reactive effect that runs when this object changes
|
|
872
|
+
*/
|
|
873
|
+
onChange(e) {
|
|
874
|
+
const t = A(() => {
|
|
875
|
+
e(this._signal());
|
|
876
|
+
});
|
|
877
|
+
return () => t.dispose();
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
class $ {
|
|
881
|
+
constructor(e, t) {
|
|
882
|
+
g(this, "key"), g(this, "componentContext"), g(this, "_cachedValue"), g(this, "_subscriptionCleanup"), this.key = e, this.componentContext = t, t.onCleanup(() => {
|
|
883
|
+
this._subscriptionCleanup && this._subscriptionCleanup();
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
get wrappedValue() {
|
|
887
|
+
if (this._cachedValue === void 0 && (this._cachedValue = q(this.key), this._cachedValue && typeof this._cachedValue == "object" && "subscribe" in this._cachedValue)) {
|
|
888
|
+
const e = this._cachedValue;
|
|
889
|
+
typeof e.subscribe == "function" && (this._subscriptionCleanup = e.subscribe(() => {
|
|
890
|
+
this.componentContext.setState(`_env_${this.key.name}_trigger`, Date.now());
|
|
891
|
+
}));
|
|
892
|
+
}
|
|
893
|
+
return this._cachedValue;
|
|
894
|
+
}
|
|
895
|
+
get projectedValue() {
|
|
896
|
+
return this;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
function re(n) {
|
|
900
|
+
const e = L();
|
|
901
|
+
return new $(n, e);
|
|
902
|
+
}
|
|
903
|
+
function ie(n, e) {
|
|
904
|
+
F(n, e);
|
|
905
|
+
}
|
|
906
|
+
function ut(n, e) {
|
|
907
|
+
return new ne(e);
|
|
908
|
+
}
|
|
909
|
+
function lt(n) {
|
|
910
|
+
return n && typeof n == "object" && "wrappedValue" in n && "key" in n && "componentContext" in n && n instanceof $;
|
|
911
|
+
}
|
|
912
|
+
const dt = {
|
|
913
|
+
/**
|
|
914
|
+
* Application theme
|
|
915
|
+
*/
|
|
916
|
+
Theme: S("Theme", {
|
|
917
|
+
mode: "light",
|
|
918
|
+
primaryColor: "#007AFF",
|
|
919
|
+
secondaryColor: "#5856D6"
|
|
920
|
+
}),
|
|
921
|
+
/**
|
|
922
|
+
* Localization service
|
|
923
|
+
*/
|
|
924
|
+
Localization: S("Localization"),
|
|
925
|
+
/**
|
|
926
|
+
* Navigation service
|
|
927
|
+
*/
|
|
928
|
+
Navigation: S("Navigation"),
|
|
929
|
+
/**
|
|
930
|
+
* Application configuration
|
|
931
|
+
*/
|
|
932
|
+
Config: S("Config"),
|
|
933
|
+
/**
|
|
934
|
+
* User authentication
|
|
935
|
+
*/
|
|
936
|
+
Auth: S("Auth")
|
|
937
|
+
};
|
|
938
|
+
var se = Object.defineProperty, ae = (n, e, t) => e in n ? se(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, C = (n, e, t) => ae(n, typeof e != "symbol" ? e + "" : e, t);
|
|
939
|
+
class k {
|
|
940
|
+
constructor() {
|
|
941
|
+
C(this, "_objectWillChange"), C(this, "_notifyCount", 0);
|
|
942
|
+
const [e, t] = I(void 0);
|
|
943
|
+
this._objectWillChange = {
|
|
944
|
+
getValue: e,
|
|
945
|
+
peek: e
|
|
946
|
+
}, this._notifySetter = t;
|
|
947
|
+
}
|
|
948
|
+
get objectWillChange() {
|
|
949
|
+
return this._objectWillChange;
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* Notify observers that the object has changed
|
|
953
|
+
* Call this method whenever properties of the object change
|
|
954
|
+
*/
|
|
955
|
+
notifyChange() {
|
|
956
|
+
this._notifyCount++;
|
|
957
|
+
const e = this._notifySetter;
|
|
958
|
+
e && e(void 0);
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Get the current notification count (for debugging)
|
|
962
|
+
*/
|
|
963
|
+
get notificationCount() {
|
|
964
|
+
return this._notifyCount;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
class oe {
|
|
968
|
+
constructor(e, t, r, i = {}) {
|
|
969
|
+
C(this, "_object"), C(this, "_metadata"), C(this, "_effectCleanup"), this._object = e, this._metadata = {
|
|
970
|
+
type: "ObservedObject",
|
|
971
|
+
propertyName: r,
|
|
972
|
+
componentId: t.id,
|
|
973
|
+
options: i
|
|
974
|
+
}, this.setupObservation();
|
|
975
|
+
const s = z();
|
|
976
|
+
s && s.cleanups.push(() => {
|
|
977
|
+
this.cleanup();
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
get wrappedValue() {
|
|
981
|
+
return this._object;
|
|
982
|
+
}
|
|
983
|
+
get projectedValue() {
|
|
984
|
+
return this;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Get property wrapper metadata
|
|
988
|
+
*/
|
|
989
|
+
get metadata() {
|
|
990
|
+
return this._metadata;
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
* Set up reactive observation of the object
|
|
994
|
+
*/
|
|
995
|
+
setupObservation() {
|
|
996
|
+
const e = A(() => {
|
|
997
|
+
this._object.objectWillChange();
|
|
998
|
+
});
|
|
999
|
+
this._effectCleanup = () => e.dispose();
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Cleanup observation
|
|
1003
|
+
*/
|
|
1004
|
+
cleanup() {
|
|
1005
|
+
this._effectCleanup && (this._effectCleanup(), this._effectCleanup = void 0);
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Replace the observed object (advanced usage)
|
|
1009
|
+
*/
|
|
1010
|
+
updateObject(e) {
|
|
1011
|
+
this.cleanup(), this._object = e, this.setupObservation();
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
const ce = (n, e = {}) => {
|
|
1015
|
+
const t = le(), r = de() || "observedObject";
|
|
1016
|
+
return new oe(n, t, r, e);
|
|
1017
|
+
};
|
|
1018
|
+
function ue(n, e = {}) {
|
|
1019
|
+
const t = new k();
|
|
1020
|
+
return new Proxy(n, {
|
|
1021
|
+
set(i, s, a) {
|
|
1022
|
+
const o = i[s], u = Reflect.set(i, s, a);
|
|
1023
|
+
return u && o !== a && e.autoNotify !== !1 && t.notifyChange(), u;
|
|
1024
|
+
},
|
|
1025
|
+
get(i, s) {
|
|
1026
|
+
return s === "objectWillChange" ? t.objectWillChange : s === "notifyChange" ? () => t.notifyChange() : s === "notificationCount" ? t.notificationCount : Reflect.get(i, s);
|
|
1027
|
+
}
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
function ht(n = {}) {
|
|
1031
|
+
return (e) => class extends e {
|
|
1032
|
+
constructor(...t) {
|
|
1033
|
+
super(...t), C(this, "_observableBase", new k()), n.autoNotify !== !1 && this.setupAutoNotification();
|
|
1034
|
+
}
|
|
1035
|
+
get objectWillChange() {
|
|
1036
|
+
return this._observableBase.objectWillChange;
|
|
1037
|
+
}
|
|
1038
|
+
get notificationCount() {
|
|
1039
|
+
return this._observableBase.notificationCount;
|
|
1040
|
+
}
|
|
1041
|
+
notifyChange() {
|
|
1042
|
+
this._observableBase.notifyChange();
|
|
1043
|
+
}
|
|
1044
|
+
setupAutoNotification() {
|
|
1045
|
+
const t = Object.getOwnPropertyNames(this);
|
|
1046
|
+
for (const r of t) {
|
|
1047
|
+
if (r.startsWith("_") || typeof this[r] == "function")
|
|
1048
|
+
continue;
|
|
1049
|
+
let i = this[r];
|
|
1050
|
+
Object.defineProperty(this, r, {
|
|
1051
|
+
get: () => i,
|
|
1052
|
+
set: (s) => {
|
|
1053
|
+
i !== s && (i = s, this.notifyChange());
|
|
1054
|
+
},
|
|
1055
|
+
enumerable: !0,
|
|
1056
|
+
configurable: !0
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
function le() {
|
|
1063
|
+
const n = z();
|
|
1064
|
+
if (!n?.context.has(P))
|
|
1065
|
+
throw new Error("@ObservedObject can only be used within a component context");
|
|
1066
|
+
return n.context.get(P);
|
|
1067
|
+
}
|
|
1068
|
+
function de() {
|
|
1069
|
+
try {
|
|
1070
|
+
const n = new Error().stack;
|
|
1071
|
+
if (n)
|
|
1072
|
+
return n.match(/at (\w+)\./)?.[1] || null;
|
|
1073
|
+
} catch {
|
|
1074
|
+
}
|
|
1075
|
+
return null;
|
|
1076
|
+
}
|
|
1077
|
+
const P = Symbol("TachUI.ComponentContext");
|
|
1078
|
+
function he(n) {
|
|
1079
|
+
return n && typeof n == "object" && "objectWillChange" in n && "notifyChange" in n;
|
|
1080
|
+
}
|
|
1081
|
+
function pt(n) {
|
|
1082
|
+
return n && typeof n == "object" && "wrappedValue" in n && "projectedValue" in n && he(n.wrappedValue);
|
|
1083
|
+
}
|
|
1084
|
+
function ft(n, e = {}) {
|
|
1085
|
+
return ue({ ...n }, e);
|
|
1086
|
+
}
|
|
1087
|
+
const gt = ce;
|
|
1088
|
+
var pe = Object.defineProperty, fe = (n, e, t) => e in n ? pe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, p = (n, e, t) => fe(n, typeof e != "symbol" ? e + "" : e, t);
|
|
1089
|
+
class ge {
|
|
1090
|
+
constructor(e) {
|
|
1091
|
+
this.componentContext = e, p(this, "states", /* @__PURE__ */ new Map()), p(this, "bindings", /* @__PURE__ */ new Map()), p(this, "observedObjects", /* @__PURE__ */ new Map()), p(this, "environmentObjects", /* @__PURE__ */ new Map()), p(this, "registry"), this.registry = new me();
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
* Register a @State property wrapper
|
|
1095
|
+
*/
|
|
1096
|
+
registerState(e, t = {}) {
|
|
1097
|
+
const r = e.metadata;
|
|
1098
|
+
if (r) {
|
|
1099
|
+
const i = `${r.componentId}_${r.propertyName}`;
|
|
1100
|
+
this.states.set(i, e), this.registry.register(r), process.env.NODE_ENV === "development" && this.setupStateDebugging(e, r);
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Register a @Binding property wrapper
|
|
1105
|
+
*/
|
|
1106
|
+
registerBinding(e, t = {}) {
|
|
1107
|
+
const r = `${this.componentContext.id}_${t.name || "binding"}_${Date.now()}`;
|
|
1108
|
+
this.bindings.set(r, e);
|
|
1109
|
+
const i = {
|
|
1110
|
+
type: "Binding",
|
|
1111
|
+
propertyName: t.name || "binding",
|
|
1112
|
+
componentId: this.componentContext.id,
|
|
1113
|
+
options: t
|
|
1114
|
+
};
|
|
1115
|
+
this.registry.register(i);
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Register an @ObservedObject property wrapper
|
|
1119
|
+
*/
|
|
1120
|
+
registerObservedObject(e, t = {}) {
|
|
1121
|
+
const r = e.metadata;
|
|
1122
|
+
if (r) {
|
|
1123
|
+
const i = `${r.componentId}_${r.propertyName}`;
|
|
1124
|
+
this.observedObjects.set(i, e), this.registry.register(r), process.env.NODE_ENV === "development" && this.setupObservedObjectDebugging(e, r);
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Register an @EnvironmentObject property wrapper
|
|
1129
|
+
*/
|
|
1130
|
+
registerEnvironmentObject(e, t) {
|
|
1131
|
+
const r = e.metadata;
|
|
1132
|
+
if (r) {
|
|
1133
|
+
const i = `${r.componentId}_${r.propertyName}`;
|
|
1134
|
+
this.environmentObjects.set(i, e), this.registry.register(r);
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Clean up all property wrappers for this component
|
|
1139
|
+
*/
|
|
1140
|
+
cleanup() {
|
|
1141
|
+
this.states.clear(), this.bindings.clear(), this.observedObjects.clear(), this.environmentObjects.clear(), this.registry.cleanup(this.componentContext.id);
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* Get all registered states (for debugging)
|
|
1145
|
+
*/
|
|
1146
|
+
getStates() {
|
|
1147
|
+
return new Map(this.states);
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Get all registered bindings (for debugging)
|
|
1151
|
+
*/
|
|
1152
|
+
getBindings() {
|
|
1153
|
+
return new Map(this.bindings);
|
|
1154
|
+
}
|
|
1155
|
+
/**
|
|
1156
|
+
* Get all registered observed objects (for debugging)
|
|
1157
|
+
*/
|
|
1158
|
+
getObservedObjects() {
|
|
1159
|
+
return new Map(this.observedObjects);
|
|
1160
|
+
}
|
|
1161
|
+
/**
|
|
1162
|
+
* Get all registered environment objects (for debugging)
|
|
1163
|
+
*/
|
|
1164
|
+
getEnvironmentObjects() {
|
|
1165
|
+
return new Map(this.environmentObjects);
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
* Get property wrapper registry
|
|
1169
|
+
*/
|
|
1170
|
+
getRegistry() {
|
|
1171
|
+
return this.registry;
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Set up debugging for @State property wrappers
|
|
1175
|
+
*/
|
|
1176
|
+
setupStateDebugging(e, t) {
|
|
1177
|
+
if (typeof window < "u") {
|
|
1178
|
+
const r = window.__TACHUI_DEBUG__ || {};
|
|
1179
|
+
r.states || (r.states = {}), r.states[`${t.componentId}_${t.propertyName}`] = {
|
|
1180
|
+
state: e,
|
|
1181
|
+
metadata: t,
|
|
1182
|
+
getValue: () => e.wrappedValue,
|
|
1183
|
+
setValue: (i) => {
|
|
1184
|
+
e.projectedValue.set(i);
|
|
1185
|
+
},
|
|
1186
|
+
getBinding: () => e.projectedValue
|
|
1187
|
+
}, window.__TACHUI_DEBUG__ = r;
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
* Set up debugging for @ObservedObject property wrappers
|
|
1192
|
+
*/
|
|
1193
|
+
setupObservedObjectDebugging(e, t) {
|
|
1194
|
+
if (typeof window < "u") {
|
|
1195
|
+
const r = window.__TACHUI_DEBUG__ || {};
|
|
1196
|
+
r.observedObjects || (r.observedObjects = {}), r.observedObjects[`${t.componentId}_${t.propertyName}`] = {
|
|
1197
|
+
observedObject: e,
|
|
1198
|
+
metadata: t,
|
|
1199
|
+
getObject: () => e.wrappedValue,
|
|
1200
|
+
getNotificationCount: () => e.wrappedValue.notificationCount || 0,
|
|
1201
|
+
triggerChange: () => e.wrappedValue.notifyChange()
|
|
1202
|
+
}, window.__TACHUI_DEBUG__ = r;
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
class me {
|
|
1207
|
+
constructor() {
|
|
1208
|
+
p(this, "metadata", /* @__PURE__ */ new Map());
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* Register property wrapper metadata
|
|
1212
|
+
*/
|
|
1213
|
+
register(e) {
|
|
1214
|
+
const t = e.componentId, r = this.metadata.get(t) || [];
|
|
1215
|
+
r.push(e), this.metadata.set(t, r);
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* Unregister a specific property wrapper
|
|
1219
|
+
*/
|
|
1220
|
+
unregister(e, t) {
|
|
1221
|
+
const i = (this.metadata.get(e) || []).filter((s) => s.propertyName !== t);
|
|
1222
|
+
i.length > 0 ? this.metadata.set(e, i) : this.metadata.delete(e);
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
* Clean up all metadata for a component
|
|
1226
|
+
*/
|
|
1227
|
+
cleanup(e) {
|
|
1228
|
+
this.metadata.delete(e);
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* Get all metadata for a component
|
|
1232
|
+
*/
|
|
1233
|
+
getMetadata(e) {
|
|
1234
|
+
return this.metadata.get(e) || [];
|
|
1235
|
+
}
|
|
1236
|
+
/**
|
|
1237
|
+
* Get all registered metadata (for debugging)
|
|
1238
|
+
*/
|
|
1239
|
+
getAllMetadata() {
|
|
1240
|
+
return new Map(this.metadata);
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
function mt(n) {
|
|
1244
|
+
return new ge(n);
|
|
1245
|
+
}
|
|
1246
|
+
const G = class v {
|
|
1247
|
+
constructor() {
|
|
1248
|
+
p(this, "managers", /* @__PURE__ */ new Map());
|
|
1249
|
+
}
|
|
1250
|
+
static getInstance() {
|
|
1251
|
+
return v.instance || (v.instance = new v()), v.instance;
|
|
1252
|
+
}
|
|
1253
|
+
register(e, t) {
|
|
1254
|
+
this.managers.set(e, t);
|
|
1255
|
+
}
|
|
1256
|
+
unregister(e) {
|
|
1257
|
+
this.managers.delete(e);
|
|
1258
|
+
}
|
|
1259
|
+
getManager(e) {
|
|
1260
|
+
return this.managers.get(e);
|
|
1261
|
+
}
|
|
1262
|
+
getAllManagers() {
|
|
1263
|
+
return new Map(this.managers);
|
|
1264
|
+
}
|
|
1265
|
+
/**
|
|
1266
|
+
* Get debugging information for all components
|
|
1267
|
+
*/
|
|
1268
|
+
getDebugInfo() {
|
|
1269
|
+
const e = {};
|
|
1270
|
+
for (const [t, r] of this.managers)
|
|
1271
|
+
e[t] = {
|
|
1272
|
+
states: r.getStates().size,
|
|
1273
|
+
bindings: r.getBindings().size,
|
|
1274
|
+
observedObjects: r.getObservedObjects().size,
|
|
1275
|
+
environmentObjects: r.getEnvironmentObjects().size,
|
|
1276
|
+
metadata: r.getRegistry().getMetadata(t)
|
|
1277
|
+
};
|
|
1278
|
+
return e;
|
|
1279
|
+
}
|
|
1280
|
+
};
|
|
1281
|
+
p(G, "instance");
|
|
1282
|
+
let w = G;
|
|
1283
|
+
function bt(n, e) {
|
|
1284
|
+
w.getInstance().register(n, e);
|
|
1285
|
+
}
|
|
1286
|
+
function yt(n) {
|
|
1287
|
+
w.getInstance().unregister(n);
|
|
1288
|
+
}
|
|
1289
|
+
function be(n) {
|
|
1290
|
+
return w.getInstance().getManager(n);
|
|
1291
|
+
}
|
|
1292
|
+
function ye() {
|
|
1293
|
+
return w.getInstance().getAllManagers();
|
|
1294
|
+
}
|
|
1295
|
+
function Ce() {
|
|
1296
|
+
return w.getInstance().getDebugInfo();
|
|
1297
|
+
}
|
|
1298
|
+
function Ct() {
|
|
1299
|
+
if (typeof window < "u" && process.env.NODE_ENV === "development") {
|
|
1300
|
+
const n = window.__TACHUI_DEBUG__ || {};
|
|
1301
|
+
n.stateManagers = {
|
|
1302
|
+
getAll: ye,
|
|
1303
|
+
getDebugInfo: Ce,
|
|
1304
|
+
getManager: be
|
|
1305
|
+
}, window.__TACHUI_DEBUG__ = n, console.log(
|
|
1306
|
+
"TachUI State Management debugging enabled. Use window.__TACHUI_DEBUG__.stateManagers"
|
|
1307
|
+
);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
const _t = ie;
|
|
1311
|
+
function St(n) {
|
|
1312
|
+
return console.warn("useEnvironmentObject is deprecated, use EnvironmentObject instead"), re(n);
|
|
1313
|
+
}
|
|
1314
|
+
const vt = {
|
|
1315
|
+
/**
|
|
1316
|
+
* Check if a value is any kind of property wrapper
|
|
1317
|
+
*/
|
|
1318
|
+
isPropertyWrapper(n) {
|
|
1319
|
+
return n && typeof n == "object" && "wrappedValue" in n && "projectedValue" in n;
|
|
1320
|
+
},
|
|
1321
|
+
/**
|
|
1322
|
+
* Extract the wrapped value from any property wrapper
|
|
1323
|
+
*/
|
|
1324
|
+
unwrap(n) {
|
|
1325
|
+
return this.isPropertyWrapper(n) ? n.wrappedValue : n;
|
|
1326
|
+
},
|
|
1327
|
+
/**
|
|
1328
|
+
* Create a debug snapshot of all property wrappers in a component
|
|
1329
|
+
*/
|
|
1330
|
+
createDebugSnapshot(n) {
|
|
1331
|
+
if (typeof window < "u") {
|
|
1332
|
+
const e = window.__TACHUI_DEBUG__;
|
|
1333
|
+
if (e)
|
|
1334
|
+
return {
|
|
1335
|
+
states: e.states ? Object.keys(e.states).filter((t) => t.startsWith(n)).reduce((t, r) => (t[r] = e.states[r].getValue(), t), {}) : {},
|
|
1336
|
+
observedObjects: e.observedObjects ? Object.keys(e.observedObjects).filter((t) => t.startsWith(n)).reduce((t, r) => (t[r] = {
|
|
1337
|
+
notificationCount: e.observedObjects[r].getNotificationCount(),
|
|
1338
|
+
object: e.observedObjects[r].getObject()
|
|
1339
|
+
}, t), {}) : {}
|
|
1340
|
+
};
|
|
1341
|
+
}
|
|
1342
|
+
return null;
|
|
1343
|
+
}
|
|
1344
|
+
}, wt = "0.1.0";
|
|
1345
|
+
export {
|
|
1346
|
+
mt as $,
|
|
1347
|
+
it as A,
|
|
1348
|
+
Ze as B,
|
|
1349
|
+
He as C,
|
|
1350
|
+
Qe as D,
|
|
1351
|
+
et as E,
|
|
1352
|
+
tt as F,
|
|
1353
|
+
J as G,
|
|
1354
|
+
_t as H,
|
|
1355
|
+
St as I,
|
|
1356
|
+
vt as J,
|
|
1357
|
+
dt as K,
|
|
1358
|
+
Ye as L,
|
|
1359
|
+
ut as M,
|
|
1360
|
+
re as N,
|
|
1361
|
+
lt as O,
|
|
1362
|
+
ie as P,
|
|
1363
|
+
ft as Q,
|
|
1364
|
+
E as R,
|
|
1365
|
+
st as S,
|
|
1366
|
+
Xe as T,
|
|
1367
|
+
he as U,
|
|
1368
|
+
wt as V,
|
|
1369
|
+
pt as W,
|
|
1370
|
+
ue as X,
|
|
1371
|
+
k as Y,
|
|
1372
|
+
gt as Z,
|
|
1373
|
+
ht as _,
|
|
1374
|
+
Fe as a,
|
|
1375
|
+
ye as a0,
|
|
1376
|
+
be as a1,
|
|
1377
|
+
Ce as a2,
|
|
1378
|
+
Ct as a3,
|
|
1379
|
+
bt as a4,
|
|
1380
|
+
ge as a5,
|
|
1381
|
+
yt as a6,
|
|
1382
|
+
Ke as b,
|
|
1383
|
+
qe as c,
|
|
1384
|
+
De as d,
|
|
1385
|
+
Ie as e,
|
|
1386
|
+
Pe as f,
|
|
1387
|
+
ze as g,
|
|
1388
|
+
Ae as h,
|
|
1389
|
+
Le as i,
|
|
1390
|
+
$e as j,
|
|
1391
|
+
ke as k,
|
|
1392
|
+
Ue as l,
|
|
1393
|
+
Je as m,
|
|
1394
|
+
Re as n,
|
|
1395
|
+
Be as o,
|
|
1396
|
+
We as p,
|
|
1397
|
+
at as q,
|
|
1398
|
+
Ge as r,
|
|
1399
|
+
ct as s,
|
|
1400
|
+
M as t,
|
|
1401
|
+
Z as u,
|
|
1402
|
+
ot as v,
|
|
1403
|
+
nt as w,
|
|
1404
|
+
l as x,
|
|
1405
|
+
V as y,
|
|
1406
|
+
rt as z
|
|
1407
|
+
};
|