@nativescript/core 9.0.0-alpha.2 → 9.0.0-alpha.21

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 (1042) hide show
  1. package/css/package.json +36 -0
  2. package/css-value/package.json +23 -0
  3. package/file-system/index.d.ts +2 -2
  4. package/global-types.d.ts +7 -8
  5. package/http/http-request/index.d.ts +4 -0
  6. package/http/index.d.ts +5 -104
  7. package/index.d.ts +7 -6
  8. package/package.json +86 -83
  9. package/platforms/android/widgets-release.aar +0 -0
  10. package/references.d.ts +1 -1
  11. package/ui/animation/index.d.ts +14 -1
  12. package/ui/button/index.d.ts +1 -1
  13. package/ui/core/view/index.d.ts +41 -3
  14. package/ui/embedding/index.d.ts +1 -1
  15. package/ui/frame/fragment.transitions.d.ts +9 -1
  16. package/ui/frame/index.d.ts +1 -41
  17. package/ui/page/index.d.ts +0 -8
  18. package/ui/search-bar/index.d.ts +7 -0
  19. package/ui/slider/index.d.ts +1 -1
  20. package/utils/constants.d.ts +1 -0
  21. package/utils/native-helper.d.ts +137 -201
  22. package/LICENSE +0 -19
  23. package/abortcontroller/abortsignal.d.ts +0 -23
  24. package/abortcontroller/abortsignal.js +0 -57
  25. package/abortcontroller/abortsignal.js.map +0 -1
  26. package/abortcontroller/index.d.ts +0 -20
  27. package/abortcontroller/index.js +0 -52
  28. package/abortcontroller/index.js.map +0 -1
  29. package/accessibility/accessibility-common.d.ts +0 -282
  30. package/accessibility/accessibility-common.js +0 -416
  31. package/accessibility/accessibility-common.js.map +0 -1
  32. package/accessibility/accessibility-properties.d.ts +0 -24
  33. package/accessibility/accessibility-properties.js +0 -118
  34. package/accessibility/accessibility-properties.js.map +0 -1
  35. package/accessibility/index.d.ts +0 -1
  36. package/accessibility/index.js +0 -2
  37. package/accessibility/index.js.map +0 -1
  38. package/animation-frame/animation-native.android.d.ts +0 -1
  39. package/animation-frame/animation-native.android.js +0 -4
  40. package/animation-frame/animation-native.android.js.map +0 -1
  41. package/animation-frame/animation-native.ios.d.ts +0 -1
  42. package/animation-frame/animation-native.ios.js +0 -3
  43. package/animation-frame/animation-native.ios.js.map +0 -1
  44. package/animation-frame/index.js +0 -81
  45. package/animation-frame/index.js.map +0 -1
  46. package/application/application-common.d.ts +0 -221
  47. package/application/application-common.js +0 -473
  48. package/application/application-common.js.map +0 -1
  49. package/application/application-interfaces.d.ts +0 -189
  50. package/application/application-interfaces.js +0 -2
  51. package/application/application-interfaces.js.map +0 -1
  52. package/application/application-shims.d.ts +0 -351
  53. package/application/application-shims.js +0 -353
  54. package/application/application-shims.js.map +0 -1
  55. package/application/application.android.d.ts +0 -71
  56. package/application/application.android.js +0 -1213
  57. package/application/application.android.js.map +0 -1
  58. package/application/application.ios.d.ts +0 -78
  59. package/application/application.ios.js +0 -855
  60. package/application/application.ios.js.map +0 -1
  61. package/application/helpers-common.d.ts +0 -40
  62. package/application/helpers-common.js +0 -119
  63. package/application/helpers-common.js.map +0 -1
  64. package/application/helpers.android.d.ts +0 -17
  65. package/application/helpers.android.js +0 -173
  66. package/application/helpers.android.js.map +0 -1
  67. package/application/helpers.ios.d.ts +0 -27
  68. package/application/helpers.ios.js +0 -62
  69. package/application/helpers.ios.js.map +0 -1
  70. package/application/index.android.d.ts +0 -2
  71. package/application/index.android.js +0 -3
  72. package/application/index.android.js.map +0 -1
  73. package/application/index.ios.d.ts +0 -2
  74. package/application/index.ios.js +0 -3
  75. package/application/index.ios.js.map +0 -1
  76. package/application-settings/application-settings-common.d.ts +0 -2
  77. package/application-settings/application-settings-common.js +0 -15
  78. package/application-settings/application-settings-common.js.map +0 -1
  79. package/application-settings/index.android.d.ts +0 -11
  80. package/application-settings/index.android.js +0 -124
  81. package/application-settings/index.android.js.map +0 -1
  82. package/application-settings/index.ios.d.ts +0 -11
  83. package/application-settings/index.ios.js +0 -81
  84. package/application-settings/index.ios.js.map +0 -1
  85. package/bundle-entry-points.d.ts +0 -1
  86. package/bundle-entry-points.js +0 -47
  87. package/bundle-entry-points.js.map +0 -1
  88. package/color/color-common.d.ts +0 -136
  89. package/color/color-common.js +0 -341
  90. package/color/color-common.js.map +0 -1
  91. package/color/color-types.d.ts +0 -49
  92. package/color/color-types.js +0 -3
  93. package/color/color-types.js.map +0 -1
  94. package/color/color-utils.d.ts +0 -38
  95. package/color/color-utils.js +0 -213
  96. package/color/color-utils.js.map +0 -1
  97. package/color/index.android.d.ts +0 -4
  98. package/color/index.android.js +0 -7
  99. package/color/index.android.js.map +0 -1
  100. package/color/index.ios.d.ts +0 -7
  101. package/color/index.ios.js +0 -19
  102. package/color/index.ios.js.map +0 -1
  103. package/color/known-colors.d.ts +0 -144
  104. package/color/known-colors.js +0 -165
  105. package/color/known-colors.js.map +0 -1
  106. package/config/config.interface.d.ts +0 -254
  107. package/config/config.interface.js +0 -2
  108. package/config/config.interface.js.map +0 -1
  109. package/config/index.d.ts +0 -1
  110. package/config/index.js +0 -2
  111. package/config/index.js.map +0 -1
  112. package/connectivity/index.android.d.ts +0 -11
  113. package/connectivity/index.android.js +0 -157
  114. package/connectivity/index.android.js.map +0 -1
  115. package/connectivity/index.ios.d.ts +0 -11
  116. package/connectivity/index.ios.js +0 -132
  117. package/connectivity/index.ios.js.map +0 -1
  118. package/console/index.d.ts +0 -14
  119. package/console/index.js +0 -33
  120. package/console/index.js.map +0 -1
  121. package/core-types/animation-types.d.ts +0 -11
  122. package/core-types/animation-types.js +0 -13
  123. package/core-types/animation-types.js.map +0 -1
  124. package/core-types/index.d.ts +0 -330
  125. package/core-types/index.js +0 -280
  126. package/core-types/index.js.map +0 -1
  127. package/core-types/validators.d.ts +0 -2
  128. package/core-types/validators.js +0 -18
  129. package/core-types/validators.js.map +0 -1
  130. package/css/CSS3Parser.d.ts +0 -184
  131. package/css/CSS3Parser.js +0 -534
  132. package/css/CSS3Parser.js.map +0 -1
  133. package/css/CSSNativeScript.d.ts +0 -14
  134. package/css/CSSNativeScript.js +0 -113
  135. package/css/CSSNativeScript.js.map +0 -1
  136. package/css/css-tree-parser.d.ts +0 -1
  137. package/css/css-tree-parser.js +0 -133
  138. package/css/css-tree-parser.js.map +0 -1
  139. package/css/lib/parse/index.d.ts +0 -1
  140. package/css/lib/parse/index.js +0 -500
  141. package/css/lib/parse/index.js.map +0 -1
  142. package/css/parser.d.ts +0 -70
  143. package/css/parser.js +0 -517
  144. package/css/parser.js.map +0 -1
  145. package/css/reworkcss.d.ts +0 -44
  146. package/css/reworkcss.js +0 -5
  147. package/css/reworkcss.js.map +0 -1
  148. package/css/system-classes.d.ts +0 -12
  149. package/css/system-classes.js +0 -47
  150. package/css/system-classes.js.map +0 -1
  151. package/css-mediaquery/index.d.ts +0 -27
  152. package/css-mediaquery/index.js +0 -118
  153. package/css-mediaquery/index.js.map +0 -1
  154. package/css-value/reworkcss-value.d.ts +0 -31
  155. package/css-value/reworkcss-value.js +0 -91
  156. package/css-value/reworkcss-value.js.map +0 -1
  157. package/data/observable/index.d.ts +0 -212
  158. package/data/observable/index.js +0 -440
  159. package/data/observable/index.js.map +0 -1
  160. package/data/observable-array/index.d.ts +0 -215
  161. package/data/observable-array/index.js +0 -325
  162. package/data/observable-array/index.js.map +0 -1
  163. package/data/virtual-array/index.d.ts +0 -72
  164. package/data/virtual-array/index.js +0 -133
  165. package/data/virtual-array/index.js.map +0 -1
  166. package/debugger/InspectorBackendCommands.d.ts +0 -1056
  167. package/debugger/InspectorBackendCommands.js +0 -578
  168. package/debugger/InspectorBackendCommands.js.map +0 -1
  169. package/debugger/devtools-elements-interfaces.d.ts +0 -16
  170. package/debugger/devtools-elements-interfaces.js +0 -2
  171. package/debugger/devtools-elements-interfaces.js.map +0 -1
  172. package/debugger/devtools-elements.common.d.ts +0 -7
  173. package/debugger/devtools-elements.common.js +0 -93
  174. package/debugger/devtools-elements.common.js.map +0 -1
  175. package/debugger/devtools-elements.js +0 -20
  176. package/debugger/devtools-elements.js.map +0 -1
  177. package/debugger/dom-types.d.ts +0 -24
  178. package/debugger/dom-types.js +0 -152
  179. package/debugger/dom-types.js.map +0 -1
  180. package/debugger/index.d.ts +0 -87
  181. package/debugger/index.js +0 -118
  182. package/debugger/index.js.map +0 -1
  183. package/debugger/webinspector-css.d.ts +0 -34
  184. package/debugger/webinspector-css.js +0 -72
  185. package/debugger/webinspector-css.js.map +0 -1
  186. package/debugger/webinspector-dom.d.ts +0 -33
  187. package/debugger/webinspector-dom.js +0 -75
  188. package/debugger/webinspector-dom.js.map +0 -1
  189. package/debugger/webinspector-network.android.d.ts +0 -79
  190. package/debugger/webinspector-network.android.js +0 -208
  191. package/debugger/webinspector-network.android.js.map +0 -1
  192. package/debugger/webinspector-network.ios.d.ts +0 -79
  193. package/debugger/webinspector-network.ios.js +0 -204
  194. package/debugger/webinspector-network.ios.js.map +0 -1
  195. package/fetch/index.d.ts +0 -72
  196. package/fetch/index.js +0 -529
  197. package/fetch/index.js.map +0 -1
  198. package/file-system/file-system-access.android.d.ts +0 -151
  199. package/file-system/file-system-access.android.js +0 -1162
  200. package/file-system/file-system-access.android.js.map +0 -1
  201. package/file-system/file-system-access.ios.d.ts +0 -85
  202. package/file-system/file-system-access.ios.js +0 -623
  203. package/file-system/file-system-access.ios.js.map +0 -1
  204. package/file-system/index.js +0 -873
  205. package/file-system/index.js.map +0 -1
  206. package/fps-meter/fps-native.android.d.ts +0 -12
  207. package/fps-meter/fps-native.android.js +0 -62
  208. package/fps-meter/fps-native.android.js.map +0 -1
  209. package/fps-meter/fps-native.ios.d.ts +0 -11
  210. package/fps-meter/fps-native.ios.js +0 -56
  211. package/fps-meter/fps-native.ios.js.map +0 -1
  212. package/fps-meter/index.js +0 -77
  213. package/fps-meter/index.js.map +0 -1
  214. package/globals/index.d.ts +0 -7
  215. package/globals/index.js +0 -350
  216. package/globals/index.js.map +0 -1
  217. package/http/http-interfaces.d.ts +0 -84
  218. package/http/http-interfaces.js +0 -6
  219. package/http/http-interfaces.js.map +0 -1
  220. package/http/http-request/http-request-common.d.ts +0 -1
  221. package/http/http-request/http-request-common.js +0 -15
  222. package/http/http-request/http-request-common.js.map +0 -1
  223. package/http/http-request/index.android.d.ts +0 -3
  224. package/http/http-request/index.android.js +0 -274
  225. package/http/http-request/index.android.js.map +0 -1
  226. package/http/http-request/index.ios.d.ts +0 -3
  227. package/http/http-request/index.ios.js +0 -221
  228. package/http/http-request/index.ios.js.map +0 -1
  229. package/http/http-shared.d.ts +0 -5
  230. package/http/http-shared.js +0 -14
  231. package/http/http-shared.js.map +0 -1
  232. package/http/index.js +0 -72
  233. package/http/index.js.map +0 -1
  234. package/image-asset/image-asset-common.d.ts +0 -25
  235. package/image-asset/image-asset-common.js +0 -46
  236. package/image-asset/image-asset-common.js.map +0 -1
  237. package/image-asset/index.android.d.ts +0 -9
  238. package/image-asset/index.android.js +0 -33
  239. package/image-asset/index.android.js.map +0 -1
  240. package/image-asset/index.ios.d.ts +0 -10
  241. package/image-asset/index.ios.js +0 -57
  242. package/image-asset/index.ios.js.map +0 -1
  243. package/image-source/image-source-common.d.ts +0 -4
  244. package/image-source/image-source-common.js +0 -21
  245. package/image-source/image-source-common.js.map +0 -1
  246. package/image-source/index.android.d.ts +0 -58
  247. package/image-source/index.android.js +0 -370
  248. package/image-source/index.android.js.map +0 -1
  249. package/image-source/index.ios.d.ts +0 -59
  250. package/image-source/index.ios.js +0 -454
  251. package/image-source/index.ios.js.map +0 -1
  252. package/index.js +0 -38
  253. package/index.js.map +0 -1
  254. package/inspector_modules.d.ts +0 -4
  255. package/inspector_modules.js +0 -8
  256. package/inspector_modules.js.map +0 -1
  257. package/matrix/index.js +0 -45
  258. package/matrix/index.js.map +0 -1
  259. package/media-query-list/index.d.ts +0 -21
  260. package/media-query-list/index.js +0 -159
  261. package/media-query-list/index.js.map +0 -1
  262. package/module-name-resolver/helpers.d.ts +0 -14
  263. package/module-name-resolver/helpers.js +0 -27
  264. package/module-name-resolver/helpers.js.map +0 -1
  265. package/module-name-resolver/index.d.ts +0 -15
  266. package/module-name-resolver/index.js +0 -67
  267. package/module-name-resolver/index.js.map +0 -1
  268. package/module-name-resolver/non-bundle-workflow-compat.d.ts +0 -6
  269. package/module-name-resolver/non-bundle-workflow-compat.js +0 -128
  270. package/module-name-resolver/non-bundle-workflow-compat.js.map +0 -1
  271. package/module-name-resolver/qualifier-matcher/index.d.ts +0 -17
  272. package/module-name-resolver/qualifier-matcher/index.js +0 -141
  273. package/module-name-resolver/qualifier-matcher/index.js.map +0 -1
  274. package/platform/common.d.ts +0 -10
  275. package/platform/common.js +0 -14
  276. package/platform/common.js.map +0 -1
  277. package/platform/device/index.android.d.ts +0 -20
  278. package/platform/device/index.android.js +0 -78
  279. package/platform/device/index.android.js.map +0 -1
  280. package/platform/device/index.ios.d.ts +0 -19
  281. package/platform/device/index.ios.js +0 -69
  282. package/platform/device/index.ios.js.map +0 -1
  283. package/platform/index.js +0 -4
  284. package/platform/index.js.map +0 -1
  285. package/platform/screen/index.android.d.ts +0 -16
  286. package/platform/screen/index.android.js +0 -41
  287. package/platform/screen/index.android.js.map +0 -1
  288. package/platform/screen/index.ios.d.ts +0 -15
  289. package/platform/screen/index.ios.js +0 -35
  290. package/platform/screen/index.ios.js.map +0 -1
  291. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCCrypto.h +0 -79
  292. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +0 -20
  293. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h +0 -21
  294. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +0 -6
  295. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Resources/Info.plist +0 -52
  296. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSCCrypto.h +0 -79
  297. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSCWinterTC.h +0 -20
  298. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSString+WinterTC.h +0 -21
  299. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Modules/module.modulemap +0 -6
  300. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC +0 -0
  301. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Resources/Info.plist +0 -52
  302. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  303. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  304. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  305. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  306. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  307. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  308. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  309. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  310. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  311. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +0 -6
  312. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  313. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  314. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +0 -52
  315. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSCCrypto.h +0 -60
  316. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSData+Async.h +0 -24
  317. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSFileHandle+Async.h +0 -22
  318. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSString+Async.h +0 -25
  319. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSLabel.h +0 -16
  320. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSProcess.h +0 -29
  321. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSWidgets.h +0 -25
  322. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIImage+TNSBlocks.h +0 -26
  323. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIView+PassThroughParent.h +0 -17
  324. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Modules/module.modulemap +0 -6
  325. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/NSObject+Swizzling.h +0 -17
  326. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/UIView+PropertyBag.h +0 -18
  327. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Resources/Info.plist +0 -52
  328. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  329. package/profiling/index.js +0 -277
  330. package/profiling/index.js.map +0 -1
  331. package/text/formatted-string.js +0 -2
  332. package/text/formatted-string.js.map +0 -1
  333. package/text/index.android.d.ts +0 -9
  334. package/text/index.android.js +0 -11
  335. package/text/index.android.js.map +0 -1
  336. package/text/index.ios.d.ts +0 -9
  337. package/text/index.ios.js +0 -11
  338. package/text/index.ios.js.map +0 -1
  339. package/text/span.js +0 -2
  340. package/text/span.js.map +0 -1
  341. package/text/text-common.d.ts +0 -12
  342. package/text/text-common.js +0 -111
  343. package/text/text-common.js.map +0 -1
  344. package/timer/index.android.d.ts +0 -4
  345. package/timer/index.android.js +0 -75
  346. package/timer/index.android.js.map +0 -1
  347. package/timer/index.ios.d.ts +0 -4
  348. package/timer/index.ios.js +0 -68
  349. package/timer/index.ios.js.map +0 -1
  350. package/trace/index.js +0 -255
  351. package/trace/index.js.map +0 -1
  352. package/ui/action-bar/action-bar-common.d.ts +0 -85
  353. package/ui/action-bar/action-bar-common.js +0 -381
  354. package/ui/action-bar/action-bar-common.js.map +0 -1
  355. package/ui/action-bar/index.android.d.ts +0 -59
  356. package/ui/action-bar/index.android.js +0 -504
  357. package/ui/action-bar/index.android.js.map +0 -1
  358. package/ui/action-bar/index.ios.d.ts +0 -74
  359. package/ui/action-bar/index.ios.js +0 -590
  360. package/ui/action-bar/index.ios.js.map +0 -1
  361. package/ui/activity-indicator/activity-indicator-common.d.ts +0 -9
  362. package/ui/activity-indicator/activity-indicator-common.js +0 -22
  363. package/ui/activity-indicator/activity-indicator-common.js.map +0 -1
  364. package/ui/activity-indicator/index.android.d.ts +0 -18
  365. package/ui/activity-indicator/index.android.js +0 -54
  366. package/ui/activity-indicator/index.android.js.map +0 -1
  367. package/ui/activity-indicator/index.ios.d.ts +0 -19
  368. package/ui/activity-indicator/index.ios.js +0 -54
  369. package/ui/activity-indicator/index.ios.js.map +0 -1
  370. package/ui/animation/animation-common.d.ts +0 -30
  371. package/ui/animation/animation-common.js +0 -239
  372. package/ui/animation/animation-common.js.map +0 -1
  373. package/ui/animation/animation-shared.d.ts +0 -84
  374. package/ui/animation/animation-shared.js +0 -4
  375. package/ui/animation/animation-shared.js.map +0 -1
  376. package/ui/animation/animation-types.d.ts +0 -1
  377. package/ui/animation/animation-types.js +0 -3
  378. package/ui/animation/animation-types.js.map +0 -1
  379. package/ui/animation/index.android.d.ts +0 -23
  380. package/ui/animation/index.android.js +0 -432
  381. package/ui/animation/index.android.js.map +0 -1
  382. package/ui/animation/index.ios.d.ts +0 -28
  383. package/ui/animation/index.ios.js +0 -798
  384. package/ui/animation/index.ios.js.map +0 -1
  385. package/ui/animation/keyframe-animation.d.ts +0 -76
  386. package/ui/animation/keyframe-animation.js +0 -238
  387. package/ui/animation/keyframe-animation.js.map +0 -1
  388. package/ui/builder/binding-builder.d.ts +0 -16
  389. package/ui/builder/binding-builder.js +0 -171
  390. package/ui/builder/binding-builder.js.map +0 -1
  391. package/ui/builder/component-builder/index.d.ts +0 -7
  392. package/ui/builder/component-builder/index.js +0 -219
  393. package/ui/builder/component-builder/index.js.map +0 -1
  394. package/ui/builder/index.d.ts +0 -73
  395. package/ui/builder/index.js +0 -615
  396. package/ui/builder/index.js.map +0 -1
  397. package/ui/button/button-common.d.ts +0 -9
  398. package/ui/button/button-common.js +0 -26
  399. package/ui/button/button-common.js.map +0 -1
  400. package/ui/button/index.android.d.ts +0 -35
  401. package/ui/button/index.android.js +0 -166
  402. package/ui/button/index.android.js.map +0 -1
  403. package/ui/button/index.ios.d.ts +0 -47
  404. package/ui/button/index.ios.js +0 -298
  405. package/ui/button/index.ios.js.map +0 -1
  406. package/ui/content-view/index.js +0 -87
  407. package/ui/content-view/index.js.map +0 -1
  408. package/ui/core/bindable/bindable-expressions.d.ts +0 -7
  409. package/ui/core/bindable/bindable-expressions.js +0 -255
  410. package/ui/core/bindable/bindable-expressions.js.map +0 -1
  411. package/ui/core/bindable/bindable-resources.d.ts +0 -2
  412. package/ui/core/bindable/bindable-resources.js +0 -8
  413. package/ui/core/bindable/bindable-resources.js.map +0 -1
  414. package/ui/core/bindable/bindable-types.d.ts +0 -37
  415. package/ui/core/bindable/bindable-types.js +0 -3
  416. package/ui/core/bindable/bindable-types.js.map +0 -1
  417. package/ui/core/bindable/index.d.ts +0 -53
  418. package/ui/core/bindable/index.js +0 -555
  419. package/ui/core/bindable/index.js.map +0 -1
  420. package/ui/core/control-state-change/index.android.d.ts +0 -6
  421. package/ui/core/control-state-change/index.android.js +0 -8
  422. package/ui/core/control-state-change/index.android.js.map +0 -1
  423. package/ui/core/control-state-change/index.ios.d.ts +0 -10
  424. package/ui/core/control-state-change/index.ios.js +0 -43
  425. package/ui/core/control-state-change/index.ios.js.map +0 -1
  426. package/ui/core/properties/index.d.ts +0 -113
  427. package/ui/core/properties/index.js +0 -1276
  428. package/ui/core/properties/index.js.map +0 -1
  429. package/ui/core/properties/property-shared.d.ts +0 -35
  430. package/ui/core/properties/property-shared.js +0 -16
  431. package/ui/core/properties/property-shared.js.map +0 -1
  432. package/ui/core/view/index.android.d.ts +0 -161
  433. package/ui/core/view/index.android.js +0 -1236
  434. package/ui/core/view/index.android.js.map +0 -1
  435. package/ui/core/view/index.ios.d.ts +0 -163
  436. package/ui/core/view/index.ios.js +0 -953
  437. package/ui/core/view/index.ios.js.map +0 -1
  438. package/ui/core/view/view-common.d.ts +0 -289
  439. package/ui/core/view/view-common.js +0 -1082
  440. package/ui/core/view/view-common.js.map +0 -1
  441. package/ui/core/view/view-helper/index.android.d.ts +0 -9
  442. package/ui/core/view/view-helper/index.android.js +0 -56
  443. package/ui/core/view/view-helper/index.android.js.map +0 -1
  444. package/ui/core/view/view-helper/index.ios.d.ts +0 -63
  445. package/ui/core/view/view-helper/index.ios.js +0 -343
  446. package/ui/core/view/view-helper/index.ios.js.map +0 -1
  447. package/ui/core/view/view-helper/view-helper-common.d.ts +0 -11
  448. package/ui/core/view/view-helper/view-helper-common.js +0 -159
  449. package/ui/core/view/view-helper/view-helper-common.js.map +0 -1
  450. package/ui/core/view/view-helper/view-helper-shared.d.ts +0 -5
  451. package/ui/core/view/view-helper/view-helper-shared.js +0 -6
  452. package/ui/core/view/view-helper/view-helper-shared.js.map +0 -1
  453. package/ui/core/view/view-interfaces.d.ts +0 -54
  454. package/ui/core/view/view-interfaces.js +0 -2
  455. package/ui/core/view/view-interfaces.js.map +0 -1
  456. package/ui/core/view-base/index.d.ts +0 -593
  457. package/ui/core/view-base/index.js +0 -1154
  458. package/ui/core/view-base/index.js.map +0 -1
  459. package/ui/core/view-base/utils.d.ts +0 -1
  460. package/ui/core/view-base/utils.js +0 -9
  461. package/ui/core/view-base/utils.js.map +0 -1
  462. package/ui/core/weak-event-listener/index.js +0 -123
  463. package/ui/core/weak-event-listener/index.js.map +0 -1
  464. package/ui/date-picker/date-picker-common.d.ts +0 -28
  465. package/ui/date-picker/date-picker-common.js +0 -82
  466. package/ui/date-picker/date-picker-common.js.map +0 -1
  467. package/ui/date-picker/index.android.d.ts +0 -25
  468. package/ui/date-picker/index.android.js +0 -133
  469. package/ui/date-picker/index.android.js.map +0 -1
  470. package/ui/date-picker/index.ios.d.ts +0 -39
  471. package/ui/date-picker/index.ios.js +0 -165
  472. package/ui/date-picker/index.ios.js.map +0 -1
  473. package/ui/dialogs/dialogs-common.d.ts +0 -211
  474. package/ui/dialogs/dialogs-common.js +0 -167
  475. package/ui/dialogs/dialogs-common.js.map +0 -1
  476. package/ui/dialogs/index.android.d.ts +0 -20
  477. package/ui/dialogs/index.android.js +0 -329
  478. package/ui/dialogs/index.android.js.map +0 -1
  479. package/ui/dialogs/index.ios.d.ts +0 -17
  480. package/ui/dialogs/index.ios.js +0 -291
  481. package/ui/dialogs/index.ios.js.map +0 -1
  482. package/ui/editable-text-base/editable-text-base-common.d.ts +0 -36
  483. package/ui/editable-text-base/editable-text-base-common.js +0 -91
  484. package/ui/editable-text-base/editable-text-base-common.js.map +0 -1
  485. package/ui/editable-text-base/index.android.d.ts +0 -59
  486. package/ui/editable-text-base/index.android.js +0 -496
  487. package/ui/editable-text-base/index.android.js.map +0 -1
  488. package/ui/editable-text-base/index.ios.d.ts +0 -25
  489. package/ui/editable-text-base/index.ios.js +0 -252
  490. package/ui/editable-text-base/index.ios.js.map +0 -1
  491. package/ui/embedding/index.android.d.ts +0 -4
  492. package/ui/embedding/index.android.js +0 -14
  493. package/ui/embedding/index.android.js.map +0 -1
  494. package/ui/embedding/index.ios.d.ts +0 -1
  495. package/ui/embedding/index.ios.js +0 -4
  496. package/ui/embedding/index.ios.js.map +0 -1
  497. package/ui/enums/enums.js +0 -6
  498. package/ui/enums/enums.js.map +0 -1
  499. package/ui/enums/index.js +0 -6
  500. package/ui/enums/index.js.map +0 -1
  501. package/ui/frame/activity.android.d.ts +0 -1
  502. package/ui/frame/activity.android.js +0 -110
  503. package/ui/frame/activity.android.js.map +0 -1
  504. package/ui/frame/fragment.android.d.ts +0 -3
  505. package/ui/frame/fragment.android.js +0 -90
  506. package/ui/frame/fragment.android.js.map +0 -1
  507. package/ui/frame/fragment.ios.d.ts +0 -3
  508. package/ui/frame/fragment.ios.js +0 -4
  509. package/ui/frame/fragment.ios.js.map +0 -1
  510. package/ui/frame/fragment.transitions.android.d.ts +0 -36
  511. package/ui/frame/fragment.transitions.android.js +0 -637
  512. package/ui/frame/fragment.transitions.android.js.map +0 -1
  513. package/ui/frame/fragment.transitions.types.d.ts +0 -6
  514. package/ui/frame/fragment.transitions.types.js +0 -2
  515. package/ui/frame/fragment.transitions.types.js.map +0 -1
  516. package/ui/frame/frame-common.d.ts +0 -101
  517. package/ui/frame/frame-common.js +0 -688
  518. package/ui/frame/frame-common.js.map +0 -1
  519. package/ui/frame/frame-helper-for-android.d.ts +0 -37
  520. package/ui/frame/frame-helper-for-android.js +0 -337
  521. package/ui/frame/frame-helper-for-android.js.map +0 -1
  522. package/ui/frame/frame-helpers.d.ts +0 -16
  523. package/ui/frame/frame-helpers.js +0 -19
  524. package/ui/frame/frame-helpers.js.map +0 -1
  525. package/ui/frame/frame-interfaces.d.ts +0 -94
  526. package/ui/frame/frame-interfaces.js +0 -7
  527. package/ui/frame/frame-interfaces.js.map +0 -1
  528. package/ui/frame/frame-stack.d.ts +0 -7
  529. package/ui/frame/frame-stack.js +0 -41
  530. package/ui/frame/frame-stack.js.map +0 -1
  531. package/ui/frame/index.android.d.ts +0 -83
  532. package/ui/frame/index.android.js +0 -918
  533. package/ui/frame/index.android.js.map +0 -1
  534. package/ui/frame/index.ios.d.ts +0 -55
  535. package/ui/frame/index.ios.js +0 -668
  536. package/ui/frame/index.ios.js.map +0 -1
  537. package/ui/gestures/gestures-common.d.ts +0 -32
  538. package/ui/gestures/gestures-common.js +0 -78
  539. package/ui/gestures/gestures-common.js.map +0 -1
  540. package/ui/gestures/gestures-types.d.ts +0 -108
  541. package/ui/gestures/gestures-types.js +0 -40
  542. package/ui/gestures/gestures-types.js.map +0 -1
  543. package/ui/gestures/index.android.d.ts +0 -49
  544. package/ui/gestures/index.android.js +0 -597
  545. package/ui/gestures/index.android.js.map +0 -1
  546. package/ui/gestures/index.ios.d.ts +0 -70
  547. package/ui/gestures/index.ios.js +0 -512
  548. package/ui/gestures/index.ios.js.map +0 -1
  549. package/ui/gestures/touch-manager.d.ts +0 -82
  550. package/ui/gestures/touch-manager.js +0 -268
  551. package/ui/gestures/touch-manager.js.map +0 -1
  552. package/ui/html-view/html-view-common.d.ts +0 -12
  553. package/ui/html-view/html-view-common.js +0 -31
  554. package/ui/html-view/html-view-common.js.map +0 -1
  555. package/ui/html-view/index.android.d.ts +0 -35
  556. package/ui/html-view/index.android.js +0 -90
  557. package/ui/html-view/index.android.js.map +0 -1
  558. package/ui/html-view/index.ios.d.ts +0 -27
  559. package/ui/html-view/index.ios.js +0 -101
  560. package/ui/html-view/index.ios.js.map +0 -1
  561. package/ui/image/image-common.d.ts +0 -45
  562. package/ui/image/image-common.js +0 -195
  563. package/ui/image/image-common.js.map +0 -1
  564. package/ui/image/index.android.d.ts +0 -27
  565. package/ui/image/index.android.js +0 -173
  566. package/ui/image/index.android.js.map +0 -1
  567. package/ui/image/index.ios.d.ts +0 -26
  568. package/ui/image/index.ios.js +0 -187
  569. package/ui/image/index.ios.js.map +0 -1
  570. package/ui/image/symbol-effects-common.d.ts +0 -36
  571. package/ui/image/symbol-effects-common.js +0 -35
  572. package/ui/image/symbol-effects-common.js.map +0 -1
  573. package/ui/image/symbol-effects.android.d.ts +0 -5
  574. package/ui/image/symbol-effects.android.js +0 -8
  575. package/ui/image/symbol-effects.android.js.map +0 -1
  576. package/ui/image/symbol-effects.ios.d.ts +0 -6
  577. package/ui/image/symbol-effects.ios.js +0 -79
  578. package/ui/image/symbol-effects.ios.js.map +0 -1
  579. package/ui/image-cache/image-cache-common.d.ts +0 -40
  580. package/ui/image-cache/image-cache-common.js +0 -176
  581. package/ui/image-cache/image-cache-common.js.map +0 -1
  582. package/ui/image-cache/index.android.d.ts +0 -11
  583. package/ui/image-cache/index.android.js +0 -76
  584. package/ui/image-cache/index.android.js.map +0 -1
  585. package/ui/image-cache/index.ios.d.ts +0 -11
  586. package/ui/image-cache/index.ios.js +0 -78
  587. package/ui/image-cache/index.ios.js.map +0 -1
  588. package/ui/index.d.ts +0 -85
  589. package/ui/index.js +0 -70
  590. package/ui/index.js.map +0 -1
  591. package/ui/label/index.android.d.ts +0 -13
  592. package/ui/label/index.android.js +0 -44
  593. package/ui/label/index.android.js.map +0 -1
  594. package/ui/label/index.ios.d.ts +0 -30
  595. package/ui/label/index.ios.js +0 -224
  596. package/ui/label/index.ios.js.map +0 -1
  597. package/ui/layouts/absolute-layout/absolute-layout-common.d.ts +0 -16
  598. package/ui/layouts/absolute-layout/absolute-layout-common.js +0 -72
  599. package/ui/layouts/absolute-layout/absolute-layout-common.js.map +0 -1
  600. package/ui/layouts/absolute-layout/index.android.d.ts +0 -6
  601. package/ui/layouts/absolute-layout/index.android.js +0 -26
  602. package/ui/layouts/absolute-layout/index.android.js.map +0 -1
  603. package/ui/layouts/absolute-layout/index.ios.d.ts +0 -10
  604. package/ui/layouts/absolute-layout/index.ios.js +0 -48
  605. package/ui/layouts/absolute-layout/index.ios.js.map +0 -1
  606. package/ui/layouts/dock-layout/dock-layout-common.d.ts +0 -14
  607. package/ui/layouts/dock-layout/dock-layout-common.js +0 -51
  608. package/ui/layouts/dock-layout/dock-layout-common.js.map +0 -1
  609. package/ui/layouts/dock-layout/index.android.d.ts +0 -9
  610. package/ui/layouts/dock-layout/index.android.js +0 -38
  611. package/ui/layouts/dock-layout/index.android.js.map +0 -1
  612. package/ui/layouts/dock-layout/index.ios.d.ts +0 -8
  613. package/ui/layouts/dock-layout/index.ios.js +0 -115
  614. package/ui/layouts/dock-layout/index.ios.js.map +0 -1
  615. package/ui/layouts/flexbox-layout/flexbox-layout-common.d.ts +0 -126
  616. package/ui/layouts/flexbox-layout/flexbox-layout-common.js +0 -403
  617. package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +0 -1
  618. package/ui/layouts/flexbox-layout/index.android.d.ts +0 -28
  619. package/ui/layouts/flexbox-layout/index.android.js +0 -152
  620. package/ui/layouts/flexbox-layout/index.android.js.map +0 -1
  621. package/ui/layouts/flexbox-layout/index.ios.d.ts +0 -44
  622. package/ui/layouts/flexbox-layout/index.ios.js +0 -1232
  623. package/ui/layouts/flexbox-layout/index.ios.js.map +0 -1
  624. package/ui/layouts/grid-layout/grid-layout-common.d.ts +0 -72
  625. package/ui/layouts/grid-layout/grid-layout-common.js +0 -358
  626. package/ui/layouts/grid-layout/grid-layout-common.js.map +0 -1
  627. package/ui/layouts/grid-layout/index.android.d.ts +0 -23
  628. package/ui/layouts/grid-layout/index.android.js +0 -122
  629. package/ui/layouts/grid-layout/index.android.js.map +0 -1
  630. package/ui/layouts/grid-layout/index.ios.d.ts +0 -28
  631. package/ui/layouts/grid-layout/index.ios.js +0 -778
  632. package/ui/layouts/grid-layout/index.ios.js.map +0 -1
  633. package/ui/layouts/index.d.ts +0 -8
  634. package/ui/layouts/index.js +0 -9
  635. package/ui/layouts/index.js.map +0 -1
  636. package/ui/layouts/layout-base-common.d.ts +0 -36
  637. package/ui/layouts/layout-base-common.js +0 -141
  638. package/ui/layouts/layout-base-common.js.map +0 -1
  639. package/ui/layouts/layout-base.android.d.ts +0 -23
  640. package/ui/layouts/layout-base.android.js +0 -50
  641. package/ui/layouts/layout-base.android.js.map +0 -1
  642. package/ui/layouts/layout-base.ios.d.ts +0 -15
  643. package/ui/layouts/layout-base.ios.js +0 -40
  644. package/ui/layouts/layout-base.ios.js.map +0 -1
  645. package/ui/layouts/root-layout/index.android.d.ts +0 -15
  646. package/ui/layouts/root-layout/index.android.js +0 -126
  647. package/ui/layouts/root-layout/index.android.js.map +0 -1
  648. package/ui/layouts/root-layout/index.ios.d.ts +0 -17
  649. package/ui/layouts/root-layout/index.ios.js +0 -101
  650. package/ui/layouts/root-layout/index.ios.js.map +0 -1
  651. package/ui/layouts/root-layout/root-layout-common.d.ts +0 -61
  652. package/ui/layouts/root-layout/root-layout-common.js +0 -422
  653. package/ui/layouts/root-layout/root-layout-common.js.map +0 -1
  654. package/ui/layouts/root-layout/root-layout-stack.d.ts +0 -5
  655. package/ui/layouts/root-layout/root-layout-stack.js +0 -19
  656. package/ui/layouts/root-layout/root-layout-stack.js.map +0 -1
  657. package/ui/layouts/stack-layout/index.android.d.ts +0 -7
  658. package/ui/layouts/stack-layout/index.android.js +0 -11
  659. package/ui/layouts/stack-layout/index.android.js.map +0 -1
  660. package/ui/layouts/stack-layout/index.ios.d.ts +0 -10
  661. package/ui/layouts/stack-layout/index.ios.js +0 -149
  662. package/ui/layouts/stack-layout/index.ios.js.map +0 -1
  663. package/ui/layouts/stack-layout/stack-layout-common.d.ts +0 -8
  664. package/ui/layouts/stack-layout/stack-layout-common.js +0 -19
  665. package/ui/layouts/stack-layout/stack-layout-common.js.map +0 -1
  666. package/ui/layouts/wrap-layout/index.android.d.ts +0 -10
  667. package/ui/layouts/wrap-layout/index.android.js +0 -18
  668. package/ui/layouts/wrap-layout/index.android.js.map +0 -1
  669. package/ui/layouts/wrap-layout/index.ios.d.ts +0 -8
  670. package/ui/layouts/wrap-layout/index.ios.js +0 -170
  671. package/ui/layouts/wrap-layout/index.ios.js.map +0 -1
  672. package/ui/layouts/wrap-layout/wrap-layout-common.d.ts +0 -15
  673. package/ui/layouts/wrap-layout/wrap-layout-common.js +0 -40
  674. package/ui/layouts/wrap-layout/wrap-layout-common.js.map +0 -1
  675. package/ui/list-picker/index.android.d.ts +0 -21
  676. package/ui/list-picker/index.android.js +0 -181
  677. package/ui/list-picker/index.android.js.map +0 -1
  678. package/ui/list-picker/index.ios.d.ts +0 -22
  679. package/ui/list-picker/index.ios.js +0 -99
  680. package/ui/list-picker/index.ios.js.map +0 -1
  681. package/ui/list-picker/list-picker-common.d.ts +0 -23
  682. package/ui/list-picker/list-picker-common.js +0 -78
  683. package/ui/list-picker/list-picker-common.js.map +0 -1
  684. package/ui/list-view/index.android.d.ts +0 -48
  685. package/ui/list-view/index.android.js +0 -368
  686. package/ui/list-view/index.android.js.map +0 -1
  687. package/ui/list-view/index.ios.d.ts +0 -55
  688. package/ui/list-view/index.ios.js +0 -460
  689. package/ui/list-view/index.ios.js.map +0 -1
  690. package/ui/list-view/list-view-common.d.ts +0 -66
  691. package/ui/list-view/list-view-common.js +0 -211
  692. package/ui/list-view/list-view-common.js.map +0 -1
  693. package/ui/page/events.d.ts +0 -6
  694. package/ui/page/events.js +0 -7
  695. package/ui/page/events.js.map +0 -1
  696. package/ui/page/index.android.d.ts +0 -31
  697. package/ui/page/index.android.js +0 -150
  698. package/ui/page/index.android.js.map +0 -1
  699. package/ui/page/index.ios.d.ts +0 -56
  700. package/ui/page/index.ios.js +0 -564
  701. package/ui/page/index.ios.js.map +0 -1
  702. package/ui/page/page-common.d.ts +0 -79
  703. package/ui/page/page-common.js +0 -205
  704. package/ui/page/page-common.js.map +0 -1
  705. package/ui/placeholder/index.android.d.ts +0 -12
  706. package/ui/placeholder/index.android.js +0 -21
  707. package/ui/placeholder/index.android.js.map +0 -1
  708. package/ui/placeholder/index.js +0 -16
  709. package/ui/placeholder/index.js.map +0 -1
  710. package/ui/placeholder/placeholder-common.d.ts +0 -11
  711. package/ui/placeholder/placeholder-common.js +0 -2
  712. package/ui/placeholder/placeholder-common.js.map +0 -1
  713. package/ui/progress/index.android.d.ts +0 -23
  714. package/ui/progress/index.android.js +0 -65
  715. package/ui/progress/index.android.js.map +0 -1
  716. package/ui/progress/index.ios.d.ts +0 -24
  717. package/ui/progress/index.ios.js +0 -45
  718. package/ui/progress/index.ios.js.map +0 -1
  719. package/ui/progress/progress-common.d.ts +0 -15
  720. package/ui/progress/progress-common.js +0 -34
  721. package/ui/progress/progress-common.js.map +0 -1
  722. package/ui/proxy-view-container/index.d.ts +0 -33
  723. package/ui/proxy-view-container/index.js +0 -247
  724. package/ui/proxy-view-container/index.js.map +0 -1
  725. package/ui/repeater/index.d.ts +0 -67
  726. package/ui/repeater/index.js +0 -225
  727. package/ui/repeater/index.js.map +0 -1
  728. package/ui/scroll-view/index.android.d.ts +0 -30
  729. package/ui/scroll-view/index.android.js +0 -157
  730. package/ui/scroll-view/index.android.js.map +0 -1
  731. package/ui/scroll-view/index.ios.d.ts +0 -29
  732. package/ui/scroll-view/index.ios.js +0 -174
  733. package/ui/scroll-view/index.ios.js.map +0 -1
  734. package/ui/scroll-view/scroll-view-common.d.ts +0 -32
  735. package/ui/scroll-view/scroll-view-common.js +0 -93
  736. package/ui/scroll-view/scroll-view-common.js.map +0 -1
  737. package/ui/search-bar/index.android.d.ts +0 -55
  738. package/ui/search-bar/index.android.js +0 -251
  739. package/ui/search-bar/index.android.js.map +0 -1
  740. package/ui/search-bar/index.ios.d.ts +0 -44
  741. package/ui/search-bar/index.ios.js +0 -198
  742. package/ui/search-bar/index.ios.js.map +0 -1
  743. package/ui/search-bar/search-bar-common.d.ts +0 -17
  744. package/ui/search-bar/search-bar-common.js +0 -36
  745. package/ui/search-bar/search-bar-common.js.map +0 -1
  746. package/ui/segmented-bar/index.android.d.ts +0 -51
  747. package/ui/segmented-bar/index.android.js +0 -286
  748. package/ui/segmented-bar/index.android.js.map +0 -1
  749. package/ui/segmented-bar/index.ios.d.ts +0 -33
  750. package/ui/segmented-bar/index.ios.js +0 -140
  751. package/ui/segmented-bar/index.ios.js.map +0 -1
  752. package/ui/segmented-bar/segmented-bar-common.d.ts +0 -37
  753. package/ui/segmented-bar/segmented-bar-common.js +0 -146
  754. package/ui/segmented-bar/segmented-bar-common.js.map +0 -1
  755. package/ui/slider/index.android.d.ts +0 -38
  756. package/ui/slider/index.android.js +0 -126
  757. package/ui/slider/index.android.js.map +0 -1
  758. package/ui/slider/index.ios.d.ts +0 -40
  759. package/ui/slider/index.ios.js +0 -145
  760. package/ui/slider/index.ios.js.map +0 -1
  761. package/ui/slider/slider-common.d.ts +0 -27
  762. package/ui/slider/slider-common.js +0 -69
  763. package/ui/slider/slider-common.js.map +0 -1
  764. package/ui/styling/background-common.d.ts +0 -78
  765. package/ui/styling/background-common.js +0 -241
  766. package/ui/styling/background-common.js.map +0 -1
  767. package/ui/styling/background.android.d.ts +0 -3
  768. package/ui/styling/background.android.js +0 -82
  769. package/ui/styling/background.android.js.map +0 -1
  770. package/ui/styling/background.ios.d.ts +0 -20
  771. package/ui/styling/background.ios.js +0 -1096
  772. package/ui/styling/background.ios.js.map +0 -1
  773. package/ui/styling/box-shadow.d.ts +0 -9
  774. package/ui/styling/box-shadow.js +0 -3
  775. package/ui/styling/box-shadow.js.map +0 -1
  776. package/ui/styling/clip-path-function.d.ts +0 -16
  777. package/ui/styling/clip-path-function.js +0 -25
  778. package/ui/styling/clip-path-function.js.map +0 -1
  779. package/ui/styling/converters.d.ts +0 -2
  780. package/ui/styling/converters.js +0 -41
  781. package/ui/styling/converters.js.map +0 -1
  782. package/ui/styling/css-animation-parser.d.ts +0 -14
  783. package/ui/styling/css-animation-parser.js +0 -187
  784. package/ui/styling/css-animation-parser.js.map +0 -1
  785. package/ui/styling/css-selector.d.ts +0 -270
  786. package/ui/styling/css-selector.js +0 -934
  787. package/ui/styling/css-selector.js.map +0 -1
  788. package/ui/styling/css-shadow.d.ts +0 -19
  789. package/ui/styling/css-shadow.js +0 -26
  790. package/ui/styling/css-shadow.js.map +0 -1
  791. package/ui/styling/css-stroke.d.ts +0 -12
  792. package/ui/styling/css-stroke.js +0 -19
  793. package/ui/styling/css-stroke.js.map +0 -1
  794. package/ui/styling/css-transform.d.ts +0 -2
  795. package/ui/styling/css-transform.js +0 -110
  796. package/ui/styling/css-transform.js.map +0 -1
  797. package/ui/styling/css-utils.d.ts +0 -7
  798. package/ui/styling/css-utils.js +0 -62
  799. package/ui/styling/css-utils.js.map +0 -1
  800. package/ui/styling/font-common.d.ts +0 -62
  801. package/ui/styling/font-common.js +0 -195
  802. package/ui/styling/font-common.js.map +0 -1
  803. package/ui/styling/font-interfaces.d.ts +0 -16
  804. package/ui/styling/font-interfaces.js +0 -2
  805. package/ui/styling/font-interfaces.js.map +0 -1
  806. package/ui/styling/font.android.d.ts +0 -15
  807. package/ui/styling/font.android.js +0 -226
  808. package/ui/styling/font.android.js.map +0 -1
  809. package/ui/styling/font.ios.d.ts +0 -18
  810. package/ui/styling/font.ios.js +0 -159
  811. package/ui/styling/font.ios.js.map +0 -1
  812. package/ui/styling/length-shared.d.ts +0 -52
  813. package/ui/styling/length-shared.js +0 -173
  814. package/ui/styling/length-shared.js.map +0 -1
  815. package/ui/styling/linear-gradient.d.ts +0 -13
  816. package/ui/styling/linear-gradient.js +0 -48
  817. package/ui/styling/linear-gradient.js.map +0 -1
  818. package/ui/styling/style/index.d.ts +0 -164
  819. package/ui/styling/style/index.js +0 -67
  820. package/ui/styling/style/index.js.map +0 -1
  821. package/ui/styling/style-properties.d.ts +0 -62
  822. package/ui/styling/style-properties.js +0 -1132
  823. package/ui/styling/style-properties.js.map +0 -1
  824. package/ui/styling/style-scope.d.ts +0 -87
  825. package/ui/styling/style-scope.js +0 -1028
  826. package/ui/styling/style-scope.js.map +0 -1
  827. package/ui/styling/styling-profile.d.ts +0 -1
  828. package/ui/styling/styling-profile.js +0 -4
  829. package/ui/styling/styling-profile.js.map +0 -1
  830. package/ui/styling/styling-shared.d.ts +0 -3
  831. package/ui/styling/styling-shared.js +0 -6
  832. package/ui/styling/styling-shared.js.map +0 -1
  833. package/ui/switch/index.android.d.ts +0 -28
  834. package/ui/switch/index.android.js +0 -113
  835. package/ui/switch/index.android.js.map +0 -1
  836. package/ui/switch/index.ios.d.ts +0 -31
  837. package/ui/switch/index.ios.js +0 -148
  838. package/ui/switch/index.ios.js.map +0 -1
  839. package/ui/switch/switch-common.d.ts +0 -12
  840. package/ui/switch/switch-common.js +0 -37
  841. package/ui/switch/switch-common.js.map +0 -1
  842. package/ui/tab-view/index.android.d.ts +0 -89
  843. package/ui/tab-view/index.android.js +0 -648
  844. package/ui/tab-view/index.android.js.map +0 -1
  845. package/ui/tab-view/index.ios.d.ts +0 -82
  846. package/ui/tab-view/index.ios.js +0 -589
  847. package/ui/tab-view/index.ios.js.map +0 -1
  848. package/ui/tab-view/tab-view-common.d.ts +0 -71
  849. package/ui/tab-view/tab-view-common.js +0 -262
  850. package/ui/tab-view/tab-view-common.js.map +0 -1
  851. package/ui/text-base/formatted-string.js +0 -163
  852. package/ui/text-base/formatted-string.js.map +0 -1
  853. package/ui/text-base/index.android.d.ts +0 -101
  854. package/ui/text-base/index.android.js +0 -560
  855. package/ui/text-base/index.android.js.map +0 -1
  856. package/ui/text-base/index.ios.d.ts +0 -69
  857. package/ui/text-base/index.ios.js +0 -458
  858. package/ui/text-base/index.ios.js.map +0 -1
  859. package/ui/text-base/span.js +0 -113
  860. package/ui/text-base/span.js.map +0 -1
  861. package/ui/text-base/text-base-common.d.ts +0 -98
  862. package/ui/text-base/text-base-common.js +0 -323
  863. package/ui/text-base/text-base-common.js.map +0 -1
  864. package/ui/text-field/index.android.d.ts +0 -10
  865. package/ui/text-field/index.android.js +0 -89
  866. package/ui/text-field/index.android.js.map +0 -1
  867. package/ui/text-field/index.ios.d.ts +0 -68
  868. package/ui/text-field/index.ios.js +0 -311
  869. package/ui/text-field/index.ios.js.map +0 -1
  870. package/ui/text-field/text-field-common.d.ts +0 -11
  871. package/ui/text-field/text-field-common.js +0 -25
  872. package/ui/text-field/text-field-common.js.map +0 -1
  873. package/ui/text-view/index.android.d.ts +0 -8
  874. package/ui/text-view/index.android.js +0 -24
  875. package/ui/text-view/index.android.js.map +0 -1
  876. package/ui/text-view/index.ios.d.ts +0 -73
  877. package/ui/text-view/index.ios.js +0 -427
  878. package/ui/text-view/index.ios.js.map +0 -1
  879. package/ui/text-view/text-view-common.d.ts +0 -32
  880. package/ui/text-view/text-view-common.js +0 -39
  881. package/ui/text-view/text-view-common.js.map +0 -1
  882. package/ui/time-picker/index.android.d.ts +0 -10
  883. package/ui/time-picker/index.android.js +0 -81
  884. package/ui/time-picker/index.android.js.map +0 -1
  885. package/ui/time-picker/index.ios.d.ts +0 -40
  886. package/ui/time-picker/index.ios.js +0 -138
  887. package/ui/time-picker/index.ios.js.map +0 -1
  888. package/ui/time-picker/time-picker-common.d.ts +0 -31
  889. package/ui/time-picker/time-picker-common.js +0 -176
  890. package/ui/time-picker/time-picker-common.js.map +0 -1
  891. package/ui/transition/fade-transition.android.d.ts +0 -4
  892. package/ui/transition/fade-transition.android.js +0 -28
  893. package/ui/transition/fade-transition.android.js.map +0 -1
  894. package/ui/transition/fade-transition.ios.d.ts +0 -17
  895. package/ui/transition/fade-transition.ios.js +0 -65
  896. package/ui/transition/fade-transition.ios.js.map +0 -1
  897. package/ui/transition/flip-transition.android.d.ts +0 -6
  898. package/ui/transition/flip-transition.android.js +0 -90
  899. package/ui/transition/flip-transition.android.js.map +0 -1
  900. package/ui/transition/index.android.d.ts +0 -19
  901. package/ui/transition/index.android.js +0 -37
  902. package/ui/transition/index.android.js.map +0 -1
  903. package/ui/transition/index.ios.d.ts +0 -14
  904. package/ui/transition/index.ios.js +0 -30
  905. package/ui/transition/index.ios.js.map +0 -1
  906. package/ui/transition/modal-transition.android.d.ts +0 -5
  907. package/ui/transition/modal-transition.android.js +0 -7
  908. package/ui/transition/modal-transition.android.js.map +0 -1
  909. package/ui/transition/modal-transition.ios.d.ts +0 -34
  910. package/ui/transition/modal-transition.ios.js +0 -182
  911. package/ui/transition/modal-transition.ios.js.map +0 -1
  912. package/ui/transition/page-transition.android.d.ts +0 -9
  913. package/ui/transition/page-transition.android.js +0 -279
  914. package/ui/transition/page-transition.android.js.map +0 -1
  915. package/ui/transition/page-transition.ios.d.ts +0 -35
  916. package/ui/transition/page-transition.ios.js +0 -199
  917. package/ui/transition/page-transition.ios.js.map +0 -1
  918. package/ui/transition/shared-transition-helper.android.d.ts +0 -9
  919. package/ui/transition/shared-transition-helper.android.js +0 -10
  920. package/ui/transition/shared-transition-helper.android.js.map +0 -1
  921. package/ui/transition/shared-transition-helper.ios.d.ts +0 -14
  922. package/ui/transition/shared-transition-helper.ios.js +0 -539
  923. package/ui/transition/shared-transition-helper.ios.js.map +0 -1
  924. package/ui/transition/shared-transition.d.ts +0 -271
  925. package/ui/transition/shared-transition.js +0 -215
  926. package/ui/transition/shared-transition.js.map +0 -1
  927. package/ui/transition/slide-transition.android.d.ts +0 -7
  928. package/ui/transition/slide-transition.android.js +0 -116
  929. package/ui/transition/slide-transition.android.js.map +0 -1
  930. package/ui/transition/slide-transition.ios.d.ts +0 -19
  931. package/ui/transition/slide-transition.ios.js +0 -95
  932. package/ui/transition/slide-transition.ios.js.map +0 -1
  933. package/ui/utils.android.d.ts +0 -5
  934. package/ui/utils.android.js +0 -16
  935. package/ui/utils.android.js.map +0 -1
  936. package/ui/utils.ios.d.ts +0 -11
  937. package/ui/utils.ios.js +0 -66
  938. package/ui/utils.ios.js.map +0 -1
  939. package/ui/web-view/index.android.d.ts +0 -18
  940. package/ui/web-view/index.android.js +0 -177
  941. package/ui/web-view/index.android.js.map +0 -1
  942. package/ui/web-view/index.ios.d.ts +0 -27
  943. package/ui/web-view/index.ios.js +0 -246
  944. package/ui/web-view/index.ios.js.map +0 -1
  945. package/ui/web-view/web-view-common.d.ts +0 -31
  946. package/ui/web-view/web-view-common.js +0 -74
  947. package/ui/web-view/web-view-common.js.map +0 -1
  948. package/ui/web-view/web-view-interfaces.d.ts +0 -11
  949. package/ui/web-view/web-view-interfaces.js +0 -2
  950. package/ui/web-view/web-view-interfaces.js.map +0 -1
  951. package/utils/animation-helpers.d.ts +0 -27
  952. package/utils/animation-helpers.js +0 -48
  953. package/utils/animation-helpers.js.map +0 -1
  954. package/utils/common.d.ts +0 -26
  955. package/utils/common.js +0 -139
  956. package/utils/common.js.map +0 -1
  957. package/utils/constants.android.d.ts +0 -1
  958. package/utils/constants.android.js +0 -2
  959. package/utils/constants.android.js.map +0 -1
  960. package/utils/constants.ios.d.ts +0 -1
  961. package/utils/constants.ios.js +0 -2
  962. package/utils/constants.ios.js.map +0 -1
  963. package/utils/debug-source.d.ts +0 -19
  964. package/utils/debug-source.js +0 -78
  965. package/utils/debug-source.js.map +0 -1
  966. package/utils/debug.js +0 -3
  967. package/utils/debug.js.map +0 -1
  968. package/utils/index.android.d.ts +0 -26
  969. package/utils/index.android.js +0 -205
  970. package/utils/index.android.js.map +0 -1
  971. package/utils/index.ios.d.ts +0 -22
  972. package/utils/index.ios.js +0 -113
  973. package/utils/index.ios.js.map +0 -1
  974. package/utils/layout-helper/index.android.d.ts +0 -24
  975. package/utils/layout-helper/index.android.js +0 -77
  976. package/utils/layout-helper/index.android.js.map +0 -1
  977. package/utils/layout-helper/index.ios.d.ts +0 -24
  978. package/utils/layout-helper/index.ios.js +0 -64
  979. package/utils/layout-helper/index.ios.js.map +0 -1
  980. package/utils/layout-helper/layout-helper-common.d.ts +0 -5
  981. package/utils/layout-helper/layout-helper-common.js +0 -49
  982. package/utils/layout-helper/layout-helper-common.js.map +0 -1
  983. package/utils/layout-helper/layout-helper-shared.d.ts +0 -9
  984. package/utils/layout-helper/layout-helper-shared.js +0 -13
  985. package/utils/layout-helper/layout-helper-shared.js.map +0 -1
  986. package/utils/lazy.js +0 -5
  987. package/utils/lazy.js.map +0 -1
  988. package/utils/macrotask-scheduler.js +0 -26
  989. package/utils/macrotask-scheduler.js.map +0 -1
  990. package/utils/mainthread-helper.android.d.ts +0 -3
  991. package/utils/mainthread-helper.android.js +0 -28
  992. package/utils/mainthread-helper.android.js.map +0 -1
  993. package/utils/mainthread-helper.ios.d.ts +0 -3
  994. package/utils/mainthread-helper.ios.js +0 -17
  995. package/utils/mainthread-helper.ios.js.map +0 -1
  996. package/utils/module-merge.d.ts +0 -1
  997. package/utils/module-merge.js +0 -8
  998. package/utils/module-merge.js.map +0 -1
  999. package/utils/native-helper-for-android.d.ts +0 -23
  1000. package/utils/native-helper-for-android.js +0 -273
  1001. package/utils/native-helper-for-android.js.map +0 -1
  1002. package/utils/native-helper.android.d.ts +0 -30
  1003. package/utils/native-helper.android.js +0 -23
  1004. package/utils/native-helper.android.js.map +0 -1
  1005. package/utils/native-helper.ios.d.ts +0 -79
  1006. package/utils/native-helper.ios.js +0 -342
  1007. package/utils/native-helper.ios.js.map +0 -1
  1008. package/utils/number-utils.d.ts +0 -19
  1009. package/utils/number-utils.js +0 -37
  1010. package/utils/number-utils.js.map +0 -1
  1011. package/utils/platform-check.d.ts +0 -4
  1012. package/utils/platform-check.js +0 -21
  1013. package/utils/platform-check.js.map +0 -1
  1014. package/utils/shared.d.ts +0 -17
  1015. package/utils/shared.js +0 -40
  1016. package/utils/shared.js.map +0 -1
  1017. package/utils/types.js +0 -104
  1018. package/utils/types.js.map +0 -1
  1019. package/utils/utils-shared.d.ts +0 -1
  1020. package/utils/utils-shared.js +0 -8
  1021. package/utils/utils-shared.js.map +0 -1
  1022. package/wgc/atob.d.ts +0 -1
  1023. package/wgc/atob.js +0 -9
  1024. package/wgc/atob.js.map +0 -1
  1025. package/wgc/btoa.d.ts +0 -1
  1026. package/wgc/btoa.js +0 -9
  1027. package/wgc/btoa.js.map +0 -1
  1028. package/wgc/crypto/SubtleCrypto.d.ts +0 -63
  1029. package/wgc/crypto/SubtleCrypto.js +0 -551
  1030. package/wgc/crypto/SubtleCrypto.js.map +0 -1
  1031. package/wgc/crypto/index.d.ts +0 -8
  1032. package/wgc/crypto/index.js +0 -32
  1033. package/wgc/crypto/index.js.map +0 -1
  1034. package/wgc/index.d.ts +0 -2
  1035. package/wgc/index.js +0 -3
  1036. package/wgc/index.js.map +0 -1
  1037. package/xhr/index.d.ts +0 -113
  1038. package/xhr/index.js +0 -486
  1039. package/xhr/index.js.map +0 -1
  1040. package/xml/index.d.ts +0 -108
  1041. package/xml/index.js +0 -574
  1042. package/xml/index.js.map +0 -1
