@akylas/nativescript 8.8.4 → 8.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (968) hide show
  1. package/LICENSE +19 -0
  2. package/animation-frame/index.d.ts +17 -3
  3. package/css/css-tree-parser.js +21 -17
  4. package/debugger/devtools-elements.d.ts +23 -5
  5. package/debugger/dom-node.d.ts +23 -20
  6. package/file-system/index.d.ts +382 -98
  7. package/fps-meter/index.d.ts +24 -7
  8. package/globals/index.d.ts +4 -19
  9. package/http/index.d.ts +149 -73
  10. package/index.d.ts +23 -7
  11. package/matrix/index.d.ts +32 -5
  12. package/module-name-resolver/index.d.ts +21 -13
  13. package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
  14. package/package.json +5 -8
  15. package/platform/index.d.ts +26 -0
  16. package/profiling/index.d.ts +153 -26
  17. package/text/formatted-string.d.ts +1 -1
  18. package/text/span.d.ts +1 -1
  19. package/trace/index.d.ts +131 -105
  20. package/ui/animation/keyframe-animation.d.ts +118 -66
  21. package/ui/builder/binding-builder.d.ts +15 -12
  22. package/ui/builder/index.d.ts +69 -27
  23. package/ui/content-view/index.d.ts +4 -23
  24. package/ui/core/view-base/index.d.ts +524 -479
  25. package/ui/core/weak-event-listener/index.d.ts +18 -2
  26. package/ui/layouts/index.d.ts +1 -2
  27. package/ui/placeholder/index.d.ts +42 -8
  28. package/ui/styling/converters.d.ts +2 -2
  29. package/ui/styling/style-properties.d.ts +101 -82
  30. package/ui/styling/style-scope.d.ts +48 -79
  31. package/ui/text-base/formatted-string.d.ts +73 -36
  32. package/ui/text-base/span.d.ts +81 -36
  33. package/utils/debug.d.ts +61 -17
  34. package/utils/lazy.d.ts +5 -0
  35. package/utils/macrotask-scheduler.d.ts +5 -1
  36. package/utils/types.d.ts +115 -23
  37. package/xml/index.d.ts +105 -44
  38. package/xml/index.js +124 -89
  39. package/abortcontroller/abortsignal.d.ts +0 -23
  40. package/abortcontroller/abortsignal.js +0 -57
  41. package/abortcontroller/abortsignal.js.map +0 -1
  42. package/abortcontroller/index.d.ts +0 -20
  43. package/abortcontroller/index.js +0 -52
  44. package/abortcontroller/index.js.map +0 -1
  45. package/accessibility/accessibility-common.d.ts +0 -18
  46. package/accessibility/accessibility-common.js +0 -64
  47. package/accessibility/accessibility-common.js.map +0 -1
  48. package/accessibility/accessibility-css-helper.d.ts +0 -1
  49. package/accessibility/accessibility-css-helper.js +0 -101
  50. package/accessibility/accessibility-css-helper.js.map +0 -1
  51. package/accessibility/accessibility-properties.d.ts +0 -24
  52. package/accessibility/accessibility-properties.js +0 -122
  53. package/accessibility/accessibility-properties.js.map +0 -1
  54. package/accessibility/accessibility-service-common.d.ts +0 -8
  55. package/accessibility/accessibility-service-common.js +0 -26
  56. package/accessibility/accessibility-service-common.js.map +0 -1
  57. package/accessibility/accessibility-service.android.d.ts +0 -6
  58. package/accessibility/accessibility-service.android.js +0 -107
  59. package/accessibility/accessibility-service.android.js.map +0 -1
  60. package/accessibility/accessibility-service.ios.d.ts +0 -6
  61. package/accessibility/accessibility-service.ios.js +0 -61
  62. package/accessibility/accessibility-service.ios.js.map +0 -1
  63. package/accessibility/accessibility-types.d.ts +0 -224
  64. package/accessibility/accessibility-types.js +0 -222
  65. package/accessibility/accessibility-types.js.map +0 -1
  66. package/accessibility/font-scale-common.d.ts +0 -7
  67. package/accessibility/font-scale-common.js +0 -14
  68. package/accessibility/font-scale-common.js.map +0 -1
  69. package/accessibility/font-scale.android.d.ts +0 -5
  70. package/accessibility/font-scale.android.js +0 -56
  71. package/accessibility/font-scale.android.js.map +0 -1
  72. package/accessibility/font-scale.ios.d.ts +0 -5
  73. package/accessibility/font-scale.ios.js +0 -89
  74. package/accessibility/font-scale.ios.js.map +0 -1
  75. package/accessibility/index.android.d.ts +0 -10
  76. package/accessibility/index.android.js +0 -418
  77. package/accessibility/index.android.js.map +0 -1
  78. package/accessibility/index.ios.d.ts +0 -9
  79. package/accessibility/index.ios.js +0 -234
  80. package/accessibility/index.ios.js.map +0 -1
  81. package/animation-frame/animation-native.android.d.ts +0 -1
  82. package/animation-frame/animation-native.android.js +0 -4
  83. package/animation-frame/animation-native.android.js.map +0 -1
  84. package/animation-frame/animation-native.ios.d.ts +0 -1
  85. package/animation-frame/animation-native.ios.js +0 -3
  86. package/animation-frame/animation-native.ios.js.map +0 -1
  87. package/animation-frame/index.js +0 -92
  88. package/animation-frame/index.js.map +0 -1
  89. package/application/application-common.d.ts +0 -224
  90. package/application/application-common.js +0 -467
  91. package/application/application-common.js.map +0 -1
  92. package/application/application-interfaces.d.ts +0 -217
  93. package/application/application-interfaces.js +0 -2
  94. package/application/application-interfaces.js.map +0 -1
  95. package/application/application-shims.d.ts +0 -351
  96. package/application/application-shims.js +0 -353
  97. package/application/application-shims.js.map +0 -1
  98. package/application/application.android.d.ts +0 -73
  99. package/application/application.android.js +0 -500
  100. package/application/application.android.js.map +0 -1
  101. package/application/application.ios.d.ts +0 -81
  102. package/application/application.ios.js +0 -455
  103. package/application/application.ios.js.map +0 -1
  104. package/application/index.android.d.ts +0 -2
  105. package/application/index.android.js +0 -3
  106. package/application/index.android.js.map +0 -1
  107. package/application/index.ios.d.ts +0 -2
  108. package/application/index.ios.js +0 -3
  109. package/application/index.ios.js.map +0 -1
  110. package/application-settings/application-settings-common.d.ts +0 -2
  111. package/application-settings/application-settings-common.js +0 -15
  112. package/application-settings/application-settings-common.js.map +0 -1
  113. package/application-settings/index.android.d.ts +0 -13
  114. package/application-settings/index.android.js +0 -175
  115. package/application-settings/index.android.js.map +0 -1
  116. package/application-settings/index.ios.d.ts +0 -13
  117. package/application-settings/index.ios.js +0 -88
  118. package/application-settings/index.ios.js.map +0 -1
  119. package/bundle-entry-points.d.ts +0 -1
  120. package/bundle-entry-points.js +0 -47
  121. package/bundle-entry-points.js.map +0 -1
  122. package/color/color-common.d.ts +0 -137
  123. package/color/color-common.js +0 -520
  124. package/color/color-common.js.map +0 -1
  125. package/color/index.android.d.ts +0 -4
  126. package/color/index.android.js +0 -7
  127. package/color/index.android.js.map +0 -1
  128. package/color/index.ios.d.ts +0 -6
  129. package/color/index.ios.js +0 -19
  130. package/color/index.ios.js.map +0 -1
  131. package/color/known-colors.d.ts +0 -144
  132. package/color/known-colors.js +0 -165
  133. package/color/known-colors.js.map +0 -1
  134. package/config/config.interface.d.ts +0 -235
  135. package/config/config.interface.js +0 -2
  136. package/config/config.interface.js.map +0 -1
  137. package/config/index.d.ts +0 -1
  138. package/config/index.js +0 -2
  139. package/config/index.js.map +0 -1
  140. package/connectivity/index.android.d.ts +0 -11
  141. package/connectivity/index.android.js +0 -156
  142. package/connectivity/index.android.js.map +0 -1
  143. package/connectivity/index.ios.d.ts +0 -11
  144. package/connectivity/index.ios.js +0 -132
  145. package/connectivity/index.ios.js.map +0 -1
  146. package/console/index.d.ts +0 -14
  147. package/console/index.js +0 -33
  148. package/console/index.js.map +0 -1
  149. package/core-types/index.d.ts +0 -335
  150. package/core-types/index.js +0 -287
  151. package/core-types/index.js.map +0 -1
  152. package/css/CSS3Parser.d.ts +0 -184
  153. package/css/CSS3Parser.js +0 -534
  154. package/css/CSS3Parser.js.map +0 -1
  155. package/css/CSSNativeScript.d.ts +0 -14
  156. package/css/CSSNativeScript.js +0 -113
  157. package/css/CSSNativeScript.js.map +0 -1
  158. package/css/css-tree-parser.d.ts +0 -1
  159. package/css/css-tree-parser.js.map +0 -1
  160. package/css/parser.d.ts +0 -70
  161. package/css/parser.js +0 -516
  162. package/css/parser.js.map +0 -1
  163. package/css/system-classes.d.ts +0 -12
  164. package/css/system-classes.js +0 -47
  165. package/css/system-classes.js.map +0 -1
  166. package/css-mediaquery/index.d.ts +0 -27
  167. package/css-mediaquery/index.js +0 -118
  168. package/css-mediaquery/index.js.map +0 -1
  169. package/data/observable/index.d.ts +0 -185
  170. package/data/observable/index.js +0 -411
  171. package/data/observable/index.js.map +0 -1
  172. package/data/observable-array/index.d.ts +0 -215
  173. package/data/observable-array/index.js +0 -325
  174. package/data/observable-array/index.js.map +0 -1
  175. package/data/virtual-array/index.d.ts +0 -72
  176. package/data/virtual-array/index.js +0 -133
  177. package/data/virtual-array/index.js.map +0 -1
  178. package/debugger/InspectorBackendCommands.d.ts +0 -1056
  179. package/debugger/InspectorBackendCommands.js +0 -578
  180. package/debugger/InspectorBackendCommands.js.map +0 -1
  181. package/debugger/devtools-elements-interfaces.d.ts +0 -16
  182. package/debugger/devtools-elements-interfaces.js +0 -2
  183. package/debugger/devtools-elements-interfaces.js.map +0 -1
  184. package/debugger/devtools-elements.common.d.ts +0 -7
  185. package/debugger/devtools-elements.common.js +0 -84
  186. package/debugger/devtools-elements.common.js.map +0 -1
  187. package/debugger/devtools-elements.js +0 -20
  188. package/debugger/devtools-elements.js.map +0 -1
  189. package/debugger/dom-node.js +0 -150
  190. package/debugger/dom-node.js.map +0 -1
  191. package/debugger/index.d.ts +0 -87
  192. package/debugger/index.js +0 -118
  193. package/debugger/index.js.map +0 -1
  194. package/debugger/webinspector-css.d.ts +0 -34
  195. package/debugger/webinspector-css.js +0 -71
  196. package/debugger/webinspector-css.js.map +0 -1
  197. package/debugger/webinspector-dom.d.ts +0 -33
  198. package/debugger/webinspector-dom.js +0 -74
  199. package/debugger/webinspector-dom.js.map +0 -1
  200. package/debugger/webinspector-network.android.d.ts +0 -79
  201. package/debugger/webinspector-network.android.js +0 -207
  202. package/debugger/webinspector-network.android.js.map +0 -1
  203. package/debugger/webinspector-network.ios.d.ts +0 -79
  204. package/debugger/webinspector-network.ios.js +0 -203
  205. package/debugger/webinspector-network.ios.js.map +0 -1
  206. package/file-system/file-system-access.android.d.ts +0 -167
  207. package/file-system/file-system-access.android.js +0 -1295
  208. package/file-system/file-system-access.android.js.map +0 -1
  209. package/file-system/file-system-access.ios.d.ts +0 -85
  210. package/file-system/file-system-access.ios.js +0 -637
  211. package/file-system/file-system-access.ios.js.map +0 -1
  212. package/file-system/index.js +0 -863
  213. package/file-system/index.js.map +0 -1
  214. package/fps-meter/fps-native.android.d.ts +0 -12
  215. package/fps-meter/fps-native.android.js +0 -62
  216. package/fps-meter/fps-native.android.js.map +0 -1
  217. package/fps-meter/fps-native.ios.d.ts +0 -11
  218. package/fps-meter/fps-native.ios.js +0 -56
  219. package/fps-meter/fps-native.ios.js.map +0 -1
  220. package/fps-meter/index.js +0 -77
  221. package/fps-meter/index.js.map +0 -1
  222. package/globals/index.js +0 -321
  223. package/globals/index.js.map +0 -1
  224. package/http/http-request/http-request-common.d.ts +0 -1
  225. package/http/http-request/http-request-common.js +0 -15
  226. package/http/http-request/http-request-common.js.map +0 -1
  227. package/http/http-request/index.android.d.ts +0 -7
  228. package/http/http-request/index.android.js +0 -290
  229. package/http/http-request/index.android.js.map +0 -1
  230. package/http/http-request/index.ios.d.ts +0 -7
  231. package/http/http-request/index.ios.js +0 -236
  232. package/http/http-request/index.ios.js.map +0 -1
  233. package/http/index.js +0 -74
  234. package/http/index.js.map +0 -1
  235. package/image-asset/image-asset-common.d.ts +0 -26
  236. package/image-asset/image-asset-common.js +0 -51
  237. package/image-asset/image-asset-common.js.map +0 -1
  238. package/image-asset/index.android.d.ts +0 -10
  239. package/image-asset/index.android.js +0 -42
  240. package/image-asset/index.android.js.map +0 -1
  241. package/image-asset/index.ios.d.ts +0 -11
  242. package/image-asset/index.ios.js +0 -84
  243. package/image-asset/index.ios.js.map +0 -1
  244. package/image-source/image-source-common.d.ts +0 -4
  245. package/image-source/image-source-common.js +0 -21
  246. package/image-source/image-source-common.js.map +0 -1
  247. package/image-source/index.android.d.ts +0 -57
  248. package/image-source/index.android.js +0 -381
  249. package/image-source/index.android.js.map +0 -1
  250. package/image-source/index.ios.d.ts +0 -56
  251. package/image-source/index.ios.js +0 -449
  252. package/image-source/index.ios.js.map +0 -1
  253. package/index.js +0 -36
  254. package/index.js.map +0 -1
  255. package/inspector_modules.d.ts +0 -1
  256. package/inspector_modules.js +0 -5
  257. package/inspector_modules.js.map +0 -1
  258. package/matrix/index.js +0 -45
  259. package/matrix/index.js.map +0 -1
  260. package/media-query-list/index.d.ts +0 -21
  261. package/media-query-list/index.js +0 -169
  262. package/media-query-list/index.js.map +0 -1
  263. package/module-name-resolver/index.js +0 -79
  264. package/module-name-resolver/index.js.map +0 -1
  265. package/module-name-resolver/non-bundle-workflow-compat.d.ts +0 -6
  266. package/module-name-resolver/non-bundle-workflow-compat.js +0 -119
  267. package/module-name-resolver/non-bundle-workflow-compat.js.map +0 -1
  268. package/module-name-resolver/qualifier-matcher/index.js +0 -141
  269. package/module-name-resolver/qualifier-matcher/index.js.map +0 -1
  270. package/platform/common.d.ts +0 -9
  271. package/platform/common.js +0 -13
  272. package/platform/common.js.map +0 -1
  273. package/platform/device/index.android.d.ts +0 -20
  274. package/platform/device/index.android.js +0 -78
  275. package/platform/device/index.android.js.map +0 -1
  276. package/platform/device/index.ios.d.ts +0 -19
  277. package/platform/device/index.ios.js +0 -69
  278. package/platform/device/index.ios.js.map +0 -1
  279. package/platform/index.js +0 -4
  280. package/platform/index.js.map +0 -1
  281. package/platform/screen/index.android.d.ts +0 -15
  282. package/platform/screen/index.android.js +0 -39
  283. package/platform/screen/index.android.js.map +0 -1
  284. package/platform/screen/index.ios.d.ts +0 -15
  285. package/platform/screen/index.ios.js +0 -35
  286. package/platform/screen/index.ios.js.map +0 -1
  287. package/platforms/android/widgets-release.aar +0 -0
  288. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  289. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  290. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  291. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  292. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/NSCWinterCG +0 -0
  293. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Resources/Info.plist +0 -52
  294. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/Current/NSCWinterCG +0 -0
  295. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  296. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  297. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  298. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  299. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  300. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  301. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  302. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  303. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  304. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +0 -6
  305. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  306. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  307. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +0 -52
  308. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  309. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  310. package/polyfills/formdata.d.ts +0 -6
  311. package/polyfills/formdata.js +0 -16
  312. package/polyfills/formdata.js.map +0 -1
  313. package/profiling/index.js +0 -274
  314. package/profiling/index.js.map +0 -1
  315. package/text/formatted-string.js +0 -2
  316. package/text/formatted-string.js.map +0 -1
  317. package/text/index.android.d.ts +0 -9
  318. package/text/index.android.js +0 -11
  319. package/text/index.android.js.map +0 -1
  320. package/text/index.ios.d.ts +0 -9
  321. package/text/index.ios.js +0 -11
  322. package/text/index.ios.js.map +0 -1
  323. package/text/span.js +0 -2
  324. package/text/span.js.map +0 -1
  325. package/text/text-common.d.ts +0 -12
  326. package/text/text-common.js +0 -111
  327. package/text/text-common.js.map +0 -1
  328. package/timer/index.android.d.ts +0 -4
  329. package/timer/index.android.js +0 -75
  330. package/timer/index.android.js.map +0 -1
  331. package/timer/index.ios.d.ts +0 -4
  332. package/timer/index.ios.js +0 -68
  333. package/timer/index.ios.js.map +0 -1
  334. package/trace/index.js +0 -255
  335. package/trace/index.js.map +0 -1
  336. package/ui/action-bar/action-bar-common.d.ts +0 -81
  337. package/ui/action-bar/action-bar-common.js +0 -369
  338. package/ui/action-bar/action-bar-common.js.map +0 -1
  339. package/ui/action-bar/index.android.d.ts +0 -47
  340. package/ui/action-bar/index.android.js +0 -469
  341. package/ui/action-bar/index.android.js.map +0 -1
  342. package/ui/action-bar/index.ios.d.ts +0 -38
  343. package/ui/action-bar/index.ios.js +0 -481
  344. package/ui/action-bar/index.ios.js.map +0 -1
  345. package/ui/activity-indicator/activity-indicator-common.d.ts +0 -7
  346. package/ui/activity-indicator/activity-indicator-common.js +0 -17
  347. package/ui/activity-indicator/activity-indicator-common.js.map +0 -1
  348. package/ui/activity-indicator/index.android.d.ts +0 -6
  349. package/ui/activity-indicator/index.android.js +0 -56
  350. package/ui/activity-indicator/index.android.js.map +0 -1
  351. package/ui/activity-indicator/index.ios.d.ts +0 -8
  352. package/ui/activity-indicator/index.ios.js +0 -48
  353. package/ui/activity-indicator/index.ios.js.map +0 -1
  354. package/ui/animation/animation-common.d.ts +0 -40
  355. package/ui/animation/animation-common.js +0 -186
  356. package/ui/animation/animation-common.js.map +0 -1
  357. package/ui/animation/animation-interfaces.d.ts +0 -63
  358. package/ui/animation/animation-interfaces.js +0 -2
  359. package/ui/animation/animation-interfaces.js.map +0 -1
  360. package/ui/animation/index.android.d.ts +0 -25
  361. package/ui/animation/index.android.js +0 -509
  362. package/ui/animation/index.android.js.map +0 -1
  363. package/ui/animation/index.ios.d.ts +0 -46
  364. package/ui/animation/index.ios.js +0 -906
  365. package/ui/animation/index.ios.js.map +0 -1
  366. package/ui/animation/keyframe-animation.js +0 -245
  367. package/ui/animation/keyframe-animation.js.map +0 -1
  368. package/ui/builder/binding-builder.js +0 -171
  369. package/ui/builder/binding-builder.js.map +0 -1
  370. package/ui/builder/component-builder/index.d.ts +0 -7
  371. package/ui/builder/component-builder/index.js +0 -221
  372. package/ui/builder/component-builder/index.js.map +0 -1
  373. package/ui/builder/index.js +0 -202
  374. package/ui/builder/index.js.map +0 -1
  375. package/ui/builder/xml2ui.d.ts +0 -134
  376. package/ui/builder/xml2ui.js +0 -393
  377. package/ui/builder/xml2ui.js.map +0 -1
  378. package/ui/button/button-common.d.ts +0 -9
  379. package/ui/button/button-common.js +0 -26
  380. package/ui/button/button-common.js.map +0 -1
  381. package/ui/button/index.android.d.ts +0 -14
  382. package/ui/button/index.android.js +0 -150
  383. package/ui/button/index.android.js.map +0 -1
  384. package/ui/button/index.ios.d.ts +0 -13
  385. package/ui/button/index.ios.js +0 -270
  386. package/ui/button/index.ios.js.map +0 -1
  387. package/ui/content-view/index.js +0 -87
  388. package/ui/content-view/index.js.map +0 -1
  389. package/ui/core/bindable/bindable-expressions.d.ts +0 -7
  390. package/ui/core/bindable/bindable-expressions.js +0 -255
  391. package/ui/core/bindable/bindable-expressions.js.map +0 -1
  392. package/ui/core/bindable/bindable-resources.d.ts +0 -2
  393. package/ui/core/bindable/bindable-resources.js +0 -8
  394. package/ui/core/bindable/bindable-resources.js.map +0 -1
  395. package/ui/core/bindable/index.d.ts +0 -89
  396. package/ui/core/bindable/index.js +0 -556
  397. package/ui/core/bindable/index.js.map +0 -1
  398. package/ui/core/control-state-change/index.android.d.ts +0 -6
  399. package/ui/core/control-state-change/index.android.js +0 -8
  400. package/ui/core/control-state-change/index.android.js.map +0 -1
  401. package/ui/core/control-state-change/index.ios.d.ts +0 -14
  402. package/ui/core/control-state-change/index.ios.js +0 -61
  403. package/ui/core/control-state-change/index.ios.js.map +0 -1
  404. package/ui/core/properties/index.d.ts +0 -178
  405. package/ui/core/properties/index.js +0 -1133
  406. package/ui/core/properties/index.js.map +0 -1
  407. package/ui/core/view/index.android.d.ts +0 -98
  408. package/ui/core/view/index.android.js +0 -1205
  409. package/ui/core/view/index.android.js.map +0 -1
  410. package/ui/core/view/index.ios.d.ts +0 -95
  411. package/ui/core/view/index.ios.js +0 -1015
  412. package/ui/core/view/index.ios.js.map +0 -1
  413. package/ui/core/view/view-common.d.ts +0 -288
  414. package/ui/core/view/view-common.js +0 -1100
  415. package/ui/core/view/view-common.js.map +0 -1
  416. package/ui/core/view/view-helper/index.android.d.ts +0 -9
  417. package/ui/core/view/view-helper/index.android.js +0 -56
  418. package/ui/core/view/view-helper/index.android.js.map +0 -1
  419. package/ui/core/view/view-helper/index.ios.d.ts +0 -67
  420. package/ui/core/view/view-helper/index.ios.js +0 -329
  421. package/ui/core/view/view-helper/index.ios.js.map +0 -1
  422. package/ui/core/view/view-helper/view-helper-common.d.ts +0 -11
  423. package/ui/core/view/view-helper/view-helper-common.js +0 -157
  424. package/ui/core/view/view-helper/view-helper-common.js.map +0 -1
  425. package/ui/core/view-base/index.js +0 -1166
  426. package/ui/core/view-base/index.js.map +0 -1
  427. package/ui/core/weak-event-listener/index.js +0 -123
  428. package/ui/core/weak-event-listener/index.js.map +0 -1
  429. package/ui/date-picker/date-picker-common.d.ts +0 -27
  430. package/ui/date-picker/date-picker-common.js +0 -81
  431. package/ui/date-picker/date-picker-common.js.map +0 -1
  432. package/ui/date-picker/index.android.d.ts +0 -11
  433. package/ui/date-picker/index.android.js +0 -131
  434. package/ui/date-picker/index.android.js.map +0 -1
  435. package/ui/date-picker/index.ios.d.ts +0 -10
  436. package/ui/date-picker/index.ios.js +0 -165
  437. package/ui/date-picker/index.ios.js.map +0 -1
  438. package/ui/dialogs/dialogs-common.d.ts +0 -215
  439. package/ui/dialogs/dialogs-common.js +0 -167
  440. package/ui/dialogs/dialogs-common.js.map +0 -1
  441. package/ui/dialogs/index.android.d.ts +0 -20
  442. package/ui/dialogs/index.android.js +0 -329
  443. package/ui/dialogs/index.android.js.map +0 -1
  444. package/ui/dialogs/index.ios.d.ts +0 -17
  445. package/ui/dialogs/index.ios.js +0 -329
  446. package/ui/dialogs/index.ios.js.map +0 -1
  447. package/ui/editable-text-base/editable-text-base-common.d.ts +0 -39
  448. package/ui/editable-text-base/editable-text-base-common.js +0 -82
  449. package/ui/editable-text-base/editable-text-base-common.js.map +0 -1
  450. package/ui/editable-text-base/index.android.d.ts +0 -26
  451. package/ui/editable-text-base/index.android.js +0 -505
  452. package/ui/editable-text-base/index.android.js.map +0 -1
  453. package/ui/editable-text-base/index.ios.d.ts +0 -10
  454. package/ui/editable-text-base/index.ios.js +0 -261
  455. package/ui/editable-text-base/index.ios.js.map +0 -1
  456. package/ui/embedding/index.android.d.ts +0 -4
  457. package/ui/embedding/index.android.js +0 -14
  458. package/ui/embedding/index.android.js.map +0 -1
  459. package/ui/embedding/index.ios.d.ts +0 -1
  460. package/ui/embedding/index.ios.js +0 -4
  461. package/ui/embedding/index.ios.js.map +0 -1
  462. package/ui/enums/enums.js +0 -6
  463. package/ui/enums/enums.js.map +0 -1
  464. package/ui/enums/index.js +0 -6
  465. package/ui/enums/index.js.map +0 -1
  466. package/ui/frame/activity.android.d.ts +0 -1
  467. package/ui/frame/activity.android.js +0 -110
  468. package/ui/frame/activity.android.js.map +0 -1
  469. package/ui/frame/callbacks/activity-callbacks.d.ts +0 -20
  470. package/ui/frame/callbacks/activity-callbacks.js +0 -301
  471. package/ui/frame/callbacks/activity-callbacks.js.map +0 -1
  472. package/ui/frame/callbacks/fragment-callbacks.d.ts +0 -19
  473. package/ui/frame/callbacks/fragment-callbacks.js +0 -273
  474. package/ui/frame/callbacks/fragment-callbacks.js.map +0 -1
  475. package/ui/frame/fragment.android.d.ts +0 -3
  476. package/ui/frame/fragment.android.js +0 -92
  477. package/ui/frame/fragment.android.js.map +0 -1
  478. package/ui/frame/fragment.ios.d.ts +0 -3
  479. package/ui/frame/fragment.ios.js +0 -4
  480. package/ui/frame/fragment.ios.js.map +0 -1
  481. package/ui/frame/fragment.transitions.android.d.ts +0 -36
  482. package/ui/frame/fragment.transitions.android.js +0 -591
  483. package/ui/frame/fragment.transitions.android.js.map +0 -1
  484. package/ui/frame/fragment.transitions.types.d.ts +0 -6
  485. package/ui/frame/fragment.transitions.types.js +0 -2
  486. package/ui/frame/fragment.transitions.types.js.map +0 -1
  487. package/ui/frame/frame-common.d.ts +0 -97
  488. package/ui/frame/frame-common.js +0 -673
  489. package/ui/frame/frame-common.js.map +0 -1
  490. package/ui/frame/frame-helpers.d.ts +0 -16
  491. package/ui/frame/frame-helpers.js +0 -19
  492. package/ui/frame/frame-helpers.js.map +0 -1
  493. package/ui/frame/frame-interfaces.d.ts +0 -95
  494. package/ui/frame/frame-interfaces.js +0 -7
  495. package/ui/frame/frame-interfaces.js.map +0 -1
  496. package/ui/frame/frame-stack.d.ts +0 -6
  497. package/ui/frame/frame-stack.js +0 -38
  498. package/ui/frame/frame-stack.js.map +0 -1
  499. package/ui/frame/index.android.d.ts +0 -65
  500. package/ui/frame/index.android.js +0 -685
  501. package/ui/frame/index.android.js.map +0 -1
  502. package/ui/frame/index.ios.d.ts +0 -57
  503. package/ui/frame/index.ios.js +0 -648
  504. package/ui/frame/index.ios.js.map +0 -1
  505. package/ui/gestures/gestures-common.d.ts +0 -279
  506. package/ui/gestures/gestures-common.js +0 -199
  507. package/ui/gestures/gestures-common.js.map +0 -1
  508. package/ui/gestures/index.android.d.ts +0 -21
  509. package/ui/gestures/index.android.js +0 -595
  510. package/ui/gestures/index.android.js.map +0 -1
  511. package/ui/gestures/index.ios.d.ts +0 -36
  512. package/ui/gestures/index.ios.js +0 -512
  513. package/ui/gestures/index.ios.js.map +0 -1
  514. package/ui/gestures/touch-manager.d.ts +0 -82
  515. package/ui/gestures/touch-manager.js +0 -269
  516. package/ui/gestures/touch-manager.js.map +0 -1
  517. package/ui/html-view/html-view-common.d.ts +0 -13
  518. package/ui/html-view/html-view-common.js +0 -35
  519. package/ui/html-view/html-view-common.js.map +0 -1
  520. package/ui/html-view/index.android.d.ts +0 -7
  521. package/ui/html-view/index.android.js +0 -86
  522. package/ui/html-view/index.android.js.map +0 -1
  523. package/ui/html-view/index.ios.d.ts +0 -11
  524. package/ui/html-view/index.ios.js +0 -103
  525. package/ui/html-view/index.ios.js.map +0 -1
  526. package/ui/image/image-common.d.ts +0 -43
  527. package/ui/image/image-common.js +0 -191
  528. package/ui/image/image-common.js.map +0 -1
  529. package/ui/image/index.android.d.ts +0 -13
  530. package/ui/image/index.android.js +0 -167
  531. package/ui/image/index.android.js.map +0 -1
  532. package/ui/image/index.ios.d.ts +0 -17
  533. package/ui/image/index.ios.js +0 -186
  534. package/ui/image/index.ios.js.map +0 -1
  535. package/ui/image/symbol-effects-common.d.ts +0 -36
  536. package/ui/image/symbol-effects-common.js +0 -35
  537. package/ui/image/symbol-effects-common.js.map +0 -1
  538. package/ui/image/symbol-effects.android.d.ts +0 -5
  539. package/ui/image/symbol-effects.android.js +0 -8
  540. package/ui/image/symbol-effects.android.js.map +0 -1
  541. package/ui/image/symbol-effects.ios.d.ts +0 -6
  542. package/ui/image/symbol-effects.ios.js +0 -79
  543. package/ui/image/symbol-effects.ios.js.map +0 -1
  544. package/ui/image-cache/image-cache-common.d.ts +0 -40
  545. package/ui/image-cache/image-cache-common.js +0 -176
  546. package/ui/image-cache/image-cache-common.js.map +0 -1
  547. package/ui/image-cache/index.android.d.ts +0 -11
  548. package/ui/image-cache/index.android.js +0 -76
  549. package/ui/image-cache/index.android.js.map +0 -1
  550. package/ui/image-cache/index.ios.d.ts +0 -11
  551. package/ui/image-cache/index.ios.js +0 -84
  552. package/ui/image-cache/index.ios.js.map +0 -1
  553. package/ui/index.d.ts +0 -78
  554. package/ui/index.js +0 -62
  555. package/ui/index.js.map +0 -1
  556. package/ui/label/index.android.d.ts +0 -11
  557. package/ui/label/index.android.js +0 -40
  558. package/ui/label/index.android.js.map +0 -1
  559. package/ui/label/index.ios.d.ts +0 -16
  560. package/ui/label/index.ios.js +0 -220
  561. package/ui/label/index.ios.js.map +0 -1
  562. package/ui/layouts/absolute-layout/absolute-layout-common.d.ts +0 -16
  563. package/ui/layouts/absolute-layout/absolute-layout-common.js +0 -70
  564. package/ui/layouts/absolute-layout/absolute-layout-common.js.map +0 -1
  565. package/ui/layouts/absolute-layout/index.android.d.ts +0 -6
  566. package/ui/layouts/absolute-layout/index.android.js +0 -26
  567. package/ui/layouts/absolute-layout/index.android.js.map +0 -1
  568. package/ui/layouts/absolute-layout/index.ios.d.ts +0 -10
  569. package/ui/layouts/absolute-layout/index.ios.js +0 -48
  570. package/ui/layouts/absolute-layout/index.ios.js.map +0 -1
  571. package/ui/layouts/dock-layout/dock-layout-common.d.ts +0 -14
  572. package/ui/layouts/dock-layout/dock-layout-common.js +0 -51
  573. package/ui/layouts/dock-layout/dock-layout-common.js.map +0 -1
  574. package/ui/layouts/dock-layout/index.android.d.ts +0 -6
  575. package/ui/layouts/dock-layout/index.android.js +0 -38
  576. package/ui/layouts/dock-layout/index.android.js.map +0 -1
  577. package/ui/layouts/dock-layout/index.ios.d.ts +0 -8
  578. package/ui/layouts/dock-layout/index.ios.js +0 -115
  579. package/ui/layouts/dock-layout/index.ios.js.map +0 -1
  580. package/ui/layouts/flexbox-layout/flexbox-layout-common.d.ts +0 -126
  581. package/ui/layouts/flexbox-layout/flexbox-layout-common.js +0 -402
  582. package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +0 -1
  583. package/ui/layouts/flexbox-layout/index.android.d.ts +0 -12
  584. package/ui/layouts/flexbox-layout/index.android.js +0 -133
  585. package/ui/layouts/flexbox-layout/index.android.js.map +0 -1
  586. package/ui/layouts/flexbox-layout/index.ios.d.ts +0 -44
  587. package/ui/layouts/flexbox-layout/index.ios.js +0 -1232
  588. package/ui/layouts/flexbox-layout/index.ios.js.map +0 -1
  589. package/ui/layouts/grid-layout/grid-layout-common.d.ts +0 -72
  590. package/ui/layouts/grid-layout/grid-layout-common.js +0 -323
  591. package/ui/layouts/grid-layout/grid-layout-common.js.map +0 -1
  592. package/ui/layouts/grid-layout/index.android.d.ts +0 -22
  593. package/ui/layouts/grid-layout/index.android.js +0 -117
  594. package/ui/layouts/grid-layout/index.android.js.map +0 -1
  595. package/ui/layouts/grid-layout/index.ios.d.ts +0 -28
  596. package/ui/layouts/grid-layout/index.ios.js +0 -777
  597. package/ui/layouts/grid-layout/index.ios.js.map +0 -1
  598. package/ui/layouts/index.js +0 -9
  599. package/ui/layouts/index.js.map +0 -1
  600. package/ui/layouts/layout-base-common.d.ts +0 -36
  601. package/ui/layouts/layout-base-common.js +0 -146
  602. package/ui/layouts/layout-base-common.js.map +0 -1
  603. package/ui/layouts/layout-base.android.d.ts +0 -4
  604. package/ui/layouts/layout-base.android.js +0 -44
  605. package/ui/layouts/layout-base.android.js.map +0 -1
  606. package/ui/layouts/layout-base.ios.d.ts +0 -10
  607. package/ui/layouts/layout-base.ios.js +0 -34
  608. package/ui/layouts/layout-base.ios.js.map +0 -1
  609. package/ui/layouts/root-layout/index.android.d.ts +0 -16
  610. package/ui/layouts/root-layout/index.android.js +0 -115
  611. package/ui/layouts/root-layout/index.android.js.map +0 -1
  612. package/ui/layouts/root-layout/index.ios.d.ts +0 -16
  613. package/ui/layouts/root-layout/index.ios.js +0 -96
  614. package/ui/layouts/root-layout/index.ios.js.map +0 -1
  615. package/ui/layouts/root-layout/root-layout-common.d.ts +0 -54
  616. package/ui/layouts/root-layout/root-layout-common.js +0 -394
  617. package/ui/layouts/root-layout/root-layout-common.js.map +0 -1
  618. package/ui/layouts/stack-layout/index.android.d.ts +0 -6
  619. package/ui/layouts/stack-layout/index.android.js +0 -11
  620. package/ui/layouts/stack-layout/index.android.js.map +0 -1
  621. package/ui/layouts/stack-layout/index.ios.d.ts +0 -10
  622. package/ui/layouts/stack-layout/index.ios.js +0 -151
  623. package/ui/layouts/stack-layout/index.ios.js.map +0 -1
  624. package/ui/layouts/stack-layout/stack-layout-common.d.ts +0 -8
  625. package/ui/layouts/stack-layout/stack-layout-common.js +0 -19
  626. package/ui/layouts/stack-layout/stack-layout-common.js.map +0 -1
  627. package/ui/layouts/wrap-layout/index.android.d.ts +0 -6
  628. package/ui/layouts/wrap-layout/index.android.js +0 -18
  629. package/ui/layouts/wrap-layout/index.android.js.map +0 -1
  630. package/ui/layouts/wrap-layout/index.ios.d.ts +0 -8
  631. package/ui/layouts/wrap-layout/index.ios.js +0 -170
  632. package/ui/layouts/wrap-layout/index.ios.js.map +0 -1
  633. package/ui/layouts/wrap-layout/wrap-layout-common.d.ts +0 -15
  634. package/ui/layouts/wrap-layout/wrap-layout-common.js +0 -38
  635. package/ui/layouts/wrap-layout/wrap-layout-common.js.map +0 -1
  636. package/ui/list-picker/index.android.d.ts +0 -10
  637. package/ui/list-picker/index.android.js +0 -177
  638. package/ui/list-picker/index.android.js.map +0 -1
  639. package/ui/list-picker/index.ios.d.ts +0 -11
  640. package/ui/list-picker/index.ios.js +0 -99
  641. package/ui/list-picker/index.ios.js.map +0 -1
  642. package/ui/list-picker/list-picker-common.d.ts +0 -22
  643. package/ui/list-picker/list-picker-common.js +0 -77
  644. package/ui/list-picker/list-picker-common.js.map +0 -1
  645. package/ui/list-view/index.android.d.ts +0 -32
  646. package/ui/list-view/index.android.js +0 -359
  647. package/ui/list-view/index.android.js.map +0 -1
  648. package/ui/list-view/index.ios.d.ts +0 -45
  649. package/ui/list-view/index.ios.js +0 -456
  650. package/ui/list-view/index.ios.js.map +0 -1
  651. package/ui/list-view/list-view-common.d.ts +0 -66
  652. package/ui/list-view/list-view-common.js +0 -210
  653. package/ui/list-view/list-view-common.js.map +0 -1
  654. package/ui/page/index.android.d.ts +0 -13
  655. package/ui/page/index.android.js +0 -148
  656. package/ui/page/index.android.js.map +0 -1
  657. package/ui/page/index.ios.d.ts +0 -45
  658. package/ui/page/index.ios.js +0 -600
  659. package/ui/page/index.ios.js.map +0 -1
  660. package/ui/page/page-common.d.ts +0 -77
  661. package/ui/page/page-common.js +0 -186
  662. package/ui/page/page-common.js.map +0 -1
  663. package/ui/placeholder/index.android.d.ts +0 -12
  664. package/ui/placeholder/index.android.js +0 -21
  665. package/ui/placeholder/index.android.js.map +0 -1
  666. package/ui/placeholder/index.js +0 -16
  667. package/ui/placeholder/index.js.map +0 -1
  668. package/ui/placeholder/placeholder-common.d.ts +0 -12
  669. package/ui/placeholder/placeholder-common.js +0 -2
  670. package/ui/placeholder/placeholder-common.js.map +0 -1
  671. package/ui/progress/index.android.d.ts +0 -6
  672. package/ui/progress/index.android.js +0 -65
  673. package/ui/progress/index.android.js.map +0 -1
  674. package/ui/progress/index.ios.d.ts +0 -7
  675. package/ui/progress/index.ios.js +0 -45
  676. package/ui/progress/index.ios.js.map +0 -1
  677. package/ui/progress/progress-common.d.ts +0 -15
  678. package/ui/progress/progress-common.js +0 -34
  679. package/ui/progress/progress-common.js.map +0 -1
  680. package/ui/proxy-view-container/index.d.ts +0 -31
  681. package/ui/proxy-view-container/index.js +0 -244
  682. package/ui/proxy-view-container/index.js.map +0 -1
  683. package/ui/repeater/index.d.ts +0 -65
  684. package/ui/repeater/index.js +0 -219
  685. package/ui/repeater/index.js.map +0 -1
  686. package/ui/scroll-view/index.android.d.ts +0 -22
  687. package/ui/scroll-view/index.android.js +0 -157
  688. package/ui/scroll-view/index.android.js.map +0 -1
  689. package/ui/scroll-view/index.ios.d.ts +0 -23
  690. package/ui/scroll-view/index.ios.js +0 -174
  691. package/ui/scroll-view/index.ios.js.map +0 -1
  692. package/ui/scroll-view/scroll-view-common.d.ts +0 -32
  693. package/ui/scroll-view/scroll-view-common.js +0 -93
  694. package/ui/scroll-view/scroll-view-common.js.map +0 -1
  695. package/ui/search-bar/index.android.d.ts +0 -14
  696. package/ui/search-bar/index.android.js +0 -239
  697. package/ui/search-bar/index.android.js.map +0 -1
  698. package/ui/search-bar/index.ios.d.ts +0 -14
  699. package/ui/search-bar/index.ios.js +0 -195
  700. package/ui/search-bar/index.ios.js.map +0 -1
  701. package/ui/search-bar/search-bar-common.d.ts +0 -17
  702. package/ui/search-bar/search-bar-common.js +0 -37
  703. package/ui/search-bar/search-bar-common.js.map +0 -1
  704. package/ui/segmented-bar/index.android.d.ts +0 -21
  705. package/ui/segmented-bar/index.android.js +0 -283
  706. package/ui/segmented-bar/index.android.js.map +0 -1
  707. package/ui/segmented-bar/index.ios.d.ts +0 -15
  708. package/ui/segmented-bar/index.ios.js +0 -140
  709. package/ui/segmented-bar/index.ios.js.map +0 -1
  710. package/ui/segmented-bar/segmented-bar-common.d.ts +0 -37
  711. package/ui/segmented-bar/segmented-bar-common.js +0 -146
  712. package/ui/segmented-bar/segmented-bar-common.js.map +0 -1
  713. package/ui/slider/index.android.d.ts +0 -18
  714. package/ui/slider/index.android.js +0 -118
  715. package/ui/slider/index.android.js.map +0 -1
  716. package/ui/slider/index.ios.d.ts +0 -19
  717. package/ui/slider/index.ios.js +0 -145
  718. package/ui/slider/index.ios.js.map +0 -1
  719. package/ui/slider/slider-common.d.ts +0 -26
  720. package/ui/slider/slider-common.js +0 -68
  721. package/ui/slider/slider-common.js.map +0 -1
  722. package/ui/styling/background-common.d.ts +0 -78
  723. package/ui/styling/background-common.js +0 -222
  724. package/ui/styling/background-common.js.map +0 -1
  725. package/ui/styling/background.android.d.ts +0 -9
  726. package/ui/styling/background.android.js +0 -135
  727. package/ui/styling/background.android.js.map +0 -1
  728. package/ui/styling/background.ios.d.ts +0 -34
  729. package/ui/styling/background.ios.js +0 -1100
  730. package/ui/styling/background.ios.js.map +0 -1
  731. package/ui/styling/box-shadow.d.ts +0 -9
  732. package/ui/styling/box-shadow.js +0 -3
  733. package/ui/styling/box-shadow.js.map +0 -1
  734. package/ui/styling/converters.js +0 -41
  735. package/ui/styling/converters.js.map +0 -1
  736. package/ui/styling/css-animation-parser.d.ts +0 -14
  737. package/ui/styling/css-animation-parser.js +0 -188
  738. package/ui/styling/css-animation-parser.js.map +0 -1
  739. package/ui/styling/css-selector.d.ts +0 -270
  740. package/ui/styling/css-selector.js +0 -928
  741. package/ui/styling/css-selector.js.map +0 -1
  742. package/ui/styling/css-shadow.d.ts +0 -19
  743. package/ui/styling/css-shadow.js +0 -26
  744. package/ui/styling/css-shadow.js.map +0 -1
  745. package/ui/styling/css-stroke.d.ts +0 -12
  746. package/ui/styling/css-stroke.js +0 -19
  747. package/ui/styling/css-stroke.js.map +0 -1
  748. package/ui/styling/css-utils.d.ts +0 -7
  749. package/ui/styling/css-utils.js +0 -65
  750. package/ui/styling/css-utils.js.map +0 -1
  751. package/ui/styling/font-common.d.ts +0 -63
  752. package/ui/styling/font-common.js +0 -241
  753. package/ui/styling/font-common.js.map +0 -1
  754. package/ui/styling/font-interfaces.d.ts +0 -15
  755. package/ui/styling/font-interfaces.js +0 -2
  756. package/ui/styling/font-interfaces.js.map +0 -1
  757. package/ui/styling/font.android.d.ts +0 -8
  758. package/ui/styling/font.android.js +0 -146
  759. package/ui/styling/font.android.js.map +0 -1
  760. package/ui/styling/font.ios.d.ts +0 -12
  761. package/ui/styling/font.ios.js +0 -143
  762. package/ui/styling/font.ios.js.map +0 -1
  763. package/ui/styling/linear-gradient.d.ts +0 -13
  764. package/ui/styling/linear-gradient.js +0 -48
  765. package/ui/styling/linear-gradient.js.map +0 -1
  766. package/ui/styling/style/index.d.ts +0 -162
  767. package/ui/styling/style/index.js +0 -67
  768. package/ui/styling/style/index.js.map +0 -1
  769. package/ui/styling/style-properties.js +0 -1331
  770. package/ui/styling/style-properties.js.map +0 -1
  771. package/ui/styling/style-scope.js +0 -1017
  772. package/ui/styling/style-scope.js.map +0 -1
  773. package/ui/switch/index.android.d.ts +0 -11
  774. package/ui/switch/index.android.js +0 -111
  775. package/ui/switch/index.android.js.map +0 -1
  776. package/ui/switch/index.ios.d.ts +0 -14
  777. package/ui/switch/index.ios.js +0 -147
  778. package/ui/switch/index.ios.js.map +0 -1
  779. package/ui/switch/switch-common.d.ts +0 -12
  780. package/ui/switch/switch-common.js +0 -38
  781. package/ui/switch/switch-common.js.map +0 -1
  782. package/ui/tab-view/index.android.d.ts +0 -37
  783. package/ui/tab-view/index.android.js +0 -604
  784. package/ui/tab-view/index.android.js.map +0 -1
  785. package/ui/tab-view/index.ios.d.ts +0 -49
  786. package/ui/tab-view/index.ios.js +0 -583
  787. package/ui/tab-view/index.ios.js.map +0 -1
  788. package/ui/tab-view/tab-view-common.d.ts +0 -71
  789. package/ui/tab-view/tab-view-common.js +0 -263
  790. package/ui/tab-view/tab-view-common.js.map +0 -1
  791. package/ui/text-base/formatted-string.js +0 -163
  792. package/ui/text-base/formatted-string.js.map +0 -1
  793. package/ui/text-base/index.android.d.ts +0 -16
  794. package/ui/text-base/index.android.js +0 -500
  795. package/ui/text-base/index.android.js.map +0 -1
  796. package/ui/text-base/index.ios.d.ts +0 -30
  797. package/ui/text-base/index.ios.js +0 -569
  798. package/ui/text-base/index.ios.js.map +0 -1
  799. package/ui/text-base/span.js +0 -113
  800. package/ui/text-base/span.js.map +0 -1
  801. package/ui/text-base/text-base-common.d.ts +0 -98
  802. package/ui/text-base/text-base-common.js +0 -323
  803. package/ui/text-base/text-base-common.js.map +0 -1
  804. package/ui/text-field/index.android.d.ts +0 -7
  805. package/ui/text-field/index.android.js +0 -95
  806. package/ui/text-field/index.android.js.map +0 -1
  807. package/ui/text-field/index.ios.d.ts +0 -25
  808. package/ui/text-field/index.ios.js +0 -277
  809. package/ui/text-field/index.ios.js.map +0 -1
  810. package/ui/text-field/text-field-common.d.ts +0 -11
  811. package/ui/text-field/text-field-common.js +0 -25
  812. package/ui/text-field/text-field-common.js.map +0 -1
  813. package/ui/text-view/index.android.d.ts +0 -6
  814. package/ui/text-view/index.android.js +0 -19
  815. package/ui/text-view/index.android.js.map +0 -1
  816. package/ui/text-view/index.ios.d.ts +0 -24
  817. package/ui/text-view/index.ios.js +0 -366
  818. package/ui/text-view/index.ios.js.map +0 -1
  819. package/ui/text-view/text-view-common.d.ts +0 -6
  820. package/ui/text-view/text-view-common.js +0 -5
  821. package/ui/text-view/text-view-common.js.map +0 -1
  822. package/ui/time-picker/index.android.d.ts +0 -8
  823. package/ui/time-picker/index.android.js +0 -79
  824. package/ui/time-picker/index.android.js.map +0 -1
  825. package/ui/time-picker/index.ios.d.ts +0 -11
  826. package/ui/time-picker/index.ios.js +0 -138
  827. package/ui/time-picker/index.ios.js.map +0 -1
  828. package/ui/time-picker/time-picker-common.d.ts +0 -30
  829. package/ui/time-picker/time-picker-common.js +0 -175
  830. package/ui/time-picker/time-picker-common.js.map +0 -1
  831. package/ui/transition/fade-transition.android.d.ts +0 -4
  832. package/ui/transition/fade-transition.android.js +0 -28
  833. package/ui/transition/fade-transition.android.js.map +0 -1
  834. package/ui/transition/fade-transition.ios.d.ts +0 -17
  835. package/ui/transition/fade-transition.ios.js +0 -65
  836. package/ui/transition/fade-transition.ios.js.map +0 -1
  837. package/ui/transition/flip-transition.android.d.ts +0 -6
  838. package/ui/transition/flip-transition.android.js +0 -90
  839. package/ui/transition/flip-transition.android.js.map +0 -1
  840. package/ui/transition/index.android.d.ts +0 -19
  841. package/ui/transition/index.android.js +0 -37
  842. package/ui/transition/index.android.js.map +0 -1
  843. package/ui/transition/index.ios.d.ts +0 -14
  844. package/ui/transition/index.ios.js +0 -30
  845. package/ui/transition/index.ios.js.map +0 -1
  846. package/ui/transition/modal-transition.android.d.ts +0 -5
  847. package/ui/transition/modal-transition.android.js +0 -7
  848. package/ui/transition/modal-transition.android.js.map +0 -1
  849. package/ui/transition/modal-transition.ios.d.ts +0 -34
  850. package/ui/transition/modal-transition.ios.js +0 -182
  851. package/ui/transition/modal-transition.ios.js.map +0 -1
  852. package/ui/transition/page-transition.android.d.ts +0 -10
  853. package/ui/transition/page-transition.android.js +0 -307
  854. package/ui/transition/page-transition.android.js.map +0 -1
  855. package/ui/transition/page-transition.ios.d.ts +0 -35
  856. package/ui/transition/page-transition.ios.js +0 -199
  857. package/ui/transition/page-transition.ios.js.map +0 -1
  858. package/ui/transition/shared-transition-helper.android.d.ts +0 -9
  859. package/ui/transition/shared-transition-helper.android.js +0 -10
  860. package/ui/transition/shared-transition-helper.android.js.map +0 -1
  861. package/ui/transition/shared-transition-helper.ios.d.ts +0 -14
  862. package/ui/transition/shared-transition-helper.ios.js +0 -539
  863. package/ui/transition/shared-transition-helper.ios.js.map +0 -1
  864. package/ui/transition/shared-transition.d.ts +0 -271
  865. package/ui/transition/shared-transition.js +0 -233
  866. package/ui/transition/shared-transition.js.map +0 -1
  867. package/ui/transition/slide-transition.android.d.ts +0 -7
  868. package/ui/transition/slide-transition.android.js +0 -116
  869. package/ui/transition/slide-transition.android.js.map +0 -1
  870. package/ui/transition/slide-transition.ios.d.ts +0 -19
  871. package/ui/transition/slide-transition.ios.js +0 -95
  872. package/ui/transition/slide-transition.ios.js.map +0 -1
  873. package/ui/utils.android.d.ts +0 -5
  874. package/ui/utils.android.js +0 -16
  875. package/ui/utils.android.js.map +0 -1
  876. package/ui/utils.ios.d.ts +0 -12
  877. package/ui/utils.ios.js +0 -66
  878. package/ui/utils.ios.js.map +0 -1
  879. package/ui/web-view/index.android.d.ts +0 -17
  880. package/ui/web-view/index.android.js +0 -180
  881. package/ui/web-view/index.android.js.map +0 -1
  882. package/ui/web-view/index.ios.d.ts +0 -26
  883. package/ui/web-view/index.ios.js +0 -247
  884. package/ui/web-view/index.ios.js.map +0 -1
  885. package/ui/web-view/web-view-common.d.ts +0 -28
  886. package/ui/web-view/web-view-common.js +0 -75
  887. package/ui/web-view/web-view-common.js.map +0 -1
  888. package/ui/web-view/web-view-interfaces.d.ts +0 -12
  889. package/ui/web-view/web-view-interfaces.js +0 -2
  890. package/ui/web-view/web-view-interfaces.js.map +0 -1
  891. package/utils/android/index.d.ts +0 -21
  892. package/utils/android/index.js +0 -169
  893. package/utils/android/index.js.map +0 -1
  894. package/utils/common.d.ts +0 -65
  895. package/utils/common.js +0 -253
  896. package/utils/common.js.map +0 -1
  897. package/utils/constants.android.d.ts +0 -1
  898. package/utils/constants.android.js +0 -2
  899. package/utils/constants.android.js.map +0 -1
  900. package/utils/constants.ios.d.ts +0 -1
  901. package/utils/constants.ios.js +0 -2
  902. package/utils/constants.ios.js.map +0 -1
  903. package/utils/debug.js +0 -61
  904. package/utils/debug.js.map +0 -1
  905. package/utils/index.android.d.ts +0 -24
  906. package/utils/index.android.js +0 -177
  907. package/utils/index.android.js.map +0 -1
  908. package/utils/index.ios.d.ts +0 -19
  909. package/utils/index.ios.js +0 -75
  910. package/utils/index.ios.js.map +0 -1
  911. package/utils/ios/index.d.ts +0 -39
  912. package/utils/ios/index.js +0 -257
  913. package/utils/ios/index.js.map +0 -1
  914. package/utils/layout-helper/index.android.d.ts +0 -24
  915. package/utils/layout-helper/index.android.js +0 -77
  916. package/utils/layout-helper/index.android.js.map +0 -1
  917. package/utils/layout-helper/index.ios.d.ts +0 -24
  918. package/utils/layout-helper/index.ios.js +0 -64
  919. package/utils/layout-helper/index.ios.js.map +0 -1
  920. package/utils/layout-helper/layout-helper-common.d.ts +0 -14
  921. package/utils/layout-helper/layout-helper-common.js +0 -57
  922. package/utils/layout-helper/layout-helper-common.js.map +0 -1
  923. package/utils/lazy.js +0 -5
  924. package/utils/lazy.js.map +0 -1
  925. package/utils/macrotask-scheduler.js +0 -26
  926. package/utils/macrotask-scheduler.js.map +0 -1
  927. package/utils/mainthread-helper.android.d.ts +0 -3
  928. package/utils/mainthread-helper.android.js +0 -28
  929. package/utils/mainthread-helper.android.js.map +0 -1
  930. package/utils/mainthread-helper.ios.d.ts +0 -3
  931. package/utils/mainthread-helper.ios.js +0 -17
  932. package/utils/mainthread-helper.ios.js.map +0 -1
  933. package/utils/module-merge.d.ts +0 -1
  934. package/utils/module-merge.js +0 -8
  935. package/utils/module-merge.js.map +0 -1
  936. package/utils/native-helper.android.d.ts +0 -10
  937. package/utils/native-helper.android.js +0 -139
  938. package/utils/native-helper.android.js.map +0 -1
  939. package/utils/native-helper.ios.d.ts +0 -10
  940. package/utils/native-helper.ios.js +0 -91
  941. package/utils/native-helper.ios.js.map +0 -1
  942. package/utils/number-utils.d.ts +0 -19
  943. package/utils/number-utils.js +0 -37
  944. package/utils/number-utils.js.map +0 -1
  945. package/utils/platform-check.d.ts +0 -4
  946. package/utils/platform-check.js +0 -21
  947. package/utils/platform-check.js.map +0 -1
  948. package/utils/types.js +0 -104
  949. package/utils/types.js.map +0 -1
  950. package/wgc/atob.d.ts +0 -1
  951. package/wgc/atob.js +0 -9
  952. package/wgc/atob.js.map +0 -1
  953. package/wgc/btoa.d.ts +0 -1
  954. package/wgc/btoa.js +0 -9
  955. package/wgc/btoa.js.map +0 -1
  956. package/wgc/crypto/SubtleCrypto.d.ts +0 -63
  957. package/wgc/crypto/SubtleCrypto.js +0 -551
  958. package/wgc/crypto/SubtleCrypto.js.map +0 -1
  959. package/wgc/crypto/index.d.ts +0 -8
  960. package/wgc/crypto/index.js +0 -31
  961. package/wgc/crypto/index.js.map +0 -1
  962. package/wgc/index.d.ts +0 -2
  963. package/wgc/index.js +0 -3
  964. package/wgc/index.js.map +0 -1
  965. package/xhr/index.d.ts +0 -107
  966. package/xhr/index.js +0 -472
  967. package/xhr/index.js.map +0 -1
  968. package/xml/index.js.map +0 -1
