@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,10 @@
1
+ import { Observable } from '../data/observable';
2
+
3
+ export class AccessibilityServiceEnabledObservable extends Observable {
4
+ public readonly accessibilityServiceEnabled?: boolean;
5
+ }
6
+
7
+ /**
8
+ * Get the Android platform's AccessibilityManager.
9
+ */
10
+ export function getAndroidAccessibilityManager(): /* android.view.accessibility.AccessibilityManager */ any | null;
@@ -0,0 +1,9 @@
1
+ export const VALID_FONT_SCALES: number[];
2
+ export function getCurrentFontScale(): number;
3
+ export enum FontScaleCategory {
4
+ ExtraSmall = 'extra-small',
5
+ Medium = 'medium',
6
+ ExtraLarge = 'extra-large',
7
+ }
8
+ export function getFontScaleCategory(): FontScaleCategory;
9
+ export function initAccessibilityFontScale(): void;
@@ -0,0 +1,37 @@
1
+ import type { Page } from '../ui/page';
2
+ import type { View } from '../ui/core/view';
3
+ import type { AndroidAccessibilityEvent } from './accessibility-types';
4
+
5
+ export * from './accessibility-common';
6
+ export * from './accessibility-types';
7
+ export * from './font-scale';
8
+
9
+ /**
10
+ * Initialize accessibility for View. This should be called on loaded-event.
11
+ */
12
+ export function setupAccessibleView(view: View): void;
13
+
14
+ /**
15
+ * Update accessibility properties on nativeView
16
+ */
17
+ export function updateAccessibilityProperties(view: View): void;
18
+
19
+ /**
20
+ * Android: helper function for triggering accessibility events
21
+ */
22
+ export function sendAccessibilityEvent(View: View, eventName: AndroidAccessibilityEvent, text?: string): void;
23
+
24
+ /**
25
+ * Android: Update the content description for views
26
+ */
27
+ export function updateContentDescription(View: View, forceUpdate?: boolean): string | null;
28
+
29
+ /**
30
+ * Is Android TalkBack or iOS VoiceOver enabled?
31
+ */
32
+ export function isAccessibilityServiceEnabled(): boolean;
33
+
34
+ /**
35
+ * Find the last view focused on a page.
36
+ */
37
+ export function getLastFocusedViewOnPage(page: Page): View | null;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Gets the time in millisseconds in the same base as frames
3
+ */
4
+ export function getTimeInFrameBase(): number;
@@ -1,5 +1,19 @@
1
+ /**
2
+ * Callback called on frame rendered
3
+ * @argument time Time of the current frame in milliseconds
4
+ */
1
5
  export interface FrameRequestCallback {
2
- (time: number): void;
6
+ (time: number): void;
3
7
  }
