@nativescript/core 8.9.0-alpha.3 → 8.9.0-napi-es5.0

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 (758) hide show
  1. package/abortcontroller/abortsignal.js +23 -16
  2. package/abortcontroller/abortsignal.js.map +1 -1
  3. package/abortcontroller/index.js +20 -14
  4. package/abortcontroller/index.js.map +1 -1
  5. package/accessibility/accessibility-common.js +8 -8
  6. package/accessibility/accessibility-common.js.map +1 -1
  7. package/accessibility/accessibility-css-helper.js +27 -27
  8. package/accessibility/accessibility-css-helper.js.map +1 -1
  9. package/accessibility/accessibility-properties.js +23 -23
  10. package/accessibility/accessibility-properties.js.map +1 -1
  11. package/accessibility/accessibility-service-common.js +22 -12
  12. package/accessibility/accessibility-service-common.js.map +1 -1
  13. package/accessibility/accessibility-service.android.js +39 -27
  14. package/accessibility/accessibility-service.android.js.map +1 -1
  15. package/accessibility/accessibility-service.ios.js +17 -14
  16. package/accessibility/accessibility-service.ios.js.map +1 -1
  17. package/accessibility/font-scale-common.js +2 -2
  18. package/accessibility/font-scale-common.js.map +1 -1
  19. package/accessibility/font-scale.android.js +8 -7
  20. package/accessibility/font-scale.android.js.map +1 -1
  21. package/accessibility/font-scale.ios.js +10 -9
  22. package/accessibility/font-scale.ios.js.map +1 -1
  23. package/accessibility/index.android.js +83 -77
  24. package/accessibility/index.android.js.map +1 -1
  25. package/accessibility/index.ios.js +36 -34
  26. package/accessibility/index.ios.js.map +1 -1
  27. package/animation-frame/animation-native.ios.js +1 -1
  28. package/animation-frame/animation-native.ios.js.map +1 -1
  29. package/animation-frame/index.js +16 -16
  30. package/animation-frame/index.js.map +1 -1
  31. package/application/application-common.js +214 -196
  32. package/application/application-common.js.map +1 -1
  33. package/application/application-shims.js +39 -39
  34. package/application/application-shims.js.map +1 -1
  35. package/application/application.android.js +149 -110
  36. package/application/application.android.js.map +1 -1
  37. package/application/application.ios.js +197 -162
  38. package/application/application.ios.js.map +1 -1
  39. package/application-settings/index.android.js +11 -11
  40. package/application-settings/index.android.js.map +1 -1
  41. package/application-settings/index.ios.js +1 -1
  42. package/application-settings/index.ios.js.map +1 -1
  43. package/bundle-entry-points.js +1 -1
  44. package/bundle-entry-points.js.map +1 -1
  45. package/color/color-common.js +200 -157
  46. package/color/color-common.js.map +1 -1
  47. package/color/index.android.js +14 -4
  48. package/color/index.android.js.map +1 -1
  49. package/color/index.ios.js +24 -14
  50. package/color/index.ios.js.map +1 -1
  51. package/color/known-colors.js +144 -144
  52. package/color/known-colors.js.map +1 -1
  53. package/connectivity/index.android.js +23 -23
  54. package/connectivity/index.android.js.map +1 -1
  55. package/connectivity/index.ios.js +25 -25
  56. package/connectivity/index.ios.js.map +1 -1
  57. package/console/index.js +24 -20
  58. package/console/index.js.map +1 -1
  59. package/core-types/index.d.ts +2 -2
  60. package/core-types/index.js +41 -41
  61. package/core-types/index.js.map +1 -1
  62. package/css/CSS3Parser.js +106 -104
  63. package/css/CSS3Parser.js.map +1 -1
  64. package/css/CSSNativeScript.js +34 -29
  65. package/css/CSSNativeScript.js.map +1 -1
  66. package/css/css-tree-parser.js.map +1 -1
  67. package/css/parser.js +179 -158
  68. package/css/parser.js.map +1 -1
  69. package/css/system-classes.js +9 -9
  70. package/css/system-classes.js.map +1 -1
  71. package/css-mediaquery/index.js +29 -27
  72. package/css-mediaquery/index.js.map +1 -1
  73. package/data/observable/index.d.ts +1 -0
  74. package/data/observable/index.js +124 -114
  75. package/data/observable/index.js.map +1 -1
  76. package/data/observable-array/index.js +176 -119
  77. package/data/observable-array/index.js.map +1 -1
  78. package/data/virtual-array/index.js +74 -61
  79. package/data/virtual-array/index.js.map +1 -1
  80. package/debugger/InspectorBackendCommands.js +161 -137
  81. package/debugger/InspectorBackendCommands.js.map +1 -1
  82. package/debugger/devtools-elements.common.js +20 -20
  83. package/debugger/devtools-elements.common.js.map +1 -1
  84. package/debugger/devtools-elements.js +2 -2
  85. package/debugger/devtools-elements.js.map +1 -1
  86. package/debugger/dom-node.js +73 -61
  87. package/debugger/dom-node.js.map +1 -1
  88. package/debugger/index.js +19 -19
  89. package/debugger/index.js.map +1 -1
  90. package/debugger/webinspector-css.js +30 -25
  91. package/debugger/webinspector-css.js.map +1 -1
  92. package/debugger/webinspector-dom.js +43 -38
  93. package/debugger/webinspector-dom.js.map +1 -1
  94. package/debugger/webinspector-network.android.js +132 -103
  95. package/debugger/webinspector-network.android.js.map +1 -1
  96. package/debugger/webinspector-network.ios.js +128 -100
  97. package/debugger/webinspector-network.ios.js.map +1 -1
  98. package/file-system/file-system-access.android.js +421 -414
  99. package/file-system/file-system-access.android.js.map +1 -1
  100. package/file-system/file-system-access.ios.js +215 -205
  101. package/file-system/file-system-access.ios.js.map +1 -1
  102. package/file-system/index.js +372 -294
  103. package/file-system/index.js.map +1 -1
  104. package/fps-meter/fps-native.android.js +18 -15
  105. package/fps-meter/fps-native.android.js.map +1 -1
  106. package/fps-meter/fps-native.ios.js +11 -9
  107. package/fps-meter/fps-native.ios.js.map +1 -1
  108. package/fps-meter/index.js +11 -11
  109. package/fps-meter/index.js.map +1 -1
  110. package/globals/index.js +117 -91
  111. package/globals/index.js.map +1 -1
  112. package/http/http-request/http-request-common.js +5 -5
  113. package/http/http-request/http-request-common.js.map +1 -1
  114. package/http/http-request/index.android.js +54 -53
  115. package/http/http-request/index.android.js.map +1 -1
  116. package/http/http-request/index.ios.js +58 -56
  117. package/http/http-request/index.ios.js.map +1 -1
  118. package/http/index.js +19 -19
  119. package/http/index.js.map +1 -1
  120. package/image-asset/image-asset-common.js +37 -25
  121. package/image-asset/image-asset-common.js.map +1 -1
  122. package/image-asset/index.android.js +25 -17
  123. package/image-asset/index.android.js.map +1 -1
  124. package/image-asset/index.ios.js +35 -25
  125. package/image-asset/index.ios.js.map +1 -1
  126. package/image-source/image-source-common.js +2 -2
  127. package/image-source/image-source-common.js.map +1 -1
  128. package/image-source/index.android.d.ts +3 -2
  129. package/image-source/index.android.js +189 -156
  130. package/image-source/index.android.js.map +1 -1
  131. package/image-source/index.d.ts +5 -0
  132. package/image-source/index.ios.d.ts +3 -2
  133. package/image-source/index.ios.js +211 -178
  134. package/image-source/index.ios.js.map +1 -1
  135. package/index.d.ts +1 -1
  136. package/index.js +8 -4
  137. package/index.js.map +1 -1
  138. package/matrix/index.js +27 -17
  139. package/matrix/index.js.map +1 -1
  140. package/media-query-list/index.js +87 -61
  141. package/media-query-list/index.js.map +1 -1
  142. package/module-name-resolver/index.js +24 -21
  143. package/module-name-resolver/index.js.map +1 -1
  144. package/module-name-resolver/non-bundle-workflow-compat.js +24 -24
  145. package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
  146. package/module-name-resolver/qualifier-matcher/index.js +46 -46
  147. package/module-name-resolver/qualifier-matcher/index.js.map +1 -1
  148. package/package.json +1 -1
  149. package/platform/common.js +5 -5
  150. package/platform/common.js.map +1 -1
  151. package/platform/device/index.android.js +107 -68
  152. package/platform/device/index.android.js.map +1 -1
  153. package/platform/device/index.ios.js +101 -62
  154. package/platform/device/index.ios.js.map +1 -1
  155. package/platform/screen/index.android.js +63 -32
  156. package/platform/screen/index.android.js.map +1 -1
  157. package/platform/screen/index.ios.js +60 -29
  158. package/platform/screen/index.ios.js.map +1 -1
  159. package/platforms/android/widgets-release.aar +0 -0
  160. package/platforms/android/winter_tc-release.aar +0 -0
  161. package/platforms/ios/{NSCWinterCG.xcframework → NSCWinterTC.xcframework}/Info.plist +22 -22
  162. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework}/Headers/NSCCrypto.h +1 -1
  163. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  164. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h} +3 -3
  165. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework}/Info.plist +0 -0
  166. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  167. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/NSCWinterTC} +0 -0
  168. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
  169. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  170. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  171. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework}/Headers/NSCCrypto.h +1 -1
  172. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  173. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h} +3 -3
  174. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  175. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/NSCWinterTC} +0 -0
  176. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework}/Resources/Info.plist +10 -10
  177. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A}/Headers/NSCCrypto.h +1 -1
  178. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCWinterTC.h +20 -0
  179. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSString+WinterTC.h} +3 -3
  180. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Modules/module.modulemap +6 -0
  181. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/NSCWinterTC} +0 -0
  182. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A}/Resources/Info.plist +10 -10
  183. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/Current/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC} +0 -0
  184. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
  185. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  186. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  187. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  188. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework}/Headers/NSCCrypto.h +1 -1
  189. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  190. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h} +3 -3
  191. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework}/Info.plist +0 -0
  192. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  193. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC} +0 -0
  194. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework}/_CodeSignature/CodeResources +13 -13
  195. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
  196. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  197. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  198. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  199. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  200. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  201. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  202. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework → NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework}/Info.plist +0 -0
  203. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  204. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/NSCWinterTC} +0 -0
  205. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
  206. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  207. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  208. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  209. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  210. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  211. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework}/Info.plist +0 -0
  212. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  213. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC} +0 -0
  214. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework}/_CodeSignature/CodeResources +13 -13
  215. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  216. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  217. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  218. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  219. package/platforms/ios/src/NativeScriptMainWindow.swift +24 -7
  220. package/platforms/ios/src/UIView+NativeScript.m +2 -4
  221. package/profiling/index.js +47 -40
  222. package/profiling/index.js.map +1 -1
  223. package/text/text-common.js +49 -36
  224. package/text/text-common.js.map +1 -1
  225. package/timer/index.android.js +30 -20
  226. package/timer/index.android.js.map +1 -1
  227. package/timer/index.ios.js +22 -12
  228. package/timer/index.ios.js.map +1 -1
  229. package/trace/index.js +36 -26
  230. package/trace/index.js.map +1 -1
  231. package/ui/action-bar/action-bar-common.js +252 -193
  232. package/ui/action-bar/action-bar-common.js.map +1 -1
  233. package/ui/action-bar/index.android.d.ts +1 -0
  234. package/ui/action-bar/index.android.js +212 -167
  235. package/ui/action-bar/index.android.js.map +1 -1
  236. package/ui/action-bar/index.d.ts +33 -0
  237. package/ui/action-bar/index.ios.d.ts +7 -2
  238. package/ui/action-bar/index.ios.js +337 -193
  239. package/ui/action-bar/index.ios.js.map +1 -1
  240. package/ui/activity-indicator/activity-indicator-common.js +11 -6
  241. package/ui/activity-indicator/activity-indicator-common.js.map +1 -1
  242. package/ui/activity-indicator/index.android.js +26 -20
  243. package/ui/activity-indicator/index.android.js.map +1 -1
  244. package/ui/activity-indicator/index.d.ts +4 -0
  245. package/ui/activity-indicator/index.ios.js +31 -23
  246. package/ui/activity-indicator/index.ios.js.map +1 -1
  247. package/ui/animation/animation-common.d.ts +1 -8
  248. package/ui/animation/animation-common.js +50 -51
  249. package/ui/animation/animation-common.js.map +1 -1
  250. package/ui/animation/animation-interfaces.d.ts +11 -0
  251. package/ui/animation/animation-interfaces.js +14 -1
  252. package/ui/animation/animation-interfaces.js.map +1 -1
  253. package/ui/animation/index.android.d.ts +2 -2
  254. package/ui/animation/index.android.js +96 -92
  255. package/ui/animation/index.android.js.map +1 -1
  256. package/ui/animation/index.d.ts +0 -13
  257. package/ui/animation/index.ios.d.ts +2 -2
  258. package/ui/animation/index.ios.js +195 -229
  259. package/ui/animation/index.ios.js.map +1 -1
  260. package/ui/animation/keyframe-animation.js +89 -67
  261. package/ui/animation/keyframe-animation.js.map +1 -1
  262. package/ui/builder/binding-builder.js +31 -31
  263. package/ui/builder/binding-builder.js.map +1 -1
  264. package/ui/builder/component-builder/index.js +37 -37
  265. package/ui/builder/component-builder/index.js.map +1 -1
  266. package/ui/builder/index.js +59 -54
  267. package/ui/builder/index.js.map +1 -1
  268. package/ui/builder/xml2ui.js +158 -128
  269. package/ui/builder/xml2ui.js.map +1 -1
  270. package/ui/button/button-common.js +25 -18
  271. package/ui/button/button-common.js.map +1 -1
  272. package/ui/button/index.android.d.ts +1 -1
  273. package/ui/button/index.android.js +93 -80
  274. package/ui/button/index.android.js.map +1 -1
  275. package/ui/button/index.d.ts +6 -0
  276. package/ui/button/index.ios.js +118 -101
  277. package/ui/button/index.ios.js.map +1 -1
  278. package/ui/content-view/index.d.ts +9 -0
  279. package/ui/content-view/index.js +78 -60
  280. package/ui/content-view/index.js.map +1 -1
  281. package/ui/core/bindable/bindable-expressions.js +101 -93
  282. package/ui/core/bindable/bindable-expressions.js.map +1 -1
  283. package/ui/core/bindable/bindable-resources.js +1 -1
  284. package/ui/core/bindable/index.js +141 -136
  285. package/ui/core/bindable/index.js.map +1 -1
  286. package/ui/core/control-state-change/index.android.d.ts +2 -2
  287. package/ui/core/control-state-change/index.android.js +7 -5
  288. package/ui/core/control-state-change/index.android.js.map +1 -1
  289. package/ui/core/control-state-change/index.d.ts +4 -2
  290. package/ui/core/control-state-change/index.ios.d.ts +3 -7
  291. package/ui/core/control-state-change/index.ios.js +29 -42
  292. package/ui/core/control-state-change/index.ios.js.map +1 -1
  293. package/ui/core/properties/index.js +489 -440
  294. package/ui/core/properties/index.js.map +1 -1
  295. package/ui/core/view/index.android.d.ts +2 -7
  296. package/ui/core/view/index.android.js +387 -352
  297. package/ui/core/view/index.android.js.map +1 -1
  298. package/ui/core/view/index.d.ts +238 -14
  299. package/ui/core/view/index.ios.d.ts +3 -13
  300. package/ui/core/view/index.ios.js +411 -367
  301. package/ui/core/view/index.ios.js.map +1 -1
  302. package/ui/core/view/view-common.d.ts +11 -15
  303. package/ui/core/view/view-common.js +951 -654
  304. package/ui/core/view/view-common.js.map +1 -1
  305. package/ui/core/view/view-helper/index.android.js +19 -15
  306. package/ui/core/view/view-helper/index.android.js.map +1 -1
  307. package/ui/core/view/view-helper/index.d.ts +3 -3
  308. package/ui/core/view/view-helper/index.ios.d.ts +3 -18
  309. package/ui/core/view/view-helper/index.ios.js +85 -81
  310. package/ui/core/view/view-helper/index.ios.js.map +1 -1
  311. package/ui/core/view/view-helper/view-helper-common.js +49 -44
  312. package/ui/core/view/view-helper/view-helper-common.js.map +1 -1
  313. package/ui/core/view-base/index.d.ts +107 -4
  314. package/ui/core/view-base/index.js +452 -349
  315. package/ui/core/view-base/index.js.map +1 -1
  316. package/ui/core/weak-event-listener/index.js +26 -25
  317. package/ui/core/weak-event-listener/index.js.map +1 -1
  318. package/ui/date-picker/date-picker-common.d.ts +1 -0
  319. package/ui/date-picker/date-picker-common.js +35 -29
  320. package/ui/date-picker/date-picker-common.js.map +1 -1
  321. package/ui/date-picker/index.android.js +51 -43
  322. package/ui/date-picker/index.android.js.map +1 -1
  323. package/ui/date-picker/index.d.ts +30 -0
  324. package/ui/date-picker/index.ios.js +61 -51
  325. package/ui/date-picker/index.ios.js.map +1 -1
  326. package/ui/dialogs/dialogs-common.js +18 -18
  327. package/ui/dialogs/dialogs-common.js.map +1 -1
  328. package/ui/dialogs/index.android.js +98 -86
  329. package/ui/dialogs/index.android.js.map +1 -1
  330. package/ui/dialogs/index.ios.js +80 -67
  331. package/ui/dialogs/index.ios.js.map +1 -1
  332. package/ui/editable-text-base/editable-text-base-common.d.ts +1 -2
  333. package/ui/editable-text-base/editable-text-base-common.js +44 -32
  334. package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
  335. package/ui/editable-text-base/index.android.js +112 -106
  336. package/ui/editable-text-base/index.android.js.map +1 -1
  337. package/ui/editable-text-base/index.d.ts +42 -0
  338. package/ui/editable-text-base/index.ios.js +53 -47
  339. package/ui/editable-text-base/index.ios.js.map +1 -1
  340. package/ui/embedding/index.android.js +3 -2
  341. package/ui/embedding/index.android.js.map +1 -1
  342. package/ui/frame/activity.android.js +44 -44
  343. package/ui/frame/activity.android.js.map +1 -1
  344. package/ui/frame/callbacks/activity-callbacks.js +123 -118
  345. package/ui/frame/callbacks/activity-callbacks.js.map +1 -1
  346. package/ui/frame/callbacks/fragment-callbacks.js +141 -139
  347. package/ui/frame/callbacks/fragment-callbacks.js.map +1 -1
  348. package/ui/frame/fragment.android.js +21 -21
  349. package/ui/frame/fragment.android.js.map +1 -1
  350. package/ui/frame/fragment.ios.js +1 -1
  351. package/ui/frame/fragment.transitions.android.js +114 -105
  352. package/ui/frame/fragment.transitions.android.js.map +1 -1
  353. package/ui/frame/frame-common.d.ts +4 -3
  354. package/ui/frame/frame-common.js +288 -252
  355. package/ui/frame/frame-common.js.map +1 -1
  356. package/ui/frame/frame-helpers.js +1 -1
  357. package/ui/frame/frame-helpers.js.map +1 -1
  358. package/ui/frame/frame-stack.js +4 -4
  359. package/ui/frame/frame-stack.js.map +1 -1
  360. package/ui/frame/index.android.js +291 -239
  361. package/ui/frame/index.android.js.map +1 -1
  362. package/ui/frame/index.d.ts +40 -3
  363. package/ui/frame/index.ios.js +167 -133
  364. package/ui/frame/index.ios.js.map +1 -1
  365. package/ui/gestures/gestures-common.d.ts +22 -0
  366. package/ui/gestures/gestures-common.js +51 -15
  367. package/ui/gestures/gestures-common.js.map +1 -1
  368. package/ui/gestures/index.android.d.ts +1 -1
  369. package/ui/gestures/index.android.js +124 -109
  370. package/ui/gestures/index.android.js.map +1 -1
  371. package/ui/gestures/index.ios.d.ts +1 -1
  372. package/ui/gestures/index.ios.js +121 -108
  373. package/ui/gestures/index.ios.js.map +1 -1
  374. package/ui/gestures/touch-manager.d.ts +1 -1
  375. package/ui/gestures/touch-manager.js +48 -43
  376. package/ui/gestures/touch-manager.js.map +1 -1
  377. package/ui/html-view/html-view-common.d.ts +1 -0
  378. package/ui/html-view/html-view-common.js +14 -9
  379. package/ui/html-view/html-view-common.js.map +1 -1
  380. package/ui/html-view/index.android.js +43 -37
  381. package/ui/html-view/index.android.js.map +1 -1
  382. package/ui/html-view/index.d.ts +16 -2
  383. package/ui/html-view/index.ios.js +73 -62
  384. package/ui/html-view/index.ios.js.map +1 -1
  385. package/ui/image/image-common.d.ts +2 -0
  386. package/ui/image/image-common.js +59 -47
  387. package/ui/image/image-common.js.map +1 -1
  388. package/ui/image/index.android.js +59 -54
  389. package/ui/image/index.android.js.map +1 -1
  390. package/ui/image/index.d.ts +43 -1
  391. package/ui/image/index.ios.js +72 -65
  392. package/ui/image/index.ios.js.map +1 -1
  393. package/ui/image/symbol-effects-common.js +6 -2
  394. package/ui/image/symbol-effects-common.js.map +1 -1
  395. package/ui/image/symbol-effects.android.js +10 -4
  396. package/ui/image/symbol-effects.android.js.map +1 -1
  397. package/ui/image/symbol-effects.ios.js +11 -7
  398. package/ui/image/symbol-effects.ios.js.map +1 -1
  399. package/ui/image-cache/image-cache-common.js +61 -57
  400. package/ui/image-cache/image-cache-common.js.map +1 -1
  401. package/ui/image-cache/index.android.js +27 -23
  402. package/ui/image-cache/index.android.js.map +1 -1
  403. package/ui/image-cache/index.ios.js +29 -24
  404. package/ui/image-cache/index.ios.js.map +1 -1
  405. package/ui/index.d.ts +3 -1
  406. package/ui/index.js +1 -1
  407. package/ui/index.js.map +1 -1
  408. package/ui/label/index.android.js +38 -29
  409. package/ui/label/index.android.js.map +1 -1
  410. package/ui/label/index.d.ts +4 -0
  411. package/ui/label/index.ios.js +102 -89
  412. package/ui/label/index.ios.js.map +1 -1
  413. package/ui/layouts/absolute-layout/absolute-layout-common.js +30 -25
  414. package/ui/layouts/absolute-layout/absolute-layout-common.js.map +1 -1
  415. package/ui/layouts/absolute-layout/index.android.js +12 -6
  416. package/ui/layouts/absolute-layout/index.android.js.map +1 -1
  417. package/ui/layouts/absolute-layout/index.d.ts +2 -0
  418. package/ui/layouts/absolute-layout/index.ios.js +40 -32
  419. package/ui/layouts/absolute-layout/index.ios.js.map +1 -1
  420. package/ui/layouts/dock-layout/dock-layout-common.js +21 -16
  421. package/ui/layouts/dock-layout/dock-layout-common.js.map +1 -1
  422. package/ui/layouts/dock-layout/index.android.js +17 -11
  423. package/ui/layouts/dock-layout/index.android.js.map +1 -1
  424. package/ui/layouts/dock-layout/index.d.ts +5 -1
  425. package/ui/layouts/dock-layout/index.ios.js +53 -45
  426. package/ui/layouts/dock-layout/index.ios.js.map +1 -1
  427. package/ui/layouts/flexbox-layout/flexbox-layout-common.js +115 -90
  428. package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +1 -1
  429. package/ui/layouts/flexbox-layout/index.android.js +97 -92
  430. package/ui/layouts/flexbox-layout/index.android.js.map +1 -1
  431. package/ui/layouts/flexbox-layout/index.d.ts +32 -0
  432. package/ui/layouts/flexbox-layout/index.ios.js +427 -366
  433. package/ui/layouts/flexbox-layout/index.ios.js.map +1 -1
  434. package/ui/layouts/grid-layout/grid-layout-common.js +211 -159
  435. package/ui/layouts/grid-layout/grid-layout-common.js.map +1 -1
  436. package/ui/layouts/grid-layout/index.android.js +55 -49
  437. package/ui/layouts/grid-layout/index.android.js.map +1 -1
  438. package/ui/layouts/grid-layout/index.d.ts +19 -0
  439. package/ui/layouts/grid-layout/index.ios.js +348 -340
  440. package/ui/layouts/grid-layout/index.ios.js.map +1 -1
  441. package/ui/layouts/layout-base-common.d.ts +0 -1
  442. package/ui/layouts/layout-base-common.js +106 -85
  443. package/ui/layouts/layout-base-common.js.map +1 -1
  444. package/ui/layouts/layout-base.android.js +31 -25
  445. package/ui/layouts/layout-base.android.js.map +1 -1
  446. package/ui/layouts/layout-base.d.ts +14 -0
  447. package/ui/layouts/layout-base.ios.js +27 -21
  448. package/ui/layouts/layout-base.ios.js.map +1 -1
  449. package/ui/layouts/root-layout/index.android.js +46 -47
  450. package/ui/layouts/root-layout/index.android.js.map +1 -1
  451. package/ui/layouts/root-layout/index.d.ts +3 -0
  452. package/ui/layouts/root-layout/index.ios.js +53 -54
  453. package/ui/layouts/root-layout/index.ios.js.map +1 -1
  454. package/ui/layouts/root-layout/root-layout-common.js +190 -186
  455. package/ui/layouts/root-layout/root-layout-common.js.map +1 -1
  456. package/ui/layouts/stack-layout/index.android.js +12 -6
  457. package/ui/layouts/stack-layout/index.android.js.map +1 -1
  458. package/ui/layouts/stack-layout/index.d.ts +3 -0
  459. package/ui/layouts/stack-layout/index.ios.js +69 -62
  460. package/ui/layouts/stack-layout/index.ios.js.map +1 -1
  461. package/ui/layouts/stack-layout/stack-layout-common.js +12 -7
  462. package/ui/layouts/stack-layout/stack-layout-common.js.map +1 -1
  463. package/ui/layouts/wrap-layout/index.android.js +16 -10
  464. package/ui/layouts/wrap-layout/index.android.js.map +1 -1
  465. package/ui/layouts/wrap-layout/index.d.ts +8 -0
  466. package/ui/layouts/wrap-layout/index.ios.js +76 -70
  467. package/ui/layouts/wrap-layout/index.ios.js.map +1 -1
  468. package/ui/layouts/wrap-layout/wrap-layout-common.js +18 -13
  469. package/ui/layouts/wrap-layout/wrap-layout-common.js.map +1 -1
  470. package/ui/list-picker/index.android.js +48 -42
  471. package/ui/list-picker/index.android.js.map +1 -1
  472. package/ui/list-picker/index.d.ts +12 -1
  473. package/ui/list-picker/index.ios.js +36 -26
  474. package/ui/list-picker/index.ios.js.map +1 -1
  475. package/ui/list-picker/list-picker-common.d.ts +1 -0
  476. package/ui/list-picker/list-picker-common.js +32 -26
  477. package/ui/list-picker/list-picker-common.js.map +1 -1
  478. package/ui/list-view/index.android.js +110 -98
  479. package/ui/list-view/index.android.js.map +1 -1
  480. package/ui/list-view/index.d.ts +24 -0
  481. package/ui/list-view/index.ios.js +137 -121
  482. package/ui/list-view/index.ios.js.map +1 -1
  483. package/ui/list-view/list-view-common.js +116 -100
  484. package/ui/list-view/list-view-common.js.map +1 -1
  485. package/ui/page/index.android.js +65 -57
  486. package/ui/page/index.android.js.map +1 -1
  487. package/ui/page/index.d.ts +31 -2
  488. package/ui/page/index.ios.js +107 -98
  489. package/ui/page/index.ios.js.map +1 -1
  490. package/ui/page/page-common.js +145 -113
  491. package/ui/page/page-common.js.map +1 -1
  492. package/ui/placeholder/index.android.d.ts +1 -1
  493. package/ui/placeholder/index.android.js +16 -10
  494. package/ui/placeholder/index.android.js.map +1 -1
  495. package/ui/placeholder/index.d.ts +4 -0
  496. package/ui/placeholder/index.js +12 -6
  497. package/ui/placeholder/index.js.map +1 -1
  498. package/ui/progress/index.android.js +34 -28
  499. package/ui/progress/index.android.js.map +1 -1
  500. package/ui/progress/index.d.ts +13 -0
  501. package/ui/progress/index.ios.js +39 -29
  502. package/ui/progress/index.ios.js.map +1 -1
  503. package/ui/progress/progress-common.js +16 -11
  504. package/ui/progress/progress-common.js.map +1 -1
  505. package/ui/proxy-view-container/index.d.ts +2 -0
  506. package/ui/proxy-view-container/index.js +113 -90
  507. package/ui/proxy-view-container/index.js.map +1 -1
  508. package/ui/repeater/index.d.ts +2 -0
  509. package/ui/repeater/index.js +114 -100
  510. package/ui/repeater/index.js.map +1 -1
  511. package/ui/scroll-view/index.android.d.ts +1 -1
  512. package/ui/scroll-view/index.android.js +95 -75
  513. package/ui/scroll-view/index.android.js.map +1 -1
  514. package/ui/scroll-view/index.d.ts +10 -0
  515. package/ui/scroll-view/index.ios.js +92 -72
  516. package/ui/scroll-view/index.ios.js.map +1 -1
  517. package/ui/scroll-view/scroll-view-common.js +65 -45
  518. package/ui/scroll-view/scroll-view-common.js.map +1 -1
  519. package/ui/search-bar/index.android.js +94 -88
  520. package/ui/search-bar/index.android.js.map +1 -1
  521. package/ui/search-bar/index.d.ts +14 -0
  522. package/ui/search-bar/index.ios.js +88 -74
  523. package/ui/search-bar/index.ios.js.map +1 -1
  524. package/ui/search-bar/search-bar-common.js +18 -13
  525. package/ui/search-bar/search-bar-common.js.map +1 -1
  526. package/ui/segmented-bar/index.android.js +112 -98
  527. package/ui/segmented-bar/index.android.js.map +1 -1
  528. package/ui/segmented-bar/index.d.ts +21 -5
  529. package/ui/segmented-bar/index.ios.js +80 -63
  530. package/ui/segmented-bar/index.ios.js.map +1 -1
  531. package/ui/segmented-bar/segmented-bar-common.js +81 -61
  532. package/ui/segmented-bar/segmented-bar-common.js.map +1 -1
  533. package/ui/slider/index.android.js +49 -43
  534. package/ui/slider/index.android.js.map +1 -1
  535. package/ui/slider/index.d.ts +27 -0
  536. package/ui/slider/index.ios.js +59 -49
  537. package/ui/slider/index.ios.js.map +1 -1
  538. package/ui/slider/slider-common.d.ts +1 -0
  539. package/ui/slider/slider-common.js +35 -27
  540. package/ui/slider/slider-common.js.map +1 -1
  541. package/ui/styling/background-common.js +100 -98
  542. package/ui/styling/background-common.js.map +1 -1
  543. package/ui/styling/background.android.js +38 -35
  544. package/ui/styling/background.android.js.map +1 -1
  545. package/ui/styling/background.d.ts +2 -0
  546. package/ui/styling/background.ios.d.ts +1 -15
  547. package/ui/styling/background.ios.js +294 -290
  548. package/ui/styling/background.ios.js.map +1 -1
  549. package/ui/styling/box-shadow.js +6 -2
  550. package/ui/styling/box-shadow.js.map +1 -1
  551. package/ui/styling/converters.js +7 -7
  552. package/ui/styling/converters.js.map +1 -1
  553. package/ui/styling/css-animation-parser.js +69 -56
  554. package/ui/styling/css-animation-parser.js.map +1 -1
  555. package/ui/styling/css-selector.js +522 -425
  556. package/ui/styling/css-selector.js.map +1 -1
  557. package/ui/styling/css-shadow.js +2 -2
  558. package/ui/styling/css-shadow.js.map +1 -1
  559. package/ui/styling/css-stroke.js +3 -3
  560. package/ui/styling/css-stroke.js.map +1 -1
  561. package/ui/styling/css-utils.js +22 -22
  562. package/ui/styling/css-utils.js.map +1 -1
  563. package/ui/styling/font-common.js +59 -44
  564. package/ui/styling/font-common.js.map +1 -1
  565. package/ui/styling/font.android.js +42 -34
  566. package/ui/styling/font.android.js.map +1 -1
  567. package/ui/styling/font.ios.js +54 -49
  568. package/ui/styling/font.ios.js.map +1 -1
  569. package/ui/styling/linear-gradient.js +17 -13
  570. package/ui/styling/linear-gradient.js.map +1 -1
  571. package/ui/styling/style/index.d.ts +3 -1
  572. package/ui/styling/style/index.js +46 -35
  573. package/ui/styling/style/index.js.map +1 -1
  574. package/ui/styling/style-properties.d.ts +1 -0
  575. package/ui/styling/style-properties.js +306 -291
  576. package/ui/styling/style-properties.js.map +1 -1
  577. package/ui/styling/style-scope.js +416 -377
  578. package/ui/styling/style-scope.js.map +1 -1
  579. package/ui/switch/index.android.js +47 -41
  580. package/ui/switch/index.android.js.map +1 -1
  581. package/ui/switch/index.d.ts +11 -0
  582. package/ui/switch/index.ios.js +66 -57
  583. package/ui/switch/index.ios.js.map +1 -1
  584. package/ui/switch/switch-common.js +20 -15
  585. package/ui/switch/switch-common.js.map +1 -1
  586. package/ui/tab-view/index.android.js +206 -187
  587. package/ui/tab-view/index.android.js.map +1 -1
  588. package/ui/tab-view/index.d.ts +43 -5
  589. package/ui/tab-view/index.ios.js +177 -161
  590. package/ui/tab-view/index.ios.js.map +1 -1
  591. package/ui/tab-view/tab-view-common.js +197 -143
  592. package/ui/tab-view/tab-view-common.js.map +1 -1
  593. package/ui/text-base/formatted-string.d.ts +24 -0
  594. package/ui/text-base/formatted-string.js +158 -105
  595. package/ui/text-base/formatted-string.js.map +1 -1
  596. package/ui/text-base/index.android.js +138 -141
  597. package/ui/text-base/index.android.js.map +1 -1
  598. package/ui/text-base/index.d.ts +47 -0
  599. package/ui/text-base/index.ios.js +120 -112
  600. package/ui/text-base/index.ios.js.map +1 -1
  601. package/ui/text-base/span.d.ts +30 -0
  602. package/ui/text-base/span.js +158 -102
  603. package/ui/text-base/span.js.map +1 -1
  604. package/ui/text-base/text-base-common.d.ts +2 -0
  605. package/ui/text-base/text-base-common.js +268 -175
  606. package/ui/text-base/text-base-common.js.map +1 -1
  607. package/ui/text-field/index.android.js +24 -18
  608. package/ui/text-field/index.android.js.map +1 -1
  609. package/ui/text-field/index.d.ts +13 -0
  610. package/ui/text-field/index.ios.js +80 -70
  611. package/ui/text-field/index.ios.js.map +1 -1
  612. package/ui/text-field/text-field-common.js +13 -8
  613. package/ui/text-field/text-field-common.js.map +1 -1
  614. package/ui/text-view/index.android.d.ts +0 -1
  615. package/ui/text-view/index.android.js +19 -14
  616. package/ui/text-view/index.android.js.map +1 -1
  617. package/ui/text-view/index.d.ts +11 -11
  618. package/ui/text-view/index.ios.d.ts +0 -3
  619. package/ui/text-view/index.ios.js +129 -177
  620. package/ui/text-view/index.ios.js.map +1 -1
  621. package/ui/text-view/text-view-common.d.ts +0 -26
  622. package/ui/text-view/text-view-common.js +9 -37
  623. package/ui/text-view/text-view-common.js.map +1 -1
  624. package/ui/time-picker/index.android.js +24 -18
  625. package/ui/time-picker/index.android.js.map +1 -1
  626. package/ui/time-picker/index.d.ts +27 -0
  627. package/ui/time-picker/index.ios.js +69 -61
  628. package/ui/time-picker/index.ios.js.map +1 -1
  629. package/ui/time-picker/time-picker-common.d.ts +1 -0
  630. package/ui/time-picker/time-picker-common.js +42 -36
  631. package/ui/time-picker/time-picker-common.js.map +1 -1
  632. package/ui/transition/fade-transition.android.js +14 -8
  633. package/ui/transition/fade-transition.android.js.map +1 -1
  634. package/ui/transition/fade-transition.ios.js +10 -4
  635. package/ui/transition/fade-transition.ios.js.map +1 -1
  636. package/ui/transition/flip-transition.android.js +18 -14
  637. package/ui/transition/flip-transition.android.js.map +1 -1
  638. package/ui/transition/index.android.js +27 -24
  639. package/ui/transition/index.android.js.map +1 -1
  640. package/ui/transition/index.ios.js +22 -18
  641. package/ui/transition/index.ios.js.map +1 -1
  642. package/ui/transition/modal-transition.android.js +10 -4
  643. package/ui/transition/modal-transition.android.js.map +1 -1
  644. package/ui/transition/modal-transition.ios.js +25 -18
  645. package/ui/transition/modal-transition.ios.js.map +1 -1
  646. package/ui/transition/page-transition.android.js +71 -57
  647. package/ui/transition/page-transition.android.js.map +1 -1
  648. package/ui/transition/page-transition.ios.js +27 -19
  649. package/ui/transition/page-transition.ios.js.map +1 -1
  650. package/ui/transition/shared-transition-helper.android.js +12 -8
  651. package/ui/transition/shared-transition-helper.android.js.map +1 -1
  652. package/ui/transition/shared-transition-helper.ios.js +539 -442
  653. package/ui/transition/shared-transition-helper.ios.js.map +1 -1
  654. package/ui/transition/shared-transition.js +76 -77
  655. package/ui/transition/shared-transition.js.map +1 -1
  656. package/ui/transition/slide-transition.android.js +22 -17
  657. package/ui/transition/slide-transition.android.js.map +1 -1
  658. package/ui/transition/slide-transition.ios.js +11 -7
  659. package/ui/transition/slide-transition.ios.js.map +1 -1
  660. package/ui/utils.d.ts +1 -1
  661. package/ui/utils.ios.d.ts +1 -2
  662. package/ui/utils.ios.js +13 -13
  663. package/ui/utils.ios.js.map +1 -1
  664. package/ui/web-view/index.android.js +64 -50
  665. package/ui/web-view/index.android.js.map +1 -1
  666. package/ui/web-view/index.d.ts +12 -0
  667. package/ui/web-view/index.ios.js +73 -50
  668. package/ui/web-view/index.ios.js.map +1 -1
  669. package/ui/web-view/web-view-common.d.ts +1 -1
  670. package/ui/web-view/web-view-common.js +43 -29
  671. package/ui/web-view/web-view-common.js.map +1 -1
  672. package/utils/android/index.js +27 -26
  673. package/utils/android/index.js.map +1 -1
  674. package/utils/common.js +65 -49
  675. package/utils/common.js.map +1 -1
  676. package/utils/constants.android.js +1 -1
  677. package/utils/constants.android.js.map +1 -1
  678. package/utils/constants.ios.js +1 -1
  679. package/utils/constants.ios.js.map +1 -1
  680. package/utils/debug.js +54 -32
  681. package/utils/debug.js.map +1 -1
  682. package/utils/index.android.d.ts +1 -0
  683. package/utils/index.android.js +48 -36
  684. package/utils/index.android.js.map +1 -1
  685. package/utils/index.d.ts +6 -0
  686. package/utils/index.ios.d.ts +1 -0
  687. package/utils/index.ios.js +27 -7
  688. package/utils/index.ios.js.map +1 -1
  689. package/utils/ios/index.js +44 -47
  690. package/utils/ios/index.js.map +1 -1
  691. package/utils/layout-helper/index.android.js +4 -4
  692. package/utils/layout-helper/index.android.js.map +1 -1
  693. package/utils/layout-helper/index.ios.js +2 -2
  694. package/utils/layout-helper/index.ios.js.map +1 -1
  695. package/utils/layout-helper/layout-helper-common.js +13 -13
  696. package/utils/layout-helper/layout-helper-common.js.map +1 -1
  697. package/utils/lazy.js +2 -2
  698. package/utils/lazy.js.map +1 -1
  699. package/utils/macrotask-scheduler.js +6 -6
  700. package/utils/macrotask-scheduler.js.map +1 -1
  701. package/utils/mainthread-helper.android.js +4 -4
  702. package/utils/mainthread-helper.android.js.map +1 -1
  703. package/utils/mainthread-helper.ios.js +1 -1
  704. package/utils/mainthread-helper.ios.js.map +1 -1
  705. package/utils/module-merge.js +1 -1
  706. package/utils/module-merge.js.map +1 -1
  707. package/utils/native-helper.android.js +19 -19
  708. package/utils/native-helper.android.js.map +1 -1
  709. package/utils/native-helper.ios.js +24 -16
  710. package/utils/native-helper.ios.js.map +1 -1
  711. package/utils/number-utils.js +3 -3
  712. package/utils/number-utils.js.map +1 -1
  713. package/utils/platform-check.js +6 -6
  714. package/utils/platform-check.js.map +1 -1
  715. package/utils/types.js +43 -33
  716. package/utils/types.js.map +1 -1
  717. package/wgc/atob.js +1 -1
  718. package/wgc/btoa.js +1 -1
  719. package/wgc/crypto/SubtleCrypto.js +168 -133
  720. package/wgc/crypto/SubtleCrypto.js.map +1 -1
  721. package/wgc/crypto/index.d.ts +1 -1
  722. package/wgc/crypto/index.js +21 -12
  723. package/wgc/crypto/index.js.map +1 -1
  724. package/xhr/index.js +308 -226
  725. package/xhr/index.js.map +1 -1
  726. package/xml/index.js +119 -79
  727. package/xml/index.js.map +1 -1
  728. package/platforms/android/winter_cg-release.aar +0 -0
  729. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  730. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  731. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  732. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  733. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  734. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  735. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSCWinterCG.h +0 -20
  736. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Modules/module.modulemap +0 -6
  737. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  738. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  739. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
  740. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  741. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  742. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  743. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  744. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
  745. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  746. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  747. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  748. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  749. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  750. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  751. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  752. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  753. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  754. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  755. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  756. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  757. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  758. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
