@nativescript/core 9.0.11-next.2 → 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/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,1091 @@
|
|
|
1
|
+
import { ViewCommon, isEnabledProperty, originXProperty, originYProperty, isUserInteractionEnabledProperty, testIDProperty, iosGlassEffectProperty, statusBarStyleProperty } from './view-common';
|
|
2
|
+
import { isAccessibilityServiceEnabled } from '../../../application';
|
|
3
|
+
import { updateA11yPropertiesCallback } from '../../../application/helpers-common';
|
|
4
|
+
import { hiddenProperty } from '../view-base';
|
|
5
|
+
import { Trace } from '../../../trace';
|
|
6
|
+
import { layout, ios as iosUtils, getWindow } from '../../../utils';
|
|
7
|
+
import { SDK_VERSION, supportsGlass } from '../../../utils/constants';
|
|
8
|
+
import { IOSHelper } from './view-helper';
|
|
9
|
+
import { ios as iosBackground } from '../../styling/background';
|
|
10
|
+
import { perspectiveProperty, visibilityProperty, opacityProperty, rotateProperty, rotateXProperty, rotateYProperty, scaleXProperty, scaleYProperty, translateXProperty, translateYProperty, zIndexProperty, backgroundInternalProperty, directionProperty } from '../../styling/style-properties';
|
|
11
|
+
import { profile } from '../../../profiling';
|
|
12
|
+
import { accessibilityEnabledProperty, accessibilityHiddenProperty, accessibilityHintProperty, accessibilityIdentifierProperty, accessibilityLabelProperty, accessibilityLanguageProperty, accessibilityLiveRegionProperty, accessibilityMediaSessionProperty, accessibilityRoleProperty, accessibilityStateProperty, accessibilityValueProperty, accessibilityIgnoresInvertColorsProperty } from '../../../accessibility/accessibility-properties';
|
|
13
|
+
import { IOSPostAccessibilityNotificationType } from '../../../accessibility';
|
|
14
|
+
import { CoreTypes } from '../../../core-types';
|
|
15
|
+
import { SharedTransition } from '../../transition/shared-transition';
|
|
16
|
+
import { Color } from '../../../color';
|
|
17
|
+
export * from './view-common';
|
|
18
|
+
export * from './view-helper';
|
|
19
|
+
// This one can eventually be cleaned up but causes issues with a lot of ui-suite plugins in particular if not exported here
|
|
20
|
+
export * from '../properties';
|
|
21
|
+
const PFLAG_FORCE_LAYOUT = 1;
|
|
22
|
+
const PFLAG_MEASURED_DIMENSION_SET = 1 << 1;
|
|
23
|
+
const PFLAG_LAYOUT_REQUIRED = 1 << 2;
|
|
24
|
+
export class View extends ViewCommon {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this._isLaidOut = false;
|
|
28
|
+
this._isTransformed = false;
|
|
29
|
+
this._privateFlags = PFLAG_LAYOUT_REQUIRED | PFLAG_FORCE_LAYOUT;
|
|
30
|
+
this._suspendCATransaction = false;
|
|
31
|
+
}
|
|
32
|
+
get isLayoutRequired() {
|
|
33
|
+
return (this._privateFlags & PFLAG_LAYOUT_REQUIRED) === PFLAG_LAYOUT_REQUIRED;
|
|
34
|
+
}
|
|
35
|
+
get isLayoutRequested() {
|
|
36
|
+
return (this._privateFlags & PFLAG_FORCE_LAYOUT) === PFLAG_FORCE_LAYOUT;
|
|
37
|
+
}
|
|
38
|
+
disposeNativeView() {
|
|
39
|
+
super.disposeNativeView();
|
|
40
|
+
this._cachedFrame = null;
|
|
41
|
+
this._isLaidOut = false;
|
|
42
|
+
this._isTransformed = false;
|
|
43
|
+
}
|
|
44
|
+
requestLayout() {
|
|
45
|
+
this._privateFlags |= PFLAG_FORCE_LAYOUT;
|
|
46
|
+
super.requestLayout();
|
|
47
|
+
const nativeView = this.nativeViewProtected;
|
|
48
|
+
if (nativeView && nativeView.setNeedsLayout) {
|
|
49
|
+
nativeView.setNeedsLayout();
|
|
50
|
+
}
|
|
51
|
+
if (this.viewController && this.viewController.view !== nativeView) {
|
|
52
|
+
this.viewController.view.setNeedsLayout();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
measure(widthMeasureSpec, heightMeasureSpec) {
|
|
56
|
+
const measureSpecsChanged = this._setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec);
|
|
57
|
+
const forceLayout = (this._privateFlags & PFLAG_FORCE_LAYOUT) === PFLAG_FORCE_LAYOUT;
|
|
58
|
+
if (this.nativeViewProtected && (forceLayout || measureSpecsChanged)) {
|
|
59
|
+
// first clears the measured dimension flag
|
|
60
|
+
this._privateFlags &= ~PFLAG_MEASURED_DIMENSION_SET;
|
|
61
|
+
// measure ourselves, this should set the measured dimension flag back
|
|
62
|
+
this.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
|
63
|
+
this._privateFlags |= PFLAG_LAYOUT_REQUIRED;
|
|
64
|
+
// flag not set, setMeasuredDimension() was not invoked, we trace
|
|
65
|
+
// the exception to warn the developer
|
|
66
|
+
if ((this._privateFlags & PFLAG_MEASURED_DIMENSION_SET) !== PFLAG_MEASURED_DIMENSION_SET) {
|
|
67
|
+
if (Trace.isEnabled()) {
|
|
68
|
+
Trace.write('onMeasure() did not set the measured dimension by calling setMeasuredDimension() ' + this, Trace.categories.Layout, Trace.messageType.error);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
layout(left, top, right, bottom, setFrame = true) {
|
|
74
|
+
const { boundsChanged, sizeChanged } = this._setCurrentLayoutBounds(left, top, right, bottom);
|
|
75
|
+
if (setFrame) {
|
|
76
|
+
this.layoutNativeView(left, top, right, bottom);
|
|
77
|
+
}
|
|
78
|
+
const needsLayout = boundsChanged || (this._privateFlags & PFLAG_LAYOUT_REQUIRED) === PFLAG_LAYOUT_REQUIRED;
|
|
79
|
+
if (needsLayout) {
|
|
80
|
+
let position;
|
|
81
|
+
if (this.nativeViewProtected && SDK_VERSION > 10) {
|
|
82
|
+
// on iOS 11+ it is possible to have a changed layout frame due to safe area insets
|
|
83
|
+
// get the frame and adjust the position, so that onLayout works correctly
|
|
84
|
+
position = IOSHelper.getPositionFromFrame(this.nativeViewProtected.frame);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
position = { left, top, right, bottom };
|
|
88
|
+
}
|
|
89
|
+
this.onLayout(position.left, position.top, position.right, position.bottom);
|
|
90
|
+
this._privateFlags &= ~PFLAG_LAYOUT_REQUIRED;
|
|
91
|
+
}
|
|
92
|
+
this.updateBackground(sizeChanged, needsLayout);
|
|
93
|
+
this._privateFlags &= ~PFLAG_FORCE_LAYOUT;
|
|
94
|
+
}
|
|
95
|
+
updateBackground(sizeChanged, needsLayout) {
|
|
96
|
+
if (sizeChanged) {
|
|
97
|
+
this._onSizeChanged();
|
|
98
|
+
}
|
|
99
|
+
else if (this._nativeBackgroundState === 'invalid') {
|
|
100
|
+
const background = this.style.backgroundInternal;
|
|
101
|
+
this._redrawNativeBackground(background);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
// Update layers that don't belong to view's layer (e.g. shadow layers)
|
|
105
|
+
if (needsLayout) {
|
|
106
|
+
this.layoutOuterShadows();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
layoutOuterShadows() {
|
|
111
|
+
const nativeView = this.nativeViewProtected;
|
|
112
|
+
if (nativeView?.outerShadowContainerLayer) {
|
|
113
|
+
CATransaction.setDisableActions(true);
|
|
114
|
+
nativeView.outerShadowContainerLayer.bounds = nativeView.bounds;
|
|
115
|
+
nativeView.outerShadowContainerLayer.position = nativeView.center;
|
|
116
|
+
CATransaction.setDisableActions(false);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
setMeasuredDimension(measuredWidth, measuredHeight) {
|
|
120
|
+
super.setMeasuredDimension(measuredWidth, measuredHeight);
|
|
121
|
+
this._privateFlags |= PFLAG_MEASURED_DIMENSION_SET;
|
|
122
|
+
}
|
|
123
|
+
onMeasure(widthMeasureSpec, heightMeasureSpec) {
|
|
124
|
+
const view = this.nativeViewProtected;
|
|
125
|
+
const width = layout.getMeasureSpecSize(widthMeasureSpec);
|
|
126
|
+
const widthMode = layout.getMeasureSpecMode(widthMeasureSpec);
|
|
127
|
+
const height = layout.getMeasureSpecSize(heightMeasureSpec);
|
|
128
|
+
const heightMode = layout.getMeasureSpecMode(heightMeasureSpec);
|
|
129
|
+
let nativeWidth = 0;
|
|
130
|
+
let nativeHeight = 0;
|
|
131
|
+
if (view) {
|
|
132
|
+
const nativeSize = layout.measureNativeView(view, width, widthMode, height, heightMode);
|
|
133
|
+
nativeWidth = nativeSize.width;
|
|
134
|
+
nativeHeight = nativeSize.height;
|
|
135
|
+
}
|
|
136
|
+
const measureWidth = Math.max(nativeWidth, this.effectiveMinWidth);
|
|
137
|
+
const measureHeight = Math.max(nativeHeight, this.effectiveMinHeight);
|
|
138
|
+
const widthAndState = View.resolveSizeAndState(measureWidth, width, widthMode, 0);
|
|
139
|
+
const heightAndState = View.resolveSizeAndState(measureHeight, height, heightMode, 0);
|
|
140
|
+
this.setMeasuredDimension(widthAndState, heightAndState);
|
|
141
|
+
}
|
|
142
|
+
onLayout(left, top, right, bottom) {
|
|
143
|
+
//
|
|
144
|
+
}
|
|
145
|
+
_modifyNativeViewFrame(nativeView, frame) {
|
|
146
|
+
let transform;
|
|
147
|
+
if (this._isTransformed) {
|
|
148
|
+
// Always set identity transform before setting frame
|
|
149
|
+
transform = nativeView.layer.transform;
|
|
150
|
+
nativeView.layer.transform = CATransform3DIdentity;
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
transform = null;
|
|
154
|
+
}
|
|
155
|
+
nativeView.frame = frame;
|
|
156
|
+
const adjustedFrame = this.applySafeAreaInsets(frame);
|
|
157
|
+
if (adjustedFrame) {
|
|
158
|
+
nativeView.frame = adjustedFrame;
|
|
159
|
+
}
|
|
160
|
+
if (transform != null) {
|
|
161
|
+
// Re-apply the transform after the frame is adjusted
|
|
162
|
+
nativeView.layer.transform = transform;
|
|
163
|
+
}
|
|
164
|
+
const boundsOrigin = nativeView.bounds.origin;
|
|
165
|
+
const boundsFrame = adjustedFrame || frame;
|
|
166
|
+
nativeView.bounds = CGRectMake(boundsOrigin.x, boundsOrigin.y, boundsFrame.size.width, boundsFrame.size.height);
|
|
167
|
+
nativeView.layoutIfNeeded();
|
|
168
|
+
}
|
|
169
|
+
_setNativeViewFrame(nativeView, frame) {
|
|
170
|
+
const oldFrame = this._cachedFrame || nativeView.frame;
|
|
171
|
+
if (!CGRectEqualToRect(oldFrame, frame)) {
|
|
172
|
+
if (Trace.isEnabled()) {
|
|
173
|
+
Trace.write(this + ' :_setNativeViewFrame: ' + JSON.stringify(IOSHelper.getPositionFromFrame(frame)), Trace.categories.Layout);
|
|
174
|
+
}
|
|
175
|
+
this._cachedFrame = frame;
|
|
176
|
+
this._modifyNativeViewFrame(nativeView, frame);
|
|
177
|
+
this._raiseLayoutChangedEvent();
|
|
178
|
+
this._isLaidOut = true;
|
|
179
|
+
}
|
|
180
|
+
else if (!this._isLaidOut) {
|
|
181
|
+
this._cachedFrame = frame;
|
|
182
|
+
// Rects could be equal on the first layout and an event should be raised.
|
|
183
|
+
this._raiseLayoutChangedEvent();
|
|
184
|
+
// But make sure event is raised only once if rects are equal on the first layout as
|
|
185
|
+
// this method is called twice with equal rects in landscape mode (vs only once in portrait)
|
|
186
|
+
this._isLaidOut = true;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
get isLayoutValid() {
|
|
190
|
+
if (this.nativeViewProtected) {
|
|
191
|
+
return this._isLayoutValid;
|
|
192
|
+
}
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
195
|
+
layoutNativeView(left, top, right, bottom) {
|
|
196
|
+
if (!this.nativeViewProtected) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
const nativeView = this.nativeViewProtected;
|
|
200
|
+
const frame = IOSHelper.getFrameFromPosition({
|
|
201
|
+
left,
|
|
202
|
+
top,
|
|
203
|
+
right,
|
|
204
|
+
bottom,
|
|
205
|
+
});
|
|
206
|
+
this._setNativeViewFrame(nativeView, frame);
|
|
207
|
+
}
|
|
208
|
+
_layoutParent() {
|
|
209
|
+
if (this.nativeViewProtected) {
|
|
210
|
+
const frame = this.nativeViewProtected.frame;
|
|
211
|
+
const origin = frame.origin;
|
|
212
|
+
const size = frame.size;
|
|
213
|
+
const left = layout.toDevicePixels(origin.x);
|
|
214
|
+
const top = layout.toDevicePixels(origin.y);
|
|
215
|
+
const width = layout.toDevicePixels(size.width);
|
|
216
|
+
const height = layout.toDevicePixels(size.height);
|
|
217
|
+
this._setLayoutFlags(left, top, width + left, height + top);
|
|
218
|
+
}
|
|
219
|
+
super._layoutParent();
|
|
220
|
+
}
|
|
221
|
+
_setLayoutFlags(left, top, right, bottom) {
|
|
222
|
+
const width = right - left;
|
|
223
|
+
const height = bottom - top;
|
|
224
|
+
const widthSpec = layout.makeMeasureSpec(width, layout.EXACTLY);
|
|
225
|
+
const heightSpec = layout.makeMeasureSpec(height, layout.EXACTLY);
|
|
226
|
+
this._setCurrentMeasureSpecs(widthSpec, heightSpec);
|
|
227
|
+
this._privateFlags &= ~PFLAG_FORCE_LAYOUT;
|
|
228
|
+
this.setMeasuredDimension(width, height);
|
|
229
|
+
const { boundsChanged, sizeChanged } = this._setCurrentLayoutBounds(left, top, right, bottom);
|
|
230
|
+
this.updateBackground(sizeChanged, boundsChanged);
|
|
231
|
+
this._privateFlags &= ~PFLAG_LAYOUT_REQUIRED;
|
|
232
|
+
}
|
|
233
|
+
focus() {
|
|
234
|
+
if (this.ios) {
|
|
235
|
+
return this.ios.becomeFirstResponder();
|
|
236
|
+
}
|
|
237
|
+
return false;
|
|
238
|
+
}
|
|
239
|
+
applySafeAreaInsets(frame) {
|
|
240
|
+
if (!__VISIONOS__ && SDK_VERSION <= 10) {
|
|
241
|
+
return null;
|
|
242
|
+
}
|
|
243
|
+
if (this.iosIgnoreSafeArea) {
|
|
244
|
+
return frame;
|
|
245
|
+
}
|
|
246
|
+
if (!this.iosOverflowSafeArea || !this.iosOverflowSafeAreaEnabled) {
|
|
247
|
+
return IOSHelper.shrinkToSafeArea(this, frame);
|
|
248
|
+
}
|
|
249
|
+
else if (this.nativeViewProtected && this.nativeViewProtected.window) {
|
|
250
|
+
return IOSHelper.expandBeyondSafeArea(this, frame);
|
|
251
|
+
}
|
|
252
|
+
return null;
|
|
253
|
+
}
|
|
254
|
+
getSafeAreaInsets() {
|
|
255
|
+
const safeAreaInsets = this.nativeViewProtected && this.nativeViewProtected.safeAreaInsets;
|
|
256
|
+
const insets = { left: 0, top: 0, right: 0, bottom: 0 };
|
|
257
|
+
if (this.iosIgnoreSafeArea) {
|
|
258
|
+
return insets;
|
|
259
|
+
}
|
|
260
|
+
if (safeAreaInsets) {
|
|
261
|
+
insets.left = layout.round(layout.toDevicePixels(safeAreaInsets.left));
|
|
262
|
+
insets.top = layout.round(layout.toDevicePixels(safeAreaInsets.top));
|
|
263
|
+
insets.right = layout.round(layout.toDevicePixels(safeAreaInsets.right));
|
|
264
|
+
insets.bottom = layout.round(layout.toDevicePixels(safeAreaInsets.bottom));
|
|
265
|
+
}
|
|
266
|
+
return insets;
|
|
267
|
+
}
|
|
268
|
+
getLocationInWindow() {
|
|
269
|
+
if (!this.nativeViewProtected || !this.nativeViewProtected.window) {
|
|
270
|
+
return undefined;
|
|
271
|
+
}
|
|
272
|
+
const pointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
|
|
273
|
+
return {
|
|
274
|
+
x: pointInWindow.x,
|
|
275
|
+
y: pointInWindow.y,
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
getLocationOnScreen() {
|
|
279
|
+
if (!this.nativeViewProtected || !this.nativeViewProtected.window) {
|
|
280
|
+
return undefined;
|
|
281
|
+
}
|
|
282
|
+
const pointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
|
|
283
|
+
const pointOnScreen = this.nativeViewProtected.window.convertPointToWindow(pointInWindow, null);
|
|
284
|
+
return {
|
|
285
|
+
x: pointOnScreen.x,
|
|
286
|
+
y: pointOnScreen.y,
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
getLocationRelativeTo(otherView) {
|
|
290
|
+
if (!this.nativeViewProtected || !this.nativeViewProtected.window || !otherView.nativeViewProtected || !otherView.nativeViewProtected.window || this.nativeViewProtected.window !== otherView.nativeViewProtected.window) {
|
|
291
|
+
return undefined;
|
|
292
|
+
}
|
|
293
|
+
const myPointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
|
|
294
|
+
const otherPointInWindow = otherView.nativeViewProtected.convertPointToView(otherView.nativeViewProtected.bounds.origin, null);
|
|
295
|
+
return {
|
|
296
|
+
x: myPointInWindow.x - otherPointInWindow.x,
|
|
297
|
+
y: myPointInWindow.y - otherPointInWindow.y,
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
_onSizeChanged() {
|
|
301
|
+
const nativeView = this.nativeViewProtected;
|
|
302
|
+
if (!nativeView) {
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
const background = this.style.backgroundInternal;
|
|
306
|
+
const backgroundDependsOnSize = (background.image && background.image !== 'none') || background.clipPath || !background.hasUniformBorder() || background.hasBorderRadius() || background.hasBoxShadows();
|
|
307
|
+
if (this._nativeBackgroundState === 'invalid' || (this._nativeBackgroundState === 'drawn' && backgroundDependsOnSize)) {
|
|
308
|
+
this._redrawNativeBackground(background);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
updateNativeTransform() {
|
|
312
|
+
const scaleX = this.scaleX || 1e-6;
|
|
313
|
+
const scaleY = this.scaleY || 1e-6;
|
|
314
|
+
const perspective = this.perspective || 300;
|
|
315
|
+
const nativeView = this.nativeViewProtected;
|
|
316
|
+
let transform = new CATransform3D(CATransform3DIdentity);
|
|
317
|
+
// Only set perspective if there is 3D rotation
|
|
318
|
+
if (this.rotateX || this.rotateY) {
|
|
319
|
+
transform.m34 = -1 / perspective;
|
|
320
|
+
}
|
|
321
|
+
transform = CATransform3DTranslate(transform, this.translateX, this.translateY, 0);
|
|
322
|
+
transform = iosUtils.applyRotateTransform(transform, this.rotateX, this.rotateY, this.rotate);
|
|
323
|
+
transform = CATransform3DScale(transform, scaleX, scaleY, 1);
|
|
324
|
+
if (!CATransform3DEqualToTransform(this.nativeViewProtected.layer.transform, transform)) {
|
|
325
|
+
const updateSuspended = this._isPresentationLayerUpdateSuspended();
|
|
326
|
+
if (!updateSuspended) {
|
|
327
|
+
CATransaction.begin();
|
|
328
|
+
}
|
|
329
|
+
// Disable CALayer animatable property changes
|
|
330
|
+
CATransaction.setDisableActions(true);
|
|
331
|
+
this.nativeViewProtected.layer.transform = transform;
|
|
332
|
+
if (nativeView.outerShadowContainerLayer) {
|
|
333
|
+
nativeView.outerShadowContainerLayer.transform = transform;
|
|
334
|
+
}
|
|
335
|
+
this._isTransformed = this.nativeViewProtected && !CATransform3DEqualToTransform(this.nativeViewProtected.transform3D, CATransform3DIdentity);
|
|
336
|
+
CATransaction.setDisableActions(false);
|
|
337
|
+
if (!updateSuspended) {
|
|
338
|
+
CATransaction.commit();
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
updateOriginPoint(originX, originY) {
|
|
343
|
+
const nativeView = this.nativeViewProtected;
|
|
344
|
+
const newPoint = CGPointMake(originX, originY);
|
|
345
|
+
// Disable CALayer animatable property changes
|
|
346
|
+
CATransaction.setDisableActions(true);
|
|
347
|
+
nativeView.layer.anchorPoint = newPoint;
|
|
348
|
+
// Bounds have to be recalculated after anchor point update
|
|
349
|
+
if (this._cachedFrame) {
|
|
350
|
+
const frame = this._cachedFrame;
|
|
351
|
+
this._cachedFrame = null;
|
|
352
|
+
this._setNativeViewFrame(nativeView, frame);
|
|
353
|
+
}
|
|
354
|
+
// Make sure new origin also applies to outer shadow layers
|
|
355
|
+
if (nativeView.outerShadowContainerLayer) {
|
|
356
|
+
// This is the new frame after view origin point update
|
|
357
|
+
const frame = nativeView.frame;
|
|
358
|
+
nativeView.outerShadowContainerLayer.anchorPoint = newPoint;
|
|
359
|
+
nativeView.outerShadowContainerLayer.position = CGPointMake(frame.origin.x + frame.size.width * originX, frame.origin.y + frame.size.height * originY);
|
|
360
|
+
}
|
|
361
|
+
CATransaction.setDisableActions(false);
|
|
362
|
+
}
|
|
363
|
+
// By default we update the view's presentation layer when setting backgroundColor and opacity properties.
|
|
364
|
+
// This is done by calling CATransaction begin and commit methods.
|
|
365
|
+
// This action should be disabled when updating those properties during an animation.
|
|
366
|
+
_suspendPresentationLayerUpdates() {
|
|
367
|
+
this._suspendCATransaction = true;
|
|
368
|
+
}
|
|
369
|
+
_resumePresentationLayerUpdates() {
|
|
370
|
+
this._suspendCATransaction = false;
|
|
371
|
+
}
|
|
372
|
+
_isPresentationLayerUpdateSuspended() {
|
|
373
|
+
return this._suspendCATransaction || this._suspendNativeUpdatesCount > 0;
|
|
374
|
+
}
|
|
375
|
+
_showNativeModalView(parent, options) {
|
|
376
|
+
const parentWithController = IOSHelper.getParentWithViewController(parent);
|
|
377
|
+
if (!parentWithController) {
|
|
378
|
+
Trace.write(`Could not find parent with viewController for ${parent} while showing modal view.`, Trace.categories.ViewHierarchy, Trace.messageType.error);
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
const parentController = parentWithController.viewController;
|
|
382
|
+
if (parentController.presentedViewController) {
|
|
383
|
+
Trace.write('Parent is already presenting view controller. Close the current modal page before showing another one!', Trace.categories.ViewHierarchy, Trace.messageType.error);
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
if (!parentController.view || !parentController.view.window) {
|
|
387
|
+
Trace.write('Parent page is not part of the window hierarchy.', Trace.categories.ViewHierarchy, Trace.messageType.error);
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
this._setupAsRootView({});
|
|
391
|
+
super._showNativeModalView(parentWithController, options);
|
|
392
|
+
let controller = this.viewController;
|
|
393
|
+
if (!controller) {
|
|
394
|
+
const nativeView = this.ios || this.nativeViewProtected;
|
|
395
|
+
controller = IOSHelper.UILayoutViewController.initWithOwner(new WeakRef(this));
|
|
396
|
+
if (nativeView instanceof UIView) {
|
|
397
|
+
controller.view.addSubview(nativeView);
|
|
398
|
+
}
|
|
399
|
+
this.viewController = controller;
|
|
400
|
+
}
|
|
401
|
+
if (options.transition) {
|
|
402
|
+
controller.modalPresentationStyle = 4 /* UIModalPresentationStyle.Custom */;
|
|
403
|
+
if (options.transition.instance) {
|
|
404
|
+
this._transitioningDelegate = UIViewControllerTransitioningDelegateImpl.initWithOwner(new WeakRef(options.transition.instance));
|
|
405
|
+
controller.transitioningDelegate = this._transitioningDelegate;
|
|
406
|
+
this.transitionId = options.transition.instance.id;
|
|
407
|
+
const transitionState = SharedTransition.getState(options.transition.instance.id);
|
|
408
|
+
if (transitionState?.interactive?.dismiss) {
|
|
409
|
+
// interactive transitions via gestures
|
|
410
|
+
// TODO - these could be typed as: boolean | (view: View) => void
|
|
411
|
+
// to allow users to define their own custom gesture dismissals
|
|
412
|
+
options.transition.instance.setupInteractiveGesture(this._closeModalCallback.bind(this), this);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
else if (options.fullscreen) {
|
|
417
|
+
controller.modalPresentationStyle = 0 /* UIModalPresentationStyle.FullScreen */;
|
|
418
|
+
}
|
|
419
|
+
else {
|
|
420
|
+
controller.modalPresentationStyle = 2 /* UIModalPresentationStyle.FormSheet */;
|
|
421
|
+
//check whether both height and width is provided and are positive numbers
|
|
422
|
+
// set it has prefered content size to the controller presenting the dialog
|
|
423
|
+
if (options.ios && options.ios.width > 0 && options.ios.height > 0) {
|
|
424
|
+
controller.preferredContentSize = CGSizeMake(options.ios.width, options.ios.height);
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
//use CSS & attribute width & height if option is not provided
|
|
428
|
+
const handler = () => {
|
|
429
|
+
if (this.viewController) {
|
|
430
|
+
const w = (this.width || this.style.width);
|
|
431
|
+
const h = (this.height || this.style.height);
|
|
432
|
+
//TODO: only numeric value is supported, percentage value is not supported like Android
|
|
433
|
+
if (w > 0 && h > 0) {
|
|
434
|
+
this.viewController.preferredContentSize = CGSizeMake(w, h);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
this.off(View.loadedEvent, handler);
|
|
438
|
+
};
|
|
439
|
+
this.on(View.loadedEvent, handler);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
if (options.ios) {
|
|
443
|
+
if (options.ios.presentationStyle) {
|
|
444
|
+
const presentationStyle = options.ios.presentationStyle;
|
|
445
|
+
controller.modalPresentationStyle = presentationStyle;
|
|
446
|
+
if (presentationStyle === 7 /* UIModalPresentationStyle.Popover */) {
|
|
447
|
+
this._setupPopoverControllerDelegate(controller, parent);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
if (options.ios.statusBarStyle) {
|
|
451
|
+
/**
|
|
452
|
+
* https://developer.apple.com/documentation/uikit/uiviewcontroller/modalpresentationcapturesstatusbarappearance
|
|
453
|
+
*/
|
|
454
|
+
controller.modalPresentationCapturesStatusBarAppearance = true;
|
|
455
|
+
this.statusBarStyle = options.ios.statusBarStyle;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
const cancelable = options.cancelable !== undefined ? !!options.cancelable : true;
|
|
459
|
+
if (SDK_VERSION >= 13) {
|
|
460
|
+
if (cancelable) {
|
|
461
|
+
// Listen for dismiss modal callback.
|
|
462
|
+
this._setupAdaptiveControllerDelegate(controller);
|
|
463
|
+
}
|
|
464
|
+
else {
|
|
465
|
+
// Prevent users from dismissing the modal.
|
|
466
|
+
controller.modalInPresentation = true;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
this.horizontalAlignment = 'stretch';
|
|
470
|
+
this.verticalAlignment = 'stretch';
|
|
471
|
+
this._raiseShowingModallyEvent();
|
|
472
|
+
const animated = options.animated === undefined ? true : !!options.animated;
|
|
473
|
+
if (!this._modalAnimatedOptions) {
|
|
474
|
+
// track the user's animated options to use upon close as well
|
|
475
|
+
this._modalAnimatedOptions = [];
|
|
476
|
+
}
|
|
477
|
+
this._modalAnimatedOptions.push(animated);
|
|
478
|
+
// TODO: a11y
|
|
479
|
+
// controller.accessibilityViewIsModal = true;
|
|
480
|
+
// controller.accessibilityPerformEscape = () => {
|
|
481
|
+
// console.log('accessibilityPerformEscape!!')
|
|
482
|
+
// return true;
|
|
483
|
+
// }
|
|
484
|
+
parentController.presentViewControllerAnimatedCompletion(controller, animated, null);
|
|
485
|
+
const transitionCoordinator = parentController.transitionCoordinator;
|
|
486
|
+
if (transitionCoordinator) {
|
|
487
|
+
transitionCoordinator.animateAlongsideTransitionCompletion(null, () => {
|
|
488
|
+
setTimeout(() => {
|
|
489
|
+
// ensure raised on main queue
|
|
490
|
+
this._raiseShownModallyEvent();
|
|
491
|
+
});
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
else {
|
|
495
|
+
// Apparently iOS 9+ stops all transitions and animations upon application suspend and transitionCoordinator becomes null here in this case.
|
|
496
|
+
// Since we are not waiting for any transition to complete, i.e. transitionCoordinator is null, we can directly raise our shownModally event.
|
|
497
|
+
// Take a look at https://github.com/NativeScript/NativeScript/issues/2173 for more info and a sample project.
|
|
498
|
+
this._raiseShownModallyEvent();
|
|
499
|
+
}
|
|
500
|
+
controller = null;
|
|
501
|
+
}
|
|
502
|
+
_hideNativeModalView(parent, whenClosedCallback) {
|
|
503
|
+
if (!parent || !parent.viewController) {
|
|
504
|
+
Trace.error('Trying to hide modal view but no parent with viewController specified.');
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
// modal view has already been closed by UI, probably as a popover
|
|
508
|
+
if (!parent.viewController.presentedViewController) {
|
|
509
|
+
whenClosedCallback();
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
512
|
+
const parentController = parent.viewController;
|
|
513
|
+
let animated = true;
|
|
514
|
+
if (this._modalAnimatedOptions?.length) {
|
|
515
|
+
animated = this._modalAnimatedOptions.slice(-1)[0];
|
|
516
|
+
}
|
|
517
|
+
parentController.dismissViewControllerAnimatedCompletion(animated, () => {
|
|
518
|
+
const transitionState = SharedTransition.getState(this.transitionId);
|
|
519
|
+
if (!transitionState?.interactiveCancelled) {
|
|
520
|
+
this._transitioningDelegate = null;
|
|
521
|
+
// this.off('pan', this._interactiveDismissGesture);
|
|
522
|
+
if (this._modalAnimatedOptions) {
|
|
523
|
+
this._modalAnimatedOptions.pop();
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
whenClosedCallback();
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
[isEnabledProperty.getDefault]() {
|
|
530
|
+
const nativeView = this.nativeViewProtected;
|
|
531
|
+
return nativeView instanceof UIControl ? nativeView.enabled : true;
|
|
532
|
+
}
|
|
533
|
+
[isEnabledProperty.setNative](value) {
|
|
534
|
+
const nativeView = this.nativeViewProtected;
|
|
535
|
+
if (nativeView instanceof UIControl) {
|
|
536
|
+
nativeView.enabled = value;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
[originXProperty.getDefault]() {
|
|
540
|
+
return this.nativeViewProtected.layer.anchorPoint.x;
|
|
541
|
+
}
|
|
542
|
+
[originXProperty.setNative](value) {
|
|
543
|
+
this.updateOriginPoint(value, this.originY);
|
|
544
|
+
}
|
|
545
|
+
[originYProperty.getDefault]() {
|
|
546
|
+
return this.nativeViewProtected.layer.anchorPoint.y;
|
|
547
|
+
}
|
|
548
|
+
[originYProperty.setNative](value) {
|
|
549
|
+
this.updateOriginPoint(this.originX, value);
|
|
550
|
+
}
|
|
551
|
+
[testIDProperty.setNative](value) {
|
|
552
|
+
this.setAccessibilityIdentifier(this.nativeViewProtected, value);
|
|
553
|
+
}
|
|
554
|
+
setAccessibilityIdentifier(view, value) {
|
|
555
|
+
view.accessibilityIdentifier = value;
|
|
556
|
+
if (this.testID && this.testID !== value)
|
|
557
|
+
this.testID = value;
|
|
558
|
+
if (this.accessibilityIdentifier !== value)
|
|
559
|
+
this.accessibilityIdentifier = value;
|
|
560
|
+
}
|
|
561
|
+
[accessibilityEnabledProperty.setNative](value) {
|
|
562
|
+
this.nativeViewProtected.isAccessibilityElement = !!value;
|
|
563
|
+
updateA11yPropertiesCallback(this);
|
|
564
|
+
}
|
|
565
|
+
[accessibilityIdentifierProperty.getDefault]() {
|
|
566
|
+
return this.nativeViewProtected.accessibilityIdentifier;
|
|
567
|
+
}
|
|
568
|
+
[accessibilityIdentifierProperty.setNative](value) {
|
|
569
|
+
this.setAccessibilityIdentifier(this.nativeViewProtected, value);
|
|
570
|
+
}
|
|
571
|
+
[accessibilityRoleProperty.setNative](value) {
|
|
572
|
+
this.accessibilityRole = value;
|
|
573
|
+
updateA11yPropertiesCallback(this);
|
|
574
|
+
}
|
|
575
|
+
[accessibilityValueProperty.setNative](value) {
|
|
576
|
+
value = value == null ? null : `${value}`;
|
|
577
|
+
this.nativeViewProtected.accessibilityValue = value;
|
|
578
|
+
}
|
|
579
|
+
[accessibilityLabelProperty.setNative](value) {
|
|
580
|
+
value = value == null ? null : `${value}`;
|
|
581
|
+
// not sure if needed for Label:
|
|
582
|
+
// if ((<any>this).nativeTextViewProtected) {
|
|
583
|
+
// (<any>this).nativeTextViewProtected.accessibilityLabel = value;
|
|
584
|
+
// } else {
|
|
585
|
+
this.nativeViewProtected.accessibilityLabel = value;
|
|
586
|
+
// }
|
|
587
|
+
}
|
|
588
|
+
[accessibilityHintProperty.setNative](value) {
|
|
589
|
+
value = value == null ? null : `${value}`;
|
|
590
|
+
this.nativeViewProtected.accessibilityHint = value;
|
|
591
|
+
}
|
|
592
|
+
[accessibilityIgnoresInvertColorsProperty.setNative](value) {
|
|
593
|
+
this.nativeViewProtected.accessibilityIgnoresInvertColors = !!value;
|
|
594
|
+
}
|
|
595
|
+
[accessibilityLanguageProperty.setNative](value) {
|
|
596
|
+
value = value == null ? null : `${value}`;
|
|
597
|
+
this.nativeViewProtected.accessibilityLanguage = value;
|
|
598
|
+
}
|
|
599
|
+
[accessibilityHiddenProperty.setNative](value) {
|
|
600
|
+
this.nativeViewProtected.accessibilityElementsHidden = !!value;
|
|
601
|
+
updateA11yPropertiesCallback(this);
|
|
602
|
+
}
|
|
603
|
+
[accessibilityLiveRegionProperty.setNative]() {
|
|
604
|
+
updateA11yPropertiesCallback(this);
|
|
605
|
+
}
|
|
606
|
+
[accessibilityStateProperty.setNative](value) {
|
|
607
|
+
this.accessibilityState = value;
|
|
608
|
+
updateA11yPropertiesCallback(this);
|
|
609
|
+
}
|
|
610
|
+
[accessibilityMediaSessionProperty.setNative]() {
|
|
611
|
+
updateA11yPropertiesCallback(this);
|
|
612
|
+
}
|
|
613
|
+
[isUserInteractionEnabledProperty.getDefault]() {
|
|
614
|
+
return this.nativeViewProtected.userInteractionEnabled;
|
|
615
|
+
}
|
|
616
|
+
[isUserInteractionEnabledProperty.setNative](value) {
|
|
617
|
+
this.nativeViewProtected.userInteractionEnabled = value;
|
|
618
|
+
}
|
|
619
|
+
[hiddenProperty.getDefault]() {
|
|
620
|
+
return this.nativeViewProtected.hidden;
|
|
621
|
+
}
|
|
622
|
+
[hiddenProperty.setNative](value) {
|
|
623
|
+
this.nativeViewProtected.hidden = value;
|
|
624
|
+
}
|
|
625
|
+
[visibilityProperty.getDefault]() {
|
|
626
|
+
return this.nativeViewProtected.hidden ? CoreTypes.Visibility.collapse : CoreTypes.Visibility.visible;
|
|
627
|
+
}
|
|
628
|
+
[visibilityProperty.setNative](value) {
|
|
629
|
+
const nativeView = this.nativeViewProtected;
|
|
630
|
+
switch (value) {
|
|
631
|
+
case CoreTypes.Visibility.visible:
|
|
632
|
+
nativeView.hidden = false;
|
|
633
|
+
break;
|
|
634
|
+
case CoreTypes.Visibility.hidden:
|
|
635
|
+
case CoreTypes.Visibility.collapse:
|
|
636
|
+
nativeView.hidden = true;
|
|
637
|
+
break;
|
|
638
|
+
default:
|
|
639
|
+
throw new Error(`Invalid visibility value: ${value}. Valid values are: "${CoreTypes.Visibility.visible}", "${CoreTypes.Visibility.hidden}", "${CoreTypes.Visibility.collapse}".`);
|
|
640
|
+
}
|
|
641
|
+
// Apply visibility value to shadows as well
|
|
642
|
+
if (nativeView.outerShadowContainerLayer) {
|
|
643
|
+
nativeView.outerShadowContainerLayer.hidden = nativeView.hidden;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
[opacityProperty.getDefault]() {
|
|
647
|
+
return this.nativeViewProtected.alpha;
|
|
648
|
+
}
|
|
649
|
+
[opacityProperty.setNative](value) {
|
|
650
|
+
const nativeView = this.nativeViewProtected;
|
|
651
|
+
const updateSuspended = this._isPresentationLayerUpdateSuspended();
|
|
652
|
+
if (!updateSuspended) {
|
|
653
|
+
CATransaction.begin();
|
|
654
|
+
}
|
|
655
|
+
// Disable CALayer animatable property changes
|
|
656
|
+
CATransaction.setDisableActions(true);
|
|
657
|
+
nativeView.alpha = value;
|
|
658
|
+
// Apply opacity value to shadows as well
|
|
659
|
+
if (nativeView.outerShadowContainerLayer) {
|
|
660
|
+
nativeView.outerShadowContainerLayer.opacity = value;
|
|
661
|
+
}
|
|
662
|
+
CATransaction.setDisableActions(false);
|
|
663
|
+
if (!updateSuspended) {
|
|
664
|
+
CATransaction.commit();
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
[rotateProperty.getDefault]() {
|
|
668
|
+
return 0;
|
|
669
|
+
}
|
|
670
|
+
[rotateProperty.setNative](value) {
|
|
671
|
+
this.updateNativeTransform();
|
|
672
|
+
}
|
|
673
|
+
[rotateXProperty.getDefault]() {
|
|
674
|
+
return 0;
|
|
675
|
+
}
|
|
676
|
+
[rotateXProperty.setNative](value) {
|
|
677
|
+
this.updateNativeTransform();
|
|
678
|
+
}
|
|
679
|
+
[rotateYProperty.getDefault]() {
|
|
680
|
+
return 0;
|
|
681
|
+
}
|
|
682
|
+
[rotateYProperty.setNative](value) {
|
|
683
|
+
this.updateNativeTransform();
|
|
684
|
+
}
|
|
685
|
+
[perspectiveProperty.getDefault]() {
|
|
686
|
+
return 300;
|
|
687
|
+
}
|
|
688
|
+
[perspectiveProperty.setNative](value) {
|
|
689
|
+
this.updateNativeTransform();
|
|
690
|
+
}
|
|
691
|
+
[scaleXProperty.getDefault]() {
|
|
692
|
+
return 1;
|
|
693
|
+
}
|
|
694
|
+
[scaleXProperty.setNative](value) {
|
|
695
|
+
this.updateNativeTransform();
|
|
696
|
+
}
|
|
697
|
+
[scaleYProperty.getDefault]() {
|
|
698
|
+
return 1;
|
|
699
|
+
}
|
|
700
|
+
[scaleYProperty.setNative](value) {
|
|
701
|
+
this.updateNativeTransform();
|
|
702
|
+
}
|
|
703
|
+
[translateXProperty.getDefault]() {
|
|
704
|
+
return 0;
|
|
705
|
+
}
|
|
706
|
+
[translateXProperty.setNative](value) {
|
|
707
|
+
this.updateNativeTransform();
|
|
708
|
+
}
|
|
709
|
+
[translateYProperty.getDefault]() {
|
|
710
|
+
return 0;
|
|
711
|
+
}
|
|
712
|
+
[translateYProperty.setNative](value) {
|
|
713
|
+
this.updateNativeTransform();
|
|
714
|
+
}
|
|
715
|
+
[zIndexProperty.getDefault]() {
|
|
716
|
+
return 0;
|
|
717
|
+
}
|
|
718
|
+
[zIndexProperty.setNative](value) {
|
|
719
|
+
const nativeView = this.nativeViewProtected;
|
|
720
|
+
nativeView.layer.zPosition = value;
|
|
721
|
+
// Apply z-index to shadows as well
|
|
722
|
+
if (nativeView.outerShadowContainerLayer) {
|
|
723
|
+
nativeView.outerShadowContainerLayer.zPosition = value;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
[backgroundInternalProperty.getDefault]() {
|
|
727
|
+
return this.nativeViewProtected.backgroundColor;
|
|
728
|
+
}
|
|
729
|
+
[backgroundInternalProperty.setNative](value) {
|
|
730
|
+
this._nativeBackgroundState = 'invalid';
|
|
731
|
+
if (this.isLayoutValid) {
|
|
732
|
+
this._redrawNativeBackground(value);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
_applyGlassEffect(value, options) {
|
|
736
|
+
const config = typeof value !== 'string' ? value : null;
|
|
737
|
+
const variant = config ? config.variant : value;
|
|
738
|
+
const defaultDuration = 0.3;
|
|
739
|
+
const duration = config ? (config.animateChangeDuration ?? defaultDuration) : defaultDuration;
|
|
740
|
+
let effect;
|
|
741
|
+
// Create the appropriate effect based on type and variant
|
|
742
|
+
if (!value || ['identity', 'none'].includes(variant)) {
|
|
743
|
+
effect = UIVisualEffect.new();
|
|
744
|
+
}
|
|
745
|
+
else {
|
|
746
|
+
if (options.effectType === 'glass') {
|
|
747
|
+
const styleFn = options.toGlassStyleFn || this.toUIGlassStyle.bind(this);
|
|
748
|
+
effect = UIGlassEffect.effectWithStyle(styleFn(variant));
|
|
749
|
+
if (config) {
|
|
750
|
+
effect.interactive = !!config.interactive;
|
|
751
|
+
if (config.tint) {
|
|
752
|
+
effect.tintColor = typeof config.tint === 'string' ? new Color(config.tint).ios : config.tint;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
else if (options.effectType === 'container') {
|
|
757
|
+
effect = UIGlassContainerEffect.alloc().init();
|
|
758
|
+
effect.spacing = config?.spacing ?? 8;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
// Handle creating new effect view or updating existing one
|
|
762
|
+
if (options.targetView) {
|
|
763
|
+
// Update existing effect view
|
|
764
|
+
if (options.onUpdate) {
|
|
765
|
+
options.onUpdate(options.targetView, effect, duration);
|
|
766
|
+
}
|
|
767
|
+
else {
|
|
768
|
+
// Default update behavior: animate effect changes
|
|
769
|
+
UIView.animateWithDurationAnimations(duration, () => {
|
|
770
|
+
options.targetView.effect = effect;
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
return undefined;
|
|
774
|
+
}
|
|
775
|
+
else if (options.onCreate) {
|
|
776
|
+
// Create new effect view and let caller handle setup
|
|
777
|
+
const effectView = UIVisualEffectView.alloc().initWithEffect(effect);
|
|
778
|
+
options.onCreate(effectView, effect);
|
|
779
|
+
return effectView;
|
|
780
|
+
}
|
|
781
|
+
return undefined;
|
|
782
|
+
}
|
|
783
|
+
[statusBarStyleProperty.getDefault]() {
|
|
784
|
+
return this.style.statusBarStyle;
|
|
785
|
+
}
|
|
786
|
+
[statusBarStyleProperty.setNative](value) {
|
|
787
|
+
this.style.statusBarStyle = value;
|
|
788
|
+
this.updateStatusBarStyle(value);
|
|
789
|
+
}
|
|
790
|
+
updateStatusBarStyle(value) {
|
|
791
|
+
// Keep UINavigationBar style aligned (affects legacy + some container defaults).
|
|
792
|
+
const parent = this.parent;
|
|
793
|
+
const ctrl = parent?.ios?.controller;
|
|
794
|
+
if (ctrl && ctrl instanceof UINavigationController) {
|
|
795
|
+
const navigationBar = ctrl.navigationBar;
|
|
796
|
+
if (navigationBar) {
|
|
797
|
+
navigationBar.barStyle = value === 'light' ? 1 /* UIBarStyle.Black */ : 0 /* UIBarStyle.Default */;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
// iOS requires a controller invalidation to re-evaluate `preferredStatusBarStyle`.
|
|
801
|
+
const ownerController = this.viewController || IOSHelper.getParentWithViewController(this)?.viewController;
|
|
802
|
+
// Force overrideUserInterfaceStyle if available (iOS 13+) to ensure status bar contrast.
|
|
803
|
+
if (SDK_VERSION >= 13 && ownerController) {
|
|
804
|
+
const style = value === 'light' ? 2 /* UIUserInterfaceStyle.Dark */ : 1 /* UIUserInterfaceStyle.Light */;
|
|
805
|
+
ownerController.overrideUserInterfaceStyle = style;
|
|
806
|
+
if (ctrl && ctrl instanceof UINavigationController) {
|
|
807
|
+
ctrl.overrideUserInterfaceStyle = style;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
IOSHelper.invalidateStatusBarAppearance(ownerController, `View.updateStatusBarStyle:${value}`);
|
|
811
|
+
}
|
|
812
|
+
[iosGlassEffectProperty.setNative](value) {
|
|
813
|
+
if (!this.nativeViewProtected || !supportsGlass()) {
|
|
814
|
+
return;
|
|
815
|
+
}
|
|
816
|
+
if (!this._glassEffectView) {
|
|
817
|
+
// Create new glass effect view
|
|
818
|
+
this._glassEffectView = this._applyGlassEffect(value, {
|
|
819
|
+
effectType: 'glass',
|
|
820
|
+
onCreate: (effectView, effect) => {
|
|
821
|
+
// let touches pass to content
|
|
822
|
+
effectView.userInteractionEnabled = false;
|
|
823
|
+
effectView.clipsToBounds = true;
|
|
824
|
+
// size & autoresize
|
|
825
|
+
if (this._glassEffectMeasure) {
|
|
826
|
+
clearTimeout(this._glassEffectMeasure);
|
|
827
|
+
}
|
|
828
|
+
this._glassEffectMeasure = setTimeout(() => {
|
|
829
|
+
const size = this.nativeViewProtected.bounds.size;
|
|
830
|
+
effectView.frame = CGRectMake(0, 0, size.width, size.height);
|
|
831
|
+
effectView.autoresizingMask = 2;
|
|
832
|
+
this.nativeViewProtected.insertSubviewAtIndex(effectView, 0);
|
|
833
|
+
});
|
|
834
|
+
},
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
else {
|
|
838
|
+
// Update existing glass effect view
|
|
839
|
+
this._applyGlassEffect(value, {
|
|
840
|
+
effectType: 'glass',
|
|
841
|
+
targetView: this._glassEffectView,
|
|
842
|
+
});
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
[directionProperty.setNative](value) {
|
|
846
|
+
const nativeView = this.nativeViewProtected;
|
|
847
|
+
switch (value) {
|
|
848
|
+
case CoreTypes.LayoutDirection.ltr:
|
|
849
|
+
nativeView.semanticContentAttribute = 3 /* UISemanticContentAttribute.ForceLeftToRight */;
|
|
850
|
+
break;
|
|
851
|
+
case CoreTypes.LayoutDirection.rtl:
|
|
852
|
+
nativeView.semanticContentAttribute = 4 /* UISemanticContentAttribute.ForceRightToLeft */;
|
|
853
|
+
break;
|
|
854
|
+
default:
|
|
855
|
+
nativeView.semanticContentAttribute = 0 /* UISemanticContentAttribute.Unspecified */;
|
|
856
|
+
break;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
sendAccessibilityEvent(options) {
|
|
860
|
+
if (!isAccessibilityServiceEnabled()) {
|
|
861
|
+
return;
|
|
862
|
+
}
|
|
863
|
+
if (!options.iosNotificationType) {
|
|
864
|
+
return;
|
|
865
|
+
}
|
|
866
|
+
let notification;
|
|
867
|
+
let args = this.nativeViewProtected;
|
|
868
|
+
if (options?.message) {
|
|
869
|
+
args = options.message;
|
|
870
|
+
}
|
|
871
|
+
switch (options.iosNotificationType) {
|
|
872
|
+
case IOSPostAccessibilityNotificationType.Announcement: {
|
|
873
|
+
notification = UIAccessibilityAnnouncementNotification;
|
|
874
|
+
break;
|
|
875
|
+
}
|
|
876
|
+
case IOSPostAccessibilityNotificationType.Layout: {
|
|
877
|
+
notification = UIAccessibilityLayoutChangedNotification;
|
|
878
|
+
break;
|
|
879
|
+
}
|
|
880
|
+
case IOSPostAccessibilityNotificationType.Screen: {
|
|
881
|
+
notification = UIAccessibilityScreenChangedNotification;
|
|
882
|
+
break;
|
|
883
|
+
}
|
|
884
|
+
default: {
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
UIAccessibilityPostNotification(notification, args ?? null);
|
|
889
|
+
}
|
|
890
|
+
accessibilityAnnouncement(msg = this.accessibilityLabel) {
|
|
891
|
+
this.sendAccessibilityEvent({
|
|
892
|
+
iosNotificationType: IOSPostAccessibilityNotificationType.Announcement,
|
|
893
|
+
message: msg,
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
accessibilityScreenChanged() {
|
|
897
|
+
this.sendAccessibilityEvent({
|
|
898
|
+
iosNotificationType: IOSPostAccessibilityNotificationType.Screen,
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
toUIGlassStyle(value) {
|
|
902
|
+
if (supportsGlass()) {
|
|
903
|
+
switch (value) {
|
|
904
|
+
case 'regular':
|
|
905
|
+
return 0 /* UIGlassEffectStyle?.Regular */ ?? 0;
|
|
906
|
+
case 'clear':
|
|
907
|
+
return 1 /* UIGlassEffectStyle?.Clear */ ?? 1;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
return 1;
|
|
911
|
+
}
|
|
912
|
+
_getCurrentLayoutBounds() {
|
|
913
|
+
const nativeView = this.nativeViewProtected;
|
|
914
|
+
if (nativeView && !this.isCollapsed) {
|
|
915
|
+
const frame = nativeView.frame;
|
|
916
|
+
const origin = frame.origin;
|
|
917
|
+
const size = frame.size;
|
|
918
|
+
return {
|
|
919
|
+
left: Math.round(layout.toDevicePixels(origin.x)),
|
|
920
|
+
top: Math.round(layout.toDevicePixels(origin.y)),
|
|
921
|
+
right: Math.round(layout.toDevicePixels(origin.x + size.width)),
|
|
922
|
+
bottom: Math.round(layout.toDevicePixels(origin.y + size.height)),
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
else {
|
|
926
|
+
return { left: 0, top: 0, right: 0, bottom: 0 };
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
_redrawNativeBackground(value) {
|
|
930
|
+
const updateSuspended = this._isPresentationLayerUpdateSuspended();
|
|
931
|
+
if (!updateSuspended) {
|
|
932
|
+
CATransaction.begin();
|
|
933
|
+
}
|
|
934
|
+
// Disable CALayer animatable property changes
|
|
935
|
+
CATransaction.setDisableActions(true);
|
|
936
|
+
const nativeView = this.nativeViewProtected;
|
|
937
|
+
if (nativeView) {
|
|
938
|
+
if (value instanceof UIColor) {
|
|
939
|
+
nativeView.backgroundColor = value;
|
|
940
|
+
}
|
|
941
|
+
else {
|
|
942
|
+
iosBackground.createBackgroundUIColor(this, (color) => {
|
|
943
|
+
nativeView.backgroundColor = color;
|
|
944
|
+
});
|
|
945
|
+
this._setNativeClipToBounds();
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
CATransaction.setDisableActions(false);
|
|
949
|
+
if (!updateSuspended) {
|
|
950
|
+
CATransaction.commit();
|
|
951
|
+
}
|
|
952
|
+
this._nativeBackgroundState = 'drawn';
|
|
953
|
+
}
|
|
954
|
+
_setNativeClipToBounds() {
|
|
955
|
+
const view = this.nativeViewProtected;
|
|
956
|
+
if (view) {
|
|
957
|
+
const backgroundInternal = this.style.backgroundInternal;
|
|
958
|
+
view.clipsToBounds = view instanceof UIScrollView || backgroundInternal.hasBorderWidth() || backgroundInternal.hasBorderRadius();
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
_setupPopoverControllerDelegate(controller, parent) {
|
|
962
|
+
const popoverPresentationController = controller.popoverPresentationController;
|
|
963
|
+
this._popoverPresentationDelegate = IOSHelper.UIPopoverPresentationControllerDelegateImp.initWithOwnerAndCallback(new WeakRef(this), this._closeModalCallback);
|
|
964
|
+
popoverPresentationController.delegate = this._popoverPresentationDelegate;
|
|
965
|
+
let view;
|
|
966
|
+
do {
|
|
967
|
+
view = parent.nativeViewProtected;
|
|
968
|
+
parent = parent.parent;
|
|
969
|
+
} while (parent && !view);
|
|
970
|
+
// Note: sourceView and sourceRect are needed to specify the anchor location for the popover.
|
|
971
|
+
// Note: sourceView should be the button triggering the modal. If it the Page the popover might appear "behind" the page content
|
|
972
|
+
popoverPresentationController.sourceView = view;
|
|
973
|
+
popoverPresentationController.sourceRect = CGRectMake(0, 0, view.frame.size.width, view.frame.size.height);
|
|
974
|
+
}
|
|
975
|
+
_setupAdaptiveControllerDelegate(controller) {
|
|
976
|
+
this._adaptivePresentationDelegate = IOSHelper.UIAdaptivePresentationControllerDelegateImp.initWithOwnerAndCallback(new WeakRef(this), this._closeModalCallback);
|
|
977
|
+
if (controller?.presentationController) {
|
|
978
|
+
controller.presentationController.delegate = this._adaptivePresentationDelegate;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
__decorate([
|
|
983
|
+
profile,
|
|
984
|
+
__metadata("design:type", Function),
|
|
985
|
+
__metadata("design:paramtypes", [Number, Number, Number, Number, Object]),
|
|
986
|
+
__metadata("design:returntype", void 0)
|
|
987
|
+
], View.prototype, "layout", null);
|
|
988
|
+
__decorate([
|
|
989
|
+
profile,
|
|
990
|
+
__metadata("design:type", Function),
|
|
991
|
+
__metadata("design:paramtypes", [Number, Number]),
|
|
992
|
+
__metadata("design:returntype", void 0)
|
|
993
|
+
], View.prototype, "onMeasure", null);
|
|
994
|
+
View.prototype._nativeBackgroundState = 'unset';
|
|
995
|
+
var UIViewControllerTransitioningDelegateImpl = (function (_super) {
|
|
996
|
+
__extends(UIViewControllerTransitioningDelegateImpl, _super);
|
|
997
|
+
function UIViewControllerTransitioningDelegateImpl() {
|
|
998
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
999
|
+
}
|
|
1000
|
+
UIViewControllerTransitioningDelegateImpl.initWithOwner = function (owner) {
|
|
1001
|
+
var delegate = UIViewControllerTransitioningDelegateImpl.new();
|
|
1002
|
+
delegate.owner = owner;
|
|
1003
|
+
return delegate;
|
|
1004
|
+
};
|
|
1005
|
+
UIViewControllerTransitioningDelegateImpl.prototype.animationControllerForDismissedController = function (dismissed) {
|
|
1006
|
+
var _a;
|
|
1007
|
+
var owner = (_a = this.owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
1008
|
+
if (owner === null || owner === void 0 ? void 0 : owner.iosDismissedController) {
|
|
1009
|
+
return owner.iosDismissedController(dismissed);
|
|
1010
|
+
}
|
|
1011
|
+
return null;
|
|
1012
|
+
};
|
|
1013
|
+
UIViewControllerTransitioningDelegateImpl.prototype.animationControllerForPresentedControllerPresentingControllerSourceController = function (presented, presenting, source) {
|
|
1014
|
+
var _a;
|
|
1015
|
+
var owner = (_a = this.owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
1016
|
+
if (owner === null || owner === void 0 ? void 0 : owner.iosPresentedController) {
|
|
1017
|
+
return owner.iosPresentedController(presented, presenting, source);
|
|
1018
|
+
}
|
|
1019
|
+
return null;
|
|
1020
|
+
};
|
|
1021
|
+
UIViewControllerTransitioningDelegateImpl.prototype.interactionControllerForDismissal = function (animator) {
|
|
1022
|
+
var _a;
|
|
1023
|
+
var owner = (_a = this.owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
1024
|
+
if (owner === null || owner === void 0 ? void 0 : owner.iosInteractionDismiss) {
|
|
1025
|
+
var transitionState = SharedTransition.getState(owner.id);
|
|
1026
|
+
if (transitionState === null || transitionState === void 0 ? void 0 : transitionState.interactiveBegan) {
|
|
1027
|
+
return owner.iosInteractionDismiss(animator);
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
return null;
|
|
1031
|
+
};
|
|
1032
|
+
UIViewControllerTransitioningDelegateImpl.prototype.interactionControllerForPresentation = function (animator) {
|
|
1033
|
+
var _a;
|
|
1034
|
+
var owner = (_a = this.owner) === null || _a === void 0 ? void 0 : _a.deref();
|
|
1035
|
+
if (owner === null || owner === void 0 ? void 0 : owner.iosInteractionPresented) {
|
|
1036
|
+
return owner.iosInteractionPresented(animator);
|
|
1037
|
+
}
|
|
1038
|
+
return null;
|
|
1039
|
+
};
|
|
1040
|
+
UIViewControllerTransitioningDelegateImpl.ObjCProtocols = [UIViewControllerTransitioningDelegate];
|
|
1041
|
+
return UIViewControllerTransitioningDelegateImpl;
|
|
1042
|
+
}(NSObject));
|
|
1043
|
+
export class ContainerView extends View {
|
|
1044
|
+
constructor() {
|
|
1045
|
+
super();
|
|
1046
|
+
this.iosOverflowSafeArea = true;
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
export class CustomLayoutView extends ContainerView {
|
|
1050
|
+
createNativeView() {
|
|
1051
|
+
const window = getWindow?.();
|
|
1052
|
+
return UIView.alloc().initWithFrame(window ? window.screen.bounds : UIScreen.mainScreen.bounds);
|
|
1053
|
+
}
|
|
1054
|
+
get ios() {
|
|
1055
|
+
return this.nativeViewProtected;
|
|
1056
|
+
}
|
|
1057
|
+
onMeasure(widthMeasureSpec, heightMeasureSpec) {
|
|
1058
|
+
// Don't call super because it will set MeasureDimension. This method must be overridden and calculate its measuredDimensions.
|
|
1059
|
+
}
|
|
1060
|
+
_addViewToNativeVisualTree(child, atIndex) {
|
|
1061
|
+
super._addViewToNativeVisualTree(child, atIndex);
|
|
1062
|
+
const parentNativeView = this.nativeViewProtected;
|
|
1063
|
+
const childNativeView = child.nativeViewProtected;
|
|
1064
|
+
if (parentNativeView && childNativeView) {
|
|
1065
|
+
if (typeof atIndex !== 'number' || atIndex >= parentNativeView.subviews.count) {
|
|
1066
|
+
parentNativeView.addSubview(childNativeView);
|
|
1067
|
+
}
|
|
1068
|
+
else {
|
|
1069
|
+
parentNativeView.insertSubviewAtIndex(childNativeView, atIndex);
|
|
1070
|
+
}
|
|
1071
|
+
// Add outer shadow layer manually as it belongs to parent layer tree (this is needed for reusable views)
|
|
1072
|
+
if (childNativeView.outerShadowContainerLayer && !childNativeView.outerShadowContainerLayer.superlayer) {
|
|
1073
|
+
parentNativeView.layer.insertSublayerBelow(childNativeView.outerShadowContainerLayer, childNativeView.layer);
|
|
1074
|
+
}
|
|
1075
|
+
return true;
|
|
1076
|
+
}
|
|
1077
|
+
return false;
|
|
1078
|
+
}
|
|
1079
|
+
_removeViewFromNativeVisualTree(child) {
|
|
1080
|
+
super._removeViewFromNativeVisualTree(child);
|
|
1081
|
+
if (child.nativeViewProtected) {
|
|
1082
|
+
const nativeView = child.nativeViewProtected;
|
|
1083
|
+
// Remove outer shadow layer manually as it belongs to parent layer tree
|
|
1084
|
+
if (nativeView.outerShadowContainerLayer) {
|
|
1085
|
+
nativeView.outerShadowContainerLayer.removeFromSuperlayer();
|
|
1086
|
+
}
|
|
1087
|
+
nativeView.removeFromSuperview();
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
//# sourceMappingURL=index.ios.js.map
|