@akylas/nativescript 8.8.6 → 8.8.8

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 (968) hide show
  1. package/abortcontroller/abortsignal.d.ts +23 -0
  2. package/abortcontroller/abortsignal.js +57 -0
  3. package/abortcontroller/abortsignal.js.map +1 -0
  4. package/abortcontroller/index.d.ts +20 -0
  5. package/abortcontroller/index.js +52 -0
  6. package/abortcontroller/index.js.map +1 -0
  7. package/accessibility/accessibility-common.d.ts +18 -0
  8. package/accessibility/accessibility-common.js +64 -0
  9. package/accessibility/accessibility-common.js.map +1 -0
  10. package/accessibility/accessibility-css-helper.d.ts +1 -0
  11. package/accessibility/accessibility-css-helper.js +101 -0
  12. package/accessibility/accessibility-css-helper.js.map +1 -0
  13. package/accessibility/accessibility-properties.d.ts +24 -0
  14. package/accessibility/accessibility-properties.js +122 -0
  15. package/accessibility/accessibility-properties.js.map +1 -0
  16. package/accessibility/accessibility-service-common.d.ts +8 -0
  17. package/accessibility/accessibility-service-common.js +26 -0
  18. package/accessibility/accessibility-service-common.js.map +1 -0
  19. package/accessibility/accessibility-service.android.d.ts +6 -0
  20. package/accessibility/accessibility-service.android.js +107 -0
  21. package/accessibility/accessibility-service.android.js.map +1 -0
  22. package/accessibility/accessibility-service.ios.d.ts +6 -0
  23. package/accessibility/accessibility-service.ios.js +61 -0
  24. package/accessibility/accessibility-service.ios.js.map +1 -0
  25. package/accessibility/accessibility-types.d.ts +224 -0
  26. package/accessibility/accessibility-types.js +222 -0
  27. package/accessibility/accessibility-types.js.map +1 -0
  28. package/accessibility/font-scale-common.d.ts +7 -0
  29. package/accessibility/font-scale-common.js +14 -0
  30. package/accessibility/font-scale-common.js.map +1 -0
  31. package/accessibility/font-scale.android.d.ts +5 -0
  32. package/accessibility/font-scale.android.js +56 -0
  33. package/accessibility/font-scale.android.js.map +1 -0
  34. package/accessibility/font-scale.ios.d.ts +5 -0
  35. package/accessibility/font-scale.ios.js +89 -0
  36. package/accessibility/font-scale.ios.js.map +1 -0
  37. package/accessibility/index.android.d.ts +10 -0
  38. package/accessibility/index.android.js +418 -0
  39. package/accessibility/index.android.js.map +1 -0
  40. package/accessibility/index.ios.d.ts +9 -0
  41. package/accessibility/index.ios.js +234 -0
  42. package/accessibility/index.ios.js.map +1 -0
  43. package/animation-frame/animation-native.android.d.ts +1 -0
  44. package/animation-frame/animation-native.android.js +4 -0
  45. package/animation-frame/animation-native.android.js.map +1 -0
  46. package/animation-frame/animation-native.ios.d.ts +1 -0
  47. package/animation-frame/animation-native.ios.js +3 -0
  48. package/animation-frame/animation-native.ios.js.map +1 -0
  49. package/animation-frame/index.d.ts +3 -17
  50. package/animation-frame/index.js +92 -0
  51. package/animation-frame/index.js.map +1 -0
  52. package/application/application-common.d.ts +224 -0
  53. package/application/application-common.js +467 -0
  54. package/application/application-common.js.map +1 -0
  55. package/application/application-interfaces.d.ts +217 -0
  56. package/application/application-interfaces.js +2 -0
  57. package/application/application-interfaces.js.map +1 -0
  58. package/application/application-shims.d.ts +351 -0
  59. package/application/application-shims.js +353 -0
  60. package/application/application-shims.js.map +1 -0
  61. package/application/application.android.d.ts +73 -0
  62. package/application/application.android.js +500 -0
  63. package/application/application.android.js.map +1 -0
  64. package/application/application.ios.d.ts +81 -0
  65. package/application/application.ios.js +455 -0
  66. package/application/application.ios.js.map +1 -0
  67. package/application/index.android.d.ts +2 -0
  68. package/application/index.android.js +3 -0
  69. package/application/index.android.js.map +1 -0
  70. package/application/index.ios.d.ts +2 -0
  71. package/application/index.ios.js +3 -0
  72. package/application/index.ios.js.map +1 -0
  73. package/application-settings/application-settings-common.d.ts +2 -0
  74. package/application-settings/application-settings-common.js +15 -0
  75. package/application-settings/application-settings-common.js.map +1 -0
  76. package/application-settings/index.android.d.ts +13 -0
  77. package/application-settings/index.android.js +175 -0
  78. package/application-settings/index.android.js.map +1 -0
  79. package/application-settings/index.ios.d.ts +13 -0
  80. package/application-settings/index.ios.js +88 -0
  81. package/application-settings/index.ios.js.map +1 -0
  82. package/bundle-entry-points.d.ts +1 -0
  83. package/bundle-entry-points.js +47 -0
  84. package/bundle-entry-points.js.map +1 -0
  85. package/color/color-common.d.ts +137 -0
  86. package/color/color-common.js +520 -0
  87. package/color/color-common.js.map +1 -0
  88. package/color/index.android.d.ts +4 -0
  89. package/color/index.android.js +7 -0
  90. package/color/index.android.js.map +1 -0
  91. package/color/index.ios.d.ts +6 -0
  92. package/color/index.ios.js +19 -0
  93. package/color/index.ios.js.map +1 -0
  94. package/color/known-colors.d.ts +144 -0
  95. package/color/known-colors.js +165 -0
  96. package/color/known-colors.js.map +1 -0
  97. package/config/config.interface.d.ts +235 -0
  98. package/config/config.interface.js +2 -0
  99. package/config/config.interface.js.map +1 -0
  100. package/config/index.d.ts +1 -0
  101. package/config/index.js +2 -0
  102. package/config/index.js.map +1 -0
  103. package/connectivity/index.android.d.ts +11 -0
  104. package/connectivity/index.android.js +156 -0
  105. package/connectivity/index.android.js.map +1 -0
  106. package/connectivity/index.ios.d.ts +11 -0
  107. package/connectivity/index.ios.js +132 -0
  108. package/connectivity/index.ios.js.map +1 -0
  109. package/console/index.d.ts +14 -0
  110. package/console/index.js +33 -0
  111. package/console/index.js.map +1 -0
  112. package/core-types/index.d.ts +335 -0
  113. package/core-types/index.js +287 -0
  114. package/core-types/index.js.map +1 -0
  115. package/css/CSS3Parser.d.ts +184 -0
  116. package/css/CSS3Parser.js +534 -0
  117. package/css/CSS3Parser.js.map +1 -0
  118. package/css/CSSNativeScript.d.ts +14 -0
  119. package/css/CSSNativeScript.js +113 -0
  120. package/css/CSSNativeScript.js.map +1 -0
  121. package/css/css-tree-parser.d.ts +1 -0
  122. package/css/css-tree-parser.js +17 -21
  123. package/css/css-tree-parser.js.map +1 -0
  124. package/css/parser.d.ts +70 -0
  125. package/css/parser.js +516 -0
  126. package/css/parser.js.map +1 -0
  127. package/css/system-classes.d.ts +12 -0
  128. package/css/system-classes.js +47 -0
  129. package/css/system-classes.js.map +1 -0
  130. package/css-mediaquery/index.d.ts +27 -0
  131. package/css-mediaquery/index.js +118 -0
  132. package/css-mediaquery/index.js.map +1 -0
  133. package/data/observable/index.d.ts +185 -0
  134. package/data/observable/index.js +411 -0
  135. package/data/observable/index.js.map +1 -0
  136. package/data/observable-array/index.d.ts +215 -0
  137. package/data/observable-array/index.js +325 -0
  138. package/data/observable-array/index.js.map +1 -0
  139. package/data/virtual-array/index.d.ts +72 -0
  140. package/data/virtual-array/index.js +133 -0
  141. package/data/virtual-array/index.js.map +1 -0
  142. package/debugger/InspectorBackendCommands.d.ts +1056 -0
  143. package/debugger/InspectorBackendCommands.js +578 -0
  144. package/debugger/InspectorBackendCommands.js.map +1 -0
  145. package/debugger/devtools-elements-interfaces.d.ts +16 -0
  146. package/debugger/devtools-elements-interfaces.js +2 -0
  147. package/debugger/devtools-elements-interfaces.js.map +1 -0
  148. package/debugger/devtools-elements.common.d.ts +7 -0
  149. package/debugger/devtools-elements.common.js +84 -0
  150. package/debugger/devtools-elements.common.js.map +1 -0
  151. package/debugger/devtools-elements.d.ts +5 -23
  152. package/debugger/devtools-elements.js +20 -0
  153. package/debugger/devtools-elements.js.map +1 -0
  154. package/debugger/dom-node.d.ts +20 -23
  155. package/debugger/dom-node.js +150 -0
  156. package/debugger/dom-node.js.map +1 -0
  157. package/debugger/index.d.ts +87 -0
  158. package/debugger/index.js +118 -0
  159. package/debugger/index.js.map +1 -0
  160. package/debugger/webinspector-css.d.ts +34 -0
  161. package/debugger/webinspector-css.js +71 -0
  162. package/debugger/webinspector-css.js.map +1 -0
  163. package/debugger/webinspector-dom.d.ts +33 -0
  164. package/debugger/webinspector-dom.js +74 -0
  165. package/debugger/webinspector-dom.js.map +1 -0
  166. package/debugger/webinspector-network.android.d.ts +79 -0
  167. package/debugger/webinspector-network.android.js +207 -0
  168. package/debugger/webinspector-network.android.js.map +1 -0
  169. package/debugger/webinspector-network.ios.d.ts +79 -0
  170. package/debugger/webinspector-network.ios.js +203 -0
  171. package/debugger/webinspector-network.ios.js.map +1 -0
  172. package/file-system/file-system-access.android.d.ts +167 -0
  173. package/file-system/file-system-access.android.js +1309 -0
  174. package/file-system/file-system-access.android.js.map +1 -0
  175. package/file-system/file-system-access.ios.d.ts +85 -0
  176. package/file-system/file-system-access.ios.js +637 -0
  177. package/file-system/file-system-access.ios.js.map +1 -0
  178. package/file-system/index.d.ts +98 -382
  179. package/file-system/index.js +862 -0
  180. package/file-system/index.js.map +1 -0
  181. package/fps-meter/fps-native.android.d.ts +12 -0
  182. package/fps-meter/fps-native.android.js +62 -0
  183. package/fps-meter/fps-native.android.js.map +1 -0
  184. package/fps-meter/fps-native.ios.d.ts +11 -0
  185. package/fps-meter/fps-native.ios.js +56 -0
  186. package/fps-meter/fps-native.ios.js.map +1 -0
  187. package/fps-meter/index.d.ts +7 -24
  188. package/fps-meter/index.js +77 -0
  189. package/fps-meter/index.js.map +1 -0
  190. package/globals/index.d.ts +19 -4
  191. package/globals/index.js +321 -0
  192. package/globals/index.js.map +1 -0
  193. package/http/http-request/http-request-common.d.ts +1 -0
  194. package/http/http-request/http-request-common.js +15 -0
  195. package/http/http-request/http-request-common.js.map +1 -0
  196. package/http/http-request/index.android.d.ts +7 -0
  197. package/http/http-request/index.android.js +290 -0
  198. package/http/http-request/index.android.js.map +1 -0
  199. package/http/http-request/index.ios.d.ts +7 -0
  200. package/http/http-request/index.ios.js +236 -0
  201. package/http/http-request/index.ios.js.map +1 -0
  202. package/http/index.d.ts +73 -149
  203. package/http/index.js +74 -0
  204. package/http/index.js.map +1 -0
  205. package/image-asset/image-asset-common.d.ts +26 -0
  206. package/image-asset/image-asset-common.js +51 -0
  207. package/image-asset/image-asset-common.js.map +1 -0
  208. package/image-asset/index.android.d.ts +10 -0
  209. package/image-asset/index.android.js +42 -0
  210. package/image-asset/index.android.js.map +1 -0
  211. package/image-asset/index.ios.d.ts +11 -0
  212. package/image-asset/index.ios.js +84 -0
  213. package/image-asset/index.ios.js.map +1 -0
  214. package/image-source/image-source-common.d.ts +4 -0
  215. package/image-source/image-source-common.js +21 -0
  216. package/image-source/image-source-common.js.map +1 -0
  217. package/image-source/index.android.d.ts +57 -0
  218. package/image-source/index.android.js +381 -0
  219. package/image-source/index.android.js.map +1 -0
  220. package/image-source/index.ios.d.ts +56 -0
  221. package/image-source/index.ios.js +449 -0
  222. package/image-source/index.ios.js.map +1 -0
  223. package/index.d.ts +7 -23
  224. package/index.js +36 -0
  225. package/index.js.map +1 -0
  226. package/inspector_modules.d.ts +1 -0
  227. package/inspector_modules.js +5 -0
  228. package/inspector_modules.js.map +1 -0
  229. package/matrix/index.d.ts +5 -32
  230. package/matrix/index.js +45 -0
  231. package/matrix/index.js.map +1 -0
  232. package/media-query-list/index.d.ts +21 -0
  233. package/media-query-list/index.js +169 -0
  234. package/media-query-list/index.js.map +1 -0
  235. package/module-name-resolver/index.d.ts +13 -21
  236. package/module-name-resolver/index.js +79 -0
  237. package/module-name-resolver/index.js.map +1 -0
  238. package/module-name-resolver/non-bundle-workflow-compat.d.ts +6 -0
  239. package/module-name-resolver/non-bundle-workflow-compat.js +119 -0
  240. package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -0
  241. package/module-name-resolver/qualifier-matcher/index.d.ts +6 -12
  242. package/module-name-resolver/qualifier-matcher/index.js +141 -0
  243. package/module-name-resolver/qualifier-matcher/index.js.map +1 -0
  244. package/package.json +6 -2
  245. package/platform/common.d.ts +9 -0
  246. package/platform/common.js +13 -0
  247. package/platform/common.js.map +1 -0
  248. package/platform/device/index.android.d.ts +20 -0
  249. package/platform/device/index.android.js +78 -0
  250. package/platform/device/index.android.js.map +1 -0
  251. package/platform/device/index.ios.d.ts +19 -0
  252. package/platform/device/index.ios.js +69 -0
  253. package/platform/device/index.ios.js.map +1 -0
  254. package/platform/index.d.ts +0 -26
  255. package/platform/index.js +4 -0
  256. package/platform/index.js.map +1 -0
  257. package/platform/screen/index.android.d.ts +15 -0
  258. package/platform/screen/index.android.js +39 -0
  259. package/platform/screen/index.android.js.map +1 -0
  260. package/platform/screen/index.ios.d.ts +15 -0
  261. package/platform/screen/index.ios.js +35 -0
  262. package/platform/screen/index.ios.js.map +1 -0
  263. package/platforms/android/widgets-release.aar +0 -0
  264. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCCrypto.h +79 -0
  265. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCWinterCG.h +20 -0
  266. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSString+WinterCG.h +21 -0
  267. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Modules/module.modulemap +6 -0
  268. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/NSCWinterCG +0 -0
  269. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Resources/Info.plist +52 -0
  270. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/Current/NSCWinterCG +0 -0
  271. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  272. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  273. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  274. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  275. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  276. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  277. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  278. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  279. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  280. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +6 -0
  281. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  282. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  283. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +52 -0
  284. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  285. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  286. package/platforms/ios/src/UIView+NativeScript.m +4 -2
  287. package/polyfills/formdata.d.ts +6 -0
  288. package/polyfills/formdata.js +16 -0
  289. package/polyfills/formdata.js.map +1 -0
  290. package/profiling/index.d.ts +26 -153
  291. package/profiling/index.js +274 -0
  292. package/profiling/index.js.map +1 -0
  293. package/text/formatted-string.d.ts +1 -1
  294. package/text/formatted-string.js +2 -0
  295. package/text/formatted-string.js.map +1 -0
  296. package/text/index.android.d.ts +9 -0
  297. package/text/index.android.js +11 -0
  298. package/text/index.android.js.map +1 -0
  299. package/text/index.ios.d.ts +9 -0
  300. package/text/index.ios.js +11 -0
  301. package/text/index.ios.js.map +1 -0
  302. package/text/span.d.ts +1 -1
  303. package/text/span.js +2 -0
  304. package/text/span.js.map +1 -0
  305. package/text/text-common.d.ts +12 -0
  306. package/text/text-common.js +111 -0
  307. package/text/text-common.js.map +1 -0
  308. package/timer/index.android.d.ts +4 -0
  309. package/timer/index.android.js +75 -0
  310. package/timer/index.android.js.map +1 -0
  311. package/timer/index.ios.d.ts +4 -0
  312. package/timer/index.ios.js +68 -0
  313. package/timer/index.ios.js.map +1 -0
  314. package/trace/index.d.ts +105 -131
  315. package/trace/index.js +255 -0
  316. package/trace/index.js.map +1 -0
  317. package/ui/action-bar/action-bar-common.d.ts +81 -0
  318. package/ui/action-bar/action-bar-common.js +369 -0
  319. package/ui/action-bar/action-bar-common.js.map +1 -0
  320. package/ui/action-bar/index.android.d.ts +47 -0
  321. package/ui/action-bar/index.android.js +469 -0
  322. package/ui/action-bar/index.android.js.map +1 -0
  323. package/ui/action-bar/index.ios.d.ts +38 -0
  324. package/ui/action-bar/index.ios.js +481 -0
  325. package/ui/action-bar/index.ios.js.map +1 -0
  326. package/ui/activity-indicator/activity-indicator-common.d.ts +7 -0
  327. package/ui/activity-indicator/activity-indicator-common.js +17 -0
  328. package/ui/activity-indicator/activity-indicator-common.js.map +1 -0
  329. package/ui/activity-indicator/index.android.d.ts +6 -0
  330. package/ui/activity-indicator/index.android.js +56 -0
  331. package/ui/activity-indicator/index.android.js.map +1 -0
  332. package/ui/activity-indicator/index.ios.d.ts +8 -0
  333. package/ui/activity-indicator/index.ios.js +48 -0
  334. package/ui/activity-indicator/index.ios.js.map +1 -0
  335. package/ui/animation/animation-common.d.ts +40 -0
  336. package/ui/animation/animation-common.js +186 -0
  337. package/ui/animation/animation-common.js.map +1 -0
  338. package/ui/animation/animation-interfaces.d.ts +63 -0
  339. package/ui/animation/animation-interfaces.js +2 -0
  340. package/ui/animation/animation-interfaces.js.map +1 -0
  341. package/ui/animation/index.android.d.ts +25 -0
  342. package/ui/animation/index.android.js +509 -0
  343. package/ui/animation/index.android.js.map +1 -0
  344. package/ui/animation/index.ios.d.ts +46 -0
  345. package/ui/animation/index.ios.js +906 -0
  346. package/ui/animation/index.ios.js.map +1 -0
  347. package/ui/animation/keyframe-animation.d.ts +66 -118
  348. package/ui/animation/keyframe-animation.js +245 -0
  349. package/ui/animation/keyframe-animation.js.map +1 -0
  350. package/ui/builder/binding-builder.d.ts +12 -15
  351. package/ui/builder/binding-builder.js +171 -0
  352. package/ui/builder/binding-builder.js.map +1 -0
  353. package/ui/builder/component-builder/index.d.ts +7 -0
  354. package/ui/builder/component-builder/index.js +221 -0
  355. package/ui/builder/component-builder/index.js.map +1 -0
  356. package/ui/builder/index.d.ts +27 -69
  357. package/ui/builder/index.js +202 -0
  358. package/ui/builder/index.js.map +1 -0
  359. package/ui/builder/xml2ui.d.ts +134 -0
  360. package/ui/builder/xml2ui.js +393 -0
  361. package/ui/builder/xml2ui.js.map +1 -0
  362. package/ui/button/button-common.d.ts +9 -0
  363. package/ui/button/button-common.js +26 -0
  364. package/ui/button/button-common.js.map +1 -0
  365. package/ui/button/index.android.d.ts +14 -0
  366. package/ui/button/index.android.js +150 -0
  367. package/ui/button/index.android.js.map +1 -0
  368. package/ui/button/index.ios.d.ts +13 -0
  369. package/ui/button/index.ios.js +270 -0
  370. package/ui/button/index.ios.js.map +1 -0
  371. package/ui/content-view/index.d.ts +23 -4
  372. package/ui/content-view/index.js +87 -0
  373. package/ui/content-view/index.js.map +1 -0
  374. package/ui/core/bindable/bindable-expressions.d.ts +7 -0
  375. package/ui/core/bindable/bindable-expressions.js +255 -0
  376. package/ui/core/bindable/bindable-expressions.js.map +1 -0
  377. package/ui/core/bindable/bindable-resources.d.ts +2 -0
  378. package/ui/core/bindable/bindable-resources.js +8 -0
  379. package/ui/core/bindable/bindable-resources.js.map +1 -0
  380. package/ui/core/bindable/index.d.ts +89 -0
  381. package/ui/core/bindable/index.js +556 -0
  382. package/ui/core/bindable/index.js.map +1 -0
  383. package/ui/core/control-state-change/index.android.d.ts +6 -0
  384. package/ui/core/control-state-change/index.android.js +8 -0
  385. package/ui/core/control-state-change/index.android.js.map +1 -0
  386. package/ui/core/control-state-change/index.ios.d.ts +14 -0
  387. package/ui/core/control-state-change/index.ios.js +61 -0
  388. package/ui/core/control-state-change/index.ios.js.map +1 -0
  389. package/ui/core/properties/index.d.ts +178 -0
  390. package/ui/core/properties/index.js +1133 -0
  391. package/ui/core/properties/index.js.map +1 -0
  392. package/ui/core/view/index.android.d.ts +98 -0
  393. package/ui/core/view/index.android.js +1206 -0
  394. package/ui/core/view/index.android.js.map +1 -0
  395. package/ui/core/view/index.ios.d.ts +95 -0
  396. package/ui/core/view/index.ios.js +1015 -0
  397. package/ui/core/view/index.ios.js.map +1 -0
  398. package/ui/core/view/view-common.d.ts +288 -0
  399. package/ui/core/view/view-common.js +1100 -0
  400. package/ui/core/view/view-common.js.map +1 -0
  401. package/ui/core/view/view-helper/index.android.d.ts +9 -0
  402. package/ui/core/view/view-helper/index.android.js +56 -0
  403. package/ui/core/view/view-helper/index.android.js.map +1 -0
  404. package/ui/core/view/view-helper/index.ios.d.ts +67 -0
  405. package/ui/core/view/view-helper/index.ios.js +329 -0
  406. package/ui/core/view/view-helper/index.ios.js.map +1 -0
  407. package/ui/core/view/view-helper/view-helper-common.d.ts +11 -0
  408. package/ui/core/view/view-helper/view-helper-common.js +157 -0
  409. package/ui/core/view/view-helper/view-helper-common.js.map +1 -0
  410. package/ui/core/view-base/index.d.ts +483 -524
  411. package/ui/core/view-base/index.js +1166 -0
  412. package/ui/core/view-base/index.js.map +1 -0
  413. package/ui/core/weak-event-listener/index.d.ts +2 -18
  414. package/ui/core/weak-event-listener/index.js +123 -0
  415. package/ui/core/weak-event-listener/index.js.map +1 -0
  416. package/ui/date-picker/date-picker-common.d.ts +27 -0
  417. package/ui/date-picker/date-picker-common.js +81 -0
  418. package/ui/date-picker/date-picker-common.js.map +1 -0
  419. package/ui/date-picker/index.android.d.ts +11 -0
  420. package/ui/date-picker/index.android.js +131 -0
  421. package/ui/date-picker/index.android.js.map +1 -0
  422. package/ui/date-picker/index.ios.d.ts +10 -0
  423. package/ui/date-picker/index.ios.js +165 -0
  424. package/ui/date-picker/index.ios.js.map +1 -0
  425. package/ui/dialogs/dialogs-common.d.ts +215 -0
  426. package/ui/dialogs/dialogs-common.js +167 -0
  427. package/ui/dialogs/dialogs-common.js.map +1 -0
  428. package/ui/dialogs/index.android.d.ts +20 -0
  429. package/ui/dialogs/index.android.js +329 -0
  430. package/ui/dialogs/index.android.js.map +1 -0
  431. package/ui/dialogs/index.ios.d.ts +17 -0
  432. package/ui/dialogs/index.ios.js +329 -0
  433. package/ui/dialogs/index.ios.js.map +1 -0
  434. package/ui/editable-text-base/editable-text-base-common.d.ts +39 -0
  435. package/ui/editable-text-base/editable-text-base-common.js +82 -0
  436. package/ui/editable-text-base/editable-text-base-common.js.map +1 -0
  437. package/ui/editable-text-base/index.android.d.ts +26 -0
  438. package/ui/editable-text-base/index.android.js +505 -0
  439. package/ui/editable-text-base/index.android.js.map +1 -0
  440. package/ui/editable-text-base/index.ios.d.ts +10 -0
  441. package/ui/editable-text-base/index.ios.js +261 -0
  442. package/ui/editable-text-base/index.ios.js.map +1 -0
  443. package/ui/embedding/index.android.d.ts +4 -0
  444. package/ui/embedding/index.android.js +14 -0
  445. package/ui/embedding/index.android.js.map +1 -0
  446. package/ui/embedding/index.ios.d.ts +1 -0
  447. package/ui/embedding/index.ios.js +4 -0
  448. package/ui/embedding/index.ios.js.map +1 -0
  449. package/ui/enums/enums.js +6 -0
  450. package/ui/enums/enums.js.map +1 -0
  451. package/ui/enums/index.js +6 -0
  452. package/ui/enums/index.js.map +1 -0
  453. package/ui/frame/activity.android.d.ts +1 -0
  454. package/ui/frame/activity.android.js +110 -0
  455. package/ui/frame/activity.android.js.map +1 -0
  456. package/ui/frame/callbacks/activity-callbacks.d.ts +20 -0
  457. package/ui/frame/callbacks/activity-callbacks.js +301 -0
  458. package/ui/frame/callbacks/activity-callbacks.js.map +1 -0
  459. package/ui/frame/callbacks/fragment-callbacks.d.ts +19 -0
  460. package/ui/frame/callbacks/fragment-callbacks.js +273 -0
  461. package/ui/frame/callbacks/fragment-callbacks.js.map +1 -0
  462. package/ui/frame/fragment.android.d.ts +3 -0
  463. package/ui/frame/fragment.android.js +92 -0
  464. package/ui/frame/fragment.android.js.map +1 -0
  465. package/ui/frame/fragment.ios.d.ts +3 -0
  466. package/ui/frame/fragment.ios.js +4 -0
  467. package/ui/frame/fragment.ios.js.map +1 -0
  468. package/ui/frame/fragment.transitions.android.d.ts +36 -0
  469. package/ui/frame/fragment.transitions.android.js +591 -0
  470. package/ui/frame/fragment.transitions.android.js.map +1 -0
  471. package/ui/frame/fragment.transitions.types.d.ts +6 -0
  472. package/ui/frame/fragment.transitions.types.js +2 -0
  473. package/ui/frame/fragment.transitions.types.js.map +1 -0
  474. package/ui/frame/frame-common.d.ts +98 -0
  475. package/ui/frame/frame-common.js +681 -0
  476. package/ui/frame/frame-common.js.map +1 -0
  477. package/ui/frame/frame-helpers.d.ts +16 -0
  478. package/ui/frame/frame-helpers.js +19 -0
  479. package/ui/frame/frame-helpers.js.map +1 -0
  480. package/ui/frame/frame-interfaces.d.ts +95 -0
  481. package/ui/frame/frame-interfaces.js +7 -0
  482. package/ui/frame/frame-interfaces.js.map +1 -0
  483. package/ui/frame/frame-stack.d.ts +6 -0
  484. package/ui/frame/frame-stack.js +38 -0
  485. package/ui/frame/frame-stack.js.map +1 -0
  486. package/ui/frame/index.android.d.ts +65 -0
  487. package/ui/frame/index.android.js +685 -0
  488. package/ui/frame/index.android.js.map +1 -0
  489. package/ui/frame/index.ios.d.ts +57 -0
  490. package/ui/frame/index.ios.js +648 -0
  491. package/ui/frame/index.ios.js.map +1 -0
  492. package/ui/gestures/gestures-common.d.ts +279 -0
  493. package/ui/gestures/gestures-common.js +199 -0
  494. package/ui/gestures/gestures-common.js.map +1 -0
  495. package/ui/gestures/index.android.d.ts +21 -0
  496. package/ui/gestures/index.android.js +595 -0
  497. package/ui/gestures/index.android.js.map +1 -0
  498. package/ui/gestures/index.ios.d.ts +36 -0
  499. package/ui/gestures/index.ios.js +512 -0
  500. package/ui/gestures/index.ios.js.map +1 -0
  501. package/ui/gestures/touch-manager.d.ts +82 -0
  502. package/ui/gestures/touch-manager.js +269 -0
  503. package/ui/gestures/touch-manager.js.map +1 -0
  504. package/ui/html-view/html-view-common.d.ts +13 -0
  505. package/ui/html-view/html-view-common.js +35 -0
  506. package/ui/html-view/html-view-common.js.map +1 -0
  507. package/ui/html-view/index.android.d.ts +7 -0
  508. package/ui/html-view/index.android.js +86 -0
  509. package/ui/html-view/index.android.js.map +1 -0
  510. package/ui/html-view/index.ios.d.ts +11 -0
  511. package/ui/html-view/index.ios.js +103 -0
  512. package/ui/html-view/index.ios.js.map +1 -0
  513. package/ui/image/image-common.d.ts +43 -0
  514. package/ui/image/image-common.js +191 -0
  515. package/ui/image/image-common.js.map +1 -0
  516. package/ui/image/index.android.d.ts +13 -0
  517. package/ui/image/index.android.js +167 -0
  518. package/ui/image/index.android.js.map +1 -0
  519. package/ui/image/index.ios.d.ts +17 -0
  520. package/ui/image/index.ios.js +186 -0
  521. package/ui/image/index.ios.js.map +1 -0
  522. package/ui/image/symbol-effects-common.d.ts +36 -0
  523. package/ui/image/symbol-effects-common.js +35 -0
  524. package/ui/image/symbol-effects-common.js.map +1 -0
  525. package/ui/image/symbol-effects.android.d.ts +5 -0
  526. package/ui/image/symbol-effects.android.js +8 -0
  527. package/ui/image/symbol-effects.android.js.map +1 -0
  528. package/ui/image/symbol-effects.ios.d.ts +6 -0
  529. package/ui/image/symbol-effects.ios.js +79 -0
  530. package/ui/image/symbol-effects.ios.js.map +1 -0
  531. package/ui/image-cache/image-cache-common.d.ts +40 -0
  532. package/ui/image-cache/image-cache-common.js +176 -0
  533. package/ui/image-cache/image-cache-common.js.map +1 -0
  534. package/ui/image-cache/index.android.d.ts +11 -0
  535. package/ui/image-cache/index.android.js +76 -0
  536. package/ui/image-cache/index.android.js.map +1 -0
  537. package/ui/image-cache/index.ios.d.ts +11 -0
  538. package/ui/image-cache/index.ios.js +84 -0
  539. package/ui/image-cache/index.ios.js.map +1 -0
  540. package/ui/index.d.ts +78 -0
  541. package/ui/index.js +62 -0
  542. package/ui/index.js.map +1 -0
  543. package/ui/label/index.android.d.ts +11 -0
  544. package/ui/label/index.android.js +40 -0
  545. package/ui/label/index.android.js.map +1 -0
  546. package/ui/label/index.ios.d.ts +16 -0
  547. package/ui/label/index.ios.js +220 -0
  548. package/ui/label/index.ios.js.map +1 -0
  549. package/ui/layouts/absolute-layout/absolute-layout-common.d.ts +16 -0
  550. package/ui/layouts/absolute-layout/absolute-layout-common.js +70 -0
  551. package/ui/layouts/absolute-layout/absolute-layout-common.js.map +1 -0
  552. package/ui/layouts/absolute-layout/index.android.d.ts +6 -0
  553. package/ui/layouts/absolute-layout/index.android.js +26 -0
  554. package/ui/layouts/absolute-layout/index.android.js.map +1 -0
  555. package/ui/layouts/absolute-layout/index.ios.d.ts +10 -0
  556. package/ui/layouts/absolute-layout/index.ios.js +48 -0
  557. package/ui/layouts/absolute-layout/index.ios.js.map +1 -0
  558. package/ui/layouts/dock-layout/dock-layout-common.d.ts +14 -0
  559. package/ui/layouts/dock-layout/dock-layout-common.js +51 -0
  560. package/ui/layouts/dock-layout/dock-layout-common.js.map +1 -0
  561. package/ui/layouts/dock-layout/index.android.d.ts +6 -0
  562. package/ui/layouts/dock-layout/index.android.js +38 -0
  563. package/ui/layouts/dock-layout/index.android.js.map +1 -0
  564. package/ui/layouts/dock-layout/index.ios.d.ts +8 -0
  565. package/ui/layouts/dock-layout/index.ios.js +115 -0
  566. package/ui/layouts/dock-layout/index.ios.js.map +1 -0
  567. package/ui/layouts/flexbox-layout/flexbox-layout-common.d.ts +126 -0
  568. package/ui/layouts/flexbox-layout/flexbox-layout-common.js +402 -0
  569. package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +1 -0
  570. package/ui/layouts/flexbox-layout/index.android.d.ts +12 -0
  571. package/ui/layouts/flexbox-layout/index.android.js +133 -0
  572. package/ui/layouts/flexbox-layout/index.android.js.map +1 -0
  573. package/ui/layouts/flexbox-layout/index.ios.d.ts +44 -0
  574. package/ui/layouts/flexbox-layout/index.ios.js +1232 -0
  575. package/ui/layouts/flexbox-layout/index.ios.js.map +1 -0
  576. package/ui/layouts/grid-layout/grid-layout-common.d.ts +72 -0
  577. package/ui/layouts/grid-layout/grid-layout-common.js +323 -0
  578. package/ui/layouts/grid-layout/grid-layout-common.js.map +1 -0
  579. package/ui/layouts/grid-layout/index.android.d.ts +22 -0
  580. package/ui/layouts/grid-layout/index.android.js +117 -0
  581. package/ui/layouts/grid-layout/index.android.js.map +1 -0
  582. package/ui/layouts/grid-layout/index.ios.d.ts +28 -0
  583. package/ui/layouts/grid-layout/index.ios.js +777 -0
  584. package/ui/layouts/grid-layout/index.ios.js.map +1 -0
  585. package/ui/layouts/index.d.ts +2 -1
  586. package/ui/layouts/index.js +9 -0
  587. package/ui/layouts/index.js.map +1 -0
  588. package/ui/layouts/layout-base-common.d.ts +36 -0
  589. package/ui/layouts/layout-base-common.js +146 -0
  590. package/ui/layouts/layout-base-common.js.map +1 -0
  591. package/ui/layouts/layout-base.android.d.ts +4 -0
  592. package/ui/layouts/layout-base.android.js +44 -0
  593. package/ui/layouts/layout-base.android.js.map +1 -0
  594. package/ui/layouts/layout-base.ios.d.ts +10 -0
  595. package/ui/layouts/layout-base.ios.js +34 -0
  596. package/ui/layouts/layout-base.ios.js.map +1 -0
  597. package/ui/layouts/root-layout/index.android.d.ts +16 -0
  598. package/ui/layouts/root-layout/index.android.js +115 -0
  599. package/ui/layouts/root-layout/index.android.js.map +1 -0
  600. package/ui/layouts/root-layout/index.ios.d.ts +16 -0
  601. package/ui/layouts/root-layout/index.ios.js +96 -0
  602. package/ui/layouts/root-layout/index.ios.js.map +1 -0
  603. package/ui/layouts/root-layout/root-layout-common.d.ts +54 -0
  604. package/ui/layouts/root-layout/root-layout-common.js +394 -0
  605. package/ui/layouts/root-layout/root-layout-common.js.map +1 -0
  606. package/ui/layouts/stack-layout/index.android.d.ts +6 -0
  607. package/ui/layouts/stack-layout/index.android.js +11 -0
  608. package/ui/layouts/stack-layout/index.android.js.map +1 -0
  609. package/ui/layouts/stack-layout/index.ios.d.ts +10 -0
  610. package/ui/layouts/stack-layout/index.ios.js +151 -0
  611. package/ui/layouts/stack-layout/index.ios.js.map +1 -0
  612. package/ui/layouts/stack-layout/stack-layout-common.d.ts +8 -0
  613. package/ui/layouts/stack-layout/stack-layout-common.js +19 -0
  614. package/ui/layouts/stack-layout/stack-layout-common.js.map +1 -0
  615. package/ui/layouts/wrap-layout/index.android.d.ts +6 -0
  616. package/ui/layouts/wrap-layout/index.android.js +18 -0
  617. package/ui/layouts/wrap-layout/index.android.js.map +1 -0
  618. package/ui/layouts/wrap-layout/index.ios.d.ts +8 -0
  619. package/ui/layouts/wrap-layout/index.ios.js +170 -0
  620. package/ui/layouts/wrap-layout/index.ios.js.map +1 -0
  621. package/ui/layouts/wrap-layout/wrap-layout-common.d.ts +15 -0
  622. package/ui/layouts/wrap-layout/wrap-layout-common.js +38 -0
  623. package/ui/layouts/wrap-layout/wrap-layout-common.js.map +1 -0
  624. package/ui/list-picker/index.android.d.ts +10 -0
  625. package/ui/list-picker/index.android.js +177 -0
  626. package/ui/list-picker/index.android.js.map +1 -0
  627. package/ui/list-picker/index.ios.d.ts +11 -0
  628. package/ui/list-picker/index.ios.js +99 -0
  629. package/ui/list-picker/index.ios.js.map +1 -0
  630. package/ui/list-picker/list-picker-common.d.ts +22 -0
  631. package/ui/list-picker/list-picker-common.js +77 -0
  632. package/ui/list-picker/list-picker-common.js.map +1 -0
  633. package/ui/list-view/index.android.d.ts +32 -0
  634. package/ui/list-view/index.android.js +359 -0
  635. package/ui/list-view/index.android.js.map +1 -0
  636. package/ui/list-view/index.ios.d.ts +45 -0
  637. package/ui/list-view/index.ios.js +456 -0
  638. package/ui/list-view/index.ios.js.map +1 -0
  639. package/ui/list-view/list-view-common.d.ts +66 -0
  640. package/ui/list-view/list-view-common.js +210 -0
  641. package/ui/list-view/list-view-common.js.map +1 -0
  642. package/ui/page/index.android.d.ts +13 -0
  643. package/ui/page/index.android.js +148 -0
  644. package/ui/page/index.android.js.map +1 -0
  645. package/ui/page/index.ios.d.ts +45 -0
  646. package/ui/page/index.ios.js +600 -0
  647. package/ui/page/index.ios.js.map +1 -0
  648. package/ui/page/page-common.d.ts +77 -0
  649. package/ui/page/page-common.js +186 -0
  650. package/ui/page/page-common.js.map +1 -0
  651. package/ui/placeholder/index.android.d.ts +12 -0
  652. package/ui/placeholder/index.android.js +21 -0
  653. package/ui/placeholder/index.android.js.map +1 -0
  654. package/ui/placeholder/index.d.ts +8 -42
  655. package/ui/placeholder/index.js +16 -0
  656. package/ui/placeholder/index.js.map +1 -0
  657. package/ui/placeholder/placeholder-common.d.ts +12 -0
  658. package/ui/placeholder/placeholder-common.js +2 -0
  659. package/ui/placeholder/placeholder-common.js.map +1 -0
  660. package/ui/progress/index.android.d.ts +6 -0
  661. package/ui/progress/index.android.js +65 -0
  662. package/ui/progress/index.android.js.map +1 -0
  663. package/ui/progress/index.ios.d.ts +7 -0
  664. package/ui/progress/index.ios.js +45 -0
  665. package/ui/progress/index.ios.js.map +1 -0
  666. package/ui/progress/progress-common.d.ts +15 -0
  667. package/ui/progress/progress-common.js +34 -0
  668. package/ui/progress/progress-common.js.map +1 -0
  669. package/ui/proxy-view-container/index.d.ts +31 -0
  670. package/ui/proxy-view-container/index.js +244 -0
  671. package/ui/proxy-view-container/index.js.map +1 -0
  672. package/ui/repeater/index.d.ts +65 -0
  673. package/ui/repeater/index.js +219 -0
  674. package/ui/repeater/index.js.map +1 -0
  675. package/ui/scroll-view/index.android.d.ts +22 -0
  676. package/ui/scroll-view/index.android.js +157 -0
  677. package/ui/scroll-view/index.android.js.map +1 -0
  678. package/ui/scroll-view/index.ios.d.ts +23 -0
  679. package/ui/scroll-view/index.ios.js +174 -0
  680. package/ui/scroll-view/index.ios.js.map +1 -0
  681. package/ui/scroll-view/scroll-view-common.d.ts +32 -0
  682. package/ui/scroll-view/scroll-view-common.js +93 -0
  683. package/ui/scroll-view/scroll-view-common.js.map +1 -0
  684. package/ui/search-bar/index.android.d.ts +14 -0
  685. package/ui/search-bar/index.android.js +239 -0
  686. package/ui/search-bar/index.android.js.map +1 -0
  687. package/ui/search-bar/index.ios.d.ts +14 -0
  688. package/ui/search-bar/index.ios.js +195 -0
  689. package/ui/search-bar/index.ios.js.map +1 -0
  690. package/ui/search-bar/search-bar-common.d.ts +17 -0
  691. package/ui/search-bar/search-bar-common.js +37 -0
  692. package/ui/search-bar/search-bar-common.js.map +1 -0
  693. package/ui/segmented-bar/index.android.d.ts +21 -0
  694. package/ui/segmented-bar/index.android.js +283 -0
  695. package/ui/segmented-bar/index.android.js.map +1 -0
  696. package/ui/segmented-bar/index.ios.d.ts +15 -0
  697. package/ui/segmented-bar/index.ios.js +140 -0
  698. package/ui/segmented-bar/index.ios.js.map +1 -0
  699. package/ui/segmented-bar/segmented-bar-common.d.ts +37 -0
  700. package/ui/segmented-bar/segmented-bar-common.js +146 -0
  701. package/ui/segmented-bar/segmented-bar-common.js.map +1 -0
  702. package/ui/slider/index.android.d.ts +18 -0
  703. package/ui/slider/index.android.js +118 -0
  704. package/ui/slider/index.android.js.map +1 -0
  705. package/ui/slider/index.ios.d.ts +19 -0
  706. package/ui/slider/index.ios.js +145 -0
  707. package/ui/slider/index.ios.js.map +1 -0
  708. package/ui/slider/slider-common.d.ts +26 -0
  709. package/ui/slider/slider-common.js +68 -0
  710. package/ui/slider/slider-common.js.map +1 -0
  711. package/ui/styling/background-common.d.ts +78 -0
  712. package/ui/styling/background-common.js +222 -0
  713. package/ui/styling/background-common.js.map +1 -0
  714. package/ui/styling/background.android.d.ts +9 -0
  715. package/ui/styling/background.android.js +135 -0
  716. package/ui/styling/background.android.js.map +1 -0
  717. package/ui/styling/background.ios.d.ts +34 -0
  718. package/ui/styling/background.ios.js +1101 -0
  719. package/ui/styling/background.ios.js.map +1 -0
  720. package/ui/styling/box-shadow.d.ts +9 -0
  721. package/ui/styling/box-shadow.js +3 -0
  722. package/ui/styling/box-shadow.js.map +1 -0
  723. package/ui/styling/converters.d.ts +2 -2
  724. package/ui/styling/converters.js +41 -0
  725. package/ui/styling/converters.js.map +1 -0
  726. package/ui/styling/css-animation-parser.d.ts +14 -0
  727. package/ui/styling/css-animation-parser.js +188 -0
  728. package/ui/styling/css-animation-parser.js.map +1 -0
  729. package/ui/styling/css-selector.d.ts +270 -0
  730. package/ui/styling/css-selector.js +928 -0
  731. package/ui/styling/css-selector.js.map +1 -0
  732. package/ui/styling/css-shadow.d.ts +19 -0
  733. package/ui/styling/css-shadow.js +26 -0
  734. package/ui/styling/css-shadow.js.map +1 -0
  735. package/ui/styling/css-stroke.d.ts +12 -0
  736. package/ui/styling/css-stroke.js +19 -0
  737. package/ui/styling/css-stroke.js.map +1 -0
  738. package/ui/styling/css-utils.d.ts +7 -0
  739. package/ui/styling/css-utils.js +65 -0
  740. package/ui/styling/css-utils.js.map +1 -0
  741. package/ui/styling/font-common.d.ts +63 -0
  742. package/ui/styling/font-common.js +241 -0
  743. package/ui/styling/font-common.js.map +1 -0
  744. package/ui/styling/font-interfaces.d.ts +15 -0
  745. package/ui/styling/font-interfaces.js +2 -0
  746. package/ui/styling/font-interfaces.js.map +1 -0
  747. package/ui/styling/font.android.d.ts +8 -0
  748. package/ui/styling/font.android.js +146 -0
  749. package/ui/styling/font.android.js.map +1 -0
  750. package/ui/styling/font.ios.d.ts +12 -0
  751. package/ui/styling/font.ios.js +143 -0
  752. package/ui/styling/font.ios.js.map +1 -0
  753. package/ui/styling/linear-gradient.d.ts +13 -0
  754. package/ui/styling/linear-gradient.js +48 -0
  755. package/ui/styling/linear-gradient.js.map +1 -0
  756. package/ui/styling/style/index.d.ts +162 -0
  757. package/ui/styling/style/index.js +67 -0
  758. package/ui/styling/style/index.js.map +1 -0
  759. package/ui/styling/style-properties.d.ts +82 -101
  760. package/ui/styling/style-properties.js +1331 -0
  761. package/ui/styling/style-properties.js.map +1 -0
  762. package/ui/styling/style-scope.d.ts +79 -48
  763. package/ui/styling/style-scope.js +1017 -0
  764. package/ui/styling/style-scope.js.map +1 -0
  765. package/ui/switch/index.android.d.ts +11 -0
  766. package/ui/switch/index.android.js +111 -0
  767. package/ui/switch/index.android.js.map +1 -0
  768. package/ui/switch/index.ios.d.ts +14 -0
  769. package/ui/switch/index.ios.js +147 -0
  770. package/ui/switch/index.ios.js.map +1 -0
  771. package/ui/switch/switch-common.d.ts +12 -0
  772. package/ui/switch/switch-common.js +38 -0
  773. package/ui/switch/switch-common.js.map +1 -0
  774. package/ui/tab-view/index.android.d.ts +37 -0
  775. package/ui/tab-view/index.android.js +604 -0
  776. package/ui/tab-view/index.android.js.map +1 -0
  777. package/ui/tab-view/index.ios.d.ts +49 -0
  778. package/ui/tab-view/index.ios.js +583 -0
  779. package/ui/tab-view/index.ios.js.map +1 -0
  780. package/ui/tab-view/tab-view-common.d.ts +71 -0
  781. package/ui/tab-view/tab-view-common.js +263 -0
  782. package/ui/tab-view/tab-view-common.js.map +1 -0
  783. package/ui/text-base/formatted-string.d.ts +36 -73
  784. package/ui/text-base/formatted-string.js +163 -0
  785. package/ui/text-base/formatted-string.js.map +1 -0
  786. package/ui/text-base/index.android.d.ts +16 -0
  787. package/ui/text-base/index.android.js +510 -0
  788. package/ui/text-base/index.android.js.map +1 -0
  789. package/ui/text-base/index.ios.d.ts +30 -0
  790. package/ui/text-base/index.ios.js +569 -0
  791. package/ui/text-base/index.ios.js.map +1 -0
  792. package/ui/text-base/span.d.ts +36 -81
  793. package/ui/text-base/span.js +113 -0
  794. package/ui/text-base/span.js.map +1 -0
  795. package/ui/text-base/text-base-common.d.ts +98 -0
  796. package/ui/text-base/text-base-common.js +323 -0
  797. package/ui/text-base/text-base-common.js.map +1 -0
  798. package/ui/text-field/index.android.d.ts +7 -0
  799. package/ui/text-field/index.android.js +95 -0
  800. package/ui/text-field/index.android.js.map +1 -0
  801. package/ui/text-field/index.ios.d.ts +25 -0
  802. package/ui/text-field/index.ios.js +277 -0
  803. package/ui/text-field/index.ios.js.map +1 -0
  804. package/ui/text-field/text-field-common.d.ts +11 -0
  805. package/ui/text-field/text-field-common.js +25 -0
  806. package/ui/text-field/text-field-common.js.map +1 -0
  807. package/ui/text-view/index.android.d.ts +6 -0
  808. package/ui/text-view/index.android.js +19 -0
  809. package/ui/text-view/index.android.js.map +1 -0
  810. package/ui/text-view/index.ios.d.ts +24 -0
  811. package/ui/text-view/index.ios.js +366 -0
  812. package/ui/text-view/index.ios.js.map +1 -0
  813. package/ui/text-view/text-view-common.d.ts +6 -0
  814. package/ui/text-view/text-view-common.js +5 -0
  815. package/ui/text-view/text-view-common.js.map +1 -0
  816. package/ui/time-picker/index.android.d.ts +8 -0
  817. package/ui/time-picker/index.android.js +79 -0
  818. package/ui/time-picker/index.android.js.map +1 -0
  819. package/ui/time-picker/index.ios.d.ts +11 -0
  820. package/ui/time-picker/index.ios.js +138 -0
  821. package/ui/time-picker/index.ios.js.map +1 -0
  822. package/ui/time-picker/time-picker-common.d.ts +30 -0
  823. package/ui/time-picker/time-picker-common.js +175 -0
  824. package/ui/time-picker/time-picker-common.js.map +1 -0
  825. package/ui/transition/fade-transition.android.d.ts +4 -0
  826. package/ui/transition/fade-transition.android.js +28 -0
  827. package/ui/transition/fade-transition.android.js.map +1 -0
  828. package/ui/transition/fade-transition.ios.d.ts +17 -0
  829. package/ui/transition/fade-transition.ios.js +65 -0
  830. package/ui/transition/fade-transition.ios.js.map +1 -0
  831. package/ui/transition/flip-transition.android.d.ts +6 -0
  832. package/ui/transition/flip-transition.android.js +90 -0
  833. package/ui/transition/flip-transition.android.js.map +1 -0
  834. package/ui/transition/index.android.d.ts +19 -0
  835. package/ui/transition/index.android.js +37 -0
  836. package/ui/transition/index.android.js.map +1 -0
  837. package/ui/transition/index.ios.d.ts +14 -0
  838. package/ui/transition/index.ios.js +30 -0
  839. package/ui/transition/index.ios.js.map +1 -0
  840. package/ui/transition/modal-transition.android.d.ts +5 -0
  841. package/ui/transition/modal-transition.android.js +7 -0
  842. package/ui/transition/modal-transition.android.js.map +1 -0
  843. package/ui/transition/modal-transition.ios.d.ts +34 -0
  844. package/ui/transition/modal-transition.ios.js +182 -0
  845. package/ui/transition/modal-transition.ios.js.map +1 -0
  846. package/ui/transition/page-transition.android.d.ts +10 -0
  847. package/ui/transition/page-transition.android.js +305 -0
  848. package/ui/transition/page-transition.android.js.map +1 -0
  849. package/ui/transition/page-transition.ios.d.ts +35 -0
  850. package/ui/transition/page-transition.ios.js +199 -0
  851. package/ui/transition/page-transition.ios.js.map +1 -0
  852. package/ui/transition/shared-transition-helper.android.d.ts +9 -0
  853. package/ui/transition/shared-transition-helper.android.js +10 -0
  854. package/ui/transition/shared-transition-helper.android.js.map +1 -0
  855. package/ui/transition/shared-transition-helper.ios.d.ts +14 -0
  856. package/ui/transition/shared-transition-helper.ios.js +539 -0
  857. package/ui/transition/shared-transition-helper.ios.js.map +1 -0
  858. package/ui/transition/shared-transition.d.ts +271 -0
  859. package/ui/transition/shared-transition.js +233 -0
  860. package/ui/transition/shared-transition.js.map +1 -0
  861. package/ui/transition/slide-transition.android.d.ts +7 -0
  862. package/ui/transition/slide-transition.android.js +116 -0
  863. package/ui/transition/slide-transition.android.js.map +1 -0
  864. package/ui/transition/slide-transition.ios.d.ts +19 -0
  865. package/ui/transition/slide-transition.ios.js +95 -0
  866. package/ui/transition/slide-transition.ios.js.map +1 -0
  867. package/ui/utils.android.d.ts +5 -0
  868. package/ui/utils.android.js +16 -0
  869. package/ui/utils.android.js.map +1 -0
  870. package/ui/utils.ios.d.ts +12 -0
  871. package/ui/utils.ios.js +66 -0
  872. package/ui/utils.ios.js.map +1 -0
  873. package/ui/web-view/index.android.d.ts +17 -0
  874. package/ui/web-view/index.android.js +180 -0
  875. package/ui/web-view/index.android.js.map +1 -0
  876. package/ui/web-view/index.ios.d.ts +26 -0
  877. package/ui/web-view/index.ios.js +247 -0
  878. package/ui/web-view/index.ios.js.map +1 -0
  879. package/ui/web-view/web-view-common.d.ts +28 -0
  880. package/ui/web-view/web-view-common.js +75 -0
  881. package/ui/web-view/web-view-common.js.map +1 -0
  882. package/ui/web-view/web-view-interfaces.d.ts +12 -0
  883. package/ui/web-view/web-view-interfaces.js +2 -0
  884. package/ui/web-view/web-view-interfaces.js.map +1 -0
  885. package/utils/android/index.d.ts +21 -0
  886. package/utils/android/index.js +169 -0
  887. package/utils/android/index.js.map +1 -0
  888. package/utils/common.d.ts +65 -0
  889. package/utils/common.js +253 -0
  890. package/utils/common.js.map +1 -0
  891. package/utils/constants.android.d.ts +1 -0
  892. package/utils/constants.android.js +2 -0
  893. package/utils/constants.android.js.map +1 -0
  894. package/utils/constants.ios.d.ts +1 -0
  895. package/utils/constants.ios.js +2 -0
  896. package/utils/constants.ios.js.map +1 -0
  897. package/utils/debug.d.ts +17 -61
  898. package/utils/debug.js +61 -0
  899. package/utils/debug.js.map +1 -0
  900. package/utils/index.android.d.ts +24 -0
  901. package/utils/index.android.js +177 -0
  902. package/utils/index.android.js.map +1 -0
  903. package/utils/index.ios.d.ts +19 -0
  904. package/utils/index.ios.js +82 -0
  905. package/utils/index.ios.js.map +1 -0
  906. package/utils/ios/index.d.ts +39 -0
  907. package/utils/ios/index.js +257 -0
  908. package/utils/ios/index.js.map +1 -0
  909. package/utils/layout-helper/index.android.d.ts +24 -0
  910. package/utils/layout-helper/index.android.js +77 -0
  911. package/utils/layout-helper/index.android.js.map +1 -0
  912. package/utils/layout-helper/index.ios.d.ts +24 -0
  913. package/utils/layout-helper/index.ios.js +64 -0
  914. package/utils/layout-helper/index.ios.js.map +1 -0
  915. package/utils/layout-helper/layout-helper-common.d.ts +14 -0
  916. package/utils/layout-helper/layout-helper-common.js +57 -0
  917. package/utils/layout-helper/layout-helper-common.js.map +1 -0
  918. package/utils/lazy.d.ts +0 -5
  919. package/utils/lazy.js +5 -0
  920. package/utils/lazy.js.map +1 -0
  921. package/utils/macrotask-scheduler.d.ts +1 -5
  922. package/utils/macrotask-scheduler.js +26 -0
  923. package/utils/macrotask-scheduler.js.map +1 -0
  924. package/utils/mainthread-helper.android.d.ts +3 -0
  925. package/utils/mainthread-helper.android.js +28 -0
  926. package/utils/mainthread-helper.android.js.map +1 -0
  927. package/utils/mainthread-helper.ios.d.ts +3 -0
  928. package/utils/mainthread-helper.ios.js +17 -0
  929. package/utils/mainthread-helper.ios.js.map +1 -0
  930. package/utils/module-merge.d.ts +1 -0
  931. package/utils/module-merge.js +8 -0
  932. package/utils/module-merge.js.map +1 -0
  933. package/utils/native-helper.android.d.ts +10 -0
  934. package/utils/native-helper.android.js +139 -0
  935. package/utils/native-helper.android.js.map +1 -0
  936. package/utils/native-helper.ios.d.ts +10 -0
  937. package/utils/native-helper.ios.js +91 -0
  938. package/utils/native-helper.ios.js.map +1 -0
  939. package/utils/number-utils.d.ts +19 -0
  940. package/utils/number-utils.js +37 -0
  941. package/utils/number-utils.js.map +1 -0
  942. package/utils/platform-check.d.ts +4 -0
  943. package/utils/platform-check.js +21 -0
  944. package/utils/platform-check.js.map +1 -0
  945. package/utils/types.d.ts +23 -115
  946. package/utils/types.js +104 -0
  947. package/utils/types.js.map +1 -0
  948. package/wgc/atob.d.ts +1 -0
  949. package/wgc/atob.js +9 -0
  950. package/wgc/atob.js.map +1 -0
  951. package/wgc/btoa.d.ts +1 -0
  952. package/wgc/btoa.js +9 -0
  953. package/wgc/btoa.js.map +1 -0
  954. package/wgc/crypto/SubtleCrypto.d.ts +63 -0
  955. package/wgc/crypto/SubtleCrypto.js +551 -0
  956. package/wgc/crypto/SubtleCrypto.js.map +1 -0
  957. package/wgc/crypto/index.d.ts +8 -0
  958. package/wgc/crypto/index.js +31 -0
  959. package/wgc/crypto/index.js.map +1 -0
  960. package/wgc/index.d.ts +2 -0
  961. package/wgc/index.js +3 -0
  962. package/wgc/index.js.map +1 -0
  963. package/xhr/index.d.ts +107 -0
  964. package/xhr/index.js +472 -0
  965. package/xhr/index.js.map +1 -0
  966. package/xml/index.d.ts +44 -105
  967. package/xml/index.js +89 -124
  968. package/xml/index.js.map +1 -0
