@nativescript/core 8.9.0-alpha.2 → 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 +42 -45
  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
@@ -16,45 +16,55 @@ export * from './view-common';
16
16
  export * from './view-helper';
17
17
  // This one can eventually be cleaned up but causes issues with a lot of ui-suite plugins in particular if not exported here
18
18
  export * from '../properties';
19
- const PFLAG_FORCE_LAYOUT = 1;
20
- const PFLAG_MEASURED_DIMENSION_SET = 1 << 1;
21
- const PFLAG_LAYOUT_REQUIRED = 1 << 2;
22
- export class View extends ViewCommon {
23
- constructor() {
24
- super(...arguments);
25
- this._isLaidOut = false;
26
- this._hasTransform = false;
27
- this._hasPendingTransform = false;
28
- this._privateFlags = PFLAG_LAYOUT_REQUIRED | PFLAG_FORCE_LAYOUT;
29
- this._suspendCATransaction = false;
30
- }
31
- get isLayoutRequired() {
32
- return (this._privateFlags & PFLAG_LAYOUT_REQUIRED) === PFLAG_LAYOUT_REQUIRED;
33
- }
34
- get isLayoutRequested() {
35
- return (this._privateFlags & PFLAG_FORCE_LAYOUT) === PFLAG_FORCE_LAYOUT;
36
- }
37
- disposeNativeView() {
38
- super.disposeNativeView();
19
+ var PFLAG_FORCE_LAYOUT = 1;
20
+ var PFLAG_MEASURED_DIMENSION_SET = 1 << 1;
21
+ var PFLAG_LAYOUT_REQUIRED = 1 << 2;
22
+ var View = /** @class */ (function (_super) {
23
+ __extends(View, _super);
24
+ function View() {
25
+ var _this = _super !== null && _super.apply(this, arguments) || this;
26
+ _this._isLaidOut = false;
27
+ _this._hasTransform = false;
28
+ _this._hasPendingTransform = false;
29
+ _this._privateFlags = PFLAG_LAYOUT_REQUIRED | PFLAG_FORCE_LAYOUT;
30
+ _this._suspendCATransaction = false;
31
+ return _this;
32
+ }
33
+ Object.defineProperty(View.prototype, "isLayoutRequired", {
34
+ get: function () {
35
+ return (this._privateFlags & PFLAG_LAYOUT_REQUIRED) === PFLAG_LAYOUT_REQUIRED;
36
+ },
37
+ enumerable: false,
38
+ configurable: true
39
+ });
40
+ Object.defineProperty(View.prototype, "isLayoutRequested", {
41
+ get: function () {
42
+ return (this._privateFlags & PFLAG_FORCE_LAYOUT) === PFLAG_FORCE_LAYOUT;
43
+ },
44
+ enumerable: false,
45
+ configurable: true
46
+ });
47
+ View.prototype.disposeNativeView = function () {
48
+ _super.prototype.disposeNativeView.call(this);
39
49
  this._cachedFrame = null;
40
50
  this._isLaidOut = false;
41
51
  this._hasTransform = false;
42
52
  this._hasPendingTransform = false;
43
- }
44
- requestLayout() {
53
+ };
54
+ View.prototype.requestLayout = function () {
45
55
  this._privateFlags |= PFLAG_FORCE_LAYOUT;
46
- super.requestLayout();
47
- const nativeView = this.nativeViewProtected;
56
+ _super.prototype.requestLayout.call(this);
57
+ var nativeView = this.nativeViewProtected;
48
58
  if (nativeView && nativeView.setNeedsLayout) {
49
59
  nativeView.setNeedsLayout();
50
60
  }
51
61
  if (this.viewController && this.viewController.view !== nativeView) {
52
62
  this.viewController.view.setNeedsLayout();
53
63
  }
54
- }
55
- measure(widthMeasureSpec, heightMeasureSpec) {
56
- const measureSpecsChanged = this._setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec);
57
- const forceLayout = (this._privateFlags & PFLAG_FORCE_LAYOUT) === PFLAG_FORCE_LAYOUT;
64
+ };
65
+ View.prototype.measure = function (widthMeasureSpec, heightMeasureSpec) {
66
+ var measureSpecsChanged = this._setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec);
67
+ var forceLayout = (this._privateFlags & PFLAG_FORCE_LAYOUT) === PFLAG_FORCE_LAYOUT;
58
68
  if (this.nativeViewProtected && (forceLayout || measureSpecsChanged)) {
59
69
  // first clears the measured dimension flag
60
70
  this._privateFlags &= ~PFLAG_MEASURED_DIMENSION_SET;
@@ -69,20 +79,31 @@ export class View extends ViewCommon {
69
79
  }
70
80
  }
71
81
  }
72
- }
73
- layout(left, top, right, bottom, setFrame = true) {
74
- const { boundsChanged, sizeChanged } = this._setCurrentLayoutBounds(left, top, right, bottom);
82
+ };
83
+ View.prototype.layout = function (left, top, right, bottom, setFrame) {
84
+ if (setFrame === void 0) { setFrame = true; }
85
+ var result = this._setCurrentLayoutBounds(left, top, right, bottom);
86
+ var sizeChanged = result.sizeChanged;
75
87
  if (setFrame) {
76
88
  this.layoutNativeView(left, top, right, bottom);
77
89
  }
78
- const needsLayout = boundsChanged || (this._privateFlags & PFLAG_LAYOUT_REQUIRED) === PFLAG_LAYOUT_REQUIRED;
90
+ var needsLayout = result.boundsChanged || (this._privateFlags & PFLAG_LAYOUT_REQUIRED) === PFLAG_LAYOUT_REQUIRED;
79
91
  if (needsLayout) {
80
- let position = { left, top, right, bottom };
92
+ var position = void 0;
81
93
  if (this.nativeViewProtected && SDK_VERSION > 10) {
82
94
  // on iOS 11+ it is possible to have a changed layout frame due to safe area insets
83
95
  // get the frame and adjust the position, so that onLayout works correctly
84
- const frame = this.nativeViewProtected.frame;
85
- position = IOSHelper.getPositionFromFrame(frame);
96
+ position = IOSHelper.getPositionFromFrame(this.nativeViewProtected.frame);
97
+ if (!sizeChanged) {
98
+ // If frame has actually changed, there is the need to update view background and border styles as they depend on native view bounds
99
+ // To trigger the needed visual update, mark size as changed
100
+ if (position.left !== left || position.top !== top || position.right !== right || position.bottom !== bottom) {
101
+ sizeChanged = true;
102
+ }
103
+ }
104
+ }
105
+ else {
106
+ position = { left: left, top: top, right: right, bottom: bottom };
86
107
  }
87
108
  this.onLayout(position.left, position.top, position.right, position.bottom);
88
109
  this._privateFlags &= ~PFLAG_LAYOUT_REQUIRED;
@@ -93,13 +114,13 @@ export class View extends ViewCommon {
93
114
  this._hasPendingTransform = false;
94
115
  }
95
116
  this._privateFlags &= ~PFLAG_FORCE_LAYOUT;
96
- }
97
- updateBackground(sizeChanged, needsLayout) {
117
+ };
118
+ View.prototype.updateBackground = function (sizeChanged, needsLayout) {
98
119
  if (sizeChanged) {
99
120
  this._onSizeChanged();
100
121
  }
101
122
  else if (this._nativeBackgroundState === 'invalid') {
102
- const background = this.style.backgroundInternal;
123
+ var background = this.style.backgroundInternal;
103
124
  this._redrawNativeBackground(background);
104
125
  }
105
126
  else {
@@ -108,51 +129,51 @@ export class View extends ViewCommon {
108
129
  this.layoutOuterShadows();
109
130
  }
110
131
  }
111
- }
112
- layoutOuterShadows() {
113
- const nativeView = this.nativeViewProtected;
114
- if (nativeView?.outerShadowContainerLayer) {
132
+ };
133
+ View.prototype.layoutOuterShadows = function () {
134
+ var nativeView = this.nativeViewProtected;
135
+ if (nativeView === null || nativeView === void 0 ? void 0 : nativeView.outerShadowContainerLayer) {
115
136
  CATransaction.setDisableActions(true);
116
137
  nativeView.outerShadowContainerLayer.bounds = nativeView.bounds;
117
138
  nativeView.outerShadowContainerLayer.position = nativeView.center;
118
139
  CATransaction.setDisableActions(false);
119
140
  }
120
- }
121
- setMeasuredDimension(measuredWidth, measuredHeight) {
122
- super.setMeasuredDimension(measuredWidth, measuredHeight);
141
+ };
142
+ View.prototype.setMeasuredDimension = function (measuredWidth, measuredHeight) {
143
+ _super.prototype.setMeasuredDimension.call(this, measuredWidth, measuredHeight);
123
144
  this._privateFlags |= PFLAG_MEASURED_DIMENSION_SET;
124
- }
125
- onMeasure(widthMeasureSpec, heightMeasureSpec) {
126
- const view = this.nativeViewProtected;
127
- const width = layout.getMeasureSpecSize(widthMeasureSpec);
128
- const widthMode = layout.getMeasureSpecMode(widthMeasureSpec);
129
- const height = layout.getMeasureSpecSize(heightMeasureSpec);
130
- const heightMode = layout.getMeasureSpecMode(heightMeasureSpec);
131
- let nativeWidth = 0;
132
- let nativeHeight = 0;
145
+ };
146
+ View.prototype.onMeasure = function (widthMeasureSpec, heightMeasureSpec) {
147
+ var view = this.nativeViewProtected;
148
+ var width = layout.getMeasureSpecSize(widthMeasureSpec);
149
+ var widthMode = layout.getMeasureSpecMode(widthMeasureSpec);
150
+ var height = layout.getMeasureSpecSize(heightMeasureSpec);
151
+ var heightMode = layout.getMeasureSpecMode(heightMeasureSpec);
152
+ var nativeWidth = 0;
153
+ var nativeHeight = 0;
133
154
  if (view) {
134
- const nativeSize = layout.measureNativeView(view, width, widthMode, height, heightMode);
155
+ var nativeSize = layout.measureNativeView(view, width, widthMode, height, heightMode);
135
156
  nativeWidth = nativeSize.width;
136
157
  nativeHeight = nativeSize.height;
137
158
  }
138
- const measureWidth = Math.max(nativeWidth, this.effectiveMinWidth);
139
- const measureHeight = Math.max(nativeHeight, this.effectiveMinHeight);
140
- const widthAndState = View.resolveSizeAndState(measureWidth, width, widthMode, 0);
141
- const heightAndState = View.resolveSizeAndState(measureHeight, height, heightMode, 0);
159
+ var measureWidth = Math.max(nativeWidth, this.effectiveMinWidth);
160
+ var measureHeight = Math.max(nativeHeight, this.effectiveMinHeight);
161
+ var widthAndState = View.resolveSizeAndState(measureWidth, width, widthMode, 0);
162
+ var heightAndState = View.resolveSizeAndState(measureHeight, height, heightMode, 0);
142
163
  this.setMeasuredDimension(widthAndState, heightAndState);
143
- }
144
- onLayout(left, top, right, bottom) {
164
+ };
165
+ View.prototype.onLayout = function (left, top, right, bottom) {
145
166
  //
146
- }
147
- _setNativeViewFrame(nativeView, frame) {
148
- const oldFrame = this._cachedFrame || nativeView.frame;
167
+ };
168
+ View.prototype._setNativeViewFrame = function (nativeView, frame) {
169
+ var oldFrame = this._cachedFrame || nativeView.frame;
149
170
  if (!CGRectEqualToRect(oldFrame, frame)) {
150
171
  if (Trace.isEnabled()) {
151
172
  Trace.write(this + ' :_setNativeViewFrame: ' + JSON.stringify(IOSHelper.getPositionFromFrame(frame)), Trace.categories.Layout);
152
173
  }
153
174
  this._cachedFrame = frame;
154
- let adjustedFrame = null;
155
- let transform = null;
175
+ var adjustedFrame = null;
176
+ var transform = null;
156
177
  if (this._hasTransform) {
157
178
  // Always set identity transform before setting frame;
158
179
  transform = nativeView.layer.transform;
@@ -170,8 +191,8 @@ export class View extends ViewCommon {
170
191
  // re-apply the transform after the frame is adjusted
171
192
  nativeView.layer.transform = transform;
172
193
  }
173
- const boundsOrigin = nativeView.bounds.origin;
174
- const boundsFrame = adjustedFrame || frame;
194
+ var boundsOrigin = nativeView.bounds.origin;
195
+ var boundsFrame = adjustedFrame || frame;
175
196
  nativeView.bounds = CGRectMake(boundsOrigin.x, boundsOrigin.y, boundsFrame.size.width, boundsFrame.size.height);
176
197
  nativeView.layoutIfNeeded();
177
198
  this._raiseLayoutChangedEvent();
@@ -184,58 +205,62 @@ export class View extends ViewCommon {
184
205
  // this method is called twice with equal rects in landscape mode (vs only once in portrait)
185
206
  this._isLaidOut = true;
186
207
  }
187
- }
188
- get isLayoutValid() {
189
- if (this.nativeViewProtected) {
190
- return this._isLayoutValid;
191
- }
192
- return false;
193
- }
194
- layoutNativeView(left, top, right, bottom) {
208
+ };
209
+ Object.defineProperty(View.prototype, "isLayoutValid", {
210
+ get: function () {
211
+ if (this.nativeViewProtected) {
212
+ return this._isLayoutValid;
213
+ }
214
+ return false;
215
+ },
216
+ enumerable: false,
217
+ configurable: true
218
+ });
219
+ View.prototype.layoutNativeView = function (left, top, right, bottom) {
195
220
  if (!this.nativeViewProtected) {
196
221
  return;
197
222
  }
198
- const nativeView = this.nativeViewProtected;
199
- const frame = IOSHelper.getFrameFromPosition({
200
- left,
201
- top,
202
- right,
203
- bottom,
223
+ var nativeView = this.nativeViewProtected;
224
+ var frame = IOSHelper.getFrameFromPosition({
225
+ left: left,
226
+ top: top,
227
+ right: right,
228
+ bottom: bottom,
204
229
  });
205
230
  this._setNativeViewFrame(nativeView, frame);
206
- }
207
- _layoutParent() {
231
+ };
232
+ View.prototype._layoutParent = function () {
208
233
  if (this.nativeViewProtected) {
209
- const frame = this.nativeViewProtected.frame;
210
- const origin = frame.origin;
211
- const size = frame.size;
212
- const left = layout.toDevicePixels(origin.x);
213
- const top = layout.toDevicePixels(origin.y);
214
- const width = layout.toDevicePixels(size.width);
215
- const height = layout.toDevicePixels(size.height);
216
- this._setLayoutFlags(left, top, width + left, height + top);
217
- }
218
- super._layoutParent();
219
- }
220
- _setLayoutFlags(left, top, right, bottom) {
221
- const width = right - left;
222
- const height = bottom - top;
223
- const widthSpec = layout.makeMeasureSpec(width, layout.EXACTLY);
224
- const heightSpec = layout.makeMeasureSpec(height, layout.EXACTLY);
234
+ var frame = this.nativeViewProtected.frame;
235
+ var origin_1 = frame.origin;
236
+ var size = frame.size;
237
+ var left = layout.toDevicePixels(origin_1.x);
238
+ var top_1 = layout.toDevicePixels(origin_1.y);
239
+ var width = layout.toDevicePixels(size.width);
240
+ var height = layout.toDevicePixels(size.height);
241
+ this._setLayoutFlags(left, top_1, width + left, height + top_1);
242
+ }
243
+ _super.prototype._layoutParent.call(this);
244
+ };
245
+ View.prototype._setLayoutFlags = function (left, top, right, bottom) {
246
+ var width = right - left;
247
+ var height = bottom - top;
248
+ var widthSpec = layout.makeMeasureSpec(width, layout.EXACTLY);
249
+ var heightSpec = layout.makeMeasureSpec(height, layout.EXACTLY);
225
250
  this._setCurrentMeasureSpecs(widthSpec, heightSpec);
226
251
  this._privateFlags &= ~PFLAG_FORCE_LAYOUT;
227
252
  this.setMeasuredDimension(width, height);
228
- const { boundsChanged, sizeChanged } = this._setCurrentLayoutBounds(left, top, right, bottom);
253
+ var _a = this._setCurrentLayoutBounds(left, top, right, bottom), boundsChanged = _a.boundsChanged, sizeChanged = _a.sizeChanged;
229
254
  this.updateBackground(sizeChanged, boundsChanged);
230
255
  this._privateFlags &= ~PFLAG_LAYOUT_REQUIRED;
231
- }
232
- focus() {
256
+ };
257
+ View.prototype.focus = function () {
233
258
  if (this.ios) {
234
259
  return this.ios.becomeFirstResponder();
235
260
  }
236
261
  return false;
237
- }
238
- applySafeAreaInsets(frame) {
262
+ };
263
+ View.prototype.applySafeAreaInsets = function (frame) {
239
264
  if (!__VISIONOS__ && SDK_VERSION <= 10) {
240
265
  return null;
241
266
  }
@@ -249,10 +274,10 @@ export class View extends ViewCommon {
249
274
  return IOSHelper.expandBeyondSafeArea(this, frame);
250
275
  }
251
276
  return null;
252
- }
253
- getSafeAreaInsets() {
254
- const safeAreaInsets = this.nativeViewProtected && this.nativeViewProtected.safeAreaInsets;
255
- const insets = { left: 0, top: 0, right: 0, bottom: 0 };
277
+ };
278
+ View.prototype.getSafeAreaInsets = function () {
279
+ var safeAreaInsets = this.nativeViewProtected && this.nativeViewProtected.safeAreaInsets;
280
+ var insets = { left: 0, top: 0, right: 0, bottom: 0 };
256
281
  if (this.iosIgnoreSafeArea) {
257
282
  return insets;
258
283
  }
@@ -263,60 +288,60 @@ export class View extends ViewCommon {
263
288
  insets.bottom = layout.round(layout.toDevicePixels(safeAreaInsets.bottom));
264
289
  }
265
290
  return insets;
266
- }
267
- getLocationInWindow() {
291
+ };
292
+ View.prototype.getLocationInWindow = function () {
268
293
  if (!this.nativeViewProtected || !this.nativeViewProtected.window) {
269
294
  return undefined;
270
295
  }
271
- const pointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
296
+ var pointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
272
297
  return {
273
298
  x: pointInWindow.x,
274
299
  y: pointInWindow.y,
275
300
  };
276
- }
277
- getLocationOnScreen() {
301
+ };
302
+ View.prototype.getLocationOnScreen = function () {
278
303
  if (!this.nativeViewProtected || !this.nativeViewProtected.window) {
279
304
  return undefined;
280
305
  }
281
- const pointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
282
- const pointOnScreen = this.nativeViewProtected.window.convertPointToWindow(pointInWindow, null);
306
+ var pointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
307
+ var pointOnScreen = this.nativeViewProtected.window.convertPointToWindow(pointInWindow, null);
283
308
  return {
284
309
  x: pointOnScreen.x,
285
310
  y: pointOnScreen.y,
286
311
  };
287
- }
288
- getLocationRelativeTo(otherView) {
312
+ };
313
+ View.prototype.getLocationRelativeTo = function (otherView) {
289
314
  if (!this.nativeViewProtected || !this.nativeViewProtected.window || !otherView.nativeViewProtected || !otherView.nativeViewProtected.window || this.nativeViewProtected.window !== otherView.nativeViewProtected.window) {
290
315
  return undefined;
291
316
  }
292
- const myPointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
293
- const otherPointInWindow = otherView.nativeViewProtected.convertPointToView(otherView.nativeViewProtected.bounds.origin, null);
317
+ var myPointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
318
+ var otherPointInWindow = otherView.nativeViewProtected.convertPointToView(otherView.nativeViewProtected.bounds.origin, null);
294
319
  return {
295
320
  x: myPointInWindow.x - otherPointInWindow.x,
296
321
  y: myPointInWindow.y - otherPointInWindow.y,
297
322
  };
298
- }
299
- _onSizeChanged() {
300
- const nativeView = this.nativeViewProtected;
323
+ };
324
+ View.prototype._onSizeChanged = function () {
325
+ var nativeView = this.nativeViewProtected;
301
326
  if (!nativeView) {
302
327
  return;
303
328
  }
304
- const background = this.style.backgroundInternal;
305
- const backgroundDependsOnSize = (background.image && background.image !== 'none') || background.clipPath || !background.hasUniformBorder() || background.hasBorderRadius() || background.hasBoxShadow();
329
+ var background = this.style.backgroundInternal;
330
+ var backgroundDependsOnSize = (background.image && background.image !== 'none') || background.clipPath || !background.hasUniformBorder() || background.hasBorderRadius() || background.hasBoxShadow();
306
331
  if (this._nativeBackgroundState === 'invalid' || (this._nativeBackgroundState === 'drawn' && backgroundDependsOnSize)) {
307
332
  this._redrawNativeBackground(background);
308
333
  }
309
- }
310
- updateNativeTransform() {
334
+ };
335
+ View.prototype.updateNativeTransform = function () {
311
336
  if (!this.isLayoutValid) {
312
337
  this._hasPendingTransform = true;
313
338
  return;
314
339
  }
315
- const scaleX = this.scaleX || 1e-6;
316
- const scaleY = this.scaleY || 1e-6;
317
- const perspective = this.perspective || 300;
318
- const nativeView = this.nativeViewProtected;
319
- let transform = new CATransform3D(CATransform3DIdentity);
340
+ var scaleX = this.scaleX || 1e-6;
341
+ var scaleY = this.scaleY || 1e-6;
342
+ var perspective = this.perspective || 300;
343
+ var nativeView = this.nativeViewProtected;
344
+ var transform = new CATransform3D(CATransform3DIdentity);
320
345
  // Only set perspective if there is 3D rotation
321
346
  if (this.rotateX || this.rotateY) {
322
347
  transform.m34 = -1 / perspective;
@@ -324,9 +349,9 @@ export class View extends ViewCommon {
324
349
  transform = CATransform3DTranslate(transform, this.translateX, this.translateY, 0);
325
350
  transform = iosUtils.applyRotateTransform(transform, this.rotateX, this.rotateY, this.rotate);
326
351
  transform = CATransform3DScale(transform, scaleX, scaleY, 1);
327
- const needsTransform = !CATransform3DEqualToTransform(this.nativeViewProtected.layer.transform, transform) || (nativeView.outerShadowContainerLayer && !CATransform3DEqualToTransform(nativeView.outerShadowContainerLayer.transform, transform));
352
+ var needsTransform = !CATransform3DEqualToTransform(this.nativeViewProtected.layer.transform, transform) || (nativeView.outerShadowContainerLayer && !CATransform3DEqualToTransform(nativeView.outerShadowContainerLayer.transform, transform));
328
353
  if (needsTransform) {
329
- const updateSuspended = this._isPresentationLayerUpdateSuspended();
354
+ var updateSuspended = this._isPresentationLayerUpdateSuspended();
330
355
  if (!updateSuspended) {
331
356
  CATransaction.begin();
332
357
  }
@@ -342,47 +367,49 @@ export class View extends ViewCommon {
342
367
  CATransaction.commit();
343
368
  }
344
369
  }
345
- }
346
- updateOriginPoint(originX, originY) {
347
- const nativeView = this.nativeViewProtected;
348
- const newPoint = CGPointMake(originX, originY);
370
+ };
371
+ View.prototype.updateOriginPoint = function (originX, originY) {
372
+ var nativeView = this.nativeViewProtected;
373
+ var newPoint = CGPointMake(originX, originY);
349
374
  // Disable CALayer animatable property changes
350
375
  CATransaction.setDisableActions(true);
351
376
  nativeView.layer.anchorPoint = newPoint;
352
377
  // Bounds have to be recalculated after anchor point update
353
378
  if (this._cachedFrame) {
354
- const frame = this._cachedFrame;
379
+ var frame = this._cachedFrame;
355
380
  this._cachedFrame = null;
356
381
  this._setNativeViewFrame(nativeView, frame);
357
382
  }
358
383
  // Make sure new origin also applies to outer shadow layers
359
384
  if (nativeView.outerShadowContainerLayer) {
360
385
  // This is the new frame after view origin point update
361
- const frame = nativeView.frame;
386
+ var frame = nativeView.frame;
362
387
  nativeView.outerShadowContainerLayer.anchorPoint = newPoint;
363
388
  nativeView.outerShadowContainerLayer.position = CGPointMake(frame.origin.x + frame.size.width * originX, frame.origin.y + frame.size.height * originY);
364
389
  }
365
390
  CATransaction.setDisableActions(false);
366
- }
391
+ };
367
392
  // By default we update the view's presentation layer when setting backgroundColor and opacity properties.
368
393
  // This is done by calling CATransaction begin and commit methods.
369
394
  // This action should be disabled when updating those properties during an animation.
370
- _suspendPresentationLayerUpdates() {
395
+ View.prototype._suspendPresentationLayerUpdates = function () {
371
396
  this._suspendCATransaction = true;
372
- }
373
- _resumePresentationLayerUpdates() {
397
+ };
398
+ View.prototype._resumePresentationLayerUpdates = function () {
374
399
  this._suspendCATransaction = false;
375
- }
376
- _isPresentationLayerUpdateSuspended() {
400
+ };
401
+ View.prototype._isPresentationLayerUpdateSuspended = function () {
377
402
  return this._suspendCATransaction || this._suspendNativeUpdatesCount > 0;
378
- }
379
- _showNativeModalView(parent, options) {
380
- const parentWithController = IOSHelper.getParentWithViewController(parent);
403
+ };
404
+ View.prototype._showNativeModalView = function (parent, options) {
405
+ var _this = this;
406
+ var _a;
407
+ var parentWithController = IOSHelper.getParentWithViewController(parent);
381
408
  if (!parentWithController) {
382
- Trace.write(`Could not find parent with viewController for ${parent} while showing modal view.`, Trace.categories.ViewHierarchy, Trace.messageType.error);
409
+ Trace.write("Could not find parent with viewController for ".concat(parent, " while showing modal view."), Trace.categories.ViewHierarchy, Trace.messageType.error);
383
410
  return;
384
411
  }
385
- const parentController = parentWithController.viewController;
412
+ var parentController = parentWithController.viewController;
386
413
  if (parentController.presentedViewController) {
387
414
  Trace.write('Parent is already presenting view controller. Close the current modal page before showing another one!', Trace.categories.ViewHierarchy, Trace.messageType.error);
388
415
  return;
@@ -392,10 +419,10 @@ export class View extends ViewCommon {
392
419
  return;
393
420
  }
394
421
  this._setupAsRootView({});
395
- super._showNativeModalView(parentWithController, options);
396
- let controller = this.viewController;
422
+ _super.prototype._showNativeModalView.call(this, parentWithController, options);
423
+ var controller = this.viewController;
397
424
  if (!controller) {
398
- const nativeView = this.ios || this.nativeViewProtected;
425
+ var nativeView = this.ios || this.nativeViewProtected;
399
426
  controller = IOSHelper.UILayoutViewController.initWithOwner(new WeakRef(this));
400
427
  if (nativeView instanceof UIView) {
401
428
  controller.view.addSubview(nativeView);
@@ -408,8 +435,8 @@ export class View extends ViewCommon {
408
435
  this._transitioningDelegate = UIViewControllerTransitioningDelegateImpl.initWithOwner(new WeakRef(options.transition.instance));
409
436
  controller.transitioningDelegate = this._transitioningDelegate;
410
437
  this.transitionId = options.transition.instance.id;
411
- const transitionState = SharedTransition.getState(options.transition.instance.id);
412
- if (transitionState?.interactive?.dismiss) {
438
+ var transitionState = SharedTransition.getState(options.transition.instance.id);
439
+ if ((_a = transitionState === null || transitionState === void 0 ? void 0 : transitionState.interactive) === null || _a === void 0 ? void 0 : _a.dismiss) {
413
440
  // interactive transitions via gestures
414
441
  // TODO - these could be typed as: boolean | (view: View) => void
415
442
  // to allow users to define their own custom gesture dismissals
@@ -429,28 +456,28 @@ export class View extends ViewCommon {
429
456
  }
430
457
  else {
431
458
  //use CSS & attribute width & height if option is not provided
432
- const handler = () => {
433
- if (this.viewController) {
434
- const w = (this.width || this.style.width);
435
- const h = (this.height || this.style.height);
459
+ var handler_1 = function () {
460
+ if (_this.viewController) {
461
+ var w = (_this.width || _this.style.width);
462
+ var h = (_this.height || _this.style.height);
436
463
  //TODO: only numeric value is supported, percentage value is not supported like Android
437
464
  if (w > 0 && h > 0) {
438
- this.viewController.preferredContentSize = CGSizeMake(w, h);
465
+ _this.viewController.preferredContentSize = CGSizeMake(w, h);
439
466
  }
440
467
  }
441
- this.off(View.loadedEvent, handler);
468
+ _this.off(View.loadedEvent, handler_1);
442
469
  };
443
- this.on(View.loadedEvent, handler);
470
+ this.on(View.loadedEvent, handler_1);
444
471
  }
445
472
  }
446
473
  if (options.ios && options.ios.presentationStyle) {
447
- const presentationStyle = options.ios.presentationStyle;
474
+ var presentationStyle = options.ios.presentationStyle;
448
475
  controller.modalPresentationStyle = presentationStyle;
449
476
  if (presentationStyle === 7 /* UIModalPresentationStyle.Popover */) {
450
477
  this._setupPopoverControllerDelegate(controller, parent);
451
478
  }
452
479
  }
453
- const cancelable = options.cancelable !== undefined ? !!options.cancelable : true;
480
+ var cancelable = options.cancelable !== undefined ? !!options.cancelable : true;
454
481
  if (SDK_VERSION >= 13) {
455
482
  if (cancelable) {
456
483
  // Listen for dismiss modal callback.
@@ -464,7 +491,7 @@ export class View extends ViewCommon {
464
491
  this.horizontalAlignment = 'stretch';
465
492
  this.verticalAlignment = 'stretch';
466
493
  this._raiseShowingModallyEvent();
467
- const animated = options.animated === undefined ? true : !!options.animated;
494
+ var animated = options.animated === undefined ? true : !!options.animated;
468
495
  if (!this._modalAnimatedOptions) {
469
496
  // track the user's animated options to use upon close as well
470
497
  this._modalAnimatedOptions = [];
@@ -477,12 +504,12 @@ export class View extends ViewCommon {
477
504
  // return true;
478
505
  // }
479
506
  parentController.presentViewControllerAnimatedCompletion(controller, animated, null);
480
- const transitionCoordinator = parentController.transitionCoordinator;
507
+ var transitionCoordinator = parentController.transitionCoordinator;
481
508
  if (transitionCoordinator) {
482
- transitionCoordinator.animateAlongsideTransitionCompletion(null, () => {
483
- setTimeout(() => {
509
+ transitionCoordinator.animateAlongsideTransitionCompletion(null, function () {
510
+ setTimeout(function () {
484
511
  // ensure raised on main queue
485
- this._raiseShownModallyEvent();
512
+ _this._raiseShownModallyEvent();
486
513
  });
487
514
  });
488
515
  }
@@ -493,8 +520,10 @@ export class View extends ViewCommon {
493
520
  this._raiseShownModallyEvent();
494
521
  }
495
522
  controller = null;
496
- }
497
- _hideNativeModalView(parent, whenClosedCallback) {
523
+ };
524
+ View.prototype._hideNativeModalView = function (parent, whenClosedCallback) {
525
+ var _this = this;
526
+ var _a;
498
527
  if (!parent || !parent.viewController) {
499
528
  Trace.error('Trying to hide modal view but no parent with viewController specified.');
500
529
  return;
@@ -504,126 +533,124 @@ export class View extends ViewCommon {
504
533
  whenClosedCallback();
505
534
  return;
506
535
  }
507
- const parentController = parent.viewController;
508
- let animated = true;
509
- if (this._modalAnimatedOptions?.length) {
536
+ var parentController = parent.viewController;
537
+ var animated = true;
538
+ if ((_a = this._modalAnimatedOptions) === null || _a === void 0 ? void 0 : _a.length) {
510
539
  animated = this._modalAnimatedOptions.slice(-1)[0];
511
540
  }
512
- parentController.dismissViewControllerAnimatedCompletion(animated, () => {
513
- const transitionState = SharedTransition.getState(this.transitionId);
514
- if (!transitionState?.interactiveCancelled) {
515
- this._transitioningDelegate = null;
541
+ parentController.dismissViewControllerAnimatedCompletion(animated, function () {
542
+ var transitionState = SharedTransition.getState(_this.transitionId);
543
+ if (!(transitionState === null || transitionState === void 0 ? void 0 : transitionState.interactiveCancelled)) {
544
+ _this._transitioningDelegate = null;
516
545
  // this.off('pan', this._interactiveDismissGesture);
517
- if (this._modalAnimatedOptions) {
518
- this._modalAnimatedOptions.pop();
546
+ if (_this._modalAnimatedOptions) {
547
+ _this._modalAnimatedOptions.pop();
519
548
  }
520
549
  }
521
550
  whenClosedCallback();
522
551
  });
523
- }
524
- [isEnabledProperty.getDefault]() {
525
- const nativeView = this.nativeViewProtected;
552
+ };
553
+ View.prototype[isEnabledProperty.getDefault] = function () {
554
+ var nativeView = this.nativeViewProtected;
526
555
  return nativeView instanceof UIControl ? nativeView.enabled : true;
527
- }
528
- [isEnabledProperty.setNative](value) {
529
- const nativeView = this.nativeViewProtected;
556
+ };
557
+ View.prototype[isEnabledProperty.setNative] = function (value) {
558
+ var nativeView = this.nativeViewProtected;
530
559
  if (nativeView instanceof UIControl) {
531
560
  nativeView.enabled = value;
532
561
  }
533
- }
534
- [originXProperty.getDefault]() {
562
+ };
563
+ View.prototype[originXProperty.getDefault] = function () {
535
564
  return this.nativeViewProtected.layer.anchorPoint.x;
536
- }
537
- [originXProperty.setNative](value) {
565
+ };
566
+ View.prototype[originXProperty.setNative] = function (value) {
538
567
  this.updateOriginPoint(value, this.originY);
539
- }
540
- [originYProperty.getDefault]() {
568
+ };
569
+ View.prototype[originYProperty.getDefault] = function () {
541
570
  return this.nativeViewProtected.layer.anchorPoint.y;
542
- }
543
- [originYProperty.setNative](value) {
571
+ };
572
+ View.prototype[originYProperty.setNative] = function (value) {
544
573
  this.updateOriginPoint(this.originX, value);
545
- }
546
- [testIDProperty.setNative](value) {
574
+ };
575
+ View.prototype[testIDProperty.setNative] = function (value) {
547
576
  this.setAccessibilityIdentifier(this.nativeViewProtected, value);
548
- }
549
- setAccessibilityIdentifier(view, value) {
577
+ };
578
+ View.prototype.setAccessibilityIdentifier = function (view, value) {
550
579
  view.accessibilityIdentifier = value;
551
580
  if (this.testID && this.testID !== value)
552
581
  this.testID = value;
553
582
  if (this.accessibilityIdentifier !== value)
554
583
  this.accessibilityIdentifier = value;
555
- }
556
- [accessibilityEnabledProperty.setNative](value) {
584
+ };
585
+ View.prototype[accessibilityEnabledProperty.setNative] = function (value) {
557
586
  this.nativeViewProtected.isAccessibilityElement = !!value;
558
- if (value) {
559
- updateAccessibilityProperties(this);
560
- }
561
- }
562
- [accessibilityIdentifierProperty.getDefault]() {
587
+ updateAccessibilityProperties(this);
588
+ };
589
+ View.prototype[accessibilityIdentifierProperty.getDefault] = function () {
563
590
  return this.nativeViewProtected.accessibilityIdentifier;
564
- }
565
- [accessibilityIdentifierProperty.setNative](value) {
591
+ };
592
+ View.prototype[accessibilityIdentifierProperty.setNative] = function (value) {
566
593
  this.setAccessibilityIdentifier(this.nativeViewProtected, value);
567
- }
568
- [accessibilityRoleProperty.setNative](value) {
594
+ };
595
+ View.prototype[accessibilityRoleProperty.setNative] = function (value) {
569
596
  this.accessibilityRole = value;
570
597
  updateAccessibilityProperties(this);
571
- }
572
- [accessibilityValueProperty.setNative](value) {
573
- value = value == null ? null : `${value}`;
598
+ };
599
+ View.prototype[accessibilityValueProperty.setNative] = function (value) {
600
+ value = value == null ? null : "".concat(value);
574
601
  this.nativeViewProtected.accessibilityValue = value;
575
- }
576
- [accessibilityLabelProperty.setNative](value) {
577
- value = value == null ? null : `${value}`;
602
+ };
603
+ View.prototype[accessibilityLabelProperty.setNative] = function (value) {
604
+ value = value == null ? null : "".concat(value);
578
605
  // not sure if needed for Label:
579
606
  // if ((<any>this).nativeTextViewProtected) {
580
607
  // (<any>this).nativeTextViewProtected.accessibilityLabel = value;
581
608
  // } else {
582
609
  this.nativeViewProtected.accessibilityLabel = value;
583
610
  // }
584
- }
585
- [accessibilityHintProperty.setNative](value) {
586
- value = value == null ? null : `${value}`;
611
+ };
612
+ View.prototype[accessibilityHintProperty.setNative] = function (value) {
613
+ value = value == null ? null : "".concat(value);
587
614
  this.nativeViewProtected.accessibilityHint = value;
588
- }
589
- [accessibilityIgnoresInvertColorsProperty.setNative](value) {
615
+ };
616
+ View.prototype[accessibilityIgnoresInvertColorsProperty.setNative] = function (value) {
590
617
  this.nativeViewProtected.accessibilityIgnoresInvertColors = !!value;
591
- }
592
- [accessibilityLanguageProperty.setNative](value) {
593
- value = value == null ? null : `${value}`;
618
+ };
619
+ View.prototype[accessibilityLanguageProperty.setNative] = function (value) {
620
+ value = value == null ? null : "".concat(value);
594
621
  this.nativeViewProtected.accessibilityLanguage = value;
595
- }
596
- [accessibilityHiddenProperty.setNative](value) {
622
+ };
623
+ View.prototype[accessibilityHiddenProperty.setNative] = function (value) {
597
624
  this.nativeViewProtected.accessibilityElementsHidden = !!value;
598
625
  updateAccessibilityProperties(this);
599
- }
600
- [accessibilityLiveRegionProperty.setNative]() {
626
+ };
627
+ View.prototype[accessibilityLiveRegionProperty.setNative] = function () {
601
628
  updateAccessibilityProperties(this);
602
- }
603
- [accessibilityStateProperty.setNative](value) {
629
+ };
630
+ View.prototype[accessibilityStateProperty.setNative] = function (value) {
604
631
  this.accessibilityState = value;
605
632
  updateAccessibilityProperties(this);
606
- }
607
- [accessibilityMediaSessionProperty.setNative]() {
633
+ };
634
+ View.prototype[accessibilityMediaSessionProperty.setNative] = function () {
608
635
  updateAccessibilityProperties(this);
609
- }
610
- [isUserInteractionEnabledProperty.getDefault]() {
636
+ };
637
+ View.prototype[isUserInteractionEnabledProperty.getDefault] = function () {
611
638
  return this.nativeViewProtected.userInteractionEnabled;
612
- }
613
- [isUserInteractionEnabledProperty.setNative](value) {
639
+ };
640
+ View.prototype[isUserInteractionEnabledProperty.setNative] = function (value) {
614
641
  this.nativeViewProtected.userInteractionEnabled = value;
615
- }
616
- [hiddenProperty.getDefault]() {
642
+ };
643
+ View.prototype[hiddenProperty.getDefault] = function () {
617
644
  return this.nativeViewProtected.hidden;
618
- }
619
- [hiddenProperty.setNative](value) {
645
+ };
646
+ View.prototype[hiddenProperty.setNative] = function (value) {
620
647
  this.nativeViewProtected.hidden = value;
621
- }
622
- [visibilityProperty.getDefault]() {
648
+ };
649
+ View.prototype[visibilityProperty.getDefault] = function () {
623
650
  return this.nativeViewProtected.hidden ? CoreTypes.Visibility.collapse : CoreTypes.Visibility.visible;
624
- }
625
- [visibilityProperty.setNative](value) {
626
- const nativeView = this.nativeViewProtected;
651
+ };
652
+ View.prototype[visibilityProperty.setNative] = function (value) {
653
+ var nativeView = this.nativeViewProtected;
627
654
  switch (value) {
628
655
  case CoreTypes.Visibility.visible:
629
656
  nativeView.hidden = false;
@@ -633,19 +660,19 @@ export class View extends ViewCommon {
633
660
  nativeView.hidden = true;
634
661
  break;
635
662
  default:
636
- throw new Error(`Invalid visibility value: ${value}. Valid values are: "${CoreTypes.Visibility.visible}", "${CoreTypes.Visibility.hidden}", "${CoreTypes.Visibility.collapse}".`);
663
+ throw new Error("Invalid visibility value: ".concat(value, ". Valid values are: \"").concat(CoreTypes.Visibility.visible, "\", \"").concat(CoreTypes.Visibility.hidden, "\", \"").concat(CoreTypes.Visibility.collapse, "\"."));
637
664
  }
638
665
  // Apply visibility value to shadows as well
639
666
  if (nativeView.outerShadowContainerLayer) {
640
667
  nativeView.outerShadowContainerLayer.hidden = nativeView.hidden;
641
668
  }
642
- }
643
- [opacityProperty.getDefault]() {
669
+ };
670
+ View.prototype[opacityProperty.getDefault] = function () {
644
671
  return this.nativeViewProtected.alpha;
645
- }
646
- [opacityProperty.setNative](value) {
647
- const nativeView = this.nativeViewProtected;
648
- const updateSuspended = this._isPresentationLayerUpdateSuspended();
672
+ };
673
+ View.prototype[opacityProperty.setNative] = function (value) {
674
+ var nativeView = this.nativeViewProtected;
675
+ var updateSuspended = this._isPresentationLayerUpdateSuspended();
649
676
  if (!updateSuspended) {
650
677
  CATransaction.begin();
651
678
  }
@@ -660,85 +687,85 @@ export class View extends ViewCommon {
660
687
  if (!updateSuspended) {
661
688
  CATransaction.commit();
662
689
  }
663
- }
664
- [rotateProperty.getDefault]() {
690
+ };
691
+ View.prototype[rotateProperty.getDefault] = function () {
665
692
  return 0;
666
- }
667
- [rotateProperty.setNative](value) {
693
+ };
694
+ View.prototype[rotateProperty.setNative] = function (value) {
668
695
  this.updateNativeTransform();
669
- }
670
- [rotateXProperty.getDefault]() {
696
+ };
697
+ View.prototype[rotateXProperty.getDefault] = function () {
671
698
  return 0;
672
- }
673
- [rotateXProperty.setNative](value) {
699
+ };
700
+ View.prototype[rotateXProperty.setNative] = function (value) {
674
701
  this.updateNativeTransform();
675
- }
676
- [rotateYProperty.getDefault]() {
702
+ };
703
+ View.prototype[rotateYProperty.getDefault] = function () {
677
704
  return 0;
678
- }
679
- [rotateYProperty.setNative](value) {
705
+ };
706
+ View.prototype[rotateYProperty.setNative] = function (value) {
680
707
  this.updateNativeTransform();
681
- }
682
- [perspectiveProperty.getDefault]() {
708
+ };
709
+ View.prototype[perspectiveProperty.getDefault] = function () {
683
710
  return 300;
684
- }
685
- [perspectiveProperty.setNative](value) {
711
+ };
712
+ View.prototype[perspectiveProperty.setNative] = function (value) {
686
713
  this.updateNativeTransform();
687
- }
688
- [scaleXProperty.getDefault]() {
714
+ };
715
+ View.prototype[scaleXProperty.getDefault] = function () {
689
716
  return 1;
690
- }
691
- [scaleXProperty.setNative](value) {
717
+ };
718
+ View.prototype[scaleXProperty.setNative] = function (value) {
692
719
  this.updateNativeTransform();
693
- }
694
- [scaleYProperty.getDefault]() {
720
+ };
721
+ View.prototype[scaleYProperty.getDefault] = function () {
695
722
  return 1;
696
- }
697
- [scaleYProperty.setNative](value) {
723
+ };
724
+ View.prototype[scaleYProperty.setNative] = function (value) {
698
725
  this.updateNativeTransform();
699
- }
700
- [translateXProperty.getDefault]() {
726
+ };
727
+ View.prototype[translateXProperty.getDefault] = function () {
701
728
  return 0;
702
- }
703
- [translateXProperty.setNative](value) {
729
+ };
730
+ View.prototype[translateXProperty.setNative] = function (value) {
704
731
  this.updateNativeTransform();
705
- }
706
- [translateYProperty.getDefault]() {
732
+ };
733
+ View.prototype[translateYProperty.getDefault] = function () {
707
734
  return 0;
708
- }
709
- [translateYProperty.setNative](value) {
735
+ };
736
+ View.prototype[translateYProperty.setNative] = function (value) {
710
737
  this.updateNativeTransform();
711
- }
712
- [zIndexProperty.getDefault]() {
738
+ };
739
+ View.prototype[zIndexProperty.getDefault] = function () {
713
740
  return 0;
714
- }
715
- [zIndexProperty.setNative](value) {
716
- const nativeView = this.nativeViewProtected;
741
+ };
742
+ View.prototype[zIndexProperty.setNative] = function (value) {
743
+ var nativeView = this.nativeViewProtected;
717
744
  nativeView.layer.zPosition = value;
718
745
  // Apply z-index to shadows as well
719
746
  if (nativeView.outerShadowContainerLayer) {
720
747
  nativeView.outerShadowContainerLayer.zPosition = value;
721
748
  }
722
- }
723
- [backgroundInternalProperty.getDefault]() {
749
+ };
750
+ View.prototype[backgroundInternalProperty.getDefault] = function () {
724
751
  return this.nativeViewProtected.backgroundColor;
725
- }
726
- [backgroundInternalProperty.setNative](value) {
752
+ };
753
+ View.prototype[backgroundInternalProperty.setNative] = function (value) {
727
754
  this._nativeBackgroundState = 'invalid';
728
755
  if (this.isLayoutValid) {
729
756
  this._redrawNativeBackground(value);
730
757
  }
731
- }
732
- sendAccessibilityEvent(options) {
758
+ };
759
+ View.prototype.sendAccessibilityEvent = function (options) {
733
760
  if (!isAccessibilityServiceEnabled()) {
734
761
  return;
735
762
  }
736
763
  if (!options.iosNotificationType) {
737
764
  return;
738
765
  }
739
- let notification;
740
- let args = this.nativeViewProtected;
741
- if (options?.message) {
766
+ var notification;
767
+ var args = this.nativeViewProtected;
768
+ if (options === null || options === void 0 ? void 0 : options.message) {
742
769
  args = options.message;
743
770
  }
744
771
  switch (options.iosNotificationType) {
@@ -758,50 +785,51 @@ export class View extends ViewCommon {
758
785
  return;
759
786
  }
760
787
  }
761
- UIAccessibilityPostNotification(notification, args ?? null);
762
- }
763
- accessibilityAnnouncement(msg = this.accessibilityLabel) {
788
+ UIAccessibilityPostNotification(notification, args !== null && args !== void 0 ? args : null);
789
+ };
790
+ View.prototype.accessibilityAnnouncement = function (msg) {
791
+ if (msg === void 0) { msg = this.accessibilityLabel; }
764
792
  this.sendAccessibilityEvent({
765
793
  iosNotificationType: IOSPostAccessibilityNotificationType.Announcement,
766
794
  message: msg,
767
795
  });
768
- }
769
- accessibilityScreenChanged() {
796
+ };
797
+ View.prototype.accessibilityScreenChanged = function () {
770
798
  this.sendAccessibilityEvent({
771
799
  iosNotificationType: IOSPostAccessibilityNotificationType.Screen,
772
800
  });
773
- }
774
- _getCurrentLayoutBounds() {
775
- const nativeView = this.nativeViewProtected;
801
+ };
802
+ View.prototype._getCurrentLayoutBounds = function () {
803
+ var nativeView = this.nativeViewProtected;
776
804
  if (nativeView && !this.isCollapsed) {
777
- const frame = nativeView.frame;
778
- const origin = frame.origin;
779
- const size = frame.size;
805
+ var frame = nativeView.frame;
806
+ var origin_2 = frame.origin;
807
+ var size = frame.size;
780
808
  return {
781
- left: Math.round(layout.toDevicePixels(origin.x)),
782
- top: Math.round(layout.toDevicePixels(origin.y)),
783
- right: Math.round(layout.toDevicePixels(origin.x + size.width)),
784
- bottom: Math.round(layout.toDevicePixels(origin.y + size.height)),
809
+ left: Math.round(layout.toDevicePixels(origin_2.x)),
810
+ top: Math.round(layout.toDevicePixels(origin_2.y)),
811
+ right: Math.round(layout.toDevicePixels(origin_2.x + size.width)),
812
+ bottom: Math.round(layout.toDevicePixels(origin_2.y + size.height)),
785
813
  };
786
814
  }
787
815
  else {
788
816
  return { left: 0, top: 0, right: 0, bottom: 0 };
789
817
  }
790
- }
791
- _redrawNativeBackground(value) {
792
- const updateSuspended = this._isPresentationLayerUpdateSuspended();
818
+ };
819
+ View.prototype._redrawNativeBackground = function (value) {
820
+ var updateSuspended = this._isPresentationLayerUpdateSuspended();
793
821
  if (!updateSuspended) {
794
822
  CATransaction.begin();
795
823
  }
796
824
  // Disable CALayer animatable property changes
797
825
  CATransaction.setDisableActions(true);
798
- const nativeView = this.nativeViewProtected;
826
+ var nativeView = this.nativeViewProtected;
799
827
  if (nativeView) {
800
828
  if (value instanceof UIColor) {
801
829
  nativeView.backgroundColor = value;
802
830
  }
803
831
  else {
804
- iosBackground.createBackgroundUIColor(this, (color) => {
832
+ iosBackground.createBackgroundUIColor(this, function (color) {
805
833
  nativeView.backgroundColor = color;
806
834
  });
807
835
  this._setNativeClipToBounds();
@@ -812,19 +840,19 @@ export class View extends ViewCommon {
812
840
  CATransaction.commit();
813
841
  }
814
842
  this._nativeBackgroundState = 'drawn';
815
- }
816
- _setNativeClipToBounds() {
817
- const view = this.nativeViewProtected;
843
+ };
844
+ View.prototype._setNativeClipToBounds = function () {
845
+ var view = this.nativeViewProtected;
818
846
  if (view) {
819
- const backgroundInternal = this.style.backgroundInternal;
847
+ var backgroundInternal = this.style.backgroundInternal;
820
848
  view.clipsToBounds = view instanceof UIScrollView || backgroundInternal.hasBorderWidth() || backgroundInternal.hasBorderRadius();
821
849
  }
822
- }
823
- _setupPopoverControllerDelegate(controller, parent) {
824
- const popoverPresentationController = controller.popoverPresentationController;
850
+ };
851
+ View.prototype._setupPopoverControllerDelegate = function (controller, parent) {
852
+ var popoverPresentationController = controller.popoverPresentationController;
825
853
  this._popoverPresentationDelegate = IOSHelper.UIPopoverPresentationControllerDelegateImp.initWithOwnerAndCallback(new WeakRef(this), this._closeModalCallback);
826
854
  popoverPresentationController.delegate = this._popoverPresentationDelegate;
827
- let view;
855
+ var view;
828
856
  do {
829
857
  view = parent.nativeViewProtected;
830
858
  parent = parent.parent;
@@ -833,26 +861,28 @@ export class View extends ViewCommon {
833
861
  // Note: sourceView should be the button triggering the modal. If it the Page the popover might appear "behind" the page content
834
862
  popoverPresentationController.sourceView = view;
835
863
  popoverPresentationController.sourceRect = CGRectMake(0, 0, view.frame.size.width, view.frame.size.height);
836
- }
837
- _setupAdaptiveControllerDelegate(controller) {
864
+ };
865
+ View.prototype._setupAdaptiveControllerDelegate = function (controller) {
838
866
  this._adaptivePresentationDelegate = IOSHelper.UIAdaptivePresentationControllerDelegateImp.initWithOwnerAndCallback(new WeakRef(this), this._closeModalCallback);
839
- if (controller?.presentationController) {
867
+ if (controller === null || controller === void 0 ? void 0 : controller.presentationController) {
840
868
  controller.presentationController.delegate = this._adaptivePresentationDelegate;
841
869
  }
842
- }
843
- }
844
- __decorate([
845
- profile,
846
- __metadata("design:type", Function),
847
- __metadata("design:paramtypes", [Number, Number, Number, Number, Object]),
848
- __metadata("design:returntype", void 0)
849
- ], View.prototype, "layout", null);
850
- __decorate([
851
- profile,
852
- __metadata("design:type", Function),
853
- __metadata("design:paramtypes", [Number, Number]),
854
- __metadata("design:returntype", void 0)
855
- ], View.prototype, "onMeasure", null);
870
+ };
871
+ __decorate([
872
+ profile,
873
+ __metadata("design:type", Function),
874
+ __metadata("design:paramtypes", [Number, Number, Number, Number, Object]),
875
+ __metadata("design:returntype", void 0)
876
+ ], View.prototype, "layout", null);
877
+ __decorate([
878
+ profile,
879
+ __metadata("design:type", Function),
880
+ __metadata("design:paramtypes", [Number, Number]),
881
+ __metadata("design:returntype", void 0)
882
+ ], View.prototype, "onMeasure", null);
883
+ return View;
884
+ }(ViewCommon));
885
+ export { View };
856
886
  View.prototype._nativeBackgroundState = 'unset';
857
887
  var UIViewControllerTransitioningDelegateImpl = /** @class */ (function (_super) {
858
888
  __extends(UIViewControllerTransitioningDelegateImpl, _super);
@@ -902,27 +932,39 @@ var UIViewControllerTransitioningDelegateImpl = /** @class */ (function (_super)
902
932
  UIViewControllerTransitioningDelegateImpl.ObjCProtocols = [UIViewControllerTransitioningDelegate];
903
933
  return UIViewControllerTransitioningDelegateImpl;
904
934
  }(NSObject));
905
- export class ContainerView extends View {
906
- constructor() {
907
- super();
908
- this.iosOverflowSafeArea = true;
935
+ var ContainerView = /** @class */ (function (_super) {
936
+ __extends(ContainerView, _super);
937
+ function ContainerView() {
938
+ var _this = _super.call(this) || this;
939
+ _this.iosOverflowSafeArea = true;
940
+ return _this;
941
+ }
942
+ return ContainerView;
943
+ }(View));
944
+ export { ContainerView };
945
+ var CustomLayoutView = /** @class */ (function (_super) {
946
+ __extends(CustomLayoutView, _super);
947
+ function CustomLayoutView() {
948
+ return _super !== null && _super.apply(this, arguments) || this;
909
949
  }
910
- }
911
- export class CustomLayoutView extends ContainerView {
912
- createNativeView() {
913
- const window = iosUtils.getWindow();
950
+ CustomLayoutView.prototype.createNativeView = function () {
951
+ var window = iosUtils.getWindow();
914
952
  return UIView.alloc().initWithFrame(window ? window.screen.bounds : UIScreen.mainScreen.bounds);
915
- }
916
- get ios() {
917
- return this.nativeViewProtected;
918
- }
919
- onMeasure(widthMeasureSpec, heightMeasureSpec) {
953
+ };
954
+ Object.defineProperty(CustomLayoutView.prototype, "ios", {
955
+ get: function () {
956
+ return this.nativeViewProtected;
957
+ },
958
+ enumerable: false,
959
+ configurable: true
960
+ });
961
+ CustomLayoutView.prototype.onMeasure = function (widthMeasureSpec, heightMeasureSpec) {
920
962
  // Don't call super because it will set MeasureDimension. This method must be overridden and calculate its measuredDimensions.
921
- }
922
- _addViewToNativeVisualTree(child, atIndex) {
923
- super._addViewToNativeVisualTree(child, atIndex);
924
- const parentNativeView = this.nativeViewProtected;
925
- const childNativeView = child.nativeViewProtected;
963
+ };
964
+ CustomLayoutView.prototype._addViewToNativeVisualTree = function (child, atIndex) {
965
+ _super.prototype._addViewToNativeVisualTree.call(this, child, atIndex);
966
+ var parentNativeView = this.nativeViewProtected;
967
+ var childNativeView = child.nativeViewProtected;
926
968
  if (parentNativeView && childNativeView) {
927
969
  if (typeof atIndex !== 'number' || atIndex >= parentNativeView.subviews.count) {
928
970
  parentNativeView.addSubview(childNativeView);
@@ -937,17 +979,19 @@ export class CustomLayoutView extends ContainerView {
937
979
  return true;
938
980
  }
939
981
  return false;
940
- }
941
- _removeViewFromNativeVisualTree(child) {
942
- super._removeViewFromNativeVisualTree(child);
982
+ };
983
+ CustomLayoutView.prototype._removeViewFromNativeVisualTree = function (child) {
984
+ _super.prototype._removeViewFromNativeVisualTree.call(this, child);
943
985
  if (child.nativeViewProtected) {
944
- const nativeView = child.nativeViewProtected;
986
+ var nativeView = child.nativeViewProtected;
945
987
  // Remove outer shadow layer manually as it belongs to parent layer tree
946
988
  if (nativeView.outerShadowContainerLayer) {
947
989
  nativeView.outerShadowContainerLayer.removeFromSuperlayer();
948
990
  }
949
991
  nativeView.removeFromSuperview();
950
992
  }
951
- }
952
- }
993
+ };
994
+ return CustomLayoutView;
995
+ }(ContainerView));
996
+ export { CustomLayoutView };
953
997
  //# sourceMappingURL=index.ios.js.map