@@ -19,25 +19,25 @@ export * from './view-common';
19
19
  export * from './view-helper';
20
20
  // This one can eventually be cleaned up but causes issues with a lot of ui-suite plugins in particular if not exported here
21
21
  export * from '../properties';
22
- const DOMID = '_domId';
23
- const androidBackPressedEvent = 'androidBackPressed';
24
- const shortAnimTime = 17694720; // android.R.integer.config_shortAnimTime
25
- const statePressed = 16842919; // android.R.attr.state_pressed
26
- const stateEnabled = 16842910; // android.R.attr.state_enabled
27
- const styleAnimationDialog = 16973826; // android.R.style.Animation_Dialog
28
- const VERTICAL_GRAVITY_MASK = 112; // android.view.Gravity.VERTICAL_GRAVITY_MASK
29
- const HORIZONTAL_GRAVITY_MASK = 7; // android.view.Gravity.HORIZONTAL_GRAVITY_MASK
30
- const GRAVITY_LEFT = 3; // android.view.Gravity.LEFT
31
- const GRAVITY_RIGHT = 5; // android.view.Gravity.RIGHT
32
- const GRAVITY_TOP = 48; // android.view.Gravity.TOP
33
- const GRAVITY_BOTTOM = 80; // android.view.Gravity.BOTTOM
34
- const GRAVITY_CENTER_HORIZONTAL = 1; // android.view.Gravity.CENTER_HORIZONTAL
35
- const GRAVITY_FILL_HORIZONTAL = 7; // android.view.Gravity.FILL_HORIZONTAL
36
- const GRAVITY_CENTER_VERTICAL = 16; // android.view.Gravity.CENTER_VERTICAL
37
- const GRAVITY_FILL_VERTICAL = 112; // android.view.Gravity.FILL_VERTICAL
38
- const modalMap = new Map();
39
- let TouchListener;
40
- let DialogFragment;
22
+ var DOMID = '_domId';
23
+ var androidBackPressedEvent = 'androidBackPressed';
24
+ var shortAnimTime = 17694720; // android.R.integer.config_shortAnimTime
25
+ var statePressed = 16842919; // android.R.attr.state_pressed
26
+ var stateEnabled = 16842910; // android.R.attr.state_enabled
27
+ var styleAnimationDialog = 16973826; // android.R.style.Animation_Dialog
28
+ var VERTICAL_GRAVITY_MASK = 112; // android.view.Gravity.VERTICAL_GRAVITY_MASK
29
+ var HORIZONTAL_GRAVITY_MASK = 7; // android.view.Gravity.HORIZONTAL_GRAVITY_MASK
30
+ var GRAVITY_LEFT = 3; // android.view.Gravity.LEFT
31
+ var GRAVITY_RIGHT = 5; // android.view.Gravity.RIGHT
32
+ var GRAVITY_TOP = 48; // android.view.Gravity.TOP
33
+ var GRAVITY_BOTTOM = 80; // android.view.Gravity.BOTTOM
34
+ var GRAVITY_CENTER_HORIZONTAL = 1; // android.view.Gravity.CENTER_HORIZONTAL
35
+ var GRAVITY_FILL_HORIZONTAL = 7; // android.view.Gravity.FILL_HORIZONTAL
36
+ var GRAVITY_CENTER_VERTICAL = 16; // android.view.Gravity.CENTER_VERTICAL
37
+ var GRAVITY_FILL_VERTICAL = 112; // android.view.Gravity.FILL_VERTICAL
38
+ var modalMap = new Map();
39
+ var TouchListener;
40
+ var DialogFragment;
41
41
  function initializeTouchListener() {
42
42
  if (TouchListener) {
43
43
  return;
@@ -239,51 +239,55 @@ function removeModal(domId) {
239
239
  function getModalOptions(domId) {
240
240
  return modalMap.get(domId);
241
241
  }
242
- export class View extends ViewCommon {
242
+ var View = /** @class */ (function (_super) {
243
+ __extends(View, _super);
244
+ function View() {
245
+ return _super !== null && _super.apply(this, arguments) || this;
246
+ }
243
247
  // TODO: Implement unobserve that detach the touchListener.
244
- _observe(type, callback, thisArg) {
245
- super._observe(type, callback, thisArg);
248
+ View.prototype._observe = function (type, callback, thisArg) {
249
+ _super.prototype._observe.call(this, type, callback, thisArg);
246
250
  if (this.isLoaded && !this.touchListenerIsSet) {
247
251
  this.setOnTouchListener();
248
252
  }
249
- }
250
- addEventListener(eventNames, callback, thisArg) {
251
- super.addEventListener(eventNames, callback, thisArg);
252
- const isLayoutEvent = typeof eventNames === 'string' ? eventNames.indexOf(ViewCommon.layoutChangedEvent) !== -1 : false;
253
+ };
254
+ View.prototype.addEventListener = function (eventNames, callback, thisArg) {
255
+ _super.prototype.addEventListener.call(this, eventNames, callback, thisArg);
256
+ var isLayoutEvent = typeof eventNames === 'string' ? eventNames.indexOf(ViewCommon.layoutChangedEvent) !== -1 : false;
253
257
  if (this.isLoaded && !this.layoutChangeListenerIsSet && isLayoutEvent) {
254
258
  this.setOnLayoutChangeListener();
255
259
  }
256
- }
257
- removeEventListener(eventNames, callback, thisArg) {
258
- super.removeEventListener(eventNames, callback, thisArg);
259
- const isLayoutEvent = typeof eventNames === 'string' ? eventNames.indexOf(ViewCommon.layoutChangedEvent) !== -1 : false;
260
+ };
261
+ View.prototype.removeEventListener = function (eventNames, callback, thisArg) {
262
+ _super.prototype.removeEventListener.call(this, eventNames, callback, thisArg);
263
+ var isLayoutEvent = typeof eventNames === 'string' ? eventNames.indexOf(ViewCommon.layoutChangedEvent) !== -1 : false;
260
264
  // Remove native listener only if there are no more user listeners for LayoutChanged event
261
265
  if (this.isLoaded && this.layoutChangeListenerIsSet && isLayoutEvent && !this.needsOnLayoutChangeListener()) {
262
266
  this.nativeViewProtected.removeOnLayoutChangeListener(this.layoutChangeListener);
263
267
  this.layoutChangeListenerIsSet = false;
264
268
  }
265
- }
266
- _getChildFragmentManager() {
269
+ };
270
+ View.prototype._getChildFragmentManager = function () {
267
271
  return null;
268
- }
269
- _getRootFragmentManager() {
272
+ };
273
+ View.prototype._getRootFragmentManager = function () {
270
274
  if (!this._rootManager && this._context) {
271
275
  this._rootManager = this._context.getSupportFragmentManager();
272
276
  }
273
277
  return this._rootManager;
274
- }
275
- _getFragmentManager() {
276
- let manager = this._manager;
278
+ };
279
+ View.prototype._getFragmentManager = function () {
280
+ var manager = this._manager;
277
281
  if (!manager) {
278
- let view = this;
279
- let frameOrTabViewItemFound = false;
282
+ var view = this;
283
+ var frameOrTabViewItemFound = false;
280
284
  while (view) {
281
285
  // when interacting with nested fragments instead of using getSupportFragmentManager
282
286
  // we must always use getChildFragmentManager instead;
283
287
  // we have three sources of fragments -- Frame fragments, TabViewItem fragments, and
284
288
  // modal dialog fragments
285
289
  // modal -> frame / tabview (frame / tabview use modal CHILD fm)
286
- const dialogFragment = view._dialogFragment;
290
+ var dialogFragment = view._dialogFragment;
287
291
  if (dialogFragment) {
288
292
  manager = dialogFragment.getChildFragmentManager();
289
293
  break;
@@ -309,51 +313,51 @@ export class View extends ViewCommon {
309
313
  this._manager = manager;
310
314
  }
311
315
  return manager;
312
- }
313
- onLoaded() {
316
+ };
317
+ View.prototype.onLoaded = function () {
314
318
  this._manager = null;
315
319
  this._rootManager = null;
316
- super.onLoaded();
320
+ _super.prototype.onLoaded.call(this);
317
321
  this.setOnTouchListener();
318
- }
319
- onUnloaded() {
322
+ };
323
+ View.prototype.onUnloaded = function () {
320
324
  this._manager = null;
321
325
  this._rootManager = null;
322
- super.onUnloaded();
323
- }
324
- onBackPressed() {
325
- const topmostFrame = topmost();
326
+ _super.prototype.onUnloaded.call(this);
327
+ };
328
+ View.prototype.onBackPressed = function () {
329
+ var topmostFrame = topmost();
326
330
  // Delegate back navigation handling to the topmost Frame
327
331
  // when it's a child of the current View.
328
332
  if (topmostFrame && topmostFrame._hasAncestorView(this)) {
329
333
  return topmostFrame.onBackPressed();
330
334
  }
331
335
  return false;
332
- }
333
- handleGestureTouch(event) {
334
- for (const type in this._gestureObservers) {
335
- const list = this._gestureObservers[type];
336
- list.forEach((element) => {
336
+ };
337
+ View.prototype.handleGestureTouch = function (event) {
338
+ for (var type in this._gestureObservers) {
339
+ var list = this._gestureObservers[type];
340
+ list.forEach(function (element) {
337
341
  element.androidOnTouchEvent(event);
338
342
  });
339
343
  }
340
344
  if (this.parent instanceof View) {
341
345
  this.parent.handleGestureTouch(event);
342
346
  }
343
- }
344
- hasGestureObservers() {
347
+ };
348
+ View.prototype.hasGestureObservers = function () {
345
349
  return this._gestureObservers && Object.keys(this._gestureObservers).length > 0;
346
- }
347
- initNativeView() {
348
- super.initNativeView();
350
+ };
351
+ View.prototype.initNativeView = function () {
352
+ _super.prototype.initNativeView.call(this);
349
353
  if (this.needsOnLayoutChangeListener()) {
350
354
  this.setOnLayoutChangeListener();
351
355
  }
352
- }
353
- needsOnLayoutChangeListener() {
356
+ };
357
+ View.prototype.needsOnLayoutChangeListener = function () {
354
358
  return this.hasListeners(ViewCommon.layoutChangedEvent);
355
- }
356
- disposeNativeView() {
359
+ };
360
+ View.prototype.disposeNativeView = function () {
357
361
  if (this.touchListenerIsSet) {
358
362
  this.touchListenerIsSet = false;
359
363
  if (this.nativeViewProtected) {
@@ -367,9 +371,9 @@ export class View extends ViewCommon {
367
371
  this.layoutChangeListener = null;
368
372
  }
369
373
  }
370
- super.disposeNativeView();
371
- }
372
- setOnTouchListener() {
374
+ _super.prototype.disposeNativeView.call(this);
375
+ };
376
+ View.prototype.setOnTouchListener = function () {
373
377
  if (this.touchListenerIsSet || !this.nativeViewProtected || !this.hasGestureObservers()) {
374
378
  return;
375
379
  }
@@ -382,68 +386,80 @@ export class View extends ViewCommon {
382
386
  if (this.nativeViewProtected.setClickable) {
383
387
  this.nativeViewProtected.setClickable(this.isUserInteractionEnabled);
384
388
  }
385
- }
386
- setOnLayoutChangeListener() {
389
+ };
390
+ View.prototype.setOnLayoutChangeListener = function () {
387
391
  if (this.nativeViewProtected) {
388
- const owner = this;
392
+ var owner_1 = this;
389
393
  this.layoutChangeListenerIsSet = true;
390
394
  this.layoutChangeListener =
391
395
  this.layoutChangeListener ||
392
396
  new android.view.View.OnLayoutChangeListener({
393
- onLayoutChange(v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) {
397
+ onLayoutChange: function (v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) {
394
398
  if (left !== oldLeft || top !== oldTop || right !== oldRight || bottom !== oldBottom) {
395
- owner._raiseLayoutChangedEvent();
399
+ owner_1._raiseLayoutChangedEvent();
396
400
  }
397
401
  },
398
402
  });
399
403
  this.nativeViewProtected.addOnLayoutChangeListener(this.layoutChangeListener);
400
404
  }
401
- }
402
- get isLayoutRequired() {
403
- return !this.isLayoutValid;
404
- }
405
- get isLayoutValid() {
406
- if (this.nativeViewProtected) {
407
- return !this.nativeViewProtected.isLayoutRequested();
408
- }
409
- return false;
410
- }
411
- get _hasFragments() {
412
- return false;
413
- }
414
- layoutNativeView(left, top, right, bottom) {
405
+ };
406
+ Object.defineProperty(View.prototype, "isLayoutRequired", {
407
+ get: function () {
408
+ return !this.isLayoutValid;
409
+ },
410
+ enumerable: false,
411
+ configurable: true
412
+ });
413
+ Object.defineProperty(View.prototype, "isLayoutValid", {
414
+ get: function () {
415
+ if (this.nativeViewProtected) {
416
+ return !this.nativeViewProtected.isLayoutRequested();
417
+ }
418
+ return false;
419
+ },
420
+ enumerable: false,
421
+ configurable: true
422
+ });
423
+ Object.defineProperty(View.prototype, "_hasFragments", {
424
+ get: function () {
425
+ return false;
426
+ },
427
+ enumerable: false,
428
+ configurable: true
429
+ });
430
+ View.prototype.layoutNativeView = function (left, top, right, bottom) {
415
431
  if (this.nativeViewProtected) {
416
432
  this.nativeViewProtected.layout(left, top, right, bottom);
417
433
  }
418
- }
419
- requestLayout() {
420
- super.requestLayout();
434
+ };
435
+ View.prototype.requestLayout = function () {
436
+ _super.prototype.requestLayout.call(this);
421
437
  if (this.nativeViewProtected) {
422
438
  this.nativeViewProtected.requestLayout();
423
439
  }
424
- }
425
- measure(widthMeasureSpec, heightMeasureSpec) {
426
- super.measure(widthMeasureSpec, heightMeasureSpec);
440
+ };
441
+ View.prototype.measure = function (widthMeasureSpec, heightMeasureSpec) {
442
+ _super.prototype.measure.call(this, widthMeasureSpec, heightMeasureSpec);
427
443
  this.onMeasure(widthMeasureSpec, heightMeasureSpec);
428
- }
429
- layout(left, top, right, bottom) {
430
- super.layout(left, top, right, bottom);
444
+ };
445
+ View.prototype.layout = function (left, top, right, bottom) {
446
+ _super.prototype.layout.call(this, left, top, right, bottom);
431
447
  this.onLayout(left, top, right, bottom);
432
- }
433
- onMeasure(widthMeasureSpec, heightMeasureSpec) {
434
- const view = this.nativeViewProtected;
448
+ };
449
+ View.prototype.onMeasure = function (widthMeasureSpec, heightMeasureSpec) {
450
+ var view = this.nativeViewProtected;
435
451
  if (view) {
436
452
  view.measure(widthMeasureSpec, heightMeasureSpec);
437
453
  this.setMeasuredDimension(view.getMeasuredWidth(), view.getMeasuredHeight());
438
454
  }
439
- }
440
- onLayout(left, top, right, bottom) {
441
- const view = this.nativeViewProtected;
455
+ };
456
+ View.prototype.onLayout = function (left, top, right, bottom) {
457
+ var view = this.nativeViewProtected;
442
458
  if (view) {
443
459
  this.layoutNativeView(left, top, right, bottom);
444
460
  }
445
- }
446
- _getCurrentLayoutBounds() {
461
+ };
462
+ View.prototype._getCurrentLayoutBounds = function () {
447
463
  if (this.nativeViewProtected && !this.isCollapsed) {
448
464
  return {
449
465
  left: this.nativeViewProtected.getLeft(),
@@ -455,62 +471,62 @@ export class View extends ViewCommon {
455
471
  else {
456
472
  return { left: 0, top: 0, right: 0, bottom: 0 };
457
473
  }
458
- }
459
- getMeasuredWidth() {
474
+ };
475
+ View.prototype.getMeasuredWidth = function () {
460
476
  if (this.nativeViewProtected) {
461
477
  return this.nativeViewProtected.getMeasuredWidth();
462
478
  }
463
- return super.getMeasuredWidth();
464
- }
465
- getMeasuredHeight() {
479
+ return _super.prototype.getMeasuredWidth.call(this);
480
+ };
481
+ View.prototype.getMeasuredHeight = function () {
466
482
  if (this.nativeViewProtected) {
467
483
  return this.nativeViewProtected.getMeasuredHeight();
468
484
  }
469
- return super.getMeasuredHeight();
470
- }
471
- focus() {
485
+ return _super.prototype.getMeasuredHeight.call(this);
486
+ };
487
+ View.prototype.focus = function () {
472
488
  if (this.nativeViewProtected) {
473
489
  return this.nativeViewProtected.requestFocus();
474
490
  }
475
491
  return false;
476
- }
477
- getLocationInWindow() {
492
+ };
493
+ View.prototype.getLocationInWindow = function () {
478
494
  if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken()) {
479
495
  return undefined;
480
496
  }
481
- const nativeArray = Array.create('int', 2);
497
+ var nativeArray = Array.create('int', 2);
482
498
  this.nativeViewProtected.getLocationInWindow(nativeArray);
483
499
  return {
484
500
  x: layout.toDeviceIndependentPixels(nativeArray[0]),
485
501
  y: layout.toDeviceIndependentPixels(nativeArray[1]),
486
502
  };
487
- }
488
- getLocationOnScreen() {
503
+ };
504
+ View.prototype.getLocationOnScreen = function () {
489
505
  if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken()) {
490
506
  return undefined;
491
507
  }
492
- const nativeArray = Array.create('int', 2);
508
+ var nativeArray = Array.create('int', 2);
493
509
  this.nativeViewProtected.getLocationOnScreen(nativeArray);
494
510
  return {
495
511
  x: layout.toDeviceIndependentPixels(nativeArray[0]),
496
512
  y: layout.toDeviceIndependentPixels(nativeArray[1]),
497
513
  };
498
- }
499
- getLocationRelativeTo(otherView) {
514
+ };
515
+ View.prototype.getLocationRelativeTo = function (otherView) {
500
516
  if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken() || !otherView || !otherView.nativeViewProtected || !otherView.nativeViewProtected.getWindowToken() || this.nativeViewProtected.getWindowToken() !== otherView.nativeViewProtected.getWindowToken()) {
501
517
  return undefined;
502
518
  }
503
- const myArray = Array.create('int', 2);
519
+ var myArray = Array.create('int', 2);
504
520
  this.nativeViewProtected.getLocationOnScreen(myArray);
505
- const otherArray = Array.create('int', 2);
521
+ var otherArray = Array.create('int', 2);
506
522
  otherView.nativeViewProtected.getLocationOnScreen(otherArray);
507
523
  return {
508
524
  x: layout.toDeviceIndependentPixels(myArray[0] - otherArray[0]),
509
525
  y: layout.toDeviceIndependentPixels(myArray[1] - otherArray[1]),
510
526
  };
511
- }
512
- static resolveSizeAndState(size, specSize, specMode, childMeasuredState) {
513
- let result = size;
527
+ };
528
+ View.resolveSizeAndState = function (size, specSize, specMode, childMeasuredState) {
529
+ var result = size;
514
530
  switch (specMode) {
515
531
  case layout.UNSPECIFIED:
516
532
  result = size;
@@ -525,27 +541,28 @@ export class View extends ViewCommon {
525
541
  break;
526
542
  }
527
543
  return result | (childMeasuredState & layout.MEASURED_STATE_MASK);
528
- }
529
- _showNativeModalView(parent, options) {
544
+ };
545
+ View.prototype._showNativeModalView = function (parent, options) {
546
+ var _this = this;
530
547
  // if the app is in background while triggering _showNativeModalView
531
548
  // then DialogFragment.show will trigger IllegalStateException: Can not perform this action after onSaveInstanceState
532
549
  // so if in background we create an event to call _showNativeModalView when loaded (going back in foreground)
533
550
  if (Application.inBackground && !parent.isLoaded) {
534
- const onLoaded = () => {
535
- parent.off('loaded', onLoaded);
536
- this._showNativeModalView(parent, options);
551
+ var onLoaded_1 = function () {
552
+ parent.off('loaded', onLoaded_1);
553
+ _this._showNativeModalView(parent, options);
537
554
  };
538
- parent.on('loaded', onLoaded);
555
+ parent.on('loaded', onLoaded_1);
539
556
  return;
540
557
  }
541
- super._showNativeModalView(parent, options);
558
+ _super.prototype._showNativeModalView.call(this, parent, options);
542
559
  initializeDialogFragment();
543
- const df = new DialogFragment();
544
- const args = new android.os.Bundle();
560
+ var df = new DialogFragment();
561
+ var args = new android.os.Bundle();
545
562
  args.putInt(DOMID, this._domId);
546
563
  df.setArguments(args);
547
- let cancelable = true;
548
- let windowSoftInputMode;
564
+ var cancelable = true;
565
+ var windowSoftInputMode;
549
566
  if (options.android) {
550
567
  if (options.android.cancelable !== undefined) {
551
568
  cancelable = !!options.android.cancelable;
@@ -554,58 +571,58 @@ export class View extends ViewCommon {
554
571
  windowSoftInputMode = options.android.windowSoftInputMode;
555
572
  }
556
573
  cancelable = options.cancelable !== undefined ? !!options.cancelable : cancelable;
557
- const dialogOptions = {
574
+ var dialogOptions = {
558
575
  owner: this,
559
576
  fullscreen: !!options.fullscreen,
560
577
  animated: !!options.animated,
561
578
  stretched: !!options.stretched,
562
579
  cancelable: cancelable,
563
580
  windowSoftInputMode: windowSoftInputMode,
564
- shownCallback: () => this._raiseShownModallyEvent(),
565
- dismissCallback: () => this.closeModal(),
581
+ shownCallback: function () { return _this._raiseShownModallyEvent(); },
582
+ dismissCallback: function () { return _this.closeModal(); },
566
583
  };
567
584
  saveModal(dialogOptions);
568
585
  this._dialogFragment = df;
569
586
  this._raiseShowingModallyEvent();
570
587
  this._dialogFragment.show(parent._getRootFragmentManager(), this._domId.toString());
571
- }
572
- _hideNativeModalView(parent, whenClosedCallback) {
588
+ };
589
+ View.prototype._hideNativeModalView = function (parent, whenClosedCallback) {
573
590
  if (this._dialogFragment) {
574
- const manager = this._dialogFragment.getFragmentManager();
591
+ var manager = this._dialogFragment.getFragmentManager();
575
592
  if (manager) {
576
593
  this._dialogFragment.dismissAllowingStateLoss();
577
594
  }
578
595
  }
579
596
  this._dialogFragment = null;
580
597
  whenClosedCallback();
581
- }
582
- [isEnabledProperty.setNative](value) {
598
+ };
599
+ View.prototype[isEnabledProperty.setNative] = function (value) {
583
600
  this.nativeViewProtected.setEnabled(value);
584
- }
585
- [originXProperty.getDefault]() {
601
+ };
602
+ View.prototype[originXProperty.getDefault] = function () {
586
603
  return this.nativeViewProtected.getPivotX();
587
- }
588
- [originXProperty.setNative](value) {
604
+ };
605
+ View.prototype[originXProperty.setNative] = function (value) {
589
606
  org.nativescript.widgets.OriginPoint.setX(this.nativeViewProtected, value);
590
- }
591
- [originYProperty.getDefault]() {
607
+ };
608
+ View.prototype[originYProperty.getDefault] = function () {
592
609
  return this.nativeViewProtected.getPivotY();
593
- }
594
- [originYProperty.setNative](value) {
610
+ };
611
+ View.prototype[originYProperty.setNative] = function (value) {
595
612
  org.nativescript.widgets.OriginPoint.setY(this.nativeViewProtected, value);
596
- }
597
- [isUserInteractionEnabledProperty.setNative](value) {
613
+ };
614
+ View.prototype[isUserInteractionEnabledProperty.setNative] = function (value) {
598
615
  this.nativeViewProtected.setClickable(value);
599
616
  this.nativeViewProtected.setFocusable(value);
600
- }
601
- [hiddenProperty.getDefault]() {
617
+ };
618
+ View.prototype[hiddenProperty.getDefault] = function () {
602
619
  return this.nativeViewProtected.getVisibility() === android.view.View.GONE;
603
- }
604
- [hiddenProperty.setNative](value) {
620
+ };
621
+ View.prototype[hiddenProperty.setNative] = function (value) {
605
622
  this.nativeViewProtected.setVisibility(value ? android.view.View.GONE : android.view.View.VISIBLE);
606
- }
607
- [visibilityProperty.getDefault]() {
608
- const nativeVisibility = this.nativeViewProtected.getVisibility();
623
+ };
624
+ View.prototype[visibilityProperty.getDefault] = function () {
625
+ var nativeVisibility = this.nativeViewProtected.getVisibility();
609
626
  switch (nativeVisibility) {
610
627
  case android.view.View.VISIBLE:
611
628
  return 'visible';
@@ -614,10 +631,10 @@ export class View extends ViewCommon {
614
631
  case android.view.View.GONE:
615
632
  return 'collapse';
616
633
  default:
617
- throw new Error(`Unsupported android.view.View visibility: ${nativeVisibility}. Currently supported values are android.view.View.VISIBLE, android.view.View.INVISIBLE, android.view.View.GONE.`);
634
+ throw new Error("Unsupported android.view.View visibility: ".concat(nativeVisibility, ". Currently supported values are android.view.View.VISIBLE, android.view.View.INVISIBLE, android.view.View.GONE."));
618
635
  }
619
- }
620
- [visibilityProperty.setNative](value) {
636
+ };
637
+ View.prototype[visibilityProperty.setNative] = function (value) {
621
638
  switch (value) {
622
639
  case 'visible':
623
640
  this.nativeViewProtected.setVisibility(android.view.View.VISIBLE);
@@ -629,20 +646,20 @@ export class View extends ViewCommon {
629
646
  this.nativeViewProtected.setVisibility(android.view.View.GONE);
630
647
  break;
631
648
  default:
632
- throw new Error(`Invalid visibility value: ${value}. Valid values are: visible, hidden, collapse.`);
649
+ throw new Error("Invalid visibility value: ".concat(value, ". Valid values are: visible, hidden, collapse."));
633
650
  }
634
- }
635
- [opacityProperty.getDefault]() {
651
+ };
652
+ View.prototype[opacityProperty.getDefault] = function () {
636
653
  return this.nativeViewProtected.getAlpha();
637
- }
638
- [opacityProperty.setNative](value) {
654
+ };
655
+ View.prototype[opacityProperty.setNative] = function (value) {
639
656
  this.nativeViewProtected.setAlpha(float(value));
640
- }
641
- [testIDProperty.setNative](value) {
657
+ };
658
+ View.prototype[testIDProperty.setNative] = function (value) {
642
659
  this.setAccessibilityIdentifier(this.nativeViewProtected, value);
643
- }
644
- setAccessibilityIdentifier(view, value) {
645
- const id = Utils.android.resources.getId(':id/nativescript_accessibility_id');
660
+ };
661
+ View.prototype.setAccessibilityIdentifier = function (view, value) {
662
+ var id = Utils.android.resources.getId(':id/nativescript_accessibility_id');
646
663
  if (id) {
647
664
  view.setTag(id, value);
648
665
  view.setTag(value);
@@ -651,44 +668,43 @@ export class View extends ViewCommon {
651
668
  this.testID = value;
652
669
  if (this.accessibilityIdentifier !== value)
653
670
  this.accessibilityIdentifier = value;
654
- }
655
- [accessibilityEnabledProperty.setNative](value) {
671
+ };
672
+ View.prototype[accessibilityEnabledProperty.setNative] = function (value) {
656
673
  this.nativeViewProtected.setFocusable(!!value);
657
- if (value) {
658
- updateAccessibilityProperties(this);
659
- }
660
- }
661
- [accessibilityIdentifierProperty.setNative](value) {
674
+ updateAccessibilityProperties(this);
675
+ };
676
+ View.prototype[accessibilityIdentifierProperty.setNative] = function (value) {
662
677
  this.setAccessibilityIdentifier(this.nativeViewProtected, value);
663
- }
664
- [accessibilityRoleProperty.setNative](value) {
678
+ };
679
+ View.prototype[accessibilityRoleProperty.setNative] = function (value) {
680
+ var _a;
665
681
  this.accessibilityRole = value;
666
682
  updateAccessibilityProperties(this);
667
683
  if (SDK_VERSION >= 28) {
668
- this.nativeViewProtected?.setAccessibilityHeading(value === AccessibilityRole.Header);
684
+ (_a = this.nativeViewProtected) === null || _a === void 0 ? void 0 : _a.setAccessibilityHeading(value === AccessibilityRole.Header);
669
685
  }
670
- }
671
- [accessibilityValueProperty.setNative]() {
686
+ };
687
+ View.prototype[accessibilityValueProperty.setNative] = function () {
672
688
  this._androidContentDescriptionUpdated = true;
673
689
  updateContentDescription(this);
674
- }
675
- [accessibilityLabelProperty.setNative]() {
690
+ };
691
+ View.prototype[accessibilityLabelProperty.setNative] = function () {
676
692
  this._androidContentDescriptionUpdated = true;
677
693
  updateContentDescription(this);
678
- }
679
- [accessibilityHintProperty.setNative]() {
694
+ };
695
+ View.prototype[accessibilityHintProperty.setNative] = function () {
680
696
  this._androidContentDescriptionUpdated = true;
681
697
  updateContentDescription(this);
682
- }
683
- [accessibilityHiddenProperty.setNative](value) {
698
+ };
699
+ View.prototype[accessibilityHiddenProperty.setNative] = function (value) {
684
700
  if (value) {
685
701
  this.nativeViewProtected.setImportantForAccessibility(android.view.View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS);
686
702
  }
687
703
  else {
688
704
  this.nativeViewProtected.setImportantForAccessibility(android.view.View.IMPORTANT_FOR_ACCESSIBILITY_YES);
689
705
  }
690
- }
691
- [accessibilityLiveRegionProperty.setNative](value) {
706
+ };
707
+ View.prototype[accessibilityLiveRegionProperty.setNative] = function (value) {
692
708
  switch (value) {
693
709
  case AccessibilityLiveRegion.Assertive: {
694
710
  this.nativeViewProtected.setAccessibilityLiveRegion(android.view.View.ACCESSIBILITY_LIVE_REGION_ASSERTIVE);
@@ -703,84 +719,84 @@ export class View extends ViewCommon {
703
719
  break;
704
720
  }
705
721
  }
706
- }
707
- [accessibilityStateProperty.setNative](value) {
722
+ };
723
+ View.prototype[accessibilityStateProperty.setNative] = function (value) {
708
724
  this.accessibilityState = value;
709
725
  updateAccessibilityProperties(this);
710
- }
711
- [accessibilityMediaSessionProperty.setNative]() {
726
+ };
727
+ View.prototype[accessibilityMediaSessionProperty.setNative] = function () {
712
728
  updateAccessibilityProperties(this);
713
- }
714
- [androidElevationProperty.getDefault]() {
729
+ };
730
+ View.prototype[androidElevationProperty.getDefault] = function () {
715
731
  return this.getDefaultElevation();
716
- }
717
- [androidElevationProperty.setNative](value) {
732
+ };
733
+ View.prototype[androidElevationProperty.setNative] = function (value) {
718
734
  if (SDK_VERSION < 21) {
719
735
  return;
720
736
  }
721
737
  this.refreshStateListAnimator();
722
- }
723
- [androidDynamicElevationOffsetProperty.getDefault]() {
738
+ };
739
+ View.prototype[androidDynamicElevationOffsetProperty.getDefault] = function () {
724
740
  return this.getDefaultDynamicElevationOffset();
725
- }
726
- [androidDynamicElevationOffsetProperty.setNative](value) {
741
+ };
742
+ View.prototype[androidDynamicElevationOffsetProperty.setNative] = function (value) {
727
743
  if (SDK_VERSION < 21) {
728
744
  return;
729
745
  }
730
746
  this.refreshStateListAnimator();
731
- }
732
- getDefaultElevation() {
747
+ };
748
+ View.prototype.getDefaultElevation = function () {
733
749
  if (SDK_VERSION < 21) {
734
750
  return 0;
735
751
  }
736
752
  // NOTE: overriden in Button implementation as for widgets with StateListAnimator (Button)
737
753
  // nativeView.getElevation() returns 0 at the time of the getDefault() query
738
754
  return layout.toDeviceIndependentPixels(this.nativeViewProtected.getElevation());
739
- }
740
- getDefaultDynamicElevationOffset() {
755
+ };
756
+ View.prototype.getDefaultDynamicElevationOffset = function () {
741
757
  // NOTE: overriden in Button implementation
742
758
  return 0;
743
- }
744
- refreshStateListAnimator() {
745
- const nativeView = this.nativeViewProtected;
746
- const ObjectAnimator = android.animation.ObjectAnimator;
747
- const AnimatorSet = android.animation.AnimatorSet;
748
- const duration = nativeView.getContext().getResources().getInteger(shortAnimTime) / 2;
749
- let elevation = this.androidElevation;
759
+ };
760
+ View.prototype.refreshStateListAnimator = function () {
761
+ var nativeView = this.nativeViewProtected;
762
+ var ObjectAnimator = android.animation.ObjectAnimator;
763
+ var AnimatorSet = android.animation.AnimatorSet;
764
+ var duration = nativeView.getContext().getResources().getInteger(shortAnimTime) / 2;
765
+ var elevation = this.androidElevation;
750
766
  if (typeof elevation === 'undefined' || elevation === null) {
751
767
  elevation = this.getDefaultElevation();
752
768
  }
753
769
  elevation = layout.toDevicePixels(elevation);
754
- const z = layout.toDevicePixels(0);
755
- let pressedZ = this.androidDynamicElevationOffset;
770
+ var z = layout.toDevicePixels(0);
771
+ var pressedZ = this.androidDynamicElevationOffset;
756
772
  if (typeof pressedZ === 'undefined' || pressedZ === null) {
757
773
  pressedZ = this.getDefaultDynamicElevationOffset();
758
774
  }
759
775
  pressedZ = layout.toDevicePixels(pressedZ);
760
- const pressedSet = new AnimatorSet();
776
+ var pressedSet = new AnimatorSet();
761
777
  pressedSet.playTogether(java.util.Arrays.asList([ObjectAnimator.ofFloat(nativeView, 'translationZ', [pressedZ]).setDuration(duration), ObjectAnimator.ofFloat(nativeView, 'elevation', [elevation]).setDuration(0)]));
762
- const notPressedSet = new AnimatorSet();
778
+ var notPressedSet = new AnimatorSet();
763
779
  notPressedSet.playTogether(java.util.Arrays.asList([ObjectAnimator.ofFloat(nativeView, 'translationZ', [z]).setDuration(duration), ObjectAnimator.ofFloat(nativeView, 'elevation', [elevation]).setDuration(0)]));
764
- const defaultSet = new AnimatorSet();
780
+ var defaultSet = new AnimatorSet();
765
781
  defaultSet.playTogether(java.util.Arrays.asList([ObjectAnimator.ofFloat(nativeView, 'translationZ', [0]).setDuration(0), ObjectAnimator.ofFloat(nativeView, 'elevation', [0]).setDuration(0)]));
766
- const stateListAnimator = new android.animation.StateListAnimator();
782
+ var stateListAnimator = new android.animation.StateListAnimator();
767
783
  stateListAnimator.addState([statePressed, stateEnabled], pressedSet);
768
784
  stateListAnimator.addState([stateEnabled], notPressedSet);
769
785
  stateListAnimator.addState([], defaultSet);
770
- const currentAnimator = nativeView.getStateListAnimator();
786
+ var currentAnimator = nativeView.getStateListAnimator();
771
787
  if (currentAnimator) {
772
788
  currentAnimator.jumpToCurrentState();
773
789
  }
774
790
  nativeView.setStateListAnimator(stateListAnimator);
775
- }
776
- [horizontalAlignmentProperty.getDefault]() {
791
+ };
792
+ View.prototype[horizontalAlignmentProperty.getDefault] = function () {
777
793
  return org.nativescript.widgets.ViewHelper.getHorizontalAlignment(this.nativeViewProtected);
778
- }
779
- [horizontalAlignmentProperty.setNative](value) {
780
- const nativeView = this.nativeViewProtected;
781
- const lp = nativeView.getLayoutParams() || new org.nativescript.widgets.CommonLayoutParams();
782
- const gravity = lp.gravity;
783
- const weight = lp.weight;
794
+ };
795
+ View.prototype[horizontalAlignmentProperty.setNative] = function (value) {
796
+ var nativeView = this.nativeViewProtected;
797
+ var lp = nativeView.getLayoutParams() || new org.nativescript.widgets.CommonLayoutParams();
798
+ var gravity = lp.gravity;
799
+ var weight = lp.weight;
784
800
  // Set only if params gravity exists.
785
801
  if (gravity !== undefined) {
786
802
  switch (value) {
@@ -811,15 +827,15 @@ export class View extends ViewCommon {
811
827
  }
812
828
  nativeView.setLayoutParams(lp);
813
829
  }
814
- }
815
- [verticalAlignmentProperty.getDefault]() {
830
+ };
831
+ View.prototype[verticalAlignmentProperty.getDefault] = function () {
816
832
  return org.nativescript.widgets.ViewHelper.getVerticalAlignment(this.nativeViewProtected);
817
- }
818
- [verticalAlignmentProperty.setNative](value) {
819
- const nativeView = this.nativeViewProtected;
820
- const lp = nativeView.getLayoutParams() || new org.nativescript.widgets.CommonLayoutParams();
821
- const gravity = lp.gravity;
822
- const height = lp.height;
833
+ };
834
+ View.prototype[verticalAlignmentProperty.setNative] = function (value) {
835
+ var nativeView = this.nativeViewProtected;
836
+ var lp = nativeView.getLayoutParams() || new org.nativescript.widgets.CommonLayoutParams();
837
+ var gravity = lp.gravity;
838
+ var height = lp.height;
823
839
  // Set only if params gravity exists.
824
840
  if (gravity !== undefined) {
825
841
  switch (value) {
@@ -850,70 +866,72 @@ export class View extends ViewCommon {
850
866
  }
851
867
  nativeView.setLayoutParams(lp);
852
868
  }
853
- }
854
- [rotateProperty.setNative](value) {
869
+ };
870
+ View.prototype[rotateProperty.setNative] = function (value) {
855
871
  org.nativescript.widgets.ViewHelper.setRotate(this.nativeViewProtected, float(value));
856
- }
857
- [rotateXProperty.setNative](value) {
872
+ };
873
+ View.prototype[rotateXProperty.setNative] = function (value) {
858
874
  org.nativescript.widgets.ViewHelper.setRotateX(this.nativeViewProtected, float(value));
859
- }
860
- [rotateYProperty.setNative](value) {
875
+ };
876
+ View.prototype[rotateYProperty.setNative] = function (value) {
861
877
  org.nativescript.widgets.ViewHelper.setRotateY(this.nativeViewProtected, float(value));
862
- }
863
- [perspectiveProperty.setNative](value) {
878
+ };
879
+ View.prototype[perspectiveProperty.setNative] = function (value) {
864
880
  org.nativescript.widgets.ViewHelper.setPerspective(this.nativeViewProtected, float(value * Screen.mainScreen.scale));
865
- }
866
- [scaleXProperty.setNative](value) {
881
+ };
882
+ View.prototype[scaleXProperty.setNative] = function (value) {
867
883
  org.nativescript.widgets.ViewHelper.setScaleX(this.nativeViewProtected, float(value));
868
- }
869
- [scaleYProperty.setNative](value) {
884
+ };
885
+ View.prototype[scaleYProperty.setNative] = function (value) {
870
886
  org.nativescript.widgets.ViewHelper.setScaleY(this.nativeViewProtected, float(value));
871
- }
872
- [translateXProperty.setNative](value) {
887
+ };
888
+ View.prototype[translateXProperty.setNative] = function (value) {
873
889
  org.nativescript.widgets.ViewHelper.setTranslateX(this.nativeViewProtected, layout.toDevicePixels(value));
874
- }
875
- [translateYProperty.setNative](value) {
890
+ };
891
+ View.prototype[translateYProperty.setNative] = function (value) {
876
892
  org.nativescript.widgets.ViewHelper.setTranslateY(this.nativeViewProtected, layout.toDevicePixels(value));
877
- }
878
- [zIndexProperty.getDefault]() {
893
+ };
894
+ View.prototype[zIndexProperty.getDefault] = function () {
879
895
  return 0;
880
- }
881
- [zIndexProperty.setNative](value) {
896
+ };
897
+ View.prototype[zIndexProperty.setNative] = function (value) {
882
898
  org.nativescript.widgets.ViewHelper.setZIndex(this.nativeViewProtected, value);
883
- }
884
- [backgroundInternalProperty.getDefault]() {
885
- const nativeView = this.nativeViewProtected;
899
+ };
900
+ View.prototype[backgroundInternalProperty.getDefault] = function () {
901
+ var nativeView = this.nativeViewProtected;
886
902
  return AndroidHelper.getCopyOrDrawable(nativeView.getBackground(), nativeView.getResources());
887
- }
888
- [backgroundInternalProperty.setNative](value) {
903
+ };
904
+ View.prototype[backgroundInternalProperty.setNative] = function (value) {
889
905
  this._redrawNativeBackground(value);
890
- }
891
- [minWidthProperty.setNative](value) {
906
+ };
907
+ View.prototype[minWidthProperty.setNative] = function (value) {
892
908
  if (this.parent instanceof CustomLayoutView && this.parent.nativeViewProtected) {
893
909
  this.parent._setChildMinWidthNative(this, value);
894
910
  }
895
911
  else {
896
912
  this._setMinWidthNative(value);
897
913
  }
898
- }
899
- [minHeightProperty.setNative](value) {
914
+ };
915
+ View.prototype[minHeightProperty.setNative] = function (value) {
900
916
  if (this.parent instanceof CustomLayoutView && this.parent.nativeViewProtected) {
901
917
  this.parent._setChildMinHeightNative(this, value);
902
918
  }
903
919
  else {
904
920
  this._setMinHeightNative(value);
905
921
  }
906
- }
907
- _applyBackground(background, isBorderDrawable, onlyColor, backgroundDrawable) {
908
- const nativeView = this.nativeViewProtected;
922
+ };
923
+ View.prototype._applyBackground = function (background, isBorderDrawable, onlyColor, backgroundDrawable) {
924
+ var _a;
925
+ var nativeView = this.nativeViewProtected;
909
926
  if (onlyColor) {
910
- const backgroundColor = background.color.android;
927
+ var backgroundColor = background.color.android;
911
928
  if (isBorderDrawable) {
912
929
  // We need to duplicate the drawable or we lose the "default" cached drawable
913
930
  backgroundDrawable = nativeView._cachedDrawable != null ? AndroidHelper.getCopyOrDrawable(nativeView._cachedDrawable, nativeView.getResources()) : null;
914
931
  nativeView.setBackground(backgroundDrawable);
915
932
  }
916
- if (backgroundDrawable) {
933
+ // Apply color to drawables when there is the need to maintain visual things like button ripple effect
934
+ if (this.needsNativeDrawableFill && backgroundDrawable) {
917
935
  backgroundDrawable.mutate();
918
936
  AndroidHelper.setDrawableColor(backgroundColor, backgroundDrawable);
919
937
  backgroundDrawable.invalidateSelf();
@@ -935,7 +953,7 @@ export class View extends ViewCommon {
935
953
  }
936
954
  if (background.isEmpty()) {
937
955
  // Reset background to default if not already set
938
- const defaultDrawable = nativeView._cachedDrawable ?? null;
956
+ var defaultDrawable = (_a = nativeView._cachedDrawable) !== null && _a !== void 0 ? _a : null;
939
957
  if (backgroundDrawable !== defaultDrawable) {
940
958
  nativeView.setBackground(defaultDrawable);
941
959
  }
@@ -946,16 +964,16 @@ export class View extends ViewCommon {
946
964
  refreshBorderDrawable(this, backgroundDrawable);
947
965
  }
948
966
  else {
949
- const borderDrawable = new org.nativescript.widgets.BorderDrawable(layout.getDisplayDensity(), this.toString());
967
+ var borderDrawable = new org.nativescript.widgets.BorderDrawable(layout.getDisplayDensity(), this.toString());
950
968
  refreshBorderDrawable(this, borderDrawable);
951
969
  nativeView.setBackground(borderDrawable);
952
970
  }
953
971
  }
954
972
  }
955
- }
956
- _drawBoxShadow(boxShadow) {
957
- const nativeView = this.nativeViewProtected;
958
- const config = {
973
+ };
974
+ View.prototype._drawBoxShadow = function (boxShadow) {
975
+ var nativeView = this.nativeViewProtected;
976
+ var config = {
959
977
  shadowColor: boxShadow.color.android,
960
978
  cornerRadius: Length.toDevicePixels(this.borderRadius, 0.0),
961
979
  spreadRadius: boxShadow.spreadRadius,
@@ -964,19 +982,19 @@ export class View extends ViewCommon {
964
982
  offsetY: boxShadow.offsetY,
965
983
  };
966
984
  org.nativescript.widgets.Utils.drawBoxShadow(nativeView, JSON.stringify(config));
967
- }
968
- _redrawNativeBackground(value) {
985
+ };
986
+ View.prototype._redrawNativeBackground = function (value) {
969
987
  if (value instanceof Background) {
970
988
  this.onBackgroundOrBorderPropertyChanged();
971
989
  }
972
990
  else {
973
- const nativeView = this.nativeViewProtected;
991
+ var nativeView = this.nativeViewProtected;
974
992
  nativeView.setBackground(value);
975
- const style = this.style;
976
- const paddingTop = paddingTopProperty.isSet(style) ? this.effectivePaddingTop : this._defaultPaddingTop;
977
- const paddingRight = paddingRightProperty.isSet(style) ? this.effectivePaddingRight : this._defaultPaddingRight;
978
- const paddingBottom = paddingBottomProperty.isSet(style) ? this.effectivePaddingBottom : this._defaultPaddingBottom;
979
- const paddingLeft = paddingLeftProperty.isSet(style) ? this.effectivePaddingLeft : this._defaultPaddingLeft;
993
+ var style = this.style;
994
+ var paddingTop = paddingTopProperty.isSet(style) ? this.effectivePaddingTop : this._defaultPaddingTop;
995
+ var paddingRight = paddingRightProperty.isSet(style) ? this.effectivePaddingRight : this._defaultPaddingRight;
996
+ var paddingBottom = paddingBottomProperty.isSet(style) ? this.effectivePaddingBottom : this._defaultPaddingBottom;
997
+ var paddingLeft = paddingLeftProperty.isSet(style) ? this.effectivePaddingLeft : this._defaultPaddingLeft;
980
998
  if (this._isPaddingRelative) {
981
999
  nativeView.setPaddingRelative(paddingLeft, paddingTop, paddingRight, paddingBottom);
982
1000
  }
@@ -984,15 +1002,16 @@ export class View extends ViewCommon {
984
1002
  nativeView.setPadding(paddingLeft, paddingTop, paddingRight, paddingBottom);
985
1003
  }
986
1004
  }
987
- }
988
- onBackgroundOrBorderPropertyChanged() {
989
- const nativeView = this.nativeViewProtected;
1005
+ };
1006
+ View.prototype.onBackgroundOrBorderPropertyChanged = function () {
1007
+ var _a;
1008
+ var nativeView = this.nativeViewProtected;
990
1009
  if (!nativeView) {
991
1010
  return;
992
1011
  }
993
- const background = this.style.backgroundInternal;
994
- const drawable = nativeView.getBackground();
995
- const isBorderDrawable = drawable instanceof org.nativescript.widgets.BorderDrawable;
1012
+ var background = this.style.backgroundInternal;
1013
+ var drawable = nativeView.getBackground();
1014
+ var isBorderDrawable = drawable instanceof org.nativescript.widgets.BorderDrawable;
996
1015
  // Use undefined as not set. getBackground will never return undefined only Drawable or null;
997
1016
  if (nativeView._cachedDrawable === undefined) {
998
1017
  nativeView._cachedDrawable = drawable;
@@ -1000,11 +1019,11 @@ export class View extends ViewCommon {
1000
1019
  if (background.clearFlags & 2 /* BackgroundClearFlags.CLEAR_BOX_SHADOW */) {
1001
1020
  // Clear background if we're clearing the box shadow
1002
1021
  if (drawable instanceof org.nativescript.widgets.BoxShadowDrawable) {
1003
- nativeView.setBackground(nativeView._cachedDrawable ?? null);
1022
+ nativeView.setBackground((_a = nativeView._cachedDrawable) !== null && _a !== void 0 ? _a : null);
1004
1023
  }
1005
1024
  }
1006
1025
  // prettier-ignore
1007
- const onlyColor = !background.hasBorderWidth()
1026
+ var onlyColor = !background.hasBorderWidth()
1008
1027
  && !background.hasBorderRadius()
1009
1028
  && !background.hasBoxShadow()
1010
1029
  && !background.clipPath
@@ -1016,10 +1035,10 @@ export class View extends ViewCommon {
1016
1035
  }
1017
1036
  // TODO: Can we move BorderWidths as separate native setter?
1018
1037
  // This way we could skip setPadding if borderWidth is not changed.
1019
- const leftPadding = Math.ceil(this.effectiveBorderLeftWidth + this.effectivePaddingLeft);
1020
- const topPadding = Math.ceil(this.effectiveBorderTopWidth + this.effectivePaddingTop);
1021
- const rightPadding = Math.ceil(this.effectiveBorderRightWidth + this.effectivePaddingRight);
1022
- const bottomPadding = Math.ceil(this.effectiveBorderBottomWidth + this.effectivePaddingBottom);
1038
+ var leftPadding = Math.ceil(this.effectiveBorderLeftWidth + this.effectivePaddingLeft);
1039
+ var topPadding = Math.ceil(this.effectiveBorderTopWidth + this.effectivePaddingTop);
1040
+ var rightPadding = Math.ceil(this.effectiveBorderRightWidth + this.effectivePaddingRight);
1041
+ var bottomPadding = Math.ceil(this.effectiveBorderBottomWidth + this.effectivePaddingBottom);
1023
1042
  if (this._isPaddingRelative) {
1024
1043
  nativeView.setPaddingRelative(leftPadding, topPadding, rightPadding, bottomPadding);
1025
1044
  }
@@ -1028,49 +1047,63 @@ export class View extends ViewCommon {
1028
1047
  }
1029
1048
  // reset clear flags
1030
1049
  background.clearFlags = 0 /* BackgroundClearFlags.NONE */;
1031
- }
1032
- accessibilityAnnouncement(message = this.accessibilityLabel) {
1050
+ };
1051
+ View.prototype.accessibilityAnnouncement = function (message) {
1052
+ if (message === void 0) { message = this.accessibilityLabel; }
1033
1053
  this.sendAccessibilityEvent({
1034
1054
  androidAccessibilityEvent: AndroidAccessibilityEvent.ANNOUNCEMENT,
1035
- message,
1055
+ message: message,
1036
1056
  });
1037
- }
1038
- accessibilityScreenChanged() {
1057
+ };
1058
+ View.prototype.accessibilityScreenChanged = function () {
1039
1059
  this.sendAccessibilityEvent({
1040
1060
  androidAccessibilityEvent: AndroidAccessibilityEvent.WINDOW_STATE_CHANGED,
1041
1061
  });
1042
- }
1043
- }
1044
- View.androidBackPressedEvent = androidBackPressedEvent;
1045
- __decorate([
1046
- profile,
1047
- __metadata("design:type", Function),
1048
- __metadata("design:paramtypes", []),
1049
- __metadata("design:returntype", void 0)
1050
- ], View.prototype, "onLoaded", null);
1051
- __decorate([
1052
- profile,
1053
- __metadata("design:type", Function),
1054
- __metadata("design:paramtypes", []),
1055
- __metadata("design:returntype", void 0)
1056
- ], View.prototype, "onUnloaded", null);
1057
- __decorate([
1058
- profile,
1059
- __metadata("design:type", Function),
1060
- __metadata("design:paramtypes", []),
1061
- __metadata("design:returntype", void 0)
1062
- ], View.prototype, "requestLayout", null);
1063
- export class ContainerView extends View {
1064
- }
1065
- export class CustomLayoutView extends ContainerView {
1066
- createNativeView() {
1062
+ };
1063
+ View.androidBackPressedEvent = androidBackPressedEvent;
1064
+ __decorate([
1065
+ profile,
1066
+ __metadata("design:type", Function),
1067
+ __metadata("design:paramtypes", []),
1068
+ __metadata("design:returntype", void 0)
1069
+ ], View.prototype, "onLoaded", null);
1070
+ __decorate([
1071
+ profile,
1072
+ __metadata("design:type", Function),
1073
+ __metadata("design:paramtypes", []),
1074
+ __metadata("design:returntype", void 0)
1075
+ ], View.prototype, "onUnloaded", null);
1076
+ __decorate([
1077
+ profile,
1078
+ __metadata("design:type", Function),
1079
+ __metadata("design:paramtypes", []),
1080
+ __metadata("design:returntype", void 0)
1081
+ ], View.prototype, "requestLayout", null);
1082
+ return View;
1083
+ }(ViewCommon));
1084
+ export { View };
1085
+ var ContainerView = /** @class */ (function (_super) {
1086
+ __extends(ContainerView, _super);
1087
+ function ContainerView() {
1088
+ return _super !== null && _super.apply(this, arguments) || this;
1089
+ }
1090
+ return ContainerView;
1091
+ }(View));
1092
+ export { ContainerView };
1093
+ var CustomLayoutView = /** @class */ (function (_super) {
1094
+ __extends(CustomLayoutView, _super);
1095
+ function CustomLayoutView() {
1096
+ return _super !== null && _super.apply(this, arguments) || this;
1097
+ }
1098
+ CustomLayoutView.prototype.createNativeView = function () {
1067
1099
  return new org.nativescript.widgets.ContentLayout(this._context);
1068
- }
1069
- _addViewToNativeVisualTree(child, atIndex = Number.MAX_SAFE_INTEGER) {
1070
- super._addViewToNativeVisualTree(child);
1100
+ };
1101
+ CustomLayoutView.prototype._addViewToNativeVisualTree = function (child, atIndex) {
1102
+ if (atIndex === void 0) { atIndex = Number.MAX_SAFE_INTEGER; }
1103
+ _super.prototype._addViewToNativeVisualTree.call(this, child);
1071
1104
  if (this.nativeViewProtected && child.nativeViewProtected) {
1072
1105
  if (Trace.isEnabled()) {
1073
- Trace.write(`${this}.nativeView.addView(${child}.nativeView, ${atIndex})`, Trace.categories.VisualTreeEvents);
1106
+ Trace.write("".concat(this, ".nativeView.addView(").concat(child, ".nativeView, ").concat(atIndex, ")"), Trace.categories.VisualTreeEvents);
1074
1107
  }
1075
1108
  this.nativeViewProtected.addView(child.nativeViewProtected, atIndex);
1076
1109
  if (child instanceof View) {
@@ -1079,35 +1112,37 @@ export class CustomLayoutView extends ContainerView {
1079
1112
  return true;
1080
1113
  }
1081
1114
  return false;
1082
- }
1083
- _updateNativeLayoutParams(child) {
1115
+ };
1116
+ CustomLayoutView.prototype._updateNativeLayoutParams = function (child) {
1084
1117
  // noop
1085
- }
1086
- _setChildMinWidthNative(child, value) {
1118
+ };
1119
+ CustomLayoutView.prototype._setChildMinWidthNative = function (child, value) {
1087
1120
  child._setMinWidthNative(value);
1088
- }
1089
- _setChildMinHeightNative(child, value) {
1121
+ };
1122
+ CustomLayoutView.prototype._setChildMinHeightNative = function (child, value) {
1090
1123
  child._setMinHeightNative(value);
1091
- }
1092
- _removeViewFromNativeVisualTree(child) {
1093
- super._removeViewFromNativeVisualTree(child);
1094
- const nativeView = this.nativeViewProtected;
1095
- const childView = child.nativeViewProtected;
1124
+ };
1125
+ CustomLayoutView.prototype._removeViewFromNativeVisualTree = function (child) {
1126
+ _super.prototype._removeViewFromNativeVisualTree.call(this, child);
1127
+ var nativeView = this.nativeViewProtected;
1128
+ var childView = child.nativeViewProtected;
1096
1129
  if (nativeView && childView) {
1097
1130
  nativeView.removeView(childView);
1098
1131
  if (Trace.isEnabled()) {
1099
- Trace.write(`${nativeView}.removeView(${childView})`, Trace.categories.VisualTreeEvents);
1132
+ Trace.write("".concat(nativeView, ".removeView(").concat(childView, ")"), Trace.categories.VisualTreeEvents);
1100
1133
  Trace.notifyEvent(child, 'childInLayoutRemovedFromNativeVisualTree');
1101
1134
  }
1102
1135
  }
1103
- }
1104
- }
1105
- const percentNotSupported = (view, value) => {
1136
+ };
1137
+ return CustomLayoutView;
1138
+ }(ContainerView));
1139
+ export { CustomLayoutView };
1140
+ var percentNotSupported = function (view, value) {
1106
1141
  throw new Error('PercentLength is not supported.');
1107
1142
  };
1108
1143
  function createNativePercentLengthProperty(options) {
1109
- const { getter, setter, auto = 0 } = options;
1110
- let setPixels, getPixels, setPercent;
1144
+ var getter = options.getter, setter = options.setter, _a = options.auto, auto = _a === void 0 ? 0 : _a;
1145
+ var setPixels, getPixels, setPercent;
1111
1146
  if (getter) {
1112
1147
  View.prototype[getter] = function () {
1113
1148
  if (options) {
@@ -1116,13 +1151,13 @@ function createNativePercentLengthProperty(options) {
1116
1151
  setPercent = options.setPercent || percentNotSupported;
1117
1152
  options = null;
1118
1153
  }
1119
- const value = getPixels(this.nativeViewProtected);
1154
+ var value = getPixels(this.nativeViewProtected);
1120
1155
  if (value == auto) {
1121
1156
  // tslint:disable-line
1122
1157
  return 'auto';
1123
1158
  }
1124
1159
  else {
1125
- return { value, unit: 'px' };
1160
+ return { value: value, unit: 'px' };
1126
1161
  }
1127
1162
  };
1128
1163
  }
@@ -1154,7 +1189,7 @@ function createNativePercentLengthProperty(options) {
1154
1189
  setPercent(this.nativeViewProtected, length.value);
1155
1190
  }
1156
1191
  else {
1157
- throw new Error(`Unsupported PercentLength ${length}`);
1192
+ throw new Error("Unsupported PercentLength ".concat(length));
1158
1193
  }
1159
1194
  };
1160
1195
  }