@@ -1,1331 +0,0 @@
1
- // Types
2
- import { unsetValue, CssProperty, CssAnimationProperty, ShorthandProperty, InheritedCssProperty } from '../core/properties';
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, hasDuplicates } from '../../utils';
8
- import { radiansToDegrees } from '../../utils/number-utils';
9
- import { decompose2DTransformMatrix, getTransformMatrix, matrixArrayToCssMatrix, multiplyAffine2d } from '../../matrix';
10
- import { Trace } from '../../trace';
11
- import { CoreTypes } from '../../core-types';
12
- import { parseBackground } from '../../css/parser';
13
- import { LinearGradient } from './linear-gradient';
14
- import { parseCSSShadow } from './css-shadow';
15
- function equalsCommon(a, b) {
16
- if (a == 'auto') {
17
- // tslint:disable-line
18
- return b == 'auto'; // tslint:disable-line
19
- }
20
- if (typeof a === 'number') {
21
- if (b == 'auto') {
22
- // tslint:disable-line
23
- return false;
24
- }
25
- if (typeof b === 'number') {
26
- return a == b; // tslint:disable-line
27
- }
28
- if (!b) {
29
- return false;
30
- }
31
- return b.unit == 'dip' && a == b.value; // tslint:disable-line
32
- }
33
- if (b == 'auto') {
34
- // tslint:disable-line
35
- return false;
36
- }
37
- if (typeof b === 'number') {
38
- return a ? a.unit == 'dip' && a.value == b : false; // tslint:disable-line
39
- }
40
- if (!a || !b) {
41
- return false;
42
- }
43
- return a.value == b.value && a.unit == b.unit; // tslint:disable-line
44
- }
45
- function convertToStringCommon(length) {
46
- if (length == 'auto' || length === null || length === undefined) {
47
- // tslint:disable-line
48
- return 'auto';
49
- }
50
- if (typeof length === 'number') {
51
- return length.toString();
52
- }
53
- let val = length.value;
54
- if (length.unit === '%') {
55
- val *= 100;
56
- }
57
- return val + length.unit;
58
- }
59
- function toDevicePixelsCommon(length, auto = Number.NaN, parentAvailableWidth = Number.NaN) {
60
- if (length === 'auto' || length === null || length === undefined) {
61
- return auto;
62
- }
63
- if (typeof length === 'number') {
64
- return layout.round(layout.toDevicePixels(length));
65
- }
66
- switch (length.unit) {
67
- case 'px':
68
- return layout.round(length.value);
69
- case '%':
70
- return layout.round(parentAvailableWidth * length.value);
71
- case 'dip':
72
- default:
73
- return layout.round(layout.toDevicePixels(length.value));
74
- }
75
- }
76
- export function colorConverter(v) {
77
- if (!v || v instanceof Color) {
78
- return v;
79
- }
80
- return new Color(v);
81
- }
82
- export var PercentLength;
83
- (function (PercentLength) {
84
- function parse(fromValue) {
85
- if (fromValue == 'auto') {
86
- // tslint:disable-line
87
- return 'auto';
88
- }
89
- if (typeof fromValue === 'string') {
90
- let stringValue = fromValue.trim();
91
- if (stringValue.endsWith('%')) {
92
- // Normalize result to values between -1 and 1
93
- const value = parseFloat(stringValue.substring(0, stringValue.length - 1).trim()) / 100;
94
- if (isNaN(value) || !isFinite(value)) {
95
- throw new Error(`Invalid value: ${fromValue}`);
96
- }
97
- return { unit: '%', value };
98
- }
99
- else if (stringValue.endsWith('px')) {
100
- const value = parseFloat(stringValue.slice(-2).trim());
101
- if (isNaN(value) || !isFinite(value)) {
102
- throw new Error(`Invalid value: ${fromValue}`);
103
- }
104
- return { unit: 'px', value };
105
- }
106
- else {
107
- const value = parseFloat(stringValue);
108
- if (isNaN(value) || !isFinite(value)) {
109
- throw new Error(`Invalid value: ${fromValue}`);
110
- }
111
- return value;
112
- }
113
- }
114
- else {
115
- return fromValue;
116
- }
117
- }
118
- PercentLength.parse = parse;
119
- PercentLength.equals = equalsCommon;
120
- PercentLength.toDevicePixels = toDevicePixelsCommon;
121
- PercentLength.convertToString = convertToStringCommon;
122
- })(PercentLength || (PercentLength = {}));
123
- export var Length;
124
- (function (Length) {
125
- function parse(fromValue) {
126
- if (typeof fromValue === 'string') {
127
- if (fromValue === 'auto') {
128
- return 'auto';
129
- }
130
- let stringValue = fromValue.trim();
131
- if (stringValue.endsWith('px')) {
132
- stringValue = stringValue.slice(0, -2).trim();
133
- const value = parseFloat(stringValue);
134
- if (isNaN(value) || !isFinite(value)) {
135
- throw new Error(`Invalid value: ${stringValue}`);
136
- }
137
- return { unit: 'px', value };
138
- }
139
- else {
140
- const value = parseFloat(stringValue);
141
- if (isNaN(value) || !isFinite(value)) {
142
- throw new Error(`Invalid value: ${stringValue}`);
143
- }
144
- return value;
145
- }
146
- }
147
- else {
148
- return fromValue;
149
- }
150
- }
151
- Length.parse = parse;
152
- Length.equals = equalsCommon;
153
- Length.toDevicePixels = toDevicePixelsCommon;
154
- Length.convertToString = convertToStringCommon;
155
- })(Length || (Length = {}));
156
- export const minWidthProperty = new CssProperty({
157
- name: 'minWidth',
158
- cssName: 'min-width',
159
- defaultValue: CoreTypes.zeroLength,
160
- affectsLayout: __IOS__,
161
- equalityComparer: Length.equals,
162
- valueChanged: (target, oldValue, newValue) => {
163
- const view = target.viewRef.get();
164
- if (view) {
165
- view.effectiveMinWidth = Length.toDevicePixels(newValue, 0);
166
- }
167
- else {
168
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
169
- }
170
- },
171
- valueConverter: Length.parse,
172
- });
173
- minWidthProperty.register(Style);
174
- export const minHeightProperty = new CssProperty({
175
- name: 'minHeight',
176
- cssName: 'min-height',
177
- defaultValue: CoreTypes.zeroLength,
178
- affectsLayout: __IOS__,
179
- equalityComparer: Length.equals,
180
- valueChanged: (target, oldValue, newValue) => {
181
- const view = target.viewRef.get();
182
- if (view) {
183
- view.effectiveMinHeight = Length.toDevicePixels(newValue, 0);
184
- }
185
- else {
186
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
187
- }
188
- },
189
- valueConverter: Length.parse,
190
- });
191
- minHeightProperty.register(Style);
192
- export const widthProperty = new CssAnimationProperty({
193
- name: 'width',
194
- cssName: 'width',
195
- defaultValue: 'auto',
196
- affectsLayout: __IOS__,
197
- equalityComparer: Length.equals,
198
- valueConverter: PercentLength.parse,
199
- });
200
- widthProperty.register(Style);
201
- export const heightProperty = new CssAnimationProperty({
202
- name: 'height',
203
- cssName: 'height',
204
- defaultValue: 'auto',
205
- equalityComparer: Length.equals,
206
- affectsLayout: __IOS__,
207
- valueConverter: PercentLength.parse,
208
- });
209
- heightProperty.register(Style);
210
- const marginProperty = new ShorthandProperty({
211
- name: 'margin',
212
- cssName: 'margin',
213
- getter: function () {
214
- if (PercentLength.equals(this.marginTop, this.marginRight) && PercentLength.equals(this.marginTop, this.marginBottom) && PercentLength.equals(this.marginTop, this.marginLeft)) {
215
- return this.marginTop;
216
- }
217
- return `${PercentLength.convertToString(this.marginTop)} ${PercentLength.convertToString(this.marginRight)} ${PercentLength.convertToString(this.marginBottom)} ${PercentLength.convertToString(this.marginLeft)}`;
218
- },
219
- converter: convertToMargins,
220
- });
221
- marginProperty.register(Style);
222
- export const marginLeftProperty = new CssProperty({
223
- name: 'marginLeft',
224
- cssName: 'margin-left',
225
- defaultValue: CoreTypes.zeroLength,
226
- affectsLayout: __IOS__,
227
- equalityComparer: Length.equals,
228
- valueConverter: PercentLength.parse,
229
- });
230
- marginLeftProperty.register(Style);
231
- export const marginRightProperty = new CssProperty({
232
- name: 'marginRight',
233
- cssName: 'margin-right',
234
- defaultValue: CoreTypes.zeroLength,
235
- affectsLayout: __IOS__,
236
- equalityComparer: Length.equals,
237
- valueConverter: PercentLength.parse,
238
- });
239
- marginRightProperty.register(Style);
240
- export const marginTopProperty = new CssProperty({
241
- name: 'marginTop',
242
- cssName: 'margin-top',
243
- defaultValue: CoreTypes.zeroLength,
244
- affectsLayout: __IOS__,
245
- equalityComparer: Length.equals,
246
- valueConverter: PercentLength.parse,
247
- });
248
- marginTopProperty.register(Style);
249
- export const marginBottomProperty = new CssProperty({
250
- name: 'marginBottom',
251
- cssName: 'margin-bottom',
252
- defaultValue: CoreTypes.zeroLength,
253
- affectsLayout: __IOS__,
254
- equalityComparer: Length.equals,
255
- valueConverter: PercentLength.parse,
256
- });
257
- marginBottomProperty.register(Style);
258
- const paddingProperty = new ShorthandProperty({
259
- name: 'padding',
260
- cssName: 'padding',
261
- getter: function () {
262
- if (Length.equals(this.paddingTop, this.paddingRight) && Length.equals(this.paddingTop, this.paddingBottom) && Length.equals(this.paddingTop, this.paddingLeft)) {
263
- return this.paddingTop;
264
- }
265
- return `${Length.convertToString(this.paddingTop)} ${Length.convertToString(this.paddingRight)} ${Length.convertToString(this.paddingBottom)} ${Length.convertToString(this.paddingLeft)}`;
266
- },
267
- converter: convertToPaddings,
268
- });
269
- paddingProperty.register(Style);
270
- export const paddingLeftProperty = new CssProperty({
271
- name: 'paddingLeft',
272
- cssName: 'padding-left',
273
- defaultValue: CoreTypes.zeroLength,
274
- affectsLayout: __IOS__,
275
- equalityComparer: Length.equals,
276
- valueChanged: (target, oldValue, newValue) => {
277
- const view = target.viewRef.get();
278
- if (view) {
279
- view.effectivePaddingLeft = Length.toDevicePixels(newValue, 0);
280
- }
281
- else {
282
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
283
- }
284
- },
285
- valueConverter: Length.parse,
286
- });
287
- paddingLeftProperty.register(Style);
288
- export const paddingRightProperty = new CssProperty({
289
- name: 'paddingRight',
290
- cssName: 'padding-right',
291
- defaultValue: CoreTypes.zeroLength,
292
- affectsLayout: __IOS__,
293
- equalityComparer: Length.equals,
294
- valueChanged: (target, oldValue, newValue) => {
295
- const view = target.viewRef.get();
296
- if (view) {
297
- view.effectivePaddingRight = Length.toDevicePixels(newValue, 0);
298
- }
299
- else {
300
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
301
- }
302
- },
303
- valueConverter: Length.parse,
304
- });
305
- paddingRightProperty.register(Style);
306
- export const paddingTopProperty = new CssProperty({
307
- name: 'paddingTop',
308
- cssName: 'padding-top',
309
- defaultValue: CoreTypes.zeroLength,
310
- affectsLayout: __IOS__,
311
- equalityComparer: Length.equals,
312
- valueChanged: (target, oldValue, newValue) => {
313
- const view = target.viewRef.get();
314
- if (view) {
315
- view.effectivePaddingTop = Length.toDevicePixels(newValue, 0);
316
- }
317
- else {
318
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
319
- }
320
- },
321
- valueConverter: Length.parse,
322
- });
323
- paddingTopProperty.register(Style);
324
- export const paddingBottomProperty = new CssProperty({
325
- name: 'paddingBottom',
326
- cssName: 'padding-bottom',
327
- defaultValue: CoreTypes.zeroLength,
328
- affectsLayout: __IOS__,
329
- equalityComparer: Length.equals,
330
- valueChanged: (target, oldValue, newValue) => {
331
- const view = target.viewRef.get();
332
- if (view) {
333
- view.effectivePaddingBottom = Length.toDevicePixels(newValue, 0);
334
- }
335
- else {
336
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
337
- }
338
- },
339
- valueConverter: Length.parse,
340
- });
341
- paddingBottomProperty.register(Style);
342
- export const horizontalAlignmentProperty = new CssProperty({
343
- name: 'horizontalAlignment',
344
- cssName: 'horizontal-align',
345
- defaultValue: CoreTypes.HorizontalAlignment.stretch,
346
- affectsLayout: __IOS__,
347
- valueConverter: CoreTypes.HorizontalAlignment.parse,
348
- });
349
- horizontalAlignmentProperty.register(Style);
350
- export const verticalAlignmentProperty = new CssProperty({
351
- name: 'verticalAlignment',
352
- cssName: 'vertical-align',
353
- defaultValue: CoreTypes.VerticalAlignment.stretch,
354
- affectsLayout: __IOS__,
355
- valueConverter: CoreTypes.VerticalAlignment.parse,
356
- });
357
- verticalAlignmentProperty.register(Style);
358
- function parseThickness(value) {
359
- if (typeof value === 'string') {
360
- const arr = value.split(' ');
361
- let top;
362
- let right;
363
- let bottom;
364
- let left;
365
- if (arr.length === 1) {
366
- top = arr[0];
367
- right = arr[0];
368
- bottom = arr[0];
369
- left = arr[0];
370
- }
371
- else if (arr.length === 2) {
372
- top = arr[0];
373
- bottom = arr[0];
374
- right = arr[1];
375
- left = arr[1];
376
- }
377
- else if (arr.length === 3) {
378
- top = arr[0];
379
- right = arr[1];
380
- left = arr[1];
381
- bottom = arr[2];
382
- }
383
- else if (arr.length === 4) {
384
- top = arr[0];
385
- right = arr[1];
386
- bottom = arr[2];
387
- left = arr[3];
388
- }
389
- else {
390
- throw new Error('Expected 1, 2, 3 or 4 parameters. Actual: ' + value);
391
- }
392
- return {
393
- top: top,
394
- right: right,
395
- bottom: bottom,
396
- left: left,
397
- };
398
- }
399
- else {
400
- return value;
401
- }
402
- }
403
- function convertToMargins(value) {
404
- if (typeof value === 'string' && value !== 'auto') {
405
- const thickness = parseThickness(value);
406
- return [
407
- [marginTopProperty, PercentLength.parse(thickness.top)],
408
- [marginRightProperty, PercentLength.parse(thickness.right)],
409
- [marginBottomProperty, PercentLength.parse(thickness.bottom)],
410
- [marginLeftProperty, PercentLength.parse(thickness.left)],
411
- ];
412
- }
413
- else {
414
- return [
415
- [marginTopProperty, value],
416
- [marginRightProperty, value],
417
- [marginBottomProperty, value],
418
- [marginLeftProperty, value],
419
- ];
420
- }
421
- }
422
- function convertToPaddings(value) {
423
- if (typeof value === 'string' && value !== 'auto') {
424
- const thickness = parseThickness(value);
425
- return [
426
- [paddingTopProperty, Length.parse(thickness.top)],
427
- [paddingRightProperty, Length.parse(thickness.right)],
428
- [paddingBottomProperty, Length.parse(thickness.bottom)],
429
- [paddingLeftProperty, Length.parse(thickness.left)],
430
- ];
431
- }
432
- else {
433
- return [
434
- [paddingTopProperty, value],
435
- [paddingRightProperty, value],
436
- [paddingBottomProperty, value],
437
- [paddingLeftProperty, value],
438
- ];
439
- }
440
- }
441
- export const rotateProperty = new CssAnimationProperty({
442
- name: 'rotate',
443
- cssName: 'rotate',
444
- defaultValue: 0,
445
- valueConverter: parseFloat,
446
- });
447
- rotateProperty.register(Style);
448
- export const rotateXProperty = new CssAnimationProperty({
449
- name: 'rotateX',
450
- cssName: 'rotatex',
451
- defaultValue: 0,
452
- valueConverter: parseFloat,
453
- });
454
- rotateXProperty.register(Style);
455
- export const rotateYProperty = new CssAnimationProperty({
456
- name: 'rotateY',
457
- cssName: 'rotatey',
458
- defaultValue: 0,
459
- valueConverter: parseFloat,
460
- });
461
- rotateYProperty.register(Style);
462
- export const perspectiveProperty = new CssAnimationProperty({
463
- name: 'perspective',
464
- cssName: 'perspective',
465
- defaultValue: 1000,
466
- valueConverter: parseFloat,
467
- });
468
- perspectiveProperty.register(Style);
469
- export const scaleXProperty = new CssAnimationProperty({
470
- name: 'scaleX',
471
- cssName: 'scaleX',
472
- defaultValue: 1,
473
- valueConverter: parseFloat,
474
- });
475
- scaleXProperty.register(Style);
476
- export const scaleYProperty = new CssAnimationProperty({
477
- name: 'scaleY',
478
- cssName: 'scaleY',
479
- defaultValue: 1,
480
- valueConverter: parseFloat,
481
- });
482
- scaleYProperty.register(Style);
483
- function parseDIPs(value) {
484
- if (value.endsWith('px')) {
485
- return layout.toDeviceIndependentPixels(parseFloat(value.trim().slice(-2).trim()));
486
- }
487
- else {
488
- return parseFloat(value.slice(-3).trim());
489
- }
490
- }
491
- export const translateXProperty = new CssAnimationProperty({
492
- name: 'translateX',
493
- cssName: 'translateX',
494
- defaultValue: 0,
495
- valueConverter: parseDIPs,
496
- });
497
- translateXProperty.register(Style);
498
- export const translateYProperty = new CssAnimationProperty({
499
- name: 'translateY',
500
- cssName: 'translateY',
501
- defaultValue: 0,
502
- valueConverter: parseDIPs,
503
- });
504
- translateYProperty.register(Style);
505
- const transformProperty = new ShorthandProperty({
506
- name: 'transform',
507
- cssName: 'transform',
508
- getter: function () {
509
- const scaleX = this.scaleX;
510
- const scaleY = this.scaleY;
511
- const translateX = this.translateX;
512
- const translateY = this.translateY;
513
- const rotate = this.rotate;
514
- const rotateX = this.rotateX;
515
- const rotateY = this.rotateY;
516
- let result = '';
517
- if (translateX !== 0 || translateY !== 0) {
518
- result += `translate(${translateX}, ${translateY}) `;
519
- }
520
- if (scaleX !== 1 || scaleY !== 1) {
521
- result += `scale(${scaleX}, ${scaleY}) `;
522
- }
523
- if (rotateX !== 0 || rotateY !== 0 || rotate !== 0) {
524
- result += `rotate(${rotateX}, ${rotateY}, ${rotate}) `;
525
- result += `rotate (${rotate})`;
526
- }
527
- return result.trim();
528
- },
529
- converter: convertToTransform,
530
- });
531
- transformProperty.register(Style);
532
- const IDENTITY_TRANSFORMATION = {
533
- translate: { x: 0, y: 0 },
534
- rotate: { x: 0, y: 0, z: 0 },
535
- scale: { x: 1, y: 1 },
536
- };
537
- const TRANSFORM_SPLITTER = new RegExp(/\s*(.+?)\((.*?)\)/g);
538
- const TRANSFORMATIONS = Object.freeze(['rotate', 'rotateX', 'rotateY', 'rotate3d', 'translate', 'translate3d', 'translateX', 'translateY', 'scale', 'scale3d', 'scaleX', 'scaleY']);
539
- const STYLE_TRANSFORMATION_MAP = Object.freeze({
540
- scale: (value) => ({ property: 'scale', value }),
541
- scale3d: (value) => ({ property: 'scale', value }),
542
- scaleX: ({ x }) => ({
543
- property: 'scale',
544
- value: { x, y: IDENTITY_TRANSFORMATION.scale.y },
545
- }),
546
- scaleY: ({ y }) => ({
547
- property: 'scale',
548
- value: { y, x: IDENTITY_TRANSFORMATION.scale.x },
549
- }),
550
- translate: (value) => ({ property: 'translate', value }),
551
- translate3d: (value) => ({ property: 'translate', value }),
552
- translateX: ({ x }) => ({
553
- property: 'translate',
554
- value: { x, y: IDENTITY_TRANSFORMATION.translate.y },
555
- }),
556
- translateY: ({ y }) => ({
557
- property: 'translate',
558
- value: { y, x: IDENTITY_TRANSFORMATION.translate.x },
559
- }),
560
- rotate3d: (value) => ({ property: 'rotate', value }),
561
- rotateX: (x) => ({
562
- property: 'rotate',
563
- value: {
564
- x,
565
- y: IDENTITY_TRANSFORMATION.rotate.y,
566
- z: IDENTITY_TRANSFORMATION.rotate.z,
567
- },
568
- }),
569
- rotateY: (y) => ({
570
- property: 'rotate',
571
- value: {
572
- x: IDENTITY_TRANSFORMATION.rotate.x,
573
- y,
574
- z: IDENTITY_TRANSFORMATION.rotate.z,
575
- },
576
- }),
577
- rotate: (z) => ({
578
- property: 'rotate',
579
- value: {
580
- x: IDENTITY_TRANSFORMATION.rotate.x,
581
- y: IDENTITY_TRANSFORMATION.rotate.y,
582
- z,
583
- },
584
- }),
585
- });
586
- function convertToTransform(value) {
587
- if (value === unsetValue) {
588
- value = 'none';
589
- }
590
- const { translate, rotate, scale } = transformConverter(value);
591
- return [
592
- [translateXProperty, translate.x],
593
- [translateYProperty, translate.y],
594
- [scaleXProperty, scale.x],
595
- [scaleYProperty, scale.y],
596
- [rotateProperty, rotate.z],
597
- [rotateXProperty, rotate.x],
598
- [rotateYProperty, rotate.y],
599
- ];
600
- }
601
- export function transformConverter(text) {
602
- const transformations = parseTransformString(text);
603
- if (text === 'none' || text === '' || !transformations.length) {
604
- return IDENTITY_TRANSFORMATION;
605
- }
606
- const usedTransforms = transformations.map((t) => t.property);
607
- if (!hasDuplicates(usedTransforms)) {
608
- const fullTransformations = { ...IDENTITY_TRANSFORMATION };
609
- transformations.forEach((transform) => {
610
- fullTransformations[transform.property] = transform.value;
611
- });
612
- return fullTransformations;
613
- }
614
- const affineMatrix = transformations.map(getTransformMatrix).reduce(multiplyAffine2d);
615
- const cssMatrix = matrixArrayToCssMatrix(affineMatrix);
616
- return decompose2DTransformMatrix(cssMatrix);
617
- }
618
- // using general regex and manually checking the matched
619
- // properties is faster than using more specific regex
620
- // https://jsperf.com/cssparse
621
- function parseTransformString(text) {
622
- const matches = [];
623
- let match;
624
- while ((match = TRANSFORM_SPLITTER.exec(text)) !== null) {
625
- const property = match[1];
626
- const value = convertTransformValue(property, match[2]);
627
- if (TRANSFORMATIONS.indexOf(property) !== -1) {
628
- matches.push(normalizeTransformation({ property, value }));
629
- }
630
- }
631
- return matches;
632
- }
633
- function normalizeTransformation({ property, value }) {
634
- return STYLE_TRANSFORMATION_MAP[property](value);
635
- }
636
- function convertTransformValue(property, stringValue) {
637
- // eslint-disable-next-line prefer-const
638
- let [x, y, z] = stringValue.split(',').map(parseFloat);
639
- if (property === 'translate') {
640
- y ?? (y = IDENTITY_TRANSFORMATION.translate.y);
641
- }
642
- else {
643
- y ?? (y = x);
644
- z ?? (z = y);
645
- }
646
- if (property === 'rotate' || property === 'rotateX' || property === 'rotateY') {
647
- return stringValue.slice(-3) === 'rad' ? radiansToDegrees(x) : x;
648
- }
649
- return { x, y, z };
650
- }
651
- // Background properties.
652
- const backgroundProperty = new ShorthandProperty({
653
- name: 'background',
654
- cssName: 'background',
655
- getter: function () {
656
- return `${this.backgroundColor} ${this.backgroundImage} ${this.backgroundRepeat} ${this.backgroundPosition}`;
657
- },
658
- converter: convertToBackgrounds,
659
- });
660
- backgroundProperty.register(Style);
661
- export const backgroundInternalProperty = new CssProperty({
662
- name: 'backgroundInternal',
663
- cssName: '_backgroundInternal',
664
- defaultValue: Background.default,
665
- equalityComparer: (value1, value2, target) => {
666
- if (value1 === value2) {
667
- const view = target.viewRef.get();
668
- // if view layout or updates are suspended we will check the backgroundInternal at the end
669
- if (value1.isDirty && !view._suspendNativeUpdatesCount) {
670
- value1.isDirty = false;
671
- return false;
672
- }
673
- return true;
674
- }
675
- return Background.equals(value1, value2);
676
- },
677
- });
678
- backgroundInternalProperty.register(Style);
679
- function backgroundInternalSubPropertyValueChanged(block) {
680
- return function (target, oldValue, newValue) {
681
- const newBackgroundInternal = block(target, oldValue, newValue);
682
- const view = target.viewRef.get();
683
- if (target.backgroundInternal !== newBackgroundInternal || !view._suspendNativeUpdatesCount) {
684
- target.backgroundInternal = newBackgroundInternal;
685
- }
686
- else {
687
- // let s not go through another property set which takes time during batch updates
688
- // we will check and update backgroundInternal once the update is done
689
- }
690
- };
691
- }
692
- // const pattern: RegExp = /url\(('|")(.*?)\1\)/;
693
- export const backgroundImageProperty = new CssProperty({
694
- name: 'backgroundImage',
695
- cssName: 'background-image',
696
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withImage(newValue)),
697
- equalityComparer: (value1, value2) => {
698
- if (value1 instanceof LinearGradient && value2 instanceof LinearGradient) {
699
- return LinearGradient.equals(value1, value2);
700
- }
701
- else {
702
- return value1 === value2;
703
- }
704
- },
705
- valueConverter: (value) => {
706
- if (typeof value === 'string') {
707
- const parsed = parseBackground(value);
708
- if (parsed) {
709
- value = typeof parsed.value.image === 'object' ? LinearGradient.parse(parsed.value.image) : value;
710
- }
711
- }
712
- return value;
713
- },
714
- });
715
- backgroundImageProperty.register(Style);
716
- export const backgroundColorProperty = new CssAnimationProperty({
717
- name: 'backgroundColor',
718
- cssName: 'background-color',
719
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withColor(newValue)),
720
- equalityComparer: Color.equals,
721
- valueConverter: colorConverter,
722
- });
723
- backgroundColorProperty.register(Style);
724
- export const backgroundRepeatProperty = new CssProperty({
725
- name: 'backgroundRepeat',
726
- cssName: 'background-repeat',
727
- valueConverter: CoreTypes.BackgroundRepeat.parse,
728
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withRepeat(newValue)),
729
- });
730
- backgroundRepeatProperty.register(Style);
731
- export const backgroundSizeProperty = new CssProperty({
732
- name: 'backgroundSize',
733
- cssName: 'background-size',
734
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withSize(newValue)),
735
- });
736
- backgroundSizeProperty.register(Style);
737
- export const backgroundPositionProperty = new CssProperty({
738
- name: 'backgroundPosition',
739
- cssName: 'background-position',
740
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withPosition(newValue)),
741
- });
742
- backgroundPositionProperty.register(Style);
743
- function convertToBackgrounds(value) {
744
- if (typeof value === 'string') {
745
- const backgrounds = parseBackground(value).value;
746
- let backgroundColor = unsetValue;
747
- if (backgrounds.color) {
748
- backgroundColor = backgrounds.color instanceof Color ? backgrounds.color : new Color(backgrounds.color);
749
- }
750
- let backgroundImage;
751
- if (typeof backgrounds.image === 'object' && backgrounds.image) {
752
- backgroundImage = LinearGradient.parse(backgrounds.image);
753
- }
754
- else {
755
- backgroundImage = backgrounds.image || unsetValue;
756
- }
757
- const backgroundRepeat = backgrounds.repeat || unsetValue;
758
- const backgroundPosition = backgrounds.position ? backgrounds.position.text : unsetValue;
759
- return [
760
- [backgroundColorProperty, backgroundColor],
761
- [backgroundImageProperty, backgroundImage],
762
- [backgroundRepeatProperty, backgroundRepeat],
763
- [backgroundPositionProperty, backgroundPosition],
764
- ];
765
- }
766
- else {
767
- return [
768
- [backgroundColorProperty, unsetValue],
769
- [backgroundImageProperty, unsetValue],
770
- [backgroundRepeatProperty, unsetValue],
771
- [backgroundPositionProperty, unsetValue],
772
- ];
773
- }
774
- }
775
- function parseBorderColor(value) {
776
- const result = {
777
- top: undefined,
778
- right: undefined,
779
- bottom: undefined,
780
- left: undefined,
781
- };
782
- if (value.indexOf('rgb') === 0 || value.indexOf('hsl') === 0) {
783
- result.top = result.right = result.bottom = result.left = new Color(value);
784
- return result;
785
- }
786
- const arr = value.split(/[ ,]+/);
787
- if (arr.length === 1) {
788
- const arr0 = new Color(arr[0]);
789
- result.top = arr0;
790
- result.right = arr0;
791
- result.bottom = arr0;
792
- result.left = arr0;
793
- }
794
- else if (arr.length === 2) {
795
- const arr0 = new Color(arr[0]);
796
- const arr1 = new Color(arr[1]);
797
- result.top = arr0;
798
- result.right = arr1;
799
- result.bottom = arr0;
800
- result.left = arr1;
801
- }
802
- else if (arr.length === 3) {
803
- const arr0 = new Color(arr[0]);
804
- const arr1 = new Color(arr[1]);
805
- const arr2 = new Color(arr[2]);
806
- result.top = arr0;
807
- result.right = arr1;
808
- result.bottom = arr2;
809
- result.left = arr1;
810
- }
811
- else if (arr.length === 4) {
812
- const arr0 = new Color(arr[0]);
813
- const arr1 = new Color(arr[1]);
814
- const arr2 = new Color(arr[2]);
815
- const arr3 = new Color(arr[3]);
816
- result.top = arr0;
817
- result.right = arr1;
818
- result.bottom = arr2;
819
- result.left = arr3;
820
- }
821
- else {
822
- throw new Error(`Expected 1, 2, 3 or 4 parameters. Actual: ${value}`);
823
- }
824
- return result;
825
- }
826
- // Border Color properties.
827
- const borderColorProperty = new ShorthandProperty({
828
- name: 'borderColor',
829
- cssName: 'border-color',
830
- getter: function () {
831
- if (Color.equals(this.borderTopColor, this.borderRightColor) && Color.equals(this.borderTopColor, this.borderBottomColor) && Color.equals(this.borderTopColor, this.borderLeftColor)) {
832
- return this.borderTopColor;
833
- }
834
- else {
835
- return `${this.borderTopColor} ${this.borderRightColor} ${this.borderBottomColor} ${this.borderLeftColor}`;
836
- }
837
- },
838
- converter: function (value) {
839
- if (typeof value === 'string') {
840
- const fourColors = parseBorderColor(value);
841
- return [
842
- [borderTopColorProperty, fourColors.top],
843
- [borderRightColorProperty, fourColors.right],
844
- [borderBottomColorProperty, fourColors.bottom],
845
- [borderLeftColorProperty, fourColors.left],
846
- ];
847
- }
848
- else {
849
- return [
850
- [borderTopColorProperty, value],
851
- [borderRightColorProperty, value],
852
- [borderBottomColorProperty, value],
853
- [borderLeftColorProperty, value],
854
- ];
855
- }
856
- },
857
- });
858
- borderColorProperty.register(Style);
859
- export const borderTopColorProperty = new CssProperty({
860
- name: 'borderTopColor',
861
- cssName: 'border-top-color',
862
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withBorderTopColor(newValue)),
863
- equalityComparer: Color.equals,
864
- valueConverter: colorConverter,
865
- });
866
- borderTopColorProperty.register(Style);
867
- export const borderRightColorProperty = new CssProperty({
868
- name: 'borderRightColor',
869
- cssName: 'border-right-color',
870
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withBorderRightColor(newValue)),
871
- equalityComparer: Color.equals,
872
- valueConverter: colorConverter,
873
- });
874
- borderRightColorProperty.register(Style);
875
- export const borderBottomColorProperty = new CssProperty({
876
- name: 'borderBottomColor',
877
- cssName: 'border-bottom-color',
878
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withBorderBottomColor(newValue)),
879
- equalityComparer: Color.equals,
880
- valueConverter: colorConverter,
881
- });
882
- borderBottomColorProperty.register(Style);
883
- export const borderLeftColorProperty = new CssProperty({
884
- name: 'borderLeftColor',
885
- cssName: 'border-left-color',
886
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => target.backgroundInternal.withBorderLeftColor(newValue)),
887
- equalityComparer: Color.equals,
888
- valueConverter: colorConverter,
889
- });
890
- borderLeftColorProperty.register(Style);
891
- // Border Width properties.
892
- const borderWidthProperty = new ShorthandProperty({
893
- name: 'borderWidth',
894
- cssName: 'border-width',
895
- getter: function () {
896
- if (Length.equals(this.borderTopWidth, this.borderRightWidth) && Length.equals(this.borderTopWidth, this.borderBottomWidth) && Length.equals(this.borderTopWidth, this.borderLeftWidth)) {
897
- return this.borderTopWidth;
898
- }
899
- else {
900
- return `${Length.convertToString(this.borderTopWidth)} ${Length.convertToString(this.borderRightWidth)} ${Length.convertToString(this.borderBottomWidth)} ${Length.convertToString(this.borderLeftWidth)}`;
901
- }
902
- },
903
- converter: function (value) {
904
- if (typeof value === 'string' && value !== 'auto') {
905
- const borderWidths = parseThickness(value);
906
- return [
907
- [borderTopWidthProperty, borderWidths.top],
908
- [borderRightWidthProperty, borderWidths.right],
909
- [borderBottomWidthProperty, borderWidths.bottom],
910
- [borderLeftWidthProperty, borderWidths.left],
911
- ];
912
- }
913
- else {
914
- return [
915
- [borderTopWidthProperty, value],
916
- [borderRightWidthProperty, value],
917
- [borderBottomWidthProperty, value],
918
- [borderLeftWidthProperty, value],
919
- ];
920
- }
921
- },
922
- });
923
- borderWidthProperty.register(Style);
924
- export const borderTopWidthProperty = new CssProperty({
925
- name: 'borderTopWidth',
926
- cssName: 'border-top-width',
927
- defaultValue: CoreTypes.zeroLength,
928
- affectsLayout: __IOS__,
929
- equalityComparer: Length.equals,
930
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => {
931
- let value = Length.toDevicePixels(newValue, 0);
932
- if (!isNonNegativeFiniteNumber(value)) {
933
- value = 0;
934
- }
935
- const view = target.viewRef.get();
936
- if (view) {
937
- view.effectiveBorderTopWidth = value;
938
- }
939
- else {
940
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
941
- }
942
- return target.backgroundInternal.withBorderTopWidth(value);
943
- }),
944
- valueConverter: Length.parse,
945
- });
946
- borderTopWidthProperty.register(Style);
947
- export const borderRightWidthProperty = new CssProperty({
948
- name: 'borderRightWidth',
949
- cssName: 'border-right-width',
950
- defaultValue: CoreTypes.zeroLength,
951
- affectsLayout: __IOS__,
952
- equalityComparer: Length.equals,
953
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => {
954
- let value = Length.toDevicePixels(newValue, 0);
955
- if (!isNonNegativeFiniteNumber(value)) {
956
- value = 0;
957
- }
958
- const view = target.viewRef.get();
959
- if (view) {
960
- view.effectiveBorderRightWidth = value;
961
- }
962
- else {
963
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
964
- }
965
- return target.backgroundInternal.withBorderRightWidth(value);
966
- }),
967
- valueConverter: Length.parse,
968
- });
969
- borderRightWidthProperty.register(Style);
970
- export const borderBottomWidthProperty = new CssProperty({
971
- name: 'borderBottomWidth',
972
- cssName: 'border-bottom-width',
973
- defaultValue: CoreTypes.zeroLength,
974
- affectsLayout: __IOS__,
975
- equalityComparer: Length.equals,
976
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => {
977
- let value = Length.toDevicePixels(newValue, 0);
978
- if (!isNonNegativeFiniteNumber(value)) {
979
- value = 0;
980
- }
981
- const view = target.viewRef.get();
982
- if (view) {
983
- view.effectiveBorderBottomWidth = value;
984
- }
985
- else {
986
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
987
- }
988
- return target.backgroundInternal.withBorderBottomWidth(value);
989
- }),
990
- valueConverter: Length.parse,
991
- });
992
- borderBottomWidthProperty.register(Style);
993
- export const borderLeftWidthProperty = new CssProperty({
994
- name: 'borderLeftWidth',
995
- cssName: 'border-left-width',
996
- defaultValue: CoreTypes.zeroLength,
997
- affectsLayout: __IOS__,
998
- equalityComparer: Length.equals,
999
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => {
1000
- let value = Length.toDevicePixels(newValue, 0);
1001
- if (!isNonNegativeFiniteNumber(value)) {
1002
- value = 0;
1003
- }
1004
- const view = target.viewRef.get();
1005
- if (view) {
1006
- view.effectiveBorderLeftWidth = value;
1007
- }
1008
- else {
1009
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
1010
- }
1011
- return target.backgroundInternal.withBorderLeftWidth(value);
1012
- }),
1013
- valueConverter: Length.parse,
1014
- });
1015
- borderLeftWidthProperty.register(Style);
1016
- // Border Radius properties.
1017
- const borderRadiusProperty = new ShorthandProperty({
1018
- name: 'borderRadius',
1019
- cssName: 'border-radius',
1020
- getter: function () {
1021
- if (Length.equals(this.borderTopLeftRadius, this.borderTopRightRadius) && Length.equals(this.borderTopLeftRadius, this.borderBottomRightRadius) && Length.equals(this.borderTopLeftRadius, this.borderBottomLeftRadius)) {
1022
- return this.borderTopLeftRadius;
1023
- }
1024
- return `${Length.convertToString(this.borderTopLeftRadius)} ${Length.convertToString(this.borderTopRightRadius)} ${Length.convertToString(this.borderBottomRightRadius)} ${Length.convertToString(this.borderBottomLeftRadius)}`;
1025
- },
1026
- converter: function (value) {
1027
- if (typeof value === 'string') {
1028
- const borderRadius = parseThickness(value);
1029
- return [
1030
- [borderTopLeftRadiusProperty, borderRadius.top],
1031
- [borderTopRightRadiusProperty, borderRadius.right],
1032
- [borderBottomRightRadiusProperty, borderRadius.bottom],
1033
- [borderBottomLeftRadiusProperty, borderRadius.left],
1034
- ];
1035
- }
1036
- else {
1037
- return [
1038
- [borderTopLeftRadiusProperty, value],
1039
- [borderTopRightRadiusProperty, value],
1040
- [borderBottomRightRadiusProperty, value],
1041
- [borderBottomLeftRadiusProperty, value],
1042
- ];
1043
- }
1044
- },
1045
- });
1046
- borderRadiusProperty.register(Style);
1047
- export const borderTopLeftRadiusProperty = new CssProperty({
1048
- name: 'borderTopLeftRadius',
1049
- cssName: 'border-top-left-radius',
1050
- defaultValue: 0,
1051
- affectsLayout: __IOS__,
1052
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => {
1053
- let value = Length.toDevicePixels(newValue, 0);
1054
- if (!isNonNegativeFiniteNumber(value)) {
1055
- value = 0;
1056
- }
1057
- return target.backgroundInternal.withBorderTopLeftRadius(value);
1058
- }),
1059
- valueConverter: Length.parse,
1060
- equalityComparer: Length.equals,
1061
- });
1062
- borderTopLeftRadiusProperty.register(Style);
1063
- export const borderTopRightRadiusProperty = new CssProperty({
1064
- name: 'borderTopRightRadius',
1065
- cssName: 'border-top-right-radius',
1066
- defaultValue: 0,
1067
- affectsLayout: __IOS__,
1068
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => {
1069
- let value = Length.toDevicePixels(newValue, 0);
1070
- if (!isNonNegativeFiniteNumber(value)) {
1071
- value = 0;
1072
- }
1073
- return target.backgroundInternal.withBorderTopRightRadius(value);
1074
- }),
1075
- valueConverter: Length.parse,
1076
- equalityComparer: Length.equals,
1077
- });
1078
- borderTopRightRadiusProperty.register(Style);
1079
- export const borderBottomRightRadiusProperty = new CssProperty({
1080
- name: 'borderBottomRightRadius',
1081
- cssName: 'border-bottom-right-radius',
1082
- defaultValue: 0,
1083
- affectsLayout: __IOS__,
1084
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => {
1085
- let value = Length.toDevicePixels(newValue, 0);
1086
- if (!isNonNegativeFiniteNumber(value)) {
1087
- value = 0;
1088
- }
1089
- return target.backgroundInternal.withBorderBottomRightRadius(value);
1090
- }),
1091
- valueConverter: Length.parse,
1092
- equalityComparer: Length.equals,
1093
- });
1094
- borderBottomRightRadiusProperty.register(Style);
1095
- export const borderBottomLeftRadiusProperty = new CssProperty({
1096
- name: 'borderBottomLeftRadius',
1097
- cssName: 'border-bottom-left-radius',
1098
- defaultValue: 0,
1099
- affectsLayout: __IOS__,
1100
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => {
1101
- let value = Length.toDevicePixels(newValue, 0);
1102
- if (!isNonNegativeFiniteNumber(value)) {
1103
- value = 0;
1104
- }
1105
- return target.backgroundInternal.withBorderBottomLeftRadius(value);
1106
- }),
1107
- valueConverter: Length.parse,
1108
- equalityComparer: Length.equals,
1109
- });
1110
- borderBottomLeftRadiusProperty.register(Style);
1111
- const boxShadowProperty = new CssProperty({
1112
- name: 'boxShadow',
1113
- cssName: 'box-shadow',
1114
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => {
1115
- return target.backgroundInternal.withBoxShadow(newValue
1116
- ? {
1117
- inset: newValue.inset,
1118
- offsetX: Length.toDevicePixels(newValue.offsetX, 0),
1119
- offsetY: Length.toDevicePixels(newValue.offsetY, 0),
1120
- blurRadius: Length.toDevicePixels(newValue.blurRadius, 0),
1121
- spreadRadius: Length.toDevicePixels(newValue.spreadRadius, 0),
1122
- color: newValue.color,
1123
- }
1124
- : null);
1125
- }),
1126
- valueConverter: (value) => {
1127
- return parseCSSShadow(value);
1128
- },
1129
- });
1130
- boxShadowProperty.register(Style);
1131
- function isNonNegativeFiniteNumber(value) {
1132
- return isFinite(value) && value >= 0;
1133
- }
1134
- const supportedPaths = ['rect', 'circle', 'ellipse', 'polygon', 'inset'];
1135
- function isClipPathValid(value) {
1136
- if (!value) {
1137
- return true;
1138
- }
1139
- const functionName = value.substring(0, value.indexOf('(')).trim();
1140
- return supportedPaths.indexOf(functionName) !== -1;
1141
- }
1142
- export const clipPathProperty = new CssProperty({
1143
- name: 'clipPath',
1144
- cssName: 'clip-path',
1145
- valueChanged: backgroundInternalSubPropertyValueChanged((target, oldValue, newValue) => {
1146
- if (!isClipPathValid(newValue)) {
1147
- throw new Error('clip-path is not valid.');
1148
- }
1149
- return target.backgroundInternal.withClipPath(newValue);
1150
- }),
1151
- });
1152
- clipPathProperty.register(Style);
1153
- function isFloatValueConverter(value) {
1154
- const newValue = parseFloat(value);
1155
- if (isNaN(newValue)) {
1156
- throw new Error(`Invalid value: ${newValue}`);
1157
- }
1158
- return newValue;
1159
- }
1160
- export const zIndexProperty = new CssProperty({
1161
- name: 'zIndex',
1162
- cssName: 'z-index',
1163
- valueConverter: isFloatValueConverter,
1164
- });
1165
- zIndexProperty.register(Style);
1166
- function opacityConverter(value) {
1167
- const newValue = parseFloat(value);
1168
- if (!isNaN(newValue) && 0 <= newValue && newValue <= 1) {
1169
- return newValue;
1170
- }
1171
- throw new Error(`Opacity should be between [0, 1]. Value: ${newValue}`);
1172
- }
1173
- export const opacityProperty = new CssAnimationProperty({
1174
- name: 'opacity',
1175
- cssName: 'opacity',
1176
- defaultValue: 1,
1177
- valueConverter: opacityConverter,
1178
- });
1179
- opacityProperty.register(Style);
1180
- export const colorProperty = new InheritedCssProperty({
1181
- name: 'color',
1182
- cssName: 'color',
1183
- equalityComparer: Color.equals,
1184
- valueConverter: colorConverter,
1185
- });
1186
- colorProperty.register(Style);
1187
- export const fontInternalProperty = new CssProperty({
1188
- name: 'fontInternal',
1189
- defaultValue: Font.default,
1190
- cssName: '_fontInternal',
1191
- equalityComparer: (value1, value2, target) => {
1192
- if (value1 === value2) {
1193
- const view = target.viewRef.get();
1194
- // if view layout or updates are suspended we will check the backgroundInternal at the end
1195
- if (value1.isDirty && !view._suspendNativeUpdatesCount) {
1196
- value1.isDirty = false;
1197
- return false;
1198
- }
1199
- return true;
1200
- }
1201
- return Font.equals(value1, value2);
1202
- },
1203
- });
1204
- fontInternalProperty.register(Style);
1205
- function fontInternalSubPropertyValueChanged(block, shouldIgnore) {
1206
- return function (target, oldValue, newValue) {
1207
- if (shouldIgnore?.(target, oldValue, newValue)) {
1208
- return;
1209
- }
1210
- let newFontInternal = block(target, oldValue, newValue);
1211
- if (newFontInternal.isEqualToDefaultFont()) {
1212
- newFontInternal = unsetValue;
1213
- }
1214
- const view = target.viewRef.get();
1215
- if (target.fontInternal !== newFontInternal || !view._suspendNativeUpdatesCount) {
1216
- target.fontInternal = newFontInternal;
1217
- }
1218
- else {
1219
- // let s not go through another property set which takes time during batch updates
1220
- // we will check and update fontInternal once the update is done
1221
- }
1222
- };
1223
- }
1224
- export const fontFamilyProperty = new InheritedCssProperty({
1225
- name: 'fontFamily',
1226
- cssName: 'font-family',
1227
- affectsLayout: __IOS__,
1228
- valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontFamily(newValue)),
1229
- });
1230
- fontFamilyProperty.register(Style);
1231
- export const fontScaleInternalProperty = new InheritedCssProperty({
1232
- name: 'fontScaleInternal',
1233
- cssName: '_fontScaleInternal',
1234
- defaultValue: 1.0,
1235
- valueConverter: parseFloat,
1236
- });
1237
- fontScaleInternalProperty.register(Style);
1238
- export const fontSizeProperty = new InheritedCssProperty({
1239
- name: 'fontSize',
1240
- cssName: 'font-size',
1241
- affectsLayout: __IOS__,
1242
- valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontSize(newValue), (target) => target.viewRef.get()?.['handleFontSize'] === true),
1243
- valueConverter: (v) => parseFloat(v),
1244
- });
1245
- fontSizeProperty.register(Style);
1246
- export const fontStyleProperty = new InheritedCssProperty({
1247
- name: 'fontStyle',
1248
- cssName: 'font-style',
1249
- affectsLayout: __IOS__,
1250
- defaultValue: FontStyle.NORMAL,
1251
- valueConverter: FontStyle.parse,
1252
- valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontStyle(newValue)),
1253
- });
1254
- fontStyleProperty.register(Style);
1255
- export const fontWeightProperty = new InheritedCssProperty({
1256
- name: 'fontWeight',
1257
- cssName: 'font-weight',
1258
- affectsLayout: __IOS__,
1259
- defaultValue: FontWeight.NORMAL,
1260
- valueConverter: FontWeight.parse,
1261
- valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontWeight(newValue)),
1262
- });
1263
- fontWeightProperty.register(Style);
1264
- const fontProperty = new ShorthandProperty({
1265
- name: 'font',
1266
- cssName: 'font',
1267
- getter: function () {
1268
- return `${this.fontStyle} ${this.fontWeight} ${this.fontSize} ${this.fontFamily}`;
1269
- },
1270
- converter: function (value) {
1271
- if (value === unsetValue) {
1272
- return [
1273
- [fontStyleProperty, unsetValue],
1274
- [fontWeightProperty, unsetValue],
1275
- [fontSizeProperty, unsetValue],
1276
- [fontFamilyProperty, unsetValue],
1277
- ];
1278
- }
1279
- else {
1280
- const font = parseFont(value);
1281
- const fontSize = parseFloat(font.fontSize);
1282
- return [
1283
- [fontStyleProperty, font.fontStyle],
1284
- [fontWeightProperty, font.fontWeight],
1285
- [fontSizeProperty, fontSize],
1286
- [fontFamilyProperty, font.fontFamily],
1287
- ];
1288
- }
1289
- },
1290
- });
1291
- fontProperty.register(Style);
1292
- export const fontVariationSettingsProperty = new InheritedCssProperty({
1293
- name: 'fontVariationSettings',
1294
- cssName: 'font-variation-settings',
1295
- affectsLayout: __IOS__,
1296
- valueChanged: fontInternalSubPropertyValueChanged((target, oldValue, newValue) => target.fontInternal.withFontVariationSettings(newValue)),
1297
- valueConverter: (value) => {
1298
- return FontVariationSettings.parse(value);
1299
- },
1300
- });
1301
- fontVariationSettingsProperty.register(Style);
1302
- export const visibilityProperty = new CssProperty({
1303
- name: 'visibility',
1304
- cssName: 'visibility',
1305
- defaultValue: CoreTypes.Visibility.visible,
1306
- affectsLayout: __IOS__,
1307
- valueConverter: CoreTypes.Visibility.parse,
1308
- valueChanged: (target, oldValue, newValue) => {
1309
- const view = target.viewRef.get();
1310
- if (view) {
1311
- view.isCollapsed = newValue === CoreTypes.Visibility.collapse || newValue === CoreTypes.Visibility.collapsed;
1312
- }
1313
- else {
1314
- Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
1315
- }
1316
- },
1317
- });
1318
- visibilityProperty.register(Style);
1319
- export const androidElevationProperty = new CssProperty({
1320
- name: 'androidElevation',
1321
- cssName: 'android-elevation',
1322
- valueConverter: parseFloat,
1323
- });
1324
- androidElevationProperty.register(Style);
1325
- export const androidDynamicElevationOffsetProperty = new CssProperty({
1326
- name: 'androidDynamicElevationOffset',
1327
- cssName: 'android-dynamic-elevation-offset',
1328
- valueConverter: parseFloat,
1329
- });
1330
- androidDynamicElevationOffsetProperty.register(Style);
1331
- //# sourceMappingURL=style-properties.js.map