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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (758) hide show
  1. package/abortcontroller/abortsignal.js +23 -16
  2. package/abortcontroller/abortsignal.js.map +1 -1
  3. package/abortcontroller/index.js +20 -14
  4. package/abortcontroller/index.js.map +1 -1
  5. package/accessibility/accessibility-common.js +8 -8
  6. package/accessibility/accessibility-common.js.map +1 -1
  7. package/accessibility/accessibility-css-helper.js +27 -27
  8. package/accessibility/accessibility-css-helper.js.map +1 -1
  9. package/accessibility/accessibility-properties.js +23 -23
  10. package/accessibility/accessibility-properties.js.map +1 -1
  11. package/accessibility/accessibility-service-common.js +22 -12
  12. package/accessibility/accessibility-service-common.js.map +1 -1
  13. package/accessibility/accessibility-service.android.js +39 -27
  14. package/accessibility/accessibility-service.android.js.map +1 -1
  15. package/accessibility/accessibility-service.ios.js +17 -14
  16. package/accessibility/accessibility-service.ios.js.map +1 -1
  17. package/accessibility/font-scale-common.js +2 -2
  18. package/accessibility/font-scale-common.js.map +1 -1
  19. package/accessibility/font-scale.android.js +8 -7
  20. package/accessibility/font-scale.android.js.map +1 -1
  21. package/accessibility/font-scale.ios.js +10 -9
  22. package/accessibility/font-scale.ios.js.map +1 -1
  23. package/accessibility/index.android.js +83 -77
  24. package/accessibility/index.android.js.map +1 -1
  25. package/accessibility/index.ios.js +36 -34
  26. package/accessibility/index.ios.js.map +1 -1
  27. package/animation-frame/animation-native.ios.js +1 -1
  28. package/animation-frame/animation-native.ios.js.map +1 -1
  29. package/animation-frame/index.js +16 -16
  30. package/animation-frame/index.js.map +1 -1
  31. package/application/application-common.js +214 -196
  32. package/application/application-common.js.map +1 -1
  33. package/application/application-shims.js +39 -39
  34. package/application/application-shims.js.map +1 -1
  35. package/application/application.android.js +149 -110
  36. package/application/application.android.js.map +1 -1
  37. package/application/application.ios.js +197 -162
  38. package/application/application.ios.js.map +1 -1
  39. package/application-settings/index.android.js +11 -11
  40. package/application-settings/index.android.js.map +1 -1
  41. package/application-settings/index.ios.js +1 -1
  42. package/application-settings/index.ios.js.map +1 -1
  43. package/bundle-entry-points.js +1 -1
  44. package/bundle-entry-points.js.map +1 -1
  45. package/color/color-common.js +200 -157
  46. package/color/color-common.js.map +1 -1
  47. package/color/index.android.js +14 -4
  48. package/color/index.android.js.map +1 -1
  49. package/color/index.ios.js +24 -14
  50. package/color/index.ios.js.map +1 -1
  51. package/color/known-colors.js +144 -144
  52. package/color/known-colors.js.map +1 -1
  53. package/connectivity/index.android.js +23 -23
  54. package/connectivity/index.android.js.map +1 -1
  55. package/connectivity/index.ios.js +25 -25
  56. package/connectivity/index.ios.js.map +1 -1
  57. package/console/index.js +24 -20
  58. package/console/index.js.map +1 -1
  59. package/core-types/index.d.ts +2 -2
  60. package/core-types/index.js +41 -41
  61. package/core-types/index.js.map +1 -1
  62. package/css/CSS3Parser.js +106 -104
  63. package/css/CSS3Parser.js.map +1 -1
  64. package/css/CSSNativeScript.js +34 -29
  65. package/css/CSSNativeScript.js.map +1 -1
  66. package/css/css-tree-parser.js.map +1 -1
  67. package/css/parser.js +179 -158
  68. package/css/parser.js.map +1 -1
  69. package/css/system-classes.js +9 -9
  70. package/css/system-classes.js.map +1 -1
  71. package/css-mediaquery/index.js +29 -27
  72. package/css-mediaquery/index.js.map +1 -1
  73. package/data/observable/index.d.ts +1 -0
  74. package/data/observable/index.js +124 -114
  75. package/data/observable/index.js.map +1 -1
  76. package/data/observable-array/index.js +176 -119
  77. package/data/observable-array/index.js.map +1 -1
  78. package/data/virtual-array/index.js +74 -61
  79. package/data/virtual-array/index.js.map +1 -1
  80. package/debugger/InspectorBackendCommands.js +161 -137
  81. package/debugger/InspectorBackendCommands.js.map +1 -1
  82. package/debugger/devtools-elements.common.js +20 -20
  83. package/debugger/devtools-elements.common.js.map +1 -1
  84. package/debugger/devtools-elements.js +2 -2
  85. package/debugger/devtools-elements.js.map +1 -1
  86. package/debugger/dom-node.js +73 -61
  87. package/debugger/dom-node.js.map +1 -1
  88. package/debugger/index.js +19 -19
  89. package/debugger/index.js.map +1 -1
  90. package/debugger/webinspector-css.js +30 -25
  91. package/debugger/webinspector-css.js.map +1 -1
  92. package/debugger/webinspector-dom.js +43 -38
  93. package/debugger/webinspector-dom.js.map +1 -1
  94. package/debugger/webinspector-network.android.js +132 -103
  95. package/debugger/webinspector-network.android.js.map +1 -1
  96. package/debugger/webinspector-network.ios.js +128 -100
  97. package/debugger/webinspector-network.ios.js.map +1 -1
  98. package/file-system/file-system-access.android.js +421 -414
  99. package/file-system/file-system-access.android.js.map +1 -1
  100. package/file-system/file-system-access.ios.js +215 -205
  101. package/file-system/file-system-access.ios.js.map +1 -1
  102. package/file-system/index.js +372 -294
  103. package/file-system/index.js.map +1 -1
  104. package/fps-meter/fps-native.android.js +18 -15
  105. package/fps-meter/fps-native.android.js.map +1 -1
  106. package/fps-meter/fps-native.ios.js +11 -9
  107. package/fps-meter/fps-native.ios.js.map +1 -1
  108. package/fps-meter/index.js +11 -11
  109. package/fps-meter/index.js.map +1 -1
  110. package/globals/index.js +117 -91
  111. package/globals/index.js.map +1 -1
  112. package/http/http-request/http-request-common.js +5 -5
  113. package/http/http-request/http-request-common.js.map +1 -1
  114. package/http/http-request/index.android.js +54 -53
  115. package/http/http-request/index.android.js.map +1 -1
  116. package/http/http-request/index.ios.js +58 -56
  117. package/http/http-request/index.ios.js.map +1 -1
  118. package/http/index.js +19 -19
  119. package/http/index.js.map +1 -1
  120. package/image-asset/image-asset-common.js +37 -25
  121. package/image-asset/image-asset-common.js.map +1 -1
  122. package/image-asset/index.android.js +25 -17
  123. package/image-asset/index.android.js.map +1 -1
  124. package/image-asset/index.ios.js +35 -25
  125. package/image-asset/index.ios.js.map +1 -1
  126. package/image-source/image-source-common.js +2 -2
  127. package/image-source/image-source-common.js.map +1 -1
  128. package/image-source/index.android.d.ts +3 -2
  129. package/image-source/index.android.js +189 -156
  130. package/image-source/index.android.js.map +1 -1
  131. package/image-source/index.d.ts +5 -0
  132. package/image-source/index.ios.d.ts +3 -2
  133. package/image-source/index.ios.js +211 -178
  134. package/image-source/index.ios.js.map +1 -1
  135. package/index.d.ts +1 -1
  136. package/index.js +8 -4
  137. package/index.js.map +1 -1
  138. package/matrix/index.js +27 -17
  139. package/matrix/index.js.map +1 -1
  140. package/media-query-list/index.js +87 -61
  141. package/media-query-list/index.js.map +1 -1
  142. package/module-name-resolver/index.js +24 -21
  143. package/module-name-resolver/index.js.map +1 -1
  144. package/module-name-resolver/non-bundle-workflow-compat.js +24 -24
  145. package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
  146. package/module-name-resolver/qualifier-matcher/index.js +46 -46
  147. package/module-name-resolver/qualifier-matcher/index.js.map +1 -1
  148. package/package.json +1 -1
  149. package/platform/common.js +5 -5
  150. package/platform/common.js.map +1 -1
  151. package/platform/device/index.android.js +107 -68
  152. package/platform/device/index.android.js.map +1 -1
  153. package/platform/device/index.ios.js +101 -62
  154. package/platform/device/index.ios.js.map +1 -1
  155. package/platform/screen/index.android.js +63 -32
  156. package/platform/screen/index.android.js.map +1 -1
  157. package/platform/screen/index.ios.js +60 -29
  158. package/platform/screen/index.ios.js.map +1 -1
  159. package/platforms/android/widgets-release.aar +0 -0
  160. package/platforms/android/winter_tc-release.aar +0 -0
  161. package/platforms/ios/{NSCWinterCG.xcframework → NSCWinterTC.xcframework}/Info.plist +22 -22
  162. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework}/Headers/NSCCrypto.h +1 -1
  163. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  164. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h} +3 -3
  165. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework}/Info.plist +0 -0
  166. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  167. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/NSCWinterTC} +0 -0
  168. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
  169. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  170. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  171. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework}/Headers/NSCCrypto.h +1 -1
  172. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  173. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h} +3 -3
  174. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  175. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/NSCWinterTC} +0 -0
  176. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework}/Resources/Info.plist +10 -10
  177. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A}/Headers/NSCCrypto.h +1 -1
  178. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCWinterTC.h +20 -0
  179. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSString+WinterTC.h} +3 -3
  180. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Modules/module.modulemap +6 -0
  181. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/NSCWinterTC} +0 -0
  182. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A}/Resources/Info.plist +10 -10
  183. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/Current/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC} +0 -0
  184. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
  185. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  186. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  187. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  188. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework}/Headers/NSCCrypto.h +1 -1
  189. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  190. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h} +3 -3
  191. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework}/Info.plist +0 -0
  192. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  193. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC} +0 -0
  194. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework}/_CodeSignature/CodeResources +13 -13
  195. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
  196. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  197. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  198. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  199. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  200. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  201. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  202. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework → NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework}/Info.plist +0 -0
  203. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  204. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/NSCWinterTC} +0 -0
  205. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
  206. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  207. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  208. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  209. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  210. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  211. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework}/Info.plist +0 -0
  212. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  213. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC} +0 -0
  214. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework}/_CodeSignature/CodeResources +13 -13
  215. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  216. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  217. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  218. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  219. package/platforms/ios/src/NativeScriptMainWindow.swift +24 -7
  220. package/platforms/ios/src/UIView+NativeScript.m +2 -4
  221. package/profiling/index.js +47 -40
  222. package/profiling/index.js.map +1 -1
  223. package/text/text-common.js +49 -36
  224. package/text/text-common.js.map +1 -1
  225. package/timer/index.android.js +30 -20
  226. package/timer/index.android.js.map +1 -1
  227. package/timer/index.ios.js +22 -12
  228. package/timer/index.ios.js.map +1 -1
  229. package/trace/index.js +36 -26
  230. package/trace/index.js.map +1 -1
  231. package/ui/action-bar/action-bar-common.js +252 -193
  232. package/ui/action-bar/action-bar-common.js.map +1 -1
  233. package/ui/action-bar/index.android.d.ts +1 -0
  234. package/ui/action-bar/index.android.js +212 -167
  235. package/ui/action-bar/index.android.js.map +1 -1
  236. package/ui/action-bar/index.d.ts +33 -0
  237. package/ui/action-bar/index.ios.d.ts +7 -2
  238. package/ui/action-bar/index.ios.js +337 -193
  239. package/ui/action-bar/index.ios.js.map +1 -1
  240. package/ui/activity-indicator/activity-indicator-common.js +11 -6
  241. package/ui/activity-indicator/activity-indicator-common.js.map +1 -1
  242. package/ui/activity-indicator/index.android.js +26 -20
  243. package/ui/activity-indicator/index.android.js.map +1 -1
  244. package/ui/activity-indicator/index.d.ts +4 -0
  245. package/ui/activity-indicator/index.ios.js +31 -23
  246. package/ui/activity-indicator/index.ios.js.map +1 -1
  247. package/ui/animation/animation-common.d.ts +1 -8
  248. package/ui/animation/animation-common.js +50 -51
  249. package/ui/animation/animation-common.js.map +1 -1
  250. package/ui/animation/animation-interfaces.d.ts +11 -0
  251. package/ui/animation/animation-interfaces.js +14 -1
  252. package/ui/animation/animation-interfaces.js.map +1 -1
  253. package/ui/animation/index.android.d.ts +2 -2
  254. package/ui/animation/index.android.js +96 -92
  255. package/ui/animation/index.android.js.map +1 -1
  256. package/ui/animation/index.d.ts +0 -13
  257. package/ui/animation/index.ios.d.ts +2 -2
  258. package/ui/animation/index.ios.js +195 -229
  259. package/ui/animation/index.ios.js.map +1 -1
  260. package/ui/animation/keyframe-animation.js +89 -67
  261. package/ui/animation/keyframe-animation.js.map +1 -1
  262. package/ui/builder/binding-builder.js +31 -31
  263. package/ui/builder/binding-builder.js.map +1 -1
  264. package/ui/builder/component-builder/index.js +37 -37
  265. package/ui/builder/component-builder/index.js.map +1 -1
  266. package/ui/builder/index.js +59 -54
  267. package/ui/builder/index.js.map +1 -1
  268. package/ui/builder/xml2ui.js +158 -128
  269. package/ui/builder/xml2ui.js.map +1 -1
  270. package/ui/button/button-common.js +25 -18
  271. package/ui/button/button-common.js.map +1 -1
  272. package/ui/button/index.android.d.ts +1 -1
  273. package/ui/button/index.android.js +93 -80
  274. package/ui/button/index.android.js.map +1 -1
  275. package/ui/button/index.d.ts +6 -0
  276. package/ui/button/index.ios.js +118 -101
  277. package/ui/button/index.ios.js.map +1 -1
  278. package/ui/content-view/index.d.ts +9 -0
  279. package/ui/content-view/index.js +78 -60
  280. package/ui/content-view/index.js.map +1 -1
  281. package/ui/core/bindable/bindable-expressions.js +101 -93
  282. package/ui/core/bindable/bindable-expressions.js.map +1 -1
  283. package/ui/core/bindable/bindable-resources.js +1 -1
  284. package/ui/core/bindable/index.js +141 -136
  285. package/ui/core/bindable/index.js.map +1 -1
  286. package/ui/core/control-state-change/index.android.d.ts +2 -2
  287. package/ui/core/control-state-change/index.android.js +7 -5
  288. package/ui/core/control-state-change/index.android.js.map +1 -1
  289. package/ui/core/control-state-change/index.d.ts +4 -2
  290. package/ui/core/control-state-change/index.ios.d.ts +3 -7
  291. package/ui/core/control-state-change/index.ios.js +29 -42
  292. package/ui/core/control-state-change/index.ios.js.map +1 -1
  293. package/ui/core/properties/index.js +489 -440
  294. package/ui/core/properties/index.js.map +1 -1
  295. package/ui/core/view/index.android.d.ts +2 -7
  296. package/ui/core/view/index.android.js +387 -352
  297. package/ui/core/view/index.android.js.map +1 -1
  298. package/ui/core/view/index.d.ts +238 -14
  299. package/ui/core/view/index.ios.d.ts +3 -13
  300. package/ui/core/view/index.ios.js +411 -367
  301. package/ui/core/view/index.ios.js.map +1 -1
  302. package/ui/core/view/view-common.d.ts +11 -15
  303. package/ui/core/view/view-common.js +951 -654
  304. package/ui/core/view/view-common.js.map +1 -1
  305. package/ui/core/view/view-helper/index.android.js +19 -15
  306. package/ui/core/view/view-helper/index.android.js.map +1 -1
  307. package/ui/core/view/view-helper/index.d.ts +3 -3
  308. package/ui/core/view/view-helper/index.ios.d.ts +3 -18
  309. package/ui/core/view/view-helper/index.ios.js +85 -81
  310. package/ui/core/view/view-helper/index.ios.js.map +1 -1
  311. package/ui/core/view/view-helper/view-helper-common.js +49 -44
  312. package/ui/core/view/view-helper/view-helper-common.js.map +1 -1
  313. package/ui/core/view-base/index.d.ts +107 -4
  314. package/ui/core/view-base/index.js +452 -349
  315. package/ui/core/view-base/index.js.map +1 -1
  316. package/ui/core/weak-event-listener/index.js +26 -25
  317. package/ui/core/weak-event-listener/index.js.map +1 -1
  318. package/ui/date-picker/date-picker-common.d.ts +1 -0
  319. package/ui/date-picker/date-picker-common.js +35 -29
  320. package/ui/date-picker/date-picker-common.js.map +1 -1
  321. package/ui/date-picker/index.android.js +51 -43
  322. package/ui/date-picker/index.android.js.map +1 -1
  323. package/ui/date-picker/index.d.ts +30 -0
  324. package/ui/date-picker/index.ios.js +61 -51
  325. package/ui/date-picker/index.ios.js.map +1 -1
  326. package/ui/dialogs/dialogs-common.js +18 -18
  327. package/ui/dialogs/dialogs-common.js.map +1 -1
  328. package/ui/dialogs/index.android.js +98 -86
  329. package/ui/dialogs/index.android.js.map +1 -1
  330. package/ui/dialogs/index.ios.js +80 -67
  331. package/ui/dialogs/index.ios.js.map +1 -1
  332. package/ui/editable-text-base/editable-text-base-common.d.ts +1 -2
  333. package/ui/editable-text-base/editable-text-base-common.js +44 -32
  334. package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
  335. package/ui/editable-text-base/index.android.js +112 -106
  336. package/ui/editable-text-base/index.android.js.map +1 -1
  337. package/ui/editable-text-base/index.d.ts +42 -0
  338. package/ui/editable-text-base/index.ios.js +53 -47
  339. package/ui/editable-text-base/index.ios.js.map +1 -1
  340. package/ui/embedding/index.android.js +3 -2
  341. package/ui/embedding/index.android.js.map +1 -1
  342. package/ui/frame/activity.android.js +44 -44
  343. package/ui/frame/activity.android.js.map +1 -1
  344. package/ui/frame/callbacks/activity-callbacks.js +123 -118
  345. package/ui/frame/callbacks/activity-callbacks.js.map +1 -1
  346. package/ui/frame/callbacks/fragment-callbacks.js +141 -139
  347. package/ui/frame/callbacks/fragment-callbacks.js.map +1 -1
  348. package/ui/frame/fragment.android.js +21 -21
  349. package/ui/frame/fragment.android.js.map +1 -1
  350. package/ui/frame/fragment.ios.js +1 -1
  351. package/ui/frame/fragment.transitions.android.js +114 -105
  352. package/ui/frame/fragment.transitions.android.js.map +1 -1
  353. package/ui/frame/frame-common.d.ts +4 -3
  354. package/ui/frame/frame-common.js +288 -252
  355. package/ui/frame/frame-common.js.map +1 -1
  356. package/ui/frame/frame-helpers.js +1 -1
  357. package/ui/frame/frame-helpers.js.map +1 -1
  358. package/ui/frame/frame-stack.js +4 -4
  359. package/ui/frame/frame-stack.js.map +1 -1
  360. package/ui/frame/index.android.js +291 -239
  361. package/ui/frame/index.android.js.map +1 -1
  362. package/ui/frame/index.d.ts +40 -3
  363. package/ui/frame/index.ios.js +167 -133
  364. package/ui/frame/index.ios.js.map +1 -1
  365. package/ui/gestures/gestures-common.d.ts +22 -0
  366. package/ui/gestures/gestures-common.js +51 -15
  367. package/ui/gestures/gestures-common.js.map +1 -1
  368. package/ui/gestures/index.android.d.ts +1 -1
  369. package/ui/gestures/index.android.js +124 -109
  370. package/ui/gestures/index.android.js.map +1 -1
  371. package/ui/gestures/index.ios.d.ts +1 -1
  372. package/ui/gestures/index.ios.js +121 -108
  373. package/ui/gestures/index.ios.js.map +1 -1
  374. package/ui/gestures/touch-manager.d.ts +1 -1
  375. package/ui/gestures/touch-manager.js +48 -43
  376. package/ui/gestures/touch-manager.js.map +1 -1
  377. package/ui/html-view/html-view-common.d.ts +1 -0
  378. package/ui/html-view/html-view-common.js +14 -9
  379. package/ui/html-view/html-view-common.js.map +1 -1
  380. package/ui/html-view/index.android.js +43 -37
  381. package/ui/html-view/index.android.js.map +1 -1
  382. package/ui/html-view/index.d.ts +16 -2
  383. package/ui/html-view/index.ios.js +73 -62
  384. package/ui/html-view/index.ios.js.map +1 -1
  385. package/ui/image/image-common.d.ts +2 -0
  386. package/ui/image/image-common.js +59 -47
  387. package/ui/image/image-common.js.map +1 -1
  388. package/ui/image/index.android.js +59 -54
  389. package/ui/image/index.android.js.map +1 -1
  390. package/ui/image/index.d.ts +43 -1
  391. package/ui/image/index.ios.js +72 -65
  392. package/ui/image/index.ios.js.map +1 -1
  393. package/ui/image/symbol-effects-common.js +6 -2
  394. package/ui/image/symbol-effects-common.js.map +1 -1
  395. package/ui/image/symbol-effects.android.js +10 -4
  396. package/ui/image/symbol-effects.android.js.map +1 -1
  397. package/ui/image/symbol-effects.ios.js +11 -7
  398. package/ui/image/symbol-effects.ios.js.map +1 -1
  399. package/ui/image-cache/image-cache-common.js +61 -57
  400. package/ui/image-cache/image-cache-common.js.map +1 -1
  401. package/ui/image-cache/index.android.js +27 -23
  402. package/ui/image-cache/index.android.js.map +1 -1
  403. package/ui/image-cache/index.ios.js +29 -24
  404. package/ui/image-cache/index.ios.js.map +1 -1
  405. package/ui/index.d.ts +3 -1
  406. package/ui/index.js +1 -1
  407. package/ui/index.js.map +1 -1
  408. package/ui/label/index.android.js +38 -29
  409. package/ui/label/index.android.js.map +1 -1
  410. package/ui/label/index.d.ts +4 -0
  411. package/ui/label/index.ios.js +102 -89
  412. package/ui/label/index.ios.js.map +1 -1
  413. package/ui/layouts/absolute-layout/absolute-layout-common.js +30 -25
  414. package/ui/layouts/absolute-layout/absolute-layout-common.js.map +1 -1
  415. package/ui/layouts/absolute-layout/index.android.js +12 -6
  416. package/ui/layouts/absolute-layout/index.android.js.map +1 -1
  417. package/ui/layouts/absolute-layout/index.d.ts +2 -0
  418. package/ui/layouts/absolute-layout/index.ios.js +40 -32
  419. package/ui/layouts/absolute-layout/index.ios.js.map +1 -1
  420. package/ui/layouts/dock-layout/dock-layout-common.js +21 -16
  421. package/ui/layouts/dock-layout/dock-layout-common.js.map +1 -1
  422. package/ui/layouts/dock-layout/index.android.js +17 -11
  423. package/ui/layouts/dock-layout/index.android.js.map +1 -1
  424. package/ui/layouts/dock-layout/index.d.ts +5 -1
  425. package/ui/layouts/dock-layout/index.ios.js +53 -45
  426. package/ui/layouts/dock-layout/index.ios.js.map +1 -1
  427. package/ui/layouts/flexbox-layout/flexbox-layout-common.js +115 -90
  428. package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +1 -1
  429. package/ui/layouts/flexbox-layout/index.android.js +97 -92
  430. package/ui/layouts/flexbox-layout/index.android.js.map +1 -1
  431. package/ui/layouts/flexbox-layout/index.d.ts +32 -0
  432. package/ui/layouts/flexbox-layout/index.ios.js +427 -366
  433. package/ui/layouts/flexbox-layout/index.ios.js.map +1 -1
  434. package/ui/layouts/grid-layout/grid-layout-common.js +211 -159
  435. package/ui/layouts/grid-layout/grid-layout-common.js.map +1 -1
  436. package/ui/layouts/grid-layout/index.android.js +55 -49
  437. package/ui/layouts/grid-layout/index.android.js.map +1 -1
  438. package/ui/layouts/grid-layout/index.d.ts +19 -0
  439. package/ui/layouts/grid-layout/index.ios.js +348 -340
  440. package/ui/layouts/grid-layout/index.ios.js.map +1 -1
  441. package/ui/layouts/layout-base-common.d.ts +0 -1
  442. package/ui/layouts/layout-base-common.js +106 -85
  443. package/ui/layouts/layout-base-common.js.map +1 -1
  444. package/ui/layouts/layout-base.android.js +31 -25
  445. package/ui/layouts/layout-base.android.js.map +1 -1
  446. package/ui/layouts/layout-base.d.ts +14 -0
  447. package/ui/layouts/layout-base.ios.js +27 -21
  448. package/ui/layouts/layout-base.ios.js.map +1 -1
  449. package/ui/layouts/root-layout/index.android.js +46 -47
  450. package/ui/layouts/root-layout/index.android.js.map +1 -1
  451. package/ui/layouts/root-layout/index.d.ts +3 -0
  452. package/ui/layouts/root-layout/index.ios.js +53 -54
  453. package/ui/layouts/root-layout/index.ios.js.map +1 -1
  454. package/ui/layouts/root-layout/root-layout-common.js +190 -186
  455. package/ui/layouts/root-layout/root-layout-common.js.map +1 -1
  456. package/ui/layouts/stack-layout/index.android.js +12 -6
  457. package/ui/layouts/stack-layout/index.android.js.map +1 -1
  458. package/ui/layouts/stack-layout/index.d.ts +3 -0
  459. package/ui/layouts/stack-layout/index.ios.js +69 -62
  460. package/ui/layouts/stack-layout/index.ios.js.map +1 -1
  461. package/ui/layouts/stack-layout/stack-layout-common.js +12 -7
  462. package/ui/layouts/stack-layout/stack-layout-common.js.map +1 -1
  463. package/ui/layouts/wrap-layout/index.android.js +16 -10
  464. package/ui/layouts/wrap-layout/index.android.js.map +1 -1
  465. package/ui/layouts/wrap-layout/index.d.ts +8 -0
  466. package/ui/layouts/wrap-layout/index.ios.js +76 -70
  467. package/ui/layouts/wrap-layout/index.ios.js.map +1 -1
  468. package/ui/layouts/wrap-layout/wrap-layout-common.js +18 -13
  469. package/ui/layouts/wrap-layout/wrap-layout-common.js.map +1 -1
  470. package/ui/list-picker/index.android.js +48 -42
  471. package/ui/list-picker/index.android.js.map +1 -1
  472. package/ui/list-picker/index.d.ts +12 -1
  473. package/ui/list-picker/index.ios.js +36 -26
  474. package/ui/list-picker/index.ios.js.map +1 -1
  475. package/ui/list-picker/list-picker-common.d.ts +1 -0
  476. package/ui/list-picker/list-picker-common.js +32 -26
  477. package/ui/list-picker/list-picker-common.js.map +1 -1
  478. package/ui/list-view/index.android.js +110 -98
  479. package/ui/list-view/index.android.js.map +1 -1
  480. package/ui/list-view/index.d.ts +24 -0
  481. package/ui/list-view/index.ios.js +137 -121
  482. package/ui/list-view/index.ios.js.map +1 -1
  483. package/ui/list-view/list-view-common.js +116 -100
  484. package/ui/list-view/list-view-common.js.map +1 -1
  485. package/ui/page/index.android.js +65 -57
  486. package/ui/page/index.android.js.map +1 -1
  487. package/ui/page/index.d.ts +31 -2
  488. package/ui/page/index.ios.js +107 -98
  489. package/ui/page/index.ios.js.map +1 -1
  490. package/ui/page/page-common.js +145 -113
  491. package/ui/page/page-common.js.map +1 -1
  492. package/ui/placeholder/index.android.d.ts +1 -1
  493. package/ui/placeholder/index.android.js +16 -10
  494. package/ui/placeholder/index.android.js.map +1 -1
  495. package/ui/placeholder/index.d.ts +4 -0
  496. package/ui/placeholder/index.js +12 -6
  497. package/ui/placeholder/index.js.map +1 -1
  498. package/ui/progress/index.android.js +34 -28
  499. package/ui/progress/index.android.js.map +1 -1
  500. package/ui/progress/index.d.ts +13 -0
  501. package/ui/progress/index.ios.js +39 -29
  502. package/ui/progress/index.ios.js.map +1 -1
  503. package/ui/progress/progress-common.js +16 -11
  504. package/ui/progress/progress-common.js.map +1 -1
  505. package/ui/proxy-view-container/index.d.ts +2 -0
  506. package/ui/proxy-view-container/index.js +113 -90
  507. package/ui/proxy-view-container/index.js.map +1 -1
  508. package/ui/repeater/index.d.ts +2 -0
  509. package/ui/repeater/index.js +114 -100
  510. package/ui/repeater/index.js.map +1 -1
  511. package/ui/scroll-view/index.android.d.ts +1 -1
  512. package/ui/scroll-view/index.android.js +95 -75
  513. package/ui/scroll-view/index.android.js.map +1 -1
  514. package/ui/scroll-view/index.d.ts +10 -0
  515. package/ui/scroll-view/index.ios.js +92 -72
  516. package/ui/scroll-view/index.ios.js.map +1 -1
  517. package/ui/scroll-view/scroll-view-common.js +65 -45
  518. package/ui/scroll-view/scroll-view-common.js.map +1 -1
  519. package/ui/search-bar/index.android.js +94 -88
  520. package/ui/search-bar/index.android.js.map +1 -1
  521. package/ui/search-bar/index.d.ts +14 -0
  522. package/ui/search-bar/index.ios.js +88 -74
  523. package/ui/search-bar/index.ios.js.map +1 -1
  524. package/ui/search-bar/search-bar-common.js +18 -13
  525. package/ui/search-bar/search-bar-common.js.map +1 -1
  526. package/ui/segmented-bar/index.android.js +112 -98
  527. package/ui/segmented-bar/index.android.js.map +1 -1
  528. package/ui/segmented-bar/index.d.ts +21 -5
  529. package/ui/segmented-bar/index.ios.js +80 -63
  530. package/ui/segmented-bar/index.ios.js.map +1 -1
  531. package/ui/segmented-bar/segmented-bar-common.js +81 -61
  532. package/ui/segmented-bar/segmented-bar-common.js.map +1 -1
  533. package/ui/slider/index.android.js +49 -43
  534. package/ui/slider/index.android.js.map +1 -1
  535. package/ui/slider/index.d.ts +27 -0
  536. package/ui/slider/index.ios.js +59 -49
  537. package/ui/slider/index.ios.js.map +1 -1
  538. package/ui/slider/slider-common.d.ts +1 -0
  539. package/ui/slider/slider-common.js +35 -27
  540. package/ui/slider/slider-common.js.map +1 -1
  541. package/ui/styling/background-common.js +100 -98
  542. package/ui/styling/background-common.js.map +1 -1
  543. package/ui/styling/background.android.js +38 -35
  544. package/ui/styling/background.android.js.map +1 -1
  545. package/ui/styling/background.d.ts +2 -0
  546. package/ui/styling/background.ios.d.ts +1 -15
  547. package/ui/styling/background.ios.js +294 -290
  548. package/ui/styling/background.ios.js.map +1 -1
  549. package/ui/styling/box-shadow.js +6 -2
  550. package/ui/styling/box-shadow.js.map +1 -1
  551. package/ui/styling/converters.js +7 -7
  552. package/ui/styling/converters.js.map +1 -1
  553. package/ui/styling/css-animation-parser.js +69 -56
  554. package/ui/styling/css-animation-parser.js.map +1 -1
  555. package/ui/styling/css-selector.js +522 -425
  556. package/ui/styling/css-selector.js.map +1 -1
  557. package/ui/styling/css-shadow.js +2 -2
  558. package/ui/styling/css-shadow.js.map +1 -1
  559. package/ui/styling/css-stroke.js +3 -3
  560. package/ui/styling/css-stroke.js.map +1 -1
  561. package/ui/styling/css-utils.js +22 -22
  562. package/ui/styling/css-utils.js.map +1 -1
  563. package/ui/styling/font-common.js +59 -44
  564. package/ui/styling/font-common.js.map +1 -1
  565. package/ui/styling/font.android.js +42 -34
  566. package/ui/styling/font.android.js.map +1 -1
  567. package/ui/styling/font.ios.js +54 -49
  568. package/ui/styling/font.ios.js.map +1 -1
  569. package/ui/styling/linear-gradient.js +17 -13
  570. package/ui/styling/linear-gradient.js.map +1 -1
  571. package/ui/styling/style/index.d.ts +3 -1
  572. package/ui/styling/style/index.js +46 -35
  573. package/ui/styling/style/index.js.map +1 -1
  574. package/ui/styling/style-properties.d.ts +1 -0
  575. package/ui/styling/style-properties.js +306 -291
  576. package/ui/styling/style-properties.js.map +1 -1
  577. package/ui/styling/style-scope.js +416 -377
  578. package/ui/styling/style-scope.js.map +1 -1
  579. package/ui/switch/index.android.js +47 -41
  580. package/ui/switch/index.android.js.map +1 -1
  581. package/ui/switch/index.d.ts +11 -0
  582. package/ui/switch/index.ios.js +66 -57
  583. package/ui/switch/index.ios.js.map +1 -1
  584. package/ui/switch/switch-common.js +20 -15
  585. package/ui/switch/switch-common.js.map +1 -1
  586. package/ui/tab-view/index.android.js +206 -187
  587. package/ui/tab-view/index.android.js.map +1 -1
  588. package/ui/tab-view/index.d.ts +43 -5
  589. package/ui/tab-view/index.ios.js +177 -161
  590. package/ui/tab-view/index.ios.js.map +1 -1
  591. package/ui/tab-view/tab-view-common.js +197 -143
  592. package/ui/tab-view/tab-view-common.js.map +1 -1
  593. package/ui/text-base/formatted-string.d.ts +24 -0
  594. package/ui/text-base/formatted-string.js +158 -105
  595. package/ui/text-base/formatted-string.js.map +1 -1
  596. package/ui/text-base/index.android.js +138 -141
  597. package/ui/text-base/index.android.js.map +1 -1
  598. package/ui/text-base/index.d.ts +47 -0
  599. package/ui/text-base/index.ios.js +120 -112
  600. package/ui/text-base/index.ios.js.map +1 -1
  601. package/ui/text-base/span.d.ts +30 -0
  602. package/ui/text-base/span.js +158 -102
  603. package/ui/text-base/span.js.map +1 -1
  604. package/ui/text-base/text-base-common.d.ts +2 -0
  605. package/ui/text-base/text-base-common.js +268 -175
  606. package/ui/text-base/text-base-common.js.map +1 -1
  607. package/ui/text-field/index.android.js +24 -18
  608. package/ui/text-field/index.android.js.map +1 -1
  609. package/ui/text-field/index.d.ts +13 -0
  610. package/ui/text-field/index.ios.js +80 -70
  611. package/ui/text-field/index.ios.js.map +1 -1
  612. package/ui/text-field/text-field-common.js +13 -8
  613. package/ui/text-field/text-field-common.js.map +1 -1
  614. package/ui/text-view/index.android.d.ts +0 -1
  615. package/ui/text-view/index.android.js +19 -14
  616. package/ui/text-view/index.android.js.map +1 -1
  617. package/ui/text-view/index.d.ts +11 -11
  618. package/ui/text-view/index.ios.d.ts +0 -3
  619. package/ui/text-view/index.ios.js +129 -177
  620. package/ui/text-view/index.ios.js.map +1 -1
  621. package/ui/text-view/text-view-common.d.ts +0 -26
  622. package/ui/text-view/text-view-common.js +9 -37
  623. package/ui/text-view/text-view-common.js.map +1 -1
  624. package/ui/time-picker/index.android.js +24 -18
  625. package/ui/time-picker/index.android.js.map +1 -1
  626. package/ui/time-picker/index.d.ts +27 -0
  627. package/ui/time-picker/index.ios.js +69 -61
  628. package/ui/time-picker/index.ios.js.map +1 -1
  629. package/ui/time-picker/time-picker-common.d.ts +1 -0
  630. package/ui/time-picker/time-picker-common.js +42 -36
  631. package/ui/time-picker/time-picker-common.js.map +1 -1
  632. package/ui/transition/fade-transition.android.js +14 -8
  633. package/ui/transition/fade-transition.android.js.map +1 -1
  634. package/ui/transition/fade-transition.ios.js +10 -4
  635. package/ui/transition/fade-transition.ios.js.map +1 -1
  636. package/ui/transition/flip-transition.android.js +18 -14
  637. package/ui/transition/flip-transition.android.js.map +1 -1
  638. package/ui/transition/index.android.js +27 -24
  639. package/ui/transition/index.android.js.map +1 -1
  640. package/ui/transition/index.ios.js +22 -18
  641. package/ui/transition/index.ios.js.map +1 -1
  642. package/ui/transition/modal-transition.android.js +10 -4
  643. package/ui/transition/modal-transition.android.js.map +1 -1
  644. package/ui/transition/modal-transition.ios.js +25 -18
  645. package/ui/transition/modal-transition.ios.js.map +1 -1
  646. package/ui/transition/page-transition.android.js +71 -57
  647. package/ui/transition/page-transition.android.js.map +1 -1
  648. package/ui/transition/page-transition.ios.js +27 -19
  649. package/ui/transition/page-transition.ios.js.map +1 -1
  650. package/ui/transition/shared-transition-helper.android.js +12 -8
  651. package/ui/transition/shared-transition-helper.android.js.map +1 -1
  652. package/ui/transition/shared-transition-helper.ios.js +539 -442
  653. package/ui/transition/shared-transition-helper.ios.js.map +1 -1
  654. package/ui/transition/shared-transition.js +76 -77
  655. package/ui/transition/shared-transition.js.map +1 -1
  656. package/ui/transition/slide-transition.android.js +22 -17
  657. package/ui/transition/slide-transition.android.js.map +1 -1
  658. package/ui/transition/slide-transition.ios.js +11 -7
  659. package/ui/transition/slide-transition.ios.js.map +1 -1
  660. package/ui/utils.d.ts +1 -1
  661. package/ui/utils.ios.d.ts +1 -2
  662. package/ui/utils.ios.js +13 -13
  663. package/ui/utils.ios.js.map +1 -1
  664. package/ui/web-view/index.android.js +64 -50
  665. package/ui/web-view/index.android.js.map +1 -1
  666. package/ui/web-view/index.d.ts +12 -0
  667. package/ui/web-view/index.ios.js +73 -50
  668. package/ui/web-view/index.ios.js.map +1 -1
  669. package/ui/web-view/web-view-common.d.ts +1 -1
  670. package/ui/web-view/web-view-common.js +43 -29
  671. package/ui/web-view/web-view-common.js.map +1 -1
  672. package/utils/android/index.js +27 -26
  673. package/utils/android/index.js.map +1 -1
  674. package/utils/common.js +65 -49
  675. package/utils/common.js.map +1 -1
  676. package/utils/constants.android.js +1 -1
  677. package/utils/constants.android.js.map +1 -1
  678. package/utils/constants.ios.js +1 -1
  679. package/utils/constants.ios.js.map +1 -1
  680. package/utils/debug.js +54 -32
  681. package/utils/debug.js.map +1 -1
  682. package/utils/index.android.d.ts +1 -0
  683. package/utils/index.android.js +48 -36
  684. package/utils/index.android.js.map +1 -1
  685. package/utils/index.d.ts +6 -0
  686. package/utils/index.ios.d.ts +1 -0
  687. package/utils/index.ios.js +27 -7
  688. package/utils/index.ios.js.map +1 -1
  689. package/utils/ios/index.js +44 -47
  690. package/utils/ios/index.js.map +1 -1
  691. package/utils/layout-helper/index.android.js +4 -4
  692. package/utils/layout-helper/index.android.js.map +1 -1
  693. package/utils/layout-helper/index.ios.js +2 -2
  694. package/utils/layout-helper/index.ios.js.map +1 -1
  695. package/utils/layout-helper/layout-helper-common.js +13 -13
  696. package/utils/layout-helper/layout-helper-common.js.map +1 -1
  697. package/utils/lazy.js +2 -2
  698. package/utils/lazy.js.map +1 -1
  699. package/utils/macrotask-scheduler.js +6 -6
  700. package/utils/macrotask-scheduler.js.map +1 -1
  701. package/utils/mainthread-helper.android.js +4 -4
  702. package/utils/mainthread-helper.android.js.map +1 -1
  703. package/utils/mainthread-helper.ios.js +1 -1
  704. package/utils/mainthread-helper.ios.js.map +1 -1
  705. package/utils/module-merge.js +1 -1
  706. package/utils/module-merge.js.map +1 -1
  707. package/utils/native-helper.android.js +19 -19
  708. package/utils/native-helper.android.js.map +1 -1
  709. package/utils/native-helper.ios.js +24 -16
  710. package/utils/native-helper.ios.js.map +1 -1
  711. package/utils/number-utils.js +3 -3
  712. package/utils/number-utils.js.map +1 -1
  713. package/utils/platform-check.js +6 -6
  714. package/utils/platform-check.js.map +1 -1
  715. package/utils/types.js +43 -33
  716. package/utils/types.js.map +1 -1
  717. package/wgc/atob.js +1 -1
  718. package/wgc/btoa.js +1 -1
  719. package/wgc/crypto/SubtleCrypto.js +168 -133
  720. package/wgc/crypto/SubtleCrypto.js.map +1 -1
  721. package/wgc/crypto/index.d.ts +1 -1
  722. package/wgc/crypto/index.js +21 -12
  723. package/wgc/crypto/index.js.map +1 -1
  724. package/xhr/index.js +308 -226
  725. package/xhr/index.js.map +1 -1
  726. package/xml/index.js +119 -79
  727. package/xml/index.js.map +1 -1
  728. package/platforms/android/winter_cg-release.aar +0 -0
  729. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  730. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  731. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  732. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  733. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  734. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  735. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSCWinterCG.h +0 -20
  736. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Modules/module.modulemap +0 -6
  737. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  738. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  739. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
  740. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  741. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  742. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  743. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  744. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
  745. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  746. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  747. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  748. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  749. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  750. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  751. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  752. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  753. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  754. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  755. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  756. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  757. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  758. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
