@akylas/nativescript 8.8.4 → 8.8.6

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/LICENSE +19 -0
  2. package/animation-frame/index.d.ts +17 -3
  3. package/css/css-tree-parser.js +21 -17
  4. package/debugger/devtools-elements.d.ts +23 -5
  5. package/debugger/dom-node.d.ts +23 -20
  6. package/file-system/index.d.ts +382 -98
  7. package/fps-meter/index.d.ts +24 -7
  8. package/globals/index.d.ts +4 -19
  9. package/http/index.d.ts +149 -73
  10. package/index.d.ts +23 -7
  11. package/matrix/index.d.ts +32 -5
  12. package/module-name-resolver/index.d.ts +21 -13
  13. package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
  14. package/package.json +5 -8
  15. package/platform/index.d.ts +26 -0
  16. package/profiling/index.d.ts +153 -26
  17. package/text/formatted-string.d.ts +1 -1
  18. package/text/span.d.ts +1 -1
  19. package/trace/index.d.ts +131 -105
  20. package/ui/animation/keyframe-animation.d.ts +118 -66
  21. package/ui/builder/binding-builder.d.ts +15 -12
  22. package/ui/builder/index.d.ts +69 -27
  23. package/ui/content-view/index.d.ts +4 -23
  24. package/ui/core/view-base/index.d.ts +524 -479
  25. package/ui/core/weak-event-listener/index.d.ts +18 -2
  26. package/ui/layouts/index.d.ts +1 -2
  27. package/ui/placeholder/index.d.ts +42 -8
  28. package/ui/styling/converters.d.ts +2 -2
  29. package/ui/styling/style-properties.d.ts +101 -82
  30. package/ui/styling/style-scope.d.ts +48 -79
  31. package/ui/text-base/formatted-string.d.ts +73 -36
  32. package/ui/text-base/span.d.ts +81 -36
  33. package/utils/debug.d.ts +61 -17
  34. package/utils/lazy.d.ts +5 -0
  35. package/utils/macrotask-scheduler.d.ts +5 -1
  36. package/utils/types.d.ts +115 -23
  37. package/xml/index.d.ts +105 -44
  38. package/xml/index.js +124 -89
  39. package/abortcontroller/abortsignal.d.ts +0 -23
  40. package/abortcontroller/abortsignal.js +0 -57
  41. package/abortcontroller/abortsignal.js.map +0 -1
  42. package/abortcontroller/index.d.ts +0 -20
  43. package/abortcontroller/index.js +0 -52
  44. package/abortcontroller/index.js.map +0 -1
  45. package/accessibility/accessibility-common.d.ts +0 -18
  46. package/accessibility/accessibility-common.js +0 -64
  47. package/accessibility/accessibility-common.js.map +0 -1
  48. package/accessibility/accessibility-css-helper.d.ts +0 -1
  49. package/accessibility/accessibility-css-helper.js +0 -101
  50. package/accessibility/accessibility-css-helper.js.map +0 -1
  51. package/accessibility/accessibility-properties.d.ts +0 -24
  52. package/accessibility/accessibility-properties.js +0 -122
  53. package/accessibility/accessibility-properties.js.map +0 -1
  54. package/accessibility/accessibility-service-common.d.ts +0 -8
  55. package/accessibility/accessibility-service-common.js +0 -26
  56. package/accessibility/accessibility-service-common.js.map +0 -1
  57. package/accessibility/accessibility-service.android.d.ts +0 -6
  58. package/accessibility/accessibility-service.android.js +0 -107
  59. package/accessibility/accessibility-service.android.js.map +0 -1
  60. package/accessibility/accessibility-service.ios.d.ts +0 -6
  61. package/accessibility/accessibility-service.ios.js +0 -61
  62. package/accessibility/accessibility-service.ios.js.map +0 -1
  63. package/accessibility/accessibility-types.d.ts +0 -224
  64. package/accessibility/accessibility-types.js +0 -222
  65. package/accessibility/accessibility-types.js.map +0 -1
  66. package/accessibility/font-scale-common.d.ts +0 -7
  67. package/accessibility/font-scale-common.js +0 -14
  68. package/accessibility/font-scale-common.js.map +0 -1
  69. package/accessibility/font-scale.android.d.ts +0 -5
  70. package/accessibility/font-scale.android.js +0 -56
  71. package/accessibility/font-scale.android.js.map +0 -1
  72. package/accessibility/font-scale.ios.d.ts +0 -5
  73. package/accessibility/font-scale.ios.js +0 -89
  74. package/accessibility/font-scale.ios.js.map +0 -1
  75. package/accessibility/index.android.d.ts +0 -10
  76. package/accessibility/index.android.js +0 -418
  77. package/accessibility/index.android.js.map +0 -1
  78. package/accessibility/index.ios.d.ts +0 -9
  79. package/accessibility/index.ios.js +0 -234
  80. package/accessibility/index.ios.js.map +0 -1
  81. package/animation-frame/animation-native.android.d.ts +0 -1
  82. package/animation-frame/animation-native.android.js +0 -4
  83. package/animation-frame/animation-native.android.js.map +0 -1
  84. package/animation-frame/animation-native.ios.d.ts +0 -1
  85. package/animation-frame/animation-native.ios.js +0 -3
  86. package/animation-frame/animation-native.ios.js.map +0 -1
  87. package/animation-frame/index.js +0 -92
  88. package/animation-frame/index.js.map +0 -1
  89. package/application/application-common.d.ts +0 -224
  90. package/application/application-common.js +0 -467
  91. package/application/application-common.js.map +0 -1
  92. package/application/application-interfaces.d.ts +0 -217
  93. package/application/application-interfaces.js +0 -2
  94. package/application/application-interfaces.js.map +0 -1
  95. package/application/application-shims.d.ts +0 -351
  96. package/application/application-shims.js +0 -353
  97. package/application/application-shims.js.map +0 -1
  98. package/application/application.android.d.ts +0 -73
  99. package/application/application.android.js +0 -500
  100. package/application/application.android.js.map +0 -1
  101. package/application/application.ios.d.ts +0 -81
  102. package/application/application.ios.js +0 -455
  103. package/application/application.ios.js.map +0 -1
  104. package/application/index.android.d.ts +0 -2
  105. package/application/index.android.js +0 -3
  106. package/application/index.android.js.map +0 -1
  107. package/application/index.ios.d.ts +0 -2
  108. package/application/index.ios.js +0 -3
  109. package/application/index.ios.js.map +0 -1
  110. package/application-settings/application-settings-common.d.ts +0 -2
  111. package/application-settings/application-settings-common.js +0 -15
  112. package/application-settings/application-settings-common.js.map +0 -1
  113. package/application-settings/index.android.d.ts +0 -13
  114. package/application-settings/index.android.js +0 -175
  115. package/application-settings/index.android.js.map +0 -1
  116. package/application-settings/index.ios.d.ts +0 -13
  117. package/application-settings/index.ios.js +0 -88
  118. package/application-settings/index.ios.js.map +0 -1
  119. package/bundle-entry-points.d.ts +0 -1
  120. package/bundle-entry-points.js +0 -47
  121. package/bundle-entry-points.js.map +0 -1
  122. package/color/color-common.d.ts +0 -137
  123. package/color/color-common.js +0 -520
  124. package/color/color-common.js.map +0 -1
  125. package/color/index.android.d.ts +0 -4
  126. package/color/index.android.js +0 -7
  127. package/color/index.android.js.map +0 -1
  128. package/color/index.ios.d.ts +0 -6
  129. package/color/index.ios.js +0 -19
  130. package/color/index.ios.js.map +0 -1
  131. package/color/known-colors.d.ts +0 -144
  132. package/color/known-colors.js +0 -165
  133. package/color/known-colors.js.map +0 -1
  134. package/config/config.interface.d.ts +0 -235
  135. package/config/config.interface.js +0 -2
  136. package/config/config.interface.js.map +0 -1
  137. package/config/index.d.ts +0 -1
  138. package/config/index.js +0 -2
  139. package/config/index.js.map +0 -1
  140. package/connectivity/index.android.d.ts +0 -11
  141. package/connectivity/index.android.js +0 -156
  142. package/connectivity/index.android.js.map +0 -1
  143. package/connectivity/index.ios.d.ts +0 -11
  144. package/connectivity/index.ios.js +0 -132
  145. package/connectivity/index.ios.js.map +0 -1
  146. package/console/index.d.ts +0 -14
  147. package/console/index.js +0 -33
  148. package/console/index.js.map +0 -1
  149. package/core-types/index.d.ts +0 -335
  150. package/core-types/index.js +0 -287
  151. package/core-types/index.js.map +0 -1
  152. package/css/CSS3Parser.d.ts +0 -184
  153. package/css/CSS3Parser.js +0 -534
  154. package/css/CSS3Parser.js.map +0 -1
  155. package/css/CSSNativeScript.d.ts +0 -14
  156. package/css/CSSNativeScript.js +0 -113
  157. package/css/CSSNativeScript.js.map +0 -1
  158. package/css/css-tree-parser.d.ts +0 -1
  159. package/css/css-tree-parser.js.map +0 -1
  160. package/css/parser.d.ts +0 -70
  161. package/css/parser.js +0 -516
  162. package/css/parser.js.map +0 -1
  163. package/css/system-classes.d.ts +0 -12
  164. package/css/system-classes.js +0 -47
  165. package/css/system-classes.js.map +0 -1
  166. package/css-mediaquery/index.d.ts +0 -27
  167. package/css-mediaquery/index.js +0 -118
  168. package/css-mediaquery/index.js.map +0 -1
  169. package/data/observable/index.d.ts +0 -185
  170. package/data/observable/index.js +0 -411
  171. package/data/observable/index.js.map +0 -1
  172. package/data/observable-array/index.d.ts +0 -215
  173. package/data/observable-array/index.js +0 -325
  174. package/data/observable-array/index.js.map +0 -1
  175. package/data/virtual-array/index.d.ts +0 -72
  176. package/data/virtual-array/index.js +0 -133
  177. package/data/virtual-array/index.js.map +0 -1
  178. package/debugger/InspectorBackendCommands.d.ts +0 -1056
  179. package/debugger/InspectorBackendCommands.js +0 -578
  180. package/debugger/InspectorBackendCommands.js.map +0 -1
  181. package/debugger/devtools-elements-interfaces.d.ts +0 -16
  182. package/debugger/devtools-elements-interfaces.js +0 -2
  183. package/debugger/devtools-elements-interfaces.js.map +0 -1
  184. package/debugger/devtools-elements.common.d.ts +0 -7
  185. package/debugger/devtools-elements.common.js +0 -84
  186. package/debugger/devtools-elements.common.js.map +0 -1
  187. package/debugger/devtools-elements.js +0 -20
  188. package/debugger/devtools-elements.js.map +0 -1
  189. package/debugger/dom-node.js +0 -150
  190. package/debugger/dom-node.js.map +0 -1
  191. package/debugger/index.d.ts +0 -87
  192. package/debugger/index.js +0 -118
  193. package/debugger/index.js.map +0 -1
  194. package/debugger/webinspector-css.d.ts +0 -34
  195. package/debugger/webinspector-css.js +0 -71
  196. package/debugger/webinspector-css.js.map +0 -1
  197. package/debugger/webinspector-dom.d.ts +0 -33
  198. package/debugger/webinspector-dom.js +0 -74
  199. package/debugger/webinspector-dom.js.map +0 -1
  200. package/debugger/webinspector-network.android.d.ts +0 -79
  201. package/debugger/webinspector-network.android.js +0 -207
  202. package/debugger/webinspector-network.android.js.map +0 -1
  203. package/debugger/webinspector-network.ios.d.ts +0 -79
  204. package/debugger/webinspector-network.ios.js +0 -203
  205. package/debugger/webinspector-network.ios.js.map +0 -1
  206. package/file-system/file-system-access.android.d.ts +0 -167
  207. package/file-system/file-system-access.android.js +0 -1295
  208. package/file-system/file-system-access.android.js.map +0 -1
  209. package/file-system/file-system-access.ios.d.ts +0 -85
  210. package/file-system/file-system-access.ios.js +0 -637
  211. package/file-system/file-system-access.ios.js.map +0 -1
  212. package/file-system/index.js +0 -863
  213. package/file-system/index.js.map +0 -1
  214. package/fps-meter/fps-native.android.d.ts +0 -12
  215. package/fps-meter/fps-native.android.js +0 -62
  216. package/fps-meter/fps-native.android.js.map +0 -1
  217. package/fps-meter/fps-native.ios.d.ts +0 -11
  218. package/fps-meter/fps-native.ios.js +0 -56
  219. package/fps-meter/fps-native.ios.js.map +0 -1
  220. package/fps-meter/index.js +0 -77
  221. package/fps-meter/index.js.map +0 -1
  222. package/globals/index.js +0 -321
  223. package/globals/index.js.map +0 -1
  224. package/http/http-request/http-request-common.d.ts +0 -1
  225. package/http/http-request/http-request-common.js +0 -15
  226. package/http/http-request/http-request-common.js.map +0 -1
  227. package/http/http-request/index.android.d.ts +0 -7
  228. package/http/http-request/index.android.js +0 -290
  229. package/http/http-request/index.android.js.map +0 -1
  230. package/http/http-request/index.ios.d.ts +0 -7
  231. package/http/http-request/index.ios.js +0 -236
  232. package/http/http-request/index.ios.js.map +0 -1
  233. package/http/index.js +0 -74
  234. package/http/index.js.map +0 -1
  235. package/image-asset/image-asset-common.d.ts +0 -26
  236. package/image-asset/image-asset-common.js +0 -51
  237. package/image-asset/image-asset-common.js.map +0 -1
  238. package/image-asset/index.android.d.ts +0 -10
  239. package/image-asset/index.android.js +0 -42
  240. package/image-asset/index.android.js.map +0 -1
  241. package/image-asset/index.ios.d.ts +0 -11
  242. package/image-asset/index.ios.js +0 -84
  243. package/image-asset/index.ios.js.map +0 -1
  244. package/image-source/image-source-common.d.ts +0 -4
  245. package/image-source/image-source-common.js +0 -21
  246. package/image-source/image-source-common.js.map +0 -1
  247. package/image-source/index.android.d.ts +0 -57
  248. package/image-source/index.android.js +0 -381
  249. package/image-source/index.android.js.map +0 -1
  250. package/image-source/index.ios.d.ts +0 -56
  251. package/image-source/index.ios.js +0 -449
  252. package/image-source/index.ios.js.map +0 -1
  253. package/index.js +0 -36
  254. package/index.js.map +0 -1
  255. package/inspector_modules.d.ts +0 -1
  256. package/inspector_modules.js +0 -5
  257. package/inspector_modules.js.map +0 -1
  258. package/matrix/index.js +0 -45
  259. package/matrix/index.js.map +0 -1
  260. package/media-query-list/index.d.ts +0 -21
  261. package/media-query-list/index.js +0 -169
  262. package/media-query-list/index.js.map +0 -1
  263. package/module-name-resolver/index.js +0 -79
  264. package/module-name-resolver/index.js.map +0 -1
  265. package/module-name-resolver/non-bundle-workflow-compat.d.ts +0 -6
  266. package/module-name-resolver/non-bundle-workflow-compat.js +0 -119
  267. package/module-name-resolver/non-bundle-workflow-compat.js.map +0 -1
  268. package/module-name-resolver/qualifier-matcher/index.js +0 -141
  269. package/module-name-resolver/qualifier-matcher/index.js.map +0 -1
  270. package/platform/common.d.ts +0 -9
  271. package/platform/common.js +0 -13
  272. package/platform/common.js.map +0 -1
  273. package/platform/device/index.android.d.ts +0 -20
  274. package/platform/device/index.android.js +0 -78
  275. package/platform/device/index.android.js.map +0 -1
  276. package/platform/device/index.ios.d.ts +0 -19
  277. package/platform/device/index.ios.js +0 -69
  278. package/platform/device/index.ios.js.map +0 -1
  279. package/platform/index.js +0 -4
  280. package/platform/index.js.map +0 -1
  281. package/platform/screen/index.android.d.ts +0 -15
  282. package/platform/screen/index.android.js +0 -39
  283. package/platform/screen/index.android.js.map +0 -1
  284. package/platform/screen/index.ios.d.ts +0 -15
  285. package/platform/screen/index.ios.js +0 -35
  286. package/platform/screen/index.ios.js.map +0 -1
  287. package/platforms/android/widgets-release.aar +0 -0
  288. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  289. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  290. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  291. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  292. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/NSCWinterCG +0 -0
  293. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Resources/Info.plist +0 -52
  294. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/Current/NSCWinterCG +0 -0
  295. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  296. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  297. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  298. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  299. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  300. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  301. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  302. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  303. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  304. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +0 -6
  305. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  306. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  307. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +0 -52
  308. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  309. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  310. package/polyfills/formdata.d.ts +0 -6
  311. package/polyfills/formdata.js +0 -16
  312. package/polyfills/formdata.js.map +0 -1
  313. package/profiling/index.js +0 -274
  314. package/profiling/index.js.map +0 -1
  315. package/text/formatted-string.js +0 -2
  316. package/text/formatted-string.js.map +0 -1
  317. package/text/index.android.d.ts +0 -9
  318. package/text/index.android.js +0 -11
  319. package/text/index.android.js.map +0 -1
  320. package/text/index.ios.d.ts +0 -9
  321. package/text/index.ios.js +0 -11
  322. package/text/index.ios.js.map +0 -1
  323. package/text/span.js +0 -2
  324. package/text/span.js.map +0 -1
  325. package/text/text-common.d.ts +0 -12
  326. package/text/text-common.js +0 -111
  327. package/text/text-common.js.map +0 -1
  328. package/timer/index.android.d.ts +0 -4
  329. package/timer/index.android.js +0 -75
  330. package/timer/index.android.js.map +0 -1
  331. package/timer/index.ios.d.ts +0 -4
  332. package/timer/index.ios.js +0 -68
  333. package/timer/index.ios.js.map +0 -1
  334. package/trace/index.js +0 -255
  335. package/trace/index.js.map +0 -1
  336. package/ui/action-bar/action-bar-common.d.ts +0 -81
  337. package/ui/action-bar/action-bar-common.js +0 -369
  338. package/ui/action-bar/action-bar-common.js.map +0 -1
  339. package/ui/action-bar/index.android.d.ts +0 -47
  340. package/ui/action-bar/index.android.js +0 -469
  341. package/ui/action-bar/index.android.js.map +0 -1
  342. package/ui/action-bar/index.ios.d.ts +0 -38
  343. package/ui/action-bar/index.ios.js +0 -481
  344. package/ui/action-bar/index.ios.js.map +0 -1
  345. package/ui/activity-indicator/activity-indicator-common.d.ts +0 -7
  346. package/ui/activity-indicator/activity-indicator-common.js +0 -17
  347. package/ui/activity-indicator/activity-indicator-common.js.map +0 -1
  348. package/ui/activity-indicator/index.android.d.ts +0 -6
  349. package/ui/activity-indicator/index.android.js +0 -56
  350. package/ui/activity-indicator/index.android.js.map +0 -1
  351. package/ui/activity-indicator/index.ios.d.ts +0 -8
  352. package/ui/activity-indicator/index.ios.js +0 -48
  353. package/ui/activity-indicator/index.ios.js.map +0 -1
  354. package/ui/animation/animation-common.d.ts +0 -40
  355. package/ui/animation/animation-common.js +0 -186
  356. package/ui/animation/animation-common.js.map +0 -1
  357. package/ui/animation/animation-interfaces.d.ts +0 -63
  358. package/ui/animation/animation-interfaces.js +0 -2
  359. package/ui/animation/animation-interfaces.js.map +0 -1
  360. package/ui/animation/index.android.d.ts +0 -25
  361. package/ui/animation/index.android.js +0 -509
  362. package/ui/animation/index.android.js.map +0 -1
  363. package/ui/animation/index.ios.d.ts +0 -46
  364. package/ui/animation/index.ios.js +0 -906
  365. package/ui/animation/index.ios.js.map +0 -1
  366. package/ui/animation/keyframe-animation.js +0 -245
  367. package/ui/animation/keyframe-animation.js.map +0 -1
  368. package/ui/builder/binding-builder.js +0 -171
  369. package/ui/builder/binding-builder.js.map +0 -1
  370. package/ui/builder/component-builder/index.d.ts +0 -7
  371. package/ui/builder/component-builder/index.js +0 -221
  372. package/ui/builder/component-builder/index.js.map +0 -1
  373. package/ui/builder/index.js +0 -202
  374. package/ui/builder/index.js.map +0 -1
  375. package/ui/builder/xml2ui.d.ts +0 -134
  376. package/ui/builder/xml2ui.js +0 -393
  377. package/ui/builder/xml2ui.js.map +0 -1
  378. package/ui/button/button-common.d.ts +0 -9
  379. package/ui/button/button-common.js +0 -26
  380. package/ui/button/button-common.js.map +0 -1
  381. package/ui/button/index.android.d.ts +0 -14
  382. package/ui/button/index.android.js +0 -150
  383. package/ui/button/index.android.js.map +0 -1
  384. package/ui/button/index.ios.d.ts +0 -13
  385. package/ui/button/index.ios.js +0 -270
  386. package/ui/button/index.ios.js.map +0 -1
  387. package/ui/content-view/index.js +0 -87
  388. package/ui/content-view/index.js.map +0 -1
  389. package/ui/core/bindable/bindable-expressions.d.ts +0 -7
  390. package/ui/core/bindable/bindable-expressions.js +0 -255
  391. package/ui/core/bindable/bindable-expressions.js.map +0 -1
  392. package/ui/core/bindable/bindable-resources.d.ts +0 -2
  393. package/ui/core/bindable/bindable-resources.js +0 -8
  394. package/ui/core/bindable/bindable-resources.js.map +0 -1
  395. package/ui/core/bindable/index.d.ts +0 -89
  396. package/ui/core/bindable/index.js +0 -556
  397. package/ui/core/bindable/index.js.map +0 -1
  398. package/ui/core/control-state-change/index.android.d.ts +0 -6
  399. package/ui/core/control-state-change/index.android.js +0 -8
  400. package/ui/core/control-state-change/index.android.js.map +0 -1
  401. package/ui/core/control-state-change/index.ios.d.ts +0 -14
  402. package/ui/core/control-state-change/index.ios.js +0 -61
  403. package/ui/core/control-state-change/index.ios.js.map +0 -1
  404. package/ui/core/properties/index.d.ts +0 -178
  405. package/ui/core/properties/index.js +0 -1133
  406. package/ui/core/properties/index.js.map +0 -1
  407. package/ui/core/view/index.android.d.ts +0 -98
  408. package/ui/core/view/index.android.js +0 -1205
  409. package/ui/core/view/index.android.js.map +0 -1
  410. package/ui/core/view/index.ios.d.ts +0 -95
  411. package/ui/core/view/index.ios.js +0 -1015
  412. package/ui/core/view/index.ios.js.map +0 -1
  413. package/ui/core/view/view-common.d.ts +0 -288
  414. package/ui/core/view/view-common.js +0 -1100
  415. package/ui/core/view/view-common.js.map +0 -1
  416. package/ui/core/view/view-helper/index.android.d.ts +0 -9
  417. package/ui/core/view/view-helper/index.android.js +0 -56
  418. package/ui/core/view/view-helper/index.android.js.map +0 -1
  419. package/ui/core/view/view-helper/index.ios.d.ts +0 -67
  420. package/ui/core/view/view-helper/index.ios.js +0 -329
  421. package/ui/core/view/view-helper/index.ios.js.map +0 -1
  422. package/ui/core/view/view-helper/view-helper-common.d.ts +0 -11
  423. package/ui/core/view/view-helper/view-helper-common.js +0 -157
  424. package/ui/core/view/view-helper/view-helper-common.js.map +0 -1
  425. package/ui/core/view-base/index.js +0 -1166
  426. package/ui/core/view-base/index.js.map +0 -1
  427. package/ui/core/weak-event-listener/index.js +0 -123
  428. package/ui/core/weak-event-listener/index.js.map +0 -1
  429. package/ui/date-picker/date-picker-common.d.ts +0 -27
  430. package/ui/date-picker/date-picker-common.js +0 -81
  431. package/ui/date-picker/date-picker-common.js.map +0 -1
  432. package/ui/date-picker/index.android.d.ts +0 -11
  433. package/ui/date-picker/index.android.js +0 -131
  434. package/ui/date-picker/index.android.js.map +0 -1
  435. package/ui/date-picker/index.ios.d.ts +0 -10
  436. package/ui/date-picker/index.ios.js +0 -165
  437. package/ui/date-picker/index.ios.js.map +0 -1
  438. package/ui/dialogs/dialogs-common.d.ts +0 -215
  439. package/ui/dialogs/dialogs-common.js +0 -167
  440. package/ui/dialogs/dialogs-common.js.map +0 -1
  441. package/ui/dialogs/index.android.d.ts +0 -20
  442. package/ui/dialogs/index.android.js +0 -329
  443. package/ui/dialogs/index.android.js.map +0 -1
  444. package/ui/dialogs/index.ios.d.ts +0 -17
  445. package/ui/dialogs/index.ios.js +0 -329
  446. package/ui/dialogs/index.ios.js.map +0 -1
  447. package/ui/editable-text-base/editable-text-base-common.d.ts +0 -39
  448. package/ui/editable-text-base/editable-text-base-common.js +0 -82
  449. package/ui/editable-text-base/editable-text-base-common.js.map +0 -1
  450. package/ui/editable-text-base/index.android.d.ts +0 -26
  451. package/ui/editable-text-base/index.android.js +0 -505
  452. package/ui/editable-text-base/index.android.js.map +0 -1
  453. package/ui/editable-text-base/index.ios.d.ts +0 -10
  454. package/ui/editable-text-base/index.ios.js +0 -261
  455. package/ui/editable-text-base/index.ios.js.map +0 -1
  456. package/ui/embedding/index.android.d.ts +0 -4
  457. package/ui/embedding/index.android.js +0 -14
  458. package/ui/embedding/index.android.js.map +0 -1
  459. package/ui/embedding/index.ios.d.ts +0 -1
  460. package/ui/embedding/index.ios.js +0 -4
  461. package/ui/embedding/index.ios.js.map +0 -1
  462. package/ui/enums/enums.js +0 -6
  463. package/ui/enums/enums.js.map +0 -1
  464. package/ui/enums/index.js +0 -6
  465. package/ui/enums/index.js.map +0 -1
  466. package/ui/frame/activity.android.d.ts +0 -1
  467. package/ui/frame/activity.android.js +0 -110
  468. package/ui/frame/activity.android.js.map +0 -1
  469. package/ui/frame/callbacks/activity-callbacks.d.ts +0 -20
  470. package/ui/frame/callbacks/activity-callbacks.js +0 -301
  471. package/ui/frame/callbacks/activity-callbacks.js.map +0 -1
  472. package/ui/frame/callbacks/fragment-callbacks.d.ts +0 -19
  473. package/ui/frame/callbacks/fragment-callbacks.js +0 -273
  474. package/ui/frame/callbacks/fragment-callbacks.js.map +0 -1
  475. package/ui/frame/fragment.android.d.ts +0 -3
  476. package/ui/frame/fragment.android.js +0 -92
  477. package/ui/frame/fragment.android.js.map +0 -1
  478. package/ui/frame/fragment.ios.d.ts +0 -3
  479. package/ui/frame/fragment.ios.js +0 -4
  480. package/ui/frame/fragment.ios.js.map +0 -1
  481. package/ui/frame/fragment.transitions.android.d.ts +0 -36
  482. package/ui/frame/fragment.transitions.android.js +0 -591
  483. package/ui/frame/fragment.transitions.android.js.map +0 -1
  484. package/ui/frame/fragment.transitions.types.d.ts +0 -6
  485. package/ui/frame/fragment.transitions.types.js +0 -2
  486. package/ui/frame/fragment.transitions.types.js.map +0 -1
  487. package/ui/frame/frame-common.d.ts +0 -97
  488. package/ui/frame/frame-common.js +0 -673
  489. package/ui/frame/frame-common.js.map +0 -1
  490. package/ui/frame/frame-helpers.d.ts +0 -16
  491. package/ui/frame/frame-helpers.js +0 -19
  492. package/ui/frame/frame-helpers.js.map +0 -1
  493. package/ui/frame/frame-interfaces.d.ts +0 -95
  494. package/ui/frame/frame-interfaces.js +0 -7
  495. package/ui/frame/frame-interfaces.js.map +0 -1
  496. package/ui/frame/frame-stack.d.ts +0 -6
  497. package/ui/frame/frame-stack.js +0 -38
  498. package/ui/frame/frame-stack.js.map +0 -1
  499. package/ui/frame/index.android.d.ts +0 -65
  500. package/ui/frame/index.android.js +0 -685
  501. package/ui/frame/index.android.js.map +0 -1
  502. package/ui/frame/index.ios.d.ts +0 -57
  503. package/ui/frame/index.ios.js +0 -648
  504. package/ui/frame/index.ios.js.map +0 -1
  505. package/ui/gestures/gestures-common.d.ts +0 -279
  506. package/ui/gestures/gestures-common.js +0 -199
  507. package/ui/gestures/gestures-common.js.map +0 -1
  508. package/ui/gestures/index.android.d.ts +0 -21
  509. package/ui/gestures/index.android.js +0 -595
  510. package/ui/gestures/index.android.js.map +0 -1
  511. package/ui/gestures/index.ios.d.ts +0 -36
  512. package/ui/gestures/index.ios.js +0 -512
  513. package/ui/gestures/index.ios.js.map +0 -1
  514. package/ui/gestures/touch-manager.d.ts +0 -82
  515. package/ui/gestures/touch-manager.js +0 -269
  516. package/ui/gestures/touch-manager.js.map +0 -1
  517. package/ui/html-view/html-view-common.d.ts +0 -13
  518. package/ui/html-view/html-view-common.js +0 -35
  519. package/ui/html-view/html-view-common.js.map +0 -1
  520. package/ui/html-view/index.android.d.ts +0 -7
  521. package/ui/html-view/index.android.js +0 -86
  522. package/ui/html-view/index.android.js.map +0 -1
  523. package/ui/html-view/index.ios.d.ts +0 -11
  524. package/ui/html-view/index.ios.js +0 -103
  525. package/ui/html-view/index.ios.js.map +0 -1
  526. package/ui/image/image-common.d.ts +0 -43
  527. package/ui/image/image-common.js +0 -191
  528. package/ui/image/image-common.js.map +0 -1
  529. package/ui/image/index.android.d.ts +0 -13
  530. package/ui/image/index.android.js +0 -167
  531. package/ui/image/index.android.js.map +0 -1
  532. package/ui/image/index.ios.d.ts +0 -17
  533. package/ui/image/index.ios.js +0 -186
  534. package/ui/image/index.ios.js.map +0 -1
  535. package/ui/image/symbol-effects-common.d.ts +0 -36
  536. package/ui/image/symbol-effects-common.js +0 -35
  537. package/ui/image/symbol-effects-common.js.map +0 -1
  538. package/ui/image/symbol-effects.android.d.ts +0 -5
  539. package/ui/image/symbol-effects.android.js +0 -8
  540. package/ui/image/symbol-effects.android.js.map +0 -1
  541. package/ui/image/symbol-effects.ios.d.ts +0 -6
  542. package/ui/image/symbol-effects.ios.js +0 -79
  543. package/ui/image/symbol-effects.ios.js.map +0 -1
  544. package/ui/image-cache/image-cache-common.d.ts +0 -40
  545. package/ui/image-cache/image-cache-common.js +0 -176
  546. package/ui/image-cache/image-cache-common.js.map +0 -1
  547. package/ui/image-cache/index.android.d.ts +0 -11
  548. package/ui/image-cache/index.android.js +0 -76
  549. package/ui/image-cache/index.android.js.map +0 -1
  550. package/ui/image-cache/index.ios.d.ts +0 -11
  551. package/ui/image-cache/index.ios.js +0 -84
  552. package/ui/image-cache/index.ios.js.map +0 -1
  553. package/ui/index.d.ts +0 -78
  554. package/ui/index.js +0 -62
  555. package/ui/index.js.map +0 -1
  556. package/ui/label/index.android.d.ts +0 -11
  557. package/ui/label/index.android.js +0 -40
  558. package/ui/label/index.android.js.map +0 -1
  559. package/ui/label/index.ios.d.ts +0 -16
  560. package/ui/label/index.ios.js +0 -220
  561. package/ui/label/index.ios.js.map +0 -1
  562. package/ui/layouts/absolute-layout/absolute-layout-common.d.ts +0 -16
  563. package/ui/layouts/absolute-layout/absolute-layout-common.js +0 -70
  564. package/ui/layouts/absolute-layout/absolute-layout-common.js.map +0 -1
  565. package/ui/layouts/absolute-layout/index.android.d.ts +0 -6
  566. package/ui/layouts/absolute-layout/index.android.js +0 -26
  567. package/ui/layouts/absolute-layout/index.android.js.map +0 -1
  568. package/ui/layouts/absolute-layout/index.ios.d.ts +0 -10
  569. package/ui/layouts/absolute-layout/index.ios.js +0 -48
  570. package/ui/layouts/absolute-layout/index.ios.js.map +0 -1
  571. package/ui/layouts/dock-layout/dock-layout-common.d.ts +0 -14
  572. package/ui/layouts/dock-layout/dock-layout-common.js +0 -51
  573. package/ui/layouts/dock-layout/dock-layout-common.js.map +0 -1
  574. package/ui/layouts/dock-layout/index.android.d.ts +0 -6
  575. package/ui/layouts/dock-layout/index.android.js +0 -38
  576. package/ui/layouts/dock-layout/index.android.js.map +0 -1
  577. package/ui/layouts/dock-layout/index.ios.d.ts +0 -8
  578. package/ui/layouts/dock-layout/index.ios.js +0 -115
  579. package/ui/layouts/dock-layout/index.ios.js.map +0 -1
  580. package/ui/layouts/flexbox-layout/flexbox-layout-common.d.ts +0 -126
  581. package/ui/layouts/flexbox-layout/flexbox-layout-common.js +0 -402
  582. package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +0 -1
  583. package/ui/layouts/flexbox-layout/index.android.d.ts +0 -12
  584. package/ui/layouts/flexbox-layout/index.android.js +0 -133
  585. package/ui/layouts/flexbox-layout/index.android.js.map +0 -1
  586. package/ui/layouts/flexbox-layout/index.ios.d.ts +0 -44
  587. package/ui/layouts/flexbox-layout/index.ios.js +0 -1232
  588. package/ui/layouts/flexbox-layout/index.ios.js.map +0 -1
  589. package/ui/layouts/grid-layout/grid-layout-common.d.ts +0 -72
  590. package/ui/layouts/grid-layout/grid-layout-common.js +0 -323
  591. package/ui/layouts/grid-layout/grid-layout-common.js.map +0 -1
  592. package/ui/layouts/grid-layout/index.android.d.ts +0 -22
  593. package/ui/layouts/grid-layout/index.android.js +0 -117
  594. package/ui/layouts/grid-layout/index.android.js.map +0 -1
  595. package/ui/layouts/grid-layout/index.ios.d.ts +0 -28
  596. package/ui/layouts/grid-layout/index.ios.js +0 -777
  597. package/ui/layouts/grid-layout/index.ios.js.map +0 -1
  598. package/ui/layouts/index.js +0 -9
  599. package/ui/layouts/index.js.map +0 -1
  600. package/ui/layouts/layout-base-common.d.ts +0 -36
  601. package/ui/layouts/layout-base-common.js +0 -146
  602. package/ui/layouts/layout-base-common.js.map +0 -1
  603. package/ui/layouts/layout-base.android.d.ts +0 -4
  604. package/ui/layouts/layout-base.android.js +0 -44
  605. package/ui/layouts/layout-base.android.js.map +0 -1
  606. package/ui/layouts/layout-base.ios.d.ts +0 -10
  607. package/ui/layouts/layout-base.ios.js +0 -34
  608. package/ui/layouts/layout-base.ios.js.map +0 -1
  609. package/ui/layouts/root-layout/index.android.d.ts +0 -16
  610. package/ui/layouts/root-layout/index.android.js +0 -115
  611. package/ui/layouts/root-layout/index.android.js.map +0 -1
  612. package/ui/layouts/root-layout/index.ios.d.ts +0 -16
  613. package/ui/layouts/root-layout/index.ios.js +0 -96
  614. package/ui/layouts/root-layout/index.ios.js.map +0 -1
  615. package/ui/layouts/root-layout/root-layout-common.d.ts +0 -54
  616. package/ui/layouts/root-layout/root-layout-common.js +0 -394
  617. package/ui/layouts/root-layout/root-layout-common.js.map +0 -1
  618. package/ui/layouts/stack-layout/index.android.d.ts +0 -6
  619. package/ui/layouts/stack-layout/index.android.js +0 -11
  620. package/ui/layouts/stack-layout/index.android.js.map +0 -1
  621. package/ui/layouts/stack-layout/index.ios.d.ts +0 -10
  622. package/ui/layouts/stack-layout/index.ios.js +0 -151
  623. package/ui/layouts/stack-layout/index.ios.js.map +0 -1
  624. package/ui/layouts/stack-layout/stack-layout-common.d.ts +0 -8
  625. package/ui/layouts/stack-layout/stack-layout-common.js +0 -19
  626. package/ui/layouts/stack-layout/stack-layout-common.js.map +0 -1
  627. package/ui/layouts/wrap-layout/index.android.d.ts +0 -6
  628. package/ui/layouts/wrap-layout/index.android.js +0 -18
  629. package/ui/layouts/wrap-layout/index.android.js.map +0 -1
  630. package/ui/layouts/wrap-layout/index.ios.d.ts +0 -8
  631. package/ui/layouts/wrap-layout/index.ios.js +0 -170
  632. package/ui/layouts/wrap-layout/index.ios.js.map +0 -1
  633. package/ui/layouts/wrap-layout/wrap-layout-common.d.ts +0 -15
  634. package/ui/layouts/wrap-layout/wrap-layout-common.js +0 -38
  635. package/ui/layouts/wrap-layout/wrap-layout-common.js.map +0 -1
  636. package/ui/list-picker/index.android.d.ts +0 -10
  637. package/ui/list-picker/index.android.js +0 -177
  638. package/ui/list-picker/index.android.js.map +0 -1
  639. package/ui/list-picker/index.ios.d.ts +0 -11
  640. package/ui/list-picker/index.ios.js +0 -99
  641. package/ui/list-picker/index.ios.js.map +0 -1
  642. package/ui/list-picker/list-picker-common.d.ts +0 -22
  643. package/ui/list-picker/list-picker-common.js +0 -77
  644. package/ui/list-picker/list-picker-common.js.map +0 -1
  645. package/ui/list-view/index.android.d.ts +0 -32
  646. package/ui/list-view/index.android.js +0 -359
  647. package/ui/list-view/index.android.js.map +0 -1
  648. package/ui/list-view/index.ios.d.ts +0 -45
  649. package/ui/list-view/index.ios.js +0 -456
  650. package/ui/list-view/index.ios.js.map +0 -1
  651. package/ui/list-view/list-view-common.d.ts +0 -66
  652. package/ui/list-view/list-view-common.js +0 -210
  653. package/ui/list-view/list-view-common.js.map +0 -1
  654. package/ui/page/index.android.d.ts +0 -13
  655. package/ui/page/index.android.js +0 -148
  656. package/ui/page/index.android.js.map +0 -1
  657. package/ui/page/index.ios.d.ts +0 -45
  658. package/ui/page/index.ios.js +0 -600
  659. package/ui/page/index.ios.js.map +0 -1
  660. package/ui/page/page-common.d.ts +0 -77
  661. package/ui/page/page-common.js +0 -186
  662. package/ui/page/page-common.js.map +0 -1
  663. package/ui/placeholder/index.android.d.ts +0 -12
  664. package/ui/placeholder/index.android.js +0 -21
  665. package/ui/placeholder/index.android.js.map +0 -1
  666. package/ui/placeholder/index.js +0 -16
  667. package/ui/placeholder/index.js.map +0 -1
  668. package/ui/placeholder/placeholder-common.d.ts +0 -12
  669. package/ui/placeholder/placeholder-common.js +0 -2
  670. package/ui/placeholder/placeholder-common.js.map +0 -1
  671. package/ui/progress/index.android.d.ts +0 -6
  672. package/ui/progress/index.android.js +0 -65
  673. package/ui/progress/index.android.js.map +0 -1
  674. package/ui/progress/index.ios.d.ts +0 -7
  675. package/ui/progress/index.ios.js +0 -45
  676. package/ui/progress/index.ios.js.map +0 -1
  677. package/ui/progress/progress-common.d.ts +0 -15
  678. package/ui/progress/progress-common.js +0 -34
  679. package/ui/progress/progress-common.js.map +0 -1
  680. package/ui/proxy-view-container/index.d.ts +0 -31
  681. package/ui/proxy-view-container/index.js +0 -244
  682. package/ui/proxy-view-container/index.js.map +0 -1
  683. package/ui/repeater/index.d.ts +0 -65
  684. package/ui/repeater/index.js +0 -219
  685. package/ui/repeater/index.js.map +0 -1
  686. package/ui/scroll-view/index.android.d.ts +0 -22
  687. package/ui/scroll-view/index.android.js +0 -157
  688. package/ui/scroll-view/index.android.js.map +0 -1
  689. package/ui/scroll-view/index.ios.d.ts +0 -23
  690. package/ui/scroll-view/index.ios.js +0 -174
  691. package/ui/scroll-view/index.ios.js.map +0 -1
  692. package/ui/scroll-view/scroll-view-common.d.ts +0 -32
  693. package/ui/scroll-view/scroll-view-common.js +0 -93
  694. package/ui/scroll-view/scroll-view-common.js.map +0 -1
  695. package/ui/search-bar/index.android.d.ts +0 -14
  696. package/ui/search-bar/index.android.js +0 -239
  697. package/ui/search-bar/index.android.js.map +0 -1
  698. package/ui/search-bar/index.ios.d.ts +0 -14
  699. package/ui/search-bar/index.ios.js +0 -195
  700. package/ui/search-bar/index.ios.js.map +0 -1
  701. package/ui/search-bar/search-bar-common.d.ts +0 -17
  702. package/ui/search-bar/search-bar-common.js +0 -37
  703. package/ui/search-bar/search-bar-common.js.map +0 -1
  704. package/ui/segmented-bar/index.android.d.ts +0 -21
  705. package/ui/segmented-bar/index.android.js +0 -283
  706. package/ui/segmented-bar/index.android.js.map +0 -1
  707. package/ui/segmented-bar/index.ios.d.ts +0 -15
  708. package/ui/segmented-bar/index.ios.js +0 -140
  709. package/ui/segmented-bar/index.ios.js.map +0 -1
  710. package/ui/segmented-bar/segmented-bar-common.d.ts +0 -37
  711. package/ui/segmented-bar/segmented-bar-common.js +0 -146
  712. package/ui/segmented-bar/segmented-bar-common.js.map +0 -1
  713. package/ui/slider/index.android.d.ts +0 -18
  714. package/ui/slider/index.android.js +0 -118
  715. package/ui/slider/index.android.js.map +0 -1
  716. package/ui/slider/index.ios.d.ts +0 -19
  717. package/ui/slider/index.ios.js +0 -145
  718. package/ui/slider/index.ios.js.map +0 -1
  719. package/ui/slider/slider-common.d.ts +0 -26
  720. package/ui/slider/slider-common.js +0 -68
  721. package/ui/slider/slider-common.js.map +0 -1
  722. package/ui/styling/background-common.d.ts +0 -78
  723. package/ui/styling/background-common.js +0 -222
  724. package/ui/styling/background-common.js.map +0 -1
  725. package/ui/styling/background.android.d.ts +0 -9
  726. package/ui/styling/background.android.js +0 -135
  727. package/ui/styling/background.android.js.map +0 -1
  728. package/ui/styling/background.ios.d.ts +0 -34
  729. package/ui/styling/background.ios.js +0 -1100
  730. package/ui/styling/background.ios.js.map +0 -1
  731. package/ui/styling/box-shadow.d.ts +0 -9
  732. package/ui/styling/box-shadow.js +0 -3
  733. package/ui/styling/box-shadow.js.map +0 -1
  734. package/ui/styling/converters.js +0 -41
  735. package/ui/styling/converters.js.map +0 -1
  736. package/ui/styling/css-animation-parser.d.ts +0 -14
  737. package/ui/styling/css-animation-parser.js +0 -188
  738. package/ui/styling/css-animation-parser.js.map +0 -1
  739. package/ui/styling/css-selector.d.ts +0 -270
  740. package/ui/styling/css-selector.js +0 -928
  741. package/ui/styling/css-selector.js.map +0 -1
  742. package/ui/styling/css-shadow.d.ts +0 -19
  743. package/ui/styling/css-shadow.js +0 -26
  744. package/ui/styling/css-shadow.js.map +0 -1
  745. package/ui/styling/css-stroke.d.ts +0 -12
  746. package/ui/styling/css-stroke.js +0 -19
  747. package/ui/styling/css-stroke.js.map +0 -1
  748. package/ui/styling/css-utils.d.ts +0 -7
  749. package/ui/styling/css-utils.js +0 -65
  750. package/ui/styling/css-utils.js.map +0 -1
  751. package/ui/styling/font-common.d.ts +0 -63
  752. package/ui/styling/font-common.js +0 -241
  753. package/ui/styling/font-common.js.map +0 -1
  754. package/ui/styling/font-interfaces.d.ts +0 -15
  755. package/ui/styling/font-interfaces.js +0 -2
  756. package/ui/styling/font-interfaces.js.map +0 -1
  757. package/ui/styling/font.android.d.ts +0 -8
  758. package/ui/styling/font.android.js +0 -146
  759. package/ui/styling/font.android.js.map +0 -1
  760. package/ui/styling/font.ios.d.ts +0 -12
  761. package/ui/styling/font.ios.js +0 -143
  762. package/ui/styling/font.ios.js.map +0 -1
  763. package/ui/styling/linear-gradient.d.ts +0 -13
  764. package/ui/styling/linear-gradient.js +0 -48
  765. package/ui/styling/linear-gradient.js.map +0 -1
  766. package/ui/styling/style/index.d.ts +0 -162
  767. package/ui/styling/style/index.js +0 -67
  768. package/ui/styling/style/index.js.map +0 -1
  769. package/ui/styling/style-properties.js +0 -1331
  770. package/ui/styling/style-properties.js.map +0 -1
  771. package/ui/styling/style-scope.js +0 -1017
  772. package/ui/styling/style-scope.js.map +0 -1
  773. package/ui/switch/index.android.d.ts +0 -11
  774. package/ui/switch/index.android.js +0 -111
  775. package/ui/switch/index.android.js.map +0 -1
  776. package/ui/switch/index.ios.d.ts +0 -14
  777. package/ui/switch/index.ios.js +0 -147
  778. package/ui/switch/index.ios.js.map +0 -1
  779. package/ui/switch/switch-common.d.ts +0 -12
  780. package/ui/switch/switch-common.js +0 -38
  781. package/ui/switch/switch-common.js.map +0 -1
  782. package/ui/tab-view/index.android.d.ts +0 -37
  783. package/ui/tab-view/index.android.js +0 -604
  784. package/ui/tab-view/index.android.js.map +0 -1
  785. package/ui/tab-view/index.ios.d.ts +0 -49
  786. package/ui/tab-view/index.ios.js +0 -583
  787. package/ui/tab-view/index.ios.js.map +0 -1
  788. package/ui/tab-view/tab-view-common.d.ts +0 -71
  789. package/ui/tab-view/tab-view-common.js +0 -263
  790. package/ui/tab-view/tab-view-common.js.map +0 -1
  791. package/ui/text-base/formatted-string.js +0 -163
  792. package/ui/text-base/formatted-string.js.map +0 -1
  793. package/ui/text-base/index.android.d.ts +0 -16
  794. package/ui/text-base/index.android.js +0 -500
  795. package/ui/text-base/index.android.js.map +0 -1
  796. package/ui/text-base/index.ios.d.ts +0 -30
  797. package/ui/text-base/index.ios.js +0 -569
  798. package/ui/text-base/index.ios.js.map +0 -1
  799. package/ui/text-base/span.js +0 -113
  800. package/ui/text-base/span.js.map +0 -1
  801. package/ui/text-base/text-base-common.d.ts +0 -98
  802. package/ui/text-base/text-base-common.js +0 -323
  803. package/ui/text-base/text-base-common.js.map +0 -1
  804. package/ui/text-field/index.android.d.ts +0 -7
  805. package/ui/text-field/index.android.js +0 -95
  806. package/ui/text-field/index.android.js.map +0 -1
  807. package/ui/text-field/index.ios.d.ts +0 -25
  808. package/ui/text-field/index.ios.js +0 -277
  809. package/ui/text-field/index.ios.js.map +0 -1
  810. package/ui/text-field/text-field-common.d.ts +0 -11
  811. package/ui/text-field/text-field-common.js +0 -25
  812. package/ui/text-field/text-field-common.js.map +0 -1
  813. package/ui/text-view/index.android.d.ts +0 -6
  814. package/ui/text-view/index.android.js +0 -19
  815. package/ui/text-view/index.android.js.map +0 -1
  816. package/ui/text-view/index.ios.d.ts +0 -24
  817. package/ui/text-view/index.ios.js +0 -366
  818. package/ui/text-view/index.ios.js.map +0 -1
  819. package/ui/text-view/text-view-common.d.ts +0 -6
  820. package/ui/text-view/text-view-common.js +0 -5
  821. package/ui/text-view/text-view-common.js.map +0 -1
  822. package/ui/time-picker/index.android.d.ts +0 -8
  823. package/ui/time-picker/index.android.js +0 -79
  824. package/ui/time-picker/index.android.js.map +0 -1
  825. package/ui/time-picker/index.ios.d.ts +0 -11
  826. package/ui/time-picker/index.ios.js +0 -138
  827. package/ui/time-picker/index.ios.js.map +0 -1
  828. package/ui/time-picker/time-picker-common.d.ts +0 -30
  829. package/ui/time-picker/time-picker-common.js +0 -175
  830. package/ui/time-picker/time-picker-common.js.map +0 -1
  831. package/ui/transition/fade-transition.android.d.ts +0 -4
  832. package/ui/transition/fade-transition.android.js +0 -28
  833. package/ui/transition/fade-transition.android.js.map +0 -1
  834. package/ui/transition/fade-transition.ios.d.ts +0 -17
  835. package/ui/transition/fade-transition.ios.js +0 -65
  836. package/ui/transition/fade-transition.ios.js.map +0 -1
  837. package/ui/transition/flip-transition.android.d.ts +0 -6
  838. package/ui/transition/flip-transition.android.js +0 -90
  839. package/ui/transition/flip-transition.android.js.map +0 -1
  840. package/ui/transition/index.android.d.ts +0 -19
  841. package/ui/transition/index.android.js +0 -37
  842. package/ui/transition/index.android.js.map +0 -1
  843. package/ui/transition/index.ios.d.ts +0 -14
  844. package/ui/transition/index.ios.js +0 -30
  845. package/ui/transition/index.ios.js.map +0 -1
  846. package/ui/transition/modal-transition.android.d.ts +0 -5
  847. package/ui/transition/modal-transition.android.js +0 -7
  848. package/ui/transition/modal-transition.android.js.map +0 -1
  849. package/ui/transition/modal-transition.ios.d.ts +0 -34
  850. package/ui/transition/modal-transition.ios.js +0 -182
  851. package/ui/transition/modal-transition.ios.js.map +0 -1
  852. package/ui/transition/page-transition.android.d.ts +0 -10
  853. package/ui/transition/page-transition.android.js +0 -307
  854. package/ui/transition/page-transition.android.js.map +0 -1
  855. package/ui/transition/page-transition.ios.d.ts +0 -35
  856. package/ui/transition/page-transition.ios.js +0 -199
  857. package/ui/transition/page-transition.ios.js.map +0 -1
  858. package/ui/transition/shared-transition-helper.android.d.ts +0 -9
  859. package/ui/transition/shared-transition-helper.android.js +0 -10
  860. package/ui/transition/shared-transition-helper.android.js.map +0 -1
  861. package/ui/transition/shared-transition-helper.ios.d.ts +0 -14
  862. package/ui/transition/shared-transition-helper.ios.js +0 -539
  863. package/ui/transition/shared-transition-helper.ios.js.map +0 -1
  864. package/ui/transition/shared-transition.d.ts +0 -271
  865. package/ui/transition/shared-transition.js +0 -233
  866. package/ui/transition/shared-transition.js.map +0 -1
  867. package/ui/transition/slide-transition.android.d.ts +0 -7
  868. package/ui/transition/slide-transition.android.js +0 -116
  869. package/ui/transition/slide-transition.android.js.map +0 -1
  870. package/ui/transition/slide-transition.ios.d.ts +0 -19
  871. package/ui/transition/slide-transition.ios.js +0 -95
  872. package/ui/transition/slide-transition.ios.js.map +0 -1
  873. package/ui/utils.android.d.ts +0 -5
  874. package/ui/utils.android.js +0 -16
  875. package/ui/utils.android.js.map +0 -1
  876. package/ui/utils.ios.d.ts +0 -12
  877. package/ui/utils.ios.js +0 -66
  878. package/ui/utils.ios.js.map +0 -1
  879. package/ui/web-view/index.android.d.ts +0 -17
  880. package/ui/web-view/index.android.js +0 -180
  881. package/ui/web-view/index.android.js.map +0 -1
  882. package/ui/web-view/index.ios.d.ts +0 -26
  883. package/ui/web-view/index.ios.js +0 -247
  884. package/ui/web-view/index.ios.js.map +0 -1
  885. package/ui/web-view/web-view-common.d.ts +0 -28
  886. package/ui/web-view/web-view-common.js +0 -75
  887. package/ui/web-view/web-view-common.js.map +0 -1
  888. package/ui/web-view/web-view-interfaces.d.ts +0 -12
  889. package/ui/web-view/web-view-interfaces.js +0 -2
  890. package/ui/web-view/web-view-interfaces.js.map +0 -1
  891. package/utils/android/index.d.ts +0 -21
  892. package/utils/android/index.js +0 -169
  893. package/utils/android/index.js.map +0 -1
  894. package/utils/common.d.ts +0 -65
  895. package/utils/common.js +0 -253
  896. package/utils/common.js.map +0 -1
  897. package/utils/constants.android.d.ts +0 -1
  898. package/utils/constants.android.js +0 -2
  899. package/utils/constants.android.js.map +0 -1
  900. package/utils/constants.ios.d.ts +0 -1
  901. package/utils/constants.ios.js +0 -2
  902. package/utils/constants.ios.js.map +0 -1
  903. package/utils/debug.js +0 -61
  904. package/utils/debug.js.map +0 -1
  905. package/utils/index.android.d.ts +0 -24
  906. package/utils/index.android.js +0 -177
  907. package/utils/index.android.js.map +0 -1
  908. package/utils/index.ios.d.ts +0 -19
  909. package/utils/index.ios.js +0 -75
  910. package/utils/index.ios.js.map +0 -1
  911. package/utils/ios/index.d.ts +0 -39
  912. package/utils/ios/index.js +0 -257
  913. package/utils/ios/index.js.map +0 -1
  914. package/utils/layout-helper/index.android.d.ts +0 -24
  915. package/utils/layout-helper/index.android.js +0 -77
  916. package/utils/layout-helper/index.android.js.map +0 -1
  917. package/utils/layout-helper/index.ios.d.ts +0 -24
  918. package/utils/layout-helper/index.ios.js +0 -64
  919. package/utils/layout-helper/index.ios.js.map +0 -1
  920. package/utils/layout-helper/layout-helper-common.d.ts +0 -14
  921. package/utils/layout-helper/layout-helper-common.js +0 -57
  922. package/utils/layout-helper/layout-helper-common.js.map +0 -1
  923. package/utils/lazy.js +0 -5
  924. package/utils/lazy.js.map +0 -1
  925. package/utils/macrotask-scheduler.js +0 -26
  926. package/utils/macrotask-scheduler.js.map +0 -1
  927. package/utils/mainthread-helper.android.d.ts +0 -3
  928. package/utils/mainthread-helper.android.js +0 -28
  929. package/utils/mainthread-helper.android.js.map +0 -1
  930. package/utils/mainthread-helper.ios.d.ts +0 -3
  931. package/utils/mainthread-helper.ios.js +0 -17
  932. package/utils/mainthread-helper.ios.js.map +0 -1
  933. package/utils/module-merge.d.ts +0 -1
  934. package/utils/module-merge.js +0 -8
  935. package/utils/module-merge.js.map +0 -1
  936. package/utils/native-helper.android.d.ts +0 -10
  937. package/utils/native-helper.android.js +0 -139
  938. package/utils/native-helper.android.js.map +0 -1
  939. package/utils/native-helper.ios.d.ts +0 -10
  940. package/utils/native-helper.ios.js +0 -91
  941. package/utils/native-helper.ios.js.map +0 -1
  942. package/utils/number-utils.d.ts +0 -19
  943. package/utils/number-utils.js +0 -37
  944. package/utils/number-utils.js.map +0 -1
  945. package/utils/platform-check.d.ts +0 -4
  946. package/utils/platform-check.js +0 -21
  947. package/utils/platform-check.js.map +0 -1
  948. package/utils/types.js +0 -104
  949. package/utils/types.js.map +0 -1
  950. package/wgc/atob.d.ts +0 -1
  951. package/wgc/atob.js +0 -9
  952. package/wgc/atob.js.map +0 -1
  953. package/wgc/btoa.d.ts +0 -1
  954. package/wgc/btoa.js +0 -9
  955. package/wgc/btoa.js.map +0 -1
  956. package/wgc/crypto/SubtleCrypto.d.ts +0 -63
  957. package/wgc/crypto/SubtleCrypto.js +0 -551
  958. package/wgc/crypto/SubtleCrypto.js.map +0 -1
  959. package/wgc/crypto/index.d.ts +0 -8
  960. package/wgc/crypto/index.js +0 -31
  961. package/wgc/crypto/index.js.map +0 -1
  962. package/wgc/index.d.ts +0 -2
  963. package/wgc/index.js +0 -3
  964. package/wgc/index.js.map +0 -1
  965. package/xhr/index.d.ts +0 -107
  966. package/xhr/index.js +0 -472
  967. package/xhr/index.js.map +0 -1
  968. package/xml/index.js.map +0 -1
