@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
package/dist/modifiers/base.js
CHANGED
|
@@ -1,67 +1,62 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "../
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { shouldExpandForInfinity as T, dimensionToCSS as b, isInfinity as S } from "../constants/layout.js";
|
|
10
|
-
var M = Object.defineProperty, P = (g, n, t) => n in g ? M(g, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[n] = t, y = (g, n, t) => P(g, typeof n != "symbol" ? n + "" : n, t);
|
|
11
|
-
class E {
|
|
12
|
-
constructor(n) {
|
|
13
|
-
this.properties = n;
|
|
1
|
+
import { J as p, i as v, M as E } from "../scheduler-BKeqwrYE.js";
|
|
2
|
+
import { c as h } from "../effect-B9Knft0b.js";
|
|
3
|
+
import { ModifierPriority as g } from "./types.js";
|
|
4
|
+
import { shouldExpandForInfinity as L, dimensionToCSS as u, isInfinity as m } from "../constants/layout.js";
|
|
5
|
+
var A = Object.defineProperty, T = (d, i, t) => i in d ? A(d, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[i] = t, l = (d, i, t) => T(d, typeof i != "symbol" ? i + "" : i, t);
|
|
6
|
+
class y {
|
|
7
|
+
constructor(i) {
|
|
8
|
+
this.properties = i;
|
|
14
9
|
}
|
|
15
10
|
/**
|
|
16
11
|
* Helper to resolve reactive properties
|
|
17
12
|
*/
|
|
18
|
-
resolveReactiveProps(
|
|
13
|
+
resolveReactiveProps(i, t) {
|
|
19
14
|
const e = {};
|
|
20
|
-
for (const [
|
|
21
|
-
|
|
15
|
+
for (const [n, r] of Object.entries(i))
|
|
16
|
+
p(r) || v(r), e[n] = r;
|
|
22
17
|
return e;
|
|
23
18
|
}
|
|
24
19
|
/**
|
|
25
20
|
* Apply a single style change to an element with reactive support
|
|
26
21
|
*/
|
|
27
|
-
applyStyleChange(
|
|
28
|
-
if (
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
22
|
+
applyStyleChange(i, t, e) {
|
|
23
|
+
if (i instanceof HTMLElement) {
|
|
24
|
+
const n = this.toCSSProperty(t);
|
|
25
|
+
if (p(e) || v(e))
|
|
31
26
|
h(() => {
|
|
32
|
-
const
|
|
27
|
+
const r = e(), o = String(r);
|
|
33
28
|
if (o.includes("!important")) {
|
|
34
|
-
const
|
|
35
|
-
|
|
29
|
+
const a = o.replace(/\s*!important\s*$/, "").trim();
|
|
30
|
+
i.style.setProperty(n, a, "important");
|
|
36
31
|
} else
|
|
37
|
-
|
|
32
|
+
i.style.setProperty(n, o);
|
|
38
33
|
});
|
|
39
34
|
else {
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
const o =
|
|
43
|
-
|
|
35
|
+
const r = String(e);
|
|
36
|
+
if (r.includes("!important")) {
|
|
37
|
+
const o = r.replace(/\s*!important\s*$/, "").trim();
|
|
38
|
+
i.style.setProperty(n, o, "important");
|
|
44
39
|
} else
|
|
45
|
-
|
|
40
|
+
i.style.setProperty(n, r);
|
|
46
41
|
}
|
|
47
42
|
}
|
|
48
43
|
}
|
|
49
44
|
/**
|
|
50
45
|
* Convert camelCase property to CSS kebab-case
|
|
51
46
|
*/
|
|
52
|
-
toCSSProperty(
|
|
53
|
-
return
|
|
47
|
+
toCSSProperty(i) {
|
|
48
|
+
return i.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
54
49
|
}
|
|
55
50
|
/**
|
|
56
51
|
* Convert value to CSS value string
|
|
57
52
|
*/
|
|
58
|
-
toCSSValue(
|
|
59
|
-
return typeof
|
|
53
|
+
toCSSValue(i) {
|
|
54
|
+
return typeof i == "number" ? `${i}px` : String(i);
|
|
60
55
|
}
|
|
61
56
|
/**
|
|
62
57
|
* Convert value to CSS value string with property-specific handling
|
|
63
58
|
*/
|
|
64
|
-
toCSSValueForProperty(
|
|
59
|
+
toCSSValueForProperty(i, t) {
|
|
65
60
|
return typeof t == "number" ? [
|
|
66
61
|
"opacity",
|
|
67
62
|
"z-index",
|
|
@@ -71,46 +66,49 @@ class E {
|
|
|
71
66
|
"order",
|
|
72
67
|
"column-count",
|
|
73
68
|
"font-weight"
|
|
74
|
-
].includes(
|
|
69
|
+
].includes(i) ? String(t) : `${t}px` : ([
|
|
75
70
|
"filter",
|
|
76
71
|
// CSS filter strings should not be processed
|
|
77
72
|
"transform",
|
|
78
73
|
// CSS transform strings
|
|
79
74
|
"clip-path"
|
|
80
75
|
// CSS clip-path strings
|
|
81
|
-
].includes(
|
|
76
|
+
].includes(i), String(t));
|
|
82
77
|
}
|
|
83
78
|
/**
|
|
84
79
|
* Apply multiple CSS properties to an element with reactive support
|
|
85
80
|
*/
|
|
86
|
-
applyStyles(
|
|
87
|
-
if (
|
|
88
|
-
const e = (
|
|
89
|
-
for (const [
|
|
90
|
-
if (
|
|
91
|
-
const o = this.toCSSProperty(
|
|
92
|
-
if (
|
|
81
|
+
applyStyles(i, t) {
|
|
82
|
+
if (i instanceof HTMLElement || i.style) {
|
|
83
|
+
const e = (i instanceof HTMLElement, i.style);
|
|
84
|
+
for (const [n, r] of Object.entries(t))
|
|
85
|
+
if (r !== void 0) {
|
|
86
|
+
const o = this.toCSSProperty(n);
|
|
87
|
+
if (p(r) || v(r))
|
|
93
88
|
h(() => {
|
|
94
|
-
const
|
|
89
|
+
const a = r(), s = this.toCSSValueForProperty(
|
|
90
|
+
o,
|
|
91
|
+
a
|
|
92
|
+
);
|
|
95
93
|
if (e.setProperty)
|
|
96
|
-
if (typeof
|
|
97
|
-
const
|
|
98
|
-
e.setProperty(o,
|
|
94
|
+
if (typeof s == "string" && s.includes("!important")) {
|
|
95
|
+
const f = s.replace(/\s*!important\s*$/, "").trim();
|
|
96
|
+
e.setProperty(o, f, "important");
|
|
99
97
|
} else
|
|
100
|
-
e.setProperty(o,
|
|
98
|
+
e.setProperty(o, s);
|
|
101
99
|
else
|
|
102
|
-
e[o] =
|
|
100
|
+
e[o] = s;
|
|
103
101
|
});
|
|
104
102
|
else {
|
|
105
|
-
const
|
|
103
|
+
const a = this.toCSSValueForProperty(o, r);
|
|
106
104
|
if (e.setProperty)
|
|
107
|
-
if (typeof
|
|
108
|
-
const
|
|
109
|
-
e.setProperty(o,
|
|
105
|
+
if (typeof a == "string" && a.includes("!important")) {
|
|
106
|
+
const s = a.replace(/\s*!important\s*$/, "").trim();
|
|
107
|
+
e.setProperty(o, s, "important");
|
|
110
108
|
} else
|
|
111
|
-
e.setProperty(o,
|
|
109
|
+
e.setProperty(o, a);
|
|
112
110
|
else
|
|
113
|
-
e[o] =
|
|
111
|
+
e[o] = a;
|
|
114
112
|
}
|
|
115
113
|
}
|
|
116
114
|
}
|
|
@@ -118,21 +116,21 @@ class E {
|
|
|
118
116
|
/**
|
|
119
117
|
* Add CSS classes to an element
|
|
120
118
|
*/
|
|
121
|
-
addClasses(
|
|
122
|
-
|
|
119
|
+
addClasses(i, t) {
|
|
120
|
+
i instanceof HTMLElement && i.classList.add(...t);
|
|
123
121
|
}
|
|
124
122
|
/**
|
|
125
123
|
* Remove CSS classes from an element
|
|
126
124
|
*/
|
|
127
|
-
removeClasses(
|
|
128
|
-
|
|
125
|
+
removeClasses(i, t) {
|
|
126
|
+
i instanceof HTMLElement && i.classList.remove(...t);
|
|
129
127
|
}
|
|
130
128
|
/**
|
|
131
129
|
* Create a style computation context
|
|
132
130
|
*/
|
|
133
|
-
createStyleContext(
|
|
131
|
+
createStyleContext(i, t, e) {
|
|
134
132
|
return {
|
|
135
|
-
componentId:
|
|
133
|
+
componentId: i,
|
|
136
134
|
element: t,
|
|
137
135
|
modifiers: e,
|
|
138
136
|
signals: /* @__PURE__ */ new Set(),
|
|
@@ -140,129 +138,74 @@ class E {
|
|
|
140
138
|
};
|
|
141
139
|
}
|
|
142
140
|
}
|
|
143
|
-
class
|
|
141
|
+
class k extends y {
|
|
144
142
|
constructor() {
|
|
145
|
-
super(...arguments),
|
|
146
|
-
}
|
|
147
|
-
apply(
|
|
148
|
-
if (!
|
|
149
|
-
const e = this.createStyleContext(
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
});
|
|
161
|
-
else {
|
|
162
|
-
const s = e ?? 0, o = i ?? 0, r = this.toCSSValue(s), a = this.toCSSValue(o), l = `translate(${r}, ${a})`, m = (n.style.transform || "").split(" ").filter((p) => p && !p.startsWith("translate(")).join(" "), f = m ? `${m} ${l}` : l;
|
|
163
|
-
n.style.transform = f;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
applyAspectRatio(n, t) {
|
|
167
|
-
const { ratio: e, contentMode: i } = t;
|
|
168
|
-
e !== void 0 && (u(e) || d(e) ? h(() => {
|
|
169
|
-
const s = typeof e == "function" ? e() : e;
|
|
170
|
-
n.style.aspectRatio = String(s);
|
|
171
|
-
}) : n.style.aspectRatio = String(e), i === "fill" ? n.style.objectFit = "cover" : n.style.objectFit = "contain");
|
|
172
|
-
}
|
|
173
|
-
// Phase 3 - Epic: Butternut Transform Methods
|
|
174
|
-
applyScaleTransform(n, t) {
|
|
175
|
-
const { x: e, y: i, anchor: s } = t, o = e ?? 1, r = i ?? o;
|
|
176
|
-
if (u(o) || d(o) || u(r) || d(r))
|
|
177
|
-
h(() => {
|
|
178
|
-
const a = u(o) || d(o) ? o() : o, l = u(r) || d(r) ? r() : r, c = `scale(${a}, ${l})`;
|
|
179
|
-
n.style.transformOrigin = this.getTransformOrigin(s || "center");
|
|
180
|
-
const f = (n.style.transform || "").replace(/\s*scale\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(), p = f ? `${f} ${c}` : c;
|
|
181
|
-
n.style.transform = p;
|
|
182
|
-
});
|
|
183
|
-
else {
|
|
184
|
-
const a = `scale(${o}, ${r})`;
|
|
185
|
-
n.style.transformOrigin = this.getTransformOrigin(s || "center");
|
|
186
|
-
const c = (n.style.transform || "").replace(/\s*scale\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(), m = c ? `${c} ${a}` : a;
|
|
187
|
-
n.style.transform = m;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
applyAbsolutePosition(n, t) {
|
|
191
|
-
const { x: e, y: i } = t;
|
|
192
|
-
if (n.style.position = "absolute", u(e) || d(e) || u(i) || d(i))
|
|
193
|
-
h(() => {
|
|
194
|
-
const s = u(e) || d(e) ? e() : e ?? 0, o = u(i) || d(i) ? i() : i ?? 0;
|
|
195
|
-
n.style.left = this.toCSSValue(s), n.style.top = this.toCSSValue(o);
|
|
196
|
-
});
|
|
197
|
-
else {
|
|
198
|
-
const s = e ?? 0, o = i ?? 0;
|
|
199
|
-
n.style.left = this.toCSSValue(s), n.style.top = this.toCSSValue(o);
|
|
200
|
-
}
|
|
143
|
+
super(...arguments), l(this, "type", "layout"), l(this, "priority", g.LAYOUT);
|
|
144
|
+
}
|
|
145
|
+
apply(i, t) {
|
|
146
|
+
if (!i.element || !t.element) return;
|
|
147
|
+
const e = this.createStyleContext(
|
|
148
|
+
t.componentId,
|
|
149
|
+
t.element,
|
|
150
|
+
[]
|
|
151
|
+
), n = this.computeLayoutStyles(
|
|
152
|
+
this.properties,
|
|
153
|
+
e
|
|
154
|
+
);
|
|
155
|
+
this.applyStyles(t.element, n);
|
|
156
|
+
const r = this.properties;
|
|
157
|
+
r.position && t.element instanceof HTMLElement && this.applyAbsolutePosition(t.element, r.position);
|
|
201
158
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}) : n.style.zIndex = String(t);
|
|
159
|
+
// Layout modifier implementations have been migrated to @tachui/modifiers/layout
|
|
160
|
+
applyAbsolutePosition(i, t) {
|
|
161
|
+
const { x: e, y: n } = t, r = e ?? "auto", o = n ?? "auto";
|
|
162
|
+
i.style.left = this.toCSSValue(r), i.style.top = this.toCSSValue(o);
|
|
207
163
|
}
|
|
208
|
-
|
|
209
|
-
return {
|
|
210
|
-
center: "center center",
|
|
211
|
-
top: "center top",
|
|
212
|
-
topLeading: "left top",
|
|
213
|
-
topTrailing: "right top",
|
|
214
|
-
bottom: "center bottom",
|
|
215
|
-
bottomLeading: "left bottom",
|
|
216
|
-
bottomTrailing: "right bottom",
|
|
217
|
-
leading: "left center",
|
|
218
|
-
trailing: "right center"
|
|
219
|
-
}[n] || "center center";
|
|
220
|
-
}
|
|
221
|
-
computeLayoutStyles(n, t) {
|
|
164
|
+
computeLayoutStyles(i, t) {
|
|
222
165
|
const e = {};
|
|
223
|
-
if (
|
|
224
|
-
const
|
|
225
|
-
if (Object.assign(e,
|
|
226
|
-
const o =
|
|
227
|
-
o !== void 0 && !
|
|
166
|
+
if (i.frame) {
|
|
167
|
+
const n = i.frame, r = L(n);
|
|
168
|
+
if (Object.assign(e, r.cssProps), n.width !== void 0) {
|
|
169
|
+
const o = u(n.width);
|
|
170
|
+
o !== void 0 && !m(n.width) && !r.expandWidth && (e.width = o);
|
|
228
171
|
}
|
|
229
|
-
if (
|
|
230
|
-
const o =
|
|
231
|
-
o !== void 0 && !
|
|
172
|
+
if (n.height !== void 0) {
|
|
173
|
+
const o = u(n.height);
|
|
174
|
+
o !== void 0 && !m(n.height) && !r.expandHeight && (e.height = o);
|
|
232
175
|
}
|
|
233
|
-
if (
|
|
234
|
-
const o =
|
|
176
|
+
if (n.minWidth !== void 0) {
|
|
177
|
+
const o = u(n.minWidth);
|
|
235
178
|
o !== void 0 && (e.minWidth = o);
|
|
236
179
|
}
|
|
237
|
-
if (
|
|
238
|
-
const o =
|
|
180
|
+
if (n.maxWidth !== void 0 && !m(n.maxWidth)) {
|
|
181
|
+
const o = u(n.maxWidth);
|
|
239
182
|
o !== void 0 && (e.maxWidth = o);
|
|
240
|
-
} else
|
|
241
|
-
if (
|
|
242
|
-
const o =
|
|
183
|
+
} else m(n.maxWidth) && (e.maxWidth = "none", e.flexGrow = "1 !important", e.flexShrink = "1 !important", e.flexBasis = "0% !important", e.alignSelf = "stretch !important");
|
|
184
|
+
if (n.minHeight !== void 0) {
|
|
185
|
+
const o = u(n.minHeight);
|
|
243
186
|
o !== void 0 && (e.minHeight = o);
|
|
244
187
|
}
|
|
245
|
-
if (
|
|
246
|
-
const o =
|
|
188
|
+
if (n.maxHeight !== void 0 && !m(n.maxHeight)) {
|
|
189
|
+
const o = u(n.maxHeight);
|
|
247
190
|
o !== void 0 && (e.maxHeight = o);
|
|
248
|
-
} else
|
|
191
|
+
} else m(n.maxHeight) && (e.maxHeight = "none", e.flexGrow = "1 !important", e.flexShrink = "1 !important", e.flexBasis = "0% !important", e.alignSelf = "stretch !important");
|
|
249
192
|
}
|
|
250
|
-
if (
|
|
251
|
-
if (typeof
|
|
252
|
-
e.padding = this.toCSSValue(
|
|
193
|
+
if (i.padding !== void 0)
|
|
194
|
+
if (typeof i.padding == "number")
|
|
195
|
+
e.padding = this.toCSSValue(i.padding);
|
|
253
196
|
else {
|
|
254
|
-
const
|
|
255
|
-
|
|
197
|
+
const n = i.padding;
|
|
198
|
+
n.top !== void 0 && (e.paddingTop = this.toCSSValue(n.top)), n.right !== void 0 && (e.paddingRight = this.toCSSValue(n.right)), n.bottom !== void 0 && (e.paddingBottom = this.toCSSValue(n.bottom)), n.left !== void 0 && (e.paddingLeft = this.toCSSValue(n.left));
|
|
256
199
|
}
|
|
257
|
-
if (
|
|
258
|
-
if (typeof
|
|
259
|
-
e.margin = this.toCSSValue(
|
|
200
|
+
if (i.margin !== void 0)
|
|
201
|
+
if (typeof i.margin == "number")
|
|
202
|
+
e.margin = this.toCSSValue(i.margin);
|
|
260
203
|
else {
|
|
261
|
-
const
|
|
262
|
-
|
|
204
|
+
const n = i.margin;
|
|
205
|
+
n.top !== void 0 && (e.marginTop = this.toCSSValue(n.top)), n.right !== void 0 && (e.marginRight = this.toCSSValue(n.right)), n.bottom !== void 0 && (e.marginBottom = this.toCSSValue(n.bottom)), n.left !== void 0 && (e.marginLeft = this.toCSSValue(n.left));
|
|
263
206
|
}
|
|
264
|
-
if (
|
|
265
|
-
switch (
|
|
207
|
+
if (i.alignment)
|
|
208
|
+
switch (i.alignment) {
|
|
266
209
|
case "leading":
|
|
267
210
|
e.textAlign = "left", e.alignItems = "flex-start";
|
|
268
211
|
break;
|
|
@@ -279,235 +222,173 @@ class D extends E {
|
|
|
279
222
|
e.alignItems = "flex-end";
|
|
280
223
|
break;
|
|
281
224
|
}
|
|
282
|
-
if (
|
|
283
|
-
const
|
|
284
|
-
|
|
225
|
+
if (i.layoutPriority !== void 0) {
|
|
226
|
+
const n = Number(i.layoutPriority);
|
|
227
|
+
n > 0 ? (e.flexShrink = "0", e.flexGrow = String(Math.max(1, n / 10)), e.zIndex = String(n), e.gridRowEnd = `span ${String(Math.min(10, Math.max(1, Math.ceil(n / 10))))}`, e.gridColumnEnd = `span ${String(Math.min(10, Math.max(1, Math.ceil(n / 10))))}`) : n === 0 ? (e.flexShrink = "1", e.flexGrow = "1") : (e.flexShrink = String(Math.abs(n)), e.flexGrow = "0", e.zIndex = String(n)), e && typeof e == "object" && "setProperty" in e && e.setProperty("--layout-priority", String(n));
|
|
285
228
|
}
|
|
286
|
-
if (
|
|
287
|
-
const { ratio:
|
|
288
|
-
|
|
229
|
+
if (i.offset, i.aspectRatio) {
|
|
230
|
+
const { ratio: n, contentMode: r } = i.aspectRatio;
|
|
231
|
+
n !== void 0 && (e.aspectRatio = typeof n == "number" ? String(n) : n, r === "fill" ? e.objectFit = "cover" : e.objectFit = "contain");
|
|
289
232
|
}
|
|
290
|
-
if (
|
|
291
|
-
const { horizontal:
|
|
292
|
-
|
|
233
|
+
if (i.fixedSize) {
|
|
234
|
+
const { horizontal: n, vertical: r } = i.fixedSize;
|
|
235
|
+
n && (e.flexShrink = "0", e.width = "max-content"), r && (e.flexShrink = "0", e.height = "max-content");
|
|
293
236
|
}
|
|
294
237
|
return e;
|
|
295
238
|
}
|
|
296
239
|
}
|
|
297
|
-
class
|
|
240
|
+
class $ extends y {
|
|
298
241
|
constructor() {
|
|
299
|
-
super(...arguments),
|
|
242
|
+
super(...arguments), l(this, "type", "appearance"), l(this, "priority", g.APPEARANCE);
|
|
300
243
|
}
|
|
301
|
-
apply(
|
|
302
|
-
if (!
|
|
244
|
+
apply(i, t) {
|
|
245
|
+
if (!i.element || !t.element)
|
|
303
246
|
return;
|
|
304
|
-
const e = this.createStyleContext(
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
247
|
+
const e = this.createStyleContext(
|
|
248
|
+
t.componentId,
|
|
249
|
+
t.element,
|
|
250
|
+
[]
|
|
251
|
+
), n = this.resolveReactiveProps(
|
|
252
|
+
this.properties,
|
|
253
|
+
e
|
|
254
|
+
);
|
|
255
|
+
this.applyAssetBasedStyles(t.element, n);
|
|
256
|
+
const r = this.computeAppearanceStyles(n);
|
|
257
|
+
this.applyStyles(t.element, r), this.applyAttributes(t.element, n);
|
|
308
258
|
}
|
|
309
259
|
/**
|
|
310
260
|
* Apply Asset-based styles with theme reactivity
|
|
311
261
|
*/
|
|
312
|
-
applyAssetBasedStyles(
|
|
313
|
-
const e =
|
|
262
|
+
applyAssetBasedStyles(i, t) {
|
|
263
|
+
const e = E();
|
|
314
264
|
t.foregroundColor && this.isAsset(t.foregroundColor) && h(() => {
|
|
315
265
|
e();
|
|
316
|
-
const
|
|
317
|
-
this.applyStyleChange(
|
|
266
|
+
const n = t.foregroundColor.resolve();
|
|
267
|
+
this.applyStyleChange(i, "color", n);
|
|
318
268
|
}), t.backgroundColor && this.isAsset(t.backgroundColor) && h(() => {
|
|
319
269
|
e();
|
|
320
|
-
const
|
|
321
|
-
this.applyStyleChange(
|
|
270
|
+
const n = t.backgroundColor.resolve();
|
|
271
|
+
this.applyStyleChange(i, "backgroundColor", n);
|
|
322
272
|
}), t.border?.color && this.isAsset(t.border.color) && h(() => {
|
|
323
273
|
e();
|
|
324
|
-
const
|
|
325
|
-
this.applyStyleChange(
|
|
274
|
+
const n = t.border.color.resolve();
|
|
275
|
+
this.applyStyleChange(i, "borderColor", n);
|
|
326
276
|
});
|
|
327
277
|
}
|
|
328
278
|
/**
|
|
329
279
|
* Check if a value is an Asset object (including Asset proxies)
|
|
330
280
|
*/
|
|
331
|
-
isAsset(
|
|
332
|
-
return
|
|
281
|
+
isAsset(i) {
|
|
282
|
+
return i != null && typeof i == "object" && "resolve" in i && typeof i.resolve == "function";
|
|
333
283
|
}
|
|
334
|
-
computeAppearanceStyles(
|
|
284
|
+
computeAppearanceStyles(i) {
|
|
335
285
|
const t = {};
|
|
336
|
-
if (
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
}
|
|
340
|
-
if (n.cornerRadius !== void 0 && (t.borderRadius = this.toCSSValue(n.cornerRadius)), n.border) {
|
|
341
|
-
const i = n.border;
|
|
342
|
-
i.width !== void 0 && (t.borderWidth = this.toCSSValue(i.width)), i.color && !this.isAsset(i.color) && (t.borderColor = i.color), i.style && (t.borderStyle = i.style);
|
|
286
|
+
if (i.foregroundColor && !this.isAsset(i.foregroundColor) && (t.color = i.foregroundColor), i.backgroundColor && !this.isAsset(i.backgroundColor) && (t.backgroundColor = i.backgroundColor), i.opacity !== void 0 && (t.opacity = i.opacity), i.font) {
|
|
287
|
+
const n = i.font;
|
|
288
|
+
n.family && (typeof n.family == "object" && n.family !== null && "resolve" in n.family ? t.fontFamily = n.family.resolve() : t.fontFamily = n.family), n.size && (t.fontSize = this.toCSSValue(n.size)), n.weight && (t.fontWeight = String(n.weight)), n.style && (t.fontStyle = n.style);
|
|
343
289
|
}
|
|
344
|
-
if (
|
|
345
|
-
const
|
|
346
|
-
t.
|
|
347
|
-
}
|
|
348
|
-
if (n.clipped && (t.overflow = "hidden"), n.clipShape) {
|
|
349
|
-
const { shape: i, parameters: s } = n.clipShape;
|
|
350
|
-
switch (i) {
|
|
351
|
-
case "circle":
|
|
352
|
-
t.clipPath = "circle(50%)";
|
|
353
|
-
break;
|
|
354
|
-
case "ellipse": {
|
|
355
|
-
const o = s?.radiusX || "50%", r = s?.radiusY || "50%";
|
|
356
|
-
t.clipPath = `ellipse(${o} ${r} at center)`;
|
|
357
|
-
break;
|
|
358
|
-
}
|
|
359
|
-
case "rect": {
|
|
360
|
-
const o = s?.inset || 0;
|
|
361
|
-
t.clipPath = `inset(${o}px)`;
|
|
362
|
-
break;
|
|
363
|
-
}
|
|
364
|
-
case "polygon": {
|
|
365
|
-
const o = s?.points || "0% 0%, 100% 0%, 100% 100%, 0% 100%";
|
|
366
|
-
t.clipPath = `polygon(${o})`;
|
|
367
|
-
break;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
290
|
+
if (i.cornerRadius !== void 0 && (t.borderRadius = this.toCSSValue(i.cornerRadius)), i.border) {
|
|
291
|
+
const n = i.border;
|
|
292
|
+
n.width !== void 0 && (t.borderWidth = this.toCSSValue(n.width)), n.color && !this.isAsset(n.color) && (t.borderColor = n.color), n.style && (t.borderStyle = n.style);
|
|
370
293
|
}
|
|
371
294
|
const e = [];
|
|
372
|
-
return
|
|
295
|
+
return i.blur !== void 0 && e.push(`blur(${i.blur}px)`), i.brightness !== void 0 && e.push(`brightness(${i.brightness})`), i.contrast !== void 0 && e.push(`contrast(${i.contrast})`), i.saturation !== void 0 && e.push(`saturate(${i.saturation})`), i.hueRotation !== void 0 && e.push(`hue-rotate(${i.hueRotation}deg)`), i.grayscale !== void 0 && e.push(`grayscale(${i.grayscale})`), i.colorInvert !== void 0 && e.push(`invert(${i.colorInvert})`), e.length > 0 && (t.filter = e.join(" ")), t;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Apply HTML attributes (ARIA, role, data attributes, etc.)
|
|
299
|
+
*/
|
|
300
|
+
applyAttributes(i, t) {
|
|
301
|
+
if (!i) return;
|
|
302
|
+
const e = this.findComponentFromElement(i);
|
|
303
|
+
t.role !== void 0 && (i.setAttribute("role", String(t.role)), e?.props && (e.props.role = String(t.role))), t["aria-label"] !== void 0 && (i.setAttribute("aria-label", String(t["aria-label"])), e?.props && (e.props["aria-label"] = String(t["aria-label"]))), t["aria-live"] !== void 0 && (i.setAttribute("aria-live", String(t["aria-live"])), e?.props && (e.props["aria-live"] = String(t["aria-live"]))), t["aria-describedby"] !== void 0 && (i.setAttribute(
|
|
304
|
+
"aria-describedby",
|
|
305
|
+
String(t["aria-describedby"])
|
|
306
|
+
), e?.props && (e.props["aria-describedby"] = String(t["aria-describedby"]))), t["aria-modal"] !== void 0 && (i.setAttribute("aria-modal", String(t["aria-modal"])), e?.props && (e.props["aria-modal"] = String(t["aria-modal"]))), t["aria-hidden"] !== void 0 && (i.setAttribute("aria-hidden", String(t["aria-hidden"])), e?.props && (e.props["aria-hidden"] = String(t["aria-hidden"]))), t.navigationTitle !== void 0 && (i.setAttribute(
|
|
307
|
+
"data-navigation-title",
|
|
308
|
+
String(t.navigationTitle)
|
|
309
|
+
), e?.props && (e.props.navigationTitle = String(t.navigationTitle))), t.navigationBarHidden !== void 0 && (i.setAttribute(
|
|
310
|
+
"data-navigation-bar-hidden",
|
|
311
|
+
String(t.navigationBarHidden)
|
|
312
|
+
), e?.props && (e.props.navigationBarHidden = t.navigationBarHidden), t.navigationBarHidden && (i.setAttribute("aria-hidden", "true"), e?.props && (e.props["aria-hidden"] = "true"))), t.navigationBarItems !== void 0 && (i.setAttribute(
|
|
313
|
+
"data-navigation-bar-items",
|
|
314
|
+
JSON.stringify(t.navigationBarItems)
|
|
315
|
+
), e?.props && (e.props.navigationBarItems = t.navigationBarItems));
|
|
316
|
+
}
|
|
317
|
+
findComponentFromElement(i) {
|
|
318
|
+
return i._tachui_component || null;
|
|
373
319
|
}
|
|
374
320
|
}
|
|
375
|
-
class
|
|
321
|
+
class H extends y {
|
|
376
322
|
constructor() {
|
|
377
|
-
super(...arguments),
|
|
323
|
+
super(...arguments), l(this, "type", "interaction"), l(this, "priority", g.INTERACTION);
|
|
378
324
|
}
|
|
379
|
-
apply(
|
|
325
|
+
apply(i, t) {
|
|
380
326
|
if (!t.element) return;
|
|
381
327
|
const e = this.properties;
|
|
382
|
-
e.onTap && t.element.addEventListener("click", e.onTap), e.onHover && (t.element.addEventListener("mouseenter", () => e.onHover(!0)), t.element.addEventListener("mouseleave", () => e.onHover(!1))), e.onMouseEnter && t.element.addEventListener("mouseenter", e.onMouseEnter), e.onMouseLeave && t.element.addEventListener("mouseleave", e.onMouseLeave), e.onMouseDown && t.element.addEventListener("mousedown", e.onMouseDown), e.onMouseUp && t.element.addEventListener("mouseup", e.onMouseUp), e.onDragStart && t.element.addEventListener("dragstart", e.onDragStart), e.onDragOver && t.element.addEventListener("dragover", e.onDragOver), e.onDragLeave && t.element.addEventListener("dragleave", e.onDragLeave), e.onDrop && t.element.addEventListener("drop", e.onDrop), e.onDoubleClick && t.element.addEventListener("dblclick", e.onDoubleClick), e.onContextMenu && t.element.addEventListener("contextmenu", e.onContextMenu), e.onFocus && (t.element.addEventListener("focus", () => e.onFocus(!0)), t.element.addEventListener("blur", () => e.onFocus(!1))), e.onBlur && t.element.addEventListener("blur", () => e.onBlur(!1)), e.onKeyPress && t.element.addEventListener("keypress", e.onKeyPress), e.onKeyDown && t.element.addEventListener("keydown", e.onKeyDown), e.onKeyUp && t.element.addEventListener("keyup", e.onKeyUp), e.
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
) > i && a();
|
|
407
|
-
}, m = () => {
|
|
408
|
-
a();
|
|
409
|
-
}, f = () => {
|
|
410
|
-
a();
|
|
411
|
-
};
|
|
412
|
-
n.addEventListener("pointerdown", l), n.addEventListener("pointermove", c), n.addEventListener("pointerup", m), n.addEventListener("pointercancel", f), n._longPressCleanup = a;
|
|
413
|
-
}
|
|
414
|
-
/**
|
|
415
|
-
* Setup keyboard shortcut handling
|
|
416
|
-
*/
|
|
417
|
-
setupKeyboardShortcut(n, t) {
|
|
418
|
-
const e = t.modifiers ?? [], i = (s) => {
|
|
419
|
-
const o = {
|
|
420
|
-
cmd: e.includes("cmd") || e.includes("meta"),
|
|
421
|
-
ctrl: e.includes("ctrl"),
|
|
422
|
-
shift: e.includes("shift"),
|
|
423
|
-
alt: e.includes("alt")
|
|
424
|
-
}, r = {
|
|
425
|
-
cmd: s.metaKey || s.ctrlKey,
|
|
426
|
-
// Handle both Mac (meta) and PC (ctrl)
|
|
427
|
-
ctrl: s.ctrlKey,
|
|
428
|
-
shift: s.shiftKey,
|
|
429
|
-
alt: s.altKey
|
|
430
|
-
}, a = s.key.toLowerCase() === t.key.toLowerCase(), l = Object.entries(o).every(
|
|
431
|
-
([c, m]) => m === r[c]
|
|
328
|
+
if (e.onTap && t.element.addEventListener("click", e.onTap), e.onHover && (t.element.addEventListener("mouseenter", () => e.onHover(!0)), t.element.addEventListener("mouseleave", () => e.onHover(!1))), e.onMouseEnter && t.element.addEventListener("mouseenter", e.onMouseEnter), e.onMouseLeave && t.element.addEventListener("mouseleave", e.onMouseLeave), e.onMouseDown && t.element.addEventListener("mousedown", e.onMouseDown), e.onMouseUp && t.element.addEventListener("mouseup", e.onMouseUp), e.onDragStart && t.element.addEventListener("dragstart", e.onDragStart), e.onDragOver && t.element.addEventListener("dragover", e.onDragOver), e.onDragLeave && t.element.addEventListener("dragleave", e.onDragLeave), e.onDrop && t.element.addEventListener("drop", e.onDrop), e.onDoubleClick && t.element.addEventListener("dblclick", e.onDoubleClick), e.onContextMenu && t.element.addEventListener("contextmenu", e.onContextMenu), e.onFocus && (t.element.addEventListener("focus", () => e.onFocus(!0)), t.element.addEventListener("blur", () => e.onFocus(!1))), e.onBlur && t.element.addEventListener("blur", () => e.onBlur(!1)), e.onKeyPress && t.element.addEventListener("keypress", e.onKeyPress), e.onKeyDown && t.element.addEventListener("keydown", e.onKeyDown), e.onKeyUp && t.element.addEventListener("keyup", e.onKeyUp), e.onTouchStart && t.element.addEventListener("touchstart", e.onTouchStart, {
|
|
329
|
+
passive: !0
|
|
330
|
+
}), e.onTouchMove && t.element.addEventListener("touchmove", e.onTouchMove, {
|
|
331
|
+
passive: !0
|
|
332
|
+
}), e.onTouchEnd && t.element.addEventListener("touchend", e.onTouchEnd, {
|
|
333
|
+
passive: !0
|
|
334
|
+
}), e.onTouchCancel && t.element.addEventListener("touchcancel", e.onTouchCancel, {
|
|
335
|
+
passive: !0
|
|
336
|
+
}), e.onSwipeLeft || e.onSwipeRight) {
|
|
337
|
+
let n = 0, r = 0;
|
|
338
|
+
t.element.addEventListener(
|
|
339
|
+
"touchstart",
|
|
340
|
+
(o) => {
|
|
341
|
+
const s = o.touches[0];
|
|
342
|
+
n = s.clientX, r = s.clientY;
|
|
343
|
+
},
|
|
344
|
+
{ passive: !0 }
|
|
345
|
+
), t.element.addEventListener(
|
|
346
|
+
"touchend",
|
|
347
|
+
(o) => {
|
|
348
|
+
const s = o.changedTouches[0], f = s.clientX - n, c = s.clientY - r;
|
|
349
|
+
Math.abs(f) > Math.abs(c) && Math.abs(f) > 50 && (f < 0 && e.onSwipeLeft ? e.onSwipeLeft() : f > 0 && e.onSwipeRight && e.onSwipeRight());
|
|
350
|
+
},
|
|
351
|
+
{ passive: !0 }
|
|
432
352
|
);
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
setupFocusManagement(n, t) {
|
|
443
|
-
if (!(n instanceof HTMLElement)) return;
|
|
444
|
-
const e = n;
|
|
445
|
-
e.hasAttribute("tabindex") || e.setAttribute("tabindex", "0"), u(t) || d(t) ? h(() => {
|
|
446
|
-
t() ? e.focus() : e.blur();
|
|
447
|
-
}) : t && e.focus();
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* Setup focusable behavior
|
|
451
|
-
*/
|
|
452
|
-
setupFocusable(n, t) {
|
|
453
|
-
if (!(n instanceof HTMLElement)) return;
|
|
454
|
-
const e = n;
|
|
455
|
-
t.isFocusable === !1 ? e.setAttribute("tabindex", "-1") : e.hasAttribute("tabindex") || e.setAttribute("tabindex", "0"), t.interactions?.includes("activate") && e.addEventListener("keydown", (i) => {
|
|
456
|
-
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), e.click());
|
|
457
|
-
}), t.interactions?.includes("edit") && (e.setAttribute("role", "textbox"), e.setAttribute("contenteditable", "true"));
|
|
458
|
-
}
|
|
459
|
-
/**
|
|
460
|
-
* Setup continuous hover tracking with coordinates
|
|
461
|
-
*/
|
|
462
|
-
setupContinuousHover(n, t) {
|
|
463
|
-
const e = t.coordinateSpace ?? "local", i = (o) => {
|
|
464
|
-
const r = o;
|
|
465
|
-
let a, l;
|
|
466
|
-
if (e === "local") {
|
|
467
|
-
const c = n.getBoundingClientRect();
|
|
468
|
-
a = r.clientX - c.left, l = r.clientY - c.top;
|
|
469
|
-
} else
|
|
470
|
-
a = r.clientX, l = r.clientY;
|
|
471
|
-
t.perform({ x: a, y: l });
|
|
472
|
-
}, s = () => {
|
|
473
|
-
t.perform(null);
|
|
474
|
-
};
|
|
475
|
-
n.addEventListener("mousemove", i), n.addEventListener("mouseleave", s), n._continuousHoverCleanup = () => {
|
|
476
|
-
n.removeEventListener("mousemove", i), n.removeEventListener("mouseleave", s);
|
|
477
|
-
};
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* Setup hit testing control
|
|
481
|
-
*/
|
|
482
|
-
setupHitTesting(n, t) {
|
|
483
|
-
n instanceof HTMLElement && (n.style.pointerEvents = t ? "" : "none");
|
|
353
|
+
}
|
|
354
|
+
e.onScroll && t.element.addEventListener("scroll", e.onScroll, {
|
|
355
|
+
passive: !0
|
|
356
|
+
}), e.onWheel && t.element.addEventListener("wheel", e.onWheel, {
|
|
357
|
+
passive: !1
|
|
358
|
+
}), e.onInput && t.element.addEventListener("input", e.onInput), e.onChange && t.element.addEventListener("change", (n) => {
|
|
359
|
+
const r = n.target, o = r.value || r.textContent || "";
|
|
360
|
+
e.onChange(o, n);
|
|
361
|
+
}), e.onCopy && t.element.addEventListener("copy", e.onCopy), e.onCut && t.element.addEventListener("cut", e.onCut), e.onPaste && t.element.addEventListener("paste", e.onPaste), e.onSelect && t.element.addEventListener("select", e.onSelect), e.disabled !== void 0 && t.element instanceof HTMLElement && (e.disabled ? (t.element.setAttribute("disabled", "true"), t.element.style.pointerEvents = "none", t.element.style.opacity = "0.6") : (t.element.removeAttribute("disabled"), t.element.style.pointerEvents = "", t.element.style.opacity = "")), e.draggable !== void 0 && t.element instanceof HTMLElement && (t.element.draggable = e.draggable), e.accessibilityLabel && t.element.setAttribute("aria-label", e.accessibilityLabel), e.accessibilityHint && t.element.setAttribute("aria-describedby", e.accessibilityHint);
|
|
484
362
|
}
|
|
485
363
|
}
|
|
486
|
-
class
|
|
364
|
+
class I extends y {
|
|
487
365
|
constructor() {
|
|
488
|
-
super(...arguments),
|
|
366
|
+
super(...arguments), l(this, "type", "animation"), l(this, "priority", g.ANIMATION);
|
|
489
367
|
}
|
|
490
|
-
apply(
|
|
368
|
+
apply(i, t) {
|
|
491
369
|
if (!t.element) return;
|
|
492
370
|
const e = this.properties;
|
|
493
371
|
if (e.transition) {
|
|
494
|
-
const
|
|
495
|
-
t.element instanceof HTMLElement && (t.element.style.transition = `${
|
|
372
|
+
const n = e.transition, r = n.property || "all", o = n.duration || 300, a = n.easing || "ease", s = n.delay || 0;
|
|
373
|
+
t.element instanceof HTMLElement && (t.element.style.transition = `${r} ${o}ms ${a} ${s}ms`);
|
|
496
374
|
}
|
|
497
375
|
if (e.animation && t.element instanceof HTMLElement) {
|
|
498
|
-
const
|
|
499
|
-
if (
|
|
500
|
-
const
|
|
376
|
+
const n = e.animation;
|
|
377
|
+
if (n.keyframes) {
|
|
378
|
+
const r = `tachui-animation-${t.componentId}-${Date.now()}`, o = this.createKeyframeRule(
|
|
379
|
+
r,
|
|
380
|
+
n.keyframes
|
|
381
|
+
);
|
|
501
382
|
this.addKeyframesToStylesheet(o);
|
|
502
|
-
const
|
|
503
|
-
t.element.style.animation = `${
|
|
383
|
+
const a = n.duration || 1e3, s = n.easing || "ease", f = n.iterations || 1, c = n.direction || "normal";
|
|
384
|
+
t.element.style.animation = `${r} ${a}ms ${s} ${f} ${c}`;
|
|
504
385
|
}
|
|
505
386
|
}
|
|
506
|
-
if (e.transform && t.element instanceof HTMLElement && (
|
|
507
|
-
const
|
|
508
|
-
t.element instanceof HTMLElement && (t.element.style.transform =
|
|
509
|
-
}) : t.element.style.transform = e.transform), e.
|
|
510
|
-
const {
|
|
387
|
+
if (e.transform && t.element instanceof HTMLElement && (p(e.transform) || v(e.transform) ? h(() => {
|
|
388
|
+
const n = e.transform();
|
|
389
|
+
t.element instanceof HTMLElement && (t.element.style.transform = n);
|
|
390
|
+
}) : t.element.style.transform = e.transform), e.scaleEffect && t.element instanceof HTMLElement) {
|
|
391
|
+
const { x: n, y: r, anchor: o } = e.scaleEffect, a = r ?? n, f = {
|
|
511
392
|
center: "50% 50%",
|
|
512
393
|
top: "50% 0%",
|
|
513
394
|
topLeading: "0% 0%",
|
|
@@ -517,97 +398,21 @@ class j extends E {
|
|
|
517
398
|
bottomTrailing: "100% 100%",
|
|
518
399
|
leading: "0% 50%",
|
|
519
400
|
trailing: "100% 50%"
|
|
520
|
-
}[
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
if (t.element instanceof HTMLElement) {
|
|
525
|
-
t.element.style.transformOrigin = r;
|
|
526
|
-
const f = (t.element.style.transform || "").split(" ").filter((v) => v && !v.startsWith("rotate(")).join(" "), p = f ? `${f} ${c}` : c;
|
|
527
|
-
t.element.style.transform = p;
|
|
528
|
-
}
|
|
529
|
-
});
|
|
530
|
-
else if (t.element instanceof HTMLElement) {
|
|
531
|
-
t.element.style.transformOrigin = r;
|
|
532
|
-
const c = (t.element.style.transform || "").split(" ").filter((f) => f && !f.startsWith("rotate(")).join(" "), m = c ? `${c} ${a}` : a;
|
|
533
|
-
t.element.style.transform = m;
|
|
534
|
-
}
|
|
401
|
+
}[o || "center"] || "50% 50%";
|
|
402
|
+
t.element.style.transformOrigin = f;
|
|
403
|
+
const c = `scale(${n}, ${a})`, b = (t.element.style.transform || "").replace(/\s*scale[XYZ3d]*\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(), C = b ? `${b} ${c}`.trim() : c;
|
|
404
|
+
t.element.style.transform = C;
|
|
535
405
|
}
|
|
536
|
-
e.overlay && t.element instanceof HTMLElement && this.applyOverlay(t.element, e.overlay, t);
|
|
537
|
-
}
|
|
538
|
-
applyOverlay(n, t, e) {
|
|
539
|
-
const { content: i, alignment: s = "center" } = t;
|
|
540
|
-
(n.style.position === "" || n.style.position === "static") && (n.style.position = "relative");
|
|
541
|
-
const o = document.createElement("div");
|
|
542
|
-
o.style.position = "absolute", o.style.pointerEvents = "none";
|
|
543
|
-
const r = this.getOverlayAlignment(s);
|
|
544
|
-
if (Object.assign(o.style, r), typeof i == "function") {
|
|
545
|
-
const a = i();
|
|
546
|
-
if (a && typeof a.render == "function") {
|
|
547
|
-
const l = a.render();
|
|
548
|
-
l.element && o.appendChild(l.element);
|
|
549
|
-
}
|
|
550
|
-
} else if (i && typeof i.render == "function") {
|
|
551
|
-
const a = i.render();
|
|
552
|
-
a.element && o.appendChild(a.element);
|
|
553
|
-
} else i instanceof HTMLElement && o.appendChild(i);
|
|
554
|
-
n.appendChild(o);
|
|
555
|
-
}
|
|
556
|
-
getOverlayAlignment(n) {
|
|
557
|
-
const t = {
|
|
558
|
-
center: {
|
|
559
|
-
top: "50%",
|
|
560
|
-
left: "50%",
|
|
561
|
-
transform: "translate(-50%, -50%)"
|
|
562
|
-
},
|
|
563
|
-
top: {
|
|
564
|
-
top: "0",
|
|
565
|
-
left: "50%",
|
|
566
|
-
transform: "translateX(-50%)"
|
|
567
|
-
},
|
|
568
|
-
bottom: {
|
|
569
|
-
bottom: "0",
|
|
570
|
-
left: "50%",
|
|
571
|
-
transform: "translateX(-50%)"
|
|
572
|
-
},
|
|
573
|
-
leading: {
|
|
574
|
-
top: "50%",
|
|
575
|
-
left: "0",
|
|
576
|
-
transform: "translateY(-50%)"
|
|
577
|
-
},
|
|
578
|
-
trailing: {
|
|
579
|
-
top: "50%",
|
|
580
|
-
right: "0",
|
|
581
|
-
transform: "translateY(-50%)"
|
|
582
|
-
},
|
|
583
|
-
topLeading: {
|
|
584
|
-
top: "0",
|
|
585
|
-
left: "0"
|
|
586
|
-
},
|
|
587
|
-
topTrailing: {
|
|
588
|
-
top: "0",
|
|
589
|
-
right: "0"
|
|
590
|
-
},
|
|
591
|
-
bottomLeading: {
|
|
592
|
-
bottom: "0",
|
|
593
|
-
left: "0"
|
|
594
|
-
},
|
|
595
|
-
bottomTrailing: {
|
|
596
|
-
bottom: "0",
|
|
597
|
-
right: "0"
|
|
598
|
-
}
|
|
599
|
-
};
|
|
600
|
-
return t[n] || t.center;
|
|
601
406
|
}
|
|
602
|
-
createKeyframeRule(
|
|
603
|
-
let e = `@keyframes ${
|
|
407
|
+
createKeyframeRule(i, t) {
|
|
408
|
+
let e = `@keyframes ${i} {
|
|
604
409
|
`;
|
|
605
|
-
for (const [
|
|
606
|
-
e += ` ${
|
|
410
|
+
for (const [n, r] of Object.entries(t)) {
|
|
411
|
+
e += ` ${n} {
|
|
607
412
|
`;
|
|
608
|
-
for (const [o,
|
|
609
|
-
const
|
|
610
|
-
e += ` ${
|
|
413
|
+
for (const [o, a] of Object.entries(r)) {
|
|
414
|
+
const s = this.toCSSProperty(o);
|
|
415
|
+
e += ` ${s}: ${a};
|
|
611
416
|
`;
|
|
612
417
|
}
|
|
613
418
|
e += ` }
|
|
@@ -615,131 +420,68 @@ class j extends E {
|
|
|
615
420
|
}
|
|
616
421
|
return e += "}", e;
|
|
617
422
|
}
|
|
618
|
-
addKeyframesToStylesheet(
|
|
619
|
-
let t = document.querySelector(
|
|
620
|
-
|
|
423
|
+
addKeyframesToStylesheet(i) {
|
|
424
|
+
let t = document.querySelector(
|
|
425
|
+
"#tachui-animations"
|
|
426
|
+
);
|
|
427
|
+
t || (t = document.createElement("style"), t.id = "tachui-animations", document.head.appendChild(t)), t.appendChild(document.createTextNode(i));
|
|
621
428
|
}
|
|
622
429
|
}
|
|
623
|
-
class
|
|
430
|
+
class R extends y {
|
|
624
431
|
constructor() {
|
|
625
|
-
super(...arguments),
|
|
432
|
+
super(...arguments), l(this, "type", "lifecycle"), l(this, "priority", g.CUSTOM), l(this, "activeAbortController");
|
|
626
433
|
}
|
|
627
|
-
apply(
|
|
434
|
+
apply(i, t) {
|
|
628
435
|
if (!t.element) return;
|
|
629
436
|
const e = this.properties;
|
|
630
|
-
this.activeAbortController && this.activeAbortController.abort(),
|
|
437
|
+
this.activeAbortController && this.activeAbortController.abort(), e.task && this.setupTask(t, e.task), (e.onAppear || e.onDisappear) && this.setupViewportObserver(t, e);
|
|
631
438
|
}
|
|
632
|
-
|
|
633
|
-
const e = new IntersectionObserver(
|
|
634
|
-
(i) => {
|
|
635
|
-
i.forEach((s) => {
|
|
636
|
-
s.isIntersecting && t.onAppear ? t.onAppear() : !s.isIntersecting && t.onDisappear && t.onDisappear();
|
|
637
|
-
});
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
threshold: 0.1,
|
|
641
|
-
// Trigger when 10% of element is visible
|
|
642
|
-
rootMargin: "10px"
|
|
643
|
-
// Add some margin for better UX
|
|
644
|
-
}
|
|
645
|
-
);
|
|
646
|
-
e.observe(n), this.addCleanup(() => {
|
|
647
|
-
e.disconnect();
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
setupTask(n, t) {
|
|
439
|
+
setupTask(i, t) {
|
|
651
440
|
if (!t) return;
|
|
652
441
|
this.activeAbortController = new AbortController();
|
|
653
442
|
const { signal: e } = this.activeAbortController;
|
|
654
443
|
(async () => {
|
|
655
444
|
try {
|
|
656
445
|
if (e.aborted) return;
|
|
657
|
-
const
|
|
658
|
-
|
|
659
|
-
} catch (
|
|
446
|
+
const r = t.operation();
|
|
447
|
+
r instanceof Promise && await r;
|
|
448
|
+
} catch (r) {
|
|
660
449
|
if (e.aborted) return;
|
|
661
|
-
console.error("TachUI Task Error:",
|
|
450
|
+
console.error("TachUI Task Error:", r);
|
|
662
451
|
}
|
|
663
452
|
})(), this.addCleanup(() => {
|
|
664
453
|
this.activeAbortController && this.activeAbortController.abort();
|
|
665
454
|
});
|
|
666
455
|
}
|
|
667
|
-
|
|
668
|
-
if (!
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
width: 30px;
|
|
677
|
-
height: 30px;
|
|
678
|
-
border: 2px solid #ccc;
|
|
679
|
-
border-top: 2px solid #007AFF;
|
|
680
|
-
border-radius: 50%;
|
|
681
|
-
animation: tachui-spin 1s linear infinite;
|
|
682
|
-
opacity: 0;
|
|
683
|
-
transition: opacity 0.3s ease;
|
|
684
|
-
z-index: 1000;
|
|
685
|
-
`, !document.querySelector("#tachui-refresh-styles")) {
|
|
686
|
-
const f = document.createElement("style");
|
|
687
|
-
f.id = "tachui-refresh-styles", f.textContent = `
|
|
688
|
-
@keyframes tachui-spin {
|
|
689
|
-
0% { transform: translateX(-50%) rotate(0deg); }
|
|
690
|
-
100% { transform: translateX(-50%) rotate(360deg); }
|
|
691
|
-
}
|
|
692
|
-
`, document.head.appendChild(f);
|
|
693
|
-
}
|
|
694
|
-
const a = n.parentElement || n;
|
|
695
|
-
a instanceof HTMLElement && (a.style.position = "relative", a.appendChild(r));
|
|
696
|
-
const l = (f) => {
|
|
697
|
-
e || (s = f.touches[0].clientY);
|
|
698
|
-
}, c = (f) => {
|
|
699
|
-
if (e) return;
|
|
700
|
-
const p = f.touches[0].clientY;
|
|
701
|
-
if (i = Math.max(0, p - s), i > 20) {
|
|
702
|
-
f.preventDefault();
|
|
703
|
-
const v = Math.min(i / o, 1);
|
|
704
|
-
r.style.opacity = String(v * 0.8), r.style.top = `${-50 + v * 20}px`;
|
|
705
|
-
}
|
|
706
|
-
}, m = async () => {
|
|
707
|
-
if (e || i < o) {
|
|
708
|
-
r.style.opacity = "0", r.style.top = "-50px", i = 0;
|
|
709
|
-
return;
|
|
710
|
-
}
|
|
711
|
-
e = !0, r.style.opacity = "1", r.style.top = "10px";
|
|
712
|
-
try {
|
|
713
|
-
await t.onRefresh();
|
|
714
|
-
} catch (f) {
|
|
715
|
-
console.error("TachUI Refresh Error:", f);
|
|
716
|
-
} finally {
|
|
717
|
-
e = !1, r.style.opacity = "0", r.style.top = "-50px", i = 0;
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
|
-
n.addEventListener("touchstart", l, { passive: !1 }), n.addEventListener("touchmove", c, { passive: !1 }), n.addEventListener("touchend", m), this.addCleanup(() => {
|
|
721
|
-
n.removeEventListener("touchstart", l), n.removeEventListener("touchmove", c), n.removeEventListener("touchend", m), r.parentElement && r.parentElement.removeChild(r);
|
|
456
|
+
setupViewportObserver(i, t) {
|
|
457
|
+
if (!i.element) return;
|
|
458
|
+
const e = new IntersectionObserver((n) => {
|
|
459
|
+
n.forEach((r) => {
|
|
460
|
+
r.isIntersecting && t.onAppear ? t.onAppear() : !r.isIntersecting && t.onDisappear && t.onDisappear();
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
e.observe(i.element), this.addCleanup(() => {
|
|
464
|
+
e.disconnect();
|
|
722
465
|
});
|
|
723
466
|
}
|
|
724
|
-
addCleanup(
|
|
725
|
-
this.properties._cleanupFunctions || (this.properties._cleanupFunctions = []), this.properties._cleanupFunctions.push(
|
|
467
|
+
addCleanup(i) {
|
|
468
|
+
this.properties._cleanupFunctions || (this.properties._cleanupFunctions = []), this.properties._cleanupFunctions.push(i);
|
|
726
469
|
}
|
|
727
470
|
}
|
|
728
|
-
class
|
|
471
|
+
class D extends y {
|
|
729
472
|
constructor() {
|
|
730
|
-
super(...arguments),
|
|
473
|
+
super(...arguments), l(this, "type", "resizable"), l(this, "priority", g.APPEARANCE);
|
|
731
474
|
}
|
|
732
|
-
apply(
|
|
475
|
+
apply(i, t) {
|
|
733
476
|
t.element && t.element instanceof HTMLImageElement && (t.element.style.objectFit = "fill");
|
|
734
477
|
}
|
|
735
478
|
}
|
|
736
479
|
export {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
480
|
+
I as AnimationModifier,
|
|
481
|
+
$ as AppearanceModifier,
|
|
482
|
+
y as BaseModifier,
|
|
483
|
+
H as InteractionModifier,
|
|
484
|
+
k as LayoutModifier,
|
|
485
|
+
R as LifecycleModifier,
|
|
486
|
+
D as ResizableModifier
|
|
744
487
|
};
|
|
745
|
-
//# sourceMappingURL=base.js.map
|