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

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