@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,3899 @@
1
+ // Generated from @nativescript/core by tools/kit: edit core, not this file.
2
+
3
+ import CFNetwork
4
+ import CoreFoundation
5
+ import CoreGraphics
6
+ import CoreServices
7
+ import CoreText
8
+ import Dispatch
9
+ import Foundation
10
+ import ObjectiveC
11
+ import Photos
12
+ import QuartzCore
13
+ import Symbols
14
+ import SystemConfiguration
15
+ import UIKit
16
+ import WebKit
17
+
18
+ public enum ValueSource {
19
+ public static let Default: Double = 0
20
+ public static let Inherited: Double = 1
21
+ public static let Css: Double = 2
22
+ public static let Local: Double = 3
23
+ public static let Keyframe: Double = 4
24
+ }
25
+
26
+ /// Placeholder cascaded for each longhand of a shorthand that cannot be split while
27
+ /// parsing - a single `var()` may substitute several longhands at once, so the
28
+ /// shorthand is only parsed once its expression is resolved per view.
29
+ /// @see https://drafts.csswg.org/css-variables/#variables-in-shorthands
30
+ open class CssPendingSubstitution: JSDynamic, JSStringConvertible, JSExpando, JSStaticKeyed {
31
+ nonisolated deinit {}
32
+ open var shorthand: String = ""
33
+ open var value: String = ""
34
+ public init(_ shorthand: String, _ value: String) {
35
+ self.shorthand = shorthand
36
+ self.value = value
37
+ }
38
+ open func jsSymbolMethod(_ key: String) -> JSMethod? {
39
+ return nil
40
+ }
41
+ open class var jsSymbolPlain: Bool { true }
42
+ open class var jsSymbolFieldsPlain: Bool { true }
43
+ open var jsExpando: JSObject?
44
+ open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
45
+ open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
46
+ open func toString() -> String {
47
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:109)
48
+ return self.value
49
+ }
50
+ #sourceLocation()
51
+ open var jsKeys: [String] { ["shorthand"] + ["value"] + (jsExpando?.jsKeys ?? []) }
52
+ open var jsClassName: String? { "CssPendingSubstitution" }
53
+ open subscript(jsKey key: String) -> Any? {
54
+ get {
55
+ switch key.utf8.count {
56
+ case 5:
57
+ switch key {
58
+ case "value": return jsExpandoGet(self, "value")
59
+ default: break
60
+ }
61
+ case 8:
62
+ switch key {
63
+ case "toString": return FunctionCell_none_to_String.script("toString", 0, self.toString)
64
+ default: break
65
+ }
66
+ case 9:
67
+ switch key {
68
+ case "shorthand": return self.shorthand
69
+ default: break
70
+ }
71
+ default: break
72
+ }
73
+ return jsExpandoGet(self, key)
74
+ }
75
+ set {
76
+ switch key.utf8.count {
77
+ case 5:
78
+ switch key {
79
+ case "value":
80
+ jsExpandoSet(self, "value", newValue)
81
+ return
82
+ default: break
83
+ }
84
+ case 9:
85
+ switch key {
86
+ case "shorthand":
87
+ jsStoring { self.shorthand = (try jsConvertedString(newValue)) }
88
+ return
89
+ default: break
90
+ }
91
+ default: break
92
+ }
93
+ jsExpandoSet(self, key, newValue)
94
+ }
95
+ }
96
+ open class var jsName: String { "CssPendingSubstitution" }
97
+ open class var jsStaticKeys: [String] { [] }
98
+ }
99
+
100
+ open class Property: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
101
+ nonisolated deinit {}
102
+ open var registered: Bool = false {
103
+ didSet { if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "registered") } }
104
+ }
105
+ open var name: String = ""
106
+ open var key: JSSymbol
107
+ open var getDefault: JSSymbol
108
+ open var setNative: JSSymbol
109
+ open var defaultValueKey: JSSymbol
110
+ open var defaultValue: Any? = nil
111
+ open var nativeValueChange: ((Any?, Any?) throws -> Void)? {
112
+ didSet { if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "nativeValueChange") } }
113
+ }
114
+ private static let jsSite_Property_isStyleProperty = JSReadSite("isStyleProperty")
115
+ open var __own_isStyleProperty: Bool? = nil
116
+ open var isStyleProperty: Bool {
117
+ get {
118
+ if let v = __own_isStyleProperty { return v }
119
+ return jsLenientBool(JSPrototypes.value(type(of: self), Property.jsSite_Property_isStyleProperty, self))
120
+ }
121
+ set {
122
+ __own_isStyleProperty = .some(newValue)
123
+ if jsMadeBits0 & (1 << 2) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 2, "isStyleProperty") }
124
+ }
125
+ }
126
+ open var get: Any? = nil {
127
+ didSet { if jsMadeBits0 & (1 << 3) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 3, "get") } }
128
+ }
129
+ open var set: Any? = nil {
130
+ didSet { if jsMadeBits0 & (1 << 4) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 4, "set") } }
131
+ }
132
+ open var overrideHandlers: ((Any?) throws -> Void)?
133
+ open var enumerable: Bool = true
134
+ open var configurable: Bool = true
135
+ public init(_ options: Any?) throws {
136
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:350)
137
+ let propertyName: String = try jsConvertedString(jsGet(options, "name"))
138
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:351)
139
+ self.name = propertyName
140
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:353)
141
+ let key: JSSymbol = jsSymbol(propertyName + ":propertyKey")
142
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:354)
143
+ self.key = key
144
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:356)
145
+ let getDefault: JSSymbol = jsSymbol(propertyName + ":getDefault")
146
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:357)
147
+ self.getDefault = getDefault
148
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:359)
149
+ let setNative: JSSymbol = jsSymbol(propertyName + ":setNative")
150
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:360)
151
+ self.setNative = setNative
152
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:362)
153
+ let defaultValueKey: JSSymbol = jsSymbol(propertyName + ":nativeDefaultValue")
154
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:363)
155
+ self.defaultValueKey = defaultValueKey
156
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:365)
157
+ let defaultValue: Any? = try jsGet(options, "defaultValue")
158
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:366)
159
+ self.defaultValue = defaultValue
160
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:368)
161
+ let eventName: String = propertyName + "Change"
162
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:370)
163
+ var equalityComparer: ((Any?, Any?) throws -> Bool)? = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
164
+ jsGet(options, "equalityComparer"))
165
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:371)
166
+ var affectsLayout: Bool? = (try jsGet(options, "affectsLayout") as? Bool)
167
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:372)
168
+ var valueChanged: ((Any?, Any?, Any?) throws -> Void)? =
169
+ try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(jsGet(options, "valueChanged"))
170
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:373)
171
+ var valueConverter: ((String) throws -> Any?)? = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(
172
+ jsGet(options, "valueConverter"))
173
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:374)
174
+ var overrideConverter: Bool = false
175
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:376)
176
+ self.overrideHandlers = { (options: Any?) throws -> Void in
177
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:377)
178
+ if try !jsStringEquals(jsTypeof(jsGet(options, "equalityComparer")), "undefined") {
179
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:378)
180
+ equalityComparer = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
181
+ jsGet(options, "equalityComparer"))
182
+ }
183
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:380)
184
+ if try !jsStringEquals(jsTypeof(jsGet(options, "affectsLayout")), "undefined") {
185
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:381)
186
+ affectsLayout = try jsConvertedBool(jsGet(options, "affectsLayout"))
187
+ }
188
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:383)
189
+ if try !jsStringEquals(jsTypeof(jsGet(options, "valueChanged")), "undefined") {
190
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:384)
191
+ valueChanged = try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(
192
+ jsGet(options, "valueChanged"))
193
+ }
194
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:386)
195
+ if try !jsStringEquals(jsTypeof(jsGet(options, "valueConverter")), "undefined") {
196
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:387)
197
+ valueConverter = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter"))
198
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:388)
199
+ overrideConverter = true
200
+ }
201
+ }
202
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:392)
203
+ let property: Property = self
204
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:394)
205
+ self.set =
206
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
207
+ let boxedValue: Any? = jsArg(__a, 0)
208
+ let origin: String? = (try jsConvertedStringOrNil(jsArg(__a, 1)))
209
+ try { () throws -> Void in
210
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:395)
211
+ let reset: Bool = Core_ui_core_properties_property_shared.isResetValue(boxedValue)
212
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:396)
213
+ var value: Any? = nil
214
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:397)
215
+ var wrapped: Bool? = nil
216
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:398)
217
+ if reset {
218
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:399)
219
+ value = defaultValue
220
+ } else {
221
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:401)
222
+ wrapped = try jsConvertedBoolOrNil(
223
+ ({ () throws -> Any? in
224
+ let __v_1 = boxedValue
225
+ return jsTruthy(__v_1) ? try jsGet(boxedValue, "wrapped") : __v_1
226
+ }()))
227
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:402)
228
+ value = try (jsTruthy(wrapped as Any?) ? WrappedValue.unwrap(boxedValue) : boxedValue)
229
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:404)
230
+ if jsTruthy(valueConverter) && jsStringEquals(jsTypeof(value), "string") {
231
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:405)
232
+ value =
233
+ try
234
+ (overrideConverter
235
+ ? jsUnwrap(valueConverter, "call")(jsLenientString(value))
236
+ : jsCallable(valueConverter, "valueConverter")(jsLenientString(value)))
237
+ }
238
+ }
239
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:409)
240
+ let oldValue: Any? = try ((jsHasKey(__this, key.key) ? jsGet(__this, key.key) : defaultValue))
241
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:410)
242
+ let changed: Bool =
243
+ try
244
+ (jsTruthy(equalityComparer)
245
+ ? !(jsCallable(equalityComparer, "equalityComparer")(oldValue, value))
246
+ : !jsStrictEquals(oldValue, value))
247
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:412)
248
+ if (wrapped ?? false) || changed {
249
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:413)
250
+ if jsTruthy(affectsLayout as Any?) {
251
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:414)
252
+ try jsCallMethod(__this, "requestLayout")
253
+ }
254
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:417)
255
+ if reset {
256
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:418)
257
+ _ = try jsDelete(__this, key.key)
258
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:419)
259
+ if jsTruthy(valueChanged) {
260
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:420)
261
+ try jsCallable(valueChanged, "valueChanged")(__this, oldValue, value)
262
+ }
263
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:422)
264
+ if try jsTruthy(jsGet(__this, setNative.key)) {
265
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:423)
266
+ if try jsTruthy(jsGet(__this, "_suspendNativeUpdatesCount")) {
267
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:424)
268
+ if try jsTruthy(jsGet(__this, "_suspendedUpdates")) {
269
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:425)
270
+ try jsUnwrap(
271
+ jsRecordOf(jsGet(__this, "_suspendedUpdates"), as: JSRecord<Any?>.self) {
272
+ $0
273
+ }, setting: "propertyName")[propertyName] = property
274
+ }
275
+ } else if jsHasKey(__this, defaultValueKey.key) {
276
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:428)
277
+ _ = try jsCallMethod(__this, setNative.key, jsGet(__this, defaultValueKey.key))
278
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:429)
279
+ _ = try jsDelete(__this, defaultValueKey.key)
280
+ } else {
281
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:431)
282
+ _ = try jsCallMethod(__this, setNative.key, defaultValue)
283
+ }
284
+ }
285
+ } else {
286
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:435)
287
+ try jsSet(__this, key.key, value)
288
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:436)
289
+ if jsTruthy(valueChanged) {
290
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:437)
291
+ try jsCallable(valueChanged, "valueChanged")(__this, oldValue, value)
292
+ }
293
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:439)
294
+ if try jsTruthy(jsGet(__this, setNative.key)) {
295
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:440)
296
+ if try jsTruthy(jsGet(__this, "_suspendNativeUpdatesCount")) {
297
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:441)
298
+ if try jsTruthy(jsGet(__this, "_suspendedUpdates")) {
299
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:442)
300
+ try jsUnwrap(
301
+ jsRecordOf(jsGet(__this, "_suspendedUpdates"), as: JSRecord<Any?>.self) {
302
+ $0
303
+ }, setting: "propertyName")[propertyName] = property
304
+ }
305
+ } else {
306
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:445)
307
+ if !jsHasKey(__this, defaultValueKey.key) {
308
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:446)
309
+ try jsSet(
310
+ __this, defaultValueKey.key,
311
+ (jsTruthy(jsGet(__this, getDefault.key))
312
+ ? jsCallMethod(__this, getDefault.key) : defaultValue))
313
+ }
314
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:448)
315
+ _ = try jsCallMethod(__this, setNative.key, value)
316
+ }
317
+ }
318
+ }
319
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:453)
320
+ if try jsLenientBool(jsCallMethod(__this, "hasListeners", eventName)) {
321
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:454)
322
+ try jsCallMethod(
323
+ __this, "notify",
324
+ JSObject([
325
+ ("object", __this), ("eventName", eventName as Any?),
326
+ ("propertyName", propertyName as Any?), ("value", value as Any?),
327
+ ("oldValue", oldValue as Any?), ("origin", ((origin) ?? "script")),
328
+ ]))
329
+ }
330
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:464)
331
+ if try jsTruthy(jsGet(__this, "domNode")) {
332
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:465)
333
+ if reset {
334
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:466)
335
+ _ = try jsCallMethod(jsGet(__this, "domNode"), "attributeRemoved", propertyName)
336
+ } else {
337
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:468)
338
+ _ = try jsCallMethod(jsGet(__this, "domNode"), "attributeModified", propertyName, value)
339
+ }
340
+ }
341
+ }
342
+ }()
343
+ return nil
344
+ } as JSMethod)
345
+ if jsMadeBits0 & (1 << 4) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 4, "set") }
346
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:474)
347
+ self.get =
348
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
349
+ return try { () throws -> Any? in
350
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:475)
351
+ return try ((jsHasKey(__this, key.key) ? jsGet(__this, key.key) : defaultValue))
352
+ }()
353
+ } as JSMethod)
354
+ if jsMadeBits0 & (1 << 3) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 3, "get") }
355
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:478)
356
+ self.nativeValueChange = { (owner: Any?, value: Any?) throws -> Void in
357
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:479)
358
+ let oldValue: Any? = try ((jsHasKey(owner, key.key) ? jsGet(owner, key.key) : defaultValue))
359
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:480)
360
+ let changed: Bool =
361
+ try
362
+ (jsTruthy(equalityComparer)
363
+ ? !(jsCallable(equalityComparer, "equalityComparer")(oldValue, value))
364
+ : !jsStrictEquals(oldValue, value))
365
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:481)
366
+ if changed {
367
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:482)
368
+ try jsSet(owner, key.key, value)
369
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:483)
370
+ if jsTruthy(valueChanged) {
371
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:484)
372
+ try jsCallable(valueChanged, "valueChanged")(owner, oldValue, value)
373
+ }
374
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:487)
375
+ if try (jsTruthy(jsGet(owner, "nativeViewProtected")) && !jsHasKey(owner, defaultValueKey.key)) {
376
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:488)
377
+ try jsSet(
378
+ owner, defaultValueKey.key,
379
+ (jsTruthy(jsGet(owner, getDefault.key)) ? jsCallMethod(owner, getDefault.key) : defaultValue))
380
+ }
381
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:491)
382
+ if try jsLenientBool(jsCallMethod(owner, "hasListeners", eventName)) {
383
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:492)
384
+ try jsCallMethod(
385
+ owner, "notify",
386
+ JSObject([
387
+ ("object", owner), ("eventName", eventName as Any?), ("propertyName", propertyName as Any?),
388
+ ("value", value as Any?), ("oldValue", oldValue as Any?), ("origin", "native"),
389
+ ]))
390
+ }
391
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:502)
392
+ if jsTruthy(affectsLayout as Any?) {
393
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:503)
394
+ try jsCallMethod(owner, "requestLayout")
395
+ }
396
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:506)
397
+ if try jsTruthy(jsGet(owner, "domNode")) {
398
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:507)
399
+ _ = try jsCallMethod(jsGet(owner, "domNode"), "attributeModified", propertyName, value)
400
+ }
401
+ }
402
+ }
403
+ if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "nativeValueChange") }
404
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:512)
405
+ Core_ui_core_properties_index.symbolPropertyMap[jsKey: key.key] = self
406
+ }
407
+ #sourceLocation()
408
+ open func jsSymbolMethod(_ key: String) -> JSMethod? {
409
+ return nil
410
+ }
411
+ open class var jsSymbolPlain: Bool { true }
412
+ open class var jsSymbolFieldsPlain: Bool { true }
413
+ open var jsExpando: JSObject?
414
+ open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
415
+ open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
416
+ open func register(_ cls: Any?) throws {
417
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:516)
418
+ if self.registered {
419
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:517)
420
+ throw JSException(value: JSError("Property \(self.name) already registered."))
421
+ }
422
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:519)
423
+ self.registered = true
424
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:520)
425
+ _ = try jsDefineProperty(jsGet(cls, "prototype"), self.name, self)
426
+ }
427
+ #sourceLocation()
428
+ open func isSet(_ instance: Any?) -> Bool {
429
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:524)
430
+ return jsHasKey(instance, self.key.key)
431
+ }
432
+ #sourceLocation()
433
+ public final var jsMadeBits0: UInt64 = 0
434
+ public final var jsMade: [String]?
435
+ open var jsDeclaredKeys: [String] {
436
+ ["enumerable"] + ["configurable"] + ["name"] + ["key"] + ["getDefault"] + ["setNative"] + ["defaultValueKey"]
437
+ + (self.defaultValue == nil ? [] : ["defaultValue"]) + ["overrideHandlers"]
438
+ + (jsMadeBits0 & (1 << 0) != 0 ? ["registered"] : [])
439
+ + (jsMadeBits0 & (1 << 1) != 0 ? ["nativeValueChange"] : [])
440
+ + (jsMadeBits0 & (1 << 2) != 0 ? ["isStyleProperty"] : []) + (jsMadeBits0 & (1 << 3) != 0 ? ["get"] : [])
441
+ + (jsMadeBits0 & (1 << 4) != 0 ? ["set"] : [])
442
+ }
443
+ open var jsKeys: [String] { jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?? [])) }
444
+ open var jsClassName: String? { "Property" }
445
+ open subscript(jsKey key: String) -> Any? {
446
+ get {
447
+ switch key.utf8.count {
448
+ case 3:
449
+ switch key {
450
+ case "key": return self.key
451
+ case "get":
452
+ if !(jsMadeBits0 & (1 << 3) != 0) { return nil }
453
+ return self.get
454
+ case "set":
455
+ if !(jsMadeBits0 & (1 << 4) != 0) { return nil }
456
+ return self.set
457
+ default: break
458
+ }
459
+ case 4:
460
+ switch key {
461
+ case "name": return self.name
462
+ default: break
463
+ }
464
+ case 5:
465
+ switch key {
466
+ case "isSet": return FunctionCell_AnyOpt_to_Bool.script("isSet", 1, self.isSet)
467
+ default: break
468
+ }
469
+ case 8:
470
+ switch key {
471
+ case "register": return FunctionCell_AnyOpt_to_Void.script("register", 1, self.register)
472
+ default: break
473
+ }
474
+ case 9:
475
+ switch key {
476
+ case "setNative": return self.setNative
477
+ default: break
478
+ }
479
+ case 10:
480
+ switch key {
481
+ case "registered":
482
+ if !(jsMadeBits0 & (1 << 0) != 0) { return nil }
483
+ return self.registered
484
+ case "getDefault": return self.getDefault
485
+ case "enumerable": return self.enumerable
486
+ default: break
487
+ }
488
+ case 12:
489
+ switch key {
490
+ case "defaultValue": return self.defaultValue
491
+ case "configurable": return self.configurable
492
+ default: break
493
+ }
494
+ case 15:
495
+ switch key {
496
+ case "defaultValueKey": return self.defaultValueKey
497
+ case "isStyleProperty": return self.isStyleProperty
498
+ default: break
499
+ }
500
+ case 16:
501
+ switch key {
502
+ case "overrideHandlers": return FunctionCell_AnyOpt_to_Void.scriptOrNil("", 1, self.overrideHandlers)
503
+ default: break
504
+ }
505
+ case 17:
506
+ switch key {
507
+ case "nativeValueChange":
508
+ if !(jsMadeBits0 & (1 << 1) != 0) { return nil }
509
+ return FunctionCell_AnyOpt_AnyOpt_to_Void.scriptOrNil("", 2, self.nativeValueChange)
510
+ default: break
511
+ }
512
+ default: break
513
+ }
514
+ return jsExpandoGet(self, key)
515
+ }
516
+ set {
517
+ switch key.utf8.count {
518
+ case 3:
519
+ switch key {
520
+ case "key":
521
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
522
+ self.key = __v
523
+ } else {
524
+ jsRefuseSet(newValue, "key", "JSSymbol")
525
+ }
526
+ return
527
+ case "get":
528
+ self.get = newValue
529
+ return
530
+ case "set":
531
+ self.set = newValue
532
+ return
533
+ default: break
534
+ }
535
+ case 4:
536
+ switch key {
537
+ case "name":
538
+ jsStoring { self.name = (try jsConvertedString(newValue)) }
539
+ return
540
+ default: break
541
+ }
542
+ case 9:
543
+ switch key {
544
+ case "setNative":
545
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
546
+ self.setNative = __v
547
+ } else {
548
+ jsRefuseSet(newValue, "setNative", "JSSymbol")
549
+ }
550
+ return
551
+ default: break
552
+ }
553
+ case 10:
554
+ switch key {
555
+ case "registered":
556
+ jsStoring { self.registered = (try jsConvertedBool(newValue)) }
557
+ return
558
+ case "getDefault":
559
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
560
+ self.getDefault = __v
561
+ } else {
562
+ jsRefuseSet(newValue, "getDefault", "JSSymbol")
563
+ }
564
+ return
565
+ case "enumerable":
566
+ jsStoring { self.enumerable = (try jsConvertedBool(newValue)) }
567
+ return
568
+ default: break
569
+ }
570
+ case 12:
571
+ switch key {
572
+ case "defaultValue":
573
+ self.defaultValue = newValue
574
+ return
575
+ case "configurable":
576
+ jsStoring { self.configurable = (try jsConvertedBool(newValue)) }
577
+ return
578
+ default: break
579
+ }
580
+ case 15:
581
+ switch key {
582
+ case "defaultValueKey":
583
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
584
+ self.defaultValueKey = __v
585
+ } else {
586
+ jsRefuseSet(newValue, "defaultValueKey", "JSSymbol")
587
+ }
588
+ return
589
+ case "isStyleProperty":
590
+ jsStoring { self.isStyleProperty = (try jsConvertedBool(newValue)) }
591
+ return
592
+ default: break
593
+ }
594
+ case 16:
595
+ switch key {
596
+ case "overrideHandlers":
597
+ self.overrideHandlers = FunctionCell_AnyOpt_to_Void.fromScriptOrNil(newValue)
598
+ return
599
+ default: break
600
+ }
601
+ case 17:
602
+ switch key {
603
+ case "nativeValueChange":
604
+ self.nativeValueChange = FunctionCell_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(newValue)
605
+ return
606
+ default: break
607
+ }
608
+ default: break
609
+ }
610
+ jsExpandoSet(self, key, newValue)
611
+ }
612
+ }
613
+ open class var jsName: String { "Property" }
614
+ open class var jsStaticKeys: [String] { [] }
615
+ }
616
+
617
+ open class CoercibleProperty: Property {
618
+ nonisolated deinit {}
619
+ open var coerce: ((Any?) throws -> Void)? {
620
+ didSet { if jsMadeBits0 & (1 << 5) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 5, "coerce") } }
621
+ }
622
+ public override init(_ options: Any?) throws {
623
+ try super.init(options)
624
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:535)
625
+ let propertyName: String = try jsConvertedString(jsGet(options, "name"))
626
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:536)
627
+ let key: JSSymbol = self.key
628
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:537)
629
+ let getDefault: JSSymbol = self.getDefault
630
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:538)
631
+ let setNative: JSSymbol = self.setNative
632
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:539)
633
+ let defaultValueKey: JSSymbol = self.defaultValueKey
634
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:540)
635
+ let defaultValue: Any? = self.defaultValue
636
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:542)
637
+ let coerceKey: JSSymbol = jsSymbol(propertyName + ":coerceKey")
638
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:544)
639
+ let eventName: String = propertyName + "Change"
640
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:545)
641
+ var affectsLayout: Bool? = (try jsGet(options, "affectsLayout") as? Bool)
642
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:546)
643
+ var equalityComparer: ((Any?, Any?) throws -> Bool)? = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
644
+ jsGet(options, "equalityComparer"))
645
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:547)
646
+ var valueChanged: ((Any?, Any?, Any?) throws -> Void)? =
647
+ try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(jsGet(options, "valueChanged"))
648
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:548)
649
+ var valueConverter: ((String) throws -> Any?)? = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(
650
+ jsGet(options, "valueConverter"))
651
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:549)
652
+ var coerceCallback: ((Any?, Any?) throws -> Any?)? = try FunctionCell_AnyOpt_AnyOpt_to_AnyOpt.fromScriptOrNil(
653
+ jsGet(options, "coerceValue"))
654
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:550)
655
+ var overrideConverter: Bool = false
656
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:551)
657
+ let property: CoercibleProperty = self
658
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:553)
659
+ self.overrideHandlers = { (options: Any?) throws -> Void in
660
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:554)
661
+ if try !jsStringEquals(jsTypeof(jsGet(options, "equalityComparer")), "undefined") {
662
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:555)
663
+ equalityComparer = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
664
+ jsGet(options, "equalityComparer"))
665
+ }
666
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:557)
667
+ if try !jsStringEquals(jsTypeof(jsGet(options, "affectsLayout")), "undefined") {
668
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:558)
669
+ affectsLayout = try jsConvertedBool(jsGet(options, "affectsLayout"))
670
+ }
671
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:560)
672
+ if try !jsStringEquals(jsTypeof(jsGet(options, "valueChanged")), "undefined") {
673
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:561)
674
+ valueChanged = try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(
675
+ jsGet(options, "valueChanged"))
676
+ }
677
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:563)
678
+ if try !jsStringEquals(jsTypeof(jsGet(options, "valueConverter")), "undefined") {
679
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:564)
680
+ valueConverter = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter"))
681
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:565)
682
+ overrideConverter = true
683
+ }
684
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:567)
685
+ if try !jsStringEquals(jsTypeof(jsGet(options, "coerceValue")), "undefined") {
686
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:568)
687
+ coerceCallback = try FunctionCell_AnyOpt_AnyOpt_to_AnyOpt.fromScriptOrNil(jsGet(options, "coerceValue"))
688
+ }
689
+ }
690
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:572)
691
+ self.coerce = { (target: Any?) throws -> Void in
692
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:573)
693
+ let originalValue: Any? =
694
+ try ((jsHasKey(target, coerceKey.key) ? jsGet(target, coerceKey.key) : defaultValue))
695
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:575)
696
+ try jsSet(target, propertyName, originalValue)
697
+ }
698
+ if jsMadeBits0 & (1 << 5) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 5, "coerce") }
699
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:578)
700
+ self.set =
701
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
702
+ let boxedValue: Any? = jsArg(__a, 0)
703
+ try { () throws -> Void in
704
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:579)
705
+ let reset: Bool = Core_ui_core_properties_property_shared.isResetValue(boxedValue)
706
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:580)
707
+ var value: Any? = nil
708
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:581)
709
+ var wrapped: Bool? = nil
710
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:582)
711
+ if reset {
712
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:583)
713
+ value = defaultValue
714
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:584)
715
+ _ = try jsDelete(__this, coerceKey.key)
716
+ } else {
717
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:586)
718
+ wrapped = try jsConvertedBoolOrNil(
719
+ ({ () throws -> Any? in
720
+ let __v_2 = boxedValue
721
+ return jsTruthy(__v_2) ? try jsGet(boxedValue, "wrapped") : __v_2
722
+ }()))
723
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:587)
724
+ value = try (jsTruthy(wrapped as Any?) ? WrappedValue.unwrap(boxedValue) : boxedValue)
725
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:589)
726
+ if jsTruthy(valueConverter) && jsStringEquals(jsTypeof(value), "string") {
727
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:590)
728
+ value =
729
+ try
730
+ (overrideConverter
731
+ ? jsUnwrap(valueConverter, "call")(jsLenientString(value))
732
+ : jsCallable(valueConverter, "valueConverter")(jsLenientString(value)))
733
+ }
734
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:593)
735
+ try jsSet(__this, coerceKey.key, value)
736
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:594)
737
+ value = try jsCallable(coerceCallback, "coerceCallback")(__this, value)
738
+ }
739
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:597)
740
+ let oldValue: Any? = try (jsHasKey(__this, key.key) ? jsGet(__this, key.key) : defaultValue)
741
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:598)
742
+ let changed: Bool =
743
+ try
744
+ (jsTruthy(equalityComparer)
745
+ ? !(jsCallable(equalityComparer, "equalityComparer")(oldValue, value))
746
+ : !jsStrictEquals(oldValue, value))
747
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:600)
748
+ if (wrapped ?? false) || changed {
749
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:601)
750
+ if reset {
751
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:602)
752
+ _ = try jsDelete(__this, key.key)
753
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:603)
754
+ if jsTruthy(valueChanged) {
755
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:604)
756
+ try jsCallable(valueChanged, "valueChanged")(__this, oldValue, value)
757
+ }
758
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:607)
759
+ if try jsTruthy(jsGet(__this, setNative.key)) {
760
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:608)
761
+ if try jsTruthy(jsGet(__this, "_suspendNativeUpdatesCount")) {
762
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:609)
763
+ if try jsTruthy(jsGet(__this, "_suspendedUpdates")) {
764
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:610)
765
+ try jsUnwrap(
766
+ jsRecordOf(jsGet(__this, "_suspendedUpdates"), as: JSRecord<Any?>.self) {
767
+ $0
768
+ }, setting: "propertyName")[propertyName] = property
769
+ }
770
+ } else if jsHasKey(__this, defaultValueKey.key) {
771
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:613)
772
+ _ = try jsCallMethod(__this, setNative.key, jsGet(__this, defaultValueKey.key))
773
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:614)
774
+ _ = try jsDelete(__this, defaultValueKey.key)
775
+ } else {
776
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:616)
777
+ _ = try jsCallMethod(__this, setNative.key, defaultValue)
778
+ }
779
+ }
780
+ } else {
781
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:620)
782
+ try jsSet(__this, key.key, value)
783
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:621)
784
+ if jsTruthy(valueChanged) {
785
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:622)
786
+ try jsCallable(valueChanged, "valueChanged")(__this, oldValue, value)
787
+ }
788
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:625)
789
+ if try jsTruthy(jsGet(__this, setNative.key)) {
790
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:626)
791
+ if try jsTruthy(jsGet(__this, "_suspendNativeUpdatesCount")) {
792
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:627)
793
+ if try jsTruthy(jsGet(__this, "_suspendedUpdates")) {
794
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:628)
795
+ try jsUnwrap(
796
+ jsRecordOf(jsGet(__this, "_suspendedUpdates"), as: JSRecord<Any?>.self) {
797
+ $0
798
+ }, setting: "propertyName")[propertyName] = property
799
+ }
800
+ } else {
801
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:631)
802
+ if !jsHasKey(__this, defaultValueKey.key) {
803
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:632)
804
+ try jsSet(
805
+ __this, defaultValueKey.key,
806
+ (jsTruthy(jsGet(__this, getDefault.key))
807
+ ? jsCallMethod(__this, getDefault.key) : defaultValue))
808
+ }
809
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:634)
810
+ _ = try jsCallMethod(__this, setNative.key, value)
811
+ }
812
+ }
813
+ }
814
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:639)
815
+ if try jsLenientBool(jsCallMethod(__this, "hasListeners", eventName)) {
816
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:640)
817
+ try jsCallMethod(
818
+ __this, "notify",
819
+ JSObject([
820
+ ("object", __this), ("eventName", eventName as Any?),
821
+ ("propertyName", propertyName as Any?), ("value", value as Any?),
822
+ ("oldValue", oldValue as Any?), ("origin", "script"),
823
+ ]))
824
+ }
825
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:650)
826
+ if jsTruthy(affectsLayout as Any?) {
827
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:651)
828
+ try jsCallMethod(__this, "requestLayout")
829
+ }
830
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:654)
831
+ if try jsTruthy(jsGet(__this, "domNode")) {
832
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:655)
833
+ if reset {
834
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:656)
835
+ _ = try jsCallMethod(jsGet(__this, "domNode"), "attributeRemoved", propertyName)
836
+ } else {
837
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:658)
838
+ _ = try jsCallMethod(jsGet(__this, "domNode"), "attributeModified", propertyName, value)
839
+ }
840
+ }
841
+ }
842
+ }()
843
+ return nil
844
+ } as JSMethod)
845
+ }
846
+ #sourceLocation()
847
+ open override var jsDeclaredKeys: [String] {
848
+ super.jsDeclaredKeys + (jsMadeBits0 & (1 << 5) != 0 ? ["coerce"] : [])
849
+ }
850
+ open override var jsClassName: String? { "CoercibleProperty" }
851
+ open override subscript(jsKey key: String) -> Any? {
852
+ get {
853
+ switch key.utf8.count {
854
+ case 6:
855
+ switch key {
856
+ case "coerce":
857
+ if !(jsMadeBits0 & (1 << 5) != 0) { return nil }
858
+ return FunctionCell_AnyOpt_to_Void.scriptOrNil("", 1, self.coerce)
859
+ default: break
860
+ }
861
+ default: break
862
+ }
863
+ return super[jsKey: key]
864
+ }
865
+ set {
866
+ switch key.utf8.count {
867
+ case 6:
868
+ switch key {
869
+ case "coerce":
870
+ self.coerce = FunctionCell_AnyOpt_to_Void.fromScriptOrNil(newValue)
871
+ return
872
+ default: break
873
+ }
874
+ default: break
875
+ }
876
+ super[jsKey: key] = newValue
877
+ }
878
+ }
879
+ open override class var jsName: String { "CoercibleProperty" }
880
+ }
881
+
882
+ open class InheritedProperty: Property {
883
+ nonisolated deinit {}
884
+ open var sourceKey: JSSymbol! {
885
+ didSet { if jsMadeBits0 & (1 << 5) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 5, "sourceKey") } }
886
+ }
887
+ open var setInheritedValue: Any? = nil {
888
+ didSet { if jsMadeBits0 & (1 << 6) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 6, "setInheritedValue") } }
889
+ }
890
+ public override init(_ options: Any?) throws {
891
+ try super.init(options)
892
+ var setInheritedValue: Any? = nil
893
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:672)
894
+ let name: String = try jsConvertedString(jsGet(options, "name"))
895
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:673)
896
+ let key: JSSymbol = self.key
897
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:674)
898
+ let defaultValue: Any? = try jsGet(options, "defaultValue")
899
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:676)
900
+ let sourceKey: JSSymbol = jsSymbol(name + ":valueSourceKey")
901
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:677)
902
+ self.sourceKey = sourceKey
903
+ if jsMadeBits0 & (1 << 5) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 5, "sourceKey") }
904
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:679)
905
+ let setBase: Any? = self.set
906
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:680)
907
+ var setFunc: ((Double) throws -> Any?)?
908
+ setFunc = { (valueSource: Double) -> Any? in
909
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:681)
910
+ return
911
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
912
+ let value: Any? = jsArg(__a, 0)
913
+ try { () throws -> Void in
914
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:682)
915
+ let that: Any? = __this
916
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:684)
917
+ var unboxedValue: Any? = nil
918
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:685)
919
+ var newValueSource: Double? = nil
920
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:687)
921
+ if Core_ui_core_properties_property_shared.isResetValue(value) {
922
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:688)
923
+ let parent: ViewBase? = try jsCast(jsGet(that, "parent"), ViewBase.self)
924
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:691)
925
+ if try
926
+ ((!jsStrictEquals(value, "initial") && jsTruthy(parent))
927
+ && !jsStrictEquals(
928
+ jsUnwrap(parent, "sourceKey")[jsKey: sourceKey.key], ValueSource.Default))
929
+ {
930
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:692)
931
+ unboxedValue = try jsUnwrap(parent, "name")[jsKey: name]
932
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:693)
933
+ newValueSource = ValueSource.Inherited
934
+ } else {
935
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:695)
936
+ unboxedValue = defaultValue
937
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:696)
938
+ newValueSource = ValueSource.Default
939
+ }
940
+ } else {
941
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:700)
942
+ unboxedValue = value
943
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:701)
944
+ newValueSource = valueSource
945
+ }
946
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:705)
947
+ let currentValue: Any? = try jsGet(that, key.key)
948
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:706)
949
+ _ = try jsCallMethod(
950
+ setBase, "call", that, unboxedValue,
951
+ (jsLenientNumberEquals(valueSource, ValueSource.Local) ? "script" : "inherited"))
952
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:708)
953
+ let newValue: Any? = try jsGet(that, key.key)
954
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:709)
955
+ try jsSet(that, sourceKey.key, (newValueSource as Any?))
956
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:711)
957
+ if !jsStrictEquals(currentValue, newValue) {
958
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:712)
959
+ let reset: Bool = jsLenientNumberEquals((newValueSource ?? .nan), ValueSource.Default)
960
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:713)
961
+ try jsCallMethod(
962
+ that, "eachChild",
963
+ FunctionCell_ViewBaseOpt_to_Bool.scriptOrNil(
964
+ "", 1,
965
+ { (child: ViewBase?) throws -> Bool in
966
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:714)
967
+ let childValueSource: Any? = try
968
+ ({ () throws -> Any? in
969
+ let __v_3 = try jsUnwrap(child, "sourceKey")[jsKey: sourceKey.key]
970
+ return jsTruthy(__v_3) ? __v_3 : ValueSource.Default
971
+ }())
972
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:715)
973
+ if reset {
974
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:716)
975
+ if jsStrictEquals(childValueSource, ValueSource.Inherited) {
976
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:717)
977
+ _ = try jsUnwrap(setFunc, "call")(
978
+ try jsConvertedNumber(
979
+ Core_ui_core_properties_property_shared.unsetValue))
980
+ }
981
+ } else {
982
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:720)
983
+ if try jsLessOrEqualThrowing(childValueSource, ValueSource.Inherited) {
984
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:721)
985
+ _ = try jsCallMethod(setInheritedValue, "call", child, newValue)
986
+ }
987
+ }
988
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:725)
989
+ return true
990
+ }))
991
+ }
992
+ }()
993
+ return nil
994
+ } as JSMethod)
995
+ }
996
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:730)
997
+ setInheritedValue = try jsCallable(setFunc, "setFunc")(ValueSource.Inherited)
998
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:731)
999
+ self.setInheritedValue = setInheritedValue
1000
+ if jsMadeBits0 & (1 << 6) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 6, "setInheritedValue") }
1001
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:733)
1002
+ self.set = try jsCallable(setFunc, "setFunc")(ValueSource.Local)
1003
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:735)
1004
+ _ = try jsUnwrap(Core_ui_core_properties_index.inheritableProperties, "push").push(self)
1005
+ }
1006
+ #sourceLocation()
1007
+ open override var jsDeclaredKeys: [String] {
1008
+ super.jsDeclaredKeys + (jsMadeBits0 & (1 << 5) != 0 ? ["sourceKey"] : [])
1009
+ + (jsMadeBits0 & (1 << 6) != 0 ? ["setInheritedValue"] : [])
1010
+ }
1011
+ open override var jsClassName: String? { "InheritedProperty" }
1012
+ open override subscript(jsKey key: String) -> Any? {
1013
+ get {
1014
+ switch key.utf8.count {
1015
+ case 9:
1016
+ switch key {
1017
+ case "sourceKey":
1018
+ if !(jsMadeBits0 & (1 << 5) != 0) { return nil }
1019
+ return self.sourceKey
1020
+ default: break
1021
+ }
1022
+ case 17:
1023
+ switch key {
1024
+ case "setInheritedValue":
1025
+ if !(jsMadeBits0 & (1 << 6) != 0) { return nil }
1026
+ return self.setInheritedValue
1027
+ default: break
1028
+ }
1029
+ default: break
1030
+ }
1031
+ return super[jsKey: key]
1032
+ }
1033
+ set {
1034
+ switch key.utf8.count {
1035
+ case 9:
1036
+ switch key {
1037
+ case "sourceKey":
1038
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
1039
+ self.sourceKey = __v
1040
+ } else {
1041
+ jsRefuseSet(newValue, "sourceKey", "JSSymbol")
1042
+ }
1043
+ return
1044
+ default: break
1045
+ }
1046
+ case 17:
1047
+ switch key {
1048
+ case "setInheritedValue":
1049
+ self.setInheritedValue = newValue
1050
+ return
1051
+ default: break
1052
+ }
1053
+ default: break
1054
+ }
1055
+ super[jsKey: key] = newValue
1056
+ }
1057
+ }
1058
+ open override class var jsName: String { "InheritedProperty" }
1059
+ }
1060
+
1061
+ open class CssProperty: JSDynamic, JSExpando, JSConstructibleType, JSKeysMade, JSStaticKeyed {
1062
+ nonisolated deinit {}
1063
+ open var registered: Bool = false {
1064
+ didSet { if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "registered") } }
1065
+ }
1066
+ open var name: String = ""
1067
+ open var cssName: String = ""
1068
+ open var cssLocalName: String = ""
1069
+ open var cssValueDescriptor: Any? = nil {
1070
+ didSet { if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "cssValueDescriptor") } }
1071
+ }
1072
+ open var localValueDescriptor: Any? = nil {
1073
+ didSet { if jsMadeBits0 & (1 << 2) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 2, "localValueDescriptor") } }
1074
+ }
1075
+ private static let jsSite_CssProperty_isStyleProperty = JSReadSite("isStyleProperty")
1076
+ open var __own_isStyleProperty: Bool? = nil
1077
+ open var isStyleProperty: Bool {
1078
+ get {
1079
+ if let v = __own_isStyleProperty { return v }
1080
+ return jsLenientBool(
1081
+ JSPrototypes.value(type(of: self), CssProperty.jsSite_CssProperty_isStyleProperty, self))
1082
+ }
1083
+ set {
1084
+ __own_isStyleProperty = .some(newValue)
1085
+ if jsMadeBits0 & (1 << 3) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 3, "isStyleProperty") }
1086
+ }
1087
+ }
1088
+ open var key: JSSymbol
1089
+ open var getDefault: JSSymbol
1090
+ open var setNative: JSSymbol
1091
+ open var sourceKey: JSSymbol
1092
+ open var defaultValueKey: JSSymbol
1093
+ open var defaultValue: Any? = nil
1094
+ open var overrideHandlers: ((Any?) throws -> Void)?
1095
+ public init(_ options: Any?) throws {
1096
+ var propertyName: String = ""
1097
+ var key: JSSymbol!
1098
+ var sourceKey: JSSymbol!
1099
+ var getDefault: JSSymbol!
1100
+ var setNative: JSSymbol!
1101
+ var defaultValueKey: JSSymbol!
1102
+ var defaultValue: Any? = nil
1103
+ var eventName: String = ""
1104
+ var affectsLayout: Bool = false
1105
+ var equalityComparer: ((Any?, Any?) throws -> Bool)!
1106
+ var valueChanged: ((Any?, Any?, Any?) throws -> Void)!
1107
+ var valueConverter: ((String) throws -> Any?)!
1108
+ var overrideConverter: Bool = false
1109
+ var property: CssProperty!
1110
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:815)
1111
+ func setLocalValue(_ this: Any?, _ newValue: Any?) throws {
1112
+ var newValue = newValue
1113
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:816)
1114
+ let view: ViewBase? = try jsUnwrap(jsGet(this, "viewRef") as? JSWeakRef<ViewBase>, "get").get()
1115
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:817)
1116
+ if !jsTruthy(view as Any?) {
1117
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:818)
1118
+ try NativeScriptKit.Trace.write(
1119
+ "\(jsToStringThrowing(newValue)) not set to view because \".viewRef\" is cleared",
1120
+ NativeScriptKit.Trace.categories.Style, NativeScriptKit.Trace.messageType.warn)
1121
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:820)
1122
+ return
1123
+ }
1124
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:823)
1125
+ try jsPostUpdate(this, "_localValueVersion", +1)
1126
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:825)
1127
+ var reset: Bool =
1128
+ Core_ui_core_properties_property_shared.isResetValue(newValue) || jsStrictEquals(newValue, "")
1129
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:826)
1130
+ var valueSource: Double = ValueSource.Local
1131
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:827)
1132
+ var value: Any? = nil
1133
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:829)
1134
+ if reset {
1135
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:830)
1136
+ let cssValue: Any? = try Core_ui_core_properties_index.cascadedCssValue(view, property.cssLocalName)
1137
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:831)
1138
+ if !jsStrictEquals(cssValue, nil) {
1139
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:832)
1140
+ newValue = cssValue
1141
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:833)
1142
+ valueSource = ValueSource.Css
1143
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:834)
1144
+ reset = false
1145
+ }
1146
+ }
1147
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:838)
1148
+ if reset {
1149
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:839)
1150
+ value = defaultValue
1151
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:840)
1152
+ _ = try jsDelete(this, sourceKey.key)
1153
+ } else {
1154
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:842)
1155
+ try jsSet(this, sourceKey.key, valueSource)
1156
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:843)
1157
+ value =
1158
+ try
1159
+ ((jsTruthy(valueConverter) && jsStringEquals(jsTypeof(newValue), "string"))
1160
+ ? ((overrideConverter
1161
+ ? jsUnwrap(valueConverter, "call")(jsLenientString(newValue))
1162
+ : jsCallable(valueConverter, "valueConverter")(jsLenientString(newValue)))) : newValue)
1163
+ }
1164
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:846)
1165
+ let oldValue: Any? = try ((jsHasKey(this, key.key) ? jsGet(this, key.key) : defaultValue))
1166
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:847)
1167
+ let changed: Bool =
1168
+ try
1169
+ (jsTruthy(equalityComparer)
1170
+ ? !(jsCallable(equalityComparer, "equalityComparer")(oldValue, value))
1171
+ : !jsStrictEquals(oldValue, value))
1172
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:849)
1173
+ if changed {
1174
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:850)
1175
+ if reset {
1176
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:851)
1177
+ _ = try jsDelete(this, key.key)
1178
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:852)
1179
+ if jsTruthy(valueChanged) {
1180
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:853)
1181
+ try jsCallable(valueChanged, "valueChanged")(this, oldValue, value)
1182
+ }
1183
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:856)
1184
+ if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
1185
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:857)
1186
+ if try jsTruthy(jsUnwrap(view, "_suspendNativeUpdatesCount")._suspendNativeUpdatesCount) {
1187
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:858)
1188
+ if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
1189
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:859)
1190
+ try jsUnwrap(
1191
+ jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates, setting: "propertyName")[
1192
+ propertyName] = property
1193
+ }
1194
+ } else if jsHasKey(this, defaultValueKey.key) {
1195
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:862)
1196
+ _ = try jsCallMethod((view as Any?), setNative.key, jsGet(this, defaultValueKey.key))
1197
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:863)
1198
+ _ = try jsDelete(this, defaultValueKey.key)
1199
+ } else {
1200
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:865)
1201
+ _ = try jsCallMethod((view as Any?), setNative.key, defaultValue)
1202
+ }
1203
+ }
1204
+ } else {
1205
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:869)
1206
+ try jsSet(this, key.key, value)
1207
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:870)
1208
+ if jsTruthy(valueChanged) {
1209
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:871)
1210
+ try jsCallable(valueChanged, "valueChanged")(this, oldValue, value)
1211
+ }
1212
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:874)
1213
+ if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
1214
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:875)
1215
+ if try jsTruthy(jsUnwrap(view, "_suspendNativeUpdatesCount")._suspendNativeUpdatesCount) {
1216
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:876)
1217
+ if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
1218
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:877)
1219
+ try jsUnwrap(
1220
+ jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates, setting: "propertyName")[
1221
+ propertyName] = property
1222
+ }
1223
+ } else {
1224
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:880)
1225
+ if !jsHasKey(this, defaultValueKey.key) {
1226
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:881)
1227
+ try jsSet(
1228
+ this, defaultValueKey.key,
1229
+ (jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
1230
+ ? jsCallMethod((view as Any?), getDefault.key) : defaultValue))
1231
+ }
1232
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:883)
1233
+ _ = try jsCallMethod((view as Any?), setNative.key, value)
1234
+ }
1235
+ }
1236
+ }
1237
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:888)
1238
+ if try jsLenientBool(jsCallMethod(this, "hasListeners", eventName)) {
1239
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:889)
1240
+ try jsCallMethod(
1241
+ this, "notify",
1242
+ JSObject([
1243
+ ("object", this), ("eventName", eventName as Any?), ("propertyName", propertyName as Any?),
1244
+ ("value", value as Any?), ("oldValue", oldValue as Any?), ("origin", "script"),
1245
+ ]))
1246
+ }
1247
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:899)
1248
+ if affectsLayout {
1249
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:900)
1250
+ try jsUnwrap(view, "requestLayout").requestLayout()
1251
+ }
1252
+ }
1253
+ }
1254
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:905)
1255
+ func setCssValue(_ this: Any?, _ newValue: Any?) throws {
1256
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:906)
1257
+ let view: ViewBase? = try jsUnwrap(jsGet(this, "viewRef") as? JSWeakRef<ViewBase>, "get").get()
1258
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:907)
1259
+ if !jsTruthy(view as Any?) {
1260
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:908)
1261
+ try NativeScriptKit.Trace.write(
1262
+ "\(jsToStringThrowing(newValue)) not set to view because \".viewRef\" is cleared",
1263
+ NativeScriptKit.Trace.categories.Style, NativeScriptKit.Trace.messageType.warn)
1264
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:910)
1265
+ return
1266
+ }
1267
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:913)
1268
+ let currentValueSource: Double = try jsConvertedNumber(
1269
+ ({ () throws -> Any? in
1270
+ let __v_4 = try jsGet(this, sourceKey.key)
1271
+ return jsTruthy(__v_4) ? __v_4 : ValueSource.Default
1272
+ }()))
1273
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:916)
1274
+ if jsLenientNumberEquals(currentValueSource, ValueSource.Local) {
1275
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:917)
1276
+ return
1277
+ }
1278
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:920)
1279
+ let reset: Bool =
1280
+ Core_ui_core_properties_property_shared.isResetValue(newValue) || jsStrictEquals(newValue, "")
1281
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:921)
1282
+ var value: Any? = nil
1283
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:923)
1284
+ if reset {
1285
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:924)
1286
+ value = defaultValue
1287
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:925)
1288
+ _ = try jsDelete(this, sourceKey.key)
1289
+ } else {
1290
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:927)
1291
+ value =
1292
+ try
1293
+ ((jsTruthy(valueConverter) && jsStringEquals(jsTypeof(newValue), "string"))
1294
+ ? ((overrideConverter
1295
+ ? jsUnwrap(valueConverter, "call")(jsLenientString(newValue))
1296
+ : jsCallable(valueConverter, "valueConverter")(jsLenientString(newValue)))) : newValue)
1297
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:928)
1298
+ try jsSet(this, sourceKey.key, ValueSource.Css)
1299
+ }
1300
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:931)
1301
+ let oldValue: Any? = try ((jsHasKey(this, key.key) ? jsGet(this, key.key) : defaultValue))
1302
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:932)
1303
+ let changed: Bool =
1304
+ try
1305
+ (jsTruthy(equalityComparer)
1306
+ ? !(jsCallable(equalityComparer, "equalityComparer")(oldValue, value))
1307
+ : !jsStrictEquals(oldValue, value))
1308
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:934)
1309
+ if changed {
1310
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:935)
1311
+ if reset {
1312
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:936)
1313
+ _ = try jsDelete(this, key.key)
1314
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:937)
1315
+ if jsTruthy(valueChanged) {
1316
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:938)
1317
+ try jsCallable(valueChanged, "valueChanged")(this, oldValue, value)
1318
+ }
1319
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:941)
1320
+ if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
1321
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:942)
1322
+ if try jsTruthy(jsUnwrap(view, "_suspendNativeUpdatesCount")._suspendNativeUpdatesCount) {
1323
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:943)
1324
+ if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
1325
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:944)
1326
+ try jsUnwrap(
1327
+ jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates, setting: "propertyName")[
1328
+ propertyName] = property
1329
+ }
1330
+ } else if jsHasKey(this, defaultValueKey.key) {
1331
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:947)
1332
+ _ = try jsCallMethod((view as Any?), setNative.key, jsGet(this, defaultValueKey.key))
1333
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:948)
1334
+ _ = try jsDelete(this, defaultValueKey.key)
1335
+ } else {
1336
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:950)
1337
+ _ = try jsCallMethod((view as Any?), setNative.key, defaultValue)
1338
+ }
1339
+ }
1340
+ } else {
1341
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:954)
1342
+ try jsSet(this, key.key, value)
1343
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:955)
1344
+ if jsTruthy(valueChanged) {
1345
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:956)
1346
+ try jsCallable(valueChanged, "valueChanged")(this, oldValue, value)
1347
+ }
1348
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:959)
1349
+ if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
1350
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:960)
1351
+ if try jsTruthy(jsUnwrap(view, "_suspendNativeUpdatesCount")._suspendNativeUpdatesCount) {
1352
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:961)
1353
+ if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
1354
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:962)
1355
+ try jsUnwrap(
1356
+ jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates, setting: "propertyName")[
1357
+ propertyName] = property
1358
+ }
1359
+ } else {
1360
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:965)
1361
+ if !jsHasKey(this, defaultValueKey.key) {
1362
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:966)
1363
+ try jsSet(
1364
+ this, defaultValueKey.key,
1365
+ (jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
1366
+ ? jsCallMethod((view as Any?), getDefault.key) : defaultValue))
1367
+ }
1368
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:968)
1369
+ _ = try jsCallMethod((view as Any?), setNative.key, value)
1370
+ }
1371
+ }
1372
+ }
1373
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:973)
1374
+ if try jsLenientBool(jsCallMethod(this, "hasListeners", eventName)) {
1375
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:974)
1376
+ try jsCallMethod(
1377
+ this, "notify",
1378
+ JSObject([
1379
+ ("object", this), ("eventName", eventName as Any?), ("propertyName", propertyName as Any?),
1380
+ ("value", value as Any?), ("oldValue", oldValue as Any?), ("origin", "css"),
1381
+ ]))
1382
+ }
1383
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:984)
1384
+ if affectsLayout {
1385
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:985)
1386
+ try jsUnwrap(view, "requestLayout").requestLayout()
1387
+ }
1388
+ }
1389
+ }
1390
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:990)
1391
+ func get(_ this: Any?) throws -> Any? {
1392
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:991)
1393
+ return try (jsHasKey(this, key.key) ? jsGet(this, key.key) : defaultValue)
1394
+ }
1395
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:761)
1396
+ propertyName = try jsConvertedString(jsGet(options, "name"))
1397
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:762)
1398
+ self.name = propertyName
1399
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:765)
1400
+ if try jsTruthy(jsGet(options, "cssName")) {
1401
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:766)
1402
+ _ = try Core_ui_core_properties_index.cssPropertyNames.push(jsConvertedString(jsGet(options, "cssName")))
1403
+ }
1404
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:769)
1405
+ self.cssName = try "css:\(jsConvertedString(jsGet(options, "cssName")))"
1406
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:770)
1407
+ self.cssLocalName = try jsConvertedString(jsGet(options, "cssName"))
1408
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:772)
1409
+ key = jsSymbol(propertyName + ":propertyKey")
1410
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:773)
1411
+ self.key = key
1412
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:775)
1413
+ sourceKey = jsSymbol(propertyName + ":valueSourceKey")
1414
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:776)
1415
+ self.sourceKey = sourceKey
1416
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:778)
1417
+ getDefault = jsSymbol(propertyName + ":getDefault")
1418
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:779)
1419
+ self.getDefault = getDefault
1420
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:781)
1421
+ setNative = jsSymbol(propertyName + ":setNative")
1422
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:782)
1423
+ self.setNative = setNative
1424
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:784)
1425
+ defaultValueKey = jsSymbol(propertyName + ":nativeDefaultValue")
1426
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:785)
1427
+ self.defaultValueKey = defaultValueKey
1428
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:787)
1429
+ defaultValue = try jsGet(options, "defaultValue")
1430
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:788)
1431
+ self.defaultValue = defaultValue
1432
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:790)
1433
+ eventName = propertyName + "Change"
1434
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:791)
1435
+ affectsLayout = try jsConvertedBool(jsGet(options, "affectsLayout"))
1436
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:792)
1437
+ equalityComparer = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(jsGet(options, "equalityComparer"))
1438
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:793)
1439
+ valueChanged = try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(jsGet(options, "valueChanged"))
1440
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:794)
1441
+ valueConverter = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter"))
1442
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:795)
1443
+ overrideConverter = false
1444
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:797)
1445
+ self.overrideHandlers = { (options: Any?) throws -> Void in
1446
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:798)
1447
+ if try !jsStringEquals(jsTypeof(jsGet(options, "equalityComparer")), "undefined") {
1448
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:799)
1449
+ equalityComparer = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
1450
+ jsGet(options, "equalityComparer"))
1451
+ }
1452
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:801)
1453
+ if try !jsStringEquals(jsTypeof(jsGet(options, "affectsLayout")), "undefined") {
1454
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:802)
1455
+ affectsLayout = try jsConvertedBool(jsGet(options, "affectsLayout"))
1456
+ }
1457
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:804)
1458
+ if try !jsStringEquals(jsTypeof(jsGet(options, "valueChanged")), "undefined") {
1459
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:805)
1460
+ valueChanged = try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(
1461
+ jsGet(options, "valueChanged"))
1462
+ }
1463
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:807)
1464
+ if try !jsStringEquals(jsTypeof(jsGet(options, "valueConverter")), "undefined") {
1465
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:808)
1466
+ valueConverter = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter"))
1467
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:809)
1468
+ overrideConverter = true
1469
+ }
1470
+ }
1471
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:813)
1472
+ property = self
1473
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:994)
1474
+ self.cssValueDescriptor = JSObject([
1475
+ ("enumerable", true), ("configurable", true),
1476
+ ("get", ({ (__this: Any?, __a: [Any?]) throws -> Any? in return try get(__this) } as JSMethod)),
1477
+ (
1478
+ "set",
1479
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
1480
+ try setCssValue(__this, jsArg(__a, 0))
1481
+ return nil
1482
+ } as JSMethod)
1483
+ ),
1484
+ ])
1485
+ if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "cssValueDescriptor") }
1486
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1001)
1487
+ self.localValueDescriptor = JSObject([
1488
+ ("enumerable", true), ("configurable", true),
1489
+ ("get", ({ (__this: Any?, __a: [Any?]) throws -> Any? in return try get(__this) } as JSMethod)),
1490
+ (
1491
+ "set",
1492
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
1493
+ try setLocalValue(__this, jsArg(__a, 0))
1494
+ return nil
1495
+ } as JSMethod)
1496
+ ),
1497
+ ])
1498
+ if jsMadeBits0 & (1 << 2) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 2, "localValueDescriptor") }
1499
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1008)
1500
+ Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: key.key] = self
1501
+ }
1502
+ #sourceLocation()
1503
+ open func jsSymbolMethod(_ key: String) -> JSMethod? {
1504
+ return nil
1505
+ }
1506
+ open class var jsSymbolPlain: Bool { true }
1507
+ open class var jsSymbolFieldsPlain: Bool { true }
1508
+ open var jsExpando: JSObject?
1509
+ open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
1510
+ open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
1511
+ open func register(_ cls: Any?) throws {
1512
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1012)
1513
+ if self.registered {
1514
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1013)
1515
+ throw JSException(value: JSError("Property \(self.name) already registered."))
1516
+ }
1517
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1015)
1518
+ self.registered = true
1519
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1016)
1520
+ _ = try jsDefineProperty(jsGet(cls, "prototype"), self.name, self.localValueDescriptor)
1521
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1017)
1522
+ _ = try jsDefineProperty(jsGet(cls, "prototype"), self.cssName, self.cssValueDescriptor)
1523
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1018)
1524
+ if !jsStringEquals(self.cssLocalName, self.cssName) {
1525
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1019)
1526
+ _ = try jsDefineProperty(jsGet(cls, "prototype"), self.cssLocalName, self.localValueDescriptor)
1527
+ }
1528
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1022)
1529
+ try jsUnwrap(Core_ui_core_properties_index.cssValueSourceKeys, setting: "this.cssLocalName")[
1530
+ self.cssLocalName] = self.sourceKey
1531
+ }
1532
+ #sourceLocation()
1533
+ open func isSet(_ instance: Any?) -> Bool {
1534
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1026)
1535
+ return jsHasKey(instance, self.key.key)
1536
+ }
1537
+ #sourceLocation()
1538
+ open class func jsConstruct(_ __a: [Any?]) throws -> Any? { try CssProperty(jsArg(__a, 0)) }
1539
+ public final var jsMadeBits0: UInt64 = 0
1540
+ public final var jsMade: [String]?
1541
+ open var jsDeclaredKeys: [String] {
1542
+ ["name"] + ["cssName"] + ["cssLocalName"] + ["key"] + ["sourceKey"] + ["getDefault"] + ["setNative"] + [
1543
+ "defaultValueKey"
1544
+ ] + (self.defaultValue == nil ? [] : ["defaultValue"]) + ["overrideHandlers"]
1545
+ + (jsMadeBits0 & (1 << 0) != 0 ? ["registered"] : [])
1546
+ + (jsMadeBits0 & (1 << 1) != 0 ? ["cssValueDescriptor"] : [])
1547
+ + (jsMadeBits0 & (1 << 2) != 0 ? ["localValueDescriptor"] : [])
1548
+ + (jsMadeBits0 & (1 << 3) != 0 ? ["isStyleProperty"] : [])
1549
+ }
1550
+ open var jsKeys: [String] { jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?? [])) }
1551
+ open var jsClassName: String? { "CssProperty" }
1552
+ open subscript(jsKey key: String) -> Any? {
1553
+ get {
1554
+ switch key.utf8.count {
1555
+ case 3:
1556
+ switch key {
1557
+ case "key": return self.key
1558
+ default: break
1559
+ }
1560
+ case 4:
1561
+ switch key {
1562
+ case "name": return self.name
1563
+ default: break
1564
+ }
1565
+ case 5:
1566
+ switch key {
1567
+ case "isSet": return FunctionCell_AnyOpt_to_Bool.script("isSet", 1, self.isSet)
1568
+ default: break
1569
+ }
1570
+ case 7:
1571
+ switch key {
1572
+ case "cssName": return self.cssName
1573
+ default: break
1574
+ }
1575
+ case 8:
1576
+ switch key {
1577
+ case "register": return FunctionCell_AnyOpt_to_Void.script("register", 1, self.register)
1578
+ default: break
1579
+ }
1580
+ case 9:
1581
+ switch key {
1582
+ case "setNative": return self.setNative
1583
+ case "sourceKey": return self.sourceKey
1584
+ default: break
1585
+ }
1586
+ case 10:
1587
+ switch key {
1588
+ case "registered":
1589
+ if !(jsMadeBits0 & (1 << 0) != 0) { return nil }
1590
+ return self.registered
1591
+ case "getDefault": return self.getDefault
1592
+ default: break
1593
+ }
1594
+ case 12:
1595
+ switch key {
1596
+ case "cssLocalName": return self.cssLocalName
1597
+ case "defaultValue": return self.defaultValue
1598
+ default: break
1599
+ }
1600
+ case 15:
1601
+ switch key {
1602
+ case "isStyleProperty": return self.isStyleProperty
1603
+ case "defaultValueKey": return self.defaultValueKey
1604
+ default: break
1605
+ }
1606
+ case 16:
1607
+ switch key {
1608
+ case "overrideHandlers": return FunctionCell_AnyOpt_to_Void.scriptOrNil("", 1, self.overrideHandlers)
1609
+ default: break
1610
+ }
1611
+ case 18:
1612
+ switch key {
1613
+ case "cssValueDescriptor":
1614
+ if !(jsMadeBits0 & (1 << 1) != 0) { return nil }
1615
+ return self.cssValueDescriptor
1616
+ default: break
1617
+ }
1618
+ case 20:
1619
+ switch key {
1620
+ case "localValueDescriptor":
1621
+ if !(jsMadeBits0 & (1 << 2) != 0) { return nil }
1622
+ return self.localValueDescriptor
1623
+ default: break
1624
+ }
1625
+ default: break
1626
+ }
1627
+ return jsExpandoGet(self, key)
1628
+ }
1629
+ set {
1630
+ switch key.utf8.count {
1631
+ case 3:
1632
+ switch key {
1633
+ case "key":
1634
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
1635
+ self.key = __v
1636
+ } else {
1637
+ jsRefuseSet(newValue, "key", "JSSymbol")
1638
+ }
1639
+ return
1640
+ default: break
1641
+ }
1642
+ case 4:
1643
+ switch key {
1644
+ case "name":
1645
+ jsStoring { self.name = (try jsConvertedString(newValue)) }
1646
+ return
1647
+ default: break
1648
+ }
1649
+ case 7:
1650
+ switch key {
1651
+ case "cssName":
1652
+ jsStoring { self.cssName = (try jsConvertedString(newValue)) }
1653
+ return
1654
+ default: break
1655
+ }
1656
+ case 9:
1657
+ switch key {
1658
+ case "setNative":
1659
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
1660
+ self.setNative = __v
1661
+ } else {
1662
+ jsRefuseSet(newValue, "setNative", "JSSymbol")
1663
+ }
1664
+ return
1665
+ case "sourceKey":
1666
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
1667
+ self.sourceKey = __v
1668
+ } else {
1669
+ jsRefuseSet(newValue, "sourceKey", "JSSymbol")
1670
+ }
1671
+ return
1672
+ default: break
1673
+ }
1674
+ case 10:
1675
+ switch key {
1676
+ case "registered":
1677
+ jsStoring { self.registered = (try jsConvertedBool(newValue)) }
1678
+ return
1679
+ case "getDefault":
1680
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
1681
+ self.getDefault = __v
1682
+ } else {
1683
+ jsRefuseSet(newValue, "getDefault", "JSSymbol")
1684
+ }
1685
+ return
1686
+ default: break
1687
+ }
1688
+ case 12:
1689
+ switch key {
1690
+ case "cssLocalName":
1691
+ jsStoring { self.cssLocalName = (try jsConvertedString(newValue)) }
1692
+ return
1693
+ case "defaultValue":
1694
+ self.defaultValue = newValue
1695
+ return
1696
+ default: break
1697
+ }
1698
+ case 15:
1699
+ switch key {
1700
+ case "isStyleProperty":
1701
+ jsStoring { self.isStyleProperty = (try jsConvertedBool(newValue)) }
1702
+ return
1703
+ case "defaultValueKey":
1704
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
1705
+ self.defaultValueKey = __v
1706
+ } else {
1707
+ jsRefuseSet(newValue, "defaultValueKey", "JSSymbol")
1708
+ }
1709
+ return
1710
+ default: break
1711
+ }
1712
+ case 16:
1713
+ switch key {
1714
+ case "overrideHandlers":
1715
+ self.overrideHandlers = FunctionCell_AnyOpt_to_Void.fromScriptOrNil(newValue)
1716
+ return
1717
+ default: break
1718
+ }
1719
+ case 18:
1720
+ switch key {
1721
+ case "cssValueDescriptor":
1722
+ self.cssValueDescriptor = newValue
1723
+ return
1724
+ default: break
1725
+ }
1726
+ case 20:
1727
+ switch key {
1728
+ case "localValueDescriptor":
1729
+ self.localValueDescriptor = newValue
1730
+ return
1731
+ default: break
1732
+ }
1733
+ default: break
1734
+ }
1735
+ jsExpandoSet(self, key, newValue)
1736
+ }
1737
+ }
1738
+ open class var jsName: String { "CssProperty" }
1739
+ open class var jsStaticKeys: [String] { [] }
1740
+ }
1741
+
1742
+ open class CssAnimationProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
1743
+ nonisolated deinit {}
1744
+ open var name: String = ""
1745
+ open var cssName: String = "" {
1746
+ didSet { if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "cssName") } }
1747
+ }
1748
+ open var cssLocalName: String = "" {
1749
+ didSet { if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "cssLocalName") } }
1750
+ }
1751
+ open var getDefault: JSSymbol! {
1752
+ didSet { if jsMadeBits0 & (1 << 2) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 2, "getDefault") } }
1753
+ }
1754
+ open var setNative: JSSymbol! {
1755
+ didSet { if jsMadeBits0 & (1 << 3) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 3, "setNative") } }
1756
+ }
1757
+ open var register: ((Any?) throws -> Void)? {
1758
+ didSet { if jsMadeBits0 & (1 << 4) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 4, "register") } }
1759
+ }
1760
+ open var keyframe: String = "" {
1761
+ didSet { if jsMadeBits0 & (1 << 5) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 5, "keyframe") } }
1762
+ }
1763
+ open var defaultValueKey: JSSymbol! {
1764
+ didSet { if jsMadeBits0 & (1 << 6) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 6, "defaultValueKey") } }
1765
+ }
1766
+ open var key: JSSymbol! {
1767
+ didSet { if jsMadeBits0 & (1 << 7) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 7, "key") } }
1768
+ }
1769
+ open var source: JSSymbol! {
1770
+ didSet { if jsMadeBits0 & (1 << 8) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 8, "source") } }
1771
+ }
1772
+ open var defaultValue: Any? = nil {
1773
+ didSet { if jsMadeBits0 & (1 << 9) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 9, "defaultValue") } }
1774
+ }
1775
+ private static let jsSite_CssAnimationProperty_isStyleProperty = JSReadSite("isStyleProperty")
1776
+ open var __own_isStyleProperty: Bool? = nil
1777
+ open var isStyleProperty: Bool {
1778
+ get {
1779
+ if let v = __own_isStyleProperty { return v }
1780
+ return jsLenientBool(
1781
+ JSPrototypes.value(
1782
+ type(of: self), CssAnimationProperty.jsSite_CssAnimationProperty_isStyleProperty, self))
1783
+ }
1784
+ set {
1785
+ __own_isStyleProperty = .some(newValue)
1786
+ if jsMadeBits0 & (1 << 10) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 10, "isStyleProperty") }
1787
+ }
1788
+ }
1789
+ public static var properties: JSRecord<CssAnimationProperty>? = JSRecord<CssAnimationProperty>()
1790
+ open var _valueConverter: ((String) throws -> Any?)? {
1791
+ didSet { if jsMadeBits0 & (1 << 11) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 11, "_valueConverter") } }
1792
+ }
1793
+ public init(_ options: Any?) throws {
1794
+ var propertyName: String = ""
1795
+ var defaultValueKey: JSSymbol!
1796
+ var cssValue: JSSymbol!
1797
+ var styleValue: JSSymbol!
1798
+ var computedValue: JSSymbol!
1799
+ var computedSource: JSSymbol!
1800
+ var getDefault: JSSymbol!
1801
+ var setNative: JSSymbol!
1802
+ var eventName: String = ""
1803
+ var property: CssAnimationProperty!
1804
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1100)
1805
+ func descriptor(
1806
+ _ symbol: JSSymbol?, _ propertySource: Double, _ enumerable: Bool, _ configurable: Bool,
1807
+ _ getsComputed: Bool
1808
+ ) -> Any? {
1809
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1101)
1810
+ let origin: String =
1811
+ (jsLenientNumberEquals(propertySource, ValueSource.Keyframe)
1812
+ ? "animation" : (jsLenientNumberEquals(propertySource, ValueSource.Css) ? "css" : "script"))
1813
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1103)
1814
+ return { () -> JSObject in
1815
+ let __o_1 = JSObject()
1816
+ __o_1["enumerable"] = enumerable
1817
+ __o_1["configurable"] = configurable
1818
+ __o_1["get"] =
1819
+ (getsComputed
1820
+ ? ({ (__this: Any?, __a: [Any?]) throws -> Any? in
1821
+ return try { () throws -> Any? in
1822
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1108)
1823
+ return try jsGet(__this, computedValue.key)
1824
+ }()
1825
+ } as JSMethod)
1826
+ : ({ (__this: Any?, __a: [Any?]) throws -> Any? in
1827
+ return try { () throws -> Any? in
1828
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1111)
1829
+ return try jsGet(__this, (jsImplicit(symbol)?.key ?? "undefined"))
1830
+ }()
1831
+ } as JSMethod))
1832
+ __o_1["set"] =
1833
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
1834
+ let boxedValue: Any? = jsArg(__a, 0)
1835
+ try { () throws -> Void in
1836
+ var boxedValue = boxedValue
1837
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1114)
1838
+ let view: ViewBase? = try jsUnwrap(jsGet(__this, "viewRef") as? JSWeakRef<ViewBase>, "get")
1839
+ .get()
1840
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1115)
1841
+ if !jsTruthy(view as Any?) {
1842
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1116)
1843
+ try NativeScriptKit.Trace.write(
1844
+ "\(jsToStringThrowing(boxedValue)) not set to view because \".viewRef\" is cleared",
1845
+ NativeScriptKit.Trace.categories.Animation, NativeScriptKit.Trace.messageType.warn)
1846
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1118)
1847
+ return
1848
+ }
1849
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1121)
1850
+ let oldValue: Any? = try jsGet(__this, computedValue.key)
1851
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1122)
1852
+ let oldSource: Any? = try jsGet(__this, computedSource.key)
1853
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1123)
1854
+ let wasSet: Bool = !jsStrictEquals(oldSource, ValueSource.Default)
1855
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1124)
1856
+ let reset: Bool =
1857
+ Core_ui_core_properties_property_shared.isResetValue(boxedValue)
1858
+ || jsStrictEquals(boxedValue, "")
1859
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1126)
1860
+ if reset {
1861
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1127)
1862
+ try jsSet(__this, (jsImplicit(symbol)?.key ?? "undefined"), boxedValue)
1863
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1128)
1864
+ if try jsStrictEquals(jsGet(__this, computedSource.key), propertySource) {
1865
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1130)
1866
+ if try !Core_ui_core_properties_property_shared.isResetValue(
1867
+ jsGet(__this, styleValue.key))
1868
+ {
1869
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1131)
1870
+ try jsSet(__this, computedSource.key, ValueSource.Local)
1871
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1132)
1872
+ try jsSet(__this, computedValue.key, jsGet(__this, styleValue.key))
1873
+ } else if try !Core_ui_core_properties_property_shared.isResetValue(
1874
+ jsGet(__this, cssValue.key))
1875
+ {
1876
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1134)
1877
+ try jsSet(__this, computedSource.key, ValueSource.Css)
1878
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1135)
1879
+ try jsSet(__this, computedValue.key, jsGet(__this, cssValue.key))
1880
+ } else {
1881
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1137)
1882
+ _ = try jsDelete(__this, computedSource.key)
1883
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1138)
1884
+ _ = try jsDelete(__this, computedValue.key)
1885
+ }
1886
+ }
1887
+ } else {
1888
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1142)
1889
+ if try
1890
+ (jsTruthy(jsGet(options, "valueConverter"))
1891
+ && jsStringEquals(jsTypeof(boxedValue), "string"))
1892
+ {
1893
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1143)
1894
+ boxedValue = try jsUnwrap(
1895
+ FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter")),
1896
+ "call")(jsLenientString(boxedValue))
1897
+ }
1898
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1145)
1899
+ try jsSet(__this, (jsImplicit(symbol)?.key ?? "undefined"), boxedValue)
1900
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1146)
1901
+ if try jsLessOrEqualThrowing(jsGet(__this, computedSource.key), propertySource) {
1902
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1147)
1903
+ try jsSet(__this, computedSource.key, propertySource)
1904
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1148)
1905
+ try jsSet(__this, computedValue.key, boxedValue)
1906
+ }
1907
+ }
1908
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1152)
1909
+ let value: Any? = try jsGet(__this, computedValue.key)
1910
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1153)
1911
+ let source: Any? = try jsGet(__this, computedSource.key)
1912
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1154)
1913
+ let isSet: Bool = !jsStrictEquals(source, ValueSource.Default)
1914
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1156)
1915
+ let computedValueChanged: Bool =
1916
+ try !jsStrictEquals(oldValue, value)
1917
+ && (!(jsTruthy(jsGet(options, "equalityComparer")))
1918
+ || !(jsLenientBool(jsCallMethod(options, "equalityComparer", oldValue, value))))
1919
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1158)
1920
+ if try (computedValueChanged && jsTruthy(jsGet(options, "valueChanged"))) {
1921
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1159)
1922
+ try jsCallMethod(options, "valueChanged", __this, oldValue, value)
1923
+ }
1924
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1162)
1925
+ if try
1926
+ (jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key])
1927
+ && (computedValueChanged || isSet != wasSet))
1928
+ {
1929
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1163)
1930
+ if try jsTruthy(jsUnwrap(view, "_suspendNativeUpdatesCount")._suspendNativeUpdatesCount)
1931
+ {
1932
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1164)
1933
+ if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
1934
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1165)
1935
+ try jsUnwrap(
1936
+ jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates,
1937
+ setting: "propertyName")[propertyName] = property
1938
+ }
1939
+ } else {
1940
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1168)
1941
+ if isSet {
1942
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1169)
1943
+ if !wasSet && !jsHasKey(__this, defaultValueKey.key) {
1944
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1170)
1945
+ try jsSet(
1946
+ __this, defaultValueKey.key,
1947
+ (jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
1948
+ ? jsCallMethod((view as Any?), getDefault.key)
1949
+ : jsGet(options, "defaultValue")))
1950
+ }
1951
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1172)
1952
+ _ = try jsCallMethod((view as Any?), setNative.key, value)
1953
+ } else if wasSet {
1954
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1174)
1955
+ if jsHasKey(__this, defaultValueKey.key) {
1956
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1175)
1957
+ _ = try jsCallMethod(
1958
+ (view as Any?), setNative.key, jsGet(__this, defaultValueKey.key))
1959
+ } else {
1960
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1177)
1961
+ _ = try jsCallMethod(
1962
+ (view as Any?), setNative.key, jsGet(options, "defaultValue"))
1963
+ }
1964
+ }
1965
+ }
1966
+ }
1967
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1183)
1968
+ if try computedValueChanged
1969
+ && jsLenientBool(jsCallMethod(__this, "hasListeners", eventName))
1970
+ {
1971
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1184)
1972
+ try jsCallMethod(
1973
+ __this, "notify",
1974
+ JSObject([
1975
+ ("object", __this), ("eventName", eventName as Any?),
1976
+ ("propertyName", propertyName as Any?), ("value", value as Any?),
1977
+ ("oldValue", oldValue as Any?), ("origin", origin as Any?),
1978
+ ]))
1979
+ }
1980
+ }()
1981
+ return nil
1982
+ } as JSMethod)
1983
+ return __o_1
1984
+ }()
1985
+ }
1986
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1057)
1987
+ propertyName = try jsConvertedString(jsGet(options, "name"))
1988
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1058)
1989
+ self.name = propertyName
1990
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1060)
1991
+ if try jsTruthy(jsGet(options, "cssName")) {
1992
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1061)
1993
+ _ = try Core_ui_core_properties_index.cssPropertyNames.push(jsConvertedString(jsGet(options, "cssName")))
1994
+ }
1995
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1064)
1996
+ try jsUnwrap(CssAnimationProperty.properties, setting: "propertyName")[propertyName] = self
1997
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1065)
1998
+ if try (jsTruthy(jsGet(options, "cssName")) && !jsStrictEquals(jsGet(options, "cssName"), propertyName)) {
1999
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1066)
2000
+ try jsUnwrap(CssAnimationProperty.properties, setting: "options.cssName")[
2001
+ jsConvertedString(jsGet(options, "cssName"))] = self
2002
+ }
2003
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1069)
2004
+ self._valueConverter = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter"))
2005
+ if jsMadeBits0 & (1 << 11) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 11, "_valueConverter") }
2006
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1071)
2007
+ let cssLocalName: String = try
2008
+ ({ () throws -> String in
2009
+ let __v_5 = try jsConvertedString(jsGet(options, "cssName"))
2010
+ return jsTruthy(__v_5) ? jsPresent(__v_5) : propertyName
2011
+ }())
2012
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1072)
2013
+ self.cssLocalName = cssLocalName
2014
+ if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "cssLocalName") }
2015
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1073)
2016
+ let cssName: String = "css:" + cssLocalName
2017
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1074)
2018
+ self.cssName = cssName
2019
+ if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "cssName") }
2020
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1076)
2021
+ let keyframeName: String = "keyframe:" + propertyName
2022
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1077)
2023
+ self.keyframe = keyframeName
2024
+ if jsMadeBits0 & (1 << 5) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 5, "keyframe") }
2025
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1078)
2026
+ let defaultName: String = "default:" + propertyName
2027
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1080)
2028
+ defaultValueKey = jsSymbol(defaultName)
2029
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1081)
2030
+ self.defaultValueKey = defaultValueKey
2031
+ if jsMadeBits0 & (1 << 6) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 6, "defaultValueKey") }
2032
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1083)
2033
+ self.defaultValue = try jsGet(options, "defaultValue")
2034
+ if jsMadeBits0 & (1 << 9) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 9, "defaultValue") }
2035
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1085)
2036
+ cssValue = jsSymbol(cssName)
2037
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1086)
2038
+ styleValue = jsSymbol("local:\(propertyName)")
2039
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1087)
2040
+ let keyframeValue: JSSymbol = jsSymbol(keyframeName)
2041
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1088)
2042
+ computedValue = jsSymbol("computed-value:" + propertyName)
2043
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1089)
2044
+ self.key = computedValue
2045
+ if jsMadeBits0 & (1 << 7) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 7, "key") }
2046
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1090)
2047
+ computedSource = jsSymbol("computed-source:" + propertyName)
2048
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1091)
2049
+ self.source = computedSource
2050
+ if jsMadeBits0 & (1 << 8) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 8, "source") }
2051
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1093)
2052
+ self.getDefault = jsSymbol(propertyName + ":getDefault")
2053
+ if jsMadeBits0 & (1 << 2) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 2, "getDefault") }
2054
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1094)
2055
+ getDefault = self.getDefault
2056
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1095)
2057
+ setNative =
2058
+ (({ () -> JSSymbol in
2059
+ let __assigned1: JSSymbol = jsSymbol(propertyName + ":setNative")
2060
+ self.setNative = __assigned1
2061
+ return __assigned1
2062
+ }()))
2063
+ if jsMadeBits0 & (1 << 3) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 3, "setNative") }
2064
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1096)
2065
+ eventName = propertyName + "Change"
2066
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1098)
2067
+ property = self
2068
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1197)
2069
+ let defaultPropertyDescriptor: Any? = descriptor(defaultValueKey, ValueSource.Default, false, false, false)
2070
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1198)
2071
+ let cssPropertyDescriptor: Any? = descriptor(cssValue, ValueSource.Css, false, false, false)
2072
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1199)
2073
+ let stylePropertyDescriptor: Any? = descriptor(styleValue, ValueSource.Local, true, true, true)
2074
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1200)
2075
+ let keyframePropertyDescriptor: Any? = descriptor(keyframeValue, ValueSource.Keyframe, false, false, false)
2076
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1202)
2077
+ Core_ui_core_properties_index.symbolPropertyMap[jsKey: computedValue.key] = self
2078
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1203)
2079
+ Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: computedValue.key] = self
2080
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1205)
2081
+ self.register = { (cls: Any?) throws -> Void in
2082
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1206)
2083
+ try jsSet(jsGet(cls, "prototype"), computedValue.key, jsGet(options, "defaultValue"))
2084
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1207)
2085
+ try jsSet(jsGet(cls, "prototype"), computedSource.key, ValueSource.Default)
2086
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1209)
2087
+ try jsSet(jsGet(cls, "prototype"), cssValue.key, Core_ui_core_properties_property_shared.unsetValue)
2088
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1210)
2089
+ try jsSet(jsGet(cls, "prototype"), styleValue.key, Core_ui_core_properties_property_shared.unsetValue)
2090
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1211)
2091
+ try jsSet(jsGet(cls, "prototype"), keyframeValue.key, Core_ui_core_properties_property_shared.unsetValue)
2092
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1213)
2093
+ _ = try jsDefineProperty(jsGet(cls, "prototype"), defaultName, defaultPropertyDescriptor)
2094
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1214)
2095
+ _ = try jsDefineProperty(jsGet(cls, "prototype"), cssName, cssPropertyDescriptor)
2096
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1215)
2097
+ _ = try jsDefineProperty(jsGet(cls, "prototype"), propertyName, stylePropertyDescriptor)
2098
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1216)
2099
+ if try
2100
+ (jsTruthy(jsGet(options, "cssName"))
2101
+ && !jsStrictEquals(jsGet(options, "cssName"), jsGet(options, "name")))
2102
+ {
2103
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1217)
2104
+ _ = try jsDefineProperty(
2105
+ jsGet(cls, "prototype"), jsConvertedString(jsGet(options, "cssName")), stylePropertyDescriptor)
2106
+ }
2107
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1219)
2108
+ _ = try jsDefineProperty(jsGet(cls, "prototype"), keyframeName, keyframePropertyDescriptor)
2109
+ }
2110
+ if jsMadeBits0 & (1 << 4) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 4, "register") }
2111
+ }
2112
+ #sourceLocation()
2113
+ open func jsSymbolMethod(_ key: String) -> JSMethod? {
2114
+ return nil
2115
+ }
2116
+ open class var jsSymbolPlain: Bool { true }
2117
+ open class var jsSymbolFieldsPlain: Bool { true }
2118
+ open var jsExpando: JSObject?
2119
+ open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
2120
+ open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
2121
+ open func _initDefaultNativeValue(_ target: Any?) throws {
2122
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1224)
2123
+ let view: ViewBase? = try jsUnwrap(jsGet(target, "viewRef") as? JSWeakRef<ViewBase>, "get").get()
2124
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1225)
2125
+ if !jsTruthy(view as Any?) {
2126
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1226)
2127
+ try NativeScriptKit.Trace.write(
2128
+ "_initDefaultNativeValue not executed to view because \".viewRef\" is cleared",
2129
+ NativeScriptKit.Trace.categories.Animation, NativeScriptKit.Trace.messageType.warn)
2130
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1228)
2131
+ return
2132
+ }
2133
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1231)
2134
+ let defaultValueKey: JSSymbol = self.defaultValueKey
2135
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1233)
2136
+ if !jsHasKey(target, defaultValueKey.key) {
2137
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1234)
2138
+ let getDefault: JSSymbol = self.getDefault
2139
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1235)
2140
+ try jsSet(
2141
+ target, defaultValueKey.key,
2142
+ (jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
2143
+ ? jsCallMethod((view as Any?), getDefault.key) : self.defaultValue))
2144
+ }
2145
+ }
2146
+ #sourceLocation()
2147
+ open class func _getByCssName(_ name: String) throws -> CssAnimationProperty? {
2148
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1240)
2149
+ return try jsImplicit(jsUnwrap(self.properties, "name")[name])
2150
+ }
2151
+ #sourceLocation()
2152
+ open class func _getPropertyNames() throws -> JSArray<String>? {
2153
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1244)
2154
+ return try jsObjectRequired(CssAnimationProperty.properties).keys
2155
+ }
2156
+ #sourceLocation()
2157
+ open func isSet(_ instance: Any?) throws -> Bool {
2158
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1248)
2159
+ return try !jsStrictEquals(jsGet(instance, self.source.key), ValueSource.Default)
2160
+ }
2161
+ #sourceLocation()
2162
+ public final var jsMadeBits0: UInt64 = 0
2163
+ public final var jsMade: [String]?
2164
+ open var jsDeclaredKeys: [String] {
2165
+ ["name"] + (jsMadeBits0 & (1 << 0) != 0 ? ["cssName"] : [])
2166
+ + (jsMadeBits0 & (1 << 1) != 0 ? ["cssLocalName"] : [])
2167
+ + (jsMadeBits0 & (1 << 2) != 0 ? ["getDefault"] : []) + (jsMadeBits0 & (1 << 3) != 0 ? ["setNative"] : [])
2168
+ + (jsMadeBits0 & (1 << 4) != 0 ? ["register"] : []) + (jsMadeBits0 & (1 << 5) != 0 ? ["keyframe"] : [])
2169
+ + (jsMadeBits0 & (1 << 6) != 0 ? ["defaultValueKey"] : []) + (jsMadeBits0 & (1 << 7) != 0 ? ["key"] : [])
2170
+ + (jsMadeBits0 & (1 << 8) != 0 ? ["source"] : []) + (jsMadeBits0 & (1 << 9) != 0 ? ["defaultValue"] : [])
2171
+ + (jsMadeBits0 & (1 << 10) != 0 ? ["isStyleProperty"] : [])
2172
+ + (jsMadeBits0 & (1 << 11) != 0 ? ["_valueConverter"] : [])
2173
+ }
2174
+ open var jsKeys: [String] { jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?? [])) }
2175
+ open var jsClassName: String? { "CssAnimationProperty" }
2176
+ open subscript(jsKey key: String) -> Any? {
2177
+ get {
2178
+ switch key.utf8.count {
2179
+ case 3:
2180
+ switch key {
2181
+ case "key":
2182
+ if !(jsMadeBits0 & (1 << 7) != 0) { return nil }
2183
+ return self.key
2184
+ default: break
2185
+ }
2186
+ case 4:
2187
+ switch key {
2188
+ case "name": return self.name
2189
+ default: break
2190
+ }
2191
+ case 5:
2192
+ switch key {
2193
+ case "isSet": return FunctionCell_AnyOpt_to_Bool.script("isSet", 1, self.isSet)
2194
+ default: break
2195
+ }
2196
+ case 6:
2197
+ switch key {
2198
+ case "source":
2199
+ if !(jsMadeBits0 & (1 << 8) != 0) { return nil }
2200
+ return self.source
2201
+ default: break
2202
+ }
2203
+ case 7:
2204
+ switch key {
2205
+ case "cssName":
2206
+ if !(jsMadeBits0 & (1 << 0) != 0) { return nil }
2207
+ return self.cssName
2208
+ default: break
2209
+ }
2210
+ case 8:
2211
+ switch key {
2212
+ case "register":
2213
+ if !(jsMadeBits0 & (1 << 4) != 0) { return nil }
2214
+ return FunctionCell_AnyOpt_to_Void.scriptOrNil("", 1, self.register)
2215
+ case "keyframe":
2216
+ if !(jsMadeBits0 & (1 << 5) != 0) { return nil }
2217
+ return self.keyframe
2218
+ default: break
2219
+ }
2220
+ case 9:
2221
+ switch key {
2222
+ case "setNative":
2223
+ if !(jsMadeBits0 & (1 << 3) != 0) { return nil }
2224
+ return self.setNative
2225
+ default: break
2226
+ }
2227
+ case 10:
2228
+ switch key {
2229
+ case "getDefault":
2230
+ if !(jsMadeBits0 & (1 << 2) != 0) { return nil }
2231
+ return self.getDefault
2232
+ default: break
2233
+ }
2234
+ case 12:
2235
+ switch key {
2236
+ case "cssLocalName":
2237
+ if !(jsMadeBits0 & (1 << 1) != 0) { return nil }
2238
+ return self.cssLocalName
2239
+ case "defaultValue":
2240
+ if !(jsMadeBits0 & (1 << 9) != 0) { return nil }
2241
+ return self.defaultValue
2242
+ default: break
2243
+ }
2244
+ case 15:
2245
+ switch key {
2246
+ case "defaultValueKey":
2247
+ if !(jsMadeBits0 & (1 << 6) != 0) { return nil }
2248
+ return self.defaultValueKey
2249
+ case "isStyleProperty": return self.isStyleProperty
2250
+ case "_valueConverter":
2251
+ if !(jsMadeBits0 & (1 << 11) != 0) { return nil }
2252
+ return FunctionCell_String_to_AnyOpt.scriptOrNil("", 1, self._valueConverter)
2253
+ default: break
2254
+ }
2255
+ case 23:
2256
+ switch key {
2257
+ case "_initDefaultNativeValue":
2258
+ return FunctionCell_AnyOpt_to_Void.script(
2259
+ "_initDefaultNativeValue", 1, self._initDefaultNativeValue)
2260
+ default: break
2261
+ }
2262
+ default: break
2263
+ }
2264
+ return jsExpandoGet(self, key)
2265
+ }
2266
+ set {
2267
+ switch key.utf8.count {
2268
+ case 3:
2269
+ switch key {
2270
+ case "key":
2271
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
2272
+ self.key = __v
2273
+ } else {
2274
+ jsRefuseSet(newValue, "key", "JSSymbol")
2275
+ }
2276
+ return
2277
+ default: break
2278
+ }
2279
+ case 4:
2280
+ switch key {
2281
+ case "name":
2282
+ jsStoring { self.name = (try jsConvertedString(newValue)) }
2283
+ return
2284
+ default: break
2285
+ }
2286
+ case 6:
2287
+ switch key {
2288
+ case "source":
2289
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
2290
+ self.source = __v
2291
+ } else {
2292
+ jsRefuseSet(newValue, "source", "JSSymbol")
2293
+ }
2294
+ return
2295
+ default: break
2296
+ }
2297
+ case 7:
2298
+ switch key {
2299
+ case "cssName":
2300
+ jsStoring { self.cssName = (try jsConvertedString(newValue)) }
2301
+ return
2302
+ default: break
2303
+ }
2304
+ case 8:
2305
+ switch key {
2306
+ case "register":
2307
+ self.register = FunctionCell_AnyOpt_to_Void.fromScriptOrNil(newValue)
2308
+ return
2309
+ case "keyframe":
2310
+ jsStoring { self.keyframe = (try jsConvertedString(newValue)) }
2311
+ return
2312
+ default: break
2313
+ }
2314
+ case 9:
2315
+ switch key {
2316
+ case "setNative":
2317
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
2318
+ self.setNative = __v
2319
+ } else {
2320
+ jsRefuseSet(newValue, "setNative", "JSSymbol")
2321
+ }
2322
+ return
2323
+ default: break
2324
+ }
2325
+ case 10:
2326
+ switch key {
2327
+ case "getDefault":
2328
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
2329
+ self.getDefault = __v
2330
+ } else {
2331
+ jsRefuseSet(newValue, "getDefault", "JSSymbol")
2332
+ }
2333
+ return
2334
+ default: break
2335
+ }
2336
+ case 12:
2337
+ switch key {
2338
+ case "cssLocalName":
2339
+ jsStoring { self.cssLocalName = (try jsConvertedString(newValue)) }
2340
+ return
2341
+ case "defaultValue":
2342
+ self.defaultValue = newValue
2343
+ return
2344
+ default: break
2345
+ }
2346
+ case 15:
2347
+ switch key {
2348
+ case "defaultValueKey":
2349
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
2350
+ self.defaultValueKey = __v
2351
+ } else {
2352
+ jsRefuseSet(newValue, "defaultValueKey", "JSSymbol")
2353
+ }
2354
+ return
2355
+ case "isStyleProperty":
2356
+ jsStoring { self.isStyleProperty = (try jsConvertedBool(newValue)) }
2357
+ return
2358
+ case "_valueConverter":
2359
+ self._valueConverter = FunctionCell_String_to_AnyOpt.fromScriptOrNil(newValue)
2360
+ return
2361
+ default: break
2362
+ }
2363
+ default: break
2364
+ }
2365
+ jsExpandoSet(self, key, newValue)
2366
+ }
2367
+ }
2368
+ open class var jsName: String { "CssAnimationProperty" }
2369
+ open class var jsStaticKeys: [String] { ["properties", "_getByCssName", "_getPropertyNames"] }
2370
+ }
2371
+
2372
+ open class InheritedCssProperty: CssProperty {
2373
+ nonisolated deinit {}
2374
+ open var setInheritedValue: Any? = nil {
2375
+ didSet { if jsMadeBits0 & (1 << 4) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 4, "setInheritedValue") } }
2376
+ }
2377
+ public override init(_ options: Any?) throws {
2378
+ try super.init(options)
2379
+ var setDefaultFunc: Any? = nil
2380
+ var setInheritedFunc: Any? = nil
2381
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1258)
2382
+ let propertyName: String = try jsConvertedString(jsGet(options, "name"))
2383
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1260)
2384
+ let key: JSSymbol = self.key
2385
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1261)
2386
+ let sourceKey: JSSymbol = self.sourceKey
2387
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1262)
2388
+ let getDefault: JSSymbol = self.getDefault
2389
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1263)
2390
+ let setNative: JSSymbol = self.setNative
2391
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1264)
2392
+ let defaultValueKey: JSSymbol = self.defaultValueKey
2393
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1265)
2394
+ let cssLocalName: String = self.cssLocalName
2395
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1266)
2396
+ let eventName: String = propertyName + "Change"
2397
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1267)
2398
+ let defaultValue: Any? = try jsGet(options, "defaultValue")
2399
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1269)
2400
+ var affectsLayout: Bool? = (try jsGet(options, "affectsLayout") as? Bool)
2401
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1270)
2402
+ var equalityComparer: ((Any?, Any?) throws -> Bool)? = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
2403
+ jsGet(options, "equalityComparer"))
2404
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1271)
2405
+ var valueChanged: ((Any?, Any?, Any?) throws -> Void)? =
2406
+ try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(jsGet(options, "valueChanged"))
2407
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1272)
2408
+ var valueConverter: ((String) throws -> Any?)? = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(
2409
+ jsGet(options, "valueConverter"))
2410
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1273)
2411
+ var overrideConverter: Bool = false
2412
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1275)
2413
+ let property: InheritedCssProperty = self
2414
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1277)
2415
+ self.overrideHandlers = { (options: Any?) throws -> Void in
2416
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1278)
2417
+ if try !jsStringEquals(jsTypeof(jsGet(options, "equalityComparer")), "undefined") {
2418
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1279)
2419
+ equalityComparer = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
2420
+ jsGet(options, "equalityComparer"))
2421
+ }
2422
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1281)
2423
+ if try !jsStringEquals(jsTypeof(jsGet(options, "affectsLayout")), "undefined") {
2424
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1282)
2425
+ affectsLayout = try jsConvertedBool(jsGet(options, "affectsLayout"))
2426
+ }
2427
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1284)
2428
+ if try !jsStringEquals(jsTypeof(jsGet(options, "valueChanged")), "undefined") {
2429
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1285)
2430
+ valueChanged = try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(
2431
+ jsGet(options, "valueChanged"))
2432
+ }
2433
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1287)
2434
+ if try !jsStringEquals(jsTypeof(jsGet(options, "valueConverter")), "undefined") {
2435
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1288)
2436
+ valueConverter = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter"))
2437
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1289)
2438
+ overrideConverter = true
2439
+ }
2440
+ }
2441
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1293)
2442
+ let setFunc: (Double) throws -> Any? = { (valueSource: Double) -> Any? in
2443
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1294)
2444
+ let isLocalWrite: Bool = jsLenientNumberEquals(valueSource, ValueSource.Local)
2445
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1296)
2446
+ let origin: String =
2447
+ (isLocalWrite ? "script" : (jsLenientNumberEquals(valueSource, ValueSource.Css) ? "css" : "inherited"))
2448
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1298)
2449
+ return
2450
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
2451
+ let boxedValue: Any? = jsArg(__a, 0)
2452
+ try { () throws -> Void in
2453
+ var boxedValue = boxedValue
2454
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1299)
2455
+ let view: ViewBase? = try jsUnwrap(jsGet(__this, "viewRef") as? JSWeakRef<ViewBase>, "get")
2456
+ .get()
2457
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1300)
2458
+ if !jsTruthy(view as Any?) {
2459
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1301)
2460
+ try NativeScriptKit.Trace.write(
2461
+ "\(jsToStringThrowing(boxedValue)) not set to view's property because \".viewRef\" is cleared",
2462
+ NativeScriptKit.Trace.categories.Style, NativeScriptKit.Trace.messageType.warn)
2463
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1302)
2464
+ return
2465
+ }
2466
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1305)
2467
+ if isLocalWrite {
2468
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1306)
2469
+ try jsPostUpdate(__this, "_localValueVersion", +1)
2470
+ }
2471
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1309)
2472
+ var reset: Bool =
2473
+ Core_ui_core_properties_property_shared.isResetValue(boxedValue)
2474
+ || jsStrictEquals(boxedValue, "")
2475
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1310)
2476
+ var newValueSource: Double = valueSource
2477
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1311)
2478
+ if reset && isLocalWrite {
2479
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1312)
2480
+ let cssValue: Any? = try Core_ui_core_properties_index.cascadedCssValue(view, cssLocalName)
2481
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1313)
2482
+ if !jsStrictEquals(cssValue, nil) {
2483
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1314)
2484
+ boxedValue = cssValue
2485
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1315)
2486
+ newValueSource = ValueSource.Css
2487
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1316)
2488
+ reset = false
2489
+ }
2490
+ }
2491
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1320)
2492
+ let currentValueSource: Double = try jsConvertedNumber(
2493
+ ({ () throws -> Any? in
2494
+ let __v_6 = try jsGet(__this, sourceKey.key)
2495
+ return jsTruthy(__v_6) ? __v_6 : ValueSource.Default
2496
+ }()))
2497
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1322)
2498
+ if reset {
2499
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1324)
2500
+ if jsLenientNumberEquals(valueSource, ValueSource.Css)
2501
+ && jsLenientNumberEquals(currentValueSource, ValueSource.Local)
2502
+ {
2503
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1325)
2504
+ return
2505
+ }
2506
+ } else {
2507
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1328)
2508
+ if currentValueSource > valueSource {
2509
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1329)
2510
+ return
2511
+ }
2512
+ }
2513
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1333)
2514
+ let oldValue: Any? = try (jsHasKey(__this, key.key) ? jsGet(__this, key.key) : defaultValue)
2515
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1334)
2516
+ var value: Any? = nil
2517
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1335)
2518
+ var unsetNativeValue: Bool = false
2519
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1337)
2520
+ if reset {
2521
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1338)
2522
+ let parentStyle: Style? =
2523
+ try
2524
+ (jsTruthy(jsUnwrap(view, "parent").parent)
2525
+ ? jsUnwrap(jsUnwrap(view, "parent").parent, "style").style : nil)
2526
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1341)
2527
+ if try
2528
+ ((!jsStrictEquals(boxedValue, "initial") && jsTruthy(parentStyle as Any?))
2529
+ && jsGreaterThrowing(
2530
+ jsUnwrap(parentStyle, "sourceKey")[jsKey: sourceKey.key], ValueSource.Default))
2531
+ {
2532
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1342)
2533
+ value = try jsUnwrap(parentStyle, "propertyName")[jsKey: propertyName]
2534
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1343)
2535
+ try jsSet(__this, sourceKey.key, ValueSource.Inherited)
2536
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1344)
2537
+ try jsSet(__this, key.key, value)
2538
+ } else {
2539
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1346)
2540
+ value = defaultValue
2541
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1347)
2542
+ _ = try jsDelete(__this, sourceKey.key)
2543
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1348)
2544
+ _ = try jsDelete(__this, key.key)
2545
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1349)
2546
+ unsetNativeValue = true
2547
+ }
2548
+ } else {
2549
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1352)
2550
+ try jsSet(__this, sourceKey.key, newValueSource)
2551
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1353)
2552
+ if jsTruthy(valueConverter) && jsStringEquals(jsTypeof(boxedValue), "string") {
2553
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1354)
2554
+ value =
2555
+ try
2556
+ (overrideConverter
2557
+ ? jsUnwrap(valueConverter, "call")(jsLenientString(boxedValue))
2558
+ : jsCallable(valueConverter, "valueConverter")(jsLenientString(boxedValue)))
2559
+ } else {
2560
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1356)
2561
+ value = boxedValue
2562
+ }
2563
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1358)
2564
+ try jsSet(__this, key.key, value)
2565
+ }
2566
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1361)
2567
+ let changed: Bool =
2568
+ try
2569
+ (jsTruthy(equalityComparer)
2570
+ ? !(jsCallable(equalityComparer, "equalityComparer")(oldValue, value))
2571
+ : !jsStrictEquals(oldValue, value))
2572
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1363)
2573
+ if changed {
2574
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1364)
2575
+ if jsTruthy(valueChanged) {
2576
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1365)
2577
+ try jsCallable(valueChanged, "valueChanged")(__this, oldValue, value)
2578
+ }
2579
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1368)
2580
+ if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
2581
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1369)
2582
+ if try jsTruthy(jsUnwrap(view, "_suspendNativeUpdatesCount")._suspendNativeUpdatesCount)
2583
+ {
2584
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1370)
2585
+ if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
2586
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1371)
2587
+ try jsUnwrap(
2588
+ jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates,
2589
+ setting: "propertyName")[propertyName] = property
2590
+ }
2591
+ } else if unsetNativeValue {
2592
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1374)
2593
+ if jsHasKey(__this, defaultValueKey.key) {
2594
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1375)
2595
+ _ = try jsCallMethod(
2596
+ (view as Any?), setNative.key, jsGet(__this, defaultValueKey.key))
2597
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1376)
2598
+ _ = try jsDelete(__this, defaultValueKey.key)
2599
+ } else {
2600
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1378)
2601
+ _ = try jsCallMethod((view as Any?), setNative.key, defaultValue)
2602
+ }
2603
+ } else {
2604
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1381)
2605
+ if !jsHasKey(__this, defaultValueKey.key) {
2606
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1382)
2607
+ try jsSet(
2608
+ __this, defaultValueKey.key,
2609
+ (jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
2610
+ ? jsCallMethod((view as Any?), getDefault.key) : defaultValue))
2611
+ }
2612
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1385)
2613
+ _ = try jsCallMethod((view as Any?), setNative.key, value)
2614
+ }
2615
+ }
2616
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1389)
2617
+ if try jsLenientBool(jsCallMethod(__this, "hasListeners", eventName)) {
2618
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1390)
2619
+ try jsCallMethod(
2620
+ __this, "notify",
2621
+ JSObject([
2622
+ ("object", __this), ("eventName", eventName as Any?),
2623
+ ("propertyName", propertyName as Any?), ("value", value as Any?),
2624
+ ("oldValue", oldValue as Any?), ("origin", origin as Any?),
2625
+ ]))
2626
+ }
2627
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1400)
2628
+ if jsTruthy(affectsLayout as Any?) {
2629
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1401)
2630
+ try jsUnwrap(view, "requestLayout").requestLayout()
2631
+ }
2632
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1404)
2633
+ try jsUnwrap(view, "eachChild").eachChild({ (child: ViewBase?) throws -> Bool in
2634
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1405)
2635
+ let childStyle: Style? = try jsUnwrap(child, "style").style
2636
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1406)
2637
+ let childValueSource: Any? = try
2638
+ ({ () throws -> Any? in
2639
+ let __v_7 = try jsUnwrap(childStyle, "sourceKey")[jsKey: sourceKey.key]
2640
+ return jsTruthy(__v_7) ? __v_7 : ValueSource.Default
2641
+ }())
2642
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1407)
2643
+ if reset {
2644
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1408)
2645
+ if jsStrictEquals(childValueSource, ValueSource.Inherited) {
2646
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1409)
2647
+ _ = try jsCallMethod(
2648
+ setDefaultFunc, "call", childStyle,
2649
+ Core_ui_core_properties_property_shared.unsetValue)
2650
+ }
2651
+ } else {
2652
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1412)
2653
+ if try jsLessOrEqualThrowing(childValueSource, ValueSource.Inherited) {
2654
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1413)
2655
+ _ = try jsCallMethod(setInheritedFunc, "call", childStyle, value)
2656
+ }
2657
+ }
2658
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1417)
2659
+ return true
2660
+ })
2661
+ }
2662
+ }()
2663
+ return nil
2664
+ } as JSMethod)
2665
+ }
2666
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1423)
2667
+ setDefaultFunc = try setFunc(ValueSource.Default)
2668
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1424)
2669
+ setInheritedFunc = try setFunc(ValueSource.Inherited)
2670
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1426)
2671
+ self.setInheritedValue = setInheritedFunc
2672
+ if jsMadeBits0 & (1 << 4) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 4, "setInheritedValue") }
2673
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1427)
2674
+ try jsSet(self.cssValueDescriptor, "set", setFunc(ValueSource.Css))
2675
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1428)
2676
+ try jsSet(self.localValueDescriptor, "set", setFunc(ValueSource.Local))
2677
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1430)
2678
+ _ = try jsUnwrap(Core_ui_core_properties_index.inheritableCssProperties, "push").push(self)
2679
+ }
2680
+ #sourceLocation()
2681
+ open override class func jsConstruct(_ __a: [Any?]) throws -> Any? { try InheritedCssProperty(jsArg(__a, 0)) }
2682
+ open override var jsDeclaredKeys: [String] {
2683
+ super.jsDeclaredKeys + (jsMadeBits0 & (1 << 4) != 0 ? ["setInheritedValue"] : [])
2684
+ }
2685
+ open override var jsClassName: String? { "InheritedCssProperty" }
2686
+ open override subscript(jsKey key: String) -> Any? {
2687
+ get {
2688
+ switch key.utf8.count {
2689
+ case 17:
2690
+ switch key {
2691
+ case "setInheritedValue":
2692
+ if !(jsMadeBits0 & (1 << 4) != 0) { return nil }
2693
+ return self.setInheritedValue
2694
+ default: break
2695
+ }
2696
+ default: break
2697
+ }
2698
+ return super[jsKey: key]
2699
+ }
2700
+ set {
2701
+ switch key.utf8.count {
2702
+ case 17:
2703
+ switch key {
2704
+ case "setInheritedValue":
2705
+ self.setInheritedValue = newValue
2706
+ return
2707
+ default: break
2708
+ }
2709
+ default: break
2710
+ }
2711
+ super[jsKey: key] = newValue
2712
+ }
2713
+ }
2714
+ open override class var jsName: String { "InheritedCssProperty" }
2715
+ }
2716
+
2717
+ open class ShorthandProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
2718
+ nonisolated deinit {}
2719
+ open var registered: Bool = false {
2720
+ didSet { if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "registered") } }
2721
+ }
2722
+ open var key: JSSymbol
2723
+ open var name: String = ""
2724
+ open var cssName: String = ""
2725
+ open var cssLocalName: String = ""
2726
+ open var cssValueDescriptor: Any? = nil {
2727
+ didSet { if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "cssValueDescriptor") } }
2728
+ }
2729
+ open var localValueDescriptor: Any? = nil {
2730
+ didSet { if jsMadeBits0 & (1 << 2) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 2, "localValueDescriptor") } }
2731
+ }
2732
+ open var sourceKey: JSSymbol! {
2733
+ didSet { if jsMadeBits0 & (1 << 3) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 3, "sourceKey") } }
2734
+ }
2735
+ public init(_ options: Any?) throws {
2736
+ var converter: ((Any?) throws -> JSArray<(Any?, Any?)>)!
2737
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1460)
2738
+ func setLocalValue(_ this: Any?, _ value: Any?) throws {
2739
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1461)
2740
+ let view: ViewBase? = try jsUnwrap(jsGet(this, "viewRef") as? JSWeakRef<ViewBase>, "get").get()
2741
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1462)
2742
+ if !jsTruthy(view as Any?) {
2743
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1463)
2744
+ try NativeScriptKit.Trace.write(
2745
+ "setLocalValue not executed to view because \".viewRef\" is cleared",
2746
+ NativeScriptKit.Trace.categories.Animation, NativeScriptKit.Trace.messageType.warn)
2747
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1465)
2748
+ return
2749
+ }
2750
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1468)
2751
+ _ = try jsUnwrap(view, "_batchUpdate")._batchUpdate(
2752
+ FunctionCell_none_to_AnyOpt.adapting({ () throws -> Void in
2753
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1469)
2754
+ for __item1 in try jsIterated(
2755
+ jsCallable(converter, "converter")(value),
2756
+ "converter is not a function or its return value is not iterable")
2757
+ {
2758
+ let p: Any? = __item1.0
2759
+ let v: Any? = __item1.1
2760
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1470)
2761
+ try jsSet(this, jsPropertyKey(jsGet(p, "name")), v)
2762
+ }
2763
+ }))
2764
+ }
2765
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1475)
2766
+ func setCssValue(_ this: Any?, _ value: String) throws {
2767
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1476)
2768
+ let view: ViewBase? = try jsUnwrap(jsGet(this, "viewRef") as? JSWeakRef<ViewBase>, "get").get()
2769
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1477)
2770
+ if !jsTruthy(view as Any?) {
2771
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1478)
2772
+ try NativeScriptKit.Trace.write(
2773
+ "setCssValue not executed to view because \".viewRef\" is cleared",
2774
+ NativeScriptKit.Trace.categories.Animation, NativeScriptKit.Trace.messageType.warn)
2775
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1480)
2776
+ return
2777
+ }
2778
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1483)
2779
+ _ = try jsUnwrap(view, "_batchUpdate")._batchUpdate(
2780
+ FunctionCell_none_to_AnyOpt.adapting({ () throws -> Void in
2781
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1484)
2782
+ for __item2 in try jsIterated(
2783
+ jsCallable(converter, "converter")(value),
2784
+ "converter is not a function or its return value is not iterable")
2785
+ {
2786
+ let p: Any? = __item2.0
2787
+ let v: Any? = __item2.1
2788
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1485)
2789
+ try jsSet(this, jsPropertyKey(jsGet(p, "cssName")), v)
2790
+ }
2791
+ }))
2792
+ }
2793
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1448)
2794
+ self.name = try jsConvertedString(jsGet(options, "name"))
2795
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1450)
2796
+ let key: JSSymbol = jsSymbol(self.name + ":propertyKey")
2797
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1451)
2798
+ self.key = key
2799
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1453)
2800
+ self.cssName = try "css:\(jsConvertedString(jsGet(options, "cssName")))"
2801
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1454)
2802
+ self.cssLocalName = try "\(jsConvertedString(jsGet(options, "cssName")))"
2803
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1455)
2804
+ _ = try Core_ui_core_properties_index.cssShorthandConverters.set(
2805
+ jsConvertedString(jsGet(options, "cssName")),
2806
+ FunctionCell_AnyOpt_to_JSArray_AnyOpt_AnyOpt_Opt.scriptOrNil(
2807
+ "", 1,
2808
+ FunctionCell_AnyOpt_to_JSArray_AnyOpt_AnyOpt.present(
2809
+ FunctionCell_AnyOpt_to_JSArray_AnyOpt_AnyOpt.present(
2810
+ FunctionCell_AnyOpt_to_JSArray_AnyOpt_AnyOpt.fromScriptOrNil(jsGet(options, "converter"))))))
2811
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1456)
2812
+ Core_ui_core_properties_index.cssShorthandsVersion += 1
2813
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1458)
2814
+ converter = try FunctionCell_AnyOpt_to_JSArray_AnyOpt_AnyOpt.fromScriptOrNil(jsGet(options, "converter"))
2815
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1490)
2816
+ self.cssValueDescriptor = try JSObject([
2817
+ ("enumerable", true), ("configurable", true), ("get", jsGet(options, "getter")),
2818
+ (
2819
+ "set",
2820
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
2821
+ try setCssValue(__this, jsLenientString(jsArg(__a, 0)))
2822
+ return nil
2823
+ } as JSMethod)
2824
+ ),
2825
+ ])
2826
+ if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "cssValueDescriptor") }
2827
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1497)
2828
+ self.localValueDescriptor = try JSObject([
2829
+ ("enumerable", true), ("configurable", true), ("get", jsGet(options, "getter")),
2830
+ (
2831
+ "set",
2832
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
2833
+ try setLocalValue(__this, jsArg(__a, 0))
2834
+ return nil
2835
+ } as JSMethod)
2836
+ ),
2837
+ ])
2838
+ if jsMadeBits0 & (1 << 2) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 2, "localValueDescriptor") }
2839
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1504)
2840
+ Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: key.key] = self
2841
+ }
2842
+ #sourceLocation()
2843
+ open func jsSymbolMethod(_ key: String) -> JSMethod? {
2844
+ return nil
2845
+ }
2846
+ open class var jsSymbolPlain: Bool { true }
2847
+ open class var jsSymbolFieldsPlain: Bool { true }
2848
+ open var jsExpando: JSObject?
2849
+ open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
2850
+ open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
2851
+ open func register(_ cls: Style.Type?) throws {
2852
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1508)
2853
+ if self.registered {
2854
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1509)
2855
+ throw JSException(value: JSError("Property \(self.name) already registered."))
2856
+ }
2857
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1512)
2858
+ self.registered = true
2859
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1513)
2860
+ _ = try jsDefineProperty(
2861
+ jsObjectRequired(JSPrototypes.of(jsUnwrap(cls, "prototype"))), self.name, self.localValueDescriptor)
2862
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1514)
2863
+ _ = try jsDefineProperty(
2864
+ jsObjectRequired(JSPrototypes.of(jsUnwrap(cls, "prototype"))), self.cssName, self.cssValueDescriptor)
2865
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1515)
2866
+ if !jsStringEquals(self.cssLocalName, self.cssName) {
2867
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1516)
2868
+ _ = try jsDefineProperty(
2869
+ jsObjectRequired(JSPrototypes.of(jsUnwrap(cls, "prototype"))), self.cssLocalName,
2870
+ self.localValueDescriptor)
2871
+ }
2872
+ }
2873
+ #sourceLocation()
2874
+ public final var jsMadeBits0: UInt64 = 0
2875
+ public final var jsMade: [String]?
2876
+ open var jsDeclaredKeys: [String] {
2877
+ ["name"] + ["key"] + ["cssName"] + ["cssLocalName"] + (jsMadeBits0 & (1 << 0) != 0 ? ["registered"] : [])
2878
+ + (jsMadeBits0 & (1 << 1) != 0 ? ["cssValueDescriptor"] : [])
2879
+ + (jsMadeBits0 & (1 << 2) != 0 ? ["localValueDescriptor"] : [])
2880
+ + (jsMadeBits0 & (1 << 3) != 0 ? ["sourceKey"] : [])
2881
+ }
2882
+ open var jsKeys: [String] { jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?? [])) }
2883
+ open var jsClassName: String? { "ShorthandProperty" }
2884
+ open subscript(jsKey key: String) -> Any? {
2885
+ get {
2886
+ switch key.utf8.count {
2887
+ case 3:
2888
+ switch key {
2889
+ case "key": return self.key
2890
+ default: break
2891
+ }
2892
+ case 4:
2893
+ switch key {
2894
+ case "name": return self.name
2895
+ default: break
2896
+ }
2897
+ case 7:
2898
+ switch key {
2899
+ case "cssName": return self.cssName
2900
+ default: break
2901
+ }
2902
+ case 8:
2903
+ switch key {
2904
+ case "register": return FunctionCell_Style_TypeOpt_to_Void.script("register", 1, self.register)
2905
+ default: break
2906
+ }
2907
+ case 9:
2908
+ switch key {
2909
+ case "sourceKey":
2910
+ if !(jsMadeBits0 & (1 << 3) != 0) { return nil }
2911
+ return self.sourceKey
2912
+ default: break
2913
+ }
2914
+ case 10:
2915
+ switch key {
2916
+ case "registered":
2917
+ if !(jsMadeBits0 & (1 << 0) != 0) { return nil }
2918
+ return self.registered
2919
+ default: break
2920
+ }
2921
+ case 12:
2922
+ switch key {
2923
+ case "cssLocalName": return self.cssLocalName
2924
+ default: break
2925
+ }
2926
+ case 18:
2927
+ switch key {
2928
+ case "cssValueDescriptor":
2929
+ if !(jsMadeBits0 & (1 << 1) != 0) { return nil }
2930
+ return self.cssValueDescriptor
2931
+ default: break
2932
+ }
2933
+ case 20:
2934
+ switch key {
2935
+ case "localValueDescriptor":
2936
+ if !(jsMadeBits0 & (1 << 2) != 0) { return nil }
2937
+ return self.localValueDescriptor
2938
+ default: break
2939
+ }
2940
+ default: break
2941
+ }
2942
+ return jsExpandoGet(self, key)
2943
+ }
2944
+ set {
2945
+ switch key.utf8.count {
2946
+ case 3:
2947
+ switch key {
2948
+ case "key":
2949
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
2950
+ self.key = __v
2951
+ } else {
2952
+ jsRefuseSet(newValue, "key", "JSSymbol")
2953
+ }
2954
+ return
2955
+ default: break
2956
+ }
2957
+ case 4:
2958
+ switch key {
2959
+ case "name":
2960
+ jsStoring { self.name = (try jsConvertedString(newValue)) }
2961
+ return
2962
+ default: break
2963
+ }
2964
+ case 7:
2965
+ switch key {
2966
+ case "cssName":
2967
+ jsStoring { self.cssName = (try jsConvertedString(newValue)) }
2968
+ return
2969
+ default: break
2970
+ }
2971
+ case 9:
2972
+ switch key {
2973
+ case "sourceKey":
2974
+ if let __v = jsConverted(newValue, to: JSSymbol.self) {
2975
+ self.sourceKey = __v
2976
+ } else {
2977
+ jsRefuseSet(newValue, "sourceKey", "JSSymbol")
2978
+ }
2979
+ return
2980
+ default: break
2981
+ }
2982
+ case 10:
2983
+ switch key {
2984
+ case "registered":
2985
+ jsStoring { self.registered = (try jsConvertedBool(newValue)) }
2986
+ return
2987
+ default: break
2988
+ }
2989
+ case 12:
2990
+ switch key {
2991
+ case "cssLocalName":
2992
+ jsStoring { self.cssLocalName = (try jsConvertedString(newValue)) }
2993
+ return
2994
+ default: break
2995
+ }
2996
+ case 18:
2997
+ switch key {
2998
+ case "cssValueDescriptor":
2999
+ self.cssValueDescriptor = newValue
3000
+ return
3001
+ default: break
3002
+ }
3003
+ case 20:
3004
+ switch key {
3005
+ case "localValueDescriptor":
3006
+ self.localValueDescriptor = newValue
3007
+ return
3008
+ default: break
3009
+ }
3010
+ default: break
3011
+ }
3012
+ jsExpandoSet(self, key, newValue)
3013
+ }
3014
+ }
3015
+ open class var jsName: String { "ShorthandProperty" }
3016
+ open class var jsStaticKeys: [String] { [] }
3017
+ }
3018
+
3019
+ public enum Core_ui_core_properties_index {
3020
+ public static let cssPropertyNames: JSArray<String> = JSArray<String>()
3021
+ public static let cssShorthandConverters: JSMap<String, Any?> = JSMap<String, Any?>()
3022
+ public static let cssShorthandLonghands: JSMap<String, JSArray<String>> = JSMap<String, JSArray<String>>()
3023
+ public static var cssShorthandsVersion: Double = 0
3024
+ public static var HAS_OWN: Any? = nil
3025
+ public static let symbolPropertyMap: JSObject = JSObject([])
3026
+ public static let cssSymbolPropertyMap: JSObject = JSObject([])
3027
+ public static let CSS_VARIABLE_NAME_RE: JSRegExp = jsRegExpLiteral("^--[^,\\s]+?$", "")
3028
+ public static let DIP_RE: JSRegExp = jsRegExpLiteral("([0-9]+(\\.[0-9]+)?)dip\\b", "g")
3029
+ public static let UNSET_RE: JSRegExp = jsRegExpLiteral("unset", "g")
3030
+ public static let UNRESOLVED_VAR: String = "\u{0}"
3031
+ public static let INFINITY_RE: JSRegExp = jsRegExpLiteral("infinity", "g")
3032
+ public static var inheritableProperties: JSArray<InheritedProperty>? = JSArray<InheritedProperty>()
3033
+ public static var inheritableCssProperties: JSArray<InheritedCssProperty>? = JSArray<InheritedCssProperty>()
3034
+ public static var cssValueSourceKeys: JSRecord<JSSymbol>?
3035
+ /// Whether the style still carries what the cascade last wrote for the property.
3036
+ /// A `CssProperty` keeps one value: a local value both suppresses the css write and
3037
+ /// takes the slot, so the style can stop carrying what the cascade recorded. The
3038
+ /// cascade has to write it again rather than skip it as unchanged.
3039
+ public static func _isCssValueStillApplied(_ style: Any?, _ cssLocalName: String, _ value: Any?) throws -> Bool {
3040
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:53)
3041
+ let sourceKey: JSSymbol? = try jsUnwrap(Core_ui_core_properties_index.cssValueSourceKeys, "cssLocalName")[
3042
+ cssLocalName]
3043
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:54)
3044
+ if sourceKey == nil {
3045
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:56)
3046
+ return true
3047
+ }
3048
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:60)
3049
+ return try jsStrictEquals(
3050
+ jsGet(style, (jsImplicit(sourceKey)?.key ?? "undefined")),
3051
+ ((Core_ui_core_properties_property_shared.isResetValue(value) ? nil : ValueSource.Css) as Any?))
3052
+ }
3053
+ #sourceLocation()
3054
+ /// What a released local value falls back to: the value the cascade last resolved for
3055
+ /// the property, or `undefined` when it resolved none.
3056
+ public static func cascadedCssValue(_ view: ViewBase?, _ cssLocalName: String) throws -> Any? {
3057
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:68)
3058
+ let value: Any? = try (jsUnwrap(view, "_cssState")._cssState as CssState?)?._getAppliedPropertyValue(
3059
+ cssLocalName)
3060
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:70)
3061
+ return (jsStrictEquals(value, "") || Core_ui_core_properties_property_shared.isResetValue(value) ? nil : value)
3062
+ }
3063
+ #sourceLocation()
3064
+ public static func print(_ map: Any?) throws {
3065
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:74)
3066
+ let symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(map)
3067
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:75)
3068
+ for symbol in try jsIterated(symbols, "symbols is not iterable") {
3069
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:76)
3070
+ let prop: Any? = try jsGet(map, symbol.key)
3071
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:77)
3072
+ if try !(jsTruthy(jsGet(prop, "registered"))) {
3073
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:78)
3074
+ try jsLog("Property \(jsToStringThrowing(jsGet(prop, "name"))) not Registered!!!!!")
3075
+ }
3076
+ }
3077
+ }
3078
+ #sourceLocation()
3079
+ public static func _printUnregisteredProperties() throws {
3080
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:84)
3081
+ try Core_ui_core_properties_index.print(Core_ui_core_properties_index.symbolPropertyMap)
3082
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:85)
3083
+ try Core_ui_core_properties_index.print(Core_ui_core_properties_index.cssSymbolPropertyMap)
3084
+ }
3085
+ #sourceLocation()
3086
+ public static func _getProperties() throws -> JSArray<Property>? {
3087
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:89)
3088
+ return try jsArrayOrNil(
3089
+ Core_ui_core_properties_index.getPropertiesFromMap(Core_ui_core_properties_index.symbolPropertyMap),
3090
+ as: JSArray<Property>.self, { try (jsCastPresent($0) as Property) })
3091
+ }
3092
+ #sourceLocation()
3093
+ public static func _getStyleProperties() throws -> JSArray<CssProperty>? {
3094
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:93)
3095
+ return try jsArrayOrNil(
3096
+ Core_ui_core_properties_index.getPropertiesFromMap(Core_ui_core_properties_index.cssSymbolPropertyMap),
3097
+ as: JSArray<CssProperty>.self, { try (jsCastPresent($0) as CssProperty) })
3098
+ }
3099
+ #sourceLocation()
3100
+ public static func _isCssPendingSubstitution(_ value: Any?) -> Bool {
3101
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:114)
3102
+ return (value is CssPendingSubstitution)
3103
+ }
3104
+ #sourceLocation()
3105
+ /// The longhands a shorthand expands into, probed from its converter on first use -
3106
+ /// the longhand properties a converter closes over are not initialized yet while
3107
+ /// the shorthand itself is being registered.
3108
+ public static func getCssShorthandLonghands(_ cssName: String) throws -> JSArray<String>? {
3109
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:123)
3110
+ let known: JSArray<String>? = Core_ui_core_properties_index.cssShorthandLonghands.get(cssName)
3111
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:124)
3112
+ if jsTruthy(known as Any?) {
3113
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:125)
3114
+ return known
3115
+ }
3116
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:128)
3117
+ let converter: ((Any?) throws -> JSArray<(Any?, Any?)>)? =
3118
+ FunctionCell_AnyOpt_to_JSArray_AnyOpt_AnyOpt.fromScriptOrNil(
3119
+ (Core_ui_core_properties_index.cssShorthandConverters.get(cssName) ?? nil))
3120
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:129)
3121
+ if !jsTruthy(converter) {
3122
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:130)
3123
+ return nil
3124
+ }
3125
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:133)
3126
+ do {
3127
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:134)
3128
+ let probed: JSArray<(Any?, Any?)>? = try jsCallable(converter, "converter")(
3129
+ Core_ui_core_properties_property_shared.unsetValue)
3130
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:135)
3131
+ if !jsTruthy((((probed as JSArray<(Any?, Any?)>?)?.length) ?? .nan)) {
3132
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:136)
3133
+ return nil
3134
+ }
3135
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:139)
3136
+ let longhands: JSArray<String> = JSArray<String>()
3137
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:140)
3138
+ var i: Double = 0
3139
+ let length: Double = try jsUnwrap(probed, "length").length
3140
+ while i < length {
3141
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:141)
3142
+ _ = try longhands.push(
3143
+ jsConvertedString(jsGet(jsUnwrap(jsUnwrap(probed, "i").element(i), "0").0, "cssLocalName")))
3144
+ i += 1
3145
+ }
3146
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:144)
3147
+ _ = Core_ui_core_properties_index.cssShorthandLonghands.set(cssName, longhands)
3148
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:146)
3149
+ return longhands
3150
+ } catch {
3151
+ let e: Any? = jsCaught(error)
3152
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:148)
3153
+ try NativeScriptKit.Trace.write(
3154
+ "Could not determine the longhands of shorthand [\(cssName)]. \(jsToStringThrowing(e))",
3155
+ NativeScriptKit.Trace.categories.Style, NativeScriptKit.Trace.messageType.warn)
3156
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:150)
3157
+ return nil
3158
+ }
3159
+ }
3160
+ #sourceLocation()
3161
+ /// One pending-substitution value per longhand of the shorthand, or `undefined`
3162
+ /// when the longhands cannot be determined.
3163
+ public static func _pendingCssShorthandSubstitution(_ cssName: String, _ value: String) throws -> JSArray<
3164
+ (String, CssPendingSubstitution?)
3165
+ >? {
3166
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:159)
3167
+ let longhands: JSArray<String>? = try Core_ui_core_properties_index.getCssShorthandLonghands(cssName)
3168
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:160)
3169
+ if !jsTruthy(longhands) {
3170
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:161)
3171
+ return nil
3172
+ }
3173
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:164)
3174
+ let pending: CssPendingSubstitution = CssPendingSubstitution(cssName, value)
3175
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:165)
3176
+ let declarations: JSArray<(String, CssPendingSubstitution?)> = JSArray<(String, CssPendingSubstitution?)>()
3177
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:166)
3178
+ var i: Double = 0
3179
+ let length: Double = try jsUnwrap(longhands, "length").length
3180
+ while i < length {
3181
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:167)
3182
+ _ = try declarations.push(((jsUnwrap(longhands, "i").element(i) ?? "undefined"), pending))
3183
+ i += 1
3184
+ }
3185
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:170)
3186
+ return declarations
3187
+ }
3188
+ #sourceLocation()
3189
+ /// Changes whenever a shorthand is registered.
3190
+ public static func _getCssShorthandsVersion() -> Double {
3191
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:175)
3192
+ return Core_ui_core_properties_index.cssShorthandsVersion
3193
+ }
3194
+ #sourceLocation()
3195
+ /// Whether `cssName` is a registered shorthand.
3196
+ public static func _isCssShorthand(_ cssName: String) -> Bool {
3197
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:180)
3198
+ return Core_ui_core_properties_index.cssShorthandConverters.has(cssName)
3199
+ }
3200
+ #sourceLocation()
3201
+ /// Expand a shorthand declaration into its longhand declarations, or `undefined`
3202
+ /// when the property is not a shorthand, the value still has to be evaluated per
3203
+ /// view (`var()`/`calc()`), or it does not parse.
3204
+ public static func _expandCssShorthand(_ cssName: String, _ value: String) throws -> JSArray<(String, Any?)>? {
3205
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:189)
3206
+ let converter: ((Any?) throws -> JSArray<(Any?, Any?)>)? =
3207
+ FunctionCell_AnyOpt_to_JSArray_AnyOpt_AnyOpt.fromScriptOrNil(
3208
+ (Core_ui_core_properties_index.cssShorthandConverters.get(cssName) ?? nil))
3209
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:190)
3210
+ if !jsTruthy(converter) {
3211
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:191)
3212
+ return nil
3213
+ }
3214
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:194)
3215
+ if jsStringEquals("string", "string")
3216
+ && (Core_ui_core_properties_index.isCssVariableExpression(value)
3217
+ || Core_ui_core_properties_index.isCssCalcExpression(value))
3218
+ {
3219
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:195)
3220
+ return nil
3221
+ }
3222
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:198)
3223
+ do {
3224
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:199)
3225
+ let converted: JSArray<(Any?, Any?)>? = try jsCallable(converter, "converter")(value)
3226
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:200)
3227
+ let expanded: JSArray<(String, Any?)> = JSArray<(String, Any?)>()
3228
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:201)
3229
+ var i: Double = 0
3230
+ let length: Double = try jsUnwrap(converted, "length").length
3231
+ while i < length {
3232
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:202)
3233
+ _ = try expanded.push(
3234
+ (
3235
+ jsConvertedString(jsGet(jsUnwrap(jsUnwrap(converted, "i").element(i), "0").0, "cssLocalName")),
3236
+ jsUnwrap(jsUnwrap(converted, "i").element(i), "1").1
3237
+ ))
3238
+ i += 1
3239
+ }
3240
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:205)
3241
+ return expanded
3242
+ } catch {
3243
+ let e: Any? = jsCaught(error)
3244
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:207)
3245
+ try NativeScriptKit.Trace.write(
3246
+ "Failed to expand shorthand [\(cssName)] with value [\(value)]. \(jsToStringThrowing(e))",
3247
+ NativeScriptKit.Trace.categories.Style, NativeScriptKit.Trace.messageType.warn)
3248
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:209)
3249
+ return nil
3250
+ }
3251
+ }
3252
+ #sourceLocation()
3253
+ public static func isCssVariable(_ property: String) -> Bool {
3254
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:214)
3255
+ return Core_ui_core_properties_index.CSS_VARIABLE_NAME_RE.test(property)
3256
+ }
3257
+ #sourceLocation()
3258
+ public static func isCssCalcExpression(_ value: String) -> Bool {
3259
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:218)
3260
+ return jsIncludes(value, "calc(")
3261
+ }
3262
+ #sourceLocation()
3263
+ public static func isCssVariableExpression(_ value: String) -> Bool {
3264
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:222)
3265
+ return jsIncludes(value, "var(--")
3266
+ }
3267
+ #sourceLocation()
3268
+ public static func _evaluateCssVariableExpression(_ view: ViewBase?, _ cssName: String, _ value: String) throws
3269
+ -> String
3270
+ {
3271
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:230)
3272
+ if !Core_ui_core_properties_index.isCssVariableExpression(value) {
3273
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:232)
3274
+ return value
3275
+ }
3276
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:235)
3277
+ var output: String = jsTrim(value)
3278
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:238)
3279
+ var lastValue: String? = nil
3280
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:239)
3281
+ while !jsStringEquals((lastValue ?? "undefined"), output) {
3282
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:240)
3283
+ lastValue = output
3284
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:242)
3285
+ let idx: Double = jsLastIndexOf(output, "var(")
3286
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:243)
3287
+ if idx == -1 {
3288
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:244)
3289
+ continue
3290
+ }
3291
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:247)
3292
+ let endIdx: Double = Core_ui_core_properties_index.findClosingParenthesis(output, idx + 3)
3293
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:248)
3294
+ if endIdx == -1 {
3295
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:249)
3296
+ continue
3297
+ }
3298
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:252)
3299
+ let body: String = jsSubstring(output, idx + 4, endIdx)
3300
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:253)
3301
+ let commaIdx: Double = jsIndexOf(body, ",", nil)
3302
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:254)
3303
+ let cssVariableName: String = jsTrim(((commaIdx == -1 ? body : jsSubstring(body, 0, commaIdx))))
3304
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:255)
3305
+ let fallback: String = (commaIdx == -1 ? "" : jsTrim(jsSubstring(body, commaIdx + 1, nil)))
3306
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:256)
3307
+ var cssVariableValue: String? = try jsUnwrap(jsUnwrap(view, "style").style, "getCssVariable")
3308
+ .getCssVariable(cssVariableName)
3309
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:257)
3310
+ if cssVariableValue != nil && jsStringEquals(jsTrim((cssVariableValue ?? "undefined")), "initial") {
3311
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:258)
3312
+ cssVariableValue = nil
3313
+ }
3314
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:260)
3315
+ if cssVariableValue == nil && jsTruthy(fallback) {
3316
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:261)
3317
+ cssVariableValue = try Core_ui_core_properties_index._evaluateCssVariableExpression(
3318
+ view, cssName, fallback)
3319
+ }
3320
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:264)
3321
+ if !jsTruthy(cssVariableValue as Any?) || jsStringEquals((cssVariableValue ?? "undefined"), "unset") {
3322
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:265)
3323
+ cssVariableValue = Core_ui_core_properties_index.UNRESOLVED_VAR
3324
+ }
3325
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:268)
3326
+ output =
3327
+ "\(jsSubstring(output, 0, idx))\(jsToString(cssVariableValue as Any?))\(jsSubstring(output, endIdx + 1, nil))"
3328
+ }
3329
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:273)
3330
+ return (jsIncludes(output, Core_ui_core_properties_index.UNRESOLVED_VAR) ? "unset" : output)
3331
+ }
3332
+ #sourceLocation()
3333
+ public static func findClosingParenthesis(_ value: String, _ openIdx: Double) -> Double {
3334
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:277)
3335
+ var depth: Double = 0
3336
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:278)
3337
+ var i: Double = openIdx
3338
+ while i < Double(value.utf16.count) {
3339
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:279)
3340
+ let ch: String? = jsCharAtOrUndefined(value, i)
3341
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:280)
3342
+ if jsStringEquals((ch ?? "undefined"), "(") {
3343
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:281)
3344
+ depth += 1
3345
+ } else if jsStringEquals((ch ?? "undefined"), ")") && jsPreDecrement(&depth) == 0 {
3346
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:283)
3347
+ return i
3348
+ }
3349
+ i += 1
3350
+ }
3351
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:287)
3352
+ return -1
3353
+ }
3354
+ #sourceLocation()
3355
+ public static func _evaluateCssCalcExpression(_ value: String) throws -> Any? {
3356
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:295)
3357
+ if Core_ui_core_properties_index.isCssCalcExpression(value) {
3358
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:296)
3359
+ return try jsCall(
3360
+ CorePackages.calc,
3361
+ Core_ui_core_properties_index._replaceKeywordsWithValues(
3362
+ Core_ui_core_properties_index._replaceDip(value)))
3363
+ } else {
3364
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:298)
3365
+ return value
3366
+ }
3367
+ }
3368
+ #sourceLocation()
3369
+ public static func _replaceDip(_ value: String) -> String {
3370
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:304)
3371
+ return jsReplace(value, Core_ui_core_properties_index.DIP_RE, "$1")
3372
+ }
3373
+ #sourceLocation()
3374
+ public static func _replaceKeywordsWithValues(_ value: String) -> String {
3375
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:308)
3376
+ var cssValue: String = value
3377
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:309)
3378
+ if jsIncludes(cssValue, "unset") {
3379
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:310)
3380
+ cssValue = jsReplace(cssValue, Core_ui_core_properties_index.UNSET_RE, "0")
3381
+ }
3382
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:312)
3383
+ if jsIncludes(cssValue, "infinity") {
3384
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:313)
3385
+ cssValue = jsReplace(cssValue, Core_ui_core_properties_index.INFINITY_RE, "999999")
3386
+ }
3387
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:315)
3388
+ return cssValue
3389
+ }
3390
+ #sourceLocation()
3391
+ public static func getPropertiesFromMap(_ map: Any?) throws -> Any? {
3392
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:319)
3393
+ let symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(map)
3394
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:320)
3395
+ let len: Double = try jsUnwrap(symbols, "length").length
3396
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:321)
3397
+ let props: JSArray<Any?> = try JSArray<Any?>.holes(Double(jsArrayLength(len)))
3398
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:322)
3399
+ var i: Double = 0
3400
+ while i < len {
3401
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:323)
3402
+ try props[(i as Double)] = jsGet(map, (jsImplicit(jsUnwrap(symbols, "i").element(i))?.key ?? "undefined"))
3403
+ i += 1
3404
+ }
3405
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:325)
3406
+ return props
3407
+ }
3408
+ #sourceLocation()
3409
+ public static func inheritablePropertyValuesOn(_ view: ViewBase?) throws -> JSArray<Any?>? {
3410
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1527)
3411
+ let array: JSArray<Any?> = JSArray<Any?>()
3412
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1531)
3413
+ for prop in try jsIterated(
3414
+ Core_ui_core_properties_index.inheritableProperties, "inheritableProperties is not iterable")
3415
+ {
3416
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1532)
3417
+ let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
3418
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1533)
3419
+ let valueSource: Double = try jsConvertedNumber(
3420
+ ({ () throws -> Any? in
3421
+ let __v_8 = try jsUnwrap(view, "sourceKey")[jsKey: sourceKey.key]
3422
+ return jsTruthy(__v_8) ? __v_8 : ValueSource.Default
3423
+ }()))
3424
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1534)
3425
+ if !jsLenientNumberEquals(valueSource, ValueSource.Default) {
3426
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1537)
3427
+ _ = try array.push(
3428
+ JSObject([
3429
+ ("property", prop), ("value", jsUnwrap(view, "prop.name")[jsKey: jsUnwrap(prop, "name").name]),
3430
+ ]))
3431
+ }
3432
+ }
3433
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1541)
3434
+ return array
3435
+ }
3436
+ #sourceLocation()
3437
+ public static func inheritableCssPropertyValuesOn(_ style: Style?) throws -> JSArray<Any?>? {
3438
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1545)
3439
+ let array: JSArray<Any?> = JSArray<Any?>()
3440
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1549)
3441
+ for prop in try jsIterated(
3442
+ Core_ui_core_properties_index.inheritableCssProperties, "inheritableCssProperties is not iterable")
3443
+ {
3444
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1550)
3445
+ let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
3446
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1551)
3447
+ let valueSource: Double = try jsConvertedNumber(
3448
+ ({ () throws -> Any? in
3449
+ let __v_9 = try jsUnwrap(style, "sourceKey")[jsKey: sourceKey.key]
3450
+ return jsTruthy(__v_9) ? __v_9 : ValueSource.Default
3451
+ }()))
3452
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1552)
3453
+ if !jsLenientNumberEquals(valueSource, ValueSource.Default) {
3454
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1555)
3455
+ _ = try array.push(
3456
+ JSObject([
3457
+ ("property", prop), ("value", jsUnwrap(style, "prop.name")[jsKey: jsUnwrap(prop, "name").name]),
3458
+ ]))
3459
+ }
3460
+ }
3461
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1559)
3462
+ return array
3463
+ }
3464
+ #sourceLocation()
3465
+ public static var initNativeView: Any? = nil
3466
+ public static func applyPendingNativeSetters(_ view: ViewBase?) throws {
3467
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1576)
3468
+ let suspendedUpdates: JSRecord<Any?>? = try jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates
3469
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1577)
3470
+ for propertyName in jsKeysOf(suspendedUpdates) {
3471
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1578)
3472
+ if !jsTruthy(jsHasOwn(suspendedUpdates, propertyName)) {
3473
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1578)
3474
+ continue
3475
+ }
3476
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1579)
3477
+ let property: Any? = try jsUnwrap(suspendedUpdates, "propertyName")[entry: propertyName]
3478
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1580)
3479
+ let setNative: JSSymbol = try (jsCastPresent(jsGet(property, "setNative")) as JSSymbol)
3480
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1581)
3481
+ if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
3482
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1582)
3483
+ let __d_1: Any? = property
3484
+ let getDefault: JSSymbol = (try jsCastPresent((try jsGet(__d_1, "getDefault"))) as JSSymbol)
3485
+ let isStyleProperty: Bool = (try jsConvertedBool((try jsGet(__d_1, "isStyleProperty"))))
3486
+ let defaultValueKey: JSSymbol = (try jsCastPresent((try jsGet(__d_1, "defaultValueKey"))) as JSSymbol)
3487
+ let defaultValue: Any? = (try jsGet(__d_1, "defaultValue"))
3488
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1583)
3489
+ var value: Any? = nil
3490
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1584)
3491
+ if isStyleProperty {
3492
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1585)
3493
+ let style: Style? = try jsUnwrap(view, "style").style
3494
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1586)
3495
+ if try jsLenientBool(jsCallMethod(property, "isSet", jsUnwrap(view, "style").style)) {
3496
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1587)
3497
+ if !jsHasKey(style, defaultValueKey.key) {
3498
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1588)
3499
+ try jsUnwrap(style, setting: "defaultValueKey")[jsKey: defaultValueKey.key] =
3500
+ (jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
3501
+ ? jsCallMethod(jsUnwrap(view, "getDefault"), getDefault.key) : defaultValue)
3502
+ }
3503
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1590)
3504
+ value = try jsUnwrap(jsUnwrap(view, "style").style, "propertyName")[jsKey: propertyName]
3505
+ } else {
3506
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1592)
3507
+ value = try jsUnwrap(style, "defaultValueKey")[jsKey: defaultValueKey.key]
3508
+ }
3509
+ } else {
3510
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1595)
3511
+ if try jsUnwrap(property as? Property, "isSet").isSet(view) {
3512
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1596)
3513
+ if !jsHasKey(view, defaultValueKey.key) {
3514
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1597)
3515
+ try jsUnwrap(view, setting: "defaultValueKey")[jsKey: defaultValueKey.key] =
3516
+ (jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
3517
+ ? jsCallMethod(jsUnwrap(view, "getDefault"), getDefault.key) : defaultValue)
3518
+ }
3519
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1599)
3520
+ value = try jsUnwrap(view, "propertyName")[jsKey: propertyName]
3521
+ } else {
3522
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1601)
3523
+ value = try jsUnwrap(view, "defaultValueKey")[jsKey: defaultValueKey.key]
3524
+ }
3525
+ }
3526
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1605)
3527
+ _ = try jsCallMethod(jsUnwrap(view, "setNative"), setNative.key, value)
3528
+ }
3529
+ }
3530
+ }
3531
+ #sourceLocation()
3532
+ public static func applyAllNativeSetters(_ view: ViewBase?) throws {
3533
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1611)
3534
+ var symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(view)
3535
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1612)
3536
+ for symbol in try jsIterated(symbols, "symbols is not iterable") {
3537
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1613)
3538
+ let property: Property? = Core_ui_core_properties_index.symbolPropertyMap[jsKey: symbol.key] as? Property
3539
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1614)
3540
+ if !jsTruthy(property) {
3541
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1615)
3542
+ continue
3543
+ }
3544
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1618)
3545
+ let setNative: JSSymbol = try jsUnwrap(property, "setNative").setNative
3546
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1619)
3547
+ let getDefault: JSSymbol = try jsUnwrap(property, "getDefault").getDefault
3548
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1620)
3549
+ if jsHasKey(view, setNative.key) {
3550
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1621)
3551
+ let defaultValueKey: JSSymbol = try jsUnwrap(property, "defaultValueKey").defaultValueKey
3552
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1622)
3553
+ if !jsHasKey(view, defaultValueKey.key) {
3554
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1623)
3555
+ try jsUnwrap(view, setting: "defaultValueKey")[jsKey: defaultValueKey.key] =
3556
+ (jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
3557
+ ? jsCallMethod(jsUnwrap(view, "getDefault"), getDefault.key)
3558
+ : jsUnwrap(property, "defaultValue").defaultValue)
3559
+ }
3560
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1626)
3561
+ let value: Any? = try jsUnwrap(view, "symbol")[jsKey: symbol.key]
3562
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1627)
3563
+ _ = try jsCallMethod(jsUnwrap(view, "setNative"), setNative.key, value)
3564
+ }
3565
+ }
3566
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1631)
3567
+ let style: Style? = try jsUnwrap(view, "style").style
3568
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1632)
3569
+ symbols = jsOwnPropertySymbols(style)
3570
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1633)
3571
+ for symbol in try jsIterated(symbols, "symbols is not iterable") {
3572
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1634)
3573
+ let property: Any? = Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: symbol.key]
3574
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1635)
3575
+ if !jsTruthy(property) {
3576
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1636)
3577
+ continue
3578
+ }
3579
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1639)
3580
+ if try jsTruthy(
3581
+ jsUnwrap(view, "property.setNative")[
3582
+ jsKey: (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key])
3583
+ {
3584
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1640)
3585
+ let defaultValueKey: JSSymbol = try (jsCastPresent(jsGet(property, "defaultValueKey")) as JSSymbol)
3586
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1641)
3587
+ if !jsHasKey(style, defaultValueKey.key) {
3588
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1642)
3589
+ try jsUnwrap(style, setting: "defaultValueKey")[jsKey: defaultValueKey.key] =
3590
+ (jsTruthy(
3591
+ jsUnwrap(view, "property.getDefault")[
3592
+ jsKey: (jsCastPresent(jsGet(property, "getDefault")) as JSSymbol).key])
3593
+ ? jsCallMethod(
3594
+ jsUnwrap(view, "property.getDefault"),
3595
+ (jsCastPresent(jsGet(property, "getDefault")) as JSSymbol).key)
3596
+ : jsGet(property, "defaultValue"))
3597
+ }
3598
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1645)
3599
+ let value: Any? = try jsUnwrap(style, "symbol")[jsKey: symbol.key]
3600
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1646)
3601
+ _ = try jsCallMethod(
3602
+ jsUnwrap(view, "property.setNative"), (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key,
3603
+ value)
3604
+ }
3605
+ }
3606
+ }
3607
+ #sourceLocation()
3608
+ public static func resetNativeView(_ view: ViewBase?) throws {
3609
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1652)
3610
+ var symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(view)
3611
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1653)
3612
+ for symbol in try jsIterated(symbols, "symbols is not iterable") {
3613
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1654)
3614
+ let property: Property? = Core_ui_core_properties_index.symbolPropertyMap[jsKey: symbol.key] as? Property
3615
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1655)
3616
+ if !jsTruthy(property) {
3617
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1656)
3618
+ continue
3619
+ }
3620
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1659)
3621
+ if try jsTruthy(jsUnwrap(view, "property.setNative")[jsKey: jsUnwrap(property, "setNative").setNative.key])
3622
+ {
3623
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1660)
3624
+ if try jsHasKey(view, jsUnwrap(property, "defaultValueKey").defaultValueKey.key) {
3625
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1661)
3626
+ _ = try jsCallMethod(
3627
+ jsUnwrap(view, "property.setNative"), jsUnwrap(property, "setNative").setNative.key,
3628
+ jsUnwrap(view, "property.defaultValueKey")[
3629
+ jsKey: jsUnwrap(property, "defaultValueKey").defaultValueKey.key])
3630
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1662)
3631
+ _ =
3632
+ ((try? jsDelete(
3633
+ jsUnwrap(view, "property.defaultValueKey"),
3634
+ jsUnwrap(property, "defaultValueKey").defaultValueKey.key)) ?? false)
3635
+ } else {
3636
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1664)
3637
+ _ = try jsCallMethod(
3638
+ jsUnwrap(view, "property.setNative"), jsUnwrap(property, "setNative").setNative.key,
3639
+ jsUnwrap(property, "defaultValue").defaultValue)
3640
+ }
3641
+ }
3642
+ }
3643
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1669)
3644
+ let style: Style? = try jsUnwrap(view, "style").style
3645
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1671)
3646
+ symbols = jsOwnPropertySymbols(style)
3647
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1672)
3648
+ for symbol in try jsIterated(symbols, "symbols is not iterable") {
3649
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1673)
3650
+ let property: Any? = Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: symbol.key]
3651
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1674)
3652
+ if !jsTruthy(property) {
3653
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1675)
3654
+ continue
3655
+ }
3656
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1678)
3657
+ if try jsTruthy(
3658
+ jsUnwrap(view, "property.setNative")[
3659
+ jsKey: (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key])
3660
+ {
3661
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1679)
3662
+ if try jsHasKey(style, (jsCastPresent(jsGet(property, "defaultValueKey")) as JSSymbol).key) {
3663
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1680)
3664
+ _ = try jsCallMethod(
3665
+ jsUnwrap(view, "property.setNative"),
3666
+ (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key,
3667
+ jsUnwrap(style, "property.defaultValueKey")[
3668
+ jsKey: (jsCastPresent(jsGet(property, "defaultValueKey")) as JSSymbol).key])
3669
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1681)
3670
+ _ =
3671
+ ((try? jsDelete(
3672
+ jsUnwrap(style, "property.defaultValueKey"),
3673
+ (jsCastPresent(jsGet(property, "defaultValueKey")) as JSSymbol).key)) ?? false)
3674
+ } else {
3675
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1683)
3676
+ _ = try jsCallMethod(
3677
+ jsUnwrap(view, "property.setNative"),
3678
+ (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key, jsGet(property, "defaultValue"))
3679
+ }
3680
+ }
3681
+ }
3682
+ }
3683
+ #sourceLocation()
3684
+ public static func clearInheritedProperties(_ view: ViewBase?) throws {
3685
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1690)
3686
+ for prop in try jsIterated(
3687
+ Core_ui_core_properties_index.inheritableProperties, "inheritableProperties is not iterable")
3688
+ {
3689
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1691)
3690
+ let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
3691
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1692)
3692
+ if try jsStrictEquals(jsUnwrap(view, "sourceKey")[jsKey: sourceKey.key], ValueSource.Inherited) {
3693
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1693)
3694
+ _ = try jsCallMethod(
3695
+ jsUnwrap(prop, "set").set, "call", view, Core_ui_core_properties_property_shared.unsetValue)
3696
+ }
3697
+ }
3698
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1697)
3699
+ let style: Style? = try jsUnwrap(view, "style").style
3700
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1698)
3701
+ for prop in try jsIterated(
3702
+ Core_ui_core_properties_index.inheritableCssProperties, "inheritableCssProperties is not iterable")
3703
+ {
3704
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1699)
3705
+ let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
3706
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1700)
3707
+ if try jsStrictEquals(jsUnwrap(style, "sourceKey")[jsKey: sourceKey.key], ValueSource.Inherited) {
3708
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1701)
3709
+ _ = try jsCallMethod(
3710
+ jsUnwrap(prop, "setInheritedValue").setInheritedValue, "call", style,
3711
+ Core_ui_core_properties_property_shared.unsetValue)
3712
+ }
3713
+ }
3714
+ }
3715
+ #sourceLocation()
3716
+ public static func resetCSSProperties(_ style: Style?) throws {
3717
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1707)
3718
+ let symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(style)
3719
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1708)
3720
+ for symbol in try jsIterated(symbols, "symbols is not iterable") {
3721
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1709)
3722
+ var cssProperty: Any? = nil
3723
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1710)
3724
+ if jsTruthy(
3725
+ ({ () -> Any? in
3726
+ cssProperty = Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: symbol.key]
3727
+ return cssProperty
3728
+ }()))
3729
+ {
3730
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1711)
3731
+ try jsUnwrap(style, setting: "cssProperty.cssName")[
3732
+ jsKey: jsPropertyKey(jsGet(cssProperty, "cssName"))] =
3733
+ Core_ui_core_properties_property_shared.unsetValue
3734
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1712)
3735
+ if cssProperty is CssAnimationProperty {
3736
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1713)
3737
+ try jsUnwrap(style, setting: "cssProperty.keyframe")[
3738
+ jsKey: jsUnwrap(cssProperty as? CssAnimationProperty, "keyframe").keyframe] =
3739
+ Core_ui_core_properties_property_shared.unsetValue
3740
+ }
3741
+ }
3742
+ }
3743
+ }
3744
+ #sourceLocation()
3745
+ public static func propagateInheritableProperties(_ view: ViewBase?, _ child: ViewBase?) throws {
3746
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1720)
3747
+ let inheritablePropertyValues: JSArray<Any?>? = try Core_ui_core_properties_index.inheritablePropertyValuesOn(
3748
+ view)
3749
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1721)
3750
+ for pair in try jsIterated(inheritablePropertyValues, "inheritablePropertyValues is not iterable") {
3751
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1722)
3752
+ let prop: InheritedProperty? = try jsGet(pair, "property") as? InheritedProperty
3753
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1723)
3754
+ let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
3755
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1724)
3756
+ let currentValueSource: Double = try jsConvertedNumber(
3757
+ ({ () throws -> Any? in
3758
+ let __v_10 = try jsUnwrap(child, "sourceKey")[jsKey: sourceKey.key]
3759
+ return jsTruthy(__v_10) ? __v_10 : ValueSource.Default
3760
+ }()))
3761
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1725)
3762
+ if currentValueSource <= ValueSource.Inherited {
3763
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1726)
3764
+ _ = try jsCallMethod(
3765
+ jsUnwrap(prop, "setInheritedValue").setInheritedValue, "call", child, jsGet(pair, "value"))
3766
+ }
3767
+ }
3768
+ }
3769
+ #sourceLocation()
3770
+ public static func propagateInheritableCssProperties(_ parentStyle: Style?, _ childStyle: Style?) throws {
3771
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1732)
3772
+ let inheritableCssPropertyValues: JSArray<Any?>? =
3773
+ try Core_ui_core_properties_index.inheritableCssPropertyValuesOn(parentStyle)
3774
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1733)
3775
+ for pair in try jsIterated(inheritableCssPropertyValues, "inheritableCssPropertyValues is not iterable") {
3776
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1734)
3777
+ let prop: InheritedCssProperty? = try jsGet(pair, "property") as? InheritedCssProperty
3778
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1735)
3779
+ let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
3780
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1736)
3781
+ let currentValueSource: Double = try jsConvertedNumber(
3782
+ ({ () throws -> Any? in
3783
+ let __v_11 = try jsUnwrap(childStyle, "sourceKey")[jsKey: sourceKey.key]
3784
+ return jsTruthy(__v_11) ? __v_11 : ValueSource.Default
3785
+ }()))
3786
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1737)
3787
+ if currentValueSource <= ValueSource.Inherited {
3788
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1738)
3789
+ _ = try jsCallMethod(
3790
+ jsUnwrap(prop, "setInheritedValue").setInheritedValue, "call", childStyle, jsGet(pair, "value"),
3791
+ ValueSource.Inherited)
3792
+ }
3793
+ }
3794
+ }
3795
+ #sourceLocation()
3796
+ public static func getSetProperties(_ view: ViewBase?) throws -> JSArray<(String, Any?)>? {
3797
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1744)
3798
+ let result: JSArray<Any?> = JSArray<Any?>()
3799
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1746)
3800
+ let ownProps: JSArray<String>? = jsOwnPropertyNames(view)
3801
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1747)
3802
+ var i: Double = 0
3803
+ while try i < jsUnwrap(ownProps, "length").length {
3804
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1748)
3805
+ let prop: String? = try jsUnwrap(ownProps, "i").element(i)
3806
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1749)
3807
+ _ = try result.push(
3808
+ JSArray<Any?>([(prop as Any?), jsUnwrap(view, "prop")[jsKey: jsToString(prop as Any?)]]))
3809
+ i += 1
3810
+ }
3811
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1752)
3812
+ let symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(view)
3813
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1753)
3814
+ for symbol in try jsIterated(symbols, "symbols is not iterable") {
3815
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1754)
3816
+ let property: Any? = Core_ui_core_properties_index.symbolPropertyMap[jsKey: symbol.key]
3817
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1755)
3818
+ if !jsTruthy(property) {
3819
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1756)
3820
+ continue
3821
+ }
3822
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1759)
3823
+ let value: Any? = try jsUnwrap(view, "property.key")[jsKey: jsPropertyKey(jsGet(property, "key"))]
3824
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1760)
3825
+ _ = try result.push(JSArray<Any?>([jsGet(property, "name"), value]))
3826
+ }
3827
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1763)
3828
+ return jsArrayFrom(result) {
3829
+ { (__a: Any?) -> (String, Any?) in (jsLenientString(jsField(__a, "0")), jsField(__a, "1")) }($0)
3830
+ }
3831
+ }
3832
+ #sourceLocation()
3833
+ public static func getComputedCssValues(_ view: ViewBase?) throws -> JSArray<(String, Any?)>? {
3834
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1767)
3835
+ let result: JSArray<Any?> = JSArray<Any?>()
3836
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1768)
3837
+ let style: Style? = try jsUnwrap(view, "style").style
3838
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1769)
3839
+ for prop in Core_ui_core_properties_index.cssPropertyNames {
3840
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1770)
3841
+ if prop != nil && prop != nil {
3842
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1771)
3843
+ _ = try result.push(JSArray<Any?>([prop, jsUnwrap(style, "prop")[jsKey: prop]]))
3844
+ }
3845
+ }
3846
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1776)
3847
+ _ = result.push(JSArray<Any?>(["top", "auto"]))
3848
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1777)
3849
+ _ = result.push(JSArray<Any?>(["left", "auto"]))
3850
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1778)
3851
+ _ = result.push(JSArray<Any?>(["bottom", "auto"]))
3852
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1779)
3853
+ _ = result.push(JSArray<Any?>(["right", "auto"]))
3854
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1781)
3855
+ return jsArrayFrom(result) {
3856
+ { (__a: Any?) -> (String, Any?) in (jsLenientString(jsField(__a, "0")), jsField(__a, "1")) }($0)
3857
+ }
3858
+ }
3859
+ }
3860
+
3861
+ #sourceLocation()
3862
+ public func __init_Core_ui_core_properties_index() {
3863
+ jsReport {
3864
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:20)
3865
+ Core_ui_core_properties_index.HAS_OWN = try jsGet(JSPrototypes.objectPrototype, "hasOwnProperty")
3866
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:32)
3867
+ Core_ui_core_properties_index.inheritableProperties = JSArray<InheritedProperty>()
3868
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:33)
3869
+ Core_ui_core_properties_index.inheritableCssProperties = JSArray<InheritedCssProperty>()
3870
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:44)
3871
+ Core_ui_core_properties_index.cssValueSourceKeys = jsRecordOf(
3872
+ jsObjectCreate(jsNull), as: JSRecord<JSSymbol>.self
3873
+ ) { ($0 as! JSSymbol) }
3874
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:527)
3875
+ try jsSet(JSPrototypes.of(Property.self), "isStyleProperty", false)
3876
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1029)
3877
+ try jsSet(JSPrototypes.of(CssProperty.self), "isStyleProperty", true)
3878
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1251)
3879
+ try jsSet(JSPrototypes.of(CssAnimationProperty.self), "isStyleProperty", true)
3880
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1253)
3881
+
3882
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1564)
3883
+ Core_ui_core_properties_index.initNativeView = FunctionCell_ViewBaseOpt_to_Void.scriptOrNil(
3884
+ "", 1,
3885
+ { (view: ViewBase?) throws -> Void in
3886
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1565)
3887
+ if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
3888
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1566)
3889
+ try Core_ui_core_properties_index.applyPendingNativeSetters(view)
3890
+ } else {
3891
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1568)
3892
+ try Core_ui_core_properties_index.applyAllNativeSetters(view)
3893
+ }
3894
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1571)
3895
+ try jsUnwrap(view, setting: "_suspendedUpdates")._suspendedUpdates = JSRecord<Any?>()
3896
+ })
3897
+ }
3898
+ }
3899
+ #sourceLocation()