@nativescript/core 8.9.0-napi-es5.0 → 8.9.0-napi.1

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