@nativescript/core 8.9.0-next-01-17-2025-12834437745 → 8.9.0-next-01-22-2025-12918162303
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/accessibility/accessibility-service.d.ts +10 -0
- package/accessibility/font-scale.d.ts +9 -0
- package/accessibility/index.d.ts +37 -0
- package/animation-frame/animation-native.d.ts +4 -0
- package/animation-frame/index.d.ts +17 -3
- package/application/application.d.ts +194 -0
- package/application/index.d.ts +2 -0
- package/application-settings/index.d.ts +70 -0
- package/cli-hooks/before-checkForChanges.js +60 -0
- package/cli-hooks/postinstall.js +2 -0
- package/cli-hooks/preuninstall.js +2 -0
- package/color/index.d.ts +206 -0
- package/connectivity/index.d.ts +52 -0
- package/css/css-tree-parser.js +21 -17
- package/css/lib/parse/index.js +602 -0
- package/css/package.json +36 -0
- package/css/reworkcss.d.ts +47 -0
- package/css/reworkcss.js +1 -0
- package/css-value/package.json +23 -0
- package/css-value/reworkcss-value.d.ts +8 -0
- package/css-value/reworkcss-value.js +113 -0
- package/debugger/css-agent.d.ts +59 -0
- package/debugger/devtools-elements.d.ts +23 -5
- package/debugger/dom-node.d.ts +23 -20
- package/fetch/index.js +539 -0
- package/file-system/file-system-access.d.ts +441 -0
- package/file-system/index.d.ts +370 -95
- package/fps-meter/fps-native.d.ts +24 -0
- package/fps-meter/index.d.ts +24 -7
- package/global-types.d.ts +393 -0
- package/globals/index.d.ts +4 -19
- package/http/http-request/index.d.ts +3 -0
- package/http/index.d.ts +149 -73
- package/image-asset/index.d.ts +17 -0
- package/image-source/index.d.ts +350 -0
- package/index.d.ts +24 -7
- package/js-libs/easysax/easysax.d.ts +8 -0
- package/js-libs/easysax/easysax.js +782 -0
- package/js-libs/easysax/package.json +35 -0
- package/matrix/index.d.ts +32 -5
- package/module-name-resolver/index.d.ts +21 -13
- package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
- package/package.json +1 -1
- package/platform/device/index.d.ts +70 -0
- package/platform/index.d.ts +26 -0
- package/platform/screen/index.d.ts +48 -0
- package/platforms/android/native-api-usage.json +32 -0
- package/platforms/android/res/values/ids.xml +4 -0
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/android/winter_tc-release.aar +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/Info.plist +102 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -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/NSCWinterTC +0 -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/A/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Resources/Info.plist +52 -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/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/_CodeSignature/CodeResources +146 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/_CodeSignature/CodeResources +146 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
- package/platforms/ios/TNSWidgets.xcframework/Info.plist +102 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -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/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
- package/platforms/ios/native-api-usage.json +41 -0
- package/platforms/ios/src/NativeScriptEmbedder.h +31 -0
- package/platforms/ios/src/NativeScriptEmbedder.m +43 -0
- package/platforms/ios/src/NativeScriptMainWindow.swift +196 -0
- package/platforms/ios/src/NativeScriptUtils.h +16 -0
- package/platforms/ios/src/NativeScriptUtils.m +137 -0
- package/platforms/ios/src/UIView+NativeScript.h +15 -0
- package/platforms/ios/src/UIView+NativeScript.m +148 -0
- package/platforms/ios/src/module.modulemap +14 -0
- package/platforms/ios/typings/objc!MaterialComponents.d.ts +808 -0
- package/platforms/ios/typings/objc!NativeScriptUtils.d.ts +18 -0
- package/profiling/index.d.ts +153 -26
- package/references.d.ts +10 -0
- package/text/formatted-string.d.ts +1 -1
- package/text/index.d.ts +36 -0
- package/text/span.d.ts +1 -1
- package/timer/index.d.ts +27 -0
- package/trace/index.d.ts +131 -105
- package/ui/action-bar/index.d.ts +304 -0
- package/ui/activity-indicator/index.d.ts +25 -0
- package/ui/animation/index.d.ts +139 -0
- package/ui/animation/keyframe-animation.d.ts +118 -67
- package/ui/builder/binding-builder.d.ts +15 -12
- package/ui/builder/index.d.ts +69 -27
- package/ui/button/index.d.ts +50 -0
- package/ui/content-view/index.d.ts +11 -21
- package/ui/core/control-state-change/index.d.ts +17 -0
- package/ui/core/view/index.d.ts +1216 -0
- package/ui/core/view/view-helper/index.d.ts +76 -0
- package/ui/core/weak-event-listener/index.d.ts +18 -2
- package/ui/date-picker/index.d.ts +95 -0
- package/ui/dialogs/index.d.ts +311 -0
- package/ui/editable-text-base/index.d.ts +142 -0
- package/ui/embedding/index.d.ts +10 -0
- package/ui/frame/fragment.d.ts +5 -0
- package/ui/frame/fragment.transitions.d.ts +43 -0
- package/ui/frame/frame-common.d.ts +1 -0
- package/ui/frame/frame-common.js +6 -0
- package/ui/frame/frame-common.js.map +1 -1
- package/ui/frame/index.android.d.ts +1 -0
- package/ui/frame/index.android.js +12 -15
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.d.ts +590 -0
- package/ui/frame/index.ios.js +13 -0
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/frame/transition-definitions.android.d.ts +54 -0
- package/ui/gestures/index.d.ts +59 -0
- package/ui/html-view/index.d.ts +41 -0
- package/ui/image/index.d.ts +119 -0
- package/ui/image/symbol-effects.d.ts +13 -0
- package/ui/image-cache/index.d.ts +147 -0
- package/ui/label/index.d.ts +25 -0
- package/ui/layouts/absolute-layout/index.d.ts +42 -0
- package/ui/layouts/dock-layout/index.d.ts +39 -0
- package/ui/layouts/flexbox-layout/index.d.ts +98 -0
- package/ui/layouts/grid-layout/index.d.ts +201 -0
- package/ui/layouts/index.d.ts +1 -2
- package/ui/layouts/layout-base.d.ts +119 -0
- package/ui/layouts/root-layout/index.d.ts +48 -0
- package/ui/layouts/stack-layout/index.d.ts +22 -0
- package/ui/layouts/wrap-layout/index.d.ts +51 -0
- package/ui/list-picker/index.d.ts +43 -0
- package/ui/list-view/index.d.ts +232 -0
- package/ui/page/index.d.ts +241 -0
- package/ui/placeholder/index.d.ts +46 -8
- package/ui/progress/index.d.ts +50 -0
- package/ui/scroll-view/index.d.ts +99 -0
- package/ui/search-bar/index.d.ts +103 -0
- package/ui/segmented-bar/index.d.ts +122 -0
- package/ui/slider/index.d.ts +99 -0
- package/ui/styling/background.d.ts +95 -0
- package/ui/styling/converters.d.ts +2 -2
- package/ui/styling/font.d.ts +62 -0
- package/ui/styling/style-properties.d.ts +101 -81
- package/ui/styling/style-scope.d.ts +48 -79
- package/ui/switch/index.d.ts +46 -0
- package/ui/tab-view/index.d.ts +213 -0
- package/ui/text-base/formatted-string.d.ts +97 -36
- package/ui/text-base/index.d.ts +208 -0
- package/ui/text-base/span.d.ts +111 -36
- package/ui/text-field/index.d.ts +54 -0
- package/ui/text-view/index.d.ts +35 -0
- package/ui/time-picker/index.d.ts +107 -0
- package/ui/transition/fade-transition.d.ts +3 -0
- package/ui/transition/flip-transition.d.ts +5 -0
- package/ui/transition/index.d.ts +59 -0
- package/ui/transition/modal-transition.d.ts +2 -0
- package/ui/transition/page-transition.d.ts +4 -0
- package/ui/transition/shared-transition-helper.d.ts +14 -0
- package/ui/transition/slide-transition.d.ts +5 -0
- package/ui/utils.d.ts +44 -0
- package/ui/web-view/index.d.ts +142 -0
- package/utils/constants.d.ts +1 -0
- package/utils/debug.d.ts +61 -17
- package/utils/index.d.ts +183 -0
- package/utils/layout-helper/index.d.ts +82 -0
- package/utils/lazy.d.ts +5 -0
- package/utils/macrotask-scheduler.d.ts +5 -1
- package/utils/mainthread-helper.d.ts +16 -0
- package/utils/native-helper.d.ts +280 -0
- package/utils/types.d.ts +115 -23
- package/utils/typescript-utils.d.ts +6 -0
- package/xml/index.d.ts +105 -44
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { View } from '../core/view';
|
|
2
|
+
import type { BackstackEntry } from '../frame';
|
|
3
|
+
export type SharedTransitionTagPropertiesToMatch = {
|
|
4
|
+
/**
|
|
5
|
+
* View related properties
|
|
6
|
+
*/
|
|
7
|
+
view?: Array<string>;
|
|
8
|
+
/**
|
|
9
|
+
* For iOS, can be specific if CALayer related properties
|
|
10
|
+
*/
|
|
11
|
+
layer?: Array<string>;
|
|
12
|
+
};
|
|
13
|
+
export type SharedElementSettings = { view: View; startFrame: any; endFrame?: any; startOpacity?: number; endOpacity?: number; scale?: { x?: number; y?: number }; zIndex?: number; startTransform?: any; snapshot?: any; propertiesToMatch?: SharedTransitionTagPropertiesToMatch };
|
|
14
|
+
export type TransitionNavigationType = 'page' | 'modal';
|
|
15
|
+
export interface TransitionInteractiveState {
|
|
16
|
+
started?: false;
|
|
17
|
+
added?: boolean;
|
|
18
|
+
transitionContext?: any;
|
|
19
|
+
propertyAnimator?: any;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare class Transition {
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
* (Optional) Provide a unique name to identify this transition
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
transitionController?: any;
|
|
29
|
+
interactiveController?: any;
|
|
30
|
+
presented?: any;
|
|
31
|
+
presenting?: any;
|
|
32
|
+
sharedElements?: {
|
|
33
|
+
presented?: Array<SharedElementSettings>;
|
|
34
|
+
presenting?: Array<SharedElementSettings>;
|
|
35
|
+
// independent sharedTransitionTags which are part of the shared transition but only on one page
|
|
36
|
+
independent?: Array<SharedElementSettings & { isPresented?: boolean }>;
|
|
37
|
+
};
|
|
38
|
+
static AndroidTransitionType?: { enter?: string; exit?: string; popEnter?: string; popExit?: string };
|
|
39
|
+
constructor(duration?: number, nativeCurve?: any /* UIViewAnimationCurve | string | CubicBezierAnimationCurve | android.view.animation.Interpolator | android.view.animation.LinearInterpolator */);
|
|
40
|
+
getDuration(): number;
|
|
41
|
+
setDuration(value: number): void;
|
|
42
|
+
getCurve(): any;
|
|
43
|
+
animateIOSTransition(transitionContext: any /*UIViewControllerContextTransitioning */, fromViewCtrl: any /* UIViewController */, toViewCtrl: any /* UIViewController */, operation: any /* UINavigationControllerOperation */): void;
|
|
44
|
+
createAndroidAnimator(transitionType: string): any;
|
|
45
|
+
|
|
46
|
+
setupInteractiveGesture?(startCallback: () => void, view: View): void;
|
|
47
|
+
|
|
48
|
+
iosDismissedController?(dismissed: any /* UIViewController */): any /* UIViewControllerAnimatedTransitioning */;
|
|
49
|
+
|
|
50
|
+
iosPresentedController?(presented: any /* UIViewController */, presenting: any /* UIViewController */, source: any /* UIViewController */): any /* UIViewControllerAnimatedTransitioning */;
|
|
51
|
+
|
|
52
|
+
iosInteractionDismiss?(animator: any /* UIViewControllerAnimatedTransitioning */): any /* UIViewControllerInteractiveTransitioning */;
|
|
53
|
+
|
|
54
|
+
iosInteractionPresented?(animator: any /* UIViewControllerAnimatedTransitioning */): any /* UIViewControllerInteractiveTransitioning */;
|
|
55
|
+
|
|
56
|
+
iosNavigatedController?(navigationController: any /* UINavigationController */, operation: number, fromVC: any /* UIViewController */, toVC: any /* UIViewController */): any /* UIViewControllerAnimatedTransitioning */;
|
|
57
|
+
|
|
58
|
+
androidFragmentTransactionCallback?(fragmentTransaction: any /* androidx.fragment.app.FragmentTransaction */, currentEntry: BackstackEntry, newEntry: BackstackEntry): void;
|
|
59
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Transition } from '.';
|
|
2
|
+
export declare class PageTransition extends Transition {
|
|
3
|
+
constructor(duration?: number, nativeCurve?: any /* UIViewAnimationCurve | string | CubicBezierAnimationCurve | android.view.animation.Interpolator | android.view.animation.LinearInterpolator */, pageLoadedTimeout?: number);
|
|
4
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TransitionInteractiveState, TransitionNavigationType } from '.';
|
|
2
|
+
import type { SharedTransitionState } from './shared-transition';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Platform helper to aid in creating your own custom Shared Element Transition classes.
|
|
6
|
+
* (iOS Only)
|
|
7
|
+
*/
|
|
8
|
+
export declare class SharedTransitionHelper {
|
|
9
|
+
static animate(state: SharedTransitionState, transitionContext: any /* iOS: UIViewControllerContextTransitioning */, type: TransitionNavigationType): void;
|
|
10
|
+
static interactiveStart(state: SharedTransitionState, interactiveState: TransitionInteractiveState, type: TransitionNavigationType): void;
|
|
11
|
+
static interactiveUpdate(state: SharedTransitionState, interactiveState: TransitionInteractiveState, type: TransitionNavigationType, percent: number): void;
|
|
12
|
+
static interactiveCancel(state: SharedTransitionState, interactiveState: TransitionInteractiveState, type: TransitionNavigationType): void;
|
|
13
|
+
static interactiveFinish(state: SharedTransitionState, interactiveState: TransitionInteractiveState, type: TransitionNavigationType): void;
|
|
14
|
+
}
|
package/ui/utils.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface NativeScriptAndroidView extends android.view.View {
|
|
2
|
+
_cachedDrawable: android.graphics.drawable.Drawable;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export interface NativeScriptUIView extends UIView {
|
|
6
|
+
hasNonUniformBorder: boolean;
|
|
7
|
+
hasNonUniformBorderColor: boolean;
|
|
8
|
+
borderLayer: CAShapeLayer;
|
|
9
|
+
|
|
10
|
+
maskType: ios.LayerMaskType;
|
|
11
|
+
originalMask: CALayer;
|
|
12
|
+
|
|
13
|
+
gradientLayer: CAGradientLayer;
|
|
14
|
+
outerShadowContainerLayer: CALayer;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export namespace ios {
|
|
18
|
+
export type LayerMaskType = 'BORDER' | 'CLIP_PATH';
|
|
19
|
+
export namespace LayerMask {
|
|
20
|
+
export const BORDER = 'BORDER';
|
|
21
|
+
export const CLIP_PATH = 'CLIP_PATH';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Gets actual height of a [UIView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/) widget in device pixels.
|
|
26
|
+
* @param uiView - An instance of UIView.
|
|
27
|
+
*/
|
|
28
|
+
export function getActualHeight(uiView: any /* UIView */): number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Gets the height of the status bar in device pixels.
|
|
32
|
+
* @param viewController when specified it is used to check preferStatusBarHidden property.
|
|
33
|
+
*/
|
|
34
|
+
export function getStatusBarHeight(viewController?: any): number;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Draw gradient using CAGradientLayer and insert into UIView sublayer
|
|
38
|
+
* @param nativeView NativeScriptUIView
|
|
39
|
+
* @param gradientLayer CAGradientLayer
|
|
40
|
+
* @param gradient Parsed LinearGradient
|
|
41
|
+
* @param gradientLayerOpacity Initial layer opacity (in case you'd like to use with animation sequence)
|
|
42
|
+
*/
|
|
43
|
+
export function drawGradient(uiView: any /* UIView */, gradientLayer: CAGradientLayer, gradient: LinearGradient, gradientLayerOpacity?: number): void;
|
|
44
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains the WebView class, which represents a standard browser widget.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { View } from '../core/view';
|
|
6
|
+
import { Property } from '../core/properties';
|
|
7
|
+
import { EventData } from '../../data/observable';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Represents the observable property backing the Url property of each WebView instance.
|
|
11
|
+
*/
|
|
12
|
+
export const urlProperty: Property<WebView, string>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Represents navigation type
|
|
16
|
+
*/
|
|
17
|
+
export type WebViewNavigationType = 'linkClicked' | 'formSubmitted' | 'backForward' | 'reload' | 'formResubmitted' | 'other' | undefined;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Represents a standard WebView widget.
|
|
21
|
+
*
|
|
22
|
+
* @nsView
|
|
23
|
+
*/
|
|
24
|
+
export class WebView extends View {
|
|
25
|
+
/**
|
|
26
|
+
* String value used when hooking to loadStarted event.
|
|
27
|
+
*
|
|
28
|
+
* @nsEvent {LoadEventData} loadStarted
|
|
29
|
+
*/
|
|
30
|
+
public static loadStartedEvent: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* String value used when hooking to loadFinished event.
|
|
34
|
+
*
|
|
35
|
+
* @nsEvent {LoadEventData} loadFinished
|
|
36
|
+
*/
|
|
37
|
+
public static loadFinishedEvent: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Gets the native [android widget](http://developer.android.com/reference/android/webkit/WebView.html) that represents the user interface for this component. Valid only when running on Android OS.
|
|
41
|
+
*/
|
|
42
|
+
android: any /* android.webkit.WebView */;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Gets the native [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview/) that represents the user interface for this component. Valid only when running on iOS.
|
|
46
|
+
*/
|
|
47
|
+
ios: any /* WKWebView */;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Gets or sets the url, local file path or HTML string.
|
|
51
|
+
*
|
|
52
|
+
* @nsProperty
|
|
53
|
+
*/
|
|
54
|
+
src: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Gets a value indicating whether the WebView can navigate back.
|
|
58
|
+
*/
|
|
59
|
+
canGoBack: boolean;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Gets a value indicating whether the WebView can navigate forward.
|
|
63
|
+
*/
|
|
64
|
+
canGoForward: boolean;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Disable scrolling in the WebView
|
|
68
|
+
*
|
|
69
|
+
* @nsProperty
|
|
70
|
+
*/
|
|
71
|
+
disableZoom: boolean;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Enables inline media playback on iOS.
|
|
75
|
+
* By default, webview forces iPhone into fullscreen media playback.
|
|
76
|
+
*
|
|
77
|
+
* @nsProperty
|
|
78
|
+
*/
|
|
79
|
+
iosAllowInlineMediaPlayback: boolean;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Stops loading the current content (if any).
|
|
83
|
+
*/
|
|
84
|
+
stopLoading(): void;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Navigates back.
|
|
88
|
+
*/
|
|
89
|
+
goBack();
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Navigates forward.
|
|
93
|
+
*/
|
|
94
|
+
goForward();
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Reloads the current url.
|
|
98
|
+
*/
|
|
99
|
+
reload();
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Adds a listener for the specified event name.
|
|
103
|
+
*
|
|
104
|
+
* @param eventName The name of the event.
|
|
105
|
+
* @param callback The event listener to add. Will be called when an event of
|
|
106
|
+
* the given name is raised.
|
|
107
|
+
* @param thisArg An optional parameter which, when set, will be bound as the
|
|
108
|
+
* `this` context when the callback is called. Falsy values will be not be
|
|
109
|
+
* bound.
|
|
110
|
+
*/
|
|
111
|
+
on(eventName: string, callback: (data: EventData) => void, thisArg?: any): void;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Raised when a loadFinished event occurs.
|
|
115
|
+
*/
|
|
116
|
+
on(event: 'loadFinished', callback: (args: LoadEventData) => void, thisArg?: any): void;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Raised when a loadStarted event occurs.
|
|
120
|
+
*/
|
|
121
|
+
on(event: 'loadStarted', callback: (args: LoadEventData) => void, thisArg?: any): void;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Event data containing information for the loading events of a WebView.
|
|
126
|
+
*/
|
|
127
|
+
export interface LoadEventData extends EventData {
|
|
128
|
+
/**
|
|
129
|
+
* Gets the url of the web-view.
|
|
130
|
+
*/
|
|
131
|
+
url: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Gets the navigation type of the web-view.
|
|
135
|
+
*/
|
|
136
|
+
navigationType: NavigationType;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Gets the error (if any).
|
|
140
|
+
*/
|
|
141
|
+
error: string;
|
|
142
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const SDK_VERSION: number;
|
package/utils/debug.d.ts
CHANGED
|
@@ -1,20 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
/**
|
|
2
|
+
* A runtime option indicating whether the build has debugging enabled.
|
|
3
|
+
*/
|
|
4
|
+
export let debug: boolean;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A class encapsulating information for source code origin.
|
|
8
|
+
*/
|
|
9
|
+
export class Source {
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new Source instance by given uri, line and column.
|
|
12
|
+
*/
|
|
13
|
+
constructor(uri: string, line: number, column: number);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Gets the URI of the source document;
|
|
17
|
+
*/
|
|
18
|
+
uri: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Gets the line in the source document.
|
|
22
|
+
*/
|
|
23
|
+
line: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Gets the position in the source document.
|
|
27
|
+
*/
|
|
28
|
+
column: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Get the source of an object.
|
|
32
|
+
*/
|
|
33
|
+
public static get(object: any): Source;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Set the source of an object.
|
|
37
|
+
*/
|
|
38
|
+
public static set(object: any, src: Source);
|
|
14
39
|
}
|
|
15
|
-
|
|
16
|
-
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* An Error class that provides additional context to an error.
|
|
43
|
+
*/
|
|
44
|
+
export class ScopeError extends Error {
|
|
45
|
+
/**
|
|
46
|
+
* Creates a new ScopeError providing addtional context to the child error.
|
|
47
|
+
* @param child The child error to extend.
|
|
48
|
+
* @param message Additional message to prepend to the child error.
|
|
49
|
+
*/
|
|
50
|
+
constructor(child: Error, message?: string);
|
|
17
51
|
}
|
|
18
|
-
|
|
19
|
-
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Represents a scope error providing addiot
|
|
55
|
+
*/
|
|
56
|
+
export class SourceError extends ScopeError {
|
|
57
|
+
/**
|
|
58
|
+
* Creates a new SourceError by child error, source and optional message.
|
|
59
|
+
* @param child The child error to extend.
|
|
60
|
+
* @param source The source where the error occured.
|
|
61
|
+
* @param message Additonal message to prepend along the source location and the child error's message.
|
|
62
|
+
*/
|
|
63
|
+
constructor(child: Error, source: Source, message?: string);
|
|
20
64
|
}
|
package/utils/index.d.ts
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
export { clearInterval, clearTimeout, setInterval, setTimeout } from '../timer';
|
|
2
|
+
export * from './common';
|
|
3
|
+
export * from './constants';
|
|
4
|
+
export * from './debug';
|
|
5
|
+
export * from './layout-helper';
|
|
6
|
+
export * from './macrotask-scheduler';
|
|
7
|
+
export * from './mainthread-helper';
|
|
8
|
+
export * from './native-helper';
|
|
9
|
+
export * from './types';
|
|
10
|
+
|
|
11
|
+
export const RESOURCE_PREFIX: string;
|
|
12
|
+
export const FILE_PREFIX: string;
|
|
13
|
+
|
|
14
|
+
//@private
|
|
15
|
+
/**
|
|
16
|
+
* Used by various android event listener implementations.
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
19
|
+
interface Owned {
|
|
20
|
+
owner: any;
|
|
21
|
+
}
|
|
22
|
+
//@endprivate
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* An utility function that invokes garbage collection on the JavaScript side.
|
|
26
|
+
*/
|
|
27
|
+
export function GC();
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* An utility function that queues a garbage collection, multiple calls in quick succession are debounced by default and only one gc will be executed after 900ms.
|
|
31
|
+
* @param delay Customize the delay
|
|
32
|
+
* @param useThrottle Instead of default debounce strategy, use throttling
|
|
33
|
+
*/
|
|
34
|
+
export function queueGC(delay?: number, useThrottle?: boolean);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* A simple throttle utility
|
|
38
|
+
* @param fn Function to throttle
|
|
39
|
+
* @param delay Customize the delay (default is 300ms)
|
|
40
|
+
*/
|
|
41
|
+
export function throttle<T extends Function = any>(fn: T, delay?: number): T;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A simple debounce utility
|
|
45
|
+
* @param fn Function to debounce
|
|
46
|
+
* @param delay Customize the delay (default is 300ms)
|
|
47
|
+
*/
|
|
48
|
+
export function debounce<T extends Function = any>(fn: T, delay?: number, options?: { leading?: boolean }): T;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Releases the reference to the wrapped native object
|
|
52
|
+
* @param object The Java/Objective-C object to release.
|
|
53
|
+
*/
|
|
54
|
+
export function releaseNativeObject(object: any /*java.lang.Object | NSObject*/);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Queues the passed function to be ran in a macroTask
|
|
58
|
+
* @param task the function to execute as a macroTask
|
|
59
|
+
*/
|
|
60
|
+
export function queueMacrotask(task: () => void): void;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Checks if the current thread is the main thread. Directly calls the passed function
|
|
64
|
+
* if it is, or dispatches it to the main thread otherwise.
|
|
65
|
+
* @param func The function to execute on the main thread.
|
|
66
|
+
*/
|
|
67
|
+
export function executeOnMainThread(func: Function);
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Runs the passed function on the UI Thread.
|
|
71
|
+
* @param func The function to execute on the UI thread.
|
|
72
|
+
*/
|
|
73
|
+
export function executeOnUIThread(func: Function);
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Returns a function wrapper which executes the supplied function on the main thread.
|
|
77
|
+
* The wrapper behaves like the original function and passes all of its arguments BUT
|
|
78
|
+
* discards its return value.
|
|
79
|
+
* @param func The function to execute on the main thread
|
|
80
|
+
* @returns The wrapper function which schedules execution to the main thread
|
|
81
|
+
*/
|
|
82
|
+
export function mainThreadify(func: Function): (...args: any[]) => void;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Returns true if the specified URI is a font icon URI like "fontIcon://".
|
|
86
|
+
* @param uri The URI.
|
|
87
|
+
*/
|
|
88
|
+
export function isFontIconURI(uri: string): boolean;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Returns true if the specified path points to a resource or local file.
|
|
92
|
+
* @param path The path.
|
|
93
|
+
*/
|
|
94
|
+
export function isFileOrResourcePath(path: string): boolean;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Get file extension from file path
|
|
98
|
+
* @param path file path
|
|
99
|
+
* @returns file extension
|
|
100
|
+
*/
|
|
101
|
+
export function getFileExtension(path: string): string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Returns true if the specified URI is data URI (http://en.wikipedia.org/wiki/Data_URI_scheme).
|
|
105
|
+
* @param uri The URI.
|
|
106
|
+
*/
|
|
107
|
+
export function isDataURI(uri: string): boolean;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Opens url.
|
|
111
|
+
* @param url The url.
|
|
112
|
+
*/
|
|
113
|
+
export function openUrl(url: string): boolean;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Opens url asynchronously.
|
|
117
|
+
* @param url The url.
|
|
118
|
+
*/
|
|
119
|
+
export function openUrlAsync(url: string): Promise<boolean>;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Opens file.
|
|
123
|
+
* @param filePath The file.
|
|
124
|
+
* @param title Optional title for Android. Default is: 'Open File...'
|
|
125
|
+
*/
|
|
126
|
+
export function openFile(filePath: string, title?: string): boolean;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Escapes special regex symbols (., *, ^, $ and so on) in string in order to create a valid regex from it.
|
|
130
|
+
* @param source The original value.
|
|
131
|
+
*/
|
|
132
|
+
export function escapeRegexSymbols(source: string): string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Converts string value to number or boolean.
|
|
136
|
+
* @param value The original value.
|
|
137
|
+
*/
|
|
138
|
+
export function convertString(value: any): any;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Gets module name from path.
|
|
142
|
+
* @param path The module path.
|
|
143
|
+
*/
|
|
144
|
+
export function getModuleName(path: string): string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Sorts an array by using merge sort algorithm (which ensures stable sort since the built-in Array.sort() does not promise a stable sort).
|
|
148
|
+
* @param arr - array to be sorted
|
|
149
|
+
* @param compareFunc - function that will be used to compare two elements of the array
|
|
150
|
+
*/
|
|
151
|
+
export function mergeSort(arr: Array<any>, compareFunc: (a: any, b: any) => number): Array<any>;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Checks if array has any duplicate elements.
|
|
155
|
+
* @param arr - The array to be checked.
|
|
156
|
+
*/
|
|
157
|
+
export function hasDuplicates(arr: Array<any>): boolean;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Removes duplicate elements from array.
|
|
161
|
+
* @param arr - The array.
|
|
162
|
+
*/
|
|
163
|
+
export function eliminateDuplicates(arr: Array<any>): Array<any>;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Checks whether the application is running on real device and not on simulator/emulator.
|
|
167
|
+
*/
|
|
168
|
+
export function isRealDevice(): boolean;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Hides the soft input method, usually a soft keyboard.
|
|
172
|
+
*/
|
|
173
|
+
export function dismissSoftInput(nativeView?: any): void;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Dismiss any keyboard visible on the screen.
|
|
177
|
+
*/
|
|
178
|
+
export function dismissKeyboard(): void;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Copy value to device clipboard.
|
|
182
|
+
*/
|
|
183
|
+
export function copyToClipboard(value: string): void;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { CoreTypes } from '../../core-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Utility module related to layout.
|
|
5
|
+
*/
|
|
6
|
+
export namespace layout {
|
|
7
|
+
/**
|
|
8
|
+
* Bits that provide the actual measured size.
|
|
9
|
+
*/
|
|
10
|
+
export const MEASURED_HEIGHT_STATE_SHIFT: number;
|
|
11
|
+
export const MEASURED_SIZE_MASK: number;
|
|
12
|
+
export const MEASURED_STATE_MASK: number;
|
|
13
|
+
export const MEASURED_STATE_TOO_SMALL: number;
|
|
14
|
+
export const UNSPECIFIED: number;
|
|
15
|
+
export const EXACTLY: number;
|
|
16
|
+
export const AT_MOST: number;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Gets layout mode from a given specification as string.
|
|
20
|
+
* @param mode - The measure specification mode.
|
|
21
|
+
*/
|
|
22
|
+
export function getMode(mode: number): string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Gets measure specification mode from a given specification.
|
|
26
|
+
* @param spec - The measure specification.
|
|
27
|
+
*/
|
|
28
|
+
export function getMeasureSpecMode(spec: number): number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Gets measure specification size from a given specification.
|
|
32
|
+
* @param spec - The measure specification.
|
|
33
|
+
*/
|
|
34
|
+
export function getMeasureSpecSize(spec: number): number;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Creates measure specification size from size and mode.
|
|
38
|
+
* @param size - The size component of measure specification.
|
|
39
|
+
* @param mode - The mode component of measure specification.
|
|
40
|
+
*/
|
|
41
|
+
export function makeMeasureSpec(px: number, mode: number): number;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gets display density for the current device.
|
|
45
|
+
*/
|
|
46
|
+
export function getDisplayDensity(): number;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Convert device independent pixels to device pixels - dip to px.
|
|
50
|
+
* @param value - The pixel to convert.
|
|
51
|
+
*/
|
|
52
|
+
export function toDevicePixels(value: CoreTypes.dip): CoreTypes.px;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Convert device pixels to device independent pixels - px to dip.
|
|
56
|
+
* @param value - The pixel to convert.
|
|
57
|
+
*/
|
|
58
|
+
export function toDeviceIndependentPixels(value: CoreTypes.px): CoreTypes.dip;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Rounds value used in layout.
|
|
62
|
+
* @param px to round.
|
|
63
|
+
*/
|
|
64
|
+
export function round(px: CoreTypes.px): CoreTypes.px;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Converts device pixels to device independent pixes and measure the nativeView.
|
|
68
|
+
* Returns the desired size of the nativeView in device pixels.
|
|
69
|
+
* @param nativeView the nativeView to measure (UIView or android.view.View)
|
|
70
|
+
* @param width the available width
|
|
71
|
+
* @param widthMode width mode - UNSPECIFIED, EXACTLY or AT_MOST
|
|
72
|
+
* @param height the available hegiht
|
|
73
|
+
* @param heightMode height mode - UNSPECIFIED, EXACTLY or AT_MOST
|
|
74
|
+
*/
|
|
75
|
+
export function measureNativeView(nativeView: any /* UIView or android.view.View */, width: number, widthMode: number, height: number, heightMode: number): { width: number; height: number };
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Prints user friendly version of the measureSpec.
|
|
79
|
+
* @param measureSpec the spec to print
|
|
80
|
+
*/
|
|
81
|
+
export function measureSpecToString(measureSpec: number): string;
|
|
82
|
+
}
|
package/utils/lazy.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dispatches the passed function for execution on the main thread
|
|
3
|
+
* @param func The function to execute on the main thread.
|
|
4
|
+
*/
|
|
5
|
+
export function dispatchToMainThread(func: Function);
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @returns Boolean value indicating whether the current thread is the main thread
|
|
9
|
+
*/
|
|
10
|
+
export function isMainThread(): boolean;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Dispatches the passed function for execution on the UI thread
|
|
14
|
+
* @param func The function to execute on the UI thread.
|
|
15
|
+
*/
|
|
16
|
+
export function dispatchToUIThread(func: Function);
|