@nativescript/core 8.9.0-next-01-14-2025-12761272657 → 8.9.0-next-01-18-2025-12839190246

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.
Files changed (313) hide show
  1. package/accessibility/accessibility-service.d.ts +10 -0
  2. package/accessibility/font-scale.d.ts +9 -0
  3. package/accessibility/index.d.ts +37 -0
  4. package/animation-frame/animation-native.d.ts +4 -0
  5. package/animation-frame/index.d.ts +17 -3
  6. package/application/application.d.ts +194 -0
  7. package/application/index.d.ts +2 -0
  8. package/application-settings/index.d.ts +70 -0
  9. package/cli-hooks/before-checkForChanges.js +60 -0
  10. package/cli-hooks/postinstall.js +2 -0
  11. package/cli-hooks/preuninstall.js +2 -0
  12. package/color/index.d.ts +206 -0
  13. package/connectivity/index.d.ts +52 -0
  14. package/css/css-tree-parser.js +21 -17
  15. package/css/lib/parse/index.js +602 -0
  16. package/css/package.json +36 -0
  17. package/css/reworkcss.d.ts +47 -0
  18. package/css/reworkcss.js +1 -0
  19. package/css-value/package.json +23 -0
  20. package/css-value/reworkcss-value.d.ts +8 -0
  21. package/css-value/reworkcss-value.js +113 -0
  22. package/debugger/css-agent.d.ts +59 -0
  23. package/debugger/devtools-elements.d.ts +23 -5
  24. package/debugger/dom-node.d.ts +23 -20
  25. package/fetch/index.js +539 -0
  26. package/file-system/file-system-access.d.ts +441 -0
  27. package/file-system/index.d.ts +370 -95
  28. package/fps-meter/fps-native.d.ts +24 -0
  29. package/fps-meter/index.d.ts +24 -7
  30. package/global-types.d.ts +393 -0
  31. package/globals/index.d.ts +4 -19
  32. package/http/http-request/index.d.ts +3 -0
  33. package/http/index.d.ts +149 -73
  34. package/image-asset/index.d.ts +17 -0
  35. package/image-source/index.d.ts +350 -0
  36. package/index.d.ts +24 -7
  37. package/js-libs/easysax/easysax.d.ts +8 -0
  38. package/js-libs/easysax/easysax.js +782 -0
  39. package/js-libs/easysax/package.json +35 -0
  40. package/matrix/index.d.ts +32 -5
  41. package/module-name-resolver/index.d.ts +21 -13
  42. package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
  43. package/package.json +1 -1
  44. package/platform/device/index.d.ts +70 -0
  45. package/platform/index.d.ts +26 -0
  46. package/platform/screen/index.d.ts +48 -0
  47. package/platforms/android/native-api-usage.json +32 -0
  48. package/platforms/android/res/values/ids.xml +4 -0
  49. package/platforms/android/widgets-release.aar +0 -0
  50. package/platforms/android/winter_tc-release.aar +0 -0
  51. package/platforms/ios/NSCWinterTC.xcframework/Info.plist +102 -0
  52. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  53. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  54. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  55. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Info.plist +0 -0
  56. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  57. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/NSCWinterTC +0 -0
  58. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  59. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  60. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  61. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  62. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  63. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  64. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  65. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/NSCWinterTC +0 -0
  66. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Resources/Info.plist +52 -0
  67. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCCrypto.h +79 -0
  68. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCWinterTC.h +20 -0
  69. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSString+WinterTC.h +21 -0
  70. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Modules/module.modulemap +6 -0
  71. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/NSCWinterTC +0 -0
  72. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Resources/Info.plist +52 -0
  73. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC +0 -0
  74. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  75. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  76. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  77. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  78. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  79. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  80. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  81. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Info.plist +0 -0
  82. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  83. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC +0 -0
  84. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/_CodeSignature/CodeResources +146 -0
  85. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  86. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  87. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  88. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  89. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  90. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  91. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  92. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Info.plist +0 -0
  93. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  94. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/NSCWinterTC +0 -0
  95. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  96. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  97. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  98. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  99. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  100. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  101. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Info.plist +0 -0
  102. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  103. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC +0 -0
  104. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/_CodeSignature/CodeResources +146 -0
  105. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  106. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  107. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  108. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  109. package/platforms/ios/TNSWidgets.xcframework/Info.plist +102 -0
  110. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  111. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  112. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  113. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  114. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  115. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  116. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  117. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  118. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  119. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  120. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
  121. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  122. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  123. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  124. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  125. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  126. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  127. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  128. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  129. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  130. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  131. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  132. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  133. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  134. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  135. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  136. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +6 -0
  137. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  138. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  139. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +52 -0
  140. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  141. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +60 -0
  142. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +24 -0
  143. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
  144. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +25 -0
  145. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +16 -0
  146. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +29 -0
  147. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +25 -0
  148. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +26 -0
  149. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +17 -0
  150. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +6 -0
  151. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +17 -0
  152. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +18 -0
  153. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +52 -0
  154. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  155. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  156. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  157. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  158. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  159. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
  160. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  161. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  162. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  163. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  164. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  165. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  166. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  167. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  168. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  169. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  170. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
  171. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  172. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  173. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  174. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
  175. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  176. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  177. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  178. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
  179. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  180. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  181. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  182. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  183. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  184. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  185. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  186. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  187. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  188. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
  189. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
  190. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  191. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  192. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  193. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  194. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  195. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  196. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  197. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  198. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  199. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  200. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  201. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  202. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  203. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  204. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  205. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  206. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
  207. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  208. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  209. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  210. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
  211. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  212. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  213. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  214. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
  215. package/platforms/ios/native-api-usage.json +41 -0
  216. package/platforms/ios/src/NativeScriptEmbedder.h +31 -0
  217. package/platforms/ios/src/NativeScriptEmbedder.m +43 -0
  218. package/platforms/ios/src/NativeScriptMainWindow.swift +196 -0
  219. package/platforms/ios/src/NativeScriptUtils.h +16 -0
  220. package/platforms/ios/src/NativeScriptUtils.m +137 -0
  221. package/platforms/ios/src/UIView+NativeScript.h +15 -0
  222. package/platforms/ios/src/UIView+NativeScript.m +148 -0
  223. package/platforms/ios/src/module.modulemap +14 -0
  224. package/platforms/ios/typings/objc!MaterialComponents.d.ts +808 -0
  225. package/platforms/ios/typings/objc!NativeScriptUtils.d.ts +18 -0
  226. package/profiling/index.d.ts +153 -26
  227. package/references.d.ts +10 -0
  228. package/text/formatted-string.d.ts +1 -1
  229. package/text/index.d.ts +36 -0
  230. package/text/span.d.ts +1 -1
  231. package/timer/index.d.ts +27 -0
  232. package/trace/index.d.ts +131 -105
  233. package/ui/action-bar/index.d.ts +304 -0
  234. package/ui/activity-indicator/index.d.ts +25 -0
  235. package/ui/animation/index.d.ts +139 -0
  236. package/ui/animation/keyframe-animation.d.ts +118 -67
  237. package/ui/builder/binding-builder.d.ts +15 -12
  238. package/ui/builder/index.d.ts +69 -27
  239. package/ui/button/index.d.ts +50 -0
  240. package/ui/content-view/index.d.ts +11 -21
  241. package/ui/core/control-state-change/index.d.ts +17 -0
  242. package/ui/core/view/index.d.ts +1216 -0
  243. package/ui/core/view/view-helper/index.d.ts +76 -0
  244. package/ui/core/weak-event-listener/index.d.ts +18 -2
  245. package/ui/date-picker/index.d.ts +95 -0
  246. package/ui/dialogs/index.d.ts +311 -0
  247. package/ui/editable-text-base/index.d.ts +142 -0
  248. package/ui/embedding/index.d.ts +10 -0
  249. package/ui/frame/fragment.d.ts +5 -0
  250. package/ui/frame/fragment.transitions.d.ts +43 -0
  251. package/ui/frame/index.d.ts +590 -0
  252. package/ui/frame/transition-definitions.android.d.ts +54 -0
  253. package/ui/gestures/index.d.ts +59 -0
  254. package/ui/html-view/index.d.ts +41 -0
  255. package/ui/image/index.d.ts +119 -0
  256. package/ui/image/symbol-effects.d.ts +13 -0
  257. package/ui/image-cache/index.d.ts +147 -0
  258. package/ui/label/index.d.ts +25 -0
  259. package/ui/layouts/absolute-layout/index.d.ts +42 -0
  260. package/ui/layouts/dock-layout/index.d.ts +39 -0
  261. package/ui/layouts/flexbox-layout/index.d.ts +98 -0
  262. package/ui/layouts/grid-layout/index.d.ts +201 -0
  263. package/ui/layouts/index.d.ts +1 -2
  264. package/ui/layouts/layout-base.d.ts +119 -0
  265. package/ui/layouts/root-layout/index.d.ts +48 -0
  266. package/ui/layouts/stack-layout/index.d.ts +22 -0
  267. package/ui/layouts/wrap-layout/index.d.ts +51 -0
  268. package/ui/list-picker/index.d.ts +43 -0
  269. package/ui/list-view/index.d.ts +232 -0
  270. package/ui/page/index.d.ts +241 -0
  271. package/ui/placeholder/index.d.ts +46 -8
  272. package/ui/progress/index.d.ts +50 -0
  273. package/ui/scroll-view/index.d.ts +99 -0
  274. package/ui/search-bar/index.d.ts +103 -0
  275. package/ui/segmented-bar/index.d.ts +122 -0
  276. package/ui/slider/index.d.ts +99 -0
  277. package/ui/styling/background.d.ts +95 -0
  278. package/ui/styling/converters.d.ts +2 -2
  279. package/ui/styling/font.d.ts +62 -0
  280. package/ui/styling/style-properties.d.ts +101 -81
  281. package/ui/styling/style-scope.d.ts +48 -79
  282. package/ui/switch/index.d.ts +46 -0
  283. package/ui/tab-view/index.d.ts +213 -0
  284. package/ui/text-base/formatted-string.d.ts +97 -36
  285. package/ui/text-base/index.d.ts +208 -0
  286. package/ui/text-base/span.d.ts +111 -36
  287. package/ui/text-field/index.d.ts +54 -0
  288. package/ui/text-view/index.d.ts +35 -0
  289. package/ui/time-picker/index.d.ts +107 -0
  290. package/ui/transition/fade-transition.d.ts +3 -0
  291. package/ui/transition/flip-transition.d.ts +5 -0
  292. package/ui/transition/index.d.ts +59 -0
  293. package/ui/transition/modal-transition.d.ts +2 -0
  294. package/ui/transition/page-transition.d.ts +4 -0
  295. package/ui/transition/shared-transition-helper.d.ts +14 -0
  296. package/ui/transition/slide-transition.d.ts +5 -0
  297. package/ui/utils.d.ts +44 -0
  298. package/ui/web-view/index.d.ts +142 -0
  299. package/utils/constants.d.ts +1 -0
  300. package/utils/debug.d.ts +61 -17
  301. package/utils/index.d.ts +183 -0
  302. package/utils/layout-helper/index.d.ts +82 -0
  303. package/utils/lazy.d.ts +5 -0
  304. package/utils/macrotask-scheduler.d.ts +5 -1
  305. package/utils/mainthread-helper.d.ts +16 -0
  306. package/utils/native-helper.d.ts +280 -0
  307. package/utils/types.d.ts +115 -23
  308. package/utils/typescript-utils.d.ts +6 -0
  309. package/wgc/atob.js +1 -1
  310. package/wgc/btoa.js +1 -1
  311. package/wgc/crypto/SubtleCrypto.js +8 -8
  312. package/wgc/crypto/index.js +2 -2
  313. package/xml/index.d.ts +105 -44
