@nstudio/nativescript-compiler 0.0.0-stage → 9.2.0-alpha.10

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 (1610) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +72 -2
  3. package/bin/build-dist.mjs +145 -0
  4. package/bin/ns-compiled-adapter.js +46 -0
  5. package/bin/ns-compiled-doctor.js +15 -0
  6. package/bin/ns-compiled-retrace.js +16 -0
  7. package/bin/ns-compiled-verify.js +15 -0
  8. package/bin/ns-compiled.js +26 -0
  9. package/bin/strip-types.js +18 -0
  10. package/config.d.ts +41 -0
  11. package/dist/adapters/active.js +59 -0
  12. package/dist/adapters/first-party.js +12 -0
  13. package/dist/adapters/framework.js +135 -0
  14. package/dist/adapters/hooks.js +115 -0
  15. package/dist/adapters/load.js +188 -0
  16. package/dist/api/adapter-api.js +2 -0
  17. package/dist/api/binding-api.js +11 -0
  18. package/dist/api/elements.js +21 -0
  19. package/dist/api/ir.js +29 -0
  20. package/dist/api/listview.js +27 -0
  21. package/dist/api/rewrite.js +98 -0
  22. package/dist/api/typescript-internal.d.ts +35 -0
  23. package/dist/cli/commands/compile-android.cjs +79 -0
  24. package/dist/cli/commands/compile-doctor.cjs +45 -0
  25. package/dist/cli/commands/compile-ios.cjs +77 -0
  26. package/dist/cli/commands/compile-retrace.cjs +40 -0
  27. package/dist/cli/commands/compile-verify.cjs +73 -0
  28. package/dist/cli/contracts.cjs +36 -0
  29. package/dist/cli/runtime.cjs +166 -0
  30. package/dist/css/css.js +118 -0
  31. package/dist/css/worker.js +242 -0
  32. package/dist/driver/cli.js +95 -0
  33. package/dist/driver/compile.js +571 -0
  34. package/dist/driver/contract.js +136 -0
  35. package/dist/driver/mirror.js +71 -0
  36. package/dist/driver/paths.js +19 -0
  37. package/dist/driver/preflight.js +206 -0
  38. package/dist/driver/toolchain.js +46 -0
  39. package/dist/driver/unimplemented.js +326 -0
  40. package/dist/kit/core-source.js +107 -0
  41. package/dist/kit/kit-index.js +105 -0
  42. package/dist/kit/manifest.js +468 -0
  43. package/dist/kit/overlay.js +56 -0
  44. package/dist/kit/swift-declarations.js +643 -0
  45. package/dist/kotlin/access.js +635 -0
  46. package/dist/kotlin/app-modules.js +111 -0
  47. package/dist/kotlin/arguments.js +398 -0
  48. package/dist/kotlin/assignment.js +226 -0
  49. package/dist/kotlin/builtins.js +575 -0
  50. package/dist/kotlin/calls.js +519 -0
  51. package/dist/kotlin/checked.js +61 -0
  52. package/dist/kotlin/class-accessors.js +129 -0
  53. package/dist/kotlin/class-constructor.js +129 -0
  54. package/dist/kotlin/class-declaration.js +337 -0
  55. package/dist/kotlin/class-fields.js +362 -0
  56. package/dist/kotlin/class-methods.js +213 -0
  57. package/dist/kotlin/classes.js +333 -0
  58. package/dist/kotlin/components.js +450 -0
  59. package/dist/kotlin/construction.js +235 -0
  60. package/dist/kotlin/control-flow.js +188 -0
  61. package/dist/kotlin/conversion.js +513 -0
  62. package/dist/kotlin/core-api.js +762 -0
  63. package/dist/kotlin/core-index.js +228 -0
  64. package/dist/kotlin/declarations.js +461 -0
  65. package/dist/kotlin/diagnostics.js +28 -0
  66. package/dist/kotlin/expression-statements.js +227 -0
  67. package/dist/kotlin/expressions.js +468 -0
  68. package/dist/kotlin/functions.js +479 -0
  69. package/dist/kotlin/global-calls.js +307 -0
  70. package/dist/kotlin/install.js +89 -0
  71. package/dist/kotlin/key-plans.js +117 -0
  72. package/dist/kotlin/kit-gen.js +581 -0
  73. package/dist/kotlin/ktfmt.js +60 -0
  74. package/dist/kotlin/library.js +62 -0
  75. package/dist/kotlin/literals.js +593 -0
  76. package/dist/kotlin/loops.js +185 -0
  77. package/dist/kotlin/mixins.js +103 -0
  78. package/dist/kotlin/modules.js +769 -0
  79. package/dist/kotlin/names.js +273 -0
  80. package/dist/kotlin/narrowing.js +180 -0
  81. package/dist/kotlin/native/api.js +117 -0
  82. package/dist/kotlin/native/bridging.js +254 -0
  83. package/dist/kotlin/native/calls.js +408 -0
  84. package/dist/kotlin/native/classfiles.js +524 -0
  85. package/dist/kotlin/native/classpath.js +32 -0
  86. package/dist/kotlin/native/conversions.js +280 -0
  87. package/dist/kotlin/native/extend.js +302 -0
  88. package/dist/kotlin/native/members.js +240 -0
  89. package/dist/kotlin/native/overloads.js +253 -0
  90. package/dist/kotlin/native/subclasses.js +378 -0
  91. package/dist/kotlin/native/types.js +421 -0
  92. package/dist/kotlin/operators.js +449 -0
  93. package/dist/kotlin/optional-chains.js +279 -0
  94. package/dist/kotlin/overrides.js +835 -0
  95. package/dist/kotlin/placement.js +749 -0
  96. package/dist/kotlin/prototype-calls.js +154 -0
  97. package/dist/kotlin/render.js +363 -0
  98. package/dist/kotlin/state-backend.js +123 -0
  99. package/dist/kotlin/statements.js +426 -0
  100. package/dist/kotlin/static-calls.js +296 -0
  101. package/dist/kotlin/syntax.js +689 -0
  102. package/dist/kotlin/translator-types.js +1 -0
  103. package/dist/kotlin/translator.js +810 -0
  104. package/dist/kotlin/type-facts.js +414 -0
  105. package/dist/kotlin/type-tests.js +250 -0
  106. package/dist/kotlin/types.js +662 -0
  107. package/dist/kotlin/untyped-values.js +356 -0
  108. package/dist/plugins/bindings-android.js +69 -0
  109. package/dist/plugins/bindings.js +93 -0
  110. package/dist/plugins/native-android.js +582 -0
  111. package/dist/plugins/native-ios.js +632 -0
  112. package/dist/plugins/resolve.js +108 -0
  113. package/dist/plugins/source.js +1124 -0
  114. package/dist/program/app-modules.js +52 -0
  115. package/dist/program/app-paths.js +60 -0
  116. package/dist/program/build-caches.js +14 -0
  117. package/dist/program/build-context.js +48 -0
  118. package/dist/program/constructor-factories.js +134 -0
  119. package/dist/program/core-facts.js +151 -0
  120. package/dist/program/core-patches.js +59 -0
  121. package/dist/program/env.js +4 -0
  122. package/dist/program/module-order.js +123 -0
  123. package/dist/program/order.js +23 -0
  124. package/dist/program/patterns.js +99 -0
  125. package/dist/program/platform.js +401 -0
  126. package/dist/program/program.js +726 -0
  127. package/dist/program/properties.js +61 -0
  128. package/dist/program/reach.js +444 -0
  129. package/dist/program/source-lines.js +268 -0
  130. package/dist/program/stable-names.js +112 -0
  131. package/dist/semantics/apis/api.js +31 -0
  132. package/dist/semantics/apis/array.js +69 -0
  133. package/dist/semantics/apis/bigint.js +53 -0
  134. package/dist/semantics/apis/console.js +29 -0
  135. package/dist/semantics/apis/date.js +7 -0
  136. package/dist/semantics/apis/globals.js +40 -0
  137. package/dist/semantics/apis/json.js +6 -0
  138. package/dist/semantics/apis/mapset.js +21 -0
  139. package/dist/semantics/apis/math.js +48 -0
  140. package/dist/semantics/apis/number.js +33 -0
  141. package/dist/semantics/apis/object.js +25 -0
  142. package/dist/semantics/apis/operators.js +316 -0
  143. package/dist/semantics/apis/promise.js +22 -0
  144. package/dist/semantics/apis/regexp.js +15 -0
  145. package/dist/semantics/apis/statics.js +61 -0
  146. package/dist/semantics/apis/string.js +45 -0
  147. package/dist/semantics/ast.js +315 -0
  148. package/dist/semantics/async.js +582 -0
  149. package/dist/semantics/class-plan.js +168 -0
  150. package/dist/semantics/classes.js +562 -0
  151. package/dist/semantics/config.js +29 -0
  152. package/dist/semantics/constant-init.js +107 -0
  153. package/dist/semantics/conversion.js +255 -0
  154. package/dist/semantics/decision-trace.js +304 -0
  155. package/dist/semantics/facts.js +433 -0
  156. package/dist/semantics/forms/by-name.js +338 -0
  157. package/dist/semantics/forms/flow.js +336 -0
  158. package/dist/semantics/forms/forms.js +311 -0
  159. package/dist/semantics/forms/observers.js +513 -0
  160. package/dist/semantics/forms/open.js +218 -0
  161. package/dist/semantics/forms/place-calls.js +387 -0
  162. package/dist/semantics/forms/placements.js +296 -0
  163. package/dist/semantics/forms/results.js +307 -0
  164. package/dist/semantics/forms/union-find.js +157 -0
  165. package/dist/semantics/globals.js +46 -0
  166. package/dist/semantics/lang/arrays.js +238 -0
  167. package/dist/semantics/lang/fields.js +211 -0
  168. package/dist/semantics/lang/members.js +277 -0
  169. package/dist/semantics/lang/prototypes.js +262 -0
  170. package/dist/semantics/lang/this-args.js +189 -0
  171. package/dist/semantics/lang.js +232 -0
  172. package/dist/semantics/ledger.js +157 -0
  173. package/dist/semantics/limits.js +11 -0
  174. package/dist/semantics/losses.js +201 -0
  175. package/dist/semantics/lowering-methods.js +42 -0
  176. package/dist/semantics/marks.js +39 -0
  177. package/dist/semantics/nullish.js +918 -0
  178. package/dist/semantics/observers.js +1 -0
  179. package/dist/semantics/placement.js +698 -0
  180. package/dist/semantics/platform-globals.js +20 -0
  181. package/dist/semantics/read-sites.js +29 -0
  182. package/dist/semantics/refusals.js +206 -0
  183. package/dist/semantics/refuse-construction.js +64 -0
  184. package/dist/semantics/refuse-receivers.js +189 -0
  185. package/dist/semantics/refuse-scope.js +82 -0
  186. package/dist/semantics/regexp.js +219 -0
  187. package/dist/semantics/result-shapes.js +203 -0
  188. package/dist/semantics/runtime.js +482 -0
  189. package/dist/semantics/shape-defined-keys.js +146 -0
  190. package/dist/semantics/shape-instance-keys.js +230 -0
  191. package/dist/semantics/shape-map.js +72 -0
  192. package/dist/semantics/shapes.js +660 -0
  193. package/dist/semantics/sharing.js +406 -0
  194. package/dist/semantics/signals.js +166 -0
  195. package/dist/semantics/spelled.js +45 -0
  196. package/dist/semantics/states/by-name.js +46 -0
  197. package/dist/semantics/states/elements.js +310 -0
  198. package/dist/semantics/states/fields.js +308 -0
  199. package/dist/semantics/states/foreign.js +208 -0
  200. package/dist/semantics/states/lenient.js +246 -0
  201. package/dist/semantics/states/missing.js +289 -0
  202. package/dist/semantics/states/nil.js +223 -0
  203. package/dist/semantics/states/parameters.js +191 -0
  204. package/dist/semantics/states/predicates.js +232 -0
  205. package/dist/semantics/states/reads.js +247 -0
  206. package/dist/semantics/states/results.js +113 -0
  207. package/dist/semantics/states/untrusted.js +141 -0
  208. package/dist/semantics/states/untyped.js +194 -0
  209. package/dist/semantics/states/value-states.js +422 -0
  210. package/dist/semantics/tdz.js +106 -0
  211. package/dist/semantics/threading.js +77 -0
  212. package/dist/semantics/throws.js +880 -0
  213. package/dist/semantics/top-names.js +59 -0
  214. package/dist/semantics/translator-methods.js +602 -0
  215. package/dist/semantics/trust.js +321 -0
  216. package/dist/semantics/type-methods.js +168 -0
  217. package/dist/semantics/type-step.js +116 -0
  218. package/dist/semantics/types.js +458 -0
  219. package/dist/semantics/worker-state.js +198 -0
  220. package/dist/swift/access.js +754 -0
  221. package/dist/swift/app-modules.js +41 -0
  222. package/dist/swift/arguments.js +237 -0
  223. package/dist/swift/assignment.js +270 -0
  224. package/dist/swift/availability.js +146 -0
  225. package/dist/swift/builtins.js +822 -0
  226. package/dist/swift/calls.js +493 -0
  227. package/dist/swift/casts.js +218 -0
  228. package/dist/swift/checked.js +433 -0
  229. package/dist/swift/class-accessors.js +139 -0
  230. package/dist/swift/class-constructor.js +144 -0
  231. package/dist/swift/class-declaration.js +308 -0
  232. package/dist/swift/class-fields.js +361 -0
  233. package/dist/swift/class-methods.js +247 -0
  234. package/dist/swift/classes.js +524 -0
  235. package/dist/swift/components.js +386 -0
  236. package/dist/swift/construction.js +291 -0
  237. package/dist/swift/control-flow.js +210 -0
  238. package/dist/swift/conversion.js +425 -0
  239. package/dist/swift/core-api.js +1068 -0
  240. package/dist/swift/declarations.js +389 -0
  241. package/dist/swift/enums.js +58 -0
  242. package/dist/swift/expression-statements.js +312 -0
  243. package/dist/swift/expressions.js +575 -0
  244. package/dist/swift/from-any.js +316 -0
  245. package/dist/swift/functions.js +498 -0
  246. package/dist/swift/generics.js +124 -0
  247. package/dist/swift/global-calls.js +217 -0
  248. package/dist/swift/install.js +109 -0
  249. package/dist/swift/key-plans.js +136 -0
  250. package/dist/swift/kit-gen.js +605 -0
  251. package/dist/swift/lenient.js +468 -0
  252. package/dist/swift/library.js +109 -0
  253. package/dist/swift/literals.js +509 -0
  254. package/dist/swift/loops.js +245 -0
  255. package/dist/swift/marks.js +212 -0
  256. package/dist/swift/members.js +253 -0
  257. package/dist/swift/method-values.js +179 -0
  258. package/dist/swift/mixins.js +113 -0
  259. package/dist/swift/modules.js +969 -0
  260. package/dist/swift/names.js +370 -0
  261. package/dist/swift/narrowing.js +170 -0
  262. package/dist/swift/native/api.js +269 -0
  263. package/dist/swift/native/bridging.js +240 -0
  264. package/dist/swift/native/calls.js +586 -0
  265. package/dist/swift/native/conversions.js +532 -0
  266. package/dist/swift/native/dispatch.js +218 -0
  267. package/dist/swift/native/members.js +416 -0
  268. package/dist/swift/native/sdk-tables.js +772 -0
  269. package/dist/swift/native/sdk-types.js +1 -0
  270. package/dist/swift/native/sdk.js +409 -0
  271. package/dist/swift/native/subclasses.js +533 -0
  272. package/dist/swift/object-classes.js +396 -0
  273. package/dist/swift/operators.js +575 -0
  274. package/dist/swift/optional-chains.js +405 -0
  275. package/dist/swift/parameters.js +210 -0
  276. package/dist/swift/placement.js +900 -0
  277. package/dist/swift/protocols.js +164 -0
  278. package/dist/swift/prototype-calls.js +227 -0
  279. package/dist/swift/render.js +385 -0
  280. package/dist/swift/results.js +370 -0
  281. package/dist/swift/state-backend.js +243 -0
  282. package/dist/swift/statements.js +505 -0
  283. package/dist/swift/static-calls.js +320 -0
  284. package/dist/swift/syntax.js +916 -0
  285. package/dist/swift/translator-types.js +1 -0
  286. package/dist/swift/translator.js +890 -0
  287. package/dist/swift/type-facts.js +530 -0
  288. package/dist/swift/type-tests.js +211 -0
  289. package/dist/swift/types.js +665 -0
  290. package/dist/targets/android/build.js +598 -0
  291. package/dist/targets/android/compose-mapping.js +218 -0
  292. package/dist/targets/android/deprecations.js +81 -0
  293. package/dist/targets/android/resources.js +80 -0
  294. package/dist/targets/ios/build.js +583 -0
  295. package/dist/targets/ios/core-native.js +149 -0
  296. package/dist/targets/ios/dependencies.js +464 -0
  297. package/dist/targets/ios/plist.js +127 -0
  298. package/dist/targets/ios/resources.js +285 -0
  299. package/dist/targets/ios/retrace.js +196 -0
  300. package/dist/targets/ios/signing.js +84 -0
  301. package/dist/targets/ios/xcodegen.js +39 -0
  302. package/dist/targets/resources.js +180 -0
  303. package/dist/template/model.js +38 -0
  304. package/dist/template/plan.js +576 -0
  305. package/dist/tools/doctor.js +172 -0
  306. package/dist/tools/retrace.js +116 -0
  307. package/dist/tools/verify.js +330 -0
  308. package/dist/types/adapter-api.d.ts +683 -0
  309. package/dist/types/binding-api.d.ts +48 -0
  310. package/dist/types/elements.d.ts +10 -0
  311. package/dist/types/ir.d.ts +245 -0
  312. package/dist/types/listview.d.ts +15 -0
  313. package/dist/types/rewrite.d.ts +18 -0
  314. package/dist/types/typescript-internal.d.ts +35 -0
  315. package/dist/xml/app.js +65 -0
  316. package/dist/xml/bindings.js +308 -0
  317. package/dist/xml/contexts.js +296 -0
  318. package/dist/xml/fold.js +170 -0
  319. package/dist/xml/keys.js +146 -0
  320. package/dist/xml/pages.js +550 -0
  321. package/dist/xml/plan.js +650 -0
  322. package/docs/CLI.md +131 -0
  323. package/docs/cli/compile-android.md +30 -0
  324. package/docs/cli/compile-doctor.md +18 -0
  325. package/docs/cli/compile-ios.md +30 -0
  326. package/docs/cli/compile-retrace.md +18 -0
  327. package/docs/cli/compile-verify.md +18 -0
  328. package/docs/cli/compile.md +15 -0
  329. package/kit-android/build.gradle.kts +65 -0
  330. package/kit-android/consumer-rules.pro +7 -0
  331. package/kit-android/generated/kotlin/org/nativescript/kit/__Exports.kt +966 -0
  332. package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +125 -0
  333. package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +39497 -0
  334. package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_abortsignal.kt +101 -0
  335. package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_index.kt +109 -0
  336. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +547 -0
  337. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_properties.kt +263 -0
  338. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_index.kt +6 -0
  339. package/kit-android/generated/kotlin/org/nativescript/kit/application_application.kt +2656 -0
  340. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +1932 -0
  341. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_interfaces.kt +6 -0
  342. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_shims.kt +111 -0
  343. package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers.kt +198 -0
  344. package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +270 -0
  345. package/kit-android/generated/kotlin/org/nativescript/kit/application_index.kt +6 -0
  346. package/kit-android/generated/kotlin/org/nativescript/kit/application_scene_delegate_bridge.kt +233 -0
  347. package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_application_settings_common.kt +28 -0
  348. package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_index.kt +188 -0
  349. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_common.kt +707 -0
  350. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_types.kt +6 -0
  351. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +368 -0
  352. package/kit-android/generated/kotlin/org/nativescript/kit/color_index.kt +37 -0
  353. package/kit-android/generated/kotlin/org/nativescript/kit/color_known_colors.kt +418 -0
  354. package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.FragmentClass.kt +287 -0
  355. package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.NativeScriptActivity.kt +263 -0
  356. package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.OnBackPressedCallback.kt +116 -0
  357. package/kit-android/generated/kotlin/org/nativescript/kit/connectivity_index.kt +289 -0
  358. package/kit-android/generated/kotlin/org/nativescript/kit/core_types_animation_types.kt +56 -0
  359. package/kit-android/generated/kotlin/org/nativescript/kit/core_types_index.kt +427 -0
  360. package/kit-android/generated/kotlin/org/nativescript/kit/core_types_validators.kt +34 -0
  361. package/kit-android/generated/kotlin/org/nativescript/kit/css_CSS3Parser.kt +954 -0
  362. package/kit-android/generated/kotlin/org/nativescript/kit/css_CSSNativeScript.kt +205 -0
  363. package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +270 -0
  364. package/kit-android/generated/kotlin/org/nativescript/kit/css_parser.kt +885 -0
  365. package/kit-android/generated/kotlin/org/nativescript/kit/css_system_classes.kt +98 -0
  366. package/kit-android/generated/kotlin/org/nativescript/kit/css_value_reworkcss_value.kt +214 -0
  367. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +798 -0
  368. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +1175 -0
  369. package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +271 -0
  370. package/kit-android/generated/kotlin/org/nativescript/kit/file_system_file_system_access.kt +3828 -0
  371. package/kit-android/generated/kotlin/org/nativescript/kit/file_system_index.kt +1669 -0
  372. package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_fps_native.kt +177 -0
  373. package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_index.kt +93 -0
  374. package/kit-android/generated/kotlin/org/nativescript/kit/globals_global_utils.kt +185 -0
  375. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_interfaces.kt +14 -0
  376. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_http_request_common.kt +41 -0
  377. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +119 -0
  378. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +61 -0
  379. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +237 -0
  380. package/kit-android/generated/kotlin/org/nativescript/kit/http_index.kt +155 -0
  381. package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_image_asset_common.kt +201 -0
  382. package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_index.kt +119 -0
  383. package/kit-android/generated/kotlin/org/nativescript/kit/image_source_image_source_common.kt +26 -0
  384. package/kit-android/generated/kotlin/org/nativescript/kit/image_source_index.kt +846 -0
  385. package/kit-android/generated/kotlin/org/nativescript/kit/js_libs_easysax_easysax.kt +1045 -0
  386. package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +166 -0
  387. package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +391 -0
  388. package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_helpers.kt +45 -0
  389. package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_index.kt +185 -0
  390. package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_non_bundle_workflow_compat.kt +262 -0
  391. package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_qualifier_matcher_index.kt +305 -0
  392. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_index.kt +6 -0
  393. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window.kt +397 -0
  394. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_common.kt +685 -0
  395. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_interfaces.kt +51 -0
  396. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_window_base.kt +223 -0
  397. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_index.kt +4 -0
  398. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +755 -0
  399. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_stringify.kt +212 -0
  400. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_types.kt +65 -0
  401. package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptComponentCallbacks.kt +57 -0
  402. package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +579 -0
  403. package/kit-android/generated/kotlin/org/nativescript/kit/platform_common.kt +20 -0
  404. package/kit-android/generated/kotlin/org/nativescript/kit/platform_device_index.kt +251 -0
  405. package/kit-android/generated/kotlin/org/nativescript/kit/platform_index.kt +6 -0
  406. package/kit-android/generated/kotlin/org/nativescript/kit/platform_screen_index.kt +183 -0
  407. package/kit-android/generated/kotlin/org/nativescript/kit/profiling_index.kt +485 -0
  408. package/kit-android/generated/kotlin/org/nativescript/kit/text_formatted_string.kt +6 -0
  409. package/kit-android/generated/kotlin/org/nativescript/kit/text_index.kt +15 -0
  410. package/kit-android/generated/kotlin/org/nativescript/kit/text_span.kt +6 -0
  411. package/kit-android/generated/kotlin/org/nativescript/kit/text_text_common.kt +277 -0
  412. package/kit-android/generated/kotlin/org/nativescript/kit/trace_index.kt +480 -0
  413. package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_action_bar_common.kt +1081 -0
  414. package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_index.kt +1207 -0
  415. package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_activity_indicator_common.kt +89 -0
  416. package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_index.kt +171 -0
  417. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_common.kt +518 -0
  418. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_shared.kt +6 -0
  419. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_types.kt +6 -0
  420. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_index.kt +1539 -0
  421. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_keyframe_animation.kt +1081 -0
  422. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_binding_builder.kt +369 -0
  423. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_component_builder_index.kt +487 -0
  424. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +1938 -0
  425. package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_button_common.kt +70 -0
  426. package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_index.kt +367 -0
  427. package/kit-android/generated/kotlin/org/nativescript/kit/ui_content_view_index.kt +220 -0
  428. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_expressions.kt +735 -0
  429. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_resources.kt +17 -0
  430. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_types.kt +6 -0
  431. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +4970 -0
  432. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1342 -0
  433. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_control_state_change_index.kt +52 -0
  434. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +3578 -0
  435. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_property_shared.kt +44 -0
  436. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +3261 -0
  437. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_utils.kt +16 -0
  438. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_index.kt +4716 -0
  439. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_overflow_edges.kt +82 -0
  440. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_common.kt +3597 -0
  441. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_index.kt +134 -0
  442. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_common.kt +360 -0
  443. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_shared.kt +6 -0
  444. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_interfaces.kt +349 -0
  445. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +266 -0
  446. package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_date_picker_common.kt +369 -0
  447. package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_index.kt +427 -0
  448. package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_dialogs_common.kt +428 -0
  449. package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_index.kt +689 -0
  450. package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_editable_text_base_common.kt +421 -0
  451. package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_index.kt +1140 -0
  452. package/kit-android/generated/kotlin/org/nativescript/kit/ui_embedding_index.kt +34 -0
  453. package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_enums.kt +6 -0
  454. package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_index.kt +6 -0
  455. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_activity.kt +210 -0
  456. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment.kt +88 -0
  457. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions.kt +1544 -0
  458. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions_types.kt +25 -0
  459. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_common.kt +1350 -0
  460. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_constants.kt +10 -0
  461. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helper_for_android.kt +615 -0
  462. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helpers.kt +42 -0
  463. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_interfaces.kt +22 -0
  464. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_stack.kt +112 -0
  465. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_index.kt +1890 -0
  466. package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_common.kt +208 -0
  467. package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_types.kt +348 -0
  468. package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_index.kt +1785 -0
  469. package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_touch_manager.kt +288 -0
  470. package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_html_view_common.kt +121 -0
  471. package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_index.kt +283 -0
  472. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_image_cache_common.kt +450 -0
  473. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_index.kt +225 -0
  474. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_image_common.kt +574 -0
  475. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_index.kt +493 -0
  476. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects.kt +31 -0
  477. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects_common.kt +138 -0
  478. package/kit-android/generated/kotlin/org/nativescript/kit/ui_label_index.kt +108 -0
  479. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_absolute_layout_common.kt +167 -0
  480. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_index.kt +94 -0
  481. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_dock_layout_common.kt +157 -0
  482. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_index.kt +124 -0
  483. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_flexbox_layout_common.kt +1004 -0
  484. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_index.kt +675 -0
  485. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_grid_layout_common.kt +1011 -0
  486. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_index.kt +450 -0
  487. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_index.kt +6 -0
  488. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base.kt +123 -0
  489. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base_common.kt +442 -0
  490. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_index.kt +25 -0
  491. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_liquid_glass_container_common.kt +38 -0
  492. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_index.kt +30 -0
  493. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_liquid_glass_common.kt +25 -0
  494. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_index.kt +556 -0
  495. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_common.kt +930 -0
  496. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_stack.kt +49 -0
  497. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_index.kt +63 -0
  498. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_stack_layout_common.kt +83 -0
  499. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_index.kt +106 -0
  500. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_wrap_layout_common.kt +185 -0
  501. package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_index.kt +400 -0
  502. package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_list_picker_common.kt +260 -0
  503. package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_index.kt +2406 -0
  504. package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_list_view_common.kt +912 -0
  505. package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_events.kt +17 -0
  506. package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_index.kt +241 -0
  507. package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_page_common.kt +449 -0
  508. package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_index.kt +61 -0
  509. package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_placeholder_common.kt +6 -0
  510. package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_index.kt +204 -0
  511. package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_progress_common.kt +129 -0
  512. package/kit-android/generated/kotlin/org/nativescript/kit/ui_proxy_view_container_index.kt +457 -0
  513. package/kit-android/generated/kotlin/org/nativescript/kit/ui_repeater_index.kt +523 -0
  514. package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_index.kt +400 -0
  515. package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_scroll_view_common.kt +402 -0
  516. package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_index.kt +711 -0
  517. package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_search_bar_common.kt +186 -0
  518. package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_index.kt +774 -0
  519. package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_segmented_bar_common.kt +409 -0
  520. package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_index.kt +477 -0
  521. package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_slider_common.kt +234 -0
  522. package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_index.kt +25 -0
  523. package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_split_view_common.kt +446 -0
  524. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background.kt +268 -0
  525. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background_common.kt +771 -0
  526. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_box_shadow.kt +108 -0
  527. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_clip_path_function.kt +129 -0
  528. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_converters.kt +92 -0
  529. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_animation_parser.kt +416 -0
  530. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_selector.kt +3532 -0
  531. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_shadow.kt +38 -0
  532. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_stroke.kt +30 -0
  533. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_transform.kt +366 -0
  534. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_utils.kt +249 -0
  535. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font.kt +488 -0
  536. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_common.kt +446 -0
  537. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_interfaces.kt +6 -0
  538. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_length_shared.kt +264 -0
  539. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_linear_gradient.kt +136 -0
  540. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +1345 -0
  541. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +2907 -0
  542. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +3031 -0
  543. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_profile.kt +6 -0
  544. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_shared.kt +6 -0
  545. package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_index.kt +295 -0
  546. package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_switch_common.kt +139 -0
  547. package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_index.kt +1977 -0
  548. package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_tab_view_common.kt +902 -0
  549. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_formatted_string.kt +471 -0
  550. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_index.kt +1662 -0
  551. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_span.kt +284 -0
  552. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_text_base_common.kt +792 -0
  553. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_index.kt +211 -0
  554. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_text_field_common.kt +115 -0
  555. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_index.kt +94 -0
  556. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +140 -0
  557. package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_index.kt +225 -0
  558. package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_time_picker_common.kt +699 -0
  559. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_fade_transition.kt +68 -0
  560. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_flip_transition.kt +209 -0
  561. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_index.kt +160 -0
  562. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_modal_transition.kt +49 -0
  563. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_page_transition.kt +416 -0
  564. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition.kt +457 -0
  565. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition_helper.kt +46 -0
  566. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_slide_transition.kt +294 -0
  567. package/kit-android/generated/kotlin/org/nativescript/kit/ui_utils.kt +20 -0
  568. package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_index.kt +595 -0
  569. package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_common.kt +209 -0
  570. package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_interfaces.kt +6 -0
  571. package/kit-android/generated/kotlin/org/nativescript/kit/utils_animation_helpers.kt +76 -0
  572. package/kit-android/generated/kotlin/org/nativescript/kit/utils_common.kt +224 -0
  573. package/kit-android/generated/kotlin/org/nativescript/kit/utils_constants.kt +22 -0
  574. package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug.kt +9 -0
  575. package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug_source.kt +246 -0
  576. package/kit-android/generated/kotlin/org/nativescript/kit/utils_index.kt +296 -0
  577. package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_index.kt +139 -0
  578. package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_common.kt +61 -0
  579. package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_shared.kt +23 -0
  580. package/kit-android/generated/kotlin/org/nativescript/kit/utils_lazy.kt +20 -0
  581. package/kit-android/generated/kotlin/org/nativescript/kit/utils_macrotask_scheduler.kt +45 -0
  582. package/kit-android/generated/kotlin/org/nativescript/kit/utils_mainthread_helper.kt +64 -0
  583. package/kit-android/generated/kotlin/org/nativescript/kit/utils_module_merge.kt +13 -0
  584. package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper.kt +79 -0
  585. package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper_for_android.kt +805 -0
  586. package/kit-android/generated/kotlin/org/nativescript/kit/utils_number_utils.kt +66 -0
  587. package/kit-android/generated/kotlin/org/nativescript/kit/utils_platform_check.kt +15 -0
  588. package/kit-android/generated/kotlin/org/nativescript/kit/utils_shared.kt +65 -0
  589. package/kit-android/generated/kotlin/org/nativescript/kit/utils_types.kt +229 -0
  590. package/kit-android/generated/kotlin/org/nativescript/kit/utils_utils_shared.kt +16 -0
  591. package/kit-android/generated/kotlin/org/nativescript/kit/xml_index.kt +869 -0
  592. package/kit-android/generated/manifest.json +860 -0
  593. package/kit-android/generated/source-lines.json +1 -0
  594. package/kit-android/gradle/wrapper/gradle-wrapper.jar +0 -0
  595. package/kit-android/gradle/wrapper/gradle-wrapper.properties +6 -0
  596. package/kit-android/gradlew +240 -0
  597. package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_builder_index.kt +524 -0
  598. package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1335 -0
  599. package/kit-android/overlays/xml-free/overlay.json +20 -0
  600. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/AnimationFrame.kt +68 -0
  601. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/CoreBridge.kt +302 -0
  602. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Modal.kt +61 -0
  603. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +230 -0
  604. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Regions.kt +289 -0
  605. package/kit-android/src/main/kotlin/org/nativescript/kit/ChangeDetection.kt +28 -0
  606. package/kit-android/src/main/kotlin/org/nativescript/kit/ColorMix.kt +643 -0
  607. package/kit-android/src/main/kotlin/org/nativescript/kit/JS.kt +10 -0
  608. package/kit-android/src/main/kotlin/org/nativescript/kit/MainThread.kt +10 -0
  609. package/kit-android/src/main/kotlin/org/nativescript/kit/Signals.kt +866 -0
  610. package/kit-android/src/main/kotlin/org/nativescript/kit/UncaughtErrors.kt +51 -0
  611. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +731 -0
  612. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ArrayLike.kt +781 -0
  613. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/BigInt.kt +136 -0
  614. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CSSCalc.kt +109 -0
  615. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Collections.kt +426 -0
  616. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CorePackages.kt +13 -0
  617. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Date.kt +573 -0
  618. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Dynamic.kt +689 -0
  619. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ES2023.kt +93 -0
  620. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ErrorOrigin.kt +17 -0
  621. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Errors.kt +270 -0
  622. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/HostObjects.kt +72 -0
  623. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Inspect.kt +814 -0
  624. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +702 -0
  625. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Iterators.kt +746 -0
  626. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +587 -0
  627. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +526 -0
  628. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Lowering.kt +70 -0
  629. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Number.kt +367 -0
  630. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Promise.kt +680 -0
  631. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Prototypes.kt +292 -0
  632. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Reactive.kt +36 -0
  633. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Realm.kt +85 -0
  634. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/RegExp.kt +2245 -0
  635. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ShortestDouble.kt +157 -0
  636. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +398 -0
  637. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ThrownValue.kt +34 -0
  638. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Timers.kt +182 -0
  639. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/TypedArrays.kt +993 -0
  640. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/URI.kt +74 -0
  641. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +1263 -0
  642. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Views.kt +52 -0
  643. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Weak.kt +110 -0
  644. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/WinterTC.kt +356 -0
  645. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Workers.kt +312 -0
  646. package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +536 -0
  647. package/kit-apple/Overlays/xml-free/Core/ui.core.bindable.index.swift +1375 -0
  648. package/kit-apple/Overlays/xml-free/overlay.json +34 -0
  649. package/kit-apple/Package.swift +17 -0
  650. package/kit-apple/Sources/NativeScriptKit/AnimationFrame.swift +41 -0
  651. package/kit-apple/Sources/NativeScriptKit/AppModules.swift +88 -0
  652. package/kit-apple/Sources/NativeScriptKit/ApplicationDelegateClass.swift +273 -0
  653. package/kit-apple/Sources/NativeScriptKit/CSSCalc.swift +111 -0
  654. package/kit-apple/Sources/NativeScriptKit/ChangeDetection.swift +31 -0
  655. package/kit-apple/Sources/NativeScriptKit/ColorMix.swift +577 -0
  656. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity0.swift +1413 -0
  657. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +6525 -0
  658. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +4713 -0
  659. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +5428 -0
  660. package/kit-apple/Sources/NativeScriptKit/Core/Object_Accuracy_AndroidActionBarIconVisibility_AndroidActionItemPosition_AnimationCurve_AutocapitalizationType_BackgroundRepeat_and_26_more_630c32.swift +472 -0
  661. package/kit-apple/Sources/NativeScriptKit/Core/Object_ArrayExpression_BinaryExpression_CallExpression_ChainExpression_ConditionalExpression_Identifier_and_10_more_f883bf.swift +359 -0
  662. package/kit-apple/Sources/NativeScriptKit/Core/Object_Tab_NewLine_excl_quot_QUOT_num_and_287_more_88aef2.swift +2190 -0
  663. package/kit-apple/Sources/NativeScriptKit/Core/Object_Unknown_QuirksMode_IgnoreCase_CaseSensitive.swift +122 -0
  664. package/kit-apple/Sources/NativeScriptKit/Core/Object_a_b_c_d_tx_ty.swift +123 -0
  665. package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_l.swift +85 -0
  666. package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_v.swift +85 -0
  667. package/kit-apple/Sources/NativeScriptKit/Core/Object_a_r_g_b.swift +85 -0
  668. package/kit-apple/Sources/NativeScriptKit/Core/Object_activate_deactivate_background_foreground_close_attached_and_26_more_127a37.swift +448 -0
  669. package/kit-apple/Sources/NativeScriptKit/Core/Object_activeType.swift +65 -0
  670. package/kit-apple/Sources/NativeScriptKit/Core/Object_alert_confirm_prompt_login_action.swift +118 -0
  671. package/kit-apple/Sources/NativeScriptKit/Core/Object_align_offset.swift +94 -0
  672. package/kit-apple/Sources/NativeScriptKit/Core/Object_android_ios_visionos_apple.swift +109 -0
  673. package/kit-apple/Sources/NativeScriptKit/Core/Object_angle_colors.swift +81 -0
  674. package/kit-apple/Sources/NativeScriptKit/Core/Object_animations.swift +66 -0
  675. package/kit-apple/Sources/NativeScriptKit/Core/Object_animations_completion.swift +73 -0
  676. package/kit-apple/Sources/NativeScriptKit/Core/Object_axis_value.swift +80 -0
  677. package/kit-apple/Sources/NativeScriptKit/Core/Object_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +257 -0
  678. package/kit-apple/Sources/NativeScriptKit/Core/Object_body.swift +78 -0
  679. package/kit-apple/Sources/NativeScriptKit/Core/Object_boundsChanged_sizeChanged.swift +80 -0
  680. package/kit-apple/Sources/NativeScriptKit/Core/Object_callback_thisArg_once.swift +112 -0
  681. package/kit-apple/Sources/NativeScriptKit/Core/Object_collections_createUIDocumentInteractionControllerDelegate_getCurrentAppPath_getRootViewController_getVisibleViewController_getWindow_and_10_more_6713a9.swift +281 -0
  682. package/kit-apple/Sources/NativeScriptKit/Core/Object_color.swift +64 -0
  683. package/kit-apple/Sources/NativeScriptKit/Core/Object_color_backgroundColor.swift +81 -0
  684. package/kit-apple/Sources/NativeScriptKit/Core/Object_color_offset.swift +94 -0
  685. package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports.swift +95 -0
  686. package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports_.swift +94 -0
  687. package/kit-apple/Sources/NativeScriptKit/Core/Object_connectionOptions.swift +66 -0
  688. package/kit-apple/Sources/NativeScriptKit/Core/Object_constructor_hasOwnProperty_isPrototypeOf_propertyIsEnumerable_toLocaleString_toString_and_21_more_e9ed9b.swift +331 -0
  689. package/kit-apple/Sources/NativeScriptKit/Core/Object_content_statusCode_headers.swift +106 -0
  690. package/kit-apple/Sources/NativeScriptKit/Core/Object_context_closeCallback_fullscreen_animated_stretched.swift +149 -0
  691. package/kit-apple/Sources/NativeScriptKit/Core/Object_context_parent_name_elementName_templateItems_errorFormat_sourceTracker_xmlModule.swift +185 -0
  692. package/kit-apple/Sources/NativeScriptKit/Core/Object_counters_timeline.swift +95 -0
  693. package/kit-apple/Sources/NativeScriptKit/Core/Object_create.swift +78 -0
  694. package/kit-apple/Sources/NativeScriptKit/Core/Object_createSelector_SelectorCore_SimpleSelector_InvalidSelector_UniversalSelector_TypeSelector_and_12_more_71e044.swift +315 -0
  695. package/kit-apple/Sources/NativeScriptKit/Core/Object_curve.swift +78 -0
  696. package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_affectsLayout.swift +131 -0
  697. package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter.swift +113 -0
  698. package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter_.swift +113 -0
  699. package/kit-apple/Sources/NativeScriptKit/Core/Object_deg_rad_grad_turn.swift +105 -0
  700. package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_damping.swift +80 -0
  701. package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_repeatCount_delay_curve_propertyNameToAnimate_subPropertiesToAnimate_fromValue_toValue.swift +211 -0
  702. package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_spring.swift +90 -0
  703. package/kit-apple/Sources/NativeScriptKit/Core/Object_edge_interaction.swift +94 -0
  704. package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_onCreate.swift +86 -0
  705. package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView.swift +73 -0
  706. package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView_toGlassStyleFn.swift +110 -0
  707. package/kit-apple/Sources/NativeScriptKit/Core/Object_empty_text_json_blob_arraybuffer.swift +108 -0
  708. package/kit-apple/Sources/NativeScriptKit/Core/Object_enterFrom_exitTo.swift +95 -0
  709. package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_isBackNavigation_navigationType.swift +115 -0
  710. package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag.swift +133 -0
  711. package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag_frameId.swift +162 -0
  712. package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set.swift +123 -0
  713. package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set_.swift +122 -0
  714. package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set__.swift +122 -0
  715. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_android_ios_newValue_object.swift +147 -0
  716. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_data.swift +94 -0
  717. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount.swift +153 -0
  718. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount_.swift +154 -0
  719. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount__.swift +152 -0
  720. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_android_ios_error.swift +148 -0
  721. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_closeCallback.swift +133 -0
  722. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_isBackNavigation.swift +132 -0
  723. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile.swift +110 -0
  724. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile_.swift +95 -0
  725. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssText.swift +110 -0
  726. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data.swift +112 -0
  727. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data_.swift +114 -0
  728. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_error.swift +111 -0
  729. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_count.swift +120 -0
  730. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +168 -0
  731. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios.swift +97 -0
  732. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_.swift +111 -0
  733. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android.swift +129 -0
  734. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_cssFile.swift +138 -0
  735. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_isBack_entry_fromEntry.swift +130 -0
  736. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_error.swift +128 -0
  737. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_image.swift +129 -0
  738. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_matches_media.swift +111 -0
  739. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_newValue.swift +95 -0
  740. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +104 -0
  741. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex_.swift +121 -0
  742. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_propertyName_value_oldValue.swift +147 -0
  743. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_text_ios.swift +113 -0
  744. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_type_view_ios.swift +117 -0
  745. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error.swift +158 -0
  746. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error_.swift +160 -0
  747. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_viewController.swift +114 -0
  748. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_view_context.swift +130 -0
  749. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window.swift +103 -0
  750. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_newValue.swift +123 -0
  751. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene.swift +105 -0
  752. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_.swift +105 -0
  753. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler.swift +157 -0
  754. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler_.swift +158 -0
  755. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions.swift +137 -0
  756. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions_.swift +137 -0
  757. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts.swift +120 -0
  758. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts_.swift +120 -0
  759. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity.swift +121 -0
  760. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity_.swift +121 -0
  761. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_rootView.swift +80 -0
  762. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type.swift +80 -0
  763. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type_object.swift +111 -0
  764. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_window_object.swift +103 -0
  765. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventType_position_prefix_namespace_elementName_attributes_data.swift +169 -0
  766. package/kit-apple/Sources/NativeScriptKit/Core/Object_exists_isDirectory.swift +80 -0
  767. package/kit-apple/Sources/NativeScriptKit/Core/Object_f_s_t_a.swift +85 -0
  768. package/kit-apple/Sources/NativeScriptKit/Core/Object_folder_path.swift +94 -0
  769. package/kit-apple/Sources/NativeScriptKit/Core/Object_fontFamily_fontSize_fontWeight_fontVariationSettings_isBold_isItalic.swift +130 -0
  770. package/kit-apple/Sources/NativeScriptKit/Core/Object_fontStyle_fontVariant_fontWeight.swift +95 -0
  771. package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_l.swift +78 -0
  772. package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_v.swift +78 -0
  773. package/kit-apple/Sources/NativeScriptKit/Core/Object_headers_timestamp_headersSize_method_postData_url.swift +173 -0
  774. package/kit-apple/Sources/NativeScriptKit/Core/Object_highlighted.swift +66 -0
  775. package/kit-apple/Sources/NativeScriptKit/Core/Object_horizontal_vertical.swift +80 -0
  776. package/kit-apple/Sources/NativeScriptKit/Core/Object_hour_minute.swift +80 -0
  777. package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type.swift +94 -0
  778. package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_action.swift +108 -0
  779. package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_percent.swift +108 -0
  780. package/kit-apple/Sources/NativeScriptKit/Core/Object_import_type.swift +80 -0
  781. package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_color_values.swift +87 -0
  782. package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color.swift +147 -0
  783. package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color_.swift +126 -0
  784. package/kit-apple/Sources/NativeScriptKit/Core/Object_instance.swift +64 -0
  785. package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_instanceModule.swift +97 -0
  786. package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property.swift +86 -0
  787. package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property_.swift +72 -0
  788. package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan.swift +66 -0
  789. package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan_interactiveCancelled.swift +81 -0
  790. package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveCancelled.swift +66 -0
  791. package/kit-apple/Sources/NativeScriptKit/Core/Object_interactive_pageStart_pageEnd_pageOut_pageReturn_instance_activeType.swift +165 -0
  792. package/kit-apple/Sources/NativeScriptKit/Core/Object_inverse_type_features.swift +95 -0
  793. package/kit-apple/Sources/NativeScriptKit/Core/Object_ios.swift +78 -0
  794. package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType.swift +66 -0
  795. package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType_message.swift +80 -0
  796. package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_.swift +64 -0
  797. package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_scene.swift +80 -0
  798. package/kit-apple/Sources/NativeScriptKit/Core/Object_isMatch_getMatchOccurences_getMatchValue.swift +101 -0
  799. package/kit-apple/Sources/NativeScriptKit/Core/Object_iterator_prototype_for_keyFor_hasInstance_isConcatSpreadable_and_19_more_91b5f3.swift +413 -0
  800. package/kit-apple/Sources/NativeScriptKit/Core/Object_keepAspectRatio_autoScaleFactor.swift +73 -0
  801. package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView.swift +95 -0
  802. package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView_.swift +97 -0
  803. package/kit-apple/Sources/NativeScriptKit/Core/Object_launchData.swift +68 -0
  804. package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right.swift +95 -0
  805. package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right_center_top_bottom.swift +115 -0
  806. package/kit-apple/Sources/NativeScriptKit/Core/Object_lifecycle_timeline.swift +80 -0
  807. package/kit-apple/Sources/NativeScriptKit/Core/Object_line_column.swift +80 -0
  808. package/kit-apple/Sources/NativeScriptKit/Core/Object_location.swift +64 -0
  809. package/kit-apple/Sources/NativeScriptKit/Core/Object_location_length.swift +80 -0
  810. package/kit-apple/Sources/NativeScriptKit/Core/Object_m.swift +64 -0
  811. package/kit-apple/Sources/NativeScriptKit/Core/Object_maskPath_shadowPath.swift +95 -0
  812. package/kit-apple/Sources/NativeScriptKit/Core/Object_matches_media.swift +80 -0
  813. package/kit-apple/Sources/NativeScriptKit/Core/Object_measuredWidth_measuredHeight.swift +81 -0
  814. package/kit-apple/Sources/NativeScriptKit/Core/Object_message.swift +64 -0
  815. package/kit-apple/Sources/NativeScriptKit/Core/Object_method.swift +64 -0
  816. package/kit-apple/Sources/NativeScriptKit/Core/Object_method_postData.swift +80 -0
  817. package/kit-apple/Sources/NativeScriptKit/Core/Object_modifier_property_value.swift +87 -0
  818. package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName.swift +65 -0
  819. package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_.swift +78 -0
  820. package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_create_transition.swift +93 -0
  821. package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_transition.swift +76 -0
  822. package/kit-apple/Sources/NativeScriptKit/Core/Object_name.swift +64 -0
  823. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged.swift +103 -0
  824. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged_.swift +98 -0
  825. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged__.swift +100 -0
  826. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged___.swift +102 -0
  827. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter.swift +96 -0
  828. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter_valueChanged.swift +115 -0
  829. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName.swift +80 -0
  830. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged.swift +139 -0
  831. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged_.swift +159 -0
  832. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged.swift +114 -0
  833. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter.swift +130 -0
  834. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter_.swift +134 -0
  835. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter.swift +133 -0
  836. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter_.swift +113 -0
  837. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue.swift +94 -0
  838. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueChanged_valueConverter.swift +183 -0
  839. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter.swift +168 -0
  840. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_.swift +169 -0
  841. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +181 -0
  842. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter.swift +128 -0
  843. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_.swift +128 -0
  844. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter__.swift +128 -0
  845. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_valueChanged.swift +139 -0
  846. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueChanged_valueConverter.swift +162 -0
  847. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueConverter.swift +150 -0
  848. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter.swift +113 -0
  849. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_.swift +113 -0
  850. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter__.swift +114 -0
  851. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter___.swift +113 -0
  852. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_valueChanged.swift +121 -0
  853. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_defaultValue_valueConverter.swift +129 -0
  854. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_valueConverter.swift +114 -0
  855. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter.swift +130 -0
  856. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_.swift +133 -0
  857. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter__.swift +130 -0
  858. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter___.swift +131 -0
  859. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter____.swift +133 -0
  860. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_____.swift +131 -0
  861. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged.swift +99 -0
  862. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter.swift +153 -0
  863. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter_.swift +132 -0
  864. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_valueConverter.swift +118 -0
  865. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter.swift +95 -0
  866. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_.swift +95 -0
  867. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter__.swift +95 -0
  868. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_valueChanged.swift +114 -0
  869. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue.swift +80 -0
  870. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_.swift +94 -0
  871. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue__.swift +80 -0
  872. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue___.swift +81 -0
  873. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout.swift +95 -0
  874. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +163 -0
  875. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_coerceValue_valueConverter.swift +144 -0
  876. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_valueConverter.swift +124 -0
  877. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter.swift +135 -0
  878. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_.swift +114 -0
  879. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter__.swift +114 -0
  880. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter___.swift +135 -0
  881. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter____.swift +114 -0
  882. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_valueChanged.swift +122 -0
  883. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueChanged_valueConverter.swift +125 -0
  884. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter.swift +116 -0
  885. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter_.swift +115 -0
  886. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_coerceValue_valueChanged_valueConverter.swift +170 -0
  887. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueChanged.swift +111 -0
  888. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter.swift +116 -0
  889. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter_.swift +139 -0
  890. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter__.swift +136 -0
  891. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged.swift +92 -0
  892. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_.swift +92 -0
  893. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_coerceValue_valueConverter.swift +126 -0
  894. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_equalityComparer_valueConverter.swift +146 -0
  895. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter.swift +107 -0
  896. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_.swift +107 -0
  897. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter__.swift +108 -0
  898. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter___.swift +108 -0
  899. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter____.swift +128 -0
  900. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_____.swift +108 -0
  901. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter______.swift +126 -0
  902. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter.swift +98 -0
  903. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_.swift +96 -0
  904. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter__.swift +97 -0
  905. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter___.swift +98 -0
  906. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter____.swift +100 -0
  907. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_coerceValue.swift +115 -0
  908. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged.swift +107 -0
  909. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged_.swift +107 -0
  910. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_duration.swift +80 -0
  911. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter.swift +101 -0
  912. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter_.swift +100 -0
  913. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter__.swift +119 -0
  914. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_keyframes_mediaQueryString.swift +117 -0
  915. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged.swift +82 -0
  916. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_.swift +82 -0
  917. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__.swift +84 -0
  918. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged___.swift +84 -0
  919. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged____.swift +82 -0
  920. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_____.swift +82 -0
  921. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged______.swift +82 -0
  922. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_______.swift +81 -0
  923. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged________.swift +86 -0
  924. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_________.swift +92 -0
  925. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__________.swift +90 -0
  926. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter.swift +101 -0
  927. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter_.swift +119 -0
  928. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter__.swift +101 -0
  929. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter.swift +81 -0
  930. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter_.swift +81 -0
  931. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter__.swift +82 -0
  932. package/kit-apple/Sources/NativeScriptKit/Core/Object_navigatingToEvent_navigatedToEvent_navigatingFromEvent_navigatedFromEvent.swift +116 -0
  933. package/kit-apple/Sources/NativeScriptKit/Core/Object_normalState_selectedState.swift +81 -0
  934. package/kit-apple/Sources/NativeScriptKit/Core/Object_num_regexp_string_name_privateId_eof_and_71_more_93cbae.swift +688 -0
  935. package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_propertyName_value_oldValue_origin.swift +154 -0
  936. package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY.swift +105 -0
  937. package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY_.swift +121 -0
  938. package/kit-apple/Sources/NativeScriptKit/Core/Object_opacity_color_tapToClose_animation_ignoreShadeRestore.swift +131 -0
  939. package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance.swift +100 -0
  940. package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance_.swift +81 -0
  941. package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage.swift +94 -0
  942. package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage_.swift +95 -0
  943. package/kit-apple/Sources/NativeScriptKit/Core/Object_parent_name_items.swift +111 -0
  944. package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name.swift +72 -0
  945. package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name_extension.swift +86 -0
  946. package/kit-apple/Sources/NativeScriptKit/Core/Object_pattern_flags.swift +80 -0
  947. package/kit-apple/Sources/NativeScriptKit/Core/Object_position_systemIcon.swift +94 -0
  948. package/kit-apple/Sources/NativeScriptKit/Core/Object_prefix_namespace_name.swift +113 -0
  949. package/kit-apple/Sources/NativeScriptKit/Core/Object_presented_presenting_independent.swift +98 -0
  950. package/kit-apple/Sources/NativeScriptKit/Core/Object_propName_propValue.swift +80 -0
  951. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value.swift +95 -0
  952. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_.swift +95 -0
  953. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value__.swift +96 -0
  954. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value___.swift +94 -0
  955. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value____.swift +80 -0
  956. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_____.swift +80 -0
  957. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value______.swift +80 -0
  958. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_______.swift +83 -0
  959. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value________.swift +83 -0
  960. package/kit-apple/Sources/NativeScriptKit/Core/Object_r_g_b.swift +78 -0
  961. package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked.swift +94 -0
  962. package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked_.swift +80 -0
  963. package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString.swift +114 -0
  964. package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString_.swift +135 -0
  965. package/kit-apple/Sources/NativeScriptKit/Core/Object_recognizer_target.swift +96 -0
  966. package/kit-apple/Sources/NativeScriptKit/Core/Object_repeatX_repeatY_posX_posY.swift +93 -0
  967. package/kit-apple/Sources/NativeScriptKit/Core/Object_requestTime_proxyStart_proxyEnd_dnsStart_dnsEnd_connectStart_and_9_more_3e958e.swift +248 -0
  968. package/kit-apple/Sources/NativeScriptKit/Core/Object_result_text.swift +94 -0
  969. package/kit-apple/Sources/NativeScriptKit/Core/Object_result_userName_password.swift +102 -0
  970. package/kit-apple/Sources/NativeScriptKit/Core/Object_right_left.swift +80 -0
  971. package/kit-apple/Sources/NativeScriptKit/Core/Object_row_col.swift +72 -0
  972. package/kit-apple/Sources/NativeScriptKit/Core/Object_rules.swift +66 -0
  973. package/kit-apple/Sources/NativeScriptKit/Core/Object_rules_.swift +78 -0
  974. package/kit-apple/Sources/NativeScriptKit/Core/Object_safeArea_fullscreen_inWindow.swift +107 -0
  975. package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_translate_rotate.swift +100 -0
  976. package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_tx_ty.swift +86 -0
  977. package/kit-apple/Sources/NativeScriptKit/Core/Object_sceneWillConnect_sceneDidActivate_sceneWillResignActive_sceneWillEnterForeground_sceneDidEnterBackground_sceneDidDisconnect_and_1_more_1be9d4.swift +159 -0
  978. package/kit-apple/Sources/NativeScriptKit/Core/Object_scene_uiWindow.swift +80 -0
  979. package/kit-apple/Sources/NativeScriptKit/Core/Object_shape_rule.swift +80 -0
  980. package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedElements_presented_presenting.swift +115 -0
  981. package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedTransitionTag_zIndex.swift +100 -0
  982. package/kit-apple/Sources/NativeScriptKit/Core/Object_showing.swift +64 -0
  983. package/kit-apple/Sources/NativeScriptKit/Core/Object_snap_endFrame_endCornerRadius_srcSharedView.swift +112 -0
  984. package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_expression_twoWay_source_defaultProperty.swift +120 -0
  985. package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression.swift +111 -0
  986. package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression_twoWay_compiled.swift +145 -0
  987. package/kit-apple/Sources/NativeScriptKit/Core/Object_spans.swift +66 -0
  988. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value.swift +86 -0
  989. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_.swift +86 -0
  990. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__.swift +89 -0
  991. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___.swift +100 -0
  992. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____.swift +86 -0
  993. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____.swift +88 -0
  994. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______.swift +89 -0
  995. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_______.swift +89 -0
  996. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value________.swift +89 -0
  997. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_________.swift +89 -0
  998. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__________.swift +89 -0
  999. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___________.swift +87 -0
  1000. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____________.swift +90 -0
  1001. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____________.swift +89 -0
  1002. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______________.swift +90 -0
  1003. package/kit-apple/Sources/NativeScriptKit/Core/Object_status_headers.swift +83 -0
  1004. package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText.swift +80 -0
  1005. package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText_headers_url.swift +110 -0
  1006. package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty.swift +66 -0
  1007. package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty_sourceProperty.swift +73 -0
  1008. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +264 -0
  1009. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_opacity_backgroundColor_translate_scale_height_width_rotate_duration_delay_iterations_curve.swift +252 -0
  1010. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve.swift +152 -0
  1011. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve_.swift +152 -0
  1012. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve__.swift +153 -0
  1013. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve___.swift +151 -0
  1014. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_translate_scale_rotate_opacity_duration_curve.swift +165 -0
  1015. package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_delay_velocity_animateOptions_animations_completion.swift +165 -0
  1016. package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity.swift +101 -0
  1017. package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay.swift +118 -0
  1018. package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay_animations_completion.swift +142 -0
  1019. package/kit-apple/Sources/NativeScriptKit/Core/Object_textColor_tintColor.swift +72 -0
  1020. package/kit-apple/Sources/NativeScriptKit/Core/Object_text_iosFont_color_backgroundColor_textDecoration_baselineOffset_index.swift +144 -0
  1021. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_cancelButtonText.swift +94 -0
  1022. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText.swift +96 -0
  1023. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_inputType.swift +112 -0
  1024. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_message.swift +112 -0
  1025. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_message.swift +95 -0
  1026. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_section.swift +80 -0
  1027. package/kit-apple/Sources/NativeScriptKit/Core/Object_toArrayBuffer_toString_toJSON_toImage_toFile.swift +142 -0
  1028. package/kit-apple/Sources/NativeScriptKit/Core/Object_toString_charAt_charCodeAt_concat_indexOf_lastIndexOf_and_44_more_fc25df.swift +481 -0
  1029. package/kit-apple/Sources/NativeScriptKit/Core/Object_topLeft_topRight_bottomLeft_bottomRight.swift +110 -0
  1030. package/kit-apple/Sources/NativeScriptKit/Core/Object_top_bottom.swift +80 -0
  1031. package/kit-apple/Sources/NativeScriptKit/Core/Object_top_left_bottom_right.swift +109 -0
  1032. package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left.swift +122 -0
  1033. package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left_.swift +109 -0
  1034. package/kit-apple/Sources/NativeScriptKit/Core/Object_totalTime_count_currentStart_runCount.swift +110 -0
  1035. package/kit-apple/Sources/NativeScriptKit/Core/Object_touches_event.swift +80 -0
  1036. package/kit-apple/Sources/NativeScriptKit/Core/Object_transitionContext.swift +66 -0
  1037. package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity.swift +118 -0
  1038. package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity_duration_curve.swift +151 -0
  1039. package/kit-apple/Sources/NativeScriptKit/Core/Object_translate_rotate_scale.swift +102 -0
  1040. package/kit-apple/Sources/NativeScriptKit/Core/Object_type.swift +64 -0
  1041. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase.swift +152 -0
  1042. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase_.swift +133 -0
  1043. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data.swift +78 -0
  1044. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data_.swift +92 -0
  1045. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_namespace.swift +102 -0
  1046. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_prelude_block.swift +120 -0
  1047. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text.swift +104 -0
  1048. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text_components.swift +113 -0
  1049. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_namespace.swift +94 -0
  1050. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_path.swift +72 -0
  1051. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_prelude_block.swift +111 -0
  1052. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_property_value.swift +94 -0
  1053. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_quote_string_value.swift +101 -0
  1054. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_selectors_declarations.swift +96 -0
  1055. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end.swift +94 -0
  1056. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_left_right.swift +127 -0
  1057. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_name.swift +118 -0
  1058. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string.swift +80 -0
  1059. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string_unit_value.swift +101 -0
  1060. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_stylesheet.swift +83 -0
  1061. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text.swift +72 -0
  1062. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_.swift +97 -0
  1063. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text__.swift +86 -0
  1064. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_associatedToken_values.swift +125 -0
  1065. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_direction_object_eventName.swift +159 -0
  1066. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_eventName_object_getPointerCount_getX_getY.swift +187 -0
  1067. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName.swift +152 -0
  1068. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName_state.swift +167 -0
  1069. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_rotation_object_eventName_state.swift +182 -0
  1070. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_scale_getFocusX_getFocusY_object_eventName_state.swift +194 -0
  1071. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_startX_startY_deltaX_deltaY_object_eventName_state.swift +201 -0
  1072. package/kit-apple/Sources/NativeScriptKit/Core/Object_uri_message_time.swift +108 -0
  1073. package/kit-apple/Sources/NativeScriptKit/Core/Object_url_method.swift +80 -0
  1074. package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source.swift +95 -0
  1075. package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source_.swift +94 -0
  1076. package/kit-apple/Sources/NativeScriptKit/Core/Object_url_status_statusText_headers_mimeType_fromDiskCache_timing_headersSize.swift +201 -0
  1077. package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit.swift +80 -0
  1078. package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit_.swift +94 -0
  1079. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index.swift +95 -0
  1080. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index_.swift +94 -0
  1081. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_isPresented_startFrame_snapshot_endFrame_startTransform_and_5_more_20e753.swift +234 -0
  1082. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options.swift +94 -0
  1083. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options_.swift +94 -0
  1084. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_snapshot_startOpacity_endOpacity_propertiesToMatch_zIndex.swift +186 -0
  1085. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_startOpacity_endOpacity_propertiesToMatch_imageSourceChangeListener.swift +181 -0
  1086. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_type_animation.swift +86 -0
  1087. package/kit-apple/Sources/NativeScriptKit/Core/Object_width_color.swift +86 -0
  1088. package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height.swift +80 -0
  1089. package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_.swift +95 -0
  1090. package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_os_deviceType.swift +109 -0
  1091. package/kit-apple/Sources/NativeScriptKit/Core/Object_windowOpen_windowClose_primaryWindowChanged.swift +96 -0
  1092. package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary.swift +80 -0
  1093. package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary_data_ios.swift +118 -0
  1094. package/kit-apple/Sources/NativeScriptKit/Core/Object_xRadius_yRadius_maxRadius.swift +87 -0
  1095. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y.swift +85 -0
  1096. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_.swift +72 -0
  1097. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y__.swift +86 -0
  1098. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y___.swift +72 -0
  1099. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y____.swift +86 -0
  1100. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_____.swift +77 -0
  1101. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y______.swift +74 -0
  1102. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_______.swift +89 -0
  1103. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y________.swift +88 -0
  1104. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_________.swift +77 -0
  1105. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_width_height.swift +101 -0
  1106. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z.swift +94 -0
  1107. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z_.swift +78 -0
  1108. package/kit-apple/Sources/NativeScriptKit/Core/Object_xmlns.swift +64 -0
  1109. package/kit-apple/Sources/NativeScriptKit/Core/Object_xs_ys_xt_yt_rx_ry_rz.swift +106 -0
  1110. package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidApplication.swift +18 -0
  1111. package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidHelper.swift +18 -0
  1112. package/kit-apple/Sources/NativeScriptKit/Core/__Export.AnimationCurve.swift +18 -0
  1113. package/kit-apple/Sources/NativeScriptKit/Core/__Export.Application.swift +18 -0
  1114. package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSHelper.swift +20 -0
  1115. package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSType.swift +20 -0
  1116. package/kit-apple/Sources/NativeScriptKit/Core/__Export.Device.swift +18 -0
  1117. package/kit-apple/Sources/NativeScriptKit/Core/__Export.Dialogs.swift +18 -0
  1118. package/kit-apple/Sources/NativeScriptKit/Core/__Export.Enums.swift +20 -0
  1119. package/kit-apple/Sources/NativeScriptKit/Core/__Export.NativeWindowEvents.swift +20 -0
  1120. package/kit-apple/Sources/NativeScriptKit/Core/__Export.PseudoClassHandler.swift +20 -0
  1121. package/kit-apple/Sources/NativeScriptKit/Core/__Export.SceneEvents.swift +20 -0
  1122. package/kit-apple/Sources/NativeScriptKit/Core/__Export.WindowEvents.swift +20 -0
  1123. package/kit-apple/Sources/NativeScriptKit/Core/__Export._resetRootView.swift +18 -0
  1124. package/kit-apple/Sources/NativeScriptKit/Core/__Export._resolveAnimationCurve.swift +20 -0
  1125. package/kit-apple/Sources/NativeScriptKit/Core/__Export._setResolver.swift +20 -0
  1126. package/kit-apple/Sources/NativeScriptKit/Core/__Export._updateCharactersInRangeReplacementString.swift +23 -0
  1127. package/kit-apple/Sources/NativeScriptKit/Core/__Export.action.swift +20 -0
  1128. package/kit-apple/Sources/NativeScriptKit/Core/__Export.addCss.swift +18 -0
  1129. package/kit-apple/Sources/NativeScriptKit/Core/__Export.addTaggedAdditionalCSS.swift +20 -0
  1130. package/kit-apple/Sources/NativeScriptKit/Core/__Export.addWeakEventListener.swift +22 -0
  1131. package/kit-apple/Sources/NativeScriptKit/Core/__Export.alert.swift +20 -0
  1132. package/kit-apple/Sources/NativeScriptKit/Core/__Export.android.swift +18 -0
  1133. package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidDynamicElevationOffsetProperty.swift +20 -0
  1134. package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidElevationProperty.swift +18 -0
  1135. package/kit-apple/Sources/NativeScriptKit/Core/__Export.animationTimingFunctionConverter.swift +20 -0
  1136. package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocapitalizationTypeProperty.swift +20 -0
  1137. package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocorrectProperty.swift +18 -0
  1138. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundColorProperty.swift +18 -0
  1139. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundEvent.swift +18 -0
  1140. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundImageProperty.swift +18 -0
  1141. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundInternalProperty.swift +18 -0
  1142. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundPositionProperty.swift +18 -0
  1143. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundRepeatProperty.swift +18 -0
  1144. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundSizeProperty.swift +18 -0
  1145. package/kit-apple/Sources/NativeScriptKit/Core/__Export.booleanConverter.swift +20 -0
  1146. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomColorProperty.swift +18 -0
  1147. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomLeftRadiusProperty.swift +20 -0
  1148. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomRightRadiusProperty.swift +20 -0
  1149. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomWidthProperty.swift +18 -0
  1150. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftColorProperty.swift +18 -0
  1151. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftWidthProperty.swift +18 -0
  1152. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightColorProperty.swift +18 -0
  1153. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightWidthProperty.swift +18 -0
  1154. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopColorProperty.swift +18 -0
  1155. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopLeftRadiusProperty.swift +18 -0
  1156. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopRightRadiusProperty.swift +18 -0
  1157. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopWidthProperty.swift +18 -0
  1158. package/kit-apple/Sources/NativeScriptKit/Core/__Export.clipPathProperty.swift +18 -0
  1159. package/kit-apple/Sources/NativeScriptKit/Core/__Export.colorProperty.swift +18 -0
  1160. package/kit-apple/Sources/NativeScriptKit/Core/__Export.columnGapProperty.swift +18 -0
  1161. package/kit-apple/Sources/NativeScriptKit/Core/__Export.confirm.swift +20 -0
  1162. package/kit-apple/Sources/NativeScriptKit/Core/__Export.cornerShapeProperty.swift +18 -0
  1163. package/kit-apple/Sources/NativeScriptKit/Core/__Export.directionProperty.swift +18 -0
  1164. package/kit-apple/Sources/NativeScriptKit/Core/__Export.discardedErrorEvent.swift +18 -0
  1165. package/kit-apple/Sources/NativeScriptKit/Core/__Export.displayedEvent.swift +18 -0
  1166. package/kit-apple/Sources/NativeScriptKit/Core/__Export.eachDescendant.swift +20 -0
  1167. package/kit-apple/Sources/NativeScriptKit/Core/__Export.editableProperty.swift +18 -0
  1168. package/kit-apple/Sources/NativeScriptKit/Core/__Export.ensureA11yClasses.swift +20 -0
  1169. package/kit-apple/Sources/NativeScriptKit/Core/__Export.exitEvent.swift +18 -0
  1170. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontFamilyProperty.swift +18 -0
  1171. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontInternalProperty.swift +18 -0
  1172. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleChangedEvent.swift +18 -0
  1173. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleInternalProperty.swift +20 -0
  1174. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontSizeProperty.swift +18 -0
  1175. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontStyleProperty.swift +18 -0
  1176. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontVariationSettingsProperty.swift +20 -0
  1177. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontWeightProperty.swift +18 -0
  1178. package/kit-apple/Sources/NativeScriptKit/Core/__Export.foregroundEvent.swift +18 -0
  1179. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObject.swift +20 -0
  1180. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObjectRecursive.swift +20 -0
  1181. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAncestor.swift +20 -0
  1182. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAndroidAccessibilityManager.swift +20 -0
  1183. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCssFileName.swift +18 -0
  1184. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentFontScale.swift +20 -0
  1185. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentPage.swift +20 -0
  1186. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getFileAccess.swift +20 -0
  1187. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getMainEntry.swift +18 -0
  1188. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApp.swift +20 -0
  1189. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApplication.swift +18 -0
  1190. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getResources.swift +18 -0
  1191. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayout.swift +20 -0
  1192. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayoutById.swift +20 -0
  1193. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootView.swift +18 -0
  1194. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getTransformedText.swift +20 -0
  1195. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getViewById.swift +20 -0
  1196. package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasLaunched.swift +18 -0
  1197. package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasListeners.swift +18 -0
  1198. package/kit-apple/Sources/NativeScriptKit/Core/__Export.heightProperty.swift +18 -0
  1199. package/kit-apple/Sources/NativeScriptKit/Core/__Export.hintProperty.swift +18 -0
  1200. package/kit-apple/Sources/NativeScriptKit/Core/__Export.horizontalAlignmentProperty.swift +18 -0
  1201. package/kit-apple/Sources/NativeScriptKit/Core/__Export.inBackground.swift +18 -0
  1202. package/kit-apple/Sources/NativeScriptKit/Core/__Export.initAccessibilityCssHelper.swift +20 -0
  1203. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAccessibilityServiceEnabled.swift +20 -0
  1204. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAndroid.swift +18 -0
  1205. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isApple.swift +18 -0
  1206. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isEmbedded.swift +20 -0
  1207. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isIOS.swift +18 -0
  1208. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isUserInteractionEnabledProperty.swift +20 -0
  1209. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isVisionOS.swift +18 -0
  1210. package/kit-apple/Sources/NativeScriptKit/Core/__Export.keyboardTypeProperty.swift +18 -0
  1211. package/kit-apple/Sources/NativeScriptKit/Core/__Export.launchEvent.swift +18 -0
  1212. package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirection.swift +18 -0
  1213. package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChanged.swift +18 -0
  1214. package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChangedEvent.swift +18 -0
  1215. package/kit-apple/Sources/NativeScriptKit/Core/__Export.letterSpacingProperty.swift +18 -0
  1216. package/kit-apple/Sources/NativeScriptKit/Core/__Export.lineHeightProperty.swift +18 -0
  1217. package/kit-apple/Sources/NativeScriptKit/Core/__Export.loadAppCss.swift +18 -0
  1218. package/kit-apple/Sources/NativeScriptKit/Core/__Export.login.swift +20 -0
  1219. package/kit-apple/Sources/NativeScriptKit/Core/__Export.lowMemoryEvent.swift +18 -0
  1220. package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeParser.swift +22 -0
  1221. package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeValidator.swift +20 -0
  1222. package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginBottomProperty.swift +18 -0
  1223. package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginLeftProperty.swift +18 -0
  1224. package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginRightProperty.swift +18 -0
  1225. package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginTopProperty.swift +18 -0
  1226. package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxHeightProperty.swift +18 -0
  1227. package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxLengthProperty.swift +18 -0
  1228. package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxWidthProperty.swift +18 -0
  1229. package/kit-apple/Sources/NativeScriptKit/Core/__Export.minHeightProperty.swift +18 -0
  1230. package/kit-apple/Sources/NativeScriptKit/Core/__Export.minWidthProperty.swift +18 -0
  1231. package/kit-apple/Sources/NativeScriptKit/Core/__Export.notify.swift +18 -0
  1232. package/kit-apple/Sources/NativeScriptKit/Core/__Export.off.swift +18 -0
  1233. package/kit-apple/Sources/NativeScriptKit/Core/__Export.on.swift +18 -0
  1234. package/kit-apple/Sources/NativeScriptKit/Core/__Export.opacityProperty.swift +18 -0
  1235. package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientation.swift +18 -0
  1236. package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientationChangedEvent.swift +18 -0
  1237. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingBottomProperty.swift +18 -0
  1238. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingInternalProperty.swift +18 -0
  1239. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingLeftProperty.swift +18 -0
  1240. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingRightProperty.swift +18 -0
  1241. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingTopProperty.swift +18 -0
  1242. package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSShadow.swift +20 -0
  1243. package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSStroke.swift +20 -0
  1244. package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseKeyframeDeclarations.swift +22 -0
  1245. package/kit-apple/Sources/NativeScriptKit/Core/__Export.perspectiveProperty.swift +18 -0
  1246. package/kit-apple/Sources/NativeScriptKit/Core/__Export.placeholderColorProperty.swift +20 -0
  1247. package/kit-apple/Sources/NativeScriptKit/Core/__Export.platformNames.swift +18 -0
  1248. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profile.swift +22 -0
  1249. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDisable.swift +20 -0
  1250. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDumpProfiles.swift +20 -0
  1251. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingEnable.swift +20 -0
  1252. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingIsRunning.swift +20 -0
  1253. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingResetProfiles.swift +20 -0
  1254. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStart.swift +20 -0
  1255. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStartCPU.swift +20 -0
  1256. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStop.swift +20 -0
  1257. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStopCPU.swift +20 -0
  1258. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingUptime.swift +20 -0
  1259. package/kit-apple/Sources/NativeScriptKit/Core/__Export.prompt.swift +20 -0
  1260. package/kit-apple/Sources/NativeScriptKit/Core/__Export.querySelectorAll.swift +20 -0
  1261. package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeTaggedAdditionalCSS.swift +20 -0
  1262. package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeWeakEventListener.swift +22 -0
  1263. package/kit-apple/Sources/NativeScriptKit/Core/__Export.resetRootView.swift +18 -0
  1264. package/kit-apple/Sources/NativeScriptKit/Core/__Export.resolveFileNameFromUrl.swift +23 -0
  1265. package/kit-apple/Sources/NativeScriptKit/Core/__Export.resumeEvent.swift +18 -0
  1266. package/kit-apple/Sources/NativeScriptKit/Core/__Export.returnKeyTypeProperty.swift +20 -0
  1267. package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateProperty.swift +18 -0
  1268. package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateXProperty.swift +18 -0
  1269. package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateYProperty.swift +18 -0
  1270. package/kit-apple/Sources/NativeScriptKit/Core/__Export.rowGapProperty.swift +18 -0
  1271. package/kit-apple/Sources/NativeScriptKit/Core/__Export.run.swift +18 -0
  1272. package/kit-apple/Sources/NativeScriptKit/Core/__Export.sanitizeModuleName.swift +20 -0
  1273. package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleXProperty.swift +18 -0
  1274. package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleYProperty.swift +18 -0
  1275. package/kit-apple/Sources/NativeScriptKit/Core/__Export.sendAccessibilityEvent.swift +18 -0
  1276. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setActivityCallbacks.swift +20 -0
  1277. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setAutoSystemAppearanceChanged.swift +18 -0
  1278. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setCssFileName.swift +18 -0
  1279. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setMaxRefreshRate.swift +18 -0
  1280. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setNativeApp.swift +20 -0
  1281. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setResources.swift +18 -0
  1282. package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspendEvent.swift +18 -0
  1283. package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspended.swift +18 -0
  1284. package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearance.swift +18 -0
  1285. package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChanged.swift +18 -0
  1286. package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChangedEvent.swift +18 -0
  1287. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textAlignmentProperty.swift +18 -0
  1288. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textDecorationProperty.swift +18 -0
  1289. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textOverflowProperty.swift +18 -0
  1290. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textShadowProperty.swift +18 -0
  1291. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textStrokeProperty.swift +18 -0
  1292. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textTransformProperty.swift +18 -0
  1293. package/kit-apple/Sources/NativeScriptKit/Core/__Export.timeConverter.swift +20 -0
  1294. package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateXProperty.swift +18 -0
  1295. package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateYProperty.swift +18 -0
  1296. package/kit-apple/Sources/NativeScriptKit/Core/__Export.uncaughtErrorEvent.swift +18 -0
  1297. package/kit-apple/Sources/NativeScriptKit/Core/__Export.unsetValue.swift +18 -0
  1298. package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateAccessibilityProperties.swift +20 -0
  1299. package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateCurrentHelperClasses.swift +21 -0
  1300. package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateTextTriggerProperty.swift +20 -0
  1301. package/kit-apple/Sources/NativeScriptKit/Core/__Export.verticalAlignmentProperty.swift +18 -0
  1302. package/kit-apple/Sources/NativeScriptKit/Core/__Export.visibilityProperty.swift +18 -0
  1303. package/kit-apple/Sources/NativeScriptKit/Core/__Export.whiteSpaceProperty.swift +18 -0
  1304. package/kit-apple/Sources/NativeScriptKit/Core/__Export.widthProperty.swift +18 -0
  1305. package/kit-apple/Sources/NativeScriptKit/Core/__Export.zIndexProperty.swift +18 -0
  1306. package/kit-apple/Sources/NativeScriptKit/Core/__Modules.swift +17 -0
  1307. package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Http.swift +23 -0
  1308. package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Utils.swift +201 -0
  1309. package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.abortsignal.swift +109 -0
  1310. package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.index.swift +118 -0
  1311. package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-common.swift +572 -0
  1312. package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-properties.swift +258 -0
  1313. package/kit-apple/Sources/NativeScriptKit/Core/accessibility.index.swift +16 -0
  1314. package/kit-apple/Sources/NativeScriptKit/Core/application-settings.application-settings-common.swift +36 -0
  1315. package/kit-apple/Sources/NativeScriptKit/Core/application-settings.index.ios.swift +157 -0
  1316. package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +2095 -0
  1317. package/kit-apple/Sources/NativeScriptKit/Core/application.application-interfaces.swift +16 -0
  1318. package/kit-apple/Sources/NativeScriptKit/Core/application.application-shims.swift +212 -0
  1319. package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +3854 -0
  1320. package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +224 -0
  1321. package/kit-apple/Sources/NativeScriptKit/Core/application.helpers.ios.swift +57 -0
  1322. package/kit-apple/Sources/NativeScriptKit/Core/application.index.ios.swift +16 -0
  1323. package/kit-apple/Sources/NativeScriptKit/Core/application.scene-delegate-bridge.swift +234 -0
  1324. package/kit-apple/Sources/NativeScriptKit/Core/color.color-common.swift +756 -0
  1325. package/kit-apple/Sources/NativeScriptKit/Core/color.color-types.swift +16 -0
  1326. package/kit-apple/Sources/NativeScriptKit/Core/color.color-utils.swift +388 -0
  1327. package/kit-apple/Sources/NativeScriptKit/Core/color.index.ios.swift +100 -0
  1328. package/kit-apple/Sources/NativeScriptKit/Core/color.known-colors.swift +520 -0
  1329. package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +190 -0
  1330. package/kit-apple/Sources/NativeScriptKit/Core/core-types.animation-types.swift +87 -0
  1331. package/kit-apple/Sources/NativeScriptKit/Core/core-types.index.swift +361 -0
  1332. package/kit-apple/Sources/NativeScriptKit/Core/core-types.validators.swift +62 -0
  1333. package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +220 -0
  1334. package/kit-apple/Sources/NativeScriptKit/Core/css-value.reworkcss-value.swift +280 -0
  1335. package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1012 -0
  1336. package/kit-apple/Sources/NativeScriptKit/Core/css.CSSNativeScript.swift +264 -0
  1337. package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +971 -0
  1338. package/kit-apple/Sources/NativeScriptKit/Core/css.system-classes.swift +120 -0
  1339. package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +699 -0
  1340. package/kit-apple/Sources/NativeScriptKit/Core/data.observable.index.swift +1166 -0
  1341. package/kit-apple/Sources/NativeScriptKit/Core/data.virtual-array.index.swift +325 -0
  1342. package/kit-apple/Sources/NativeScriptKit/Core/fetch.index.swift +1201 -0
  1343. package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +1450 -0
  1344. package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +1756 -0
  1345. package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.fps-native.ios.swift +227 -0
  1346. package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.index.swift +141 -0
  1347. package/kit-apple/Sources/NativeScriptKit/Core/globals.global-utils.swift +252 -0
  1348. package/kit-apple/Sources/NativeScriptKit/Core/http.http-interfaces.swift +24 -0
  1349. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +59 -0
  1350. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +413 -0
  1351. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.http-request-common.swift +57 -0
  1352. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.index.ios.swift +101 -0
  1353. package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +175 -0
  1354. package/kit-apple/Sources/NativeScriptKit/Core/image-asset.image-asset-common.swift +285 -0
  1355. package/kit-apple/Sources/NativeScriptKit/Core/image-asset.index.ios.swift +205 -0
  1356. package/kit-apple/Sources/NativeScriptKit/Core/image-source.image-source-common.swift +40 -0
  1357. package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +1130 -0
  1358. package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +1388 -0
  1359. package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +30808 -0
  1360. package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +3383 -0
  1361. package/kit-apple/Sources/NativeScriptKit/Core/matrix.index.swift +151 -0
  1362. package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +468 -0
  1363. package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.helpers.swift +57 -0
  1364. package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.index.swift +220 -0
  1365. package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.non-bundle-workflow-compat.swift +262 -0
  1366. package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.qualifier-matcher.index.swift +330 -0
  1367. package/kit-apple/Sources/NativeScriptKit/Core/native-window.index.swift +16 -0
  1368. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-common.swift +730 -0
  1369. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-interfaces.swift +46 -0
  1370. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +521 -0
  1371. package/kit-apple/Sources/NativeScriptKit/Core/native-window.window-base.swift +298 -0
  1372. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.index.swift +16 -0
  1373. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +668 -0
  1374. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +221 -0
  1375. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +62 -0
  1376. package/kit-apple/Sources/NativeScriptKit/Core/platform.common.swift +25 -0
  1377. package/kit-apple/Sources/NativeScriptKit/Core/platform.device.index.ios.swift +289 -0
  1378. package/kit-apple/Sources/NativeScriptKit/Core/platform.index.swift +16 -0
  1379. package/kit-apple/Sources/NativeScriptKit/Core/platform.screen.index.ios.swift +217 -0
  1380. package/kit-apple/Sources/NativeScriptKit/Core/profiling.index.swift +528 -0
  1381. package/kit-apple/Sources/NativeScriptKit/Core/text.formatted-string.swift +16 -0
  1382. package/kit-apple/Sources/NativeScriptKit/Core/text.index.ios.swift +25 -0
  1383. package/kit-apple/Sources/NativeScriptKit/Core/text.span.swift +16 -0
  1384. package/kit-apple/Sources/NativeScriptKit/Core/text.text-common.swift +309 -0
  1385. package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +513 -0
  1386. package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.action-bar-common.swift +1270 -0
  1387. package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +1480 -0
  1388. package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.activity-indicator-common.swift +81 -0
  1389. package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +175 -0
  1390. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-common.swift +581 -0
  1391. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-shared.swift +16 -0
  1392. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-types.swift +16 -0
  1393. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +2204 -0
  1394. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1213 -0
  1395. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.binding-builder.swift +318 -0
  1396. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.component-builder.index.swift +387 -0
  1397. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +2026 -0
  1398. package/kit-apple/Sources/NativeScriptKit/Core/ui.button.button-common.swift +75 -0
  1399. package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +614 -0
  1400. package/kit-apple/Sources/NativeScriptKit/Core/ui.content-view.index.swift +291 -0
  1401. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-expressions.swift +770 -0
  1402. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-resources.swift +30 -0
  1403. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-types.swift +16 -0
  1404. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.expression-parser.swift +5297 -0
  1405. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.index.swift +1376 -0
  1406. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.control-state-change.index.ios.swift +197 -0
  1407. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +3899 -0
  1408. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.property-shared.swift +53 -0
  1409. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +3522 -0
  1410. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.utils.swift +32 -0
  1411. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +3318 -0
  1412. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +4347 -0
  1413. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.index.ios.swift +1417 -0
  1414. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-common.swift +337 -0
  1415. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-shared.swift +16 -0
  1416. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-interfaces.swift +272 -0
  1417. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.weak-event-listener.index.swift +323 -0
  1418. package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.date-picker-common.swift +335 -0
  1419. package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +609 -0
  1420. package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.dialogs-common.swift +486 -0
  1421. package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +677 -0
  1422. package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.editable-text-base-common.swift +378 -0
  1423. package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +512 -0
  1424. package/kit-apple/Sources/NativeScriptKit/Core/ui.embedding.index.ios.swift +25 -0
  1425. package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.enums.swift +16 -0
  1426. package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.index.swift +16 -0
  1427. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.ios.swift +26 -0
  1428. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.transitions.types.swift +23 -0
  1429. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +1526 -0
  1430. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-constants.swift +21 -0
  1431. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-helpers.swift +40 -0
  1432. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-interfaces.swift +26 -0
  1433. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-stack.swift +138 -0
  1434. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +1794 -0
  1435. package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-common.swift +269 -0
  1436. package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-types.swift +77 -0
  1437. package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.index.ios.swift +1453 -0
  1438. package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.touch-manager.swift +451 -0
  1439. package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.html-view-common.swift +106 -0
  1440. package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +301 -0
  1441. package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.image-cache-common.swift +479 -0
  1442. package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.index.ios.swift +232 -0
  1443. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.image-common.swift +399 -0
  1444. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +499 -0
  1445. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects-common.swift +150 -0
  1446. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects.ios.swift +148 -0
  1447. package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +483 -0
  1448. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.absolute-layout-common.swift +172 -0
  1449. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.index.ios.swift +189 -0
  1450. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.dock-layout-common.swift +157 -0
  1451. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.index.ios.swift +264 -0
  1452. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.flexbox-layout-common.swift +1028 -0
  1453. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +3235 -0
  1454. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.grid-layout-common.swift +1014 -0
  1455. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.index.ios.swift +2435 -0
  1456. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.index.swift +16 -0
  1457. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base-common.swift +591 -0
  1458. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +135 -0
  1459. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +364 -0
  1460. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.liquid-glass-container-common.swift +49 -0
  1461. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +238 -0
  1462. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.liquid-glass-common.swift +34 -0
  1463. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +347 -0
  1464. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +964 -0
  1465. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-stack.swift +59 -0
  1466. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.index.ios.swift +350 -0
  1467. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.stack-layout-common.swift +72 -0
  1468. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.index.ios.swift +357 -0
  1469. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.wrap-layout-common.swift +188 -0
  1470. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +374 -0
  1471. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.list-picker-common.swift +252 -0
  1472. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +2611 -0
  1473. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.list-view-common.swift +950 -0
  1474. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.events.swift +23 -0
  1475. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +1340 -0
  1476. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.page-common.swift +520 -0
  1477. package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.index.swift +63 -0
  1478. package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.placeholder-common.swift +16 -0
  1479. package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +173 -0
  1480. package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.progress-common.swift +111 -0
  1481. package/kit-apple/Sources/NativeScriptKit/Core/ui.proxy-view-container.index.swift +497 -0
  1482. package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +535 -0
  1483. package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +699 -0
  1484. package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.scroll-view-common.swift +414 -0
  1485. package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +609 -0
  1486. package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.search-bar-common.swift +162 -0
  1487. package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +470 -0
  1488. package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.segmented-bar-common.swift +448 -0
  1489. package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +593 -0
  1490. package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.slider-common.swift +211 -0
  1491. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +1459 -0
  1492. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.split-view-common.swift +410 -0
  1493. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background-common.swift +809 -0
  1494. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2290 -0
  1495. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.box-shadow.swift +138 -0
  1496. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +198 -0
  1497. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.converters.swift +105 -0
  1498. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +493 -0
  1499. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +4016 -0
  1500. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-shadow.swift +48 -0
  1501. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-stroke.swift +41 -0
  1502. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-transform.swift +406 -0
  1503. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-utils.swift +297 -0
  1504. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +477 -0
  1505. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-interfaces.swift +16 -0
  1506. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font.ios.swift +416 -0
  1507. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.length-shared.swift +343 -0
  1508. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.linear-gradient.swift +162 -0
  1509. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-properties.swift +2524 -0
  1510. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +3330 -0
  1511. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +905 -0
  1512. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-profile.swift +16 -0
  1513. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-shared.swift +16 -0
  1514. package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +508 -0
  1515. package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.switch-common.swift +143 -0
  1516. package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +2284 -0
  1517. package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.tab-view-common.swift +985 -0
  1518. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +801 -0
  1519. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +1264 -0
  1520. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.span.swift +476 -0
  1521. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +1047 -0
  1522. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +912 -0
  1523. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.text-field-common.swift +121 -0
  1524. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +1030 -0
  1525. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +138 -0
  1526. package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +473 -0
  1527. package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.time-picker-common.swift +536 -0
  1528. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.fade-transition.ios.swift +265 -0
  1529. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +159 -0
  1530. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +635 -0
  1531. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +1167 -0
  1532. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +3673 -0
  1533. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition.swift +492 -0
  1534. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.slide-transition.ios.swift +328 -0
  1535. package/kit-apple/Sources/NativeScriptKit/Core/ui.utils.ios.swift +132 -0
  1536. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +827 -0
  1537. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +206 -0
  1538. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-interfaces.swift +16 -0
  1539. package/kit-apple/Sources/NativeScriptKit/Core/utils.animation-helpers.swift +84 -0
  1540. package/kit-apple/Sources/NativeScriptKit/Core/utils.common.swift +278 -0
  1541. package/kit-apple/Sources/NativeScriptKit/Core/utils.constants.ios.swift +33 -0
  1542. package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +271 -0
  1543. package/kit-apple/Sources/NativeScriptKit/Core/utils.debug.swift +20 -0
  1544. package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +205 -0
  1545. package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.index.ios.swift +131 -0
  1546. package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-common.swift +87 -0
  1547. package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-shared.swift +28 -0
  1548. package/kit-apple/Sources/NativeScriptKit/Core/utils.lazy.swift +39 -0
  1549. package/kit-apple/Sources/NativeScriptKit/Core/utils.macrotask-scheduler.swift +71 -0
  1550. package/kit-apple/Sources/NativeScriptKit/Core/utils.mainthread-helper.ios.swift +52 -0
  1551. package/kit-apple/Sources/NativeScriptKit/Core/utils.module-merge.swift +27 -0
  1552. package/kit-apple/Sources/NativeScriptKit/Core/utils.native-helper.ios.swift +734 -0
  1553. package/kit-apple/Sources/NativeScriptKit/Core/utils.number-utils.swift +79 -0
  1554. package/kit-apple/Sources/NativeScriptKit/Core/utils.platform-check.swift +25 -0
  1555. package/kit-apple/Sources/NativeScriptKit/Core/utils.shared.swift +84 -0
  1556. package/kit-apple/Sources/NativeScriptKit/Core/utils.types.swift +308 -0
  1557. package/kit-apple/Sources/NativeScriptKit/Core/utils.utils-shared.swift +31 -0
  1558. package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +1726 -0
  1559. package/kit-apple/Sources/NativeScriptKit/Core/xml.index.swift +775 -0
  1560. package/kit-apple/Sources/NativeScriptKit/CoreBridge.swift +388 -0
  1561. package/kit-apple/Sources/NativeScriptKit/CoreConnectivity.swift +46 -0
  1562. package/kit-apple/Sources/NativeScriptKit/CoreLifetimes.swift +15 -0
  1563. package/kit-apple/Sources/NativeScriptKit/CorePackages.swift +59 -0
  1564. package/kit-apple/Sources/NativeScriptKit/JS.swift +94 -0
  1565. package/kit-apple/Sources/NativeScriptKit/Modal.swift +65 -0
  1566. package/kit-apple/Sources/NativeScriptKit/Probe.swift +97 -0
  1567. package/kit-apple/Sources/NativeScriptKit/Regions.swift +291 -0
  1568. package/kit-apple/Sources/NativeScriptKit/Runtime/AbsentModules.swift +78 -0
  1569. package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +1693 -0
  1570. package/kit-apple/Sources/NativeScriptKit/Runtime/ArrayLike.swift +859 -0
  1571. package/kit-apple/Sources/NativeScriptKit/Runtime/BigInt.swift +338 -0
  1572. package/kit-apple/Sources/NativeScriptKit/Runtime/BuiltinValues.swift +45 -0
  1573. package/kit-apple/Sources/NativeScriptKit/Runtime/Collections.swift +609 -0
  1574. package/kit-apple/Sources/NativeScriptKit/Runtime/Date.swift +269 -0
  1575. package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +474 -0
  1576. package/kit-apple/Sources/NativeScriptKit/Runtime/ES2023.swift +105 -0
  1577. package/kit-apple/Sources/NativeScriptKit/Runtime/Errors.swift +402 -0
  1578. package/kit-apple/Sources/NativeScriptKit/Runtime/Functions.swift +372 -0
  1579. package/kit-apple/Sources/NativeScriptKit/Runtime/Inspect.swift +762 -0
  1580. package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +42 -0
  1581. package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +799 -0
  1582. package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +898 -0
  1583. package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +874 -0
  1584. package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +593 -0
  1585. package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +819 -0
  1586. package/kit-apple/Sources/NativeScriptKit/Runtime/NativeStack.swift +66 -0
  1587. package/kit-apple/Sources/NativeScriptKit/Runtime/Number.swift +599 -0
  1588. package/kit-apple/Sources/NativeScriptKit/Runtime/Promise.swift +810 -0
  1589. package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +471 -0
  1590. package/kit-apple/Sources/NativeScriptKit/Runtime/Reactive.swift +34 -0
  1591. package/kit-apple/Sources/NativeScriptKit/Runtime/Record.swift +59 -0
  1592. package/kit-apple/Sources/NativeScriptKit/Runtime/RegExp.swift +576 -0
  1593. package/kit-apple/Sources/NativeScriptKit/Runtime/RegExpEngine.swift +1918 -0
  1594. package/kit-apple/Sources/NativeScriptKit/Runtime/Stack.swift +20 -0
  1595. package/kit-apple/Sources/NativeScriptKit/Runtime/StringUTF16.swift +179 -0
  1596. package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +142 -0
  1597. package/kit-apple/Sources/NativeScriptKit/Runtime/Threads.swift +275 -0
  1598. package/kit-apple/Sources/NativeScriptKit/Runtime/Timers.swift +240 -0
  1599. package/kit-apple/Sources/NativeScriptKit/Runtime/TypedArrays.swift +996 -0
  1600. package/kit-apple/Sources/NativeScriptKit/Runtime/URI.swift +94 -0
  1601. package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +2069 -0
  1602. package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +97 -0
  1603. package/kit-apple/Sources/NativeScriptKit/Runtime/Weak.swift +135 -0
  1604. package/kit-apple/Sources/NativeScriptKit/Runtime/WinterTC.swift +484 -0
  1605. package/kit-apple/Sources/NativeScriptKit/Signals.swift +952 -0
  1606. package/kit-apple/Sources/NativeScriptKit/UncaughtErrors.swift +37 -0
  1607. package/package.json +94 -4
  1608. package/verify/ui-driver/Host/App.swift +7 -0
  1609. package/verify/ui-driver/Tests/Driver.swift +54 -0
  1610. package/verify/ui-driver/project.yml +35 -0
