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

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 (181) hide show
  1. package/package.json +1 -1
  2. package/platforms/android/widgets-release.aar +0 -0
  3. package/platforms/ios/TNSWidgets.xcframework/Info.plist +102 -0
  4. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  5. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  6. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  7. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
  8. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  9. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  10. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  11. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  12. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  13. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  14. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  15. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  16. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  17. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  18. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  19. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  20. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  21. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +6 -0
  22. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  23. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  24. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +52 -0
  25. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +60 -0
  26. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +24 -0
  27. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
  28. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +25 -0
  29. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +16 -0
  30. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +29 -0
  31. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +25 -0
  32. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +26 -0
  33. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +17 -0
  34. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +6 -0
  35. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +17 -0
  36. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +18 -0
  37. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +52 -0
  38. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  39. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSCCrypto.h +60 -0
  40. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSData+Async.h +24 -0
  41. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSFileHandle+Async.h +22 -0
  42. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSString+Async.h +25 -0
  43. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSLabel.h +16 -0
  44. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSProcess.h +29 -0
  45. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSWidgets.h +25 -0
  46. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIImage+TNSBlocks.h +26 -0
  47. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIView+PassThroughParent.h +17 -0
  48. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Modules/module.modulemap +6 -0
  49. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/NSObject+Swizzling.h +17 -0
  50. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/UIView+PropertyBag.h +18 -0
  51. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Resources/Info.plist +52 -0
  52. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  53. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  54. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  55. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  56. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
  57. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  58. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  59. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  60. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  61. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  62. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  63. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  64. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  65. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  66. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  67. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
  68. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  69. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  70. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  71. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
  72. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  73. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  74. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  75. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
  76. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  77. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  78. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  79. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  80. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  81. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  82. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  83. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  84. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  85. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
  86. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
  87. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  88. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  89. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  90. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  91. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  92. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  93. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  94. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  95. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  96. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  97. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  98. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  99. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  100. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  101. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  102. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  103. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
  104. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  105. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  106. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  107. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
  108. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  109. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  110. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  111. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
  112. package/platforms/ios/src/module.modulemap +0 -5
  113. package/ui/button/index.d.ts +1 -1
  114. package/ui/slider/index.d.ts +1 -1
  115. package/platforms/android/include.gradle +0 -51
  116. package/platforms/android/java/org/nativescript/Process.java +0 -59
  117. package/platforms/android/java/org/nativescript/widgets/AbsoluteLayout.java +0 -88
  118. package/platforms/android/java/org/nativescript/widgets/AnimatorHelper.java +0 -61
  119. package/platforms/android/java/org/nativescript/widgets/Async.java +0 -1356
  120. package/platforms/android/java/org/nativescript/widgets/BorderDrawable.java +0 -936
  121. package/platforms/android/java/org/nativescript/widgets/BottomNavigationBar.java +0 -308
  122. package/platforms/android/java/org/nativescript/widgets/BoxShadowDrawable.java +0 -175
  123. package/platforms/android/java/org/nativescript/widgets/CSSValue.java +0 -34
  124. package/platforms/android/java/org/nativescript/widgets/CommonLayoutParams.java +0 -456
  125. package/platforms/android/java/org/nativescript/widgets/ContentLayout.java +0 -85
  126. package/platforms/android/java/org/nativescript/widgets/CustomTransition.java +0 -135
  127. package/platforms/android/java/org/nativescript/widgets/CustomTypefaceSpan.java +0 -44
  128. package/platforms/android/java/org/nativescript/widgets/Dock.java +0 -15
  129. package/platforms/android/java/org/nativescript/widgets/DockLayout.java +0 -185
  130. package/platforms/android/java/org/nativescript/widgets/FileHelper.java +0 -815
  131. package/platforms/android/java/org/nativescript/widgets/FlexLine.java +0 -177
  132. package/platforms/android/java/org/nativescript/widgets/FlexboxLayout.java +0 -2769
  133. package/platforms/android/java/org/nativescript/widgets/FragmentBase.java +0 -14
  134. package/platforms/android/java/org/nativescript/widgets/GridLayout.java +0 -1172
  135. package/platforms/android/java/org/nativescript/widgets/GridUnitType.java +0 -10
  136. package/platforms/android/java/org/nativescript/widgets/HorizontalScrollView.java +0 -256
  137. package/platforms/android/java/org/nativescript/widgets/ImageView.java +0 -423
  138. package/platforms/android/java/org/nativescript/widgets/ItemSpec.java +0 -56
  139. package/platforms/android/java/org/nativescript/widgets/LayoutBase.java +0 -98
  140. package/platforms/android/java/org/nativescript/widgets/LinearGradientDefinition.java +0 -46
  141. package/platforms/android/java/org/nativescript/widgets/Orientation.java +0 -9
  142. package/platforms/android/java/org/nativescript/widgets/OriginPoint.java +0 -74
  143. package/platforms/android/java/org/nativescript/widgets/ScrollSavedState.java +0 -63
  144. package/platforms/android/java/org/nativescript/widgets/SegmentedBarColorDrawable.java +0 -27
  145. package/platforms/android/java/org/nativescript/widgets/StackLayout.java +0 -231
  146. package/platforms/android/java/org/nativescript/widgets/StyleableTextView.java +0 -50
  147. package/platforms/android/java/org/nativescript/widgets/TabIconRenderingMode.java +0 -6
  148. package/platforms/android/java/org/nativescript/widgets/TabItemSpec.java +0 -15
  149. package/platforms/android/java/org/nativescript/widgets/TabLayout.java +0 -451
  150. package/platforms/android/java/org/nativescript/widgets/TabStrip.java +0 -294
  151. package/platforms/android/java/org/nativescript/widgets/TabViewPager.java +0 -64
  152. package/platforms/android/java/org/nativescript/widgets/TabsBar.java +0 -443
  153. package/platforms/android/java/org/nativescript/widgets/Utils.java +0 -546
  154. package/platforms/android/java/org/nativescript/widgets/VerticalScrollView.java +0 -258
  155. package/platforms/android/java/org/nativescript/widgets/ViewHelper.java +0 -564
  156. package/platforms/android/java/org/nativescript/widgets/WrapLayout.java +0 -252
  157. package/platforms/android/java/org/nativescript/widgets/image/AsyncTask.java +0 -679
  158. package/platforms/android/java/org/nativescript/widgets/image/BitmapOwner.java +0 -17
  159. package/platforms/android/java/org/nativescript/widgets/image/Cache.java +0 -471
  160. package/platforms/android/java/org/nativescript/widgets/image/DiskLruCache.java +0 -970
  161. package/platforms/android/java/org/nativescript/widgets/image/Fetcher.java +0 -747
  162. package/platforms/android/java/org/nativescript/widgets/image/Utils.java +0 -58
  163. package/platforms/android/java/org/nativescript/widgets/image/Worker.java +0 -571
  164. package/platforms/ios/src/TNSWidgets/Info.plist +0 -26
  165. package/platforms/ios/src/TNSWidgets/NSData+Async.m +0 -42
  166. package/platforms/ios/src/TNSWidgets/NSFileHandle+Async.m +0 -82
  167. package/platforms/ios/src/TNSWidgets/NSObject+Swizzling.m +0 -68
  168. package/platforms/ios/src/TNSWidgets/NSString+Async.m +0 -51
  169. package/platforms/ios/src/TNSWidgets/TNSLabel.m +0 -42
  170. package/platforms/ios/src/TNSWidgets/UIImage+TNSBlocks.m +0 -77
  171. package/platforms/ios/src/TNSWidgets/UIView+PassThroughParent.m +0 -53
  172. package/platforms/ios/src/TNSWidgets/UIView+PropertyBag.m +0 -72
  173. /package/platforms/ios/{src/TNSWidgets → TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers}/NSData+Async.h +0 -0
  174. /package/platforms/ios/{src/TNSWidgets → TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers}/NSFileHandle+Async.h +0 -0
  175. /package/platforms/ios/{src/TNSWidgets → TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers}/NSString+Async.h +0 -0
  176. /package/platforms/ios/{src/TNSWidgets → TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers}/TNSLabel.h +0 -0
  177. /package/platforms/ios/{src/TNSWidgets → TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers}/TNSWidgets.h +0 -0
  178. /package/platforms/ios/{src/TNSWidgets → TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers}/UIImage+TNSBlocks.h +0 -0
  179. /package/platforms/ios/{src/TNSWidgets → TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers}/UIView+PassThroughParent.h +0 -0
  180. /package/platforms/ios/{src/TNSWidgets → TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders}/NSObject+Swizzling.h +0 -0
  181. /package/platforms/ios/{src/TNSWidgets → TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders}/UIView+PropertyBag.h +0 -0