@@ -0,0 +1,5 @@
1
+ import { Transition } from '.';
2
+
3
+ export class FlipTransition extends Transition {
4
+ constructor(direction: string, duration: number, curve: any);
5
+ }
@@ -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,2 @@
1
+ import { Transition } from '.';
2
+ export declare class ModalTransition extends Transition {}
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ import { Transition } from '.';
2
+
3
+ export class SlideTransition extends Transition {
4
+ constructor(direction: string, duration?: number, nativeCurve?: any);
5
+ }
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
- export declare const debug = true;
2
- export declare class Source {
3
- private _uri;
4
- private _line;
5
- private _column;
6
- private static _source;
7
- constructor(uri: string, line: number, column: number);
8
- get uri(): string;
9
- get line(): number;
10
- get column(): number;
11
- toString(): string;
12
- static get(object: any): Source;
13
- static set(object: any, src: Source): void;
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
- export declare class ScopeError extends Error {
16
- constructor(inner: Error, message?: string);
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
- export declare class SourceError extends ScopeError {
19
- constructor(child: Error, source: Source, message?: string);
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
  }
@@ -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://&#xf1e0".
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
@@ -1 +1,6 @@
1
+ /**
2
+ * A function that evaluates the action only once.
3
+ * @param action The action to be evaluated to get the result.
4
+ * Returns the evaluated result.
5
+ */
1
6
  export default function lazy<T>(action: () => T): () => T;
@@ -1 +1,5 @@
1
- export declare function queueMacrotask(task: () => void): void;
1
+ /**
2
+ * Queues the passed function to be ran in a macroTask
3
+ * @param task the function to execute as a macroTask
4
+ */
5
+ export function queueMacrotask(task: () => void): void;
@@ -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);