@@ -0,0 +1,3578 @@
1
+ // Generated from @nativescript/core by tools/kit: edit core, not this file.
2
+ package org.nativescript.kit
3
+
4
+ import androidx.annotation.UiThread
5
+
6
+ object ValueSource {
7
+ const val Default: Double = 0.0
8
+ const val Inherited: Double = 1.0
9
+ const val Css: Double = 2.0
10
+ const val Local: Double = 3.0
11
+ const val Keyframe: Double = 4.0
12
+ val jsEnumObject: JSObject by kotlin.lazy {
13
+ jsObjectOf(
14
+ "Default" to 0.0,
15
+ "0" to "Default",
16
+ "Inherited" to 1.0,
17
+ "1" to "Inherited",
18
+ "Css" to 2.0,
19
+ "2" to "Css",
20
+ "Local" to 3.0,
21
+ "3" to "Local",
22
+ "Keyframe" to 4.0,
23
+ "4" to "Keyframe",
24
+ )
25
+ }
26
+ }
27
+
28
+ /**
29
+ * Placeholder cascaded for each longhand of a shorthand that cannot be split while parsing - a
30
+ * single `var()` may substitute several longhands at once, so the shorthand is only parsed once its
31
+ * expression is resolved per view.
32
+ *
33
+ * @see https://drafts.csswg.org/css-variables/#variables-in-shorthands
34
+ */
35
+ @UiThread
36
+ open class CssPendingSubstitution : JSStringConvertible, JSExpando {
37
+ open var shorthand: String? = null
38
+ open var value: String? = null
39
+
40
+ constructor(shorthand: String?, value: String?) {
41
+ this.shorthand = shorthand
42
+ this.value = value
43
+ }
44
+
45
+ override fun toString(): String {
46
+ return (this.value ?: "undefined")
47
+ }
48
+
49
+ override var jsExpando: JSObject? = null
50
+ override val jsKeys: List<String>
51
+ get() =
52
+ (if (shorthand == null) listOf() else listOf("shorthand")) +
53
+ (if (value == null) listOf() else listOf("value")) +
54
+ (jsExpando?.jsKeys ?: listOf())
55
+
56
+ override val jsClassName: String?
57
+ get() = "CssPendingSubstitution"
58
+
59
+ override fun jsGet(key: String): Any? =
60
+ when (key) {
61
+ "shorthand" -> this.shorthand
62
+ "value" -> this.value
63
+ else -> jsExpandoGet(this, key)
64
+ }
65
+
66
+ override fun jsSet(key: String, value: Any?) {
67
+ when (key) {
68
+ "shorthand" -> this.shorthand = jsConvertedStringOrNull(value, "shorthand")
69
+ "value" -> this.value = jsConvertedStringOrNull(value, "value")
70
+ else -> jsExpandoSet(this, key, value)
71
+ }
72
+ }
73
+ }
74
+
75
+ @UiThread
76
+ open class Property : JSExpando, JSKeysMade {
77
+ var jsMadeBits0: Long = 0L
78
+
79
+ fun jsMadeNote0(bit: Long, key: String) {
80
+ if ((jsMadeBits0 and bit) == 0L) {
81
+ jsMadeBits0 = jsMadeBits0 or bit
82
+ jsMadeNote(this, key)
83
+ }
84
+ }
85
+
86
+ override var jsMade: MutableList<String>? = null
87
+ @get:JvmName("__get_registered")
88
+ @set:JvmName("__set_registered")
89
+ var registered: Boolean? = null
90
+ set(value) {
91
+ field = value
92
+ jsMadeNote0(1L shl 0, "registered")
93
+ }
94
+
95
+ @JvmField var name: String? = null
96
+ @JvmField var key: JSSymbol? = null
97
+ @JvmField var getDefault: JSSymbol? = null
98
+ @JvmField var setNative: JSSymbol? = null
99
+ @JvmField var defaultValueKey: JSSymbol? = null
100
+ @JvmField var defaultValue: Any? = null
101
+ @get:JvmName("__get_nativeValueChange")
102
+ @set:JvmName("__set_nativeValueChange")
103
+ var nativeValueChange: ((Any?, Any?) -> Unit)? = null
104
+ set(value) {
105
+ field = value
106
+ jsMadeNote0(1L shl 1, "nativeValueChange")
107
+ }
108
+
109
+ @get:JvmName("__get_isStyleProperty")
110
+ @set:JvmName("__set_isStyleProperty")
111
+ var isStyleProperty: Boolean? = false
112
+ set(value) {
113
+ field = value
114
+ jsMadeNote0(1L shl 2, "isStyleProperty")
115
+ }
116
+
117
+ @get:JvmName("__get_get")
118
+ @set:JvmName("__set_get")
119
+ var get: Any? = null
120
+ set(value) {
121
+ field = value
122
+ jsMadeNote0(1L shl 3, "get")
123
+ }
124
+
125
+ @get:JvmName("__get_set")
126
+ @set:JvmName("__set_set")
127
+ var set: Any? = null
128
+ set(value) {
129
+ field = value
130
+ jsMadeNote0(1L shl 4, "set")
131
+ }
132
+
133
+ @JvmField var overrideHandlers: ((Any?) -> Unit)? = null
134
+ @JvmField var enumerable: Boolean = true
135
+ @JvmField var configurable: Boolean = true
136
+
137
+ constructor(options: Any?) {
138
+ val propertyName: String? = jsConvertedStringOrNull(jsGet(options, "name"))
139
+ this.name = propertyName
140
+ val key: JSSymbol = jsSymbol(jsToString(propertyName) + ":propertyKey")
141
+ this.key = key
142
+ val getDefault: JSSymbol = jsSymbol(jsToString(propertyName) + ":getDefault")
143
+ this.getDefault = getDefault
144
+ val setNative: JSSymbol = jsSymbol(jsToString(propertyName) + ":setNative")
145
+ this.setNative = setNative
146
+ val defaultValueKey: JSSymbol =
147
+ jsSymbol(jsToString(propertyName) + ":nativeDefaultValue")
148
+ this.defaultValueKey = defaultValueKey
149
+ val defaultValue: Any? = jsGet(options, "defaultValue")
150
+ this.defaultValue = defaultValue
151
+ val eventName: String = jsToString(propertyName) + "Change"
152
+ var equalityComparer: ((Any?, Any?) -> Boolean)? =
153
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
154
+ jsFunction2<Any?, Any?, Boolean>(it)
155
+ }
156
+ var affectsLayout: Boolean? =
157
+ jsConvertedBooleanOrNull(jsGet(options, "affectsLayout"))
158
+ var valueChanged: ((Any?, Any?, Any?) -> Unit)? =
159
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
160
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
161
+ }
162
+ var valueConverter: ((String) -> Any?)? =
163
+ jsUnlessNullish(jsGet(options, "valueConverter")) { jsFunction1<String, Any?>(it) }
164
+ var overrideConverter: Boolean = false
165
+ this.overrideHandlers = { options: Any? ->
166
+ if (
167
+ jsTypeof(
168
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
169
+ jsFunction2<Any?, Any?, Boolean>(it)
170
+ }
171
+ ) != "undefined"
172
+ ) {
173
+ equalityComparer =
174
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
175
+ jsFunction2<Any?, Any?, Boolean>(it)
176
+ }
177
+ }
178
+ if (
179
+ jsTypeof(jsConvertedBooleanOrNull(jsGet(options, "affectsLayout"))) != "undefined"
180
+ ) {
181
+ affectsLayout =
182
+ jsConvertedBooleanOrNull(jsGet(options, "affectsLayout"))
183
+ }
184
+ if (
185
+ jsTypeof(
186
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
187
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
188
+ }
189
+ ) != "undefined"
190
+ ) {
191
+ valueChanged =
192
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
193
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
194
+ }
195
+ }
196
+ if (
197
+ jsTypeof(
198
+ jsUnlessNullish(jsGet(options, "valueConverter")) {
199
+ jsFunction1<String, Any?>(it)
200
+ }
201
+ ) != "undefined"
202
+ ) {
203
+ valueConverter =
204
+ jsUnlessNullish(jsGet(options, "valueConverter")) {
205
+ jsFunction1<String, Any?>(it)
206
+ }
207
+ overrideConverter = true
208
+ }
209
+ }
210
+ val property: Property? = this
211
+ this.set = JSMethod { __self, __a ->
212
+ val __this: Any? = __self
213
+ val boxedValue: Any? = __a.getOrNull(0)
214
+ val origin: String = jsConvertedStringOrEmpty(__a.getOrNull(1))
215
+ (fun() {
216
+ val reset: Boolean =
217
+ Core_ui_core_properties_property_shared.isResetValue(boxedValue)
218
+ var value: Any?
219
+ var wrapped: Boolean? = null
220
+ if (reset) {
221
+ value = defaultValue
222
+ } else {
223
+ wrapped =
224
+ jsConvertedBooleanOrNull(
225
+ jsAnd(boxedValue) { jsGet((boxedValue), "wrapped") }
226
+ )
227
+ value =
228
+ (if (jsTruthy(wrapped)) WrappedValue.unwrap(boxedValue) else boxedValue)
229
+ if ((jsTruthy(valueConverter) && jsTypeof(value) == "string")) {
230
+ value =
231
+ (if (overrideConverter)
232
+ (valueConverter ?: jsCannotRead("call"))(jsConvertedString(value))
233
+ else
234
+ (valueConverter ?: jsNotAFunction("valueConverter"))(
235
+ jsConvertedString(value)
236
+ ))
237
+ }
238
+ }
239
+ val oldValue: Any? =
240
+ ((if (jsHasKey(__this, key.key)) jsGet(__this, key.key) else defaultValue))
241
+ val changed: Boolean =
242
+ (if (jsTruthy(equalityComparer))
243
+ !((equalityComparer ?: jsNotAFunction("equalityComparer"))(oldValue, value))
244
+ else !jsStrictEquals(oldValue, value))
245
+ if ((jsTruthy(wrapped) || changed)) {
246
+ if (jsTruthy(affectsLayout)) {
247
+ jsCallMethod(__this, "requestLayout")
248
+ }
249
+ if (reset) {
250
+ jsDelete(__this, key.key)
251
+ if (jsTruthy(valueChanged)) {
252
+ (valueChanged ?: jsNotAFunction("valueChanged"))(
253
+ __this,
254
+ oldValue,
255
+ value,
256
+ )
257
+ }
258
+ if (jsTruthy(jsGet(__this, setNative.key))) {
259
+ if (
260
+ jsTruthy(
261
+ jsConvertedNumberOrNull(
262
+ jsGet(__this, "_suspendNativeUpdatesCount")
263
+ )
264
+ )
265
+ ) {
266
+ if (
267
+ jsTruthy(
268
+ jsRecordOrNull<Any?>(jsGet(__this, "_suspendedUpdates"))
269
+ )
270
+ ) {
271
+ (jsAsOrNull<JSRecord<Any?>>(
272
+ jsGet(__this, "_suspendedUpdates")
273
+ ) ?: JSRecord<Any?>())[jsToString(propertyName)] = property
274
+ }
275
+ } else if (jsHasKey(__this, defaultValueKey.key)) {
276
+ jsCallMethod(
277
+ __this,
278
+ setNative.key,
279
+ jsGet(__this, defaultValueKey.key),
280
+ )
281
+ jsDelete(__this, defaultValueKey.key)
282
+ } else {
283
+ jsCallMethod(__this, setNative.key, defaultValue)
284
+ }
285
+ }
286
+ } else {
287
+ jsSet(__this, key.key, value)
288
+ if (jsTruthy(valueChanged)) {
289
+ (valueChanged ?: jsNotAFunction("valueChanged"))(
290
+ __this,
291
+ oldValue,
292
+ value,
293
+ )
294
+ }
295
+ if (jsTruthy(jsGet(__this, setNative.key))) {
296
+ if (
297
+ jsTruthy(
298
+ jsConvertedNumberOrNull(
299
+ jsGet(__this, "_suspendNativeUpdatesCount")
300
+ )
301
+ )
302
+ ) {
303
+ if (
304
+ jsTruthy(
305
+ jsRecordOrNull<Any?>(jsGet(__this, "_suspendedUpdates"))
306
+ )
307
+ ) {
308
+ (jsAsOrNull<JSRecord<Any?>>(
309
+ jsGet(__this, "_suspendedUpdates")
310
+ ) ?: JSRecord<Any?>())[jsToString(propertyName)] = property
311
+ }
312
+ } else {
313
+ if (!(jsHasKey(__this, defaultValueKey.key))) {
314
+ jsSet(
315
+ __this,
316
+ defaultValueKey.key,
317
+ (if (jsTruthy(jsGet(__this, getDefault.key)))
318
+ jsCallMethod(__this, getDefault.key)
319
+ else defaultValue),
320
+ )
321
+ }
322
+ jsCallMethod(__this, setNative.key, value)
323
+ }
324
+ }
325
+ }
326
+ if (
327
+ jsConvertedBooleanOrFalse(jsCallMethod(__this, "hasListeners", eventName))
328
+ ) {
329
+ jsCallMethod(
330
+ __this,
331
+ "notify",
332
+ jsObjectOf(
333
+ "object" to __this,
334
+ "eventName" to eventName,
335
+ "propertyName" to propertyName,
336
+ "value" to value,
337
+ "oldValue" to oldValue,
338
+ "origin" to (origin ?: "script"),
339
+ ),
340
+ )
341
+ }
342
+ if (jsTruthy(jsGet(__this, "domNode"))) {
343
+ if (reset) {
344
+ jsCallMethod(
345
+ jsGet(__this, "domNode"),
346
+ "attributeRemoved",
347
+ propertyName,
348
+ )
349
+ } else {
350
+ jsCallMethod(
351
+ jsGet(__this, "domNode"),
352
+ "attributeModified",
353
+ propertyName,
354
+ value,
355
+ )
356
+ }
357
+ }
358
+ }
359
+ })()
360
+ }
361
+ this.get = JSMethod { __self, _ ->
362
+ val __this: Any? = __self
363
+ (fun(): Any? {
364
+ return ((if (jsHasKey(__this, key.key)) jsGet(__this, key.key)
365
+ else defaultValue))
366
+ })()
367
+ }
368
+ this.nativeValueChange = { owner: Any?, value: Any? ->
369
+ val oldValue: Any? =
370
+ ((if (jsHasKey(owner, key.key)) jsGet(owner, key.key) else defaultValue))
371
+ val changed: Boolean =
372
+ (if (jsTruthy(equalityComparer))
373
+ !((equalityComparer ?: jsNotAFunction("equalityComparer"))(oldValue, value))
374
+ else !jsStrictEquals(oldValue, value))
375
+ if (changed) {
376
+ jsSet(owner, key.key, value)
377
+ if (jsTruthy(valueChanged)) {
378
+ (valueChanged ?: jsNotAFunction("valueChanged"))(
379
+ owner,
380
+ oldValue,
381
+ value,
382
+ )
383
+ }
384
+ if (
385
+ (jsTruthy(jsGet(owner, "nativeViewProtected")) &&
386
+ !(jsHasKey(owner, defaultValueKey.key)))
387
+ ) {
388
+ jsSet(
389
+ owner,
390
+ defaultValueKey.key,
391
+ (if (jsTruthy(jsGet(owner, getDefault.key)))
392
+ jsCallMethod(owner, getDefault.key)
393
+ else defaultValue),
394
+ )
395
+ }
396
+ if (
397
+ jsConvertedBooleanOrFalse(jsCallMethod(owner, "hasListeners", eventName))
398
+ ) {
399
+ jsCallMethod(
400
+ owner,
401
+ "notify",
402
+ jsObjectOf(
403
+ "object" to owner,
404
+ "eventName" to eventName,
405
+ "propertyName" to propertyName,
406
+ "value" to value,
407
+ "oldValue" to oldValue,
408
+ "origin" to "native",
409
+ ),
410
+ )
411
+ }
412
+ if (jsTruthy(affectsLayout)) {
413
+ jsCallMethod(owner, "requestLayout")
414
+ }
415
+ if (jsTruthy(jsGet(owner, "domNode"))) {
416
+ jsCallMethod(
417
+ jsGet(owner, "domNode"),
418
+ "attributeModified",
419
+ propertyName,
420
+ value,
421
+ )
422
+ }
423
+ }
424
+ }
425
+ jsSet(Core_ui_core_properties_index.symbolPropertyMap, key.key, this)
426
+ }
427
+
428
+ open fun register(cls: Any?) {
429
+ if (jsTruthy(this.registered)) {
430
+ throw JSException(
431
+ JSError("Property ${jsToString((this.name ?: "undefined"))} already registered.")
432
+ )
433
+ }
434
+ this.registered = true
435
+ jsDefineProperty(
436
+ jsGet(cls, "prototype"),
437
+ jsToString((this.name ?: "undefined")),
438
+ this,
439
+ )
440
+ }
441
+
442
+ open fun isSet(instance: Any?): Boolean {
443
+ return jsHasKey(instance, (this.key?.key ?: "undefined"))
444
+ }
445
+
446
+ override var jsExpando: JSObject? = null
447
+ override val jsDeclaredKeys: List<String>
448
+ get() =
449
+ listOf("enumerable") +
450
+ listOf("configurable") +
451
+ (if (name == null) listOf() else listOf("name")) +
452
+ (if (key == null) listOf() else listOf("key")) +
453
+ (if (getDefault == null) listOf() else listOf("getDefault")) +
454
+ (if (setNative == null) listOf() else listOf("setNative")) +
455
+ (if (defaultValueKey == null) listOf() else listOf("defaultValueKey")) +
456
+ (if (defaultValue == null) listOf() else listOf("defaultValue")) +
457
+ (if (overrideHandlers == null) listOf() else listOf("overrideHandlers")) +
458
+ (if ((jsMadeBits0 and (1L shl 0)) != 0L) listOf("registered") else listOf()) +
459
+ (if ((jsMadeBits0 and (1L shl 1)) != 0L) listOf("nativeValueChange")
460
+ else listOf()) +
461
+ (if ((jsMadeBits0 and (1L shl 2)) != 0L) listOf("isStyleProperty") else listOf()) +
462
+ (if ((jsMadeBits0 and (1L shl 3)) != 0L) listOf("get") else listOf()) +
463
+ (if ((jsMadeBits0 and (1L shl 4)) != 0L) listOf("set") else listOf())
464
+
465
+ override val jsKeys: List<String>
466
+ get() = jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?: listOf()))
467
+
468
+ override val jsClassName: String?
469
+ get() = "Property"
470
+
471
+ override fun jsGet(key: String): Any? =
472
+ when (key) {
473
+ "registered" -> if ((jsMadeBits0 and (1L shl 0)) != 0L) this.registered else null
474
+ "name" -> this.name
475
+ "key" -> this.key
476
+ "getDefault" -> this.getDefault
477
+ "setNative" -> this.setNative
478
+ "defaultValueKey" -> this.defaultValueKey
479
+ "defaultValue" -> this.defaultValue
480
+ "nativeValueChange" ->
481
+ if ((jsMadeBits0 and (1L shl 1)) != 0L) this.nativeValueChange else null
482
+ "isStyleProperty" -> this.isStyleProperty
483
+ "get" -> if ((jsMadeBits0 and (1L shl 3)) != 0L) this.get else null
484
+ "set" -> if ((jsMadeBits0 and (1L shl 4)) != 0L) this.set else null
485
+ "overrideHandlers" -> this.overrideHandlers
486
+ "enumerable" -> this.enumerable
487
+ "configurable" -> this.configurable
488
+ "register" ->
489
+ jsFunction { __a ->
490
+ this.register(__a.getOrNull(0))
491
+ null
492
+ }
493
+ "isSet" -> jsFunction { __a -> this.isSet(__a.getOrNull(0)) }
494
+ else -> jsExpandoGet(this, key)
495
+ }
496
+
497
+ override fun jsSet(key: String, value: Any?) {
498
+ when (key) {
499
+ "registered" -> this.registered = jsConvertedBooleanOrNull(value, "registered")
500
+ "name" -> this.name = jsConvertedStringOrNull(value, "name")
501
+ "key" -> this.key = jsCast(value, JSSymbol::class.java)
502
+ "getDefault" -> this.getDefault = jsCast(value, JSSymbol::class.java)
503
+ "setNative" -> this.setNative = jsCast(value, JSSymbol::class.java)
504
+ "defaultValueKey" -> this.defaultValueKey = jsCast(value, JSSymbol::class.java)
505
+ "defaultValue" -> this.defaultValue = value
506
+ "nativeValueChange" ->
507
+ this.nativeValueChange =
508
+ jsUnlessNullish(value) { jsFunction2<Any?, Any?, Unit>(it) }
509
+ "isStyleProperty" ->
510
+ this.isStyleProperty = jsConvertedBooleanOrNull(value, "isStyleProperty")
511
+ "get" -> this.get = value
512
+ "set" -> this.set = value
513
+ "overrideHandlers" ->
514
+ this.overrideHandlers = jsUnlessNullish(value) { jsFunction1<Any?, Unit>(it) }
515
+ "enumerable" -> this.enumerable = jsConvertedBoolean(value, "enumerable")
516
+ "configurable" -> this.configurable = jsConvertedBoolean(value, "configurable")
517
+ else -> jsExpandoSet(this, key, value)
518
+ }
519
+ }
520
+
521
+ override fun jsHasMember(key: String): Boolean =
522
+ when (key) {
523
+ "register",
524
+ "isSet",
525
+ "isStyleProperty" -> true
526
+ else -> false
527
+ }
528
+ }
529
+
530
+ @UiThread
531
+ open class CoercibleProperty : Property {
532
+ @get:JvmName("__get_coerce")
533
+ @set:JvmName("__set_coerce")
534
+ var coerce: ((Any?) -> Unit)? = null
535
+ set(value) {
536
+ field = value
537
+ jsMadeNote0(1L shl 5, "coerce")
538
+ }
539
+
540
+ constructor(options: Any?) : super(options) {
541
+ val propertyName: String? = jsConvertedStringOrNull(jsGet(options, "name"))
542
+ val key: JSSymbol? = this.key
543
+ val getDefault: JSSymbol? = this.getDefault
544
+ val setNative: JSSymbol? = this.setNative
545
+ val defaultValueKey: JSSymbol? = this.defaultValueKey
546
+ val defaultValue: Any? = this.defaultValue
547
+ val coerceKey: JSSymbol = jsSymbol(jsToString(propertyName) + ":coerceKey")
548
+ val eventName: String = jsToString(propertyName) + "Change"
549
+ var affectsLayout: Boolean? =
550
+ jsConvertedBooleanOrNull(jsGet(options, "affectsLayout"))
551
+ var equalityComparer: ((Any?, Any?) -> Boolean)? =
552
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
553
+ jsFunction2<Any?, Any?, Boolean>(it)
554
+ }
555
+ var valueChanged: ((Any?, Any?, Any?) -> Unit)? =
556
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
557
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
558
+ }
559
+ var valueConverter: ((String) -> Any?)? =
560
+ jsUnlessNullish(jsGet(options, "valueConverter")) { jsFunction1<String, Any?>(it) }
561
+ var coerceCallback: ((Any?, Any?) -> Any?)? =
562
+ jsUnlessNullish(jsGet(options, "coerceValue")) { jsFunction2<Any?, Any?, Any?>(it) }
563
+ var overrideConverter: Boolean = false
564
+ val property: CoercibleProperty? = this
565
+ this.overrideHandlers = { options: Any? ->
566
+ if (
567
+ jsTypeof(
568
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
569
+ jsFunction2<Any?, Any?, Boolean>(it)
570
+ }
571
+ ) != "undefined"
572
+ ) {
573
+ equalityComparer =
574
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
575
+ jsFunction2<Any?, Any?, Boolean>(it)
576
+ }
577
+ }
578
+ if (
579
+ jsTypeof(jsConvertedBooleanOrNull(jsGet(options, "affectsLayout"))) != "undefined"
580
+ ) {
581
+ affectsLayout =
582
+ jsConvertedBooleanOrNull(jsGet(options, "affectsLayout"))
583
+ }
584
+ if (
585
+ jsTypeof(
586
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
587
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
588
+ }
589
+ ) != "undefined"
590
+ ) {
591
+ valueChanged =
592
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
593
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
594
+ }
595
+ }
596
+ if (
597
+ jsTypeof(
598
+ jsUnlessNullish(jsGet(options, "valueConverter")) {
599
+ jsFunction1<String, Any?>(it)
600
+ }
601
+ ) != "undefined"
602
+ ) {
603
+ valueConverter =
604
+ jsUnlessNullish(jsGet(options, "valueConverter")) {
605
+ jsFunction1<String, Any?>(it)
606
+ }
607
+ overrideConverter = true
608
+ }
609
+ if (
610
+ jsTypeof(
611
+ jsUnlessNullish(jsGet(options, "coerceValue")) {
612
+ jsFunction2<Any?, Any?, Any?>(it)
613
+ }
614
+ ) != "undefined"
615
+ ) {
616
+ coerceCallback =
617
+ jsUnlessNullish(jsGet(options, "coerceValue")) {
618
+ jsFunction2<Any?, Any?, Any?>(it)
619
+ }
620
+ }
621
+ }
622
+ this.coerce = { target: Any? ->
623
+ val originalValue: Any? =
624
+ ((if (jsHasKey(target, coerceKey.key)) jsGet(target, coerceKey.key)
625
+ else defaultValue))
626
+ jsSet(target, jsToString(propertyName), originalValue)
627
+ }
628
+ this.set = JSMethod { __self, __a ->
629
+ val __this: Any? = __self
630
+ val boxedValue: Any? = __a.getOrNull(0)
631
+ (fun() {
632
+ val reset: Boolean =
633
+ Core_ui_core_properties_property_shared.isResetValue(boxedValue)
634
+ var value: Any?
635
+ var wrapped: Boolean? = null
636
+ if (reset) {
637
+ value = defaultValue
638
+ jsDelete(__this, coerceKey.key)
639
+ } else {
640
+ wrapped =
641
+ jsConvertedBooleanOrNull(
642
+ jsAnd(boxedValue) { jsGet((boxedValue), "wrapped") }
643
+ )
644
+ value =
645
+ (if (jsTruthy(wrapped)) WrappedValue.unwrap(boxedValue) else boxedValue)
646
+ if ((jsTruthy(valueConverter) && jsTypeof(value) == "string")) {
647
+ value =
648
+ (if (overrideConverter)
649
+ (valueConverter ?: jsCannotRead("call"))(jsConvertedString(value))
650
+ else
651
+ (valueConverter ?: jsNotAFunction("valueConverter"))(
652
+ jsConvertedString(value)
653
+ ))
654
+ }
655
+ jsSet(__this, coerceKey.key, value)
656
+ value =
657
+ (coerceCallback ?: jsNotAFunction("coerceCallback"))(__this, value)
658
+ }
659
+ val oldValue: Any? =
660
+ (if (jsHasKey(__this, (key?.key ?: "undefined")))
661
+ jsGet(__this, (key?.key ?: "undefined"))
662
+ else defaultValue)
663
+ val changed: Boolean =
664
+ (if (jsTruthy(equalityComparer))
665
+ !((equalityComparer ?: jsNotAFunction("equalityComparer"))(oldValue, value))
666
+ else !jsStrictEquals(oldValue, value))
667
+ if ((jsTruthy(wrapped) || changed)) {
668
+ if (reset) {
669
+ jsDelete(__this, (key?.key ?: "undefined"))
670
+ if (jsTruthy(valueChanged)) {
671
+ (valueChanged ?: jsNotAFunction("valueChanged"))(
672
+ __this,
673
+ oldValue,
674
+ value,
675
+ )
676
+ }
677
+ if (jsTruthy(jsGet(__this, (setNative?.key ?: "undefined")))) {
678
+ if (
679
+ jsTruthy(
680
+ jsConvertedNumberOrNull(
681
+ jsGet(__this, "_suspendNativeUpdatesCount")
682
+ )
683
+ )
684
+ ) {
685
+ if (
686
+ jsTruthy(
687
+ jsRecordOrNull<Any?>(jsGet(__this, "_suspendedUpdates"))
688
+ )
689
+ ) {
690
+ (jsAsOrNull<JSRecord<Any?>>(
691
+ jsGet(__this, "_suspendedUpdates")
692
+ ) ?: JSRecord<Any?>())[jsToString(propertyName)] = property
693
+ }
694
+ } else if (
695
+ jsHasKey(__this, (defaultValueKey?.key ?: "undefined"))
696
+ ) {
697
+ jsCallMethod(
698
+ __this,
699
+ (setNative?.key ?: "undefined"),
700
+ jsGet(__this, (defaultValueKey?.key ?: "undefined")),
701
+ )
702
+ jsDelete(__this, (defaultValueKey?.key ?: "undefined"))
703
+ } else {
704
+ jsCallMethod(
705
+ __this,
706
+ (setNative?.key ?: "undefined"),
707
+ defaultValue,
708
+ )
709
+ }
710
+ }
711
+ } else {
712
+ jsSet(__this, (key?.key ?: "undefined"), value)
713
+ if (jsTruthy(valueChanged)) {
714
+ (valueChanged ?: jsNotAFunction("valueChanged"))(
715
+ __this,
716
+ oldValue,
717
+ value,
718
+ )
719
+ }
720
+ if (jsTruthy(jsGet(__this, (setNative?.key ?: "undefined")))) {
721
+ if (
722
+ jsTruthy(
723
+ jsConvertedNumberOrNull(
724
+ jsGet(__this, "_suspendNativeUpdatesCount")
725
+ )
726
+ )
727
+ ) {
728
+ if (
729
+ jsTruthy(
730
+ jsRecordOrNull<Any?>(jsGet(__this, "_suspendedUpdates"))
731
+ )
732
+ ) {
733
+ (jsAsOrNull<JSRecord<Any?>>(
734
+ jsGet(__this, "_suspendedUpdates")
735
+ ) ?: JSRecord<Any?>())[jsToString(propertyName)] = property
736
+ }
737
+ } else {
738
+ if (
739
+ !(jsHasKey(__this, (defaultValueKey?.key ?: "undefined")))
740
+ ) {
741
+ jsSet(
742
+ __this,
743
+ (defaultValueKey?.key ?: "undefined"),
744
+ (if (
745
+ jsTruthy(
746
+ jsGet(__this, (getDefault?.key ?: "undefined"))
747
+ )
748
+ )
749
+ jsCallMethod(__this, (getDefault?.key ?: "undefined"))
750
+ else defaultValue),
751
+ )
752
+ }
753
+ jsCallMethod(
754
+ __this,
755
+ (setNative?.key ?: "undefined"),
756
+ value,
757
+ )
758
+ }
759
+ }
760
+ }
761
+ if (
762
+ jsConvertedBooleanOrFalse(jsCallMethod(__this, "hasListeners", eventName))
763
+ ) {
764
+ jsCallMethod(
765
+ __this,
766
+ "notify",
767
+ jsObjectOf(
768
+ "object" to __this,
769
+ "eventName" to eventName,
770
+ "propertyName" to propertyName,
771
+ "value" to value,
772
+ "oldValue" to oldValue,
773
+ "origin" to "script",
774
+ ),
775
+ )
776
+ }
777
+ if (jsTruthy(affectsLayout)) {
778
+ jsCallMethod(__this, "requestLayout")
779
+ }
780
+ if (jsTruthy(jsGet(__this, "domNode"))) {
781
+ if (reset) {
782
+ jsCallMethod(
783
+ jsGet(__this, "domNode"),
784
+ "attributeRemoved",
785
+ propertyName,
786
+ )
787
+ } else {
788
+ jsCallMethod(
789
+ jsGet(__this, "domNode"),
790
+ "attributeModified",
791
+ propertyName,
792
+ value,
793
+ )
794
+ }
795
+ }
796
+ }
797
+ })()
798
+ }
799
+ }
800
+
801
+ override val jsDeclaredKeys: List<String>
802
+ get() =
803
+ super.jsDeclaredKeys +
804
+ (if ((jsMadeBits0 and (1L shl 5)) != 0L) listOf("coerce") else listOf())
805
+
806
+ override val jsClassName: String?
807
+ get() = "CoercibleProperty"
808
+
809
+ override fun jsGet(key: String): Any? =
810
+ when (key) {
811
+ "coerce" -> if ((jsMadeBits0 and (1L shl 5)) != 0L) this.coerce else null
812
+ else -> super.jsGet(key)
813
+ }
814
+
815
+ override fun jsSet(key: String, value: Any?) {
816
+ when (key) {
817
+ "coerce" -> this.coerce = jsUnlessNullish(value) { jsFunction1<Any?, Unit>(it) }
818
+ else -> super.jsSet(key, value)
819
+ }
820
+ }
821
+ }
822
+
823
+ @UiThread
824
+ open class InheritedProperty : Property {
825
+ @get:JvmName("__get_sourceKey")
826
+ @set:JvmName("__set_sourceKey")
827
+ var sourceKey: JSSymbol? = null
828
+ set(value) {
829
+ field = value
830
+ jsMadeNote0(1L shl 5, "sourceKey")
831
+ }
832
+
833
+ @get:JvmName("__get_setInheritedValue")
834
+ @set:JvmName("__set_setInheritedValue")
835
+ var setInheritedValue: Any? = null
836
+ set(value) {
837
+ field = value
838
+ jsMadeNote0(1L shl 6, "setInheritedValue")
839
+ }
840
+
841
+ constructor(options: Any?) : super(options) {
842
+ var setInheritedValue: Any? = null
843
+ val name: String? = jsConvertedStringOrNull(jsGet(options, "name"))
844
+ val key: JSSymbol? = this.key
845
+ val defaultValue: Any? = jsGet(options, "defaultValue")
846
+ val sourceKey: JSSymbol = jsSymbol(jsToString(name) + ":valueSourceKey")
847
+ this.sourceKey = sourceKey
848
+ val setBase: Any? = this.set
849
+ var setFunc: Any? = null
850
+ setFunc = kotlin.run {
851
+ val __f = { valueSource: Double ->
852
+ JSMethod { __self, __a ->
853
+ val __this: Any? = __self
854
+ val value: Any? = __a.getOrNull(0)
855
+ (fun() {
856
+ val that: Any? = __this
857
+ val unboxedValue: Any?
858
+ val newValueSource: Double
859
+ if (
860
+ Core_ui_core_properties_property_shared.isResetValue(value)
861
+ ) {
862
+ val parent: ViewBase? =
863
+ jsCast(jsGet(that, "parent"), ViewBase::class.java)
864
+ if (
865
+ ((!jsStrictEquals(value, "initial") && jsTruthy(parent)) &&
866
+ !jsStrictEquals(
867
+ jsGet(parent, sourceKey.key),
868
+ ValueSource.Default,
869
+ ))
870
+ ) {
871
+ unboxedValue = jsGet(parent, jsToString(name))
872
+ newValueSource = ValueSource.Inherited
873
+ } else {
874
+ unboxedValue = defaultValue
875
+ newValueSource = ValueSource.Default
876
+ }
877
+ } else {
878
+ unboxedValue = value
879
+ newValueSource = valueSource
880
+ }
881
+ val currentValue: Any? = jsGet(that, (key?.key ?: "undefined"))
882
+ jsCallMethod(
883
+ setBase,
884
+ "call",
885
+ that,
886
+ unboxedValue,
887
+ (if (valueSource == ValueSource.Local) "script" else "inherited"),
888
+ )
889
+ val newValue: Any? = jsGet(that, (key?.key ?: "undefined"))
890
+ jsSet(that, sourceKey.key, newValueSource)
891
+ if (!jsStrictEquals(currentValue, newValue)) {
892
+ val reset: Boolean = newValueSource == ValueSource.Default
893
+ jsCallMethod(
894
+ that,
895
+ "eachChild",
896
+ { child: ViewBase? ->
897
+ val childValueSource: Any? =
898
+ jsOr(jsGet(child, sourceKey.key)) { ValueSource.Default }
899
+ if (reset) {
900
+ if (
901
+ jsStrictEquals(childValueSource, ValueSource.Inherited)
902
+ ) {
903
+ jsCallMethod(
904
+ setFunc,
905
+ "call",
906
+ child,
907
+ Core_ui_core_properties_property_shared.unsetValue,
908
+ )
909
+ }
910
+ } else {
911
+ if (
912
+ jsLessOrEqualThrowing(
913
+ childValueSource,
914
+ ValueSource.Inherited,
915
+ )
916
+ ) {
917
+ jsCallMethod(
918
+ setInheritedValue,
919
+ "call",
920
+ child,
921
+ newValue,
922
+ )
923
+ }
924
+ }
925
+ true
926
+ },
927
+ )
928
+ }
929
+ })()
930
+ }
931
+ };
932
+ { __u0: Any? -> __f(jsConvertedNumberOrZero(__u0)) }
933
+ }
934
+ setInheritedValue = jsCall(setFunc, ValueSource.Inherited)
935
+ this.setInheritedValue = setInheritedValue
936
+ this.set = jsCall(setFunc, ValueSource.Local)
937
+ Core_ui_core_properties_index.inheritableProperties.push(this)
938
+ }
939
+
940
+ override val jsDeclaredKeys: List<String>
941
+ get() =
942
+ super.jsDeclaredKeys +
943
+ (if ((jsMadeBits0 and (1L shl 5)) != 0L) listOf("sourceKey") else listOf()) +
944
+ (if ((jsMadeBits0 and (1L shl 6)) != 0L) listOf("setInheritedValue") else listOf())
945
+
946
+ override val jsClassName: String?
947
+ get() = "InheritedProperty"
948
+
949
+ override fun jsGet(key: String): Any? =
950
+ when (key) {
951
+ "sourceKey" -> if ((jsMadeBits0 and (1L shl 5)) != 0L) this.sourceKey else null
952
+ "setInheritedValue" ->
953
+ if ((jsMadeBits0 and (1L shl 6)) != 0L) this.setInheritedValue else null
954
+ else -> super.jsGet(key)
955
+ }
956
+
957
+ override fun jsSet(key: String, value: Any?) {
958
+ when (key) {
959
+ "sourceKey" -> this.sourceKey = jsCast(value, JSSymbol::class.java)
960
+ "setInheritedValue" -> this.setInheritedValue = value
961
+ else -> super.jsSet(key, value)
962
+ }
963
+ }
964
+ }
965
+
966
+ @UiThread
967
+ open class CssProperty : JSExpando, JSKeysMade {
968
+ var jsMadeBits0: Long = 0L
969
+
970
+ fun jsMadeNote0(bit: Long, key: String) {
971
+ if ((jsMadeBits0 and bit) == 0L) {
972
+ jsMadeBits0 = jsMadeBits0 or bit
973
+ jsMadeNote(this, key)
974
+ }
975
+ }
976
+
977
+ override var jsMade: MutableList<String>? = null
978
+ @get:JvmName("__get_registered")
979
+ @set:JvmName("__set_registered")
980
+ var registered: Boolean? = null
981
+ set(value) {
982
+ field = value
983
+ jsMadeNote0(1L shl 0, "registered")
984
+ }
985
+
986
+ @JvmField var name: String? = null
987
+ @JvmField var cssName: String? = null
988
+ @JvmField var cssLocalName: String? = null
989
+ @get:JvmName("__get_cssValueDescriptor")
990
+ @set:JvmName("__set_cssValueDescriptor")
991
+ var cssValueDescriptor: Any? = null
992
+ set(value) {
993
+ field = value
994
+ jsMadeNote0(1L shl 1, "cssValueDescriptor")
995
+ }
996
+
997
+ @get:JvmName("__get_localValueDescriptor")
998
+ @set:JvmName("__set_localValueDescriptor")
999
+ var localValueDescriptor: Any? = null
1000
+ set(value) {
1001
+ field = value
1002
+ jsMadeNote0(1L shl 2, "localValueDescriptor")
1003
+ }
1004
+
1005
+ @get:JvmName("__get_isStyleProperty")
1006
+ @set:JvmName("__set_isStyleProperty")
1007
+ var isStyleProperty: Boolean? = true
1008
+ set(value) {
1009
+ field = value
1010
+ jsMadeNote0(1L shl 3, "isStyleProperty")
1011
+ }
1012
+
1013
+ @JvmField var key: JSSymbol? = null
1014
+ @JvmField var getDefault: JSSymbol? = null
1015
+ @JvmField var setNative: JSSymbol? = null
1016
+ @JvmField var sourceKey: JSSymbol? = null
1017
+ @JvmField var defaultValueKey: JSSymbol? = null
1018
+ @JvmField var defaultValue: Any? = null
1019
+ @JvmField var overrideHandlers: ((Any?) -> Unit)? = null
1020
+
1021
+ constructor(options: Any?) {
1022
+ lateinit var key: JSSymbol
1023
+ var defaultValue: Any? = null
1024
+ fun get(__this: Any?): Any? {
1025
+ return (if (jsHasKey(__this, key.key)) jsGet(__this, key.key)
1026
+ else defaultValue)
1027
+ }
1028
+ val propertyName: String? = jsConvertedStringOrNull(jsGet(options, "name"))
1029
+ this.name = propertyName
1030
+ if (jsTruthy(jsConvertedStringOrNull(jsGet(options, "cssName")))) {
1031
+ Core_ui_core_properties_index.cssPropertyNames.push(
1032
+ (jsConvertedStringOrNull(jsGet(options, "cssName")) ?: "undefined")
1033
+ )
1034
+ }
1035
+ this.cssName =
1036
+ "css:${jsToString(jsConvertedStringOrNull(jsGet(options, "cssName")))}"
1037
+ this.cssLocalName = jsConvertedStringOrNull(jsGet(options, "cssName"))
1038
+ key = jsSymbol(jsToString(propertyName) + ":propertyKey")
1039
+ this.key = key
1040
+ val sourceKey: JSSymbol =
1041
+ jsSymbol(jsToString(propertyName) + ":valueSourceKey")
1042
+ this.sourceKey = sourceKey
1043
+ val getDefault: JSSymbol = jsSymbol(jsToString(propertyName) + ":getDefault")
1044
+ this.getDefault = getDefault
1045
+ val setNative: JSSymbol = jsSymbol(jsToString(propertyName) + ":setNative")
1046
+ this.setNative = setNative
1047
+ val defaultValueKey: JSSymbol =
1048
+ jsSymbol(jsToString(propertyName) + ":nativeDefaultValue")
1049
+ this.defaultValueKey = defaultValueKey
1050
+ defaultValue = jsGet(options, "defaultValue")
1051
+ this.defaultValue = defaultValue
1052
+ val eventName: String = jsToString(propertyName) + "Change"
1053
+ var affectsLayout: Boolean? =
1054
+ jsConvertedBooleanOrNull(jsGet(options, "affectsLayout"))
1055
+ var equalityComparer: ((Any?, Any?) -> Boolean)? =
1056
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
1057
+ jsFunction2<Any?, Any?, Boolean>(it)
1058
+ }
1059
+ var valueChanged: ((Any?, Any?, Any?) -> Unit)? =
1060
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
1061
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
1062
+ }
1063
+ var valueConverter: ((String) -> Any?)? =
1064
+ jsUnlessNullish(jsGet(options, "valueConverter")) { jsFunction1<String, Any?>(it) }
1065
+ var overrideConverter: Boolean = false
1066
+ this.overrideHandlers = { options: Any? ->
1067
+ if (
1068
+ jsTypeof(
1069
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
1070
+ jsFunction2<Any?, Any?, Boolean>(it)
1071
+ }
1072
+ ) != "undefined"
1073
+ ) {
1074
+ equalityComparer =
1075
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
1076
+ jsFunction2<Any?, Any?, Boolean>(it)
1077
+ }
1078
+ }
1079
+ if (
1080
+ jsTypeof(jsConvertedBooleanOrNull(jsGet(options, "affectsLayout"))) != "undefined"
1081
+ ) {
1082
+ affectsLayout =
1083
+ jsConvertedBooleanOrNull(jsGet(options, "affectsLayout"))
1084
+ }
1085
+ if (
1086
+ jsTypeof(
1087
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
1088
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
1089
+ }
1090
+ ) != "undefined"
1091
+ ) {
1092
+ valueChanged =
1093
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
1094
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
1095
+ }
1096
+ }
1097
+ if (
1098
+ jsTypeof(
1099
+ jsUnlessNullish(jsGet(options, "valueConverter")) {
1100
+ jsFunction1<String, Any?>(it)
1101
+ }
1102
+ ) != "undefined"
1103
+ ) {
1104
+ valueConverter =
1105
+ jsUnlessNullish(jsGet(options, "valueConverter")) {
1106
+ jsFunction1<String, Any?>(it)
1107
+ }
1108
+ overrideConverter = true
1109
+ }
1110
+ }
1111
+ val property: CssProperty? = this
1112
+ fun setLocalValue(__this: Any?, newValue: Any?) {
1113
+ var newValue: Any? = newValue
1114
+ val view: ViewBase? =
1115
+ jsUnchecked<JSWeakRef<ViewBase>>(jsJavaArgument(jsGet(__this, "viewRef"))).get()
1116
+ if (!jsTruthy(view)) {
1117
+ org.nativescript.kit.Trace.write(
1118
+ "${jsToStringThrowing(newValue)} not set to view because \".viewRef\" is cleared",
1119
+ org.nativescript.kit.Trace.categories.Style,
1120
+ org.nativescript.kit.Trace.messageType.warn,
1121
+ )
1122
+ return
1123
+ }
1124
+ jsSet(
1125
+ __this,
1126
+ "_localValueVersion",
1127
+ jsToNumber(jsGet(__this, "_localValueVersion")) + 1.0,
1128
+ )
1129
+ var reset: Boolean =
1130
+ Core_ui_core_properties_property_shared.isResetValue(newValue) ||
1131
+ jsStrictEquals(newValue, "")
1132
+ var valueSource: Double = ValueSource.Local
1133
+ val value: Any?
1134
+ if (reset) {
1135
+ val cssValue: Any? =
1136
+ Core_ui_core_properties_index.cascadedCssValue(
1137
+ view,
1138
+ (property ?: jsCannotRead("cssLocalName")).cssLocalName,
1139
+ )
1140
+ if (!jsStrictEquals(cssValue, null)) {
1141
+ newValue = cssValue
1142
+ valueSource = ValueSource.Css
1143
+ reset = false
1144
+ }
1145
+ }
1146
+ if (reset) {
1147
+ value = defaultValue
1148
+ jsDelete(__this, sourceKey.key)
1149
+ } else {
1150
+ jsSet(__this, sourceKey.key, valueSource)
1151
+ value =
1152
+ (if ((jsTruthy(valueConverter) && jsTypeof(newValue) == "string"))
1153
+ ((if (overrideConverter)
1154
+ (valueConverter ?: jsCannotRead("call"))(jsConvertedString(newValue))
1155
+ else
1156
+ (valueConverter ?: jsNotAFunction("valueConverter"))(
1157
+ jsConvertedString(newValue)
1158
+ )))
1159
+ else newValue)
1160
+ }
1161
+ val oldValue: Any? =
1162
+ ((if (jsHasKey(__this, key.key)) jsGet(__this, key.key) else defaultValue))
1163
+ val changed: Boolean =
1164
+ (if (jsTruthy(equalityComparer))
1165
+ !((equalityComparer ?: jsNotAFunction("equalityComparer"))(oldValue, value))
1166
+ else !jsStrictEquals(oldValue, value))
1167
+ if (changed) {
1168
+ if (reset) {
1169
+ jsDelete(__this, key.key)
1170
+ if (jsTruthy(valueChanged)) {
1171
+ (valueChanged ?: jsNotAFunction("valueChanged"))(
1172
+ __this,
1173
+ oldValue,
1174
+ value,
1175
+ )
1176
+ }
1177
+ if (jsTruthy(jsGet(view, setNative.key))) {
1178
+ if (
1179
+ jsTruthy(
1180
+ (view ?: jsCannotRead("_suspendNativeUpdatesCount"))
1181
+ ._suspendNativeUpdatesCount
1182
+ )
1183
+ ) {
1184
+ if (
1185
+ jsTruthy(
1186
+ (view ?: jsCannotRead("_suspendedUpdates"))._suspendedUpdates
1187
+ )
1188
+ ) {
1189
+ ((view ?: jsCannotRead("_suspendedUpdates"))
1190
+ ._suspendedUpdates ?: jsCannotSet(jsToString(propertyName)))[
1191
+ jsToString(propertyName)] = property
1192
+ }
1193
+ } else if (jsHasKey(__this, defaultValueKey.key)) {
1194
+ jsCallMethod(
1195
+ view,
1196
+ setNative.key,
1197
+ jsGet(__this, defaultValueKey.key),
1198
+ )
1199
+ jsDelete(__this, defaultValueKey.key)
1200
+ } else {
1201
+ jsCallMethod(view, setNative.key, defaultValue)
1202
+ }
1203
+ }
1204
+ } else {
1205
+ jsSet(__this, key.key, value)
1206
+ if (jsTruthy(valueChanged)) {
1207
+ (valueChanged ?: jsNotAFunction("valueChanged"))(
1208
+ __this,
1209
+ oldValue,
1210
+ value,
1211
+ )
1212
+ }
1213
+ if (jsTruthy(jsGet(view, setNative.key))) {
1214
+ if (
1215
+ jsTruthy(
1216
+ (view ?: jsCannotRead("_suspendNativeUpdatesCount"))
1217
+ ._suspendNativeUpdatesCount
1218
+ )
1219
+ ) {
1220
+ if (
1221
+ jsTruthy(
1222
+ (view ?: jsCannotRead("_suspendedUpdates"))._suspendedUpdates
1223
+ )
1224
+ ) {
1225
+ ((view ?: jsCannotRead("_suspendedUpdates"))
1226
+ ._suspendedUpdates ?: jsCannotSet(jsToString(propertyName)))[
1227
+ jsToString(propertyName)] = property
1228
+ }
1229
+ } else {
1230
+ if (!(jsHasKey(__this, defaultValueKey.key))) {
1231
+ jsSet(
1232
+ __this,
1233
+ defaultValueKey.key,
1234
+ (if (jsTruthy(jsGet(view, getDefault.key)))
1235
+ jsCallMethod(view, getDefault.key)
1236
+ else defaultValue),
1237
+ )
1238
+ }
1239
+ jsCallMethod(view, setNative.key, value)
1240
+ }
1241
+ }
1242
+ }
1243
+ if (
1244
+ jsConvertedBooleanOrFalse(jsCallMethod(__this, "hasListeners", eventName))
1245
+ ) {
1246
+ jsCallMethod(
1247
+ __this,
1248
+ "notify",
1249
+ jsObjectOf(
1250
+ "object" to __this,
1251
+ "eventName" to eventName,
1252
+ "propertyName" to propertyName,
1253
+ "value" to value,
1254
+ "oldValue" to oldValue,
1255
+ "origin" to "script",
1256
+ ),
1257
+ )
1258
+ }
1259
+ if (jsTruthy(affectsLayout)) {
1260
+ (view ?: jsCannotRead("requestLayout")).requestLayout()
1261
+ }
1262
+ }
1263
+ }
1264
+ fun setCssValue(__this: Any?, newValue: Any?) {
1265
+ val view: ViewBase? =
1266
+ jsUnchecked<JSWeakRef<ViewBase>>(jsJavaArgument(jsGet(__this, "viewRef"))).get()
1267
+ if (!jsTruthy(view)) {
1268
+ org.nativescript.kit.Trace.write(
1269
+ "${jsToStringThrowing(newValue)} not set to view because \".viewRef\" is cleared",
1270
+ org.nativescript.kit.Trace.categories.Style,
1271
+ org.nativescript.kit.Trace.messageType.warn,
1272
+ )
1273
+ return
1274
+ }
1275
+ val currentValueSource: Double =
1276
+ jsConvertedNumberOrZero(jsOr(jsGet(__this, sourceKey.key)) { ValueSource.Default })
1277
+ if (currentValueSource == ValueSource.Local) {
1278
+ return
1279
+ }
1280
+ val reset: Boolean =
1281
+ Core_ui_core_properties_property_shared.isResetValue(newValue) ||
1282
+ jsStrictEquals(newValue, "")
1283
+ val value: Any?
1284
+ if (reset) {
1285
+ value = defaultValue
1286
+ jsDelete(__this, sourceKey.key)
1287
+ } else {
1288
+ value =
1289
+ (if ((jsTruthy(valueConverter) && jsTypeof(newValue) == "string"))
1290
+ ((if (overrideConverter)
1291
+ (valueConverter ?: jsCannotRead("call"))(jsConvertedString(newValue))
1292
+ else
1293
+ (valueConverter ?: jsNotAFunction("valueConverter"))(
1294
+ jsConvertedString(newValue)
1295
+ )))
1296
+ else newValue)
1297
+ jsSet(__this, sourceKey.key, ValueSource.Css)
1298
+ }
1299
+ val oldValue: Any? =
1300
+ ((if (jsHasKey(__this, key.key)) jsGet(__this, key.key) else defaultValue))
1301
+ val changed: Boolean =
1302
+ (if (jsTruthy(equalityComparer))
1303
+ !((equalityComparer ?: jsNotAFunction("equalityComparer"))(oldValue, value))
1304
+ else !jsStrictEquals(oldValue, value))
1305
+ if (changed) {
1306
+ if (reset) {
1307
+ jsDelete(__this, key.key)
1308
+ if (jsTruthy(valueChanged)) {
1309
+ (valueChanged ?: jsNotAFunction("valueChanged"))(
1310
+ __this,
1311
+ oldValue,
1312
+ value,
1313
+ )
1314
+ }
1315
+ if (jsTruthy(jsGet(view, setNative.key))) {
1316
+ if (
1317
+ jsTruthy(
1318
+ (view ?: jsCannotRead("_suspendNativeUpdatesCount"))
1319
+ ._suspendNativeUpdatesCount
1320
+ )
1321
+ ) {
1322
+ if (
1323
+ jsTruthy(
1324
+ (view ?: jsCannotRead("_suspendedUpdates"))._suspendedUpdates
1325
+ )
1326
+ ) {
1327
+ ((view ?: jsCannotRead("_suspendedUpdates"))
1328
+ ._suspendedUpdates ?: jsCannotSet(jsToString(propertyName)))[
1329
+ jsToString(propertyName)] = property
1330
+ }
1331
+ } else if (jsHasKey(__this, defaultValueKey.key)) {
1332
+ jsCallMethod(
1333
+ view,
1334
+ setNative.key,
1335
+ jsGet(__this, defaultValueKey.key),
1336
+ )
1337
+ jsDelete(__this, defaultValueKey.key)
1338
+ } else {
1339
+ jsCallMethod(view, setNative.key, defaultValue)
1340
+ }
1341
+ }
1342
+ } else {
1343
+ jsSet(__this, key.key, value)
1344
+ if (jsTruthy(valueChanged)) {
1345
+ (valueChanged ?: jsNotAFunction("valueChanged"))(
1346
+ __this,
1347
+ oldValue,
1348
+ value,
1349
+ )
1350
+ }
1351
+ if (jsTruthy(jsGet(view, setNative.key))) {
1352
+ if (
1353
+ jsTruthy(
1354
+ (view ?: jsCannotRead("_suspendNativeUpdatesCount"))
1355
+ ._suspendNativeUpdatesCount
1356
+ )
1357
+ ) {
1358
+ if (
1359
+ jsTruthy(
1360
+ (view ?: jsCannotRead("_suspendedUpdates"))._suspendedUpdates
1361
+ )
1362
+ ) {
1363
+ ((view ?: jsCannotRead("_suspendedUpdates"))
1364
+ ._suspendedUpdates ?: jsCannotSet(jsToString(propertyName)))[
1365
+ jsToString(propertyName)] = property
1366
+ }
1367
+ } else {
1368
+ if (!(jsHasKey(__this, defaultValueKey.key))) {
1369
+ jsSet(
1370
+ __this,
1371
+ defaultValueKey.key,
1372
+ (if (jsTruthy(jsGet(view, getDefault.key)))
1373
+ jsCallMethod(view, getDefault.key)
1374
+ else defaultValue),
1375
+ )
1376
+ }
1377
+ jsCallMethod(view, setNative.key, value)
1378
+ }
1379
+ }
1380
+ }
1381
+ if (
1382
+ jsConvertedBooleanOrFalse(jsCallMethod(__this, "hasListeners", eventName))
1383
+ ) {
1384
+ jsCallMethod(
1385
+ __this,
1386
+ "notify",
1387
+ jsObjectOf(
1388
+ "object" to __this,
1389
+ "eventName" to eventName,
1390
+ "propertyName" to propertyName,
1391
+ "value" to value,
1392
+ "oldValue" to oldValue,
1393
+ "origin" to "css",
1394
+ ),
1395
+ )
1396
+ }
1397
+ if (jsTruthy(affectsLayout)) {
1398
+ (view ?: jsCannotRead("requestLayout")).requestLayout()
1399
+ }
1400
+ }
1401
+ }
1402
+ this.cssValueDescriptor =
1403
+ jsObjectOf(
1404
+ "enumerable" to true,
1405
+ "configurable" to true,
1406
+ "get" to JSMethod { __self, _ -> get(__self) },
1407
+ "set" to JSMethod { __self, __a -> setCssValue(__self, __a.getOrNull(0)) },
1408
+ )
1409
+ this.localValueDescriptor =
1410
+ jsObjectOf(
1411
+ "enumerable" to true,
1412
+ "configurable" to true,
1413
+ "get" to JSMethod { __self, _ -> get(__self) },
1414
+ "set" to JSMethod { __self, __a -> setLocalValue(__self, __a.getOrNull(0)) },
1415
+ )
1416
+ jsSet(Core_ui_core_properties_index.cssSymbolPropertyMap, key.key, this)
1417
+ }
1418
+
1419
+ open fun register(cls: Any?) {
1420
+ if (jsTruthy(this.registered)) {
1421
+ throw JSException(
1422
+ JSError("Property ${jsToString((this.name ?: "undefined"))} already registered.")
1423
+ )
1424
+ }
1425
+ this.registered = true
1426
+ jsDefineProperty(
1427
+ jsGet(cls, "prototype"),
1428
+ jsToString((this.name ?: "undefined")),
1429
+ this.localValueDescriptor,
1430
+ )
1431
+ jsDefineProperty(
1432
+ jsGet(cls, "prototype"),
1433
+ jsToString((this.cssName ?: "undefined")),
1434
+ this.cssValueDescriptor,
1435
+ )
1436
+ if (this.cssLocalName != this.cssName) {
1437
+ jsDefineProperty(
1438
+ jsGet(cls, "prototype"),
1439
+ jsToString((this.cssLocalName ?: "undefined")),
1440
+ this.localValueDescriptor,
1441
+ )
1442
+ }
1443
+ (Core_ui_core_properties_index.cssValueSourceKeys
1444
+ ?: jsCannotSet(jsToString((this.cssLocalName ?: "undefined"))))[
1445
+ jsToString((this.cssLocalName ?: "undefined"))] = (this.sourceKey ?: jsObjectRequired())
1446
+ }
1447
+
1448
+ open fun isSet(instance: Any?): Boolean {
1449
+ return jsHasKey(instance, (this.key?.key ?: "undefined"))
1450
+ }
1451
+
1452
+ override var jsExpando: JSObject? = null
1453
+ override val jsDeclaredKeys: List<String>
1454
+ get() =
1455
+ (if (name == null) listOf() else listOf("name")) +
1456
+ (if (cssName == null) listOf() else listOf("cssName")) +
1457
+ (if (cssLocalName == null) listOf() else listOf("cssLocalName")) +
1458
+ (if (key == null) listOf() else listOf("key")) +
1459
+ (if (sourceKey == null) listOf() else listOf("sourceKey")) +
1460
+ (if (getDefault == null) listOf() else listOf("getDefault")) +
1461
+ (if (setNative == null) listOf() else listOf("setNative")) +
1462
+ (if (defaultValueKey == null) listOf() else listOf("defaultValueKey")) +
1463
+ (if (defaultValue == null) listOf() else listOf("defaultValue")) +
1464
+ (if (overrideHandlers == null) listOf() else listOf("overrideHandlers")) +
1465
+ (if ((jsMadeBits0 and (1L shl 0)) != 0L) listOf("registered") else listOf()) +
1466
+ (if ((jsMadeBits0 and (1L shl 1)) != 0L) listOf("cssValueDescriptor")
1467
+ else listOf()) +
1468
+ (if ((jsMadeBits0 and (1L shl 2)) != 0L) listOf("localValueDescriptor")
1469
+ else listOf()) +
1470
+ (if ((jsMadeBits0 and (1L shl 3)) != 0L) listOf("isStyleProperty") else listOf())
1471
+
1472
+ override val jsKeys: List<String>
1473
+ get() = jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?: listOf()))
1474
+
1475
+ override val jsClassName: String?
1476
+ get() = "CssProperty"
1477
+
1478
+ override fun jsGet(key: String): Any? =
1479
+ when (key) {
1480
+ "registered" -> if ((jsMadeBits0 and (1L shl 0)) != 0L) this.registered else null
1481
+ "name" -> this.name
1482
+ "cssName" -> this.cssName
1483
+ "cssLocalName" -> this.cssLocalName
1484
+ "cssValueDescriptor" ->
1485
+ if ((jsMadeBits0 and (1L shl 1)) != 0L) this.cssValueDescriptor else null
1486
+ "localValueDescriptor" ->
1487
+ if ((jsMadeBits0 and (1L shl 2)) != 0L) this.localValueDescriptor else null
1488
+ "isStyleProperty" -> this.isStyleProperty
1489
+ "key" -> this.key
1490
+ "getDefault" -> this.getDefault
1491
+ "setNative" -> this.setNative
1492
+ "sourceKey" -> this.sourceKey
1493
+ "defaultValueKey" -> this.defaultValueKey
1494
+ "defaultValue" -> this.defaultValue
1495
+ "overrideHandlers" -> this.overrideHandlers
1496
+ "register" ->
1497
+ jsFunction { __a ->
1498
+ this.register(__a.getOrNull(0))
1499
+ null
1500
+ }
1501
+ "isSet" -> jsFunction { __a -> this.isSet(__a.getOrNull(0)) }
1502
+ else -> jsExpandoGet(this, key)
1503
+ }
1504
+
1505
+ override fun jsSet(key: String, value: Any?) {
1506
+ when (key) {
1507
+ "registered" -> this.registered = jsConvertedBooleanOrNull(value, "registered")
1508
+ "name" -> this.name = jsConvertedStringOrNull(value, "name")
1509
+ "cssName" -> this.cssName = jsConvertedStringOrNull(value, "cssName")
1510
+ "cssLocalName" -> this.cssLocalName = jsConvertedStringOrNull(value, "cssLocalName")
1511
+ "cssValueDescriptor" -> this.cssValueDescriptor = value
1512
+ "localValueDescriptor" -> this.localValueDescriptor = value
1513
+ "isStyleProperty" ->
1514
+ this.isStyleProperty = jsConvertedBooleanOrNull(value, "isStyleProperty")
1515
+ "key" -> this.key = jsCast(value, JSSymbol::class.java)
1516
+ "getDefault" -> this.getDefault = jsCast(value, JSSymbol::class.java)
1517
+ "setNative" -> this.setNative = jsCast(value, JSSymbol::class.java)
1518
+ "sourceKey" -> this.sourceKey = jsCast(value, JSSymbol::class.java)
1519
+ "defaultValueKey" -> this.defaultValueKey = jsCast(value, JSSymbol::class.java)
1520
+ "defaultValue" -> this.defaultValue = value
1521
+ "overrideHandlers" ->
1522
+ this.overrideHandlers = jsUnlessNullish(value) { jsFunction1<Any?, Unit>(it) }
1523
+ else -> jsExpandoSet(this, key, value)
1524
+ }
1525
+ }
1526
+
1527
+ override fun jsHasMember(key: String): Boolean =
1528
+ when (key) {
1529
+ "register",
1530
+ "isSet",
1531
+ "isStyleProperty" -> true
1532
+ else -> false
1533
+ }
1534
+ }
1535
+
1536
+ @UiThread
1537
+ open class CssAnimationProperty : JSExpando, JSKeysMade {
1538
+ var jsMadeBits0: Long = 0L
1539
+
1540
+ fun jsMadeNote0(bit: Long, key: String) {
1541
+ if ((jsMadeBits0 and bit) == 0L) {
1542
+ jsMadeBits0 = jsMadeBits0 or bit
1543
+ jsMadeNote(this, key)
1544
+ }
1545
+ }
1546
+
1547
+ override var jsMade: MutableList<String>? = null
1548
+ @JvmField var name: String? = null
1549
+ @get:JvmName("__get_cssName")
1550
+ @set:JvmName("__set_cssName")
1551
+ var cssName: String? = null
1552
+ set(value) {
1553
+ field = value
1554
+ jsMadeNote0(1L shl 0, "cssName")
1555
+ }
1556
+
1557
+ @get:JvmName("__get_cssLocalName")
1558
+ @set:JvmName("__set_cssLocalName")
1559
+ var cssLocalName: String? = null
1560
+ set(value) {
1561
+ field = value
1562
+ jsMadeNote0(1L shl 1, "cssLocalName")
1563
+ }
1564
+
1565
+ @get:JvmName("__get_getDefault")
1566
+ @set:JvmName("__set_getDefault")
1567
+ var getDefault: JSSymbol? = null
1568
+ set(value) {
1569
+ field = value
1570
+ jsMadeNote0(1L shl 2, "getDefault")
1571
+ }
1572
+
1573
+ @get:JvmName("__get_setNative")
1574
+ @set:JvmName("__set_setNative")
1575
+ var setNative: JSSymbol? = null
1576
+ set(value) {
1577
+ field = value
1578
+ jsMadeNote0(1L shl 3, "setNative")
1579
+ }
1580
+
1581
+ @get:JvmName("__get_register")
1582
+ @set:JvmName("__set_register")
1583
+ var register: ((Any?) -> Unit)? = null
1584
+ set(value) {
1585
+ field = value
1586
+ jsMadeNote0(1L shl 4, "register")
1587
+ }
1588
+
1589
+ @get:JvmName("__get_keyframe")
1590
+ @set:JvmName("__set_keyframe")
1591
+ var keyframe: String? = null
1592
+ set(value) {
1593
+ field = value
1594
+ jsMadeNote0(1L shl 5, "keyframe")
1595
+ }
1596
+
1597
+ @get:JvmName("__get_defaultValueKey")
1598
+ @set:JvmName("__set_defaultValueKey")
1599
+ var defaultValueKey: JSSymbol? = null
1600
+ set(value) {
1601
+ field = value
1602
+ jsMadeNote0(1L shl 6, "defaultValueKey")
1603
+ }
1604
+
1605
+ @get:JvmName("__get_key")
1606
+ @set:JvmName("__set_key")
1607
+ var key: JSSymbol? = null
1608
+ set(value) {
1609
+ field = value
1610
+ jsMadeNote0(1L shl 7, "key")
1611
+ }
1612
+
1613
+ @get:JvmName("__get_source")
1614
+ @set:JvmName("__set_source")
1615
+ var source: JSSymbol? = null
1616
+ set(value) {
1617
+ field = value
1618
+ jsMadeNote0(1L shl 8, "source")
1619
+ }
1620
+
1621
+ @get:JvmName("__get_defaultValue")
1622
+ @set:JvmName("__set_defaultValue")
1623
+ var defaultValue: Any? = null
1624
+ set(value) {
1625
+ field = value
1626
+ jsMadeNote0(1L shl 9, "defaultValue")
1627
+ }
1628
+
1629
+ @get:JvmName("__get_isStyleProperty")
1630
+ @set:JvmName("__set_isStyleProperty")
1631
+ var isStyleProperty: Boolean? = true
1632
+ set(value) {
1633
+ field = value
1634
+ jsMadeNote0(1L shl 10, "isStyleProperty")
1635
+ }
1636
+
1637
+ @get:JvmName("__get__valueConverter")
1638
+ @set:JvmName("__set__valueConverter")
1639
+ var _valueConverter: ((String) -> Any?)? = null
1640
+ set(value) {
1641
+ field = value
1642
+ jsMadeNote0(1L shl 11, "_valueConverter")
1643
+ }
1644
+
1645
+ constructor(options: Any?) {
1646
+ val propertyName: String? = jsConvertedStringOrNull(jsGet(options, "name"))
1647
+ this.name = propertyName
1648
+ if (jsTruthy(jsConvertedStringOrNull(jsGet(options, "cssName")))) {
1649
+ Core_ui_core_properties_index.cssPropertyNames.push(
1650
+ (jsConvertedStringOrNull(jsGet(options, "cssName")) ?: "undefined")
1651
+ )
1652
+ }
1653
+ (CssAnimationProperty.properties ?: jsCannotSet(jsToString(propertyName)))[
1654
+ jsToString(propertyName)] = this
1655
+ if (
1656
+ (jsTruthy(jsConvertedStringOrNull(jsGet(options, "cssName"))) &&
1657
+ jsConvertedStringOrNull(jsGet(options, "cssName")) != (propertyName ?: "undefined"))
1658
+ ) {
1659
+ (CssAnimationProperty.properties
1660
+ ?: jsCannotSet(jsToString(jsConvertedStringOrNull(jsGet(options, "cssName")))))[
1661
+ jsToString(jsConvertedStringOrNull(jsGet(options, "cssName")))] = this
1662
+ }
1663
+ this._valueConverter =
1664
+ jsUnlessNullish(jsGet(options, "valueConverter")) { jsFunction1<String, Any?>(it) }
1665
+ val cssLocalName: String =
1666
+ jsConvertedStringOrEmpty(
1667
+ kotlin.run {
1668
+ val __v_4 = jsConvertedStringOrNull(jsGet(options, "cssName"))
1669
+ if (jsTruthy(__v_4)) __v_4 else ((propertyName ?: "undefined") ?: "undefined")
1670
+ }
1671
+ )
1672
+ this.cssLocalName = cssLocalName
1673
+ val cssName: String = "css:" + cssLocalName
1674
+ this.cssName = cssName
1675
+ val keyframeName: String = "keyframe:" + jsToString(propertyName)
1676
+ this.keyframe = keyframeName
1677
+ val defaultName: String = "default:" + jsToString(propertyName)
1678
+ val defaultValueKey: JSSymbol = jsSymbol(defaultName)
1679
+ this.defaultValueKey = defaultValueKey
1680
+ this.defaultValue = jsGet(options, "defaultValue")
1681
+ val cssValue: JSSymbol = jsSymbol(cssName)
1682
+ val styleValue: JSSymbol = jsSymbol("local:${jsToString(propertyName)}")
1683
+ val keyframeValue: JSSymbol = jsSymbol(keyframeName)
1684
+ val computedValue: JSSymbol =
1685
+ jsSymbol("computed-value:" + jsToString(propertyName))
1686
+ this.key = computedValue
1687
+ val computedSource: JSSymbol =
1688
+ jsSymbol("computed-source:" + jsToString(propertyName))
1689
+ this.source = computedSource
1690
+ this.getDefault = jsSymbol(jsToString(propertyName) + ":getDefault")
1691
+ val getDefault: JSSymbol? = this.getDefault
1692
+ val setNative: JSSymbol =
1693
+ (kotlin.run {
1694
+ val __assigned1: JSSymbol = jsSymbol(jsToString(propertyName) + ":setNative")
1695
+ this.setNative = __assigned1
1696
+ __assigned1
1697
+ })
1698
+ val eventName: String = jsToString(propertyName) + "Change"
1699
+ val property: CssAnimationProperty? = this
1700
+ fun descriptor(
1701
+ symbol: JSSymbol,
1702
+ propertySource: Double,
1703
+ enumerable: Boolean,
1704
+ configurable: Boolean,
1705
+ getsComputed: Boolean,
1706
+ ): Any? {
1707
+ val origin: String =
1708
+ (if (propertySource == ValueSource.Keyframe) "animation"
1709
+ else (if (propertySource == ValueSource.Css) "css" else "script"))
1710
+ return kotlin.run {
1711
+ val __o_1 = JSObject()
1712
+ __o_1["enumerable"] = enumerable
1713
+ __o_1["configurable"] = configurable
1714
+ __o_1["get"] =
1715
+ (if (getsComputed)
1716
+ JSMethod { __self, _ ->
1717
+ val __this: Any? = __self
1718
+ (fun(): Any? {
1719
+ return jsGet(__this, computedValue.key)
1720
+ })()
1721
+ }
1722
+ else
1723
+ JSMethod { __self, _ ->
1724
+ val __this: Any? = __self
1725
+ (fun(): Any? {
1726
+ return jsGet(__this, symbol.key)
1727
+ })()
1728
+ })
1729
+ __o_1["set"] = JSMethod { __this, __a ->
1730
+ val boxedValue: Any? = __a.getOrNull(0)
1731
+ (fun() {
1732
+ var boxedValue: Any? = boxedValue
1733
+ val view: ViewBase? =
1734
+ jsUnchecked<JSWeakRef<ViewBase>>(
1735
+ jsJavaArgument(jsGet(__this, "viewRef"))
1736
+ )
1737
+ .get()
1738
+ if (!jsTruthy(view)) {
1739
+ org.nativescript.kit.Trace.write(
1740
+ "${jsToStringThrowing(boxedValue)} not set to view because \".viewRef\" is cleared",
1741
+ org.nativescript.kit.Trace.categories.Animation,
1742
+ org.nativescript.kit.Trace.messageType.warn,
1743
+ )
1744
+ return
1745
+ }
1746
+ val oldValue: Any? = jsGet(__this, computedValue.key)
1747
+ val oldSource: Any? = jsGet(__this, computedSource.key)
1748
+ val wasSet: Boolean =
1749
+ !jsStrictEquals(oldSource, ValueSource.Default)
1750
+ val reset: Boolean =
1751
+ Core_ui_core_properties_property_shared.isResetValue(boxedValue) ||
1752
+ jsStrictEquals(boxedValue, "")
1753
+ if (reset) {
1754
+ jsSet(__this, symbol.key, boxedValue)
1755
+ if (
1756
+ jsStrictEquals(jsGet(__this, computedSource.key), propertySource)
1757
+ ) {
1758
+ if (
1759
+ !Core_ui_core_properties_property_shared.isResetValue(
1760
+ jsGet(__this, styleValue.key)
1761
+ )
1762
+ ) {
1763
+ jsSet(
1764
+ __this,
1765
+ computedSource.key,
1766
+ ValueSource.Local,
1767
+ )
1768
+ jsSet(
1769
+ __this,
1770
+ computedValue.key,
1771
+ jsGet(__this, styleValue.key),
1772
+ )
1773
+ } else if (
1774
+ !Core_ui_core_properties_property_shared.isResetValue(
1775
+ jsGet(__this, cssValue.key)
1776
+ )
1777
+ ) {
1778
+ jsSet(__this, computedSource.key, ValueSource.Css)
1779
+ jsSet(
1780
+ __this,
1781
+ computedValue.key,
1782
+ jsGet(__this, cssValue.key),
1783
+ )
1784
+ } else {
1785
+ jsDelete(__this, computedSource.key)
1786
+ jsDelete(__this, computedValue.key)
1787
+ }
1788
+ }
1789
+ } else {
1790
+ if (
1791
+ (jsTruthy(
1792
+ jsUnlessNullish(jsGet(options, "valueConverter")) {
1793
+ jsFunction1<String, Any?>(it)
1794
+ }
1795
+ ) && jsTypeof(boxedValue) == "string")
1796
+ ) {
1797
+ boxedValue =
1798
+ (jsFunction1<String, Any?>(jsGet(options, "valueConverter"))
1799
+ ?: jsCannotRead("call"))(jsConvertedString(boxedValue))
1800
+ }
1801
+ jsSet(__this, symbol.key, boxedValue)
1802
+ if (
1803
+ jsLessOrEqualThrowing(
1804
+ jsGet(__this, computedSource.key),
1805
+ propertySource,
1806
+ )
1807
+ ) {
1808
+ jsSet(__this, computedSource.key, propertySource)
1809
+ jsSet(__this, computedValue.key, boxedValue)
1810
+ }
1811
+ }
1812
+ val value: Any? = jsGet(__this, computedValue.key)
1813
+ val source: Any? = jsGet(__this, computedSource.key)
1814
+ val isSet: Boolean =
1815
+ !jsStrictEquals(source, ValueSource.Default)
1816
+ val computedValueChanged: Boolean =
1817
+ !jsStrictEquals(oldValue, value) &&
1818
+ (!jsTruthy(
1819
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
1820
+ jsFunction2<Any?, Any?, Boolean>(it)
1821
+ }
1822
+ ) ||
1823
+ !jsConvertedBooleanOrFalse(
1824
+ jsCallMethod(options, "equalityComparer", oldValue, value)
1825
+ ))
1826
+ if (
1827
+ (computedValueChanged &&
1828
+ jsTruthy(
1829
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
1830
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
1831
+ }
1832
+ ))
1833
+ ) {
1834
+ jsCallMethod(
1835
+ options,
1836
+ "valueChanged",
1837
+ __this,
1838
+ oldValue,
1839
+ value,
1840
+ )
1841
+ }
1842
+ if (
1843
+ (jsTruthy(jsGet(view, setNative.key)) &&
1844
+ (computedValueChanged || isSet != wasSet))
1845
+ ) {
1846
+ if (
1847
+ jsTruthy(
1848
+ (view ?: jsCannotRead("_suspendNativeUpdatesCount"))
1849
+ ._suspendNativeUpdatesCount
1850
+ )
1851
+ ) {
1852
+ if (
1853
+ jsTruthy(
1854
+ (view ?: jsCannotRead("_suspendedUpdates"))
1855
+ ._suspendedUpdates
1856
+ )
1857
+ ) {
1858
+ ((view ?: jsCannotRead("_suspendedUpdates"))
1859
+ ._suspendedUpdates
1860
+ ?: jsCannotSet(jsToString(propertyName)))[
1861
+ jsToString(propertyName)] = property
1862
+ }
1863
+ } else {
1864
+ if (isSet) {
1865
+ if (
1866
+ !wasSet && !(jsHasKey(__this, defaultValueKey.key))
1867
+ ) {
1868
+ jsSet(
1869
+ __this,
1870
+ defaultValueKey.key,
1871
+ (if (
1872
+ jsTruthy(
1873
+ jsGet(view, (getDefault?.key ?: "undefined"))
1874
+ )
1875
+ )
1876
+ jsCallMethod(view, (getDefault?.key ?: "undefined"))
1877
+ else jsGet(options, "defaultValue")),
1878
+ )
1879
+ }
1880
+ jsCallMethod(view, setNative.key, value)
1881
+ } else if (wasSet) {
1882
+ if (jsHasKey(__this, defaultValueKey.key)) {
1883
+ jsCallMethod(
1884
+ view,
1885
+ setNative.key,
1886
+ jsGet(__this, defaultValueKey.key),
1887
+ )
1888
+ } else {
1889
+ jsCallMethod(
1890
+ view,
1891
+ setNative.key,
1892
+ jsGet(options, "defaultValue"),
1893
+ )
1894
+ }
1895
+ }
1896
+ }
1897
+ }
1898
+ if (
1899
+ computedValueChanged &&
1900
+ jsConvertedBooleanOrFalse(
1901
+ jsCallMethod(__this, "hasListeners", eventName)
1902
+ )
1903
+ ) {
1904
+ jsCallMethod(
1905
+ __this,
1906
+ "notify",
1907
+ jsObjectOf(
1908
+ "object" to __this,
1909
+ "eventName" to eventName,
1910
+ "propertyName" to propertyName,
1911
+ "value" to value,
1912
+ "oldValue" to oldValue,
1913
+ "origin" to origin,
1914
+ ),
1915
+ )
1916
+ }
1917
+ })()
1918
+ }
1919
+ __o_1
1920
+ }
1921
+ }
1922
+ val defaultPropertyDescriptor: Any? =
1923
+ descriptor(defaultValueKey, ValueSource.Default, false, false, false)
1924
+ val cssPropertyDescriptor: Any? =
1925
+ descriptor(cssValue, ValueSource.Css, false, false, false)
1926
+ val stylePropertyDescriptor: Any? =
1927
+ descriptor(styleValue, ValueSource.Local, true, true, true)
1928
+ val keyframePropertyDescriptor: Any? =
1929
+ descriptor(keyframeValue, ValueSource.Keyframe, false, false, false)
1930
+ jsSet(Core_ui_core_properties_index.symbolPropertyMap, computedValue.key, this)
1931
+ jsSet(
1932
+ Core_ui_core_properties_index.cssSymbolPropertyMap,
1933
+ computedValue.key,
1934
+ this,
1935
+ )
1936
+ this.register = { cls: Any? ->
1937
+ jsSet(
1938
+ jsGet(cls, "prototype"),
1939
+ computedValue.key,
1940
+ jsGet(options, "defaultValue"),
1941
+ )
1942
+ jsSet(jsGet(cls, "prototype"), computedSource.key, ValueSource.Default)
1943
+ jsSet(
1944
+ jsGet(cls, "prototype"),
1945
+ cssValue.key,
1946
+ Core_ui_core_properties_property_shared.unsetValue,
1947
+ )
1948
+ jsSet(
1949
+ jsGet(cls, "prototype"),
1950
+ styleValue.key,
1951
+ Core_ui_core_properties_property_shared.unsetValue,
1952
+ )
1953
+ jsSet(
1954
+ jsGet(cls, "prototype"),
1955
+ keyframeValue.key,
1956
+ Core_ui_core_properties_property_shared.unsetValue,
1957
+ )
1958
+ jsDefineProperty(
1959
+ jsGet(cls, "prototype"),
1960
+ defaultName,
1961
+ defaultPropertyDescriptor,
1962
+ )
1963
+ jsDefineProperty(jsGet(cls, "prototype"), cssName, cssPropertyDescriptor)
1964
+ jsDefineProperty(
1965
+ jsGet(cls, "prototype"),
1966
+ jsToString(propertyName),
1967
+ stylePropertyDescriptor,
1968
+ )
1969
+ if (
1970
+ (jsTruthy(jsConvertedStringOrNull(jsGet(options, "cssName"))) &&
1971
+ jsConvertedStringOrNull(jsGet(options, "cssName")) !=
1972
+ jsConvertedStringOrNull(jsGet(options, "name")))
1973
+ ) {
1974
+ jsDefineProperty(
1975
+ jsGet(cls, "prototype"),
1976
+ jsToString(jsConvertedStringOrNull(jsGet(options, "cssName"))),
1977
+ stylePropertyDescriptor,
1978
+ )
1979
+ }
1980
+ jsDefineProperty(
1981
+ jsGet(cls, "prototype"),
1982
+ keyframeName,
1983
+ keyframePropertyDescriptor,
1984
+ )
1985
+ }
1986
+ }
1987
+
1988
+ open fun _initDefaultNativeValue(target: Any?) {
1989
+ val view: ViewBase? =
1990
+ jsUnchecked<JSWeakRef<ViewBase>>(jsJavaArgument(jsGet(target, "viewRef"))).get()
1991
+ if (!jsTruthy(view)) {
1992
+ org.nativescript.kit.Trace.write(
1993
+ "_initDefaultNativeValue not executed to view because \".viewRef\" is cleared",
1994
+ org.nativescript.kit.Trace.categories.Animation,
1995
+ org.nativescript.kit.Trace.messageType.warn,
1996
+ )
1997
+ return
1998
+ }
1999
+ val defaultValueKey: JSSymbol? = this.defaultValueKey
2000
+ if (!(jsHasKey(target, (defaultValueKey?.key ?: "undefined")))) {
2001
+ val getDefault: JSSymbol? = this.getDefault
2002
+ jsSet(
2003
+ target,
2004
+ (defaultValueKey?.key ?: "undefined"),
2005
+ (if (jsTruthy(jsGet(view, (getDefault?.key ?: "undefined"))))
2006
+ jsCallMethod(view, (getDefault?.key ?: "undefined"))
2007
+ else this.defaultValue),
2008
+ )
2009
+ }
2010
+ }
2011
+
2012
+ open fun isSet(instance: Any?): Boolean {
2013
+ return !jsStrictEquals(
2014
+ jsGet(instance, (this.source?.key ?: "undefined")),
2015
+ ValueSource.Default,
2016
+ )
2017
+ }
2018
+
2019
+ override var jsExpando: JSObject? = null
2020
+ override val jsDeclaredKeys: List<String>
2021
+ get() =
2022
+ (if (name == null) listOf() else listOf("name")) +
2023
+ (if ((jsMadeBits0 and (1L shl 0)) != 0L) listOf("cssName") else listOf()) +
2024
+ (if ((jsMadeBits0 and (1L shl 1)) != 0L) listOf("cssLocalName") else listOf()) +
2025
+ (if ((jsMadeBits0 and (1L shl 2)) != 0L) listOf("getDefault") else listOf()) +
2026
+ (if ((jsMadeBits0 and (1L shl 3)) != 0L) listOf("setNative") else listOf()) +
2027
+ (if ((jsMadeBits0 and (1L shl 4)) != 0L) listOf("register") else listOf()) +
2028
+ (if ((jsMadeBits0 and (1L shl 5)) != 0L) listOf("keyframe") else listOf()) +
2029
+ (if ((jsMadeBits0 and (1L shl 6)) != 0L) listOf("defaultValueKey") else listOf()) +
2030
+ (if ((jsMadeBits0 and (1L shl 7)) != 0L) listOf("key") else listOf()) +
2031
+ (if ((jsMadeBits0 and (1L shl 8)) != 0L) listOf("source") else listOf()) +
2032
+ (if ((jsMadeBits0 and (1L shl 9)) != 0L) listOf("defaultValue") else listOf()) +
2033
+ (if ((jsMadeBits0 and (1L shl 10)) != 0L) listOf("isStyleProperty") else listOf()) +
2034
+ (if ((jsMadeBits0 and (1L shl 11)) != 0L) listOf("_valueConverter") else listOf())
2035
+
2036
+ override val jsKeys: List<String>
2037
+ get() = jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?: listOf()))
2038
+
2039
+ override val jsClassName: String?
2040
+ get() = "CssAnimationProperty"
2041
+
2042
+ override fun jsGet(key: String): Any? =
2043
+ when (key) {
2044
+ "name" -> this.name
2045
+ "cssName" -> if ((jsMadeBits0 and (1L shl 0)) != 0L) this.cssName else null
2046
+ "cssLocalName" -> if ((jsMadeBits0 and (1L shl 1)) != 0L) this.cssLocalName else null
2047
+ "getDefault" -> if ((jsMadeBits0 and (1L shl 2)) != 0L) this.getDefault else null
2048
+ "setNative" -> if ((jsMadeBits0 and (1L shl 3)) != 0L) this.setNative else null
2049
+ "register" -> if ((jsMadeBits0 and (1L shl 4)) != 0L) this.register else null
2050
+ "keyframe" -> if ((jsMadeBits0 and (1L shl 5)) != 0L) this.keyframe else null
2051
+ "defaultValueKey" ->
2052
+ if ((jsMadeBits0 and (1L shl 6)) != 0L) this.defaultValueKey else null
2053
+ "key" -> if ((jsMadeBits0 and (1L shl 7)) != 0L) this.key else null
2054
+ "source" -> if ((jsMadeBits0 and (1L shl 8)) != 0L) this.source else null
2055
+ "defaultValue" -> if ((jsMadeBits0 and (1L shl 9)) != 0L) this.defaultValue else null
2056
+ "isStyleProperty" -> this.isStyleProperty
2057
+ "_valueConverter" ->
2058
+ if ((jsMadeBits0 and (1L shl 11)) != 0L) this._valueConverter else null
2059
+ "_initDefaultNativeValue" ->
2060
+ jsFunction { __a ->
2061
+ this._initDefaultNativeValue(__a.getOrNull(0))
2062
+ null
2063
+ }
2064
+ "isSet" -> jsFunction { __a -> this.isSet(__a.getOrNull(0)) }
2065
+ else -> jsExpandoGet(this, key)
2066
+ }
2067
+
2068
+ override fun jsSet(key: String, value: Any?) {
2069
+ when (key) {
2070
+ "name" -> this.name = jsConvertedStringOrNull(value, "name")
2071
+ "cssName" -> this.cssName = jsConvertedStringOrNull(value, "cssName")
2072
+ "cssLocalName" -> this.cssLocalName = jsConvertedStringOrNull(value, "cssLocalName")
2073
+ "getDefault" -> this.getDefault = jsCast(value, JSSymbol::class.java)
2074
+ "setNative" -> this.setNative = jsCast(value, JSSymbol::class.java)
2075
+ "register" -> this.register = jsUnlessNullish(value) { jsFunction1<Any?, Unit>(it) }
2076
+ "keyframe" -> this.keyframe = jsConvertedStringOrNull(value, "keyframe")
2077
+ "defaultValueKey" -> this.defaultValueKey = jsCast(value, JSSymbol::class.java)
2078
+ "key" -> this.key = jsCast(value, JSSymbol::class.java)
2079
+ "source" -> this.source = jsCast(value, JSSymbol::class.java)
2080
+ "defaultValue" -> this.defaultValue = value
2081
+ "isStyleProperty" ->
2082
+ this.isStyleProperty = jsConvertedBooleanOrNull(value, "isStyleProperty")
2083
+ "_valueConverter" ->
2084
+ this._valueConverter = jsUnlessNullish(value) { jsFunction1<String, Any?>(it) }
2085
+ else -> jsExpandoSet(this, key, value)
2086
+ }
2087
+ }
2088
+
2089
+ override fun jsHasMember(key: String): Boolean =
2090
+ when (key) {
2091
+ "_initDefaultNativeValue",
2092
+ "isSet",
2093
+ "isStyleProperty" -> true
2094
+ else -> false
2095
+ }
2096
+
2097
+ companion object {
2098
+ var properties: JSRecord<CssAnimationProperty>? = JSRecord<CssAnimationProperty>()
2099
+
2100
+ fun _getByCssName(name: String?): CssAnimationProperty? {
2101
+ return (this.properties
2102
+ ?: jsCannotRead(jsToString((name ?: "undefined"))))[
2103
+ jsToString((name ?: "undefined"))]
2104
+ }
2105
+
2106
+ fun _getPropertyNames(): JSArray<String>? {
2107
+ return (CssAnimationProperty.properties ?: jsObjectRequired()).keys
2108
+ }
2109
+ }
2110
+ }
2111
+
2112
+ @UiThread
2113
+ open class InheritedCssProperty : CssProperty {
2114
+ @get:JvmName("__get_setInheritedValue")
2115
+ @set:JvmName("__set_setInheritedValue")
2116
+ var setInheritedValue: Any? = null
2117
+ set(value) {
2118
+ field = value
2119
+ jsMadeNote0(1L shl 4, "setInheritedValue")
2120
+ }
2121
+
2122
+ constructor(options: Any?) : super(options) {
2123
+ lateinit var setDefaultFunc: (Any?, Any?) -> Unit
2124
+ var setInheritedFunc: Any? = null
2125
+ val propertyName: String? = jsConvertedStringOrNull(jsGet(options, "name"))
2126
+ val key: JSSymbol? = this.key
2127
+ val sourceKey: JSSymbol? = this.sourceKey
2128
+ val getDefault: JSSymbol? = this.getDefault
2129
+ val setNative: JSSymbol? = this.setNative
2130
+ val defaultValueKey: JSSymbol? = this.defaultValueKey
2131
+ val cssLocalName: String? = this.cssLocalName
2132
+ val eventName: String = jsToString(propertyName) + "Change"
2133
+ val defaultValue: Any? = jsGet(options, "defaultValue")
2134
+ var affectsLayout: Boolean? =
2135
+ jsConvertedBooleanOrNull(jsGet(options, "affectsLayout"))
2136
+ var equalityComparer: ((Any?, Any?) -> Boolean)? =
2137
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
2138
+ jsFunction2<Any?, Any?, Boolean>(it)
2139
+ }
2140
+ var valueChanged: ((Any?, Any?, Any?) -> Unit)? =
2141
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
2142
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
2143
+ }
2144
+ var valueConverter: ((String) -> Any?)? =
2145
+ jsUnlessNullish(jsGet(options, "valueConverter")) { jsFunction1<String, Any?>(it) }
2146
+ var overrideConverter: Boolean = false
2147
+ val property: InheritedCssProperty? = this
2148
+ this.overrideHandlers = { options: Any? ->
2149
+ if (
2150
+ jsTypeof(
2151
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
2152
+ jsFunction2<Any?, Any?, Boolean>(it)
2153
+ }
2154
+ ) != "undefined"
2155
+ ) {
2156
+ equalityComparer =
2157
+ jsUnlessNullish(jsGet(options, "equalityComparer")) {
2158
+ jsFunction2<Any?, Any?, Boolean>(it)
2159
+ }
2160
+ }
2161
+ if (
2162
+ jsTypeof(jsConvertedBooleanOrNull(jsGet(options, "affectsLayout"))) != "undefined"
2163
+ ) {
2164
+ affectsLayout =
2165
+ jsConvertedBooleanOrNull(jsGet(options, "affectsLayout"))
2166
+ }
2167
+ if (
2168
+ jsTypeof(
2169
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
2170
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
2171
+ }
2172
+ ) != "undefined"
2173
+ ) {
2174
+ valueChanged =
2175
+ jsUnlessNullish(jsGet(options, "valueChanged")) {
2176
+ jsFunction3<Any?, Any?, Any?, Unit>(it)
2177
+ }
2178
+ }
2179
+ if (
2180
+ jsTypeof(
2181
+ jsUnlessNullish(jsGet(options, "valueConverter")) {
2182
+ jsFunction1<String, Any?>(it)
2183
+ }
2184
+ ) != "undefined"
2185
+ ) {
2186
+ valueConverter =
2187
+ jsUnlessNullish(jsGet(options, "valueConverter")) {
2188
+ jsFunction1<String, Any?>(it)
2189
+ }
2190
+ overrideConverter = true
2191
+ }
2192
+ }
2193
+ val setFunc: Any? = kotlin.run {
2194
+ val __f = { valueSource: Double ->
2195
+ val isLocalWrite: Boolean = valueSource == ValueSource.Local
2196
+ val origin: String =
2197
+ (if (isLocalWrite) "script"
2198
+ else (if (valueSource == ValueSource.Css) "css" else "inherited"))
2199
+ JSMethod { __self, __a ->
2200
+ val __this: Any? = __self
2201
+ val boxedValue: Any? = __a.getOrNull(0)
2202
+ (fun() {
2203
+ var boxedValue: Any? = boxedValue
2204
+ val view: ViewBase? =
2205
+ jsUnchecked<JSWeakRef<ViewBase>>(
2206
+ jsJavaArgument(jsGet(__this, "viewRef"))
2207
+ )
2208
+ .get()
2209
+ if (!jsTruthy(view)) {
2210
+ org.nativescript.kit.Trace.write(
2211
+ "${jsToStringThrowing(boxedValue)} not set to view's property because \".viewRef\" is cleared",
2212
+ org.nativescript.kit.Trace.categories.Style,
2213
+ org.nativescript.kit.Trace.messageType.warn,
2214
+ )
2215
+ return
2216
+ }
2217
+ if (isLocalWrite) {
2218
+ jsSet(
2219
+ __this,
2220
+ "_localValueVersion",
2221
+ jsToNumber(jsGet(__this, "_localValueVersion")) + 1.0,
2222
+ )
2223
+ }
2224
+ var reset: Boolean =
2225
+ Core_ui_core_properties_property_shared.isResetValue(boxedValue) ||
2226
+ jsStrictEquals(boxedValue, "")
2227
+ var newValueSource: Double = valueSource
2228
+ if (reset && isLocalWrite) {
2229
+ val cssValue: Any? =
2230
+ Core_ui_core_properties_index.cascadedCssValue(view, cssLocalName)
2231
+ if (!jsStrictEquals(cssValue, null)) {
2232
+ boxedValue = cssValue
2233
+ newValueSource = ValueSource.Css
2234
+ reset = false
2235
+ }
2236
+ }
2237
+ val currentValueSource: Double =
2238
+ jsConvertedNumberOrZero(
2239
+ jsOr(jsGet(__this, (sourceKey?.key ?: "undefined"))) {
2240
+ ValueSource.Default
2241
+ }
2242
+ )
2243
+ if (reset) {
2244
+ if (
2245
+ valueSource == ValueSource.Css &&
2246
+ currentValueSource == ValueSource.Local
2247
+ ) {
2248
+ return
2249
+ }
2250
+ } else {
2251
+ if (currentValueSource > valueSource) {
2252
+ return
2253
+ }
2254
+ }
2255
+ val oldValue: Any? =
2256
+ (if (jsHasKey(__this, (key?.key ?: "undefined")))
2257
+ jsGet(__this, (key?.key ?: "undefined"))
2258
+ else defaultValue)
2259
+ val value: Any?
2260
+ var unsetNativeValue: Boolean = false
2261
+ if (reset) {
2262
+ val parentStyle: Style? =
2263
+ (if (jsTruthy((view ?: jsCannotRead("parent")).parent))
2264
+ ((view ?: jsCannotRead("parent")).parent
2265
+ ?: jsCannotRead("style"))
2266
+ .style
2267
+ else null)
2268
+ if (
2269
+ ((!jsStrictEquals(boxedValue, "initial") &&
2270
+ jsTruthy(parentStyle)) &&
2271
+ jsGreaterThrowing(
2272
+ jsGet(parentStyle, (sourceKey?.key ?: "undefined")),
2273
+ ValueSource.Default,
2274
+ ))
2275
+ ) {
2276
+ value = jsGet(parentStyle, jsToString(propertyName))
2277
+ jsSet(
2278
+ __this,
2279
+ (sourceKey?.key ?: "undefined"),
2280
+ ValueSource.Inherited,
2281
+ )
2282
+ jsSet(__this, (key?.key ?: "undefined"), value)
2283
+ } else {
2284
+ value = defaultValue
2285
+ jsDelete(__this, (sourceKey?.key ?: "undefined"))
2286
+ jsDelete(__this, (key?.key ?: "undefined"))
2287
+ unsetNativeValue = true
2288
+ }
2289
+ } else {
2290
+ jsSet(
2291
+ __this,
2292
+ (sourceKey?.key ?: "undefined"),
2293
+ newValueSource,
2294
+ )
2295
+ if (
2296
+ (jsTruthy(valueConverter) && jsTypeof(boxedValue) == "string")
2297
+ ) {
2298
+ value =
2299
+ (if (overrideConverter)
2300
+ (valueConverter ?: jsCannotRead("call"))(
2301
+ jsConvertedString(boxedValue)
2302
+ )
2303
+ else
2304
+ (valueConverter ?: jsNotAFunction("valueConverter"))(
2305
+ jsConvertedString(boxedValue)
2306
+ ))
2307
+ } else {
2308
+ value = boxedValue
2309
+ }
2310
+ jsSet(__this, (key?.key ?: "undefined"), value)
2311
+ }
2312
+ val changed: Boolean =
2313
+ (if (jsTruthy(equalityComparer))
2314
+ !((equalityComparer ?: jsNotAFunction("equalityComparer"))(
2315
+ oldValue,
2316
+ value,
2317
+ ))
2318
+ else !jsStrictEquals(oldValue, value))
2319
+ if (changed) {
2320
+ if (jsTruthy(valueChanged)) {
2321
+ (valueChanged ?: jsNotAFunction("valueChanged"))(
2322
+ __this,
2323
+ oldValue,
2324
+ value,
2325
+ )
2326
+ }
2327
+ if (
2328
+ jsTruthy(jsGet(view, (setNative?.key ?: "undefined")))
2329
+ ) {
2330
+ if (
2331
+ jsTruthy(
2332
+ (view ?: jsCannotRead("_suspendNativeUpdatesCount"))
2333
+ ._suspendNativeUpdatesCount
2334
+ )
2335
+ ) {
2336
+ if (
2337
+ jsTruthy(
2338
+ (view ?: jsCannotRead("_suspendedUpdates"))
2339
+ ._suspendedUpdates
2340
+ )
2341
+ ) {
2342
+ ((view ?: jsCannotRead("_suspendedUpdates"))
2343
+ ._suspendedUpdates
2344
+ ?: jsCannotSet(jsToString(propertyName)))[
2345
+ jsToString(propertyName)] = property
2346
+ }
2347
+ } else if (unsetNativeValue) {
2348
+ if (
2349
+ jsHasKey(__this, (defaultValueKey?.key ?: "undefined"))
2350
+ ) {
2351
+ jsCallMethod(
2352
+ view,
2353
+ (setNative?.key ?: "undefined"),
2354
+ jsGet(__this, (defaultValueKey?.key ?: "undefined")),
2355
+ )
2356
+ jsDelete(
2357
+ __this,
2358
+ (defaultValueKey?.key ?: "undefined"),
2359
+ )
2360
+ } else {
2361
+ jsCallMethod(
2362
+ view,
2363
+ (setNative?.key ?: "undefined"),
2364
+ defaultValue,
2365
+ )
2366
+ }
2367
+ } else {
2368
+ if (
2369
+ !(jsHasKey(__this, (defaultValueKey?.key ?: "undefined")))
2370
+ ) {
2371
+ jsSet(
2372
+ __this,
2373
+ (defaultValueKey?.key ?: "undefined"),
2374
+ (if (
2375
+ jsTruthy(
2376
+ jsGet(view, (getDefault?.key ?: "undefined"))
2377
+ )
2378
+ )
2379
+ jsCallMethod(view, (getDefault?.key ?: "undefined"))
2380
+ else defaultValue),
2381
+ )
2382
+ }
2383
+ jsCallMethod(
2384
+ view,
2385
+ (setNative?.key ?: "undefined"),
2386
+ value,
2387
+ )
2388
+ }
2389
+ }
2390
+ if (
2391
+ jsConvertedBooleanOrFalse(
2392
+ jsCallMethod(__this, "hasListeners", eventName)
2393
+ )
2394
+ ) {
2395
+ jsCallMethod(
2396
+ __this,
2397
+ "notify",
2398
+ jsObjectOf(
2399
+ "object" to __this,
2400
+ "eventName" to eventName,
2401
+ "propertyName" to propertyName,
2402
+ "value" to value,
2403
+ "oldValue" to oldValue,
2404
+ "origin" to origin,
2405
+ ),
2406
+ )
2407
+ }
2408
+ if (jsTruthy(affectsLayout)) {
2409
+ (view ?: jsCannotRead("requestLayout")).requestLayout()
2410
+ }
2411
+ (view ?: jsCannotRead("eachChild")).eachChild({
2412
+ child: ViewBase? ->
2413
+ val childStyle: Style? =
2414
+ (child ?: jsCannotRead("style")).style
2415
+ val childValueSource: Any? =
2416
+ jsOr(jsGet(childStyle, (sourceKey?.key ?: "undefined"))) {
2417
+ ValueSource.Default
2418
+ }
2419
+ if (reset) {
2420
+ if (
2421
+ jsStrictEquals(childValueSource, ValueSource.Inherited)
2422
+ ) {
2423
+ setDefaultFunc(
2424
+ childStyle,
2425
+ Core_ui_core_properties_property_shared.unsetValue,
2426
+ )
2427
+ }
2428
+ } else {
2429
+ if (
2430
+ jsLessOrEqualThrowing(
2431
+ childValueSource,
2432
+ ValueSource.Inherited,
2433
+ )
2434
+ ) {
2435
+ jsCallMethod(
2436
+ setInheritedFunc,
2437
+ "call",
2438
+ childStyle,
2439
+ value,
2440
+ )
2441
+ }
2442
+ }
2443
+ true
2444
+ })
2445
+ }
2446
+ })()
2447
+ }
2448
+ };
2449
+ { __u0: Any? -> __f(jsConvertedNumberOrZero(__u0)) }
2450
+ }
2451
+ setDefaultFunc = kotlin.run {
2452
+ val __f = jsCall(setFunc, ValueSource.Default)
2453
+ jsAs<(Any?, Any?) -> Unit>(jsThisFunction(__f, 2))
2454
+ }
2455
+ setInheritedFunc = jsCall(setFunc, ValueSource.Inherited)
2456
+ this.setInheritedValue = setInheritedFunc
2457
+ jsSet(this.cssValueDescriptor, "set", jsCall(setFunc, ValueSource.Css))
2458
+ jsSet(this.localValueDescriptor, "set", jsCall(setFunc, ValueSource.Local))
2459
+ Core_ui_core_properties_index.inheritableCssProperties.push(this)
2460
+ }
2461
+
2462
+ override val jsDeclaredKeys: List<String>
2463
+ get() =
2464
+ super.jsDeclaredKeys +
2465
+ (if ((jsMadeBits0 and (1L shl 4)) != 0L) listOf("setInheritedValue") else listOf())
2466
+
2467
+ override val jsClassName: String?
2468
+ get() = "InheritedCssProperty"
2469
+
2470
+ override fun jsGet(key: String): Any? =
2471
+ when (key) {
2472
+ "setInheritedValue" ->
2473
+ if ((jsMadeBits0 and (1L shl 4)) != 0L) this.setInheritedValue else null
2474
+ else -> super.jsGet(key)
2475
+ }
2476
+
2477
+ override fun jsSet(key: String, value: Any?) {
2478
+ when (key) {
2479
+ "setInheritedValue" -> this.setInheritedValue = value
2480
+ else -> super.jsSet(key, value)
2481
+ }
2482
+ }
2483
+ }
2484
+
2485
+ @UiThread
2486
+ open class ShorthandProperty : JSExpando, JSKeysMade {
2487
+ var jsMadeBits0: Long = 0L
2488
+
2489
+ fun jsMadeNote0(bit: Long, key: String) {
2490
+ if ((jsMadeBits0 and bit) == 0L) {
2491
+ jsMadeBits0 = jsMadeBits0 or bit
2492
+ jsMadeNote(this, key)
2493
+ }
2494
+ }
2495
+
2496
+ override var jsMade: MutableList<String>? = null
2497
+ @get:JvmName("__get_registered")
2498
+ @set:JvmName("__set_registered")
2499
+ var registered: Boolean? = null
2500
+ set(value) {
2501
+ field = value
2502
+ jsMadeNote0(1L shl 0, "registered")
2503
+ }
2504
+
2505
+ @JvmField var key: JSSymbol? = null
2506
+ @JvmField var name: String? = null
2507
+ @JvmField var cssName: String? = null
2508
+ @JvmField var cssLocalName: String? = null
2509
+ @get:JvmName("__get_cssValueDescriptor")
2510
+ @set:JvmName("__set_cssValueDescriptor")
2511
+ var cssValueDescriptor: Any? = null
2512
+ set(value) {
2513
+ field = value
2514
+ jsMadeNote0(1L shl 1, "cssValueDescriptor")
2515
+ }
2516
+
2517
+ @get:JvmName("__get_localValueDescriptor")
2518
+ @set:JvmName("__set_localValueDescriptor")
2519
+ var localValueDescriptor: Any? = null
2520
+ set(value) {
2521
+ field = value
2522
+ jsMadeNote0(1L shl 2, "localValueDescriptor")
2523
+ }
2524
+
2525
+ @get:JvmName("__get_sourceKey")
2526
+ @set:JvmName("__set_sourceKey")
2527
+ var sourceKey: JSSymbol? = null
2528
+ set(value) {
2529
+ field = value
2530
+ jsMadeNote0(1L shl 3, "sourceKey")
2531
+ }
2532
+
2533
+ constructor(options: Any?) {
2534
+ this.name = jsConvertedStringOrNull(jsGet(options, "name"))
2535
+ val key: JSSymbol =
2536
+ jsSymbol(jsToString((this.name ?: "undefined")) + ":propertyKey")
2537
+ this.key = key
2538
+ this.cssName =
2539
+ "css:${jsToString(jsConvertedStringOrNull(jsGet(options, "cssName")))}"
2540
+ this.cssLocalName =
2541
+ jsToString(jsConvertedStringOrNull(jsGet(options, "cssName")))
2542
+ Core_ui_core_properties_index.cssShorthandConverters.set(
2543
+ (jsConvertedStringOrNull(jsGet(options, "cssName")) ?: "undefined"),
2544
+ jsFunction1<Any?, JSArray<Pair<Any?, Any?>>>(jsGet(options, "converter")),
2545
+ )
2546
+ Core_ui_core_properties_index.cssShorthandsVersion += 1.0
2547
+ val converter: ((Any?) -> JSArray<Pair<Any?, Any?>>)? =
2548
+ jsUnlessNullish(jsGet(options, "converter")) {
2549
+ jsFunction1<Any?, JSArray<Pair<Any?, Any?>>>(it)
2550
+ }
2551
+ fun setLocalValue(__this: Any?, value: Any?) {
2552
+ val view: ViewBase? =
2553
+ jsUnchecked<JSWeakRef<ViewBase>>(jsJavaArgument(jsGet(__this, "viewRef"))).get()
2554
+ if (!jsTruthy(view)) {
2555
+ org.nativescript.kit.Trace.write(
2556
+ "setLocalValue not executed to view because \".viewRef\" is cleared",
2557
+ org.nativescript.kit.Trace.categories.Animation,
2558
+ org.nativescript.kit.Trace.messageType.warn,
2559
+ )
2560
+ return
2561
+ }
2562
+ (view ?: jsCannotRead("_batchUpdate"))._batchUpdate({
2563
+ for (__item1 in (converter ?: jsNotAFunction("converter"))(value)) {
2564
+ val p: Any? = __item1.first
2565
+ val v: Any? = __item1.second
2566
+ jsSet(__this, jsPropertyKey(jsGet(p, "name")), v)
2567
+ }
2568
+ })
2569
+ }
2570
+ fun setCssValue(__this: Any?, value: String?) {
2571
+ val view: ViewBase? =
2572
+ jsUnchecked<JSWeakRef<ViewBase>>(jsJavaArgument(jsGet(__this, "viewRef"))).get()
2573
+ if (!jsTruthy(view)) {
2574
+ org.nativescript.kit.Trace.write(
2575
+ "setCssValue not executed to view because \".viewRef\" is cleared",
2576
+ org.nativescript.kit.Trace.categories.Animation,
2577
+ org.nativescript.kit.Trace.messageType.warn,
2578
+ )
2579
+ return
2580
+ }
2581
+ (view ?: jsCannotRead("_batchUpdate"))._batchUpdate({
2582
+ for (__item1 in (converter ?: jsNotAFunction("converter"))(value)) {
2583
+ val p: Any? = __item1.first
2584
+ val v: Any? = __item1.second
2585
+ jsSet(__this, jsPropertyKey(jsGet(p, "cssName")), v)
2586
+ }
2587
+ })
2588
+ }
2589
+ this.cssValueDescriptor =
2590
+ jsObjectOf(
2591
+ "enumerable" to true,
2592
+ "configurable" to true,
2593
+ "get" to jsGet(options, "getter"),
2594
+ "set" to
2595
+ JSMethod { __self, __a ->
2596
+ setCssValue(__self, jsConvertedStringOrNull(__a.getOrNull(0)))
2597
+ },
2598
+ )
2599
+ this.localValueDescriptor =
2600
+ jsObjectOf(
2601
+ "enumerable" to true,
2602
+ "configurable" to true,
2603
+ "get" to jsGet(options, "getter"),
2604
+ "set" to JSMethod { __self, __a -> setLocalValue(__self, __a.getOrNull(0)) },
2605
+ )
2606
+ jsSet(Core_ui_core_properties_index.cssSymbolPropertyMap, key.key, this)
2607
+ }
2608
+
2609
+ open fun register(cls: Any?) {
2610
+ if (jsTruthy(this.registered)) {
2611
+ throw JSException(
2612
+ JSError("Property ${jsToString((this.name ?: "undefined"))} already registered.")
2613
+ )
2614
+ }
2615
+ this.registered = true
2616
+ jsDefineProperty(
2617
+ jsGet(cls, "prototype"),
2618
+ jsToString((this.name ?: "undefined")),
2619
+ this.localValueDescriptor,
2620
+ )
2621
+ jsDefineProperty(
2622
+ jsGet(cls, "prototype"),
2623
+ jsToString((this.cssName ?: "undefined")),
2624
+ this.cssValueDescriptor,
2625
+ )
2626
+ if (this.cssLocalName != this.cssName) {
2627
+ jsDefineProperty(
2628
+ jsGet(cls, "prototype"),
2629
+ jsToString((this.cssLocalName ?: "undefined")),
2630
+ this.localValueDescriptor,
2631
+ )
2632
+ }
2633
+ }
2634
+
2635
+ override var jsExpando: JSObject? = null
2636
+ override val jsDeclaredKeys: List<String>
2637
+ get() =
2638
+ (if (name == null) listOf() else listOf("name")) +
2639
+ (if (key == null) listOf() else listOf("key")) +
2640
+ (if (cssName == null) listOf() else listOf("cssName")) +
2641
+ (if (cssLocalName == null) listOf() else listOf("cssLocalName")) +
2642
+ (if ((jsMadeBits0 and (1L shl 0)) != 0L) listOf("registered") else listOf()) +
2643
+ (if ((jsMadeBits0 and (1L shl 1)) != 0L) listOf("cssValueDescriptor")
2644
+ else listOf()) +
2645
+ (if ((jsMadeBits0 and (1L shl 2)) != 0L) listOf("localValueDescriptor")
2646
+ else listOf()) +
2647
+ (if ((jsMadeBits0 and (1L shl 3)) != 0L) listOf("sourceKey") else listOf())
2648
+
2649
+ override val jsKeys: List<String>
2650
+ get() = jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?: listOf()))
2651
+
2652
+ override val jsClassName: String?
2653
+ get() = "ShorthandProperty"
2654
+
2655
+ override fun jsGet(key: String): Any? =
2656
+ when (key) {
2657
+ "registered" -> if ((jsMadeBits0 and (1L shl 0)) != 0L) this.registered else null
2658
+ "key" -> this.key
2659
+ "name" -> this.name
2660
+ "cssName" -> this.cssName
2661
+ "cssLocalName" -> this.cssLocalName
2662
+ "cssValueDescriptor" ->
2663
+ if ((jsMadeBits0 and (1L shl 1)) != 0L) this.cssValueDescriptor else null
2664
+ "localValueDescriptor" ->
2665
+ if ((jsMadeBits0 and (1L shl 2)) != 0L) this.localValueDescriptor else null
2666
+ "sourceKey" -> if ((jsMadeBits0 and (1L shl 3)) != 0L) this.sourceKey else null
2667
+ "register" ->
2668
+ jsFunction { __a ->
2669
+ this.register(__a.getOrNull(0))
2670
+ null
2671
+ }
2672
+ else -> jsExpandoGet(this, key)
2673
+ }
2674
+
2675
+ override fun jsSet(key: String, value: Any?) {
2676
+ when (key) {
2677
+ "registered" -> this.registered = jsConvertedBooleanOrNull(value, "registered")
2678
+ "key" -> this.key = jsCast(value, JSSymbol::class.java)
2679
+ "name" -> this.name = jsConvertedStringOrNull(value, "name")
2680
+ "cssName" -> this.cssName = jsConvertedStringOrNull(value, "cssName")
2681
+ "cssLocalName" -> this.cssLocalName = jsConvertedStringOrNull(value, "cssLocalName")
2682
+ "cssValueDescriptor" -> this.cssValueDescriptor = value
2683
+ "localValueDescriptor" -> this.localValueDescriptor = value
2684
+ "sourceKey" -> this.sourceKey = jsCast(value, JSSymbol::class.java)
2685
+ else -> jsExpandoSet(this, key, value)
2686
+ }
2687
+ }
2688
+
2689
+ override fun jsHasMember(key: String): Boolean =
2690
+ when (key) {
2691
+ "register" -> true
2692
+ else -> false
2693
+ }
2694
+ }
2695
+
2696
+ @UiThread
2697
+ object Core_ui_core_properties_index {
2698
+ @JvmField val cssPropertyNames: JSArray<String> = JSArray<String>()
2699
+ @JvmField
2700
+ val cssShorthandConverters: JSMap<String, (Any?) -> JSArray<Pair<Any?, Any?>>> =
2701
+ JSMap<String, (Any?) -> JSArray<Pair<Any?, Any?>>>()
2702
+ @JvmField
2703
+ val cssShorthandLonghands: JSMap<String, JSArray<String>> = JSMap<String, JSArray<String>>()
2704
+ @JvmField var cssShorthandsVersion: Double = 0.0
2705
+ @JvmField var HAS_OWN: Any? = null
2706
+ @JvmField val symbolPropertyMap: Any? = jsObjectOf()
2707
+ @JvmField val cssSymbolPropertyMap: Any? = jsObjectOf()
2708
+ @JvmField var CSS_VARIABLE_NAME_RE: JSRegExp? = null
2709
+ @JvmField var DIP_RE: JSRegExp? = null
2710
+ @JvmField var UNSET_RE: JSRegExp? = null
2711
+ @JvmField val UNRESOLVED_VAR: String = "\u0000"
2712
+ @JvmField var INFINITY_RE: JSRegExp? = null
2713
+ @JvmField var inheritableProperties: JSArray<InheritedProperty> = JSArray<InheritedProperty>()
2714
+ @JvmField
2715
+ var inheritableCssProperties: JSArray<InheritedCssProperty> = JSArray<InheritedCssProperty>()
2716
+ @JvmField var cssValueSourceKeys: JSRecord<JSSymbol>? = null
2717
+
2718
+ /**
2719
+ * Whether the style still carries what the cascade last wrote for the property. A `CssProperty`
2720
+ * keeps one value: a local value both suppresses the css write and takes the slot, so the style
2721
+ * can stop carrying what the cascade recorded. The cascade has to write it again rather than
2722
+ * skip it as unchanged.
2723
+ */
2724
+ fun _isCssValueStillApplied(style: Any?, cssLocalName: String?, value: Any?): Boolean {
2725
+ val sourceKey: JSSymbol? =
2726
+ (Core_ui_core_properties_index.cssValueSourceKeys
2727
+ ?: jsCannotRead(jsToString((cssLocalName ?: "undefined"))))[
2728
+ jsToString((cssLocalName ?: "undefined"))]
2729
+ if (sourceKey == null) {
2730
+ return true
2731
+ }
2732
+ return jsStrictEquals(
2733
+ jsGet(style, (sourceKey?.key ?: "undefined")),
2734
+ ((if (Core_ui_core_properties_property_shared.isResetValue(value)) Double.NaN
2735
+ else ValueSource.Css)),
2736
+ )
2737
+ }
2738
+
2739
+ /**
2740
+ * What a released local value falls back to: the value the cascade last resolved for the
2741
+ * property, or `undefined` when it resolved none.
2742
+ */
2743
+ fun cascadedCssValue(view: ViewBase?, cssLocalName: String?): Any? {
2744
+ val value: Any? =
2745
+ (view ?: jsCannotRead("_cssState"))._cssState?._getAppliedPropertyValue(cssLocalName)
2746
+ return (if (
2747
+ jsStrictEquals(value, "") || Core_ui_core_properties_property_shared.isResetValue(value)
2748
+ )
2749
+ null
2750
+ else value)
2751
+ }
2752
+
2753
+ fun print(map: Any?) {
2754
+ val symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(map)
2755
+ for (symbol in (symbols ?: jsObjectRequired())) {
2756
+ val prop: Any? = jsGet(map, symbol.key)
2757
+ if (!jsTruthy(jsGet(prop, "registered"))) {
2758
+ jsLog(
2759
+ "Property ${jsToStringThrowing(jsGet(prop, "name"))} not Registered!!!!!"
2760
+ )
2761
+ }
2762
+ }
2763
+ }
2764
+
2765
+ fun _printUnregisteredProperties() {
2766
+ Core_ui_core_properties_index.print(
2767
+ Core_ui_core_properties_index.symbolPropertyMap
2768
+ )
2769
+ Core_ui_core_properties_index.print(
2770
+ Core_ui_core_properties_index.cssSymbolPropertyMap
2771
+ )
2772
+ }
2773
+
2774
+ fun _getProperties(): JSArray<Property>? {
2775
+ return jsArrayFrom(
2776
+ Core_ui_core_properties_index.getPropertiesFromMap(
2777
+ Core_ui_core_properties_index.symbolPropertyMap
2778
+ )
2779
+ ) {
2780
+ jsCastCarried(it, Property::class.java)
2781
+ }
2782
+ }
2783
+
2784
+ fun _getStyleProperties(): JSArray<CssProperty>? {
2785
+ return jsArrayFrom(
2786
+ Core_ui_core_properties_index.getPropertiesFromMap(
2787
+ Core_ui_core_properties_index.cssSymbolPropertyMap
2788
+ )
2789
+ ) {
2790
+ jsCastCarried(it, CssProperty::class.java)
2791
+ }
2792
+ }
2793
+
2794
+ fun _isCssPendingSubstitution(value: Any?): Boolean {
2795
+ return (value is CssPendingSubstitution)
2796
+ }
2797
+
2798
+ /**
2799
+ * The longhands a shorthand expands into, probed from its converter on first use - the longhand
2800
+ * properties a converter closes over are not initialized yet while the shorthand itself is
2801
+ * being registered.
2802
+ */
2803
+ fun getCssShorthandLonghands(cssName: String?): JSArray<String>? {
2804
+ val known: JSArray<String>? =
2805
+ Core_ui_core_properties_index.cssShorthandLonghands.get((cssName ?: "undefined"))
2806
+ if (jsTruthy(known)) {
2807
+ return known
2808
+ }
2809
+ val converter: ((Any?) -> JSArray<Pair<Any?, Any?>>)? =
2810
+ Core_ui_core_properties_index.cssShorthandConverters.get((cssName ?: "undefined"))
2811
+ if (!jsTruthy(converter)) {
2812
+ return null
2813
+ }
2814
+ try {
2815
+ val probed: JSArray<Pair<Any?, Any?>>? =
2816
+ (converter ?: jsNotAFunction("converter"))(
2817
+ Core_ui_core_properties_property_shared.unsetValue
2818
+ )
2819
+ if (!jsTruthy(probed?.length)) {
2820
+ return null
2821
+ }
2822
+ val longhands: JSArray<String> = JSArray<String>()
2823
+ var i: Double = 0.0
2824
+ val length: Double = (probed ?: jsCannotRead("length")).length
2825
+ while (i < length) {
2826
+ longhands.push(
2827
+ jsConvertedStringOrEmpty(
2828
+ jsGet(
2829
+ ((probed ?: jsCannotRead(js(i))).element(i) ?: jsCannotRead("0")).first,
2830
+ "cssLocalName",
2831
+ )
2832
+ )
2833
+ )
2834
+ i += 1.0
2835
+ }
2836
+ Core_ui_core_properties_index.cssShorthandLonghands.set(
2837
+ (cssName ?: "undefined"),
2838
+ longhands,
2839
+ )
2840
+ return longhands
2841
+ } catch (__e_1: Throwable) {
2842
+ val e: Any? = jsCaught(__e_1)
2843
+ org.nativescript.kit.Trace.write(
2844
+ "Could not determine the longhands of shorthand [${jsToString((cssName ?: "undefined"))}]. ${jsToStringThrowing(e)}",
2845
+ org.nativescript.kit.Trace.categories.Style,
2846
+ org.nativescript.kit.Trace.messageType.warn,
2847
+ )
2848
+ return null
2849
+ }
2850
+ }
2851
+
2852
+ /**
2853
+ * One pending-substitution value per longhand of the shorthand, or `undefined` when the
2854
+ * longhands cannot be determined.
2855
+ */
2856
+ fun _pendingCssShorthandSubstitution(
2857
+ cssName: String?,
2858
+ value: String?,
2859
+ ): JSArray<Pair<String, CssPendingSubstitution>>? {
2860
+ val longhands: JSArray<String>? =
2861
+ Core_ui_core_properties_index.getCssShorthandLonghands(cssName)
2862
+ if (!jsTruthy(longhands)) {
2863
+ return null
2864
+ }
2865
+ val pending: CssPendingSubstitution = CssPendingSubstitution(cssName, value)
2866
+ val declarations: JSArray<Pair<String, CssPendingSubstitution>> =
2867
+ JSArray<Pair<String, CssPendingSubstitution>>()
2868
+ var i: Double = 0.0
2869
+ val length: Double = (longhands ?: jsCannotRead("length")).length
2870
+ while (i < length) {
2871
+ declarations.push(
2872
+ Pair(((longhands ?: jsCannotRead(js(i))).element(i) ?: "undefined"), pending)
2873
+ )
2874
+ i += 1.0
2875
+ }
2876
+ return declarations
2877
+ }
2878
+
2879
+ /** Changes whenever a shorthand is registered. */
2880
+ fun _getCssShorthandsVersion(): Double {
2881
+ return Core_ui_core_properties_index.cssShorthandsVersion
2882
+ }
2883
+
2884
+ /** Whether `cssName` is a registered shorthand. */
2885
+ fun _isCssShorthand(cssName: String?): Boolean {
2886
+ return Core_ui_core_properties_index.cssShorthandConverters.has(
2887
+ (cssName ?: "undefined")
2888
+ )
2889
+ }
2890
+
2891
+ /**
2892
+ * Expand a shorthand declaration into its longhand declarations, or `undefined` when the
2893
+ * property is not a shorthand, the value still has to be evaluated per view (`var()`/`calc()`),
2894
+ * or it does not parse.
2895
+ */
2896
+ fun _expandCssShorthand(cssName: String?, value: String?): JSArray<Pair<String, Any?>>? {
2897
+ val converter: ((Any?) -> JSArray<Pair<Any?, Any?>>)? =
2898
+ Core_ui_core_properties_index.cssShorthandConverters.get((cssName ?: "undefined"))
2899
+ if (!jsTruthy(converter)) {
2900
+ return null
2901
+ }
2902
+ if (
2903
+ jsTypeof(value) == "string" &&
2904
+ (Core_ui_core_properties_index.isCssVariableExpression(value) ||
2905
+ Core_ui_core_properties_index.isCssCalcExpression(value))
2906
+ ) {
2907
+ return null
2908
+ }
2909
+ try {
2910
+ val converted: JSArray<Pair<Any?, Any?>>? =
2911
+ (converter ?: jsNotAFunction("converter"))(value)
2912
+ val expanded: JSArray<Pair<String, Any?>> = JSArray<Pair<String, Any?>>()
2913
+ var i: Double = 0.0
2914
+ val length: Double = (converted ?: jsCannotRead("length")).length
2915
+ while (i < length) {
2916
+ expanded.push(
2917
+ Pair(
2918
+ jsConvertedStringOrEmpty(
2919
+ jsGet(
2920
+ ((converted ?: jsCannotRead(js(i))).element(i) ?: jsCannotRead("0"))
2921
+ .first,
2922
+ "cssLocalName",
2923
+ )
2924
+ ),
2925
+ ((converted ?: jsCannotRead(js(i))).element(i) ?: jsCannotRead("1")).second,
2926
+ )
2927
+ )
2928
+ i += 1.0
2929
+ }
2930
+ return expanded
2931
+ } catch (__e_1: Throwable) {
2932
+ val e: Any? = jsCaught(__e_1)
2933
+ org.nativescript.kit.Trace.write(
2934
+ "Failed to expand shorthand [${jsToString((cssName ?: "undefined"))}] with value [${jsToString((value ?: "undefined"))}]. ${jsToStringThrowing(e)}",
2935
+ org.nativescript.kit.Trace.categories.Style,
2936
+ org.nativescript.kit.Trace.messageType.warn,
2937
+ )
2938
+ return null
2939
+ }
2940
+ }
2941
+
2942
+ fun isCssVariable(property: String?): Boolean {
2943
+ return (Core_ui_core_properties_index.CSS_VARIABLE_NAME_RE
2944
+ ?: jsCannotRead("test"))
2945
+ .test((property ?: "undefined"))
2946
+ }
2947
+
2948
+ fun isCssCalcExpression(value: String?): Boolean {
2949
+ return jsIncludes((value ?: jsCannotRead("includes")), "calc(")
2950
+ }
2951
+
2952
+ fun isCssVariableExpression(value: String?): Boolean {
2953
+ return jsIncludes((value ?: jsCannotRead("includes")), "var(--")
2954
+ }
2955
+
2956
+ fun _evaluateCssVariableExpression(view: ViewBase?, cssName: String?, value: String?): String {
2957
+ if (jsTypeof(value) != "string") {
2958
+ return jsConvertedStringOrEmpty(value)
2959
+ }
2960
+ if (!Core_ui_core_properties_index.isCssVariableExpression(value)) {
2961
+ return (value ?: "undefined")
2962
+ }
2963
+ var output: String = jsTrim((value ?: jsCannotRead("trim")))
2964
+ var lastValue: String? = null
2965
+ while ((lastValue ?: "undefined") != output) {
2966
+ lastValue = output
2967
+ val idx: Double = jsLastIndexOf(output, "var(")
2968
+ if (idx == -1.0) {
2969
+ continue
2970
+ }
2971
+ val endIdx: Double =
2972
+ Core_ui_core_properties_index.findClosingParenthesis(output, idx + 3.0)
2973
+ if (endIdx == -1.0) {
2974
+ continue
2975
+ }
2976
+ val body: String = jsSubstring(output, idx + 4.0, endIdx)
2977
+ val commaIdx: Double = jsIndexOf(body, ",")
2978
+ val cssVariableName: String =
2979
+ jsTrim(((if (commaIdx == -1.0) body else jsSubstring(body, 0.0, commaIdx))))
2980
+ val fallback: String =
2981
+ (if (commaIdx == -1.0) "" else jsTrim(jsSubstring(body, commaIdx + 1.0)))
2982
+ var cssVariableValue: String? =
2983
+ ((view ?: jsCannotRead("style")).style ?: jsCannotRead("getCssVariable"))
2984
+ .getCssVariable(cssVariableName)
2985
+ if (
2986
+ jsTypeof(cssVariableValue) == "string" &&
2987
+ jsTrim((cssVariableValue ?: "undefined")) == "initial"
2988
+ ) {
2989
+ cssVariableValue = null
2990
+ }
2991
+ if ((cssVariableValue == null && !fallback.isNullOrEmpty())) {
2992
+ cssVariableValue =
2993
+ Core_ui_core_properties_index._evaluateCssVariableExpression(
2994
+ view,
2995
+ cssName,
2996
+ fallback,
2997
+ )
2998
+ }
2999
+ if (cssVariableValue.isNullOrEmpty() || cssVariableValue == "unset") {
3000
+ cssVariableValue = Core_ui_core_properties_index.UNRESOLVED_VAR
3001
+ }
3002
+ output =
3003
+ "${jsSubstring(output, 0.0, idx)}${jsToString((cssVariableValue ?: "undefined"))}${jsSubstring(output, endIdx + 1.0)}"
3004
+ }
3005
+ return (if (jsIncludes(output, Core_ui_core_properties_index.UNRESOLVED_VAR))
3006
+ "unset"
3007
+ else output)
3008
+ }
3009
+
3010
+ fun findClosingParenthesis(value: String?, openIdx: Double): Double {
3011
+ var depth: Double = 0.0
3012
+ var i: Double = openIdx
3013
+ while (i < (value ?: "undefined").length.toDouble()) {
3014
+ val ch: String? = jsCharAtOrNull((value ?: "undefined"), i)
3015
+ if ((ch ?: "undefined") == "(") {
3016
+ depth += 1.0
3017
+ } else if (
3018
+ (ch ?: "undefined") == ")" &&
3019
+ kotlin.run {
3020
+ depth -= 1.0
3021
+ depth
3022
+ } == 0.0
3023
+ ) {
3024
+ return i
3025
+ }
3026
+ i += 1.0
3027
+ }
3028
+ return -1.0
3029
+ }
3030
+
3031
+ fun _evaluateCssCalcExpression(value: String?): Any? {
3032
+ if (jsTypeof(value) != "string") {
3033
+ return value
3034
+ }
3035
+ if (Core_ui_core_properties_index.isCssCalcExpression(value)) {
3036
+ return jsCall(
3037
+ CorePackages.calc,
3038
+ Core_ui_core_properties_index._replaceKeywordsWithValues(
3039
+ Core_ui_core_properties_index._replaceDip(value)
3040
+ ),
3041
+ )
3042
+ } else {
3043
+ return value
3044
+ }
3045
+ }
3046
+
3047
+ fun _replaceDip(value: String?): String {
3048
+ return jsReplace(
3049
+ (value ?: jsCannotRead("replace")),
3050
+ (Core_ui_core_properties_index.DIP_RE ?: jsObjectRequired()),
3051
+ "\$1",
3052
+ )
3053
+ }
3054
+
3055
+ fun _replaceKeywordsWithValues(value: String?): String {
3056
+ var cssValue: String? = value
3057
+ if (jsIncludes((cssValue ?: "undefined"), "unset")) {
3058
+ cssValue =
3059
+ jsReplace(
3060
+ (cssValue ?: "undefined"),
3061
+ (Core_ui_core_properties_index.UNSET_RE ?: jsObjectRequired()),
3062
+ "0",
3063
+ )
3064
+ }
3065
+ if (jsIncludes((cssValue ?: "undefined"), "infinity")) {
3066
+ cssValue =
3067
+ jsReplace(
3068
+ (cssValue ?: "undefined"),
3069
+ (Core_ui_core_properties_index.INFINITY_RE ?: jsObjectRequired()),
3070
+ "999999",
3071
+ )
3072
+ }
3073
+ return (cssValue ?: "undefined")
3074
+ }
3075
+
3076
+ fun getPropertiesFromMap(map: Any?): Any? {
3077
+ val symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(map)
3078
+ val len: Double = (symbols ?: jsCannotRead("length")).length
3079
+ val props: JSArray<Any?> = jsArrayOfHoles<Any?>(len)
3080
+ var i: Double = 0.0
3081
+ while (i < len) {
3082
+ props[i] =
3083
+ jsGet(map, ((symbols ?: jsCannotRead(js(i))).element(i)?.key ?: "undefined"))
3084
+ i += 1.0
3085
+ }
3086
+ return props
3087
+ }
3088
+
3089
+ fun inheritablePropertyValuesOn(view: ViewBase?): JSArray<Any?>? {
3090
+ val array: JSArray<Any?> = JSArray<Any?>()
3091
+ for (prop in Core_ui_core_properties_index.inheritableProperties) {
3092
+ val sourceKey: JSSymbol? = (prop ?: jsCannotRead("sourceKey")).sourceKey
3093
+ val valueSource: Double =
3094
+ jsConvertedNumberOrZero(
3095
+ jsOr(jsGet(view, (sourceKey?.key ?: "undefined"))) { ValueSource.Default }
3096
+ )
3097
+ if (valueSource != ValueSource.Default) {
3098
+ array.push(
3099
+ jsObjectOf(
3100
+ "property" to prop,
3101
+ "value" to
3102
+ jsGet(
3103
+ view,
3104
+ jsToString(((prop ?: jsCannotRead("name")).name ?: "undefined")),
3105
+ ),
3106
+ )
3107
+ )
3108
+ }
3109
+ }
3110
+ return array
3111
+ }
3112
+
3113
+ fun inheritableCssPropertyValuesOn(style: Style?): JSArray<Any?>? {
3114
+ val array: JSArray<Any?> = JSArray<Any?>()
3115
+ for (prop in Core_ui_core_properties_index.inheritableCssProperties) {
3116
+ val sourceKey: JSSymbol? = (prop ?: jsCannotRead("sourceKey")).sourceKey
3117
+ val valueSource: Double =
3118
+ jsConvertedNumberOrZero(
3119
+ jsOr(jsGet(style, (sourceKey?.key ?: "undefined"))) { ValueSource.Default }
3120
+ )
3121
+ if (valueSource != ValueSource.Default) {
3122
+ array.push(
3123
+ jsObjectOf(
3124
+ "property" to prop,
3125
+ "value" to
3126
+ jsGet(
3127
+ style,
3128
+ jsToString(((prop ?: jsCannotRead("name")).name ?: "undefined")),
3129
+ ),
3130
+ )
3131
+ )
3132
+ }
3133
+ }
3134
+ return array
3135
+ }
3136
+
3137
+ @JvmField var initNativeView: Any? = null
3138
+
3139
+ fun applyPendingNativeSetters(view: ViewBase?) {
3140
+ val suspendedUpdates: JSRecord<Any?>? =
3141
+ (view ?: jsCannotRead("_suspendedUpdates"))._suspendedUpdates
3142
+ for (propertyName in jsKeysOf(suspendedUpdates)) {
3143
+ if (
3144
+ !jsTruthy(
3145
+ jsCallMethod(
3146
+ Core_ui_core_properties_index.HAS_OWN,
3147
+ "call",
3148
+ suspendedUpdates,
3149
+ propertyName,
3150
+ )
3151
+ )
3152
+ ) {
3153
+ continue
3154
+ }
3155
+ val property: Any? =
3156
+ (suspendedUpdates ?: jsCannotRead(propertyName))[propertyName]
3157
+ val setNative: JSSymbol =
3158
+ jsCastPresent(jsGet(property, "setNative"), JSSymbol::class.java)
3159
+ if (jsTruthy(jsGet(view, setNative.key))) {
3160
+ val __d_1: Any? = property
3161
+ val getDefault: JSSymbol =
3162
+ jsCastPresent(jsGet(__d_1, "getDefault"), JSSymbol::class.java)
3163
+ val isStyleProperty: Boolean = jsConvertedBoolean(jsGet(__d_1, "isStyleProperty"))
3164
+ val defaultValueKey: JSSymbol =
3165
+ jsCastPresent(jsGet(__d_1, "defaultValueKey"), JSSymbol::class.java)
3166
+ val defaultValue: Any? = jsGet(__d_1, "defaultValue")
3167
+ val value: Any?
3168
+ if (isStyleProperty) {
3169
+ val style: Style? = (view ?: jsCannotRead("style")).style
3170
+ if (
3171
+ jsConvertedBooleanOrFalse(
3172
+ jsCallMethod((property), "isSet", (view ?: jsCannotRead("style")).style)
3173
+ )
3174
+ ) {
3175
+ if (!(jsHasKey(style, defaultValueKey.key))) {
3176
+ jsSet(
3177
+ (style ?: jsObjectRequired()),
3178
+ defaultValueKey.key,
3179
+ (if (jsTruthy(jsGet(view, getDefault.key)))
3180
+ jsCallMethod(view, getDefault.key)
3181
+ else defaultValue),
3182
+ )
3183
+ }
3184
+ value =
3185
+ jsGet((view ?: jsCannotRead("style")).style, propertyName)
3186
+ } else {
3187
+ value = jsGet(style, defaultValueKey.key)
3188
+ }
3189
+ } else {
3190
+ if ((jsCastCarried(property, Property::class.java)).isSet(view)) {
3191
+ if (!(jsHasKey(view, defaultValueKey.key))) {
3192
+ jsSet(
3193
+ (view ?: jsObjectRequired()),
3194
+ defaultValueKey.key,
3195
+ (if (jsTruthy(jsGet(view, getDefault.key)))
3196
+ jsCallMethod(view, getDefault.key)
3197
+ else defaultValue),
3198
+ )
3199
+ }
3200
+ value = jsGet(view, propertyName)
3201
+ } else {
3202
+ value = jsGet(view, defaultValueKey.key)
3203
+ }
3204
+ }
3205
+ jsCallMethod(view, setNative.key, value)
3206
+ }
3207
+ }
3208
+ }
3209
+
3210
+ fun applyAllNativeSetters(view: ViewBase?) {
3211
+ var symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(view)
3212
+ for (symbol in (symbols ?: jsObjectRequired())) {
3213
+ val property: Property? =
3214
+ jsCast(
3215
+ jsGet(Core_ui_core_properties_index.symbolPropertyMap, symbol.key),
3216
+ Property::class.java,
3217
+ )
3218
+ if (!jsTruthy(property)) {
3219
+ continue
3220
+ }
3221
+ val setNative: JSSymbol? =
3222
+ (property ?: jsCannotRead("setNative")).setNative
3223
+ val getDefault: JSSymbol? =
3224
+ (property ?: jsCannotRead("getDefault")).getDefault
3225
+ if (jsHasKey(view, (setNative?.key ?: "undefined"))) {
3226
+ val defaultValueKey: JSSymbol? =
3227
+ (property ?: jsCannotRead("defaultValueKey")).defaultValueKey
3228
+ if (!(jsHasKey(view, (defaultValueKey?.key ?: "undefined")))) {
3229
+ jsSet(
3230
+ (view ?: jsObjectRequired()),
3231
+ (defaultValueKey?.key ?: "undefined"),
3232
+ (if (jsTruthy(jsGet(view, (getDefault?.key ?: "undefined"))))
3233
+ jsCallMethod(view, (getDefault?.key ?: "undefined"))
3234
+ else (property ?: jsCannotRead("defaultValue")).defaultValue),
3235
+ )
3236
+ }
3237
+ val value: Any? = jsGet(view, symbol.key)
3238
+ jsCallMethod(view, (setNative?.key ?: "undefined"), value)
3239
+ }
3240
+ }
3241
+ val style: Style? = (view ?: jsCannotRead("style")).style
3242
+ symbols = jsOwnPropertySymbols(style)
3243
+ for (symbol in (symbols ?: jsObjectRequired())) {
3244
+ val property: Any? =
3245
+ jsGet(Core_ui_core_properties_index.cssSymbolPropertyMap, symbol.key)
3246
+ if (!jsTruthy(property)) {
3247
+ continue
3248
+ }
3249
+ if (
3250
+ jsTruthy(
3251
+ jsGet(
3252
+ view,
3253
+ jsCastPresent(jsGet(property, "setNative"), JSSymbol::class.java).key,
3254
+ )
3255
+ )
3256
+ ) {
3257
+ val defaultValueKey: JSSymbol =
3258
+ jsCastPresent(jsGet(property, "defaultValueKey"), JSSymbol::class.java)
3259
+ if (!(jsHasKey(style, defaultValueKey.key))) {
3260
+ jsSet(
3261
+ (style ?: jsObjectRequired()),
3262
+ defaultValueKey.key,
3263
+ (if (
3264
+ jsTruthy(
3265
+ jsGet(
3266
+ view,
3267
+ jsCastPresent(
3268
+ jsGet(property, "getDefault"),
3269
+ JSSymbol::class.java,
3270
+ )
3271
+ .key,
3272
+ )
3273
+ )
3274
+ )
3275
+ jsCallMethod(
3276
+ view,
3277
+ jsCastPresent(jsGet(property, "getDefault"), JSSymbol::class.java)
3278
+ .key,
3279
+ )
3280
+ else jsGet(property, "defaultValue")),
3281
+ )
3282
+ }
3283
+ val value: Any? = jsGet(style, symbol.key)
3284
+ jsCallMethod(
3285
+ view,
3286
+ jsCastPresent(jsGet(property, "setNative"), JSSymbol::class.java).key,
3287
+ value,
3288
+ )
3289
+ }
3290
+ }
3291
+ }
3292
+
3293
+ fun resetNativeView(view: ViewBase?) {
3294
+ var symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(view)
3295
+ for (symbol in (symbols ?: jsObjectRequired())) {
3296
+ val property: Property? =
3297
+ jsCast(
3298
+ jsGet(Core_ui_core_properties_index.symbolPropertyMap, symbol.key),
3299
+ Property::class.java,
3300
+ )
3301
+ if (!jsTruthy(property)) {
3302
+ continue
3303
+ }
3304
+ if (
3305
+ jsTruthy(
3306
+ jsGet(
3307
+ view,
3308
+ ((property ?: jsCannotRead("setNative")).setNative?.key ?: "undefined"),
3309
+ )
3310
+ )
3311
+ ) {
3312
+ if (
3313
+ jsHasKey(
3314
+ view,
3315
+ ((property ?: jsCannotRead("defaultValueKey")).defaultValueKey?.key
3316
+ ?: "undefined"),
3317
+ )
3318
+ ) {
3319
+ jsCallMethod(
3320
+ view,
3321
+ ((property ?: jsCannotRead("setNative")).setNative?.key ?: "undefined"),
3322
+ jsGet(
3323
+ view,
3324
+ ((property ?: jsCannotRead("defaultValueKey")).defaultValueKey?.key
3325
+ ?: "undefined"),
3326
+ ),
3327
+ )
3328
+ jsDelete(
3329
+ (view ?: jsObjectRequired()),
3330
+ ((property ?: jsCannotRead("defaultValueKey")).defaultValueKey?.key
3331
+ ?: "undefined"),
3332
+ )
3333
+ } else {
3334
+ jsCallMethod(
3335
+ view,
3336
+ ((property ?: jsCannotRead("setNative")).setNative?.key ?: "undefined"),
3337
+ (property ?: jsCannotRead("defaultValue")).defaultValue,
3338
+ )
3339
+ }
3340
+ }
3341
+ }
3342
+ val style: Style? = (view ?: jsCannotRead("style")).style
3343
+ symbols = jsOwnPropertySymbols(style)
3344
+ for (symbol in (symbols ?: jsObjectRequired())) {
3345
+ val property: Any? =
3346
+ jsGet(Core_ui_core_properties_index.cssSymbolPropertyMap, symbol.key)
3347
+ if (!jsTruthy(property)) {
3348
+ continue
3349
+ }
3350
+ if (
3351
+ jsTruthy(
3352
+ jsGet(
3353
+ view,
3354
+ jsCastPresent(jsGet(property, "setNative"), JSSymbol::class.java).key,
3355
+ )
3356
+ )
3357
+ ) {
3358
+ if (
3359
+ jsHasKey(
3360
+ style,
3361
+ jsCastPresent(jsGet(property, "defaultValueKey"), JSSymbol::class.java).key,
3362
+ )
3363
+ ) {
3364
+ jsCallMethod(
3365
+ view,
3366
+ jsCastPresent(jsGet(property, "setNative"), JSSymbol::class.java).key,
3367
+ jsGet(
3368
+ style,
3369
+ jsCastPresent(jsGet(property, "defaultValueKey"), JSSymbol::class.java)
3370
+ .key,
3371
+ ),
3372
+ )
3373
+ jsDelete(
3374
+ (style ?: jsObjectRequired()),
3375
+ jsCastPresent(jsGet(property, "defaultValueKey"), JSSymbol::class.java).key,
3376
+ )
3377
+ } else {
3378
+ jsCallMethod(
3379
+ view,
3380
+ jsCastPresent(jsGet(property, "setNative"), JSSymbol::class.java).key,
3381
+ jsGet(property, "defaultValue"),
3382
+ )
3383
+ }
3384
+ }
3385
+ }
3386
+ }
3387
+
3388
+ fun clearInheritedProperties(view: ViewBase?) {
3389
+ for (prop in Core_ui_core_properties_index.inheritableProperties) {
3390
+ val sourceKey: JSSymbol? = (prop ?: jsCannotRead("sourceKey")).sourceKey
3391
+ if (
3392
+ jsStrictEquals(jsGet(view, (sourceKey?.key ?: "undefined")), ValueSource.Inherited)
3393
+ ) {
3394
+ jsCallMethod(
3395
+ (prop ?: jsCannotRead("set")).set,
3396
+ "call",
3397
+ view,
3398
+ Core_ui_core_properties_property_shared.unsetValue,
3399
+ )
3400
+ }
3401
+ }
3402
+ val style: Style? = (view ?: jsCannotRead("style")).style
3403
+ for (prop in Core_ui_core_properties_index.inheritableCssProperties) {
3404
+ val sourceKey: JSSymbol? = (prop ?: jsCannotRead("sourceKey")).sourceKey
3405
+ if (
3406
+ jsStrictEquals(jsGet(style, (sourceKey?.key ?: "undefined")), ValueSource.Inherited)
3407
+ ) {
3408
+ jsCallMethod(
3409
+ (prop ?: jsCannotRead("setInheritedValue")).setInheritedValue,
3410
+ "call",
3411
+ style,
3412
+ Core_ui_core_properties_property_shared.unsetValue,
3413
+ )
3414
+ }
3415
+ }
3416
+ }
3417
+
3418
+ fun resetCSSProperties(style: Style?) {
3419
+ val symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(style)
3420
+ for (symbol in (symbols ?: jsObjectRequired())) {
3421
+ var cssProperty: Any? = null
3422
+ if (
3423
+ jsTruthy(
3424
+ (kotlin.run {
3425
+ val __assigned1: Any? =
3426
+ jsGet(Core_ui_core_properties_index.cssSymbolPropertyMap, symbol.key)
3427
+ cssProperty = __assigned1
3428
+ __assigned1
3429
+ })
3430
+ )
3431
+ ) {
3432
+ jsSet(
3433
+ (style ?: jsObjectRequired()),
3434
+ jsPropertyKey(jsGet(cssProperty, "cssName")),
3435
+ Core_ui_core_properties_property_shared.unsetValue,
3436
+ )
3437
+ if ((cssProperty is CssAnimationProperty)) {
3438
+ jsSet(
3439
+ (style ?: jsObjectRequired()),
3440
+ jsToString(
3441
+ (jsCastCarried(cssProperty, CssAnimationProperty::class.java).keyframe
3442
+ ?: "undefined")
3443
+ ),
3444
+ Core_ui_core_properties_property_shared.unsetValue,
3445
+ )
3446
+ }
3447
+ }
3448
+ }
3449
+ }
3450
+
3451
+ fun propagateInheritableProperties(view: ViewBase?, child: ViewBase?) {
3452
+ val inheritablePropertyValues: JSArray<Any?>? =
3453
+ Core_ui_core_properties_index.inheritablePropertyValuesOn(view)
3454
+ for (pair in (inheritablePropertyValues ?: jsObjectRequired())) {
3455
+ val prop: InheritedProperty? =
3456
+ jsCast(jsGet(pair, "property"), InheritedProperty::class.java)
3457
+ val sourceKey: JSSymbol? = (prop ?: jsCannotRead("sourceKey")).sourceKey
3458
+ val currentValueSource: Double =
3459
+ jsConvertedNumberOrZero(
3460
+ jsOr(jsGet(child, (sourceKey?.key ?: "undefined"))) { ValueSource.Default }
3461
+ )
3462
+ if (currentValueSource <= ValueSource.Inherited) {
3463
+ jsCallMethod(
3464
+ (prop ?: jsCannotRead("setInheritedValue")).setInheritedValue,
3465
+ "call",
3466
+ child,
3467
+ jsGet(pair, "value"),
3468
+ )
3469
+ }
3470
+ }
3471
+ }
3472
+
3473
+ fun propagateInheritableCssProperties(parentStyle: Style?, childStyle: Style?) {
3474
+ val inheritableCssPropertyValues: JSArray<Any?>? =
3475
+ Core_ui_core_properties_index.inheritableCssPropertyValuesOn(parentStyle)
3476
+ for (pair in (inheritableCssPropertyValues ?: jsObjectRequired())) {
3477
+ val prop: InheritedCssProperty? =
3478
+ jsCast(jsGet(pair, "property"), InheritedCssProperty::class.java)
3479
+ val sourceKey: JSSymbol? = (prop ?: jsCannotRead("sourceKey")).sourceKey
3480
+ val currentValueSource: Double =
3481
+ jsConvertedNumberOrZero(
3482
+ jsOr(jsGet(childStyle, (sourceKey?.key ?: "undefined"))) { ValueSource.Default }
3483
+ )
3484
+ if (currentValueSource <= ValueSource.Inherited) {
3485
+ jsCallMethod(
3486
+ (prop ?: jsCannotRead("setInheritedValue")).setInheritedValue,
3487
+ "call",
3488
+ childStyle,
3489
+ jsGet(pair, "value"),
3490
+ ValueSource.Inherited,
3491
+ )
3492
+ }
3493
+ }
3494
+ }
3495
+
3496
+ fun getSetProperties(view: ViewBase?): JSArray<Pair<String, Any?>>? {
3497
+ val result: JSArray<Any?> = JSArray<Any?>()
3498
+ val ownProps: JSArray<String>? = jsOwnPropertyNames(view)
3499
+ var i: Double = 0.0
3500
+ while (i < (ownProps ?: jsCannotRead("length")).length) {
3501
+ val prop: String? = (ownProps ?: jsCannotRead(js(i))).element(i)
3502
+ result.push(jsArrayOf<Any?>(prop, jsGet(view, jsToString(prop))))
3503
+ i += 1.0
3504
+ }
3505
+ val symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(view)
3506
+ for (symbol in (symbols ?: jsObjectRequired())) {
3507
+ val property: Any? =
3508
+ jsGet(Core_ui_core_properties_index.symbolPropertyMap, symbol.key)
3509
+ if (!jsTruthy(property)) {
3510
+ continue
3511
+ }
3512
+ val value: Any? = jsGet(view, jsPropertyKey(jsGet(property, "key")))
3513
+ result.push(jsArrayOf<Any?>(jsGet(property, "name"), value))
3514
+ }
3515
+ return (if (jsIsNullish(result)) null
3516
+ else
3517
+ jsArrayFrom(result) {
3518
+ kotlin.run {
3519
+ val __a = it
3520
+ Pair(jsConvertedString(jsField(__a, "0")), jsField(__a, "1"))
3521
+ }
3522
+ })
3523
+ }
3524
+
3525
+ fun getComputedCssValues(view: ViewBase?): JSArray<Pair<String, Any?>>? {
3526
+ val result: JSArray<Any?> = JSArray<Any?>()
3527
+ val style: Style? = (view ?: jsCannotRead("style")).style
3528
+ for (prop in Core_ui_core_properties_index.cssPropertyNames) {
3529
+ if (!jsIsNullish(prop)) {
3530
+ result.push(jsArrayOf<Any?>(prop, jsGet(style, prop)))
3531
+ }
3532
+ }
3533
+ result.push(jsArrayOf<Any?>("top", "auto"))
3534
+ result.push(jsArrayOf<Any?>("left", "auto"))
3535
+ result.push(jsArrayOf<Any?>("bottom", "auto"))
3536
+ result.push(jsArrayOf<Any?>("right", "auto"))
3537
+ return (if (jsIsNullish(result)) null
3538
+ else
3539
+ jsArrayFrom(result) {
3540
+ kotlin.run {
3541
+ val __a = it
3542
+ Pair(jsConvertedString(jsField(__a, "0")), jsField(__a, "1"))
3543
+ }
3544
+ })
3545
+ }
3546
+
3547
+ fun __init() {
3548
+ try {
3549
+ HAS_OWN = jsGet(JSPrototypes.objectPrototype, "hasOwnProperty")
3550
+ CSS_VARIABLE_NAME_RE = jsRegExpLiteral("^--[^,\\s]+?\$", "")
3551
+ DIP_RE = jsRegExpLiteral("([0-9]+(\\.[0-9]+)?)dip\\b", "g")
3552
+ UNSET_RE = jsRegExpLiteral("unset", "g")
3553
+ INFINITY_RE = jsRegExpLiteral("infinity", "g")
3554
+ inheritableProperties = JSArray<InheritedProperty>()
3555
+ inheritableCssProperties = JSArray<InheritedCssProperty>()
3556
+ cssValueSourceKeys = jsRecordOrNull<JSSymbol>(jsObjectCreate(jsNull))
3557
+ initNativeView =
3558
+ Core_profiling_index.profile(
3559
+ "\"properties\".initNativeView",
3560
+ { view: ViewBase? ->
3561
+ if (
3562
+ jsTruthy((view ?: jsCannotRead("_suspendedUpdates"))._suspendedUpdates)
3563
+ ) {
3564
+ Core_ui_core_properties_index.applyPendingNativeSetters(
3565
+ view
3566
+ )
3567
+ } else {
3568
+ Core_ui_core_properties_index.applyAllNativeSetters(view)
3569
+ }
3570
+ (view ?: jsCannotSet("_suspendedUpdates"))._suspendedUpdates =
3571
+ JSRecord<Any?>()
3572
+ },
3573
+ )
3574
+ } catch (__e: Throwable) {
3575
+ jsReportThrown(__e)
3576
+ }
3577
+ }
3578
+ }