@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,1132 +0,0 @@
1
- import { CssProperty, CssAnimationProperty, ShorthandProperty, InheritedCssProperty } from '../core/properties';
2
- import { unsetValue, isCssWideKeyword } from '../core/properties/property-shared';
3
- import { Style } from './style';
4
- import { Color } from '../../color';
5
- import { Font, parseFont, FontStyle, FontWeight, FontVariationSettings } from './font';
6
- import { Background } from './background';
7
- import { layout } from '../../utils';
8
- import { Trace } from '../../trace';
9
- import { CoreTypes } from '../../core-types';
10
- import { Length, FixedLength, PercentLength } from './length-shared';
11
- import { parseBackground } from '../../css/parser';
12
- import { LinearGradient } from './linear-gradient';
13
- import { parseCSSShadow } from './css-shadow';
14
- import { transformConverter } from './css-transform';
15
- import { ClipPathFunction } from './clip-path-function';
16
- function equalsCommon(a, b) {
17
- if (a == 'auto' || isCssWideKeyword(a)) {
18
- return b == 'auto' || isCssWideKeyword(b);
19
- }
20
- if (b == 'auto' || isCssWideKeyword(b)) {
21
- return false;
22
- }
23
- if (typeof a === 'number') {
24
- if (typeof b === 'number') {
25
- return a == b;
26
- }
27
- if (!b) {
28
- return false;
29
- }
30
- return b.unit == 'dip' && a == b.value;
31
- }
32
- if (typeof b === 'number') {
33
- return a ? a.unit == 'dip' && a.value == b : false;
34
- }
35
- if (!a || !b) {
36
- return false;
37
- }
38
- return a.value == b.value && a.unit == b.unit;
39
- }
40
- function convertToStringCommon(length) {
41
- if (length == 'auto' || isCssWideKeyword(length)) {
42
- return 'auto';
43
- }
44
- if (typeof length === 'number') {
45
- return length.toString();
46
- }
47
- let val = length.value;
48
- if (length.unit === '%') {
49
- val *= 100;
50
- }
51
- return val + length.unit;
52
- }
53
- function toDevicePixelsCommon(length, auto = Number.NaN, parentAvailableWidth = Number.NaN) {
54
- if (length == 'auto' || isCssWideKeyword(length)) {
55
- return auto;
56
- }
57
- if (typeof length === 'number') {
58
- return layout.round(layout.toDevicePixels(length));
59
- }
60
- if (!length) {
61
- return auto;
62
- }
63
- // @ts-ignore
64
- switch (length.unit) {
65
- case 'px':
66
- // @ts-ignore
67
- return layout.round(length.value);
68
- case '%':
69
- // @ts-ignore
70
- return layout.round(parentAvailableWidth * length.value);
71
- case 'dip':
72
- default:
73
- // @ts-ignore
74
- return layout.round(layout.toDevicePixels(length.value));
75
- }
76
- }
77
- function isNonNegativeFiniteNumber(value) {
78
- return isFinite(value) && !isNaN(value) && value >= 0;
79
- }
80
- function parseClipPath(value) {
81
- const funcStartIndex = value.indexOf('(');
82
- const funcEndIndex = value.lastIndexOf(')');
83
- if (funcStartIndex > -1 && funcEndIndex > -1) {
84
- const functionName = value.substring(0, funcStartIndex).trim();
85
- switch (functionName) {
86
- case 'rect':
87
- case 'circle':
88
- case 'ellipse':
89
- case 'polygon':
90
- case 'inset': {
91
- return new ClipPathFunction(functionName, value.substring(funcStartIndex + 1, funcEndIndex));
92
- }
93
- default:
94
- throw new Error(`Clip-path function ${functionName} is not valid.`);
95
- }
96
- }
97
- else {
98
- if (value === 'none') {
99
- return null;
100
- }
101
- // Only shape functions and none are supported for now
102
- throw new Error(`Clip-path value ${value} is not valid.`);
103
- }
104
- }
105
- function parseShorthandPositioning(value) {
106
- const arr = value.split(/[ ,]+/);
107
- let top;
108
- let right;
109
- let bottom;
110
- let left;
111
- if (arr.length === 1) {
112
- top = arr[0];
113
- right = arr[0];
114
- bottom = arr[0];
115
- left = arr[0];
116
- }
117
- else if (arr.length === 2) {
118
- top = arr[0];
119
- bottom = arr[0];
120
- right = arr[1];
121
- left = arr[1];
122
- }
123
- else if (arr.length === 3) {
124
- top = arr[0];
125
- right = arr[1];
126
- left = arr[1];
127
- bottom = arr[2];
128
- }
129
- else if (arr.length === 4) {
130
- top = arr[0];
131
- right = arr[1];
132
- bottom = arr[2];
133
- left = arr[3];
134
- }
135
- else {
136
- throw new Error('Expected 1, 2, 3 or 4 parameters. Actual: ' + value);
137
- }
138
- return {
139
- top: top,
140
- right: right,
141
- bottom: bottom,
142
- left: left,
143
- };
144
- }
145
- function parseBorderColorPositioning(value) {
146
- if (value.indexOf('rgb') === 0 || value.indexOf('hsl') === 0) {
147
- return {
148
- top: value,
149
- right: value,
150
- bottom: value,
151
- left: value,
152
- };
153
- }
154
- return parseShorthandPositioning(value);
155
- }
156
- function convertToBackgrounds(value) {
157
- if (typeof value === 'string') {
158
- const backgrounds = parseBackground(value).value;
159
- let backgroundColor = unsetValue;
160
- if (backgrounds.color) {
161
- backgroundColor = backgrounds.color instanceof Color ? backgrounds.color : new Color(backgrounds.color);
162
- }
163
- let backgroundImage;
164
- if (typeof backgrounds.image === 'object' && backgrounds.image) {
165
- backgroundImage = LinearGradient.parse(backgrounds.image);
166
- }
167
- else {
168
- backgroundImage = backgrounds.image || unsetValue;
169
- }
170
- const backgroundRepeat = backgrounds.repeat || unsetValue;
171
- const backgroundPosition = backgrounds.position ? backgrounds.position.text : unsetValue;
172
- return [
173
- [backgroundColorProperty, backgroundColor],
174
- [backgroundImageProperty, backgroundImage],
175
- [backgroundRepeatProperty, backgroundRepeat],
176
- [backgroundPositionProperty, backgroundPosition],
177
- ];
178
- }
179
- else {
180
- return [
181
- [backgroundColorProperty, unsetValue],
182
- [backgroundImageProperty, unsetValue],
183
- [backgroundRepeatProperty, unsetValue],
184
- [backgroundPositionProperty, unsetValue],
185
- ];
186
- }
187
- }
188
- function convertToMargins(value) {
189
- if (typeof value === 'string' && value !== 'auto') {
190
- const thickness = parseShorthandPositioning(value);
191
- return [
192
- [marginTopProperty, PercentLength.parse(thickness.top)],
193
- [marginRightProperty, PercentLength.parse(thickness.right)],
194
- [marginBottomProperty, PercentLength.parse(thickness.bottom)],
195
- [marginLeftProperty, PercentLength.parse(thickness.left)],
196
- ];
197
- }
198
- else {
199
- return [
200
- [marginTopProperty, value],
201
- [marginRightProperty, value],
202
- [marginBottomProperty, value],
203
- [marginLeftProperty, value],
204
- ];
205
- }
206
- }
207
- function convertToPaddings(value) {
208
- if (typeof value === 'string' && value !== 'auto') {
209
- const thickness = parseShorthandPositioning(value);
210
- return [
211
- [paddingTopProperty, Length.parse(thickness.top)],
212
- [paddingRightProperty, Length.parse(thickness.right)],
213
- [paddingBottomProperty, Length.parse(thickness.bottom)],
214
- [paddingLeftProperty, Length.parse(thickness.left)],
215
- ];
216
- }
217
- else {
218
- return [
219
- [paddingTopProperty, value],
220
- [paddingRightProperty, value],
221
- [paddingBottomProperty, value],
222
- [paddingLeftProperty, value],
223
- ];
224
- }
225
- }
226
- function convertToTransform(value) {
227
- if (value === unsetValue) {
228
- value = 'none';
229
- }
230
- const { translate, rotate, scale } = transformConverter(value);
231
- return [
232
- [translateXProperty, translate.x],
233
- [translateYProperty, translate.y],
234
- [scaleXProperty, scale.x],
235
- [scaleYProperty, scale.y],
236
- [rotateProperty, rotate.z],
237
- [rotateXProperty, rotate.x],
238
- [rotateYProperty, rotate.y],
239
- ];
240
- }
241
- export const minWidthProperty = new CssProperty({
242
- name: 'minWidth',
243
- cssName: 'min-width',
244
- defaultValue: CoreTypes.zeroLength,
245
- affectsLayout: global.isIOS,
246
- equalityComparer: Length.equals,
247
- valueChanged: (target, oldValue, newValue) => {
248
- const view = target.viewRef.get();
249
- if (view) {
250
- view.effectiveMinWidth = Length.toDevicePixels(newValue, 0);
251
- }
252
- else {
253
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
254
- }
255
- },
256
- valueConverter: Length.parse,
257
- });
258
- minWidthProperty.register(Style);
259
- export const minHeightProperty = new CssProperty({
260
- name: 'minHeight',
261
- cssName: 'min-height',
262
- defaultValue: CoreTypes.zeroLength,
263
- affectsLayout: global.isIOS,
264
- equalityComparer: Length.equals,
265
- valueChanged: (target, oldValue, newValue) => {
266
- const view = target.viewRef.get();
267
- if (view) {
268
- view.effectiveMinHeight = Length.toDevicePixels(newValue, 0);
269
- }
270
- else {
271
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
272
- }
273
- },
274
- valueConverter: Length.parse,
275
- });
276
- minHeightProperty.register(Style);
277
- export const widthProperty = new CssAnimationProperty({
278
- name: 'width',
279
- cssName: 'width',
280
- defaultValue: 'auto',
281
- equalityComparer: Length.equals,
282
- // TODO: CSSAnimationProperty was needed for keyframe (copying other impls), but `affectsLayout` does not exist
283
- // on the animation property, so fake it here. x_x
284
- valueChanged: (target, oldValue, newValue) => {
285
- if (global.isIOS) {
286
- const view = target.viewRef.get();
287
- if (view) {
288
- view.requestLayout();
289
- }
290
- }
291
- },
292
- valueConverter: PercentLength.parse,
293
- });
294
- widthProperty.register(Style);
295
- export const heightProperty = new CssAnimationProperty({
296
- name: 'height',
297
- cssName: 'height',
298
- defaultValue: 'auto',
299
- equalityComparer: Length.equals,
300
- // TODO: CSSAnimationProperty was needed for keyframe (copying other impls), but `affectsLayout` does not exist
301
- // on the animation property, so fake it here. -_-
302
- valueChanged: (target, oldValue, newValue) => {
303
- if (global.isIOS) {
304
- const view = target.viewRef.get();
305
- if (view) {
306
- view.requestLayout();
307
- }
308
- }
309
- },
310
- valueConverter: PercentLength.parse,
311
- });
312
- heightProperty.register(Style);
313
- const marginProperty = new ShorthandProperty({
314
- name: 'margin',
315
- cssName: 'margin',
316
- getter: function () {
317
- if (PercentLength.equals(this.marginTop, this.marginRight) && PercentLength.equals(this.marginTop, this.marginBottom) && PercentLength.equals(this.marginTop, this.marginLeft)) {
318
- return this.marginTop;
319
- }
320
- return `${PercentLength.convertToString(this.marginTop)} ${PercentLength.convertToString(this.marginRight)} ${PercentLength.convertToString(this.marginBottom)} ${PercentLength.convertToString(this.marginLeft)}`;
321
- },
322
- converter: convertToMargins,
323
- });
324
- marginProperty.register(Style);
325
- export const marginLeftProperty = new CssProperty({
326
- name: 'marginLeft',
327
- cssName: 'margin-left',
328
- defaultValue: CoreTypes.zeroLength,
329
- affectsLayout: global.isIOS,
330
- equalityComparer: Length.equals,
331
- valueConverter: PercentLength.parse,
332
- });
333
- marginLeftProperty.register(Style);
334
- export const marginRightProperty = new CssProperty({
335
- name: 'marginRight',
336
- cssName: 'margin-right',
337
- defaultValue: CoreTypes.zeroLength,
338
- affectsLayout: global.isIOS,
339
- equalityComparer: Length.equals,
340
- valueConverter: PercentLength.parse,
341
- });
342
- marginRightProperty.register(Style);
343
- export const marginTopProperty = new CssProperty({
344
- name: 'marginTop',
345
- cssName: 'margin-top',
346
- defaultValue: CoreTypes.zeroLength,
347
- affectsLayout: global.isIOS,
348
- equalityComparer: Length.equals,
349
- valueConverter: PercentLength.parse,
350
- });
351
- marginTopProperty.register(Style);
352
- export const marginBottomProperty = new CssProperty({
353
- name: 'marginBottom',
354
- cssName: 'margin-bottom',
355
- defaultValue: CoreTypes.zeroLength,
356
- affectsLayout: global.isIOS,
357
- equalityComparer: Length.equals,
358
- valueConverter: PercentLength.parse,
359
- });
360
- marginBottomProperty.register(Style);
361
- const paddingProperty = new ShorthandProperty({
362
- name: 'padding',
363
- cssName: 'padding',
364
- getter: function () {
365
- if (Length.equals(this.paddingTop, this.paddingRight) && Length.equals(this.paddingTop, this.paddingBottom) && Length.equals(this.paddingTop, this.paddingLeft)) {
366
- return this.paddingTop;
367
- }
368
- return `${Length.convertToString(this.paddingTop)} ${Length.convertToString(this.paddingRight)} ${Length.convertToString(this.paddingBottom)} ${Length.convertToString(this.paddingLeft)}`;
369
- },
370
- converter: convertToPaddings,
371
- });
372
- paddingProperty.register(Style);
373
- export const paddingLeftProperty = new CssProperty({
374
- name: 'paddingLeft',
375
- cssName: 'padding-left',
376
- defaultValue: CoreTypes.zeroLength,
377
- affectsLayout: global.isIOS,
378
- equalityComparer: Length.equals,
379
- valueChanged: (target, oldValue, newValue) => {
380
- const view = target.viewRef.get();
381
- if (view) {
382
- view.effectivePaddingLeft = Length.toDevicePixels(newValue, 0);
383
- }
384
- else {
385
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
386
- }
387
- },
388
- valueConverter: Length.parse,
389
- });
390
- paddingLeftProperty.register(Style);
391
- export const paddingRightProperty = new CssProperty({
392
- name: 'paddingRight',
393
- cssName: 'padding-right',
394
- defaultValue: CoreTypes.zeroLength,
395
- affectsLayout: global.isIOS,
396
- equalityComparer: Length.equals,
397
- valueChanged: (target, oldValue, newValue) => {
398
- const view = target.viewRef.get();
399
- if (view) {
400
- view.effectivePaddingRight = Length.toDevicePixels(newValue, 0);
401
- }
402
- else {
403
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
404
- }
405
- },
406
- valueConverter: Length.parse,
407
- });
408
- paddingRightProperty.register(Style);
409
- export const paddingTopProperty = new CssProperty({
410
- name: 'paddingTop',
411
- cssName: 'padding-top',
412
- defaultValue: CoreTypes.zeroLength,
413
- affectsLayout: global.isIOS,
414
- equalityComparer: Length.equals,
415
- valueChanged: (target, oldValue, newValue) => {
416
- const view = target.viewRef.get();
417
- if (view) {
418
- view.effectivePaddingTop = Length.toDevicePixels(newValue, 0);
419
- }
420
- else {
421
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
422
- }
423
- },
424
- valueConverter: Length.parse,
425
- });
426
- paddingTopProperty.register(Style);
427
- export const paddingBottomProperty = new CssProperty({
428
- name: 'paddingBottom',
429
- cssName: 'padding-bottom',
430
- defaultValue: CoreTypes.zeroLength,
431
- affectsLayout: global.isIOS,
432
- equalityComparer: Length.equals,
433
- valueChanged: (target, oldValue, newValue) => {
434
- const view = target.viewRef.get();
435
- if (view) {
436
- view.effectivePaddingBottom = Length.toDevicePixels(newValue, 0);
437
- }
438
- else {
439
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
440
- }
441
- },
442
- valueConverter: Length.parse,
443
- });
444
- paddingBottomProperty.register(Style);
445
- export const horizontalAlignmentProperty = new CssProperty({
446
- name: 'horizontalAlignment',
447
- cssName: 'horizontal-align',
448
- defaultValue: CoreTypes.HorizontalAlignment.stretch,
449
- affectsLayout: global.isIOS,
450
- valueConverter: CoreTypes.HorizontalAlignment.parse,
451
- });
452
- horizontalAlignmentProperty.register(Style);
453
- export const verticalAlignmentProperty = new CssProperty({
454
- name: 'verticalAlignment',
455
- cssName: 'vertical-align',
456
- defaultValue: CoreTypes.VerticalAlignmentText.stretch,
457
- affectsLayout: global.isIOS,
458
- valueConverter: CoreTypes.VerticalAlignmentText.parse,
459
- });
460
- verticalAlignmentProperty.register(Style);
461
- export const rotateProperty = new CssAnimationProperty({
462
- name: 'rotate',
463
- cssName: 'rotate',
464
- defaultValue: 0,
465
- valueConverter: parseFloat,
466
- });
467
- rotateProperty.register(Style);
468
- export const rotateXProperty = new CssAnimationProperty({
469
- name: 'rotateX',
470
- cssName: 'rotatex',
471
- defaultValue: 0,
472
- valueConverter: parseFloat,
473
- });
474
- rotateXProperty.register(Style);
475
- export const rotateYProperty = new CssAnimationProperty({
476
- name: 'rotateY',
477
- cssName: 'rotatey',
478
- defaultValue: 0,
479
- valueConverter: parseFloat,
480
- });
481
- rotateYProperty.register(Style);
482
- export const perspectiveProperty = new CssAnimationProperty({
483
- name: 'perspective',
484
- cssName: 'perspective',
485
- defaultValue: 1000,
486
- valueConverter: parseFloat,
487
- });
488
- perspectiveProperty.register(Style);
489
- export const scaleXProperty = new CssAnimationProperty({
490
- name: 'scaleX',
491
- cssName: 'scaleX',
492
- defaultValue: 1,
493
- valueConverter: parseFloat,
494
- });
495
- scaleXProperty.register(Style);
496
- export const scaleYProperty = new CssAnimationProperty({
497
- name: 'scaleY',
498
- cssName: 'scaleY',
499
- defaultValue: 1,
500
- valueConverter: parseFloat,
501
- });
502
- scaleYProperty.register(Style);
503
- export const translateXProperty = new CssAnimationProperty({
504
- name: 'translateX',
505
- cssName: 'translateX',
506
- defaultValue: 0,
507
- equalityComparer: FixedLength.equals,
508
- valueConverter: FixedLength.parse,
509
- });
510
- translateXProperty.register(Style);
511
- export const translateYProperty = new CssAnimationProperty({
512
- name: 'translateY',
513
- cssName: 'translateY',
514
- defaultValue: 0,
515
- equalityComparer: FixedLength.equals,
516
- valueConverter: FixedLength.parse,
517
- });
518
- translateYProperty.register(Style);
519
- const transformProperty = new ShorthandProperty({
520
- name: 'transform',
521
- cssName: 'transform',
522
- getter: function () {
523
- const scaleX = this.scaleX;
524
- const scaleY = this.scaleY;
525
- const translateX = this.translateX;
526
- const translateY = this.translateY;
527
- const rotate = this.rotate;
528
- const rotateX = this.rotateX;
529
- const rotateY = this.rotateY;
530
- let result = '';
531
- if (translateX !== 0 || translateY !== 0) {
532
- result += `translate(${translateX}, ${translateY}) `;
533
- }
534
- if (scaleX !== 1 || scaleY !== 1) {
535
- result += `scale(${scaleX}, ${scaleY}) `;
536
- }
537
- if (rotateX !== 0 || rotateY !== 0 || rotate !== 0) {
538
- result += `rotate(${rotateX}, ${rotateY}, ${rotate}) `;
539
- result += `rotate (${rotate})`;
540
- }
541
- return result.trim();
542
- },
543
- converter: convertToTransform,
544
- });
545
- transformProperty.register(Style);
546
- // Background properties.
547
- const backgroundProperty = new ShorthandProperty({
548
- name: 'background',
549
- cssName: 'background',
550
- getter: function () {
551
- return `${this.backgroundColor} ${this.backgroundImage} ${this.backgroundRepeat} ${this.backgroundPosition}`;
552
- },
553
- converter: convertToBackgrounds,
554
- });
555
- backgroundProperty.register(Style);
556
- export const backgroundInternalProperty = new CssProperty({
557
- name: 'backgroundInternal',
558
- cssName: '_backgroundInternal',
559
- defaultValue: Background.default,
560
- });
561
- backgroundInternalProperty.register(Style);
562
- export const backgroundImageProperty = new CssProperty({
563
- name: 'backgroundImage',
564
- cssName: 'background-image',
565
- valueChanged: (target, oldValue, newValue) => {
566
- target.backgroundInternal = target.backgroundInternal.withImage(newValue);
567
- },
568
- equalityComparer: (value1, value2) => {
569
- if (value1 instanceof LinearGradient && value2 instanceof LinearGradient) {
570
- return LinearGradient.equals(value1, value2);
571
- }
572
- else {
573
- return value1 === value2;
574
- }
575
- },
576
- valueConverter: (value) => {
577
- if (typeof value === 'string') {
578
- const parsed = parseBackground(value);
579
- if (parsed) {
580
- value = typeof parsed.value.image === 'object' ? LinearGradient.parse(parsed.value.image) : value;
581
- }
582
- }
583
- return value;
584
- },
585
- });
586
- backgroundImageProperty.register(Style);
587
- export const backgroundColorProperty = new CssAnimationProperty({
588
- name: 'backgroundColor',
589
- cssName: 'background-color',
590
- valueChanged: (target, oldValue, newValue) => {
591
- target.backgroundInternal = target.backgroundInternal.withColor(newValue);
592
- },
593
- equalityComparer: Color.equals,
594
- valueConverter: (value) => new Color(value),
595
- });
596
- backgroundColorProperty.register(Style);
597
- export const backgroundRepeatProperty = new CssProperty({
598
- name: 'backgroundRepeat',
599
- cssName: 'background-repeat',
600
- valueConverter: CoreTypes.BackgroundRepeat.parse,
601
- valueChanged: (target, oldValue, newValue) => {
602
- target.backgroundInternal = target.backgroundInternal.withRepeat(newValue);
603
- },
604
- });
605
- backgroundRepeatProperty.register(Style);
606
- export const backgroundSizeProperty = new CssProperty({
607
- name: 'backgroundSize',
608
- cssName: 'background-size',
609
- valueChanged: (target, oldValue, newValue) => {
610
- target.backgroundInternal = target.backgroundInternal.withSize(newValue);
611
- },
612
- });
613
- backgroundSizeProperty.register(Style);
614
- export const backgroundPositionProperty = new CssProperty({
615
- name: 'backgroundPosition',
616
- cssName: 'background-position',
617
- valueChanged: (target, oldValue, newValue) => {
618
- target.backgroundInternal = target.backgroundInternal.withPosition(newValue);
619
- },
620
- });
621
- backgroundPositionProperty.register(Style);
622
- // Border Color properties.
623
- const borderColorProperty = new ShorthandProperty({
624
- name: 'borderColor',
625
- cssName: 'border-color',
626
- getter: function () {
627
- if (Color.equals(this.borderTopColor, this.borderRightColor) && Color.equals(this.borderTopColor, this.borderBottomColor) && Color.equals(this.borderTopColor, this.borderLeftColor)) {
628
- return this.borderTopColor;
629
- }
630
- else {
631
- return `${this.borderTopColor} ${this.borderRightColor} ${this.borderBottomColor} ${this.borderLeftColor}`;
632
- }
633
- },
634
- converter: function (value) {
635
- if (typeof value === 'string') {
636
- const colors = parseBorderColorPositioning(value);
637
- return [
638
- [borderTopColorProperty, new Color(colors.top)],
639
- [borderRightColorProperty, new Color(colors.right)],
640
- [borderBottomColorProperty, new Color(colors.bottom)],
641
- [borderLeftColorProperty, new Color(colors.left)],
642
- ];
643
- }
644
- else {
645
- return [
646
- [borderTopColorProperty, value],
647
- [borderRightColorProperty, value],
648
- [borderBottomColorProperty, value],
649
- [borderLeftColorProperty, value],
650
- ];
651
- }
652
- },
653
- });
654
- borderColorProperty.register(Style);
655
- export const borderTopColorProperty = new CssProperty({
656
- name: 'borderTopColor',
657
- cssName: 'border-top-color',
658
- valueChanged: (target, oldValue, newValue) => {
659
- target.backgroundInternal = target.backgroundInternal.withBorderTopColor(newValue);
660
- },
661
- equalityComparer: Color.equals,
662
- valueConverter: (value) => new Color(value),
663
- });
664
- borderTopColorProperty.register(Style);
665
- export const borderRightColorProperty = new CssProperty({
666
- name: 'borderRightColor',
667
- cssName: 'border-right-color',
668
- valueChanged: (target, oldValue, newValue) => {
669
- target.backgroundInternal = target.backgroundInternal.withBorderRightColor(newValue);
670
- },
671
- equalityComparer: Color.equals,
672
- valueConverter: (value) => new Color(value),
673
- });
674
- borderRightColorProperty.register(Style);
675
- export const borderBottomColorProperty = new CssProperty({
676
- name: 'borderBottomColor',
677
- cssName: 'border-bottom-color',
678
- valueChanged: (target, oldValue, newValue) => {
679
- target.backgroundInternal = target.backgroundInternal.withBorderBottomColor(newValue);
680
- },
681
- equalityComparer: Color.equals,
682
- valueConverter: (value) => new Color(value),
683
- });
684
- borderBottomColorProperty.register(Style);
685
- export const borderLeftColorProperty = new CssProperty({
686
- name: 'borderLeftColor',
687
- cssName: 'border-left-color',
688
- valueChanged: (target, oldValue, newValue) => {
689
- target.backgroundInternal = target.backgroundInternal.withBorderLeftColor(newValue);
690
- },
691
- equalityComparer: Color.equals,
692
- valueConverter: (value) => new Color(value),
693
- });
694
- borderLeftColorProperty.register(Style);
695
- // Border Width properties.
696
- const borderWidthProperty = new ShorthandProperty({
697
- name: 'borderWidth',
698
- cssName: 'border-width',
699
- getter: function () {
700
- if (Length.equals(this.borderTopWidth, this.borderRightWidth) && Length.equals(this.borderTopWidth, this.borderBottomWidth) && Length.equals(this.borderTopWidth, this.borderLeftWidth)) {
701
- return this.borderTopWidth;
702
- }
703
- else {
704
- return `${Length.convertToString(this.borderTopWidth)} ${Length.convertToString(this.borderRightWidth)} ${Length.convertToString(this.borderBottomWidth)} ${Length.convertToString(this.borderLeftWidth)}`;
705
- }
706
- },
707
- converter: function (value) {
708
- if (typeof value === 'string' && value !== 'auto') {
709
- const borderWidths = parseShorthandPositioning(value);
710
- return [
711
- [borderTopWidthProperty, Length.parse(borderWidths.top)],
712
- [borderRightWidthProperty, Length.parse(borderWidths.right)],
713
- [borderBottomWidthProperty, Length.parse(borderWidths.bottom)],
714
- [borderLeftWidthProperty, Length.parse(borderWidths.left)],
715
- ];
716
- }
717
- else {
718
- return [
719
- [borderTopWidthProperty, value],
720
- [borderRightWidthProperty, value],
721
- [borderBottomWidthProperty, value],
722
- [borderLeftWidthProperty, value],
723
- ];
724
- }
725
- },
726
- });
727
- borderWidthProperty.register(Style);
728
- export const borderTopWidthProperty = new CssProperty({
729
- name: 'borderTopWidth',
730
- cssName: 'border-top-width',
731
- defaultValue: CoreTypes.zeroLength,
732
- affectsLayout: global.isIOS,
733
- equalityComparer: Length.equals,
734
- valueChanged: (target, oldValue, newValue) => {
735
- const value = Length.toDevicePixels(newValue, 0);
736
- if (!isNonNegativeFiniteNumber(value)) {
737
- throw new Error(`border-top-width should be Non-Negative Finite number. Value: ${value}`);
738
- }
739
- const view = target.viewRef.get();
740
- if (view) {
741
- view.effectiveBorderTopWidth = value;
742
- }
743
- else {
744
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
745
- }
746
- target.backgroundInternal = target.backgroundInternal.withBorderTopWidth(value);
747
- },
748
- valueConverter: Length.parse,
749
- });
750
- borderTopWidthProperty.register(Style);
751
- export const borderRightWidthProperty = new CssProperty({
752
- name: 'borderRightWidth',
753
- cssName: 'border-right-width',
754
- defaultValue: CoreTypes.zeroLength,
755
- affectsLayout: global.isIOS,
756
- equalityComparer: Length.equals,
757
- valueChanged: (target, oldValue, newValue) => {
758
- const value = Length.toDevicePixels(newValue, 0);
759
- if (!isNonNegativeFiniteNumber(value)) {
760
- throw new Error(`border-right-width should be Non-Negative Finite number. Value: ${value}`);
761
- }
762
- const view = target.viewRef.get();
763
- if (view) {
764
- view.effectiveBorderRightWidth = value;
765
- }
766
- else {
767
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
768
- }
769
- target.backgroundInternal = target.backgroundInternal.withBorderRightWidth(value);
770
- },
771
- valueConverter: Length.parse,
772
- });
773
- borderRightWidthProperty.register(Style);
774
- export const borderBottomWidthProperty = new CssProperty({
775
- name: 'borderBottomWidth',
776
- cssName: 'border-bottom-width',
777
- defaultValue: CoreTypes.zeroLength,
778
- affectsLayout: global.isIOS,
779
- equalityComparer: Length.equals,
780
- valueChanged: (target, oldValue, newValue) => {
781
- const value = Length.toDevicePixels(newValue, 0);
782
- if (!isNonNegativeFiniteNumber(value)) {
783
- throw new Error(`border-bottom-width should be Non-Negative Finite number. Value: ${value}`);
784
- }
785
- const view = target.viewRef.get();
786
- if (view) {
787
- view.effectiveBorderBottomWidth = value;
788
- }
789
- else {
790
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
791
- }
792
- target.backgroundInternal = target.backgroundInternal.withBorderBottomWidth(value);
793
- },
794
- valueConverter: Length.parse,
795
- });
796
- borderBottomWidthProperty.register(Style);
797
- export const borderLeftWidthProperty = new CssProperty({
798
- name: 'borderLeftWidth',
799
- cssName: 'border-left-width',
800
- defaultValue: CoreTypes.zeroLength,
801
- affectsLayout: global.isIOS,
802
- equalityComparer: Length.equals,
803
- valueChanged: (target, oldValue, newValue) => {
804
- const value = Length.toDevicePixels(newValue, 0);
805
- if (!isNonNegativeFiniteNumber(value)) {
806
- throw new Error(`border-left-width should be Non-Negative Finite number. Value: ${value}`);
807
- }
808
- const view = target.viewRef.get();
809
- if (view) {
810
- view.effectiveBorderLeftWidth = value;
811
- }
812
- else {
813
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
814
- }
815
- target.backgroundInternal = target.backgroundInternal.withBorderLeftWidth(value);
816
- },
817
- valueConverter: Length.parse,
818
- });
819
- borderLeftWidthProperty.register(Style);
820
- // Border Radius properties.
821
- const borderRadiusProperty = new ShorthandProperty({
822
- name: 'borderRadius',
823
- cssName: 'border-radius',
824
- getter: function () {
825
- if (Length.equals(this.borderTopLeftRadius, this.borderTopRightRadius) && Length.equals(this.borderTopLeftRadius, this.borderBottomRightRadius) && Length.equals(this.borderTopLeftRadius, this.borderBottomLeftRadius)) {
826
- return this.borderTopLeftRadius;
827
- }
828
- return `${Length.convertToString(this.borderTopLeftRadius)} ${Length.convertToString(this.borderTopRightRadius)} ${Length.convertToString(this.borderBottomRightRadius)} ${Length.convertToString(this.borderBottomLeftRadius)}`;
829
- },
830
- converter: function (value) {
831
- if (typeof value === 'string') {
832
- const borderRadius = parseShorthandPositioning(value);
833
- return [
834
- [borderTopLeftRadiusProperty, Length.parse(borderRadius.top)],
835
- [borderTopRightRadiusProperty, Length.parse(borderRadius.right)],
836
- [borderBottomRightRadiusProperty, Length.parse(borderRadius.bottom)],
837
- [borderBottomLeftRadiusProperty, Length.parse(borderRadius.left)],
838
- ];
839
- }
840
- else {
841
- return [
842
- [borderTopLeftRadiusProperty, value],
843
- [borderTopRightRadiusProperty, value],
844
- [borderBottomRightRadiusProperty, value],
845
- [borderBottomLeftRadiusProperty, value],
846
- ];
847
- }
848
- },
849
- });
850
- borderRadiusProperty.register(Style);
851
- export const borderTopLeftRadiusProperty = new CssProperty({
852
- name: 'borderTopLeftRadius',
853
- cssName: 'border-top-left-radius',
854
- defaultValue: 0,
855
- affectsLayout: global.isIOS,
856
- valueChanged: (target, oldValue, newValue) => {
857
- const value = Length.toDevicePixels(newValue, 0);
858
- if (!isNonNegativeFiniteNumber(value)) {
859
- throw new Error(`border-top-left-radius should be Non-Negative Finite number. Value: ${value}`);
860
- }
861
- target.backgroundInternal = target.backgroundInternal.withBorderTopLeftRadius(value);
862
- },
863
- valueConverter: Length.parse,
864
- equalityComparer: Length.equals,
865
- });
866
- borderTopLeftRadiusProperty.register(Style);
867
- export const borderTopRightRadiusProperty = new CssProperty({
868
- name: 'borderTopRightRadius',
869
- cssName: 'border-top-right-radius',
870
- defaultValue: 0,
871
- affectsLayout: global.isIOS,
872
- valueChanged: (target, oldValue, newValue) => {
873
- const value = Length.toDevicePixels(newValue, 0);
874
- if (!isNonNegativeFiniteNumber(value)) {
875
- throw new Error(`border-top-right-radius should be Non-Negative Finite number. Value: ${value}`);
876
- }
877
- target.backgroundInternal = target.backgroundInternal.withBorderTopRightRadius(value);
878
- },
879
- valueConverter: Length.parse,
880
- equalityComparer: Length.equals,
881
- });
882
- borderTopRightRadiusProperty.register(Style);
883
- export const borderBottomRightRadiusProperty = new CssProperty({
884
- name: 'borderBottomRightRadius',
885
- cssName: 'border-bottom-right-radius',
886
- defaultValue: 0,
887
- affectsLayout: global.isIOS,
888
- valueChanged: (target, oldValue, newValue) => {
889
- const value = Length.toDevicePixels(newValue, 0);
890
- if (!isNonNegativeFiniteNumber(value)) {
891
- throw new Error(`border-bottom-right-radius should be Non-Negative Finite number. Value: ${value}`);
892
- }
893
- target.backgroundInternal = target.backgroundInternal.withBorderBottomRightRadius(value);
894
- },
895
- valueConverter: Length.parse,
896
- equalityComparer: Length.equals,
897
- });
898
- borderBottomRightRadiusProperty.register(Style);
899
- export const borderBottomLeftRadiusProperty = new CssProperty({
900
- name: 'borderBottomLeftRadius',
901
- cssName: 'border-bottom-left-radius',
902
- defaultValue: 0,
903
- affectsLayout: global.isIOS,
904
- valueChanged: (target, oldValue, newValue) => {
905
- const value = Length.toDevicePixels(newValue, 0);
906
- if (!isNonNegativeFiniteNumber(value)) {
907
- throw new Error(`border-bottom-left-radius should be Non-Negative Finite number. Value: ${value}`);
908
- }
909
- target.backgroundInternal = target.backgroundInternal.withBorderBottomLeftRadius(value);
910
- },
911
- valueConverter: Length.parse,
912
- equalityComparer: Length.equals,
913
- });
914
- borderBottomLeftRadiusProperty.register(Style);
915
- const boxShadowProperty = new CssProperty({
916
- name: 'boxShadow',
917
- cssName: 'box-shadow',
918
- valueChanged: (target, oldValue, newValue) => {
919
- target.backgroundInternal = target.backgroundInternal.withBoxShadow(newValue
920
- ? {
921
- inset: newValue.inset,
922
- offsetX: Length.toDevicePixels(newValue.offsetX, 0),
923
- offsetY: Length.toDevicePixels(newValue.offsetY, 0),
924
- blurRadius: Length.toDevicePixels(newValue.blurRadius, 0),
925
- spreadRadius: Length.toDevicePixels(newValue.spreadRadius, 0),
926
- color: newValue.color,
927
- }
928
- : null);
929
- },
930
- valueConverter: (value) => {
931
- return parseCSSShadow(value);
932
- },
933
- });
934
- boxShadowProperty.register(Style);
935
- export const clipPathProperty = new CssProperty({
936
- name: 'clipPath',
937
- cssName: 'clip-path',
938
- valueChanged: (target, oldValue, newValue) => {
939
- target.backgroundInternal = target.backgroundInternal.withClipPath(newValue);
940
- },
941
- equalityComparer: (value1, value2) => {
942
- if (value1 instanceof ClipPathFunction && value2 instanceof ClipPathFunction) {
943
- return ClipPathFunction.equals(value1, value2);
944
- }
945
- return value1 === value2;
946
- },
947
- valueConverter(value) {
948
- if (typeof value === 'string') {
949
- return parseClipPath(value);
950
- }
951
- return value;
952
- },
953
- });
954
- clipPathProperty.register(Style);
955
- export const zIndexProperty = new CssProperty({
956
- name: 'zIndex',
957
- cssName: 'z-index',
958
- valueConverter: (value) => {
959
- const newValue = parseFloat(value);
960
- if (isNaN(newValue)) {
961
- throw new Error(`Invalid value: ${newValue}`);
962
- }
963
- return newValue;
964
- },
965
- });
966
- zIndexProperty.register(Style);
967
- export const opacityProperty = new CssAnimationProperty({
968
- name: 'opacity',
969
- cssName: 'opacity',
970
- defaultValue: 1,
971
- valueConverter: (value) => {
972
- const newValue = parseFloat(value);
973
- if (!isNonNegativeFiniteNumber(newValue) || newValue > 1) {
974
- throw new Error(`Opacity should be between [0, 1]. Value: ${newValue}`);
975
- }
976
- return newValue;
977
- },
978
- });
979
- opacityProperty.register(Style);
980
- export const colorProperty = new InheritedCssProperty({
981
- name: 'color',
982
- cssName: 'color',
983
- equalityComparer: Color.equals,
984
- valueConverter: (v) => new Color(v),
985
- });
986
- colorProperty.register(Style);
987
- export const fontInternalProperty = new CssProperty({
988
- name: 'fontInternal',
989
- cssName: '_fontInternal',
990
- });
991
- fontInternalProperty.register(Style);
992
- export const fontFamilyProperty = new InheritedCssProperty({
993
- name: 'fontFamily',
994
- cssName: 'font-family',
995
- affectsLayout: global.isIOS,
996
- valueChanged: (target, oldValue, newValue) => {
997
- const currentFont = target.fontInternal || Font.default;
998
- if (currentFont.fontFamily !== newValue) {
999
- const newFont = currentFont.withFontFamily(newValue);
1000
- target.fontInternal = Font.equals(Font.default, newFont) ? unsetValue : newFont;
1001
- }
1002
- },
1003
- });
1004
- fontFamilyProperty.register(Style);
1005
- export const fontScaleInternalProperty = new InheritedCssProperty({
1006
- name: 'fontScaleInternal',
1007
- cssName: '_fontScaleInternal',
1008
- defaultValue: 1.0,
1009
- valueConverter: (v) => parseFloat(v),
1010
- });
1011
- fontScaleInternalProperty.register(Style);
1012
- export const fontSizeProperty = new InheritedCssProperty({
1013
- name: 'fontSize',
1014
- cssName: 'font-size',
1015
- affectsLayout: global.isIOS,
1016
- valueChanged: (target, oldValue, newValue) => {
1017
- if (target.viewRef['handleFontSize'] === true) {
1018
- return;
1019
- }
1020
- const currentFont = target.fontInternal || Font.default;
1021
- if (currentFont.fontSize !== newValue) {
1022
- const newFont = currentFont.withFontSize(newValue);
1023
- target.fontInternal = Font.equals(Font.default, newFont) ? unsetValue : newFont;
1024
- }
1025
- },
1026
- valueConverter: (v) => parseFloat(v),
1027
- });
1028
- fontSizeProperty.register(Style);
1029
- export const fontStyleProperty = new InheritedCssProperty({
1030
- name: 'fontStyle',
1031
- cssName: 'font-style',
1032
- affectsLayout: global.isIOS,
1033
- defaultValue: FontStyle.NORMAL,
1034
- valueConverter: FontStyle.parse,
1035
- valueChanged: (target, oldValue, newValue) => {
1036
- const currentFont = target.fontInternal || Font.default;
1037
- if (currentFont.fontStyle !== newValue) {
1038
- const newFont = currentFont.withFontStyle(newValue);
1039
- target.fontInternal = Font.equals(Font.default, newFont) ? unsetValue : newFont;
1040
- }
1041
- },
1042
- });
1043
- fontStyleProperty.register(Style);
1044
- export const fontWeightProperty = new InheritedCssProperty({
1045
- name: 'fontWeight',
1046
- cssName: 'font-weight',
1047
- affectsLayout: global.isIOS,
1048
- defaultValue: FontWeight.NORMAL,
1049
- valueConverter: FontWeight.parse,
1050
- valueChanged: (target, oldValue, newValue) => {
1051
- const currentFont = target.fontInternal || Font.default;
1052
- if (currentFont.fontWeight !== newValue) {
1053
- const newFont = currentFont.withFontWeight(newValue);
1054
- target.fontInternal = Font.equals(Font.default, newFont) ? unsetValue : newFont;
1055
- }
1056
- },
1057
- });
1058
- fontWeightProperty.register(Style);
1059
- const fontProperty = new ShorthandProperty({
1060
- name: 'font',
1061
- cssName: 'font',
1062
- getter: function () {
1063
- return `${this.fontStyle} ${this.fontWeight} ${this.fontSize} ${this.fontFamily}`;
1064
- },
1065
- converter: function (value) {
1066
- if (value === unsetValue) {
1067
- return [
1068
- [fontStyleProperty, unsetValue],
1069
- [fontWeightProperty, unsetValue],
1070
- [fontSizeProperty, unsetValue],
1071
- [fontFamilyProperty, unsetValue],
1072
- ];
1073
- }
1074
- else {
1075
- const font = parseFont(value);
1076
- const fontSize = parseFloat(font.fontSize);
1077
- return [
1078
- [fontStyleProperty, font.fontStyle],
1079
- [fontWeightProperty, font.fontWeight],
1080
- [fontSizeProperty, fontSize],
1081
- [fontFamilyProperty, font.fontFamily],
1082
- ];
1083
- }
1084
- },
1085
- });
1086
- fontProperty.register(Style);
1087
- export const fontVariationSettingsProperty = new InheritedCssProperty({
1088
- name: 'fontVariationSettings',
1089
- cssName: 'font-variation-settings',
1090
- affectsLayout: global.isIOS,
1091
- valueChanged: (target, oldValue, newValue) => {
1092
- const currentFont = target.fontInternal || Font.default;
1093
- if (currentFont.fontVariationSettings !== newValue) {
1094
- const newFont = currentFont.withFontVariationSettings(newValue);
1095
- target.fontInternal = Font.equals(Font.default, newFont) ? unsetValue : newFont;
1096
- }
1097
- },
1098
- valueConverter: (value) => {
1099
- return FontVariationSettings.parse(value);
1100
- },
1101
- });
1102
- fontVariationSettingsProperty.register(Style);
1103
- export const visibilityProperty = new CssProperty({
1104
- name: 'visibility',
1105
- cssName: 'visibility',
1106
- defaultValue: CoreTypes.Visibility.visible,
1107
- affectsLayout: global.isIOS,
1108
- valueConverter: CoreTypes.Visibility.parse,
1109
- valueChanged: (target, oldValue, newValue) => {
1110
- const view = target.viewRef.get();
1111
- if (view) {
1112
- view.isCollapsed = newValue === CoreTypes.Visibility.collapse;
1113
- }
1114
- else {
1115
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
1116
- }
1117
- },
1118
- });
1119
- visibilityProperty.register(Style);
1120
- export const androidElevationProperty = new CssProperty({
1121
- name: 'androidElevation',
1122
- cssName: 'android-elevation',
1123
- valueConverter: parseFloat,
1124
- });
1125
- androidElevationProperty.register(Style);
1126
- export const androidDynamicElevationOffsetProperty = new CssProperty({
1127
- name: 'androidDynamicElevationOffset',
1128
- cssName: 'android-dynamic-elevation-offset',
1129
- valueConverter: parseFloat,
1130
- });
1131
- androidDynamicElevationOffsetProperty.register(Style);
1132
- //# sourceMappingURL=style-properties.js.map