@akylas/nativescript 8.8.5 → 8.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (976) hide show
  1. package/{js-libs/easysax/LICENSE → LICENSE} +11 -12
  2. package/animation-frame/index.d.ts +17 -3
  3. package/css/css-tree-parser.js +21 -17
  4. package/debugger/devtools-elements.d.ts +23 -5
  5. package/debugger/dom-node.d.ts +23 -20
  6. package/file-system/index.d.ts +382 -98
  7. package/fps-meter/index.d.ts +24 -7
  8. package/globals/index.d.ts +4 -19
  9. package/http/index.d.ts +149 -73
  10. package/index.d.ts +23 -7
  11. package/matrix/index.d.ts +32 -5
  12. package/module-name-resolver/index.d.ts +21 -13
  13. package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
  14. package/package.json +5 -8
  15. package/platform/index.d.ts +26 -0
  16. package/profiling/index.d.ts +153 -26
  17. package/text/formatted-string.d.ts +1 -1
  18. package/text/span.d.ts +1 -1
  19. package/trace/index.d.ts +131 -105
  20. package/ui/animation/keyframe-animation.d.ts +118 -66
  21. package/ui/builder/binding-builder.d.ts +15 -12
  22. package/ui/builder/index.d.ts +69 -27
  23. package/ui/content-view/index.d.ts +4 -23
  24. package/ui/core/view-base/index.d.ts +524 -483
  25. package/ui/core/weak-event-listener/index.d.ts +18 -2
  26. package/ui/layouts/index.d.ts +1 -2
  27. package/ui/placeholder/index.d.ts +42 -8
  28. package/ui/styling/converters.d.ts +2 -2
  29. package/ui/styling/style-properties.d.ts +101 -82
  30. package/ui/styling/style-scope.d.ts +48 -79
  31. package/ui/text-base/formatted-string.d.ts +73 -36
  32. package/ui/text-base/span.d.ts +81 -36
  33. package/utils/debug.d.ts +61 -17
  34. package/utils/lazy.d.ts +5 -0
  35. package/utils/macrotask-scheduler.d.ts +5 -1
  36. package/utils/types.d.ts +115 -23
  37. package/xml/index.d.ts +105 -44
  38. package/xml/index.js +124 -89
  39. package/abortcontroller/abortsignal.d.ts +0 -23
  40. package/abortcontroller/abortsignal.js +0 -57
  41. package/abortcontroller/abortsignal.js.map +0 -1
  42. package/abortcontroller/index.d.ts +0 -20
  43. package/abortcontroller/index.js +0 -52
  44. package/abortcontroller/index.js.map +0 -1
  45. package/accessibility/accessibility-common.d.ts +0 -18
  46. package/accessibility/accessibility-common.js +0 -64
  47. package/accessibility/accessibility-common.js.map +0 -1
  48. package/accessibility/accessibility-css-helper.d.ts +0 -1
  49. package/accessibility/accessibility-css-helper.js +0 -101
  50. package/accessibility/accessibility-css-helper.js.map +0 -1
  51. package/accessibility/accessibility-properties.d.ts +0 -24
  52. package/accessibility/accessibility-properties.js +0 -122
  53. package/accessibility/accessibility-properties.js.map +0 -1
  54. package/accessibility/accessibility-service-common.d.ts +0 -8
  55. package/accessibility/accessibility-service-common.js +0 -26
  56. package/accessibility/accessibility-service-common.js.map +0 -1
  57. package/accessibility/accessibility-service.android.d.ts +0 -6
  58. package/accessibility/accessibility-service.android.js +0 -107
  59. package/accessibility/accessibility-service.android.js.map +0 -1
  60. package/accessibility/accessibility-service.ios.d.ts +0 -6
  61. package/accessibility/accessibility-service.ios.js +0 -61
  62. package/accessibility/accessibility-service.ios.js.map +0 -1
  63. package/accessibility/accessibility-types.d.ts +0 -224
  64. package/accessibility/accessibility-types.js +0 -222
  65. package/accessibility/accessibility-types.js.map +0 -1
  66. package/accessibility/font-scale-common.d.ts +0 -7
  67. package/accessibility/font-scale-common.js +0 -14
  68. package/accessibility/font-scale-common.js.map +0 -1
  69. package/accessibility/font-scale.android.d.ts +0 -5
  70. package/accessibility/font-scale.android.js +0 -56
  71. package/accessibility/font-scale.android.js.map +0 -1
  72. package/accessibility/font-scale.ios.d.ts +0 -5
  73. package/accessibility/font-scale.ios.js +0 -89
  74. package/accessibility/font-scale.ios.js.map +0 -1
  75. package/accessibility/index.android.d.ts +0 -10
  76. package/accessibility/index.android.js +0 -418
  77. package/accessibility/index.android.js.map +0 -1
  78. package/accessibility/index.ios.d.ts +0 -9
  79. package/accessibility/index.ios.js +0 -234
  80. package/accessibility/index.ios.js.map +0 -1
  81. package/animation-frame/animation-native.android.d.ts +0 -1
  82. package/animation-frame/animation-native.android.js +0 -4
  83. package/animation-frame/animation-native.android.js.map +0 -1
  84. package/animation-frame/animation-native.ios.d.ts +0 -1
  85. package/animation-frame/animation-native.ios.js +0 -3
  86. package/animation-frame/animation-native.ios.js.map +0 -1
  87. package/animation-frame/index.js +0 -92
  88. package/animation-frame/index.js.map +0 -1
  89. package/application/application-common.d.ts +0 -224
  90. package/application/application-common.js +0 -467
  91. package/application/application-common.js.map +0 -1
  92. package/application/application-interfaces.d.ts +0 -217
  93. package/application/application-interfaces.js +0 -2
  94. package/application/application-interfaces.js.map +0 -1
  95. package/application/application-shims.d.ts +0 -351
  96. package/application/application-shims.js +0 -353
  97. package/application/application-shims.js.map +0 -1
  98. package/application/application.android.d.ts +0 -73
  99. package/application/application.android.js +0 -500
  100. package/application/application.android.js.map +0 -1
  101. package/application/application.ios.d.ts +0 -81
  102. package/application/application.ios.js +0 -455
  103. package/application/application.ios.js.map +0 -1
  104. package/application/index.android.d.ts +0 -2
  105. package/application/index.android.js +0 -3
  106. package/application/index.android.js.map +0 -1
  107. package/application/index.ios.d.ts +0 -2
  108. package/application/index.ios.js +0 -3
  109. package/application/index.ios.js.map +0 -1
  110. package/application-settings/application-settings-common.d.ts +0 -2
  111. package/application-settings/application-settings-common.js +0 -15
  112. package/application-settings/application-settings-common.js.map +0 -1
  113. package/application-settings/index.android.d.ts +0 -13
  114. package/application-settings/index.android.js +0 -175
  115. package/application-settings/index.android.js.map +0 -1
  116. package/application-settings/index.ios.d.ts +0 -13
  117. package/application-settings/index.ios.js +0 -88
  118. package/application-settings/index.ios.js.map +0 -1
  119. package/bundle-entry-points.d.ts +0 -1
  120. package/bundle-entry-points.js +0 -47
  121. package/bundle-entry-points.js.map +0 -1
  122. package/color/color-common.d.ts +0 -137
  123. package/color/color-common.js +0 -520
  124. package/color/color-common.js.map +0 -1
  125. package/color/index.android.d.ts +0 -4
  126. package/color/index.android.js +0 -7
  127. package/color/index.android.js.map +0 -1
  128. package/color/index.ios.d.ts +0 -6
  129. package/color/index.ios.js +0 -19
  130. package/color/index.ios.js.map +0 -1
  131. package/color/known-colors.d.ts +0 -144
  132. package/color/known-colors.js +0 -165
  133. package/color/known-colors.js.map +0 -1
  134. package/config/config.interface.d.ts +0 -235
  135. package/config/config.interface.js +0 -2
  136. package/config/config.interface.js.map +0 -1
  137. package/config/index.d.ts +0 -1
  138. package/config/index.js +0 -2
  139. package/config/index.js.map +0 -1
  140. package/connectivity/index.android.d.ts +0 -11
  141. package/connectivity/index.android.js +0 -156
  142. package/connectivity/index.android.js.map +0 -1
  143. package/connectivity/index.ios.d.ts +0 -11
  144. package/connectivity/index.ios.js +0 -132
  145. package/connectivity/index.ios.js.map +0 -1
  146. package/console/index.d.ts +0 -14
  147. package/console/index.js +0 -33
  148. package/console/index.js.map +0 -1
  149. package/core-types/index.d.ts +0 -335
  150. package/core-types/index.js +0 -287
  151. package/core-types/index.js.map +0 -1
  152. package/css/CSS3Parser.d.ts +0 -184
  153. package/css/CSS3Parser.js +0 -534
  154. package/css/CSS3Parser.js.map +0 -1
  155. package/css/CSSNativeScript.d.ts +0 -14
  156. package/css/CSSNativeScript.js +0 -113
  157. package/css/CSSNativeScript.js.map +0 -1
  158. package/css/LICENSE +0 -9
  159. package/css/Readme.md +0 -278
  160. package/css/css-tree-parser.d.ts +0 -1
  161. package/css/css-tree-parser.js.map +0 -1
  162. package/css/parser.d.ts +0 -70
  163. package/css/parser.js +0 -516
  164. package/css/parser.js.map +0 -1
  165. package/css/system-classes.d.ts +0 -12
  166. package/css/system-classes.js +0 -47
  167. package/css/system-classes.js.map +0 -1
  168. package/css-mediaquery/index.d.ts +0 -27
  169. package/css-mediaquery/index.js +0 -118
  170. package/css-mediaquery/index.js.map +0 -1
  171. package/css-value/LICENSE +0 -9
  172. package/css-value/Readme.md +0 -45
  173. package/data/observable/index.d.ts +0 -185
  174. package/data/observable/index.js +0 -411
  175. package/data/observable/index.js.map +0 -1
  176. package/data/observable-array/index.d.ts +0 -215
  177. package/data/observable-array/index.js +0 -325
  178. package/data/observable-array/index.js.map +0 -1
  179. package/data/virtual-array/index.d.ts +0 -72
  180. package/data/virtual-array/index.js +0 -133
  181. package/data/virtual-array/index.js.map +0 -1
  182. package/debugger/InspectorBackendCommands.d.ts +0 -1056
  183. package/debugger/InspectorBackendCommands.js +0 -578
  184. package/debugger/InspectorBackendCommands.js.map +0 -1
  185. package/debugger/devtools-elements-interfaces.d.ts +0 -16
  186. package/debugger/devtools-elements-interfaces.js +0 -2
  187. package/debugger/devtools-elements-interfaces.js.map +0 -1
  188. package/debugger/devtools-elements.common.d.ts +0 -7
  189. package/debugger/devtools-elements.common.js +0 -84
  190. package/debugger/devtools-elements.common.js.map +0 -1
  191. package/debugger/devtools-elements.js +0 -20
  192. package/debugger/devtools-elements.js.map +0 -1
  193. package/debugger/dom-node.js +0 -150
  194. package/debugger/dom-node.js.map +0 -1
  195. package/debugger/index.d.ts +0 -87
  196. package/debugger/index.js +0 -118
  197. package/debugger/index.js.map +0 -1
  198. package/debugger/webinspector-css.d.ts +0 -34
  199. package/debugger/webinspector-css.js +0 -71
  200. package/debugger/webinspector-css.js.map +0 -1
  201. package/debugger/webinspector-dom.d.ts +0 -33
  202. package/debugger/webinspector-dom.js +0 -74
  203. package/debugger/webinspector-dom.js.map +0 -1
  204. package/debugger/webinspector-network.android.d.ts +0 -79
  205. package/debugger/webinspector-network.android.js +0 -207
  206. package/debugger/webinspector-network.android.js.map +0 -1
  207. package/debugger/webinspector-network.ios.d.ts +0 -79
  208. package/debugger/webinspector-network.ios.js +0 -203
  209. package/debugger/webinspector-network.ios.js.map +0 -1
  210. package/fetch/LICENSE +0 -20
  211. package/fetch/README.md +0 -1
  212. package/file-system/file-system-access.android.d.ts +0 -167
  213. package/file-system/file-system-access.android.js +0 -1295
  214. package/file-system/file-system-access.android.js.map +0 -1
  215. package/file-system/file-system-access.ios.d.ts +0 -85
  216. package/file-system/file-system-access.ios.js +0 -637
  217. package/file-system/file-system-access.ios.js.map +0 -1
  218. package/file-system/index.js +0 -863
  219. package/file-system/index.js.map +0 -1
  220. package/fps-meter/fps-native.android.d.ts +0 -12
  221. package/fps-meter/fps-native.android.js +0 -62
  222. package/fps-meter/fps-native.android.js.map +0 -1
  223. package/fps-meter/fps-native.ios.d.ts +0 -11
  224. package/fps-meter/fps-native.ios.js +0 -56
  225. package/fps-meter/fps-native.ios.js.map +0 -1
  226. package/fps-meter/index.js +0 -77
  227. package/fps-meter/index.js.map +0 -1
  228. package/globals/index.js +0 -321
  229. package/globals/index.js.map +0 -1
  230. package/http/http-request/http-request-common.d.ts +0 -1
  231. package/http/http-request/http-request-common.js +0 -15
  232. package/http/http-request/http-request-common.js.map +0 -1
  233. package/http/http-request/index.android.d.ts +0 -7
  234. package/http/http-request/index.android.js +0 -290
  235. package/http/http-request/index.android.js.map +0 -1
  236. package/http/http-request/index.ios.d.ts +0 -7
  237. package/http/http-request/index.ios.js +0 -236
  238. package/http/http-request/index.ios.js.map +0 -1
  239. package/http/index.js +0 -74
  240. package/http/index.js.map +0 -1
  241. package/image-asset/image-asset-common.d.ts +0 -26
  242. package/image-asset/image-asset-common.js +0 -51
  243. package/image-asset/image-asset-common.js.map +0 -1
  244. package/image-asset/index.android.d.ts +0 -10
  245. package/image-asset/index.android.js +0 -42
  246. package/image-asset/index.android.js.map +0 -1
  247. package/image-asset/index.ios.d.ts +0 -11
  248. package/image-asset/index.ios.js +0 -84
  249. package/image-asset/index.ios.js.map +0 -1
  250. package/image-source/image-source-common.d.ts +0 -4
  251. package/image-source/image-source-common.js +0 -21
  252. package/image-source/image-source-common.js.map +0 -1
  253. package/image-source/index.android.d.ts +0 -57
  254. package/image-source/index.android.js +0 -381
  255. package/image-source/index.android.js.map +0 -1
  256. package/image-source/index.ios.d.ts +0 -56
  257. package/image-source/index.ios.js +0 -449
  258. package/image-source/index.ios.js.map +0 -1
  259. package/index.js +0 -36
  260. package/index.js.map +0 -1
  261. package/inspector_modules.d.ts +0 -1
  262. package/inspector_modules.js +0 -5
  263. package/inspector_modules.js.map +0 -1
  264. package/js-libs/easysax/README.md +0 -46
  265. package/matrix/index.js +0 -45
  266. package/matrix/index.js.map +0 -1
  267. package/media-query-list/index.d.ts +0 -21
  268. package/media-query-list/index.js +0 -169
  269. package/media-query-list/index.js.map +0 -1
  270. package/module-name-resolver/index.js +0 -79
  271. package/module-name-resolver/index.js.map +0 -1
  272. package/module-name-resolver/non-bundle-workflow-compat.d.ts +0 -6
  273. package/module-name-resolver/non-bundle-workflow-compat.js +0 -119
  274. package/module-name-resolver/non-bundle-workflow-compat.js.map +0 -1
  275. package/module-name-resolver/qualifier-matcher/index.js +0 -141
  276. package/module-name-resolver/qualifier-matcher/index.js.map +0 -1
  277. package/platform/common.d.ts +0 -9
  278. package/platform/common.js +0 -13
  279. package/platform/common.js.map +0 -1
  280. package/platform/device/index.android.d.ts +0 -20
  281. package/platform/device/index.android.js +0 -78
  282. package/platform/device/index.android.js.map +0 -1
  283. package/platform/device/index.ios.d.ts +0 -19
  284. package/platform/device/index.ios.js +0 -69
  285. package/platform/device/index.ios.js.map +0 -1
  286. package/platform/index.js +0 -4
  287. package/platform/index.js.map +0 -1
  288. package/platform/screen/index.android.d.ts +0 -15
  289. package/platform/screen/index.android.js +0 -39
  290. package/platform/screen/index.android.js.map +0 -1
  291. package/platform/screen/index.ios.d.ts +0 -15
  292. package/platform/screen/index.ios.js +0 -35
  293. package/platform/screen/index.ios.js.map +0 -1
  294. package/platforms/README.md +0 -1
  295. package/platforms/android/widgets-release.aar +0 -0
  296. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  297. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  298. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  299. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  300. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/NSCWinterCG +0 -0
  301. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Resources/Info.plist +0 -52
  302. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/Current/NSCWinterCG +0 -0
  303. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  304. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  305. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  306. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  307. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  308. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  309. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  310. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  311. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  312. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +0 -6
  313. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  314. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  315. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +0 -52
  316. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  317. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  318. package/polyfills/formdata.d.ts +0 -6
  319. package/polyfills/formdata.js +0 -16
  320. package/polyfills/formdata.js.map +0 -1
  321. package/profiling/index.js +0 -274
  322. package/profiling/index.js.map +0 -1
  323. package/text/formatted-string.js +0 -2
  324. package/text/formatted-string.js.map +0 -1
  325. package/text/index.android.d.ts +0 -9
  326. package/text/index.android.js +0 -11
  327. package/text/index.android.js.map +0 -1
  328. package/text/index.ios.d.ts +0 -9
  329. package/text/index.ios.js +0 -11
  330. package/text/index.ios.js.map +0 -1
  331. package/text/span.js +0 -2
  332. package/text/span.js.map +0 -1
  333. package/text/text-common.d.ts +0 -12
  334. package/text/text-common.js +0 -111
  335. package/text/text-common.js.map +0 -1
  336. package/timer/index.android.d.ts +0 -4
  337. package/timer/index.android.js +0 -75
  338. package/timer/index.android.js.map +0 -1
  339. package/timer/index.ios.d.ts +0 -4
  340. package/timer/index.ios.js +0 -68
  341. package/timer/index.ios.js.map +0 -1
  342. package/trace/index.js +0 -255
  343. package/trace/index.js.map +0 -1
  344. package/ui/action-bar/action-bar-common.d.ts +0 -81
  345. package/ui/action-bar/action-bar-common.js +0 -369
  346. package/ui/action-bar/action-bar-common.js.map +0 -1
  347. package/ui/action-bar/index.android.d.ts +0 -47
  348. package/ui/action-bar/index.android.js +0 -469
  349. package/ui/action-bar/index.android.js.map +0 -1
  350. package/ui/action-bar/index.ios.d.ts +0 -38
  351. package/ui/action-bar/index.ios.js +0 -481
  352. package/ui/action-bar/index.ios.js.map +0 -1
  353. package/ui/activity-indicator/activity-indicator-common.d.ts +0 -7
  354. package/ui/activity-indicator/activity-indicator-common.js +0 -17
  355. package/ui/activity-indicator/activity-indicator-common.js.map +0 -1
  356. package/ui/activity-indicator/index.android.d.ts +0 -6
  357. package/ui/activity-indicator/index.android.js +0 -56
  358. package/ui/activity-indicator/index.android.js.map +0 -1
  359. package/ui/activity-indicator/index.ios.d.ts +0 -8
  360. package/ui/activity-indicator/index.ios.js +0 -48
  361. package/ui/activity-indicator/index.ios.js.map +0 -1
  362. package/ui/animation/animation-common.d.ts +0 -40
  363. package/ui/animation/animation-common.js +0 -186
  364. package/ui/animation/animation-common.js.map +0 -1
  365. package/ui/animation/animation-interfaces.d.ts +0 -63
  366. package/ui/animation/animation-interfaces.js +0 -2
  367. package/ui/animation/animation-interfaces.js.map +0 -1
  368. package/ui/animation/index.android.d.ts +0 -25
  369. package/ui/animation/index.android.js +0 -509
  370. package/ui/animation/index.android.js.map +0 -1
  371. package/ui/animation/index.ios.d.ts +0 -46
  372. package/ui/animation/index.ios.js +0 -906
  373. package/ui/animation/index.ios.js.map +0 -1
  374. package/ui/animation/keyframe-animation.js +0 -245
  375. package/ui/animation/keyframe-animation.js.map +0 -1
  376. package/ui/builder/binding-builder.js +0 -171
  377. package/ui/builder/binding-builder.js.map +0 -1
  378. package/ui/builder/component-builder/index.d.ts +0 -7
  379. package/ui/builder/component-builder/index.js +0 -221
  380. package/ui/builder/component-builder/index.js.map +0 -1
  381. package/ui/builder/index.js +0 -202
  382. package/ui/builder/index.js.map +0 -1
  383. package/ui/builder/xml2ui.d.ts +0 -134
  384. package/ui/builder/xml2ui.js +0 -393
  385. package/ui/builder/xml2ui.js.map +0 -1
  386. package/ui/button/button-common.d.ts +0 -9
  387. package/ui/button/button-common.js +0 -26
  388. package/ui/button/button-common.js.map +0 -1
  389. package/ui/button/index.android.d.ts +0 -14
  390. package/ui/button/index.android.js +0 -150
  391. package/ui/button/index.android.js.map +0 -1
  392. package/ui/button/index.ios.d.ts +0 -13
  393. package/ui/button/index.ios.js +0 -270
  394. package/ui/button/index.ios.js.map +0 -1
  395. package/ui/content-view/index.js +0 -87
  396. package/ui/content-view/index.js.map +0 -1
  397. package/ui/core/bindable/bindable-expressions.d.ts +0 -7
  398. package/ui/core/bindable/bindable-expressions.js +0 -255
  399. package/ui/core/bindable/bindable-expressions.js.map +0 -1
  400. package/ui/core/bindable/bindable-resources.d.ts +0 -2
  401. package/ui/core/bindable/bindable-resources.js +0 -8
  402. package/ui/core/bindable/bindable-resources.js.map +0 -1
  403. package/ui/core/bindable/index.d.ts +0 -89
  404. package/ui/core/bindable/index.js +0 -556
  405. package/ui/core/bindable/index.js.map +0 -1
  406. package/ui/core/control-state-change/index.android.d.ts +0 -6
  407. package/ui/core/control-state-change/index.android.js +0 -8
  408. package/ui/core/control-state-change/index.android.js.map +0 -1
  409. package/ui/core/control-state-change/index.ios.d.ts +0 -14
  410. package/ui/core/control-state-change/index.ios.js +0 -61
  411. package/ui/core/control-state-change/index.ios.js.map +0 -1
  412. package/ui/core/properties/index.d.ts +0 -178
  413. package/ui/core/properties/index.js +0 -1133
  414. package/ui/core/properties/index.js.map +0 -1
  415. package/ui/core/view/index.android.d.ts +0 -98
  416. package/ui/core/view/index.android.js +0 -1206
  417. package/ui/core/view/index.android.js.map +0 -1
  418. package/ui/core/view/index.ios.d.ts +0 -95
  419. package/ui/core/view/index.ios.js +0 -1015
  420. package/ui/core/view/index.ios.js.map +0 -1
  421. package/ui/core/view/view-common.d.ts +0 -288
  422. package/ui/core/view/view-common.js +0 -1100
  423. package/ui/core/view/view-common.js.map +0 -1
  424. package/ui/core/view/view-helper/index.android.d.ts +0 -9
  425. package/ui/core/view/view-helper/index.android.js +0 -56
  426. package/ui/core/view/view-helper/index.android.js.map +0 -1
  427. package/ui/core/view/view-helper/index.ios.d.ts +0 -67
  428. package/ui/core/view/view-helper/index.ios.js +0 -329
  429. package/ui/core/view/view-helper/index.ios.js.map +0 -1
  430. package/ui/core/view/view-helper/view-helper-common.d.ts +0 -11
  431. package/ui/core/view/view-helper/view-helper-common.js +0 -157
  432. package/ui/core/view/view-helper/view-helper-common.js.map +0 -1
  433. package/ui/core/view-base/index.js +0 -1166
  434. package/ui/core/view-base/index.js.map +0 -1
  435. package/ui/core/weak-event-listener/index.js +0 -123
  436. package/ui/core/weak-event-listener/index.js.map +0 -1
  437. package/ui/date-picker/date-picker-common.d.ts +0 -27
  438. package/ui/date-picker/date-picker-common.js +0 -81
  439. package/ui/date-picker/date-picker-common.js.map +0 -1
  440. package/ui/date-picker/index.android.d.ts +0 -11
  441. package/ui/date-picker/index.android.js +0 -131
  442. package/ui/date-picker/index.android.js.map +0 -1
  443. package/ui/date-picker/index.ios.d.ts +0 -10
  444. package/ui/date-picker/index.ios.js +0 -165
  445. package/ui/date-picker/index.ios.js.map +0 -1
  446. package/ui/dialogs/dialogs-common.d.ts +0 -215
  447. package/ui/dialogs/dialogs-common.js +0 -167
  448. package/ui/dialogs/dialogs-common.js.map +0 -1
  449. package/ui/dialogs/index.android.d.ts +0 -20
  450. package/ui/dialogs/index.android.js +0 -329
  451. package/ui/dialogs/index.android.js.map +0 -1
  452. package/ui/dialogs/index.ios.d.ts +0 -17
  453. package/ui/dialogs/index.ios.js +0 -329
  454. package/ui/dialogs/index.ios.js.map +0 -1
  455. package/ui/editable-text-base/editable-text-base-common.d.ts +0 -39
  456. package/ui/editable-text-base/editable-text-base-common.js +0 -82
  457. package/ui/editable-text-base/editable-text-base-common.js.map +0 -1
  458. package/ui/editable-text-base/index.android.d.ts +0 -26
  459. package/ui/editable-text-base/index.android.js +0 -505
  460. package/ui/editable-text-base/index.android.js.map +0 -1
  461. package/ui/editable-text-base/index.ios.d.ts +0 -10
  462. package/ui/editable-text-base/index.ios.js +0 -261
  463. package/ui/editable-text-base/index.ios.js.map +0 -1
  464. package/ui/embedding/index.android.d.ts +0 -4
  465. package/ui/embedding/index.android.js +0 -14
  466. package/ui/embedding/index.android.js.map +0 -1
  467. package/ui/embedding/index.ios.d.ts +0 -1
  468. package/ui/embedding/index.ios.js +0 -4
  469. package/ui/embedding/index.ios.js.map +0 -1
  470. package/ui/enums/enums.js +0 -6
  471. package/ui/enums/enums.js.map +0 -1
  472. package/ui/enums/index.js +0 -6
  473. package/ui/enums/index.js.map +0 -1
  474. package/ui/frame/activity.android.d.ts +0 -1
  475. package/ui/frame/activity.android.js +0 -110
  476. package/ui/frame/activity.android.js.map +0 -1
  477. package/ui/frame/callbacks/activity-callbacks.d.ts +0 -20
  478. package/ui/frame/callbacks/activity-callbacks.js +0 -301
  479. package/ui/frame/callbacks/activity-callbacks.js.map +0 -1
  480. package/ui/frame/callbacks/fragment-callbacks.d.ts +0 -19
  481. package/ui/frame/callbacks/fragment-callbacks.js +0 -273
  482. package/ui/frame/callbacks/fragment-callbacks.js.map +0 -1
  483. package/ui/frame/fragment.android.d.ts +0 -3
  484. package/ui/frame/fragment.android.js +0 -92
  485. package/ui/frame/fragment.android.js.map +0 -1
  486. package/ui/frame/fragment.ios.d.ts +0 -3
  487. package/ui/frame/fragment.ios.js +0 -4
  488. package/ui/frame/fragment.ios.js.map +0 -1
  489. package/ui/frame/fragment.transitions.android.d.ts +0 -36
  490. package/ui/frame/fragment.transitions.android.js +0 -591
  491. package/ui/frame/fragment.transitions.android.js.map +0 -1
  492. package/ui/frame/fragment.transitions.types.d.ts +0 -6
  493. package/ui/frame/fragment.transitions.types.js +0 -2
  494. package/ui/frame/fragment.transitions.types.js.map +0 -1
  495. package/ui/frame/frame-common.d.ts +0 -97
  496. package/ui/frame/frame-common.js +0 -673
  497. package/ui/frame/frame-common.js.map +0 -1
  498. package/ui/frame/frame-helpers.d.ts +0 -16
  499. package/ui/frame/frame-helpers.js +0 -19
  500. package/ui/frame/frame-helpers.js.map +0 -1
  501. package/ui/frame/frame-interfaces.d.ts +0 -95
  502. package/ui/frame/frame-interfaces.js +0 -7
  503. package/ui/frame/frame-interfaces.js.map +0 -1
  504. package/ui/frame/frame-stack.d.ts +0 -6
  505. package/ui/frame/frame-stack.js +0 -38
  506. package/ui/frame/frame-stack.js.map +0 -1
  507. package/ui/frame/index.android.d.ts +0 -65
  508. package/ui/frame/index.android.js +0 -685
  509. package/ui/frame/index.android.js.map +0 -1
  510. package/ui/frame/index.ios.d.ts +0 -57
  511. package/ui/frame/index.ios.js +0 -648
  512. package/ui/frame/index.ios.js.map +0 -1
  513. package/ui/gestures/gestures-common.d.ts +0 -279
  514. package/ui/gestures/gestures-common.js +0 -199
  515. package/ui/gestures/gestures-common.js.map +0 -1
  516. package/ui/gestures/index.android.d.ts +0 -21
  517. package/ui/gestures/index.android.js +0 -595
  518. package/ui/gestures/index.android.js.map +0 -1
  519. package/ui/gestures/index.ios.d.ts +0 -36
  520. package/ui/gestures/index.ios.js +0 -512
  521. package/ui/gestures/index.ios.js.map +0 -1
  522. package/ui/gestures/touch-manager.d.ts +0 -82
  523. package/ui/gestures/touch-manager.js +0 -269
  524. package/ui/gestures/touch-manager.js.map +0 -1
  525. package/ui/html-view/html-view-common.d.ts +0 -13
  526. package/ui/html-view/html-view-common.js +0 -35
  527. package/ui/html-view/html-view-common.js.map +0 -1
  528. package/ui/html-view/index.android.d.ts +0 -7
  529. package/ui/html-view/index.android.js +0 -86
  530. package/ui/html-view/index.android.js.map +0 -1
  531. package/ui/html-view/index.ios.d.ts +0 -11
  532. package/ui/html-view/index.ios.js +0 -103
  533. package/ui/html-view/index.ios.js.map +0 -1
  534. package/ui/image/image-common.d.ts +0 -43
  535. package/ui/image/image-common.js +0 -191
  536. package/ui/image/image-common.js.map +0 -1
  537. package/ui/image/index.android.d.ts +0 -13
  538. package/ui/image/index.android.js +0 -167
  539. package/ui/image/index.android.js.map +0 -1
  540. package/ui/image/index.ios.d.ts +0 -17
  541. package/ui/image/index.ios.js +0 -186
  542. package/ui/image/index.ios.js.map +0 -1
  543. package/ui/image/symbol-effects-common.d.ts +0 -36
  544. package/ui/image/symbol-effects-common.js +0 -35
  545. package/ui/image/symbol-effects-common.js.map +0 -1
  546. package/ui/image/symbol-effects.android.d.ts +0 -5
  547. package/ui/image/symbol-effects.android.js +0 -8
  548. package/ui/image/symbol-effects.android.js.map +0 -1
  549. package/ui/image/symbol-effects.ios.d.ts +0 -6
  550. package/ui/image/symbol-effects.ios.js +0 -79
  551. package/ui/image/symbol-effects.ios.js.map +0 -1
  552. package/ui/image-cache/image-cache-common.d.ts +0 -40
  553. package/ui/image-cache/image-cache-common.js +0 -176
  554. package/ui/image-cache/image-cache-common.js.map +0 -1
  555. package/ui/image-cache/index.android.d.ts +0 -11
  556. package/ui/image-cache/index.android.js +0 -76
  557. package/ui/image-cache/index.android.js.map +0 -1
  558. package/ui/image-cache/index.ios.d.ts +0 -11
  559. package/ui/image-cache/index.ios.js +0 -84
  560. package/ui/image-cache/index.ios.js.map +0 -1
  561. package/ui/index.d.ts +0 -78
  562. package/ui/index.js +0 -62
  563. package/ui/index.js.map +0 -1
  564. package/ui/label/index.android.d.ts +0 -11
  565. package/ui/label/index.android.js +0 -40
  566. package/ui/label/index.android.js.map +0 -1
  567. package/ui/label/index.ios.d.ts +0 -16
  568. package/ui/label/index.ios.js +0 -220
  569. package/ui/label/index.ios.js.map +0 -1
  570. package/ui/layouts/absolute-layout/absolute-layout-common.d.ts +0 -16
  571. package/ui/layouts/absolute-layout/absolute-layout-common.js +0 -70
  572. package/ui/layouts/absolute-layout/absolute-layout-common.js.map +0 -1
  573. package/ui/layouts/absolute-layout/index.android.d.ts +0 -6
  574. package/ui/layouts/absolute-layout/index.android.js +0 -26
  575. package/ui/layouts/absolute-layout/index.android.js.map +0 -1
  576. package/ui/layouts/absolute-layout/index.ios.d.ts +0 -10
  577. package/ui/layouts/absolute-layout/index.ios.js +0 -48
  578. package/ui/layouts/absolute-layout/index.ios.js.map +0 -1
  579. package/ui/layouts/dock-layout/dock-layout-common.d.ts +0 -14
  580. package/ui/layouts/dock-layout/dock-layout-common.js +0 -51
  581. package/ui/layouts/dock-layout/dock-layout-common.js.map +0 -1
  582. package/ui/layouts/dock-layout/index.android.d.ts +0 -6
  583. package/ui/layouts/dock-layout/index.android.js +0 -38
  584. package/ui/layouts/dock-layout/index.android.js.map +0 -1
  585. package/ui/layouts/dock-layout/index.ios.d.ts +0 -8
  586. package/ui/layouts/dock-layout/index.ios.js +0 -115
  587. package/ui/layouts/dock-layout/index.ios.js.map +0 -1
  588. package/ui/layouts/flexbox-layout/flexbox-layout-common.d.ts +0 -126
  589. package/ui/layouts/flexbox-layout/flexbox-layout-common.js +0 -402
  590. package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +0 -1
  591. package/ui/layouts/flexbox-layout/index.android.d.ts +0 -12
  592. package/ui/layouts/flexbox-layout/index.android.js +0 -133
  593. package/ui/layouts/flexbox-layout/index.android.js.map +0 -1
  594. package/ui/layouts/flexbox-layout/index.ios.d.ts +0 -44
  595. package/ui/layouts/flexbox-layout/index.ios.js +0 -1232
  596. package/ui/layouts/flexbox-layout/index.ios.js.map +0 -1
  597. package/ui/layouts/grid-layout/grid-layout-common.d.ts +0 -72
  598. package/ui/layouts/grid-layout/grid-layout-common.js +0 -323
  599. package/ui/layouts/grid-layout/grid-layout-common.js.map +0 -1
  600. package/ui/layouts/grid-layout/index.android.d.ts +0 -22
  601. package/ui/layouts/grid-layout/index.android.js +0 -117
  602. package/ui/layouts/grid-layout/index.android.js.map +0 -1
  603. package/ui/layouts/grid-layout/index.ios.d.ts +0 -28
  604. package/ui/layouts/grid-layout/index.ios.js +0 -777
  605. package/ui/layouts/grid-layout/index.ios.js.map +0 -1
  606. package/ui/layouts/index.js +0 -9
  607. package/ui/layouts/index.js.map +0 -1
  608. package/ui/layouts/layout-base-common.d.ts +0 -36
  609. package/ui/layouts/layout-base-common.js +0 -146
  610. package/ui/layouts/layout-base-common.js.map +0 -1
  611. package/ui/layouts/layout-base.android.d.ts +0 -4
  612. package/ui/layouts/layout-base.android.js +0 -44
  613. package/ui/layouts/layout-base.android.js.map +0 -1
  614. package/ui/layouts/layout-base.ios.d.ts +0 -10
  615. package/ui/layouts/layout-base.ios.js +0 -34
  616. package/ui/layouts/layout-base.ios.js.map +0 -1
  617. package/ui/layouts/root-layout/index.android.d.ts +0 -16
  618. package/ui/layouts/root-layout/index.android.js +0 -115
  619. package/ui/layouts/root-layout/index.android.js.map +0 -1
  620. package/ui/layouts/root-layout/index.ios.d.ts +0 -16
  621. package/ui/layouts/root-layout/index.ios.js +0 -96
  622. package/ui/layouts/root-layout/index.ios.js.map +0 -1
  623. package/ui/layouts/root-layout/root-layout-common.d.ts +0 -54
  624. package/ui/layouts/root-layout/root-layout-common.js +0 -394
  625. package/ui/layouts/root-layout/root-layout-common.js.map +0 -1
  626. package/ui/layouts/stack-layout/index.android.d.ts +0 -6
  627. package/ui/layouts/stack-layout/index.android.js +0 -11
  628. package/ui/layouts/stack-layout/index.android.js.map +0 -1
  629. package/ui/layouts/stack-layout/index.ios.d.ts +0 -10
  630. package/ui/layouts/stack-layout/index.ios.js +0 -151
  631. package/ui/layouts/stack-layout/index.ios.js.map +0 -1
  632. package/ui/layouts/stack-layout/stack-layout-common.d.ts +0 -8
  633. package/ui/layouts/stack-layout/stack-layout-common.js +0 -19
  634. package/ui/layouts/stack-layout/stack-layout-common.js.map +0 -1
  635. package/ui/layouts/wrap-layout/index.android.d.ts +0 -6
  636. package/ui/layouts/wrap-layout/index.android.js +0 -18
  637. package/ui/layouts/wrap-layout/index.android.js.map +0 -1
  638. package/ui/layouts/wrap-layout/index.ios.d.ts +0 -8
  639. package/ui/layouts/wrap-layout/index.ios.js +0 -170
  640. package/ui/layouts/wrap-layout/index.ios.js.map +0 -1
  641. package/ui/layouts/wrap-layout/wrap-layout-common.d.ts +0 -15
  642. package/ui/layouts/wrap-layout/wrap-layout-common.js +0 -38
  643. package/ui/layouts/wrap-layout/wrap-layout-common.js.map +0 -1
  644. package/ui/list-picker/index.android.d.ts +0 -10
  645. package/ui/list-picker/index.android.js +0 -177
  646. package/ui/list-picker/index.android.js.map +0 -1
  647. package/ui/list-picker/index.ios.d.ts +0 -11
  648. package/ui/list-picker/index.ios.js +0 -99
  649. package/ui/list-picker/index.ios.js.map +0 -1
  650. package/ui/list-picker/list-picker-common.d.ts +0 -22
  651. package/ui/list-picker/list-picker-common.js +0 -77
  652. package/ui/list-picker/list-picker-common.js.map +0 -1
  653. package/ui/list-view/index.android.d.ts +0 -32
  654. package/ui/list-view/index.android.js +0 -359
  655. package/ui/list-view/index.android.js.map +0 -1
  656. package/ui/list-view/index.ios.d.ts +0 -45
  657. package/ui/list-view/index.ios.js +0 -456
  658. package/ui/list-view/index.ios.js.map +0 -1
  659. package/ui/list-view/list-view-common.d.ts +0 -66
  660. package/ui/list-view/list-view-common.js +0 -210
  661. package/ui/list-view/list-view-common.js.map +0 -1
  662. package/ui/page/index.android.d.ts +0 -13
  663. package/ui/page/index.android.js +0 -148
  664. package/ui/page/index.android.js.map +0 -1
  665. package/ui/page/index.ios.d.ts +0 -45
  666. package/ui/page/index.ios.js +0 -600
  667. package/ui/page/index.ios.js.map +0 -1
  668. package/ui/page/page-common.d.ts +0 -77
  669. package/ui/page/page-common.js +0 -186
  670. package/ui/page/page-common.js.map +0 -1
  671. package/ui/placeholder/index.android.d.ts +0 -12
  672. package/ui/placeholder/index.android.js +0 -21
  673. package/ui/placeholder/index.android.js.map +0 -1
  674. package/ui/placeholder/index.js +0 -16
  675. package/ui/placeholder/index.js.map +0 -1
  676. package/ui/placeholder/placeholder-common.d.ts +0 -12
  677. package/ui/placeholder/placeholder-common.js +0 -2
  678. package/ui/placeholder/placeholder-common.js.map +0 -1
  679. package/ui/progress/index.android.d.ts +0 -6
  680. package/ui/progress/index.android.js +0 -65
  681. package/ui/progress/index.android.js.map +0 -1
  682. package/ui/progress/index.ios.d.ts +0 -7
  683. package/ui/progress/index.ios.js +0 -45
  684. package/ui/progress/index.ios.js.map +0 -1
  685. package/ui/progress/progress-common.d.ts +0 -15
  686. package/ui/progress/progress-common.js +0 -34
  687. package/ui/progress/progress-common.js.map +0 -1
  688. package/ui/proxy-view-container/index.d.ts +0 -31
  689. package/ui/proxy-view-container/index.js +0 -244
  690. package/ui/proxy-view-container/index.js.map +0 -1
  691. package/ui/repeater/index.d.ts +0 -65
  692. package/ui/repeater/index.js +0 -219
  693. package/ui/repeater/index.js.map +0 -1
  694. package/ui/scroll-view/index.android.d.ts +0 -22
  695. package/ui/scroll-view/index.android.js +0 -157
  696. package/ui/scroll-view/index.android.js.map +0 -1
  697. package/ui/scroll-view/index.ios.d.ts +0 -23
  698. package/ui/scroll-view/index.ios.js +0 -174
  699. package/ui/scroll-view/index.ios.js.map +0 -1
  700. package/ui/scroll-view/scroll-view-common.d.ts +0 -32
  701. package/ui/scroll-view/scroll-view-common.js +0 -93
  702. package/ui/scroll-view/scroll-view-common.js.map +0 -1
  703. package/ui/search-bar/index.android.d.ts +0 -14
  704. package/ui/search-bar/index.android.js +0 -239
  705. package/ui/search-bar/index.android.js.map +0 -1
  706. package/ui/search-bar/index.ios.d.ts +0 -14
  707. package/ui/search-bar/index.ios.js +0 -195
  708. package/ui/search-bar/index.ios.js.map +0 -1
  709. package/ui/search-bar/search-bar-common.d.ts +0 -17
  710. package/ui/search-bar/search-bar-common.js +0 -37
  711. package/ui/search-bar/search-bar-common.js.map +0 -1
  712. package/ui/segmented-bar/index.android.d.ts +0 -21
  713. package/ui/segmented-bar/index.android.js +0 -283
  714. package/ui/segmented-bar/index.android.js.map +0 -1
  715. package/ui/segmented-bar/index.ios.d.ts +0 -15
  716. package/ui/segmented-bar/index.ios.js +0 -140
  717. package/ui/segmented-bar/index.ios.js.map +0 -1
  718. package/ui/segmented-bar/segmented-bar-common.d.ts +0 -37
  719. package/ui/segmented-bar/segmented-bar-common.js +0 -146
  720. package/ui/segmented-bar/segmented-bar-common.js.map +0 -1
  721. package/ui/slider/index.android.d.ts +0 -18
  722. package/ui/slider/index.android.js +0 -118
  723. package/ui/slider/index.android.js.map +0 -1
  724. package/ui/slider/index.ios.d.ts +0 -19
  725. package/ui/slider/index.ios.js +0 -145
  726. package/ui/slider/index.ios.js.map +0 -1
  727. package/ui/slider/slider-common.d.ts +0 -26
  728. package/ui/slider/slider-common.js +0 -68
  729. package/ui/slider/slider-common.js.map +0 -1
  730. package/ui/styling/background-common.d.ts +0 -78
  731. package/ui/styling/background-common.js +0 -222
  732. package/ui/styling/background-common.js.map +0 -1
  733. package/ui/styling/background.android.d.ts +0 -9
  734. package/ui/styling/background.android.js +0 -135
  735. package/ui/styling/background.android.js.map +0 -1
  736. package/ui/styling/background.ios.d.ts +0 -34
  737. package/ui/styling/background.ios.js +0 -1100
  738. package/ui/styling/background.ios.js.map +0 -1
  739. package/ui/styling/box-shadow.d.ts +0 -9
  740. package/ui/styling/box-shadow.js +0 -3
  741. package/ui/styling/box-shadow.js.map +0 -1
  742. package/ui/styling/converters.js +0 -41
  743. package/ui/styling/converters.js.map +0 -1
  744. package/ui/styling/css-animation-parser.d.ts +0 -14
  745. package/ui/styling/css-animation-parser.js +0 -188
  746. package/ui/styling/css-animation-parser.js.map +0 -1
  747. package/ui/styling/css-selector.d.ts +0 -270
  748. package/ui/styling/css-selector.js +0 -928
  749. package/ui/styling/css-selector.js.map +0 -1
  750. package/ui/styling/css-shadow.d.ts +0 -19
  751. package/ui/styling/css-shadow.js +0 -26
  752. package/ui/styling/css-shadow.js.map +0 -1
  753. package/ui/styling/css-stroke.d.ts +0 -12
  754. package/ui/styling/css-stroke.js +0 -19
  755. package/ui/styling/css-stroke.js.map +0 -1
  756. package/ui/styling/css-utils.d.ts +0 -7
  757. package/ui/styling/css-utils.js +0 -65
  758. package/ui/styling/css-utils.js.map +0 -1
  759. package/ui/styling/font-common.d.ts +0 -63
  760. package/ui/styling/font-common.js +0 -241
  761. package/ui/styling/font-common.js.map +0 -1
  762. package/ui/styling/font-interfaces.d.ts +0 -15
  763. package/ui/styling/font-interfaces.js +0 -2
  764. package/ui/styling/font-interfaces.js.map +0 -1
  765. package/ui/styling/font.android.d.ts +0 -8
  766. package/ui/styling/font.android.js +0 -146
  767. package/ui/styling/font.android.js.map +0 -1
  768. package/ui/styling/font.ios.d.ts +0 -12
  769. package/ui/styling/font.ios.js +0 -143
  770. package/ui/styling/font.ios.js.map +0 -1
  771. package/ui/styling/linear-gradient.d.ts +0 -13
  772. package/ui/styling/linear-gradient.js +0 -48
  773. package/ui/styling/linear-gradient.js.map +0 -1
  774. package/ui/styling/style/index.d.ts +0 -162
  775. package/ui/styling/style/index.js +0 -67
  776. package/ui/styling/style/index.js.map +0 -1
  777. package/ui/styling/style-properties.js +0 -1331
  778. package/ui/styling/style-properties.js.map +0 -1
  779. package/ui/styling/style-scope.js +0 -1017
  780. package/ui/styling/style-scope.js.map +0 -1
  781. package/ui/switch/index.android.d.ts +0 -11
  782. package/ui/switch/index.android.js +0 -111
  783. package/ui/switch/index.android.js.map +0 -1
  784. package/ui/switch/index.ios.d.ts +0 -14
  785. package/ui/switch/index.ios.js +0 -147
  786. package/ui/switch/index.ios.js.map +0 -1
  787. package/ui/switch/switch-common.d.ts +0 -12
  788. package/ui/switch/switch-common.js +0 -38
  789. package/ui/switch/switch-common.js.map +0 -1
  790. package/ui/tab-view/index.android.d.ts +0 -37
  791. package/ui/tab-view/index.android.js +0 -604
  792. package/ui/tab-view/index.android.js.map +0 -1
  793. package/ui/tab-view/index.ios.d.ts +0 -49
  794. package/ui/tab-view/index.ios.js +0 -583
  795. package/ui/tab-view/index.ios.js.map +0 -1
  796. package/ui/tab-view/tab-view-common.d.ts +0 -71
  797. package/ui/tab-view/tab-view-common.js +0 -263
  798. package/ui/tab-view/tab-view-common.js.map +0 -1
  799. package/ui/text-base/formatted-string.js +0 -163
  800. package/ui/text-base/formatted-string.js.map +0 -1
  801. package/ui/text-base/index.android.d.ts +0 -16
  802. package/ui/text-base/index.android.js +0 -500
  803. package/ui/text-base/index.android.js.map +0 -1
  804. package/ui/text-base/index.ios.d.ts +0 -30
  805. package/ui/text-base/index.ios.js +0 -569
  806. package/ui/text-base/index.ios.js.map +0 -1
  807. package/ui/text-base/span.js +0 -113
  808. package/ui/text-base/span.js.map +0 -1
  809. package/ui/text-base/text-base-common.d.ts +0 -98
  810. package/ui/text-base/text-base-common.js +0 -323
  811. package/ui/text-base/text-base-common.js.map +0 -1
  812. package/ui/text-field/index.android.d.ts +0 -7
  813. package/ui/text-field/index.android.js +0 -95
  814. package/ui/text-field/index.android.js.map +0 -1
  815. package/ui/text-field/index.ios.d.ts +0 -25
  816. package/ui/text-field/index.ios.js +0 -277
  817. package/ui/text-field/index.ios.js.map +0 -1
  818. package/ui/text-field/text-field-common.d.ts +0 -11
  819. package/ui/text-field/text-field-common.js +0 -25
  820. package/ui/text-field/text-field-common.js.map +0 -1
  821. package/ui/text-view/index.android.d.ts +0 -6
  822. package/ui/text-view/index.android.js +0 -19
  823. package/ui/text-view/index.android.js.map +0 -1
  824. package/ui/text-view/index.ios.d.ts +0 -24
  825. package/ui/text-view/index.ios.js +0 -366
  826. package/ui/text-view/index.ios.js.map +0 -1
  827. package/ui/text-view/text-view-common.d.ts +0 -6
  828. package/ui/text-view/text-view-common.js +0 -5
  829. package/ui/text-view/text-view-common.js.map +0 -1
  830. package/ui/time-picker/index.android.d.ts +0 -8
  831. package/ui/time-picker/index.android.js +0 -79
  832. package/ui/time-picker/index.android.js.map +0 -1
  833. package/ui/time-picker/index.ios.d.ts +0 -11
  834. package/ui/time-picker/index.ios.js +0 -138
  835. package/ui/time-picker/index.ios.js.map +0 -1
  836. package/ui/time-picker/time-picker-common.d.ts +0 -30
  837. package/ui/time-picker/time-picker-common.js +0 -175
  838. package/ui/time-picker/time-picker-common.js.map +0 -1
  839. package/ui/transition/fade-transition.android.d.ts +0 -4
  840. package/ui/transition/fade-transition.android.js +0 -28
  841. package/ui/transition/fade-transition.android.js.map +0 -1
  842. package/ui/transition/fade-transition.ios.d.ts +0 -17
  843. package/ui/transition/fade-transition.ios.js +0 -65
  844. package/ui/transition/fade-transition.ios.js.map +0 -1
  845. package/ui/transition/flip-transition.android.d.ts +0 -6
  846. package/ui/transition/flip-transition.android.js +0 -90
  847. package/ui/transition/flip-transition.android.js.map +0 -1
  848. package/ui/transition/index.android.d.ts +0 -19
  849. package/ui/transition/index.android.js +0 -37
  850. package/ui/transition/index.android.js.map +0 -1
  851. package/ui/transition/index.ios.d.ts +0 -14
  852. package/ui/transition/index.ios.js +0 -30
  853. package/ui/transition/index.ios.js.map +0 -1
  854. package/ui/transition/modal-transition.android.d.ts +0 -5
  855. package/ui/transition/modal-transition.android.js +0 -7
  856. package/ui/transition/modal-transition.android.js.map +0 -1
  857. package/ui/transition/modal-transition.ios.d.ts +0 -34
  858. package/ui/transition/modal-transition.ios.js +0 -182
  859. package/ui/transition/modal-transition.ios.js.map +0 -1
  860. package/ui/transition/page-transition.android.d.ts +0 -10
  861. package/ui/transition/page-transition.android.js +0 -305
  862. package/ui/transition/page-transition.android.js.map +0 -1
  863. package/ui/transition/page-transition.ios.d.ts +0 -35
  864. package/ui/transition/page-transition.ios.js +0 -199
  865. package/ui/transition/page-transition.ios.js.map +0 -1
  866. package/ui/transition/shared-transition-helper.android.d.ts +0 -9
  867. package/ui/transition/shared-transition-helper.android.js +0 -10
  868. package/ui/transition/shared-transition-helper.android.js.map +0 -1
  869. package/ui/transition/shared-transition-helper.ios.d.ts +0 -14
  870. package/ui/transition/shared-transition-helper.ios.js +0 -539
  871. package/ui/transition/shared-transition-helper.ios.js.map +0 -1
  872. package/ui/transition/shared-transition.d.ts +0 -271
  873. package/ui/transition/shared-transition.js +0 -233
  874. package/ui/transition/shared-transition.js.map +0 -1
  875. package/ui/transition/slide-transition.android.d.ts +0 -7
  876. package/ui/transition/slide-transition.android.js +0 -116
  877. package/ui/transition/slide-transition.android.js.map +0 -1
  878. package/ui/transition/slide-transition.ios.d.ts +0 -19
  879. package/ui/transition/slide-transition.ios.js +0 -95
  880. package/ui/transition/slide-transition.ios.js.map +0 -1
  881. package/ui/utils.android.d.ts +0 -5
  882. package/ui/utils.android.js +0 -16
  883. package/ui/utils.android.js.map +0 -1
  884. package/ui/utils.ios.d.ts +0 -12
  885. package/ui/utils.ios.js +0 -66
  886. package/ui/utils.ios.js.map +0 -1
  887. package/ui/web-view/index.android.d.ts +0 -17
  888. package/ui/web-view/index.android.js +0 -180
  889. package/ui/web-view/index.android.js.map +0 -1
  890. package/ui/web-view/index.ios.d.ts +0 -26
  891. package/ui/web-view/index.ios.js +0 -247
  892. package/ui/web-view/index.ios.js.map +0 -1
  893. package/ui/web-view/web-view-common.d.ts +0 -28
  894. package/ui/web-view/web-view-common.js +0 -75
  895. package/ui/web-view/web-view-common.js.map +0 -1
  896. package/ui/web-view/web-view-interfaces.d.ts +0 -12
  897. package/ui/web-view/web-view-interfaces.js +0 -2
  898. package/ui/web-view/web-view-interfaces.js.map +0 -1
  899. package/utils/android/index.d.ts +0 -21
  900. package/utils/android/index.js +0 -169
  901. package/utils/android/index.js.map +0 -1
  902. package/utils/common.d.ts +0 -65
  903. package/utils/common.js +0 -253
  904. package/utils/common.js.map +0 -1
  905. package/utils/constants.android.d.ts +0 -1
  906. package/utils/constants.android.js +0 -2
  907. package/utils/constants.android.js.map +0 -1
  908. package/utils/constants.ios.d.ts +0 -1
  909. package/utils/constants.ios.js +0 -2
  910. package/utils/constants.ios.js.map +0 -1
  911. package/utils/debug.js +0 -61
  912. package/utils/debug.js.map +0 -1
  913. package/utils/index.android.d.ts +0 -24
  914. package/utils/index.android.js +0 -177
  915. package/utils/index.android.js.map +0 -1
  916. package/utils/index.ios.d.ts +0 -19
  917. package/utils/index.ios.js +0 -75
  918. package/utils/index.ios.js.map +0 -1
  919. package/utils/ios/index.d.ts +0 -39
  920. package/utils/ios/index.js +0 -257
  921. package/utils/ios/index.js.map +0 -1
  922. package/utils/layout-helper/index.android.d.ts +0 -24
  923. package/utils/layout-helper/index.android.js +0 -77
  924. package/utils/layout-helper/index.android.js.map +0 -1
  925. package/utils/layout-helper/index.ios.d.ts +0 -24
  926. package/utils/layout-helper/index.ios.js +0 -64
  927. package/utils/layout-helper/index.ios.js.map +0 -1
  928. package/utils/layout-helper/layout-helper-common.d.ts +0 -14
  929. package/utils/layout-helper/layout-helper-common.js +0 -57
  930. package/utils/layout-helper/layout-helper-common.js.map +0 -1
  931. package/utils/lazy.js +0 -5
  932. package/utils/lazy.js.map +0 -1
  933. package/utils/macrotask-scheduler.js +0 -26
  934. package/utils/macrotask-scheduler.js.map +0 -1
  935. package/utils/mainthread-helper.android.d.ts +0 -3
  936. package/utils/mainthread-helper.android.js +0 -28
  937. package/utils/mainthread-helper.android.js.map +0 -1
  938. package/utils/mainthread-helper.ios.d.ts +0 -3
  939. package/utils/mainthread-helper.ios.js +0 -17
  940. package/utils/mainthread-helper.ios.js.map +0 -1
  941. package/utils/module-merge.d.ts +0 -1
  942. package/utils/module-merge.js +0 -8
  943. package/utils/module-merge.js.map +0 -1
  944. package/utils/native-helper.android.d.ts +0 -10
  945. package/utils/native-helper.android.js +0 -139
  946. package/utils/native-helper.android.js.map +0 -1
  947. package/utils/native-helper.ios.d.ts +0 -10
  948. package/utils/native-helper.ios.js +0 -91
  949. package/utils/native-helper.ios.js.map +0 -1
  950. package/utils/number-utils.d.ts +0 -19
  951. package/utils/number-utils.js +0 -37
  952. package/utils/number-utils.js.map +0 -1
  953. package/utils/platform-check.d.ts +0 -4
  954. package/utils/platform-check.js +0 -21
  955. package/utils/platform-check.js.map +0 -1
  956. package/utils/types.js +0 -104
  957. package/utils/types.js.map +0 -1
  958. package/wgc/atob.d.ts +0 -1
  959. package/wgc/atob.js +0 -9
  960. package/wgc/atob.js.map +0 -1
  961. package/wgc/btoa.d.ts +0 -1
  962. package/wgc/btoa.js +0 -9
  963. package/wgc/btoa.js.map +0 -1
  964. package/wgc/crypto/SubtleCrypto.d.ts +0 -63
  965. package/wgc/crypto/SubtleCrypto.js +0 -551
  966. package/wgc/crypto/SubtleCrypto.js.map +0 -1
  967. package/wgc/crypto/index.d.ts +0 -8
  968. package/wgc/crypto/index.js +0 -31
  969. package/wgc/crypto/index.js.map +0 -1
  970. package/wgc/index.d.ts +0 -2
  971. package/wgc/index.js +0 -3
  972. package/wgc/index.js.map +0 -1
  973. package/xhr/index.d.ts +0 -107
  974. package/xhr/index.js +0 -472
  975. package/xhr/index.js.map +0 -1
  976. package/xml/index.js.map +0 -1