@@ -0,0 +1,1015 @@
1
+ // Requires
2
+ import { ViewCommon, isEnabledProperty, originXProperty, originYProperty, isUserInteractionEnabledProperty, testIDProperty } from './view-common';
3
+ import { hiddenProperty } from '../view-base';
4
+ import { Trace } from '../../../trace';
5
+ import { layout, ios as iosUtils, SDK_VERSION } from '../../../utils';
6
+ import { IOSHelper } from './view-helper';
7
+ import { ios as iosBackground } from '../../styling/background';
8
+ import { perspectiveProperty, visibilityProperty, opacityProperty, rotateProperty, rotateXProperty, rotateYProperty, scaleXProperty, scaleYProperty, translateXProperty, translateYProperty, zIndexProperty, backgroundInternalProperty } from '../../styling/style-properties';
9
+ import { profile } from '../../../profiling';
10
+ import { accessibilityEnabledProperty, accessibilityHiddenProperty, accessibilityHintProperty, accessibilityIdentifierProperty, accessibilityLabelProperty, accessibilityLanguageProperty, accessibilityLiveRegionProperty, accessibilityMediaSessionProperty, accessibilityRoleProperty, accessibilityStateProperty, accessibilityValueProperty, accessibilityIgnoresInvertColorsProperty } from '../../../accessibility/accessibility-properties';
11
+ import { IOSPostAccessibilityNotificationType, isAccessibilityServiceEnabled, updateAccessibilityProperties } from '../../../accessibility';
12
+ import { CoreTypes } from '../../../core-types';
13
+ import { SharedTransition } from '../../transition/shared-transition';
14
+ import { Application } from '../../../application';
15
+ export * from './view-common';
16
+ // helpers (these are okay re-exported here)
17
+ export * from './view-helper';
18
+ // This one can eventually be cleaned up but causes issues with a lot of ui-suite plugins in particular if not exported here
19
+ export * from '../properties';
20
+ const PFLAG_FORCE_LAYOUT = 1;
21
+ const PFLAG_MEASURED_DIMENSION_SET = 1 << 1;
22
+ const PFLAG_LAYOUT_REQUIRED = 1 << 2;
23
+ export class View extends ViewCommon {
24
+ constructor() {
25
+ super(...arguments);
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
+ }
32
+ get isLayoutRequired() {
33
+ return (this._privateFlags & PFLAG_LAYOUT_REQUIRED) === PFLAG_LAYOUT_REQUIRED;
34
+ }
35
+ get isLayoutRequested() {
36
+ return (this._privateFlags & PFLAG_FORCE_LAYOUT) === PFLAG_FORCE_LAYOUT;
37
+ }
38
+ initNativeView() {
39
+ super.initNativeView();
40
+ const nativeView = this.nativeViewProtected;
41
+ /**
42
+ * We need to map back from the UIView to the NativeScript View for accessibility.
43
+ *
44
+ * We do that by setting the uiView's tag to the View's domId.
45
+ * This way we can do reverse lookup.
46
+ */
47
+ nativeView.tag = this._domId;
48
+ }
49
+ requestlayoutIfNeeded() {
50
+ if (this.isLayoutRequired || this._requetLayoutNeeded) {
51
+ this._requetLayoutNeeded = false;
52
+ this.requestLayout();
53
+ }
54
+ }
55
+ disposeNativeView() {
56
+ super.disposeNativeView();
57
+ if (this.viewController) {
58
+ this.viewController = null;
59
+ }
60
+ this._cachedFrame = null;
61
+ this._isLaidOut = false;
62
+ this._hasTransform = false;
63
+ this._hasPendingTransform = false;
64
+ }
65
+ requestLayout() {
66
+ if (this.mSuspendRequestLayout) {
67
+ this._requetLayoutNeeded = true;
68
+ return;
69
+ }
70
+ this._requetLayoutNeeded = false;
71
+ this._privateFlags |= PFLAG_FORCE_LAYOUT;
72
+ super.requestLayout();
73
+ const nativeView = this.nativeViewProtected;
74
+ if (nativeView && nativeView.setNeedsLayout) {
75
+ nativeView.setNeedsLayout();
76
+ }
77
+ const controller = this.viewController;
78
+ if (controller && controller.view !== nativeView) {
79
+ controller.view.setNeedsLayout();
80
+ }
81
+ }
82
+ measure(widthMeasureSpec, heightMeasureSpec) {
83
+ const measureSpecsChanged = this._setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec);
84
+ const forceLayout = (this._privateFlags & PFLAG_FORCE_LAYOUT) === PFLAG_FORCE_LAYOUT;
85
+ if (this.nativeViewProtected && (forceLayout || measureSpecsChanged)) {
86
+ // first clears the measured dimension flag
87
+ this._privateFlags &= ~PFLAG_MEASURED_DIMENSION_SET;
88
+ // measure ourselves, this should set the measured dimension flag back
89
+ this.onMeasure(widthMeasureSpec, heightMeasureSpec);
90
+ this._privateFlags |= PFLAG_LAYOUT_REQUIRED;
91
+ // flag not set, setMeasuredDimension() was not invoked, we trace
92
+ // the exception to warn the developer
93
+ if ((this._privateFlags & PFLAG_MEASURED_DIMENSION_SET) !== PFLAG_MEASURED_DIMENSION_SET) {
94
+ if (Trace.isEnabled()) {
95
+ Trace.write('onMeasure() did not set the measured dimension by calling setMeasuredDimension() ' + this, Trace.categories.Layout, Trace.messageType.error);
96
+ }
97
+ }
98
+ }
99
+ }
100
+ layout(left, top, right, bottom, setFrame = true) {
101
+ const { boundsChanged, sizeChanged } = this._setCurrentLayoutBounds(left, top, right, bottom);
102
+ if (setFrame) {
103
+ this.layoutNativeView(left, top, right, bottom);
104
+ }
105
+ const needsLayout = boundsChanged || (this._privateFlags & PFLAG_LAYOUT_REQUIRED) === PFLAG_LAYOUT_REQUIRED;
106
+ if (needsLayout) {
107
+ let position = { left, top, right, bottom };
108
+ if (this.nativeViewProtected && SDK_VERSION > 10) {
109
+ // on iOS 11+ it is possible to have a changed layout frame due to safe area insets
110
+ // get the frame and adjust the position, so that onLayout works correctly
111
+ const frame = this.nativeViewProtected.frame;
112
+ position = IOSHelper.getPositionFromFrame(frame);
113
+ }
114
+ this.onLayout(position.left, position.top, position.right, position.bottom);
115
+ this._privateFlags &= ~PFLAG_LAYOUT_REQUIRED;
116
+ }
117
+ this.updateBackground(sizeChanged, needsLayout);
118
+ if (this._hasPendingTransform) {
119
+ this.updateNativeTransform();
120
+ this._hasPendingTransform = false;
121
+ }
122
+ this._privateFlags &= ~PFLAG_FORCE_LAYOUT;
123
+ }
124
+ updateBackground(sizeChanged, needsLayout) {
125
+ if (sizeChanged) {
126
+ this._onSizeChanged();
127
+ }
128
+ else if (this._nativeBackgroundState === 'invalid') {
129
+ const background = this.style.backgroundInternal;
130
+ this._redrawNativeBackground(background);
131
+ }
132
+ else {
133
+ // Update layers that don't belong to view's layer (e.g. shadow layers)
134
+ if (needsLayout) {
135
+ this.layoutOuterShadows();
136
+ }
137
+ }
138
+ }
139
+ layoutOuterShadows() {
140
+ const nativeView = this.nativeViewProtected;
141
+ if (nativeView?.outerShadowContainerLayer) {
142
+ const isInTheMiddleOfAnimation = UIView.inheritedAnimationDuration > 0;
143
+ if (!isInTheMiddleOfAnimation) {
144
+ CATransaction.setDisableActions(true);
145
+ }
146
+ nativeView.outerShadowContainerLayer.bounds = nativeView.bounds;
147
+ nativeView.outerShadowContainerLayer.position = nativeView.center;
148
+ if (!isInTheMiddleOfAnimation) {
149
+ CATransaction.setDisableActions(false);
150
+ }
151
+ }
152
+ }
153
+ setMeasuredDimension(measuredWidth, measuredHeight) {
154
+ super.setMeasuredDimension(measuredWidth, measuredHeight);
155
+ this._privateFlags |= PFLAG_MEASURED_DIMENSION_SET;
156
+ }
157
+ onMeasure(widthMeasureSpec, heightMeasureSpec) {
158
+ const view = this.nativeViewProtected;
159
+ const width = layout.getMeasureSpecSize(widthMeasureSpec);
160
+ const widthMode = layout.getMeasureSpecMode(widthMeasureSpec);
161
+ const height = layout.getMeasureSpecSize(heightMeasureSpec);
162
+ const heightMode = layout.getMeasureSpecMode(heightMeasureSpec);
163
+ let nativeWidth = 0;
164
+ let nativeHeight = 0;
165
+ if (view) {
166
+ const nativeSize = layout.measureNativeView(view, width, widthMode, height, heightMode);
167
+ nativeWidth = nativeSize.width;
168
+ nativeHeight = nativeSize.height;
169
+ }
170
+ const measureWidth = Math.max(nativeWidth, this.effectiveMinWidth);
171
+ const measureHeight = Math.max(nativeHeight, this.effectiveMinHeight);
172
+ const widthAndState = View.resolveSizeAndState(measureWidth, width, widthMode, 0);
173
+ const heightAndState = View.resolveSizeAndState(measureHeight, height, heightMode, 0);
174
+ this.setMeasuredDimension(widthAndState, heightAndState);
175
+ }
176
+ onLayout(left, top, right, bottom) {
177
+ //
178
+ }
179
+ _setNativeViewFrame(nativeView, frame) {
180
+ const oldFrame = this._cachedFrame || nativeView.frame;
181
+ if (!CGRectEqualToRect(oldFrame, frame)) {
182
+ if (Trace.isEnabled()) {
183
+ Trace.write(this + ' :_setNativeViewFrame: ' + JSON.stringify(IOSHelper.getPositionFromFrame(frame)), Trace.categories.Layout);
184
+ }
185
+ this._cachedFrame = frame;
186
+ let adjustedFrame = null;
187
+ let transform = null;
188
+ if (this._hasTransform) {
189
+ // Always set identity transform before setting frame;
190
+ transform = nativeView.layer.transform;
191
+ nativeView.layer.transform = CATransform3DIdentity;
192
+ nativeView.frame = frame;
193
+ }
194
+ else {
195
+ nativeView.frame = frame;
196
+ }
197
+ adjustedFrame = this.applySafeAreaInsets(frame);
198
+ if (adjustedFrame) {
199
+ nativeView.frame = adjustedFrame;
200
+ }
201
+ if (this._hasTransform) {
202
+ // re-apply the transform after the frame is adjusted
203
+ nativeView.layer.transform = transform;
204
+ }
205
+ const boundsOrigin = nativeView.bounds.origin;
206
+ const boundsFrame = adjustedFrame || frame;
207
+ nativeView.bounds = CGRectMake(boundsOrigin.x, boundsOrigin.y, boundsFrame.size.width, boundsFrame.size.height);
208
+ nativeView.layoutIfNeeded();
209
+ this._raiseLayoutChangedEvent();
210
+ this._isLaidOut = true;
211
+ }
212
+ else if (!this._isLaidOut) {
213
+ // Rects could be equal on the first layout and an event should be raised.
214
+ this._raiseLayoutChangedEvent();
215
+ // But make sure event is raised only once if rects are equal on the first layout as
216
+ // this method is called twice with equal rects in landscape mode (vs only once in portrait)
217
+ this._isLaidOut = true;
218
+ }
219
+ }
220
+ get isLayoutValid() {
221
+ if (this.nativeViewProtected) {
222
+ return this._isLayoutValid;
223
+ }
224
+ return false;
225
+ }
226
+ layoutNativeView(left, top, right, bottom) {
227
+ if (!this.nativeViewProtected) {
228
+ return;
229
+ }
230
+ const nativeView = this.nativeViewProtected;
231
+ const frame = IOSHelper.getFrameFromPosition({
232
+ left,
233
+ top,
234
+ right,
235
+ bottom,
236
+ });
237
+ this._setNativeViewFrame(nativeView, frame);
238
+ }
239
+ _layoutParent() {
240
+ if (this.nativeViewProtected) {
241
+ const frame = this.nativeViewProtected.frame;
242
+ const origin = frame.origin;
243
+ const size = frame.size;
244
+ const left = layout.toDevicePixels(origin.x);
245
+ const top = layout.toDevicePixels(origin.y);
246
+ const width = layout.toDevicePixels(size.width);
247
+ const height = layout.toDevicePixels(size.height);
248
+ this._setLayoutFlags(left, top, width + left, height + top);
249
+ }
250
+ super._layoutParent();
251
+ }
252
+ _setLayoutFlags(left, top, right, bottom) {
253
+ const width = right - left;
254
+ const height = bottom - top;
255
+ const widthSpec = layout.makeMeasureSpec(width, layout.EXACTLY);
256
+ const heightSpec = layout.makeMeasureSpec(height, layout.EXACTLY);
257
+ this._setCurrentMeasureSpecs(widthSpec, heightSpec);
258
+ this._privateFlags &= ~PFLAG_FORCE_LAYOUT;
259
+ this.setMeasuredDimension(width, height);
260
+ const { boundsChanged, sizeChanged } = this._setCurrentLayoutBounds(left, top, right, bottom);
261
+ this.updateBackground(sizeChanged, boundsChanged);
262
+ this._privateFlags &= ~PFLAG_LAYOUT_REQUIRED;
263
+ }
264
+ focus() {
265
+ if (this.ios) {
266
+ return this.ios.becomeFirstResponder();
267
+ }
268
+ return false;
269
+ }
270
+ applySafeAreaInsets(frame) {
271
+ if (!__VISIONOS__ && SDK_VERSION <= 10) {
272
+ return null;
273
+ }
274
+ if (this.iosIgnoreSafeArea) {
275
+ return frame;
276
+ }
277
+ if (!this.iosOverflowSafeArea || !this.iosOverflowSafeAreaEnabled) {
278
+ return IOSHelper.shrinkToSafeArea(this, frame);
279
+ }
280
+ else if (this.nativeViewProtected && this.nativeViewProtected.window) {
281
+ return IOSHelper.expandBeyondSafeArea(this, frame);
282
+ }
283
+ return null;
284
+ }
285
+ getSafeAreaInsets() {
286
+ const safeAreaInsets = this.nativeViewProtected && this.nativeViewProtected.safeAreaInsets;
287
+ const insets = { left: 0, top: 0, right: 0, bottom: 0 };
288
+ if (this.iosIgnoreSafeArea) {
289
+ return insets;
290
+ }
291
+ if (safeAreaInsets) {
292
+ insets.left = layout.round(layout.toDevicePixels(safeAreaInsets.left));
293
+ insets.top = layout.round(layout.toDevicePixels(safeAreaInsets.top));
294
+ insets.right = layout.round(layout.toDevicePixels(safeAreaInsets.right));
295
+ insets.bottom = layout.round(layout.toDevicePixels(safeAreaInsets.bottom));
296
+ }
297
+ return insets;
298
+ }
299
+ getLocationInWindow() {
300
+ if (!this.nativeViewProtected || !this.nativeViewProtected.window) {
301
+ return undefined;
302
+ }
303
+ const pointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
304
+ return {
305
+ x: pointInWindow.x,
306
+ y: pointInWindow.y,
307
+ };
308
+ }
309
+ getLocationOnScreen() {
310
+ if (!this.nativeViewProtected || !this.nativeViewProtected.window) {
311
+ return undefined;
312
+ }
313
+ const pointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
314
+ const pointOnScreen = this.nativeViewProtected.window.convertPointToWindow(pointInWindow, null);
315
+ return {
316
+ x: pointOnScreen.x,
317
+ y: pointOnScreen.y,
318
+ };
319
+ }
320
+ getLocationRelativeTo(otherView) {
321
+ if (!this.nativeViewProtected || !this.nativeViewProtected.window || !otherView.nativeViewProtected || !otherView.nativeViewProtected.window || this.nativeViewProtected.window !== otherView.nativeViewProtected.window) {
322
+ return undefined;
323
+ }
324
+ const myPointInWindow = this.nativeViewProtected.convertPointToView(this.nativeViewProtected.bounds.origin, null);
325
+ const otherPointInWindow = otherView.nativeViewProtected.convertPointToView(otherView.nativeViewProtected.bounds.origin, null);
326
+ return {
327
+ x: myPointInWindow.x - otherPointInWindow.x,
328
+ y: myPointInWindow.y - otherPointInWindow.y,
329
+ };
330
+ }
331
+ _onSizeChanged() {
332
+ const nativeView = this.nativeViewProtected;
333
+ if (!nativeView) {
334
+ return;
335
+ }
336
+ const background = this.style.backgroundInternal;
337
+ const backgroundDependsOnSize = (background.image && background.image !== 'none') || background.clipPath || !background.hasUniformBorder() || background.hasBorderRadius() || background.hasBoxShadow();
338
+ if (this._nativeBackgroundState === 'invalid' || (this._nativeBackgroundState === 'drawn' && backgroundDependsOnSize)) {
339
+ this._redrawNativeBackground(background);
340
+ }
341
+ }
342
+ updateNativeTransform() {
343
+ // if (!this.isLayoutValid) {
344
+ // this._hasPendingTransform = true;
345
+ // return;
346
+ // }
347
+ const scaleX = this.scaleX || 1e-6;
348
+ const scaleY = this.scaleY || 1e-6;
349
+ const perspective = this.perspective || 300;
350
+ const nativeView = this.nativeViewProtected;
351
+ let transform = new CATransform3D(CATransform3DIdentity);
352
+ // Only set perspective if there is 3D rotation
353
+ if (this.rotateX || this.rotateY) {
354
+ transform.m34 = -1 / perspective;
355
+ }
356
+ transform = CATransform3DTranslate(transform, this.translateX, this.translateY, 0);
357
+ transform = iosUtils.applyRotateTransform(transform, this.rotateX, this.rotateY, this.rotate);
358
+ transform = CATransform3DScale(transform, scaleX, scaleY, 1);
359
+ const needsTransform = !CATransform3DEqualToTransform(this.nativeViewProtected.layer.transform, transform) || (nativeView.outerShadowContainerLayer && !CATransform3DEqualToTransform(nativeView.outerShadowContainerLayer.transform, transform));
360
+ if (needsTransform) {
361
+ const updateSuspended = this._isPresentationLayerUpdateSuspended();
362
+ if (!updateSuspended) {
363
+ CATransaction.begin();
364
+ }
365
+ // Disable CALayer animatable property changes
366
+ const isInTheMiddleOfAnimation = UIView.inheritedAnimationDuration > 0;
367
+ if (!isInTheMiddleOfAnimation) {
368
+ CATransaction.setDisableActions(true);
369
+ }
370
+ this.nativeViewProtected.layer.transform = transform;
371
+ if (nativeView.outerShadowContainerLayer) {
372
+ nativeView.outerShadowContainerLayer.transform = transform;
373
+ }
374
+ this._hasTransform = this.nativeViewProtected && !CATransform3DEqualToTransform(this.nativeViewProtected.transform3D, CATransform3DIdentity);
375
+ if (!isInTheMiddleOfAnimation) {
376
+ CATransaction.setDisableActions(false);
377
+ }
378
+ if (!updateSuspended) {
379
+ CATransaction.commit();
380
+ }
381
+ }
382
+ }
383
+ updateOriginPoint(originX, originY) {
384
+ const nativeView = this.nativeViewProtected;
385
+ const newPoint = CGPointMake(originX, originY);
386
+ // Disable CALayer animatable property changes
387
+ const isInTheMiddleOfAnimation = UIView.inheritedAnimationDuration > 0;
388
+ if (!isInTheMiddleOfAnimation) {
389
+ CATransaction.setDisableActions(true);
390
+ }
391
+ nativeView.layer.anchorPoint = newPoint;
392
+ // Bounds have to be recalculated after anchor point update
393
+ if (this._cachedFrame) {
394
+ const frame = this._cachedFrame;
395
+ this._cachedFrame = null;
396
+ this._setNativeViewFrame(nativeView, frame);
397
+ }
398
+ // Make sure new origin also applies to outer shadow layers
399
+ if (nativeView.outerShadowContainerLayer) {
400
+ // This is the new frame after view origin point update
401
+ const frame = nativeView.frame;
402
+ nativeView.outerShadowContainerLayer.anchorPoint = newPoint;
403
+ nativeView.outerShadowContainerLayer.position = CGPointMake(frame.origin.x + frame.size.width * originX, frame.origin.y + frame.size.height * originY);
404
+ }
405
+ if (!isInTheMiddleOfAnimation) {
406
+ CATransaction.setDisableActions(false);
407
+ }
408
+ }
409
+ // By default we update the view's presentation layer when setting backgroundColor and opacity properties.
410
+ // This is done by calling CATransaction begin and commit methods.
411
+ // This action should be disabled when updating those properties during an animation.
412
+ _suspendPresentationLayerUpdates() {
413
+ this._suspendCATransaction = true;
414
+ }
415
+ _resumePresentationLayerUpdates() {
416
+ this._suspendCATransaction = false;
417
+ }
418
+ _isPresentationLayerUpdateSuspended() {
419
+ return this._suspendCATransaction || this._suspendNativeUpdatesCount > 0;
420
+ }
421
+ _showNativeModalView(parent, options) {
422
+ let parentWithController = IOSHelper.getParentWithViewController(parent);
423
+ if (!parentWithController) {
424
+ Trace.write(`Could not find parent with viewController for ${parent} while showing modal view.`, Trace.categories.ViewHierarchy, Trace.messageType.error);
425
+ return;
426
+ }
427
+ let parentController = parentWithController.viewController;
428
+ // we loop to ensure we are showing from the top presented view controller
429
+ while (parentController.presentedViewController && !parentController.presentedViewController.beingDismissed) {
430
+ parentController = parentController.presentedViewController;
431
+ parentWithController = parentWithController['_modal'] || parentWithController;
432
+ }
433
+ this._setupAsRootView({});
434
+ super._showNativeModalView(parentWithController, options);
435
+ let controller = this.viewController;
436
+ if (!controller) {
437
+ const nativeView = this.ios || this.nativeViewProtected;
438
+ controller = IOSHelper.UILayoutViewController.initWithOwner(new WeakRef(this));
439
+ controller.modal = true;
440
+ if (nativeView instanceof UIView) {
441
+ controller.view.addSubview(nativeView);
442
+ }
443
+ this.viewController = controller;
444
+ }
445
+ // we set the parent to root to access all css root variables
446
+ this.parent = Application.getRootView();
447
+ if (options.transition) {
448
+ controller.modalPresentationStyle = 4 /* UIModalPresentationStyle.Custom */;
449
+ if (options.transition.instance) {
450
+ this._transitioningDelegate = UIViewControllerTransitioningDelegateImpl.initWithOwner(new WeakRef(options.transition.instance));
451
+ controller.transitioningDelegate = this._transitioningDelegate;
452
+ this.transitionId = options.transition.instance.id;
453
+ const transitionState = SharedTransition.getState(options.transition.instance.id);
454
+ if (transitionState?.interactive?.dismiss) {
455
+ // interactive transitions via gestures
456
+ // TODO - these could be typed as: boolean | (view: View) => void
457
+ // to allow users to define their own custom gesture dismissals
458
+ options.transition.instance.setupInteractiveGesture(this._closeModalCallback.bind(this), this);
459
+ }
460
+ }
461
+ }
462
+ else if (options.fullscreen) {
463
+ controller.modalPresentationStyle = 0 /* UIModalPresentationStyle.FullScreen */;
464
+ }
465
+ else {
466
+ controller.modalPresentationStyle = 2 /* UIModalPresentationStyle.FormSheet */;
467
+ //check whether both height and width is provided and are positive numbers
468
+ // set it has prefered content size to the controller presenting the dialog
469
+ if (options.ios && options.ios.width > 0 && options.ios.height > 0) {
470
+ controller.preferredContentSize = CGSizeMake(options.ios.width, options.ios.height);
471
+ }
472
+ else {
473
+ //use CSS & attribute width & height if option is not provided
474
+ const handler = () => {
475
+ if (this.viewController) {
476
+ const w = (this.width || this.style.width);
477
+ const h = (this.height || this.style.height);
478
+ //TODO: only numeric value is supported, percentage value is not supported like Android
479
+ if (w > 0 && h > 0) {
480
+ this.viewController.preferredContentSize = CGSizeMake(w, h);
481
+ }
482
+ }
483
+ this.off(View.loadedEvent, handler);
484
+ };
485
+ this.on(View.loadedEvent, handler);
486
+ }
487
+ }
488
+ if (options.ios && options.ios.presentationStyle) {
489
+ const presentationStyle = options.ios.presentationStyle;
490
+ controller.modalPresentationStyle = presentationStyle;
491
+ if (presentationStyle === 7 /* UIModalPresentationStyle.Popover */) {
492
+ this._setupPopoverControllerDelegate(controller, parent);
493
+ }
494
+ }
495
+ const cancelable = options.cancelable !== undefined ? !!options.cancelable : true;
496
+ if (SDK_VERSION >= 13) {
497
+ if (cancelable) {
498
+ // Listen for dismiss modal callback.
499
+ this._setupAdaptiveControllerDelegate(controller);
500
+ }
501
+ else {
502
+ // Prevent users from dismissing the modal.
503
+ controller.modalInPresentation = true;
504
+ }
505
+ }
506
+ this.horizontalAlignment = 'stretch';
507
+ this.verticalAlignment = 'stretch';
508
+ this._raiseShowingModallyEvent();
509
+ const animated = options.animated === undefined ? true : !!options.animated;
510
+ if (!this._modalAnimatedOptions) {
511
+ // track the user's animated options to use upon close as well
512
+ this._modalAnimatedOptions = [];
513
+ }
514
+ this._modalAnimatedOptions.push(animated);
515
+ // TODO: a11y
516
+ // controller.accessibilityViewIsModal = true;
517
+ // controller.accessibilityPerformEscape = () => {
518
+ // console.log('accessibilityPerformEscape!!')
519
+ // return true;
520
+ // }
521
+ parentController.presentViewControllerAnimatedCompletion(controller, animated, null);
522
+ const transitionCoordinator = parentController.transitionCoordinator;
523
+ if (transitionCoordinator) {
524
+ transitionCoordinator.animateAlongsideTransitionCompletion(null, () => {
525
+ setTimeout(() => {
526
+ // ensure raised on main queue
527
+ this._raiseShownModallyEvent();
528
+ });
529
+ });
530
+ }
531
+ else {
532
+ // Apparently iOS 9+ stops all transitions and animations upon application suspend and transitionCoordinator becomes null here in this case.
533
+ // Since we are not waiting for any transition to complete, i.e. transitionCoordinator is null, we can directly raise our shownModally event.
534
+ // Take a look at https://github.com/NativeScript/NativeScript/issues/2173 for more info and a sample project.
535
+ this._raiseShownModallyEvent();
536
+ }
537
+ controller = null;
538
+ }
539
+ _hideNativeModalView(parent, whenClosedCallback) {
540
+ if (!parent || !parent.viewController) {
541
+ Trace.error('Trying to hide modal view but no parent with viewController specified.');
542
+ return;
543
+ }
544
+ this._raiseClosingModallyEvent();
545
+ // modal view has already been closed by UI, probably as a popover
546
+ if (!parent.viewController.presentedViewController) {
547
+ whenClosedCallback();
548
+ return;
549
+ }
550
+ let parentController = parent.viewController;
551
+ // if a dialog (UIAlertController or custom one defining isAlertController) we need to loop over to get the
552
+ // top presentedViewController to correctly hide without hiding the dialog
553
+ // though we dont want to go "over" to not go into possible top shown modal
554
+ if (parentController.presentedViewController && parentController.presentedViewController.presentedViewController && (parentController.presentedViewController instanceof UIAlertController || parentController.presentedViewController['isAlertController'])) {
555
+ parentController = parentController.presentedViewController;
556
+ }
557
+ // while(parentController.presentedViewController && parentController.presentedViewController.presentedViewController) {
558
+ // }
559
+ let animated = true;
560
+ if (this._modalAnimatedOptions?.length) {
561
+ animated = this._modalAnimatedOptions.slice(-1)[0];
562
+ }
563
+ parentController.dismissViewControllerAnimatedCompletion(animated, () => {
564
+ const transitionState = SharedTransition.getState(this.transitionId);
565
+ if (!transitionState?.interactiveCancelled) {
566
+ this._transitioningDelegate = null;
567
+ // this.off('pan', this._interactiveDismissGesture);
568
+ if (this._modalAnimatedOptions) {
569
+ this._modalAnimatedOptions.pop();
570
+ }
571
+ }
572
+ whenClosedCallback();
573
+ });
574
+ }
575
+ [isEnabledProperty.getDefault]() {
576
+ const nativeView = this.nativeViewProtected;
577
+ return nativeView instanceof UIControl ? nativeView.enabled : true;
578
+ }
579
+ [isEnabledProperty.setNative](value) {
580
+ const nativeView = this.nativeViewProtected;
581
+ if (nativeView instanceof UIControl) {
582
+ nativeView.enabled = value;
583
+ }
584
+ }
585
+ [originXProperty.getDefault]() {
586
+ return this.nativeViewProtected.layer.anchorPoint.x;
587
+ }
588
+ [originXProperty.setNative](value) {
589
+ this.updateOriginPoint(value, this.originY);
590
+ }
591
+ [originYProperty.getDefault]() {
592
+ return this.nativeViewProtected.layer.anchorPoint.y;
593
+ }
594
+ [originYProperty.setNative](value) {
595
+ this.updateOriginPoint(this.originX, value);
596
+ }
597
+ [testIDProperty.setNative](value) {
598
+ this.setAccessibilityIdentifier(this.nativeViewProtected, value);
599
+ }
600
+ setAccessibilityIdentifier(view, value) {
601
+ view.accessibilityIdentifier = value;
602
+ if (this.testID && this.testID !== value)
603
+ this.testID = value;
604
+ if (this.accessibilityIdentifier !== value)
605
+ this.accessibilityIdentifier = value;
606
+ }
607
+ [accessibilityEnabledProperty.setNative](value) {
608
+ this.nativeViewProtected.isAccessibilityElement = !!value;
609
+ if (value) {
610
+ updateAccessibilityProperties(this);
611
+ }
612
+ }
613
+ [accessibilityIdentifierProperty.getDefault]() {
614
+ return this.nativeViewProtected.accessibilityIdentifier;
615
+ }
616
+ [accessibilityIdentifierProperty.setNative](value) {
617
+ this.setAccessibilityIdentifier(this.nativeViewProtected, value);
618
+ }
619
+ [accessibilityRoleProperty.setNative](value) {
620
+ this.accessibilityRole = value;
621
+ updateAccessibilityProperties(this);
622
+ }
623
+ [accessibilityValueProperty.setNative](value) {
624
+ value = value == null ? null : `${value}`;
625
+ this.nativeViewProtected.accessibilityValue = value;
626
+ }
627
+ [accessibilityLabelProperty.setNative](value) {
628
+ value = value == null ? null : `${value}`;
629
+ // not sure if needed for Label:
630
+ // if ((<any>this).nativeTextViewProtected) {
631
+ // (<any>this).nativeTextViewProtected.accessibilityLabel = value;
632
+ // } else {
633
+ this.nativeViewProtected.accessibilityLabel = value;
634
+ // }
635
+ }
636
+ [accessibilityHintProperty.setNative](value) {
637
+ value = value == null ? null : `${value}`;
638
+ this.nativeViewProtected.accessibilityHint = value;
639
+ }
640
+ [accessibilityIgnoresInvertColorsProperty.setNative](value) {
641
+ this.nativeViewProtected.accessibilityIgnoresInvertColors = !!value;
642
+ }
643
+ [accessibilityLanguageProperty.setNative](value) {
644
+ value = value == null ? null : `${value}`;
645
+ this.nativeViewProtected.accessibilityLanguage = value;
646
+ }
647
+ [accessibilityHiddenProperty.setNative](value) {
648
+ this.nativeViewProtected.accessibilityElementsHidden = !!value;
649
+ updateAccessibilityProperties(this);
650
+ }
651
+ [accessibilityLiveRegionProperty.setNative]() {
652
+ updateAccessibilityProperties(this);
653
+ }
654
+ [accessibilityStateProperty.setNative](value) {
655
+ this.accessibilityState = value;
656
+ updateAccessibilityProperties(this);
657
+ }
658
+ [accessibilityMediaSessionProperty.setNative]() {
659
+ updateAccessibilityProperties(this);
660
+ }
661
+ [isUserInteractionEnabledProperty.getDefault]() {
662
+ return this.nativeViewProtected.userInteractionEnabled;
663
+ }
664
+ [isUserInteractionEnabledProperty.setNative](value) {
665
+ this.nativeViewProtected.userInteractionEnabled = value;
666
+ }
667
+ [hiddenProperty.getDefault]() {
668
+ return this.nativeViewProtected.hidden;
669
+ }
670
+ [hiddenProperty.setNative](value) {
671
+ this.nativeViewProtected.hidden = value;
672
+ }
673
+ [visibilityProperty.getDefault]() {
674
+ return this.nativeViewProtected.hidden ? CoreTypes.Visibility.collapse : CoreTypes.Visibility.visible;
675
+ }
676
+ [visibilityProperty.setNative](value) {
677
+ const nativeView = this.nativeViewProtected;
678
+ switch (value) {
679
+ case CoreTypes.Visibility.visible:
680
+ nativeView.hidden = false;
681
+ break;
682
+ case CoreTypes.Visibility.hidden:
683
+ case CoreTypes.Visibility.collapse:
684
+ case CoreTypes.Visibility.collapsed:
685
+ nativeView.hidden = true;
686
+ break;
687
+ default:
688
+ throw new Error(`Invalid visibility value: ${value}. Valid values are: "${CoreTypes.Visibility.visible}", "${CoreTypes.Visibility.hidden}", "${CoreTypes.Visibility.collapse}", "${CoreTypes.Visibility.collapsed}".`);
689
+ }
690
+ // Apply visibility value to shadows as well
691
+ if (nativeView.outerShadowContainerLayer) {
692
+ nativeView.outerShadowContainerLayer.hidden = nativeView.hidden;
693
+ }
694
+ }
695
+ [opacityProperty.getDefault]() {
696
+ return this.nativeViewProtected.alpha;
697
+ }
698
+ [opacityProperty.setNative](value) {
699
+ const nativeView = this.nativeViewProtected;
700
+ const updateSuspended = this._isPresentationLayerUpdateSuspended();
701
+ if (!updateSuspended) {
702
+ CATransaction.begin();
703
+ }
704
+ // Disable CALayer animatable property changes
705
+ const isInTheMiddleOfAnimation = UIView.inheritedAnimationDuration > 0;
706
+ if (!isInTheMiddleOfAnimation) {
707
+ CATransaction.setDisableActions(true);
708
+ }
709
+ nativeView.alpha = value;
710
+ // Apply opacity value to shadows as well
711
+ if (nativeView.outerShadowContainerLayer) {
712
+ nativeView.outerShadowContainerLayer.opacity = value;
713
+ }
714
+ if (!isInTheMiddleOfAnimation) {
715
+ CATransaction.setDisableActions(false);
716
+ }
717
+ if (!updateSuspended) {
718
+ CATransaction.commit();
719
+ }
720
+ }
721
+ [rotateProperty.getDefault]() {
722
+ return 0;
723
+ }
724
+ [rotateProperty.setNative](value) {
725
+ this.updateNativeTransform();
726
+ }
727
+ [rotateXProperty.getDefault]() {
728
+ return 0;
729
+ }
730
+ [rotateXProperty.setNative](value) {
731
+ this.updateNativeTransform();
732
+ }
733
+ [rotateYProperty.getDefault]() {
734
+ return 0;
735
+ }
736
+ [rotateYProperty.setNative](value) {
737
+ this.updateNativeTransform();
738
+ }
739
+ [perspectiveProperty.getDefault]() {
740
+ return 300;
741
+ }
742
+ [perspectiveProperty.setNative](value) {
743
+ this.updateNativeTransform();
744
+ }
745
+ [scaleXProperty.getDefault]() {
746
+ return 1;
747
+ }
748
+ [scaleXProperty.setNative](value) {
749
+ this.updateNativeTransform();
750
+ }
751
+ [scaleYProperty.getDefault]() {
752
+ return 1;
753
+ }
754
+ [scaleYProperty.setNative](value) {
755
+ this.updateNativeTransform();
756
+ }
757
+ [translateXProperty.getDefault]() {
758
+ return 0;
759
+ }
760
+ [translateXProperty.setNative](value) {
761
+ this.updateNativeTransform();
762
+ }
763
+ [translateYProperty.getDefault]() {
764
+ return 0;
765
+ }
766
+ [translateYProperty.setNative](value) {
767
+ this.updateNativeTransform();
768
+ }
769
+ [zIndexProperty.getDefault]() {
770
+ return 0;
771
+ }
772
+ [zIndexProperty.setNative](value) {
773
+ const nativeView = this.nativeViewProtected;
774
+ nativeView.layer.zPosition = value;
775
+ // Apply z-index to shadows as well
776
+ if (nativeView.outerShadowContainerLayer) {
777
+ nativeView.outerShadowContainerLayer.zPosition = value;
778
+ }
779
+ }
780
+ [backgroundInternalProperty.getDefault]() {
781
+ return this.nativeViewProtected.backgroundColor;
782
+ }
783
+ [backgroundInternalProperty.setNative](value) {
784
+ this._nativeBackgroundState = 'invalid';
785
+ if (this.isLayoutValid) {
786
+ this._redrawNativeBackground(value);
787
+ }
788
+ }
789
+ sendAccessibilityEvent(options) {
790
+ if (!isAccessibilityServiceEnabled()) {
791
+ return;
792
+ }
793
+ if (!options.iosNotificationType) {
794
+ return;
795
+ }
796
+ let notification;
797
+ let args = this.nativeViewProtected;
798
+ if (options?.message) {
799
+ args = options.message;
800
+ }
801
+ switch (options.iosNotificationType) {
802
+ case IOSPostAccessibilityNotificationType.Announcement: {
803
+ notification = UIAccessibilityAnnouncementNotification;
804
+ break;
805
+ }
806
+ case IOSPostAccessibilityNotificationType.Layout: {
807
+ notification = UIAccessibilityLayoutChangedNotification;
808
+ break;
809
+ }
810
+ case IOSPostAccessibilityNotificationType.Screen: {
811
+ notification = UIAccessibilityScreenChangedNotification;
812
+ break;
813
+ }
814
+ default: {
815
+ return;
816
+ }
817
+ }
818
+ UIAccessibilityPostNotification(notification, args ?? null);
819
+ }
820
+ accessibilityAnnouncement(msg = this.accessibilityLabel) {
821
+ this.sendAccessibilityEvent({
822
+ iosNotificationType: IOSPostAccessibilityNotificationType.Announcement,
823
+ message: msg,
824
+ });
825
+ }
826
+ accessibilityScreenChanged() {
827
+ this.sendAccessibilityEvent({
828
+ iosNotificationType: IOSPostAccessibilityNotificationType.Screen,
829
+ });
830
+ }
831
+ _getCurrentLayoutBounds() {
832
+ const nativeView = this.nativeViewProtected;
833
+ if (nativeView && !this.isCollapsed) {
834
+ const frame = nativeView.frame;
835
+ const origin = frame.origin;
836
+ const size = frame.size;
837
+ return {
838
+ left: Math.round(layout.toDevicePixels(origin.x)),
839
+ top: Math.round(layout.toDevicePixels(origin.y)),
840
+ right: Math.round(layout.toDevicePixels(origin.x + size.width)),
841
+ bottom: Math.round(layout.toDevicePixels(origin.y + size.height)),
842
+ };
843
+ }
844
+ else {
845
+ return { left: 0, top: 0, right: 0, bottom: 0 };
846
+ }
847
+ }
848
+ _redrawNativeBackground(value) {
849
+ const isInTheMiddleOfAnimation = UIView.inheritedAnimationDuration > 0;
850
+ const updateSuspended = this._isPresentationLayerUpdateSuspended();
851
+ if (!updateSuspended) {
852
+ CATransaction.begin();
853
+ }
854
+ if (!isInTheMiddleOfAnimation) {
855
+ // Disable CALayer animatable property changes
856
+ CATransaction.setDisableActions(true);
857
+ }
858
+ const nativeView = this.nativeViewProtected;
859
+ if (nativeView) {
860
+ if (value instanceof UIColor) {
861
+ nativeView.backgroundColor = value;
862
+ }
863
+ else {
864
+ iosBackground.createBackgroundUIColor(this, (color) => {
865
+ nativeView.backgroundColor = color;
866
+ });
867
+ this._setNativeClipToBounds();
868
+ }
869
+ }
870
+ if (!isInTheMiddleOfAnimation) {
871
+ CATransaction.setDisableActions(false);
872
+ }
873
+ if (!updateSuspended) {
874
+ CATransaction.commit();
875
+ }
876
+ this._nativeBackgroundState = 'drawn';
877
+ }
878
+ _setNativeClipToBounds() {
879
+ const view = this.nativeViewProtected;
880
+ if (view) {
881
+ const backgroundInternal = this.style.backgroundInternal;
882
+ view.clipsToBounds = view instanceof UIScrollView || backgroundInternal.hasBorderWidth() || backgroundInternal.hasBorderRadius();
883
+ }
884
+ }
885
+ _setupPopoverControllerDelegate(controller, parent) {
886
+ const popoverPresentationController = controller.popoverPresentationController;
887
+ this._popoverPresentationDelegate = IOSHelper.UIPopoverPresentationControllerDelegateImp.initWithOwnerAndCallback(new WeakRef(this), this._closeModalCallback);
888
+ popoverPresentationController.delegate = this._popoverPresentationDelegate;
889
+ let view;
890
+ do {
891
+ view = parent.nativeViewProtected;
892
+ parent = parent.parent;
893
+ } while (parent && !view);
894
+ // Note: sourceView and sourceRect are needed to specify the anchor location for the popover.
895
+ // Note: sourceView should be the button triggering the modal. If it the Page the popover might appear "behind" the page content
896
+ popoverPresentationController.sourceView = view;
897
+ popoverPresentationController.sourceRect = CGRectMake(0, 0, view.frame.size.width, view.frame.size.height);
898
+ }
899
+ _setupAdaptiveControllerDelegate(controller) {
900
+ this._adaptivePresentationDelegate = IOSHelper.UIAdaptivePresentationControllerDelegateImp.initWithOwnerAndCallback(new WeakRef(this), this._closeModalCallback);
901
+ if (controller?.presentationController) {
902
+ controller.presentationController.delegate = this._adaptivePresentationDelegate;
903
+ }
904
+ }
905
+ }
906
+ __decorate([
907
+ profile
908
+ ], View.prototype, "layout", null);
909
+ __decorate([
910
+ profile
911
+ ], View.prototype, "onMeasure", null);
912
+ View.prototype._nativeBackgroundState = 'unset';
913
+ var UIViewControllerTransitioningDelegateImpl = /** @class */ (function (_super) {
914
+ __extends(UIViewControllerTransitioningDelegateImpl, _super);
915
+ function UIViewControllerTransitioningDelegateImpl() {
916
+ return _super !== null && _super.apply(this, arguments) || this;
917
+ }
918
+ UIViewControllerTransitioningDelegateImpl.initWithOwner = function (owner) {
919
+ var delegate = UIViewControllerTransitioningDelegateImpl.new();
920
+ delegate.owner = owner;
921
+ return delegate;
922
+ };
923
+ UIViewControllerTransitioningDelegateImpl.prototype.animationControllerForDismissedController = function (dismissed) {
924
+ var _a;
925
+ var owner = (_a = this.owner) === null || _a === void 0 ? void 0 : _a.deref();
926
+ if (owner === null || owner === void 0 ? void 0 : owner.iosDismissedController) {
927
+ return owner.iosDismissedController(dismissed);
928
+ }
929
+ return null;
930
+ };
931
+ UIViewControllerTransitioningDelegateImpl.prototype.animationControllerForPresentedControllerPresentingControllerSourceController = function (presented, presenting, source) {
932
+ var _a;
933
+ var owner = (_a = this.owner) === null || _a === void 0 ? void 0 : _a.deref();
934
+ if (owner === null || owner === void 0 ? void 0 : owner.iosPresentedController) {
935
+ return owner.iosPresentedController(presented, presenting, source);
936
+ }
937
+ return null;
938
+ };
939
+ UIViewControllerTransitioningDelegateImpl.prototype.interactionControllerForDismissal = function (animator) {
940
+ var _a;
941
+ var owner = (_a = this.owner) === null || _a === void 0 ? void 0 : _a.deref();
942
+ if (owner === null || owner === void 0 ? void 0 : owner.iosInteractionDismiss) {
943
+ var transitionState = SharedTransition.getState(owner.id);
944
+ if (transitionState === null || transitionState === void 0 ? void 0 : transitionState.interactiveBegan) {
945
+ return owner.iosInteractionDismiss(animator);
946
+ }
947
+ }
948
+ return null;
949
+ };
950
+ UIViewControllerTransitioningDelegateImpl.prototype.interactionControllerForPresentation = function (animator) {
951
+ var _a;
952
+ var owner = (_a = this.owner) === null || _a === void 0 ? void 0 : _a.deref();
953
+ if (owner === null || owner === void 0 ? void 0 : owner.iosInteractionPresented) {
954
+ return owner.iosInteractionPresented(animator);
955
+ }
956
+ return null;
957
+ };
958
+ UIViewControllerTransitioningDelegateImpl.ObjCProtocols = [UIViewControllerTransitioningDelegate];
959
+ return UIViewControllerTransitioningDelegateImpl;
960
+ }(NSObject));
961
+ export class ContainerView extends View {
962
+ constructor() {
963
+ super();
964
+ this.iosOverflowSafeArea = true;
965
+ }
966
+ }
967
+ export class CustomLayoutView extends ContainerView {
968
+ createNativeView() {
969
+ const window = iosUtils.getWindow();
970
+ return UIView.alloc().initWithFrame(window ? window.screen.bounds : UIScreen.mainScreen.bounds);
971
+ }
972
+ get ios() {
973
+ return this.nativeViewProtected;
974
+ }
975
+ onMeasure(widthMeasureSpec, heightMeasureSpec) {
976
+ // Don't call super because it will set MeasureDimension. This method must be overridden and calculate its measuredDimensions.
977
+ }
978
+ _addViewToNativeVisualTree(child, atIndex) {
979
+ super._addViewToNativeVisualTree(child, atIndex);
980
+ const parentNativeView = this.nativeViewProtected;
981
+ const childNativeView = child.nativeViewProtected;
982
+ if (parentNativeView && childNativeView) {
983
+ if (typeof atIndex !== 'number' || atIndex >= parentNativeView.subviews.count) {
984
+ parentNativeView.addSubview(childNativeView);
985
+ }
986
+ else {
987
+ parentNativeView.insertSubviewAtIndex(childNativeView, atIndex);
988
+ }
989
+ // Add outer shadow layer manually as it belongs to parent layer tree (this is needed for reusable views)
990
+ if (childNativeView.outerShadowContainerLayer && !childNativeView.outerShadowContainerLayer.superlayer) {
991
+ parentNativeView.layer.insertSublayerBelow(childNativeView.outerShadowContainerLayer, childNativeView.layer);
992
+ }
993
+ return true;
994
+ }
995
+ return false;
996
+ }
997
+ _removeFromNativeVisualTree() {
998
+ super._removeFromNativeVisualTree();
999
+ if (this.nativeViewProtected) {
1000
+ this.nativeViewProtected.removeFromSuperview();
1001
+ }
1002
+ }
1003
+ _removeViewFromNativeVisualTree(child) {
1004
+ super._removeViewFromNativeVisualTree(child);
1005
+ if (child.nativeViewProtected) {
1006
+ const nativeView = child.nativeViewProtected;
1007
+ // Remove outer shadow layer manually as it belongs to parent layer tree
1008
+ if (nativeView.outerShadowContainerLayer) {
1009
+ nativeView.outerShadowContainerLayer.removeFromSuperlayer();
1010
+ }
1011
+ nativeView.removeFromSuperview();
1012
+ }
1013
+ }
1014
+ }
1015
+ //# sourceMappingURL=index.ios.js.map