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