@@ -1,411 +0,0 @@
1
- let _wrappedIndex = 0;
2
- /**
3
- * Helper class that is used to fire property change even when real object is the same.
4
- * By default property change will not be fired for a same object.
5
- * By wrapping object into a WrappedValue instance `same object restriction` will be passed.
6
- */
7
- export class WrappedValue {
8
- /**
9
- * Creates an instance of WrappedValue object.
10
- * @param wrapped - the real value which should be wrapped.
11
- */
12
- constructor(
13
- /**
14
- * Property which holds the real value.
15
- */
16
- wrapped) {
17
- this.wrapped = wrapped;
18
- }
19
- /**
20
- * Gets the real value of previously wrappedValue.
21
- * @param value - Value that should be unwraped. If there is no wrappedValue property of the value object then value will be returned.
22
- */
23
- static unwrap(value) {
24
- return value instanceof WrappedValue ? value.wrapped : value;
25
- }
26
- /**
27
- * Returns an instance of WrappedValue. The actual instance is get from a WrappedValues pool.
28
- * @param value - Value that should be wrapped.
29
- */
30
- static wrap(value) {
31
- const w = _wrappedValues[_wrappedIndex++ % 5];
32
- w.wrapped = value;
33
- return w;
34
- }
35
- }
36
- const _wrappedValues = [new WrappedValue(null), new WrappedValue(null), new WrappedValue(null), new WrappedValue(null), new WrappedValue(null)];
37
- const _globalEventHandlers = {};
38
- /**
39
- * Observable is used when you want to be notified when a change occurs. Use on/off methods to add/remove listener.
40
- * Please note that should you be using the `new Observable({})` constructor, it is **obsolete** since v3.0,
41
- * and you have to migrate to the "data/observable" `fromObject({})` or the `fromObjectRecursive({})` functions.
42
- */
43
- export class Observable {
44
- constructor() {
45
- this._observers = {};
46
- }
47
- /**
48
- * Gets the value of the specified property.
49
- */
50
- get(name) {
51
- return this[name];
52
- }
53
- /**
54
- * Updates the specified property with the provided value.
55
- */
56
- set(name, value) {
57
- // TODO: Parameter validation
58
- const oldValue = this[name];
59
- if (this[name] === value) {
60
- return;
61
- }
62
- const newValue = WrappedValue.unwrap(value);
63
- this[name] = newValue;
64
- this.notifyPropertyChange(name, newValue, oldValue);
65
- }
66
- /**
67
- * Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name.
68
- */
69
- setProperty(name, value) {
70
- const oldValue = this[name];
71
- if (this[name] === value) {
72
- return;
73
- }
74
- this[name] = value;
75
- this.notifyPropertyChange(name, value, oldValue);
76
- const specificPropertyChangeEventName = name + 'Change';
77
- if (this.hasListeners(specificPropertyChangeEventName)) {
78
- const eventData = this._createPropertyChangeData(name, value, oldValue);
79
- eventData.eventName = specificPropertyChangeEventName;
80
- this.notify(eventData);
81
- }
82
- }
83
- /**
84
- * Adds a listener for the specified event name.
85
- *
86
- * @param eventName The name of the event.
87
- * @param callback The event listener to add. Will be called when an event of
88
- * the given name is raised.
89
- * @param thisArg An optional parameter which, when set, will be bound as the
90
- * `this` context when the callback is called. Falsy values will be not be
91
- * bound.
92
- */
93
- on(eventName, callback, thisArg) {
94
- this.addEventListener(eventName, callback, thisArg);
95
- }
96
- /**
97
- * Adds a listener for the specified event name, which, once fired, will
98
- * remove itself.
99
- *
100
- * @param eventName The name of the event.
101
- * @param callback The event listener to add. Will be called when an event of
102
- * the given name is raised.
103
- * @param thisArg An optional parameter which, when set, will be bound as the
104
- * `this` context when the callback is called. Falsy values will be not be
105
- * bound.
106
- */
107
- once(eventName, callback, thisArg) {
108
- this.addEventListener(eventName, callback, thisArg, true);
109
- }
110
- /**
111
- * Removes the listener(s) for the specified event name.
112
- *
113
- * @param eventName The name of the event.
114
- * @param callback An optional specific event listener to remove (if omitted,
115
- * all event listeners by this name will be removed).
116
- * @param thisArg An optional parameter which, when set, will be used to
117
- * refine search of the correct event listener to be removed.
118
- */
119
- off(eventName, callback, thisArg) {
120
- this.removeEventListener(eventName, callback, thisArg);
121
- }
122
- /**
123
- * Adds a listener for the specified event name.
124
- * @param eventName Name of the event to attach to.
125
- * @param callback A function to be called when some of the specified event(s) is raised.
126
- * @param thisArg An optional parameter which when set will be used as "this" in callback method call.
127
- */
128
- addEventListener(eventName, callback, thisArg, once = false) {
129
- thisArg = thisArg || undefined;
130
- if (typeof eventName !== 'string') {
131
- throw new TypeError('Event name must be a string.');
132
- }
133
- if (typeof callback !== 'function') {
134
- throw new TypeError('Callback, if provided, must be a function.');
135
- }
136
- const list = this._getEventList(eventName, true);
137
- if (Observable._indexOfListener(list, callback, thisArg) !== -1) {
138
- // Already added.
139
- return;
140
- }
141
- list.push({
142
- callback,
143
- thisArg,
144
- once,
145
- });
146
- }
147
- /**
148
- * Removes listener(s) for the specified event name.
149
- * @param event name of the event the specified listener is associated with.
150
- * @param callback An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed.
151
- * @param thisArg An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener.
152
- */
153
- removeEventListener(eventName, callback, thisArg) {
154
- if (typeof eventName !== 'string') {
155
- throw new TypeError('Events name(s) must be string.');
156
- }
157
- if (callback && typeof callback !== 'function') {
158
- throw new TypeError('callback must be function.');
159
- }
160
- const entries = this._observers[eventName];
161
- if (!entries) {
162
- return;
163
- }
164
- Observable.innerRemoveEventListener(entries, callback, thisArg);
165
- if (!entries.length) {
166
- // Clear all entries of this type
167
- delete this._observers[eventName];
168
- }
169
- }
170
- static on(eventName, callback, thisArg, once) {
171
- this.addEventListener(eventName, callback, thisArg, once);
172
- }
173
- static once(eventName, callback, thisArg) {
174
- this.addEventListener(eventName, callback, thisArg, true);
175
- }
176
- static off(eventName, callback, thisArg) {
177
- this.removeEventListener(eventName, callback, thisArg);
178
- }
179
- static innerRemoveEventListener(entries, callback, thisArg) {
180
- for (let i = 0; i < entries.length; i++) {
181
- const entry = entries[i];
182
- // If we have a `thisArg`, refine on both `callback` and `thisArg`.
183
- if (thisArg && (entry.callback !== callback || entry.thisArg !== thisArg)) {
184
- continue;
185
- }
186
- // If we don't have a `thisArg`, refine only on `callback`.
187
- if (callback && entry.callback !== callback) {
188
- continue;
189
- }
190
- // If we have neither `thisArg` nor `callback`, just remove all events
191
- // of this type regardless.
192
- entries.splice(i, 1);
193
- i--;
194
- }
195
- }
196
- static removeEventListener(eventName, callback, thisArg) {
197
- thisArg = thisArg || undefined;
198
- if (typeof eventName !== 'string') {
199
- throw new TypeError('Event name must be a string.');
200
- }
201
- if (callback && typeof callback !== 'function') {
202
- throw new TypeError('Callback, if provided, must be function.');
203
- }
204
- const eventClass = this.name === 'Observable' ? '*' : this.name;
205
- const entries = _globalEventHandlers?.[eventClass]?.[eventName];
206
- if (!entries) {
207
- return;
208
- }
209
- Observable.innerRemoveEventListener(entries, callback, thisArg);
210
- if (!entries.length) {
211
- // Clear all entries of this type
212
- delete _globalEventHandlers[eventClass][eventName];
213
- }
214
- // Clear the primary class grouping if no list are left
215
- const keys = Object.keys(_globalEventHandlers[eventClass]);
216
- if (keys.length === 0) {
217
- delete _globalEventHandlers[eventClass];
218
- }
219
- }
220
- static addEventListener(eventName, callback, thisArg, once) {
221
- once = once || undefined;
222
- thisArg = thisArg || undefined;
223
- if (typeof eventName !== 'string') {
224
- throw new TypeError('Event name must be a string.');
225
- }
226
- if (typeof callback !== 'function') {
227
- throw new TypeError('Callback must be a function.');
228
- }
229
- const eventClass = this.name === 'Observable' ? '*' : this.name;
230
- if (!_globalEventHandlers[eventClass]) {
231
- _globalEventHandlers[eventClass] = {};
232
- }
233
- if (!_globalEventHandlers[eventClass][eventName]) {
234
- _globalEventHandlers[eventClass][eventName] = [];
235
- }
236
- if (Observable._indexOfListener(_globalEventHandlers[eventClass][eventName], callback, thisArg) !== -1) {
237
- // Already added.
238
- return;
239
- }
240
- _globalEventHandlers[eventClass][eventName].push({ callback, thisArg, once });
241
- }
242
- _globalNotify(eventClass, eventType, data) {
243
- // Check for the Global handlers for JUST this class
244
- if (_globalEventHandlers[eventClass]) {
245
- const eventName = data.eventName + eventType;
246
- const entries = _globalEventHandlers[eventClass][eventName];
247
- if (entries) {
248
- Observable._handleEvent(entries, data);
249
- }
250
- }
251
- // Check for the Global handlers for ALL classes
252
- if (_globalEventHandlers['*']) {
253
- const eventName = data.eventName + eventType;
254
- const entries = _globalEventHandlers['*'][eventName];
255
- if (entries) {
256
- Observable._handleEvent(entries, data);
257
- }
258
- }
259
- }
260
- /**
261
- * Notify this Observable instance with some data. This causes all event
262
- * handlers on the Observable instance to be called, as well as any 'global'
263
- * event handlers set on the instance's class.
264
- *
265
- * @param data an object that satisfies the EventData interface, though with
266
- * an optional 'object' property. If left undefined, the 'object' property
267
- * will implicitly be set as this Observable instance.
268
- */
269
- notify(data) {
270
- data.object = data.object || this;
271
- const dataWithObject = data;
272
- // this._globalNotify(eventClass, 'First', dataWithObject);
273
- const observers = this._observers[data.eventName];
274
- if (observers) {
275
- Observable._handleEvent(observers, dataWithObject);
276
- }
277
- const eventClass = this.constructor.name;
278
- this._globalNotify(eventClass, '', dataWithObject);
279
- }
280
- static _handleEvent(observers, data) {
281
- if (!observers.length) {
282
- return;
283
- }
284
- for (let i = observers.length - 1; i >= 0; i--) {
285
- const entry = observers[i];
286
- if (!entry) {
287
- continue;
288
- }
289
- if (entry.once) {
290
- observers.splice(i, 1);
291
- }
292
- const returnValue = entry.thisArg ? entry.callback.apply(entry.thisArg, [data]) : entry.callback(data);
293
- // This ensures errors thrown inside asynchronous functions do not get swallowed
294
- if (returnValue instanceof Promise) {
295
- returnValue.catch((err) => {
296
- console.error(err);
297
- });
298
- }
299
- }
300
- }
301
- /**
302
- * Notifies all the registered listeners for the property change event.
303
- */
304
- notifyPropertyChange(name, value, oldValue) {
305
- this.notify(this._createPropertyChangeData(name, value, oldValue));
306
- }
307
- /**
308
- * Checks whether a listener is registered for the specified event name.
309
- * @param eventName The name of the event to check for.
310
- */
311
- hasListeners(eventName) {
312
- return eventName in this._observers;
313
- }
314
- /**
315
- * This method is intended to be overriden by inheritors to provide additional implementation.
316
- */
317
- _createPropertyChangeData(propertyName, value, oldValue) {
318
- return {
319
- eventName: Observable.propertyChangeEvent,
320
- object: this,
321
- propertyName,
322
- value,
323
- oldValue,
324
- };
325
- }
326
- _emit(eventName) {
327
- this.notify({ eventName, object: this });
328
- }
329
- _getEventList(eventName, createIfNeeded) {
330
- if (!eventName) {
331
- throw new TypeError('eventName must be a valid string.');
332
- }
333
- let list = this._observers[eventName];
334
- if (!list && createIfNeeded) {
335
- list = [];
336
- this._observers[eventName] = list;
337
- }
338
- return list;
339
- }
340
- static _indexOfListener(list, callback, thisArg) {
341
- thisArg = thisArg || undefined;
342
- return list.findIndex((entry) => entry.callback === callback && entry.thisArg === thisArg);
343
- }
344
- }
345
- /**
346
- * String value used when hooking to propertyChange event.
347
- */
348
- Observable.propertyChangeEvent = 'propertyChange';
349
- class ObservableFromObject extends Observable {
350
- constructor() {
351
- super(...arguments);
352
- this._map = {};
353
- }
354
- get(name) {
355
- return this._map[name];
356
- }
357
- /**
358
- * Updates the specified property with the provided value.
359
- */
360
- set(name, value) {
361
- const currentValue = this._map[name];
362
- if (currentValue === value) {
363
- return;
364
- }
365
- const newValue = WrappedValue.unwrap(value);
366
- this._map[name] = newValue;
367
- this.notifyPropertyChange(name, newValue, currentValue);
368
- }
369
- }
370
- function defineNewProperty(target, propertyName) {
371
- Object.defineProperty(target, propertyName, {
372
- get: function () {
373
- return target._map[propertyName];
374
- },
375
- set: function (value) {
376
- target.set(propertyName, value);
377
- },
378
- enumerable: true,
379
- configurable: true,
380
- });
381
- }
382
- function addPropertiesFromObject(observable, source, recursive = false) {
383
- Object.keys(source).forEach((prop) => {
384
- let value = source[prop];
385
- if (recursive && !Array.isArray(value) && value && typeof value === 'object' && !(value instanceof Observable)) {
386
- value = fromObjectRecursive(value);
387
- }
388
- defineNewProperty(observable, prop);
389
- observable.set(prop, value);
390
- });
391
- }
392
- /**
393
- * Creates an Observable instance and sets its properties according to the supplied JavaScript object.
394
- * param obj - A JavaScript object used to initialize nativescript Observable instance.
395
- */
396
- export function fromObject(source) {
397
- const observable = new ObservableFromObject();
398
- addPropertiesFromObject(observable, source, false);
399
- return observable;
400
- }
401
- /**
402
- * Creates an Observable instance and sets its properties according to the supplied JavaScript object.
403
- * This function will create new Observable for each nested object (expect arrays and functions) from supplied JavaScript object.
404
- * param obj - A JavaScript object used to initialize nativescript Observable instance.
405
- */
406
- export function fromObjectRecursive(source) {
407
- const observable = new ObservableFromObject();
408
- addPropertiesFromObject(observable, source, true);
409
- return observable;
410
- }
411
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/core/data/observable/index.ts"],"names":[],"mappings":"AA4CA,IAAI,aAAa,GAAG,CAAC,CAAC;AAEtB;;;;GAIG;AACH,MAAM,OAAO,YAAY;IACxB;;;OAGG;IACH;IACC;;OAEG;IACI,OAAY;QAAZ,YAAO,GAAP,OAAO,CAAK;IACjB,CAAC;IAEJ;;;OAGG;IACI,MAAM,CAAC,MAAM,CAAC,KAAU;QAC9B,OAAO,KAAK,YAAY,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,IAAI,CAAC,KAAU;QAC5B,MAAM,CAAC,GAAG,cAAc,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,CAAC;QAC9C,CAAC,CAAC,OAAO,GAAG,KAAK,CAAC;QAElB,OAAO,CAAC,CAAC;IACV,CAAC;CACD;AAED,MAAM,cAAc,GAAG,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,YAAY,CAAC,IA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U,CAAC,EAAE,CAAC;YAChH,KAAK,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;QACpC,CAAC;QAED,iBAAiB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACpC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,MAAW;IACrC,MAAM,UAAU,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC9C,uBAAuB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAEnD,OAAO,UAAU,CAAC;AACnB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAW;IAC9C,MAAM,UAAU,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC9C,uBAAuB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAElD,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -1,215 +0,0 @@
1
- import { Observable, EventData } from '../observable';
2
- export declare class ChangeType {
3
- static Add: string;
4
- static Delete: string;
5
- static Update: string;
6
- static Splice: string;
7
- static Change: string;
8
- }
9
- /**
10
- * Event args for "changed" event.
11
- */
12
- export interface ChangedData<T, U = Observable> extends EventData<U> {
13
- /**
14
- * Change type.
15
- */
16
- action: string;
17
- /**
18
- * Start index.
19
- */
20
- index: number;
21
- /**
22
- * Removed items.
23
- */
24
- removed: Array<T>;
25
- /**
26
- * Number of added items.
27
- */
28
- addedCount: number;
29
- }
30
- /**
31
- * Advanced array like class used when you want to be notified when a change occurs.
32
- */
33
- export declare class ObservableArray<T> extends Observable {
34
- /**
35
- * String value used when hooking to change event.
36
- */
37
- static changeEvent: string;
38
- private _array;
39
- private _addArgs;
40
- private _deleteArgs;
41
- /**
42
- * Create ObservableArray<T> with specified length.
43
- */
44
- constructor(arrayLength?: number);
45
- /**
46
- * Create ObservableArray<T> from source Array<T>.
47
- */
48
- constructor(items: T[]);
49
- /**
50
- * Create ObservableArray<T> from T items.
51
- */
52
- constructor(...items: T[]);
53
- [Symbol.iterator](): Generator<T, void, unknown>;
54
- /**
55
- * Returns item at specified position.
56
- * Supports relative indexing from the end of the array when passed a negative index.
57
- */
58
- getItem(pos: number): T;
59
- /**
60
- * Sets item at specified position.
61
- * Supports relative indexing from the end of the array when passed a negative index.
62
- */
63
- setItem(pos: number, value: T): void;
64
- /**
65
- * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
66
- */
67
- get length(): number;
68
- set length(value: number);
69
- toJSON(): Array<any>;
70
- /**
71
- * Returns a string representation of an array.
72
- */
73
- toString(): string;
74
- toLocaleString(): string;
75
- /**
76
- * Combines two or more arrays.
77
- * @param items Additional items to add to the end of array1.
78
- */
79
- concat(...args: any[]): ObservableArray<T>;
80
- /**
81
- * Adds all the elements of an array separated by the specified separator string.
82
- * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
83
- */
84
- join(separator?: string): string;
85
- /**
86
- * Removes the last element from an array and returns it.
87
- */
88
- pop(): T;
89
- /**
90
- * Appends new elements to an array, and returns the new length of the array.
91
- * @param item New element of the Array.
92
- */
93
- push(...args: T[]): number;
94
- _notifyLengthChange(): void;
95
- /**
96
- * Reverses the elements in an Array.
97
- * This method uses 'in place' algorithm.
98
- */
99
- reverse(): ObservableArray<T>;
100
- /**
101
- * Removes the first element from an array and returns it.
102
- */
103
- shift(): T;
104
- /**
105
- * Returns a section of an array.
106
- * @param start The beginning of the specified portion of the array.
107
- * @param end The end of the specified portion of the array.
108
- */
109
- slice(start?: number, end?: number): ObservableArray<T>;
110
- /**
111
- * Sorts an array.
112
- * This method uses 'in place' algorithm.
113
- * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.
114
- */
115
- sort(compareFn?: (a: T, b: T) => number): ObservableArray<T>;
116
- /**
117
- * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
118
- * This method uses 'in place' algorithm.
119
- * @param start The zero-based location in the array from which to start removing elements.
120
- * @param deleteCount The number of elements to remove.
121
- * @param items Elements to insert into the array in place of the deleted elements.
122
- */
123
- splice(start: number, deleteCount?: number, ...items: T[]): ObservableArray<T>;
124
- /**
125
- * Inserts new elements at the start of an array.
126
- * @param items Elements to insert at the start of the Array.
127
- */
128
- unshift(...args: T[]): number;
129
- /**
130
- * Returns the first element in the array where predicate is true, and null otherwise.
131
- * @param callbackfn
132
- * @param thisArg If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
133
- */
134
- find(callbackfn: (value: T, index: number, array: ObservableArray<T>) => any, thisArg?: any): T;
135
- /**
136
- * Returns the index of the first element in the array where predicate is true, and -1 otherwise.
137
- * @param callbackfn
138
- * @param thisArg If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
139
- */
140
- findIndex(callbackfn: (value: T, index: number, array: ObservableArray<T>) => any, thisArg?: any): number;
141
- /**
142
- * Determines whether the specified element exists inside the array.
143
- * @param searchElement The value to locate in the array.
144
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
145
- */
146
- includes(searchElement: T, fromIndex?: number): boolean;
147
- /**
148
- * Returns the index of the first occurrence of a value in an array.
149
- * @param searchElement The value to locate in the array.
150
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
151
- */
152
- indexOf(searchElement: T, fromIndex?: number): number;
153
- /**
154
- * Returns the index of the last occurrence of a specified value in an array.
155
- * @param searchElement The value to locate in the array.
156
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
157
- */
158
- lastIndexOf(searchElement: T, fromIndex?: number): number;
159
- /**
160
- * Determines whether all the members of an array satisfy the specified test.
161
- * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array.
162
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
163
- */
164
- every(callbackfn: (value: T, index: number, array: ObservableArray<T>) => boolean, thisArg?: any): boolean;
165
- /**
166
- * Determines whether the specified callback function returns true for any element of an array.
167
- * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array.
168
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
169
- */
170
- some(callbackfn: (value: T, index: number, array: ObservableArray<T>) => boolean, thisArg?: any): boolean;
171
- /**
172
- * Performs the specified action for each element in an array.
173
- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
174
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
175
- */
176
- forEach(callbackfn: (value: T, index: number, array: ObservableArray<T>) => void, thisArg?: any): void;
177
- /**
178
- * Calls a defined callback function on each element of an array, and returns an array that contains the results.
179
- * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
180
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
181
- */
182
- map<U>(callbackfn: (value: T, index: number, array: ObservableArray<T>) => U, thisArg?: any): ObservableArray<U>;
183
- /**
184
- * Returns the elements of an array that meet the condition specified in a callback function.
185
- * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
186
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
187
- */
188
- filter(callbackfn: (value: T, index: number, array: ObservableArray<T>) => boolean, thisArg?: any): ObservableArray<T>;
189
- /**
190
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
191
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
192
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
193
- */
194
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ObservableArray<T>) => T, initialValue?: T): T;
195
- /**
196
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
197
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
198
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
199
- */
200
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ObservableArray<T>) => T, initialValue?: T): T;
201
- }
202
- export interface ObservableArray<T> {
203
- /**
204
- * Adds a listener for the specified event name.
205
- *
206
- * @param eventName The name of the event.
207
- * @param callback The event listener to add. Will be called when an event of
208
- * the given name is raised.
209
- * @param thisArg An optional parameter which, when set, will be bound as the
210
- * `this` context when the callback is called. Falsy values will be not be
211
- * bound.
212
- */
213
- on(eventName: string, callback: (data: EventData) => void, thisArg?: any): void;
214
- on(event: 'change', callback: (args: ChangedData<T>) => void, thisArg?: any): void;
215
- }