@@ -17,27 +17,31 @@ import { accessibilityBlurEvent, accessibilityFocusChangedEvent, accessibilityFo
17
17
  import { SharedTransition } from '../../transition/shared-transition';
18
18
  // helpers (these are okay re-exported here)
19
19
  export * from './view-helper';
20
- let animationModule;
20
+ var animationModule;
21
21
  function ensureAnimationModule() {
22
22
  if (!animationModule) {
23
23
  animationModule = require('../../animation');
24
24
  }
25
25
  }
26
26
  export function CSSType(type) {
27
- return (cls) => {
27
+ return function (cls) {
28
28
  cls.prototype.cssType = type;
29
29
  };
30
30
  }
31
31
  export function viewMatchesModuleContext(view, context, types) {
32
- return context && view._moduleName && context.type && types.some((type) => type === context.type) && context.path && context.path.includes(view._moduleName);
32
+ return context && view._moduleName && context.type && types.some(function (type) { return type === context.type; }) && context.path && context.path.includes(view._moduleName);
33
33
  }
34
- export function PseudoClassHandler(...pseudoClasses) {
35
- const stateEventNames = pseudoClasses.map((s) => ':' + s);
36
- const listeners = Symbol('listeners');
37
- return (target, propertyKey, descriptor) => {
34
+ export function PseudoClassHandler() {
35
+ var pseudoClasses = [];
36
+ for (var _i = 0; _i < arguments.length; _i++) {
37
+ pseudoClasses[_i] = arguments[_i];
38
+ }
39
+ var stateEventNames = pseudoClasses.map(function (s) { return ':' + s; });
40
+ var listeners = Symbol('listeners');
41
+ return function (target, propertyKey, descriptor) {
38
42
  function update(change) {
39
- const prev = this[listeners] || 0;
40
- const next = prev + change;
43
+ var prev = this[listeners] || 0;
44
+ var next = prev + change;
41
45
  if (prev <= 0 && next > 0) {
42
46
  this[propertyKey](true);
43
47
  }
@@ -45,39 +49,45 @@ export function PseudoClassHandler(...pseudoClasses) {
45
49
  this[propertyKey](false);
46
50
  }
47
51
  }
48
- stateEventNames.forEach((s) => (target[s] = update));
52
+ stateEventNames.forEach(function (s) { return (target[s] = update); });
49
53
  };
50
54
  }
51
- export const _rootModalViews = new Array();
55
+ export var _rootModalViews = new Array();
52
56
  // TODO: remove once we fully switch to the new event system
53
- const warnedEvent = new Set();
54
- export class ViewCommon extends ViewBase {
55
- constructor() {
56
- super(...arguments);
57
- this._gestureObservers = {};
58
- }
59
- get css() {
60
- const scope = this._styleScope;
61
- return scope && scope.css;
62
- }
63
- set css(value) {
64
- this._updateStyleScope(undefined, undefined, value);
65
- }
66
- addCss(cssString) {
57
+ var warnedEvent = new Set();
58
+ var ViewCommon = /** @class */ (function (_super) {
59
+ __extends(ViewCommon, _super);
60
+ function ViewCommon() {
61
+ var _this = _super !== null && _super.apply(this, arguments) || this;
62
+ _this._gestureObservers = {};
63
+ return _this;
64
+ }
65
+ Object.defineProperty(ViewCommon.prototype, "css", {
66
+ get: function () {
67
+ var scope = this._styleScope;
68
+ return scope && scope.css;
69
+ },
70
+ set: function (value) {
71
+ this._updateStyleScope(undefined, undefined, value);
72
+ },
73
+ enumerable: false,
74
+ configurable: true
75
+ });
76
+ ViewCommon.prototype.addCss = function (cssString) {
67
77
  this._updateStyleScope(undefined, cssString);
68
- }
69
- addCssFile(cssFileName) {
78
+ };
79
+ ViewCommon.prototype.addCssFile = function (cssFileName) {
70
80
  this._updateStyleScope(cssFileName);
71
- }
72
- changeCssFile(cssFileName) {
73
- const scope = this._styleScope;
81
+ };
82
+ ViewCommon.prototype.changeCssFile = function (cssFileName) {
83
+ var scope = this._styleScope;
74
84
  if (scope && cssFileName) {
75
85
  scope.changeCssFile(cssFileName);
76
86
  this._onCssStateChange();
77
87
  }
78
- }
79
- _updateStyleScope(cssFileName, cssString, css) {
80
- let scope = this._styleScope;
88
+ };
89
+ ViewCommon.prototype._updateStyleScope = function (cssFileName, cssString, css) {
90
+ var scope = this._styleScope;
81
91
  if (!scope) {
82
92
  scope = new StyleScope();
83
93
  this.setScopeProperty(scope, cssFileName, cssString, css);
@@ -88,8 +98,8 @@ export class ViewCommon extends ViewBase {
88
98
  this.setScopeProperty(scope, cssFileName, cssString, css);
89
99
  this._onCssStateChange();
90
100
  }
91
- }
92
- setScopeProperty(scope, cssFileName, cssString, css) {
101
+ };
102
+ ViewCommon.prototype.setScopeProperty = function (scope, cssFileName, cssString, css) {
93
103
  if (cssFileName !== undefined) {
94
104
  scope.addCssFile(cssFileName);
95
105
  }
@@ -99,75 +109,73 @@ export class ViewCommon extends ViewBase {
99
109
  else if (css !== undefined) {
100
110
  scope.css = css;
101
111
  }
102
- }
103
- onLoaded() {
112
+ };
113
+ ViewCommon.prototype.onLoaded = function () {
104
114
  if (!this.isLoaded) {
105
- const hasTap = this.hasListeners('tap') || this.hasListeners('tapChange') || !!this.getGestureObservers(GestureTypes.tap);
106
- const enableTapAnimations = TouchManager.enableGlobalTapAnimations && hasTap;
115
+ var hasTap = this.hasListeners('tap') || this.hasListeners('tapChange') || !!this.getGestureObservers(GestureTypes.tap);
116
+ var enableTapAnimations = TouchManager.enableGlobalTapAnimations && hasTap;
107
117
  if (!this.ignoreTouchAnimation && (this.touchAnimation || enableTapAnimations)) {
108
118
  TouchManager.addAnimations(this);
109
119
  }
110
120
  if (__VISIONOS__) {
111
- const enableHoverStyle = TouchManager.enableGlobalHoverWhereTap && hasTap;
121
+ var enableHoverStyle = TouchManager.enableGlobalHoverWhereTap && hasTap;
112
122
  if (!this.visionIgnoreHoverStyle && (this.visionHoverStyle || enableHoverStyle)) {
113
123
  TouchManager.addHoverStyle(this);
114
124
  }
115
125
  }
116
126
  }
117
- super.onLoaded();
118
- if (this.accessible) {
119
- setupAccessibleView(this);
120
- }
121
- }
122
- _closeAllModalViewsInternal() {
127
+ _super.prototype.onLoaded.call(this);
128
+ setupAccessibleView(this);
129
+ };
130
+ ViewCommon.prototype._closeAllModalViewsInternal = function () {
123
131
  if (_rootModalViews && _rootModalViews.length > 0) {
124
- _rootModalViews.forEach((v) => {
132
+ _rootModalViews.forEach(function (v) {
125
133
  v.closeModal();
126
134
  });
127
135
  return true;
128
136
  }
129
137
  return false;
130
- }
131
- _getRootModalViews() {
138
+ };
139
+ ViewCommon.prototype._getRootModalViews = function () {
132
140
  return _rootModalViews;
133
- }
134
- _onLivesync(context) {
141
+ };
142
+ ViewCommon.prototype._onLivesync = function (context) {
135
143
  if (Trace.isEnabled()) {
136
- Trace.write(`${this}._onLivesync(${JSON.stringify(context)})`, Trace.categories.Livesync);
144
+ Trace.write("".concat(this, "._onLivesync(").concat(JSON.stringify(context), ")"), Trace.categories.Livesync);
137
145
  }
138
- let handled = false;
146
+ var handled = false;
139
147
  if (this._closeAllModalViewsInternal()) {
140
148
  handled = true;
141
149
  }
142
150
  if (this._handleLivesync(context)) {
143
151
  return true;
144
152
  }
145
- this.eachChildView((child) => {
153
+ this.eachChildView(function (child) {
146
154
  if (child._onLivesync(context)) {
147
155
  handled = true;
148
156
  return false;
149
157
  }
150
158
  });
151
159
  return handled;
152
- }
153
- _handleLivesync(context) {
160
+ };
161
+ ViewCommon.prototype._handleLivesync = function (context) {
154
162
  if (Trace.isEnabled()) {
155
- Trace.write(`${this}._handleLivesync(${JSON.stringify(context)})`, Trace.categories.Livesync);
163
+ Trace.write("".concat(this, "._handleLivesync(").concat(JSON.stringify(context), ")"), Trace.categories.Livesync);
156
164
  }
157
165
  // Handle local CSS
158
166
  if (viewMatchesModuleContext(this, context, ['style'])) {
159
167
  if (Trace.isEnabled()) {
160
- Trace.write(`Change Handled: Changing CSS for ${this}`, Trace.categories.Livesync);
168
+ Trace.write("Change Handled: Changing CSS for ".concat(this), Trace.categories.Livesync);
161
169
  }
162
170
  // Always load styles with ".css" extension. Even when changes are in ".scss" ot ".less" files
163
- const cssModuleName = `${sanitizeModuleName(context.path)}.css`;
171
+ var cssModuleName = "".concat(sanitizeModuleName(context.path), ".css");
164
172
  this.changeCssFile(cssModuleName);
165
173
  return true;
166
174
  }
167
175
  // Handle script/markup changes in custom components by falling back to page refresh
168
176
  if (viewMatchesModuleContext(this, context, ['markup', 'script']) && this.page && this.page.frame) {
169
177
  if (Trace.isEnabled()) {
170
- Trace.write(`Change Handled: Changing ${context.type} for ${this} inside ${this.page}`, Trace.categories.Livesync);
178
+ Trace.write("Change Handled: Changing ".concat(context.type, " for ").concat(this, " inside ").concat(this.page), Trace.categories.Livesync);
171
179
  }
172
180
  return this.page.frame._handleLivesync({
173
181
  type: context.type,
@@ -175,16 +183,17 @@ export class ViewCommon extends ViewBase {
175
183
  });
176
184
  }
177
185
  return false;
178
- }
179
- _setupAsRootView(context) {
180
- super._setupAsRootView(context);
186
+ };
187
+ ViewCommon.prototype._setupAsRootView = function (context) {
188
+ _super.prototype._setupAsRootView.call(this, context);
181
189
  if (!this._styleScope) {
182
190
  this._updateStyleScope();
183
191
  }
184
- }
185
- _observe(type, callback, thisArg) {
192
+ };
193
+ ViewCommon.prototype._observe = function (type, callback, thisArg) {
194
+ var _a;
186
195
  thisArg = thisArg || undefined;
187
- if (this._gestureObservers[type]?.find((observer) => observer.callback === callback && observer.context === thisArg)) {
196
+ if ((_a = this._gestureObservers[type]) === null || _a === void 0 ? void 0 : _a.find(function (observer) { return observer.callback === callback && observer.context === thisArg; })) {
188
197
  // Already added.
189
198
  return;
190
199
  }
@@ -192,70 +201,70 @@ export class ViewCommon extends ViewBase {
192
201
  this._gestureObservers[type] = [];
193
202
  }
194
203
  this._gestureObservers[type].push(gestureObserve(this, type, callback, thisArg));
195
- }
196
- getGestureObservers(type) {
204
+ };
205
+ ViewCommon.prototype.getGestureObservers = function (type) {
197
206
  return this._gestureObservers[type];
198
- }
199
- addEventListener(eventNames, callback, thisArg) {
207
+ };
208
+ ViewCommon.prototype.addEventListener = function (eventNames, callback, thisArg) {
200
209
  thisArg = thisArg || undefined;
201
210
  // TODO: Remove this once we fully switch to the new event system
202
211
  if (typeof eventNames === 'number') {
203
212
  // likely a gesture type from a plugin
204
- const gestureName = gestureToString(eventNames);
213
+ var gestureName = gestureToString(eventNames);
205
214
  if (!warnedEvent.has(gestureName)) {
206
- console.warn(`Using a gesture type (${gestureName}) as an event name is deprecated. Please use the event name instead.`);
215
+ console.warn("Using a gesture type (".concat(gestureName, ") as an event name is deprecated. Please use the event name instead."));
207
216
  warnedEvent.add(gestureName);
208
217
  }
209
218
  eventNames = gestureName;
210
219
  }
211
220
  // Normalize "ontap" -> "tap"
212
- const normalizedName = getEventOrGestureName(eventNames);
221
+ var normalizedName = getEventOrGestureName(eventNames);
213
222
  // Coerce "tap" -> GestureTypes.tap
214
223
  // Coerce "loaded" -> undefined
215
- const gestureType = gestureFromString(normalizedName);
224
+ var gestureType = gestureFromString(normalizedName);
216
225
  // If it's a gesture (and this Observable declares e.g. `static tapEvent`)
217
226
  if (gestureType && !this._isEvent(normalizedName)) {
218
227
  this._observe(gestureType, callback, thisArg);
219
228
  return;
220
229
  }
221
- super.addEventListener(normalizedName, callback, thisArg);
222
- }
223
- removeEventListener(eventNames, callback, thisArg) {
230
+ _super.prototype.addEventListener.call(this, normalizedName, callback, thisArg);
231
+ };
232
+ ViewCommon.prototype.removeEventListener = function (eventNames, callback, thisArg) {
224
233
  thisArg = thisArg || undefined;
225
234
  // TODO: Remove this once we fully switch to the new event system
226
235
  if (typeof eventNames === 'number') {
227
236
  // likely a gesture type from a plugin
228
- const gestureName = gestureToString(eventNames);
237
+ var gestureName = gestureToString(eventNames);
229
238
  if (!warnedEvent.has(gestureName)) {
230
- console.warn(`Using a gesture type (${gestureName}) as an event name is deprecated. Please use the event name instead.`);
239
+ console.warn("Using a gesture type (".concat(gestureName, ") as an event name is deprecated. Please use the event name instead."));
231
240
  warnedEvent.add(gestureName);
232
241
  }
233
242
  eventNames = gestureName;
234
243
  }
235
244
  // Normalize "ontap" -> "tap"
236
- const normalizedName = getEventOrGestureName(eventNames);
245
+ var normalizedName = getEventOrGestureName(eventNames);
237
246
  // Coerce "tap" -> GestureTypes.tap
238
247
  // Coerce "loaded" -> undefined
239
- const gestureType = gestureFromString(normalizedName);
248
+ var gestureType = gestureFromString(normalizedName);
240
249
  // If it's a gesture (and this Observable declares e.g. `static tapEvent`)
241
250
  if (gestureType && !this._isEvent(normalizedName)) {
242
251
  this._disconnectGestureObservers(gestureType, callback, thisArg);
243
252
  return;
244
253
  }
245
- super.removeEventListener(normalizedName, callback, thisArg);
246
- }
247
- onBackPressed() {
254
+ _super.prototype.removeEventListener.call(this, normalizedName, callback, thisArg);
255
+ };
256
+ ViewCommon.prototype.onBackPressed = function () {
248
257
  return false;
249
- }
250
- _getFragmentManager() {
258
+ };
259
+ ViewCommon.prototype._getFragmentManager = function () {
251
260
  return undefined;
252
- }
253
- getModalOptions(args) {
261
+ };
262
+ ViewCommon.prototype.getModalOptions = function (args) {
254
263
  if (args.length === 0) {
255
264
  throw new Error('showModal without parameters is deprecated. Please call showModal on a view instance instead.');
256
265
  }
257
266
  else {
258
- let options = null;
267
+ var options = null;
259
268
  if (args.length === 2) {
260
269
  options = args[1];
261
270
  }
@@ -274,119 +283,137 @@ export class ViewCommon extends ViewBase {
274
283
  stretched: args[5],
275
284
  };
276
285
  }
277
- const firstArgument = args[0];
278
- const view = firstArgument instanceof ViewCommon ? firstArgument : Builder.createViewFromEntry({
286
+ var firstArgument = args[0];
287
+ var view = firstArgument instanceof ViewCommon ? firstArgument : Builder.createViewFromEntry({
279
288
  moduleName: firstArgument,
280
289
  });
281
- return { view, options };
290
+ return { view: view, options: options };
282
291
  }
283
- }
284
- showModal(...args) {
285
- const { view, options } = this.getModalOptions(args);
286
- if (options.transition?.instance) {
287
- SharedTransition.updateState(options.transition?.instance.id, {
292
+ };
293
+ ViewCommon.prototype.showModal = function () {
294
+ var _a, _b;
295
+ var args = [];
296
+ for (var _i = 0; _i < arguments.length; _i++) {
297
+ args[_i] = arguments[_i];
298
+ }
299
+ var _c = this.getModalOptions(args), view = _c.view, options = _c.options;
300
+ if ((_a = options.transition) === null || _a === void 0 ? void 0 : _a.instance) {
301
+ SharedTransition.updateState((_b = options.transition) === null || _b === void 0 ? void 0 : _b.instance.id, {
288
302
  page: this,
289
303
  toPage: view,
290
304
  });
291
305
  }
292
306
  view._showNativeModalView(this, options);
293
307
  return view;
294
- }
295
- closeModal(...args) {
296
- const closeCallback = this._closeModalCallback;
308
+ };
309
+ ViewCommon.prototype.closeModal = function () {
310
+ var args = [];
311
+ for (var _i = 0; _i < arguments.length; _i++) {
312
+ args[_i] = arguments[_i];
313
+ }
314
+ var closeCallback = this._closeModalCallback;
297
315
  if (closeCallback) {
298
- closeCallback(...args);
316
+ closeCallback.apply(void 0, args);
299
317
  }
300
318
  else {
301
- const parent = this.parent;
302
- if (parent) {
303
- parent.closeModal(...args);
319
+ var parent_1 = this.parent;
320
+ if (parent_1) {
321
+ parent_1.closeModal.apply(parent_1, args);
304
322
  }
305
323
  }
306
- }
307
- get modal() {
308
- return this._modal;
309
- }
310
- _showNativeModalView(parent, options) {
324
+ };
325
+ Object.defineProperty(ViewCommon.prototype, "modal", {
326
+ get: function () {
327
+ return this._modal;
328
+ },
329
+ enumerable: false,
330
+ configurable: true
331
+ });
332
+ ViewCommon.prototype._showNativeModalView = function (parent, options) {
333
+ var _this = this;
311
334
  _rootModalViews.push(this);
312
335
  this.cssClasses.add(CSSUtils.MODAL_ROOT_VIEW_CSS_CLASS);
313
- const modalRootViewCssClasses = CSSUtils.getSystemCssClasses();
314
- modalRootViewCssClasses.forEach((c) => this.cssClasses.add(c));
336
+ var modalRootViewCssClasses = CSSUtils.getSystemCssClasses();
337
+ modalRootViewCssClasses.forEach(function (c) { return _this.cssClasses.add(c); });
315
338
  parent._modal = this;
316
339
  this.style.fontScaleInternal = getCurrentFontScale();
317
340
  this._modalParent = parent;
318
341
  this._modalContext = options.context;
319
- this._closeModalCallback = (...originalArgs) => {
320
- const cleanupModalViews = () => {
321
- const modalIndex = _rootModalViews.indexOf(this);
342
+ this._closeModalCallback = function () {
343
+ var originalArgs = [];
344
+ for (var _i = 0; _i < arguments.length; _i++) {
345
+ originalArgs[_i] = arguments[_i];
346
+ }
347
+ var cleanupModalViews = function () {
348
+ var modalIndex = _rootModalViews.indexOf(_this);
322
349
  _rootModalViews.splice(modalIndex, 1);
323
- this._modalParent = null;
324
- this._modalContext = null;
325
- this._closeModalCallback = null;
326
- this._dialogClosed();
350
+ _this._modalParent = null;
351
+ _this._modalContext = null;
352
+ _this._closeModalCallback = null;
353
+ _this._dialogClosed();
327
354
  parent._modal = null;
328
355
  };
329
- const whenClosedCallback = () => {
330
- const transitionState = SharedTransition.getState(this.transitionId);
331
- if (transitionState?.interactiveBegan) {
332
- SharedTransition.updateState(this.transitionId, {
356
+ var whenClosedCallback = function () {
357
+ var transitionState = SharedTransition.getState(_this.transitionId);
358
+ if (transitionState === null || transitionState === void 0 ? void 0 : transitionState.interactiveBegan) {
359
+ SharedTransition.updateState(_this.transitionId, {
333
360
  interactiveBegan: false,
334
361
  });
335
- if (!transitionState?.interactiveCancelled) {
362
+ if (!(transitionState === null || transitionState === void 0 ? void 0 : transitionState.interactiveCancelled)) {
336
363
  cleanupModalViews();
337
364
  }
338
365
  }
339
- if (!transitionState?.interactiveCancelled) {
366
+ if (!(transitionState === null || transitionState === void 0 ? void 0 : transitionState.interactiveCancelled)) {
340
367
  if (typeof options.closeCallback === 'function') {
341
368
  options.closeCallback.apply(undefined, originalArgs);
342
369
  }
343
- this._tearDownUI(true);
370
+ _this._tearDownUI(true);
344
371
  }
345
372
  };
346
- const transitionState = SharedTransition.getState(this.transitionId);
347
- if (!transitionState?.interactiveBegan) {
373
+ var transitionState = SharedTransition.getState(_this.transitionId);
374
+ if (!(transitionState === null || transitionState === void 0 ? void 0 : transitionState.interactiveBegan)) {
348
375
  cleanupModalViews();
349
376
  }
350
- this._hideNativeModalView(parent, whenClosedCallback);
377
+ _this._hideNativeModalView(parent, whenClosedCallback);
351
378
  };
352
- }
353
- _hideNativeModalView(parent, whenClosedCallback) { }
354
- _raiseLayoutChangedEvent() {
355
- const args = {
379
+ };
380
+ ViewCommon.prototype._hideNativeModalView = function (parent, whenClosedCallback) { };
381
+ ViewCommon.prototype._raiseLayoutChangedEvent = function () {
382
+ var args = {
356
383
  eventName: ViewCommon.layoutChangedEvent,
357
384
  object: this,
358
385
  };
359
386
  this.notify(args);
360
- }
361
- _raiseShownModallyEvent() {
362
- const args = {
387
+ };
388
+ ViewCommon.prototype._raiseShownModallyEvent = function () {
389
+ var args = {
363
390
  eventName: ViewCommon.shownModallyEvent,
364
391
  object: this,
365
392
  context: this._modalContext,
366
393
  closeCallback: this._closeModalCallback,
367
394
  };
368
395
  this.notify(args);
369
- }
370
- _raiseShowingModallyEvent() {
371
- const args = {
396
+ };
397
+ ViewCommon.prototype._raiseShowingModallyEvent = function () {
398
+ var args = {
372
399
  eventName: ViewCommon.showingModallyEvent,
373
400
  object: this,
374
401
  context: this._modalContext,
375
402
  closeCallback: this._closeModalCallback,
376
403
  };
377
404
  this.notify(args);
378
- }
379
- _isEvent(name) {
380
- return this.constructor && `${name}Event` in this.constructor;
381
- }
382
- _disconnectGestureObservers(type, callback, thisArg) {
405
+ };
406
+ ViewCommon.prototype._isEvent = function (name) {
407
+ return this.constructor && "".concat(name, "Event") in this.constructor;
408
+ };
409
+ ViewCommon.prototype._disconnectGestureObservers = function (type, callback, thisArg) {
383
410
  // Largely mirrors the implementation of Observable.innerRemoveEventListener().
384
- const observers = this.getGestureObservers(type);
411
+ var observers = this.getGestureObservers(type);
385
412
  if (!observers) {
386
413
  return;
387
414
  }
388
- for (let i = 0; i < observers.length; i++) {
389
- const observer = observers[i];
415
+ for (var i = 0; i < observers.length; i++) {
416
+ var observer = observers[i];
390
417
  // If we have a `thisArg`, refine on both `callback` and `thisArg`.
391
418
  if (thisArg && (observer.callback !== callback || observer.context !== thisArg)) {
392
419
  continue;
@@ -402,460 +429,732 @@ export class ViewCommon extends ViewBase {
402
429
  if (!observers.length) {
403
430
  delete this._gestureObservers[type];
404
431
  }
405
- }
406
- // START Style property shortcuts
407
- get borderColor() {
408
- return this.style.borderColor;
409
- }
410
- set borderColor(value) {
411
- this.style.borderColor = value;
412
- }
413
- get borderTopColor() {
414
- return this.style.borderTopColor;
415
- }
416
- set borderTopColor(value) {
417
- this.style.borderTopColor = value;
418
- }
419
- get borderRightColor() {
420
- return this.style.borderRightColor;
421
- }
422
- set borderRightColor(value) {
423
- this.style.borderRightColor = value;
424
- }
425
- get borderBottomColor() {
426
- return this.style.borderBottomColor;
427
- }
428
- set borderBottomColor(value) {
429
- this.style.borderBottomColor = value;
430
- }
431
- get borderLeftColor() {
432
- return this.style.borderLeftColor;
433
- }
434
- set borderLeftColor(value) {
435
- this.style.borderLeftColor = value;
436
- }
437
- get borderWidth() {
438
- return this.style.borderWidth;
439
- }
440
- set borderWidth(value) {
441
- this.style.borderWidth = value;
442
- }
443
- get borderTopWidth() {
444
- return this.style.borderTopWidth;
445
- }
446
- set borderTopWidth(value) {
447
- this.style.borderTopWidth = value;
448
- }
449
- get borderRightWidth() {
450
- return this.style.borderRightWidth;
451
- }
452
- set borderRightWidth(value) {
453
- this.style.borderRightWidth = value;
454
- }
455
- get borderBottomWidth() {
456
- return this.style.borderBottomWidth;
457
- }
458
- set borderBottomWidth(value) {
459
- this.style.borderBottomWidth = value;
460
- }
461
- get borderLeftWidth() {
462
- return this.style.borderLeftWidth;
463
- }
464
- set borderLeftWidth(value) {
465
- this.style.borderLeftWidth = value;
466
- }
467
- get borderRadius() {
468
- return this.style.borderRadius;
469
- }
470
- set borderRadius(value) {
471
- this.style.borderRadius = value;
472
- }
473
- get borderTopLeftRadius() {
474
- return this.style.borderTopLeftRadius;
475
- }
476
- set borderTopLeftRadius(value) {
477
- this.style.borderTopLeftRadius = value;
478
- }
479
- get borderTopRightRadius() {
480
- return this.style.borderTopRightRadius;
481
- }
482
- set borderTopRightRadius(value) {
483
- this.style.borderTopRightRadius = value;
484
- }
485
- get borderBottomRightRadius() {
486
- return this.style.borderBottomRightRadius;
487
- }
488
- set borderBottomRightRadius(value) {
489
- this.style.borderBottomRightRadius = value;
490
- }
491
- get borderBottomLeftRadius() {
492
- return this.style.borderBottomLeftRadius;
493
- }
494
- set borderBottomLeftRadius(value) {
495
- this.style.borderBottomLeftRadius = value;
496
- }
497
- get color() {
498
- return this.style.color;
499
- }
500
- set color(value) {
501
- this.style.color = value;
502
- }
503
- get background() {
504
- return this.style.background;
505
- }
506
- set background(value) {
507
- this.style.background = value;
508
- }
509
- get backgroundColor() {
510
- return this.style.backgroundColor;
511
- }
512
- set backgroundColor(value) {
513
- this.style.backgroundColor = value;
514
- }
515
- get backgroundImage() {
516
- return this.style.backgroundImage;
517
- }
518
- set backgroundImage(value) {
519
- this.style.backgroundImage = value;
520
- }
521
- get backgroundSize() {
522
- return this.style.backgroundSize;
523
- }
524
- set backgroundSize(value) {
525
- this.style.backgroundSize = value;
526
- }
527
- get backgroundPosition() {
528
- return this.style.backgroundPosition;
529
- }
530
- set backgroundPosition(value) {
531
- this.style.backgroundPosition = value;
532
- }
533
- get backgroundRepeat() {
534
- return this.style.backgroundRepeat;
535
- }
536
- set backgroundRepeat(value) {
537
- this.style.backgroundRepeat = value;
538
- }
539
- get boxShadow() {
540
- return this.style.boxShadow;
541
- }
542
- set boxShadow(value) {
543
- this.style.boxShadow = value;
544
- }
545
- get minWidth() {
546
- return this.style.minWidth;
547
- }
548
- set minWidth(value) {
549
- this.style.minWidth = value;
550
- }
551
- get minHeight() {
552
- return this.style.minHeight;
553
- }
554
- set minHeight(value) {
555
- this.style.minHeight = value;
556
- }
557
- get width() {
558
- return this.style.width;
559
- }
560
- set width(value) {
561
- this.style.width = value;
562
- }
563
- get height() {
564
- return this.style.height;
565
- }
566
- set height(value) {
567
- this.style.height = value;
568
- }
569
- get margin() {
570
- return this.style.margin;
571
- }
572
- set margin(value) {
573
- this.style.margin = value;
574
- }
575
- get marginLeft() {
576
- return this.style.marginLeft;
577
- }
578
- set marginLeft(value) {
579
- this.style.marginLeft = value;
580
- }
581
- get marginTop() {
582
- return this.style.marginTop;
583
- }
584
- set marginTop(value) {
585
- this.style.marginTop = value;
586
- }
587
- get marginRight() {
588
- return this.style.marginRight;
589
- }
590
- set marginRight(value) {
591
- this.style.marginRight = value;
592
- }
593
- get marginBottom() {
594
- return this.style.marginBottom;
595
- }
596
- set marginBottom(value) {
597
- this.style.marginBottom = value;
598
- }
599
- get horizontalAlignment() {
600
- return this.style.horizontalAlignment;
601
- }
602
- set horizontalAlignment(value) {
603
- this.style.horizontalAlignment = value;
604
- }
605
- get verticalAlignment() {
606
- return this.style.verticalAlignment;
607
- }
608
- set verticalAlignment(value) {
609
- this.style.verticalAlignment = value;
610
- }
611
- get visibility() {
612
- return this.style.visibility;
613
- }
614
- set visibility(value) {
615
- this.style.visibility = value;
616
- }
617
- get opacity() {
618
- return this.style.opacity;
619
- }
620
- set opacity(value) {
621
- this.style.opacity = value;
622
- }
623
- get rotate() {
624
- return this.style.rotate;
625
- }
626
- set rotate(value) {
627
- this.style.rotate = value;
628
- }
629
- get rotateX() {
630
- return this.style.rotateX;
631
- }
632
- set rotateX(value) {
633
- this.style.rotateX = value;
634
- }
635
- get rotateY() {
636
- return this.style.rotateY;
637
- }
638
- set rotateY(value) {
639
- this.style.rotateY = value;
640
- }
641
- get perspective() {
642
- return this.style.perspective;
643
- }
644
- set perspective(value) {
645
- this.style.perspective = value;
646
- }
647
- get textTransform() {
648
- return this.style.textTransform;
649
- }
650
- set textTransform(value) {
651
- this.style.textTransform = value;
652
- }
653
- get translateX() {
654
- return this.style.translateX;
655
- }
656
- set translateX(value) {
657
- this.style.translateX = value;
658
- }
659
- get translateY() {
660
- return this.style.translateY;
661
- }
662
- set translateY(value) {
663
- this.style.translateY = value;
664
- }
665
- get scaleX() {
666
- return this.style.scaleX;
667
- }
668
- set scaleX(value) {
669
- this.style.scaleX = value;
670
- }
671
- get scaleY() {
672
- return this.style.scaleY;
673
- }
674
- set scaleY(value) {
675
- this.style.scaleY = value;
676
- }
677
- get accessible() {
678
- return this.style.accessible;
679
- }
680
- set accessible(value) {
681
- this.style.accessible = value;
682
- }
683
- get accessibilityHidden() {
684
- return this.style.accessibilityHidden;
685
- }
686
- set accessibilityHidden(value) {
687
- this.style.accessibilityHidden = value;
688
- }
689
- get accessibilityRole() {
690
- return this.style.accessibilityRole;
691
- }
692
- set accessibilityRole(value) {
693
- this.style.accessibilityRole = value;
694
- }
695
- get accessibilityState() {
696
- return this.style.accessibilityState;
697
- }
698
- set accessibilityState(value) {
699
- this.style.accessibilityState = value;
700
- }
701
- get accessibilityLiveRegion() {
702
- return this.style.accessibilityLiveRegion;
703
- }
704
- set accessibilityLiveRegion(value) {
705
- this.style.accessibilityLiveRegion = value;
706
- }
707
- get accessibilityLanguage() {
708
- return this.style.accessibilityLanguage;
709
- }
710
- set accessibilityLanguage(value) {
711
- this.style.accessibilityLanguage = value;
712
- }
713
- get accessibilityMediaSession() {
714
- return this.style.accessibilityMediaSession;
715
- }
716
- set accessibilityMediaSession(value) {
717
- this.style.accessibilityMediaSession = value;
718
- }
719
- get iosAccessibilityAdjustsFontSize() {
720
- return this.style.iosAccessibilityAdjustsFontSize;
721
- }
722
- set iosAccessibilityAdjustsFontSize(value) {
723
- this.style.iosAccessibilityAdjustsFontSize = value;
724
- }
725
- get iosAccessibilityMinFontScale() {
726
- return this.style.iosAccessibilityMinFontScale;
727
- }
728
- set iosAccessibilityMinFontScale(value) {
729
- this.style.iosAccessibilityMinFontScale = value;
730
- }
731
- get iosAccessibilityMaxFontScale() {
732
- return this.style.iosAccessibilityMaxFontScale;
733
- }
734
- set iosAccessibilityMaxFontScale(value) {
735
- this.style.iosAccessibilityMaxFontScale = value;
736
- }
737
- get automationText() {
738
- return this.accessibilityIdentifier;
739
- }
740
- set automationText(value) {
741
- this.accessibilityIdentifier = value;
742
- }
743
- get androidElevation() {
744
- return this.style.androidElevation;
745
- }
746
- set androidElevation(value) {
747
- this.style.androidElevation = value;
748
- }
749
- get androidDynamicElevationOffset() {
750
- return this.style.androidDynamicElevationOffset;
751
- }
752
- set androidDynamicElevationOffset(value) {
753
- this.style.androidDynamicElevationOffset = value;
754
- }
755
- get isLayoutValid() {
756
- return this._isLayoutValid;
757
- }
758
- get cssType() {
759
- if (!this._cssType) {
760
- this._cssType = this.typeName.toLowerCase();
761
- }
762
- return this._cssType;
763
- }
764
- set cssType(type) {
765
- this._cssType = type.toLowerCase();
766
- }
767
- get isLayoutRequired() {
768
- return true;
769
- }
770
- measure(widthMeasureSpec, heightMeasureSpec) {
432
+ };
433
+ Object.defineProperty(ViewCommon.prototype, "flexFlow", {
434
+ // START Style property shortcuts
435
+ get: function () {
436
+ return this.style.flexFlow;
437
+ },
438
+ set: function (value) {
439
+ this.style.flexFlow = value;
440
+ },
441
+ enumerable: false,
442
+ configurable: true
443
+ });
444
+ Object.defineProperty(ViewCommon.prototype, "flex", {
445
+ get: function () {
446
+ return this.style.flex;
447
+ },
448
+ set: function (value) {
449
+ this.style.flex = value;
450
+ },
451
+ enumerable: false,
452
+ configurable: true
453
+ });
454
+ Object.defineProperty(ViewCommon.prototype, "borderColor", {
455
+ get: function () {
456
+ return this.style.borderColor;
457
+ },
458
+ set: function (value) {
459
+ this.style.borderColor = value;
460
+ },
461
+ enumerable: false,
462
+ configurable: true
463
+ });
464
+ Object.defineProperty(ViewCommon.prototype, "borderTopColor", {
465
+ get: function () {
466
+ return this.style.borderTopColor;
467
+ },
468
+ set: function (value) {
469
+ this.style.borderTopColor = value;
470
+ },
471
+ enumerable: false,
472
+ configurable: true
473
+ });
474
+ Object.defineProperty(ViewCommon.prototype, "borderRightColor", {
475
+ get: function () {
476
+ return this.style.borderRightColor;
477
+ },
478
+ set: function (value) {
479
+ this.style.borderRightColor = value;
480
+ },
481
+ enumerable: false,
482
+ configurable: true
483
+ });
484
+ Object.defineProperty(ViewCommon.prototype, "borderBottomColor", {
485
+ get: function () {
486
+ return this.style.borderBottomColor;
487
+ },
488
+ set: function (value) {
489
+ this.style.borderBottomColor = value;
490
+ },
491
+ enumerable: false,
492
+ configurable: true
493
+ });
494
+ Object.defineProperty(ViewCommon.prototype, "borderLeftColor", {
495
+ get: function () {
496
+ return this.style.borderLeftColor;
497
+ },
498
+ set: function (value) {
499
+ this.style.borderLeftColor = value;
500
+ },
501
+ enumerable: false,
502
+ configurable: true
503
+ });
504
+ Object.defineProperty(ViewCommon.prototype, "borderWidth", {
505
+ get: function () {
506
+ return this.style.borderWidth;
507
+ },
508
+ set: function (value) {
509
+ this.style.borderWidth = value;
510
+ },
511
+ enumerable: false,
512
+ configurable: true
513
+ });
514
+ Object.defineProperty(ViewCommon.prototype, "borderTopWidth", {
515
+ get: function () {
516
+ return this.style.borderTopWidth;
517
+ },
518
+ set: function (value) {
519
+ this.style.borderTopWidth = value;
520
+ },
521
+ enumerable: false,
522
+ configurable: true
523
+ });
524
+ Object.defineProperty(ViewCommon.prototype, "borderRightWidth", {
525
+ get: function () {
526
+ return this.style.borderRightWidth;
527
+ },
528
+ set: function (value) {
529
+ this.style.borderRightWidth = value;
530
+ },
531
+ enumerable: false,
532
+ configurable: true
533
+ });
534
+ Object.defineProperty(ViewCommon.prototype, "borderBottomWidth", {
535
+ get: function () {
536
+ return this.style.borderBottomWidth;
537
+ },
538
+ set: function (value) {
539
+ this.style.borderBottomWidth = value;
540
+ },
541
+ enumerable: false,
542
+ configurable: true
543
+ });
544
+ Object.defineProperty(ViewCommon.prototype, "borderLeftWidth", {
545
+ get: function () {
546
+ return this.style.borderLeftWidth;
547
+ },
548
+ set: function (value) {
549
+ this.style.borderLeftWidth = value;
550
+ },
551
+ enumerable: false,
552
+ configurable: true
553
+ });
554
+ Object.defineProperty(ViewCommon.prototype, "borderRadius", {
555
+ get: function () {
556
+ return this.style.borderRadius;
557
+ },
558
+ set: function (value) {
559
+ this.style.borderRadius = value;
560
+ },
561
+ enumerable: false,
562
+ configurable: true
563
+ });
564
+ Object.defineProperty(ViewCommon.prototype, "borderTopLeftRadius", {
565
+ get: function () {
566
+ return this.style.borderTopLeftRadius;
567
+ },
568
+ set: function (value) {
569
+ this.style.borderTopLeftRadius = value;
570
+ },
571
+ enumerable: false,
572
+ configurable: true
573
+ });
574
+ Object.defineProperty(ViewCommon.prototype, "borderTopRightRadius", {
575
+ get: function () {
576
+ return this.style.borderTopRightRadius;
577
+ },
578
+ set: function (value) {
579
+ this.style.borderTopRightRadius = value;
580
+ },
581
+ enumerable: false,
582
+ configurable: true
583
+ });
584
+ Object.defineProperty(ViewCommon.prototype, "borderBottomRightRadius", {
585
+ get: function () {
586
+ return this.style.borderBottomRightRadius;
587
+ },
588
+ set: function (value) {
589
+ this.style.borderBottomRightRadius = value;
590
+ },
591
+ enumerable: false,
592
+ configurable: true
593
+ });
594
+ Object.defineProperty(ViewCommon.prototype, "borderBottomLeftRadius", {
595
+ get: function () {
596
+ return this.style.borderBottomLeftRadius;
597
+ },
598
+ set: function (value) {
599
+ this.style.borderBottomLeftRadius = value;
600
+ },
601
+ enumerable: false,
602
+ configurable: true
603
+ });
604
+ Object.defineProperty(ViewCommon.prototype, "color", {
605
+ get: function () {
606
+ return this.style.color;
607
+ },
608
+ set: function (value) {
609
+ this.style.color = value;
610
+ },
611
+ enumerable: false,
612
+ configurable: true
613
+ });
614
+ Object.defineProperty(ViewCommon.prototype, "background", {
615
+ get: function () {
616
+ return this.style.background;
617
+ },
618
+ set: function (value) {
619
+ this.style.background = value;
620
+ },
621
+ enumerable: false,
622
+ configurable: true
623
+ });
624
+ Object.defineProperty(ViewCommon.prototype, "backgroundColor", {
625
+ get: function () {
626
+ return this.style.backgroundColor;
627
+ },
628
+ set: function (value) {
629
+ this.style.backgroundColor = value;
630
+ },
631
+ enumerable: false,
632
+ configurable: true
633
+ });
634
+ Object.defineProperty(ViewCommon.prototype, "backgroundImage", {
635
+ get: function () {
636
+ return this.style.backgroundImage;
637
+ },
638
+ set: function (value) {
639
+ this.style.backgroundImage = value;
640
+ },
641
+ enumerable: false,
642
+ configurable: true
643
+ });
644
+ Object.defineProperty(ViewCommon.prototype, "backgroundSize", {
645
+ get: function () {
646
+ return this.style.backgroundSize;
647
+ },
648
+ set: function (value) {
649
+ this.style.backgroundSize = value;
650
+ },
651
+ enumerable: false,
652
+ configurable: true
653
+ });
654
+ Object.defineProperty(ViewCommon.prototype, "backgroundPosition", {
655
+ get: function () {
656
+ return this.style.backgroundPosition;
657
+ },
658
+ set: function (value) {
659
+ this.style.backgroundPosition = value;
660
+ },
661
+ enumerable: false,
662
+ configurable: true
663
+ });
664
+ Object.defineProperty(ViewCommon.prototype, "backgroundRepeat", {
665
+ get: function () {
666
+ return this.style.backgroundRepeat;
667
+ },
668
+ set: function (value) {
669
+ this.style.backgroundRepeat = value;
670
+ },
671
+ enumerable: false,
672
+ configurable: true
673
+ });
674
+ Object.defineProperty(ViewCommon.prototype, "boxShadow", {
675
+ get: function () {
676
+ return this.style.boxShadow;
677
+ },
678
+ set: function (value) {
679
+ this.style.boxShadow = value;
680
+ },
681
+ enumerable: false,
682
+ configurable: true
683
+ });
684
+ Object.defineProperty(ViewCommon.prototype, "minWidth", {
685
+ get: function () {
686
+ return this.style.minWidth;
687
+ },
688
+ set: function (value) {
689
+ this.style.minWidth = value;
690
+ },
691
+ enumerable: false,
692
+ configurable: true
693
+ });
694
+ Object.defineProperty(ViewCommon.prototype, "minHeight", {
695
+ get: function () {
696
+ return this.style.minHeight;
697
+ },
698
+ set: function (value) {
699
+ this.style.minHeight = value;
700
+ },
701
+ enumerable: false,
702
+ configurable: true
703
+ });
704
+ Object.defineProperty(ViewCommon.prototype, "width", {
705
+ get: function () {
706
+ return this.style.width;
707
+ },
708
+ set: function (value) {
709
+ this.style.width = value;
710
+ },
711
+ enumerable: false,
712
+ configurable: true
713
+ });
714
+ Object.defineProperty(ViewCommon.prototype, "height", {
715
+ get: function () {
716
+ return this.style.height;
717
+ },
718
+ set: function (value) {
719
+ this.style.height = value;
720
+ },
721
+ enumerable: false,
722
+ configurable: true
723
+ });
724
+ Object.defineProperty(ViewCommon.prototype, "margin", {
725
+ get: function () {
726
+ return this.style.margin;
727
+ },
728
+ set: function (value) {
729
+ this.style.margin = value;
730
+ },
731
+ enumerable: false,
732
+ configurable: true
733
+ });
734
+ Object.defineProperty(ViewCommon.prototype, "marginLeft", {
735
+ get: function () {
736
+ return this.style.marginLeft;
737
+ },
738
+ set: function (value) {
739
+ this.style.marginLeft = value;
740
+ },
741
+ enumerable: false,
742
+ configurable: true
743
+ });
744
+ Object.defineProperty(ViewCommon.prototype, "marginTop", {
745
+ get: function () {
746
+ return this.style.marginTop;
747
+ },
748
+ set: function (value) {
749
+ this.style.marginTop = value;
750
+ },
751
+ enumerable: false,
752
+ configurable: true
753
+ });
754
+ Object.defineProperty(ViewCommon.prototype, "marginRight", {
755
+ get: function () {
756
+ return this.style.marginRight;
757
+ },
758
+ set: function (value) {
759
+ this.style.marginRight = value;
760
+ },
761
+ enumerable: false,
762
+ configurable: true
763
+ });
764
+ Object.defineProperty(ViewCommon.prototype, "marginBottom", {
765
+ get: function () {
766
+ return this.style.marginBottom;
767
+ },
768
+ set: function (value) {
769
+ this.style.marginBottom = value;
770
+ },
771
+ enumerable: false,
772
+ configurable: true
773
+ });
774
+ Object.defineProperty(ViewCommon.prototype, "horizontalAlignment", {
775
+ get: function () {
776
+ return this.style.horizontalAlignment;
777
+ },
778
+ set: function (value) {
779
+ this.style.horizontalAlignment = value;
780
+ },
781
+ enumerable: false,
782
+ configurable: true
783
+ });
784
+ Object.defineProperty(ViewCommon.prototype, "verticalAlignment", {
785
+ get: function () {
786
+ return this.style.verticalAlignment;
787
+ },
788
+ set: function (value) {
789
+ this.style.verticalAlignment = value;
790
+ },
791
+ enumerable: false,
792
+ configurable: true
793
+ });
794
+ Object.defineProperty(ViewCommon.prototype, "visibility", {
795
+ get: function () {
796
+ return this.style.visibility;
797
+ },
798
+ set: function (value) {
799
+ this.style.visibility = value;
800
+ },
801
+ enumerable: false,
802
+ configurable: true
803
+ });
804
+ Object.defineProperty(ViewCommon.prototype, "opacity", {
805
+ get: function () {
806
+ return this.style.opacity;
807
+ },
808
+ set: function (value) {
809
+ this.style.opacity = value;
810
+ },
811
+ enumerable: false,
812
+ configurable: true
813
+ });
814
+ Object.defineProperty(ViewCommon.prototype, "rotate", {
815
+ get: function () {
816
+ return this.style.rotate;
817
+ },
818
+ set: function (value) {
819
+ this.style.rotate = value;
820
+ },
821
+ enumerable: false,
822
+ configurable: true
823
+ });
824
+ Object.defineProperty(ViewCommon.prototype, "rotateX", {
825
+ get: function () {
826
+ return this.style.rotateX;
827
+ },
828
+ set: function (value) {
829
+ this.style.rotateX = value;
830
+ },
831
+ enumerable: false,
832
+ configurable: true
833
+ });
834
+ Object.defineProperty(ViewCommon.prototype, "rotateY", {
835
+ get: function () {
836
+ return this.style.rotateY;
837
+ },
838
+ set: function (value) {
839
+ this.style.rotateY = value;
840
+ },
841
+ enumerable: false,
842
+ configurable: true
843
+ });
844
+ Object.defineProperty(ViewCommon.prototype, "perspective", {
845
+ get: function () {
846
+ return this.style.perspective;
847
+ },
848
+ set: function (value) {
849
+ this.style.perspective = value;
850
+ },
851
+ enumerable: false,
852
+ configurable: true
853
+ });
854
+ Object.defineProperty(ViewCommon.prototype, "textTransform", {
855
+ get: function () {
856
+ return this.style.textTransform;
857
+ },
858
+ set: function (value) {
859
+ this.style.textTransform = value;
860
+ },
861
+ enumerable: false,
862
+ configurable: true
863
+ });
864
+ Object.defineProperty(ViewCommon.prototype, "translateX", {
865
+ get: function () {
866
+ return this.style.translateX;
867
+ },
868
+ set: function (value) {
869
+ this.style.translateX = value;
870
+ },
871
+ enumerable: false,
872
+ configurable: true
873
+ });
874
+ Object.defineProperty(ViewCommon.prototype, "translateY", {
875
+ get: function () {
876
+ return this.style.translateY;
877
+ },
878
+ set: function (value) {
879
+ this.style.translateY = value;
880
+ },
881
+ enumerable: false,
882
+ configurable: true
883
+ });
884
+ Object.defineProperty(ViewCommon.prototype, "scaleX", {
885
+ get: function () {
886
+ return this.style.scaleX;
887
+ },
888
+ set: function (value) {
889
+ this.style.scaleX = value;
890
+ },
891
+ enumerable: false,
892
+ configurable: true
893
+ });
894
+ Object.defineProperty(ViewCommon.prototype, "scaleY", {
895
+ get: function () {
896
+ return this.style.scaleY;
897
+ },
898
+ set: function (value) {
899
+ this.style.scaleY = value;
900
+ },
901
+ enumerable: false,
902
+ configurable: true
903
+ });
904
+ Object.defineProperty(ViewCommon.prototype, "accessible", {
905
+ get: function () {
906
+ return this.style.accessible;
907
+ },
908
+ set: function (value) {
909
+ this.style.accessible = value;
910
+ },
911
+ enumerable: false,
912
+ configurable: true
913
+ });
914
+ Object.defineProperty(ViewCommon.prototype, "accessibilityHidden", {
915
+ get: function () {
916
+ return this.style.accessibilityHidden;
917
+ },
918
+ set: function (value) {
919
+ this.style.accessibilityHidden = value;
920
+ },
921
+ enumerable: false,
922
+ configurable: true
923
+ });
924
+ Object.defineProperty(ViewCommon.prototype, "accessibilityRole", {
925
+ get: function () {
926
+ return this.style.accessibilityRole;
927
+ },
928
+ set: function (value) {
929
+ this.style.accessibilityRole = value;
930
+ },
931
+ enumerable: false,
932
+ configurable: true
933
+ });
934
+ Object.defineProperty(ViewCommon.prototype, "accessibilityState", {
935
+ get: function () {
936
+ return this.style.accessibilityState;
937
+ },
938
+ set: function (value) {
939
+ this.style.accessibilityState = value;
940
+ },
941
+ enumerable: false,
942
+ configurable: true
943
+ });
944
+ Object.defineProperty(ViewCommon.prototype, "accessibilityLiveRegion", {
945
+ get: function () {
946
+ return this.style.accessibilityLiveRegion;
947
+ },
948
+ set: function (value) {
949
+ this.style.accessibilityLiveRegion = value;
950
+ },
951
+ enumerable: false,
952
+ configurable: true
953
+ });
954
+ Object.defineProperty(ViewCommon.prototype, "accessibilityLanguage", {
955
+ get: function () {
956
+ return this.style.accessibilityLanguage;
957
+ },
958
+ set: function (value) {
959
+ this.style.accessibilityLanguage = value;
960
+ },
961
+ enumerable: false,
962
+ configurable: true
963
+ });
964
+ Object.defineProperty(ViewCommon.prototype, "accessibilityMediaSession", {
965
+ get: function () {
966
+ return this.style.accessibilityMediaSession;
967
+ },
968
+ set: function (value) {
969
+ this.style.accessibilityMediaSession = value;
970
+ },
971
+ enumerable: false,
972
+ configurable: true
973
+ });
974
+ Object.defineProperty(ViewCommon.prototype, "iosAccessibilityAdjustsFontSize", {
975
+ get: function () {
976
+ return this.style.iosAccessibilityAdjustsFontSize;
977
+ },
978
+ set: function (value) {
979
+ this.style.iosAccessibilityAdjustsFontSize = value;
980
+ },
981
+ enumerable: false,
982
+ configurable: true
983
+ });
984
+ Object.defineProperty(ViewCommon.prototype, "iosAccessibilityMinFontScale", {
985
+ get: function () {
986
+ return this.style.iosAccessibilityMinFontScale;
987
+ },
988
+ set: function (value) {
989
+ this.style.iosAccessibilityMinFontScale = value;
990
+ },
991
+ enumerable: false,
992
+ configurable: true
993
+ });
994
+ Object.defineProperty(ViewCommon.prototype, "iosAccessibilityMaxFontScale", {
995
+ get: function () {
996
+ return this.style.iosAccessibilityMaxFontScale;
997
+ },
998
+ set: function (value) {
999
+ this.style.iosAccessibilityMaxFontScale = value;
1000
+ },
1001
+ enumerable: false,
1002
+ configurable: true
1003
+ });
1004
+ Object.defineProperty(ViewCommon.prototype, "automationText", {
1005
+ get: function () {
1006
+ return this.accessibilityIdentifier;
1007
+ },
1008
+ set: function (value) {
1009
+ this.accessibilityIdentifier = value;
1010
+ },
1011
+ enumerable: false,
1012
+ configurable: true
1013
+ });
1014
+ Object.defineProperty(ViewCommon.prototype, "androidElevation", {
1015
+ get: function () {
1016
+ return this.style.androidElevation;
1017
+ },
1018
+ set: function (value) {
1019
+ this.style.androidElevation = value;
1020
+ },
1021
+ enumerable: false,
1022
+ configurable: true
1023
+ });
1024
+ Object.defineProperty(ViewCommon.prototype, "androidDynamicElevationOffset", {
1025
+ get: function () {
1026
+ return this.style.androidDynamicElevationOffset;
1027
+ },
1028
+ set: function (value) {
1029
+ this.style.androidDynamicElevationOffset = value;
1030
+ },
1031
+ enumerable: false,
1032
+ configurable: true
1033
+ });
1034
+ Object.defineProperty(ViewCommon.prototype, "isLayoutValid", {
1035
+ get: function () {
1036
+ return this._isLayoutValid;
1037
+ },
1038
+ enumerable: false,
1039
+ configurable: true
1040
+ });
1041
+ Object.defineProperty(ViewCommon.prototype, "cssType", {
1042
+ get: function () {
1043
+ if (!this._cssType) {
1044
+ this._cssType = this.typeName.toLowerCase();
1045
+ }
1046
+ return this._cssType;
1047
+ },
1048
+ set: function (type) {
1049
+ this._cssType = type.toLowerCase();
1050
+ },
1051
+ enumerable: false,
1052
+ configurable: true
1053
+ });
1054
+ Object.defineProperty(ViewCommon.prototype, "isLayoutRequired", {
1055
+ get: function () {
1056
+ return true;
1057
+ },
1058
+ enumerable: false,
1059
+ configurable: true
1060
+ });
1061
+ Object.defineProperty(ViewCommon.prototype, "needsNativeDrawableFill", {
1062
+ get: function () {
1063
+ return false;
1064
+ },
1065
+ enumerable: false,
1066
+ configurable: true
1067
+ });
1068
+ ViewCommon.prototype.measure = function (widthMeasureSpec, heightMeasureSpec) {
771
1069
  this._setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec);
772
- }
773
- layout(left, top, right, bottom) {
1070
+ };
1071
+ ViewCommon.prototype.layout = function (left, top, right, bottom) {
774
1072
  this._setCurrentLayoutBounds(left, top, right, bottom);
775
- }
776
- getMeasuredWidth() {
1073
+ };
1074
+ ViewCommon.prototype.getMeasuredWidth = function () {
777
1075
  return this._measuredWidth & layout.MEASURED_SIZE_MASK || 0;
778
- }
779
- getMeasuredHeight() {
1076
+ };
1077
+ ViewCommon.prototype.getMeasuredHeight = function () {
780
1078
  return this._measuredHeight & layout.MEASURED_SIZE_MASK || 0;
781
- }
782
- getMeasuredState() {
1079
+ };
1080
+ ViewCommon.prototype.getMeasuredState = function () {
783
1081
  return (this._measuredWidth & layout.MEASURED_STATE_MASK) | ((this._measuredHeight >> layout.MEASURED_HEIGHT_STATE_SHIFT) & (layout.MEASURED_STATE_MASK >> layout.MEASURED_HEIGHT_STATE_SHIFT));
784
- }
785
- setMeasuredDimension(measuredWidth, measuredHeight) {
1082
+ };
1083
+ ViewCommon.prototype.setMeasuredDimension = function (measuredWidth, measuredHeight) {
786
1084
  this._measuredWidth = measuredWidth;
787
1085
  this._measuredHeight = measuredHeight;
788
1086
  if (Trace.isEnabled()) {
789
1087
  Trace.write(this + ' :setMeasuredDimension: ' + measuredWidth + ', ' + measuredHeight, Trace.categories.Layout);
790
1088
  }
791
- }
792
- requestLayout() {
1089
+ };
1090
+ ViewCommon.prototype.requestLayout = function () {
793
1091
  this._isLayoutValid = false;
794
- super.requestLayout();
795
- }
796
- static resolveSizeAndState(size, specSize, specMode, childMeasuredState) {
1092
+ _super.prototype.requestLayout.call(this);
1093
+ };
1094
+ ViewCommon.resolveSizeAndState = function (size, specSize, specMode, childMeasuredState) {
797
1095
  return ViewHelper.resolveSizeAndState(size, specSize, specMode, childMeasuredState);
798
- }
799
- static combineMeasuredStates(curState, newState) {
1096
+ };
1097
+ ViewCommon.combineMeasuredStates = function (curState, newState) {
800
1098
  return ViewHelper.combineMeasuredStates(curState, newState);
801
- }
802
- static layoutChild(parent, child, left, top, right, bottom, setFrame = true) {
1099
+ };
1100
+ ViewCommon.layoutChild = function (parent, child, left, top, right, bottom, setFrame) {
1101
+ if (setFrame === void 0) { setFrame = true; }
803
1102
  ViewHelper.layoutChild(parent, child, left, top, right, bottom);
804
- }
805
- static measureChild(parent, child, widthMeasureSpec, heightMeasureSpec) {
1103
+ };
1104
+ ViewCommon.measureChild = function (parent, child, widthMeasureSpec, heightMeasureSpec) {
806
1105
  return ViewHelper.measureChild(parent, child, widthMeasureSpec, heightMeasureSpec);
807
- }
808
- _setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec) {
809
- const changed = this._currentWidthMeasureSpec !== widthMeasureSpec || this._currentHeightMeasureSpec !== heightMeasureSpec;
1106
+ };
1107
+ ViewCommon.prototype._setCurrentMeasureSpecs = function (widthMeasureSpec, heightMeasureSpec) {
1108
+ var changed = this._currentWidthMeasureSpec !== widthMeasureSpec || this._currentHeightMeasureSpec !== heightMeasureSpec;
810
1109
  this._currentWidthMeasureSpec = widthMeasureSpec;
811
1110
  this._currentHeightMeasureSpec = heightMeasureSpec;
812
1111
  return changed;
813
- }
814
- _getCurrentLayoutBounds() {
1112
+ };
1113
+ ViewCommon.prototype._getCurrentLayoutBounds = function () {
815
1114
  return { left: 0, top: 0, right: 0, bottom: 0 };
816
- }
1115
+ };
817
1116
  /**
818
1117
  * Returns two booleans - the first if "boundsChanged" the second is "sizeChanged".
819
1118
  */
820
- _setCurrentLayoutBounds(left, top, right, bottom) {
1119
+ ViewCommon.prototype._setCurrentLayoutBounds = function (left, top, right, bottom) {
821
1120
  this._isLayoutValid = true;
822
- const boundsChanged = this._oldLeft !== left || this._oldTop !== top || this._oldRight !== right || this._oldBottom !== bottom;
823
- const sizeChanged = this._oldRight - this._oldLeft !== right - left || this._oldBottom - this._oldTop !== bottom - top;
1121
+ var boundsChanged = this._oldLeft !== left || this._oldTop !== top || this._oldRight !== right || this._oldBottom !== bottom;
1122
+ var sizeChanged = this._oldRight - this._oldLeft !== right - left || this._oldBottom - this._oldTop !== bottom - top;
824
1123
  this._oldLeft = left;
825
1124
  this._oldTop = top;
826
1125
  this._oldRight = right;
827
1126
  this._oldBottom = bottom;
828
- return { boundsChanged, sizeChanged };
829
- }
830
- eachChild(callback) {
1127
+ return { boundsChanged: boundsChanged, sizeChanged: sizeChanged };
1128
+ };
1129
+ ViewCommon.prototype.eachChild = function (callback) {
831
1130
  this.eachChildView(callback);
832
- }
833
- eachChildView(callback) {
1131
+ };
1132
+ ViewCommon.prototype.eachChildView = function (callback) {
834
1133
  //
835
- }
836
- _getNativeViewsCount() {
1134
+ };
1135
+ ViewCommon.prototype._getNativeViewsCount = function () {
837
1136
  return this._isAddedToNativeVisualTree ? 1 : 0;
838
- }
839
- _eachLayoutView(callback) {
1137
+ };
1138
+ ViewCommon.prototype._eachLayoutView = function (callback) {
840
1139
  return callback(this);
841
- }
842
- focus() {
1140
+ };
1141
+ ViewCommon.prototype.focus = function () {
843
1142
  return undefined;
844
- }
845
- getSafeAreaInsets() {
1143
+ };
1144
+ ViewCommon.prototype.getSafeAreaInsets = function () {
846
1145
  return { left: 0, top: 0, right: 0, bottom: 0 };
847
- }
848
- getLocationInWindow() {
1146
+ };
1147
+ ViewCommon.prototype.getLocationInWindow = function () {
849
1148
  return undefined;
850
- }
851
- getLocationOnScreen() {
1149
+ };
1150
+ ViewCommon.prototype.getLocationOnScreen = function () {
852
1151
  return undefined;
853
- }
854
- getLocationRelativeTo(otherView) {
1152
+ };
1153
+ ViewCommon.prototype.getLocationRelativeTo = function (otherView) {
855
1154
  return undefined;
856
- }
857
- getActualSize() {
858
- const currentBounds = this._getCurrentLayoutBounds();
1155
+ };
1156
+ ViewCommon.prototype.getActualSize = function () {
1157
+ var currentBounds = this._getCurrentLayoutBounds();
859
1158
  if (!currentBounds) {
860
1159
  return undefined;
861
1160
  }
@@ -863,22 +1162,22 @@ export class ViewCommon extends ViewBase {
863
1162
  width: layout.toDeviceIndependentPixels(currentBounds.right - currentBounds.left),
864
1163
  height: layout.toDeviceIndependentPixels(currentBounds.bottom - currentBounds.top),
865
1164
  };
866
- }
867
- animate(animation) {
1165
+ };
1166
+ ViewCommon.prototype.animate = function (animation) {
868
1167
  return this.createAnimation(animation).play();
869
- }
870
- createAnimation(animation) {
1168
+ };
1169
+ ViewCommon.prototype.createAnimation = function (animation) {
871
1170
  ensureAnimationModule();
872
1171
  if (!this._localAnimations) {
873
1172
  this._localAnimations = new Set();
874
1173
  }
875
1174
  animation.target = this;
876
- const anim = new animationModule.Animation([animation]);
1175
+ var anim = new animationModule.Animation([animation]);
877
1176
  this._localAnimations.add(anim);
878
1177
  return anim;
879
- }
880
- _removeAnimation(animation) {
881
- const localAnimations = this._localAnimations;
1178
+ };
1179
+ ViewCommon.prototype._removeAnimation = function (animation) {
1180
+ var localAnimations = this._localAnimations;
882
1181
  if (localAnimations && localAnimations.has(animation)) {
883
1182
  localAnimations.delete(animation);
884
1183
  if (animation.isPlaying) {
@@ -887,154 +1186,152 @@ export class ViewCommon extends ViewBase {
887
1186
  return true;
888
1187
  }
889
1188
  return false;
890
- }
891
- resetNativeView() {
1189
+ };
1190
+ ViewCommon.prototype.resetNativeView = function () {
1191
+ var _this = this;
892
1192
  if (this._localAnimations) {
893
- this._localAnimations.forEach((a) => this._removeAnimation(a));
1193
+ this._localAnimations.forEach(function (a) { return _this._removeAnimation(a); });
894
1194
  }
895
- super.resetNativeView();
896
- }
897
- _setNativeViewFrame(nativeView, frame) {
1195
+ _super.prototype.resetNativeView.call(this);
1196
+ };
1197
+ ViewCommon.prototype._setNativeViewFrame = function (nativeView, frame) {
898
1198
  //
899
- }
900
- _getValue() {
1199
+ };
1200
+ ViewCommon.prototype._getValue = function () {
901
1201
  throw new Error('The View._getValue is obsolete. There is a new property system.');
902
- }
903
- _setValue() {
1202
+ };
1203
+ ViewCommon.prototype._setValue = function () {
904
1204
  throw new Error('The View._setValue is obsolete. There is a new property system.');
905
- }
906
- _updateEffectiveLayoutValues(parentWidthMeasureSize, parentWidthMeasureMode, parentHeightMeasureSize, parentHeightMeasureMode) {
907
- const style = this.style;
908
- const availableWidth = parentWidthMeasureMode === layout.UNSPECIFIED ? -1 : parentWidthMeasureSize;
1205
+ };
1206
+ ViewCommon.prototype._updateEffectiveLayoutValues = function (parentWidthMeasureSize, parentWidthMeasureMode, parentHeightMeasureSize, parentHeightMeasureMode) {
1207
+ var style = this.style;
1208
+ var availableWidth = parentWidthMeasureMode === layout.UNSPECIFIED ? -1 : parentWidthMeasureSize;
909
1209
  this.effectiveWidth = PercentLength.toDevicePixels(style.width, -2, availableWidth);
910
1210
  this.effectiveMarginLeft = PercentLength.toDevicePixels(style.marginLeft, 0, availableWidth);
911
1211
  this.effectiveMarginRight = PercentLength.toDevicePixels(style.marginRight, 0, availableWidth);
912
- const availableHeight = parentHeightMeasureMode === layout.UNSPECIFIED ? -1 : parentHeightMeasureSize;
1212
+ var availableHeight = parentHeightMeasureMode === layout.UNSPECIFIED ? -1 : parentHeightMeasureSize;
913
1213
  this.effectiveHeight = PercentLength.toDevicePixels(style.height, -2, availableHeight);
914
1214
  this.effectiveMarginTop = PercentLength.toDevicePixels(style.marginTop, 0, availableHeight);
915
1215
  this.effectiveMarginBottom = PercentLength.toDevicePixels(style.marginBottom, 0, availableHeight);
916
- }
917
- _setNativeClipToBounds() {
1216
+ };
1217
+ ViewCommon.prototype._setNativeClipToBounds = function () {
918
1218
  //
919
- }
920
- _redrawNativeBackground(value) {
1219
+ };
1220
+ ViewCommon.prototype._redrawNativeBackground = function (value) {
921
1221
  //
922
- }
923
- _applyBackground(background, isBorderDrawable, onlyColor, backgroundDrawable) {
1222
+ };
1223
+ ViewCommon.prototype._applyBackground = function (background, isBorderDrawable, onlyColor, backgroundDrawable) {
924
1224
  //
925
- }
926
- _onAttachedToWindow() {
1225
+ };
1226
+ ViewCommon.prototype._onAttachedToWindow = function () {
927
1227
  //
928
- }
929
- _onDetachedFromWindow() {
1228
+ };
1229
+ ViewCommon.prototype._onDetachedFromWindow = function () {
930
1230
  //
931
- }
932
- _hasAncestorView(ancestorView) {
933
- const matcher = (view) => view === ancestorView;
934
- for (let parent = this.parent; parent != null; parent = parent.parent) {
935
- if (matcher(parent)) {
1231
+ };
1232
+ ViewCommon.prototype._hasAncestorView = function (ancestorView) {
1233
+ var matcher = function (view) { return view === ancestorView; };
1234
+ for (var parent_2 = this.parent; parent_2 != null; parent_2 = parent_2.parent) {
1235
+ if (matcher(parent_2)) {
936
1236
  return true;
937
1237
  }
938
1238
  }
939
1239
  return false;
940
- }
941
- sendAccessibilityEvent(options) {
1240
+ };
1241
+ ViewCommon.prototype.sendAccessibilityEvent = function (options) {
942
1242
  return;
943
- }
944
- accessibilityAnnouncement(msg) {
1243
+ };
1244
+ ViewCommon.prototype.accessibilityAnnouncement = function (msg) {
945
1245
  return;
946
- }
947
- accessibilityScreenChanged() {
1246
+ };
1247
+ ViewCommon.prototype.accessibilityScreenChanged = function () {
948
1248
  return;
949
- }
950
- setAccessibilityIdentifier(view, value) {
1249
+ };
1250
+ ViewCommon.prototype.setAccessibilityIdentifier = function (view, value) {
951
1251
  return;
952
- }
953
- }
954
- ViewCommon.layoutChangedEvent = 'layoutChanged';
955
- ViewCommon.shownModallyEvent = 'shownModally';
956
- ViewCommon.showingModallyEvent = 'showingModally';
957
- ViewCommon.accessibilityBlurEvent = accessibilityBlurEvent;
958
- ViewCommon.accessibilityFocusEvent = accessibilityFocusEvent;
959
- ViewCommon.accessibilityFocusChangedEvent = accessibilityFocusChangedEvent;
960
- ViewCommon.accessibilityPerformEscapeEvent = accessibilityPerformEscapeEvent;
961
- export const originXProperty = new Property({
1252
+ };
1253
+ ViewCommon.layoutChangedEvent = 'layoutChanged';
1254
+ ViewCommon.shownModallyEvent = 'shownModally';
1255
+ ViewCommon.showingModallyEvent = 'showingModally';
1256
+ ViewCommon.accessibilityBlurEvent = accessibilityBlurEvent;
1257
+ ViewCommon.accessibilityFocusEvent = accessibilityFocusEvent;
1258
+ ViewCommon.accessibilityFocusChangedEvent = accessibilityFocusChangedEvent;
1259
+ ViewCommon.accessibilityPerformEscapeEvent = accessibilityPerformEscapeEvent;
1260
+ return ViewCommon;
1261
+ }(ViewBase));
1262
+ export { ViewCommon };
1263
+ export var originXProperty = new Property({
962
1264
  name: 'originX',
963
1265
  defaultValue: 0.5,
964
- valueConverter: (v) => parseFloat(v),
1266
+ valueConverter: function (v) { return parseFloat(v); },
965
1267
  });
966
1268
  originXProperty.register(ViewCommon);
967
- export const originYProperty = new Property({
1269
+ export var originYProperty = new Property({
968
1270
  name: 'originY',
969
1271
  defaultValue: 0.5,
970
- valueConverter: (v) => parseFloat(v),
1272
+ valueConverter: function (v) { return parseFloat(v); },
971
1273
  });
972
1274
  originYProperty.register(ViewCommon);
973
- export const defaultVisualStateProperty = new Property({
974
- name: 'defaultVisualState',
975
- defaultValue: 'normal',
976
- valueChanged(target, oldValue, newValue) {
977
- target.defaultVisualState = newValue || 'normal';
978
- if (!target.visualState || target.visualState === oldValue) {
979
- target._goToVisualState(target.defaultVisualState);
980
- }
981
- },
982
- });
983
- defaultVisualStateProperty.register(ViewCommon);
984
- export const isEnabledProperty = new Property({
1275
+ export var isEnabledProperty = new Property({
985
1276
  name: 'isEnabled',
986
1277
  defaultValue: true,
987
1278
  valueConverter: booleanConverter,
988
- valueChanged(target, oldValue, newValue) {
989
- target._goToVisualState(newValue ? target.defaultVisualState : 'disabled');
1279
+ valueChanged: function (target, oldValue, newValue) {
1280
+ var state = 'disabled';
1281
+ if (newValue) {
1282
+ target._removeVisualState(state);
1283
+ }
1284
+ else {
1285
+ target._addVisualState(state);
1286
+ }
990
1287
  },
991
1288
  });
992
1289
  isEnabledProperty.register(ViewCommon);
993
- export const isUserInteractionEnabledProperty = new Property({
1290
+ export var isUserInteractionEnabledProperty = new Property({
994
1291
  name: 'isUserInteractionEnabled',
995
1292
  defaultValue: true,
996
1293
  valueConverter: booleanConverter,
997
1294
  });
998
1295
  isUserInteractionEnabledProperty.register(ViewCommon);
999
- export const iosOverflowSafeAreaProperty = new Property({
1296
+ export var iosOverflowSafeAreaProperty = new Property({
1000
1297
  name: 'iosOverflowSafeArea',
1001
1298
  defaultValue: false,
1002
1299
  valueConverter: booleanConverter,
1003
1300
  });
1004
1301
  iosOverflowSafeAreaProperty.register(ViewCommon);
1005
- export const iosOverflowSafeAreaEnabledProperty = new InheritedProperty({
1302
+ export var iosOverflowSafeAreaEnabledProperty = new InheritedProperty({
1006
1303
  name: 'iosOverflowSafeAreaEnabled',
1007
1304
  defaultValue: true,
1008
1305
  valueConverter: booleanConverter,
1009
1306
  });
1010
1307
  iosOverflowSafeAreaEnabledProperty.register(ViewCommon);
1011
- export const iosIgnoreSafeAreaProperty = new InheritedProperty({
1308
+ export var iosIgnoreSafeAreaProperty = new InheritedProperty({
1012
1309
  name: 'iosIgnoreSafeArea',
1013
1310
  defaultValue: false,
1014
1311
  valueConverter: booleanConverter,
1015
1312
  });
1016
1313
  iosIgnoreSafeAreaProperty.register(ViewCommon);
1017
- export const visionHoverStyleProperty = new Property({
1314
+ export var visionHoverStyleProperty = new Property({
1018
1315
  name: 'visionHoverStyle',
1019
- valueChanged(view, oldValue, newValue) {
1316
+ valueChanged: function (view, oldValue, newValue) {
1020
1317
  view.visionHoverStyle = newValue;
1021
1318
  },
1022
1319
  });
1023
1320
  visionHoverStyleProperty.register(ViewCommon);
1024
- const visionIgnoreHoverStyleProperty = new Property({
1321
+ var visionIgnoreHoverStyleProperty = new Property({
1025
1322
  name: 'visionIgnoreHoverStyle',
1026
- valueChanged(view, oldValue, newValue) {
1323
+ valueChanged: function (view, oldValue, newValue) {
1027
1324
  view.visionIgnoreHoverStyle = newValue;
1028
1325
  },
1029
1326
  valueConverter: booleanConverter,
1030
1327
  });
1031
1328
  visionIgnoreHoverStyleProperty.register(ViewCommon);
1032
- const touchAnimationProperty = new Property({
1329
+ var touchAnimationProperty = new Property({
1033
1330
  name: 'touchAnimation',
1034
- valueChanged(view, oldValue, newValue) {
1331
+ valueChanged: function (view, oldValue, newValue) {
1035
1332
  view.touchAnimation = newValue;
1036
1333
  },
1037
- valueConverter(value) {
1334
+ valueConverter: function (value) {
1038
1335
  if (isObject(value)) {
1039
1336
  return value;
1040
1337
  }
@@ -1044,23 +1341,23 @@ const touchAnimationProperty = new Property({
1044
1341
  },
1045
1342
  });
1046
1343
  touchAnimationProperty.register(ViewCommon);
1047
- const ignoreTouchAnimationProperty = new Property({
1344
+ var ignoreTouchAnimationProperty = new Property({
1048
1345
  name: 'ignoreTouchAnimation',
1049
- valueChanged(view, oldValue, newValue) {
1346
+ valueChanged: function (view, oldValue, newValue) {
1050
1347
  view.ignoreTouchAnimation = newValue;
1051
1348
  },
1052
1349
  valueConverter: booleanConverter,
1053
1350
  });
1054
1351
  ignoreTouchAnimationProperty.register(ViewCommon);
1055
- const touchDelayProperty = new Property({
1352
+ var touchDelayProperty = new Property({
1056
1353
  name: 'touchDelay',
1057
- valueChanged(view, oldValue, newValue) {
1354
+ valueChanged: function (view, oldValue, newValue) {
1058
1355
  view.touchDelay = newValue;
1059
1356
  },
1060
- valueConverter: (v) => parseFloat(v),
1357
+ valueConverter: function (v) { return parseFloat(v); },
1061
1358
  });
1062
1359
  touchDelayProperty.register(ViewCommon);
1063
- export const testIDProperty = new Property({
1360
+ export var testIDProperty = new Property({
1064
1361
  name: 'testID',
1065
1362
  });
1066
1363
  testIDProperty.register(ViewCommon);