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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (758) hide show
  1. package/abortcontroller/abortsignal.js +23 -16
  2. package/abortcontroller/abortsignal.js.map +1 -1
  3. package/abortcontroller/index.js +20 -14
  4. package/abortcontroller/index.js.map +1 -1
  5. package/accessibility/accessibility-common.js +8 -8
  6. package/accessibility/accessibility-common.js.map +1 -1
  7. package/accessibility/accessibility-css-helper.js +27 -27
  8. package/accessibility/accessibility-css-helper.js.map +1 -1
  9. package/accessibility/accessibility-properties.js +23 -23
  10. package/accessibility/accessibility-properties.js.map +1 -1
  11. package/accessibility/accessibility-service-common.js +22 -12
  12. package/accessibility/accessibility-service-common.js.map +1 -1
  13. package/accessibility/accessibility-service.android.js +39 -27
  14. package/accessibility/accessibility-service.android.js.map +1 -1
  15. package/accessibility/accessibility-service.ios.js +17 -14
  16. package/accessibility/accessibility-service.ios.js.map +1 -1
  17. package/accessibility/font-scale-common.js +2 -2
  18. package/accessibility/font-scale-common.js.map +1 -1
  19. package/accessibility/font-scale.android.js +8 -7
  20. package/accessibility/font-scale.android.js.map +1 -1
  21. package/accessibility/font-scale.ios.js +10 -9
  22. package/accessibility/font-scale.ios.js.map +1 -1
  23. package/accessibility/index.android.js +83 -77
  24. package/accessibility/index.android.js.map +1 -1
  25. package/accessibility/index.ios.js +36 -34
  26. package/accessibility/index.ios.js.map +1 -1
  27. package/animation-frame/animation-native.ios.js +1 -1
  28. package/animation-frame/animation-native.ios.js.map +1 -1
  29. package/animation-frame/index.js +16 -16
  30. package/animation-frame/index.js.map +1 -1
  31. package/application/application-common.js +214 -196
  32. package/application/application-common.js.map +1 -1
  33. package/application/application-shims.js +39 -39
  34. package/application/application-shims.js.map +1 -1
  35. package/application/application.android.js +149 -110
  36. package/application/application.android.js.map +1 -1
  37. package/application/application.ios.js +197 -162
  38. package/application/application.ios.js.map +1 -1
  39. package/application-settings/index.android.js +11 -11
  40. package/application-settings/index.android.js.map +1 -1
  41. package/application-settings/index.ios.js +1 -1
  42. package/application-settings/index.ios.js.map +1 -1
  43. package/bundle-entry-points.js +1 -1
  44. package/bundle-entry-points.js.map +1 -1
  45. package/color/color-common.js +200 -157
  46. package/color/color-common.js.map +1 -1
  47. package/color/index.android.js +14 -4
  48. package/color/index.android.js.map +1 -1
  49. package/color/index.ios.js +24 -14
  50. package/color/index.ios.js.map +1 -1
  51. package/color/known-colors.js +144 -144
  52. package/color/known-colors.js.map +1 -1
  53. package/connectivity/index.android.js +23 -23
  54. package/connectivity/index.android.js.map +1 -1
  55. package/connectivity/index.ios.js +25 -25
  56. package/connectivity/index.ios.js.map +1 -1
  57. package/console/index.js +24 -20
  58. package/console/index.js.map +1 -1
  59. package/core-types/index.d.ts +2 -2
  60. package/core-types/index.js +41 -41
  61. package/core-types/index.js.map +1 -1
  62. package/css/CSS3Parser.js +106 -104
  63. package/css/CSS3Parser.js.map +1 -1
  64. package/css/CSSNativeScript.js +34 -29
  65. package/css/CSSNativeScript.js.map +1 -1
  66. package/css/css-tree-parser.js.map +1 -1
  67. package/css/parser.js +179 -158
  68. package/css/parser.js.map +1 -1
  69. package/css/system-classes.js +9 -9
  70. package/css/system-classes.js.map +1 -1
  71. package/css-mediaquery/index.js +29 -27
  72. package/css-mediaquery/index.js.map +1 -1
  73. package/data/observable/index.d.ts +1 -0
  74. package/data/observable/index.js +124 -114
  75. package/data/observable/index.js.map +1 -1
  76. package/data/observable-array/index.js +176 -119
  77. package/data/observable-array/index.js.map +1 -1
  78. package/data/virtual-array/index.js +74 -61
  79. package/data/virtual-array/index.js.map +1 -1
  80. package/debugger/InspectorBackendCommands.js +161 -137
  81. package/debugger/InspectorBackendCommands.js.map +1 -1
  82. package/debugger/devtools-elements.common.js +20 -20
  83. package/debugger/devtools-elements.common.js.map +1 -1
  84. package/debugger/devtools-elements.js +2 -2
  85. package/debugger/devtools-elements.js.map +1 -1
  86. package/debugger/dom-node.js +73 -61
  87. package/debugger/dom-node.js.map +1 -1
  88. package/debugger/index.js +19 -19
  89. package/debugger/index.js.map +1 -1
  90. package/debugger/webinspector-css.js +30 -25
  91. package/debugger/webinspector-css.js.map +1 -1
  92. package/debugger/webinspector-dom.js +43 -38
  93. package/debugger/webinspector-dom.js.map +1 -1
  94. package/debugger/webinspector-network.android.js +132 -103
  95. package/debugger/webinspector-network.android.js.map +1 -1
  96. package/debugger/webinspector-network.ios.js +128 -100
  97. package/debugger/webinspector-network.ios.js.map +1 -1
  98. package/file-system/file-system-access.android.js +421 -414
  99. package/file-system/file-system-access.android.js.map +1 -1
  100. package/file-system/file-system-access.ios.js +215 -205
  101. package/file-system/file-system-access.ios.js.map +1 -1
  102. package/file-system/index.js +372 -294
  103. package/file-system/index.js.map +1 -1
  104. package/fps-meter/fps-native.android.js +18 -15
  105. package/fps-meter/fps-native.android.js.map +1 -1
  106. package/fps-meter/fps-native.ios.js +11 -9
  107. package/fps-meter/fps-native.ios.js.map +1 -1
  108. package/fps-meter/index.js +11 -11
  109. package/fps-meter/index.js.map +1 -1
  110. package/globals/index.js +117 -91
  111. package/globals/index.js.map +1 -1
  112. package/http/http-request/http-request-common.js +5 -5
  113. package/http/http-request/http-request-common.js.map +1 -1
  114. package/http/http-request/index.android.js +54 -53
  115. package/http/http-request/index.android.js.map +1 -1
  116. package/http/http-request/index.ios.js +58 -56
  117. package/http/http-request/index.ios.js.map +1 -1
  118. package/http/index.js +19 -19
  119. package/http/index.js.map +1 -1
  120. package/image-asset/image-asset-common.js +37 -25
  121. package/image-asset/image-asset-common.js.map +1 -1
  122. package/image-asset/index.android.js +25 -17
  123. package/image-asset/index.android.js.map +1 -1
  124. package/image-asset/index.ios.js +35 -25
  125. package/image-asset/index.ios.js.map +1 -1
  126. package/image-source/image-source-common.js +2 -2
  127. package/image-source/image-source-common.js.map +1 -1
  128. package/image-source/index.android.d.ts +3 -2
  129. package/image-source/index.android.js +189 -156
  130. package/image-source/index.android.js.map +1 -1
  131. package/image-source/index.d.ts +5 -0
  132. package/image-source/index.ios.d.ts +3 -2
  133. package/image-source/index.ios.js +211 -178
  134. package/image-source/index.ios.js.map +1 -1
  135. package/index.d.ts +1 -1
  136. package/index.js +8 -4
  137. package/index.js.map +1 -1
  138. package/matrix/index.js +27 -17
  139. package/matrix/index.js.map +1 -1
  140. package/media-query-list/index.js +87 -61
  141. package/media-query-list/index.js.map +1 -1
  142. package/module-name-resolver/index.js +24 -21
  143. package/module-name-resolver/index.js.map +1 -1
  144. package/module-name-resolver/non-bundle-workflow-compat.js +24 -24
  145. package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
  146. package/module-name-resolver/qualifier-matcher/index.js +46 -46
  147. package/module-name-resolver/qualifier-matcher/index.js.map +1 -1
  148. package/package.json +1 -1
  149. package/platform/common.js +5 -5
  150. package/platform/common.js.map +1 -1
  151. package/platform/device/index.android.js +107 -68
  152. package/platform/device/index.android.js.map +1 -1
  153. package/platform/device/index.ios.js +101 -62
  154. package/platform/device/index.ios.js.map +1 -1
  155. package/platform/screen/index.android.js +63 -32
  156. package/platform/screen/index.android.js.map +1 -1
  157. package/platform/screen/index.ios.js +60 -29
  158. package/platform/screen/index.ios.js.map +1 -1
  159. package/platforms/android/widgets-release.aar +0 -0
  160. package/platforms/android/winter_tc-release.aar +0 -0
  161. package/platforms/ios/{NSCWinterCG.xcframework → NSCWinterTC.xcframework}/Info.plist +22 -22
  162. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework}/Headers/NSCCrypto.h +1 -1
  163. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  164. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h} +3 -3
  165. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework}/Info.plist +0 -0
  166. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  167. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/NSCWinterTC} +0 -0
  168. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
  169. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  170. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  171. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework}/Headers/NSCCrypto.h +1 -1
  172. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  173. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h} +3 -3
  174. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  175. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/NSCWinterTC} +0 -0
  176. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework}/Resources/Info.plist +10 -10
  177. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A}/Headers/NSCCrypto.h +1 -1
  178. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCWinterTC.h +20 -0
  179. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSString+WinterTC.h} +3 -3
  180. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Modules/module.modulemap +6 -0
  181. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/NSCWinterTC} +0 -0
  182. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A}/Resources/Info.plist +10 -10
  183. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/Current/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC} +0 -0
  184. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
  185. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  186. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  187. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  188. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework}/Headers/NSCCrypto.h +1 -1
  189. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  190. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h} +3 -3
  191. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework}/Info.plist +0 -0
  192. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  193. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC} +0 -0
  194. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework}/_CodeSignature/CodeResources +13 -13
  195. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
  196. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  197. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  198. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  199. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  200. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  201. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  202. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework → NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework}/Info.plist +0 -0
  203. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  204. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/NSCWinterTC} +0 -0
  205. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
  206. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  207. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  208. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  209. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  210. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  211. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework}/Info.plist +0 -0
  212. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  213. package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC} +0 -0
  214. package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework}/_CodeSignature/CodeResources +13 -13
  215. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  216. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  217. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  218. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  219. package/platforms/ios/src/NativeScriptMainWindow.swift +24 -7
  220. package/platforms/ios/src/UIView+NativeScript.m +2 -4
  221. package/profiling/index.js +47 -40
  222. package/profiling/index.js.map +1 -1
  223. package/text/text-common.js +49 -36
  224. package/text/text-common.js.map +1 -1
  225. package/timer/index.android.js +30 -20
  226. package/timer/index.android.js.map +1 -1
  227. package/timer/index.ios.js +22 -12
  228. package/timer/index.ios.js.map +1 -1
  229. package/trace/index.js +36 -26
  230. package/trace/index.js.map +1 -1
  231. package/ui/action-bar/action-bar-common.js +252 -193
  232. package/ui/action-bar/action-bar-common.js.map +1 -1
  233. package/ui/action-bar/index.android.d.ts +1 -0
  234. package/ui/action-bar/index.android.js +212 -167
  235. package/ui/action-bar/index.android.js.map +1 -1
  236. package/ui/action-bar/index.d.ts +33 -0
  237. package/ui/action-bar/index.ios.d.ts +7 -2
  238. package/ui/action-bar/index.ios.js +337 -193
  239. package/ui/action-bar/index.ios.js.map +1 -1
  240. package/ui/activity-indicator/activity-indicator-common.js +11 -6
  241. package/ui/activity-indicator/activity-indicator-common.js.map +1 -1
  242. package/ui/activity-indicator/index.android.js +26 -20
  243. package/ui/activity-indicator/index.android.js.map +1 -1
  244. package/ui/activity-indicator/index.d.ts +4 -0
  245. package/ui/activity-indicator/index.ios.js +31 -23
  246. package/ui/activity-indicator/index.ios.js.map +1 -1
  247. package/ui/animation/animation-common.d.ts +1 -8
  248. package/ui/animation/animation-common.js +50 -51
  249. package/ui/animation/animation-common.js.map +1 -1
  250. package/ui/animation/animation-interfaces.d.ts +11 -0
  251. package/ui/animation/animation-interfaces.js +14 -1
  252. package/ui/animation/animation-interfaces.js.map +1 -1
  253. package/ui/animation/index.android.d.ts +2 -2
  254. package/ui/animation/index.android.js +96 -92
  255. package/ui/animation/index.android.js.map +1 -1
  256. package/ui/animation/index.d.ts +0 -13
  257. package/ui/animation/index.ios.d.ts +2 -2
  258. package/ui/animation/index.ios.js +195 -229
  259. package/ui/animation/index.ios.js.map +1 -1
  260. package/ui/animation/keyframe-animation.js +89 -67
  261. package/ui/animation/keyframe-animation.js.map +1 -1
  262. package/ui/builder/binding-builder.js +31 -31
  263. package/ui/builder/binding-builder.js.map +1 -1
  264. package/ui/builder/component-builder/index.js +37 -37
  265. package/ui/builder/component-builder/index.js.map +1 -1
  266. package/ui/builder/index.js +59 -54
  267. package/ui/builder/index.js.map +1 -1
  268. package/ui/builder/xml2ui.js +158 -128
  269. package/ui/builder/xml2ui.js.map +1 -1
  270. package/ui/button/button-common.js +25 -18
  271. package/ui/button/button-common.js.map +1 -1
  272. package/ui/button/index.android.d.ts +1 -1
  273. package/ui/button/index.android.js +93 -80
  274. package/ui/button/index.android.js.map +1 -1
  275. package/ui/button/index.d.ts +6 -0
  276. package/ui/button/index.ios.js +118 -101
  277. package/ui/button/index.ios.js.map +1 -1
  278. package/ui/content-view/index.d.ts +9 -0
  279. package/ui/content-view/index.js +78 -60
  280. package/ui/content-view/index.js.map +1 -1
  281. package/ui/core/bindable/bindable-expressions.js +101 -93
  282. package/ui/core/bindable/bindable-expressions.js.map +1 -1
  283. package/ui/core/bindable/bindable-resources.js +1 -1
  284. package/ui/core/bindable/index.js +141 -136
  285. package/ui/core/bindable/index.js.map +1 -1
  286. package/ui/core/control-state-change/index.android.d.ts +2 -2
  287. package/ui/core/control-state-change/index.android.js +7 -5
  288. package/ui/core/control-state-change/index.android.js.map +1 -1
  289. package/ui/core/control-state-change/index.d.ts +4 -2
  290. package/ui/core/control-state-change/index.ios.d.ts +3 -7
  291. package/ui/core/control-state-change/index.ios.js +29 -42
  292. package/ui/core/control-state-change/index.ios.js.map +1 -1
  293. package/ui/core/properties/index.js +489 -440
  294. package/ui/core/properties/index.js.map +1 -1
  295. package/ui/core/view/index.android.d.ts +2 -7
  296. package/ui/core/view/index.android.js +387 -352
  297. package/ui/core/view/index.android.js.map +1 -1
  298. package/ui/core/view/index.d.ts +238 -14
  299. package/ui/core/view/index.ios.d.ts +3 -13
  300. package/ui/core/view/index.ios.js +411 -367
  301. package/ui/core/view/index.ios.js.map +1 -1
  302. package/ui/core/view/view-common.d.ts +11 -15
  303. package/ui/core/view/view-common.js +951 -654
  304. package/ui/core/view/view-common.js.map +1 -1
  305. package/ui/core/view/view-helper/index.android.js +19 -15
  306. package/ui/core/view/view-helper/index.android.js.map +1 -1
  307. package/ui/core/view/view-helper/index.d.ts +3 -3
  308. package/ui/core/view/view-helper/index.ios.d.ts +3 -18
  309. package/ui/core/view/view-helper/index.ios.js +85 -81
  310. package/ui/core/view/view-helper/index.ios.js.map +1 -1
  311. package/ui/core/view/view-helper/view-helper-common.js +49 -44
  312. package/ui/core/view/view-helper/view-helper-common.js.map +1 -1
  313. package/ui/core/view-base/index.d.ts +107 -4
  314. package/ui/core/view-base/index.js +452 -349
  315. package/ui/core/view-base/index.js.map +1 -1
  316. package/ui/core/weak-event-listener/index.js +26 -25
  317. package/ui/core/weak-event-listener/index.js.map +1 -1
  318. package/ui/date-picker/date-picker-common.d.ts +1 -0
  319. package/ui/date-picker/date-picker-common.js +35 -29
  320. package/ui/date-picker/date-picker-common.js.map +1 -1
  321. package/ui/date-picker/index.android.js +51 -43
  322. package/ui/date-picker/index.android.js.map +1 -1
  323. package/ui/date-picker/index.d.ts +30 -0
  324. package/ui/date-picker/index.ios.js +61 -51
  325. package/ui/date-picker/index.ios.js.map +1 -1
  326. package/ui/dialogs/dialogs-common.js +18 -18
  327. package/ui/dialogs/dialogs-common.js.map +1 -1
  328. package/ui/dialogs/index.android.js +98 -86
  329. package/ui/dialogs/index.android.js.map +1 -1
  330. package/ui/dialogs/index.ios.js +80 -67
  331. package/ui/dialogs/index.ios.js.map +1 -1
  332. package/ui/editable-text-base/editable-text-base-common.d.ts +1 -2
  333. package/ui/editable-text-base/editable-text-base-common.js +44 -32
  334. package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
  335. package/ui/editable-text-base/index.android.js +112 -106
  336. package/ui/editable-text-base/index.android.js.map +1 -1
  337. package/ui/editable-text-base/index.d.ts +42 -0
  338. package/ui/editable-text-base/index.ios.js +53 -47
  339. package/ui/editable-text-base/index.ios.js.map +1 -1
  340. package/ui/embedding/index.android.js +3 -2
  341. package/ui/embedding/index.android.js.map +1 -1
  342. package/ui/frame/activity.android.js +44 -44
  343. package/ui/frame/activity.android.js.map +1 -1
  344. package/ui/frame/callbacks/activity-callbacks.js +123 -118
  345. package/ui/frame/callbacks/activity-callbacks.js.map +1 -1
  346. package/ui/frame/callbacks/fragment-callbacks.js +141 -139
  347. package/ui/frame/callbacks/fragment-callbacks.js.map +1 -1
  348. package/ui/frame/fragment.android.js +21 -21
  349. package/ui/frame/fragment.android.js.map +1 -1
  350. package/ui/frame/fragment.ios.js +1 -1
  351. package/ui/frame/fragment.transitions.android.js +114 -105
  352. package/ui/frame/fragment.transitions.android.js.map +1 -1
  353. package/ui/frame/frame-common.d.ts +4 -3
  354. package/ui/frame/frame-common.js +288 -252
  355. package/ui/frame/frame-common.js.map +1 -1
  356. package/ui/frame/frame-helpers.js +1 -1
  357. package/ui/frame/frame-helpers.js.map +1 -1
  358. package/ui/frame/frame-stack.js +4 -4
  359. package/ui/frame/frame-stack.js.map +1 -1
  360. package/ui/frame/index.android.js +291 -239
  361. package/ui/frame/index.android.js.map +1 -1
  362. package/ui/frame/index.d.ts +40 -3
  363. package/ui/frame/index.ios.js +167 -133
  364. package/ui/frame/index.ios.js.map +1 -1
  365. package/ui/gestures/gestures-common.d.ts +22 -0
  366. package/ui/gestures/gestures-common.js +51 -15
  367. package/ui/gestures/gestures-common.js.map +1 -1
  368. package/ui/gestures/index.android.d.ts +1 -1
  369. package/ui/gestures/index.android.js +124 -109
  370. package/ui/gestures/index.android.js.map +1 -1
  371. package/ui/gestures/index.ios.d.ts +1 -1
  372. package/ui/gestures/index.ios.js +121 -108
  373. package/ui/gestures/index.ios.js.map +1 -1
  374. package/ui/gestures/touch-manager.d.ts +1 -1
  375. package/ui/gestures/touch-manager.js +48 -43
  376. package/ui/gestures/touch-manager.js.map +1 -1
  377. package/ui/html-view/html-view-common.d.ts +1 -0
  378. package/ui/html-view/html-view-common.js +14 -9
  379. package/ui/html-view/html-view-common.js.map +1 -1
  380. package/ui/html-view/index.android.js +43 -37
  381. package/ui/html-view/index.android.js.map +1 -1
  382. package/ui/html-view/index.d.ts +16 -2
  383. package/ui/html-view/index.ios.js +73 -62
  384. package/ui/html-view/index.ios.js.map +1 -1
  385. package/ui/image/image-common.d.ts +2 -0
  386. package/ui/image/image-common.js +59 -47
  387. package/ui/image/image-common.js.map +1 -1
  388. package/ui/image/index.android.js +59 -54
  389. package/ui/image/index.android.js.map +1 -1
  390. package/ui/image/index.d.ts +43 -1
  391. package/ui/image/index.ios.js +72 -65
  392. package/ui/image/index.ios.js.map +1 -1
  393. package/ui/image/symbol-effects-common.js +6 -2
  394. package/ui/image/symbol-effects-common.js.map +1 -1
  395. package/ui/image/symbol-effects.android.js +10 -4
  396. package/ui/image/symbol-effects.android.js.map +1 -1
  397. package/ui/image/symbol-effects.ios.js +11 -7
  398. package/ui/image/symbol-effects.ios.js.map +1 -1
  399. package/ui/image-cache/image-cache-common.js +61 -57
  400. package/ui/image-cache/image-cache-common.js.map +1 -1
  401. package/ui/image-cache/index.android.js +27 -23
  402. package/ui/image-cache/index.android.js.map +1 -1
  403. package/ui/image-cache/index.ios.js +29 -24
  404. package/ui/image-cache/index.ios.js.map +1 -1
  405. package/ui/index.d.ts +3 -1
  406. package/ui/index.js +1 -1
  407. package/ui/index.js.map +1 -1
  408. package/ui/label/index.android.js +38 -29
  409. package/ui/label/index.android.js.map +1 -1
  410. package/ui/label/index.d.ts +4 -0
  411. package/ui/label/index.ios.js +102 -89
  412. package/ui/label/index.ios.js.map +1 -1
  413. package/ui/layouts/absolute-layout/absolute-layout-common.js +30 -25
  414. package/ui/layouts/absolute-layout/absolute-layout-common.js.map +1 -1
  415. package/ui/layouts/absolute-layout/index.android.js +12 -6
  416. package/ui/layouts/absolute-layout/index.android.js.map +1 -1
  417. package/ui/layouts/absolute-layout/index.d.ts +2 -0
  418. package/ui/layouts/absolute-layout/index.ios.js +40 -32
  419. package/ui/layouts/absolute-layout/index.ios.js.map +1 -1
  420. package/ui/layouts/dock-layout/dock-layout-common.js +21 -16
  421. package/ui/layouts/dock-layout/dock-layout-common.js.map +1 -1
  422. package/ui/layouts/dock-layout/index.android.js +17 -11
  423. package/ui/layouts/dock-layout/index.android.js.map +1 -1
  424. package/ui/layouts/dock-layout/index.d.ts +5 -1
  425. package/ui/layouts/dock-layout/index.ios.js +53 -45
  426. package/ui/layouts/dock-layout/index.ios.js.map +1 -1
  427. package/ui/layouts/flexbox-layout/flexbox-layout-common.js +115 -90
  428. package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +1 -1
  429. package/ui/layouts/flexbox-layout/index.android.js +97 -92
  430. package/ui/layouts/flexbox-layout/index.android.js.map +1 -1
  431. package/ui/layouts/flexbox-layout/index.d.ts +32 -0
  432. package/ui/layouts/flexbox-layout/index.ios.js +427 -366
  433. package/ui/layouts/flexbox-layout/index.ios.js.map +1 -1
  434. package/ui/layouts/grid-layout/grid-layout-common.js +211 -159
  435. package/ui/layouts/grid-layout/grid-layout-common.js.map +1 -1
  436. package/ui/layouts/grid-layout/index.android.js +55 -49
  437. package/ui/layouts/grid-layout/index.android.js.map +1 -1
  438. package/ui/layouts/grid-layout/index.d.ts +19 -0
  439. package/ui/layouts/grid-layout/index.ios.js +348 -340
  440. package/ui/layouts/grid-layout/index.ios.js.map +1 -1
  441. package/ui/layouts/layout-base-common.d.ts +0 -1
  442. package/ui/layouts/layout-base-common.js +106 -85
  443. package/ui/layouts/layout-base-common.js.map +1 -1
  444. package/ui/layouts/layout-base.android.js +31 -25
  445. package/ui/layouts/layout-base.android.js.map +1 -1
  446. package/ui/layouts/layout-base.d.ts +14 -0
  447. package/ui/layouts/layout-base.ios.js +27 -21
  448. package/ui/layouts/layout-base.ios.js.map +1 -1
  449. package/ui/layouts/root-layout/index.android.js +46 -47
  450. package/ui/layouts/root-layout/index.android.js.map +1 -1
  451. package/ui/layouts/root-layout/index.d.ts +3 -0
  452. package/ui/layouts/root-layout/index.ios.js +53 -54
  453. package/ui/layouts/root-layout/index.ios.js.map +1 -1
  454. package/ui/layouts/root-layout/root-layout-common.js +190 -186
  455. package/ui/layouts/root-layout/root-layout-common.js.map +1 -1
  456. package/ui/layouts/stack-layout/index.android.js +12 -6
  457. package/ui/layouts/stack-layout/index.android.js.map +1 -1
  458. package/ui/layouts/stack-layout/index.d.ts +3 -0
  459. package/ui/layouts/stack-layout/index.ios.js +69 -62
  460. package/ui/layouts/stack-layout/index.ios.js.map +1 -1
  461. package/ui/layouts/stack-layout/stack-layout-common.js +12 -7
  462. package/ui/layouts/stack-layout/stack-layout-common.js.map +1 -1
  463. package/ui/layouts/wrap-layout/index.android.js +16 -10
  464. package/ui/layouts/wrap-layout/index.android.js.map +1 -1
  465. package/ui/layouts/wrap-layout/index.d.ts +8 -0
  466. package/ui/layouts/wrap-layout/index.ios.js +76 -70
  467. package/ui/layouts/wrap-layout/index.ios.js.map +1 -1
  468. package/ui/layouts/wrap-layout/wrap-layout-common.js +18 -13
  469. package/ui/layouts/wrap-layout/wrap-layout-common.js.map +1 -1
  470. package/ui/list-picker/index.android.js +48 -42
  471. package/ui/list-picker/index.android.js.map +1 -1
  472. package/ui/list-picker/index.d.ts +12 -1
  473. package/ui/list-picker/index.ios.js +36 -26
  474. package/ui/list-picker/index.ios.js.map +1 -1
  475. package/ui/list-picker/list-picker-common.d.ts +1 -0
  476. package/ui/list-picker/list-picker-common.js +32 -26
  477. package/ui/list-picker/list-picker-common.js.map +1 -1
  478. package/ui/list-view/index.android.js +110 -98
  479. package/ui/list-view/index.android.js.map +1 -1
  480. package/ui/list-view/index.d.ts +24 -0
  481. package/ui/list-view/index.ios.js +137 -121
  482. package/ui/list-view/index.ios.js.map +1 -1
  483. package/ui/list-view/list-view-common.js +116 -100
  484. package/ui/list-view/list-view-common.js.map +1 -1
  485. package/ui/page/index.android.js +65 -57
  486. package/ui/page/index.android.js.map +1 -1
  487. package/ui/page/index.d.ts +31 -2
  488. package/ui/page/index.ios.js +107 -98
  489. package/ui/page/index.ios.js.map +1 -1
  490. package/ui/page/page-common.js +145 -113
  491. package/ui/page/page-common.js.map +1 -1
  492. package/ui/placeholder/index.android.d.ts +1 -1
  493. package/ui/placeholder/index.android.js +16 -10
  494. package/ui/placeholder/index.android.js.map +1 -1
  495. package/ui/placeholder/index.d.ts +4 -0
  496. package/ui/placeholder/index.js +12 -6
  497. package/ui/placeholder/index.js.map +1 -1
  498. package/ui/progress/index.android.js +34 -28
  499. package/ui/progress/index.android.js.map +1 -1
  500. package/ui/progress/index.d.ts +13 -0
  501. package/ui/progress/index.ios.js +39 -29
  502. package/ui/progress/index.ios.js.map +1 -1
  503. package/ui/progress/progress-common.js +16 -11
  504. package/ui/progress/progress-common.js.map +1 -1
  505. package/ui/proxy-view-container/index.d.ts +2 -0
  506. package/ui/proxy-view-container/index.js +113 -90
  507. package/ui/proxy-view-container/index.js.map +1 -1
  508. package/ui/repeater/index.d.ts +2 -0
  509. package/ui/repeater/index.js +114 -100
  510. package/ui/repeater/index.js.map +1 -1
  511. package/ui/scroll-view/index.android.d.ts +1 -1
  512. package/ui/scroll-view/index.android.js +95 -75
  513. package/ui/scroll-view/index.android.js.map +1 -1
  514. package/ui/scroll-view/index.d.ts +10 -0
  515. package/ui/scroll-view/index.ios.js +92 -72
  516. package/ui/scroll-view/index.ios.js.map +1 -1
  517. package/ui/scroll-view/scroll-view-common.js +65 -45
  518. package/ui/scroll-view/scroll-view-common.js.map +1 -1
  519. package/ui/search-bar/index.android.js +94 -88
  520. package/ui/search-bar/index.android.js.map +1 -1
  521. package/ui/search-bar/index.d.ts +14 -0
  522. package/ui/search-bar/index.ios.js +88 -74
  523. package/ui/search-bar/index.ios.js.map +1 -1
  524. package/ui/search-bar/search-bar-common.js +18 -13
  525. package/ui/search-bar/search-bar-common.js.map +1 -1
  526. package/ui/segmented-bar/index.android.js +112 -98
  527. package/ui/segmented-bar/index.android.js.map +1 -1
  528. package/ui/segmented-bar/index.d.ts +21 -5
  529. package/ui/segmented-bar/index.ios.js +80 -63
  530. package/ui/segmented-bar/index.ios.js.map +1 -1
  531. package/ui/segmented-bar/segmented-bar-common.js +81 -61
  532. package/ui/segmented-bar/segmented-bar-common.js.map +1 -1
  533. package/ui/slider/index.android.js +49 -43
  534. package/ui/slider/index.android.js.map +1 -1
  535. package/ui/slider/index.d.ts +27 -0
  536. package/ui/slider/index.ios.js +59 -49
  537. package/ui/slider/index.ios.js.map +1 -1
  538. package/ui/slider/slider-common.d.ts +1 -0
  539. package/ui/slider/slider-common.js +35 -27
  540. package/ui/slider/slider-common.js.map +1 -1
  541. package/ui/styling/background-common.js +100 -98
  542. package/ui/styling/background-common.js.map +1 -1
  543. package/ui/styling/background.android.js +38 -35
  544. package/ui/styling/background.android.js.map +1 -1
  545. package/ui/styling/background.d.ts +2 -0
  546. package/ui/styling/background.ios.d.ts +1 -15
  547. package/ui/styling/background.ios.js +294 -290
  548. package/ui/styling/background.ios.js.map +1 -1
  549. package/ui/styling/box-shadow.js +6 -2
  550. package/ui/styling/box-shadow.js.map +1 -1
  551. package/ui/styling/converters.js +7 -7
  552. package/ui/styling/converters.js.map +1 -1
  553. package/ui/styling/css-animation-parser.js +69 -56
  554. package/ui/styling/css-animation-parser.js.map +1 -1
  555. package/ui/styling/css-selector.js +522 -425
  556. package/ui/styling/css-selector.js.map +1 -1
  557. package/ui/styling/css-shadow.js +2 -2
  558. package/ui/styling/css-shadow.js.map +1 -1
  559. package/ui/styling/css-stroke.js +3 -3
  560. package/ui/styling/css-stroke.js.map +1 -1
  561. package/ui/styling/css-utils.js +22 -22
  562. package/ui/styling/css-utils.js.map +1 -1
  563. package/ui/styling/font-common.js +59 -44
  564. package/ui/styling/font-common.js.map +1 -1
  565. package/ui/styling/font.android.js +42 -34
  566. package/ui/styling/font.android.js.map +1 -1
  567. package/ui/styling/font.ios.js +54 -49
  568. package/ui/styling/font.ios.js.map +1 -1
  569. package/ui/styling/linear-gradient.js +17 -13
  570. package/ui/styling/linear-gradient.js.map +1 -1
  571. package/ui/styling/style/index.d.ts +3 -1
  572. package/ui/styling/style/index.js +46 -35
  573. package/ui/styling/style/index.js.map +1 -1
  574. package/ui/styling/style-properties.d.ts +1 -0
  575. package/ui/styling/style-properties.js +306 -291
  576. package/ui/styling/style-properties.js.map +1 -1
  577. package/ui/styling/style-scope.js +416 -377
  578. package/ui/styling/style-scope.js.map +1 -1
  579. package/ui/switch/index.android.js +47 -41
  580. package/ui/switch/index.android.js.map +1 -1
  581. package/ui/switch/index.d.ts +11 -0
  582. package/ui/switch/index.ios.js +66 -57
  583. package/ui/switch/index.ios.js.map +1 -1
  584. package/ui/switch/switch-common.js +20 -15
  585. package/ui/switch/switch-common.js.map +1 -1
  586. package/ui/tab-view/index.android.js +206 -187
  587. package/ui/tab-view/index.android.js.map +1 -1
  588. package/ui/tab-view/index.d.ts +43 -5
  589. package/ui/tab-view/index.ios.js +177 -161
  590. package/ui/tab-view/index.ios.js.map +1 -1
  591. package/ui/tab-view/tab-view-common.js +197 -143
  592. package/ui/tab-view/tab-view-common.js.map +1 -1
  593. package/ui/text-base/formatted-string.d.ts +24 -0
  594. package/ui/text-base/formatted-string.js +158 -105
  595. package/ui/text-base/formatted-string.js.map +1 -1
  596. package/ui/text-base/index.android.js +138 -141
  597. package/ui/text-base/index.android.js.map +1 -1
  598. package/ui/text-base/index.d.ts +47 -0
  599. package/ui/text-base/index.ios.js +120 -112
  600. package/ui/text-base/index.ios.js.map +1 -1
  601. package/ui/text-base/span.d.ts +30 -0
  602. package/ui/text-base/span.js +158 -102
  603. package/ui/text-base/span.js.map +1 -1
  604. package/ui/text-base/text-base-common.d.ts +2 -0
  605. package/ui/text-base/text-base-common.js +268 -175
  606. package/ui/text-base/text-base-common.js.map +1 -1
  607. package/ui/text-field/index.android.js +24 -18
  608. package/ui/text-field/index.android.js.map +1 -1
  609. package/ui/text-field/index.d.ts +13 -0
  610. package/ui/text-field/index.ios.js +80 -70
  611. package/ui/text-field/index.ios.js.map +1 -1
  612. package/ui/text-field/text-field-common.js +13 -8
  613. package/ui/text-field/text-field-common.js.map +1 -1
  614. package/ui/text-view/index.android.d.ts +0 -1
  615. package/ui/text-view/index.android.js +19 -14
  616. package/ui/text-view/index.android.js.map +1 -1
  617. package/ui/text-view/index.d.ts +11 -11
  618. package/ui/text-view/index.ios.d.ts +0 -3
  619. package/ui/text-view/index.ios.js +129 -177
  620. package/ui/text-view/index.ios.js.map +1 -1
  621. package/ui/text-view/text-view-common.d.ts +0 -26
  622. package/ui/text-view/text-view-common.js +9 -37
  623. package/ui/text-view/text-view-common.js.map +1 -1
  624. package/ui/time-picker/index.android.js +24 -18
  625. package/ui/time-picker/index.android.js.map +1 -1
  626. package/ui/time-picker/index.d.ts +27 -0
  627. package/ui/time-picker/index.ios.js +69 -61
  628. package/ui/time-picker/index.ios.js.map +1 -1
  629. package/ui/time-picker/time-picker-common.d.ts +1 -0
  630. package/ui/time-picker/time-picker-common.js +42 -36
  631. package/ui/time-picker/time-picker-common.js.map +1 -1
  632. package/ui/transition/fade-transition.android.js +14 -8
  633. package/ui/transition/fade-transition.android.js.map +1 -1
  634. package/ui/transition/fade-transition.ios.js +10 -4
  635. package/ui/transition/fade-transition.ios.js.map +1 -1
  636. package/ui/transition/flip-transition.android.js +18 -14
  637. package/ui/transition/flip-transition.android.js.map +1 -1
  638. package/ui/transition/index.android.js +27 -24
  639. package/ui/transition/index.android.js.map +1 -1
  640. package/ui/transition/index.ios.js +22 -18
  641. package/ui/transition/index.ios.js.map +1 -1
  642. package/ui/transition/modal-transition.android.js +10 -4
  643. package/ui/transition/modal-transition.android.js.map +1 -1
  644. package/ui/transition/modal-transition.ios.js +25 -18
  645. package/ui/transition/modal-transition.ios.js.map +1 -1
  646. package/ui/transition/page-transition.android.js +71 -57
  647. package/ui/transition/page-transition.android.js.map +1 -1
  648. package/ui/transition/page-transition.ios.js +27 -19
  649. package/ui/transition/page-transition.ios.js.map +1 -1
  650. package/ui/transition/shared-transition-helper.android.js +12 -8
  651. package/ui/transition/shared-transition-helper.android.js.map +1 -1
  652. package/ui/transition/shared-transition-helper.ios.js +539 -442
  653. package/ui/transition/shared-transition-helper.ios.js.map +1 -1
  654. package/ui/transition/shared-transition.js +76 -77
  655. package/ui/transition/shared-transition.js.map +1 -1
  656. package/ui/transition/slide-transition.android.js +22 -17
  657. package/ui/transition/slide-transition.android.js.map +1 -1
  658. package/ui/transition/slide-transition.ios.js +11 -7
  659. package/ui/transition/slide-transition.ios.js.map +1 -1
  660. package/ui/utils.d.ts +1 -1
  661. package/ui/utils.ios.d.ts +1 -2
  662. package/ui/utils.ios.js +13 -13
  663. package/ui/utils.ios.js.map +1 -1
  664. package/ui/web-view/index.android.js +64 -50
  665. package/ui/web-view/index.android.js.map +1 -1
  666. package/ui/web-view/index.d.ts +12 -0
  667. package/ui/web-view/index.ios.js +73 -50
  668. package/ui/web-view/index.ios.js.map +1 -1
  669. package/ui/web-view/web-view-common.d.ts +1 -1
  670. package/ui/web-view/web-view-common.js +43 -29
  671. package/ui/web-view/web-view-common.js.map +1 -1
  672. package/utils/android/index.js +27 -26
  673. package/utils/android/index.js.map +1 -1
  674. package/utils/common.js +65 -49
  675. package/utils/common.js.map +1 -1
  676. package/utils/constants.android.js +1 -1
  677. package/utils/constants.android.js.map +1 -1
  678. package/utils/constants.ios.js +1 -1
  679. package/utils/constants.ios.js.map +1 -1
  680. package/utils/debug.js +54 -32
  681. package/utils/debug.js.map +1 -1
  682. package/utils/index.android.d.ts +1 -0
  683. package/utils/index.android.js +48 -36
  684. package/utils/index.android.js.map +1 -1
  685. package/utils/index.d.ts +6 -0
  686. package/utils/index.ios.d.ts +1 -0
  687. package/utils/index.ios.js +27 -7
  688. package/utils/index.ios.js.map +1 -1
  689. package/utils/ios/index.js +42 -45
  690. package/utils/ios/index.js.map +1 -1
  691. package/utils/layout-helper/index.android.js +4 -4
  692. package/utils/layout-helper/index.android.js.map +1 -1
  693. package/utils/layout-helper/index.ios.js +2 -2
  694. package/utils/layout-helper/index.ios.js.map +1 -1
  695. package/utils/layout-helper/layout-helper-common.js +13 -13
  696. package/utils/layout-helper/layout-helper-common.js.map +1 -1
  697. package/utils/lazy.js +2 -2
  698. package/utils/lazy.js.map +1 -1
  699. package/utils/macrotask-scheduler.js +6 -6
  700. package/utils/macrotask-scheduler.js.map +1 -1
  701. package/utils/mainthread-helper.android.js +4 -4
  702. package/utils/mainthread-helper.android.js.map +1 -1
  703. package/utils/mainthread-helper.ios.js +1 -1
  704. package/utils/mainthread-helper.ios.js.map +1 -1
  705. package/utils/module-merge.js +1 -1
  706. package/utils/module-merge.js.map +1 -1
  707. package/utils/native-helper.android.js +19 -19
  708. package/utils/native-helper.android.js.map +1 -1
  709. package/utils/native-helper.ios.js +24 -16
  710. package/utils/native-helper.ios.js.map +1 -1
  711. package/utils/number-utils.js +3 -3
  712. package/utils/number-utils.js.map +1 -1
  713. package/utils/platform-check.js +6 -6
  714. package/utils/platform-check.js.map +1 -1
  715. package/utils/types.js +43 -33
  716. package/utils/types.js.map +1 -1
  717. package/wgc/atob.js +1 -1
  718. package/wgc/btoa.js +1 -1
  719. package/wgc/crypto/SubtleCrypto.js +168 -133
  720. package/wgc/crypto/SubtleCrypto.js.map +1 -1
  721. package/wgc/crypto/index.d.ts +1 -1
  722. package/wgc/crypto/index.js +21 -12
  723. package/wgc/crypto/index.js.map +1 -1
  724. package/xhr/index.js +308 -226
  725. package/xhr/index.js.map +1 -1
  726. package/xml/index.js +119 -79
  727. package/xml/index.js.map +1 -1
  728. package/platforms/android/winter_cg-release.aar +0 -0
  729. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  730. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  731. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  732. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  733. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  734. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  735. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSCWinterCG.h +0 -20
  736. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Modules/module.modulemap +0 -6
  737. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  738. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  739. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
  740. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  741. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  742. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  743. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  744. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
  745. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  746. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  747. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  748. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  749. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  750. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  751. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  752. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  753. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  754. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  755. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  756. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  757. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  758. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
