@nativescript/core 9.0.11-next.1 → 9.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +19 -0
- package/README.md +41 -5
- package/abortcontroller/abortsignal.d.ts +23 -0
- package/abortcontroller/abortsignal.js +57 -0
- package/abortcontroller/abortsignal.js.map +1 -0
- package/abortcontroller/index.d.ts +20 -0
- package/abortcontroller/index.js +52 -0
- package/abortcontroller/index.js.map +1 -0
- package/accessibility/accessibility-common.d.ts +282 -0
- package/accessibility/accessibility-common.js +416 -0
- package/accessibility/accessibility-common.js.map +1 -0
- package/accessibility/accessibility-properties.d.ts +24 -0
- package/accessibility/accessibility-properties.js +118 -0
- package/accessibility/accessibility-properties.js.map +1 -0
- package/accessibility/index.d.ts +1 -0
- package/accessibility/index.js +2 -0
- package/accessibility/index.js.map +1 -0
- package/animation-frame/animation-native.android.d.ts +1 -0
- package/animation-frame/animation-native.android.js +4 -0
- package/animation-frame/animation-native.android.js.map +1 -0
- package/animation-frame/animation-native.ios.d.ts +1 -0
- package/animation-frame/animation-native.ios.js +3 -0
- package/animation-frame/animation-native.ios.js.map +1 -0
- package/animation-frame/index.js +81 -0
- package/animation-frame/index.js.map +1 -0
- package/application/application-common.d.ts +247 -0
- package/application/application-common.js +578 -0
- package/application/application-common.js.map +1 -0
- package/application/application-interfaces.d.ts +220 -0
- package/application/application-interfaces.js +2 -0
- package/application/application-interfaces.js.map +1 -0
- package/application/application-shims.d.ts +378 -0
- package/application/application-shims.js +380 -0
- package/application/application-shims.js.map +1 -0
- package/application/application.android.d.ts +81 -0
- package/application/application.android.js +1233 -0
- package/application/application.android.js.map +1 -0
- package/application/application.ios.d.ts +145 -0
- package/application/application.ios.js +1481 -0
- package/application/application.ios.js.map +1 -0
- package/application/helpers-common.d.ts +50 -0
- package/application/helpers-common.js +153 -0
- package/application/helpers-common.js.map +1 -0
- package/application/helpers.android.d.ts +8 -0
- package/application/helpers.android.js +119 -0
- package/application/helpers.android.js.map +1 -0
- package/application/helpers.ios.d.ts +8 -0
- package/application/helpers.ios.js +24 -0
- package/application/helpers.ios.js.map +1 -0
- package/application/index.android.d.ts +2 -0
- package/application/index.android.js +3 -0
- package/application/index.android.js.map +1 -0
- package/application/index.ios.d.ts +2 -0
- package/application/index.ios.js +3 -0
- package/application/index.ios.js.map +1 -0
- package/application-settings/application-settings-common.d.ts +2 -0
- package/application-settings/application-settings-common.js +15 -0
- package/application-settings/application-settings-common.js.map +1 -0
- package/application-settings/index.android.d.ts +11 -0
- package/application-settings/index.android.js +124 -0
- package/application-settings/index.android.js.map +1 -0
- package/application-settings/index.ios.d.ts +11 -0
- package/application-settings/index.ios.js +81 -0
- package/application-settings/index.ios.js.map +1 -0
- package/bundle-entry-points.d.ts +1 -0
- package/bundle-entry-points.js +47 -0
- package/bundle-entry-points.js.map +1 -0
- package/color/color-common.d.ts +136 -0
- package/color/color-common.js +341 -0
- package/color/color-common.js.map +1 -0
- package/color/color-types.d.ts +49 -0
- package/color/color-types.js +3 -0
- package/color/color-types.js.map +1 -0
- package/color/color-utils.d.ts +38 -0
- package/color/color-utils.js +213 -0
- package/color/color-utils.js.map +1 -0
- package/color/index.android.d.ts +4 -0
- package/color/index.android.js +7 -0
- package/color/index.android.js.map +1 -0
- package/color/index.ios.d.ts +7 -0
- package/color/index.ios.js +19 -0
- package/color/index.ios.js.map +1 -0
- package/color/known-colors.d.ts +144 -0
- package/color/known-colors.js +165 -0
- package/color/known-colors.js.map +1 -0
- package/config/config.interface.d.ts +297 -0
- package/config/config.interface.js +2 -0
- package/config/config.interface.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +2 -0
- package/config/index.js.map +1 -0
- package/connectivity/index.android.d.ts +11 -0
- package/connectivity/index.android.js +157 -0
- package/connectivity/index.android.js.map +1 -0
- package/connectivity/index.ios.d.ts +11 -0
- package/connectivity/index.ios.js +132 -0
- package/connectivity/index.ios.js.map +1 -0
- package/console/index.d.ts +14 -0
- package/console/index.js +33 -0
- package/console/index.js.map +1 -0
- package/core-types/animation-types.d.ts +11 -0
- package/core-types/animation-types.js +13 -0
- package/core-types/animation-types.js.map +1 -0
- package/core-types/index.d.ts +345 -0
- package/core-types/index.js +290 -0
- package/core-types/index.js.map +1 -0
- package/core-types/validators.d.ts +2 -0
- package/core-types/validators.js +27 -0
- package/core-types/validators.js.map +1 -0
- package/css/CSS3Parser.d.ts +184 -0
- package/css/CSS3Parser.js +534 -0
- package/css/CSS3Parser.js.map +1 -0
- package/css/CSSNativeScript.d.ts +14 -0
- package/css/CSSNativeScript.js +113 -0
- package/css/CSSNativeScript.js.map +1 -0
- package/css/css-tree-parser.d.ts +1 -0
- package/css/css-tree-parser.js +133 -0
- package/css/css-tree-parser.js.map +1 -0
- package/css/lib/parse/index.d.ts +1 -0
- package/css/lib/parse/index.js +500 -0
- package/css/lib/parse/index.js.map +1 -0
- package/css/parser.d.ts +70 -0
- package/css/parser.js +517 -0
- package/css/parser.js.map +1 -0
- package/css/reworkcss.d.ts +44 -0
- package/css/reworkcss.js +5 -0
- package/css/reworkcss.js.map +1 -0
- package/css/system-classes.d.ts +12 -0
- package/css/system-classes.js +47 -0
- package/css/system-classes.js.map +1 -0
- package/css-mediaquery/index.d.ts +27 -0
- package/css-mediaquery/index.js +118 -0
- package/css-mediaquery/index.js.map +1 -0
- package/css-value/reworkcss-value.d.ts +31 -0
- package/css-value/reworkcss-value.js +91 -0
- package/css-value/reworkcss-value.js.map +1 -0
- package/data/observable/index.d.ts +213 -0
- package/data/observable/index.js +452 -0
- package/data/observable/index.js.map +1 -0
- package/data/observable-array/index.d.ts +215 -0
- package/data/observable-array/index.js +325 -0
- package/data/observable-array/index.js.map +1 -0
- package/data/virtual-array/index.d.ts +72 -0
- package/data/virtual-array/index.js +133 -0
- package/data/virtual-array/index.js.map +1 -0
- package/debugger/InspectorBackendCommands.d.ts +1056 -0
- package/debugger/InspectorBackendCommands.js +578 -0
- package/debugger/InspectorBackendCommands.js.map +1 -0
- package/debugger/devtools-elements-interfaces.d.ts +16 -0
- package/debugger/devtools-elements-interfaces.js +2 -0
- package/debugger/devtools-elements-interfaces.js.map +1 -0
- package/debugger/devtools-elements.common.d.ts +7 -0
- package/debugger/devtools-elements.common.js +93 -0
- package/debugger/devtools-elements.common.js.map +1 -0
- package/debugger/devtools-elements.js +20 -0
- package/debugger/devtools-elements.js.map +1 -0
- package/debugger/dom-types.d.ts +24 -0
- package/debugger/dom-types.js +152 -0
- package/debugger/dom-types.js.map +1 -0
- package/debugger/index.d.ts +87 -0
- package/debugger/index.js +118 -0
- package/debugger/index.js.map +1 -0
- package/debugger/webinspector-css.d.ts +34 -0
- package/debugger/webinspector-css.js +72 -0
- package/debugger/webinspector-css.js.map +1 -0
- package/debugger/webinspector-dom.d.ts +33 -0
- package/debugger/webinspector-dom.js +75 -0
- package/debugger/webinspector-dom.js.map +1 -0
- package/debugger/webinspector-network.android.d.ts +79 -0
- package/debugger/webinspector-network.android.js +208 -0
- package/debugger/webinspector-network.android.js.map +1 -0
- package/debugger/webinspector-network.ios.d.ts +79 -0
- package/debugger/webinspector-network.ios.js +204 -0
- package/debugger/webinspector-network.ios.js.map +1 -0
- package/fetch/index.d.ts +72 -0
- package/fetch/index.js +529 -0
- package/fetch/index.js.map +1 -0
- package/file-system/file-system-access.android.d.ts +151 -0
- package/file-system/file-system-access.android.js +1162 -0
- package/file-system/file-system-access.android.js.map +1 -0
- package/file-system/file-system-access.ios.d.ts +85 -0
- package/file-system/file-system-access.ios.js +622 -0
- package/file-system/file-system-access.ios.js.map +1 -0
- package/file-system/index.js +873 -0
- package/file-system/index.js.map +1 -0
- package/fps-meter/fps-native.android.d.ts +11 -0
- package/fps-meter/fps-native.android.js +62 -0
- package/fps-meter/fps-native.android.js.map +1 -0
- package/fps-meter/fps-native.ios.d.ts +10 -0
- package/fps-meter/fps-native.ios.js +56 -0
- package/fps-meter/fps-native.ios.js.map +1 -0
- package/fps-meter/index.js +77 -0
- package/fps-meter/index.js.map +1 -0
- package/globals/global-utils.d.ts +27 -0
- package/globals/global-utils.js +67 -0
- package/globals/global-utils.js.map +1 -0
- package/globals/index.d.ts +3 -0
- package/globals/index.js +313 -0
- package/globals/index.js.map +1 -0
- package/http/http-interfaces.d.ts +84 -0
- package/http/http-interfaces.js +6 -0
- package/http/http-interfaces.js.map +1 -0
- package/http/http-request/http-request-common.d.ts +1 -0
- package/http/http-request/http-request-common.js +15 -0
- package/http/http-request/http-request-common.js.map +1 -0
- package/http/http-request/index.android.d.ts +3 -0
- package/http/http-request/index.android.js +274 -0
- package/http/http-request/index.android.js.map +1 -0
- package/http/http-request/index.ios.d.ts +3 -0
- package/http/http-request/index.ios.js +221 -0
- package/http/http-request/index.ios.js.map +1 -0
- package/http/http-shared.d.ts +3 -0
- package/http/http-shared.js +2 -0
- package/http/http-shared.js.map +1 -0
- package/http/index.js +70 -0
- package/http/index.js.map +1 -0
- package/image-asset/image-asset-common.d.ts +25 -0
- package/image-asset/image-asset-common.js +74 -0
- package/image-asset/image-asset-common.js.map +1 -0
- package/image-asset/index.android.d.ts +9 -0
- package/image-asset/index.android.js +33 -0
- package/image-asset/index.android.js.map +1 -0
- package/image-asset/index.ios.d.ts +10 -0
- package/image-asset/index.ios.js +57 -0
- package/image-asset/index.ios.js.map +1 -0
- package/image-source/image-source-common.d.ts +4 -0
- package/image-source/image-source-common.js +21 -0
- package/image-source/image-source-common.js.map +1 -0
- package/image-source/index.android.d.ts +58 -0
- package/image-source/index.android.js +371 -0
- package/image-source/index.android.js.map +1 -0
- package/image-source/index.ios.d.ts +59 -0
- package/image-source/index.ios.js +454 -0
- package/image-source/index.ios.js.map +1 -0
- package/index.js +38 -0
- package/index.js.map +1 -0
- package/inspector_modules.d.ts +7 -0
- package/inspector_modules.js +233 -0
- package/inspector_modules.js.map +1 -0
- package/matrix/index.js +45 -0
- package/matrix/index.js.map +1 -0
- package/media-query-list/index.d.ts +21 -0
- package/media-query-list/index.js +159 -0
- package/media-query-list/index.js.map +1 -0
- package/module-name-resolver/helpers.d.ts +14 -0
- package/module-name-resolver/helpers.js +27 -0
- package/module-name-resolver/helpers.js.map +1 -0
- package/module-name-resolver/index.d.ts +14 -0
- package/module-name-resolver/index.js +67 -0
- package/module-name-resolver/index.js.map +1 -0
- package/module-name-resolver/non-bundle-workflow-compat.d.ts +6 -0
- package/module-name-resolver/non-bundle-workflow-compat.js +128 -0
- package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -0
- package/module-name-resolver/qualifier-matcher/index.d.ts +11 -0
- package/module-name-resolver/qualifier-matcher/index.js +141 -0
- package/module-name-resolver/qualifier-matcher/index.js.map +1 -0
- package/package.json +86 -86
- package/platform/common.d.ts +10 -0
- package/platform/common.js +14 -0
- package/platform/common.js.map +1 -0
- package/platform/device/index.android.d.ts +20 -0
- package/platform/device/index.android.js +78 -0
- package/platform/device/index.android.js.map +1 -0
- package/platform/device/index.ios.d.ts +19 -0
- package/platform/device/index.ios.js +69 -0
- package/platform/device/index.ios.js.map +1 -0
- package/platform/index.js +4 -0
- package/platform/index.js.map +1 -0
- package/platform/screen/index.android.d.ts +16 -0
- package/platform/screen/index.android.js +41 -0
- package/platform/screen/index.android.js.map +1 -0
- package/platform/screen/index.ios.d.ts +15 -0
- package/platform/screen/index.ios.js +35 -0
- package/platform/screen/index.ios.js.map +1 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Resources/Info.plist +52 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Resources/Info.plist +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Resources/Info.plist +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/profiling/index.js +273 -0
- package/profiling/index.js.map +1 -0
- package/text/formatted-string.js +2 -0
- package/text/formatted-string.js.map +1 -0
- package/text/index.android.d.ts +9 -0
- package/text/index.android.js +11 -0
- package/text/index.android.js.map +1 -0
- package/text/index.ios.d.ts +9 -0
- package/text/index.ios.js +11 -0
- package/text/index.ios.js.map +1 -0
- package/text/span.js +2 -0
- package/text/span.js.map +1 -0
- package/text/text-common.d.ts +12 -0
- package/text/text-common.js +111 -0
- package/text/text-common.js.map +1 -0
- package/timer/index.android.d.ts +4 -0
- package/timer/index.android.js +83 -0
- package/timer/index.android.js.map +1 -0
- package/timer/index.ios.d.ts +4 -0
- package/timer/index.ios.js +68 -0
- package/timer/index.ios.js.map +1 -0
- package/trace/index.js +255 -0
- package/trace/index.js.map +1 -0
- package/ui/action-bar/action-bar-common.d.ts +85 -0
- package/ui/action-bar/action-bar-common.js +381 -0
- package/ui/action-bar/action-bar-common.js.map +1 -0
- package/ui/action-bar/index.android.d.ts +55 -0
- package/ui/action-bar/index.android.js +502 -0
- package/ui/action-bar/index.android.js.map +1 -0
- package/ui/action-bar/index.ios.d.ts +64 -0
- package/ui/action-bar/index.ios.js +614 -0
- package/ui/action-bar/index.ios.js.map +1 -0
- package/ui/activity-indicator/activity-indicator-common.d.ts +9 -0
- package/ui/activity-indicator/activity-indicator-common.js +22 -0
- package/ui/activity-indicator/activity-indicator-common.js.map +1 -0
- package/ui/activity-indicator/index.android.d.ts +15 -0
- package/ui/activity-indicator/index.android.js +54 -0
- package/ui/activity-indicator/index.android.js.map +1 -0
- package/ui/activity-indicator/index.ios.d.ts +16 -0
- package/ui/activity-indicator/index.ios.js +54 -0
- package/ui/activity-indicator/index.ios.js.map +1 -0
- package/ui/animation/animation-common.d.ts +30 -0
- package/ui/animation/animation-common.js +239 -0
- package/ui/animation/animation-common.js.map +1 -0
- package/ui/animation/animation-shared.d.ts +84 -0
- package/ui/animation/animation-shared.js +4 -0
- package/ui/animation/animation-shared.js.map +1 -0
- package/ui/animation/animation-types.d.ts +1 -0
- package/ui/animation/animation-types.js +3 -0
- package/ui/animation/animation-types.js.map +1 -0
- package/ui/animation/index.android.d.ts +23 -0
- package/ui/animation/index.android.js +432 -0
- package/ui/animation/index.android.js.map +1 -0
- package/ui/animation/index.ios.d.ts +28 -0
- package/ui/animation/index.ios.js +808 -0
- package/ui/animation/index.ios.js.map +1 -0
- package/ui/animation/keyframe-animation.d.ts +76 -0
- package/ui/animation/keyframe-animation.js +238 -0
- package/ui/animation/keyframe-animation.js.map +1 -0
- package/ui/builder/binding-builder.d.ts +13 -0
- package/ui/builder/binding-builder.js +171 -0
- package/ui/builder/binding-builder.js.map +1 -0
- package/ui/builder/component-builder/index.d.ts +7 -0
- package/ui/builder/component-builder/index.js +219 -0
- package/ui/builder/component-builder/index.js.map +1 -0
- package/ui/builder/index.d.ts +193 -0
- package/ui/builder/index.js +643 -0
- package/ui/builder/index.js.map +1 -0
- package/ui/button/button-common.d.ts +9 -0
- package/ui/button/button-common.js +26 -0
- package/ui/button/button-common.js.map +1 -0
- package/ui/button/index.android.d.ts +29 -0
- package/ui/button/index.android.js +166 -0
- package/ui/button/index.android.js.map +1 -0
- package/ui/button/index.ios.d.ts +37 -0
- package/ui/button/index.ios.js +316 -0
- package/ui/button/index.ios.js.map +1 -0
- package/ui/content-view/index.js +87 -0
- package/ui/content-view/index.js.map +1 -0
- package/ui/core/bindable/bindable-expressions.d.ts +7 -0
- package/ui/core/bindable/bindable-expressions.js +255 -0
- package/ui/core/bindable/bindable-expressions.js.map +1 -0
- package/ui/core/bindable/bindable-resources.d.ts +2 -0
- package/ui/core/bindable/bindable-resources.js +8 -0
- package/ui/core/bindable/bindable-resources.js.map +1 -0
- package/ui/core/bindable/bindable-types.d.ts +37 -0
- package/ui/core/bindable/bindable-types.js +3 -0
- package/ui/core/bindable/bindable-types.js.map +1 -0
- package/ui/core/bindable/index.d.ts +53 -0
- package/ui/core/bindable/index.js +555 -0
- package/ui/core/bindable/index.js.map +1 -0
- package/ui/core/control-state-change/index.android.d.ts +6 -0
- package/ui/core/control-state-change/index.android.js +8 -0
- package/ui/core/control-state-change/index.android.js.map +1 -0
- package/ui/core/control-state-change/index.ios.d.ts +10 -0
- package/ui/core/control-state-change/index.ios.js +43 -0
- package/ui/core/control-state-change/index.ios.js.map +1 -0
- package/ui/core/properties/index.d.ts +114 -0
- package/ui/core/properties/index.js +1290 -0
- package/ui/core/properties/index.js.map +1 -0
- package/ui/core/properties/property-shared.d.ts +35 -0
- package/ui/core/properties/property-shared.js +16 -0
- package/ui/core/properties/property-shared.js.map +1 -0
- package/ui/core/view/index.android.d.ts +144 -0
- package/ui/core/view/index.android.js +1576 -0
- package/ui/core/view/index.android.js.map +1 -0
- package/ui/core/view/index.ios.d.ts +151 -0
- package/ui/core/view/index.ios.js +1091 -0
- package/ui/core/view/index.ios.js.map +1 -0
- package/ui/core/view/view-common.d.ts +349 -0
- package/ui/core/view/view-common.js +1147 -0
- package/ui/core/view/view-common.js.map +1 -0
- package/ui/core/view/view-helper/index.android.d.ts +9 -0
- package/ui/core/view/view-helper/index.android.js +56 -0
- package/ui/core/view/view-helper/index.android.js.map +1 -0
- package/ui/core/view/view-helper/index.ios.d.ts +67 -0
- package/ui/core/view/view-helper/index.ios.js +414 -0
- package/ui/core/view/view-helper/index.ios.js.map +1 -0
- package/ui/core/view/view-helper/view-helper-common.d.ts +11 -0
- package/ui/core/view/view-helper/view-helper-common.js +166 -0
- package/ui/core/view/view-helper/view-helper-common.js.map +1 -0
- package/ui/core/view/view-helper/view-helper-shared.d.ts +5 -0
- package/ui/core/view/view-helper/view-helper-shared.js +6 -0
- package/ui/core/view/view-helper/view-helper-shared.js.map +1 -0
- package/ui/core/view/view-interfaces.d.ts +76 -0
- package/ui/core/view/view-interfaces.js +2 -0
- package/ui/core/view/view-interfaces.js.map +1 -0
- package/ui/core/view-base/index.d.ts +597 -0
- package/ui/core/view-base/index.js +1154 -0
- package/ui/core/view-base/index.js.map +1 -0
- package/ui/core/view-base/utils.d.ts +1 -0
- package/ui/core/view-base/utils.js +9 -0
- package/ui/core/view-base/utils.js.map +1 -0
- package/ui/core/weak-event-listener/index.js +123 -0
- package/ui/core/weak-event-listener/index.js.map +1 -0
- package/ui/date-picker/date-picker-common.d.ts +28 -0
- package/ui/date-picker/date-picker-common.js +82 -0
- package/ui/date-picker/date-picker-common.js.map +1 -0
- package/ui/date-picker/index.android.d.ts +19 -0
- package/ui/date-picker/index.android.js +131 -0
- package/ui/date-picker/index.android.js.map +1 -0
- package/ui/date-picker/index.ios.d.ts +27 -0
- package/ui/date-picker/index.ios.js +165 -0
- package/ui/date-picker/index.ios.js.map +1 -0
- package/ui/dialogs/dialogs-common.d.ts +211 -0
- package/ui/dialogs/dialogs-common.js +167 -0
- package/ui/dialogs/dialogs-common.js.map +1 -0
- package/ui/dialogs/index.android.d.ts +20 -0
- package/ui/dialogs/index.android.js +330 -0
- package/ui/dialogs/index.android.js.map +1 -0
- package/ui/dialogs/index.ios.d.ts +17 -0
- package/ui/dialogs/index.ios.js +293 -0
- package/ui/dialogs/index.ios.js.map +1 -0
- package/ui/editable-text-base/editable-text-base-common.d.ts +36 -0
- package/ui/editable-text-base/editable-text-base-common.js +91 -0
- package/ui/editable-text-base/editable-text-base-common.js.map +1 -0
- package/ui/editable-text-base/index.android.d.ts +48 -0
- package/ui/editable-text-base/index.android.js +497 -0
- package/ui/editable-text-base/index.android.js.map +1 -0
- package/ui/editable-text-base/index.ios.d.ts +20 -0
- package/ui/editable-text-base/index.ios.js +255 -0
- package/ui/editable-text-base/index.ios.js.map +1 -0
- package/ui/embedding/index.android.d.ts +4 -0
- package/ui/embedding/index.android.js +14 -0
- package/ui/embedding/index.android.js.map +1 -0
- package/ui/embedding/index.ios.d.ts +1 -0
- package/ui/embedding/index.ios.js +4 -0
- package/ui/embedding/index.ios.js.map +1 -0
- package/ui/enums/enums.js +6 -0
- package/ui/enums/enums.js.map +1 -0
- package/ui/enums/index.js +6 -0
- package/ui/enums/index.js.map +1 -0
- package/ui/frame/activity.android.d.ts +1 -0
- package/ui/frame/activity.android.js +110 -0
- package/ui/frame/activity.android.js.map +1 -0
- package/ui/frame/fragment.android.d.ts +3 -0
- package/ui/frame/fragment.android.js +90 -0
- package/ui/frame/fragment.android.js.map +1 -0
- package/ui/frame/fragment.ios.d.ts +3 -0
- package/ui/frame/fragment.ios.js +4 -0
- package/ui/frame/fragment.ios.js.map +1 -0
- package/ui/frame/fragment.transitions.android.d.ts +40 -0
- package/ui/frame/fragment.transitions.android.js +679 -0
- package/ui/frame/fragment.transitions.android.js.map +1 -0
- package/ui/frame/fragment.transitions.types.d.ts +6 -0
- package/ui/frame/fragment.transitions.types.js +2 -0
- package/ui/frame/fragment.transitions.types.js.map +1 -0
- package/ui/frame/frame-common.d.ts +101 -0
- package/ui/frame/frame-common.js +688 -0
- package/ui/frame/frame-common.js.map +1 -0
- package/ui/frame/frame-helper-for-android.d.ts +37 -0
- package/ui/frame/frame-helper-for-android.js +337 -0
- package/ui/frame/frame-helper-for-android.js.map +1 -0
- package/ui/frame/frame-helpers.d.ts +16 -0
- package/ui/frame/frame-helpers.js +19 -0
- package/ui/frame/frame-helpers.js.map +1 -0
- package/ui/frame/frame-interfaces.d.ts +130 -0
- package/ui/frame/frame-interfaces.js +7 -0
- package/ui/frame/frame-interfaces.js.map +1 -0
- package/ui/frame/frame-stack.d.ts +7 -0
- package/ui/frame/frame-stack.js +41 -0
- package/ui/frame/frame-stack.js.map +1 -0
- package/ui/frame/index.android.d.ts +93 -0
- package/ui/frame/index.android.js +977 -0
- package/ui/frame/index.android.js.map +1 -0
- package/ui/frame/index.ios.d.ts +61 -0
- package/ui/frame/index.ios.js +728 -0
- package/ui/frame/index.ios.js.map +1 -0
- package/ui/gestures/gestures-common.d.ts +32 -0
- package/ui/gestures/gestures-common.js +78 -0
- package/ui/gestures/gestures-common.js.map +1 -0
- package/ui/gestures/gestures-types.d.ts +108 -0
- package/ui/gestures/gestures-types.js +40 -0
- package/ui/gestures/gestures-types.js.map +1 -0
- package/ui/gestures/index.android.d.ts +49 -0
- package/ui/gestures/index.android.js +596 -0
- package/ui/gestures/index.android.js.map +1 -0
- package/ui/gestures/index.ios.d.ts +70 -0
- package/ui/gestures/index.ios.js +510 -0
- package/ui/gestures/index.ios.js.map +1 -0
- package/ui/gestures/touch-manager.d.ts +82 -0
- package/ui/gestures/touch-manager.js +268 -0
- package/ui/gestures/touch-manager.js.map +1 -0
- package/ui/html-view/html-view-common.d.ts +12 -0
- package/ui/html-view/html-view-common.js +31 -0
- package/ui/html-view/html-view-common.js.map +1 -0
- package/ui/html-view/index.android.d.ts +27 -0
- package/ui/html-view/index.android.js +90 -0
- package/ui/html-view/index.android.js.map +1 -0
- package/ui/html-view/index.ios.d.ts +22 -0
- package/ui/html-view/index.ios.js +101 -0
- package/ui/html-view/index.ios.js.map +1 -0
- package/ui/image/image-common.d.ts +45 -0
- package/ui/image/image-common.js +195 -0
- package/ui/image/image-common.js.map +1 -0
- package/ui/image/index.android.d.ts +23 -0
- package/ui/image/index.android.js +171 -0
- package/ui/image/index.android.js.map +1 -0
- package/ui/image/index.ios.d.ts +26 -0
- package/ui/image/index.ios.js +186 -0
- package/ui/image/index.ios.js.map +1 -0
- package/ui/image/symbol-effects-common.d.ts +36 -0
- package/ui/image/symbol-effects-common.js +35 -0
- package/ui/image/symbol-effects-common.js.map +1 -0
- package/ui/image/symbol-effects.android.d.ts +5 -0
- package/ui/image/symbol-effects.android.js +8 -0
- package/ui/image/symbol-effects.android.js.map +1 -0
- package/ui/image/symbol-effects.ios.d.ts +6 -0
- package/ui/image/symbol-effects.ios.js +79 -0
- package/ui/image/symbol-effects.ios.js.map +1 -0
- package/ui/image-cache/image-cache-common.d.ts +40 -0
- package/ui/image-cache/image-cache-common.js +176 -0
- package/ui/image-cache/image-cache-common.js.map +1 -0
- package/ui/image-cache/index.android.d.ts +11 -0
- package/ui/image-cache/index.android.js +74 -0
- package/ui/image-cache/index.android.js.map +1 -0
- package/ui/image-cache/index.ios.d.ts +11 -0
- package/ui/image-cache/index.ios.js +78 -0
- package/ui/image-cache/index.ios.js.map +1 -0
- package/ui/index.d.ts +92 -0
- package/ui/index.js +80 -0
- package/ui/index.js.map +1 -0
- package/ui/label/index.android.d.ts +13 -0
- package/ui/label/index.android.js +47 -0
- package/ui/label/index.android.js.map +1 -0
- package/ui/label/index.ios.d.ts +31 -0
- package/ui/label/index.ios.js +234 -0
- package/ui/label/index.ios.js.map +1 -0
- package/ui/layouts/absolute-layout/absolute-layout-common.d.ts +16 -0
- package/ui/layouts/absolute-layout/absolute-layout-common.js +72 -0
- package/ui/layouts/absolute-layout/absolute-layout-common.js.map +1 -0
- package/ui/layouts/absolute-layout/index.android.d.ts +6 -0
- package/ui/layouts/absolute-layout/index.android.js +26 -0
- package/ui/layouts/absolute-layout/index.android.js.map +1 -0
- package/ui/layouts/absolute-layout/index.ios.d.ts +10 -0
- package/ui/layouts/absolute-layout/index.ios.js +48 -0
- package/ui/layouts/absolute-layout/index.ios.js.map +1 -0
- package/ui/layouts/dock-layout/dock-layout-common.d.ts +14 -0
- package/ui/layouts/dock-layout/dock-layout-common.js +51 -0
- package/ui/layouts/dock-layout/dock-layout-common.js.map +1 -0
- package/ui/layouts/dock-layout/index.android.d.ts +8 -0
- package/ui/layouts/dock-layout/index.android.js +38 -0
- package/ui/layouts/dock-layout/index.android.js.map +1 -0
- package/ui/layouts/dock-layout/index.ios.d.ts +8 -0
- package/ui/layouts/dock-layout/index.ios.js +115 -0
- package/ui/layouts/dock-layout/index.ios.js.map +1 -0
- package/ui/layouts/flexbox-layout/flexbox-layout-common.d.ts +126 -0
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js +403 -0
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +1 -0
- package/ui/layouts/flexbox-layout/index.android.d.ts +23 -0
- package/ui/layouts/flexbox-layout/index.android.js +152 -0
- package/ui/layouts/flexbox-layout/index.android.js.map +1 -0
- package/ui/layouts/flexbox-layout/index.ios.d.ts +44 -0
- package/ui/layouts/flexbox-layout/index.ios.js +1241 -0
- package/ui/layouts/flexbox-layout/index.ios.js.map +1 -0
- package/ui/layouts/grid-layout/grid-layout-common.d.ts +72 -0
- package/ui/layouts/grid-layout/grid-layout-common.js +358 -0
- package/ui/layouts/grid-layout/grid-layout-common.js.map +1 -0
- package/ui/layouts/grid-layout/index.android.d.ts +23 -0
- package/ui/layouts/grid-layout/index.android.js +122 -0
- package/ui/layouts/grid-layout/index.android.js.map +1 -0
- package/ui/layouts/grid-layout/index.ios.d.ts +28 -0
- package/ui/layouts/grid-layout/index.ios.js +778 -0
- package/ui/layouts/grid-layout/index.ios.js.map +1 -0
- package/ui/layouts/index.d.ts +12 -0
- package/ui/layouts/index.js +11 -0
- package/ui/layouts/index.js.map +1 -0
- package/ui/layouts/layout-base-common.d.ts +36 -0
- package/ui/layouts/layout-base-common.js +141 -0
- package/ui/layouts/layout-base-common.js.map +1 -0
- package/ui/layouts/layout-base.android.d.ts +17 -0
- package/ui/layouts/layout-base.android.js +50 -0
- package/ui/layouts/layout-base.android.js.map +1 -0
- package/ui/layouts/layout-base.ios.d.ts +13 -0
- package/ui/layouts/layout-base.ios.js +40 -0
- package/ui/layouts/layout-base.ios.js.map +1 -0
- package/ui/layouts/liquid-glass/index.android.d.ts +5 -0
- package/ui/layouts/liquid-glass/index.android.js +8 -0
- package/ui/layouts/liquid-glass/index.android.js.map +1 -0
- package/ui/layouts/liquid-glass/index.ios.d.ts +10 -0
- package/ui/layouts/liquid-glass/index.ios.js +59 -0
- package/ui/layouts/liquid-glass/index.ios.js.map +1 -0
- package/ui/layouts/liquid-glass/liquid-glass-common.d.ts +3 -0
- package/ui/layouts/liquid-glass/liquid-glass-common.js +4 -0
- package/ui/layouts/liquid-glass/liquid-glass-common.js.map +1 -0
- package/ui/layouts/liquid-glass-container/index.android.d.ts +3 -0
- package/ui/layouts/liquid-glass-container/index.android.js +4 -0
- package/ui/layouts/liquid-glass-container/index.android.js.map +1 -0
- package/ui/layouts/liquid-glass-container/index.ios.d.ts +14 -0
- package/ui/layouts/liquid-glass-container/index.ios.js +121 -0
- package/ui/layouts/liquid-glass-container/index.ios.js.map +1 -0
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.d.ts +4 -0
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.js +5 -0
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.js.map +1 -0
- package/ui/layouts/root-layout/index.android.d.ts +15 -0
- package/ui/layouts/root-layout/index.android.js +126 -0
- package/ui/layouts/root-layout/index.android.js.map +1 -0
- package/ui/layouts/root-layout/index.ios.d.ts +17 -0
- package/ui/layouts/root-layout/index.ios.js +101 -0
- package/ui/layouts/root-layout/index.ios.js.map +1 -0
- package/ui/layouts/root-layout/root-layout-common.d.ts +61 -0
- package/ui/layouts/root-layout/root-layout-common.js +425 -0
- package/ui/layouts/root-layout/root-layout-common.js.map +1 -0
- package/ui/layouts/root-layout/root-layout-stack.d.ts +5 -0
- package/ui/layouts/root-layout/root-layout-stack.js +19 -0
- package/ui/layouts/root-layout/root-layout-stack.js.map +1 -0
- package/ui/layouts/stack-layout/index.android.d.ts +7 -0
- package/ui/layouts/stack-layout/index.android.js +11 -0
- package/ui/layouts/stack-layout/index.android.js.map +1 -0
- package/ui/layouts/stack-layout/index.ios.d.ts +10 -0
- package/ui/layouts/stack-layout/index.ios.js +155 -0
- package/ui/layouts/stack-layout/index.ios.js.map +1 -0
- package/ui/layouts/stack-layout/stack-layout-common.d.ts +8 -0
- package/ui/layouts/stack-layout/stack-layout-common.js +19 -0
- package/ui/layouts/stack-layout/stack-layout-common.js.map +1 -0
- package/ui/layouts/wrap-layout/index.android.d.ts +10 -0
- package/ui/layouts/wrap-layout/index.android.js +18 -0
- package/ui/layouts/wrap-layout/index.android.js.map +1 -0
- package/ui/layouts/wrap-layout/index.ios.d.ts +8 -0
- package/ui/layouts/wrap-layout/index.ios.js +170 -0
- package/ui/layouts/wrap-layout/index.ios.js.map +1 -0
- package/ui/layouts/wrap-layout/wrap-layout-common.d.ts +15 -0
- package/ui/layouts/wrap-layout/wrap-layout-common.js +40 -0
- package/ui/layouts/wrap-layout/wrap-layout-common.js.map +1 -0
- package/ui/list-picker/index.android.d.ts +18 -0
- package/ui/list-picker/index.android.js +177 -0
- package/ui/list-picker/index.android.js.map +1 -0
- package/ui/list-picker/index.ios.d.ts +19 -0
- package/ui/list-picker/index.ios.js +99 -0
- package/ui/list-picker/index.ios.js.map +1 -0
- package/ui/list-picker/list-picker-common.d.ts +23 -0
- package/ui/list-picker/list-picker-common.js +78 -0
- package/ui/list-picker/list-picker-common.js.map +1 -0
- package/ui/list-view/index.android.d.ts +68 -0
- package/ui/list-view/index.android.js +1005 -0
- package/ui/list-view/index.android.js.map +1 -0
- package/ui/list-view/index.ios.d.ts +84 -0
- package/ui/list-view/index.ios.js +996 -0
- package/ui/list-view/index.ios.js.map +1 -0
- package/ui/list-view/list-view-common.d.ts +87 -0
- package/ui/list-view/list-view-common.js +296 -0
- package/ui/list-view/list-view-common.js.map +1 -0
- package/ui/page/events.d.ts +6 -0
- package/ui/page/events.js +7 -0
- package/ui/page/events.js.map +1 -0
- package/ui/page/index.android.d.ts +16 -0
- package/ui/page/index.android.js +106 -0
- package/ui/page/index.android.js.map +1 -0
- package/ui/page/index.ios.d.ts +52 -0
- package/ui/page/index.ios.js +515 -0
- package/ui/page/index.ios.js.map +1 -0
- package/ui/page/page-common.d.ts +73 -0
- package/ui/page/page-common.js +191 -0
- package/ui/page/page-common.js.map +1 -0
- package/ui/placeholder/index.android.d.ts +12 -0
- package/ui/placeholder/index.android.js +21 -0
- package/ui/placeholder/index.android.js.map +1 -0
- package/ui/placeholder/index.js +16 -0
- package/ui/placeholder/index.js.map +1 -0
- package/ui/placeholder/placeholder-common.d.ts +11 -0
- package/ui/placeholder/placeholder-common.js +2 -0
- package/ui/placeholder/placeholder-common.js.map +1 -0
- package/ui/progress/index.android.d.ts +18 -0
- package/ui/progress/index.android.js +65 -0
- package/ui/progress/index.android.js.map +1 -0
- package/ui/progress/index.ios.d.ts +19 -0
- package/ui/progress/index.ios.js +45 -0
- package/ui/progress/index.ios.js.map +1 -0
- package/ui/progress/progress-common.d.ts +15 -0
- package/ui/progress/progress-common.js +34 -0
- package/ui/progress/progress-common.js.map +1 -0
- package/ui/proxy-view-container/index.d.ts +33 -0
- package/ui/proxy-view-container/index.js +247 -0
- package/ui/proxy-view-container/index.js.map +1 -0
- package/ui/repeater/index.d.ts +67 -0
- package/ui/repeater/index.js +225 -0
- package/ui/repeater/index.js.map +1 -0
- package/ui/scroll-view/index.android.d.ts +27 -0
- package/ui/scroll-view/index.android.js +157 -0
- package/ui/scroll-view/index.android.js.map +1 -0
- package/ui/scroll-view/index.ios.d.ts +29 -0
- package/ui/scroll-view/index.ios.js +193 -0
- package/ui/scroll-view/index.ios.js.map +1 -0
- package/ui/scroll-view/scroll-view-common.d.ts +27 -0
- package/ui/scroll-view/scroll-view-common.js +93 -0
- package/ui/scroll-view/scroll-view-common.js.map +1 -0
- package/ui/search-bar/index.android.d.ts +44 -0
- package/ui/search-bar/index.android.js +260 -0
- package/ui/search-bar/index.android.js.map +1 -0
- package/ui/search-bar/index.ios.d.ts +36 -0
- package/ui/search-bar/index.ios.js +203 -0
- package/ui/search-bar/index.ios.js.map +1 -0
- package/ui/search-bar/search-bar-common.d.ts +19 -0
- package/ui/search-bar/search-bar-common.js +43 -0
- package/ui/search-bar/search-bar-common.js.map +1 -0
- package/ui/segmented-bar/index.android.d.ts +42 -0
- package/ui/segmented-bar/index.android.js +280 -0
- package/ui/segmented-bar/index.android.js.map +1 -0
- package/ui/segmented-bar/index.ios.d.ts +28 -0
- package/ui/segmented-bar/index.ios.js +141 -0
- package/ui/segmented-bar/index.ios.js.map +1 -0
- package/ui/segmented-bar/segmented-bar-common.d.ts +37 -0
- package/ui/segmented-bar/segmented-bar-common.js +146 -0
- package/ui/segmented-bar/segmented-bar-common.js.map +1 -0
- package/ui/slider/index.android.d.ts +32 -0
- package/ui/slider/index.android.js +123 -0
- package/ui/slider/index.android.js.map +1 -0
- package/ui/slider/index.ios.d.ts +34 -0
- package/ui/slider/index.ios.js +145 -0
- package/ui/slider/index.ios.js.map +1 -0
- package/ui/slider/slider-common.d.ts +27 -0
- package/ui/slider/slider-common.js +69 -0
- package/ui/slider/slider-common.js.map +1 -0
- package/ui/split-view/index.android.d.ts +3 -0
- package/ui/split-view/index.android.js +4 -0
- package/ui/split-view/index.android.js.map +1 -0
- package/ui/split-view/index.ios.d.ts +51 -0
- package/ui/split-view/index.ios.js +567 -0
- package/ui/split-view/index.ios.js.map +1 -0
- package/ui/split-view/split-view-common.d.ts +59 -0
- package/ui/split-view/split-view-common.js +127 -0
- package/ui/split-view/split-view-common.js.map +1 -0
- package/ui/styling/background-common.d.ts +78 -0
- package/ui/styling/background-common.js +241 -0
- package/ui/styling/background-common.js.map +1 -0
- package/ui/styling/background.android.d.ts +3 -0
- package/ui/styling/background.android.js +82 -0
- package/ui/styling/background.android.js.map +1 -0
- package/ui/styling/background.ios.d.ts +21 -0
- package/ui/styling/background.ios.js +1105 -0
- package/ui/styling/background.ios.js.map +1 -0
- package/ui/styling/box-shadow.d.ts +9 -0
- package/ui/styling/box-shadow.js +3 -0
- package/ui/styling/box-shadow.js.map +1 -0
- package/ui/styling/clip-path-function.d.ts +16 -0
- package/ui/styling/clip-path-function.js +25 -0
- package/ui/styling/clip-path-function.js.map +1 -0
- package/ui/styling/converters.d.ts +2 -0
- package/ui/styling/converters.js +41 -0
- package/ui/styling/converters.js.map +1 -0
- package/ui/styling/css-animation-parser.d.ts +14 -0
- package/ui/styling/css-animation-parser.js +187 -0
- package/ui/styling/css-animation-parser.js.map +1 -0
- package/ui/styling/css-selector.d.ts +270 -0
- package/ui/styling/css-selector.js +934 -0
- package/ui/styling/css-selector.js.map +1 -0
- package/ui/styling/css-shadow.d.ts +19 -0
- package/ui/styling/css-shadow.js +26 -0
- package/ui/styling/css-shadow.js.map +1 -0
- package/ui/styling/css-stroke.d.ts +12 -0
- package/ui/styling/css-stroke.js +19 -0
- package/ui/styling/css-stroke.js.map +1 -0
- package/ui/styling/css-transform.d.ts +2 -0
- package/ui/styling/css-transform.js +110 -0
- package/ui/styling/css-transform.js.map +1 -0
- package/ui/styling/css-utils.d.ts +8 -0
- package/ui/styling/css-utils.js +73 -0
- package/ui/styling/css-utils.js.map +1 -0
- package/ui/styling/font-common.d.ts +62 -0
- package/ui/styling/font-common.js +195 -0
- package/ui/styling/font-common.js.map +1 -0
- package/ui/styling/font-interfaces.d.ts +16 -0
- package/ui/styling/font-interfaces.js +2 -0
- package/ui/styling/font-interfaces.js.map +1 -0
- package/ui/styling/font.android.d.ts +15 -0
- package/ui/styling/font.android.js +226 -0
- package/ui/styling/font.android.js.map +1 -0
- package/ui/styling/font.ios.d.ts +18 -0
- package/ui/styling/font.ios.js +159 -0
- package/ui/styling/font.ios.js.map +1 -0
- package/ui/styling/length-shared.d.ts +52 -0
- package/ui/styling/length-shared.js +173 -0
- package/ui/styling/length-shared.js.map +1 -0
- package/ui/styling/linear-gradient.d.ts +13 -0
- package/ui/styling/linear-gradient.js +48 -0
- package/ui/styling/linear-gradient.js.map +1 -0
- package/ui/styling/style/index.d.ts +166 -0
- package/ui/styling/style/index.js +67 -0
- package/ui/styling/style/index.js.map +1 -0
- package/ui/styling/style-properties.d.ts +63 -0
- package/ui/styling/style-properties.js +1151 -0
- package/ui/styling/style-properties.js.map +1 -0
- package/ui/styling/style-scope.d.ts +87 -0
- package/ui/styling/style-scope.js +1020 -0
- package/ui/styling/style-scope.js.map +1 -0
- package/ui/styling/styling-profile.d.ts +1 -0
- package/ui/styling/styling-profile.js +4 -0
- package/ui/styling/styling-profile.js.map +1 -0
- package/ui/styling/styling-shared.d.ts +3 -0
- package/ui/styling/styling-shared.js +6 -0
- package/ui/styling/styling-shared.js.map +1 -0
- package/ui/switch/index.android.d.ts +23 -0
- package/ui/switch/index.android.js +111 -0
- package/ui/switch/index.android.js.map +1 -0
- package/ui/switch/index.ios.d.ts +26 -0
- package/ui/switch/index.ios.js +185 -0
- package/ui/switch/index.ios.js.map +1 -0
- package/ui/switch/switch-common.d.ts +12 -0
- package/ui/switch/switch-common.js +37 -0
- package/ui/switch/switch-common.js.map +1 -0
- package/ui/tab-view/index.android.d.ts +73 -0
- package/ui/tab-view/index.android.js +646 -0
- package/ui/tab-view/index.android.js.map +1 -0
- package/ui/tab-view/index.ios.d.ts +80 -0
- package/ui/tab-view/index.ios.js +877 -0
- package/ui/tab-view/index.ios.js.map +1 -0
- package/ui/tab-view/tab-view-common.d.ts +86 -0
- package/ui/tab-view/tab-view-common.js +277 -0
- package/ui/tab-view/tab-view-common.js.map +1 -0
- package/ui/text-base/formatted-string.js +163 -0
- package/ui/text-base/formatted-string.js.map +1 -0
- package/ui/text-base/index.android.d.ts +79 -0
- package/ui/text-base/index.android.js +589 -0
- package/ui/text-base/index.android.js.map +1 -0
- package/ui/text-base/index.ios.d.ts +53 -0
- package/ui/text-base/index.ios.js +452 -0
- package/ui/text-base/index.ios.js.map +1 -0
- package/ui/text-base/span.js +113 -0
- package/ui/text-base/span.js.map +1 -0
- package/ui/text-base/text-base-common.d.ts +99 -0
- package/ui/text-base/text-base-common.js +324 -0
- package/ui/text-base/text-base-common.js.map +1 -0
- package/ui/text-field/index.android.d.ts +10 -0
- package/ui/text-field/index.android.js +92 -0
- package/ui/text-field/index.android.js.map +1 -0
- package/ui/text-field/index.ios.d.ts +56 -0
- package/ui/text-field/index.ios.js +315 -0
- package/ui/text-field/index.ios.js.map +1 -0
- package/ui/text-field/text-field-common.d.ts +11 -0
- package/ui/text-field/text-field-common.js +25 -0
- package/ui/text-field/text-field-common.js.map +1 -0
- package/ui/text-view/index.android.d.ts +8 -0
- package/ui/text-view/index.android.js +24 -0
- package/ui/text-view/index.android.js.map +1 -0
- package/ui/text-view/index.ios.d.ts +59 -0
- package/ui/text-view/index.ios.js +432 -0
- package/ui/text-view/index.ios.js.map +1 -0
- package/ui/text-view/text-view-common.d.ts +32 -0
- package/ui/text-view/text-view-common.js +39 -0
- package/ui/text-view/text-view-common.js.map +1 -0
- package/ui/time-picker/index.android.d.ts +10 -0
- package/ui/time-picker/index.android.js +79 -0
- package/ui/time-picker/index.android.js.map +1 -0
- package/ui/time-picker/index.ios.d.ts +31 -0
- package/ui/time-picker/index.ios.js +138 -0
- package/ui/time-picker/index.ios.js.map +1 -0
- package/ui/time-picker/time-picker-common.d.ts +31 -0
- package/ui/time-picker/time-picker-common.js +176 -0
- package/ui/time-picker/time-picker-common.js.map +1 -0
- package/ui/transition/fade-transition.android.d.ts +4 -0
- package/ui/transition/fade-transition.android.js +28 -0
- package/ui/transition/fade-transition.android.js.map +1 -0
- package/ui/transition/fade-transition.ios.d.ts +17 -0
- package/ui/transition/fade-transition.ios.js +64 -0
- package/ui/transition/fade-transition.ios.js.map +1 -0
- package/ui/transition/flip-transition.android.d.ts +6 -0
- package/ui/transition/flip-transition.android.js +90 -0
- package/ui/transition/flip-transition.android.js.map +1 -0
- package/ui/transition/index.android.d.ts +19 -0
- package/ui/transition/index.android.js +37 -0
- package/ui/transition/index.android.js.map +1 -0
- package/ui/transition/index.ios.d.ts +14 -0
- package/ui/transition/index.ios.js +30 -0
- package/ui/transition/index.ios.js.map +1 -0
- package/ui/transition/modal-transition.android.d.ts +5 -0
- package/ui/transition/modal-transition.android.js +7 -0
- package/ui/transition/modal-transition.android.js.map +1 -0
- package/ui/transition/modal-transition.ios.d.ts +34 -0
- package/ui/transition/modal-transition.ios.js +175 -0
- package/ui/transition/modal-transition.ios.js.map +1 -0
- package/ui/transition/page-transition.android.d.ts +9 -0
- package/ui/transition/page-transition.android.js +284 -0
- package/ui/transition/page-transition.android.js.map +1 -0
- package/ui/transition/page-transition.ios.d.ts +35 -0
- package/ui/transition/page-transition.ios.js +193 -0
- package/ui/transition/page-transition.ios.js.map +1 -0
- package/ui/transition/shared-transition-helper.android.d.ts +9 -0
- package/ui/transition/shared-transition-helper.android.js +10 -0
- package/ui/transition/shared-transition-helper.android.js.map +1 -0
- package/ui/transition/shared-transition-helper.ios.d.ts +14 -0
- package/ui/transition/shared-transition-helper.ios.js +539 -0
- package/ui/transition/shared-transition-helper.ios.js.map +1 -0
- package/ui/transition/shared-transition.d.ts +271 -0
- package/ui/transition/shared-transition.js +215 -0
- package/ui/transition/shared-transition.js.map +1 -0
- package/ui/transition/slide-transition.android.d.ts +7 -0
- package/ui/transition/slide-transition.android.js +116 -0
- package/ui/transition/slide-transition.android.js.map +1 -0
- package/ui/transition/slide-transition.ios.d.ts +19 -0
- package/ui/transition/slide-transition.ios.js +94 -0
- package/ui/transition/slide-transition.ios.js.map +1 -0
- package/ui/utils.android.d.ts +5 -0
- package/ui/utils.android.js +16 -0
- package/ui/utils.android.js.map +1 -0
- package/ui/utils.ios.d.ts +11 -0
- package/ui/utils.ios.js +66 -0
- package/ui/utils.ios.js.map +1 -0
- package/ui/web-view/index.android.d.ts +18 -0
- package/ui/web-view/index.android.js +173 -0
- package/ui/web-view/index.android.js.map +1 -0
- package/ui/web-view/index.ios.d.ts +27 -0
- package/ui/web-view/index.ios.js +246 -0
- package/ui/web-view/index.ios.js.map +1 -0
- package/ui/web-view/web-view-common.d.ts +30 -0
- package/ui/web-view/web-view-common.js +74 -0
- package/ui/web-view/web-view-common.js.map +1 -0
- package/ui/web-view/web-view-interfaces.d.ts +11 -0
- package/ui/web-view/web-view-interfaces.js +2 -0
- package/ui/web-view/web-view-interfaces.js.map +1 -0
- package/utils/animation-helpers.d.ts +27 -0
- package/utils/animation-helpers.js +48 -0
- package/utils/animation-helpers.js.map +1 -0
- package/utils/common.d.ts +28 -0
- package/utils/common.js +158 -0
- package/utils/common.js.map +1 -0
- package/utils/constants.android.d.ts +2 -0
- package/utils/constants.android.js +5 -0
- package/utils/constants.android.js.map +1 -0
- package/utils/constants.ios.d.ts +2 -0
- package/utils/constants.ios.js +5 -0
- package/utils/constants.ios.js.map +1 -0
- package/utils/debug-source.d.ts +19 -0
- package/utils/debug-source.js +78 -0
- package/utils/debug-source.js.map +1 -0
- package/utils/debug.js +3 -0
- package/utils/debug.js.map +1 -0
- package/utils/index.android.d.ts +26 -0
- package/utils/index.android.js +205 -0
- package/utils/index.android.js.map +1 -0
- package/utils/index.ios.d.ts +22 -0
- package/utils/index.ios.js +113 -0
- package/utils/index.ios.js.map +1 -0
- package/utils/layout-helper/index.android.d.ts +25 -0
- package/utils/layout-helper/index.android.js +86 -0
- package/utils/layout-helper/index.android.js.map +1 -0
- package/utils/layout-helper/index.ios.d.ts +25 -0
- package/utils/layout-helper/index.ios.js +68 -0
- package/utils/layout-helper/index.ios.js.map +1 -0
- package/utils/layout-helper/layout-helper-common.d.ts +5 -0
- package/utils/layout-helper/layout-helper-common.js +49 -0
- package/utils/layout-helper/layout-helper-common.js.map +1 -0
- package/utils/layout-helper/layout-helper-shared.d.ts +9 -0
- package/utils/layout-helper/layout-helper-shared.js +13 -0
- package/utils/layout-helper/layout-helper-shared.js.map +1 -0
- package/utils/lazy.js +5 -0
- package/utils/lazy.js.map +1 -0
- package/utils/macrotask-scheduler.js +26 -0
- package/utils/macrotask-scheduler.js.map +1 -0
- package/utils/mainthread-helper.android.d.ts +3 -0
- package/utils/mainthread-helper.android.js +28 -0
- package/utils/mainthread-helper.android.js.map +1 -0
- package/utils/mainthread-helper.ios.d.ts +3 -0
- package/utils/mainthread-helper.ios.js +17 -0
- package/utils/mainthread-helper.ios.js.map +1 -0
- package/utils/module-merge.d.ts +1 -0
- package/utils/module-merge.js +8 -0
- package/utils/module-merge.js.map +1 -0
- package/utils/native-helper-for-android.d.ts +45 -0
- package/utils/native-helper-for-android.js +376 -0
- package/utils/native-helper-for-android.js.map +1 -0
- package/utils/native-helper.android.d.ts +42 -0
- package/utils/native-helper.android.js +30 -0
- package/utils/native-helper.android.js.map +1 -0
- package/utils/native-helper.ios.d.ts +79 -0
- package/utils/native-helper.ios.js +339 -0
- package/utils/native-helper.ios.js.map +1 -0
- package/utils/number-utils.d.ts +19 -0
- package/utils/number-utils.js +37 -0
- package/utils/number-utils.js.map +1 -0
- package/utils/platform-check.d.ts +4 -0
- package/utils/platform-check.js +21 -0
- package/utils/platform-check.js.map +1 -0
- package/utils/shared.d.ts +17 -0
- package/utils/shared.js +40 -0
- package/utils/shared.js.map +1 -0
- package/utils/types.js +104 -0
- package/utils/types.js.map +1 -0
- package/utils/utils-shared.d.ts +1 -0
- package/utils/utils-shared.js +8 -0
- package/utils/utils-shared.js.map +1 -0
- package/wgc/atob.d.ts +1 -0
- package/wgc/atob.js +9 -0
- package/wgc/atob.js.map +1 -0
- package/wgc/btoa.d.ts +1 -0
- package/wgc/btoa.js +9 -0
- package/wgc/btoa.js.map +1 -0
- package/wgc/crypto/SubtleCrypto.d.ts +63 -0
- package/wgc/crypto/SubtleCrypto.js +551 -0
- package/wgc/crypto/SubtleCrypto.js.map +1 -0
- package/wgc/crypto/index.d.ts +8 -0
- package/wgc/crypto/index.js +32 -0
- package/wgc/crypto/index.js.map +1 -0
- package/wgc/index.d.ts +2 -0
- package/wgc/index.js +3 -0
- package/wgc/index.js.map +1 -0
- package/xhr/index.d.ts +113 -0
- package/xhr/index.js +486 -0
- package/xhr/index.js.map +1 -0
- package/xml/index.d.ts +108 -0
- package/xml/index.js +574 -0
- package/xml/index.js.map +1 -0
- package/css/package.json +0 -36
- package/css-value/package.json +0 -23
|
@@ -0,0 +1,1147 @@
|
|
|
1
|
+
import { booleanConverter, ViewBase } from '../view-base';
|
|
2
|
+
import { getEventOrGestureName } from '../bindable';
|
|
3
|
+
import { layout } from '../../../utils';
|
|
4
|
+
import { isObject } from '../../../utils/types';
|
|
5
|
+
import { sanitizeModuleName } from '../../../utils/common';
|
|
6
|
+
import { Property, InheritedProperty, CssProperty } from '../properties';
|
|
7
|
+
import { Style } from '../../styling/style';
|
|
8
|
+
import { ViewHelper } from './view-helper';
|
|
9
|
+
import { setupAccessibleView } from '../../../application/helpers';
|
|
10
|
+
import { PercentLength } from '../../styling/length-shared';
|
|
11
|
+
import { observe as gestureObserve, GestureTypes, fromString as gestureFromString, toString as gestureToString, TouchManager } from '../../gestures';
|
|
12
|
+
import { CSSUtils } from '../../../css/system-classes';
|
|
13
|
+
import { Builder } from '../../builder';
|
|
14
|
+
import { StyleScope } from '../../styling/style-scope';
|
|
15
|
+
import { Animation } from '../../animation';
|
|
16
|
+
import { getFontScale } from '../../../accessibility';
|
|
17
|
+
import { accessibilityHintProperty, accessibilityIdentifierProperty, accessibilityLabelProperty, accessibilityValueProperty, accessibilityIgnoresInvertColorsProperty } from '../../../accessibility/accessibility-properties';
|
|
18
|
+
import { accessibilityBlurEvent, accessibilityFocusChangedEvent, accessibilityFocusEvent, accessibilityPerformEscapeEvent } from '../../../accessibility';
|
|
19
|
+
import { SharedTransition } from '../../transition/shared-transition';
|
|
20
|
+
import { Trace } from '../../styling/styling-shared';
|
|
21
|
+
// helpers (these are okay re-exported here)
|
|
22
|
+
export * from './view-helper';
|
|
23
|
+
export function CSSType(type) {
|
|
24
|
+
return (cls) => {
|
|
25
|
+
cls.prototype.cssType = type;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function viewMatchesModuleContext(view, context, types) {
|
|
29
|
+
return context && view._moduleName && context.type && types.some((type) => type === context.type) && context.path && context.path.includes(view._moduleName);
|
|
30
|
+
}
|
|
31
|
+
export function PseudoClassHandler(...pseudoClasses) {
|
|
32
|
+
const stateEventNames = pseudoClasses.map((s) => ':' + s);
|
|
33
|
+
return (target, propertyKey, descriptor) => {
|
|
34
|
+
// This will help keep track of pseudo-class subscription changes
|
|
35
|
+
const subscribeKey = Symbol(propertyKey + '_flag');
|
|
36
|
+
function onSubscribe(subscribe) {
|
|
37
|
+
if (subscribe != !!this[subscribeKey]) {
|
|
38
|
+
this[subscribeKey] = subscribe;
|
|
39
|
+
this[propertyKey](subscribe);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
for (const eventName of stateEventNames) {
|
|
43
|
+
target[eventName] = onSubscribe;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export const _rootModalViews = new Array();
|
|
48
|
+
// TODO: remove once we fully switch to the new event system
|
|
49
|
+
const warnedEvent = new Set();
|
|
50
|
+
export class ViewCommon extends ViewBase {
|
|
51
|
+
constructor() {
|
|
52
|
+
super(...arguments);
|
|
53
|
+
this._gestureObservers = {};
|
|
54
|
+
}
|
|
55
|
+
get css() {
|
|
56
|
+
const scope = this._styleScope;
|
|
57
|
+
return scope && scope.css;
|
|
58
|
+
}
|
|
59
|
+
set css(value) {
|
|
60
|
+
this._updateStyleScope(undefined, undefined, value);
|
|
61
|
+
}
|
|
62
|
+
addCss(cssString) {
|
|
63
|
+
this._updateStyleScope(undefined, cssString);
|
|
64
|
+
}
|
|
65
|
+
addCssFile(cssFileName) {
|
|
66
|
+
this._updateStyleScope(cssFileName);
|
|
67
|
+
}
|
|
68
|
+
changeCssFile(cssFileName) {
|
|
69
|
+
const scope = this._styleScope;
|
|
70
|
+
if (scope && cssFileName) {
|
|
71
|
+
scope.changeCssFile(cssFileName);
|
|
72
|
+
this._onCssStateChange();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
_updateStyleScope(cssFileName, cssString, css) {
|
|
76
|
+
let scope = this._styleScope;
|
|
77
|
+
if (!scope) {
|
|
78
|
+
scope = new StyleScope();
|
|
79
|
+
this.setScopeProperty(scope, cssFileName, cssString, css);
|
|
80
|
+
this._inheritStyleScope(scope);
|
|
81
|
+
this._isStyleScopeHost = true;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
this.setScopeProperty(scope, cssFileName, cssString, css);
|
|
85
|
+
this._onCssStateChange();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
setScopeProperty(scope, cssFileName, cssString, css) {
|
|
89
|
+
if (cssFileName !== undefined) {
|
|
90
|
+
scope.addCssFile(cssFileName);
|
|
91
|
+
}
|
|
92
|
+
else if (cssString !== undefined) {
|
|
93
|
+
scope.addCss(cssString);
|
|
94
|
+
}
|
|
95
|
+
else if (css !== undefined) {
|
|
96
|
+
scope.css = css;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
onLoaded() {
|
|
100
|
+
if (!this.isLoaded) {
|
|
101
|
+
const hasTap = this.hasListeners('tap') || this.hasListeners('tapChange') || !!this.getGestureObservers(GestureTypes.tap);
|
|
102
|
+
const enableTapAnimations = TouchManager.enableGlobalTapAnimations && hasTap;
|
|
103
|
+
if (!this.ignoreTouchAnimation && (this.touchAnimation || enableTapAnimations)) {
|
|
104
|
+
TouchManager.addAnimations(this);
|
|
105
|
+
}
|
|
106
|
+
if (__VISIONOS__) {
|
|
107
|
+
const enableHoverStyle = TouchManager.enableGlobalHoverWhereTap && hasTap;
|
|
108
|
+
if (!this.visionIgnoreHoverStyle && (this.visionHoverStyle || enableHoverStyle)) {
|
|
109
|
+
TouchManager.addHoverStyle(this);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
super.onLoaded();
|
|
114
|
+
setupAccessibleView(this);
|
|
115
|
+
if (this.statusBarStyle) {
|
|
116
|
+
// reapply status bar style on load
|
|
117
|
+
// helps back navigation cases to restore if overridden
|
|
118
|
+
this.updateStatusBarStyle(this.statusBarStyle);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
_closeAllModalViewsInternal() {
|
|
122
|
+
if (_rootModalViews && _rootModalViews.length > 0) {
|
|
123
|
+
_rootModalViews.forEach((v) => {
|
|
124
|
+
v.closeModal();
|
|
125
|
+
});
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
_getRootModalViews() {
|
|
131
|
+
return _rootModalViews;
|
|
132
|
+
}
|
|
133
|
+
_onLivesync(context) {
|
|
134
|
+
if (Trace.isEnabled()) {
|
|
135
|
+
Trace.write(`${this}._onLivesync(${JSON.stringify(context)})`, Trace.categories.Livesync);
|
|
136
|
+
}
|
|
137
|
+
let handled = false;
|
|
138
|
+
if (this._closeAllModalViewsInternal()) {
|
|
139
|
+
handled = true;
|
|
140
|
+
}
|
|
141
|
+
if (this._handleLivesync(context)) {
|
|
142
|
+
return true;
|
|
143
|
+
}
|
|
144
|
+
this.eachChildView((child) => {
|
|
145
|
+
if (child._onLivesync(context)) {
|
|
146
|
+
handled = true;
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
return handled;
|
|
151
|
+
}
|
|
152
|
+
_handleLivesync(context) {
|
|
153
|
+
if (Trace.isEnabled()) {
|
|
154
|
+
Trace.write(`${this}._handleLivesync(${JSON.stringify(context)})`, Trace.categories.Livesync);
|
|
155
|
+
}
|
|
156
|
+
// Handle local CSS
|
|
157
|
+
if (viewMatchesModuleContext(this, context, ['style'])) {
|
|
158
|
+
if (Trace.isEnabled()) {
|
|
159
|
+
Trace.write(`Change Handled: Changing CSS for ${this}`, Trace.categories.Livesync);
|
|
160
|
+
}
|
|
161
|
+
// Always load styles with ".css" extension. Even when changes are in ".scss" ot ".less" files
|
|
162
|
+
const cssModuleName = `${sanitizeModuleName(context.path)}.css`;
|
|
163
|
+
this.changeCssFile(cssModuleName);
|
|
164
|
+
return true;
|
|
165
|
+
}
|
|
166
|
+
// Handle script/markup changes in custom components by falling back to page refresh
|
|
167
|
+
if (viewMatchesModuleContext(this, context, ['markup', 'script']) && this.page && this.page.frame) {
|
|
168
|
+
if (Trace.isEnabled()) {
|
|
169
|
+
Trace.write(`Change Handled: Changing ${context.type} for ${this} inside ${this.page}`, Trace.categories.Livesync);
|
|
170
|
+
}
|
|
171
|
+
return this.page.frame._handleLivesync({
|
|
172
|
+
type: context.type,
|
|
173
|
+
path: this.page._moduleName,
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
return false;
|
|
177
|
+
}
|
|
178
|
+
_setupAsRootView(context) {
|
|
179
|
+
super._setupAsRootView(context);
|
|
180
|
+
if (!this._styleScope) {
|
|
181
|
+
this._updateStyleScope();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
_observe(type, callback, thisArg) {
|
|
185
|
+
thisArg = thisArg || undefined;
|
|
186
|
+
if (this._gestureObservers[type]?.find((observer) => observer.callback === callback && observer.context === thisArg)) {
|
|
187
|
+
// Already added.
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
if (!this._gestureObservers[type]) {
|
|
191
|
+
this._gestureObservers[type] = [];
|
|
192
|
+
}
|
|
193
|
+
this._gestureObservers[type].push(gestureObserve(this, type, callback, thisArg));
|
|
194
|
+
}
|
|
195
|
+
getGestureObservers(type) {
|
|
196
|
+
return this._gestureObservers[type];
|
|
197
|
+
}
|
|
198
|
+
addEventListener(eventNames, callback, thisArg, once) {
|
|
199
|
+
thisArg = thisArg || undefined;
|
|
200
|
+
// TODO: Remove this once we fully switch to the new event system
|
|
201
|
+
if (typeof eventNames === 'number') {
|
|
202
|
+
// likely a gesture type from a plugin
|
|
203
|
+
const gestureName = gestureToString(eventNames);
|
|
204
|
+
if (!warnedEvent.has(gestureName)) {
|
|
205
|
+
console.warn(`Using a gesture type (${gestureName}) as an event name is deprecated. Please use the event name instead.`);
|
|
206
|
+
warnedEvent.add(gestureName);
|
|
207
|
+
}
|
|
208
|
+
eventNames = gestureName;
|
|
209
|
+
}
|
|
210
|
+
// Normalize "ontap" -> "tap"
|
|
211
|
+
const normalizedName = getEventOrGestureName(eventNames);
|
|
212
|
+
// Coerce "tap" -> GestureTypes.tap
|
|
213
|
+
// Coerce "loaded" -> undefined
|
|
214
|
+
const gestureType = gestureFromString(normalizedName);
|
|
215
|
+
// If it's a gesture (and this Observable declares e.g. `static tapEvent`)
|
|
216
|
+
if (gestureType && !this._isEvent(normalizedName)) {
|
|
217
|
+
this._observe(gestureType, callback, thisArg);
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
super.addEventListener(normalizedName, callback, thisArg, once);
|
|
221
|
+
}
|
|
222
|
+
removeEventListener(eventNames, callback, thisArg) {
|
|
223
|
+
thisArg = thisArg || undefined;
|
|
224
|
+
// TODO: Remove this once we fully switch to the new event system
|
|
225
|
+
if (typeof eventNames === 'number') {
|
|
226
|
+
// likely a gesture type from a plugin
|
|
227
|
+
const gestureName = gestureToString(eventNames);
|
|
228
|
+
if (!warnedEvent.has(gestureName)) {
|
|
229
|
+
console.warn(`Using a gesture type (${gestureName}) as an event name is deprecated. Please use the event name instead.`);
|
|
230
|
+
warnedEvent.add(gestureName);
|
|
231
|
+
}
|
|
232
|
+
eventNames = gestureName;
|
|
233
|
+
}
|
|
234
|
+
// Normalize "ontap" -> "tap"
|
|
235
|
+
const normalizedName = getEventOrGestureName(eventNames);
|
|
236
|
+
// Coerce "tap" -> GestureTypes.tap
|
|
237
|
+
// Coerce "loaded" -> undefined
|
|
238
|
+
const gestureType = gestureFromString(normalizedName);
|
|
239
|
+
// If it's a gesture (and this Observable declares e.g. `static tapEvent`)
|
|
240
|
+
if (gestureType && !this._isEvent(normalizedName)) {
|
|
241
|
+
this._disconnectGestureObservers(gestureType, callback, thisArg);
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
super.removeEventListener(normalizedName, callback, thisArg);
|
|
245
|
+
}
|
|
246
|
+
onBackPressed() {
|
|
247
|
+
return false;
|
|
248
|
+
}
|
|
249
|
+
_getFragmentManager() {
|
|
250
|
+
return undefined;
|
|
251
|
+
}
|
|
252
|
+
getModalOptions(args) {
|
|
253
|
+
if (args.length === 0) {
|
|
254
|
+
throw new Error('showModal without parameters is deprecated. Please call showModal on a view instance instead.');
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
let options = null;
|
|
258
|
+
if (args.length === 2) {
|
|
259
|
+
options = args[1];
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
if (args[0] instanceof ViewCommon) {
|
|
263
|
+
console.log('showModal(view: ViewBase, context: any, closeCallback: Function, fullscreen?: boolean, animated?: boolean, stretched?: boolean) ' + 'is deprecated. Use showModal(view: ViewBase, modalOptions: ShowModalOptions) instead.');
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
console.log('showModal(moduleName: string, context: any, closeCallback: Function, fullscreen?: boolean, animated?: boolean, stretched?: boolean) ' + 'is deprecated. Use showModal(moduleName: string, modalOptions: ShowModalOptions) instead.');
|
|
267
|
+
}
|
|
268
|
+
options = {
|
|
269
|
+
context: args[1],
|
|
270
|
+
closeCallback: args[2],
|
|
271
|
+
fullscreen: args[3],
|
|
272
|
+
animated: args[4],
|
|
273
|
+
stretched: args[5],
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
const firstArgument = args[0];
|
|
277
|
+
const view = firstArgument instanceof ViewCommon ? firstArgument : Builder.createViewFromEntry({
|
|
278
|
+
moduleName: firstArgument,
|
|
279
|
+
});
|
|
280
|
+
return { view, options };
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
showModal(...args) {
|
|
284
|
+
const { view, options } = this.getModalOptions(args);
|
|
285
|
+
if (options.transition?.instance) {
|
|
286
|
+
SharedTransition.updateState(options.transition?.instance.id, {
|
|
287
|
+
page: this,
|
|
288
|
+
toPage: view,
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
view._showNativeModalView(this, options);
|
|
292
|
+
return view;
|
|
293
|
+
}
|
|
294
|
+
closeModal(...args) {
|
|
295
|
+
const closeCallback = this._closeModalCallback;
|
|
296
|
+
if (closeCallback) {
|
|
297
|
+
closeCallback(...args);
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
const parent = this.parent;
|
|
301
|
+
if (parent) {
|
|
302
|
+
parent.closeModal(...args);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
get modal() {
|
|
307
|
+
return this._modal;
|
|
308
|
+
}
|
|
309
|
+
_showNativeModalView(parent, options) {
|
|
310
|
+
_rootModalViews.push(this);
|
|
311
|
+
this.cssClasses.add(CSSUtils.MODAL_ROOT_VIEW_CSS_CLASS);
|
|
312
|
+
const modalRootViewCssClasses = CSSUtils.getSystemCssClasses();
|
|
313
|
+
modalRootViewCssClasses.forEach((c) => this.cssClasses.add(c));
|
|
314
|
+
parent._modal = this;
|
|
315
|
+
this.style.fontScaleInternal = getFontScale();
|
|
316
|
+
this._modalParent = parent;
|
|
317
|
+
this._modalContext = options.context;
|
|
318
|
+
this._closeModalCallback = (...originalArgs) => {
|
|
319
|
+
const cleanupModalViews = () => {
|
|
320
|
+
const modalIndex = _rootModalViews.indexOf(this);
|
|
321
|
+
if (modalIndex > -1) {
|
|
322
|
+
_rootModalViews.splice(modalIndex, 1);
|
|
323
|
+
}
|
|
324
|
+
this._modalParent = null;
|
|
325
|
+
this._modalContext = null;
|
|
326
|
+
this._closeModalCallback = null;
|
|
327
|
+
this._dialogClosed();
|
|
328
|
+
parent._modal = null;
|
|
329
|
+
};
|
|
330
|
+
const whenClosedCallback = () => {
|
|
331
|
+
const transitionState = SharedTransition.getState(this.transitionId);
|
|
332
|
+
if (transitionState?.interactiveBegan) {
|
|
333
|
+
SharedTransition.updateState(this.transitionId, {
|
|
334
|
+
interactiveBegan: false,
|
|
335
|
+
});
|
|
336
|
+
if (!transitionState?.interactiveCancelled) {
|
|
337
|
+
cleanupModalViews();
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
if (!transitionState?.interactiveCancelled) {
|
|
341
|
+
if (typeof options.closeCallback === 'function') {
|
|
342
|
+
options.closeCallback.apply(undefined, originalArgs);
|
|
343
|
+
}
|
|
344
|
+
this._tearDownUI(true);
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
const transitionState = SharedTransition.getState(this.transitionId);
|
|
348
|
+
if (!transitionState?.interactiveBegan) {
|
|
349
|
+
cleanupModalViews();
|
|
350
|
+
}
|
|
351
|
+
this._hideNativeModalView(parent, whenClosedCallback);
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
_hideNativeModalView(parent, whenClosedCallback) { }
|
|
355
|
+
_raiseLayoutChangedEvent() {
|
|
356
|
+
const args = {
|
|
357
|
+
eventName: ViewCommon.layoutChangedEvent,
|
|
358
|
+
object: this,
|
|
359
|
+
};
|
|
360
|
+
this.notify(args);
|
|
361
|
+
}
|
|
362
|
+
_raiseShownModallyEvent() {
|
|
363
|
+
const args = {
|
|
364
|
+
eventName: ViewCommon.shownModallyEvent,
|
|
365
|
+
object: this,
|
|
366
|
+
context: this._modalContext,
|
|
367
|
+
closeCallback: this._closeModalCallback,
|
|
368
|
+
};
|
|
369
|
+
this.notify(args);
|
|
370
|
+
}
|
|
371
|
+
_raiseShowingModallyEvent() {
|
|
372
|
+
const args = {
|
|
373
|
+
eventName: ViewCommon.showingModallyEvent,
|
|
374
|
+
object: this,
|
|
375
|
+
context: this._modalContext,
|
|
376
|
+
closeCallback: this._closeModalCallback,
|
|
377
|
+
};
|
|
378
|
+
this.notify(args);
|
|
379
|
+
}
|
|
380
|
+
_isEvent(name) {
|
|
381
|
+
return this.constructor && `${name}Event` in this.constructor;
|
|
382
|
+
}
|
|
383
|
+
_disconnectGestureObservers(type, callback, thisArg) {
|
|
384
|
+
// Largely mirrors the implementation of Observable.innerRemoveEventListener().
|
|
385
|
+
const observers = this.getGestureObservers(type);
|
|
386
|
+
if (!observers) {
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
for (let i = 0; i < observers.length; i++) {
|
|
390
|
+
const observer = observers[i];
|
|
391
|
+
// If we have a `thisArg`, refine on both `callback` and `thisArg`.
|
|
392
|
+
if (thisArg && (observer.callback !== callback || observer.context !== thisArg)) {
|
|
393
|
+
continue;
|
|
394
|
+
}
|
|
395
|
+
// If we don't have a `thisArg`, refine only on `callback`.
|
|
396
|
+
if (callback && observer.callback !== callback) {
|
|
397
|
+
continue;
|
|
398
|
+
}
|
|
399
|
+
observer.disconnect();
|
|
400
|
+
observers.splice(i, 1);
|
|
401
|
+
i--;
|
|
402
|
+
}
|
|
403
|
+
if (!observers.length) {
|
|
404
|
+
delete this._gestureObservers[type];
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
// START Style property shortcuts
|
|
408
|
+
get flexFlow() {
|
|
409
|
+
return this.style.flexFlow;
|
|
410
|
+
}
|
|
411
|
+
set flexFlow(value) {
|
|
412
|
+
this.style.flexFlow = value;
|
|
413
|
+
}
|
|
414
|
+
get flex() {
|
|
415
|
+
return this.style.flex;
|
|
416
|
+
}
|
|
417
|
+
set flex(value) {
|
|
418
|
+
this.style.flex = value;
|
|
419
|
+
}
|
|
420
|
+
get borderColor() {
|
|
421
|
+
return this.style.borderColor;
|
|
422
|
+
}
|
|
423
|
+
set borderColor(value) {
|
|
424
|
+
this.style.borderColor = value;
|
|
425
|
+
}
|
|
426
|
+
get borderTopColor() {
|
|
427
|
+
return this.style.borderTopColor;
|
|
428
|
+
}
|
|
429
|
+
set borderTopColor(value) {
|
|
430
|
+
this.style.borderTopColor = value;
|
|
431
|
+
}
|
|
432
|
+
get borderRightColor() {
|
|
433
|
+
return this.style.borderRightColor;
|
|
434
|
+
}
|
|
435
|
+
set borderRightColor(value) {
|
|
436
|
+
this.style.borderRightColor = value;
|
|
437
|
+
}
|
|
438
|
+
get borderBottomColor() {
|
|
439
|
+
return this.style.borderBottomColor;
|
|
440
|
+
}
|
|
441
|
+
set borderBottomColor(value) {
|
|
442
|
+
this.style.borderBottomColor = value;
|
|
443
|
+
}
|
|
444
|
+
get borderLeftColor() {
|
|
445
|
+
return this.style.borderLeftColor;
|
|
446
|
+
}
|
|
447
|
+
set borderLeftColor(value) {
|
|
448
|
+
this.style.borderLeftColor = value;
|
|
449
|
+
}
|
|
450
|
+
get borderWidth() {
|
|
451
|
+
return this.style.borderWidth;
|
|
452
|
+
}
|
|
453
|
+
set borderWidth(value) {
|
|
454
|
+
this.style.borderWidth = value;
|
|
455
|
+
}
|
|
456
|
+
get borderTopWidth() {
|
|
457
|
+
return this.style.borderTopWidth;
|
|
458
|
+
}
|
|
459
|
+
set borderTopWidth(value) {
|
|
460
|
+
this.style.borderTopWidth = value;
|
|
461
|
+
}
|
|
462
|
+
get borderRightWidth() {
|
|
463
|
+
return this.style.borderRightWidth;
|
|
464
|
+
}
|
|
465
|
+
set borderRightWidth(value) {
|
|
466
|
+
this.style.borderRightWidth = value;
|
|
467
|
+
}
|
|
468
|
+
get borderBottomWidth() {
|
|
469
|
+
return this.style.borderBottomWidth;
|
|
470
|
+
}
|
|
471
|
+
set borderBottomWidth(value) {
|
|
472
|
+
this.style.borderBottomWidth = value;
|
|
473
|
+
}
|
|
474
|
+
get borderLeftWidth() {
|
|
475
|
+
return this.style.borderLeftWidth;
|
|
476
|
+
}
|
|
477
|
+
set borderLeftWidth(value) {
|
|
478
|
+
this.style.borderLeftWidth = value;
|
|
479
|
+
}
|
|
480
|
+
get borderRadius() {
|
|
481
|
+
return this.style.borderRadius;
|
|
482
|
+
}
|
|
483
|
+
set borderRadius(value) {
|
|
484
|
+
this.style.borderRadius = value;
|
|
485
|
+
}
|
|
486
|
+
get borderTopLeftRadius() {
|
|
487
|
+
return this.style.borderTopLeftRadius;
|
|
488
|
+
}
|
|
489
|
+
set borderTopLeftRadius(value) {
|
|
490
|
+
this.style.borderTopLeftRadius = value;
|
|
491
|
+
}
|
|
492
|
+
get borderTopRightRadius() {
|
|
493
|
+
return this.style.borderTopRightRadius;
|
|
494
|
+
}
|
|
495
|
+
set borderTopRightRadius(value) {
|
|
496
|
+
this.style.borderTopRightRadius = value;
|
|
497
|
+
}
|
|
498
|
+
get borderBottomRightRadius() {
|
|
499
|
+
return this.style.borderBottomRightRadius;
|
|
500
|
+
}
|
|
501
|
+
set borderBottomRightRadius(value) {
|
|
502
|
+
this.style.borderBottomRightRadius = value;
|
|
503
|
+
}
|
|
504
|
+
get borderBottomLeftRadius() {
|
|
505
|
+
return this.style.borderBottomLeftRadius;
|
|
506
|
+
}
|
|
507
|
+
set borderBottomLeftRadius(value) {
|
|
508
|
+
this.style.borderBottomLeftRadius = value;
|
|
509
|
+
}
|
|
510
|
+
get color() {
|
|
511
|
+
return this.style.color;
|
|
512
|
+
}
|
|
513
|
+
set color(value) {
|
|
514
|
+
this.style.color = value;
|
|
515
|
+
}
|
|
516
|
+
get background() {
|
|
517
|
+
return this.style.background;
|
|
518
|
+
}
|
|
519
|
+
set background(value) {
|
|
520
|
+
this.style.background = value;
|
|
521
|
+
}
|
|
522
|
+
get backgroundColor() {
|
|
523
|
+
return this.style.backgroundColor;
|
|
524
|
+
}
|
|
525
|
+
set backgroundColor(value) {
|
|
526
|
+
this.style.backgroundColor = value;
|
|
527
|
+
}
|
|
528
|
+
get backgroundImage() {
|
|
529
|
+
return this.style.backgroundImage;
|
|
530
|
+
}
|
|
531
|
+
set backgroundImage(value) {
|
|
532
|
+
this.style.backgroundImage = value;
|
|
533
|
+
}
|
|
534
|
+
get backgroundSize() {
|
|
535
|
+
return this.style.backgroundSize;
|
|
536
|
+
}
|
|
537
|
+
set backgroundSize(value) {
|
|
538
|
+
this.style.backgroundSize = value;
|
|
539
|
+
}
|
|
540
|
+
get backgroundPosition() {
|
|
541
|
+
return this.style.backgroundPosition;
|
|
542
|
+
}
|
|
543
|
+
set backgroundPosition(value) {
|
|
544
|
+
this.style.backgroundPosition = value;
|
|
545
|
+
}
|
|
546
|
+
get backgroundRepeat() {
|
|
547
|
+
return this.style.backgroundRepeat;
|
|
548
|
+
}
|
|
549
|
+
set backgroundRepeat(value) {
|
|
550
|
+
this.style.backgroundRepeat = value;
|
|
551
|
+
}
|
|
552
|
+
get boxShadow() {
|
|
553
|
+
return this.style.boxShadow;
|
|
554
|
+
}
|
|
555
|
+
set boxShadow(value) {
|
|
556
|
+
this.style.boxShadow = value;
|
|
557
|
+
}
|
|
558
|
+
get direction() {
|
|
559
|
+
return this.style.direction;
|
|
560
|
+
}
|
|
561
|
+
set direction(value) {
|
|
562
|
+
this.style.direction = value;
|
|
563
|
+
}
|
|
564
|
+
get minWidth() {
|
|
565
|
+
return this.style.minWidth;
|
|
566
|
+
}
|
|
567
|
+
set minWidth(value) {
|
|
568
|
+
this.style.minWidth = value;
|
|
569
|
+
}
|
|
570
|
+
get minHeight() {
|
|
571
|
+
return this.style.minHeight;
|
|
572
|
+
}
|
|
573
|
+
set minHeight(value) {
|
|
574
|
+
this.style.minHeight = value;
|
|
575
|
+
}
|
|
576
|
+
get width() {
|
|
577
|
+
return this.style.width;
|
|
578
|
+
}
|
|
579
|
+
set width(value) {
|
|
580
|
+
this.style.width = value;
|
|
581
|
+
}
|
|
582
|
+
get height() {
|
|
583
|
+
return this.style.height;
|
|
584
|
+
}
|
|
585
|
+
set height(value) {
|
|
586
|
+
this.style.height = value;
|
|
587
|
+
}
|
|
588
|
+
get margin() {
|
|
589
|
+
return this.style.margin;
|
|
590
|
+
}
|
|
591
|
+
set margin(value) {
|
|
592
|
+
this.style.margin = value;
|
|
593
|
+
}
|
|
594
|
+
get marginLeft() {
|
|
595
|
+
return this.style.marginLeft;
|
|
596
|
+
}
|
|
597
|
+
set marginLeft(value) {
|
|
598
|
+
this.style.marginLeft = value;
|
|
599
|
+
}
|
|
600
|
+
get marginTop() {
|
|
601
|
+
return this.style.marginTop;
|
|
602
|
+
}
|
|
603
|
+
set marginTop(value) {
|
|
604
|
+
this.style.marginTop = value;
|
|
605
|
+
}
|
|
606
|
+
get marginRight() {
|
|
607
|
+
return this.style.marginRight;
|
|
608
|
+
}
|
|
609
|
+
set marginRight(value) {
|
|
610
|
+
this.style.marginRight = value;
|
|
611
|
+
}
|
|
612
|
+
get marginBottom() {
|
|
613
|
+
return this.style.marginBottom;
|
|
614
|
+
}
|
|
615
|
+
set marginBottom(value) {
|
|
616
|
+
this.style.marginBottom = value;
|
|
617
|
+
}
|
|
618
|
+
get horizontalAlignment() {
|
|
619
|
+
return this.style.horizontalAlignment;
|
|
620
|
+
}
|
|
621
|
+
set horizontalAlignment(value) {
|
|
622
|
+
this.style.horizontalAlignment = value;
|
|
623
|
+
}
|
|
624
|
+
get verticalAlignment() {
|
|
625
|
+
return this.style.verticalAlignment;
|
|
626
|
+
}
|
|
627
|
+
set verticalAlignment(value) {
|
|
628
|
+
this.style.verticalAlignment = value;
|
|
629
|
+
}
|
|
630
|
+
get visibility() {
|
|
631
|
+
return this.style.visibility;
|
|
632
|
+
}
|
|
633
|
+
set visibility(value) {
|
|
634
|
+
this.style.visibility = value;
|
|
635
|
+
}
|
|
636
|
+
get opacity() {
|
|
637
|
+
return this.style.opacity;
|
|
638
|
+
}
|
|
639
|
+
set opacity(value) {
|
|
640
|
+
this.style.opacity = value;
|
|
641
|
+
}
|
|
642
|
+
get rotate() {
|
|
643
|
+
return this.style.rotate;
|
|
644
|
+
}
|
|
645
|
+
set rotate(value) {
|
|
646
|
+
this.style.rotate = value;
|
|
647
|
+
}
|
|
648
|
+
get rotateX() {
|
|
649
|
+
return this.style.rotateX;
|
|
650
|
+
}
|
|
651
|
+
set rotateX(value) {
|
|
652
|
+
this.style.rotateX = value;
|
|
653
|
+
}
|
|
654
|
+
get rotateY() {
|
|
655
|
+
return this.style.rotateY;
|
|
656
|
+
}
|
|
657
|
+
set rotateY(value) {
|
|
658
|
+
this.style.rotateY = value;
|
|
659
|
+
}
|
|
660
|
+
get perspective() {
|
|
661
|
+
return this.style.perspective;
|
|
662
|
+
}
|
|
663
|
+
set perspective(value) {
|
|
664
|
+
this.style.perspective = value;
|
|
665
|
+
}
|
|
666
|
+
get textTransform() {
|
|
667
|
+
return this.style.textTransform;
|
|
668
|
+
}
|
|
669
|
+
set textTransform(value) {
|
|
670
|
+
this.style.textTransform = value;
|
|
671
|
+
}
|
|
672
|
+
get translateX() {
|
|
673
|
+
return this.style.translateX;
|
|
674
|
+
}
|
|
675
|
+
set translateX(value) {
|
|
676
|
+
this.style.translateX = value;
|
|
677
|
+
}
|
|
678
|
+
get translateY() {
|
|
679
|
+
return this.style.translateY;
|
|
680
|
+
}
|
|
681
|
+
set translateY(value) {
|
|
682
|
+
this.style.translateY = value;
|
|
683
|
+
}
|
|
684
|
+
get scaleX() {
|
|
685
|
+
return this.style.scaleX;
|
|
686
|
+
}
|
|
687
|
+
set scaleX(value) {
|
|
688
|
+
this.style.scaleX = value;
|
|
689
|
+
}
|
|
690
|
+
get scaleY() {
|
|
691
|
+
return this.style.scaleY;
|
|
692
|
+
}
|
|
693
|
+
set scaleY(value) {
|
|
694
|
+
this.style.scaleY = value;
|
|
695
|
+
}
|
|
696
|
+
get accessible() {
|
|
697
|
+
return this.style.accessible;
|
|
698
|
+
}
|
|
699
|
+
set accessible(value) {
|
|
700
|
+
this.style.accessible = value;
|
|
701
|
+
}
|
|
702
|
+
get accessibilityHidden() {
|
|
703
|
+
return this.style.accessibilityHidden;
|
|
704
|
+
}
|
|
705
|
+
set accessibilityHidden(value) {
|
|
706
|
+
this.style.accessibilityHidden = value;
|
|
707
|
+
}
|
|
708
|
+
get accessibilityRole() {
|
|
709
|
+
return this.style.accessibilityRole;
|
|
710
|
+
}
|
|
711
|
+
set accessibilityRole(value) {
|
|
712
|
+
this.style.accessibilityRole = value;
|
|
713
|
+
}
|
|
714
|
+
get accessibilityState() {
|
|
715
|
+
return this.style.accessibilityState;
|
|
716
|
+
}
|
|
717
|
+
set accessibilityState(value) {
|
|
718
|
+
this.style.accessibilityState = value;
|
|
719
|
+
}
|
|
720
|
+
get accessibilityLiveRegion() {
|
|
721
|
+
return this.style.accessibilityLiveRegion;
|
|
722
|
+
}
|
|
723
|
+
set accessibilityLiveRegion(value) {
|
|
724
|
+
this.style.accessibilityLiveRegion = value;
|
|
725
|
+
}
|
|
726
|
+
get accessibilityLanguage() {
|
|
727
|
+
return this.style.accessibilityLanguage;
|
|
728
|
+
}
|
|
729
|
+
set accessibilityLanguage(value) {
|
|
730
|
+
this.style.accessibilityLanguage = value;
|
|
731
|
+
}
|
|
732
|
+
get accessibilityMediaSession() {
|
|
733
|
+
return this.style.accessibilityMediaSession;
|
|
734
|
+
}
|
|
735
|
+
set accessibilityMediaSession(value) {
|
|
736
|
+
this.style.accessibilityMediaSession = value;
|
|
737
|
+
}
|
|
738
|
+
get iosAccessibilityAdjustsFontSize() {
|
|
739
|
+
return this.style.iosAccessibilityAdjustsFontSize;
|
|
740
|
+
}
|
|
741
|
+
set iosAccessibilityAdjustsFontSize(value) {
|
|
742
|
+
this.style.iosAccessibilityAdjustsFontSize = value;
|
|
743
|
+
}
|
|
744
|
+
get iosAccessibilityMinFontScale() {
|
|
745
|
+
return this.style.iosAccessibilityMinFontScale;
|
|
746
|
+
}
|
|
747
|
+
set iosAccessibilityMinFontScale(value) {
|
|
748
|
+
this.style.iosAccessibilityMinFontScale = value;
|
|
749
|
+
}
|
|
750
|
+
get iosAccessibilityMaxFontScale() {
|
|
751
|
+
return this.style.iosAccessibilityMaxFontScale;
|
|
752
|
+
}
|
|
753
|
+
set iosAccessibilityMaxFontScale(value) {
|
|
754
|
+
this.style.iosAccessibilityMaxFontScale = value;
|
|
755
|
+
}
|
|
756
|
+
get automationText() {
|
|
757
|
+
return this.accessibilityIdentifier;
|
|
758
|
+
}
|
|
759
|
+
set automationText(value) {
|
|
760
|
+
this.accessibilityIdentifier = value;
|
|
761
|
+
}
|
|
762
|
+
get androidElevation() {
|
|
763
|
+
return this.style.androidElevation;
|
|
764
|
+
}
|
|
765
|
+
set androidElevation(value) {
|
|
766
|
+
this.style.androidElevation = value;
|
|
767
|
+
}
|
|
768
|
+
get androidDynamicElevationOffset() {
|
|
769
|
+
return this.style.androidDynamicElevationOffset;
|
|
770
|
+
}
|
|
771
|
+
set androidDynamicElevationOffset(value) {
|
|
772
|
+
this.style.androidDynamicElevationOffset = value;
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* (Android only) Gets closest window parent considering modals.
|
|
776
|
+
*/
|
|
777
|
+
getClosestWindow() {
|
|
778
|
+
// platform impl
|
|
779
|
+
return null;
|
|
780
|
+
}
|
|
781
|
+
//END Style property shortcuts
|
|
782
|
+
get isLayoutValid() {
|
|
783
|
+
return this._isLayoutValid;
|
|
784
|
+
}
|
|
785
|
+
get cssType() {
|
|
786
|
+
if (!this._cssType) {
|
|
787
|
+
this._cssType = this.typeName.toLowerCase();
|
|
788
|
+
}
|
|
789
|
+
return this._cssType;
|
|
790
|
+
}
|
|
791
|
+
set cssType(type) {
|
|
792
|
+
this._cssType = type.toLowerCase();
|
|
793
|
+
}
|
|
794
|
+
get statusBarStyle() {
|
|
795
|
+
return this.style.statusBarStyle;
|
|
796
|
+
}
|
|
797
|
+
set statusBarStyle(value) {
|
|
798
|
+
this.style.statusBarStyle = value;
|
|
799
|
+
}
|
|
800
|
+
updateStatusBarStyle(value) {
|
|
801
|
+
// platform specific impl
|
|
802
|
+
}
|
|
803
|
+
get isLayoutRequired() {
|
|
804
|
+
return true;
|
|
805
|
+
}
|
|
806
|
+
get needsNativeDrawableFill() {
|
|
807
|
+
return false;
|
|
808
|
+
}
|
|
809
|
+
measure(widthMeasureSpec, heightMeasureSpec) {
|
|
810
|
+
this._setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec);
|
|
811
|
+
}
|
|
812
|
+
layout(left, top, right, bottom) {
|
|
813
|
+
this._setCurrentLayoutBounds(left, top, right, bottom);
|
|
814
|
+
}
|
|
815
|
+
getMeasuredWidth() {
|
|
816
|
+
return this._measuredWidth & layout.MEASURED_SIZE_MASK || 0;
|
|
817
|
+
}
|
|
818
|
+
getMeasuredHeight() {
|
|
819
|
+
return this._measuredHeight & layout.MEASURED_SIZE_MASK || 0;
|
|
820
|
+
}
|
|
821
|
+
getMeasuredState() {
|
|
822
|
+
return (this._measuredWidth & layout.MEASURED_STATE_MASK) | ((this._measuredHeight >> layout.MEASURED_HEIGHT_STATE_SHIFT) & (layout.MEASURED_STATE_MASK >> layout.MEASURED_HEIGHT_STATE_SHIFT));
|
|
823
|
+
}
|
|
824
|
+
setMeasuredDimension(measuredWidth, measuredHeight) {
|
|
825
|
+
this._measuredWidth = measuredWidth;
|
|
826
|
+
this._measuredHeight = measuredHeight;
|
|
827
|
+
if (Trace.isEnabled()) {
|
|
828
|
+
Trace.write(this + ' :setMeasuredDimension: ' + measuredWidth + ', ' + measuredHeight, Trace.categories.Layout);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
requestLayout() {
|
|
832
|
+
this._isLayoutValid = false;
|
|
833
|
+
super.requestLayout();
|
|
834
|
+
}
|
|
835
|
+
static resolveSizeAndState(size, specSize, specMode, childMeasuredState) {
|
|
836
|
+
return ViewHelper.resolveSizeAndState(size, specSize, specMode, childMeasuredState);
|
|
837
|
+
}
|
|
838
|
+
static combineMeasuredStates(curState, newState) {
|
|
839
|
+
return ViewHelper.combineMeasuredStates(curState, newState);
|
|
840
|
+
}
|
|
841
|
+
static layoutChild(parent, child, left, top, right, bottom, setFrame = true) {
|
|
842
|
+
ViewHelper.layoutChild(parent, child, left, top, right, bottom);
|
|
843
|
+
}
|
|
844
|
+
static measureChild(parent, child, widthMeasureSpec, heightMeasureSpec) {
|
|
845
|
+
return ViewHelper.measureChild(parent, child, widthMeasureSpec, heightMeasureSpec);
|
|
846
|
+
}
|
|
847
|
+
_setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec) {
|
|
848
|
+
const changed = this._currentWidthMeasureSpec !== widthMeasureSpec || this._currentHeightMeasureSpec !== heightMeasureSpec;
|
|
849
|
+
this._currentWidthMeasureSpec = widthMeasureSpec;
|
|
850
|
+
this._currentHeightMeasureSpec = heightMeasureSpec;
|
|
851
|
+
return changed;
|
|
852
|
+
}
|
|
853
|
+
_getCurrentLayoutBounds() {
|
|
854
|
+
return { left: 0, top: 0, right: 0, bottom: 0 };
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* Returns two booleans - the first if "boundsChanged" the second is "sizeChanged".
|
|
858
|
+
*/
|
|
859
|
+
_setCurrentLayoutBounds(left, top, right, bottom) {
|
|
860
|
+
this._isLayoutValid = true;
|
|
861
|
+
const boundsChanged = this._oldLeft !== left || this._oldTop !== top || this._oldRight !== right || this._oldBottom !== bottom;
|
|
862
|
+
const sizeChanged = this._oldRight - this._oldLeft !== right - left || this._oldBottom - this._oldTop !== bottom - top;
|
|
863
|
+
this._oldLeft = left;
|
|
864
|
+
this._oldTop = top;
|
|
865
|
+
this._oldRight = right;
|
|
866
|
+
this._oldBottom = bottom;
|
|
867
|
+
return { boundsChanged, sizeChanged };
|
|
868
|
+
}
|
|
869
|
+
eachChild(callback) {
|
|
870
|
+
this.eachChildView(callback);
|
|
871
|
+
}
|
|
872
|
+
eachChildView(callback) {
|
|
873
|
+
//
|
|
874
|
+
}
|
|
875
|
+
_getNativeViewsCount() {
|
|
876
|
+
return this._isAddedToNativeVisualTree ? 1 : 0;
|
|
877
|
+
}
|
|
878
|
+
_eachLayoutView(callback) {
|
|
879
|
+
return callback(this);
|
|
880
|
+
}
|
|
881
|
+
focus() {
|
|
882
|
+
return undefined;
|
|
883
|
+
}
|
|
884
|
+
getSafeAreaInsets() {
|
|
885
|
+
return { left: 0, top: 0, right: 0, bottom: 0 };
|
|
886
|
+
}
|
|
887
|
+
getLocationInWindow() {
|
|
888
|
+
return undefined;
|
|
889
|
+
}
|
|
890
|
+
getLocationOnScreen() {
|
|
891
|
+
return undefined;
|
|
892
|
+
}
|
|
893
|
+
getLocationRelativeTo(otherView) {
|
|
894
|
+
return undefined;
|
|
895
|
+
}
|
|
896
|
+
getActualSize() {
|
|
897
|
+
const currentBounds = this._getCurrentLayoutBounds();
|
|
898
|
+
if (!currentBounds) {
|
|
899
|
+
return undefined;
|
|
900
|
+
}
|
|
901
|
+
return {
|
|
902
|
+
width: layout.toDeviceIndependentPixels(currentBounds.right - currentBounds.left),
|
|
903
|
+
height: layout.toDeviceIndependentPixels(currentBounds.bottom - currentBounds.top),
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
animate(animation) {
|
|
907
|
+
const animationInstance = this.createAnimation(animation);
|
|
908
|
+
const promise = animationInstance.play();
|
|
909
|
+
promise.cancel = () => animationInstance.cancel();
|
|
910
|
+
return promise;
|
|
911
|
+
}
|
|
912
|
+
createAnimation(animation) {
|
|
913
|
+
if (!this._localAnimations) {
|
|
914
|
+
this._localAnimations = new Set();
|
|
915
|
+
}
|
|
916
|
+
animation.target = this;
|
|
917
|
+
const anim = new Animation([animation]);
|
|
918
|
+
this._localAnimations.add(anim);
|
|
919
|
+
return anim;
|
|
920
|
+
}
|
|
921
|
+
_removeAnimation(animation) {
|
|
922
|
+
const localAnimations = this._localAnimations;
|
|
923
|
+
if (localAnimations && localAnimations.has(animation)) {
|
|
924
|
+
localAnimations.delete(animation);
|
|
925
|
+
if (animation.isPlaying) {
|
|
926
|
+
animation.cancel();
|
|
927
|
+
}
|
|
928
|
+
return true;
|
|
929
|
+
}
|
|
930
|
+
return false;
|
|
931
|
+
}
|
|
932
|
+
resetNativeView() {
|
|
933
|
+
if (this._localAnimations) {
|
|
934
|
+
this._localAnimations.forEach((a) => this._removeAnimation(a));
|
|
935
|
+
}
|
|
936
|
+
super.resetNativeView();
|
|
937
|
+
}
|
|
938
|
+
_modifyNativeViewFrame(nativeView, frame) {
|
|
939
|
+
//
|
|
940
|
+
}
|
|
941
|
+
_setNativeViewFrame(nativeView, frame) {
|
|
942
|
+
//
|
|
943
|
+
}
|
|
944
|
+
_getValue() {
|
|
945
|
+
throw new Error('The View._getValue is obsolete. There is a new property system.');
|
|
946
|
+
}
|
|
947
|
+
_setValue() {
|
|
948
|
+
throw new Error('The View._setValue is obsolete. There is a new property system.');
|
|
949
|
+
}
|
|
950
|
+
_updateEffectiveLayoutValues(parentWidthMeasureSize, parentWidthMeasureMode, parentHeightMeasureSize, parentHeightMeasureMode) {
|
|
951
|
+
const style = this.style;
|
|
952
|
+
const availableWidth = parentWidthMeasureMode === layout.UNSPECIFIED ? -1 : parentWidthMeasureSize;
|
|
953
|
+
this.effectiveWidth = PercentLength.toDevicePixels(style.width, -2, availableWidth);
|
|
954
|
+
this.effectiveMarginLeft = PercentLength.toDevicePixels(style.marginLeft, 0, availableWidth);
|
|
955
|
+
this.effectiveMarginRight = PercentLength.toDevicePixels(style.marginRight, 0, availableWidth);
|
|
956
|
+
const availableHeight = parentHeightMeasureMode === layout.UNSPECIFIED ? -1 : parentHeightMeasureSize;
|
|
957
|
+
this.effectiveHeight = PercentLength.toDevicePixels(style.height, -2, availableHeight);
|
|
958
|
+
this.effectiveMarginTop = PercentLength.toDevicePixels(style.marginTop, 0, availableHeight);
|
|
959
|
+
this.effectiveMarginBottom = PercentLength.toDevicePixels(style.marginBottom, 0, availableHeight);
|
|
960
|
+
}
|
|
961
|
+
_setNativeClipToBounds() {
|
|
962
|
+
//
|
|
963
|
+
}
|
|
964
|
+
_redrawNativeBackground(value) {
|
|
965
|
+
//
|
|
966
|
+
}
|
|
967
|
+
_applyBackground(background, isBorderDrawable, onlyColor, backgroundDrawable) {
|
|
968
|
+
//
|
|
969
|
+
}
|
|
970
|
+
_onAttachedToWindow() {
|
|
971
|
+
//
|
|
972
|
+
}
|
|
973
|
+
_onDetachedFromWindow() {
|
|
974
|
+
//
|
|
975
|
+
}
|
|
976
|
+
_hasAncestorView(ancestorView) {
|
|
977
|
+
const matcher = (view) => view === ancestorView;
|
|
978
|
+
for (let parent = this.parent; parent != null; parent = parent.parent) {
|
|
979
|
+
if (matcher(parent)) {
|
|
980
|
+
return true;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
return false;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Shared helper method for applying glass effects to views.
|
|
987
|
+
* This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.)
|
|
988
|
+
* iOS only at the moment but could be applied to others once supported in other platforms.
|
|
989
|
+
*
|
|
990
|
+
* @param value - The glass effect configuration
|
|
991
|
+
* @param options - Configuration options for different glass effect behaviors
|
|
992
|
+
* @param options.effectType - Type of effect to create: 'glass' | 'container'
|
|
993
|
+
* @param options.targetView - The UIVisualEffectView to apply the effect to (if updating existing view)
|
|
994
|
+
* @param options.toGlassStyleFn - Custom function to convert variant to UIGlassEffectStyle
|
|
995
|
+
* @param options.onCreate - Callback when a new effect view is created (for initial setup)
|
|
996
|
+
* @param options.onUpdate - Callback when an existing effect view is updated
|
|
997
|
+
*/
|
|
998
|
+
_applyGlassEffect(value, options) {
|
|
999
|
+
return undefined;
|
|
1000
|
+
}
|
|
1001
|
+
sendAccessibilityEvent(options) {
|
|
1002
|
+
return;
|
|
1003
|
+
}
|
|
1004
|
+
accessibilityAnnouncement(msg) {
|
|
1005
|
+
return;
|
|
1006
|
+
}
|
|
1007
|
+
accessibilityScreenChanged() {
|
|
1008
|
+
return;
|
|
1009
|
+
}
|
|
1010
|
+
setAccessibilityIdentifier(view, value) {
|
|
1011
|
+
return;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
ViewCommon.layoutChangedEvent = 'layoutChanged';
|
|
1015
|
+
ViewCommon.shownModallyEvent = 'shownModally';
|
|
1016
|
+
ViewCommon.showingModallyEvent = 'showingModally';
|
|
1017
|
+
ViewCommon.accessibilityBlurEvent = accessibilityBlurEvent;
|
|
1018
|
+
ViewCommon.accessibilityFocusEvent = accessibilityFocusEvent;
|
|
1019
|
+
ViewCommon.accessibilityFocusChangedEvent = accessibilityFocusChangedEvent;
|
|
1020
|
+
ViewCommon.accessibilityPerformEscapeEvent = accessibilityPerformEscapeEvent;
|
|
1021
|
+
ViewCommon.androidOverflowInsetEvent = 'androidOverflowInset';
|
|
1022
|
+
export const originXProperty = new Property({
|
|
1023
|
+
name: 'originX',
|
|
1024
|
+
defaultValue: 0.5,
|
|
1025
|
+
valueConverter: (v) => parseFloat(v),
|
|
1026
|
+
});
|
|
1027
|
+
originXProperty.register(ViewCommon);
|
|
1028
|
+
export const originYProperty = new Property({
|
|
1029
|
+
name: 'originY',
|
|
1030
|
+
defaultValue: 0.5,
|
|
1031
|
+
valueConverter: (v) => parseFloat(v),
|
|
1032
|
+
});
|
|
1033
|
+
originYProperty.register(ViewCommon);
|
|
1034
|
+
export const isEnabledProperty = new Property({
|
|
1035
|
+
name: 'isEnabled',
|
|
1036
|
+
defaultValue: true,
|
|
1037
|
+
valueConverter: booleanConverter,
|
|
1038
|
+
valueChanged(target, oldValue, newValue) {
|
|
1039
|
+
const state = 'disabled';
|
|
1040
|
+
if (newValue) {
|
|
1041
|
+
target._removeVisualState(state);
|
|
1042
|
+
}
|
|
1043
|
+
else {
|
|
1044
|
+
target._addVisualState(state);
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
});
|
|
1048
|
+
isEnabledProperty.register(ViewCommon);
|
|
1049
|
+
export const isUserInteractionEnabledProperty = new Property({
|
|
1050
|
+
name: 'isUserInteractionEnabled',
|
|
1051
|
+
defaultValue: true,
|
|
1052
|
+
valueConverter: booleanConverter,
|
|
1053
|
+
});
|
|
1054
|
+
isUserInteractionEnabledProperty.register(ViewCommon);
|
|
1055
|
+
/**
|
|
1056
|
+
* Property backing statusBarStyle.
|
|
1057
|
+
*/
|
|
1058
|
+
export const statusBarStyleProperty = new CssProperty({
|
|
1059
|
+
name: 'statusBarStyle',
|
|
1060
|
+
cssName: 'status-bar-style',
|
|
1061
|
+
});
|
|
1062
|
+
statusBarStyleProperty.register(Style);
|
|
1063
|
+
// Apple only
|
|
1064
|
+
export const iosOverflowSafeAreaProperty = new Property({
|
|
1065
|
+
name: 'iosOverflowSafeArea',
|
|
1066
|
+
defaultValue: false,
|
|
1067
|
+
valueConverter: booleanConverter,
|
|
1068
|
+
});
|
|
1069
|
+
iosOverflowSafeAreaProperty.register(ViewCommon);
|
|
1070
|
+
export const iosOverflowSafeAreaEnabledProperty = new InheritedProperty({
|
|
1071
|
+
name: 'iosOverflowSafeAreaEnabled',
|
|
1072
|
+
defaultValue: true,
|
|
1073
|
+
valueConverter: booleanConverter,
|
|
1074
|
+
});
|
|
1075
|
+
iosOverflowSafeAreaEnabledProperty.register(ViewCommon);
|
|
1076
|
+
export const iosIgnoreSafeAreaProperty = new InheritedProperty({
|
|
1077
|
+
name: 'iosIgnoreSafeArea',
|
|
1078
|
+
defaultValue: false,
|
|
1079
|
+
valueConverter: booleanConverter,
|
|
1080
|
+
});
|
|
1081
|
+
iosIgnoreSafeAreaProperty.register(ViewCommon);
|
|
1082
|
+
export const androidOverflowEdgeProperty = new Property({
|
|
1083
|
+
name: 'androidOverflowEdge',
|
|
1084
|
+
defaultValue: 'ignore',
|
|
1085
|
+
});
|
|
1086
|
+
androidOverflowEdgeProperty.register(ViewCommon);
|
|
1087
|
+
export const iosGlassEffectProperty = new Property({
|
|
1088
|
+
name: 'iosGlassEffect',
|
|
1089
|
+
});
|
|
1090
|
+
iosGlassEffectProperty.register(ViewCommon);
|
|
1091
|
+
export const visionHoverStyleProperty = new Property({
|
|
1092
|
+
name: 'visionHoverStyle',
|
|
1093
|
+
valueChanged(view, oldValue, newValue) {
|
|
1094
|
+
view.visionHoverStyle = newValue;
|
|
1095
|
+
},
|
|
1096
|
+
});
|
|
1097
|
+
visionHoverStyleProperty.register(ViewCommon);
|
|
1098
|
+
const visionIgnoreHoverStyleProperty = new Property({
|
|
1099
|
+
name: 'visionIgnoreHoverStyle',
|
|
1100
|
+
valueChanged(view, oldValue, newValue) {
|
|
1101
|
+
view.visionIgnoreHoverStyle = newValue;
|
|
1102
|
+
},
|
|
1103
|
+
valueConverter: booleanConverter,
|
|
1104
|
+
});
|
|
1105
|
+
visionIgnoreHoverStyleProperty.register(ViewCommon);
|
|
1106
|
+
// Apple only end
|
|
1107
|
+
const touchAnimationProperty = new Property({
|
|
1108
|
+
name: 'touchAnimation',
|
|
1109
|
+
valueChanged(view, oldValue, newValue) {
|
|
1110
|
+
view.touchAnimation = newValue;
|
|
1111
|
+
},
|
|
1112
|
+
valueConverter(value) {
|
|
1113
|
+
if (isObject(value)) {
|
|
1114
|
+
return value;
|
|
1115
|
+
}
|
|
1116
|
+
else {
|
|
1117
|
+
return booleanConverter(value);
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
});
|
|
1121
|
+
touchAnimationProperty.register(ViewCommon);
|
|
1122
|
+
const ignoreTouchAnimationProperty = new Property({
|
|
1123
|
+
name: 'ignoreTouchAnimation',
|
|
1124
|
+
valueChanged(view, oldValue, newValue) {
|
|
1125
|
+
view.ignoreTouchAnimation = newValue;
|
|
1126
|
+
},
|
|
1127
|
+
valueConverter: booleanConverter,
|
|
1128
|
+
});
|
|
1129
|
+
ignoreTouchAnimationProperty.register(ViewCommon);
|
|
1130
|
+
const touchDelayProperty = new Property({
|
|
1131
|
+
name: 'touchDelay',
|
|
1132
|
+
valueChanged(view, oldValue, newValue) {
|
|
1133
|
+
view.touchDelay = newValue;
|
|
1134
|
+
},
|
|
1135
|
+
valueConverter: (v) => parseFloat(v),
|
|
1136
|
+
});
|
|
1137
|
+
touchDelayProperty.register(ViewCommon);
|
|
1138
|
+
export const testIDProperty = new Property({
|
|
1139
|
+
name: 'testID',
|
|
1140
|
+
});
|
|
1141
|
+
testIDProperty.register(ViewCommon);
|
|
1142
|
+
accessibilityIdentifierProperty.register(ViewCommon);
|
|
1143
|
+
accessibilityLabelProperty.register(ViewCommon);
|
|
1144
|
+
accessibilityValueProperty.register(ViewCommon);
|
|
1145
|
+
accessibilityHintProperty.register(ViewCommon);
|
|
1146
|
+
accessibilityIgnoresInvertColorsProperty.register(ViewCommon);
|
|
1147
|
+
//# sourceMappingURL=view-common.js.map
|