@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,977 @@
|
|
|
1
|
+
import { Observable } from '../../data/observable';
|
|
2
|
+
import { Trace } from '../../trace';
|
|
3
|
+
import { _stack, FrameBase, NavigationType } from './frame-common';
|
|
4
|
+
import { _clearEntry, _clearFragment, _getAnimatedEntries, _getTransitionState, _restoreTransitionState, _reverseTransitions, _setAndroidFragmentTransitions, _updateTransitions } from './fragment.transitions';
|
|
5
|
+
import { profile } from '../../profiling';
|
|
6
|
+
import { android as androidUtils } from '../../utils/native-helper';
|
|
7
|
+
import { ensureFragmentClass, fragmentClass } from './fragment';
|
|
8
|
+
import { getAppMainEntry } from '../../application/helpers-common';
|
|
9
|
+
import { Application } from '../../application/application';
|
|
10
|
+
import { isEmbedded, setEmbeddedView } from '../embedding';
|
|
11
|
+
import { CALLBACKS, FRAMEID, framesCache, setFragmentCallbacks } from './frame-helper-for-android';
|
|
12
|
+
import { SDK_VERSION } from '../../utils';
|
|
13
|
+
export * from './frame-common';
|
|
14
|
+
export { setFragmentClass } from './fragment';
|
|
15
|
+
const INTENT_EXTRA = 'com.tns.activity';
|
|
16
|
+
const ownerSymbol = Symbol('_owner');
|
|
17
|
+
const isPendingDetachSymbol = Symbol('_isPendingDetach');
|
|
18
|
+
let navDepth = -1;
|
|
19
|
+
let fragmentId = -1;
|
|
20
|
+
export let attachStateChangeListener;
|
|
21
|
+
function getAttachListener() {
|
|
22
|
+
if (!attachStateChangeListener) {
|
|
23
|
+
/**
|
|
24
|
+
* NOTE: We cannot use NativeClass here because this is used in appComponents in webpack.config
|
|
25
|
+
* Whereby it bypasses the decorator transformation, hence pure es5 style written here
|
|
26
|
+
*/
|
|
27
|
+
const AttachListener = java.lang.Object.extend({
|
|
28
|
+
interfaces: [android.view.View.OnAttachStateChangeListener],
|
|
29
|
+
init() {
|
|
30
|
+
// init must be defined at least
|
|
31
|
+
},
|
|
32
|
+
onViewAttachedToWindow(view) {
|
|
33
|
+
const owner = view[ownerSymbol];
|
|
34
|
+
if (owner) {
|
|
35
|
+
owner._onAttachedToWindow();
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
onViewDetachedFromWindow(view) {
|
|
39
|
+
const owner = view[ownerSymbol];
|
|
40
|
+
if (owner) {
|
|
41
|
+
owner._onDetachedFromWindow();
|
|
42
|
+
}
|
|
43
|
+
if (view[isPendingDetachSymbol]) {
|
|
44
|
+
delete view[isPendingDetachSymbol];
|
|
45
|
+
view.removeOnAttachStateChangeListener(this);
|
|
46
|
+
view[ownerSymbol] = null;
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
attachStateChangeListener = new AttachListener();
|
|
51
|
+
}
|
|
52
|
+
return attachStateChangeListener;
|
|
53
|
+
}
|
|
54
|
+
export class Frame extends FrameBase {
|
|
55
|
+
constructor() {
|
|
56
|
+
super();
|
|
57
|
+
this._containerViewId = -1;
|
|
58
|
+
this._tearDownPending = false;
|
|
59
|
+
this._attachedToWindow = false;
|
|
60
|
+
/**
|
|
61
|
+
* This property indicates that the view is to be reused as a root view or has been previously disposed.
|
|
62
|
+
*/
|
|
63
|
+
this._isReset = false;
|
|
64
|
+
this._android = new AndroidFrame(this);
|
|
65
|
+
this.androidOverflowEdge = 'ignore';
|
|
66
|
+
}
|
|
67
|
+
static reloadPage(context) {
|
|
68
|
+
const activity = androidUtils.getCurrentActivity();
|
|
69
|
+
const callbacks = activity[CALLBACKS];
|
|
70
|
+
if (callbacks) {
|
|
71
|
+
const rootView = callbacks.getRootView();
|
|
72
|
+
// Handle application root module
|
|
73
|
+
const isAppRootModuleChanged = context && context.path && context.path.includes(getAppMainEntry().moduleName) && context.type !== 'style';
|
|
74
|
+
// Reset activity content when:
|
|
75
|
+
// + Application root module is changed
|
|
76
|
+
// + View did not handle the change
|
|
77
|
+
// Note:
|
|
78
|
+
// The case when neither app root module is changed, neighter livesync is handled on View,
|
|
79
|
+
// then changes will not apply until navigate forward to the module.
|
|
80
|
+
if (isAppRootModuleChanged || !rootView || !rootView._onLivesync(context)) {
|
|
81
|
+
callbacks.resetActivityContent(activity);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
Trace.error(`${activity}[CALLBACKS] is null or undefined`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
static get defaultAnimatedNavigation() {
|
|
89
|
+
return FrameBase.defaultAnimatedNavigation;
|
|
90
|
+
}
|
|
91
|
+
static set defaultAnimatedNavigation(value) {
|
|
92
|
+
FrameBase.defaultAnimatedNavigation = value;
|
|
93
|
+
}
|
|
94
|
+
static get defaultTransition() {
|
|
95
|
+
return FrameBase.defaultTransition;
|
|
96
|
+
}
|
|
97
|
+
static set defaultTransition(value) {
|
|
98
|
+
FrameBase.defaultTransition = value;
|
|
99
|
+
}
|
|
100
|
+
get containerViewId() {
|
|
101
|
+
return this._containerViewId;
|
|
102
|
+
}
|
|
103
|
+
// @ts-ignore
|
|
104
|
+
get android() {
|
|
105
|
+
return this._android;
|
|
106
|
+
}
|
|
107
|
+
get _hasFragments() {
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
_onAttachedToWindow() {
|
|
111
|
+
super._onAttachedToWindow();
|
|
112
|
+
// _onAttachedToWindow called from OS again after it was detach
|
|
113
|
+
// still happens with androidx.fragment:1.3.2
|
|
114
|
+
const activity = androidUtils.getCurrentActivity();
|
|
115
|
+
const lifecycleState = activity?.getLifecycle?.()?.getCurrentState() || androidx.lifecycle.Lifecycle.State.CREATED;
|
|
116
|
+
if ((this._manager && this._manager.isDestroyed()) || !lifecycleState.isAtLeast(androidx.lifecycle.Lifecycle.State.CREATED)) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
this._attachedToWindow = true;
|
|
120
|
+
this._isReset = false;
|
|
121
|
+
this._processNextNavigationEntry();
|
|
122
|
+
this._ensureEntryFragment();
|
|
123
|
+
}
|
|
124
|
+
_onDetachedFromWindow() {
|
|
125
|
+
super._onDetachedFromWindow();
|
|
126
|
+
this._attachedToWindow = false;
|
|
127
|
+
}
|
|
128
|
+
_processNextNavigationEntry() {
|
|
129
|
+
// In case activity was destroyed because of back button pressed (e.g. app exit)
|
|
130
|
+
// and application is restored from recent apps, current fragment isn't recreated.
|
|
131
|
+
// In this case call _navigateCore in order to recreate the current fragment.
|
|
132
|
+
// Don't call navigate because it will fire navigation events.
|
|
133
|
+
// As JS instances are alive it is already done for the current page.
|
|
134
|
+
if (!this.isLoaded || this._executingContext) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
// in case the activity is "reset" using resetRootView or disposed we must wait for
|
|
138
|
+
// the attachedToWindow event to make the first navigation or it will crash
|
|
139
|
+
// https://github.com/NativeScript/NativeScript/commit/9dd3e1a8076e5022e411f2f2eeba34aabc68d112
|
|
140
|
+
// though we should not do it on app "start"
|
|
141
|
+
// or it will create a "flash" to activity background color
|
|
142
|
+
if (this._isReset && !this._attachedToWindow) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
const animatedEntries = _getAnimatedEntries(this._android.frameId);
|
|
146
|
+
if (animatedEntries) {
|
|
147
|
+
// Wait until animations are completed.
|
|
148
|
+
if (animatedEntries.size > 0) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
const manager = this._getFragmentManager();
|
|
153
|
+
const entry = this._currentEntry;
|
|
154
|
+
const isNewEntry = !this._cachedTransitionState || entry !== this._cachedTransitionState.entry;
|
|
155
|
+
if (isNewEntry && entry && manager && !manager.findFragmentByTag(entry.fragmentTag)) {
|
|
156
|
+
// Simulate first navigation (e.g. no animations or transitions)
|
|
157
|
+
// we need to cache the original animation settings so we can restore them later; otherwise as the
|
|
158
|
+
// simulated first navigation is not animated (it is actually a zero duration animator) the "popExit" animation
|
|
159
|
+
// is broken when transaction.setCustomAnimations(...) is used in a scenario with:
|
|
160
|
+
// 1) forward navigation
|
|
161
|
+
// 2) suspend / resume app
|
|
162
|
+
// 3) back navigation -- the exiting fragment is erroneously animated with the exit animator from the
|
|
163
|
+
// simulated navigation (NoTransition, zero duration animator) and thus the fragment immediately disappears;
|
|
164
|
+
// the user only sees the animation of the entering fragment as per its specific enter animation settings.
|
|
165
|
+
// NOTE: we are restoring the animation settings in Frame.setCurrent(...) as navigation completes asynchronously
|
|
166
|
+
const cachedTransitionState = _getTransitionState(this._currentEntry);
|
|
167
|
+
if (cachedTransitionState) {
|
|
168
|
+
this._cachedTransitionState = cachedTransitionState;
|
|
169
|
+
this._currentEntry = null;
|
|
170
|
+
// NavigateCore will eventually call _processNextNavigationEntry again.
|
|
171
|
+
this._navigateCore(entry);
|
|
172
|
+
this._currentEntry = entry;
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
super._processNextNavigationEntry();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
super._processNextNavigationEntry();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
_getChildFragmentManager() {
|
|
183
|
+
let backstackEntry;
|
|
184
|
+
if (this._executingContext && this._executingContext.entry) {
|
|
185
|
+
backstackEntry = this._executingContext.entry;
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
backstackEntry = this._currentEntry;
|
|
189
|
+
}
|
|
190
|
+
if (backstackEntry && backstackEntry.fragment && backstackEntry.fragment.isAdded()) {
|
|
191
|
+
return backstackEntry.fragment.getChildFragmentManager();
|
|
192
|
+
}
|
|
193
|
+
return null;
|
|
194
|
+
}
|
|
195
|
+
_onRootViewReset() {
|
|
196
|
+
super._onRootViewReset();
|
|
197
|
+
// used to handle the "first" navigate differently on first run and on reset
|
|
198
|
+
this._isReset = true;
|
|
199
|
+
// call this AFTER the super call to ensure descendants apply their rootview-reset logic first
|
|
200
|
+
// i.e. in a scenario with nested frames / frame with tabview let the descendandt cleanup the inner
|
|
201
|
+
// fragments first, and then cleanup the parent fragments
|
|
202
|
+
this.disposeCurrentFragment();
|
|
203
|
+
}
|
|
204
|
+
onLoaded() {
|
|
205
|
+
if (this._originalBackground) {
|
|
206
|
+
this.backgroundColor = null;
|
|
207
|
+
this.backgroundColor = this._originalBackground;
|
|
208
|
+
this._originalBackground = null;
|
|
209
|
+
}
|
|
210
|
+
this._ensureEntryFragment();
|
|
211
|
+
super.onLoaded();
|
|
212
|
+
}
|
|
213
|
+
onUnloaded() {
|
|
214
|
+
super.onUnloaded();
|
|
215
|
+
if (typeof this._frameCreateTimeout === 'number') {
|
|
216
|
+
clearTimeout(this._frameCreateTimeout);
|
|
217
|
+
this._frameCreateTimeout = null;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* TODO: Check if this fragment precaution is still needed
|
|
222
|
+
*/
|
|
223
|
+
_ensureEntryFragment() {
|
|
224
|
+
// in case the activity is "reset" using resetRootView or disposed we must wait for
|
|
225
|
+
// the attachedToWindow event to make the first navigation or it will crash
|
|
226
|
+
// https://github.com/NativeScript/NativeScript/commit/9dd3e1a8076e5022e411f2f2eeba34aabc68d112
|
|
227
|
+
// though we should not do it on app "start"
|
|
228
|
+
// or it will create a "flash" to activity background color
|
|
229
|
+
if (this._isReset && !this._attachedToWindow) {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
this._frameCreateTimeout = setTimeout(() => {
|
|
233
|
+
// there's a bug with nested frames where sometimes the nested fragment is not recreated at all
|
|
234
|
+
// so we manually check on loaded event if the fragment is not recreated and recreate it
|
|
235
|
+
const currentEntry = this._currentEntry || this._executingContext?.entry;
|
|
236
|
+
if (currentEntry) {
|
|
237
|
+
if (!currentEntry.fragment) {
|
|
238
|
+
const manager = this._getFragmentManager();
|
|
239
|
+
const transaction = manager.beginTransaction();
|
|
240
|
+
currentEntry.fragment = this.createFragment(currentEntry, currentEntry.fragmentTag);
|
|
241
|
+
_updateTransitions(currentEntry);
|
|
242
|
+
transaction.replace(this.containerViewId, currentEntry.fragment, currentEntry.fragmentTag);
|
|
243
|
+
transaction.commitAllowingStateLoss();
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
this._frameCreateTimeout = null;
|
|
247
|
+
}, 0);
|
|
248
|
+
}
|
|
249
|
+
disposeCurrentFragment() {
|
|
250
|
+
if (!this._currentEntry || !this._currentEntry.fragment || !this._currentEntry.fragment.isAdded()) {
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
const fragment = this._currentEntry.fragment;
|
|
254
|
+
const fragmentManager = fragment.getFragmentManager();
|
|
255
|
+
const transaction = fragmentManager.beginTransaction();
|
|
256
|
+
const fragmentExitTransition = fragment.getExitTransition();
|
|
257
|
+
// Reset animation to its initial state to prevent mirrored effect when restore current fragment transitions
|
|
258
|
+
if (fragmentExitTransition && fragmentExitTransition instanceof org.nativescript.widgets.CustomTransition) {
|
|
259
|
+
fragmentExitTransition.setResetOnTransitionEnd(true);
|
|
260
|
+
}
|
|
261
|
+
transaction.remove(fragment);
|
|
262
|
+
transaction.commitNowAllowingStateLoss();
|
|
263
|
+
}
|
|
264
|
+
createFragment(backstackEntry, fragmentTag) {
|
|
265
|
+
ensureFragmentClass();
|
|
266
|
+
const newFragment = new fragmentClass();
|
|
267
|
+
const args = new android.os.Bundle();
|
|
268
|
+
args.putInt(FRAMEID, this._android.frameId);
|
|
269
|
+
newFragment.setArguments(args);
|
|
270
|
+
setFragmentCallbacks(newFragment);
|
|
271
|
+
const callbacks = newFragment[CALLBACKS];
|
|
272
|
+
callbacks.frame = this;
|
|
273
|
+
callbacks.entry = backstackEntry;
|
|
274
|
+
// backstackEntry
|
|
275
|
+
backstackEntry.fragment = newFragment;
|
|
276
|
+
backstackEntry.fragmentTag = fragmentTag;
|
|
277
|
+
backstackEntry.navDepth = navDepth;
|
|
278
|
+
return newFragment;
|
|
279
|
+
}
|
|
280
|
+
setCurrent(entry, navigationType) {
|
|
281
|
+
const current = this._currentEntry;
|
|
282
|
+
const currentEntryChanged = current !== entry;
|
|
283
|
+
if (currentEntryChanged) {
|
|
284
|
+
this._updateBackstack(entry, navigationType);
|
|
285
|
+
// If activity was destroyed we need to destroy fragment and UI
|
|
286
|
+
// of current and new entries.
|
|
287
|
+
if (this._tearDownPending) {
|
|
288
|
+
this._tearDownPending = false;
|
|
289
|
+
if (!entry.recreated) {
|
|
290
|
+
this._disposeBackstackEntry(entry);
|
|
291
|
+
}
|
|
292
|
+
if (current && !current.recreated) {
|
|
293
|
+
this._disposeBackstackEntry(current);
|
|
294
|
+
}
|
|
295
|
+
// If we have context activity was recreated. Create new fragment
|
|
296
|
+
// and UI for the new current page.
|
|
297
|
+
const context = this._context;
|
|
298
|
+
if (context && !entry.recreated) {
|
|
299
|
+
entry.fragment = this.createFragment(entry, entry.fragmentTag);
|
|
300
|
+
entry.resolvedPage._setupUI(context);
|
|
301
|
+
}
|
|
302
|
+
entry.recreated = false;
|
|
303
|
+
if (current) {
|
|
304
|
+
current.recreated = false;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
super.setCurrent(entry, navigationType);
|
|
308
|
+
// If we had real navigation process queue.
|
|
309
|
+
this._processNavigationQueue(entry.resolvedPage);
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
// Otherwise currentPage was recreated so this wasn't real navigation.
|
|
313
|
+
// Continue with next item in the queue.
|
|
314
|
+
this._processNextNavigationEntry();
|
|
315
|
+
}
|
|
316
|
+
// restore cached animation settings if we just completed simulated first navigation (no animation)
|
|
317
|
+
if (this._cachedTransitionState) {
|
|
318
|
+
_restoreTransitionState(this._cachedTransitionState);
|
|
319
|
+
this._cachedTransitionState = null;
|
|
320
|
+
}
|
|
321
|
+
// restore original fragment transitions if we just completed replace navigation (hmr)
|
|
322
|
+
if (navigationType === NavigationType.replace) {
|
|
323
|
+
_clearEntry(entry);
|
|
324
|
+
const animated = this._getIsAnimatedNavigation(entry.entry);
|
|
325
|
+
const navigationTransition = this._getNavigationTransition(entry.entry);
|
|
326
|
+
const currentEntry = null;
|
|
327
|
+
const newEntry = entry;
|
|
328
|
+
const transaction = null;
|
|
329
|
+
_setAndroidFragmentTransitions(animated, navigationTransition, currentEntry, newEntry, this._android.frameId, transaction, this.direction);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
onBackPressed() {
|
|
333
|
+
if (this.canGoBack()) {
|
|
334
|
+
this.goBack();
|
|
335
|
+
return true;
|
|
336
|
+
}
|
|
337
|
+
if (!this.navigationQueueIsEmpty()) {
|
|
338
|
+
const manager = this._getFragmentManager();
|
|
339
|
+
if (manager) {
|
|
340
|
+
manager.executePendingTransactions();
|
|
341
|
+
return true;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return false;
|
|
345
|
+
}
|
|
346
|
+
// HACK: This @profile decorator creates a circular dependency
|
|
347
|
+
// HACK: because the function parameter type is evaluated with 'typeof'
|
|
348
|
+
_navigateCore(newEntry) {
|
|
349
|
+
// should be (newEntry: BackstackEntry)
|
|
350
|
+
super._navigateCore(newEntry);
|
|
351
|
+
// set frameId here so that we could use it in fragment.transitions
|
|
352
|
+
newEntry.frameId = this._android.frameId;
|
|
353
|
+
const activity = this._android.activity;
|
|
354
|
+
if (!activity) {
|
|
355
|
+
// Activity not associated. In this case we have two execution paths:
|
|
356
|
+
// 1. This is the main frame for the application
|
|
357
|
+
// 2. This is an inner frame which requires a new Activity
|
|
358
|
+
const currentActivity = this._android.currentActivity;
|
|
359
|
+
if (currentActivity) {
|
|
360
|
+
startActivity(currentActivity, this._android.frameId);
|
|
361
|
+
}
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
const manager = this._getFragmentManager();
|
|
365
|
+
const clearHistory = newEntry.entry.clearHistory;
|
|
366
|
+
const currentEntry = this._currentEntry;
|
|
367
|
+
// New Fragment
|
|
368
|
+
if (clearHistory) {
|
|
369
|
+
navDepth = -1;
|
|
370
|
+
}
|
|
371
|
+
const isReplace = this._executingContext && this._executingContext.navigationType === NavigationType.replace;
|
|
372
|
+
if (!isReplace) {
|
|
373
|
+
navDepth++;
|
|
374
|
+
}
|
|
375
|
+
fragmentId++;
|
|
376
|
+
const newFragmentTag = `fragment${fragmentId}[${navDepth}]`;
|
|
377
|
+
const newFragment = this.createFragment(newEntry, newFragmentTag);
|
|
378
|
+
const transaction = manager.beginTransaction();
|
|
379
|
+
const animated = currentEntry ? this._getIsAnimatedNavigation(newEntry.entry) : false;
|
|
380
|
+
// NOTE: Don't use transition for the initial navigation (same as on iOS)
|
|
381
|
+
// On API 21+ transition won't be triggered unless there was at least one
|
|
382
|
+
// layout pass so we will wait forever for transitionCompleted handler...
|
|
383
|
+
// https://github.com/NativeScript/NativeScript/issues/4895
|
|
384
|
+
let navigationTransition;
|
|
385
|
+
if (this._currentEntry) {
|
|
386
|
+
navigationTransition = this._getNavigationTransition(newEntry.entry);
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
navigationTransition = null;
|
|
390
|
+
}
|
|
391
|
+
const isNestedDefaultTransition = !currentEntry;
|
|
392
|
+
_setAndroidFragmentTransitions(animated, navigationTransition, currentEntry, newEntry, this._android.frameId, transaction, this.direction, isNestedDefaultTransition);
|
|
393
|
+
if (currentEntry && animated && !navigationTransition) {
|
|
394
|
+
//TODO: Check whether or not this is still necessary. For Modal views?
|
|
395
|
+
// transaction.setTransition(androidx.fragment.app.FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
|
|
396
|
+
}
|
|
397
|
+
transaction.replace(this.containerViewId, newFragment, newFragmentTag);
|
|
398
|
+
navigationTransition?.instance?.androidFragmentTransactionCallback?.(transaction, currentEntry, newEntry);
|
|
399
|
+
transaction.commitAllowingStateLoss();
|
|
400
|
+
}
|
|
401
|
+
_goBackCore(backstackEntry) {
|
|
402
|
+
super._goBackCore(backstackEntry);
|
|
403
|
+
navDepth = backstackEntry.navDepth;
|
|
404
|
+
const manager = this._getFragmentManager();
|
|
405
|
+
const transaction = manager.beginTransaction();
|
|
406
|
+
if (!backstackEntry.fragment) {
|
|
407
|
+
// Happens on newer API levels. On older all fragments
|
|
408
|
+
// are recreated once activity is created.
|
|
409
|
+
// This entry fragment was destroyed by app suspend.
|
|
410
|
+
// We need to recreate its animations and then reverse it.
|
|
411
|
+
backstackEntry.fragment = this.createFragment(backstackEntry, backstackEntry.fragmentTag);
|
|
412
|
+
_updateTransitions(backstackEntry);
|
|
413
|
+
}
|
|
414
|
+
_reverseTransitions(backstackEntry, this._currentEntry);
|
|
415
|
+
transaction.replace(this.containerViewId, backstackEntry.fragment, backstackEntry.fragmentTag);
|
|
416
|
+
backstackEntry.transition?.androidFragmentTransactionCallback?.(transaction, this._currentEntry, backstackEntry);
|
|
417
|
+
transaction.commitAllowingStateLoss();
|
|
418
|
+
}
|
|
419
|
+
_removeEntry(removed) {
|
|
420
|
+
super._removeEntry(removed);
|
|
421
|
+
if (removed.fragment) {
|
|
422
|
+
_clearEntry(removed);
|
|
423
|
+
removed.fragment = null;
|
|
424
|
+
}
|
|
425
|
+
removed.viewSavedState = null;
|
|
426
|
+
}
|
|
427
|
+
_disposeBackstackEntry(entry) {
|
|
428
|
+
if (entry.fragment) {
|
|
429
|
+
_clearFragment(entry);
|
|
430
|
+
entry.fragment = null;
|
|
431
|
+
}
|
|
432
|
+
entry.recreated = false;
|
|
433
|
+
super._disposeBackstackEntry(entry);
|
|
434
|
+
}
|
|
435
|
+
createNativeView() {
|
|
436
|
+
// Create native view with available _currentEntry occur in Don't Keep Activities
|
|
437
|
+
// scenario when Activity is recreated on app suspend/resume. Push frame back in frame stack
|
|
438
|
+
// since it was removed in disposeNativeView() method.
|
|
439
|
+
if (this._currentEntry) {
|
|
440
|
+
this._pushInFrameStack();
|
|
441
|
+
}
|
|
442
|
+
return new org.nativescript.widgets.ContentLayout(this._context);
|
|
443
|
+
}
|
|
444
|
+
initNativeView() {
|
|
445
|
+
super.initNativeView();
|
|
446
|
+
const listener = getAttachListener();
|
|
447
|
+
const nativeView = this.nativeViewProtected;
|
|
448
|
+
nativeView.addOnAttachStateChangeListener(listener);
|
|
449
|
+
nativeView[ownerSymbol] = this;
|
|
450
|
+
this._android.rootViewGroup = nativeView;
|
|
451
|
+
if (this._containerViewId < 0) {
|
|
452
|
+
this._containerViewId = android.view.View.generateViewId();
|
|
453
|
+
}
|
|
454
|
+
this._android.rootViewGroup.setId(this._containerViewId);
|
|
455
|
+
}
|
|
456
|
+
disposeNativeView() {
|
|
457
|
+
const nativeView = this.nativeViewProtected;
|
|
458
|
+
const listener = getAttachListener();
|
|
459
|
+
// There are cases like root view when detach listener is not called upon removing view from view-tree
|
|
460
|
+
// so mark those views as pending and remove listener once the view is detached
|
|
461
|
+
if (nativeView.isAttachedToWindow()) {
|
|
462
|
+
nativeView[isPendingDetachSymbol] = true;
|
|
463
|
+
}
|
|
464
|
+
else {
|
|
465
|
+
nativeView.removeOnAttachStateChangeListener(listener);
|
|
466
|
+
nativeView[ownerSymbol] = null;
|
|
467
|
+
}
|
|
468
|
+
this._tearDownPending = !!this._executingContext;
|
|
469
|
+
const current = this._currentEntry;
|
|
470
|
+
const executingEntry = this._executingContext ? this._executingContext.entry : null;
|
|
471
|
+
this.backStack.forEach((entry) => {
|
|
472
|
+
// Don't destroy current and executing entries or UI will look blank.
|
|
473
|
+
// We will do it in setCurrent.
|
|
474
|
+
if (entry !== executingEntry) {
|
|
475
|
+
this._disposeBackstackEntry(entry);
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
if (current && !executingEntry) {
|
|
479
|
+
this._disposeBackstackEntry(current);
|
|
480
|
+
}
|
|
481
|
+
// Dispose cached transition and store it again if view ever gets re-used
|
|
482
|
+
this._cachedTransitionState = null;
|
|
483
|
+
// Mark as reset in order to properly re-initialize fragments if view ever gets re-used
|
|
484
|
+
this._isReset = true;
|
|
485
|
+
this._android.rootViewGroup = null;
|
|
486
|
+
this._removeFromFrameStack();
|
|
487
|
+
super.disposeNativeView();
|
|
488
|
+
}
|
|
489
|
+
_popFromFrameStack() {
|
|
490
|
+
if (!this._isInFrameStack) {
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
super._popFromFrameStack();
|
|
494
|
+
}
|
|
495
|
+
_getNavBarVisible(page) {
|
|
496
|
+
switch (this.actionBarVisibility) {
|
|
497
|
+
case 'never':
|
|
498
|
+
return false;
|
|
499
|
+
case 'always':
|
|
500
|
+
return true;
|
|
501
|
+
default:
|
|
502
|
+
if (page.actionBarHidden !== undefined) {
|
|
503
|
+
return !page.actionBarHidden;
|
|
504
|
+
}
|
|
505
|
+
if (this._android && this._android.showActionBar !== undefined) {
|
|
506
|
+
return this._android.showActionBar;
|
|
507
|
+
}
|
|
508
|
+
return true;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
_saveFragmentsState() {
|
|
512
|
+
// We save only fragments in backstack.
|
|
513
|
+
// Current fragment is saved by FragmentManager.
|
|
514
|
+
this.backStack.forEach((entry) => {
|
|
515
|
+
const view = entry.resolvedPage.nativeViewProtected;
|
|
516
|
+
if (!entry.viewSavedState && view) {
|
|
517
|
+
const viewState = new android.util.SparseArray();
|
|
518
|
+
view.saveHierarchyState(viewState);
|
|
519
|
+
entry.viewSavedState = viewState;
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
__decorate([
|
|
525
|
+
profile,
|
|
526
|
+
__metadata("design:type", Function),
|
|
527
|
+
__metadata("design:paramtypes", [Object]),
|
|
528
|
+
__metadata("design:returntype", void 0)
|
|
529
|
+
], Frame.prototype, "_navigateCore", null);
|
|
530
|
+
export function reloadPage(context) {
|
|
531
|
+
console.warn('reloadPage() is deprecated. Use Frame.reloadPage() instead.');
|
|
532
|
+
return Frame.reloadPage(context);
|
|
533
|
+
}
|
|
534
|
+
// attach on global, so it can be overwritten in NativeScript Angular
|
|
535
|
+
global.__onLiveSyncCore = Frame.reloadPage;
|
|
536
|
+
let framesCounter = 0;
|
|
537
|
+
class AndroidFrame extends Observable {
|
|
538
|
+
constructor(owner) {
|
|
539
|
+
super();
|
|
540
|
+
this._showActionBar = true;
|
|
541
|
+
this._owner = owner;
|
|
542
|
+
this.frameId = framesCounter++;
|
|
543
|
+
framesCache.push(new WeakRef(this));
|
|
544
|
+
}
|
|
545
|
+
get showActionBar() {
|
|
546
|
+
return this._showActionBar;
|
|
547
|
+
}
|
|
548
|
+
set showActionBar(value) {
|
|
549
|
+
if (this._showActionBar !== value) {
|
|
550
|
+
this._showActionBar = value;
|
|
551
|
+
if (this.owner.currentPage) {
|
|
552
|
+
this.owner.currentPage.actionBar.update();
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
get activity() {
|
|
557
|
+
const activity = this.owner._context;
|
|
558
|
+
if (activity) {
|
|
559
|
+
return activity;
|
|
560
|
+
}
|
|
561
|
+
// traverse the parent chain for an ancestor Frame
|
|
562
|
+
let currView = this._owner.parent;
|
|
563
|
+
while (currView) {
|
|
564
|
+
if (currView instanceof Frame) {
|
|
565
|
+
return currView.android.activity;
|
|
566
|
+
}
|
|
567
|
+
currView = currView.parent;
|
|
568
|
+
}
|
|
569
|
+
return undefined;
|
|
570
|
+
}
|
|
571
|
+
get actionBar() {
|
|
572
|
+
const activity = this.currentActivity;
|
|
573
|
+
if (!activity) {
|
|
574
|
+
return undefined;
|
|
575
|
+
}
|
|
576
|
+
const bar = activity.getActionBar();
|
|
577
|
+
if (!bar) {
|
|
578
|
+
return undefined;
|
|
579
|
+
}
|
|
580
|
+
return bar;
|
|
581
|
+
}
|
|
582
|
+
get currentActivity() {
|
|
583
|
+
let activity = this.activity;
|
|
584
|
+
if (activity) {
|
|
585
|
+
return activity;
|
|
586
|
+
}
|
|
587
|
+
const frames = _stack();
|
|
588
|
+
for (let length = frames.length, i = length - 1; i >= 0; i--) {
|
|
589
|
+
activity = frames[i].android.activity;
|
|
590
|
+
if (activity) {
|
|
591
|
+
return activity;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
return undefined;
|
|
595
|
+
}
|
|
596
|
+
get owner() {
|
|
597
|
+
return this._owner;
|
|
598
|
+
}
|
|
599
|
+
canGoBack() {
|
|
600
|
+
if (!this.activity) {
|
|
601
|
+
return false;
|
|
602
|
+
}
|
|
603
|
+
// can go back only if it is not the main one.
|
|
604
|
+
return this.activity.getIntent().getAction() !== android.content.Intent.ACTION_MAIN;
|
|
605
|
+
}
|
|
606
|
+
fragmentForPage(entry) {
|
|
607
|
+
const tag = entry && entry.fragmentTag;
|
|
608
|
+
if (tag) {
|
|
609
|
+
return this.owner._getFragmentManager().findFragmentByTag(tag);
|
|
610
|
+
}
|
|
611
|
+
return undefined;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
function startActivity(activity, frameId) {
|
|
615
|
+
// TODO: Implicitly, we will open the same activity type as the current one
|
|
616
|
+
const intent = new android.content.Intent(activity, activity.getClass());
|
|
617
|
+
intent.setAction(android.content.Intent.ACTION_DEFAULT);
|
|
618
|
+
intent.putExtra(INTENT_EXTRA, frameId);
|
|
619
|
+
// TODO: Put the navigation context (if any) in the intent
|
|
620
|
+
activity.startActivity(intent);
|
|
621
|
+
}
|
|
622
|
+
let OnBackPressedCallback;
|
|
623
|
+
if (SDK_VERSION >= 33) {
|
|
624
|
+
OnBackPressedCallback = androidx.activity.OnBackPressedCallback.extend('com.tns.OnBackPressedCallback', {
|
|
625
|
+
handleOnBackPressed() {
|
|
626
|
+
if (Trace.isEnabled()) {
|
|
627
|
+
Trace.write('NativeScriptActivity.onBackPressed;', Trace.categories.NativeLifecycle);
|
|
628
|
+
}
|
|
629
|
+
const activity = this['_activity']?.get();
|
|
630
|
+
if (!activity) {
|
|
631
|
+
if (Trace.isEnabled()) {
|
|
632
|
+
Trace.write('NativeScriptActivity.onBackPressed; Activity is null, calling super', Trace.categories.NativeLifecycle);
|
|
633
|
+
}
|
|
634
|
+
this.setEnabled(false);
|
|
635
|
+
return;
|
|
636
|
+
}
|
|
637
|
+
const args = {
|
|
638
|
+
eventName: 'activityBackPressed',
|
|
639
|
+
object: Application,
|
|
640
|
+
android: Application.android,
|
|
641
|
+
activity: activity,
|
|
642
|
+
cancel: false,
|
|
643
|
+
};
|
|
644
|
+
Application.android.notify(args);
|
|
645
|
+
if (args.cancel) {
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
const callbacks = activity[CALLBACKS];
|
|
649
|
+
let callSuper = false;
|
|
650
|
+
if (callbacks) {
|
|
651
|
+
const view = callbacks.getRootView();
|
|
652
|
+
if (view) {
|
|
653
|
+
const viewArgs = {
|
|
654
|
+
eventName: 'activityBackPressed',
|
|
655
|
+
object: view,
|
|
656
|
+
activity: activity,
|
|
657
|
+
cancel: false,
|
|
658
|
+
};
|
|
659
|
+
view.notify(viewArgs);
|
|
660
|
+
// In the case of Frame, use this callback only if it was overridden, since the original will cause navigation issues
|
|
661
|
+
if (!viewArgs.cancel && (view.onBackPressed === Frame.prototype.onBackPressed || !view.onBackPressed())) {
|
|
662
|
+
callSuper = view instanceof Frame ? !Frame.goBack() : true;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
if (callSuper) {
|
|
667
|
+
this.setEnabled(false);
|
|
668
|
+
activity.getOnBackPressedDispatcher().onBackPressed();
|
|
669
|
+
this.setEnabled(true);
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
const activityRootViewsMap = new Map();
|
|
675
|
+
const ROOT_VIEW_ID_EXTRA = 'com.tns.activity.rootViewId';
|
|
676
|
+
export let moduleLoaded;
|
|
677
|
+
export class ActivityCallbacksImplementation {
|
|
678
|
+
getRootView() {
|
|
679
|
+
return this._rootView;
|
|
680
|
+
}
|
|
681
|
+
onCreate(activity, savedInstanceState, intentOrSuperFunc, superFunc) {
|
|
682
|
+
if (Trace.isEnabled()) {
|
|
683
|
+
Trace.write(`Activity.onCreate(${savedInstanceState})`, Trace.categories.NativeLifecycle);
|
|
684
|
+
}
|
|
685
|
+
const intent = superFunc ? intentOrSuperFunc : undefined;
|
|
686
|
+
if (!superFunc) {
|
|
687
|
+
console.log('AndroidActivityCallbacks.onCreate(activity: any, savedInstanceState: any, superFunc: Function) ' + 'is deprecated. Use AndroidActivityCallbacks.onCreate(activity: any, savedInstanceState: any, intent: any, superFunc: Function) instead.');
|
|
688
|
+
superFunc = intentOrSuperFunc;
|
|
689
|
+
}
|
|
690
|
+
// If there is savedInstanceState this call will recreate all fragments that were previously in the navigation.
|
|
691
|
+
// We take care of associating them with a Page from our backstack in the onAttachFragment callback.
|
|
692
|
+
// If there is savedInstanceState and moduleLoaded is false we are restarted but process was killed.
|
|
693
|
+
// For now we treat it like first run (e.g. we are not passing savedInstanceState so no fragments are being restored).
|
|
694
|
+
// When we add support for application save/load state - revise this logic.
|
|
695
|
+
const isRestart = !!savedInstanceState && moduleLoaded;
|
|
696
|
+
superFunc.call(activity, isRestart ? savedInstanceState : null);
|
|
697
|
+
// Try to get the rootViewId form the saved state in case the activity
|
|
698
|
+
// was destroyed and we are now recreating it.
|
|
699
|
+
if (savedInstanceState) {
|
|
700
|
+
const rootViewId = savedInstanceState.getInt(ROOT_VIEW_ID_EXTRA, -1);
|
|
701
|
+
if (rootViewId !== -1 && activityRootViewsMap.has(rootViewId)) {
|
|
702
|
+
this._rootView = activityRootViewsMap.get(rootViewId)?.get();
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
if (intent && intent.getAction()) {
|
|
706
|
+
Application.android.notify({
|
|
707
|
+
eventName: Application.AndroidApplication.activityNewIntentEvent,
|
|
708
|
+
object: Application.android,
|
|
709
|
+
activity,
|
|
710
|
+
intent,
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
this.setActivityContent(activity, savedInstanceState, true);
|
|
714
|
+
moduleLoaded = true;
|
|
715
|
+
}
|
|
716
|
+
onSaveInstanceState(activity, outState, superFunc) {
|
|
717
|
+
superFunc.call(activity, outState);
|
|
718
|
+
const rootView = this._rootView;
|
|
719
|
+
if (rootView instanceof Frame) {
|
|
720
|
+
outState.putInt(INTENT_EXTRA, rootView.android.frameId);
|
|
721
|
+
rootView._saveFragmentsState();
|
|
722
|
+
}
|
|
723
|
+
if (rootView) {
|
|
724
|
+
outState.putInt(ROOT_VIEW_ID_EXTRA, rootView._domId);
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
onNewIntent(activity, intent, superSetIntentFunc, superFunc) {
|
|
728
|
+
superFunc.call(activity, intent);
|
|
729
|
+
superSetIntentFunc.call(activity, intent);
|
|
730
|
+
Application.android.notify({
|
|
731
|
+
eventName: Application.AndroidApplication.activityNewIntentEvent,
|
|
732
|
+
object: Application.android,
|
|
733
|
+
activity,
|
|
734
|
+
intent,
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
onStart(activity, superFunc) {
|
|
738
|
+
superFunc.call(activity);
|
|
739
|
+
if (Trace.isEnabled()) {
|
|
740
|
+
Trace.write('NativeScriptActivity.onStart();', Trace.categories.NativeLifecycle);
|
|
741
|
+
}
|
|
742
|
+
const rootView = this._rootView;
|
|
743
|
+
if (rootView && !rootView.isLoaded && !isEmbedded()) {
|
|
744
|
+
rootView.callLoaded();
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
onStop(activity, superFunc) {
|
|
748
|
+
superFunc.call(activity);
|
|
749
|
+
if (Trace.isEnabled()) {
|
|
750
|
+
Trace.write('NativeScriptActivity.onStop();', Trace.categories.NativeLifecycle);
|
|
751
|
+
}
|
|
752
|
+
const rootView = this._rootView;
|
|
753
|
+
if (rootView && rootView.isLoaded && !isEmbedded()) {
|
|
754
|
+
rootView.callUnloaded();
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
onPostResume(activity, superFunc) {
|
|
758
|
+
superFunc.call(activity);
|
|
759
|
+
if (Trace.isEnabled()) {
|
|
760
|
+
Trace.write('NativeScriptActivity.onPostResume();', Trace.categories.NativeLifecycle);
|
|
761
|
+
}
|
|
762
|
+
// NOTE: activity.onPostResume() is called when activity resume is complete and we can
|
|
763
|
+
// safely raise the application resume event;
|
|
764
|
+
// onActivityResumed(...) lifecycle callback registered in application is called too early
|
|
765
|
+
// and raising the application resume event there causes issues like
|
|
766
|
+
// https://github.com/NativeScript/NativeScript/issues/6708
|
|
767
|
+
if (activity.isNativeScriptActivity) {
|
|
768
|
+
Application.setSuspended(false, {
|
|
769
|
+
// todo: deprecate in favor of using event.activity instead.
|
|
770
|
+
android: activity,
|
|
771
|
+
activity,
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
onDestroy(activity, superFunc) {
|
|
776
|
+
try {
|
|
777
|
+
if (Trace.isEnabled()) {
|
|
778
|
+
Trace.write('NativeScriptActivity.onDestroy();', Trace.categories.NativeLifecycle);
|
|
779
|
+
}
|
|
780
|
+
const rootView = this._rootView;
|
|
781
|
+
if (rootView) {
|
|
782
|
+
rootView._tearDownUI(true);
|
|
783
|
+
}
|
|
784
|
+
// this may happen when the user changes the system theme
|
|
785
|
+
// In such case, isFinishing() is false (and isChangingConfigurations is true), and the app will start again (onCreate) with a savedInstanceState
|
|
786
|
+
// as a result, launchEvent will never be called
|
|
787
|
+
// possible alternative: always fire launchEvent and exitEvent, but pass extra flags to make it clear what kind of launch/destroy is happening
|
|
788
|
+
if (activity.isFinishing()) {
|
|
789
|
+
const exitArgs = {
|
|
790
|
+
eventName: Application.exitEvent,
|
|
791
|
+
object: Application.android,
|
|
792
|
+
android: activity,
|
|
793
|
+
};
|
|
794
|
+
Application.notify(exitArgs);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
finally {
|
|
798
|
+
superFunc.call(activity);
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
onBackPressed(activity, superFunc) {
|
|
802
|
+
if (Trace.isEnabled()) {
|
|
803
|
+
Trace.write('NativeScriptActivity.onBackPressed;', Trace.categories.NativeLifecycle);
|
|
804
|
+
}
|
|
805
|
+
const args = {
|
|
806
|
+
eventName: 'activityBackPressed',
|
|
807
|
+
object: Application,
|
|
808
|
+
android: Application.android,
|
|
809
|
+
activity: activity,
|
|
810
|
+
cancel: false,
|
|
811
|
+
};
|
|
812
|
+
Application.android.notify(args);
|
|
813
|
+
if (args.cancel) {
|
|
814
|
+
return;
|
|
815
|
+
}
|
|
816
|
+
const view = this._rootView;
|
|
817
|
+
let callSuper = false;
|
|
818
|
+
const viewArgs = {
|
|
819
|
+
eventName: 'activityBackPressed',
|
|
820
|
+
object: view,
|
|
821
|
+
activity: activity,
|
|
822
|
+
cancel: false,
|
|
823
|
+
};
|
|
824
|
+
view.notify(viewArgs);
|
|
825
|
+
// In the case of Frame, use this callback only if it was overridden, since the original will cause navigation issues
|
|
826
|
+
if (!viewArgs.cancel && (view.onBackPressed === Frame.prototype.onBackPressed || !view.onBackPressed())) {
|
|
827
|
+
callSuper = view instanceof Frame ? !Frame.goBack() : true;
|
|
828
|
+
}
|
|
829
|
+
if (callSuper) {
|
|
830
|
+
superFunc.call(activity);
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
onRequestPermissionsResult(activity, requestCode, permissions, grantResults, superFunc) {
|
|
834
|
+
if (Trace.isEnabled()) {
|
|
835
|
+
Trace.write('NativeScriptActivity.onRequestPermissionsResult;', Trace.categories.NativeLifecycle);
|
|
836
|
+
}
|
|
837
|
+
Application.android.notify({
|
|
838
|
+
eventName: 'activityRequestPermissions',
|
|
839
|
+
object: Application,
|
|
840
|
+
android: Application.android,
|
|
841
|
+
activity: activity,
|
|
842
|
+
requestCode: requestCode,
|
|
843
|
+
permissions: permissions,
|
|
844
|
+
grantResults: grantResults,
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
onActivityResult(activity, requestCode, resultCode, data, superFunc) {
|
|
848
|
+
superFunc.call(activity, requestCode, resultCode, data);
|
|
849
|
+
if (Trace.isEnabled()) {
|
|
850
|
+
Trace.write(`NativeScriptActivity.onActivityResult(${requestCode}, ${resultCode}, ${data})`, Trace.categories.NativeLifecycle);
|
|
851
|
+
}
|
|
852
|
+
Application.android.notify({
|
|
853
|
+
eventName: 'activityResult',
|
|
854
|
+
object: Application,
|
|
855
|
+
android: Application.android,
|
|
856
|
+
activity: activity,
|
|
857
|
+
requestCode: requestCode,
|
|
858
|
+
resultCode: resultCode,
|
|
859
|
+
intent: data,
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
resetActivityContent(activity) {
|
|
863
|
+
if (this._rootView) {
|
|
864
|
+
const manager = this._rootView._getFragmentManager();
|
|
865
|
+
manager.executePendingTransactions();
|
|
866
|
+
this._rootView._onRootViewReset();
|
|
867
|
+
}
|
|
868
|
+
// Delete previously cached root view in order to recreate it.
|
|
869
|
+
this._rootView = null;
|
|
870
|
+
this.setActivityContent(activity, null, false);
|
|
871
|
+
this._rootView.callLoaded();
|
|
872
|
+
}
|
|
873
|
+
// Paths that go trough this method:
|
|
874
|
+
// 1. Application initial start - there is no rootView in callbacks.
|
|
875
|
+
// 2. Application revived after Activity is destroyed. this._rootView should have been restored by id in onCreate.
|
|
876
|
+
// 3. Livesync if rootView has no custom _onLivesync. this._rootView should have been cleared upfront. Launch event should not fired
|
|
877
|
+
// 4. resetRootView method. this._rootView should have been cleared upfront. Launch event should not fired
|
|
878
|
+
setActivityContent(activity, savedInstanceState, fireLaunchEvent) {
|
|
879
|
+
let rootView = this._rootView;
|
|
880
|
+
if (Trace.isEnabled()) {
|
|
881
|
+
Trace.write(`Frame.setActivityContent rootView: ${rootView} shouldCreateRootFrame: false fireLaunchEvent: ${fireLaunchEvent}`, Trace.categories.NativeLifecycle);
|
|
882
|
+
}
|
|
883
|
+
const intent = activity.getIntent();
|
|
884
|
+
rootView = Application.createRootView(rootView, fireLaunchEvent, {
|
|
885
|
+
// todo: deprecate in favor of args.intent?
|
|
886
|
+
android: intent,
|
|
887
|
+
intent,
|
|
888
|
+
savedInstanceState,
|
|
889
|
+
});
|
|
890
|
+
if (!rootView) {
|
|
891
|
+
// no root view created
|
|
892
|
+
return;
|
|
893
|
+
}
|
|
894
|
+
activityRootViewsMap.set(rootView._domId, new WeakRef(rootView));
|
|
895
|
+
// setup view as styleScopeHost
|
|
896
|
+
rootView._setupAsRootView(activity);
|
|
897
|
+
if (isEmbedded()) {
|
|
898
|
+
setEmbeddedView(rootView);
|
|
899
|
+
}
|
|
900
|
+
else {
|
|
901
|
+
activity.setContentView(rootView.nativeViewProtected, new org.nativescript.widgets.CommonLayoutParams());
|
|
902
|
+
}
|
|
903
|
+
this._rootView = rootView;
|
|
904
|
+
// sets root classes once rootView is ready...
|
|
905
|
+
Application.initRootView(rootView);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
__decorate([
|
|
909
|
+
profile,
|
|
910
|
+
__metadata("design:type", Function),
|
|
911
|
+
__metadata("design:paramtypes", [androidx.appcompat.app.AppCompatActivity, android.os.Bundle, Object, Function]),
|
|
912
|
+
__metadata("design:returntype", void 0)
|
|
913
|
+
], ActivityCallbacksImplementation.prototype, "onCreate", null);
|
|
914
|
+
__decorate([
|
|
915
|
+
profile,
|
|
916
|
+
__metadata("design:type", Function),
|
|
917
|
+
__metadata("design:paramtypes", [androidx.appcompat.app.AppCompatActivity, android.os.Bundle, Function]),
|
|
918
|
+
__metadata("design:returntype", void 0)
|
|
919
|
+
], ActivityCallbacksImplementation.prototype, "onSaveInstanceState", null);
|
|
920
|
+
__decorate([
|
|
921
|
+
profile,
|
|
922
|
+
__metadata("design:type", Function),
|
|
923
|
+
__metadata("design:paramtypes", [androidx.appcompat.app.AppCompatActivity, android.content.Intent, Function, Function]),
|
|
924
|
+
__metadata("design:returntype", void 0)
|
|
925
|
+
], ActivityCallbacksImplementation.prototype, "onNewIntent", null);
|
|
926
|
+
__decorate([
|
|
927
|
+
profile,
|
|
928
|
+
__metadata("design:type", Function),
|
|
929
|
+
__metadata("design:paramtypes", [Object, Function]),
|
|
930
|
+
__metadata("design:returntype", void 0)
|
|
931
|
+
], ActivityCallbacksImplementation.prototype, "onStart", null);
|
|
932
|
+
__decorate([
|
|
933
|
+
profile,
|
|
934
|
+
__metadata("design:type", Function),
|
|
935
|
+
__metadata("design:paramtypes", [Object, Function]),
|
|
936
|
+
__metadata("design:returntype", void 0)
|
|
937
|
+
], ActivityCallbacksImplementation.prototype, "onStop", null);
|
|
938
|
+
__decorate([
|
|
939
|
+
profile,
|
|
940
|
+
__metadata("design:type", Function),
|
|
941
|
+
__metadata("design:paramtypes", [Object, Function]),
|
|
942
|
+
__metadata("design:returntype", void 0)
|
|
943
|
+
], ActivityCallbacksImplementation.prototype, "onPostResume", null);
|
|
944
|
+
__decorate([
|
|
945
|
+
profile,
|
|
946
|
+
__metadata("design:type", Function),
|
|
947
|
+
__metadata("design:paramtypes", [Object, Function]),
|
|
948
|
+
__metadata("design:returntype", void 0)
|
|
949
|
+
], ActivityCallbacksImplementation.prototype, "onDestroy", null);
|
|
950
|
+
__decorate([
|
|
951
|
+
profile,
|
|
952
|
+
__metadata("design:type", Function),
|
|
953
|
+
__metadata("design:paramtypes", [Object, Function]),
|
|
954
|
+
__metadata("design:returntype", void 0)
|
|
955
|
+
], ActivityCallbacksImplementation.prototype, "onBackPressed", null);
|
|
956
|
+
__decorate([
|
|
957
|
+
profile,
|
|
958
|
+
__metadata("design:type", Function),
|
|
959
|
+
__metadata("design:paramtypes", [Object, Number, Array, Array, Function]),
|
|
960
|
+
__metadata("design:returntype", void 0)
|
|
961
|
+
], ActivityCallbacksImplementation.prototype, "onRequestPermissionsResult", null);
|
|
962
|
+
__decorate([
|
|
963
|
+
profile,
|
|
964
|
+
__metadata("design:type", Function),
|
|
965
|
+
__metadata("design:paramtypes", [Object, Number, Number, android.content.Intent, Function]),
|
|
966
|
+
__metadata("design:returntype", void 0)
|
|
967
|
+
], ActivityCallbacksImplementation.prototype, "onActivityResult", null);
|
|
968
|
+
export function setActivityCallbacks(activity) {
|
|
969
|
+
activity[CALLBACKS] = new ActivityCallbacksImplementation();
|
|
970
|
+
if (OnBackPressedCallback && !activity['_onBackPressed']) {
|
|
971
|
+
const callback = new OnBackPressedCallback(true);
|
|
972
|
+
callback['_activity'] = new WeakRef(activity);
|
|
973
|
+
activity['_onBackPressed'] = true;
|
|
974
|
+
activity.getOnBackPressedDispatcher().addCallback(activity, callback);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
//# sourceMappingURL=index.android.js.map
|