@@ -1,1205 +0,0 @@
1
- // Types.
2
- import { ViewCommon, isEnabledProperty, originXProperty, originYProperty, isUserInteractionEnabledProperty, testIDProperty, AndroidHelper } from './view-common';
3
- import { paddingLeftProperty, paddingTopProperty, paddingRightProperty, paddingBottomProperty, Length } from '../../styling/style-properties';
4
- import { layout } from '../../../utils';
5
- import { Trace } from '../../../trace';
6
- import { hiddenProperty } from '../view-base';
7
- import { perspectiveProperty, visibilityProperty, opacityProperty, horizontalAlignmentProperty, verticalAlignmentProperty, minWidthProperty, minHeightProperty, widthProperty, heightProperty, marginLeftProperty, marginTopProperty, marginRightProperty, marginBottomProperty, rotateProperty, rotateXProperty, rotateYProperty, scaleXProperty, scaleYProperty, translateXProperty, translateYProperty, zIndexProperty, backgroundInternalProperty, androidElevationProperty, androidDynamicElevationOffsetProperty } from '../../styling/style-properties';
8
- import { Background, refreshBorderDrawable } from '../../styling/background';
9
- import { profile } from '../../../profiling';
10
- import { topmost } from '../../frame/frame-stack';
11
- import { Screen } from '../../../platform';
12
- import { Application } from '../../../application';
13
- import { accessibilityEnabledProperty, accessibilityHiddenProperty, accessibilityHintProperty, accessibilityIdentifierProperty, accessibilityLabelProperty, accessibilityLiveRegionProperty, accessibilityMediaSessionProperty, accessibilityRoleProperty, accessibilityStateProperty, accessibilityValueProperty } from '../../../accessibility/accessibility-properties';
14
- import { AccessibilityLiveRegion, AccessibilityRole, AndroidAccessibilityEvent, updateAccessibilityProperties, updateContentDescription } from '../../../accessibility';
15
- import * as Utils from '../../../utils';
16
- import { SDK_VERSION } from '../../../utils/constants';
17
- import { _getStoredClassDefaultPropertyValue } from '../properties';
18
- export * from './view-common';
19
- // helpers (these are okay re-exported here)
20
- export * from './view-helper';
21
- // This one can eventually be cleaned up but causes issues with a lot of ui-suite plugins in particular if not exported here
22
- export * from '../properties';
23
- const DOMID = '_domId';
24
- const androidBackPressedEvent = 'androidBackPressed';
25
- const shortAnimTime = 17694720; // android.R.integer.config_shortAnimTime
26
- const statePressed = 16842919; // android.R.attr.state_pressed
27
- const stateEnabled = 16842910; // android.R.attr.state_enabled
28
- const styleAnimationDialog = 16973826; // android.R.style.Animation_Dialog
29
- export const VERTICAL_GRAVITY_MASK = 112; // android.view.Gravity.VERTICAL_GRAVITY_MASK
30
- export const HORIZONTAL_GRAVITY_MASK = 7; // android.view.Gravity.HORIZONTAL_GRAVITY_MASK
31
- export const GRAVITY_LEFT = 3; // android.view.Gravity.LEFT
32
- export const GRAVITY_RIGHT = 5; // android.view.Gravity.RIGHT
33
- export const GRAVITY_TOP = 48; // android.view.Gravity.TOP
34
- export const GRAVITY_BOTTOM = 80; // android.view.Gravity.BOTTOM
35
- export const GRAVITY_CENTER_HORIZONTAL = 1; // android.view.Gravity.CENTER_HORIZONTAL
36
- export const GRAVITY_FILL_HORIZONTAL = 7; // android.view.Gravity.FILL_HORIZONTAL
37
- export const GRAVITY_CENTER_VERTICAL = 16; // android.view.Gravity.CENTER_VERTICAL
38
- export const GRAVITY_FILL_VERTICAL = 112; // android.view.Gravity.FILL_VERTICAL
39
- export const VIEW_GONE = 8; //android.view.View.GONE;
40
- export const VIEW_VISIBLE = 0; //android.view.View.VISIBLE;
41
- export const VIEW_INVISIBLE = 4; //android.view.View.INVISIBLE;
42
- const ViewHelper = org.nativescript.widgets.ViewHelper;
43
- const modalMap = new Map();
44
- let TouchListener;
45
- let DialogFragment;
46
- function initializeTouchListener() {
47
- if (TouchListener) {
48
- return;
49
- }
50
- var TouchListenerImpl = /** @class */ (function (_super) {
51
- __extends(TouchListenerImpl, _super);
52
- function TouchListenerImpl(owner) {
53
- var _this = _super.call(this) || this;
54
- _this.owner = new WeakRef(owner);
55
- return global.__native(_this);
56
- }
57
- TouchListenerImpl.prototype.onTouch = function (view, event) {
58
- var owner = this.owner.get();
59
- if (!owner) {
60
- return;
61
- }
62
- owner.handleGestureTouch(event);
63
- var nativeView = owner.nativeViewProtected;
64
- if (!nativeView || !nativeView.onTouchEvent) {
65
- return false;
66
- }
67
- return nativeView.onTouchEvent(event);
68
- };
69
- TouchListenerImpl = __decorate([
70
- Interfaces([android.view.View.OnTouchListener])
71
- ], TouchListenerImpl);
72
- return TouchListenerImpl;
73
- }(java.lang.Object));
74
- TouchListener = TouchListenerImpl;
75
- }
76
- function initializeDialogFragment() {
77
- if (DialogFragment) {
78
- return;
79
- }
80
- var DialogImpl = /** @class */ (function (_super) {
81
- __extends(DialogImpl, _super);
82
- function DialogImpl(fragment, context, themeResId) {
83
- var _this = _super.call(this, context, themeResId) || this;
84
- _this.fragment = fragment;
85
- return global.__native(_this);
86
- }
87
- DialogImpl.prototype.onDetachedFromWindow = function () {
88
- _super.prototype.onDetachedFromWindow.call(this);
89
- this.fragment = null;
90
- };
91
- DialogImpl.prototype.onBackPressed = function () {
92
- var view = this.fragment.owner;
93
- var args = {
94
- eventName: 'activityBackPressed',
95
- object: view,
96
- activity: view._context,
97
- cancel: false,
98
- };
99
- // Fist fire application.android global event
100
- Application.android.notify(args);
101
- if (args.cancel) {
102
- return;
103
- }
104
- view.notify(args);
105
- if (!args.cancel && !view.onBackPressed()) {
106
- _super.prototype.onBackPressed.call(this);
107
- }
108
- };
109
- return DialogImpl;
110
- }(android.app.Dialog));
111
- var DialogFragmentImpl = /** @class */ (function (_super) {
112
- __extends(DialogFragmentImpl, _super);
113
- function DialogFragmentImpl() {
114
- var _this = _super.call(this) || this;
115
- return global.__native(_this);
116
- }
117
- DialogFragmentImpl.prototype.onCreate = function (savedInstanceState) {
118
- var _a;
119
- _super.prototype.onCreate.call(this, savedInstanceState);
120
- var ownerId = (_a = this.getArguments()) === null || _a === void 0 ? void 0 : _a.getInt(DOMID);
121
- var options = getModalOptions(ownerId);
122
- // The teardown when the activity is destroyed happens after the state is saved, but is not recoverable,
123
- // Cancel the native dialog in this case or the app will crash with subsequent errors.
124
- if (savedInstanceState != null && options === undefined) {
125
- this.dismissAllowingStateLoss();
126
- }
127
- };
128
- DialogFragmentImpl.prototype.onCreateDialog = function (savedInstanceState) {
129
- var ownerId = this.getArguments().getInt(DOMID);
130
- var options = getModalOptions(ownerId);
131
- this.owner = options.owner;
132
- // Set owner._dialogFragment to this in case the DialogFragment was recreated after app suspend
133
- this.owner._dialogFragment = this;
134
- this._fullscreen = options.fullscreen;
135
- this._animated = options.animated;
136
- this._cancelable = options.cancelable;
137
- this._stretched = options.stretched;
138
- this._dismissCallback = options.dismissCallback;
139
- this._shownCallback = options.shownCallback;
140
- this._windowSoftInputMode = options.windowSoftInputMode;
141
- this.setStyle(androidx.fragment.app.DialogFragment.STYLE_NO_TITLE, 0);
142
- var theme = this.getTheme();
143
- if (this._fullscreen) {
144
- // In fullscreen mode, get the application's theme.
145
- theme = this.getActivity().getApplicationInfo().theme;
146
- }
147
- var dialog = new DialogImpl(this, this.getActivity(), theme);
148
- // do not override alignment unless fullscreen modal will be shown;
149
- // otherwise we might break component-level layout:
150
- // https://github.com/NativeScript/NativeScript/issues/5392
151
- if (!this._fullscreen && !this._stretched) {
152
- this.owner.horizontalAlignment = 'center';
153
- this.owner.verticalAlignment = 'middle';
154
- }
155
- else {
156
- this.owner.horizontalAlignment = 'stretch';
157
- this.owner.verticalAlignment = 'stretch';
158
- }
159
- // set the modal window animation
160
- // https://github.com/NativeScript/NativeScript/issues/5989
161
- if (this._animated) {
162
- dialog.getWindow().setWindowAnimations(styleAnimationDialog);
163
- }
164
- dialog.setCanceledOnTouchOutside(this._cancelable);
165
- return dialog;
166
- };
167
- DialogFragmentImpl.prototype.onCreateView = function (inflater, container, savedInstanceState) {
168
- var owner = this.owner;
169
- this.activity = new WeakRef(this.getActivity());
170
- owner._setupAsRootView(this.getActivity());
171
- owner.parent = Application.getRootView();
172
- owner._isAddedToNativeVisualTree = true;
173
- // we need to set the window SoftInputMode here.
174
- // it wont work is set in onStart
175
- var window = this.getDialog().getWindow();
176
- Application.android.notify({
177
- eventName: Application.android.dialogOnCreateViewEvent,
178
- object: owner,
179
- dialog: this.getDialog(),
180
- window: window,
181
- });
182
- if (this._windowSoftInputMode !== undefined) {
183
- window.setSoftInputMode(this._windowSoftInputMode);
184
- }
185
- else {
186
- // the dialog seems to not follow the default activity softInputMode,
187
- // thus set we set it here.
188
- window.setSoftInputMode(owner._context.getWindow().getAttributes().softInputMode);
189
- }
190
- return owner.nativeViewProtected;
191
- };
192
- DialogFragmentImpl.prototype.onStart = function () {
193
- _super.prototype.onStart.call(this);
194
- if (this._fullscreen) {
195
- var window = this.getDialog().getWindow();
196
- var length = android.view.ViewGroup.LayoutParams.MATCH_PARENT;
197
- // set the animations to use on showing and hiding the dialog
198
- window.setWindowAnimations(16973826); //android.R.style.Animation_Dialog
199
- window.setLayout(length, length);
200
- // This removes the default backgroundDrawable so there are no margins.
201
- window.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.WHITE));
202
- }
203
- var owner = this.owner;
204
- if (owner && !owner.isLoaded) {
205
- owner.callLoaded();
206
- }
207
- this._shownCallback();
208
- };
209
- DialogFragmentImpl.prototype.onDismiss = function (dialog) {
210
- var _a;
211
- _super.prototype.onDismiss.call(this, dialog);
212
- var manager = this.getParentFragmentManager();
213
- var activity = (_a = this.activity) === null || _a === void 0 ? void 0 : _a.get();
214
- if (manager && !(activity === null || activity === void 0 ? void 0 : activity.isChangingConfigurations())) {
215
- removeModal(this.owner._domId);
216
- this._dismissCallback();
217
- }
218
- var owner = this.owner;
219
- if (owner && owner.isLoaded) {
220
- owner.callUnloaded();
221
- }
222
- };
223
- DialogFragmentImpl.prototype.onDestroy = function () {
224
- var _a;
225
- _super.prototype.onDestroy.call(this);
226
- var owner = this.owner;
227
- var activity = (_a = this.activity) === null || _a === void 0 ? void 0 : _a.get();
228
- if (!(activity === null || activity === void 0 ? void 0 : activity.isChangingConfigurations())) {
229
- this.activity = null;
230
- }
231
- if (owner) {
232
- // Android calls onDestroy before onDismiss.
233
- // Make sure we unload first and then call _tearDownUI.
234
- if (owner.isLoaded) {
235
- owner.callUnloaded();
236
- }
237
- owner._isAddedToNativeVisualTree = false;
238
- owner._tearDownUI(true);
239
- owner.parent = null;
240
- }
241
- };
242
- DialogFragmentImpl.prototype.show = function (manager, tag) {
243
- try {
244
- return _super.prototype.show.call(this, manager, tag);
245
- }
246
- catch (e) {
247
- if (this.showImmediatelyFromBackground && manager instanceof androidx.fragment.app.FragmentManager) {
248
- var ft = manager.beginTransaction();
249
- ft.add(this, tag);
250
- ft.commitAllowingStateLoss();
251
- }
252
- else {
253
- throw e;
254
- }
255
- }
256
- };
257
- return DialogFragmentImpl;
258
- }(androidx.fragment.app.DialogFragment));
259
- DialogFragment = DialogFragmentImpl;
260
- }
261
- function saveModal(options) {
262
- modalMap.set(options.owner._domId, options);
263
- }
264
- function removeModal(domId) {
265
- modalMap.delete(domId);
266
- }
267
- function getModalOptions(domId) {
268
- return modalMap.get(domId);
269
- }
270
- export class View extends ViewCommon {
271
- // TODO: Implement unobserve that detach the touchListener.
272
- _observe(type, callback, thisArg) {
273
- super._observe(type, callback, thisArg);
274
- if (this.isLoaded && !this.touchListenerIsSet) {
275
- this.setOnTouchListener();
276
- }
277
- }
278
- addEventListener(eventNames, callback, thisArg) {
279
- super.addEventListener(eventNames, callback, thisArg);
280
- const isLayoutEvent = typeof eventNames === 'string' ? eventNames.indexOf(ViewCommon.layoutChangedEvent) !== -1 : false;
281
- if (this.isLoaded && !this.layoutChangeListenerIsSet && isLayoutEvent) {
282
- this.setOnLayoutChangeListener();
283
- }
284
- }
285
- removeEventListener(eventNames, callback, thisArg) {
286
- super.removeEventListener(eventNames, callback, thisArg);
287
- const isLayoutEvent = typeof eventNames === 'string' ? eventNames.indexOf(ViewCommon.layoutChangedEvent) !== -1 : false;
288
- // Remove native listener only if there are no more user listeners for LayoutChanged event
289
- if (this.isLoaded && this.layoutChangeListenerIsSet && isLayoutEvent && !this.needsOnLayoutChangeListener()) {
290
- this.nativeViewProtected.removeOnLayoutChangeListener(this.layoutChangeListener);
291
- this.layoutChangeListenerIsSet = false;
292
- }
293
- }
294
- _getChildFragmentManager() {
295
- return null;
296
- }
297
- _getRootFragmentManager() {
298
- if (!this._rootManager && this._context) {
299
- this._rootManager = this._context.getSupportFragmentManager();
300
- }
301
- return this._rootManager;
302
- }
303
- _getFragmentManager() {
304
- let manager = this._manager;
305
- if (!manager) {
306
- let view = this;
307
- let frameOrTabViewItemFound = false;
308
- while (view) {
309
- // when interacting with nested fragments instead of using getSupportFragmentManager
310
- // we must always use getChildFragmentManager instead;
311
- // we have three sources of fragments -- Frame fragments, TabViewItem fragments, and
312
- // modal dialog fragments
313
- // modal -> frame / tabview (frame / tabview use modal CHILD fm)
314
- const dialogFragment = view._dialogFragment;
315
- if (dialogFragment) {
316
- manager = dialogFragment.getChildFragmentManager();
317
- break;
318
- }
319
- // - frame1 -> frame2 (frame2 uses frame1 CHILD fm)
320
- // - tabview -> frame1 (frame1 uses tabview item CHILD fm)
321
- // - frame1 -> tabview (tabview uses frame1 CHILD fm)
322
- // - frame1 -> tabview -> frame2 (tabview uses frame1 CHILD fm; frame2 uses tabview item CHILD fm)
323
- if (view._hasFragments) {
324
- if (frameOrTabViewItemFound) {
325
- manager = view._getChildFragmentManager();
326
- break;
327
- }
328
- frameOrTabViewItemFound = true;
329
- }
330
- // the case is needed because _dialogFragment is on View
331
- // but parent may be ViewBase.
332
- view = view.parent;
333
- }
334
- if (!manager) {
335
- manager = this._getRootFragmentManager();
336
- }
337
- this._manager = manager;
338
- }
339
- return manager;
340
- }
341
- onLoaded() {
342
- this._manager = null;
343
- this._rootManager = null;
344
- super.onLoaded();
345
- this.setOnTouchListener();
346
- }
347
- onUnloaded() {
348
- this._manager = null;
349
- this._rootManager = null;
350
- super.onUnloaded();
351
- }
352
- onBackPressed() {
353
- const topmostFrame = topmost();
354
- // Delegate back navigation handling to the topmost Frame
355
- // when it's a child of the current View.
356
- if (topmostFrame && topmostFrame._hasAncestorView(this)) {
357
- return topmostFrame.onBackPressed();
358
- }
359
- return false;
360
- }
361
- handleGestureTouch(event) {
362
- for (const type in this._gestureObservers) {
363
- const list = this._gestureObservers[type];
364
- list.forEach((element) => {
365
- element.androidOnTouchEvent(event);
366
- });
367
- }
368
- if (this.parent instanceof View) {
369
- this.parent.handleGestureTouch(event);
370
- }
371
- }
372
- hasGestureObservers() {
373
- return this._gestureObservers && Object.keys(this._gestureObservers).length > 0;
374
- }
375
- initNativeView() {
376
- super.initNativeView();
377
- if (this.needsOnLayoutChangeListener()) {
378
- this.setOnLayoutChangeListener();
379
- }
380
- }
381
- needsOnLayoutChangeListener() {
382
- return this.hasListeners(ViewCommon.layoutChangedEvent);
383
- }
384
- disposeNativeView() {
385
- if (this.touchListenerIsSet) {
386
- this.touchListenerIsSet = false;
387
- if (this.nativeViewProtected) {
388
- this.nativeViewProtected.setOnTouchListener(null);
389
- }
390
- }
391
- if (this.layoutChangeListenerIsSet) {
392
- this.layoutChangeListenerIsSet = false;
393
- if (this.nativeViewProtected) {
394
- this.nativeViewProtected.removeOnLayoutChangeListener(this.layoutChangeListener);
395
- this.layoutChangeListener = null;
396
- }
397
- }
398
- super.disposeNativeView();
399
- }
400
- setOnTouchListener() {
401
- const view = this.nativeViewProtected;
402
- if (this.touchListenerIsSet || !view || !this.hasGestureObservers()) {
403
- return;
404
- }
405
- // do not set noop listener that handles the event (disabled listener) if IsUserInteractionEnabled is
406
- // false as we might need the ability for the event to pass through to a parent view
407
- initializeTouchListener();
408
- this.touchListener = this.touchListener || new TouchListener(this);
409
- view.setOnTouchListener(this.touchListener);
410
- this.touchListenerIsSet = true;
411
- if (view.setClickable) {
412
- view.setClickable(this.isUserInteractionEnabled);
413
- }
414
- }
415
- setOnLayoutChangeListener() {
416
- if (this.nativeViewProtected) {
417
- const owner = this;
418
- this.layoutChangeListenerIsSet = true;
419
- this.layoutChangeListener =
420
- this.layoutChangeListener ||
421
- new android.view.View.OnLayoutChangeListener({
422
- onLayoutChange(v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) {
423
- if (left !== oldLeft || top !== oldTop || right !== oldRight || bottom !== oldBottom) {
424
- owner._raiseLayoutChangedEvent();
425
- }
426
- },
427
- });
428
- this.nativeViewProtected.addOnLayoutChangeListener(this.layoutChangeListener);
429
- }
430
- }
431
- get isLayoutRequired() {
432
- return !this.isLayoutValid;
433
- }
434
- get isLayoutValid() {
435
- if (this.nativeViewProtected) {
436
- return !this.nativeViewProtected.isLayoutRequested();
437
- }
438
- return false;
439
- }
440
- get _hasFragments() {
441
- return false;
442
- }
443
- layoutNativeView(left, top, right, bottom) {
444
- if (this.nativeViewProtected) {
445
- this.nativeViewProtected.layout(left, top, right, bottom);
446
- }
447
- }
448
- requestLayout() {
449
- if (this.mSuspendRequestLayout) {
450
- this._requetLayoutNeeded = true;
451
- return;
452
- }
453
- this._requetLayoutNeeded = false;
454
- super.requestLayout();
455
- if (this.nativeViewProtected) {
456
- this.nativeViewProtected.requestLayout();
457
- }
458
- }
459
- measure(widthMeasureSpec, heightMeasureSpec) {
460
- super.measure(widthMeasureSpec, heightMeasureSpec);
461
- this.onMeasure(widthMeasureSpec, heightMeasureSpec);
462
- }
463
- layout(left, top, right, bottom) {
464
- super.layout(left, top, right, bottom);
465
- this.onLayout(left, top, right, bottom);
466
- }
467
- onMeasure(widthMeasureSpec, heightMeasureSpec) {
468
- const view = this.nativeViewProtected;
469
- if (view) {
470
- view.measure(widthMeasureSpec, heightMeasureSpec);
471
- this.setMeasuredDimension(view.getMeasuredWidth(), view.getMeasuredHeight());
472
- }
473
- }
474
- onLayout(left, top, right, bottom) {
475
- const view = this.nativeViewProtected;
476
- if (view) {
477
- this.layoutNativeView(left, top, right, bottom);
478
- }
479
- }
480
- _getCurrentLayoutBounds() {
481
- if (this.nativeViewProtected && !this.isCollapsed) {
482
- return {
483
- left: this.nativeViewProtected.getLeft(),
484
- top: this.nativeViewProtected.getTop(),
485
- right: this.nativeViewProtected.getRight(),
486
- bottom: this.nativeViewProtected.getBottom(),
487
- };
488
- }
489
- else {
490
- return { left: 0, top: 0, right: 0, bottom: 0 };
491
- }
492
- }
493
- getMeasuredWidth() {
494
- if (this.nativeViewProtected) {
495
- return this.nativeViewProtected.getMeasuredWidth();
496
- }
497
- return super.getMeasuredWidth();
498
- }
499
- getMeasuredHeight() {
500
- if (this.nativeViewProtected) {
501
- return this.nativeViewProtected.getMeasuredHeight();
502
- }
503
- return super.getMeasuredHeight();
504
- }
505
- focus() {
506
- if (this.nativeViewProtected) {
507
- return this.nativeViewProtected.requestFocus();
508
- }
509
- return false;
510
- }
511
- getLocationInWindow() {
512
- if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken()) {
513
- return undefined;
514
- }
515
- const nativeArray = Array.create('int', 2);
516
- this.nativeViewProtected.getLocationInWindow(nativeArray);
517
- return {
518
- x: layout.toDeviceIndependentPixels(nativeArray[0]),
519
- y: layout.toDeviceIndependentPixels(nativeArray[1]),
520
- };
521
- }
522
- getLocationOnScreen() {
523
- if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken()) {
524
- return undefined;
525
- }
526
- const nativeArray = Array.create('int', 2);
527
- this.nativeViewProtected.getLocationOnScreen(nativeArray);
528
- return {
529
- x: layout.toDeviceIndependentPixels(nativeArray[0]),
530
- y: layout.toDeviceIndependentPixels(nativeArray[1]),
531
- };
532
- }
533
- getLocationRelativeTo(otherView) {
534
- if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken() || !otherView || !otherView.nativeViewProtected || !otherView.nativeViewProtected.getWindowToken() || this.nativeViewProtected.getWindowToken() !== otherView.nativeViewProtected.getWindowToken()) {
535
- return undefined;
536
- }
537
- const myArray = Array.create('int', 2);
538
- this.nativeViewProtected.getLocationOnScreen(myArray);
539
- const otherArray = Array.create('int', 2);
540
- otherView.nativeViewProtected.getLocationOnScreen(otherArray);
541
- return {
542
- x: layout.toDeviceIndependentPixels(myArray[0] - otherArray[0]),
543
- y: layout.toDeviceIndependentPixels(myArray[1] - otherArray[1]),
544
- };
545
- }
546
- static resolveSizeAndState(size, specSize, specMode, childMeasuredState) {
547
- let result = size;
548
- switch (specMode) {
549
- case layout.UNSPECIFIED:
550
- result = size;
551
- break;
552
- case layout.AT_MOST:
553
- if (specSize < size) {
554
- result = specSize | layout.MEASURED_STATE_TOO_SMALL;
555
- }
556
- break;
557
- case layout.EXACTLY:
558
- result = specSize;
559
- break;
560
- }
561
- return result | (childMeasuredState & layout.MEASURED_STATE_MASK);
562
- }
563
- _showNativeModalView(parent, options) {
564
- // if the app is in background while triggering _showNativeModalView
565
- // then DialogFragment.show will trigger IllegalStateException: Can not perform this action after onSaveInstanceState
566
- // so if in background we create an event to call _showNativeModalView when loaded (going back in foreground)
567
- if (Application.inBackground && !parent.isLoaded && options?.android?.showImmediatelyFromBackground !== true) {
568
- const onLoaded = () => {
569
- parent.off('loaded', onLoaded);
570
- this._showNativeModalView(parent, options);
571
- };
572
- parent.on('loaded', onLoaded);
573
- return;
574
- }
575
- super._showNativeModalView(parent, options);
576
- initializeDialogFragment();
577
- const df = new DialogFragment();
578
- df.showImmediatelyFromBackground = options?.android?.showImmediatelyFromBackground;
579
- const args = new android.os.Bundle();
580
- args.putInt(DOMID, this._domId);
581
- df.setArguments(args);
582
- const cancelable = options.cancelable !== undefined ? !!options.cancelable : true;
583
- let windowSoftInputMode;
584
- if (options.android) {
585
- windowSoftInputMode = options.android.windowSoftInputMode;
586
- }
587
- const dialogOptions = {
588
- owner: this,
589
- fullscreen: !!options.fullscreen,
590
- animated: !!options.animated,
591
- stretched: !!options.stretched,
592
- cancelable: cancelable,
593
- windowSoftInputMode: windowSoftInputMode,
594
- shownCallback: () => this._raiseShownModallyEvent(),
595
- dismissCallback: () => this.closeModal(),
596
- };
597
- saveModal(dialogOptions);
598
- this._dialogFragment = df;
599
- this._raiseShowingModallyEvent();
600
- df.show(parent._getFragmentManager(), this._domId.toString());
601
- }
602
- _hideNativeModalView(parent, whenClosedCallback) {
603
- this._raiseClosingModallyEvent();
604
- const df = this._dialogFragment;
605
- if (df?.getParentFragmentManager()) {
606
- df.dismissAllowingStateLoss();
607
- }
608
- this._dialogFragment = null;
609
- whenClosedCallback();
610
- }
611
- [isEnabledProperty.setNative](value) {
612
- this.nativeViewProtected.setEnabled(value);
613
- }
614
- [originXProperty.getDefault]() {
615
- return this.nativeViewProtected.getPivotX();
616
- }
617
- [originXProperty.setNative](value) {
618
- org.nativescript.widgets.OriginPoint.setX(this.nativeViewProtected, value);
619
- }
620
- [originYProperty.getDefault]() {
621
- return this.nativeViewProtected.getPivotY();
622
- }
623
- [originYProperty.setNative](value) {
624
- org.nativescript.widgets.OriginPoint.setY(this.nativeViewProtected, value);
625
- }
626
- [isUserInteractionEnabledProperty.setNative](value) {
627
- this.nativeViewProtected.setClickable(value);
628
- this.nativeViewProtected.setFocusable(value);
629
- }
630
- [hiddenProperty.getDefault]() {
631
- return _getStoredClassDefaultPropertyValue(hiddenProperty, this, () => this.nativeViewProtected.getVisibility() === VIEW_GONE);
632
- }
633
- [hiddenProperty.setNative](value) {
634
- this.nativeViewProtected.setVisibility(value ? VIEW_GONE : VIEW_VISIBLE);
635
- }
636
- [visibilityProperty.getDefault]() {
637
- return _getStoredClassDefaultPropertyValue(visibilityProperty, this, () => {
638
- const nativeVisibility = this.nativeViewProtected.getVisibility();
639
- switch (nativeVisibility) {
640
- case VIEW_VISIBLE:
641
- return 'visible';
642
- case VIEW_INVISIBLE:
643
- return 'hidden';
644
- case VIEW_GONE:
645
- return 'collapse';
646
- default:
647
- throw new Error(`Unsupported android.view.View visibility: ${nativeVisibility}. Currently supported values are android.view.View.VISIBLE, android.view.View.INVISIBLE, android.view.View.GONE.`);
648
- }
649
- });
650
- }
651
- [visibilityProperty.setNative](value) {
652
- switch (value) {
653
- case 'visible':
654
- this.nativeViewProtected.setVisibility(VIEW_VISIBLE);
655
- break;
656
- case 'hidden':
657
- this.nativeViewProtected.setVisibility(VIEW_INVISIBLE);
658
- break;
659
- case 'collapse':
660
- case 'collapsed':
661
- this.nativeViewProtected.setVisibility(VIEW_GONE);
662
- break;
663
- default:
664
- throw new Error(`Invalid visibility value: ${value}. Valid values are: visible, hidden, collapse.`);
665
- }
666
- }
667
- [opacityProperty.getDefault]() {
668
- return _getStoredClassDefaultPropertyValue(opacityProperty, this, () => this.nativeViewProtected.getAlpha());
669
- }
670
- [opacityProperty.setNative](value) {
671
- this.nativeViewProtected.setAlpha(float(value));
672
- }
673
- [testIDProperty.setNative](value) {
674
- this.setAccessibilityIdentifier(this.nativeViewProtected, value);
675
- }
676
- setAccessibilityIdentifier(view, value) {
677
- const id = Utils.android.resources.getId(':id/nativescript_accessibility_id');
678
- if (id) {
679
- view.setTag(id, value);
680
- view.setTag(value);
681
- }
682
- if (this.testID && this.testID !== value)
683
- this.testID = value;
684
- if (this.accessibilityIdentifier !== value)
685
- this.accessibilityIdentifier = value;
686
- }
687
- [accessibilityEnabledProperty.setNative](value) {
688
- // we should only call set focusable if user interaction is enabled and if not a layout
689
- if (!this['addChild']) {
690
- this.nativeViewProtected.setFocusable(!!value && this.isUserInteractionEnabled);
691
- }
692
- if (value) {
693
- updateAccessibilityProperties(this);
694
- }
695
- }
696
- [accessibilityIdentifierProperty.setNative](value) {
697
- this.setAccessibilityIdentifier(this.nativeViewProtected, value);
698
- }
699
- [accessibilityRoleProperty.setNative](value) {
700
- this.accessibilityRole = value;
701
- if (this.accessible) {
702
- updateAccessibilityProperties(this);
703
- }
704
- if (SDK_VERSION >= 28) {
705
- this.nativeViewProtected?.setAccessibilityHeading(value === AccessibilityRole.Header);
706
- }
707
- }
708
- [accessibilityValueProperty.setNative]() {
709
- this._androidContentDescriptionNeedsUpdate = true;
710
- updateContentDescription(this);
711
- }
712
- [accessibilityLabelProperty.setNative]() {
713
- this._androidContentDescriptionNeedsUpdate = true;
714
- updateContentDescription(this);
715
- }
716
- [accessibilityHintProperty.setNative]() {
717
- this._androidContentDescriptionNeedsUpdate = true;
718
- updateContentDescription(this);
719
- }
720
- [accessibilityHiddenProperty.setNative](value) {
721
- if (value) {
722
- this.nativeViewProtected.setImportantForAccessibility(android.view.View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS);
723
- }
724
- else {
725
- this.nativeViewProtected.setImportantForAccessibility(android.view.View.IMPORTANT_FOR_ACCESSIBILITY_YES);
726
- }
727
- }
728
- [accessibilityLiveRegionProperty.setNative](value) {
729
- switch (value) {
730
- case AccessibilityLiveRegion.Assertive: {
731
- this.nativeViewProtected.setAccessibilityLiveRegion(android.view.View.ACCESSIBILITY_LIVE_REGION_ASSERTIVE);
732
- break;
733
- }
734
- case AccessibilityLiveRegion.Polite: {
735
- this.nativeViewProtected.setAccessibilityLiveRegion(android.view.View.ACCESSIBILITY_LIVE_REGION_POLITE);
736
- break;
737
- }
738
- default: {
739
- this.nativeViewProtected.setAccessibilityLiveRegion(android.view.View.ACCESSIBILITY_LIVE_REGION_NONE);
740
- break;
741
- }
742
- }
743
- }
744
- [accessibilityStateProperty.setNative](value) {
745
- this.accessibilityState = value;
746
- updateAccessibilityProperties(this);
747
- }
748
- [accessibilityMediaSessionProperty.setNative]() {
749
- updateAccessibilityProperties(this);
750
- }
751
- [androidElevationProperty.getDefault]() {
752
- return _getStoredClassDefaultPropertyValue(androidElevationProperty, this, () => this.getDefaultElevation());
753
- }
754
- [androidElevationProperty.setNative](value) {
755
- if (SDK_VERSION < 21) {
756
- return;
757
- }
758
- this.refreshStateListAnimator();
759
- }
760
- [androidDynamicElevationOffsetProperty.getDefault]() {
761
- return this.getDefaultDynamicElevationOffset();
762
- }
763
- [androidDynamicElevationOffsetProperty.setNative](value) {
764
- if (SDK_VERSION < 21) {
765
- return;
766
- }
767
- this.refreshStateListAnimator();
768
- }
769
- getDefaultElevation() {
770
- if (SDK_VERSION < 21) {
771
- return 0;
772
- }
773
- // NOTE: overriden in Button implementation as for widgets with StateListAnimator (Button)
774
- // nativeView.getElevation() returns 0 at the time of the getDefault() query
775
- return layout.toDeviceIndependentPixels(this.nativeViewProtected.getElevation());
776
- }
777
- getDefaultDynamicElevationOffset() {
778
- // NOTE: overriden in Button implementation
779
- return 0;
780
- }
781
- refreshStateListAnimator() {
782
- const nativeView = this.nativeViewProtected;
783
- const ObjectAnimator = android.animation.ObjectAnimator;
784
- const AnimatorSet = android.animation.AnimatorSet;
785
- const duration = nativeView.getContext().getResources().getInteger(shortAnimTime) / 2;
786
- let elevation = this.androidElevation;
787
- if (typeof elevation === 'undefined' || elevation === null) {
788
- elevation = this.getDefaultElevation();
789
- }
790
- elevation = layout.toDevicePixels(elevation);
791
- const z = layout.toDevicePixels(0);
792
- let pressedZ = this.androidDynamicElevationOffset;
793
- if (typeof pressedZ === 'undefined' || pressedZ === null) {
794
- pressedZ = this.getDefaultDynamicElevationOffset();
795
- }
796
- pressedZ = layout.toDevicePixels(pressedZ);
797
- const pressedSet = new AnimatorSet();
798
- pressedSet.playTogether(java.util.Arrays.asList([ObjectAnimator.ofFloat(nativeView, 'translationZ', [pressedZ]).setDuration(duration), ObjectAnimator.ofFloat(nativeView, 'elevation', [elevation]).setDuration(0)]));
799
- const notPressedSet = new AnimatorSet();
800
- notPressedSet.playTogether(java.util.Arrays.asList([ObjectAnimator.ofFloat(nativeView, 'translationZ', [z]).setDuration(duration), ObjectAnimator.ofFloat(nativeView, 'elevation', [elevation]).setDuration(0)]));
801
- const defaultSet = new AnimatorSet();
802
- defaultSet.playTogether(java.util.Arrays.asList([ObjectAnimator.ofFloat(nativeView, 'translationZ', [0]).setDuration(0), ObjectAnimator.ofFloat(nativeView, 'elevation', [0]).setDuration(0)]));
803
- const stateListAnimator = new android.animation.StateListAnimator();
804
- stateListAnimator.addState([statePressed, stateEnabled], pressedSet);
805
- stateListAnimator.addState([stateEnabled], notPressedSet);
806
- stateListAnimator.addState([], defaultSet);
807
- const currentAnimator = nativeView.getStateListAnimator();
808
- if (currentAnimator) {
809
- currentAnimator.jumpToCurrentState();
810
- }
811
- nativeView.setStateListAnimator(stateListAnimator);
812
- }
813
- [horizontalAlignmentProperty.getDefault]() {
814
- return _getStoredClassDefaultPropertyValue(horizontalAlignmentProperty, this, () => ViewHelper.getHorizontalAlignment(this.nativeViewProtected));
815
- }
816
- [horizontalAlignmentProperty.setNative](value) {
817
- ViewHelper.setHorizontalAlignment(this.nativeViewProtected, value);
818
- }
819
- [verticalAlignmentProperty.getDefault]() {
820
- return _getStoredClassDefaultPropertyValue(verticalAlignmentProperty, this, () => ViewHelper.getVerticalAlignment(this.nativeViewProtected));
821
- }
822
- [verticalAlignmentProperty.setNative](value) {
823
- ViewHelper.setVerticalAlignment(this.nativeViewProtected, value);
824
- }
825
- [rotateProperty.setNative](value) {
826
- ViewHelper.setRotate(this.nativeViewProtected, float(value));
827
- }
828
- [rotateXProperty.setNative](value) {
829
- ViewHelper.setRotateX(this.nativeViewProtected, float(value));
830
- }
831
- [rotateYProperty.setNative](value) {
832
- ViewHelper.setRotateY(this.nativeViewProtected, float(value));
833
- }
834
- [perspectiveProperty.setNative](value) {
835
- ViewHelper.setPerspective(this.nativeViewProtected, float(value * Screen.mainScreen.scale));
836
- }
837
- [scaleXProperty.setNative](value) {
838
- ViewHelper.setScaleX(this.nativeViewProtected, float(value));
839
- }
840
- [scaleYProperty.setNative](value) {
841
- ViewHelper.setScaleY(this.nativeViewProtected, float(value));
842
- }
843
- [translateXProperty.setNative](value) {
844
- ViewHelper.setTranslateX(this.nativeViewProtected, layout.toDevicePixels(value));
845
- }
846
- [translateYProperty.setNative](value) {
847
- ViewHelper.setTranslateY(this.nativeViewProtected, layout.toDevicePixels(value));
848
- }
849
- [zIndexProperty.getDefault]() {
850
- return 0;
851
- }
852
- [zIndexProperty.setNative](value) {
853
- ViewHelper.setZIndex(this.nativeViewProtected, value);
854
- }
855
- [backgroundInternalProperty.getDefault]() {
856
- const nativeView = this.nativeViewProtected;
857
- return AndroidHelper.getCopyOrDrawable(nativeView.getBackground(), nativeView.getResources());
858
- }
859
- [backgroundInternalProperty.setNative](value) {
860
- this._redrawNativeBackground(value);
861
- }
862
- [minWidthProperty.setNative](value) {
863
- if (this.parent instanceof CustomLayoutView && this.parent.nativeViewProtected) {
864
- this.parent._setChildMinWidthNative(this, value);
865
- }
866
- else {
867
- this._setMinWidthNative(value);
868
- }
869
- }
870
- [minHeightProperty.setNative](value) {
871
- if (this.parent instanceof CustomLayoutView && this.parent.nativeViewProtected) {
872
- this.parent._setChildMinHeightNative(this, value);
873
- }
874
- else {
875
- this._setMinHeightNative(value);
876
- }
877
- }
878
- _applyBackground(background, isBorderDrawable, onlyColor, backgroundDrawable) {
879
- const nativeView = this.nativeViewProtected;
880
- const canUseOutlineProvider = !background.hasBorderWidth() && !background.hasBoxShadow() && !background.clipPath && !background.image && SDK_VERSION >= 21 && (SDK_VERSION >= 33 || background.hasUniformBorderRadius());
881
- if (onlyColor || canUseOutlineProvider) {
882
- const backgroundColor = background.color?.android;
883
- if (isBorderDrawable) {
884
- // We need to duplicate the drawable or we lose the "default" cached drawable
885
- backgroundDrawable = nativeView._cachedDrawable != null ? AndroidHelper.getCopyOrDrawable(nativeView._cachedDrawable, nativeView.getResources()) : null;
886
- nativeView.setBackground(backgroundDrawable);
887
- }
888
- if (backgroundColor) {
889
- if (backgroundDrawable) {
890
- backgroundDrawable.mutate();
891
- AndroidHelper.setDrawableColor(backgroundColor, backgroundDrawable);
892
- backgroundDrawable.invalidateSelf();
893
- }
894
- else {
895
- nativeView.setBackgroundColor(backgroundColor);
896
- }
897
- }
898
- // borderDrawable is slow
899
- // let s use outline provider when we can
900
- ViewHelper.setOutlineProvider(nativeView, background.borderTopLeftRadius, background.borderTopRightRadius, background.borderBottomRightRadius, background.borderBottomLeftRadius);
901
- }
902
- else {
903
- ViewHelper.clearOutlineProvider(nativeView);
904
- if (background.clearFlags & 1 /* BackgroundClearFlags.CLEAR_BACKGROUND_COLOR */) {
905
- if (backgroundDrawable) {
906
- backgroundDrawable.mutate();
907
- AndroidHelper.clearDrawableColor(backgroundDrawable);
908
- backgroundDrawable.invalidateSelf();
909
- }
910
- else {
911
- nativeView.setBackgroundColor(-1);
912
- }
913
- }
914
- if (background.isEmpty()) {
915
- // Reset background to default if not already set
916
- const defaultDrawable = nativeView._cachedDrawable ?? null;
917
- if (backgroundDrawable !== defaultDrawable) {
918
- nativeView.setBackground(defaultDrawable);
919
- }
920
- }
921
- else {
922
- if (isBorderDrawable) {
923
- // org.nativescript.widgets.BorderDrawable
924
- refreshBorderDrawable(this, backgroundDrawable);
925
- }
926
- else {
927
- const borderDrawable = new org.nativescript.widgets.BorderDrawable(layout.getDisplayDensity(), this.toString());
928
- refreshBorderDrawable(this, borderDrawable);
929
- nativeView.setBackground(borderDrawable);
930
- }
931
- }
932
- }
933
- }
934
- _drawBoxShadow(boxShadow) {
935
- const nativeView = this.nativeViewProtected;
936
- const config = {
937
- shadowColor: boxShadow.color.android,
938
- cornerRadius: Length.toDevicePixels(this.borderRadius, 0.0),
939
- spreadRadius: boxShadow.spreadRadius,
940
- blurRadius: boxShadow.blurRadius,
941
- offsetX: boxShadow.offsetX,
942
- offsetY: boxShadow.offsetY,
943
- };
944
- org.nativescript.widgets.Utils.drawBoxShadow(nativeView, JSON.stringify(config));
945
- }
946
- _redrawNativeBackground(value) {
947
- if (value instanceof Background) {
948
- this.onBackgroundOrBorderPropertyChanged();
949
- }
950
- else {
951
- const nativeView = this.nativeViewProtected;
952
- nativeView.setBackground(value);
953
- const style = this.style;
954
- const paddingTop = paddingTopProperty.isSet(style) ? this.effectivePaddingTop : this._defaultPaddingTop;
955
- const paddingRight = paddingRightProperty.isSet(style) ? this.effectivePaddingRight : this._defaultPaddingRight;
956
- const paddingBottom = paddingBottomProperty.isSet(style) ? this.effectivePaddingBottom : this._defaultPaddingBottom;
957
- const paddingLeft = paddingLeftProperty.isSet(style) ? this.effectivePaddingLeft : this._defaultPaddingLeft;
958
- if (this._isPaddingRelative) {
959
- nativeView.setPaddingRelative(paddingLeft, paddingTop, paddingRight, paddingBottom);
960
- }
961
- else {
962
- nativeView.setPadding(paddingLeft, paddingTop, paddingRight, paddingBottom);
963
- }
964
- }
965
- }
966
- onBackgroundOrBorderPropertyChanged() {
967
- const nativeView = this.nativeViewProtected;
968
- if (!nativeView) {
969
- return;
970
- }
971
- const background = this.style.backgroundInternal;
972
- const drawable = nativeView.getBackground();
973
- const isBorderDrawable = drawable instanceof org.nativescript.widgets.BorderDrawable;
974
- // Use undefined as not set. getBackground will never return undefined only Drawable or null;
975
- if (nativeView._cachedDrawable === undefined) {
976
- nativeView._cachedDrawable = drawable;
977
- }
978
- if (background.clearFlags & 2 /* BackgroundClearFlags.CLEAR_BOX_SHADOW */) {
979
- // Clear background if we're clearing the box shadow
980
- if (drawable instanceof org.nativescript.widgets.BoxShadowDrawable) {
981
- nativeView.setBackground(nativeView._cachedDrawable ?? null);
982
- }
983
- }
984
- // prettier-ignore
985
- const onlyColor = !background.hasBorderWidth()
986
- && !background.hasBorderRadius()
987
- && !background.clipPath
988
- && !background.image
989
- && !!background.color;
990
- this._applyBackground(background, isBorderDrawable, onlyColor, drawable);
991
- if (background.hasBoxShadow()) {
992
- this._drawBoxShadow(background.getBoxShadow());
993
- }
994
- // TODO: Can we move BorderWidths as separate native setter?
995
- // This way we could skip setPadding if borderWidth is not changed.
996
- const leftPadding = Math.ceil(this.effectiveBorderLeftWidth + this.effectivePaddingLeft);
997
- const topPadding = Math.ceil(this.effectiveBorderTopWidth + this.effectivePaddingTop);
998
- const rightPadding = Math.ceil(this.effectiveBorderRightWidth + this.effectivePaddingRight);
999
- const bottomPadding = Math.ceil(this.effectiveBorderBottomWidth + this.effectivePaddingBottom);
1000
- if (this._isPaddingRelative) {
1001
- nativeView.setPaddingRelative(leftPadding, topPadding, rightPadding, bottomPadding);
1002
- }
1003
- else {
1004
- nativeView.setPadding(leftPadding, topPadding, rightPadding, bottomPadding);
1005
- }
1006
- // reset clear flags
1007
- background.clearFlags = 0 /* BackgroundClearFlags.NONE */;
1008
- }
1009
- accessibilityAnnouncement(message = this.accessibilityLabel) {
1010
- this.sendAccessibilityEvent({
1011
- androidAccessibilityEvent: AndroidAccessibilityEvent.ANNOUNCEMENT,
1012
- message,
1013
- });
1014
- }
1015
- accessibilityScreenChanged() {
1016
- this.sendAccessibilityEvent({
1017
- androidAccessibilityEvent: AndroidAccessibilityEvent.WINDOW_STATE_CHANGED,
1018
- });
1019
- }
1020
- }
1021
- View.androidBackPressedEvent = androidBackPressedEvent;
1022
- __decorate([
1023
- profile
1024
- ], View.prototype, "onLoaded", null);
1025
- __decorate([
1026
- profile
1027
- ], View.prototype, "onUnloaded", null);
1028
- __decorate([
1029
- profile
1030
- ], View.prototype, "requestLayout", null);
1031
- export class ContainerView extends View {
1032
- }
1033
- export class CustomLayoutView extends ContainerView {
1034
- createNativeView() {
1035
- return new org.nativescript.widgets.ContentLayout(this._context);
1036
- }
1037
- _addViewToNativeVisualTree(child, atIndex = Number.MAX_SAFE_INTEGER) {
1038
- super._addViewToNativeVisualTree(child);
1039
- if (this.nativeViewProtected && child.nativeViewProtected) {
1040
- if (Trace.isEnabled()) {
1041
- Trace.write(`${this}.nativeView.addView(${child}.nativeView, ${atIndex})`, Trace.categories.VisualTreeEvents);
1042
- }
1043
- this.nativeViewProtected.addView(child.nativeViewProtected, atIndex);
1044
- if (child instanceof View) {
1045
- this._updateNativeLayoutParams(child);
1046
- }
1047
- return true;
1048
- }
1049
- return false;
1050
- }
1051
- _updateNativeLayoutParams(child) {
1052
- // noop
1053
- }
1054
- _setChildMinWidthNative(child, value) {
1055
- child._setMinWidthNative(value);
1056
- }
1057
- _setChildMinHeightNative(child, value) {
1058
- child._setMinHeightNative(value);
1059
- }
1060
- _removeFromNativeVisualTree() {
1061
- super._removeFromNativeVisualTree();
1062
- const parent = this.nativeViewProtected?.getParent();
1063
- if (parent && parent['removeView']) {
1064
- parent['removeView'](this.nativeViewProtected);
1065
- }
1066
- }
1067
- _removeViewFromNativeVisualTree(child) {
1068
- super._removeViewFromNativeVisualTree(child);
1069
- const nativeView = this.nativeViewProtected;
1070
- const childView = child.nativeViewProtected;
1071
- if (nativeView && childView) {
1072
- nativeView.removeView(childView);
1073
- if (Trace.isEnabled()) {
1074
- Trace.write(`${nativeView}.removeView(${childView})`, Trace.categories.VisualTreeEvents);
1075
- Trace.notifyEvent(child, 'childInLayoutRemovedFromNativeVisualTree');
1076
- }
1077
- }
1078
- }
1079
- }
1080
- const percentNotSupported = (view, value) => {
1081
- throw new Error('PercentLength is not supported.');
1082
- };
1083
- function createNativePercentLengthProperty(options) {
1084
- const { getter, setter, auto = 0 } = options;
1085
- let setPixels, getPixels, setPercent;
1086
- if (getter) {
1087
- View.prototype[getter] = function () {
1088
- if (options) {
1089
- setPixels = options.setPixels;
1090
- getPixels = options.getPixels;
1091
- setPercent = options.setPercent || percentNotSupported;
1092
- options = null;
1093
- }
1094
- const value = getPixels(this.nativeViewProtected);
1095
- if (value == auto) {
1096
- // tslint:disable-line
1097
- return 'auto';
1098
- }
1099
- else {
1100
- return { value, unit: 'px' };
1101
- }
1102
- };
1103
- }
1104
- if (setter) {
1105
- View.prototype[setter] = function (length) {
1106
- if (options) {
1107
- setPixels = options.setPixels;
1108
- getPixels = options.getPixels;
1109
- setPercent = options.setPercent || percentNotSupported;
1110
- options = null;
1111
- }
1112
- if (length == 'auto' || length == null) {
1113
- // tslint:disable-line
1114
- setPixels(this.nativeViewProtected, auto);
1115
- }
1116
- else if (typeof length === 'number') {
1117
- setPixels(this.nativeViewProtected, layout.round(layout.toDevicePixels(length)));
1118
- }
1119
- else if (length.unit == 'dip') {
1120
- // tslint:disable-line
1121
- setPixels(this.nativeViewProtected, layout.round(layout.toDevicePixels(length.value)));
1122
- }
1123
- else if (length.unit == 'px') {
1124
- // tslint:disable-line
1125
- setPixels(this.nativeViewProtected, layout.round(length.value));
1126
- }
1127
- else if (length.unit == '%') {
1128
- // tslint:disable-line
1129
- setPercent(this.nativeViewProtected, length.value);
1130
- }
1131
- else {
1132
- throw new Error(`Unsupported PercentLength ${length}`);
1133
- }
1134
- };
1135
- }
1136
- }
1137
- createNativePercentLengthProperty({
1138
- setter: marginTopProperty.setNative,
1139
- get setPixels() {
1140
- return ViewHelper.setMarginTop;
1141
- },
1142
- get setPercent() {
1143
- return ViewHelper.setMarginTopPercent;
1144
- },
1145
- });
1146
- createNativePercentLengthProperty({
1147
- setter: marginRightProperty.setNative,
1148
- get setPixels() {
1149
- return ViewHelper.setMarginRight;
1150
- },
1151
- get setPercent() {
1152
- return ViewHelper.setMarginRightPercent;
1153
- },
1154
- });
1155
- createNativePercentLengthProperty({
1156
- setter: marginBottomProperty.setNative,
1157
- get setPixels() {
1158
- return ViewHelper.setMarginBottom;
1159
- },
1160
- get setPercent() {
1161
- return ViewHelper.setMarginBottomPercent;
1162
- },
1163
- });
1164
- createNativePercentLengthProperty({
1165
- setter: marginLeftProperty.setNative,
1166
- get setPixels() {
1167
- return ViewHelper.setMarginLeft;
1168
- },
1169
- get setPercent() {
1170
- return ViewHelper.setMarginLeftPercent;
1171
- },
1172
- });
1173
- createNativePercentLengthProperty({
1174
- setter: widthProperty.setNative,
1175
- auto: -1, //android.view.ViewGroup.LayoutParams.MATCH_PARENT,
1176
- get setPixels() {
1177
- return ViewHelper.setWidth;
1178
- },
1179
- get setPercent() {
1180
- return ViewHelper.setWidthPercent;
1181
- },
1182
- });
1183
- createNativePercentLengthProperty({
1184
- setter: heightProperty.setNative,
1185
- auto: -1, //android.view.ViewGroup.LayoutParams.MATCH_PARENT,
1186
- get setPixels() {
1187
- return ViewHelper.setHeight;
1188
- },
1189
- get setPercent() {
1190
- return ViewHelper.setHeightPercent;
1191
- },
1192
- });
1193
- createNativePercentLengthProperty({
1194
- setter: '_setMinWidthNative',
1195
- get setPixels() {
1196
- return ViewHelper.setMinWidth;
1197
- },
1198
- });
1199
- createNativePercentLengthProperty({
1200
- setter: '_setMinHeightNative',
1201
- get setPixels() {
1202
- return ViewHelper.setMinHeight;
1203
- },
1204
- });
1205
- //# sourceMappingURL=index.android.js.map