@nativescript/core 9.0.0-next-09-27-2025-18063560861 → 9.0.0-next-10-06-2025-18277360121

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 (179) hide show
  1. package/package.json +1 -1
  2. package/platforms/android/include.gradle +51 -0
  3. package/platforms/android/java/org/nativescript/Process.java +59 -0
  4. package/platforms/android/java/org/nativescript/widgets/AbsoluteLayout.java +88 -0
  5. package/platforms/android/java/org/nativescript/widgets/AnimatorHelper.java +61 -0
  6. package/platforms/android/java/org/nativescript/widgets/Async.java +1356 -0
  7. package/platforms/android/java/org/nativescript/widgets/BorderDrawable.java +936 -0
  8. package/platforms/android/java/org/nativescript/widgets/BottomNavigationBar.java +308 -0
  9. package/platforms/android/java/org/nativescript/widgets/BoxShadowDrawable.java +175 -0
  10. package/platforms/android/java/org/nativescript/widgets/CSSValue.java +34 -0
  11. package/platforms/android/java/org/nativescript/widgets/CommonLayoutParams.java +456 -0
  12. package/platforms/android/java/org/nativescript/widgets/ContentLayout.java +85 -0
  13. package/platforms/android/java/org/nativescript/widgets/CustomTransition.java +135 -0
  14. package/platforms/android/java/org/nativescript/widgets/CustomTypefaceSpan.java +44 -0
  15. package/platforms/android/java/org/nativescript/widgets/Dock.java +15 -0
  16. package/platforms/android/java/org/nativescript/widgets/DockLayout.java +185 -0
  17. package/platforms/android/java/org/nativescript/widgets/FileHelper.java +815 -0
  18. package/platforms/android/java/org/nativescript/widgets/FlexLine.java +177 -0
  19. package/platforms/android/java/org/nativescript/widgets/FlexboxLayout.java +2769 -0
  20. package/platforms/android/java/org/nativescript/widgets/FragmentBase.java +14 -0
  21. package/platforms/android/java/org/nativescript/widgets/GridLayout.java +1172 -0
  22. package/platforms/android/java/org/nativescript/widgets/GridUnitType.java +10 -0
  23. package/platforms/android/java/org/nativescript/widgets/HorizontalScrollView.java +256 -0
  24. package/platforms/android/java/org/nativescript/widgets/ImageView.java +423 -0
  25. package/platforms/android/java/org/nativescript/widgets/ItemSpec.java +56 -0
  26. package/platforms/android/java/org/nativescript/widgets/LayoutBase.java +98 -0
  27. package/platforms/android/java/org/nativescript/widgets/LinearGradientDefinition.java +46 -0
  28. package/platforms/android/java/org/nativescript/widgets/Orientation.java +9 -0
  29. package/platforms/android/java/org/nativescript/widgets/OriginPoint.java +74 -0
  30. package/platforms/android/java/org/nativescript/widgets/ScrollSavedState.java +63 -0
  31. package/platforms/android/java/org/nativescript/widgets/SegmentedBarColorDrawable.java +27 -0
  32. package/platforms/android/java/org/nativescript/widgets/StackLayout.java +231 -0
  33. package/platforms/android/java/org/nativescript/widgets/StyleableTextView.java +50 -0
  34. package/platforms/android/java/org/nativescript/widgets/TabIconRenderingMode.java +6 -0
  35. package/platforms/android/java/org/nativescript/widgets/TabItemSpec.java +15 -0
  36. package/platforms/android/java/org/nativescript/widgets/TabLayout.java +451 -0
  37. package/platforms/android/java/org/nativescript/widgets/TabStrip.java +294 -0
  38. package/platforms/android/java/org/nativescript/widgets/TabViewPager.java +64 -0
  39. package/platforms/android/java/org/nativescript/widgets/TabsBar.java +443 -0
  40. package/platforms/android/java/org/nativescript/widgets/Utils.java +546 -0
  41. package/platforms/android/java/org/nativescript/widgets/VerticalScrollView.java +258 -0
  42. package/platforms/android/java/org/nativescript/widgets/ViewHelper.java +564 -0
  43. package/platforms/android/java/org/nativescript/widgets/WrapLayout.java +252 -0
  44. package/platforms/android/java/org/nativescript/widgets/image/AsyncTask.java +679 -0
  45. package/platforms/android/java/org/nativescript/widgets/image/BitmapOwner.java +17 -0
  46. package/platforms/android/java/org/nativescript/widgets/image/Cache.java +471 -0
  47. package/platforms/android/java/org/nativescript/widgets/image/DiskLruCache.java +970 -0
  48. package/platforms/android/java/org/nativescript/widgets/image/Fetcher.java +747 -0
  49. package/platforms/android/java/org/nativescript/widgets/image/Utils.java +58 -0
  50. package/platforms/android/java/org/nativescript/widgets/image/Worker.java +571 -0
  51. package/platforms/ios/src/TNSWidgets/Info.plist +26 -0
  52. package/platforms/ios/src/TNSWidgets/NSData+Async.m +42 -0
  53. package/platforms/ios/src/TNSWidgets/NSFileHandle+Async.m +82 -0
  54. package/platforms/ios/src/TNSWidgets/NSObject+Swizzling.m +68 -0
  55. package/platforms/ios/src/TNSWidgets/NSString+Async.m +51 -0
  56. package/platforms/ios/src/TNSWidgets/TNSLabel.m +42 -0
  57. package/platforms/ios/src/TNSWidgets/UIImage+TNSBlocks.m +77 -0
  58. package/platforms/ios/src/TNSWidgets/UIView+PassThroughParent.m +53 -0
  59. package/platforms/ios/src/TNSWidgets/UIView+PropertyBag.m +72 -0
  60. package/platforms/ios/src/module.modulemap +5 -0
  61. package/platforms/android/widgets-release.aar +0 -0
  62. package/platforms/ios/TNSWidgets.xcframework/Info.plist +0 -102
  63. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  64. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  65. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  66. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +0 -6
  67. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  68. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  69. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  70. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  71. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  72. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  73. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  74. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  75. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  76. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  77. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  78. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  79. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  80. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +0 -6
  81. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  82. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  83. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +0 -52
  84. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +0 -60
  85. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +0 -24
  86. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +0 -22
  87. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +0 -25
  88. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +0 -16
  89. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +0 -29
  90. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +0 -25
  91. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +0 -26
  92. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +0 -17
  93. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +0 -6
  94. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +0 -17
  95. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +0 -18
  96. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +0 -52
  97. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  98. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSCCrypto.h +0 -60
  99. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSData+Async.h +0 -24
  100. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSFileHandle+Async.h +0 -22
  101. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSString+Async.h +0 -25
  102. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSLabel.h +0 -16
  103. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSProcess.h +0 -29
  104. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSWidgets.h +0 -25
  105. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIImage+TNSBlocks.h +0 -26
  106. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIView+PassThroughParent.h +0 -17
  107. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Modules/module.modulemap +0 -6
  108. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/NSObject+Swizzling.h +0 -17
  109. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/UIView+PropertyBag.h +0 -18
  110. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Resources/Info.plist +0 -52
  111. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  112. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  113. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  114. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  115. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
  116. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  117. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  118. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  119. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  120. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  121. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  122. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  123. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  124. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  125. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  126. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +0 -6
  127. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  128. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  129. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  130. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +0 -223
  131. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  132. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  133. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  134. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
  135. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  136. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  137. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  138. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  139. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  140. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  141. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  142. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  143. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  144. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
  145. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +0 -6
  146. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  147. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  148. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  149. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  150. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  151. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  152. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  153. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  154. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  155. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  156. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  157. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  158. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  159. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  160. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  161. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  162. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +0 -6
  163. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  164. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  165. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  166. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +0 -223
  167. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  168. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  169. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  170. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
  171. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/NSData+Async.h +0 -0
  172. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/NSFileHandle+Async.h +0 -0
  173. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders → src/TNSWidgets}/NSObject+Swizzling.h +0 -0
  174. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/NSString+Async.h +0 -0
  175. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/TNSLabel.h +0 -0
  176. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/TNSWidgets.h +0 -0
  177. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/UIImage+TNSBlocks.h +0 -0
  178. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/UIView+PassThroughParent.h +0 -0
  179. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders → src/TNSWidgets}/UIView+PropertyBag.h +0 -0