@@ -1,451 +0,0 @@
1
- /*
2
- * Copyright 2014 Google Inc. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- package org.nativescript.widgets;
18
-
19
- import android.content.Context;
20
- import android.graphics.Typeface;
21
- import android.text.TextUtils;
22
- import android.util.AttributeSet;
23
- import android.util.SparseArray;
24
- import android.util.TypedValue;
25
- import android.view.Gravity;
26
- import android.view.View;
27
- import android.view.ViewGroup;
28
- import android.widget.HorizontalScrollView;
29
- import android.widget.ImageView;
30
- import android.widget.ImageView.ScaleType;
31
- import android.widget.LinearLayout;
32
- import android.widget.TextView;
33
-
34
- import androidx.viewpager.widget.PagerAdapter;
35
- import androidx.viewpager.widget.ViewPager;
36
-
37
- /**
38
- * To be used with ViewPager to provide a tab indicator component which give
39
- * constant feedback as to the user's scroll progress.
40
- * <p>
41
- * To use the component, simply add it to your view hierarchy. Then in your
42
- * {@link android.app.Activity} or {@link android.app.Fragment} call
43
- * {@link #setViewPager(ViewPager)} providing it the ViewPager this layout is
44
- * being used for.
45
- * <p>
46
- * The colors can be customized in two ways. The first and simplest is to
47
- * provide an array of colors via {@link #setSelectedIndicatorColors(int...)}.
48
- * The alternative is via the {@link TabColorizer} interface which provides you
49
- * complete control over which color is used for any individual position.
50
- * <p>
51
- */
52
- public class TabLayout extends HorizontalScrollView {
53
- /**
54
- * Allows complete control over the colors drawn in the tab layout. Set with
55
- * {@link #setCustomTabColorizer(TabColorizer)}.
56
- */
57
- public interface TabColorizer {
58
-
59
- /**
60
- * @return return the color of the indicator used when {@code position}
61
- * is selected.
62
- */
63
- int getIndicatorColor(int position);
64
-
65
- }
66
-
67
- private static final int TITLE_OFFSET_DIPS = 24;
68
- private static final int TAB_VIEW_PADDING_DIPS = 16;
69
- private static final int TAB_VIEW_TEXT_SIZE_SP = 12;
70
- private static final int TEXT_MAX_WIDTH = 180;
71
- private static final int SMALL_MIN_HEIGHT = 48;
72
- private static final int LARGE_MIN_HEIGHT = 72;
73
-
74
- private final int mTitleOffset;
75
-
76
- private boolean mDistributeEvenly = true;
77
-
78
- private TabItemSpec[] mTabItems;
79
- private ViewPager mViewPager;
80
- private final SparseArray<String> mContentDescriptions = new SparseArray<>();
81
- private ViewPager.OnPageChangeListener mViewPagerPageChangeListener;
82
-
83
- private final TabStrip mTabStrip;
84
-
85
- public TabLayout(Context context) {
86
- this(context, null);
87
- }
88
-
89
- public TabLayout(Context context, AttributeSet attrs) {
90
- this(context, attrs, 0);
91
- }
92
-
93
- public TabLayout(Context context, AttributeSet attrs, int defStyle) {
94
- super(context, attrs, defStyle);
95
- // Disable the Scroll Bar
96
- setHorizontalScrollBarEnabled(false);
97
- // Make sure that the Tab Strips fills this View
98
- setFillViewport(true);
99
-
100
- mTitleOffset = (int) (TITLE_OFFSET_DIPS * getResources().getDisplayMetrics().density);
101
-
102
- mTabStrip = new TabStrip(context);
103
- addView(mTabStrip, LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
104
- }
105
-
106
- /**
107
- * Set the custom {@link TabColorizer} to be used.
108
- * <p>
109
- * If you only require simple customisation then you can use
110
- * {@link #setSelectedIndicatorColors(int...)} to achieve similar effects.
111
- */
112
- public void setCustomTabColorizer(TabColorizer tabColorizer) {
113
- mTabStrip.setCustomTabColorizer(tabColorizer);
114
- }
115
-
116
- public void setDistributeEvenly(boolean distributeEvenly) {
117
- mDistributeEvenly = distributeEvenly;
118
- }
119
-
120
- /**
121
- * Sets the colors to be used for indicating the selected tab. These colors
122
- * are treated as a circular array. Providing one color will mean that all
123
- * tabs are indicated with the same color.
124
- */
125
- public void setSelectedIndicatorColors(int... colors) {
126
- mTabStrip.setSelectedIndicatorColors(colors);
127
- this.mSelectedIndicatorColors = colors;
128
- }
129
-
130
- private int[] mSelectedIndicatorColors;
131
-
132
- public int[] getSelectedIndicatorColors() {
133
- return this.mSelectedIndicatorColors;
134
- }
135
-
136
- public void setIconRenderingMode(TabIconRenderingMode mode) {
137
- mTabStrip.setIconRenderingMode(mode);
138
- }
139
-
140
- public TabIconRenderingMode getIconRenderingMode() {
141
- return mTabStrip.getIconRenderingMode();
142
- }
143
-
144
- public void setTabTextColor(int color) {
145
- mTabStrip.setTabTextColor(color);
146
- }
147
-
148
- public int getTabTextColor() {
149
- return mTabStrip.getTabTextColor();
150
- }
151
-
152
- public void setSelectedTabTextColor(int color) {
153
- mTabStrip.setSelectedTabTextColor(color);
154
- }
155
-
156
- public int getSelectedTabTextColor() {
157
- return mTabStrip.getSelectedTabTextColor();
158
- }
159
-
160
- public void setTabTextFontSize(float fontSize) {
161
- mTabStrip.setTabTextFontSize(fontSize);
162
- }
163
-
164
- public float getTabTextFontSize() {
165
- return mTabStrip.getTabTextFontSize();
166
- }
167
-
168
- /**
169
- * Set the {@link ViewPager.OnPageChangeListener}. When using
170
- * {@link TabLayout} you are required to set any
171
- * {@link ViewPager.OnPageChangeListener} through this method. This is so
172
- * that the layout can update it's scroll position correctly.
173
- *
174
- * @see ViewPager#setOnPageChangeListener(ViewPager.OnPageChangeListener)
175
- */
176
- public void setOnPageChangeListener(ViewPager.OnPageChangeListener listener) {
177
- mViewPagerPageChangeListener = listener;
178
- }
179
-
180
- /**
181
- * Sets the associated view pager. Note that the assumption here is that the
182
- * pager content (number of tabs and tab titles) does not change after this
183
- * call has been made.
184
- */
185
- public void setViewPager(ViewPager viewPager) {
186
- this.setItems(null, viewPager);
187
- }
188
-
189
- public void setItems(TabItemSpec[] items, ViewPager viewPager) {
190
- mTabStrip.removeAllViews();
191
-
192
- mViewPager = viewPager;
193
- mTabItems = items;
194
- if (viewPager != null) {
195
- viewPager.addOnPageChangeListener(new InternalViewPagerListener());
196
- populateTabStrip();
197
- }
198
- }
199
-
200
- /**
201
- * Updates the UI of an item at specified index
202
- */
203
- public void updateItemAt(int position, TabItemSpec tabItem) {
204
- LinearLayout ll = (LinearLayout) mTabStrip.getChildAt(position);
205
- ImageView imgView = (ImageView) ll.getChildAt(0);
206
- TextView textView = (TextView) ll.getChildAt(1);
207
- this.setupItem(ll, textView, imgView, tabItem);
208
- }
209
-
210
- /**
211
- * Gets the TextView for tab item at index
212
- */
213
- public TextView getTextViewForItemAt(int index) {
214
- LinearLayout ll = this.getViewForItemAt(index);
215
- return (ll != null) ? (TextView) ll.getChildAt(1) : null;
216
- }
217
-
218
- /**
219
- * Gets the LinearLayout container for tab item at index
220
- */
221
- public LinearLayout getViewForItemAt(int index) {
222
- LinearLayout result = null;
223
-
224
- if (this.mTabStrip.getChildCount() > index) {
225
- result = (LinearLayout) this.mTabStrip.getChildAt(index);
226
- }
227
-
228
- return result;
229
- }
230
-
231
- /**
232
- * Gets the number of realized tabs.
233
- */
234
- public int getItemCount() {
235
- return this.mTabStrip.getChildCount();
236
- }
237
-
238
- /**
239
- * Create a default view to be used for tabs.
240
- */
241
- protected View createDefaultTabView(Context context, TabItemSpec tabItem) {
242
- float density = getResources().getDisplayMetrics().density;
243
- int padding = (int) (TAB_VIEW_PADDING_DIPS * density);
244
-
245
- LinearLayout ll = new LinearLayout(context);
246
- ll.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.MATCH_PARENT));
247
- ll.setGravity(Gravity.CENTER);
248
- ll.setOrientation(LinearLayout.VERTICAL);
249
- TypedValue outValue = new TypedValue();
250
- getContext().getTheme().resolveAttribute(android.R.attr.selectableItemBackground, outValue, true);
251
- ll.setBackgroundResource(outValue.resourceId);
252
-
253
- ImageView imgView = new ImageView(context);
254
- imgView.setScaleType(ScaleType.FIT_CENTER);
255
- LinearLayout.LayoutParams imgLP = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
256
- imgLP.gravity = Gravity.CENTER;
257
- imgView.setLayoutParams(imgLP);
258
-
259
- TextView textView = new TextView(context);
260
- textView.setGravity(Gravity.CENTER);
261
- textView.setMaxWidth((int) (TEXT_MAX_WIDTH * density));
262
- textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, TAB_VIEW_TEXT_SIZE_SP);
263
- textView.setTypeface(Typeface.DEFAULT_BOLD);
264
- textView.setEllipsize(TextUtils.TruncateAt.END);
265
- textView.setAllCaps(true);
266
- textView.setMaxLines(2);
267
- textView.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
268
- textView.setPadding(padding, 0, padding, 0);
269
-
270
- this.setupItem(ll, textView, imgView, tabItem);
271
-
272
- ll.addView(imgView);
273
- ll.addView(textView);
274
- return ll;
275
- }
276
-
277
- private void setupItem(LinearLayout ll, TextView textView, ImageView imgView, TabItemSpec tabItem) {
278
- float density = getResources().getDisplayMetrics().density;
279
-
280
- if (tabItem.iconId != 0) {
281
- imgView.setImageResource(tabItem.iconId);
282
- imgView.setVisibility(VISIBLE);
283
- } else if (tabItem.iconDrawable != null) {
284
- imgView.setImageDrawable(tabItem.iconDrawable);
285
- imgView.setVisibility(VISIBLE);
286
- } else {
287
- imgView.setVisibility(GONE);
288
- }
289
-
290
- if (tabItem.title != null && !tabItem.title.isEmpty()) {
291
- textView.setText(tabItem.title);
292
- textView.setVisibility(VISIBLE);
293
- } else {
294
- textView.setVisibility(GONE);
295
- }
296
-
297
- if (tabItem.backgroundColor != 0) {
298
- ll.setBackgroundColor(tabItem.backgroundColor);
299
- }
300
-
301
- if (imgView.getVisibility() == VISIBLE && textView.getVisibility() == VISIBLE) {
302
- ll.setMinimumHeight((int) (LARGE_MIN_HEIGHT * density));
303
- } else {
304
- ll.setMinimumHeight((int) (SMALL_MIN_HEIGHT * density));
305
- }
306
-
307
- if (mDistributeEvenly) {
308
- LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) ll.getLayoutParams();
309
- lp.width = 0;
310
- lp.weight = 1;
311
- }
312
- }
313
-
314
- public boolean onTap(int position) {
315
- // to be overridden in JS
316
- return true;
317
- }
318
-
319
- public void onSelectedPositionChange(int position, int prevPosition) {
320
- // to be overridden in JS
321
- }
322
-
323
- private void populateTabStrip() {
324
- final PagerAdapter adapter = mViewPager.getAdapter();
325
- final OnClickListener tabClickListener = new TabClickListener();
326
-
327
- for (int i = 0; i < adapter.getCount(); i++) {
328
- View tabView = null;
329
-
330
- TabItemSpec tabItem;
331
- if (this.mTabItems != null && this.mTabItems.length > i) {
332
- tabItem = this.mTabItems[i];
333
- } else {
334
- tabItem = new TabItemSpec();
335
- tabItem.title = adapter.getPageTitle(i).toString();
336
- }
337
-
338
- tabView = createDefaultTabView(getContext(), tabItem);
339
-
340
- tabView.setOnClickListener(tabClickListener);
341
- String desc = mContentDescriptions.get(i, null);
342
- if (desc != null) {
343
- tabView.setContentDescription(desc);
344
- }
345
-
346
- mTabStrip.addView(tabView);
347
- if (i == mViewPager.getCurrentItem()) {
348
- tabView.setSelected(true);
349
- }
350
- }
351
- }
352
-
353
- public void setContentDescription(int i, String desc) {
354
- mContentDescriptions.put(i, desc);
355
- }
356
-
357
- @Override
358
- protected void onAttachedToWindow() {
359
- super.onAttachedToWindow();
360
-
361
- if (mViewPager != null) {
362
- scrollToTab(mViewPager.getCurrentItem(), 0);
363
- }
364
- }
365
-
366
- private void scrollToTab(int tabIndex, int positionOffset) {
367
- final int tabStripChildCount = mTabStrip.getChildCount();
368
- if (tabStripChildCount == 0 || tabIndex < 0 || tabIndex >= tabStripChildCount) {
369
- return;
370
- }
371
-
372
- View selectedChild = mTabStrip.getChildAt(tabIndex);
373
- if (selectedChild != null) {
374
- int targetScrollX = selectedChild.getLeft() + positionOffset;
375
-
376
- if (tabIndex > 0 || positionOffset > 0) {
377
- // If we're not at the first child and are mid-scroll, make sure
378
- // we obey the offset
379
- targetScrollX -= mTitleOffset;
380
- }
381
-
382
- scrollTo(targetScrollX, 0);
383
- }
384
- }
385
-
386
- private class InternalViewPagerListener implements ViewPager.OnPageChangeListener {
387
- private int mScrollState;
388
-
389
- @Override
390
- public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
391
- int tabStripChildCount = mTabStrip.getChildCount();
392
- if ((tabStripChildCount == 0) || (position < 0) || (position >= tabStripChildCount)) {
393
- return;
394
- }
395
-
396
- int prevPosition = mTabStrip.getSelectedPosition();
397
-
398
- if (prevPosition != position) {
399
- onSelectedPositionChange(position, prevPosition);
400
- }
401
-
402
- mTabStrip.onViewPagerPageChanged(position, positionOffset);
403
-
404
- View selectedTitle = mTabStrip.getChildAt(position);
405
- int extraOffset = (selectedTitle != null) ? (int) (positionOffset * selectedTitle.getWidth()) : 0;
406
- scrollToTab(position, extraOffset);
407
-
408
- if (mViewPagerPageChangeListener != null) {
409
- mViewPagerPageChangeListener.onPageScrolled(position, positionOffset, positionOffsetPixels);
410
- }
411
- }
412
-
413
- @Override
414
- public void onPageScrollStateChanged(int state) {
415
- mScrollState = state;
416
-
417
- if (mViewPagerPageChangeListener != null) {
418
- mViewPagerPageChangeListener.onPageScrollStateChanged(state);
419
- }
420
- }
421
-
422
- @Override
423
- public void onPageSelected(int position) {
424
- if (mScrollState == ViewPager.SCROLL_STATE_IDLE) {
425
- mTabStrip.onViewPagerPageChanged(position, 0f);
426
- scrollToTab(position, 0);
427
- }
428
- for (int i = 0; i < mTabStrip.getChildCount(); i++) {
429
- mTabStrip.getChildAt(i).setSelected(position == i);
430
- }
431
- if (mViewPagerPageChangeListener != null) {
432
- mViewPagerPageChangeListener.onPageSelected(position);
433
- }
434
- }
435
-
436
- }
437
-
438
- private class TabClickListener implements OnClickListener {
439
- @Override
440
- public void onClick(View v) {
441
- for (int i = 0; i < mTabStrip.getChildCount(); i++) {
442
- if (v == mTabStrip.getChildAt(i)) {
443
- if (onTap(i)) {
444
- mViewPager.setCurrentItem(i);
445
- }
446
- return;
447
- }
448
- }
449
- }
450
- }
451
- }