@@ -10,19 +10,19 @@ import { paddingTopProperty, paddingRightProperty, paddingBottomProperty, paddin
10
10
  import { getClass } from '../../../utils/types';
11
11
  import { profile } from '../../../profiling';
12
12
  import * as ssm from '../../styling/style-scope';
13
- let domNodeModule;
13
+ var domNodeModule;
14
14
  function ensuredomNodeModule() {
15
15
  if (!domNodeModule) {
16
16
  domNodeModule = require('../../../debugger/dom-node');
17
17
  }
18
18
  }
19
- let styleScopeModule;
19
+ var styleScopeModule;
20
20
  function ensureStyleScopeModule() {
21
21
  if (!styleScopeModule) {
22
22
  styleScopeModule = require('../../styling/style-scope');
23
23
  }
24
24
  }
25
- const defaultBindingSource = {};
25
+ var defaultBindingSource = {};
26
26
  /**
27
27
  * Gets an ancestor from a given type.
28
28
  * @param view - Starting view (child view).
@@ -30,16 +30,16 @@ const defaultBindingSource = {};
30
30
  * Returns an instance of a view (if found), otherwise undefined.
31
31
  */
32
32
  export function getAncestor(view, criterion) {
33
- let matcher = null;
33
+ var matcher = null;
34
34
  if (typeof criterion === 'string') {
35
- matcher = (view) => view.typeName === criterion;
35
+ matcher = function (view) { return view.typeName === criterion; };
36
36
  }
37
37
  else {
38
- matcher = (view) => view instanceof criterion;
38
+ matcher = function (view) { return view instanceof criterion; };
39
39
  }
40
- for (let parent = view.parent; parent != null; parent = parent.parent) {
41
- if (matcher(parent)) {
42
- return parent;
40
+ for (var parent_1 = view.parent; parent_1 != null; parent_1 = parent_1.parent) {
41
+ if (matcher(parent_1)) {
42
+ return parent_1;
43
43
  }
44
44
  }
45
45
  return null;
@@ -57,8 +57,8 @@ export function getViewById(view, id) {
57
57
  if (view.id === id) {
58
58
  return view;
59
59
  }
60
- let retVal;
61
- const descendantsCallback = function (child) {
60
+ var retVal;
61
+ var descendantsCallback = function (child) {
62
62
  if (child.id === id) {
63
63
  retVal = child;
64
64
  // break the iteration by returning false
@@ -82,8 +82,8 @@ export function getViewByDomId(view, domId) {
82
82
  if (view._domId === domId) {
83
83
  return view;
84
84
  }
85
- let retVal;
86
- const descendantsCallback = function (child) {
85
+ var retVal;
86
+ var descendantsCallback = function (child) {
87
87
  if (view._domId === domId) {
88
88
  retVal = child;
89
89
  // break the iteration by returning false
@@ -105,11 +105,11 @@ export function querySelectorAll(view, selector) {
105
105
  if (!view) {
106
106
  return [];
107
107
  }
108
- const retVal = [];
108
+ var retVal = [];
109
109
  if (view[selector]) {
110
110
  retVal.push(view);
111
111
  }
112
- const descendantsCallback = function (child) {
112
+ var descendantsCallback = function (child) {
113
113
  if (child[selector]) {
114
114
  retVal.push(child);
115
115
  }
@@ -127,8 +127,8 @@ export function eachDescendant(view, callback) {
127
127
  if (!callback || !view) {
128
128
  return;
129
129
  }
130
- let continueIteration;
131
- const localCallback = function (child) {
130
+ var continueIteration;
131
+ var localCallback = function (child) {
132
132
  continueIteration = callback(child);
133
133
  if (continueIteration) {
134
134
  child.eachChild(localCallback);
@@ -137,7 +137,7 @@ export function eachDescendant(view, callback) {
137
137
  };
138
138
  view.eachChild(localCallback);
139
139
  }
140
- let viewIdCounter = 1;
140
+ var viewIdCounter = 1;
141
141
  // const contextMap = new WeakMap<Object, Map<string, WeakRef<Object>[]>>();
142
142
  // function getNativeView(context: Object, typeName: string): Object {
143
143
  // let typeMap = contextMap.get(context);
@@ -188,125 +188,175 @@ var SuspendType;
188
188
  }
189
189
  SuspendType.toString = toString;
190
190
  })(SuspendType || (SuspendType = {}));
191
- const DEFAULT_VIEW_PADDINGS = new Map();
192
- export class ViewBase extends Observable {
193
- constructor() {
194
- super();
195
- this._onLoadedCalled = false;
196
- this._onUnloadedCalled = false;
191
+ var DEFAULT_VIEW_PADDINGS = new Map();
192
+ /**
193
+ *
194
+ * @nsView ViewBase
195
+ */
196
+ var ViewBase = /** @class */ (function (_super) {
197
+ __extends(ViewBase, _super);
198
+ function ViewBase() {
199
+ var _this = _super.call(this) || this;
200
+ _this._onLoadedCalled = false;
201
+ _this._onUnloadedCalled = false;
197
202
  /**
198
203
  * Default visual state, defaults to 'normal'
204
+ *
205
+ * @nsProperty
199
206
  */
200
- this.defaultVisualState = 'normal';
201
- /* "ui/styling/style-scope" */ this._cssState = new ssm.CssState(new WeakRef(this));
202
- this.pseudoClassAliases = {
207
+ _this.defaultVisualState = 'normal';
208
+ /* "ui/styling/style-scope" */ _this._cssState = new ssm.CssState(new WeakRef(_this));
209
+ _this.pseudoClassAliases = {
203
210
  highlighted: ['active', 'pressed'],
204
211
  };
205
- this.cssClasses = new Set();
206
- this.cssPseudoClasses = new Set();
207
212
  /**
208
213
  * if _setupAsRootView is called it means it is not supposed to be
209
214
  * added to a parent. However parent can be set before for the purpose
210
215
  * of CSS variables/classes. That variable ensures that _addViewToNativeVisualTree
211
216
  * is not called in _setupAsRootView
212
217
  */
213
- this.mIsRootView = false;
214
- this._domId = viewIdCounter++;
215
- this._style = new Style(new WeakRef(this));
216
- this.notify({ eventName: ViewBase.createdEvent, type: this.constructor.name, object: this });
217
- }
218
- // Used in Angular. TODO: remove from here
219
- /**
220
- * Gets the template parent or the native parent. Sets the template parent.
221
- */
222
- get parentNode() {
223
- return this._templateParent || this.parent;
224
- }
225
- set parentNode(node) {
226
- this._templateParent = node;
227
- }
228
- get nativeView() {
229
- // this._disableNativeViewRecycling = true;
230
- return this.nativeViewProtected;
231
- }
232
- set nativeView(value) {
233
- this.setNativeView(value);
234
- }
235
- // TODO: Use Type.prototype.typeName instead.
236
- /**
237
- * Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button".
238
- */
239
- get typeName() {
240
- return getClass(this);
241
- }
242
- /**
243
- * Gets the style object associated to this view.
244
- */
245
- get style() {
246
- return this._style;
247
- }
248
- set style(inlineStyle /* | string */) {
249
- if (typeof inlineStyle === 'string') {
250
- this.setInlineStyle(inlineStyle);
251
- }
252
- else {
253
- throw new Error('View.style property is read-only.');
254
- }
255
- }
256
- get android() {
257
- // this._disableNativeViewRecycling = true;
258
- return this._androidView;
259
- }
260
- get ios() {
261
- // this._disableNativeViewRecycling = true;
262
- return this._iosView;
263
- }
264
- get isLoaded() {
265
- return this._isLoaded;
266
- }
267
- get ['class']() {
268
- return this.className;
269
- }
270
- set ['class'](v) {
271
- this.className = v;
272
- }
218
+ _this.mIsRootView = false;
219
+ _this._domId = viewIdCounter++;
220
+ _this._style = new Style(new WeakRef(_this));
221
+ _this.cssClasses = new Set();
222
+ _this.cssPseudoClasses = new Set();
223
+ _this.cssPseudoClasses.add(_this.defaultVisualState);
224
+ _this.notify({ eventName: ViewBase.createdEvent, type: _this.constructor.name, object: _this });
225
+ return _this;
226
+ }
227
+ Object.defineProperty(ViewBase.prototype, "parentNode", {
228
+ // Used in Angular. TODO: remove from here
229
+ /**
230
+ * Gets the template parent or the native parent. Sets the template parent.
231
+ */
232
+ get: function () {
233
+ return this._templateParent || this.parent;
234
+ },
235
+ set: function (node) {
236
+ this._templateParent = node;
237
+ },
238
+ enumerable: false,
239
+ configurable: true
240
+ });
241
+ Object.defineProperty(ViewBase.prototype, "nativeView", {
242
+ get: function () {
243
+ // this._disableNativeViewRecycling = true;
244
+ return this.nativeViewProtected;
245
+ },
246
+ set: function (value) {
247
+ this.setNativeView(value);
248
+ },
249
+ enumerable: false,
250
+ configurable: true
251
+ });
252
+ Object.defineProperty(ViewBase.prototype, "typeName", {
253
+ // TODO: Use Type.prototype.typeName instead.
254
+ /**
255
+ * Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button".
256
+ */
257
+ get: function () {
258
+ return getClass(this);
259
+ },
260
+ enumerable: false,
261
+ configurable: true
262
+ });
263
+ Object.defineProperty(ViewBase.prototype, "style", {
264
+ /**
265
+ * Gets the style object associated to this view.
266
+ */
267
+ get: function () {
268
+ return this._style;
269
+ },
270
+ /**
271
+ *
272
+ * @nsProperty
273
+ */
274
+ set: function (inlineStyle /* | string */) {
275
+ if (typeof inlineStyle === 'string') {
276
+ this.setInlineStyle(inlineStyle);
277
+ }
278
+ else {
279
+ throw new Error('View.style property is read-only.');
280
+ }
281
+ },
282
+ enumerable: false,
283
+ configurable: true
284
+ });
285
+ Object.defineProperty(ViewBase.prototype, "android", {
286
+ get: function () {
287
+ // this._disableNativeViewRecycling = true;
288
+ return this._androidView;
289
+ },
290
+ enumerable: false,
291
+ configurable: true
292
+ });
293
+ Object.defineProperty(ViewBase.prototype, "ios", {
294
+ get: function () {
295
+ // this._disableNativeViewRecycling = true;
296
+ return this._iosView;
297
+ },
298
+ enumerable: false,
299
+ configurable: true
300
+ });
301
+ Object.defineProperty(ViewBase.prototype, "isLoaded", {
302
+ get: function () {
303
+ return this._isLoaded;
304
+ },
305
+ enumerable: false,
306
+ configurable: true
307
+ });
308
+ Object.defineProperty(ViewBase.prototype, 'class', {
309
+ get: function () {
310
+ return this.className;
311
+ },
312
+ set: function (v) {
313
+ this.className = v;
314
+ },
315
+ enumerable: false,
316
+ configurable: true
317
+ });
273
318
  /**
274
319
  * Returns the child view with the specified id.
275
320
  */
276
- getViewById(id) {
321
+ ViewBase.prototype.getViewById = function (id) {
277
322
  return getViewById(this, id);
278
- }
323
+ };
279
324
  /**
280
325
  * Returns the child view with the specified domId.
281
326
  */
282
- getViewByDomId(domId) {
327
+ ViewBase.prototype.getViewByDomId = function (domId) {
283
328
  return getViewByDomId(this, domId);
284
- }
285
- /**
286
- * Gets owner page. This is a read-only property.
287
- */
288
- get page() {
289
- if (this.parent) {
290
- return this.parent.page;
291
- }
292
- return null;
293
- }
329
+ };
330
+ Object.defineProperty(ViewBase.prototype, "page", {
331
+ /**
332
+ * Gets owner page. This is a read-only property.
333
+ */
334
+ get: function () {
335
+ if (this.parent) {
336
+ return this.parent.page;
337
+ }
338
+ return null;
339
+ },
340
+ enumerable: false,
341
+ configurable: true
342
+ });
294
343
  /**
295
344
  * @unstable
296
345
  * Ensures a dom-node for this view.
297
346
  */
298
- ensureDomNode() {
347
+ ViewBase.prototype.ensureDomNode = function () {
299
348
  if (!this.domNode) {
300
349
  ensuredomNodeModule();
301
350
  this.domNode = new domNodeModule.DOMNode(this);
302
351
  }
303
- }
352
+ };
304
353
  // Overridden so we don't raise `propertyChange`
305
354
  // The property will raise its own event.
306
- set(name, value) {
355
+ ViewBase.prototype.set = function (name, value) {
307
356
  this[name] = WrappedValue.unwrap(value);
308
- }
309
- onLoaded() {
357
+ };
358
+ ViewBase.prototype.onLoaded = function () {
359
+ var _this = this;
310
360
  this.setFlag(Flags.superOnLoadedCalled, true);
311
361
  if (this._isLoaded) {
312
362
  return;
@@ -314,57 +364,58 @@ export class ViewBase extends Observable {
314
364
  this._isLoaded = true;
315
365
  this._cssState.onLoaded();
316
366
  this._resumeNativeUpdates(SuspendType.Loaded);
317
- this.eachChild((child) => {
318
- this.loadView(child);
367
+ this.eachChild(function (child) {
368
+ _this.loadView(child);
319
369
  return true;
320
370
  });
321
371
  this._emit('loaded');
322
- }
323
- onUnloaded() {
372
+ };
373
+ ViewBase.prototype.onUnloaded = function () {
374
+ var _this = this;
324
375
  this.setFlag(Flags.superOnUnloadedCalled, true);
325
376
  if (!this._isLoaded) {
326
377
  return;
327
378
  }
328
379
  this._suspendNativeUpdates(SuspendType.Loaded);
329
- this.eachChild((child) => {
330
- this.unloadView(child);
380
+ this.eachChild(function (child) {
381
+ _this.unloadView(child);
331
382
  return true;
332
383
  });
333
384
  this._isLoaded = false;
334
385
  this._cssState.onUnloaded();
335
386
  this._emit('unloaded');
336
- }
337
- _layoutParent() {
387
+ };
388
+ ViewBase.prototype._layoutParent = function () {
338
389
  if (this.parent) {
339
390
  this.parent._layoutParent();
340
391
  }
341
- }
342
- _suspendNativeUpdates(type) {
392
+ };
393
+ ViewBase.prototype._suspendNativeUpdates = function (type) {
343
394
  if (type) {
344
395
  this._suspendNativeUpdatesCount = this._suspendNativeUpdatesCount | type;
345
396
  }
346
397
  else {
347
398
  this._suspendNativeUpdatesCount++;
348
399
  }
349
- }
350
- _resumeNativeUpdates(type) {
400
+ };
401
+ ViewBase.prototype._resumeNativeUpdates = function (type) {
351
402
  if (type) {
352
403
  this._suspendNativeUpdatesCount = this._suspendNativeUpdatesCount & ~type;
353
404
  }
354
405
  else {
355
406
  if ((this._suspendNativeUpdatesCount & SuspendType.IncrementalCountMask) === 0) {
356
- throw new Error(`Invalid call to ${this}._resumeNativeUpdates`);
407
+ throw new Error("Invalid call to ".concat(this, "._resumeNativeUpdates"));
357
408
  }
358
409
  this._suspendNativeUpdatesCount--;
359
410
  }
360
411
  if (!this._suspendNativeUpdatesCount) {
361
412
  this.onResumeNativeUpdates();
362
413
  }
363
- }
414
+ };
364
415
  /**
365
416
  * Allow multiple updates to be performed on the instance at once.
366
417
  */
367
- _batchUpdate(callback) {
418
+ ViewBase.prototype._batchUpdate = function (callback) {
368
419
  try {
369
420
  this._suspendNativeUpdates(SuspendType.Incremental);
370
421
  return callback();
@@ -372,8 +423,8 @@ export class ViewBase extends Observable {
372
423
  finally {
373
424
  this._resumeNativeUpdates(SuspendType.Incremental);
374
425
  }
375
- }
376
- setFlag(flag, value) {
426
+ };
427
+ ViewBase.prototype.setFlag = function (flag, value) {
377
428
  switch (flag) {
378
429
  case Flags.superOnLoadedCalled:
379
430
  this._onLoadedCalled = value;
@@ -382,89 +433,91 @@ export class ViewBase extends Observable {
382
433
  this._onUnloadedCalled = value;
383
434
  break;
384
435
  }
385
- }
386
- isFlagSet(flag) {
436
+ };
437
+ ViewBase.prototype.isFlagSet = function (flag) {
387
438
  switch (flag) {
388
439
  case Flags.superOnLoadedCalled:
389
440
  return this._onLoadedCalled;
390
441
  case Flags.superOnUnloadedCalled:
391
442
  return this._onUnloadedCalled;
392
443
  }
393
- }
394
- callFunctionWithSuper(flag, func) {
444
+ };
445
+ ViewBase.prototype.callFunctionWithSuper = function (flag, func) {
395
446
  this.setFlag(flag, false);
396
447
  func();
397
448
  if (!this.isFlagSet(flag)) {
398
- throw new Error(`super.${flag} not called in ${this}`);
449
+ throw new Error("super.".concat(flag, " not called in ").concat(this));
399
450
  }
400
- }
401
- callLoaded() {
402
- this.callFunctionWithSuper(Flags.superOnLoadedCalled, () => this.onLoaded());
403
- }
404
- callUnloaded() {
405
- this.callFunctionWithSuper(Flags.superOnUnloadedCalled, () => this.onUnloaded());
406
- }
407
- notifyPseudoClassChanged(pseudoClass) {
451
+ };
452
+ ViewBase.prototype.callLoaded = function () {
453
+ var _this = this;
454
+ this.callFunctionWithSuper(Flags.superOnLoadedCalled, function () { return _this.onLoaded(); });
455
+ };
456
+ ViewBase.prototype.callUnloaded = function () {
457
+ var _this = this;
458
+ this.callFunctionWithSuper(Flags.superOnUnloadedCalled, function () { return _this.onUnloaded(); });
459
+ };
460
+ ViewBase.prototype.notifyPseudoClassChanged = function (pseudoClass) {
408
461
  this.notify({ eventName: ':' + pseudoClass, object: this });
409
- }
410
- getAllAliasedStates(name) {
411
- const allStates = [];
412
- allStates.push(name);
462
+ };
463
+ ViewBase.prototype.getAllAliasedStates = function (name) {
464
+ var allStates = [name];
413
465
  if (name in this.pseudoClassAliases) {
414
- for (let i = 0; i < this.pseudoClassAliases[name].length; i++) {
466
+ for (var i = 0, length_1 = this.pseudoClassAliases[name].length; i < length_1; i++) {
415
467
  allStates.push(this.pseudoClassAliases[name][i]);
416
468
  }
417
469
  }
418
470
  return allStates;
419
- }
471
+ };
420
472
  /**
421
473
  * @protected
422
474
  * @unstable
423
475
  * A widget can call this method to add a matching css pseudo class.
424
476
  */
425
- addPseudoClass(name) {
426
- const allStates = this.getAllAliasedStates(name);
427
- for (let i = 0; i < allStates.length; i++) {
477
+ ViewBase.prototype.addPseudoClass = function (name) {
478
+ var allStates = this.getAllAliasedStates(name);
479
+ for (var i = 0, length_2 = allStates.length; i < length_2; i++) {
428
480
  if (!this.cssPseudoClasses.has(allStates[i])) {
429
481
  this.cssPseudoClasses.add(allStates[i]);
430
482
  this.notifyPseudoClassChanged(allStates[i]);
431
483
  }
432
484
  }
433
- }
485
+ };
434
486
  /**
435
487
  * @protected
436
488
  * @unstable
437
489
  * A widget can call this method to discard matching css pseudo class.
438
490
  */
439
- deletePseudoClass(name) {
440
- const allStates = this.getAllAliasedStates(name);
441
- for (let i = 0; i < allStates.length; i++) {
491
+ ViewBase.prototype.deletePseudoClass = function (name) {
492
+ var allStates = this.getAllAliasedStates(name);
493
+ for (var i = 0, length_3 = allStates.length; i < length_3; i++) {
442
494
  if (this.cssPseudoClasses.has(allStates[i])) {
443
495
  this.cssPseudoClasses.delete(allStates[i]);
444
496
  this.notifyPseudoClassChanged(allStates[i]);
445
497
  }
446
498
  }
447
- }
448
- bindingContextChanged(data) {
499
+ };
500
+ ViewBase.prototype.bindingContextChanged = function (data) {
449
501
  this.bindings.get('bindingContext').bind(data.value);
450
- }
451
- bind(options, source = defaultBindingSource) {
452
- const targetProperty = options.targetProperty;
502
+ };
503
+ ViewBase.prototype.bind = function (options, source) {
504
+ if (source === void 0) { source = defaultBindingSource; }
505
+ var targetProperty = options.targetProperty;
453
506
  this.unbind(targetProperty);
454
507
  if (!this.bindings) {
455
508
  this.bindings = new Map();
456
509
  }
457
- const binding = new Binding(this, options);
510
+ var binding = new Binding(this, options);
458
511
  this.bindings.set(targetProperty, binding);
459
- let bindingSource = source;
512
+ var bindingSource = source;
460
513
  if (bindingSource === defaultBindingSource) {
461
514
  bindingSource = this.bindingContext;
462
515
  binding.sourceIsBindingContext = true;
463
516
  if (targetProperty === 'bindingContext') {
464
517
  this.bindingContextBoundToParentBindingContextChanged = true;
465
- const parent = this.parent;
466
- if (parent) {
467
- parent.on('bindingContextChange', this.bindingContextChanged, this);
518
+ var parent_2 = this.parent;
519
+ if (parent_2) {
520
+ parent_2.on('bindingContextChange', this.bindingContextChanged, this);
468
521
  }
469
522
  else {
470
523
  this.shouldAddHandlerToParentBindingContextChanged = true;
@@ -472,13 +525,13 @@ export class ViewBase extends Observable {
472
525
  }
473
526
  }
474
527
  binding.bind(bindingSource);
475
- }
476
- unbind(property) {
477
- const bindings = this.bindings;
528
+ };
529
+ ViewBase.prototype.unbind = function (property) {
530
+ var bindings = this.bindings;
478
531
  if (!bindings) {
479
532
  return;
480
533
  }
481
- const binding = bindings.get(property);
534
+ var binding = bindings.get(property);
482
535
  if (binding) {
483
536
  binding.unbind();
484
537
  bindings.delete(property);
@@ -486,51 +539,53 @@ export class ViewBase extends Observable {
486
539
  if (property === 'bindingContext') {
487
540
  this.shouldAddHandlerToParentBindingContextChanged = false;
488
541
  this.bindingContextBoundToParentBindingContextChanged = false;
489
- const parent = this.parent;
490
- if (parent) {
491
- parent.off('bindingContextChange', this.bindingContextChanged, this);
542
+ var parent_3 = this.parent;
543
+ if (parent_3) {
544
+ parent_3.off('bindingContextChange', this.bindingContextChanged, this);
492
545
  }
493
546
  }
494
547
  }
495
548
  }
496
- }
497
- performLayout(currentRun = 0) {
549
+ };
550
+ ViewBase.prototype.performLayout = function (currentRun) {
551
+ var _this = this;
552
+ if (currentRun === void 0) { currentRun = 0; }
498
553
  // if there's an animation in progress we need to delay the layout
499
554
  // we've added a guard of 5000 milliseconds execution
500
555
  // to make sure that the layout will happen even if the animation haven't finished in 5 seconds
501
556
  if (this._shouldDelayLayout() && currentRun < 100) {
502
- setTimeout(() => this.performLayout(currentRun), currentRun);
557
+ setTimeout(function () { return _this.performLayout(currentRun); }, currentRun);
503
558
  currentRun++;
504
559
  }
505
560
  else {
506
561
  this.parent.requestLayout();
507
562
  }
508
- }
563
+ };
509
564
  /**
510
565
  * Invalidates the layout of the view and triggers a new layout pass.
511
566
  */
512
- requestLayout() {
567
+ ViewBase.prototype.requestLayout = function () {
513
568
  // Default implementation for non View instances (like TabViewItem).
514
- const parent = this.parent;
569
+ var parent = this.parent;
515
570
  if (parent) {
516
571
  this.performLayout();
517
572
  }
518
- }
573
+ };
519
574
  /**
520
575
  * Iterates over children of type ViewBase.
521
576
  * @param callback Called for each child of type ViewBase. Iteration stops if this method returns falsy value.
522
577
  */
523
- eachChild(callback) {
578
+ ViewBase.prototype.eachChild = function (callback) {
524
579
  //
525
- }
526
- _inheritStyles(view) {
580
+ };
581
+ ViewBase.prototype._inheritStyles = function (view) {
527
582
  propagateInheritableProperties(this, view);
528
583
  view._inheritStyleScope(this._styleScope);
529
584
  propagateInheritableCssProperties(this.style, view.style);
530
- }
531
- _addView(view, atIndex) {
585
+ };
586
+ ViewBase.prototype._addView = function (view, atIndex) {
532
587
  if (Trace.isEnabled()) {
533
- Trace.write(`${this}._addView(${view}, ${atIndex})`, Trace.categories.ViewHierarchy);
588
+ Trace.write("".concat(this, "._addView(").concat(view, ", ").concat(atIndex, ")"), Trace.categories.ViewHierarchy);
534
589
  }
535
590
  if (!view) {
536
591
  throw new Error('Expecting a valid View instance.');
@@ -547,11 +602,11 @@ export class ViewBase extends Observable {
547
602
  if (this.domNode) {
548
603
  this.domNode.onChildAdded(view);
549
604
  }
550
- }
605
+ };
551
606
  /**
552
607
  * Method is intended to be overridden by inheritors and used as "protected"
553
608
  */
554
- _addViewCore(view, atIndex) {
609
+ ViewBase.prototype._addViewCore = function (view, atIndex) {
555
610
  this._inheritStyles(view);
556
611
  if (this._context) {
557
612
  view._setupUI(this._context, atIndex);
@@ -559,38 +614,38 @@ export class ViewBase extends Observable {
559
614
  if (this._isLoaded) {
560
615
  this.loadView(view);
561
616
  }
562
- }
617
+ };
563
618
  /**
564
619
  * Load view.
565
620
  * @param view to load.
566
621
  */
567
- loadView(view) {
622
+ ViewBase.prototype.loadView = function (view) {
568
623
  if (view && !view.isLoaded) {
569
624
  view.callLoaded();
570
625
  }
571
- }
626
+ };
572
627
  /**
573
628
  * When returning true the callLoaded method will be run in setTimeout
574
629
  * Method is intended to be overridden by inheritors and used as "protected"
575
630
  */
576
- _shouldDelayLayout() {
631
+ ViewBase.prototype._shouldDelayLayout = function () {
577
632
  return false;
578
- }
633
+ };
579
634
  /**
580
635
  * Unload view.
581
636
  * @param view to unload.
582
637
  */
583
- unloadView(view) {
638
+ ViewBase.prototype.unloadView = function (view) {
584
639
  if (view && view.isLoaded) {
585
640
  view.callUnloaded();
586
641
  }
587
- }
642
+ };
588
643
  /**
589
644
  * Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation.
590
645
  */
591
- _removeView(view) {
646
+ ViewBase.prototype._removeView = function (view) {
592
647
  if (Trace.isEnabled()) {
593
- Trace.write(`${this}._removeView(${view})`, Trace.categories.ViewHierarchy);
648
+ Trace.write("".concat(this, "._removeView(").concat(view, ")"), Trace.categories.ViewHierarchy);
594
649
  }
595
650
  if (view.parent !== this) {
596
651
  throw new Error('View not added to this instance. View: ' + view + ' CurrentParent: ' + view.parent + ' ExpectedParent: ' + this);
@@ -601,27 +656,27 @@ export class ViewBase extends Observable {
601
656
  this._removeViewCore(view);
602
657
  view.parent = undefined;
603
658
  view._parentChanged(this);
604
- }
659
+ };
605
660
  /**
606
661
  * Method is intended to be overridden by inheritors and used as "protected"
607
662
  */
608
- _removeViewCore(view) {
663
+ ViewBase.prototype._removeViewCore = function (view) {
609
664
  this.unloadView(view);
610
665
  if (view._context) {
611
666
  view._tearDownUI();
612
667
  }
613
- }
668
+ };
614
669
  /**
615
670
  * Creates a native view.
616
671
  * Returns either android.view.View or UIView.
617
672
  */
618
- createNativeView() {
673
+ ViewBase.prototype.createNativeView = function () {
619
674
  return undefined;
620
- }
675
+ };
621
676
  /**
622
677
  * Clean up references to the native view.
623
678
  */
624
- disposeNativeView() {
679
+ ViewBase.prototype.disposeNativeView = function () {
625
680
  // Unset those values so that view will check for resize after being removed and re-added to view-tree
626
681
  this._oldLeft = 0;
627
682
  this._oldTop = 0;
@@ -631,20 +686,20 @@ export class ViewBase extends Observable {
631
686
  eventName: ViewBase.disposeNativeViewEvent,
632
687
  object: this,
633
688
  });
634
- }
689
+ };
635
690
  /**
636
691
  * Initializes properties/listeners of the native view.
637
692
  */
638
- initNativeView() {
693
+ ViewBase.prototype.initNativeView = function () {
639
694
  //
640
- }
695
+ };
641
696
  /**
642
697
  * Resets properties/listeners set to the native view.
643
698
  */
644
- resetNativeView() {
699
+ ViewBase.prototype.resetNativeView = function () {
645
700
  //
646
- }
647
- resetNativeViewInternal() {
701
+ };
702
+ ViewBase.prototype.resetNativeViewInternal = function () {
648
703
  // const nativeView = this.nativeViewProtected;
649
704
  // if (nativeView && __ANDROID__) {
650
705
  // const recycle = this.recycleNativeView;
@@ -661,23 +716,23 @@ export class ViewBase extends Observable {
661
716
  // if (this._cssState) {
662
717
  // this._cancelAllAnimations();
663
718
  // }
664
- }
665
- _setupAsRootView(context) {
719
+ };
720
+ ViewBase.prototype._setupAsRootView = function (context) {
666
721
  this.mIsRootView = true;
667
722
  this._setupUI(context);
668
723
  this.mIsRootView = false;
669
- }
724
+ };
670
725
  /**
671
726
  * Setups the UI for ViewBase and all its children recursively.
672
727
  * This method should *not* be overridden by derived views.
673
728
  */
674
- _setupUI(context /* android.content.Context */, atIndex, parentIsLoaded) {
729
+ ViewBase.prototype._setupUI = function (context /* android.content.Context */, atIndex, parentIsLoaded) {
675
730
  if (this._context === context) {
676
731
  // this check is unnecessary as this function should never be called when this._context === context as it means the view was somehow detached,
677
732
  // which is only possible by setting reusable = true. Adding it either way for feature flag safety
678
733
  if (this.reusable) {
679
734
  if (!this.mIsRootView && this.parent && !this._isAddedToNativeVisualTree) {
680
- const nativeIndex = this.parent._childIndexToNativeChildIndex(atIndex);
735
+ var nativeIndex = this.parent._childIndexToNativeChildIndex(atIndex);
681
736
  this._isAddedToNativeVisualTree = this.parent._addViewToNativeVisualTree(this, nativeIndex);
682
737
  }
683
738
  }
@@ -689,7 +744,7 @@ export class ViewBase extends Observable {
689
744
  this._context = context;
690
745
  // This will account for nativeView that is created in createNativeView, recycled
691
746
  // or for backward compatibility - set before _setupUI in iOS constructor.
692
- let nativeView = this.nativeViewProtected;
747
+ var nativeView = this.nativeViewProtected;
693
748
  // if (__ANDROID__) {
694
749
  // const recycle = this.recycleNativeView;
695
750
  // if (recycle === "always" || (recycle === "auto" && !this._disableNativeViewRecycling)) {
@@ -705,11 +760,11 @@ export class ViewBase extends Observable {
705
760
  if (this._androidView !== nativeView || !this.reusable) {
706
761
  this._androidView = nativeView;
707
762
  if (nativeView) {
708
- const className = this.constructor.name;
763
+ var className = this.constructor.name;
709
764
  if (this._isPaddingRelative === undefined) {
710
765
  this._isPaddingRelative = nativeView.isPaddingRelative();
711
766
  }
712
- let result /* android.graphics.Rect */ = DEFAULT_VIEW_PADDINGS.get(className) || nativeView.defaultPaddings;
767
+ var result /* android.graphics.Rect */ = DEFAULT_VIEW_PADDINGS.get(className) || nativeView.defaultPaddings;
713
768
  if (result === undefined) {
714
769
  DEFAULT_VIEW_PADDINGS.set(className, org.nativescript.widgets.ViewHelper.getPadding(nativeView));
715
770
  nativeView.defaultPaddings = DEFAULT_VIEW_PADDINGS.get(className);
@@ -722,7 +777,7 @@ export class ViewBase extends Observable {
722
777
  this._defaultPaddingRight = result.right;
723
778
  this._defaultPaddingBottom = result.bottom;
724
779
  this._defaultPaddingLeft = result.left;
725
- const style = this.style;
780
+ var style = this.style;
726
781
  if (!paddingTopProperty.isSet(style)) {
727
782
  this.effectivePaddingTop = this._defaultPaddingTop;
728
783
  }
@@ -743,21 +798,21 @@ export class ViewBase extends Observable {
743
798
  }
744
799
  this.setNativeView(nativeView);
745
800
  if (!this.mIsRootView && this.parent) {
746
- const nativeIndex = this.parent._childIndexToNativeChildIndex(atIndex);
801
+ var nativeIndex = this.parent._childIndexToNativeChildIndex(atIndex);
747
802
  this._isAddedToNativeVisualTree = this.parent._addViewToNativeVisualTree(this, nativeIndex);
748
803
  }
749
804
  this._resumeNativeUpdates(SuspendType.UISetup);
750
- this.eachChild((child) => {
805
+ this.eachChild(function (child) {
751
806
  child._setupUI(context);
752
807
  return true;
753
808
  });
754
- }
809
+ };
755
810
  /**
756
811
  * Set the nativeView field performing extra checks and updates to the native properties on the new view.
757
812
  * Use in cases where the createNativeView is not suitable.
758
813
  * As an example use in item controls where the native parent view will create the native views for child items.
759
814
  */
760
- setNativeView(value) {
815
+ ViewBase.prototype.setNativeView = function (value) {
761
816
  if (this.__nativeView === value) {
762
817
  return;
763
818
  }
@@ -771,30 +826,30 @@ export class ViewBase extends Observable {
771
826
  this.initNativeView();
772
827
  this._resumeNativeUpdates(SuspendType.NativeView);
773
828
  }
774
- }
829
+ };
775
830
  /**
776
831
  * Tears down the UI of a reusable node by making it no longer reusable.
777
832
  * @see _tearDownUI
778
833
  * @param forceDestroyChildren Force destroy the children (even if they are reusable)
779
834
  */
780
- destroyNode(forceDestroyChildren) {
835
+ ViewBase.prototype.destroyNode = function (forceDestroyChildren) {
781
836
  this.reusable = false;
782
837
  this.callUnloaded();
783
838
  this._tearDownUI(forceDestroyChildren);
784
- }
839
+ };
785
840
  /**
786
841
  * Tears down the UI for ViewBase and all its children recursively.
787
842
  * This method should *not* be overridden by derived views.
788
843
  */
789
- _tearDownUI(force) {
844
+ ViewBase.prototype._tearDownUI = function (force) {
790
845
  // No context means we are already teared down.
791
846
  if (!this._context) {
792
847
  return;
793
848
  }
794
- const preserveNativeView = this.reusable && !force;
849
+ var preserveNativeView = this.reusable && !force;
795
850
  this.resetNativeViewInternal();
796
851
  if (!preserveNativeView) {
797
- this.eachChild((child) => {
852
+ this.eachChild(function (child) {
798
853
  child._tearDownUI(force);
799
854
  return true;
800
855
  });
@@ -831,30 +886,51 @@ export class ViewBase extends Observable {
831
886
  this.domNode.dispose();
832
887
  this.domNode = undefined;
833
888
  }
834
- }
835
- _childIndexToNativeChildIndex(index) {
889
+ };
890
+ ViewBase.prototype._childIndexToNativeChildIndex = function (index) {
836
891
  return index;
837
- }
892
+ };
838
893
  /**
839
894
  * Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise.
840
895
  * Method is intended to be overridden by inheritors and used as "protected".
841
896
  */
842
- _addViewToNativeVisualTree(view, atIndex) {
897
+ ViewBase.prototype._addViewToNativeVisualTree = function (view, atIndex) {
843
898
  if (view._isAddedToNativeVisualTree) {
844
899
  throw new Error('Child already added to the native visual tree.');
845
900
  }
846
901
  return true;
847
- }
902
+ };
848
903
  /**
849
904
  * Method is intended to be overridden by inheritors and used as "protected"
850
905
  */
851
- _removeViewFromNativeVisualTree(view) {
906
+ ViewBase.prototype._removeViewFromNativeVisualTree = function (view) {
852
907
  view._isAddedToNativeVisualTree = false;
853
- }
854
- get visualState() {
855
- return this._visualState;
856
- }
857
- _goToVisualState(state) {
908
+ };
909
+ Object.defineProperty(ViewBase.prototype, "visualState", {
910
+ /**
911
+ * @deprecated
912
+ */
913
+ get: function () {
914
+ return this._visualState;
915
+ },
916
+ enumerable: false,
917
+ configurable: true
918
+ });
919
+ ViewBase.prototype._addVisualState = function (state) {
920
+ this.deletePseudoClass(this.defaultVisualState);
921
+ this.addPseudoClass(state);
922
+ };
923
+ ViewBase.prototype._removeVisualState = function (state) {
924
+ this.deletePseudoClass(state);
925
+ if (!this.cssPseudoClasses.size) {
926
+ this.addPseudoClass(this.defaultVisualState);
927
+ }
928
+ };
929
+ /**
930
+ * @deprecated Use View._addVisualState() and View._removeVisualState() instead.
931
+ */
932
+ ViewBase.prototype._goToVisualState = function (state) {
933
+ console.log('_goToVisualState() is deprecated. Use View._addVisualState() and View._removeVisualState() instead.');
858
934
  if (Trace.isEnabled()) {
859
935
  Trace.write(this + ' going to state: ' + state, Trace.categories.Style);
860
936
  }
@@ -864,30 +940,30 @@ export class ViewBase extends Observable {
864
940
  this.deletePseudoClass(this._visualState);
865
941
  this._visualState = state;
866
942
  this.addPseudoClass(state);
867
- }
943
+ };
868
944
  /**
869
945
  * @deprecated
870
946
  *
871
947
  * This used to be the way to set attribute values in early {N} versions.
872
948
  * Now attributes are expected to be set as plain properties on the view instances.
873
949
  */
874
- _applyXmlAttribute(attribute, value) {
950
+ ViewBase.prototype._applyXmlAttribute = function (attribute, value) {
875
951
  console.log('ViewBase._applyXmlAttribute(...) is deprecated; set attributes as plain properties instead');
876
952
  if (attribute === 'style' || attribute === 'rows' || attribute === 'columns' || attribute === 'fontAttributes') {
877
953
  this[attribute] = value;
878
954
  return true;
879
955
  }
880
956
  return false;
881
- }
882
- setInlineStyle(style) {
957
+ };
958
+ ViewBase.prototype.setInlineStyle = function (style) {
883
959
  if (typeof style !== 'string') {
884
960
  throw new Error('Parameter should be valid CSS string!');
885
961
  }
886
962
  ensureStyleScopeModule();
887
963
  styleScopeModule.applyInlineStyle(this, style, undefined);
888
- }
889
- _parentChanged(oldParent) {
890
- const newParent = this.parent;
964
+ };
965
+ ViewBase.prototype._parentChanged = function (oldParent) {
966
+ var newParent = this.parent;
891
967
  //Overridden
892
968
  if (oldParent) {
893
969
  clearInheritedProperties(this);
@@ -899,38 +975,38 @@ export class ViewBase extends Observable {
899
975
  newParent.on('bindingContextChange', this.bindingContextChanged, this);
900
976
  this.bindings.get('bindingContext').bind(newParent.bindingContext);
901
977
  }
902
- }
903
- onResumeNativeUpdates() {
978
+ };
979
+ ViewBase.prototype.onResumeNativeUpdates = function () {
904
980
  // Apply native setters...
905
981
  initNativeView(this, undefined, undefined);
906
- }
907
- toString() {
908
- let str = this.typeName;
982
+ };
983
+ ViewBase.prototype.toString = function () {
984
+ var str = this.typeName;
909
985
  if (this.id) {
910
- str += `<${this.id}>`;
986
+ str += "<".concat(this.id, ">");
911
987
  }
912
988
  else {
913
- str += `(${this._domId})`;
989
+ str += "(".concat(this._domId, ")");
914
990
  }
915
- const source = Source.get(this);
991
+ var source = Source.get(this);
916
992
  if (source) {
917
- str += `@${source};`;
993
+ str += "@".concat(source, ";");
918
994
  }
919
995
  return str;
920
- }
996
+ };
921
997
  /**
922
998
  * @private
923
999
  * Notifies each child's css state for change, recursively.
924
1000
  * Either the style scope, className or id properties were changed.
925
1001
  */
926
- _onCssStateChange() {
1002
+ ViewBase.prototype._onCssStateChange = function () {
927
1003
  this._cssState.onChange();
928
- eachDescendant(this, (child) => {
1004
+ eachDescendant(this, function (child) {
929
1005
  child._cssState.onChange();
930
1006
  return true;
931
1007
  });
932
- }
933
- _inheritStyleScope(styleScope) {
1008
+ };
1009
+ ViewBase.prototype._inheritStyleScope = function (styleScope) {
934
1010
  // If we are styleScope don't inherit parent stylescope.
935
1011
  // TODO: Consider adding parent scope and merge selectors.
936
1012
  if (this._isStyleScopeHost) {
@@ -939,109 +1015,123 @@ export class ViewBase extends Observable {
939
1015
  if (this._styleScope !== styleScope) {
940
1016
  this._styleScope = styleScope;
941
1017
  this._onCssStateChange();
942
- this.eachChild((child) => {
1018
+ this.eachChild(function (child) {
943
1019
  child._inheritStyleScope(styleScope);
944
1020
  return true;
945
1021
  });
946
1022
  }
947
- }
948
- showModal(moduleOrView, modalOptions) {
949
- const parent = this.parent;
1023
+ };
1024
+ ViewBase.prototype.showModal = function (moduleOrView, modalOptions) {
1025
+ var parent = this.parent;
950
1026
  return parent && parent.showModal(moduleOrView, modalOptions);
951
- }
1027
+ };
952
1028
  /**
953
1029
  * Closes the current modal view that this page is showing.
954
1030
  * @param context - Any context you want to pass back to the host when closing the modal view.
955
1031
  */
956
- closeModal(...args) {
957
- const parent = this.parent;
1032
+ ViewBase.prototype.closeModal = function () {
1033
+ var args = [];
1034
+ for (var _i = 0; _i < arguments.length; _i++) {
1035
+ args[_i] = arguments[_i];
1036
+ }
1037
+ var parent = this.parent;
958
1038
  if (parent) {
959
- parent.closeModal(...args);
1039
+ parent.closeModal.apply(parent, args);
960
1040
  }
961
- }
1041
+ };
962
1042
  /**
963
1043
  * Method is intended to be overridden by inheritors and used as "protected"
964
1044
  */
965
- _dialogClosed() {
966
- eachDescendant(this, (child) => {
1045
+ ViewBase.prototype._dialogClosed = function () {
1046
+ eachDescendant(this, function (child) {
967
1047
  child._dialogClosed();
968
1048
  return true;
969
1049
  });
970
- }
1050
+ };
971
1051
  /**
972
1052
  * Method is intended to be overridden by inheritors and used as "protected"
973
1053
  */
974
- _onRootViewReset() {
975
- eachDescendant(this, (child) => {
1054
+ ViewBase.prototype._onRootViewReset = function () {
1055
+ eachDescendant(this, function (child) {
976
1056
  child._onRootViewReset();
977
1057
  return true;
978
1058
  });
979
- }
980
- }
981
- /**
982
- * String value used when hooking to loaded event.
983
- */
984
- ViewBase.loadedEvent = 'loaded';
985
- /**
986
- * String value used when hooking to unloaded event.
987
- */
988
- ViewBase.unloadedEvent = 'unloaded';
989
- /**
990
- * String value used when hooking to creation event
991
- */
992
- ViewBase.createdEvent = 'created';
993
- /**
994
- * String value used when hooking to disposeNativeView event
995
- */
996
- ViewBase.disposeNativeViewEvent = 'disposeNativeView';
997
- __decorate([
998
- profile,
999
- __metadata("design:type", Function),
1000
- __metadata("design:paramtypes", []),
1001
- __metadata("design:returntype", void 0)
1002
- ], ViewBase.prototype, "onLoaded", null);
1003
- __decorate([
1004
- profile,
1005
- __metadata("design:type", Function),
1006
- __metadata("design:paramtypes", []),
1007
- __metadata("design:returntype", void 0)
1008
- ], ViewBase.prototype, "onUnloaded", null);
1009
- __decorate([
1010
- profile,
1011
- __metadata("design:type", Function),
1012
- __metadata("design:paramtypes", [String]),
1013
- __metadata("design:returntype", void 0)
1014
- ], ViewBase.prototype, "addPseudoClass", null);
1015
- __decorate([
1016
- profile,
1017
- __metadata("design:type", Function),
1018
- __metadata("design:paramtypes", [String]),
1019
- __metadata("design:returntype", void 0)
1020
- ], ViewBase.prototype, "deletePseudoClass", null);
1021
- __decorate([
1022
- profile,
1023
- __metadata("design:type", Function),
1024
- __metadata("design:paramtypes", []),
1025
- __metadata("design:returntype", void 0)
1026
- ], ViewBase.prototype, "requestLayout", null);
1027
- __decorate([
1028
- profile,
1029
- __metadata("design:type", Function),
1030
- __metadata("design:paramtypes", [ViewBase, Number]),
1031
- __metadata("design:returntype", void 0)
1032
- ], ViewBase.prototype, "_addView", null);
1033
- __decorate([
1034
- profile,
1035
- __metadata("design:type", Function),
1036
- __metadata("design:paramtypes", [Object, Number, Boolean]),
1037
- __metadata("design:returntype", void 0)
1038
- ], ViewBase.prototype, "_setupUI", null);
1039
- __decorate([
1040
- profile,
1041
- __metadata("design:type", Function),
1042
- __metadata("design:paramtypes", [Boolean]),
1043
- __metadata("design:returntype", void 0)
1044
- ], ViewBase.prototype, "_tearDownUI", null);
1059
+ };
1060
+ /**
1061
+ * String value used when hooking to loaded event.
1062
+ *
1063
+ * @nsEvent loaded
1064
+ */
1065
+ ViewBase.loadedEvent = 'loaded';
1066
+ /**
1067
+ * String value used when hooking to unloaded event.
1068
+ *
1069
+ * @nsEvent unloaded
1070
+ */
1071
+ ViewBase.unloadedEvent = 'unloaded';
1072
+ /**
1073
+ * String value used when hooking to creation event
1074
+ *
1075
+ * @nsEvent created
1076
+ */
1077
+ ViewBase.createdEvent = 'created';
1078
+ /**
1079
+ * String value used when hooking to disposeNativeView event
1080
+ *
1081
+ * @nsEvent disposeNativeView
1082
+ */
1083
+ ViewBase.disposeNativeViewEvent = 'disposeNativeView';
1084
+ __decorate([
1085
+ profile,
1086
+ __metadata("design:type", Function),
1087
+ __metadata("design:paramtypes", []),
1088
+ __metadata("design:returntype", void 0)
1089
+ ], ViewBase.prototype, "onLoaded", null);
1090
+ __decorate([
1091
+ profile,
1092
+ __metadata("design:type", Function),
1093
+ __metadata("design:paramtypes", []),
1094
+ __metadata("design:returntype", void 0)
1095
+ ], ViewBase.prototype, "onUnloaded", null);
1096
+ __decorate([
1097
+ profile,
1098
+ __metadata("design:type", Function),
1099
+ __metadata("design:paramtypes", [String]),
1100
+ __metadata("design:returntype", void 0)
1101
+ ], ViewBase.prototype, "addPseudoClass", null);
1102
+ __decorate([
1103
+ profile,
1104
+ __metadata("design:type", Function),
1105
+ __metadata("design:paramtypes", [String]),
1106
+ __metadata("design:returntype", void 0)
1107
+ ], ViewBase.prototype, "deletePseudoClass", null);
1108
+ __decorate([
1109
+ profile,
1110
+ __metadata("design:type", Function),
1111
+ __metadata("design:paramtypes", []),
1112
+ __metadata("design:returntype", void 0)
1113
+ ], ViewBase.prototype, "requestLayout", null);
1114
+ __decorate([
1115
+ profile,
1116
+ __metadata("design:type", Function),
1117
+ __metadata("design:paramtypes", [ViewBase, Number]),
1118
+ __metadata("design:returntype", void 0)
1119
+ ], ViewBase.prototype, "_addView", null);
1120
+ __decorate([
1121
+ profile,
1122
+ __metadata("design:type", Function),
1123
+ __metadata("design:paramtypes", [Object, Number, Boolean]),
1124
+ __metadata("design:returntype", void 0)
1125
+ ], ViewBase.prototype, "_setupUI", null);
1126
+ __decorate([
1127
+ profile,
1128
+ __metadata("design:type", Function),
1129
+ __metadata("design:paramtypes", [Boolean]),
1130
+ __metadata("design:returntype", void 0)
1131
+ ], ViewBase.prototype, "_tearDownUI", null);
1132
+ return ViewBase;
1133
+ }(Observable));
1134
+ export { ViewBase };
1045
1135
  ViewBase.prototype.isCollapsed = false;
1046
1136
  ViewBase.prototype._oldLeft = 0;
1047
1137
  ViewBase.prototype._oldTop = 0;
@@ -1071,29 +1161,29 @@ ViewBase.prototype._isViewBase = true;
1071
1161
  ViewBase.prototype.recycleNativeView = 'never';
1072
1162
  ViewBase.prototype.reusable = false;
1073
1163
  ViewBase.prototype._suspendNativeUpdatesCount = SuspendType.Loaded | SuspendType.NativeView | SuspendType.UISetup;
1074
- export const bindingContextProperty = new InheritedProperty({
1164
+ export var bindingContextProperty = new InheritedProperty({
1075
1165
  name: 'bindingContext',
1076
1166
  });
1077
1167
  bindingContextProperty.register(ViewBase);
1078
- export const hiddenProperty = new Property({
1168
+ export var hiddenProperty = new Property({
1079
1169
  name: 'hidden',
1080
1170
  defaultValue: false,
1081
1171
  affectsLayout: __APPLE__,
1082
1172
  valueConverter: booleanConverter,
1083
- valueChanged: (target, oldValue, newValue) => {
1173
+ valueChanged: function (target, oldValue, newValue) {
1084
1174
  if (target) {
1085
1175
  target.isCollapsed = !!newValue;
1086
1176
  }
1087
1177
  },
1088
1178
  });
1089
1179
  hiddenProperty.register(ViewBase);
1090
- export const classNameProperty = new Property({
1180
+ export var classNameProperty = new Property({
1091
1181
  name: 'className',
1092
- valueChanged(view, oldValue, newValue) {
1093
- const cssClasses = view.cssClasses;
1094
- const rootViewsCssClasses = CSSUtils.getSystemCssClasses();
1095
- const shouldAddModalRootViewCssClasses = cssClasses.has(CSSUtils.MODAL_ROOT_VIEW_CSS_CLASS);
1096
- const shouldAddRootViewCssClasses = cssClasses.has(CSSUtils.ROOT_VIEW_CSS_CLASS);
1182
+ valueChanged: function (view, oldValue, newValue) {
1183
+ var cssClasses = view.cssClasses;
1184
+ var rootViewsCssClasses = CSSUtils.getSystemCssClasses();
1185
+ var shouldAddModalRootViewCssClasses = cssClasses.has(CSSUtils.MODAL_ROOT_VIEW_CSS_CLASS);
1186
+ var shouldAddRootViewCssClasses = cssClasses.has(CSSUtils.ROOT_VIEW_CSS_CLASS);
1097
1187
  cssClasses.clear();
1098
1188
  if (shouldAddModalRootViewCssClasses) {
1099
1189
  cssClasses.add(CSSUtils.MODAL_ROOT_VIEW_CSS_CLASS);
@@ -1101,27 +1191,40 @@ export const classNameProperty = new Property({
1101
1191
  else if (shouldAddRootViewCssClasses) {
1102
1192
  cssClasses.add(CSSUtils.ROOT_VIEW_CSS_CLASS);
1103
1193
  }
1104
- rootViewsCssClasses.forEach((c) => cssClasses.add(c));
1194
+ rootViewsCssClasses.forEach(function (c) { return cssClasses.add(c); });
1105
1195
  if (typeof newValue === 'string' && newValue !== '') {
1106
- newValue.split(' ').forEach((c) => cssClasses.add(c));
1196
+ newValue.split(' ').forEach(function (c) { return cssClasses.add(c); });
1107
1197
  }
1108
1198
  view._onCssStateChange();
1109
1199
  },
1110
1200
  });
1111
1201
  classNameProperty.register(ViewBase);
1112
- export const idProperty = new Property({
1202
+ export var idProperty = new Property({
1113
1203
  name: 'id',
1114
- valueChanged: (view, oldValue, newValue) => view._onCssStateChange(),
1204
+ valueChanged: function (view, oldValue, newValue) { return view._onCssStateChange(); },
1115
1205
  });
1116
1206
  idProperty.register(ViewBase);
1207
+ export var defaultVisualStateProperty = new Property({
1208
+ name: 'defaultVisualState',
1209
+ defaultValue: 'normal',
1210
+ valueChanged: function (target, oldValue, newValue) {
1211
+ var value = newValue || 'normal';
1212
+ // Append new default if old one is currently applied
1213
+ if (target.cssPseudoClasses && target.cssPseudoClasses.has(oldValue)) {
1214
+ target.deletePseudoClass(oldValue);
1215
+ target.addPseudoClass(newValue);
1216
+ }
1217
+ },
1218
+ });
1219
+ defaultVisualStateProperty.register(ViewBase);
1117
1220
  export function booleanConverter(v) {
1118
- const lowercase = (v + '').toLowerCase();
1221
+ var lowercase = (v + '').toLowerCase();
1119
1222
  if (lowercase === 'true') {
1120
1223
  return true;
1121
1224
  }
1122
1225
  else if (lowercase === 'false') {
1123
1226
  return false;
1124
1227
  }
1125
- throw new Error(`Invalid boolean: ${v}`);
1228
+ throw new Error("Invalid boolean: ".concat(v));
1126
1229
  }
1127
1230
  //# sourceMappingURL=index.js.map