@@ -0,0 +1,258 @@
1
+ package org.nativescript.widgets;
2
+
3
+ import android.content.Context;
4
+ import android.graphics.Rect;
5
+ import android.os.Parcelable;
6
+ import android.util.AttributeSet;
7
+ import android.view.MotionEvent;
8
+ import android.view.View;
9
+ import android.view.ViewGroup;
10
+ import android.widget.FrameLayout;
11
+ import androidx.core.widget.NestedScrollView;
12
+
13
+ /**
14
+ * @author hhristov
15
+ */
16
+ public class VerticalScrollView extends NestedScrollView {
17
+
18
+ private final Rect mTempRect = new Rect();
19
+
20
+ private int contentMeasuredWidth = 0;
21
+ private int contentMeasuredHeight = 0;
22
+ private int scrollableLength = 0;
23
+ private ScrollSavedState mSavedState;
24
+ private boolean isFirstLayout = true;
25
+ private boolean scrollEnabled = true;
26
+
27
+ /**
28
+ * True when the layout has changed but the traversal has not come through yet.
29
+ * Ideally the view hierarchy would keep track of this for us.
30
+ */
31
+ private boolean mIsLayoutDirty = true;
32
+
33
+ /**
34
+ * The child to give focus to in the event that a child has requested focus
35
+ * while the layout is dirty. This prevents the scroll from being wrong if the
36
+ * child has not been laid out before requesting focus.
37
+ */
38
+ private View mChildToScrollTo = null;
39
+
40
+ public VerticalScrollView(Context context) {
41
+ super(context);
42
+ }
43
+
44
+ public int getScrollableLength() {
45
+ return this.scrollableLength;
46
+ }
47
+
48
+ public boolean getScrollEnabled() {
49
+ return this.scrollEnabled;
50
+ }
51
+
52
+ public void setScrollEnabled(boolean value) {
53
+ this.scrollEnabled = value;
54
+ }
55
+
56
+ @Override
57
+ public boolean onInterceptTouchEvent(MotionEvent ev) {
58
+ // Do nothing with intercepted touch events if we are not scrollable
59
+ if (!this.scrollEnabled) {
60
+ return false;
61
+ }
62
+
63
+ return super.onInterceptTouchEvent(ev);
64
+ }
65
+
66
+ @Override
67
+ public boolean onTouchEvent(MotionEvent ev) {
68
+ if (!this.scrollEnabled
69
+ && (ev.getAction() == MotionEvent.ACTION_DOWN || ev.getAction() == MotionEvent.ACTION_MOVE)) {
70
+ return false;
71
+ }
72
+
73
+ return super.onTouchEvent(ev);
74
+ }
75
+
76
+ @Override
77
+ public void requestLayout() {
78
+ this.mIsLayoutDirty = true;
79
+ super.requestLayout();
80
+ }
81
+
82
+ @Override
83
+ protected CommonLayoutParams generateDefaultLayoutParams() {
84
+ return new CommonLayoutParams();
85
+ }
86
+
87
+ /**
88
+ * {@inheritDoc}
89
+ */
90
+ @Override
91
+ public CommonLayoutParams generateLayoutParams(AttributeSet attrs) {
92
+ return new CommonLayoutParams();
93
+ }
94
+
95
+ /**
96
+ * {@inheritDoc}
97
+ */
98
+ @Override
99
+ protected boolean checkLayoutParams(ViewGroup.LayoutParams p) {
100
+ return p instanceof CommonLayoutParams;
101
+ }
102
+
103
+ @Override
104
+ protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams from) {
105
+ if (from instanceof CommonLayoutParams)
106
+ return new CommonLayoutParams((CommonLayoutParams) from);
107
+
108
+ if (from instanceof FrameLayout.LayoutParams)
109
+ return new CommonLayoutParams((FrameLayout.LayoutParams) from);
110
+
111
+ if (from instanceof ViewGroup.MarginLayoutParams)
112
+ return new CommonLayoutParams((ViewGroup.MarginLayoutParams) from);
113
+
114
+ return new CommonLayoutParams(from);
115
+ }
116
+
117
+ @Override
118
+ public void requestChildFocus(View child, View focused) {
119
+ if (!this.mIsLayoutDirty) {
120
+ this.scrollToChild(focused);
121
+ } else {
122
+ // The child may not be laid out yet, we can't compute the scroll yet
123
+ this.mChildToScrollTo = focused;
124
+ }
125
+ super.requestChildFocus(child, focused);
126
+ }
127
+
128
+ @Override
129
+ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
130
+ CommonLayoutParams.adjustChildrenLayoutParams(this, widthMeasureSpec, heightMeasureSpec);
131
+
132
+ // Don't call measure because it will measure content twice.
133
+ // ScrollView is expected to have single child so we measure only the first
134
+ // child.
135
+ View child = this.getChildCount() > 0 ? this.getChildAt(0) : null;
136
+ if (child == null) {
137
+ this.scrollableLength = 0;
138
+ this.contentMeasuredWidth = 0;
139
+ this.contentMeasuredHeight = 0;
140
+ this.setPadding(0, 0, 0, 0);
141
+ } else {
142
+ CommonLayoutParams.measureChild(child, widthMeasureSpec,
143
+ MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
144
+ this.contentMeasuredWidth = CommonLayoutParams.getDesiredWidth(child);
145
+ this.contentMeasuredHeight = CommonLayoutParams.getDesiredHeight(child);
146
+
147
+ // Android ScrollView does not account to child margins so we set them as
148
+ // paddings. Otherwise you can never scroll to bottom.
149
+ CommonLayoutParams lp = (CommonLayoutParams) child.getLayoutParams();
150
+ this.setPadding(lp.leftMargin, lp.topMargin, lp.rightMargin, lp.bottomMargin);
151
+ }
152
+
153
+ // Don't add in our paddings because they are already added as child margins.
154
+ // (we will include them twice if we add them).
155
+ // check the previous line - this.setPadding(lp.leftMargin, lp.topMargin,
156
+ // lp.rightMargin, lp.bottomMargin);
157
+ // this.contentMeasuredWidth += this.getPaddingLeft() + this.getPaddingRight();
158
+ // this.contentMeasuredHeight += this.getPaddingTop() + this.getPaddingBottom();
159
+
160
+ // Check against our minimum height
161
+ this.contentMeasuredWidth = Math.max(this.contentMeasuredWidth, this.getSuggestedMinimumWidth());
162
+ this.contentMeasuredHeight = Math.max(this.contentMeasuredHeight, this.getSuggestedMinimumHeight());
163
+
164
+ int widthSizeAndState = resolveSizeAndState(this.contentMeasuredWidth, widthMeasureSpec, 0);
165
+ int heightSizeAndState = resolveSizeAndState(this.contentMeasuredHeight, heightMeasureSpec, 0);
166
+
167
+ this.setMeasuredDimension(widthSizeAndState, heightSizeAndState);
168
+ }
169
+
170
+ @Override
171
+ protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
172
+ int childHeight = 0;
173
+ if (this.getChildCount() > 0) {
174
+ View child = this.getChildAt(0);
175
+ childHeight = child.getMeasuredHeight();
176
+
177
+ int width = right - left;
178
+ int height = bottom - top;
179
+
180
+ this.scrollableLength = this.contentMeasuredHeight - height;
181
+ CommonLayoutParams.layoutChild(child, 0, 0, width, Math.max(this.contentMeasuredHeight, height));
182
+ this.scrollableLength = Math.max(0, this.scrollableLength);
183
+ }
184
+
185
+ this.mIsLayoutDirty = false;
186
+ // Give a child focus if it needs it
187
+ if (this.mChildToScrollTo != null && Utils.isViewDescendantOf(this.mChildToScrollTo, this)) {
188
+ this.scrollToChild(this.mChildToScrollTo);
189
+ }
190
+
191
+ this.mChildToScrollTo = null;
192
+
193
+ int scrollX = this.getScrollX();
194
+ int scrollY = this.getScrollY();
195
+ if (this.isFirstLayout) {
196
+ this.isFirstLayout = false;
197
+
198
+ final int scrollRange = Math.max(0,
199
+ childHeight - (bottom - top - this.getPaddingTop() - this.getPaddingBottom()));
200
+ if (this.mSavedState != null) {
201
+ scrollY = mSavedState.scrollOffsetFromStart;
202
+ mSavedState = null;
203
+ }
204
+
205
+ // Don't forget to clamp
206
+ if (scrollY > scrollRange) {
207
+ scrollY = scrollRange;
208
+ } else if (scrollY < 0) {
209
+ scrollY = 0;
210
+ }
211
+ }
212
+
213
+ // Calling this with the present values causes it to re-claim them
214
+ this.scrollTo(scrollX, scrollY);
215
+
216
+ CommonLayoutParams.restoreOriginalParams(this);
217
+ }
218
+
219
+ @Override
220
+ public void onAttachedToWindow() {
221
+ super.onAttachedToWindow();
222
+ this.isFirstLayout = true;
223
+ }
224
+
225
+ @Override
226
+ public void onDetachedFromWindow() {
227
+ super.onDetachedFromWindow();
228
+ this.isFirstLayout = true;
229
+ }
230
+
231
+ @Override
232
+ protected void onRestoreInstanceState(Parcelable state) {
233
+ ScrollSavedState ss = (ScrollSavedState) state;
234
+ super.onRestoreInstanceState(ss.getSuperState());
235
+ this.mSavedState = ss;
236
+ this.requestLayout();
237
+ }
238
+
239
+ @Override
240
+ protected Parcelable onSaveInstanceState() {
241
+ Parcelable superState = super.onSaveInstanceState();
242
+ ScrollSavedState ss = new ScrollSavedState(superState);
243
+ ss.scrollOffsetFromStart = this.getScrollY();
244
+ return ss;
245
+ }
246
+
247
+ private void scrollToChild(View child) {
248
+ child.getDrawingRect(mTempRect);
249
+
250
+ /* Offset from child's local coordinates to ScrollView coordinates */
251
+ offsetDescendantRectToMyCoords(child, mTempRect);
252
+
253
+ int scrollDelta = computeScrollDeltaToGetChildRectOnScreen(mTempRect);
254
+ if (scrollDelta != 0) {
255
+ this.scrollBy(scrollDelta, 0);
256
+ }
257
+ }
258
+ }