@@ -1,1154 +0,0 @@
1
- import { Trace } from '../../styling/styling-shared';
2
- import { Property, InheritedProperty, clearInheritedProperties, propagateInheritableProperties, propagateInheritableCssProperties, initNativeView } from '../properties';
3
- import { CSSUtils } from '../../../css/system-classes';
4
- import { Source } from '../../../utils/debug-source';
5
- import { Binding } from '../bindable';
6
- import { Observable, WrappedValue } from '../../../data/observable';
7
- import { Style } from '../../styling/style';
8
- import { paddingTopProperty, paddingRightProperty, paddingBottomProperty, paddingLeftProperty } from '../../styling/style-properties';
9
- // TODO: Remove this import!
10
- import { getClass } from '../../../utils/types';
11
- import { profile } from '../../../profiling';
12
- import { DOMNode } from '../../../debugger/dom-types';
13
- import { applyInlineStyle, CssState } from '../../styling/style-scope';
14
- import { booleanConverter } from './utils';
15
- export { booleanConverter } from './utils';
16
- const defaultBindingSource = {};
17
- /**
18
- * Gets an ancestor from a given type.
19
- * @param view - Starting view (child view).
20
- * @param criterion - The type of ancestor view we are looking for. Could be a string containing a class name or an actual type.
21
- * Returns an instance of a view (if found), otherwise undefined.
22
- */
23
- export function getAncestor(view, criterion) {
24
- let matcher = null;
25
- if (typeof criterion === 'string') {
26
- matcher = (view) => view.typeName === criterion;
27
- }
28
- else {
29
- matcher = (view) => view instanceof criterion;
30
- }
31
- for (let parent = view.parent; parent != null; parent = parent.parent) {
32
- if (matcher(parent)) {
33
- return parent;
34
- }
35
- }
36
- return null;
37
- }
38
- /**
39
- * Gets a child view by id.
40
- * @param view - The parent (container) view of the view to look for.
41
- * @param id - The id of the view to look for.
42
- * Returns an instance of a view (if found), otherwise undefined.
43
- */
44
- export function getViewById(view, id) {
45
- if (!view) {
46
- return undefined;
47
- }
48
- if (view.id === id) {
49
- return view;
50
- }
51
- let retVal;
52
- const descendantsCallback = function (child) {
53
- if (child.id === id) {
54
- retVal = child;
55
- // break the iteration by returning false
56
- return false;
57
- }
58
- return true;
59
- };
60
- eachDescendant(view, descendantsCallback);
61
- return retVal;
62
- }
63
- /**
64
- * Gets a child view by domId.
65
- * @param view - The parent (container) view of the view to look for.
66
- * @param domId - The id of the view to look for.
67
- * Returns an instance of a view (if found), otherwise undefined.
68
- */
69
- export function getViewByDomId(view, domId) {
70
- if (!view) {
71
- return undefined;
72
- }
73
- if (view._domId === domId) {
74
- return view;
75
- }
76
- let retVal;
77
- const descendantsCallback = function (child) {
78
- if (view._domId === domId) {
79
- retVal = child;
80
- // break the iteration by returning false
81
- return false;
82
- }
83
- return true;
84
- };
85
- eachDescendant(view, descendantsCallback);
86
- return retVal;
87
- }
88
- // TODO: allow all selector types (just using attributes now)
89
- /**
90
- * Gets a child view by selector.
91
- * @param view - The parent (container) view of the view to look for.
92
- * @param selector - The selector of the view to look for.
93
- * Returns an instance of a view (if found), otherwise undefined.
94
- */
95
- export function querySelectorAll(view, selector) {
96
- if (!view) {
97
- return [];
98
- }
99
- const retVal = [];
100
- if (view[selector]) {
101
- retVal.push(view);
102
- }
103
- const descendantsCallback = function (child) {
104
- if (child[selector]) {
105
- retVal.push(child);
106
- }
107
- return true;
108
- };
109
- eachDescendant(view, descendantsCallback);
110
- return retVal;
111
- }
112
- /**
113
- * Iterates through all child views (via visual tree) and executes a function.
114
- * @param view - Starting view (parent container).
115
- * @param callback - A function to execute on every child. If function returns false it breaks the iteration.
116
- */
117
- export function eachDescendant(view, callback) {
118
- if (!callback || !view) {
119
- return;
120
- }
121
- let continueIteration;
122
- const localCallback = function (child) {
123
- continueIteration = callback(child);
124
- if (continueIteration) {
125
- child.eachChild(localCallback);
126
- }
127
- return continueIteration;
128
- };
129
- view.eachChild(localCallback);
130
- }
131
- let viewIdCounter = 1;
132
- // const contextMap = new WeakMap<Object, Map<string, WeakRef<Object>[]>>();
133
- // function getNativeView(context: Object, typeName: string): Object {
134
- // let typeMap = contextMap.get(context);
135
- // if (!typeMap) {
136
- // typeMap = new Map<string, WeakRef<Object>[]>();
137
- // contextMap.set(context, typeMap);
138
- // return undefined;
139
- // }
140
- // const array = typeMap.get(typeName);
141
- // if (array) {
142
- // let nativeView;
143
- // while (array.length > 0) {
144
- // const weakRef = array.pop();
145
- // nativeView = weakRef.get();
146
- // if (nativeView) {
147
- // return nativeView;
148
- // }
149
- // }
150
- // }
151
- // return undefined;
152
- // }
153
- // function putNativeView(context: Object, view: ViewBase): void {
154
- // const typeMap = contextMap.get(context);
155
- // const typeName = view.typeName;
156
- // let list = typeMap.get(typeName);
157
- // if (!list) {
158
- // list = [];
159
- // typeMap.set(typeName, list);
160
- // }
161
- // list.push(new WeakRef(view.nativeViewProtected));
162
- // }
163
- var Flags;
164
- (function (Flags) {
165
- Flags["superOnLoadedCalled"] = "Loaded";
166
- Flags["superOnUnloadedCalled"] = "Unloaded";
167
- })(Flags || (Flags = {}));
168
- var SuspendType;
169
- (function (SuspendType) {
170
- SuspendType[SuspendType["Incremental"] = 0] = "Incremental";
171
- SuspendType[SuspendType["Loaded"] = 1048576] = "Loaded";
172
- SuspendType[SuspendType["NativeView"] = 2097152] = "NativeView";
173
- SuspendType[SuspendType["UISetup"] = 4194304] = "UISetup";
174
- SuspendType[SuspendType["IncrementalCountMask"] = -7340033] = "IncrementalCountMask";
175
- })(SuspendType || (SuspendType = {}));
176
- (function (SuspendType) {
177
- function toString(type) {
178
- return (type ? 'suspended' : 'resumed') + '(' + 'Incremental: ' + (type & SuspendType.IncrementalCountMask) + ', ' + 'Loaded: ' + !(type & SuspendType.Loaded) + ', ' + 'NativeView: ' + !(type & SuspendType.NativeView) + ', ' + 'UISetup: ' + !(type & SuspendType.UISetup) + ')';
179
- }
180
- SuspendType.toString = toString;
181
- })(SuspendType || (SuspendType = {}));
182
- const DEFAULT_VIEW_PADDINGS = new Map();
183
- /**
184
- *
185
- * @nsView ViewBase
186
- */
187
- export class ViewBase extends Observable {
188
- constructor() {
189
- super();
190
- this._onLoadedCalled = false;
191
- this._onUnloadedCalled = false;
192
- /**
193
- * Default visual state, defaults to 'normal'
194
- *
195
- * @nsProperty
196
- */
197
- this.defaultVisualState = 'normal';
198
- /* "ui/styling/style-scope" */ this._cssState = new CssState(new WeakRef(this));
199
- this.pseudoClassAliases = {
200
- highlighted: ['active', 'pressed'],
201
- };
202
- /**
203
- * if _setupAsRootView is called it means it is not supposed to be
204
- * added to a parent. However parent can be set before for the purpose
205
- * of CSS variables/classes. That variable ensures that _addViewToNativeVisualTree
206
- * is not called in _setupAsRootView
207
- */
208
- this.mIsRootView = false;
209
- this._domId = viewIdCounter++;
210
- this._style = new Style(new WeakRef(this));
211
- this.cssClasses = new Set();
212
- this.cssPseudoClasses = new Set();
213
- this.cssPseudoClasses.add(this.defaultVisualState);
214
- this.notify({ eventName: ViewBase.createdEvent, type: this.constructor.name, object: this });
215
- }
216
- // Used in Angular. TODO: remove from here
217
- /**
218
- * Gets the template parent or the native parent. Sets the template parent.
219
- */
220
- get parentNode() {
221
- return this._templateParent || this.parent;
222
- }
223
- set parentNode(node) {
224
- this._templateParent = node;
225
- }
226
- get nativeView() {
227
- // this._disableNativeViewRecycling = true;
228
- return this.nativeViewProtected;
229
- }
230
- set nativeView(value) {
231
- this.setNativeView(value);
232
- }
233
- // TODO: Use Type.prototype.typeName instead.
234
- /**
235
- * Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button".
236
- */
237
- get typeName() {
238
- return getClass(this);
239
- }
240
- /**
241
- * Gets the style object associated to this view.
242
- */
243
- get style() {
244
- return this._style;
245
- }
246
- /**
247
- *
248
- * @nsProperty
249
- */
250
- set style(inlineStyle /* | string */) {
251
- if (typeof inlineStyle === 'string') {
252
- this.setInlineStyle(inlineStyle);
253
- }
254
- else {
255
- throw new Error('View.style property is read-only.');
256
- }
257
- }
258
- get android() {
259
- // this._disableNativeViewRecycling = true;
260
- return this._androidView;
261
- }
262
- get ios() {
263
- // this._disableNativeViewRecycling = true;
264
- return this._iosView;
265
- }
266
- get isLoaded() {
267
- return this._isLoaded;
268
- }
269
- get ['class']() {
270
- return this.className;
271
- }
272
- set ['class'](v) {
273
- this.className = v;
274
- }
275
- /**
276
- * Returns the child view with the specified id.
277
- */
278
- getViewById(id) {
279
- return getViewById(this, id);
280
- }
281
- /**
282
- * Returns the child view with the specified domId.
283
- */
284
- getViewByDomId(domId) {
285
- return getViewByDomId(this, domId);
286
- }
287
- /**
288
- * Gets owner page. This is a read-only property.
289
- */
290
- get page() {
291
- if (this.parent) {
292
- return this.parent.page;
293
- }
294
- return null;
295
- }
296
- /**
297
- * @unstable
298
- * Ensures a dom-node for this view.
299
- */
300
- ensureDomNode() {
301
- if (!this.domNode) {
302
- this.domNode = new DOMNode(this);
303
- }
304
- }
305
- // Overridden so we don't raise `propertyChange`
306
- // The property will raise its own event.
307
- set(name, value) {
308
- this[name] = WrappedValue.unwrap(value);
309
- }
310
- onLoaded() {
311
- this.setFlag(Flags.superOnLoadedCalled, true);
312
- if (this._isLoaded) {
313
- return;
314
- }
315
- this._isLoaded = true;
316
- this._cssState.onLoaded();
317
- this._resumeNativeUpdates(SuspendType.Loaded);
318
- this.eachChild((child) => {
319
- this.loadView(child);
320
- return true;
321
- });
322
- this._emit('loaded');
323
- }
324
- onUnloaded() {
325
- this.setFlag(Flags.superOnUnloadedCalled, true);
326
- if (!this._isLoaded) {
327
- return;
328
- }
329
- this._suspendNativeUpdates(SuspendType.Loaded);
330
- this.eachChild((child) => {
331
- this.unloadView(child);
332
- return true;
333
- });
334
- this._isLoaded = false;
335
- this._cssState.onUnloaded();
336
- this._emit('unloaded');
337
- }
338
- _layoutParent() {
339
- if (this.parent) {
340
- this.parent._layoutParent();
341
- }
342
- }
343
- _suspendNativeUpdates(type) {
344
- if (type) {
345
- this._suspendNativeUpdatesCount = this._suspendNativeUpdatesCount | type;
346
- }
347
- else {
348
- this._suspendNativeUpdatesCount++;
349
- }
350
- }
351
- _resumeNativeUpdates(type) {
352
- if (type) {
353
- this._suspendNativeUpdatesCount = this._suspendNativeUpdatesCount & ~type;
354
- }
355
- else {
356
- if ((this._suspendNativeUpdatesCount & SuspendType.IncrementalCountMask) === 0) {
357
- throw new Error(`Invalid call to ${this}._resumeNativeUpdates`);
358
- }
359
- this._suspendNativeUpdatesCount--;
360
- }
361
- if (!this._suspendNativeUpdatesCount) {
362
- this.onResumeNativeUpdates();
363
- }
364
- }
365
- /**
366
- * Allow multiple updates to be performed on the instance at once.
367
- */
368
- _batchUpdate(callback) {
369
- try {
370
- this._suspendNativeUpdates(SuspendType.Incremental);
371
- return callback();
372
- }
373
- finally {
374
- this._resumeNativeUpdates(SuspendType.Incremental);
375
- }
376
- }
377
- setFlag(flag, value) {
378
- switch (flag) {
379
- case Flags.superOnLoadedCalled:
380
- this._onLoadedCalled = value;
381
- break;
382
- case Flags.superOnUnloadedCalled:
383
- this._onUnloadedCalled = value;
384
- break;
385
- }
386
- }
387
- isFlagSet(flag) {
388
- switch (flag) {
389
- case Flags.superOnLoadedCalled:
390
- return this._onLoadedCalled;
391
- case Flags.superOnUnloadedCalled:
392
- return this._onUnloadedCalled;
393
- }
394
- }
395
- callFunctionWithSuper(flag, func) {
396
- this.setFlag(flag, false);
397
- func();
398
- if (!this.isFlagSet(flag)) {
399
- throw new Error(`super.${flag} not called in ${this}`);
400
- }
401
- }
402
- callLoaded() {
403
- this.callFunctionWithSuper(Flags.superOnLoadedCalled, () => this.onLoaded());
404
- }
405
- callUnloaded() {
406
- this.callFunctionWithSuper(Flags.superOnUnloadedCalled, () => this.onUnloaded());
407
- }
408
- notifyPseudoClassChanged(pseudoClass) {
409
- this.notify({ eventName: ':' + pseudoClass, object: this });
410
- }
411
- getAllAliasedStates(name) {
412
- const allStates = [name];
413
- if (name in this.pseudoClassAliases) {
414
- for (let i = 0, length = this.pseudoClassAliases[name].length; i < length; i++) {
415
- allStates.push(this.pseudoClassAliases[name][i]);
416
- }
417
- }
418
- return allStates;
419
- }
420
- /**
421
- * @protected
422
- * @unstable
423
- * A widget can call this method to add a matching css pseudo class.
424
- */
425
- addPseudoClass(name) {
426
- const allStates = this.getAllAliasedStates(name);
427
- for (let i = 0, length = allStates.length; i < length; i++) {
428
- if (!this.cssPseudoClasses.has(allStates[i])) {
429
- this.cssPseudoClasses.add(allStates[i]);
430
- this.notifyPseudoClassChanged(allStates[i]);
431
- }
432
- }
433
- }
434
- /**
435
- * @protected
436
- * @unstable
437
- * A widget can call this method to discard matching css pseudo class.
438
- */
439
- deletePseudoClass(name) {
440
- const allStates = this.getAllAliasedStates(name);
441
- for (let i = 0, length = allStates.length; i < length; i++) {
442
- if (this.cssPseudoClasses.has(allStates[i])) {
443
- this.cssPseudoClasses.delete(allStates[i]);
444
- this.notifyPseudoClassChanged(allStates[i]);
445
- }
446
- }
447
- }
448
- bindingContextChanged(data) {
449
- this.bindings.get('bindingContext').bind(data.value);
450
- }
451
- bind(options, source = defaultBindingSource) {
452
- const targetProperty = options.targetProperty;
453
- this.unbind(targetProperty);
454
- if (!this.bindings) {
455
- this.bindings = new Map();
456
- }
457
- const binding = new Binding(this, options);
458
- this.bindings.set(targetProperty, binding);
459
- let bindingSource = source;
460
- if (bindingSource === defaultBindingSource) {
461
- bindingSource = this.bindingContext;
462
- binding.sourceIsBindingContext = true;
463
- if (targetProperty === 'bindingContext') {
464
- this.bindingContextBoundToParentBindingContextChanged = true;
465
- const parent = this.parent;
466
- if (parent) {
467
- parent.on('bindingContextChange', this.bindingContextChanged, this);
468
- }
469
- else {
470
- this.shouldAddHandlerToParentBindingContextChanged = true;
471
- }
472
- }
473
- }
474
- binding.bind(bindingSource);
475
- }
476
- unbind(property) {
477
- const bindings = this.bindings;
478
- if (!bindings) {
479
- return;
480
- }
481
- const binding = bindings.get(property);
482
- if (binding) {
483
- binding.unbind();
484
- bindings.delete(property);
485
- if (binding.sourceIsBindingContext) {
486
- if (property === 'bindingContext') {
487
- this.shouldAddHandlerToParentBindingContextChanged = false;
488
- this.bindingContextBoundToParentBindingContextChanged = false;
489
- const parent = this.parent;
490
- if (parent) {
491
- parent.off('bindingContextChange', this.bindingContextChanged, this);
492
- }
493
- }
494
- }
495
- }
496
- }
497
- performLayout(currentRun = 0) {
498
- // if there's an animation in progress we need to delay the layout
499
- // we've added a guard of 5000 milliseconds execution
500
- // to make sure that the layout will happen even if the animation haven't finished in 5 seconds
501
- if (this._shouldDelayLayout() && currentRun < 100) {
502
- setTimeout(() => this.performLayout(currentRun), currentRun);
503
- currentRun++;
504
- }
505
- else {
506
- this.parent.requestLayout();
507
- }
508
- }
509
- /**
510
- * Invalidates the layout of the view and triggers a new layout pass.
511
- */
512
- requestLayout() {
513
- // Default implementation for non View instances (like TabViewItem).
514
- const parent = this.parent;
515
- if (parent) {
516
- this.performLayout();
517
- }
518
- }
519
- /**
520
- * Iterates over children of type ViewBase.
521
- * @param callback Called for each child of type ViewBase. Iteration stops if this method returns falsy value.
522
- */
523
- eachChild(callback) {
524
- //
525
- }
526
- _inheritStyles(view) {
527
- propagateInheritableProperties(this, view);
528
- view._inheritStyleScope(this._styleScope);
529
- propagateInheritableCssProperties(this.style, view.style);
530
- }
531
- _addView(view, atIndex) {
532
- if (Trace.isEnabled()) {
533
- Trace.write(`${this}._addView(${view}, ${atIndex})`, Trace.categories.ViewHierarchy);
534
- }
535
- if (!view) {
536
- throw new Error('Expecting a valid View instance.');
537
- }
538
- if (!(view instanceof ViewBase)) {
539
- throw new Error(view + ' is not a valid View instance.');
540
- }
541
- if (view.parent) {
542
- throw new Error('View already has a parent. View: ' + view + ' Parent: ' + view.parent);
543
- }
544
- view.parent = this;
545
- this._addViewCore(view, atIndex);
546
- view._parentChanged(null);
547
- if (this.domNode) {
548
- this.domNode.onChildAdded(view);
549
- }
550
- }
551
- /**
552
- * Method is intended to be overridden by inheritors and used as "protected"
553
- */
554
- _addViewCore(view, atIndex) {
555
- this._inheritStyles(view);
556
- if (this._context) {
557
- view._setupUI(this._context, atIndex);
558
- }
559
- if (this._isLoaded) {
560
- this.loadView(view);
561
- }
562
- }
563
- /**
564
- * Load view.
565
- * @param view to load.
566
- */
567
- loadView(view) {
568
- if (view && !view.isLoaded) {
569
- view.callLoaded();
570
- }
571
- }
572
- /**
573
- * When returning true the callLoaded method will be run in setTimeout
574
- * Method is intended to be overridden by inheritors and used as "protected"
575
- */
576
- _shouldDelayLayout() {
577
- return false;
578
- }
579
- /**
580
- * Unload view.
581
- * @param view to unload.
582
- */
583
- unloadView(view) {
584
- if (view && view.isLoaded) {
585
- view.callUnloaded();
586
- }
587
- }
588
- /**
589
- * Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation.
590
- */
591
- _removeView(view) {
592
- if (Trace.isEnabled()) {
593
- Trace.write(`${this}._removeView(${view})`, Trace.categories.ViewHierarchy);
594
- }
595
- if (view.parent !== this) {
596
- throw new Error('View not added to this instance. View: ' + view + ' CurrentParent: ' + view.parent + ' ExpectedParent: ' + this);
597
- }
598
- if (this.domNode) {
599
- this.domNode.onChildRemoved(view);
600
- }
601
- this._removeViewCore(view);
602
- view.parent = undefined;
603
- view._parentChanged(this);
604
- }
605
- /**
606
- * Method is intended to be overridden by inheritors and used as "protected"
607
- */
608
- _removeViewCore(view) {
609
- this.unloadView(view);
610
- if (view._context) {
611
- view._tearDownUI();
612
- }
613
- }
614
- /**
615
- * Creates a native view.
616
- * Returns either android.view.View or UIView.
617
- */
618
- createNativeView() {
619
- return undefined;
620
- }
621
- /**
622
- * Clean up references to the native view.
623
- */
624
- disposeNativeView() {
625
- // Unset these values so that view checks for resize the next time it's added back to view tree
626
- this._oldLeft = 0;
627
- this._oldTop = 0;
628
- this._oldRight = 0;
629
- this._oldBottom = 0;
630
- this.notify({
631
- eventName: ViewBase.disposeNativeViewEvent,
632
- object: this,
633
- });
634
- }
635
- /**
636
- * Initializes properties/listeners of the native view.
637
- */
638
- initNativeView() {
639
- //
640
- }
641
- /**
642
- * Resets properties/listeners set to the native view.
643
- */
644
- resetNativeView() {
645
- //
646
- }
647
- resetNativeViewInternal() {
648
- // const nativeView = this.nativeViewProtected;
649
- // if (nativeView && __ANDROID__) {
650
- // const recycle = this.recycleNativeView;
651
- // if (recycle === "always" || (recycle === "auto" && !this._disableNativeViewRecycling)) {
652
- // resetNativeView(this);
653
- // if (this._isPaddingRelative) {
654
- // nativeView.setPaddingRelative(this._defaultPaddingLeft, this._defaultPaddingTop, this._defaultPaddingRight, this._defaultPaddingBottom);
655
- // } else {
656
- // nativeView.setPadding(this._defaultPaddingLeft, this._defaultPaddingTop, this._defaultPaddingRight, this._defaultPaddingBottom);
657
- // }
658
- // this.resetNativeView();
659
- // }
660
- // }
661
- // if (this._cssState) {
662
- // this._cancelAllAnimations();
663
- // }
664
- }
665
- _setupAsRootView(context) {
666
- this.mIsRootView = true;
667
- this._setupUI(context);
668
- this.mIsRootView = false;
669
- }
670
- /**
671
- * Setups the UI for ViewBase and all its children recursively.
672
- * This method should *not* be overridden by derived views.
673
- */
674
- _setupUI(context /* android.content.Context */, atIndex, parentIsLoaded) {
675
- if (this._context === context) {
676
- // this check is unnecessary as this function should never be called when this._context === context as it means the view was somehow detached,
677
- // which is only possible by setting reusable = true. Adding it either way for feature flag safety
678
- if (this.reusable) {
679
- if (!this.mIsRootView && this.parent && !this._isAddedToNativeVisualTree) {
680
- const nativeIndex = this.parent._childIndexToNativeChildIndex(atIndex);
681
- this._isAddedToNativeVisualTree = this.parent._addViewToNativeVisualTree(this, nativeIndex);
682
- }
683
- }
684
- return;
685
- }
686
- else if (this._context) {
687
- this._tearDownUI(true);
688
- }
689
- this._context = context;
690
- // This will account for nativeView that is created in createNativeView, recycled
691
- // or for backward compatibility - set before _setupUI in iOS constructor.
692
- let nativeView = this.nativeViewProtected;
693
- // if (__ANDROID__) {
694
- // const recycle = this.recycleNativeView;
695
- // if (recycle === "always" || (recycle === "auto" && !this._disableNativeViewRecycling)) {
696
- // nativeView = <android.view.View>getNativeView(context, this.typeName);
697
- // }
698
- // }
699
- if (!nativeView) {
700
- nativeView = this.createNativeView();
701
- }
702
- if (__ANDROID__) {
703
- // this check is also unecessary as this code should never be reached with _androidView != null unless reusable = true
704
- // also adding this check for feature flag safety
705
- if (this._androidView !== nativeView || !this.reusable) {
706
- this._androidView = nativeView;
707
- if (nativeView) {
708
- const className = this.constructor.name;
709
- if (this._isPaddingRelative === undefined) {
710
- this._isPaddingRelative = nativeView.isPaddingRelative();
711
- }
712
- let result /* android.graphics.Rect */ = DEFAULT_VIEW_PADDINGS.get(className) || nativeView.defaultPaddings;
713
- if (result === undefined) {
714
- DEFAULT_VIEW_PADDINGS.set(className, org.nativescript.widgets.ViewHelper.getPadding(nativeView));
715
- nativeView.defaultPaddings = DEFAULT_VIEW_PADDINGS.get(className);
716
- result = DEFAULT_VIEW_PADDINGS.get(className);
717
- }
718
- if (!nativeView.defaultPaddings) {
719
- nativeView.defaultPaddings = DEFAULT_VIEW_PADDINGS.get(className);
720
- }
721
- this._defaultPaddingTop = result.top;
722
- this._defaultPaddingRight = result.right;
723
- this._defaultPaddingBottom = result.bottom;
724
- this._defaultPaddingLeft = result.left;
725
- const style = this.style;
726
- if (!paddingTopProperty.isSet(style)) {
727
- this.effectivePaddingTop = this._defaultPaddingTop;
728
- }
729
- if (!paddingRightProperty.isSet(style)) {
730
- this.effectivePaddingRight = this._defaultPaddingRight;
731
- }
732
- if (!paddingBottomProperty.isSet(style)) {
733
- this.effectivePaddingBottom = this._defaultPaddingBottom;
734
- }
735
- if (!paddingLeftProperty.isSet(style)) {
736
- this.effectivePaddingLeft = this._defaultPaddingLeft;
737
- }
738
- }
739
- }
740
- }
741
- else {
742
- this._iosView = nativeView;
743
- }
744
- this.setNativeView(nativeView);
745
- if (!this.mIsRootView && this.parent) {
746
- const nativeIndex = this.parent._childIndexToNativeChildIndex(atIndex);
747
- this._isAddedToNativeVisualTree = this.parent._addViewToNativeVisualTree(this, nativeIndex);
748
- }
749
- this._resumeNativeUpdates(SuspendType.UISetup);
750
- this.eachChild((child) => {
751
- child._setupUI(context);
752
- return true;
753
- });
754
- }
755
- /**
756
- * Set the nativeView field performing extra checks and updates to the native properties on the new view.
757
- * Use in cases where the createNativeView is not suitable.
758
- * As an example use in item controls where the native parent view will create the native views for child items.
759
- */
760
- setNativeView(value) {
761
- if (this.__nativeView === value) {
762
- return;
763
- }
764
- if (this.__nativeView) {
765
- this._suspendNativeUpdates(SuspendType.NativeView);
766
- // We may do a `this.resetNativeView()` here?
767
- }
768
- this.__nativeView = this.nativeViewProtected = value;
769
- if (this.__nativeView) {
770
- this._suspendedUpdates = undefined;
771
- this.initNativeView();
772
- this._resumeNativeUpdates(SuspendType.NativeView);
773
- }
774
- }
775
- /**
776
- * Tears down the UI of a reusable node by making it no longer reusable.
777
- * @see _tearDownUI
778
- * @param forceDestroyChildren Force destroy the children (even if they are reusable)
779
- */
780
- destroyNode(forceDestroyChildren) {
781
- this.reusable = false;
782
- this.callUnloaded();
783
- this._tearDownUI(forceDestroyChildren);
784
- }
785
- /**
786
- * Tears down the UI for ViewBase and all its children recursively.
787
- * This method should *not* be overridden by derived views.
788
- */
789
- _tearDownUI(force) {
790
- // No context means we are already teared down.
791
- if (!this._context) {
792
- return;
793
- }
794
- const preserveNativeView = this.reusable && !force;
795
- this.resetNativeViewInternal();
796
- if (!preserveNativeView) {
797
- this.eachChild((child) => {
798
- child._tearDownUI(force);
799
- return true;
800
- });
801
- }
802
- if (this.parent) {
803
- this.parent._removeViewFromNativeVisualTree(this);
804
- }
805
- // const nativeView = this.nativeViewProtected;
806
- // if (nativeView && __ANDROID__) {
807
- // const recycle = this.recycleNativeView;
808
- // let shouldRecycle = false;
809
- // if (recycle === "always") {
810
- // shouldRecycle = true;
811
- // } else if (recycle === "auto" && !this._disableNativeViewRecycling) {
812
- // const propertiesSet = Object.getOwnPropertySymbols(this).length + Object.getOwnPropertySymbols(this.style).length / 2;
813
- // shouldRecycle = propertiesSet <= this.recyclePropertyCounter;
814
- // }
815
- // // const nativeParent = __ANDROID__ ? (<android.view.View>nativeView).getParent() : (<UIView>nativeView).superview;
816
- // const nativeParent = (<android.view.View>nativeView).getParent();
817
- // const animation = (<android.view.View>nativeView).getAnimation();
818
- // if (shouldRecycle && !nativeParent && !animation) {
819
- // putNativeView(this._context, this);
820
- // }
821
- // }
822
- if (!preserveNativeView) {
823
- this.disposeNativeView();
824
- this._suspendNativeUpdates(SuspendType.UISetup);
825
- this.setNativeView(null);
826
- this._androidView = null;
827
- this._iosView = null;
828
- this._context = null;
829
- }
830
- if (this.domNode) {
831
- this.domNode.dispose();
832
- this.domNode = undefined;
833
- }
834
- }
835
- _childIndexToNativeChildIndex(index) {
836
- return index;
837
- }
838
- /**
839
- * Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise.
840
- * Method is intended to be overridden by inheritors and used as "protected".
841
- */
842
- _addViewToNativeVisualTree(view, atIndex) {
843
- if (view._isAddedToNativeVisualTree) {
844
- throw new Error('Child already added to the native visual tree.');
845
- }
846
- return true;
847
- }
848
- /**
849
- * Method is intended to be overridden by inheritors and used as "protected"
850
- */
851
- _removeViewFromNativeVisualTree(view) {
852
- view._isAddedToNativeVisualTree = false;
853
- }
854
- /**
855
- * @deprecated
856
- */
857
- get visualState() {
858
- return this._visualState;
859
- }
860
- _addVisualState(state) {
861
- this.deletePseudoClass(this.defaultVisualState);
862
- this.addPseudoClass(state);
863
- }
864
- _removeVisualState(state) {
865
- this.deletePseudoClass(state);
866
- if (!this.cssPseudoClasses.size) {
867
- this.addPseudoClass(this.defaultVisualState);
868
- }
869
- }
870
- /**
871
- * @deprecated Use View._addVisualState() and View._removeVisualState() instead.
872
- */
873
- _goToVisualState(state) {
874
- console.log('_goToVisualState() is deprecated. Use View._addVisualState() and View._removeVisualState() instead.');
875
- if (Trace.isEnabled()) {
876
- Trace.write(this + ' going to state: ' + state, Trace.categories.Style);
877
- }
878
- if (state === this._visualState) {
879
- return;
880
- }
881
- this.deletePseudoClass(this._visualState);
882
- this._visualState = state;
883
- this.addPseudoClass(state);
884
- }
885
- /**
886
- * @deprecated
887
- *
888
- * This used to be the way to set attribute values in early {N} versions.
889
- * Now attributes are expected to be set as plain properties on the view instances.
890
- */
891
- _applyXmlAttribute(attribute, value) {
892
- console.log('ViewBase._applyXmlAttribute(...) is deprecated; set attributes as plain properties instead');
893
- if (attribute === 'style' || attribute === 'rows' || attribute === 'columns' || attribute === 'fontAttributes') {
894
- this[attribute] = value;
895
- return true;
896
- }
897
- return false;
898
- }
899
- setInlineStyle(style) {
900
- if (typeof style !== 'string') {
901
- throw new Error('Parameter should be valid CSS string!');
902
- }
903
- applyInlineStyle(this, style, undefined);
904
- }
905
- _parentChanged(oldParent) {
906
- const newParent = this.parent;
907
- //Overridden
908
- if (oldParent) {
909
- clearInheritedProperties(this);
910
- if (this.bindingContextBoundToParentBindingContextChanged) {
911
- oldParent.off('bindingContextChange', this.bindingContextChanged, this);
912
- }
913
- }
914
- else if (this.shouldAddHandlerToParentBindingContextChanged) {
915
- newParent.on('bindingContextChange', this.bindingContextChanged, this);
916
- this.bindings.get('bindingContext').bind(newParent.bindingContext);
917
- }
918
- }
919
- onResumeNativeUpdates() {
920
- // Apply native setters...
921
- initNativeView(this, undefined, undefined);
922
- }
923
- toString() {
924
- let str = this.typeName;
925
- if (this.id) {
926
- str += `<${this.id}>`;
927
- }
928
- else {
929
- str += `(${this._domId})`;
930
- }
931
- const source = Source.get(this);
932
- if (source) {
933
- str += `@${source};`;
934
- }
935
- return str;
936
- }
937
- /**
938
- * @private
939
- * Notifies each child's css state for change, recursively.
940
- * Either the style scope, className or id properties were changed.
941
- */
942
- _onCssStateChange() {
943
- this._cssState.onChange();
944
- eachDescendant(this, (child) => {
945
- child._cssState.onChange();
946
- return true;
947
- });
948
- }
949
- _inheritStyleScope(styleScope) {
950
- // If we are styleScope don't inherit parent stylescope.
951
- // TODO: Consider adding parent scope and merge selectors.
952
- if (this._isStyleScopeHost) {
953
- return;
954
- }
955
- if (this._styleScope !== styleScope) {
956
- this._styleScope = styleScope;
957
- this._onCssStateChange();
958
- this.eachChild((child) => {
959
- child._inheritStyleScope(styleScope);
960
- return true;
961
- });
962
- }
963
- }
964
- showModal(moduleOrView, modalOptions) {
965
- const parent = this.parent;
966
- return parent && parent.showModal(moduleOrView, modalOptions);
967
- }
968
- /**
969
- * Closes the current modal view that this page is showing.
970
- * @param context - Any context you want to pass back to the host when closing the modal view.
971
- */
972
- closeModal(...args) {
973
- const parent = this.parent;
974
- if (parent) {
975
- parent.closeModal(...args);
976
- }
977
- }
978
- /**
979
- * Method is intended to be overridden by inheritors and used as "protected"
980
- */
981
- _dialogClosed() {
982
- eachDescendant(this, (child) => {
983
- child._dialogClosed();
984
- return true;
985
- });
986
- }
987
- /**
988
- * Method is intended to be overridden by inheritors and used as "protected"
989
- */
990
- _onRootViewReset() {
991
- eachDescendant(this, (child) => {
992
- child._onRootViewReset();
993
- return true;
994
- });
995
- }
996
- }
997
- /**
998
- * String value used when hooking to loaded event.
999
- *
1000
- * @nsEvent loaded
1001
- */
1002
- ViewBase.loadedEvent = 'loaded';
1003
- /**
1004
- * String value used when hooking to unloaded event.
1005
- *
1006
- * @nsEvent unloaded
1007
- */
1008
- ViewBase.unloadedEvent = 'unloaded';
1009
- /**
1010
- * String value used when hooking to creation event
1011
- *
1012
- * @nsEvent created
1013
- */
1014
- ViewBase.createdEvent = 'created';
1015
- /**
1016
- * String value used when hooking to disposeNativeView event
1017
- *
1018
- * @nsEvent disposeNativeView
1019
- */
1020
- ViewBase.disposeNativeViewEvent = 'disposeNativeView';
1021
- __decorate([
1022
- profile,
1023
- __metadata("design:type", Function),
1024
- __metadata("design:paramtypes", []),
1025
- __metadata("design:returntype", void 0)
1026
- ], ViewBase.prototype, "onLoaded", null);
1027
- __decorate([
1028
- profile,
1029
- __metadata("design:type", Function),
1030
- __metadata("design:paramtypes", []),
1031
- __metadata("design:returntype", void 0)
1032
- ], ViewBase.prototype, "onUnloaded", null);
1033
- __decorate([
1034
- profile,
1035
- __metadata("design:type", Function),
1036
- __metadata("design:paramtypes", [String]),
1037
- __metadata("design:returntype", void 0)
1038
- ], ViewBase.prototype, "addPseudoClass", null);
1039
- __decorate([
1040
- profile,
1041
- __metadata("design:type", Function),
1042
- __metadata("design:paramtypes", [String]),
1043
- __metadata("design:returntype", void 0)
1044
- ], ViewBase.prototype, "deletePseudoClass", null);
1045
- __decorate([
1046
- profile,
1047
- __metadata("design:type", Function),
1048
- __metadata("design:paramtypes", []),
1049
- __metadata("design:returntype", void 0)
1050
- ], ViewBase.prototype, "requestLayout", null);
1051
- __decorate([
1052
- profile,
1053
- __metadata("design:type", Function),
1054
- __metadata("design:paramtypes", [ViewBase, Number]),
1055
- __metadata("design:returntype", void 0)
1056
- ], ViewBase.prototype, "_addView", null);
1057
- __decorate([
1058
- profile,
1059
- __metadata("design:type", Function),
1060
- __metadata("design:paramtypes", [Object, Number, Boolean]),
1061
- __metadata("design:returntype", void 0)
1062
- ], ViewBase.prototype, "_setupUI", null);
1063
- __decorate([
1064
- profile,
1065
- __metadata("design:type", Function),
1066
- __metadata("design:paramtypes", [Boolean]),
1067
- __metadata("design:returntype", void 0)
1068
- ], ViewBase.prototype, "_tearDownUI", null);
1069
- ViewBase.prototype.isCollapsed = false;
1070
- ViewBase.prototype._oldLeft = 0;
1071
- ViewBase.prototype._oldTop = 0;
1072
- ViewBase.prototype._oldRight = 0;
1073
- ViewBase.prototype._oldBottom = 0;
1074
- ViewBase.prototype.effectiveMinWidth = 0;
1075
- ViewBase.prototype.effectiveMinHeight = 0;
1076
- ViewBase.prototype.effectiveWidth = 0;
1077
- ViewBase.prototype.effectiveHeight = 0;
1078
- ViewBase.prototype.effectiveMarginTop = 0;
1079
- ViewBase.prototype.effectiveMarginRight = 0;
1080
- ViewBase.prototype.effectiveMarginBottom = 0;
1081
- ViewBase.prototype.effectiveMarginLeft = 0;
1082
- ViewBase.prototype.effectivePaddingTop = 0;
1083
- ViewBase.prototype.effectivePaddingRight = 0;
1084
- ViewBase.prototype.effectivePaddingBottom = 0;
1085
- ViewBase.prototype.effectivePaddingLeft = 0;
1086
- ViewBase.prototype.effectiveBorderTopWidth = 0;
1087
- ViewBase.prototype.effectiveBorderRightWidth = 0;
1088
- ViewBase.prototype.effectiveBorderBottomWidth = 0;
1089
- ViewBase.prototype.effectiveBorderLeftWidth = 0;
1090
- ViewBase.prototype._defaultPaddingTop = 0;
1091
- ViewBase.prototype._defaultPaddingRight = 0;
1092
- ViewBase.prototype._defaultPaddingBottom = 0;
1093
- ViewBase.prototype._defaultPaddingLeft = 0;
1094
- ViewBase.prototype._isViewBase = true;
1095
- ViewBase.prototype.recycleNativeView = 'never';
1096
- ViewBase.prototype.reusable = false;
1097
- ViewBase.prototype._suspendNativeUpdatesCount = SuspendType.Loaded | SuspendType.NativeView | SuspendType.UISetup;
1098
- export const bindingContextProperty = new InheritedProperty({
1099
- name: 'bindingContext',
1100
- });
1101
- bindingContextProperty.register(ViewBase);
1102
- export const hiddenProperty = new Property({
1103
- name: 'hidden',
1104
- defaultValue: false,
1105
- affectsLayout: __APPLE__,
1106
- valueConverter: booleanConverter,
1107
- valueChanged: (target, oldValue, newValue) => {
1108
- if (target) {
1109
- target.isCollapsed = !!newValue;
1110
- }
1111
- },
1112
- });
1113
- hiddenProperty.register(ViewBase);
1114
- export const classNameProperty = new Property({
1115
- name: 'className',
1116
- valueChanged(view, oldValue, newValue) {
1117
- const cssClasses = view.cssClasses;
1118
- const rootViewsCssClasses = CSSUtils.getSystemCssClasses();
1119
- const shouldAddModalRootViewCssClasses = cssClasses.has(CSSUtils.MODAL_ROOT_VIEW_CSS_CLASS);
1120
- const shouldAddRootViewCssClasses = cssClasses.has(CSSUtils.ROOT_VIEW_CSS_CLASS);
1121
- cssClasses.clear();
1122
- if (shouldAddModalRootViewCssClasses) {
1123
- cssClasses.add(CSSUtils.MODAL_ROOT_VIEW_CSS_CLASS);
1124
- }
1125
- else if (shouldAddRootViewCssClasses) {
1126
- cssClasses.add(CSSUtils.ROOT_VIEW_CSS_CLASS);
1127
- }
1128
- rootViewsCssClasses.forEach((c) => cssClasses.add(c));
1129
- if (typeof newValue === 'string' && newValue !== '') {
1130
- newValue.split(' ').forEach((c) => cssClasses.add(c));
1131
- }
1132
- view._onCssStateChange();
1133
- },
1134
- });
1135
- classNameProperty.register(ViewBase);
1136
- export const idProperty = new Property({
1137
- name: 'id',
1138
- valueChanged: (view, oldValue, newValue) => view._onCssStateChange(),
1139
- });
1140
- idProperty.register(ViewBase);
1141
- export const defaultVisualStateProperty = new Property({
1142
- name: 'defaultVisualState',
1143
- defaultValue: 'normal',
1144
- valueChanged(target, oldValue, newValue) {
1145
- const value = newValue || 'normal';
1146
- // Append new default if old one is currently applied
1147
- if (target.cssPseudoClasses && target.cssPseudoClasses.has(oldValue)) {
1148
- target.deletePseudoClass(oldValue);
1149
- target.addPseudoClass(newValue);
1150
- }
1151
- },
1152
- });
1153
- defaultVisualStateProperty.register(ViewBase);
1154
- //# sourceMappingURL=index.js.map