4
- export declare function requestAnimationFrame(cb: FrameRequestCallback): number;
5
- export declare function cancelAnimationFrame(id: number): void;
8
+
9
+ /**
10
+ * Requests an animation frame and returns the timer ID
11
+ * @param cb Callback to be called on frame
12
+ */
13
+ export function requestAnimationFrame(cb: FrameRequestCallback): number;
14
+
15
+ /**
16
+ * Cancels a previously scheduled animation frame request
17
+ * @param id timer ID to cancel
18
+ */
19
+ export function cancelAnimationFrame(id: number): void;
@@ -0,0 +1,194 @@
1
+ import { ApplicationCommon } from './application-common';
2
+
3
+ export * from './application-common';
4
+ export * from './application-interfaces';
5
+
6
+ export const Application: ApplicationCommon;
7
+
8
+ export class AndroidApplication extends ApplicationCommon {
9
+ /**
10
+ * @deprecated Use `Application.android.activityCreatedEvent` instead.
11
+ */
12
+ static readonly activityCreatedEvent = 'activityCreated';
13
+ /**
14
+ * @deprecated Use `Application.android.activityDestroyedEvent` instead.
15
+ */
16
+ static readonly activityDestroyedEvent = 'activityDestroyed';
17
+ /**
18
+ * @deprecated Use `Application.android.activityStartedEvent` instead.
19
+ */
20
+ static readonly activityStartedEvent = 'activityStarted';
21
+ /**
22
+ * @deprecated Use `Application.android.activityPausedEvent` instead.
23
+ */
24
+ static readonly activityPausedEvent = 'activityPaused';
25
+ /**
26
+ * @deprecated Use `Application.android.activityResumedEvent` instead.
27
+ */
28
+ static readonly activityResumedEvent = 'activityResumed';
29
+ /**
30
+ * @deprecated Use `Application.android.activityStoppedEvent` instead.
31
+ */
32
+ static readonly activityStoppedEvent = 'activityStopped';
33
+ /**
34
+ * @deprecated Use `Application.android.saveActivityStateEvent` instead.
35
+ */
36
+ static readonly saveActivityStateEvent = 'saveActivityState';
37
+ /**
38
+ * @deprecated Use `Application.android.activityResultEvent` instead.
39
+ */
40
+ static readonly activityResultEvent = 'activityResult';
41
+ /**
42
+ * @deprecated Use `Application.android.activityBackPressedEvent` instead.
43
+ */
44
+ static readonly activityBackPressedEvent = 'activityBackPressed';
45
+ /**
46
+ * @deprecated Use `Application.android.activityNewIntentEvent` instead.
47
+ */
48
+ static readonly activityNewIntentEvent = 'activityNewIntent';
49
+ /**
50
+ * @deprecated Use `Application.android.activityRequestPermissionsEvent` instead.
51
+ */
52
+ static readonly activityRequestPermissionsEvent = 'activityRequestPermissions';
53
+
54
+ readonly activityCreatedEvent = AndroidApplication.activityCreatedEvent;
55
+ readonly activityDestroyedEvent = AndroidApplication.activityDestroyedEvent;
56
+ readonly activityStartedEvent = AndroidApplication.activityStartedEvent;
57
+ readonly activityPausedEvent = AndroidApplication.activityPausedEvent;
58
+ readonly activityResumedEvent = AndroidApplication.activityResumedEvent;
59
+ readonly activityStoppedEvent = AndroidApplication.activityStoppedEvent;
60
+ readonly saveActivityStateEvent = AndroidApplication.saveActivityStateEvent;
61
+ readonly activityResultEvent = AndroidApplication.activityResultEvent;
62
+ readonly activityBackPressedEvent = AndroidApplication.activityBackPressedEvent;
63
+ readonly activityNewIntentEvent = AndroidApplication.activityNewIntentEvent;
64
+ readonly activityRequestPermissionsEvent = AndroidApplication.activityRequestPermissionsEvent;
65
+
66
+ getNativeApplication(): android.app.Application;
67
+
68
+ /**
69
+ * @internal
70
+ */
71
+ init(nativeApp: android.app.Application): void;
72
+
73
+ /**
74
+ * The [android Application](http://developer.android.com/reference/android/app/Application.html) object instance provided to the init of the module.
75
+ */
76
+ get nativeApp(): android.app.Application;
77
+
78
+ /**
79
+ * @deprecated Use `Utils.android.getPackageName()` instead.
80
+ */
81
+ get packageName(): string;
82
+
83
+ /**
84
+ * The main (start) Activity for the application.
85
+ */
86
+ get startActivity(): androidx.appcompat.app.AppCompatActivity;
87
+
88
+ /**
89
+ * The currently active (loaded) [android Activity](http://developer.android.com/reference/android/app/Activity.html).
90
+ *
91
+ * This property is automatically updated upon Activity events.
92
+ */
93
+ get foregroundActivity(): androidx.appcompat.app.AppCompatActivity;
94
+
95
+ /**
96
+ * @deprecated Use `Utils.android.getApplicationContext()` instead.
97
+ */
98
+ get context(): android.content.Context;
99
+
100
+ /**
101
+ * @deprecated Use `Application.inBackground` instead.
102
+ */
103
+ get backgrounded(): boolean;
104
+
105
+ /**
106
+ * @deprecated Use `Application.suspended` instead.
107
+ */
108
+ get paused(): boolean;
109
+
110
+ /**
111
+ * Register a BroadcastReceiver to be run in the main activity thread. The receiver will be called with any broadcast Intent that matches filter, in the main application thread.
112
+ * For more information, please visit 'http://developer.android.com/reference/android/content/Context.html#registerReceiver%28android.content.BroadcastReceiver,%20android.content.IntentFilter%29'
113
+ * @param intentFilter A string containing the intent filter.
114
+ * @param onReceiveCallback A callback function that will be called each time the receiver receives a broadcast.
115
+ */
116
+ registerBroadcastReceiver(intentFilter: string, onReceiveCallback: (context: android.content.Context, intent: android.content.Intent) => void): void;
117
+
118
+ /**
119
+ * Unregister a previously registered BroadcastReceiver.
120
+ * For more information, please visit 'http://developer.android.com/reference/android/content/Context.html#unregisterReceiver(android.content.BroadcastReceiver)'
121
+ * @param intentFilter A string containing the intent filter with which the receiver was originally registered.
122
+ */
123
+ unregisterBroadcastReceiver(intentFilter: string): void;
124
+
125
+ /**
126
+ * Get a registered BroadcastReceiver, then you can get the result code of BroadcastReceiver in onReceiveCallback method.
127
+ * @param intentFilter A string containing the intent filter.
128
+ */
129
+ getRegisteredBroadcastReceiver(intentFilter: string): android.content.BroadcastReceiver;
130
+
131
+ on(event: 'activityCreated', callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void;
132
+ on(event: 'activityDestroyed', callback: (args: AndroidActivityEventData) => void, thisArg?: any): void;
133
+ on(event: 'activityStarted', callback: (args: AndroidActivityEventData) => void, thisArg?: any): void;
134
+ on(event: 'activityPaused', callback: (args: AndroidActivityEventData) => void, thisArg?: any): void;
135
+ on(event: 'activityResumed', callback: (args: AndroidActivityEventData) => void, thisArg?: any): void;
136
+ on(event: 'activityStopped', callback: (args: AndroidActivityEventData) => void, thisArg?: any): void;
137
+ on(event: 'saveActivityState', callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void;
138
+ on(event: 'activityResult', callback: (args: AndroidActivityResultEventData) => void, thisArg?: any): void;
139
+ on(event: 'activityBackPressed', callback: (args: AndroidActivityBackPressedEventData) => void, thisArg?: any): void;
140
+ on(event: 'activityNewIntent', callback: (args: AndroidActivityNewIntentEventData) => void, thisArg?: any): void;
141
+ on(event: 'activityRequestPermissions', callback: (args: AndroidActivityRequestPermissionsEventData) => void, thisArg?: any): void;
142
+ }
143
+
144
+ export class iOSApplication extends ApplicationCommon {
145
+ /**
146
+ * The root view controller for the application.
147
+ */
148
+ get rootController(): UIViewController;
149
+
150
+ /**
151
+ * The [UIApplication](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html).
152
+ */
153
+ get nativeApp(): UIApplication;
154
+
155
+ /**
156
+ * The key window.
157
+ */
158
+ get window(): UIWindow;
159
+
160
+ /**
161
+ * The [UIApplicationDelegate](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/index.html) class.
162
+ */
163
+ get delegate(): UIApplicationDelegate & { prototype: UIApplicationDelegate };
164
+
165
+ /**
166
+ * Sets a custom [UIApplicationDelegate](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/index.html) class.
167
+ */
168
+ set delegate(value: UIApplicationDelegate | unknown);
169
+
170
+ /**
171
+ * Adds a delegate handler for the specified delegate method name. This method does not replace an existing handler,
172
+ * but rather adds the new handler to the existing chain of handlers.
173
+ * @param methodName The name of the delegate method to add a handler for.
174
+ * @param handler A function that will be called when the specified delegate method is called.
175
+ */
176
+ addDelegateHandler<T extends keyof UIApplicationDelegate>(methodName: T, handler: (typeof UIApplicationDelegate.prototype)[T]): void;
177
+
178
+ /**
179
+ * Adds an observer to the default notification center for the specified notification.
180
+ * For more information, please visit 'https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationCenter_Class/#//apple_ref/occ/instm/NSNotificationCenter/addObserver:selector:name:object:'
181
+ * @param notificationName A string containing the name of the notification.
182
+ * @param onReceiveCallback A callback function that will be called each time the observer receives a notification.
183
+ */
184
+ addNotificationObserver(notificationName: string, onReceiveCallback: (notification: NSNotification) => void): NotificationObserver;
185
+
186
+ /**
187
+ * Removes the observer for the specified notification from the default notification center.
188
+ * For more information, please visit 'https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationCenter_Class/#//apple_ref/occ/instm/NSNotificationCenter/addObserver:selector:name:object:'
189
+ * @param observer The observer that was returned from the addNotificationObserver method.
190
+ * @param notificationName A string containing the name of the notification.
191
+ * @param onReceiveCallback A callback function that will be called each time the observer receives a notification.
192
+ */
193
+ removeNotificationObserver(observer: any, notificationName: string);
194
+ }
@@ -0,0 +1,2 @@
1
+ export * from './application';
2
+ export * from './application-shims';
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Checks whether such a key exists.
3
+ * @param key The key to check for.
4
+ */
5
+ export function hasKey(key: string): boolean;
6
+
7
+ /**
8
+ * Gets a value (if existing) for a key as a Boolean Object. A default value can be provided in case there is no existing value.
9
+ * @param key The key to check for.
10
+ * @param defaultValue An optional value to be returned in case there is no existing value.
11
+ */
12
+ export function getBoolean(key: string, defaultValue?: boolean): boolean;
13
+
14
+ /**
15
+ * Gets a value (if existing) for a key as a String Object. A default value can be provided in case there is no existing value.
16
+ * @param key The key to check for.
17
+ * @param defaultValue An optional value to be returned in case there is no existing value.
18
+ */
19
+ export function getString(key: string, defaultValue?: string): string;
20
+
21
+ /**
22
+ * Gets a value (if existing) for a key as a Number Object. A default value can be provided in case there is no existing value.
23
+ * @param key The key to check for.
24
+ * @param defaultValue An optional value to be returned in case there is no existing value.
25
+ */
26
+ export function getNumber(key: string, defaultValue?: number): number;
27
+
28
+ /**
29
+ * Sets a Boolean Object for a key.
30
+ * @param key The key.
31
+ * @param value The value.
32
+ */
33
+ export function setBoolean(key: string, value: boolean): void;
34
+
35
+ /**
36
+ * Sets a String Object for a key.
37
+ * @param key The key.
38
+ * @param value The value.
39
+ */
40
+ export function setString(key: string, value: string): void;
41
+
42
+ /**
43
+ * Sets a Number Object for a key.
44
+ * @param key The key.
45
+ * @param value The value.
46
+ */
47
+ export function setNumber(key: string, value: number): void;
48
+
49
+ /**
50
+ * Removes a value (if existing) for a key.
51
+ * @param key The key to check for.
52
+ */
53
+ export function remove(key: string): void;
54
+
55
+ /**
56
+ * Removes all values.
57
+ */
58
+ export function clear(): void;
59
+
60
+ /**
61
+ * Flush all changes to disk synchronously.
62
+ * @return boolean flag indicating if changes were saved successfully to disk.
63
+ */
64
+ export function flush(): boolean;
65
+
66
+ /**
67
+ * Get all stored keys
68
+ * @return Array containing all stored keys
69
+ */
70
+ export function getAllKeys(): Array<string>;
@@ -0,0 +1,60 @@
1
+ const semver = require("semver");
2
+
3
+ const webpackPackageName = "@nativescript/webpack";
4
+
5
+ module.exports = function ($staticConfig, hookArgs) {
6
+ const cliVersion = semver.parse($staticConfig.version);
7
+ const platfrom = hookArgs.prepareData.platform;
8
+ const projectData = hookArgs.projectData;
9
+
10
+ // Required CLI version for building IOS: 6.2.0
11
+ if (platfrom.toLowerCase() === "ios" &&
12
+ !satisfiesRequriredVersion(cliVersion, 6, 2)) {
13
+ throw new Error(`Building @nativescript/core for iOS requires NativeScript CLI with version at least 6.2.0. Please upgrade your NativeScript CLI version (npm i -g nativescript).`);
14
+ }
15
+
16
+ // Required webpack version for angular projects: 1.3.0
17
+ if (projectData.projectType === "Angular") {
18
+ const webpackMinVer = getMinWebpackVersion(projectData);
19
+
20
+ if (webpackMinVer && !satisfiesRequriredVersion(webpackMinVer, 1, 3)) {
21
+ throw new Error(`Building @nativescript/core for Angular requires ${webpackPackageName} with version at least 1.3.0. Please upgrade: npm i ${webpackPackageName} --save-dev.`);
22
+ }
23
+ }
24
+ };
25
+
26
+ /**
27
+ * Checks if semver object satisifies a major/minor requirement. Pre-release versions are OK too!
28
+ */
29
+ function satisfiesRequriredVersion(actualVersion, requiredMajor, requiredMinor) {
30
+ // Return true for null version to handle tags (ex. "next", "rc")
31
+ if (!actualVersion) {
32
+ return true;
33
+ }
34
+
35
+ if (actualVersion.major < requiredMajor) {
36
+ return false;
37
+ }
38
+
39
+ if (actualVersion.major === requiredMajor && actualVersion.minor < requiredMinor) {
40
+ return false;
41
+ }
42
+
43
+ return true;
44
+ }
45
+
46
+ function getMinWebpackVersion(projectData) {
47
+ const devDependencies = projectData.devDependencies || {};
48
+ const dependencies = projectData.dependencies || {};
49
+ const webpackVer = dependencies[webpackPackageName] || devDependencies[webpackPackageName];
50
+
51
+ let webpackMinVer = null;
52
+
53
+ if (semver.valid(webpackVer)) {
54
+ webpackMinVer = semver.parse(webpackVer);
55
+ } else if (semver.validRange(webpackVer)) {
56
+ webpackMinVer = semver.minVersion(webpackVer);
57
+ }
58
+
59
+ return webpackMinVer;
60
+ }
@@ -0,0 +1,2 @@
1
+ const path = require('path');
2
+ require('@nativescript/hook')(path.join(__dirname, "..")).postinstall();
@@ -0,0 +1,2 @@
1
+ const path = require('path');
2
+ require('@nativescript/hook')(path.join(__dirname, "..")).preuninstall();
@@ -0,0 +1,206 @@
1
+ /**
2
+ * Represents a color object. Stores all color components (alpha (opacity), red, green, blue) in a [0..255] range.
3
+ */
4
+ export declare class Color {
5
+ constructor(knownColor: string);
6
+ constructor(hex: string);
7
+ constructor(argb: number);
8
+ constructor(alpha: number, red: number, green: number, blue: number, type?: 'rgb' | 'hsl' | 'hsv');
9
+
10
+ /**
11
+ * Gets the Alpha component (in the [0, 255] range) of this color. This is a read-only property.
12
+ */
13
+ public a: number;
14
+
15
+ /**
16
+ * Gets the Red component (in the [0, 255] range) of this color. This is a read-only property.
17
+ */
18
+ public r: number;
19
+
20
+ /**
21
+ * Gets the Green component (in the [0, 255] range) of this color. This is a read-only property.
22
+ */
23
+ public g: number;
24
+
25
+ /**
26
+ * Gets the Blue component (in the [0, 255] range) of this color. This is a read-only property.
27
+ */
28
+ public b: number;
29
+
30
+ /**
31
+ * Gets the Hexadecimal string representation of this color. This is a read-only property.
32
+ */
33
+ public hex: string;
34
+
35
+ /**
36
+ * Gets the Argb Number representation of this color where each 8 bits represent a single color component. This is a read-only property.
37
+ */
38
+ public argb: number;
39
+
40
+ /**
41
+ * Gets the known name of this instance. Defined only if it has been constructed from a known color name - e.g. "red". This is a read-only property.
42
+ */
43
+ public name: string;
44
+
45
+ /**
46
+ * Gets the android-specific integer value representation. Same as the Argb one. This is a read-only property.
47
+ */
48
+ android: number;
49
+
50
+ /**
51
+ * Gets the iOS-specific UIColor value representation. This is a read-only property.
52
+ */
53
+ ios: any /* UIColor */;
54
+
55
+ /**
56
+ * Specifies whether this Color is equal to the Color parameter.
57
+ * @param value The Color to test.
58
+ */
59
+ public equals(value: Color): boolean;
60
+
61
+ /**
62
+ * Compares two Color instances.
63
+ * @param value1 A Color to compare.
64
+ * @param value2 A Color to compare.
65
+ */
66
+ public static equals(value1: Color, value2: Color): boolean;
67
+
68
+ /**
69
+ * Validates if a value can be converted to color.
70
+ * @param value Input string.
71
+ */
72
+ public static isValid(value: any): boolean;
73
+
74
+ /**
75
+ * Creates color from iOS-specific UIColor value representation.
76
+ */
77
+ public static fromIosColor(value: any /* UIColor */): Color;
78
+
79
+ /**
80
+ * return true if brightenss < 128
81
+ *
82
+ */
83
+ public isDark(): boolean;
84
+
85
+ /**
86
+ * return true if brightenss >= 128
87
+ *
88
+ */
89
+ public isLight(): boolean;
90
+
91
+ /**
92
+ * return the [brightness](http://www.w3.org/TR/AERT#color-contrast)
93
+ *
94
+ */
95
+ public getBrightness(): number;
96
+ /**
97
+ * return the [luminance](http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef)
98
+ *
99
+ */
100
+ public getLuminance(): number;
101
+
102
+ /**
103
+ * Return this color (as a new Color instance) with the provided alpha
104
+ *
105
+ * @param alpha (between 0 and 255)
106
+ */
107
+ public setAlpha(a: number): Color;
108
+ /**
109
+ * return the hsl representation of the color
110
+ *
111
+ */
112
+ public toHsl(): { h: number; s: number; l: number; a: number };
113
+
114
+ /**
115
+ * return the [CSS hsv](https://www.w3schools.com/Css/css_colors_hsl.asp) representation of the color
116
+ *
117
+ */
118
+ public toHslString(): string;
119
+
120
+ /**
121
+ * return the hsv representation of the color
122
+ *
123
+ */
124
+ public toHsv(): { h: number; s: number; v: number; a: number };
125
+
126
+ /**
127
+ * return the [CSS hsv](https://www.w3schools.com/Css/css_colors_rgb.asp) representation of the color
128
+ *
129
+ */
130
+ public toHsvString(): string;
131
+
132
+ /**
133
+ * return the [CSS rgb](https://www.w3schools.com/Css/css_colors_rgb.asp) representation of the color
134
+ *
135
+ */
136
+ public toRgbString(): string;
137
+
138
+ /**
139
+ * Desaturate the color a given amount, from 0 to 100. Providing 100 will is the same as calling greyscale.
140
+ *
141
+ * @param amount (between 0 and 100)
142
+ */
143
+ public desaturate(amount: number): Color;
144
+
145
+ /**
146
+ * Saturate the color a given amount, from 0 to 100.
147
+ *
148
+ * @param amount (between 0 and 100)
149
+ */
150
+ public saturate(amount: number): Color;
151
+
152
+ /**
153
+ * Completely desaturates a color into greyscale. Same as calling desaturate(100).
154
+ *
155
+ * @returns
156
+ */
157
+ public greyscale(): Color;
158
+
159
+ /**
160
+ * Lighten the color a given amount, from 0 to 100. Providing 100 will always return white.
161
+ *
162
+ * @param amount (between 0 and 100)
163
+ * @returns olor : Color
164
+ */
165
+ public lighten(amount: number): Color;
166
+
167
+ /**
168
+ * Brighten the color a given amount, from 0 to 100.
169
+ *
170
+ * @param amount (between 0 and 100)
171
+ */
172
+ public brighten(amount: number): Color;
173
+
174
+ /**
175
+ * Darken the color a given amount, from 0 to 100. Providing 100 will always return black.
176
+ *
177
+ * @param amount (between 0 and 100)
178
+ */
179
+ public darken(amount: number): Color;
180
+
181
+ /**
182
+ * Spin the hue a given amount, from -360 to 360. Calling with 0, 360, or -360 will do nothing (since it sets the hue back to what it was before).
183
+ *
184
+ * @param amount (between 0 and 100)
185
+ */
186
+ public spin(amount: number): Color;
187
+
188
+ /**
189
+ * returns the color complement
190
+ *
191
+ */
192
+ public complement(): Color;
193
+
194
+ /**
195
+ * returns the color complement
196
+ *
197
+ */
198
+ public static mix(color1: Color, color2: Color, amount: number): Color;
199
+
200
+ /**
201
+ * returns a new Color from HSL
202
+ *
203
+ */
204
+ public static fromHSL(a, h, s, l): Color;
205
+ public static fromHSV(a, h, s, l): Color;
206
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Gets the type of connection.
3
+ * Returns a value from the connectivity.connectionType enumeration.
4
+ * To use this method on Android you need to have the android.permission.ACCESS_NETWORK_STATE permission added to the AndroidManifest.xml file.
5
+ */
6
+ export function getConnectionType(): number;
7
+
8
+ /**
9
+ * Defines the different connection types.
10
+ */
11
+ export enum connectionType {
12
+ /**
13
+ * Denotes no connection.
14
+ */
15
+ none = 0,
16
+
17
+ /**
18
+ * Denotes a WiFi connection.
19
+ */
20
+ wifi = 1,
21
+
22
+ /**
23
+ * Denotes a mobile connection, i.e. cellular network or WAN.
24
+ */
25
+ mobile = 2,
26
+
27
+ /**
28
+ * Denotes an ethernet connection
29
+ */
30
+ ethernet = 3,
31
+
32
+ /**
33
+ * Denotes a bluetooth connection
34
+ */
35
+ bluetooth = 4,
36
+
37
+ /**
38
+ * Denotes a vpn connection
39
+ */
40
+ vpn = 5,
41
+ }
42
+
43
+ /**
44
+ * Starts monitoring the connection type.
45
+ * @param connectionTypeChangedCallback A function that will be called when the connection type changes.
46
+ */
47
+ export function startMonitoring(connectionTypeChangedCallback: (newConnectionType: number) => void): void;
48
+
49
+ /**
50
+ * Stops monitoring the connection type.
51
+ */
52
+ export function stopMonitoring(): void;