@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
@@ -5,18 +5,19 @@ import { profile } from '../../../profiling';
5
5
  /**
6
6
  * Value specifying that Property should be set to its initial value.
7
7
  */
8
- export const unsetValue = new Object();
9
- const cssPropertyNames = [];
10
- const symbolPropertyMap = {};
11
- const cssSymbolPropertyMap = {};
12
- const inheritableProperties = new Array();
13
- const inheritableCssProperties = new Array();
8
+ export var unsetValue = new Object();
9
+ var cssPropertyNames = [];
10
+ var symbolPropertyMap = {};
11
+ var cssSymbolPropertyMap = {};
12
+ var inheritableProperties = new Array();
13
+ var inheritableCssProperties = new Array();
14
14
  function print(map) {
15
- const symbols = Object.getOwnPropertySymbols(map);
16
- for (const symbol of symbols) {
17
- const prop = map[symbol];
15
+ var symbols = Object.getOwnPropertySymbols(map);
16
+ for (var _i = 0, symbols_1 = symbols; _i < symbols_1.length; _i++) {
17
+ var symbol = symbols_1[_i];
18
+ var prop = map[symbol];
18
19
  if (!prop.registered) {
19
- console.log(`Property ${prop.name} not Registered!!!!!`);
20
+ console.log("Property ".concat(prop.name, " not Registered!!!!!"));
20
21
  }
21
22
  }
22
23
  }
@@ -47,33 +48,33 @@ export function _evaluateCssVariableExpression(view, cssName, value) {
47
48
  // Value is not using css-variable(s)
48
49
  return value;
49
50
  }
50
- let output = value.trim();
51
+ var output = value.trim();
51
52
  // Evaluate every (and nested) css-variables in the value.
52
- let lastValue;
53
+ var lastValue;
53
54
  while (lastValue !== output) {
54
55
  lastValue = output;
55
- const idx = output.lastIndexOf('var(');
56
+ var idx = output.lastIndexOf('var(');
56
57
  if (idx === -1) {
57
58
  continue;
58
59
  }
59
- const endIdx = output.indexOf(')', idx);
60
+ var endIdx = output.indexOf(')', idx);
60
61
  if (endIdx === -1) {
61
62
  continue;
62
63
  }
63
- const matched = output
64
+ var matched = output
64
65
  .substring(idx + 4, endIdx)
65
66
  .split(',')
66
- .map((v) => v.trim())
67
- .filter((v) => !!v);
68
- const cssVariableName = matched.shift();
69
- let cssVariableValue = view.style.getCssVariable(cssVariableName);
67
+ .map(function (v) { return v.trim(); })
68
+ .filter(function (v) { return !!v; });
69
+ var cssVariableName = matched.shift();
70
+ var cssVariableValue = view.style.getCssVariable(cssVariableName);
70
71
  if (cssVariableValue === null && matched.length) {
71
72
  cssVariableValue = _evaluateCssVariableExpression(view, cssName, matched.join(', ')).split(',')[0];
72
73
  }
73
74
  if (!cssVariableValue) {
74
75
  cssVariableValue = 'unset';
75
76
  }
76
- output = `${output.substring(0, idx)}${cssVariableValue}${output.substring(endIdx + 1)}`;
77
+ output = "".concat(output.substring(0, idx)).concat(cssVariableValue).concat(output.substring(endIdx + 1));
77
78
  }
78
79
  return output;
79
80
  }
@@ -90,31 +91,31 @@ export function _evaluateCssCalcExpression(value) {
90
91
  }
91
92
  }
92
93
  function getPropertiesFromMap(map) {
93
- const props = [];
94
- Object.getOwnPropertySymbols(map).forEach((symbol) => props.push(map[symbol]));
94
+ var props = [];
95
+ Object.getOwnPropertySymbols(map).forEach(function (symbol) { return props.push(map[symbol]); });
95
96
  return props;
96
97
  }
