@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,280 @@
1
+ /**
2
+ * Data serialization from JS > Native
3
+ * @param wrapPrimitives Optionally wrap primitive types (Some APIs may require this)
4
+ */
5
+ export function dataSerialize(data?: any, wrapPrimitives?: boolean): any;
6
+ /**
7
+ * Data deserialization from Native > JS
8
+ * @param nativeData Native platform data
9
+ */
10
+ export function dataDeserialize(nativeData?: any): any;
11
+
12
+ // /**
13
+ // * Module with android specific utilities.
14
+ // */
15
+ // declare namespace AndroidUtils {
16
+ // /**
17
+ // * Gets the native Android application instance.
18
+ // */
19
+ // export function getApplication(): any; /* android.app.Application */
20
+
21
+ // /**
22
+ // * Get the current native Android activity.
23
+ // */
24
+ // export function getCurrentActivity(): any; /* android.app.Activity */
25
+ // /**
26
+ // * Gets the native Android application resources.
27
+ // */
28
+ // export function getResources(): any; /* android.content.res.Resources */
29
+
30
+ // /**
31
+ // * Gets the Android application context.
32
+ // */
33
+ // export function getApplicationContext(): any; /* android.content.Context */
34
+
35
+ // /**
36
+ // * Gets the native Android input method manager.
37
+ // */
38
+ // export function getInputMethodManager(): any; /* android.view.inputmethod.InputMethodManager */
39
+
40
+ // /**
41
+ // * Hides the soft input method, usually a soft keyboard.
42
+ // */
43
+ // export function dismissSoftInput(nativeView?: any /* android.view.View */): void;
44
+
45
+ // /**
46
+ // * Shows the soft input method, usually a soft keyboard.
47
+ // */
48
+ // export function showSoftInput(nativeView: any /* android.view.View */): void;
49
+
50
+ // /**
51
+ // * Utility module dealing with some android collections.
52
+ // */
53
+ // namespace collections {
54
+ // /**
55
+ // * Converts string array into a String [hash set](http://developer.android.com/reference/java/util/HashSet.html).
56
+ // * @param str - An array of strings to convert.
57
+ // */
58
+ // export function stringArrayToStringSet(str: string[]): any;
59
+
60
+ // /**
61
+ // * Converts string hash set into array of strings.
62
+ // * @param stringSet - A string hash set to convert.
63
+ // */
64
+ // export function stringSetToStringArray(stringSet: any): string[];
65
+ // }
66
+
67
+ // /**
68
+ // * Utility module related to android resources.
69
+ // */
70
+ // export namespace resources {
71
+ // /**
72
+ // * Gets the drawable id from a given name.
73
+ // * @param name - Name of the resource.
74
+ // */
75
+ // export function getDrawableId(name);
76
+
77
+ // /**
78
+ // * Gets the string id from a given name.
79
+ // * @param name - Name of the resource.
80
+ // */
81
+ // export function getStringId(name);
82
+
83
+ // /**
84
+ // * Gets the id from a given name.
85
+ // * @param name - Name of the resource.
86
+ // */
87
+ // export function getId(name: string): number;
88
+
89
+ // /**
90
+ // * Gets the id from a given name with optional type.
91
+ // * This sets an explicit package name.
92
+ // * https://developer.android.com/reference/android/content/res/Resources#getIdentifier(java.lang.String,%20java.lang.String,%20java.lang.String)
93
+ // * @param name - Name of the resource.
94
+ // * @param type - (Optional) type
95
+ // */
96
+ // export function getResource(name: string, type?: string): number;
97
+
98
+ // /**
99
+ // * [Obsolete - please use getPaletteColor] Gets a color from current theme.
100
+ // * @param name - Name of the color
101
+ // */
102
+ // export function getPalleteColor();
103
+
104
+ // /**
105
+ // * Gets a color from the current theme.
106
+ // * @param name - Name of the color resource.
107
+ // */
108
+ // export function getPaletteColor(name: string, context: any /* android.content.Context */): number;
109
+ // }
110
+
111
+ // /**
112
+ // * Checks whether the application is running on real device and not on emulator.
113
+ // */
114
+ // export function isRealDevice(): boolean;
115
+ // }
116
+
117
+ // /**
118
+ // * Module with ios specific utilities.
119
+ // */
120
+ // declare namespace iOSUtils {
121
+ // // Common properties between UILabel, UITextView and UITextField
122
+ // export interface TextUIView {
123
+ // font: any;
124
+ // textAlignment: number;
125
+ // textColor: any;
126
+ // text: string;
127
+ // attributedText: any;
128
+ // lineBreakMode: number;
129
+ // numberOfLines: number;
130
+ // }
131
+
132
+ // /**
133
+ // * Utility module dealing with some iOS collections.
134
+ // */
135
+ // export namespace collections {
136
+ // /**
137
+ // * Converts JavaScript array to [NSArray](https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/).
138
+ // * @param str - JavaScript string array to convert.
139
+ // */
140
+ // export function jsArrayToNSArray<T>(str: T[]): NSArray<T>;
141
+
142
+ // /**
143
+ // * Converts NSArray to JavaScript array.
144
+ // * @param a - NSArray to convert.
145
+ // */
146
+ // export function nsArrayToJSArray<T>(a: NSArray<T>): T[];
147
+ // }
148
+
149
+ // /**
150
+ // * Get the root UIViewController of the app
151
+ // */
152
+ // export function getRootViewController(): any; /* UIViewController */
153
+
154
+ // /**
155
+ // * Get the UIWindow of the app
156
+ // */
157
+ // export function getWindow(): any; /* UIWindow */
158
+
159
+ // /**
160
+ // * Set the window background color of base view of the app.
161
+ // * Often this is shown when opening a modal as the view underneath scales down revealing the window color.
162
+ // * @param value color (hex, rgb, rgba, etc.)
163
+ // */
164
+ // export function setWindowBackgroundColor(value: string): void;
165
+
166
+ // /**
167
+ // * Data serialize and deserialize helpers
168
+ // */
169
+ // export function dataSerialize(data?: any): any;
170
+ // export function dataDeserialize(nativeData?: any): any;
171
+
172
+ // /**
173
+ // * @deprecated use application.orientation instead
174
+ // *
175
+ // * Gets an information about if current mode is Landscape.
176
+ // */
177
+ // export function isLandscape(): boolean;
178
+
179
+ // /**
180
+ // * Gets the iOS device major version (for 8.1 will return 8).
181
+ // */
182
+ // export const MajorVersion: number;
183
+
184
+ // /**
185
+ // * Opens file with associated application.
186
+ // * @param filePath The file path.
187
+ // */
188
+ // export function openFile(filePath: string): boolean;
189
+
190
+ // /**
191
+ // * Joins an array of file paths.
192
+ // * @param paths An array of paths.
193
+ // * Returns the joined path.
194
+ // */
195
+ // export function joinPaths(...paths: string[]): string;
196
+
197
+ // /**
198
+ // * Gets the root folder for the current application. This Folder is private for the application and not accessible from Users/External apps.
199
+ // * iOS - this folder is read-only and contains the app and all its resources.
200
+ // */
201
+ // export function getCurrentAppPath(): string;
202
+
203
+ // /**
204
+ // * Gets the currently visible(topmost) UIViewController.
205
+ // * @param rootViewController The root UIViewController instance to start searching from (normally window.rootViewController).
206
+ // * Returns the visible UIViewController.
207
+ // */
208
+ // export function getVisibleViewController(rootViewController: any /* UIViewController*/): any; /* UIViewController*/
209
+
210
+ // /**
211
+ // *
212
+ // * @param transform Applies a rotation transform over X,Y and Z axis
213
+ // * @param x Rotation over X axis in degrees
214
+ // * @param y Rotation over Y axis in degrees
215
+ // * @param z Rotation over Z axis in degrees
216
+ // */
217
+ // export function applyRotateTransform(transform: any /* CATransform3D*/, x: number, y: number, z: number): any; /* CATransform3D*/
218
+
219
+ // /**
220
+ // * Create a UIDocumentInteractionControllerDelegate implementation for use with UIDocumentInteractionController
221
+ // */
222
+ // export function createUIDocumentInteractionControllerDelegate(): any;
223
+
224
+ // /**
225
+ // * Checks whether the application is running on real device and not on simulator.
226
+ // */
227
+ // export function isRealDevice(): boolean;
228
+
229
+ // /**
230
+ // * Debug utility to insert CGRect values into logging output.
231
+ // * Note: when printing a CGRect directly it will print blank so this helps show the values.
232
+ // * @param rect CGRect
233
+ // */
234
+ // export function printCGRect(rect: CGRect): void;
235
+
236
+ // /**
237
+ // * Take a snapshot of a View on screen.
238
+ // * @param view view to snapshot
239
+ // * @param scale screen scale
240
+ // */
241
+ // export function snapshotView(view: UIView, scale: number): UIImage;
242
+
243
+ // /**
244
+ // * Copy layer properties from one view to another.
245
+ // * @param view a view to copy layer properties to
246
+ // * @param toView a view to copy later properties from
247
+ // * @param (optional) custom properties to copy between both views
248
+ // */
249
+ // export function copyLayerProperties(view: UIView, toView: UIView, customProperties?: { view?: Array<string> /* Array<keyof UIView> */; layer?: Array<string> /* Array<keyof CALayer> */ }): void;
250
+
251
+ // /**
252
+ // * Animate views with a configurable spring effect
253
+ // * @param options various animation settings for the spring
254
+ // * - tension: number
255
+ // * - friction: number
256
+ // * - mass: number
257
+ // * - delay: number
258
+ // * - velocity: number
259
+ // * - animateOptions: UIViewAnimationOptions
260
+ // * - animations: () => void, Callback containing the property changes you want animated
261
+ // * - completion: (finished: boolean) => void, Callback when animation is finished
262
+ // */
263
+ // export function animateWithSpring(options?: { tension?: number; friction?: number; mass?: number; delay?: number; velocity?: number; animateOptions?: UIViewAnimationOptions; animations?: () => void; completion?: (finished?: boolean) => void });
264
+ // }
265
+
266
+ import * as AndroidUtils from './android';
267
+ export import android = AndroidUtils;
268
+
269
+ /**
270
+ * @deprecated use Utils.android instead.
271
+ */
272
+ export import ad = AndroidUtils;
273
+
274
+ import * as iOSUtils from './ios';
275
+ export import ios = iOSUtils;
276
+
277
+ /**
278
+ * @deprecated use Utils.ios instead.
279
+ */
280
+ export import iOSNativeHelper = iOSUtils;
package/utils/types.d.ts CHANGED
@@ -1,24 +1,116 @@
1
- export declare function isString(value: any): value is string;
2
- export declare function isNumber(value: any): value is number;
3
- export declare function isBoolean(value: any): value is boolean;
4
- export declare function isFunction(value: any): value is Function;
5
- export declare function isObject(value: any): value is Record<string, any>;
6
- export declare function isUndefined(value: any): value is undefined;
7
- export declare function isDefined(value: any): boolean;
8
- export declare function isNullOrUndefined(value: any): boolean;
9
- export declare function verifyCallback(value: any): void;
10
- export declare function numberHasDecimals(value: number): boolean;
11
- export declare function numberIs64Bit(value: number): boolean;
12
- export declare function getClass(object: Object): string;
13
- export declare function getClassInfo(object: Object): ClassInfo;
14
- export declare function getBaseClasses(object: any): Array<string>;
15
- export declare class ClassInfo {
16
- private _typeConstructor;
17
- private _name;
18
- private _baseClassInfo;
19
- constructor(typeConstructor: Function);
20
- get name(): string;
21
- get baseClassInfo(): ClassInfo;
22
- private static _getBase;
1
+ /**
2
+ * A function that checks if something is a valid string.
3
+ * @param value The value which will be checked.
4
+ * Returns true if value is a string.
5
+ */
6
+ export function isString(value: any): boolean;
7
+
8
+ /**
9
+ * A function that checks if something is a valid number.
10
+ * @param value The value which will be checked.
11
+ * Returns true if value is a number.
12
+ */
13
+ export function isNumber(value: any): boolean;
14
+
15
+ /**
16
+ * A function that checks if something is a valid boolean.
17
+ * @param value The value which will be checked.
18
+ * Returns true if value is a boolean.
19
+ */
20
+ export function isBoolean(value: any): boolean;
21
+
22
+ /**
23
+ * A function that checks if something is a function.
24
+ * @param value The value which will be checked.
25
+ * Returns true if value is a function.
26
+ */
27
+ export function isFunction(value: any): boolean;
28
+
29
+ /**
30
+ * A function that checks if something is an object.
31
+ * @param value The value which will be checked.
32
+ * Returns true if value is an object.
33
+ */
34
+ export function isObject(value: any): boolean;
35
+
36
+ /**
37
+ * A function that checks if something is "undefined".
38
+ * @param value The value which will be checked.
39
+ * Returns true if value is "undefined".
40
+ */
41
+ export function isUndefined(value: any): boolean;
42
+
43
+ /**
44
+ * A function that checks if something is defined (not undefined).
45
+ * @param value The value which will be checked.
46
+ * Returns true if value is defined.
47
+ */
48
+ export function isDefined(value: any): boolean;
49
+
50
+ /**
51
+ * A function that checks if something is not defined (null or undefined).
52
+ * @param value The value which will be checked.
53
+ * Returns true if value is null or undefined.
54
+ */
55
+ export function isNullOrUndefined(value: any): boolean;
56
+
57
+ /**
58
+ * A function that checks if something is a valid function.
59
+ * @param value The value which will be checked.
60
+ * Throws exception if passed value is not a valid function.
61
+ */
62
+ export function verifyCallback(value: any): void;
63
+
64
+ /**
65
+ * Checks if the number has decimals
66
+ * @param value Number to check
67
+ */
68
+ export function numberHasDecimals(value: number): boolean;
69
+
70
+ /**
71
+ * Checks if the number is 64 bit
72
+ * @param value Number to check
73
+ */
74
+ export function numberIs64Bit(value: number): boolean;
75
+
76
+ /**
77
+ * A function that gets the class name of an object.
78
+ * @param object The object.
79
+ * Returns a string with the name of the class.
80
+ */
81
+ export function getClass(object): string;
82
+
83
+ /**
84
+ * A function that gets the entire class hierarchy of an object.
85
+ * @param object The object.
86
+ * Returns an array of strings with the name of all base classes.
87
+ */
88
+ export function getBaseClasses(object): Array<string>;
89
+
90
+ /**
91
+ * A function that gets the ClassInfo for an object.
92
+ * @param object The object.
93
+ * Returns a ClassInfo for the object.
94
+ */
95
+ export function getClassInfo(object: Object): ClassInfo;
96
+
97
+ /**
98
+ * A Class holding information about a class
99
+ */
100
+ export class ClassInfo {
101
+ /**
102
+ * Gets the name of the class.
103
+ */
104
+ name: string;
105
+
106
+ /**
107
+ * Gets the ClassInfo for the base class of the current info.
108
+ */
109
+ baseClassInfo: ClassInfo;
23
110
  }
24
- export declare function toUIString(obj: any): string;
111
+
112
+ /**
113
+ * Returns a string representation of an object to be shown in UI.
114
+ * @param object The object.
115
+ */
116
+ export function toUIString(object): string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Makes the specified properties in a type optional.
3
+ * @example type NotifyData = Optional<EventData, "object">
4
+ * // returns: { eventName: string; object?: Observable }
5
+ */
6
+ export type Optional<T, K extends keyof T> = Omit<T, K> & { [P in K]?: T[P] };
package/wgc/atob.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export function atob(data) {
2
2
  if (__ANDROID__) {
3
- return org.nativescript.winter_cg.Utils.atob(data);
3
+ return org.nativescript.winter_tc.Utils.atob(data);
4
4
  }
5
5
  if (__IOS__) {
6
6
  return NSString.atob(data);
package/wgc/btoa.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export function btoa(stringToEncode) {
2
2
  if (__ANDROID__) {
3
- return org.nativescript.winter_cg.Utils.btoa(stringToEncode);
3
+ return org.nativescript.winter_tc.Utils.btoa(stringToEncode);
4
4
  }
5
5
  if (__IOS__) {
6
6
  return NSString.btoa(stringToEncode);
@@ -171,7 +171,7 @@ export class SubtleCrypto {
171
171
  }
172
172
  if (__ANDROID__) {
173
173
  //const instance = java.security.MessageDigest.getInstance(algorithm);
174
- const buffer = org.nativescript.winter_cg.Crypto.digest(mode, data);
174
+ const buffer = org.nativescript.winter_tc.Crypto.digest(mode, data);
175
175
  const ab = ArrayBuffer.from(buffer);
176
176
  if (!ab) {
177
177
  // todo throw failure
@@ -181,7 +181,7 @@ export class SubtleCrypto {
181
181
  const digest = instance.digest();
182
182
 
183
183
  const ab = new ArrayBuffer(digest.length);
184
- (<any>org).nativescript.winter_cg.Utils.copyToBuffer(ab, digest);
184
+ (<any>org).nativescript.winter_tc.Utils.copyToBuffer(ab, digest);
185
185
 
186
186
  resolve(ab);
187
187
 
@@ -224,7 +224,7 @@ export class SubtleCrypto {
224
224
  }
225
225
  if (__ANDROID__) {
226
226
  const hash = parseHash(key.algorithm.hash.name);
227
- const ret = org.nativescript.winter_cg.Crypto.encryptRsaOAEP(key[parent_], hash, data);
227
+ const ret = org.nativescript.winter_tc.Crypto.encryptRsaOAEP(key[parent_], hash, data);
228
228
  if (ret) {
229
229
  resolve(ArrayBuffer.from(ret));
230
230
  }
@@ -269,7 +269,7 @@ export class SubtleCrypto {
269
269
  }
270
270
  if (__ANDROID__) {
271
271
  const hash = parseHash(key.algorithm.hash.name);
272
- const ret = org.nativescript.winter_cg.Crypto.decryptRsaOAEP(key[parent_], hash, data);
272
+ const ret = org.nativescript.winter_tc.Crypto.decryptRsaOAEP(key[parent_], hash, data);
273
273
  if (ret) {
274
274
  resolve(ArrayBuffer.from(ret));
275
275
  }
@@ -335,7 +335,7 @@ export class SubtleCrypto {
335
335
  reject(error);
336
336
  return;
337
337
  }
338
- const ab = org.nativescript.winter_cg.Crypto.signHMAC(algo, key[native_], data);
338
+ const ab = org.nativescript.winter_tc.Crypto.signHMAC(algo, key[native_], data);
339
339
  resolve(ArrayBuffer.from(ab));
340
340
  }
341
341
  }
@@ -392,7 +392,7 @@ export class SubtleCrypto {
392
392
  reject(error);
393
393
  return;
394
394
  }
395
- const ret = org.nativescript.winter_cg.Crypto.verifyHMAC(algo, key[native_], signature, data);
395
+ const ret = org.nativescript.winter_tc.Crypto.verifyHMAC(algo, key[native_], signature, data);
396
396
  resolve(ret);
397
397
  }
398
398
  }
@@ -443,7 +443,7 @@ export class SubtleCrypto {
443
443
  if (__ANDROID__) {
444
444
  // const mac = javax.crypto.KeyGenerator.getInstance(algo);
445
445
  // const key = mac.generateKey();
446
- const key = org.nativescript.winter_cg.Crypto.generateKeyHMAC(algo);
446
+ const key = org.nativescript.winter_tc.Crypto.generateKeyHMAC(algo);
447
447
  const ret = new CryptoKey();
448
448
  ret[algorithm_] = { name: algorithm.name, hash: { name: algorithmHash } };
449
449
  ret[native_] = key;
@@ -519,7 +519,7 @@ export class SubtleCrypto {
519
519
  }
520
520
  // const usages = parseUsages(keyUsages);
521
521
  // ignore publicExponent for now
522
- const kp = org.nativescript.winter_cg.Crypto.generateKeyRsaOAEP(algorithm.modulusLength);
522
+ const kp = org.nativescript.winter_tc.Crypto.generateKeyRsaOAEP(algorithm.modulusLength);
523
523
  if (!kp) {
524
524
  reject(new Error('Failed to generateKey'));
525
525
  }
@@ -6,7 +6,7 @@ export class Crypto {
6
6
  }
7
7
  randomUUID() {
8
8
  if (__ANDROID__) {
9
- return org.nativescript.winter_cg.Crypto.randomUUID();
9
+ return org.nativescript.winter_tc.Crypto.randomUUID();
10
10
  }
11
11
  if (__IOS__) {
12
12
  return NSCCrypto.randomUUID();
@@ -17,7 +17,7 @@ export class Crypto {
17
17
  if (typedArray.BYTES_PER_ELEMENT !== 1) {
18
18
  typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset);
19
19
  }
20
- org.nativescript.winter_cg.Crypto.getRandomValues(typedArray);
20
+ org.nativescript.winter_tc.Crypto.getRandomValues(typedArray);
21
21
  }
22
22
  if (__IOS__) {
23
23
  if (typedArray.BYTES_PER_ELEMENT !== 1) {