97
- export class Property {
98
- constructor(options) {
98
+ var Property = /** @class */ (function () {
99
+ function Property(options) {
99
100
  this.enumerable = true;
100
101
  this.configurable = true;
101
- const propertyName = options.name;
102
+ var propertyName = options.name;
102
103
  this.name = propertyName;
103
- const key = Symbol(propertyName + ':propertyKey');
104
+ var key = Symbol(propertyName + ':propertyKey');
104
105
  this.key = key;
105
- const getDefault = Symbol(propertyName + ':getDefault');
106
+ var getDefault = Symbol(propertyName + ':getDefault');
106
107
  this.getDefault = getDefault;
107
- const setNative = Symbol(propertyName + ':setNative');
108
+ var setNative = Symbol(propertyName + ':setNative');
108
109
  this.setNative = setNative;
109
- const defaultValueKey = Symbol(propertyName + ':nativeDefaultValue');
110
+ var defaultValueKey = Symbol(propertyName + ':nativeDefaultValue');
110
111
  this.defaultValueKey = defaultValueKey;
111
- const defaultValue = options.defaultValue;
112
+ var defaultValue = options.defaultValue;
112
113
  this.defaultValue = defaultValue;
113
- const eventName = propertyName + 'Change';
114
- let equalityComparer = options.equalityComparer;
115
- let affectsLayout = options.affectsLayout;
116
- let valueChanged = options.valueChanged;
117
- let valueConverter = options.valueConverter;
114
+ var eventName = propertyName + 'Change';
115
+ var equalityComparer = options.equalityComparer;
116
+ var affectsLayout = options.affectsLayout;
117
+ var valueChanged = options.valueChanged;
118
+ var valueConverter = options.valueConverter;
118
119
  this.overrideHandlers = function (options) {
119
120
  if (typeof options.equalityComparer !== 'undefined') {
120
121
  equalityComparer = options.equalityComparer;
@@ -129,11 +130,11 @@ export class Property {
129
130
  valueConverter = options.valueConverter;
130
131
  }
131
132
  };
132
- const property = this;
133
+ var property = this;
133
134
  this.set = function (boxedValue) {
134
- const reset = boxedValue === unsetValue;
135
- let value;
136
- let wrapped;
135
+ var reset = boxedValue === unsetValue;
136
+ var value;
137
+ var wrapped;
137
138
  if (reset) {
138
139
  value = defaultValue;
139
140
  }
@@ -144,8 +145,8 @@ export class Property {
144
145
  value = valueConverter(value);
145
146
  }
146
147
  }
147
- const oldValue = (key in this ? this[key] : defaultValue);
148
- const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
148
+ var oldValue = (key in this ? this[key] : defaultValue);
149
+ var changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
149
150
  if (wrapped || changed) {
150
151
  if (affectsLayout) {
151
152
  this.requestLayout();
@@ -194,10 +195,10 @@ export class Property {
194
195
  if (this.hasListeners(eventName)) {
195
196
  this.notify({
196
197
  object: this,
197
- eventName,
198
- propertyName,
199
- value,
200
- oldValue,
198
+ eventName: eventName,
199
+ propertyName: propertyName,
200
+ value: value,
201
+ oldValue: oldValue,
201
202
  });
202
203
  }
203
204
  if (this.domNode) {
@@ -214,8 +215,8 @@ export class Property {
214
215
  return (key in this ? this[key] : defaultValue);
215
216
  };
216
217
  this.nativeValueChange = function (owner, value) {
217
- const oldValue = (key in owner ? owner[key] : defaultValue);
218
- const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
218
+ var oldValue = (key in owner ? owner[key] : defaultValue);
219
+ var changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
219
220
  if (changed) {
220
221
  owner[key] = value;
221
222
  if (valueChanged) {
@@ -227,10 +228,10 @@ export class Property {
227
228
  if (owner.hasListeners(eventName)) {
228
229
  owner.notify({
229
230
  object: owner,
230
- eventName,
231
- propertyName,
232
- value,
233
- oldValue,
231
+ eventName: eventName,
232
+ propertyName: propertyName,
233
+ value: value,
234
+ oldValue: oldValue,
234
235
  });
235
236
  }
236
237
  if (affectsLayout) {
@@ -243,36 +244,39 @@ export class Property {
243
244
  };
244
245
  symbolPropertyMap[key] = this;
245
246
  }
246
- register(cls) {
247
+ Property.prototype.register = function (cls) {
247
248
  if (this.registered) {
248
- throw new Error(`Property ${this.name} already registered.`);
249
+ throw new Error("Property ".concat(this.name, " already registered."));
249
250
  }
250
251
  this.registered = true;
251
252
  Object.defineProperty(cls.prototype, this.name, this);
252
- }
253
- isSet(instance) {
253
+ };
254
+ Property.prototype.isSet = function (instance) {
254
255
  return this.key in instance;
255
- }
256
- }
256
+ };
257
+ return Property;
258
+ }());
259
+ export { Property };
257
260
  Property.prototype.isStyleProperty = false;
258
- export class CoercibleProperty extends Property {
259
- constructor(options) {
260
- super(options);
261
- const propertyName = options.name;
262
- const key = this.key;
263
- const getDefault = this.getDefault;
264
- const setNative = this.setNative;
265
- const defaultValueKey = this.defaultValueKey;
266
- const defaultValue = this.defaultValue;
267
- const coerceKey = Symbol(propertyName + ':coerceKey');
268
- const eventName = propertyName + 'Change';
269
- let affectsLayout = options.affectsLayout;
270
- let equalityComparer = options.equalityComparer;
271
- let valueChanged = options.valueChanged;
272
- let valueConverter = options.valueConverter;
273
- let coerceCallback = options.coerceValue;
274
- const property = this;
275
- this.overrideHandlers = function (options) {
261
+ var CoercibleProperty = /** @class */ (function (_super) {
262
+ __extends(CoercibleProperty, _super);
263
+ function CoercibleProperty(options) {
264
+ var _this = _super.call(this, options) || this;
265
+ var propertyName = options.name;
266
+ var key = _this.key;
267
+ var getDefault = _this.getDefault;
268
+ var setNative = _this.setNative;
269
+ var defaultValueKey = _this.defaultValueKey;
270
+ var defaultValue = _this.defaultValue;
271
+ var coerceKey = Symbol(propertyName + ':coerceKey');
272
+ var eventName = propertyName + 'Change';
273
+ var affectsLayout = options.affectsLayout;
274
+ var equalityComparer = options.equalityComparer;
275
+ var valueChanged = options.valueChanged;
276
+ var valueConverter = options.valueConverter;
277
+ var coerceCallback = options.coerceValue;
278
+ var property = _this;
279
+ _this.overrideHandlers = function (options) {
276
280
  if (typeof options.equalityComparer !== 'undefined') {
277
281
  equalityComparer = options.equalityComparer;
278
282
  }
@@ -289,15 +293,15 @@ export class CoercibleProperty extends Property {
289
293
  coerceCallback = options.coerceValue;
290
294
  }
291
295
  };
292
- this.coerce = function (target) {
293
- const originalValue = (coerceKey in target ? target[coerceKey] : defaultValue);
296
+ _this.coerce = function (target) {
297
+ var originalValue = (coerceKey in target ? target[coerceKey] : defaultValue);
294
298
  // need that to make coercing but also fire change events
295
299
  target[propertyName] = originalValue;
296
300
  };
297
- this.set = function (boxedValue) {
298
- const reset = boxedValue === unsetValue;
299
- let value;
300
- let wrapped;
301
+ _this.set = function (boxedValue) {
302
+ var reset = boxedValue === unsetValue;
303
+ var value;
304
+ var wrapped;
301
305
  if (reset) {
302
306
  value = defaultValue;
303
307
  delete this[coerceKey];
@@ -311,8 +315,8 @@ export class CoercibleProperty extends Property {
311
315
  this[coerceKey] = value;
312
316
  value = coerceCallback(this, value);
313
317
  }
314
- const oldValue = key in this ? this[key] : defaultValue;
315
- const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
318
+ var oldValue = key in this ? this[key] : defaultValue;
319
+ var changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
316
320
  if (wrapped || changed) {
317
321
  if (reset) {
318
322
  delete this[key];
@@ -358,10 +362,10 @@ export class CoercibleProperty extends Property {
358
362
  if (this.hasListeners(eventName)) {
359
363
  this.notify({
360
364
  object: this,
361
- eventName,
362
- propertyName,
363
- value,
364
- oldValue,
365
+ eventName: eventName,
366
+ propertyName: propertyName,
367
+ value: value,
368
+ oldValue: oldValue,
365
369
  });
366
370
  }
367
371
  if (affectsLayout) {
@@ -377,92 +381,101 @@ export class CoercibleProperty extends Property {
377
381
  }
378
382
  }
379
383
  };
384
+ return _this;
380
385
  }
381
- }
382
- export class InheritedProperty extends Property {
383
- constructor(options) {
384
- super(options);
385
- const name = options.name;
386
- const key = this.key;
387
- const defaultValue = options.defaultValue;
388
- const sourceKey = Symbol(name + ':valueSourceKey');
389
- this.sourceKey = sourceKey;
390
- const setBase = this.set;
391
- const setFunc = (valueSource) => function (value) {
392
- const that = this;
393
- let unboxedValue;
394
- let newValueSource;
395
- if (value === unsetValue) {
396
- // If unsetValue - we want to reset the property.
397
- const parent = that.parent;
398
- // If we have parent and it has non-default value we use as our inherited value.
399
- if (parent && parent[sourceKey] !== 0 /* ValueSource.Default */) {
400
- unboxedValue = parent[name];
401
- newValueSource = 1 /* ValueSource.Inherited */;
386
+ return CoercibleProperty;
387
+ }(Property));
388
+ export { CoercibleProperty };
389
+ var InheritedProperty = /** @class */ (function (_super) {
390
+ __extends(InheritedProperty, _super);
391
+ function InheritedProperty(options) {
392
+ var _this = _super.call(this, options) || this;
393
+ var name = options.name;
394
+ var key = _this.key;
395
+ var defaultValue = options.defaultValue;
396
+ var sourceKey = Symbol(name + ':valueSourceKey');
397
+ _this.sourceKey = sourceKey;
398
+ var setBase = _this.set;
399
+ var setFunc = function (valueSource) {
400
+ return function (value) {
401
+ var that = this;
402
+ var unboxedValue;
403
+ var newValueSource;
404
+ if (value === unsetValue) {
405
+ // If unsetValue - we want to reset the property.
406
+ var parent_1 = that.parent;
407
+ // If we have parent and it has non-default value we use as our inherited value.
408
+ if (parent_1 && parent_1[sourceKey] !== 0 /* ValueSource.Default */) {
409
+ unboxedValue = parent_1[name];
410
+ newValueSource = 1 /* ValueSource.Inherited */;
411
+ }
412
+ else {
413
+ unboxedValue = defaultValue;
414
+ newValueSource = 0 /* ValueSource.Default */;
415
+ }
402
416
  }
403
417
  else {
404
- unboxedValue = defaultValue;
405
- newValueSource = 0 /* ValueSource.Default */;
418
+ // else we are set through property set.
419
+ unboxedValue = value;
420
+ newValueSource = valueSource;
406
421
  }
407
- }
408
- else {
409
- // else we are set through property set.
410
- unboxedValue = value;
411
- newValueSource = valueSource;
412
- }
413
- // take currentValue before calling base - base may change it.
414
- const currentValue = that[key];
415
- setBase.call(that, unboxedValue);
416
- const newValue = that[key];
417
- that[sourceKey] = newValueSource;
418
- if (currentValue !== newValue) {
419
- const reset = newValueSource === 0 /* ValueSource.Default */;
420
- that.eachChild((child) => {
421
- const childValueSource = child[sourceKey] || 0 /* ValueSource.Default */;
422
- if (reset) {
423
- if (childValueSource === 1 /* ValueSource.Inherited */) {
424
- setFunc.call(child, unsetValue);
422
+ // take currentValue before calling base - base may change it.
423
+ var currentValue = that[key];
424
+ setBase.call(that, unboxedValue);
425
+ var newValue = that[key];
426
+ that[sourceKey] = newValueSource;
427
+ if (currentValue !== newValue) {
428
+ var reset_1 = newValueSource === 0 /* ValueSource.Default */;
429
+ that.eachChild(function (child) {
430
+ var childValueSource = child[sourceKey] || 0 /* ValueSource.Default */;
431
+ if (reset_1) {
432
+ if (childValueSource === 1 /* ValueSource.Inherited */) {
433
+ setFunc.call(child, unsetValue);
434
+ }
425
435
  }
426
- }
427
- else {
428
- if (childValueSource <= 1 /* ValueSource.Inherited */) {
429
- setInheritedValue.call(child, newValue);
436
+ else {
437
+ if (childValueSource <= 1 /* ValueSource.Inherited */) {
438
+ setInheritedValue.call(child, newValue);
439
+ }
430
440
  }
431
- }
432
- return true;
433
- });
434
- }
441
+ return true;
442
+ });
443
+ }
444
+ };
435
445
  };
436
- const setInheritedValue = setFunc(1 /* ValueSource.Inherited */);
437
- this.setInheritedValue = setInheritedValue;
438
- this.set = setFunc(3 /* ValueSource.Local */);
439
- inheritableProperties.push(this);
446
+ var setInheritedValue = setFunc(1 /* ValueSource.Inherited */);
447
+ _this.setInheritedValue = setInheritedValue;
448
+ _this.set = setFunc(3 /* ValueSource.Local */);
449
+ inheritableProperties.push(_this);
450
+ return _this;
440
451
  }
441
- }
442
- export class CssProperty {
443
- constructor(options) {
444
- const propertyName = options.name;
452
+ return InheritedProperty;
453
+ }(Property));
454
+ export { InheritedProperty };
455
+ var CssProperty = /** @class */ (function () {
456
+ function CssProperty(options) {
457
+ var propertyName = options.name;
445
458
  this.name = propertyName;
446
459
  cssPropertyNames.push(options.cssName);
447
- this.cssName = `css:${options.cssName}`;
460
+ this.cssName = "css:".concat(options.cssName);
448
461
  this.cssLocalName = options.cssName;
449
- const key = Symbol(propertyName + ':propertyKey');
462
+ var key = Symbol(propertyName + ':propertyKey');
450
463
  this.key = key;
451
- const sourceKey = Symbol(propertyName + ':valueSourceKey');
464
+ var sourceKey = Symbol(propertyName + ':valueSourceKey');
452
465
  this.sourceKey = sourceKey;
453
- const getDefault = Symbol(propertyName + ':getDefault');
466
+ var getDefault = Symbol(propertyName + ':getDefault');
454
467
  this.getDefault = getDefault;
455
- const setNative = Symbol(propertyName + ':setNative');
468
+ var setNative = Symbol(propertyName + ':setNative');
456
469
  this.setNative = setNative;
457
- const defaultValueKey = Symbol(propertyName + ':nativeDefaultValue');
470
+ var defaultValueKey = Symbol(propertyName + ':nativeDefaultValue');
458
471
  this.defaultValueKey = defaultValueKey;
459
- const defaultValue = options.defaultValue;
472
+ var defaultValue = options.defaultValue;
460
473
  this.defaultValue = defaultValue;
461
- const eventName = propertyName + 'Change';
462
- let affectsLayout = options.affectsLayout;
463
- let equalityComparer = options.equalityComparer;
464
- let valueChanged = options.valueChanged;
465
- let valueConverter = options.valueConverter;
474
+ var eventName = propertyName + 'Change';
475
+ var affectsLayout = options.affectsLayout;
476
+ var equalityComparer = options.equalityComparer;
477
+ var valueChanged = options.valueChanged;
478
+ var valueConverter = options.valueConverter;
466
479
  this.overrideHandlers = function (options) {
467
480
  if (typeof options.equalityComparer !== 'undefined') {
468
481
  equalityComparer = options.equalityComparer;
@@ -477,15 +490,15 @@ export class CssProperty {
477
490
  valueConverter = options.valueConverter;
478
491
  }
479
492
  };
480
- const property = this;
493
+ var property = this;
481
494
  function setLocalValue(newValue) {
482
- const view = this.viewRef.get();
495
+ var view = this.viewRef.get();
483
496
  if (!view) {
484
- Trace.write(`${newValue} not set to view because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
497
+ Trace.write("".concat(newValue, " not set to view because \".viewRef\" is cleared"), Trace.categories.Style, Trace.messageType.warn);
485
498
  return;
486
499
  }
487
- const reset = newValue === unsetValue || newValue === '';
488
- let value;
500
+ var reset = newValue === unsetValue || newValue === '';
501
+ var value;
489
502
  if (reset) {
490
503
  value = defaultValue;
491
504
  delete this[sourceKey];
@@ -494,8 +507,8 @@ export class CssProperty {
494
507
  this[sourceKey] = 3 /* ValueSource.Local */;
495
508
  value = valueConverter && typeof newValue === 'string' ? valueConverter(newValue) : newValue;
496
509
  }
497
- const oldValue = (key in this ? this[key] : defaultValue);
498
- const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
510
+ var oldValue = (key in this ? this[key] : defaultValue);
511
+ var changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
499
512
  if (changed) {
500
513
  if (reset) {
501
514
  delete this[key];
@@ -541,10 +554,10 @@ export class CssProperty {
541
554
  if (this.hasListeners(eventName)) {
542
555
  this.notify({
543
556
  object: this,
544
- eventName,
545
- propertyName,
546
- value,
547
- oldValue,
557
+ eventName: eventName,
558
+ propertyName: propertyName,
559
+ value: value,
560
+ oldValue: oldValue,
548
561
  });
549
562
  }
550
563
  if (affectsLayout) {
@@ -553,18 +566,18 @@ export class CssProperty {
553
566
  }
554
567
  }
555
568
  function setCssValue(newValue) {
556
- const view = this.viewRef.get();
569
+ var view = this.viewRef.get();
557
570
  if (!view) {
558
- Trace.write(`${newValue} not set to view because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
571
+ Trace.write("".concat(newValue, " not set to view because \".viewRef\" is cleared"), Trace.categories.Style, Trace.messageType.warn);
559
572
  return;
560
573
  }
561
- const currentValueSource = this[sourceKey] || 0 /* ValueSource.Default */;
574
+ var currentValueSource = this[sourceKey] || 0 /* ValueSource.Default */;
562
575
  // We have localValueSource - NOOP.
563
576
  if (currentValueSource === 3 /* ValueSource.Local */) {
564
577
  return;
565
578
  }
566
- const reset = newValue === unsetValue || newValue === '';
567
- let value;
579
+ var reset = newValue === unsetValue || newValue === '';
580
+ var value;
568
581
  if (reset) {
569
582
  value = defaultValue;
570
583
  delete this[sourceKey];
@@ -573,8 +586,8 @@ export class CssProperty {
573
586
  value = valueConverter && typeof newValue === 'string' ? valueConverter(newValue) : newValue;
574
587
  this[sourceKey] = 2 /* ValueSource.Css */;
575
588
  }
576
- const oldValue = (key in this ? this[key] : defaultValue);
577
- const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
589
+ var oldValue = (key in this ? this[key] : defaultValue);
590
+ var changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
578
591
  if (changed) {
579
592
  if (reset) {
580
593
  delete this[key];
@@ -620,10 +633,10 @@ export class CssProperty {
620
633
  if (this.hasListeners(eventName)) {
621
634
  this.notify({
622
635
  object: this,
623
- eventName,
624
- propertyName,
625
- value,
626
- oldValue,
636
+ eventName: eventName,
637
+ propertyName: propertyName,
638
+ value: value,
639
+ oldValue: oldValue,
627
640
  });
628
641
  }
629
642
  if (affectsLayout) {
@@ -648,9 +661,9 @@ export class CssProperty {
648
661
  };
649
662
  cssSymbolPropertyMap[key] = this;
650
663
  }
651
- register(cls) {
664
+ CssProperty.prototype.register = function (cls) {
652
665
  if (this.registered) {
653
- throw new Error(`Property ${this.name} already registered.`);
666
+ throw new Error("Property ".concat(this.name, " already registered."));
654
667
  }
655
668
  this.registered = true;
656
669
  Object.defineProperty(cls.prototype, this.name, this.localValueDescriptor);
@@ -658,15 +671,17 @@ export class CssProperty {
658
671
  if (this.cssLocalName !== this.cssName) {
659
672
  Object.defineProperty(cls.prototype, this.cssLocalName, this.localValueDescriptor);
660
673
  }
661
- }
662
- isSet(instance) {
674
+ };
675
+ CssProperty.prototype.isSet = function (instance) {
663
676
  return this.key in instance;
664
- }
665
- }
677
+ };
678
+ return CssProperty;
679
+ }());
680
+ export { CssProperty };
666
681
  CssProperty.prototype.isStyleProperty = true;
667
- export class CssAnimationProperty {
668
- constructor(options) {
669
- const propertyName = options.name;
682
+ var CssAnimationProperty = /** @class */ (function () {
683
+ function CssAnimationProperty(options) {
684
+ var propertyName = options.name;
670
685
  this.name = propertyName;
671
686
  cssPropertyNames.push(options.cssName);
672
687
  CssAnimationProperty.properties[propertyName] = this;
@@ -674,32 +689,32 @@ export class CssAnimationProperty {
674
689
  CssAnimationProperty.properties[options.cssName] = this;
675
690
  }
676
691
  this._valueConverter = options.valueConverter;
677
- const cssLocalName = options.cssName || propertyName;
692
+ var cssLocalName = options.cssName || propertyName;
678
693
  this.cssLocalName = cssLocalName;
679
- const cssName = 'css:' + cssLocalName;
694
+ var cssName = 'css:' + cssLocalName;
680
695
  this.cssName = cssName;
681
- const keyframeName = 'keyframe:' + propertyName;
696
+ var keyframeName = 'keyframe:' + propertyName;
682
697
  this.keyframe = keyframeName;
683
- const defaultName = 'default:' + propertyName;
684
- const defaultValueKey = Symbol(defaultName);
698
+ var defaultName = 'default:' + propertyName;
699
+ var defaultValueKey = Symbol(defaultName);
685
700
  this.defaultValueKey = defaultValueKey;
686
701
  this.defaultValue = options.defaultValue;
687
- const cssValue = Symbol(cssName);
688
- const styleValue = Symbol(`local:${propertyName}`);
689
- const keyframeValue = Symbol(keyframeName);
690
- const computedValue = Symbol('computed-value:' + propertyName);
702
+ var cssValue = Symbol(cssName);
703
+ var styleValue = Symbol("local:".concat(propertyName));
704
+ var keyframeValue = Symbol(keyframeName);
705
+ var computedValue = Symbol('computed-value:' + propertyName);
691
706
  this.key = computedValue;
692
- const computedSource = Symbol('computed-source:' + propertyName);
707
+ var computedSource = Symbol('computed-source:' + propertyName);
693
708
  this.source = computedSource;
694
709
  this.getDefault = Symbol(propertyName + ':getDefault');
695
- const getDefault = this.getDefault;
696
- const setNative = (this.setNative = Symbol(propertyName + ':setNative'));
697
- const eventName = propertyName + 'Change';
698
- const property = this;
710
+ var getDefault = this.getDefault;
711
+ var setNative = (this.setNative = Symbol(propertyName + ':setNative'));
712
+ var eventName = propertyName + 'Change';
713
+ var property = this;
699
714
  function descriptor(symbol, propertySource, enumerable, configurable, getsComputed) {
700
715
  return {
701
- enumerable,
702
- configurable,
716
+ enumerable: enumerable,
717
+ configurable: configurable,
703
718
  get: getsComputed
704
719
  ? function () {
705
720
  return this[computedValue];
@@ -707,16 +722,16 @@ export class CssAnimationProperty {
707
722
  : function () {
708
723
  return this[symbol];
709
724
  },
710
- set(boxedValue) {
711
- const view = this.viewRef.get();
725
+ set: function (boxedValue) {
726
+ var view = this.viewRef.get();
712
727
  if (!view) {
713
- Trace.write(`${boxedValue} not set to view because ".viewRef" is cleared`, Trace.categories.Animation, Trace.messageType.warn);
728
+ Trace.write("".concat(boxedValue, " not set to view because \".viewRef\" is cleared"), Trace.categories.Animation, Trace.messageType.warn);
714
729
  return;
715
730
  }
716
- const oldValue = this[computedValue];
717
- const oldSource = this[computedSource];
718
- const wasSet = oldSource !== 0 /* ValueSource.Default */;
719
- const reset = boxedValue === unsetValue || boxedValue === '';
731
+ var oldValue = this[computedValue];
732
+ var oldSource = this[computedSource];
733
+ var wasSet = oldSource !== 0 /* ValueSource.Default */;
734
+ var reset = boxedValue === unsetValue || boxedValue === '';
720
735
  if (reset) {
721
736
  this[symbol] = unsetValue;
722
737
  if (this[computedSource] === propertySource) {
@@ -745,10 +760,10 @@ export class CssAnimationProperty {
745
760
  this[computedValue] = boxedValue;
746
761
  }
747
762
  }
748
- const value = this[computedValue];
749
- const source = this[computedSource];
750
- const isSet = source !== 0 /* ValueSource.Default */;
751
- const computedValueChanged = oldValue !== value && (!options.equalityComparer || !options.equalityComparer(oldValue, value));
763
+ var value = this[computedValue];
764
+ var source = this[computedSource];
765
+ var isSet = source !== 0 /* ValueSource.Default */;
766
+ var computedValueChanged = oldValue !== value && (!options.equalityComparer || !options.equalityComparer(oldValue, value));
752
767
  if (computedValueChanged && options.valueChanged) {
753
768
  options.valueChanged(this, oldValue, value);
754
769
  }
@@ -778,22 +793,22 @@ export class CssAnimationProperty {
778
793
  if (computedValueChanged && this.hasListeners(eventName)) {
779
794
  this.notify({
780
795
  object: this,
781
- eventName,
782
- propertyName,
783
- value,
784
- oldValue,
796
+ eventName: eventName,
797
+ propertyName: propertyName,
798
+ value: value,
799
+ oldValue: oldValue,
785
800
  });
786
801
  }
787
802
  },
788
803
  };
789
804
  }
790
- const defaultPropertyDescriptor = descriptor(defaultValueKey, 0 /* ValueSource.Default */, false, false, false);
791
- const cssPropertyDescriptor = descriptor(cssValue, 2 /* ValueSource.Css */, false, false, false);
792
- const stylePropertyDescriptor = descriptor(styleValue, 3 /* ValueSource.Local */, true, true, true);
793
- const keyframePropertyDescriptor = descriptor(keyframeValue, 4 /* ValueSource.Keyframe */, false, false, false);
805
+ var defaultPropertyDescriptor = descriptor(defaultValueKey, 0 /* ValueSource.Default */, false, false, false);
806
+ var cssPropertyDescriptor = descriptor(cssValue, 2 /* ValueSource.Css */, false, false, false);
807
+ var stylePropertyDescriptor = descriptor(styleValue, 3 /* ValueSource.Local */, true, true, true);
808
+ var keyframePropertyDescriptor = descriptor(keyframeValue, 4 /* ValueSource.Keyframe */, false, false, false);
794
809
  symbolPropertyMap[computedValue] = this;
795
810
  cssSymbolPropertyMap[computedValue] = this;
796
- this.register = (cls) => {
811
+ this.register = function (cls) {
797
812
  cls.prototype[computedValue] = options.defaultValue;
798
813
  cls.prototype[computedSource] = 0 /* ValueSource.Default */;
799
814
  cls.prototype[cssValue] = unsetValue;
@@ -808,47 +823,50 @@ export class CssAnimationProperty {
808
823
  Object.defineProperty(cls.prototype, keyframeName, keyframePropertyDescriptor);
809
824
  };
810
825
  }
811
- _initDefaultNativeValue(target) {
812
- const view = target.viewRef.get();
826
+ CssAnimationProperty.prototype._initDefaultNativeValue = function (target) {
827
+ var view = target.viewRef.get();
813
828
  if (!view) {
814
- Trace.write(`_initDefaultNativeValue not executed to view because ".viewRef" is cleared`, Trace.categories.Animation, Trace.messageType.warn);
829
+ Trace.write("_initDefaultNativeValue not executed to view because \".viewRef\" is cleared", Trace.categories.Animation, Trace.messageType.warn);
815
830
  return;
816
831
  }
817
- const defaultValueKey = this.defaultValueKey;
832
+ var defaultValueKey = this.defaultValueKey;
818
833
  if (!(defaultValueKey in target)) {
819
- const getDefault = this.getDefault;
834
+ var getDefault = this.getDefault;
820
835
  target[defaultValueKey] = view[getDefault] ? view[getDefault]() : this.defaultValue;
821
836
  }
822
- }
823
- static _getByCssName(name) {
837
+ };
838
+ CssAnimationProperty._getByCssName = function (name) {
824
839
  return this.properties[name];
825
- }
826
- static _getPropertyNames() {
840
+ };
841
+ CssAnimationProperty._getPropertyNames = function () {
827
842
  return Object.keys(CssAnimationProperty.properties);
828
- }
829
- isSet(instance) {
843
+ };
844
+ CssAnimationProperty.prototype.isSet = function (instance) {
830
845
  return instance[this.source] !== 0 /* ValueSource.Default */;
831
- }
832
- }
833
- CssAnimationProperty.properties = {};
846
+ };
847
+ CssAnimationProperty.properties = {};
848
+ return CssAnimationProperty;
849
+ }());
850
+ export { CssAnimationProperty };
834
851
  CssAnimationProperty.prototype.isStyleProperty = true;
835
- export class InheritedCssProperty extends CssProperty {
836
- constructor(options) {
837
- super(options);
838
- const propertyName = options.name;
839
- const key = this.key;
840
- const sourceKey = this.sourceKey;
841
- const getDefault = this.getDefault;
842
- const setNative = this.setNative;
843
- const defaultValueKey = this.defaultValueKey;
844
- const eventName = propertyName + 'Change';
845
- let defaultValue = options.defaultValue;
846
- let affectsLayout = options.affectsLayout;
847
- let equalityComparer = options.equalityComparer;
848
- let valueChanged = options.valueChanged;
849
- let valueConverter = options.valueConverter;
850
- const property = this;
851
- this.overrideHandlers = function (options) {
852
+ var InheritedCssProperty = /** @class */ (function (_super) {
853
+ __extends(InheritedCssProperty, _super);
854
+ function InheritedCssProperty(options) {
855
+ var _this = _super.call(this, options) || this;
856
+ var propertyName = options.name;
857
+ var key = _this.key;
858
+ var sourceKey = _this.sourceKey;
859
+ var getDefault = _this.getDefault;
860
+ var setNative = _this.setNative;
861
+ var defaultValueKey = _this.defaultValueKey;
862
+ var eventName = propertyName + 'Change';
863
+ var defaultValue = options.defaultValue;
864
+ var affectsLayout = options.affectsLayout;
865
+ var equalityComparer = options.equalityComparer;
866
+ var valueChanged = options.valueChanged;
867
+ var valueConverter = options.valueConverter;
868
+ var property = _this;
869
+ _this.overrideHandlers = function (options) {
852
870
  if (typeof options.equalityComparer !== 'undefined') {
853
871
  equalityComparer = options.equalityComparer;
854
872
  }
@@ -862,150 +880,159 @@ export class InheritedCssProperty extends CssProperty {
862
880
  valueConverter = options.valueConverter;
863
881
  }
864
882
  };
865
- const setFunc = (valueSource) => function (boxedValue) {
866
- const view = this.viewRef.get();
867
- if (!view) {
868
- Trace.write(`${boxedValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
869
- return;
870
- }
871
- const reset = boxedValue === unsetValue || boxedValue === '';
872
- const currentValueSource = this[sourceKey] || 0 /* ValueSource.Default */;
873
- if (reset) {
874
- // If we want to reset cssValue and we have localValue - return;
875
- if (valueSource === 2 /* ValueSource.Css */ && currentValueSource === 3 /* ValueSource.Local */) {
876
- return;
877
- }
878
- }
879
- else {
880
- if (currentValueSource > valueSource) {
883
+ var setFunc = function (valueSource) {
884
+ return function (boxedValue) {
885
+ var view = this.viewRef.get();
886
+ if (!view) {
887
+ Trace.write("".concat(boxedValue, " not set to view's property because \".viewRef\" is cleared"), Trace.categories.Style, Trace.messageType.warn);
881
888
  return;
882
889
  }
883
- }
884
- const oldValue = key in this ? this[key] : defaultValue;
885
- let value;
886
- let unsetNativeValue = false;
887
- if (reset) {
888
- // If unsetValue - we want to reset this property.
889
- const parent = view.parent;
890
- const style = parent ? parent.style : null;
891
- // If we have parent and it has non-default value we use as our inherited value.
892
- if (style && style[sourceKey] > 0 /* ValueSource.Default */) {
893
- value = style[propertyName];
894
- this[sourceKey] = 1 /* ValueSource.Inherited */;
895
- this[key] = value;
890
+ var reset = boxedValue === unsetValue || boxedValue === '';
891
+ var currentValueSource = this[sourceKey] || 0 /* ValueSource.Default */;
892
+ if (reset) {
893
+ // If we want to reset cssValue and we have localValue - return;
894
+ if (valueSource === 2 /* ValueSource.Css */ && currentValueSource === 3 /* ValueSource.Local */) {
895
+ return;
896
+ }
896
897
  }
897
898
  else {
898
- value = defaultValue;
899
- delete this[sourceKey];
900
- delete this[key];
901
- unsetNativeValue = true;
899
+ if (currentValueSource > valueSource) {
900
+ return;
901
+ }
902
902
  }
903
- }
904
- else {
905
- this[sourceKey] = valueSource;
906
- if (valueConverter && typeof boxedValue === 'string') {
907
- value = valueConverter(boxedValue);
903
+ var oldValue = key in this ? this[key] : defaultValue;
904
+ var value;
905
+ var unsetNativeValue = false;
906
+ if (reset) {
907
+ // If unsetValue - we want to reset this property.
908
+ var parent_2 = view.parent;
909
+ var style = parent_2 ? parent_2.style : null;
910
+ // If we have parent and it has non-default value we use as our inherited value.
911
+ if (style && style[sourceKey] > 0 /* ValueSource.Default */) {
912
+ value = style[propertyName];
913
+ this[sourceKey] = 1 /* ValueSource.Inherited */;
914
+ this[key] = value;
915
+ }
916
+ else {
917
+ value = defaultValue;
918
+ delete this[sourceKey];
919
+ delete this[key];
920
+ unsetNativeValue = true;
921
+ }
908
922
  }
909
923
  else {
910
- value = boxedValue;
911
- }
912
- this[key] = value;
913
- }
914
- const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
915
- if (changed) {
916
- if (valueChanged) {
917
- valueChanged(this, oldValue, value);
918
- }
919
- if (view[setNative]) {
920
- if (view._suspendNativeUpdatesCount) {
921
- if (view._suspendedUpdates) {
922
- view._suspendedUpdates[propertyName] = property;
923
- }
924
+ this[sourceKey] = valueSource;
925
+ if (valueConverter && typeof boxedValue === 'string') {
926
+ value = valueConverter(boxedValue);
924
927
  }
925
928
  else {
926
- if (unsetNativeValue) {
927
- if (defaultValueKey in this) {
928
- view[setNative](this[defaultValueKey]);
929
- delete this[defaultValueKey];
929
+ value = boxedValue;
930
+ }
931
+ this[key] = value;
932
+ }
933
+ var changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
934
+ if (changed) {
935
+ if (valueChanged) {
936
+ valueChanged(this, oldValue, value);
937
+ }
938
+ if (view[setNative]) {
939
+ if (view._suspendNativeUpdatesCount) {
940
+ if (view._suspendedUpdates) {
941
+ view._suspendedUpdates[propertyName] = property;
942
+ }
943
+ }
944
+ else {
945
+ if (unsetNativeValue) {
946
+ if (defaultValueKey in this) {
947
+ view[setNative](this[defaultValueKey]);
948
+ delete this[defaultValueKey];
949
+ }
950
+ else {
951
+ view[setNative](defaultValue);
952
+ }
930
953
  }
931
954
  else {
932
- view[setNative](defaultValue);
955
+ if (!(defaultValueKey in this)) {
956
+ this[defaultValueKey] = view[getDefault] ? view[getDefault]() : defaultValue;
957
+ }
958
+ view[setNative](value);
959
+ }
960
+ }
961
+ }
962
+ if (this.hasListeners(eventName)) {
963
+ this.notify({
964
+ object: this,
965
+ eventName: eventName,
966
+ propertyName: propertyName,
967
+ value: value,
968
+ oldValue: oldValue,
969
+ });
970
+ }
971
+ if (affectsLayout) {
972
+ view.requestLayout();
973
+ }
974
+ view.eachChild(function (child) {
975
+ var childStyle = child.style;
976
+ var childValueSource = childStyle[sourceKey] || 0 /* ValueSource.Default */;
977
+ if (reset) {
978
+ if (childValueSource === 1 /* ValueSource.Inherited */) {
979
+ setDefaultFunc.call(childStyle, unsetValue);
933
980
  }
934
981
  }
935
982
  else {
936
- if (!(defaultValueKey in this)) {
937
- this[defaultValueKey] = view[getDefault] ? view[getDefault]() : defaultValue;
983
+ if (childValueSource <= 1 /* ValueSource.Inherited */) {
984
+ setInheritedFunc.call(childStyle, value);
938
985
  }
939
- view[setNative](value);
940
986
  }
941
- }
942
- }
943
- if (this.hasListeners(eventName)) {
944
- this.notify({
945
- object: this,
946
- eventName,
947
- propertyName,
948
- value,
949
- oldValue,
987
+ return true;
950
988
  });
951
989
  }
952
- if (affectsLayout) {
953
- view.requestLayout();
954
- }
955
- view.eachChild((child) => {
956
- const childStyle = child.style;
957
- const childValueSource = childStyle[sourceKey] || 0 /* ValueSource.Default */;
958
- if (reset) {
959
- if (childValueSource === 1 /* ValueSource.Inherited */) {
960
- setDefaultFunc.call(childStyle, unsetValue);
961
- }
962
- }
963
- else {
964
- if (childValueSource <= 1 /* ValueSource.Inherited */) {
965
- setInheritedFunc.call(childStyle, value);
966
- }
967
- }
968
- return true;
969
- });
970
- }
990
+ };
971
991
  };
972
- const setDefaultFunc = setFunc(0 /* ValueSource.Default */);
973
- const setInheritedFunc = setFunc(1 /* ValueSource.Inherited */);
974
- this.setInheritedValue = setInheritedFunc;
975
- this.cssValueDescriptor.set = setFunc(2 /* ValueSource.Css */);
976
- this.localValueDescriptor.set = setFunc(3 /* ValueSource.Local */);
977
- inheritableCssProperties.push(this);
992
+ var setDefaultFunc = setFunc(0 /* ValueSource.Default */);
993
+ var setInheritedFunc = setFunc(1 /* ValueSource.Inherited */);
994
+ _this.setInheritedValue = setInheritedFunc;
995
+ _this.cssValueDescriptor.set = setFunc(2 /* ValueSource.Css */);
996
+ _this.localValueDescriptor.set = setFunc(3 /* ValueSource.Local */);
997
+ inheritableCssProperties.push(_this);
998
+ return _this;
978
999
  }
979
- }
980
- export class ShorthandProperty {
981
- constructor(options) {
1000
+ return InheritedCssProperty;
1001
+ }(CssProperty));
1002
+ export { InheritedCssProperty };
1003
+ var ShorthandProperty = /** @class */ (function () {
1004
+ function ShorthandProperty(options) {
982
1005
  this.name = options.name;
983
- const key = Symbol(this.name + ':propertyKey');
1006
+ var key = Symbol(this.name + ':propertyKey');
984
1007
  this.key = key;
985
- this.cssName = `css:${options.cssName}`;
986
- this.cssLocalName = `${options.cssName}`;
987
- const converter = options.converter;
1008
+ this.cssName = "css:".concat(options.cssName);
1009
+ this.cssLocalName = "".concat(options.cssName);
1010
+ var converter = options.converter;
988
1011
  function setLocalValue(value) {
989
- const view = this.viewRef.get();
1012
+ var _this = this;
1013
+ var view = this.viewRef.get();
990
1014
  if (!view) {
991
- Trace.write(`setLocalValue not executed to view because ".viewRef" is cleared`, Trace.categories.Animation, Trace.messageType.warn);
1015
+ Trace.write("setLocalValue not executed to view because \".viewRef\" is cleared", Trace.categories.Animation, Trace.messageType.warn);
992
1016
  return;
993
1017
  }
994
- view._batchUpdate(() => {
995
- for (const [p, v] of converter(value)) {
996
- this[p.name] = v;
1018
+ view._batchUpdate(function () {
1019
+ for (var _i = 0, _a = converter(value); _i < _a.length; _i++) {
1020
+ var _b = _a[_i], p = _b[0], v = _b[1];
1021
+ _this[p.name] = v;
997
1022
  }
998
1023
  });
999
1024
  }
1000
1025
  function setCssValue(value) {
1001
- const view = this.viewRef.get();
1026
+ var _this = this;
1027
+ var view = this.viewRef.get();
1002
1028
  if (!view) {
1003
- Trace.write(`setCssValue not executed to view because ".viewRef" is cleared`, Trace.categories.Animation, Trace.messageType.warn);
1029
+ Trace.write("setCssValue not executed to view because \".viewRef\" is cleared", Trace.categories.Animation, Trace.messageType.warn);
1004
1030
  return;
1005
1031
  }
1006
- view._batchUpdate(() => {
1007
- for (const [p, v] of converter(value)) {
1008
- this[p.cssName] = v;
1032
+ view._batchUpdate(function () {
1033
+ for (var _i = 0, _a = converter(value); _i < _a.length; _i++) {
1034
+ var _b = _a[_i], p = _b[0], v = _b[1];
1035
+ _this[p.cssName] = v;
1009
1036
  }
1010
1037
  });
1011
1038
  }
@@ -1024,17 +1051,19 @@ export class ShorthandProperty {
1024
1051
  this.propertyBagDescriptor = {
1025
1052
  enumerable: false,
1026
1053
  configurable: true,
1027
- set(value) {
1028
- converter(value).forEach(([property, value]) => {
1029
- this[property.cssLocalName] = value;
1054
+ set: function (value) {
1055
+ var _this = this;
1056
+ converter(value).forEach(function (_a) {
1057
+ var property = _a[0], value = _a[1];
1058
+ _this[property.cssLocalName] = value;
1030
1059
  });
1031
1060
  },
1032
1061
  };
1033
1062
  cssSymbolPropertyMap[key] = this;
1034
1063
  }
1035
- register(cls) {
1064
+ ShorthandProperty.prototype.register = function (cls) {
1036
1065
  if (this.registered) {
1037
- throw new Error(`Property ${this.name} already registered.`);
1066
+ throw new Error("Property ".concat(this.name, " already registered."));
1038
1067
  }
1039
1068
  this.registered = true;
1040
1069
  Object.defineProperty(cls.prototype, this.name, this.localValueDescriptor);
@@ -1043,13 +1072,16 @@ export class ShorthandProperty {
1043
1072
  Object.defineProperty(cls.prototype, this.cssLocalName, this.localValueDescriptor);
1044
1073
  }
1045
1074
  Object.defineProperty(cls.prototype.PropertyBag, this.cssLocalName, this.propertyBagDescriptor);
1046
- }
1047
- }
1075
+ };
1076
+ return ShorthandProperty;
1077
+ }());
1078
+ export { ShorthandProperty };
1048
1079
  function inheritablePropertyValuesOn(view) {
1049
- const array = new Array();
1050
- for (const prop of inheritableProperties) {
1051
- const sourceKey = prop.sourceKey;
1052
- const valueSource = view[sourceKey] || 0 /* ValueSource.Default */;
1080
+ var array = new Array();
1081
+ for (var _i = 0, inheritableProperties_1 = inheritableProperties; _i < inheritableProperties_1.length; _i++) {
1082
+ var prop = inheritableProperties_1[_i];
1083
+ var sourceKey = prop.sourceKey;
1084
+ var valueSource = view[sourceKey] || 0 /* ValueSource.Default */;
1053
1085
  if (valueSource !== 0 /* ValueSource.Default */) {
1054
1086
  // use prop.name as it will return value or default value.
1055
1087
  // prop.key will return undefined if property is set the same value as default one.
@@ -1059,10 +1091,11 @@ function inheritablePropertyValuesOn(view) {
1059
1091
  return array;
1060
1092
  }
1061
1093
  function inheritableCssPropertyValuesOn(style) {
1062
- const array = new Array();
1063
- for (const prop of inheritableCssProperties) {
1064
- const sourceKey = prop.sourceKey;
1065
- const valueSource = style[sourceKey] || 0 /* ValueSource.Default */;
1094
+ var array = new Array();
1095
+ for (var _i = 0, inheritableCssProperties_1 = inheritableCssProperties; _i < inheritableCssProperties_1.length; _i++) {
1096
+ var prop = inheritableCssProperties_1[_i];
1097
+ var sourceKey = prop.sourceKey;
1098
+ var valueSource = style[sourceKey] || 0 /* ValueSource.Default */;
1066
1099
  if (valueSource !== 0 /* ValueSource.Default */) {
1067
1100
  // use prop.name as it will return value or default value.
1068
1101
  // prop.key will return undefined if property is set the same value as default one.
@@ -1071,7 +1104,7 @@ function inheritableCssPropertyValuesOn(style) {
1071
1104
  }
1072
1105
  return array;
1073
1106
  }
1074
- export const initNativeView = profile('"properties".initNativeView', function initNativeView(view) {
1107
+ export var initNativeView = profile('"properties".initNativeView', function initNativeView(view) {
1075
1108
  if (view._suspendedUpdates) {
1076
1109
  applyPendingNativeSetters(view);
1077
1110
  }
@@ -1083,15 +1116,15 @@ export const initNativeView = profile('"properties".initNativeView', function in
1083
1116
  });
1084
1117
  export function applyPendingNativeSetters(view) {
1085
1118
  // TODO: Check what happens if a view was suspended and its value was reset, or set back to default!
1086
- const suspendedUpdates = view._suspendedUpdates;
1087
- for (const propertyName in suspendedUpdates) {
1088
- const property = suspendedUpdates[propertyName];
1089
- const setNative = property.setNative;
1119
+ var suspendedUpdates = view._suspendedUpdates;
1120
+ for (var propertyName in suspendedUpdates) {
1121
+ var property = suspendedUpdates[propertyName];
1122
+ var setNative = property.setNative;
1090
1123
  if (view[setNative]) {
1091
- const { getDefault, isStyleProperty, defaultValueKey, defaultValue } = property;
1092
- let value;
1124
+ var getDefault = property.getDefault, isStyleProperty = property.isStyleProperty, defaultValueKey = property.defaultValueKey, defaultValue = property.defaultValue;
1125
+ var value = void 0;
1093
1126
  if (isStyleProperty) {
1094
- const style = view.style;
1127
+ var style = view.style;
1095
1128
  if (property.isSet(view.style)) {
1096
1129
  if (!(defaultValueKey in style)) {
1097
1130
  style[defaultValueKey] = view[getDefault] ? view[getDefault]() : defaultValue;
@@ -1119,44 +1152,47 @@ export function applyPendingNativeSetters(view) {
1119
1152
  }
1120
1153
  }
1121
1154
  export function applyAllNativeSetters(view) {
1122
- let symbols = Object.getOwnPropertySymbols(view);
1123
- for (const symbol of symbols) {
1124
- const property = symbolPropertyMap[symbol];
1155
+ var symbols = Object.getOwnPropertySymbols(view);
1156
+ for (var _i = 0, symbols_2 = symbols; _i < symbols_2.length; _i++) {
1157
+ var symbol = symbols_2[_i];
1158
+ var property = symbolPropertyMap[symbol];
1125
1159
  if (!property) {
1126
1160
  continue;
1127
1161
  }
1128
- const setNative = property.setNative;
1129
- const getDefault = property.getDefault;
1162
+ var setNative = property.setNative;
1163
+ var getDefault = property.getDefault;
1130
1164
  if (setNative in view) {
1131
- const defaultValueKey = property.defaultValueKey;
1165
+ var defaultValueKey = property.defaultValueKey;
1132
1166
  if (!(defaultValueKey in view)) {
1133
1167
  view[defaultValueKey] = view[getDefault] ? view[getDefault]() : property.defaultValue;
1134
1168
  }
1135
- const value = view[symbol];
1169
+ var value = view[symbol];
1136
1170
  view[setNative](value);
1137
1171
  }
1138
1172
  }
1139
- const style = view.style;
1173
+ var style = view.style;
1140
1174
  symbols = Object.getOwnPropertySymbols(style);
1141
- for (const symbol of symbols) {
1142
- const property = cssSymbolPropertyMap[symbol];
1175
+ for (var _a = 0, symbols_3 = symbols; _a < symbols_3.length; _a++) {
1176
+ var symbol = symbols_3[_a];
1177
+ var property = cssSymbolPropertyMap[symbol];
1143
1178
  if (!property) {
1144
1179
  continue;
1145
1180
  }
1146
1181
  if (view[property.setNative]) {
1147
- const defaultValueKey = property.defaultValueKey;
1182
+ var defaultValueKey = property.defaultValueKey;
1148
1183
  if (!(defaultValueKey in style)) {
1149
1184
  style[defaultValueKey] = view[property.getDefault] ? view[property.getDefault]() : property.defaultValue;
1150
1185
  }
1151
- const value = style[symbol];
1186
+ var value = style[symbol];
1152
1187
  view[property.setNative](value);
1153
1188
  }
1154
1189
  }
1155
1190
  }
1156
1191
  export function resetNativeView(view) {
1157
- let symbols = Object.getOwnPropertySymbols(view);
1158
- for (const symbol of symbols) {
1159
- const property = symbolPropertyMap[symbol];
1192
+ var symbols = Object.getOwnPropertySymbols(view);
1193
+ for (var _i = 0, symbols_4 = symbols; _i < symbols_4.length; _i++) {
1194
+ var symbol = symbols_4[_i];
1195
+ var property = symbolPropertyMap[symbol];
1160
1196
  if (!property) {
1161
1197
  continue;
1162
1198
  }
@@ -1170,10 +1206,11 @@ export function resetNativeView(view) {
1170
1206
  }
1171
1207
  }
1172
1208
  }
1173
- const style = view.style;
1209
+ var style = view.style;
1174
1210
  symbols = Object.getOwnPropertySymbols(style);
1175
- for (const symbol of symbols) {
1176
- const property = cssSymbolPropertyMap[symbol];
1211
+ for (var _a = 0, symbols_5 = symbols; _a < symbols_5.length; _a++) {
1212
+ var symbol = symbols_5[_a];
1213
+ var property = cssSymbolPropertyMap[symbol];
1177
1214
  if (!property) {
1178
1215
  continue;
1179
1216
  }
@@ -1189,24 +1226,27 @@ export function resetNativeView(view) {
1189
1226
  }
1190
1227
  }
1191
1228
  export function clearInheritedProperties(view) {
1192
- for (const prop of inheritableProperties) {
1193
- const sourceKey = prop.sourceKey;
1229
+ for (var _i = 0, inheritableProperties_2 = inheritableProperties; _i < inheritableProperties_2.length; _i++) {
1230
+ var prop = inheritableProperties_2[_i];
1231
+ var sourceKey = prop.sourceKey;
1194
1232
  if (view[sourceKey] === 1 /* ValueSource.Inherited */) {
1195
1233
  prop.set.call(view, unsetValue);
1196
1234
  }
1197
1235
  }
1198
- const style = view.style;
1199
- for (const prop of inheritableCssProperties) {
1200
- const sourceKey = prop.sourceKey;
1236
+ var style = view.style;
1237
+ for (var _a = 0, inheritableCssProperties_2 = inheritableCssProperties; _a < inheritableCssProperties_2.length; _a++) {
1238
+ var prop = inheritableCssProperties_2[_a];
1239
+ var sourceKey = prop.sourceKey;
1201
1240
  if (style[sourceKey] === 1 /* ValueSource.Inherited */) {
1202
1241
  prop.setInheritedValue.call(style, unsetValue);
1203
1242
  }
1204
1243
  }
1205
1244
  }
1206
1245
  export function resetCSSProperties(style) {
1207
- const symbols = Object.getOwnPropertySymbols(style);
1208
- for (const symbol of symbols) {
1209
- let cssProperty;
1246
+ var symbols = Object.getOwnPropertySymbols(style);
1247
+ for (var _i = 0, symbols_6 = symbols; _i < symbols_6.length; _i++) {
1248
+ var symbol = symbols_6[_i];
1249
+ var cssProperty = void 0;
1210
1250
  if ((cssProperty = cssSymbolPropertyMap[symbol])) {
1211
1251
  style[cssProperty.cssName] = unsetValue;
1212
1252
  if (cssProperty instanceof CssAnimationProperty) {
@@ -1216,40 +1256,47 @@ export function resetCSSProperties(style) {
1216
1256
  }
1217
1257
  }
1218
1258
  export function propagateInheritableProperties(view, child) {
1219
- const inheritablePropertyValues = inheritablePropertyValuesOn(view);
1220
- for (const pair of inheritablePropertyValues) {
1221
- const prop = pair.property;
1222
- const sourceKey = prop.sourceKey;
1223
- const currentValueSource = child[sourceKey] || 0 /* ValueSource.Default */;
1259
+ var inheritablePropertyValues = inheritablePropertyValuesOn(view);
1260
+ for (var _i = 0, inheritablePropertyValues_1 = inheritablePropertyValues; _i < inheritablePropertyValues_1.length; _i++) {
1261
+ var pair = inheritablePropertyValues_1[_i];
1262
+ var prop = pair.property;
1263
+ var sourceKey = prop.sourceKey;
1264
+ var currentValueSource = child[sourceKey] || 0 /* ValueSource.Default */;
1224
1265
  if (currentValueSource <= 1 /* ValueSource.Inherited */) {
1225
1266
  prop.setInheritedValue.call(child, pair.value);
1226
1267
  }
1227
1268
  }
1228
1269
  }
1229
1270
  export function propagateInheritableCssProperties(parentStyle, childStyle) {
1230
- const inheritableCssPropertyValues = inheritableCssPropertyValuesOn(parentStyle);
1231
- for (const pair of inheritableCssPropertyValues) {
1232
- const prop = pair.property;
1233
- const sourceKey = prop.sourceKey;
1234
- const currentValueSource = childStyle[sourceKey] || 0 /* ValueSource.Default */;
1271
+ var inheritableCssPropertyValues = inheritableCssPropertyValuesOn(parentStyle);
1272
+ for (var _i = 0, inheritableCssPropertyValues_1 = inheritableCssPropertyValues; _i < inheritableCssPropertyValues_1.length; _i++) {
1273
+ var pair = inheritableCssPropertyValues_1[_i];
1274
+ var prop = pair.property;
1275
+ var sourceKey = prop.sourceKey;
1276
+ var currentValueSource = childStyle[sourceKey] || 0 /* ValueSource.Default */;
1235
1277
  if (currentValueSource <= 1 /* ValueSource.Inherited */) {
1236
1278
  prop.setInheritedValue.call(childStyle, pair.value, 1 /* ValueSource.Inherited */);
1237
1279
  }
1238
1280
  }
1239
1281
  }
1240
- export function makeValidator(...values) {
1241
- const set = new Set(values);
1242
- return (value) => set.has(value);
1282
+ export function makeValidator() {
1283
+ var values = [];
1284
+ for (var _i = 0; _i < arguments.length; _i++) {
1285
+ values[_i] = arguments[_i];
1286
+ }
1287
+ var set = new Set(values);
1288
+ return function (value) { return set.has(value); };
1243
1289
  }
1244
- export function makeParser(isValid, allowNumbers = false) {
1245
- return (value) => {
1246
- const lower = value && value.toLowerCase();
1290
+ export function makeParser(isValid, allowNumbers) {
1291
+ if (allowNumbers === void 0) { allowNumbers = false; }
1292
+ return function (value) {
1293
+ var lower = value && value.toLowerCase();
1247
1294
  if (isValid(lower)) {
1248
1295
  return lower;
1249
1296
  }
1250
1297
  else {
1251
1298
  if (allowNumbers) {
1252
- const convNumber = +value;
1299
+ var convNumber = +value;
1253
1300
  if (!isNaN(convNumber)) {
1254
1301
  return value;
1255
1302
  }
@@ -1259,25 +1306,27 @@ export function makeParser(isValid, allowNumbers = false) {
1259
1306
  };
1260
1307
  }
1261
1308
  export function getSetProperties(view) {
1262
- const result = [];
1263
- Object.getOwnPropertyNames(view).forEach((prop) => {
1309
+ var result = [];
1310
+ Object.getOwnPropertyNames(view).forEach(function (prop) {
1264
1311
  result.push([prop, view[prop]]);
1265
1312
  });
1266
- const symbols = Object.getOwnPropertySymbols(view);
1267
- for (const symbol of symbols) {
1268
- const property = symbolPropertyMap[symbol];
1313
+ var symbols = Object.getOwnPropertySymbols(view);
1314
+ for (var _i = 0, symbols_7 = symbols; _i < symbols_7.length; _i++) {
1315
+ var symbol = symbols_7[_i];
1316
+ var property = symbolPropertyMap[symbol];
1269
1317
  if (!property) {
1270
1318
  continue;
1271
1319
  }
1272
- const value = view[property.key];
1320
+ var value = view[property.key];
1273
1321
  result.push([property.name, value]);
1274
1322
  }
1275
1323
  return result;
1276
1324
  }
1277
1325
  export function getComputedCssValues(view) {
1278
- const result = [];
1279
- const style = view.style;
1280
- for (const prop of cssPropertyNames) {
1326
+ var result = [];
1327
+ var style = view.style;
1328
+ for (var _i = 0, cssPropertyNames_1 = cssPropertyNames; _i < cssPropertyNames_1.length; _i++) {
1329
+ var prop = cssPropertyNames_1[_i];
1281
1330
  result.push([prop, style[prop]]);
1282
1331
  }
1283
1332
  // Add these to enable box model in chrome-devtools styles tab