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

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 +624 -0
  46. package/dist/kotlin/app-modules.js +111 -0
  47. package/dist/kotlin/arguments.js +397 -0
  48. package/dist/kotlin/assignment.js +226 -0
  49. package/dist/kotlin/builtins.js +575 -0
  50. package/dist/kotlin/calls.js +516 -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 +117 -0
  54. package/dist/kotlin/class-declaration.js +308 -0
  55. package/dist/kotlin/class-fields.js +361 -0
  56. package/dist/kotlin/class-methods.js +213 -0
  57. package/dist/kotlin/classes.js +333 -0
  58. package/dist/kotlin/components.js +445 -0
  59. package/dist/kotlin/construction.js +228 -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 +461 -0
  68. package/dist/kotlin/functions.js +474 -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 +184 -0
  77. package/dist/kotlin/mixins.js +103 -0
  78. package/dist/kotlin/modules.js +769 -0
  79. package/dist/kotlin/names.js +274 -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 +445 -0
  93. package/dist/kotlin/optional-chains.js +279 -0
  94. package/dist/kotlin/overrides.js +825 -0
  95. package/dist/kotlin/placement.js +746 -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 +806 -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 +655 -0
  107. package/dist/kotlin/untyped-values.js +354 -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 +1040 -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 +425 -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 +180 -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 +878 -0
  213. package/dist/semantics/top-names.js +59 -0
  214. package/dist/semantics/translator-methods.js +597 -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 +456 -0
  219. package/dist/semantics/worker-state.js +198 -0
  220. package/dist/swift/access.js +749 -0
  221. package/dist/swift/app-modules.js +41 -0
  222. package/dist/swift/arguments.js +236 -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 +139 -0
  231. package/dist/swift/class-declaration.js +282 -0
  232. package/dist/swift/class-fields.js +360 -0
  233. package/dist/swift/class-methods.js +229 -0
  234. package/dist/swift/classes.js +522 -0
  235. package/dist/swift/components.js +386 -0
  236. package/dist/swift/construction.js +287 -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 +568 -0
  244. package/dist/swift/from-any.js +316 -0
  245. package/dist/swift/functions.js +487 -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 +244 -0
  255. package/dist/swift/marks.js +212 -0
  256. package/dist/swift/members.js +253 -0
  257. package/dist/swift/method-values.js +177 -0
  258. package/dist/swift/mixins.js +113 -0
  259. package/dist/swift/modules.js +969 -0
  260. package/dist/swift/names.js +371 -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 +571 -0
  274. package/dist/swift/optional-chains.js +405 -0
  275. package/dist/swift/parameters.js +210 -0
  276. package/dist/swift/placement.js +896 -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 +886 -0
  287. package/dist/swift/type-facts.js +539 -0
  288. package/dist/swift/type-tests.js +211 -0
  289. package/dist/swift/types.js +659 -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 +668 -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 +651 -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 +518 -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 +1237 -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 +700 -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 +326 -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 +30789 -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 +3238 -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 +1046 -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 +64 -0
  1569. package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +1640 -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 +470 -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 +340 -0
  1579. package/kit-apple/Sources/NativeScriptKit/Runtime/Inspect.swift +758 -0
  1580. package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +42 -0
  1581. package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +728 -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 +588 -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 +2061 -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,4716 @@
1
+ // Generated from @nativescript/core by tools/kit: edit core, not this file.
2
+ package org.nativescript.kit
3
+
4
+ import android.animation.Animator
5
+ import android.animation.AnimatorSet
6
+ import android.animation.ObjectAnimator
7
+ import android.animation.StateListAnimator
8
+ import android.app.Activity
9
+ import android.app.Dialog
10
+ import android.content.Context
11
+ import android.content.DialogInterface
12
+ import android.content.res.Configuration
13
+ import android.content.res.Resources
14
+ import android.graphics.Color as android_graphics_Color
15
+ import android.graphics.Rect
16
+ import android.graphics.drawable.ColorDrawable
17
+ import android.graphics.drawable.Drawable
18
+ import android.os.Bundle
19
+ import android.view.LayoutInflater
20
+ import android.view.MotionEvent
21
+ import android.view.View as android_view_View
22
+ import android.view.ViewGroup
23
+ import android.view.Window
24
+ import android.view.WindowInsetsController
25
+ import android.view.WindowManager
26
+ import androidx.activity.OnBackPressedCallback as androidx_activity_OnBackPressedCallback
27
+ import androidx.annotation.AnyThread
28
+ import androidx.annotation.UiThread
29
+ import androidx.appcompat.app.AppCompatActivity
30
+ import androidx.appcompat.app.AppCompatDialog
31
+ import androidx.fragment.app.DialogFragment as androidx_fragment_app_DialogFragment
32
+ import androidx.fragment.app.FragmentActivity
33
+ import androidx.fragment.app.FragmentManager
34
+ import java.nio.ByteBuffer
35
+ import java.util.Arrays
36
+ import org.nativescript.widgets.BorderDrawable
37
+ import org.nativescript.widgets.CommonLayoutParams
38
+ import org.nativescript.widgets.ContentLayout
39
+ import org.nativescript.widgets.LayoutBase as org_nativescript_widgets_LayoutBase
40
+ import org.nativescript.widgets.OriginPoint
41
+ import org.nativescript.widgets.Utils
42
+ import org.nativescript.widgets.ViewHelper as org_nativescript_widgets_ViewHelper
43
+
44
+ @UiThread
45
+ class OnBackPressedCallback : androidx_activity_OnBackPressedCallback {
46
+ private val __realm: JSRealm? = JSRealm.current()
47
+
48
+ constructor(p0: Boolean) : super(p0)
49
+
50
+ @AnyThread
51
+ override fun handleOnBackPressed() {
52
+ jsElsewhere(__realm)?.let {
53
+ return it.later { this.handleOnBackPressed() }
54
+ }
55
+ jsReport {
56
+ jsOnMainThread {
57
+ val dialog: Any? =
58
+ jsCallMethodIfPresent(jsGet(this, "_dialog"), "get")
59
+ if (!jsTruthy(dialog)) {
60
+ kotlin.run { this.isEnabled = false }
61
+ return
62
+ }
63
+ val view: Any? = jsGet(jsGet(dialog, "fragment"), "owner")
64
+ val args: Any? =
65
+ jsObjectOf(
66
+ "eventName" to "activityBackPressed",
67
+ "object" to view,
68
+ "activity" to jsGet(view, "_context"),
69
+ "cancel" to false,
70
+ )
71
+ jsCallMethod(
72
+ jsGet(Core_globals_global_utils.getNativeScriptGlobals(), "events"),
73
+ "notify",
74
+ args,
75
+ )
76
+ if (jsTruthy(jsConvertedBooleanOrNull(jsGet(args, "cancel")))) {
77
+ return
78
+ }
79
+ jsCallMethod(view, "notify", args)
80
+ if (!jsTruthy(jsConvertedBooleanOrNull(jsGet(args, "cancel")))) {
81
+ kotlin.run { this.isEnabled = false }
82
+ jsCallMethod(
83
+ jsCallMethod(dialog, "getOnBackPressedDispatcher"),
84
+ "onBackPressed",
85
+ )
86
+ kotlin.run { this.isEnabled = true }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+
93
+ @UiThread
94
+ class TouchListenerImpl : android_view_View.OnTouchListener {
95
+ private val __realm: JSRealm? = JSRealm.current()
96
+ @JvmField var owner: JSWeakRef<View>? = null
97
+
98
+ constructor(owner: View?) : super() {
99
+ this.owner = JSWeakRef<View>(jsWeakRefTarget(owner))
100
+ }
101
+
102
+ @AnyThread
103
+ override fun onTouch(view: android_view_View?, event: MotionEvent?): Boolean {
104
+ jsElsewhere(__realm)?.let {
105
+ return it.await { this.onTouch(view, event) }
106
+ }
107
+ return jsReportedOr(false) {
108
+ jsOnMainThread {
109
+ val owner: View? = (this.owner ?: jsCannotRead("get")).get()
110
+ if (!jsTruthy(owner)) {
111
+ return false
112
+ }
113
+ (owner ?: jsCannotRead("handleGestureTouch")).handleGestureTouch(
114
+ event
115
+ )
116
+ val nativeView: android_view_View? =
117
+ jsCast(
118
+ (owner ?: jsCannotRead("nativeViewProtected")).nativeViewProtected,
119
+ android_view_View::class.java,
120
+ )
121
+ if (
122
+ !jsTruthy(nativeView) ||
123
+ !jsTruthy(jsJavaGet((nativeView ?: jsObjectRequired()), "onTouchEvent"))
124
+ ) {
125
+ return false
126
+ }
127
+ return (nativeView ?: jsCannotRead("onTouchEvent")).onTouchEvent(
128
+ event
129
+ )
130
+ }
131
+ }
132
+ }
133
+ }
134
+
135
+ @UiThread
136
+ class DialogImpl : AppCompatDialog {
137
+ private val __realm: JSRealm? = JSRealm.current()
138
+ @JvmField var fragment: DialogFragmentImpl? = null
139
+
140
+ constructor(
141
+ fragment: DialogFragmentImpl?,
142
+ context: Context?,
143
+ themeResId: Double,
144
+ ) : super((context ?: jsObjectRequired()), themeResId.toLong().toInt()) {
145
+ this.fragment = fragment
146
+ if (
147
+ (Core_utils_constants.SDK_VERSION >= 33.0 &&
148
+ jsTruthy(OnBackPressedCallback::class.java))
149
+ ) {
150
+ val callback: Any? = OnBackPressedCallback(true)
151
+ jsSet(callback, "_dialog", JSWeakRef<DialogImpl>(this))
152
+ jsCallMethod(this.onBackPressedDispatcher, "addCallback", this, callback)
153
+ }
154
+ }
155
+
156
+ @AnyThread
157
+ override fun onDetachedFromWindow() {
158
+ jsElsewhere(__realm)?.let {
159
+ return it.later { this.onDetachedFromWindow() }
160
+ }
161
+ jsReport {
162
+ jsOnMainThread {
163
+ super.onDetachedFromWindow()
164
+ this.fragment = null
165
+ }
166
+ }
167
+ }
168
+
169
+ @AnyThread
170
+ override fun onBackPressed() {
171
+ jsElsewhere(__realm)?.let {
172
+ return it.later { this.onBackPressed() }
173
+ }
174
+ jsReport {
175
+ jsOnMainThread {
176
+ if (Core_utils_constants.SDK_VERSION >= 33.0) {
177
+ super.onBackPressed()
178
+ return
179
+ }
180
+ val view: View? = (this.fragment ?: jsCannotRead("owner")).owner
181
+ val args: Any? =
182
+ jsObjectOf(
183
+ "eventName" to "activityBackPressed",
184
+ "object" to view,
185
+ "activity" to (view ?: jsCannotRead("_context"))._context,
186
+ "cancel" to false,
187
+ )
188
+ jsCallMethod(
189
+ jsGet(Core_globals_global_utils.getNativeScriptGlobals(), "events"),
190
+ "notify",
191
+ args,
192
+ )
193
+ if (jsTruthy(jsConvertedBooleanOrNull(jsGet(args, "cancel")))) {
194
+ return
195
+ }
196
+ (view ?: jsCannotRead("notify")).notify(args)
197
+ if (
198
+ !jsTruthy(jsConvertedBooleanOrNull(jsGet(args, "cancel"))) &&
199
+ !((view ?: jsCannotRead("onBackPressed")).onBackPressed())
200
+ ) {
201
+ super.onBackPressed()
202
+ }
203
+ }
204
+ }
205
+ }
206
+ }
207
+
208
+ @UiThread
209
+ class DialogFragmentImpl : androidx_fragment_app_DialogFragment {
210
+ private val __realm: JSRealm? = JSRealm.current()
211
+ @JvmField var owner: View? = null
212
+ @JvmField var _fullscreen: Boolean = false
213
+ @JvmField var _windowSoftInputMode: Double = 0.0
214
+ @JvmField var _animated: Boolean = false
215
+ @JvmField var _stretched: Boolean = false
216
+ @JvmField var _cancelable: Boolean = false
217
+ @JvmField var _nightMode: Double = 0.0
218
+ lateinit var _shownCallback: () -> Unit
219
+ lateinit var _dismissCallback: () -> Unit
220
+ @JvmField var activity: JSWeakRef<Activity>? = null
221
+
222
+ constructor() : super()
223
+
224
+ @AnyThread
225
+ override fun onCreate(savedInstanceState: Bundle?) {
226
+ jsElsewhere(__realm)?.let {
227
+ return it.later { this.onCreate(savedInstanceState) }
228
+ }
229
+ jsReport {
230
+ jsOnMainThread {
231
+ super.onCreate(savedInstanceState)
232
+ val ownerId: Double =
233
+ ((this.getArguments()?.getInt(Core_ui_core_view_index.DOMID)
234
+ ?: jsObjectRequired())
235
+ ?.toDouble() ?: Double.NaN)
236
+ val options: Any? = Core_ui_core_view_index.getModalOptions(ownerId)
237
+ if (savedInstanceState != null && jsStrictEquals(options, null)) {
238
+ this.dismissAllowingStateLoss()
239
+ }
240
+ }
241
+ }
242
+ }
243
+
244
+ @AnyThread
245
+ override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
246
+ jsElsewhere(__realm)?.let {
247
+ return it.await { this.onCreateDialog(savedInstanceState) }
248
+ }
249
+ jsOnMainThread {
250
+ val __result: Dialog? =
251
+ (fun(): Dialog? {
252
+ val ownerId: Double =
253
+ (this.getArguments() ?: jsCannotRead("getInt"))
254
+ .getInt(Core_ui_core_view_index.DOMID)
255
+ .toDouble()
256
+ val options: Any? =
257
+ Core_ui_core_view_index.getModalOptions(ownerId)
258
+ this.owner = jsCast(jsGet(options, "owner"), View::class.java)
259
+ (this.owner ?: jsCannotSet("_dialogFragment"))._dialogFragment =
260
+ this
261
+ this._fullscreen =
262
+ (jsConvertedBooleanOrNull(jsGet(options, "fullscreen")) ?: false)
263
+ this._animated =
264
+ (jsConvertedBooleanOrNull(jsGet(options, "animated")) ?: false)
265
+ this._cancelable =
266
+ (jsConvertedBooleanOrNull(jsGet(options, "cancelable")) ?: false)
267
+ this._stretched =
268
+ (jsConvertedBooleanOrNull(jsGet(options, "stretched")) ?: false)
269
+ this._dismissCallback =
270
+ jsFunction0<Unit>(jsGet(options, "dismissCallback"))
271
+ this._shownCallback =
272
+ jsFunction0<Unit>(jsGet(options, "shownCallback"))
273
+ this._windowSoftInputMode =
274
+ (jsConvertedNumberOrNull(jsGet(options, "windowSoftInputMode"))
275
+ ?: Double.NaN)
276
+ this.setStyle(
277
+ androidx_fragment_app_DialogFragment.STYLE_NO_TITLE,
278
+ 0,
279
+ )
280
+ val theme: Double =
281
+ (if (this._fullscreen)
282
+ (this.getActivity() ?: jsCannotRead("getApplicationInfo"))
283
+ .getApplicationInfo()
284
+ .theme
285
+ .toDouble()
286
+ else this.getTheme().toDouble())
287
+ val dialog: DialogImpl =
288
+ DialogImpl(
289
+ this,
290
+ ((this.getActivity() ?: jsObjectRequired()) as Context),
291
+ theme,
292
+ )
293
+ if (this._fullscreen) {
294
+ this._nightMode = this.getNightMode()
295
+ Core_utils_native_helper.android.enableEdgeToEdge(
296
+ ((this.getActivity() ?: jsObjectRequired()) as AppCompatActivity),
297
+ (dialog.getWindow() ?: JSNull),
298
+ null,
299
+ )
300
+ }
301
+ if (!this._fullscreen && !this._stretched) {
302
+ (this.owner ?: jsCannotSet("horizontalAlignment"))
303
+ .horizontalAlignment = "center"
304
+ (this.owner ?: jsCannotSet("verticalAlignment"))
305
+ .verticalAlignment = "middle"
306
+ } else {
307
+ (this.owner ?: jsCannotSet("horizontalAlignment"))
308
+ .horizontalAlignment = "stretch"
309
+ (this.owner ?: jsCannotSet("verticalAlignment"))
310
+ .verticalAlignment = "stretch"
311
+ }
312
+ if (this._animated) {
313
+ (dialog.getWindow() ?: jsCannotRead("setWindowAnimations"))
314
+ .setWindowAnimations(
315
+ Core_ui_core_view_index.styleAnimationDialog.toLong().toInt()
316
+ )
317
+ }
318
+ dialog.setCanceledOnTouchOutside(this._cancelable)
319
+ return dialog
320
+ })()
321
+ return jsJavaResult(__result, "onCreateDialog")
322
+ }
323
+ }
324
+
325
+ @AnyThread
326
+ override fun onCreateView(
327
+ inflater: LayoutInflater,
328
+ container: ViewGroup?,
329
+ savedInstanceState: Bundle?,
330
+ ): android_view_View? {
331
+ jsElsewhere(__realm)?.let {
332
+ return it.await { this.onCreateView(inflater, container, savedInstanceState) }
333
+ }
334
+ return jsReportedOr(null) {
335
+ jsOnMainThread {
336
+ val owner: View? = this.owner
337
+ this.activity =
338
+ jsAs<JSWeakRef<Activity>?>(
339
+ JSWeakRef<FragmentActivity>((this.getActivity() ?: jsObjectRequired()))
340
+ )
341
+ (owner ?: jsCannotRead("_setupAsRootView"))._setupAsRootView(
342
+ (this.getActivity() ?: JSNull)
343
+ )
344
+ (owner ?: jsCannotSet("_isAddedToNativeVisualTree"))
345
+ ._isAddedToNativeVisualTree = true
346
+ val window: Window? =
347
+ (this.getDialog() ?: jsCannotRead("getWindow")).getWindow()
348
+ (window ?: jsCannotRead("setSoftInputMode")).setSoftInputMode(
349
+ this._windowSoftInputMode.toLong().toInt()
350
+ )
351
+ return jsCast(
352
+ (owner ?: jsCannotRead("nativeViewProtected")).nativeViewProtected,
353
+ android_view_View::class.java,
354
+ )
355
+ }
356
+ }
357
+ }
358
+
359
+ @AnyThread
360
+ override fun onStart() {
361
+ jsElsewhere(__realm)?.let {
362
+ return it.later { this.onStart() }
363
+ }
364
+ jsReport {
365
+ jsOnMainThread {
366
+ super.onStart()
367
+ if (this._fullscreen) {
368
+ val window: Window? =
369
+ (this.getDialog() ?: jsCannotRead("getWindow")).getWindow()
370
+ val length: Double =
371
+ ViewGroup.LayoutParams.MATCH_PARENT.toDouble()
372
+ (window ?: jsCannotRead("setLayout")).setLayout(
373
+ length.toLong().toInt(),
374
+ length.toLong().toInt(),
375
+ )
376
+ (window ?: jsCannotRead("setBackgroundDrawable"))
377
+ .setBackgroundDrawable(ColorDrawable(android_graphics_Color.WHITE))
378
+ }
379
+ val owner: View? = this.owner
380
+ if (
381
+ (jsTruthy(owner) && !((owner ?: jsCannotRead("isLoaded")).isLoaded))
382
+ ) {
383
+ (owner ?: jsCannotRead("callLoaded")).callLoaded()
384
+ }
385
+ this._shownCallback()
386
+ }
387
+ }
388
+ }
389
+
390
+ fun getNightMode(): Double {
391
+ return jsBitAnd(
392
+ this.getResources().getConfiguration().uiMode.toDouble(),
393
+ Configuration.UI_MODE_NIGHT_MASK.toDouble(),
394
+ )
395
+ }
396
+
397
+ @AnyThread
398
+ override fun onConfigurationChanged(newConfig: Configuration) {
399
+ jsElsewhere(__realm)?.let {
400
+ return it.later { this.onConfigurationChanged(newConfig) }
401
+ }
402
+ jsReport {
403
+ jsOnMainThread {
404
+ val newConfig: Configuration? = newConfig
405
+ super.onConfigurationChanged((newConfig ?: jsObjectRequired()))
406
+ if (!this._fullscreen) {
407
+ return
408
+ }
409
+ val nightMode: Double =
410
+ jsBitAnd(
411
+ (newConfig ?: jsCannotRead("uiMode")).uiMode.toDouble(),
412
+ Configuration.UI_MODE_NIGHT_MASK.toDouble(),
413
+ )
414
+ if (this._nightMode == nightMode) {
415
+ return
416
+ }
417
+ this._nightMode = nightMode
418
+ val activity: FragmentActivity? = this.getActivity()
419
+ val window: Window? =
420
+ (this.getDialog()?.getWindow() ?: jsObjectRequired())
421
+ if ((jsTruthy(activity) && jsTruthy(window))) {
422
+ Core_utils_native_helper.android.enableEdgeToEdge(
423
+ ((activity ?: jsObjectRequired()) as AppCompatActivity),
424
+ window,
425
+ null,
426
+ )
427
+ }
428
+ }
429
+ }
430
+ }
431
+
432
+ @Suppress("DEPRECATION")
433
+ @AnyThread
434
+ override fun onDismiss(dialog: DialogInterface) {
435
+ jsElsewhere(__realm)?.let {
436
+ return it.later { this.onDismiss(dialog) }
437
+ }
438
+ jsReport {
439
+ jsOnMainThread {
440
+ val dialog: DialogInterface? = dialog
441
+ super.onDismiss((dialog ?: jsObjectRequired()))
442
+ val manager: FragmentManager? = this.getFragmentManager()
443
+ val activity: Activity? = this.activity?.get()
444
+ if (
445
+ (jsTruthy(manager) && !jsTruthy(activity?.isChangingConfigurations()))
446
+ ) {
447
+ Core_ui_core_view_index.removeModal(
448
+ ((this.owner ?: jsCannotRead("_domId"))._domId ?: Double.NaN)
449
+ )
450
+ this._dismissCallback()
451
+ }
452
+ val owner: View? = this.owner
453
+ if (
454
+ (jsTruthy(owner) && (owner ?: jsCannotRead("isLoaded")).isLoaded)
455
+ ) {
456
+ (owner ?: jsCannotRead("callUnloaded")).callUnloaded()
457
+ }
458
+ }
459
+ }
460
+ }
461
+
462
+ @AnyThread
463
+ override fun onDestroy() {
464
+ jsElsewhere(__realm)?.let {
465
+ return it.later { this.onDestroy() }
466
+ }
467
+ jsReport {
468
+ jsOnMainThread {
469
+ super.onDestroy()
470
+ val owner: View? = this.owner
471
+ val activity: Activity? = this.activity?.get()
472
+ if (!jsTruthy(activity?.isChangingConfigurations())) {
473
+ this.activity = null
474
+ }
475
+ if (jsTruthy(owner)) {
476
+ if ((owner ?: jsCannotRead("isLoaded")).isLoaded) {
477
+ (owner ?: jsCannotRead("callUnloaded")).callUnloaded()
478
+ }
479
+ (owner ?: jsCannotSet("_isAddedToNativeVisualTree"))
480
+ ._isAddedToNativeVisualTree = false
481
+ (owner ?: jsCannotRead("_tearDownUI"))._tearDownUI(true)
482
+ }
483
+ }
484
+ }
485
+ }
486
+ }
487
+
488
+ @UiThread
489
+ class Inset : JSStringConvertible, JSToJSON, JSExpando {
490
+ @JvmField var view: JSDataView? = null
491
+ @JvmField var data: JSArrayBuffer? = null
492
+
493
+ constructor(data: ByteBuffer?) {
494
+ this.data =
495
+ jsCast(JSArrayBuffer.from((data as ByteBuffer)), JSArrayBuffer::class.java)
496
+ this.view = JSDataView((this.data ?: jsObjectRequired()))
497
+ }
498
+
499
+ var left: Double
500
+ get() {
501
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
502
+ Core_ui_core_view_index.INSET_LEFT,
503
+ true,
504
+ )
505
+ }
506
+ set(value) {
507
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
508
+ Core_ui_core_view_index.INSET_LEFT,
509
+ value,
510
+ true,
511
+ )
512
+ }
513
+
514
+ var top: Double
515
+ get() {
516
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
517
+ Core_ui_core_view_index.INSET_TOP,
518
+ true,
519
+ )
520
+ }
521
+ set(value) {
522
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
523
+ Core_ui_core_view_index.INSET_TOP,
524
+ value,
525
+ true,
526
+ )
527
+ }
528
+
529
+ var right: Double
530
+ get() {
531
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
532
+ Core_ui_core_view_index.INSET_RIGHT,
533
+ true,
534
+ )
535
+ }
536
+ set(value) {
537
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
538
+ Core_ui_core_view_index.INSET_RIGHT,
539
+ value,
540
+ true,
541
+ )
542
+ }
543
+
544
+ var bottom: Double
545
+ get() {
546
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
547
+ Core_ui_core_view_index.INSET_BOTTOM,
548
+ true,
549
+ )
550
+ }
551
+ set(value) {
552
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
553
+ Core_ui_core_view_index.INSET_BOTTOM,
554
+ value,
555
+ true,
556
+ )
557
+ }
558
+
559
+ var imeBottom: Double
560
+ get() {
561
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
562
+ Core_ui_core_view_index.INSET_BOTTOM_IME,
563
+ true,
564
+ )
565
+ }
566
+ set(value) {
567
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
568
+ Core_ui_core_view_index.INSET_BOTTOM_IME,
569
+ value,
570
+ true,
571
+ )
572
+ }
573
+
574
+ var leftConsumed: Boolean
575
+ get() {
576
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
577
+ Core_ui_core_view_index.INSET_LEFT_CONSUMED,
578
+ true,
579
+ ) > 0.0
580
+ }
581
+ set(value) {
582
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
583
+ Core_ui_core_view_index.INSET_LEFT_CONSUMED,
584
+ (if (value) 1.0 else 0.0),
585
+ true,
586
+ )
587
+ }
588
+
589
+ var topConsumed: Boolean
590
+ get() {
591
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
592
+ Core_ui_core_view_index.INSET_TOP_CONSUMED,
593
+ true,
594
+ ) > 0.0
595
+ }
596
+ set(value) {
597
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
598
+ Core_ui_core_view_index.INSET_TOP_CONSUMED,
599
+ (if (value) 1.0 else 0.0),
600
+ true,
601
+ )
602
+ }
603
+
604
+ var rightConsumed: Boolean
605
+ get() {
606
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
607
+ Core_ui_core_view_index.INSET_RIGHT_CONSUMED,
608
+ true,
609
+ ) > 0.0
610
+ }
611
+ set(value) {
612
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
613
+ Core_ui_core_view_index.INSET_RIGHT_CONSUMED,
614
+ (if (value) 1.0 else 0.0),
615
+ true,
616
+ )
617
+ }
618
+
619
+ var bottomConsumed: Boolean
620
+ get() {
621
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
622
+ Core_ui_core_view_index.INSET_BOTTOM_CONSUMED,
623
+ true,
624
+ ) > 0.0
625
+ }
626
+ set(value) {
627
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
628
+ Core_ui_core_view_index.INSET_BOTTOM_CONSUMED,
629
+ (if (value) 1.0 else 0.0),
630
+ true,
631
+ )
632
+ }
633
+
634
+ var imeBottomConsumed: Boolean
635
+ get() {
636
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
637
+ Core_ui_core_view_index.INSET_BOTTOM_IME_CONSUMED,
638
+ true,
639
+ ) > 0.0
640
+ }
641
+ set(value) {
642
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
643
+ Core_ui_core_view_index.INSET_BOTTOM_IME_CONSUMED,
644
+ (if (value) 1.0 else 0.0),
645
+ true,
646
+ )
647
+ }
648
+
649
+ var cutoutLeft: Double
650
+ get() {
651
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
652
+ Core_ui_core_view_index.INSET_CUTOUT_LEFT,
653
+ true,
654
+ )
655
+ }
656
+ set(value) {
657
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
658
+ Core_ui_core_view_index.INSET_CUTOUT_LEFT,
659
+ value,
660
+ true,
661
+ )
662
+ }
663
+
664
+ var cutoutTop: Double
665
+ get() {
666
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
667
+ Core_ui_core_view_index.INSET_CUTOUT_TOP,
668
+ true,
669
+ )
670
+ }
671
+ set(value) {
672
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
673
+ Core_ui_core_view_index.INSET_CUTOUT_TOP,
674
+ value,
675
+ true,
676
+ )
677
+ }
678
+
679
+ var cutoutRight: Double
680
+ get() {
681
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
682
+ Core_ui_core_view_index.INSET_CUTOUT_RIGHT,
683
+ true,
684
+ )
685
+ }
686
+ set(value) {
687
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
688
+ Core_ui_core_view_index.INSET_CUTOUT_RIGHT,
689
+ value,
690
+ true,
691
+ )
692
+ }
693
+
694
+ var cutoutBottom: Double
695
+ get() {
696
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
697
+ Core_ui_core_view_index.INSET_CUTOUT_BOTTOM,
698
+ true,
699
+ )
700
+ }
701
+ set(value) {
702
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
703
+ Core_ui_core_view_index.INSET_CUTOUT_BOTTOM,
704
+ value,
705
+ true,
706
+ )
707
+ }
708
+
709
+ var cutoutLeftConsumed: Boolean
710
+ get() {
711
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
712
+ Core_ui_core_view_index.INSET_CUTOUT_LEFT_CONSUMED,
713
+ true,
714
+ ) > 0.0
715
+ }
716
+ set(value) {
717
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
718
+ Core_ui_core_view_index.INSET_CUTOUT_LEFT_CONSUMED,
719
+ (if (value) 1.0 else 0.0),
720
+ true,
721
+ )
722
+ }
723
+
724
+ var cutoutTopConsumed: Boolean
725
+ get() {
726
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
727
+ Core_ui_core_view_index.INSET_CUTOUT_TOP_CONSUMED,
728
+ true,
729
+ ) > 0.0
730
+ }
731
+ set(value) {
732
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
733
+ Core_ui_core_view_index.INSET_CUTOUT_TOP_CONSUMED,
734
+ (if (value) 1.0 else 0.0),
735
+ true,
736
+ )
737
+ }
738
+
739
+ var cutoutRightConsumed: Boolean
740
+ get() {
741
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
742
+ Core_ui_core_view_index.INSET_CUTOUT_RIGHT_CONSUMED,
743
+ true,
744
+ ) > 0.0
745
+ }
746
+ set(value) {
747
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
748
+ Core_ui_core_view_index.INSET_CUTOUT_RIGHT_CONSUMED,
749
+ (if (value) 1.0 else 0.0),
750
+ true,
751
+ )
752
+ }
753
+
754
+ var cutoutBottomConsumed: Boolean
755
+ get() {
756
+ return (this.view ?: jsCannotRead("getInt32")).getInt32(
757
+ Core_ui_core_view_index.INSET_CUTOUT_BOTTOM_CONSUMED,
758
+ true,
759
+ ) > 0.0
760
+ }
761
+ set(value) {
762
+ (this.view ?: jsCannotRead("setInt32")).setInt32(
763
+ Core_ui_core_view_index.INSET_CUTOUT_BOTTOM_CONSUMED,
764
+ (if (value) 1.0 else 0.0),
765
+ true,
766
+ )
767
+ }
768
+
769
+ override fun toString(): String {
770
+ return ("Inset: left=${js(this.left)}, top=${js(this.top)}, right=${js(this.right)}, bottom=${js(this.bottom)}, imeBottom=${js(this.imeBottom)}, " +
771
+ "leftConsumed=${js(this.leftConsumed)}, topConsumed=${js(this.topConsumed)}, " +
772
+ "rightConsumed=${js(this.rightConsumed)}, bottomConsumed=${js(this.bottomConsumed)}, imeBottomConsumed=${js(this.imeBottomConsumed)}, " +
773
+ "cutoutLeft=${js(this.cutoutLeft)}, cutoutTop=${js(this.cutoutTop)}, cutoutRight=${js(this.cutoutRight)}, cutoutBottom=${js(this.cutoutBottom)}, " +
774
+ "cutoutLeftConsumed=${js(this.cutoutLeftConsumed)}, cutoutTopConsumed=${js(this.cutoutTopConsumed)}, " +
775
+ "cutoutRightConsumed=${js(this.cutoutRightConsumed)}, cutoutBottomConsumed=${js(this.cutoutBottomConsumed)}")
776
+ }
777
+
778
+ fun toJSON(): Object_left_top_right_bottom_imeBottom_leftConsumed_topConsumed__18? {
779
+ return Object_left_top_right_bottom_imeBottom_leftConsumed_topConsumed__18(
780
+ left = this.left,
781
+ top = this.top,
782
+ right = this.right,
783
+ bottom = this.bottom,
784
+ imeBottom = this.imeBottom,
785
+ leftConsumed = this.leftConsumed,
786
+ topConsumed = this.topConsumed,
787
+ rightConsumed = this.rightConsumed,
788
+ bottomConsumed = this.bottomConsumed,
789
+ imeBottomConsumed = this.imeBottomConsumed,
790
+ cutoutLeft = this.cutoutLeft,
791
+ cutoutTop = this.cutoutTop,
792
+ cutoutRight = this.cutoutRight,
793
+ cutoutBottom = this.cutoutBottom,
794
+ cutoutLeftConsumed = this.cutoutLeftConsumed,
795
+ cutoutTopConsumed = this.cutoutTopConsumed,
796
+ cutoutRightConsumed = this.cutoutRightConsumed,
797
+ cutoutBottomConsumed = this.cutoutBottomConsumed,
798
+ )
799
+ }
800
+
801
+ override var jsExpando: JSObject? = null
802
+
803
+ override fun jsToJSON(key: String): Any? = jsBox(this.toJSON())
804
+
805
+ override val jsKeys: List<String>
806
+ get() =
807
+ (if (data == null) listOf() else listOf("data")) +
808
+ (if (view == null) listOf() else listOf("view")) +
809
+ (jsExpando?.jsKeys ?: listOf())
810
+
811
+ override val jsClassName: String?
812
+ get() = "Inset"
813
+
814
+ override fun jsGet(key: String): Any? =
815
+ when (key) {
816
+ "view" -> this.view
817
+ "data" -> this.data
818
+ "left" -> this.left
819
+ "top" -> this.top
820
+ "right" -> this.right
821
+ "bottom" -> this.bottom
822
+ "imeBottom" -> this.imeBottom
823
+ "leftConsumed" -> this.leftConsumed
824
+ "topConsumed" -> this.topConsumed
825
+ "rightConsumed" -> this.rightConsumed
826
+ "bottomConsumed" -> this.bottomConsumed
827
+ "imeBottomConsumed" -> this.imeBottomConsumed
828
+ "cutoutLeft" -> this.cutoutLeft
829
+ "cutoutTop" -> this.cutoutTop
830
+ "cutoutRight" -> this.cutoutRight
831
+ "cutoutBottom" -> this.cutoutBottom
832
+ "cutoutLeftConsumed" -> this.cutoutLeftConsumed
833
+ "cutoutTopConsumed" -> this.cutoutTopConsumed
834
+ "cutoutRightConsumed" -> this.cutoutRightConsumed
835
+ "cutoutBottomConsumed" -> this.cutoutBottomConsumed
836
+ "toJSON" -> jsFunction { this.toJSON() }
837
+ else -> jsExpandoGet(this, key)
838
+ }
839
+
840
+ override fun jsSet(key: String, value: Any?) {
841
+ when (key) {
842
+ "view" -> this.view = jsCast(value, JSDataView::class.java)
843
+ "data" -> this.data = jsCast(value, JSArrayBuffer::class.java)
844
+ "left" -> this.left = jsToNumber(value)
845
+ "top" -> this.top = jsToNumber(value)
846
+ "right" -> this.right = jsToNumber(value)
847
+ "bottom" -> this.bottom = jsToNumber(value)
848
+ "imeBottom" -> this.imeBottom = jsToNumber(value)
849
+ "leftConsumed" -> this.leftConsumed = jsTruthy(value)
850
+ "topConsumed" -> this.topConsumed = jsTruthy(value)
851
+ "rightConsumed" -> this.rightConsumed = jsTruthy(value)
852
+ "bottomConsumed" -> this.bottomConsumed = jsTruthy(value)
853
+ "imeBottomConsumed" -> this.imeBottomConsumed = jsTruthy(value)
854
+ "cutoutLeft" -> this.cutoutLeft = jsToNumber(value)
855
+ "cutoutTop" -> this.cutoutTop = jsToNumber(value)
856
+ "cutoutRight" -> this.cutoutRight = jsToNumber(value)
857
+ "cutoutBottom" -> this.cutoutBottom = jsToNumber(value)
858
+ "cutoutLeftConsumed" -> this.cutoutLeftConsumed = jsTruthy(value)
859
+ "cutoutTopConsumed" -> this.cutoutTopConsumed = jsTruthy(value)
860
+ "cutoutRightConsumed" -> this.cutoutRightConsumed = jsTruthy(value)
861
+ "cutoutBottomConsumed" -> this.cutoutBottomConsumed = jsTruthy(value)
862
+ else -> jsExpandoSet(this, key, value)
863
+ }
864
+ }
865
+
866
+ override fun jsHasMember(key: String): Boolean =
867
+ when (key) {
868
+ "left",
869
+ "top",
870
+ "right",
871
+ "bottom",
872
+ "imeBottom",
873
+ "leftConsumed",
874
+ "topConsumed",
875
+ "rightConsumed",
876
+ "bottomConsumed",
877
+ "imeBottomConsumed",
878
+ "cutoutLeft",
879
+ "cutoutTop",
880
+ "cutoutRight",
881
+ "cutoutBottom",
882
+ "cutoutLeftConsumed",
883
+ "cutoutTopConsumed",
884
+ "cutoutRightConsumed",
885
+ "cutoutBottomConsumed",
886
+ "toJSON" -> true
887
+ else -> false
888
+ }
889
+ }
890
+
891
+ @UiThread
892
+ open class View : ViewCommon {
893
+ @get:JvmName("__get__dialogFragment")
894
+ @set:JvmName("__set__dialogFragment")
895
+ var _dialogFragment: androidx_fragment_app_DialogFragment? = null
896
+ set(value) {
897
+ field = value
898
+ jsMadeNote1(1L shl 46, "_dialogFragment")
899
+ }
900
+
901
+ @get:JvmName("__get_touchListenerIsSet")
902
+ @set:JvmName("__set_touchListenerIsSet")
903
+ var touchListenerIsSet: Boolean? = null
904
+ set(value) {
905
+ field = value
906
+ jsMadeNote1(1L shl 48, "touchListenerIsSet")
907
+ }
908
+
909
+ @get:JvmName("__get_touchListener")
910
+ @set:JvmName("__set_touchListener")
911
+ var touchListener: android_view_View.OnTouchListener? = null
912
+ set(value) {
913
+ field = value
914
+ jsMadeNote1(1L shl 49, "touchListener")
915
+ }
916
+
917
+ @get:JvmName("__get_layoutChangeListenerIsSet")
918
+ @set:JvmName("__set_layoutChangeListenerIsSet")
919
+ var layoutChangeListenerIsSet: Boolean? = null
920
+ set(value) {
921
+ field = value
922
+ jsMadeNote1(1L shl 50, "layoutChangeListenerIsSet")
923
+ }
924
+
925
+ @get:JvmName("__get_layoutChangeListener")
926
+ @set:JvmName("__set_layoutChangeListener")
927
+ var layoutChangeListener: android_view_View.OnLayoutChangeListener? = null
928
+ set(value) {
929
+ field = value
930
+ jsMadeNote1(1L shl 51, "layoutChangeListener")
931
+ }
932
+
933
+ @get:JvmName("__get__rootManager")
934
+ @set:JvmName("__set__rootManager")
935
+ var _rootManager: FragmentManager? = null
936
+ set(value) {
937
+ field = value
938
+ jsMadeNote1(1L shl 52, "_rootManager")
939
+ }
940
+
941
+ @get:JvmName("__get_insetListenerIsSet")
942
+ @set:JvmName("__set_insetListenerIsSet")
943
+ var insetListenerIsSet: Boolean? = null
944
+ set(value) {
945
+ field = value
946
+ jsMadeNote1(1L shl 53, "insetListenerIsSet")
947
+ }
948
+
949
+ init {
950
+ this.row = 0.0
951
+ this.col = 0.0
952
+ this.rowSpan = 1.0
953
+ this.colSpan = 1.0
954
+ this.effectiveLeft = 0.0
955
+ this.effectiveTop = 0.0
956
+ }
957
+
958
+ constructor() : super()
959
+
960
+ override val isLayoutRequired: Boolean
961
+ get() {
962
+ return !this.isLayoutValid
963
+ }
964
+
965
+ override val isLayoutValid: Boolean
966
+ get() {
967
+ if (
968
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
969
+ ) {
970
+ return !((jsCast(
971
+ this.nativeViewProtected,
972
+ android_view_View::class.java,
973
+ ) ?: jsCannotRead("isLayoutRequested"))
974
+ .isLayoutRequested())
975
+ }
976
+ return false
977
+ }
978
+
979
+ open val _hasFragments: Boolean
980
+ get() {
981
+ return false
982
+ }
983
+
984
+ override fun _observe(type: Double, callback: (Any?) -> Unit, thisArg: Any?) {
985
+ super._observe(type, callback, thisArg)
986
+ if (this.isLoaded && !jsTruthy(this.touchListenerIsSet)) {
987
+ this.setOnTouchListener()
988
+ }
989
+ }
990
+
991
+ fun addEventListener__View(
992
+ eventName: String?,
993
+ callback: (EventData) -> Unit,
994
+ thisArg: Any? = null,
995
+ once: Boolean? = null,
996
+ ) {
997
+ val eventNames = eventName
998
+ super.addEventListener(eventNames, callback, thisArg, once)
999
+ val isLayoutEvent: Boolean =
1000
+ (if (jsTypeof(eventNames) == "string")
1001
+ jsIndexOf((eventNames ?: "undefined"), ViewCommon.layoutChangedEvent) != -1.0
1002
+ else false)
1003
+ if (
1004
+ this.isLoaded && !jsTruthy(this.layoutChangeListenerIsSet) && isLayoutEvent
1005
+ ) {
1006
+ this.setOnLayoutChangeListener()
1007
+ }
1008
+ val isInsetEvent: Boolean =
1009
+ (if (jsTypeof(eventNames) == "string")
1010
+ jsIndexOf((eventNames ?: "undefined"), ViewCommon.androidOverflowInsetEvent) != -1.0
1011
+ else false)
1012
+ if (!jsTruthy(this.insetListenerIsSet) && isInsetEvent) {
1013
+ this.setInsetListener()
1014
+ }
1015
+ }
1016
+
1017
+ override fun addEventListener(
1018
+ eventName: String?,
1019
+ callback: (EventData) -> Unit,
1020
+ thisArg: Any?,
1021
+ once: Boolean?,
1022
+ ) {
1023
+ val eventNames = eventName
1024
+ super.addEventListener(eventNames, callback, thisArg, once)
1025
+ val isLayoutEvent: Boolean =
1026
+ (if (jsTypeof(eventNames) == "string")
1027
+ jsIndexOf((eventNames ?: "undefined"), ViewCommon.layoutChangedEvent) != -1.0
1028
+ else false)
1029
+ if (
1030
+ this.isLoaded && !jsTruthy(this.layoutChangeListenerIsSet) && isLayoutEvent
1031
+ ) {
1032
+ this.setOnLayoutChangeListener()
1033
+ }
1034
+ val isInsetEvent: Boolean =
1035
+ (if (jsTypeof(eventNames) == "string")
1036
+ jsIndexOf((eventNames ?: "undefined"), ViewCommon.androidOverflowInsetEvent) != -1.0
1037
+ else false)
1038
+ if (!jsTruthy(this.insetListenerIsSet) && isInsetEvent) {
1039
+ this.setInsetListener()
1040
+ }
1041
+ }
1042
+
1043
+ fun removeEventListener__View(
1044
+ eventName: String?,
1045
+ callback: ((EventData) -> Unit)? = null,
1046
+ thisArg: Any? = null,
1047
+ ) {
1048
+ val eventNames = eventName
1049
+ super.removeEventListener(eventNames, callback, thisArg)
1050
+ val isLayoutEvent: Boolean =
1051
+ (if (jsTypeof(eventNames) == "string")
1052
+ jsIndexOf((eventNames ?: "undefined"), ViewCommon.layoutChangedEvent) != -1.0
1053
+ else false)
1054
+ if (
1055
+ jsAnd(this.isLoaded) { (this.layoutChangeListenerIsSet ?: false) } &&
1056
+ isLayoutEvent &&
1057
+ !this.needsOnLayoutChangeListener()
1058
+ ) {
1059
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1060
+ ?: jsCannotRead("removeOnLayoutChangeListener"))
1061
+ .removeOnLayoutChangeListener(this.layoutChangeListener)
1062
+ this.layoutChangeListenerIsSet = false
1063
+ }
1064
+ val isInsetEvent: Boolean =
1065
+ (if (jsTypeof(eventNames) == "string")
1066
+ jsIndexOf((eventNames ?: "undefined"), ViewCommon.androidOverflowInsetEvent) != -1.0
1067
+ else false)
1068
+ if (
1069
+ kotlin.run {
1070
+ val __v_2 = this.insetListenerIsSet
1071
+ if (jsTruthy(__v_2)) isInsetEvent else (__v_2 ?: false)
1072
+ } && !this.needsInsetListener()
1073
+ ) {
1074
+ this.clearInsetListener()
1075
+ }
1076
+ }
1077
+
1078
+ override fun removeEventListener(
1079
+ eventName: String?,
1080
+ callback: ((EventData) -> Unit)?,
1081
+ thisArg: Any?,
1082
+ ) {
1083
+ val eventNames = eventName
1084
+ super.removeEventListener(eventNames, callback, thisArg)
1085
+ val isLayoutEvent: Boolean =
1086
+ (if (jsTypeof(eventNames) == "string")
1087
+ jsIndexOf((eventNames ?: "undefined"), ViewCommon.layoutChangedEvent) != -1.0
1088
+ else false)
1089
+ if (
1090
+ jsAnd(this.isLoaded) { (this.layoutChangeListenerIsSet ?: false) } &&
1091
+ isLayoutEvent &&
1092
+ !this.needsOnLayoutChangeListener()
1093
+ ) {
1094
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1095
+ ?: jsCannotRead("removeOnLayoutChangeListener"))
1096
+ .removeOnLayoutChangeListener(this.layoutChangeListener)
1097
+ this.layoutChangeListenerIsSet = false
1098
+ }
1099
+ val isInsetEvent: Boolean =
1100
+ (if (jsTypeof(eventNames) == "string")
1101
+ jsIndexOf((eventNames ?: "undefined"), ViewCommon.androidOverflowInsetEvent) != -1.0
1102
+ else false)
1103
+ if (
1104
+ kotlin.run {
1105
+ val __v_2 = this.insetListenerIsSet
1106
+ if (jsTruthy(__v_2)) isInsetEvent else (__v_2 ?: false)
1107
+ } && !this.needsInsetListener()
1108
+ ) {
1109
+ this.clearInsetListener()
1110
+ }
1111
+ }
1112
+
1113
+ open fun setInsetListener() {
1114
+ if (
1115
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1116
+ ) {
1117
+ if (
1118
+ jsTruthy(
1119
+ jsGet(
1120
+ ((jsCast(this.nativeViewProtected, android_view_View::class.java)
1121
+ ?: jsObjectRequired())),
1122
+ "setInsetListener",
1123
+ )
1124
+ )
1125
+ ) {
1126
+ val ref: JSWeakRef<View> = JSWeakRef<View>(this)
1127
+ jsCallMethod(
1128
+ ((jsCast(this.nativeViewProtected, android_view_View::class.java)
1129
+ ?: jsObjectRequired())),
1130
+ "setInsetListener",
1131
+ object : org_nativescript_widgets_LayoutBase.WindowInsetListener {
1132
+ private val __realm: JSRealm? = JSRealm.current()
1133
+
1134
+ @AnyThread
1135
+ override fun onApplyWindowInsets(param0: ByteBuffer?) {
1136
+ jsElsewhere(__realm)?.let {
1137
+ return it.later { this.onApplyWindowInsets(param0) }
1138
+ }
1139
+ jsReport {
1140
+ jsOnMainThread {
1141
+ val owner: View? = ref.get()
1142
+ if (!jsTruthy(owner)) {
1143
+ return
1144
+ }
1145
+ val inset: Inset =
1146
+ Inset((param0 ?: jsObjectRequired()))
1147
+ val args: Object_eventName_object_inset =
1148
+ Object_eventName_object_inset(
1149
+ eventName = ViewCommon.androidOverflowInsetEvent,
1150
+ `object` = (owner ?: jsObjectRequired()),
1151
+ inset = inset,
1152
+ )
1153
+ (owner ?: jsCannotRead("notify")).notify(args)
1154
+ }
1155
+ }
1156
+ }
1157
+ },
1158
+ )
1159
+ this.insetListenerIsSet = true
1160
+ }
1161
+ }
1162
+ }
1163
+
1164
+ open fun clearInsetListener() {
1165
+ this.insetListenerIsSet = false
1166
+ val nativeView: Any? =
1167
+ (jsCast(this.nativeViewProtected, android_view_View::class.java) ?: jsObjectRequired())
1168
+ if (jsTruthy(jsGetOptional(nativeView, "setInsetListener"))) {
1169
+ jsCallMethod(nativeView, "setInsetListener", jsNull)
1170
+ }
1171
+ }
1172
+
1173
+ open fun needsInsetListener(): Boolean {
1174
+ return this.hasListeners(ViewCommon.androidOverflowInsetEvent)
1175
+ }
1176
+
1177
+ fun _getChildFragmentManager__View(): FragmentManager? {
1178
+ return null
1179
+ }
1180
+
1181
+ open fun _getChildFragmentManager(): FragmentManager? {
1182
+ return null
1183
+ }
1184
+
1185
+ open fun _getRootFragmentManager(): FragmentManager? {
1186
+ if ((!jsTruthy(this._rootManager) && jsTruthy(this._context))) {
1187
+ this._rootManager =
1188
+ (jsCastCarried(this._context, FragmentActivity::class.java))
1189
+ .getSupportFragmentManager()
1190
+ }
1191
+ return this._rootManager
1192
+ }
1193
+
1194
+ override fun _getFragmentManager(): Any? {
1195
+ var manager: FragmentManager? =
1196
+ jsCast(this._manager, FragmentManager::class.java)
1197
+ if (!jsTruthy(manager)) {
1198
+ var view: ViewBase? = this
1199
+ var frameOrTabViewItemFound: Boolean = false
1200
+ while (jsTruthy(view)) {
1201
+ var dialogFragment: androidx_fragment_app_DialogFragment? = null
1202
+ if ((view is View)) {
1203
+ dialogFragment = (view as View)._dialogFragment
1204
+ }
1205
+ if (jsTruthy(dialogFragment)) {
1206
+ manager =
1207
+ (dialogFragment ?: jsCannotRead("getChildFragmentManager"))
1208
+ .getChildFragmentManager()
1209
+ break
1210
+ }
1211
+ val fragments: Any? = (view ?: jsObjectRequired())
1212
+ if (jsTruthy(jsGet(fragments, "_hasFragments"))) {
1213
+ if (frameOrTabViewItemFound) {
1214
+ manager =
1215
+ jsCast(
1216
+ jsCallMethod(fragments, "_getChildFragmentManager"),
1217
+ FragmentManager::class.java,
1218
+ )
1219
+ break
1220
+ }
1221
+ frameOrTabViewItemFound = true
1222
+ }
1223
+ view = (view ?: jsCannotRead("parent")).parent
1224
+ }
1225
+ if (!jsTruthy(manager)) {
1226
+ manager = this._getRootFragmentManager()
1227
+ }
1228
+ this._manager = manager
1229
+ }
1230
+ return manager
1231
+ }
1232
+
1233
+ open fun __symbol_androidOverflowEdgeProperty_setNative(value: String?) {
1234
+ val nativeView: Any? =
1235
+ (jsCast(this.nativeViewProtected, android_view_View::class.java) ?: jsObjectRequired())
1236
+ if (
1237
+ jsTypeof(value) != "string" ||
1238
+ jsStrictEquals(nativeView, jsNull) ||
1239
+ jsIsNullish(nativeView)
1240
+ ) {
1241
+ return
1242
+ }
1243
+ if (!(jsHasKey(nativeView, "setOverflowEdge"))) {
1244
+ return
1245
+ }
1246
+ when ((value ?: "undefined")) {
1247
+ "none" -> {
1248
+ jsCallMethod(
1249
+ nativeView,
1250
+ "setOverflowEdge",
1251
+ Core_ui_core_view_overflow_edges.OverflowEdgeNone,
1252
+ )
1253
+ }
1254
+ "ignore" -> {
1255
+ jsCallMethod(
1256
+ nativeView,
1257
+ "setOverflowEdge",
1258
+ Core_ui_core_view_overflow_edges.OverflowEdgeIgnore,
1259
+ )
1260
+ }
1261
+ else -> {
1262
+ kotlin.run {
1263
+ val edge: Double? =
1264
+ Core_ui_core_view_overflow_edges.parseEdges(value)
1265
+ if (edge != null) {
1266
+ jsCallMethod(nativeView, "setOverflowEdge", edge)
1267
+ }
1268
+ }
1269
+ }
1270
+ }
1271
+ }
1272
+
1273
+ fun onLoaded__View() {
1274
+ this._manager = null
1275
+ this._rootManager = null
1276
+ super.onLoaded()
1277
+ this.setOnTouchListener()
1278
+ }
1279
+
1280
+ override fun onLoaded() {
1281
+ this._manager = null
1282
+ this._rootManager = null
1283
+ super.onLoaded()
1284
+ this.setOnTouchListener()
1285
+ }
1286
+
1287
+ fun onUnloaded__View() {
1288
+ this._manager = null
1289
+ this._rootManager = null
1290
+ super.onUnloaded()
1291
+ }
1292
+
1293
+ override fun onUnloaded() {
1294
+ this._manager = null
1295
+ this._rootManager = null
1296
+ super.onUnloaded()
1297
+ }
1298
+
1299
+ fun onBackPressed__View(): Boolean {
1300
+ val topmostFrame: FrameBase? =
1301
+ Core_ui_frame_frame_stack.topmost(this.getNativeWindow())
1302
+ if (
1303
+ (jsTruthy(topmostFrame) &&
1304
+ (topmostFrame ?: jsCannotRead("_hasAncestorView"))._hasAncestorView(this))
1305
+ ) {
1306
+ return (topmostFrame ?: jsCannotRead("onBackPressed")).onBackPressed()
1307
+ }
1308
+ return false
1309
+ }
1310
+
1311
+ override fun onBackPressed(): Boolean {
1312
+ val topmostFrame: FrameBase? =
1313
+ Core_ui_frame_frame_stack.topmost(this.getNativeWindow())
1314
+ if (
1315
+ (jsTruthy(topmostFrame) &&
1316
+ (topmostFrame ?: jsCannotRead("_hasAncestorView"))._hasAncestorView(this))
1317
+ ) {
1318
+ return (topmostFrame ?: jsCannotRead("onBackPressed")).onBackPressed()
1319
+ }
1320
+ return false
1321
+ }
1322
+
1323
+ open fun handleGestureTouch(event: MotionEvent?): Any? {
1324
+ val allObservers: JSArray<JSArray<GesturesObserver>>? = kotlin.run {
1325
+ val __o: Any? = this._gestureObservers
1326
+ JSArray<JSArray<GesturesObserver>>(
1327
+ jsKeysOf(__o).map {
1328
+ jsArrayFrom(jsField(__o, it)) {
1329
+ jsCastCarried(it, GesturesObserver::class.java)
1330
+ }
1331
+ }
1332
+ )
1333
+ }
1334
+ for (observers in (allObservers ?: jsObjectRequired())) {
1335
+ val length: Double = (observers ?: jsCannotRead("length")).length
1336
+ if (!jsTruthy(length)) {
1337
+ continue
1338
+ }
1339
+ if (length == 1.0) {
1340
+ val entry: GesturesObserver? =
1341
+ (observers ?: jsCannotRead("0")).element(0.0)
1342
+ if (jsTruthy(entry)) {
1343
+ (entry ?: jsCannotRead("androidOnTouchEvent"))
1344
+ .androidOnTouchEvent(event)
1345
+ }
1346
+ } else {
1347
+ val observersCp: JSArray<GesturesObserver>? =
1348
+ (observers ?: jsCannotRead("slice")).slice()
1349
+ var i: Double = 0.0
1350
+ while (i < length) {
1351
+ val entry: GesturesObserver? =
1352
+ (observersCp ?: jsCannotRead(js(i))).element(i)
1353
+ if (jsTruthy(entry)) {
1354
+ (entry ?: jsCannotRead("androidOnTouchEvent"))
1355
+ .androidOnTouchEvent(event)
1356
+ }
1357
+ i += 1.0
1358
+ }
1359
+ }
1360
+ }
1361
+ if ((this.parent is View)) {
1362
+ (this.parent as View).handleGestureTouch(event)
1363
+ }
1364
+ return null
1365
+ }
1366
+
1367
+ open fun hasGestureObservers(): Boolean {
1368
+ return jsConvertedBooleanOrFalse(
1369
+ kotlin.run {
1370
+ val __v_1 = this._gestureObservers
1371
+ if (jsTruthy(__v_1)) jsObjectKeys(this._gestureObservers).length > 0.0
1372
+ else jsConvertedBooleanOrFalse(__v_1)
1373
+ }
1374
+ )
1375
+ }
1376
+
1377
+ fun initNativeView__View() {
1378
+ super.initNativeView()
1379
+ if (this.needsOnLayoutChangeListener()) {
1380
+ this.setOnLayoutChangeListener()
1381
+ }
1382
+ if (!jsTruthy(this.insetListenerIsSet) && this.needsInsetListener()) {
1383
+ this.setInsetListener()
1384
+ }
1385
+ }
1386
+
1387
+ override fun initNativeView() {
1388
+ super.initNativeView()
1389
+ if (this.needsOnLayoutChangeListener()) {
1390
+ this.setOnLayoutChangeListener()
1391
+ }
1392
+ if (!jsTruthy(this.insetListenerIsSet) && this.needsInsetListener()) {
1393
+ this.setInsetListener()
1394
+ }
1395
+ }
1396
+
1397
+ open fun needsOnLayoutChangeListener(): Boolean {
1398
+ return this.hasListeners(ViewCommon.layoutChangedEvent)
1399
+ }
1400
+
1401
+ fun disposeNativeView__View() {
1402
+ if (jsTruthy(this.touchListenerIsSet)) {
1403
+ this.touchListenerIsSet = false
1404
+ if (
1405
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1406
+ ) {
1407
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1408
+ ?: jsCannotRead("setOnTouchListener"))
1409
+ .setOnTouchListener(null)
1410
+ }
1411
+ }
1412
+ if (jsTruthy(this.layoutChangeListenerIsSet)) {
1413
+ this.layoutChangeListenerIsSet = false
1414
+ if (
1415
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1416
+ ) {
1417
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1418
+ ?: jsCannotRead("removeOnLayoutChangeListener"))
1419
+ .removeOnLayoutChangeListener(this.layoutChangeListener)
1420
+ this.layoutChangeListener = null
1421
+ }
1422
+ }
1423
+ if (jsTruthy(this.insetListenerIsSet)) {
1424
+ this.clearInsetListener()
1425
+ }
1426
+ super.disposeNativeView()
1427
+ }
1428
+
1429
+ override fun disposeNativeView() {
1430
+ if (jsTruthy(this.touchListenerIsSet)) {
1431
+ this.touchListenerIsSet = false
1432
+ if (
1433
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1434
+ ) {
1435
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1436
+ ?: jsCannotRead("setOnTouchListener"))
1437
+ .setOnTouchListener(null)
1438
+ }
1439
+ }
1440
+ if (jsTruthy(this.layoutChangeListenerIsSet)) {
1441
+ this.layoutChangeListenerIsSet = false
1442
+ if (
1443
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1444
+ ) {
1445
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1446
+ ?: jsCannotRead("removeOnLayoutChangeListener"))
1447
+ .removeOnLayoutChangeListener(this.layoutChangeListener)
1448
+ this.layoutChangeListener = null
1449
+ }
1450
+ }
1451
+ if (jsTruthy(this.insetListenerIsSet)) {
1452
+ this.clearInsetListener()
1453
+ }
1454
+ super.disposeNativeView()
1455
+ }
1456
+
1457
+ open fun setOnTouchListener() {
1458
+ if (
1459
+ kotlin.run {
1460
+ val __v_1 = this.touchListenerIsSet
1461
+ if (jsTruthy(__v_1)) __v_1
1462
+ else !jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1463
+ } || !this.hasGestureObservers()
1464
+ ) {
1465
+ return
1466
+ }
1467
+ Core_ui_core_view_index.initializeTouchListener()
1468
+ this.touchListener = kotlin.run {
1469
+ val __v_2 = this.touchListener
1470
+ if (jsTruthy(__v_2)) __v_2
1471
+ else
1472
+ jsCastCarried(
1473
+ jsNew(Core_ui_core_view_index.TouchListener, this),
1474
+ android_view_View.OnTouchListener::class.java,
1475
+ )
1476
+ }
1477
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1478
+ ?: jsCannotRead("setOnTouchListener"))
1479
+ .setOnTouchListener(this.touchListener)
1480
+ this.touchListenerIsSet = true
1481
+ if (
1482
+ jsTruthy(
1483
+ jsJavaGet(
1484
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1485
+ ?: jsObjectRequired()),
1486
+ "setClickable",
1487
+ )
1488
+ )
1489
+ ) {
1490
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1491
+ ?: jsCannotRead("setClickable"))
1492
+ .setClickable(this.isUserInteractionEnabled)
1493
+ }
1494
+ }
1495
+
1496
+ open fun setOnLayoutChangeListener() {
1497
+ if (
1498
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1499
+ ) {
1500
+ val owner: View? = this
1501
+ this.layoutChangeListenerIsSet = true
1502
+ this.layoutChangeListener = kotlin.run {
1503
+ val __v_1 = this.layoutChangeListener
1504
+ if (jsTruthy(__v_1)) __v_1
1505
+ else
1506
+ object : android_view_View.OnLayoutChangeListener {
1507
+ private val __realm: JSRealm? = JSRealm.current()
1508
+
1509
+ @AnyThread
1510
+ override fun onLayoutChange(
1511
+ v: android_view_View?,
1512
+ left: Int,
1513
+ top: Int,
1514
+ right: Int,
1515
+ bottom: Int,
1516
+ oldLeft: Int,
1517
+ oldTop: Int,
1518
+ oldRight: Int,
1519
+ oldBottom: Int,
1520
+ ) {
1521
+ jsElsewhere(__realm)?.let {
1522
+ return it.later {
1523
+ this.onLayoutChange(
1524
+ v,
1525
+ left,
1526
+ top,
1527
+ right,
1528
+ bottom,
1529
+ oldLeft,
1530
+ oldTop,
1531
+ oldRight,
1532
+ oldBottom,
1533
+ )
1534
+ }
1535
+ }
1536
+ jsReport {
1537
+ jsOnMainThread {
1538
+ val left: Double = left.toDouble()
1539
+ val top: Double = top.toDouble()
1540
+ val right: Double = right.toDouble()
1541
+ val bottom: Double = bottom.toDouble()
1542
+ val oldLeft: Double = oldLeft.toDouble()
1543
+ val oldTop: Double = oldTop.toDouble()
1544
+ val oldRight: Double = oldRight.toDouble()
1545
+ val oldBottom: Double = oldBottom.toDouble()
1546
+ if (
1547
+ left != oldLeft ||
1548
+ top != oldTop ||
1549
+ right != oldRight ||
1550
+ bottom != oldBottom
1551
+ ) {
1552
+ (owner
1553
+ ?: jsCannotRead("_raiseLayoutChangedEvent"))
1554
+ ._raiseLayoutChangedEvent()
1555
+ }
1556
+ }
1557
+ }
1558
+ }
1559
+ }
1560
+ }
1561
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1562
+ ?: jsCannotRead("addOnLayoutChangeListener"))
1563
+ .addOnLayoutChangeListener(this.layoutChangeListener)
1564
+ }
1565
+ }
1566
+
1567
+ override fun layoutNativeView(left: Double, top: Double, right: Double, bottom: Double) {
1568
+ if (
1569
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1570
+ ) {
1571
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1572
+ ?: jsCannotRead("layout"))
1573
+ .layout(
1574
+ left.toLong().toInt(),
1575
+ top.toLong().toInt(),
1576
+ right.toLong().toInt(),
1577
+ bottom.toLong().toInt(),
1578
+ )
1579
+ }
1580
+ }
1581
+
1582
+ override fun requestLayout() {
1583
+ super.requestLayout()
1584
+ if (
1585
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1586
+ ) {
1587
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1588
+ ?: jsCannotRead("requestLayout"))
1589
+ .requestLayout()
1590
+ }
1591
+ }
1592
+
1593
+ override fun measure(widthMeasureSpec: Double, heightMeasureSpec: Double) {
1594
+ super.measure(widthMeasureSpec, heightMeasureSpec)
1595
+ this.onMeasure(widthMeasureSpec, heightMeasureSpec)
1596
+ }
1597
+
1598
+ override fun layout(left: Double, top: Double, right: Double, bottom: Double) {
1599
+ super.layout(left, top, right, bottom)
1600
+ this.onLayout(left, top, right, bottom)
1601
+ }
1602
+
1603
+ fun onMeasure__View(widthMeasureSpec: Double, heightMeasureSpec: Double) {
1604
+ val view: android_view_View? =
1605
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
1606
+ if (jsTruthy(view)) {
1607
+ (view ?: jsCannotRead("measure")).measure(
1608
+ widthMeasureSpec.toLong().toInt(),
1609
+ heightMeasureSpec.toLong().toInt(),
1610
+ )
1611
+ this.setMeasuredDimension(
1612
+ (view ?: jsCannotRead("getMeasuredWidth")).getMeasuredWidth().toDouble(),
1613
+ (view ?: jsCannotRead("getMeasuredHeight")).getMeasuredHeight().toDouble(),
1614
+ )
1615
+ }
1616
+ }
1617
+
1618
+ override fun onMeasure(widthMeasureSpec: Double, heightMeasureSpec: Double) {
1619
+ val view: android_view_View? =
1620
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
1621
+ if (jsTruthy(view)) {
1622
+ (view ?: jsCannotRead("measure")).measure(
1623
+ widthMeasureSpec.toLong().toInt(),
1624
+ heightMeasureSpec.toLong().toInt(),
1625
+ )
1626
+ this.setMeasuredDimension(
1627
+ (view ?: jsCannotRead("getMeasuredWidth")).getMeasuredWidth().toDouble(),
1628
+ (view ?: jsCannotRead("getMeasuredHeight")).getMeasuredHeight().toDouble(),
1629
+ )
1630
+ }
1631
+ }
1632
+
1633
+ fun onLayout__View(left: Double, top: Double, right: Double, bottom: Double) {
1634
+ val view: android_view_View? =
1635
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
1636
+ if (jsTruthy(view)) {
1637
+ this.layoutNativeView(left, top, right, bottom)
1638
+ }
1639
+ }
1640
+
1641
+ override fun onLayout(left: Double, top: Double, right: Double, bottom: Double) {
1642
+ val view: android_view_View? =
1643
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
1644
+ if (jsTruthy(view)) {
1645
+ this.layoutNativeView(left, top, right, bottom)
1646
+ }
1647
+ }
1648
+
1649
+ override fun _getCurrentLayoutBounds(): Position? {
1650
+ if (
1651
+ (jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java)) &&
1652
+ !jsTruthy(this.isCollapsed))
1653
+ ) {
1654
+ return Position(
1655
+ top =
1656
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1657
+ ?: jsCannotRead("getTop"))
1658
+ .getTop()
1659
+ .toDouble(),
1660
+ right =
1661
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1662
+ ?: jsCannotRead("getRight"))
1663
+ .getRight()
1664
+ .toDouble(),
1665
+ bottom =
1666
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1667
+ ?: jsCannotRead("getBottom"))
1668
+ .getBottom()
1669
+ .toDouble(),
1670
+ left =
1671
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1672
+ ?: jsCannotRead("getLeft"))
1673
+ .getLeft()
1674
+ .toDouble(),
1675
+ jsOrder = listOf("left", "top", "right", "bottom"),
1676
+ )
1677
+ } else {
1678
+ return Position(
1679
+ top = 0.0,
1680
+ right = 0.0,
1681
+ bottom = 0.0,
1682
+ left = 0.0,
1683
+ jsOrder = listOf("left", "top", "right", "bottom"),
1684
+ )
1685
+ }
1686
+ }
1687
+
1688
+ override fun getMeasuredWidth(): Double {
1689
+ if (
1690
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1691
+ ) {
1692
+ return (jsCast(this.nativeViewProtected, android_view_View::class.java)
1693
+ ?: jsCannotRead("getMeasuredWidth"))
1694
+ .getMeasuredWidth()
1695
+ .toDouble()
1696
+ }
1697
+ return super.getMeasuredWidth()
1698
+ }
1699
+
1700
+ override fun getMeasuredHeight(): Double {
1701
+ if (
1702
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1703
+ ) {
1704
+ return (jsCast(this.nativeViewProtected, android_view_View::class.java)
1705
+ ?: jsCannotRead("getMeasuredHeight"))
1706
+ .getMeasuredHeight()
1707
+ .toDouble()
1708
+ }
1709
+ return super.getMeasuredHeight()
1710
+ }
1711
+
1712
+ fun focus__View(): Boolean {
1713
+ if (
1714
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1715
+ ) {
1716
+ return (jsCast(this.nativeViewProtected, android_view_View::class.java)
1717
+ ?: jsCannotRead("requestFocus"))
1718
+ .requestFocus()
1719
+ }
1720
+ return false
1721
+ }
1722
+
1723
+ override fun focus(): Boolean {
1724
+ if (
1725
+ jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java))
1726
+ ) {
1727
+ return (jsCast(this.nativeViewProtected, android_view_View::class.java)
1728
+ ?: jsCannotRead("requestFocus"))
1729
+ .requestFocus()
1730
+ }
1731
+ return false
1732
+ }
1733
+
1734
+ override fun _setDefaultPaddings(insets: Any?) {
1735
+ val insets: Rect? = jsCast(insets, Rect::class.java)
1736
+ if (jsTruthy(insets)) {
1737
+ this._defaultPaddingTop = (insets ?: jsCannotRead("top")).top.toDouble()
1738
+ this._defaultPaddingRight =
1739
+ (insets ?: jsCannotRead("right")).right.toDouble()
1740
+ this._defaultPaddingBottom =
1741
+ (insets ?: jsCannotRead("bottom")).bottom.toDouble()
1742
+ this._defaultPaddingLeft =
1743
+ (insets ?: jsCannotRead("left")).left.toDouble()
1744
+ } else {
1745
+ this._defaultPaddingTop = 0.0
1746
+ this._defaultPaddingRight = 0.0
1747
+ this._defaultPaddingBottom = 0.0
1748
+ this._defaultPaddingLeft = 0.0
1749
+ }
1750
+ }
1751
+
1752
+ override fun getLocationInWindow(): Point? {
1753
+ if (
1754
+ !jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java)) ||
1755
+ !jsTruthy(
1756
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1757
+ ?: jsCannotRead("getWindowToken"))
1758
+ .getWindowToken()
1759
+ )
1760
+ ) {
1761
+ return null
1762
+ }
1763
+ val nativeArray: Any? = jsArrayCreate("int", 2.0)
1764
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1765
+ ?: jsCannotRead("getLocationInWindow"))
1766
+ .getLocationInWindow((toJavaValue(nativeArray, IntArray::class.java) as IntArray?))
1767
+ return Point(
1768
+ x =
1769
+ org.nativescript.kit.layout.toDeviceIndependentPixels(
1770
+ jsConvertedNumberOrZero(jsGet(nativeArray, js(0.0)))
1771
+ ),
1772
+ y =
1773
+ org.nativescript.kit.layout.toDeviceIndependentPixels(
1774
+ jsConvertedNumberOrZero(jsGet(nativeArray, js(1.0)))
1775
+ ),
1776
+ )
1777
+ }
1778
+
1779
+ override fun getLocationOnScreen(): Point? {
1780
+ if (
1781
+ !jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java)) ||
1782
+ !jsTruthy(
1783
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1784
+ ?: jsCannotRead("getWindowToken"))
1785
+ .getWindowToken()
1786
+ )
1787
+ ) {
1788
+ return null
1789
+ }
1790
+ val nativeArray: Any? = jsArrayCreate("int", 2.0)
1791
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1792
+ ?: jsCannotRead("getLocationOnScreen"))
1793
+ .getLocationOnScreen((toJavaValue(nativeArray, IntArray::class.java) as IntArray?))
1794
+ return Point(
1795
+ x =
1796
+ org.nativescript.kit.layout.toDeviceIndependentPixels(
1797
+ jsConvertedNumberOrZero(jsGet(nativeArray, js(0.0)))
1798
+ ),
1799
+ y =
1800
+ org.nativescript.kit.layout.toDeviceIndependentPixels(
1801
+ jsConvertedNumberOrZero(jsGet(nativeArray, js(1.0)))
1802
+ ),
1803
+ )
1804
+ }
1805
+
1806
+ override fun getLocationRelativeTo(otherView: ViewCommon?): Point? {
1807
+ if (
1808
+ !jsTruthy(jsCast(this.nativeViewProtected, android_view_View::class.java)) ||
1809
+ !jsTruthy(
1810
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1811
+ ?: jsCannotRead("getWindowToken"))
1812
+ .getWindowToken()
1813
+ ) ||
1814
+ !jsTruthy(otherView) ||
1815
+ !jsTruthy((otherView ?: jsCannotRead("nativeViewProtected")).nativeViewProtected) ||
1816
+ !jsTruthy(
1817
+ jsCallMethod(
1818
+ (otherView ?: jsCannotRead("nativeViewProtected")).nativeViewProtected,
1819
+ "getWindowToken",
1820
+ )
1821
+ ) ||
1822
+ !jsStrictEquals(
1823
+ ((jsCast(this.nativeViewProtected, android_view_View::class.java)
1824
+ ?: jsCannotRead("getWindowToken"))
1825
+ .getWindowToken() ?: JSNull),
1826
+ jsCallMethod(
1827
+ (otherView ?: jsCannotRead("nativeViewProtected")).nativeViewProtected,
1828
+ "getWindowToken",
1829
+ ),
1830
+ )
1831
+ ) {
1832
+ return null
1833
+ }
1834
+ val myArray: Any? = jsArrayCreate("int", 2.0)
1835
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1836
+ ?: jsCannotRead("getLocationOnScreen"))
1837
+ .getLocationOnScreen((toJavaValue(myArray, IntArray::class.java) as IntArray?))
1838
+ val otherArray: Any? = jsArrayCreate("int", 2.0)
1839
+ jsCallMethod(
1840
+ (otherView ?: jsCannotRead("nativeViewProtected")).nativeViewProtected,
1841
+ "getLocationOnScreen",
1842
+ otherArray,
1843
+ )
1844
+ return Point(
1845
+ x =
1846
+ org.nativescript.kit.layout.toDeviceIndependentPixels(
1847
+ jsSubtractThrowing(jsGet(myArray, js(0.0)), jsGet(otherArray, js(0.0)))
1848
+ ),
1849
+ y =
1850
+ org.nativescript.kit.layout.toDeviceIndependentPixels(
1851
+ jsSubtractThrowing(jsGet(myArray, js(1.0)), jsGet(otherArray, js(1.0)))
1852
+ ),
1853
+ )
1854
+ }
1855
+
1856
+ override fun _showNativeModalView(parent: ViewCommon?, options: Any?) {
1857
+ if (
1858
+ Core_application_helpers_common.isAppInBackground() &&
1859
+ !(((parent as ViewCommon?) ?: jsCannotRead("isLoaded")).isLoaded)
1860
+ ) {
1861
+ lateinit var onLoaded: () -> Unit
1862
+ onLoaded = {
1863
+ ((parent as ViewCommon?) ?: jsCannotRead("off")).off(
1864
+ "loaded",
1865
+ onLoaded.let { __f ->
1866
+ jsAdapt1<EventData, Unit>(__f) { __a0: EventData -> __f() }
1867
+ },
1868
+ )
1869
+ this._showNativeModalView((parent as ViewCommon?), options)
1870
+ }
1871
+ ((parent as ViewCommon?) ?: jsCannotRead("on")).on(
1872
+ "loaded",
1873
+ onLoaded.let { __f -> jsAdapt1<EventData, Unit>(__f) { __a0: EventData -> __f() } },
1874
+ )
1875
+ return
1876
+ }
1877
+ super._showNativeModalView((parent as ViewCommon?), options)
1878
+ Core_ui_core_view_index.initializeDialogFragment()
1879
+ val df: androidx_fragment_app_DialogFragment =
1880
+ jsCastCarried(
1881
+ jsNew(Core_ui_core_view_index.DialogFragment),
1882
+ androidx_fragment_app_DialogFragment::class.java,
1883
+ )
1884
+ val args: Bundle = Bundle()
1885
+ args.putInt(
1886
+ Core_ui_core_view_index.DOMID,
1887
+ (this._domId ?: Double.NaN).toLong().toInt(),
1888
+ )
1889
+ df.setArguments(args)
1890
+ var cancelable: Boolean = true
1891
+ var windowSoftInputMode: Double? = null
1892
+ if (jsTruthy(jsGet(options, "android"))) {
1893
+ if (
1894
+ !jsStrictEquals(jsGet(jsGet((options), "android"), "cancelable"), null)
1895
+ ) {
1896
+ cancelable =
1897
+ jsTruthy(jsGet(jsGet((options), "android"), "cancelable"))
1898
+ jsLog(
1899
+ "ShowModalOptions.android.cancelable is deprecated. Use ShowModalOptions.cancelable instead."
1900
+ )
1901
+ }
1902
+ windowSoftInputMode =
1903
+ jsConvertedNumberOrNull(jsGet(jsGet((options), "android"), "windowSoftInputMode"))
1904
+ }
1905
+ cancelable =
1906
+ (if (jsConvertedBooleanOrNull(jsGet(options, "cancelable")) != null)
1907
+ jsTruthy(jsConvertedBooleanOrNull(jsGet(options, "cancelable")))
1908
+ else cancelable)
1909
+ val dialogOptions: Any? =
1910
+ jsObjectOf(
1911
+ "owner" to this,
1912
+ "fullscreen" to jsTruthy(jsConvertedBooleanOrNull(jsGet(options, "fullscreen"))),
1913
+ "animated" to jsTruthy(jsConvertedBooleanOrNull(jsGet(options, "animated"))),
1914
+ "stretched" to jsTruthy(jsConvertedBooleanOrNull(jsGet(options, "stretched"))),
1915
+ "cancelable" to cancelable,
1916
+ "windowSoftInputMode" to windowSoftInputMode,
1917
+ "shownCallback" to
1918
+ {
1919
+ this._raiseShownModallyEvent()
1920
+ },
1921
+ "dismissCallback" to
1922
+ {
1923
+ this.closeModal(JSArray<Any?>())
1924
+ },
1925
+ )
1926
+ Core_ui_core_view_index.saveModal(dialogOptions)
1927
+ this._dialogFragment = df
1928
+ this._raiseShowingModallyEvent()
1929
+ (this._dialogFragment ?: jsCannotRead("show")).show(
1930
+ (((parent as View?) ?: jsCannotRead("_getRootFragmentManager"))
1931
+ ._getRootFragmentManager() ?: jsObjectRequired()),
1932
+ js((this._domId ?: Double.NaN)),
1933
+ )
1934
+ }
1935
+
1936
+ @Suppress("DEPRECATION")
1937
+ override fun _hideNativeModalView(parent: ViewCommon?, whenClosedCallback: () -> Unit) {
1938
+ if (jsTruthy(this._dialogFragment)) {
1939
+ val manager: FragmentManager? =
1940
+ (this._dialogFragment ?: jsCannotRead("getFragmentManager")).getFragmentManager()
1941
+ if (jsTruthy(manager)) {
1942
+ (this._dialogFragment ?: jsCannotRead("dismissAllowingStateLoss"))
1943
+ .dismissAllowingStateLoss()
1944
+ }
1945
+ }
1946
+ this._dialogFragment = null
1947
+ whenClosedCallback()
1948
+ }
1949
+
1950
+ open fun __symbol_isEnabledProperty_setNative(value: Boolean) {
1951
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1952
+ ?: jsCannotRead("setEnabled"))
1953
+ .setEnabled(value)
1954
+ }
1955
+
1956
+ open fun __symbol_originXProperty_getDefault(): Double {
1957
+ return (jsCast(this.nativeViewProtected, android_view_View::class.java)
1958
+ ?: jsCannotRead("getPivotX"))
1959
+ .getPivotX()
1960
+ .toDouble()
1961
+ }
1962
+
1963
+ open fun __symbol_originXProperty_setNative(value: Double) {
1964
+ OriginPoint.setX(
1965
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
1966
+ value.toFloat(),
1967
+ )
1968
+ }
1969
+
1970
+ open fun __symbol_originYProperty_getDefault(): Double {
1971
+ return (jsCast(this.nativeViewProtected, android_view_View::class.java)
1972
+ ?: jsCannotRead("getPivotY"))
1973
+ .getPivotY()
1974
+ .toDouble()
1975
+ }
1976
+
1977
+ open fun __symbol_originYProperty_setNative(value: Double) {
1978
+ OriginPoint.setY(
1979
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
1980
+ value.toFloat(),
1981
+ )
1982
+ }
1983
+
1984
+ open fun __symbol_isUserInteractionEnabledProperty_setNative(value: Boolean) {
1985
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1986
+ ?: jsCannotRead("setClickable"))
1987
+ .setClickable(value)
1988
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
1989
+ ?: jsCannotRead("setFocusable"))
1990
+ .setFocusable(value)
1991
+ }
1992
+
1993
+ open fun __symbol_hiddenProperty_getDefault(): Boolean {
1994
+ return (jsCast(this.nativeViewProtected, android_view_View::class.java)
1995
+ ?: jsCannotRead("getVisibility"))
1996
+ .getVisibility()
1997
+ .toDouble() == android_view_View.GONE.toDouble()
1998
+ }
1999
+
2000
+ open fun __symbol_hiddenProperty_setNative(value: Boolean) {
2001
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2002
+ ?: jsCannotRead("setVisibility"))
2003
+ .setVisibility(
2004
+ (if (value) android_view_View.GONE.toDouble()
2005
+ else android_view_View.VISIBLE.toDouble())
2006
+ .toLong()
2007
+ .toInt()
2008
+ )
2009
+ }
2010
+
2011
+ open fun __symbol_visibilityProperty_getDefault(): String {
2012
+ val nativeVisibility: Double =
2013
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2014
+ ?: jsCannotRead("getVisibility"))
2015
+ .getVisibility()
2016
+ .toDouble()
2017
+ when (nativeVisibility) {
2018
+ android_view_View.VISIBLE.toDouble() -> {
2019
+ return "visible"
2020
+ }
2021
+ android_view_View.INVISIBLE.toDouble() -> {
2022
+ return "hidden"
2023
+ }
2024
+ android_view_View.GONE.toDouble() -> {
2025
+ return "collapse"
2026
+ }
2027
+ else -> {
2028
+ throw JSException(
2029
+ JSError(
2030
+ "Unsupported android.view.View visibility: ${js(nativeVisibility)}. Currently supported values are android.view.View.VISIBLE, android.view.View.INVISIBLE, android.view.View.GONE."
2031
+ )
2032
+ )
2033
+ }
2034
+ }
2035
+ }
2036
+
2037
+ open fun __symbol_visibilityProperty_setNative(value: String?) {
2038
+ when ((value ?: "undefined")) {
2039
+ "visible" -> {
2040
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2041
+ ?: jsCannotRead("setVisibility"))
2042
+ .setVisibility(android_view_View.VISIBLE)
2043
+ }
2044
+ "hidden" -> {
2045
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2046
+ ?: jsCannotRead("setVisibility"))
2047
+ .setVisibility(android_view_View.INVISIBLE)
2048
+ }
2049
+ "collapse" -> {
2050
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2051
+ ?: jsCannotRead("setVisibility"))
2052
+ .setVisibility(android_view_View.GONE)
2053
+ }
2054
+ else -> {
2055
+ throw JSException(
2056
+ JSError(
2057
+ "Invalid visibility value: ${jsToString((value ?: "undefined"))}. Valid values are: visible, hidden, collapse."
2058
+ )
2059
+ )
2060
+ }
2061
+ }
2062
+ }
2063
+
2064
+ open fun __symbol_opacityProperty_getDefault(): Double {
2065
+ return (jsCast(this.nativeViewProtected, android_view_View::class.java)
2066
+ ?: jsCannotRead("getAlpha"))
2067
+ .getAlpha()
2068
+ .toDouble()
2069
+ }
2070
+
2071
+ open fun __symbol_opacityProperty_setNative(value: Double) {
2072
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2073
+ ?: jsCannotRead("setAlpha"))
2074
+ .setAlpha(jsToNumber(value).toFloat())
2075
+ }
2076
+
2077
+ open fun __symbol_accessibilityRoleProperty_setNative(value: String?) {
2078
+ this.accessibilityRole = (value ?: "undefined")
2079
+ Core_application_helpers_common.updateA11yPropertiesCallback(this)
2080
+ if (Core_utils_constants.SDK_VERSION >= 28.0) {
2081
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2082
+ ?.setAccessibilityHeading(value == AccessibilityRole.Header) ?: jsObjectRequired())
2083
+ }
2084
+ }
2085
+
2086
+ open fun __symbol_accessibilityLiveRegionProperty_setNative(value: String?) {
2087
+ when ((value ?: "undefined")) {
2088
+ AccessibilityLiveRegion.Assertive -> {
2089
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2090
+ ?: jsCannotRead("setAccessibilityLiveRegion"))
2091
+ .setAccessibilityLiveRegion(
2092
+ android_view_View.ACCESSIBILITY_LIVE_REGION_ASSERTIVE
2093
+ )
2094
+ }
2095
+ AccessibilityLiveRegion.Polite -> {
2096
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2097
+ ?: jsCannotRead("setAccessibilityLiveRegion"))
2098
+ .setAccessibilityLiveRegion(android_view_View.ACCESSIBILITY_LIVE_REGION_POLITE)
2099
+ }
2100
+ else -> {
2101
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2102
+ ?: jsCannotRead("setAccessibilityLiveRegion"))
2103
+ .setAccessibilityLiveRegion(android_view_View.ACCESSIBILITY_LIVE_REGION_NONE)
2104
+ }
2105
+ }
2106
+ }
2107
+
2108
+ open fun __symbol_accessibilityStateProperty_setNative(value: String?) {
2109
+ this.accessibilityState = (value ?: "undefined")
2110
+ Core_application_helpers_common.updateA11yPropertiesCallback(this)
2111
+ }
2112
+
2113
+ open fun __symbol_horizontalAlignmentProperty_getDefault(): String {
2114
+ return org_nativescript_widgets_ViewHelper.getHorizontalAlignment(
2115
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
2116
+ )
2117
+ }
2118
+
2119
+ open fun __symbol_horizontalAlignmentProperty_setNative(value: String?) {
2120
+ val nativeView: android_view_View? =
2121
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
2122
+ val lp: Any? = kotlin.run {
2123
+ val __v_1: Any? =
2124
+ ((nativeView ?: jsCannotRead("getLayoutParams")).getLayoutParams() ?: JSNull)
2125
+ if (jsTruthy(__v_1)) __v_1 else CommonLayoutParams()
2126
+ }
2127
+ val gravity: Any? = jsGet(lp, "gravity")
2128
+ val weight: Any? = jsGet(lp, "weight")
2129
+ if (!jsIsNullish(gravity)) {
2130
+ when ((value ?: "undefined")) {
2131
+ "start" -> {
2132
+ jsSet(
2133
+ lp,
2134
+ "gravity",
2135
+ jsBitOr(
2136
+ ((if (
2137
+ this.direction == org.nativescript.kit.CoreTypes.LayoutDirection.rtl
2138
+ )
2139
+ Core_ui_core_view_index.GRAVITY_RIGHT
2140
+ else Core_ui_core_view_index.GRAVITY_LEFT)),
2141
+ (jsBitAndThrowing(
2142
+ gravity,
2143
+ Core_ui_core_view_index.VERTICAL_GRAVITY_MASK,
2144
+ )),
2145
+ ),
2146
+ )
2147
+ if (jsLessThrowing(weight, 0.0)) {
2148
+ jsSet(lp, "weight", -2.0)
2149
+ }
2150
+ }
2151
+ "left" -> {
2152
+ jsSet(
2153
+ lp,
2154
+ "gravity",
2155
+ jsBitOr(
2156
+ Core_ui_core_view_index.GRAVITY_LEFT,
2157
+ (jsBitAndThrowing(
2158
+ gravity,
2159
+ Core_ui_core_view_index.VERTICAL_GRAVITY_MASK,
2160
+ )),
2161
+ ),
2162
+ )
2163
+ if (jsLessThrowing(weight, 0.0)) {
2164
+ jsSet(lp, "weight", -2.0)
2165
+ }
2166
+ }
2167
+ "center" -> {
2168
+ jsSet(
2169
+ lp,
2170
+ "gravity",
2171
+ jsBitOr(
2172
+ Core_ui_core_view_index.GRAVITY_CENTER_HORIZONTAL,
2173
+ (jsBitAndThrowing(
2174
+ gravity,
2175
+ Core_ui_core_view_index.VERTICAL_GRAVITY_MASK,
2176
+ )),
2177
+ ),
2178
+ )
2179
+ if (jsLessThrowing(weight, 0.0)) {
2180
+ jsSet(lp, "weight", -2.0)
2181
+ }
2182
+ }
2183
+ "right" -> {
2184
+ jsSet(
2185
+ lp,
2186
+ "gravity",
2187
+ jsBitOr(
2188
+ Core_ui_core_view_index.GRAVITY_RIGHT,
2189
+ (jsBitAndThrowing(
2190
+ gravity,
2191
+ Core_ui_core_view_index.VERTICAL_GRAVITY_MASK,
2192
+ )),
2193
+ ),
2194
+ )
2195
+ if (jsLessThrowing(weight, 0.0)) {
2196
+ jsSet(lp, "weight", -2.0)
2197
+ }
2198
+ }
2199
+ "end" -> {
2200
+ jsSet(
2201
+ lp,
2202
+ "gravity",
2203
+ jsBitOr(
2204
+ ((if (
2205
+ this.direction == org.nativescript.kit.CoreTypes.LayoutDirection.rtl
2206
+ )
2207
+ Core_ui_core_view_index.GRAVITY_LEFT
2208
+ else Core_ui_core_view_index.GRAVITY_RIGHT)),
2209
+ (jsBitAndThrowing(
2210
+ gravity,
2211
+ Core_ui_core_view_index.VERTICAL_GRAVITY_MASK,
2212
+ )),
2213
+ ),
2214
+ )
2215
+ if (jsLessThrowing(weight, 0.0)) {
2216
+ jsSet(lp, "weight", -2.0)
2217
+ }
2218
+ }
2219
+ "stretch" -> {
2220
+ jsSet(
2221
+ lp,
2222
+ "gravity",
2223
+ jsBitOr(
2224
+ Core_ui_core_view_index.GRAVITY_FILL_HORIZONTAL,
2225
+ (jsBitAndThrowing(
2226
+ gravity,
2227
+ Core_ui_core_view_index.VERTICAL_GRAVITY_MASK,
2228
+ )),
2229
+ ),
2230
+ )
2231
+ if (jsLessThrowing(weight, 0.0)) {
2232
+ jsSet(lp, "weight", -1.0)
2233
+ }
2234
+ }
2235
+ }
2236
+ (nativeView ?: jsCannotRead("setLayoutParams")).setLayoutParams(
2237
+ (lp as ViewGroup.LayoutParams?)
2238
+ )
2239
+ }
2240
+ }
2241
+
2242
+ open fun __symbol_verticalAlignmentProperty_getDefault(): String {
2243
+ return org_nativescript_widgets_ViewHelper.getVerticalAlignment(
2244
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
2245
+ )
2246
+ }
2247
+
2248
+ open fun __symbol_verticalAlignmentProperty_setNative(value: String?) {
2249
+ val nativeView: android_view_View? =
2250
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
2251
+ val lp: Any? = kotlin.run {
2252
+ val __v_1: Any? =
2253
+ ((nativeView ?: jsCannotRead("getLayoutParams")).getLayoutParams() ?: JSNull)
2254
+ if (jsTruthy(__v_1)) __v_1 else CommonLayoutParams()
2255
+ }
2256
+ val gravity: Any? = jsGet(lp, "gravity")
2257
+ val height: Any? = jsGet(lp, "height")
2258
+ if (!jsStrictEquals(gravity, null)) {
2259
+ when ((value ?: "undefined")) {
2260
+ "top" -> {
2261
+ jsSet(
2262
+ lp,
2263
+ "gravity",
2264
+ jsBitOr(
2265
+ Core_ui_core_view_index.GRAVITY_TOP,
2266
+ (jsBitAndThrowing(
2267
+ gravity,
2268
+ Core_ui_core_view_index.HORIZONTAL_GRAVITY_MASK,
2269
+ )),
2270
+ ),
2271
+ )
2272
+ if (jsLessThrowing(height, 0.0)) {
2273
+ jsSet(lp, "height", -2.0)
2274
+ }
2275
+ }
2276
+ "middle" -> {
2277
+ jsSet(
2278
+ lp,
2279
+ "gravity",
2280
+ jsBitOr(
2281
+ Core_ui_core_view_index.GRAVITY_CENTER_VERTICAL,
2282
+ (jsBitAndThrowing(
2283
+ gravity,
2284
+ Core_ui_core_view_index.HORIZONTAL_GRAVITY_MASK,
2285
+ )),
2286
+ ),
2287
+ )
2288
+ if (jsLessThrowing(height, 0.0)) {
2289
+ jsSet(lp, "height", -2.0)
2290
+ }
2291
+ }
2292
+ "bottom" -> {
2293
+ jsSet(
2294
+ lp,
2295
+ "gravity",
2296
+ jsBitOr(
2297
+ Core_ui_core_view_index.GRAVITY_BOTTOM,
2298
+ (jsBitAndThrowing(
2299
+ gravity,
2300
+ Core_ui_core_view_index.HORIZONTAL_GRAVITY_MASK,
2301
+ )),
2302
+ ),
2303
+ )
2304
+ if (jsLessThrowing(height, 0.0)) {
2305
+ jsSet(lp, "height", -2.0)
2306
+ }
2307
+ }
2308
+ "stretch" -> {
2309
+ jsSet(
2310
+ lp,
2311
+ "gravity",
2312
+ jsBitOr(
2313
+ Core_ui_core_view_index.GRAVITY_FILL_VERTICAL,
2314
+ (jsBitAndThrowing(
2315
+ gravity,
2316
+ Core_ui_core_view_index.HORIZONTAL_GRAVITY_MASK,
2317
+ )),
2318
+ ),
2319
+ )
2320
+ if (jsLessThrowing(height, 0.0)) {
2321
+ jsSet(lp, "height", -1.0)
2322
+ }
2323
+ }
2324
+ }
2325
+ (nativeView ?: jsCannotRead("setLayoutParams")).setLayoutParams(
2326
+ (lp as ViewGroup.LayoutParams?)
2327
+ )
2328
+ }
2329
+ }
2330
+
2331
+ open fun __symbol_statusBarStyleProperty_getDefault(): String {
2332
+ return (this.style ?: jsCannotRead("statusBarStyle")).statusBarStyle
2333
+ }
2334
+
2335
+ open fun __symbol_statusBarStyleProperty_setNative(value: Any?) {
2336
+ this.updateStatusBarStyle(jsConvertedStringOrNull(value))
2337
+ }
2338
+
2339
+ @Suppress("DEPRECATION")
2340
+ override fun updateStatusBarStyle(value: String?) {
2341
+ val value: Any? = value
2342
+ if (Core_utils_constants.SDK_VERSION < 21.0) {
2343
+ return
2344
+ }
2345
+ val window: Window? = this.getClosestWindow()
2346
+ (window ?: jsCannotRead("clearFlags")).clearFlags(
2347
+ WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS
2348
+ )
2349
+ (window ?: jsCannotRead("addFlags")).addFlags(
2350
+ WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS
2351
+ )
2352
+ val decorView: android_view_View? =
2353
+ (window ?: jsCannotRead("getDecorView")).getDecorView()
2354
+ if (Core_utils_constants.SDK_VERSION >= 30.0) {
2355
+ val controller: WindowInsetsController? =
2356
+ jsCastCarried(
2357
+ jsCallOptional(
2358
+ jsJavaGet((window ?: jsObjectRequired()), "getInsetsController")
2359
+ ),
2360
+ WindowInsetsController::class.java,
2361
+ )
2362
+ if (jsTruthy(controller)) {
2363
+ val APPEARANCE_LIGHT_STATUS_BARS: Double =
2364
+ (WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS.toDouble() ?: Double.NaN)
2365
+ if (jsTypeof(value) == "string") {
2366
+ (this.style ?: jsCannotSet("statusBarStyle")).statusBarStyle =
2367
+ jsConvertedString(value)
2368
+ if (jsConvertedString(value) == "light") {
2369
+ (controller ?: jsCannotRead("setSystemBarsAppearance"))
2370
+ .setSystemBarsAppearance(
2371
+ 0,
2372
+ APPEARANCE_LIGHT_STATUS_BARS.toLong().toInt(),
2373
+ )
2374
+ } else {
2375
+ (controller ?: jsCannotRead("setSystemBarsAppearance"))
2376
+ .setSystemBarsAppearance(
2377
+ APPEARANCE_LIGHT_STATUS_BARS.toLong().toInt(),
2378
+ APPEARANCE_LIGHT_STATUS_BARS.toLong().toInt(),
2379
+ )
2380
+ }
2381
+ } else {
2382
+ if (jsConvertedNumberOrNull(jsGet(value, "color")) != null) {
2383
+ (window ?: jsCannotRead("setStatusBarColor"))
2384
+ .setStatusBarColor(
2385
+ jsConvertedNumberOrZero(jsGet(value, "color")).toLong().toInt()
2386
+ )
2387
+ }
2388
+ }
2389
+ }
2390
+ return
2391
+ }
2392
+ if (Core_utils_constants.SDK_VERSION >= 23.0) {
2393
+ if (jsTypeof(value) == "string") {
2394
+ (this.style ?: jsCannotSet("statusBarStyle")).statusBarStyle =
2395
+ jsConvertedString(value)
2396
+ var flags: Double =
2397
+ (decorView ?: jsCannotRead("getSystemUiVisibility"))
2398
+ .getSystemUiVisibility()
2399
+ .toDouble()
2400
+ if (jsConvertedString(value) == "light") {
2401
+ flags =
2402
+ jsBitOr(flags, android_view_View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR.toDouble())
2403
+ (decorView ?: jsCannotRead("setSystemUiVisibility"))
2404
+ .setSystemUiVisibility(flags.toLong().toInt())
2405
+ } else {
2406
+ flags =
2407
+ jsBitAnd(
2408
+ flags,
2409
+ jsBitNot(android_view_View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR.toDouble()),
2410
+ )
2411
+ (decorView ?: jsCannotRead("setSystemUiVisibility"))
2412
+ .setSystemUiVisibility(flags.toLong().toInt())
2413
+ }
2414
+ } else {
2415
+ if (jsConvertedNumberOrNull(jsGet(value, "color")) != null) {
2416
+ (window ?: jsCannotRead("setStatusBarColor")).setStatusBarColor(
2417
+ jsConvertedNumberOrZero(jsGet(value, "color")).toLong().toInt()
2418
+ )
2419
+ }
2420
+ if (
2421
+ jsConvertedNumberOrNull(jsGet(value, "systemUiVisibility")) != null
2422
+ ) {
2423
+ val merged: Double =
2424
+ jsBitOr(
2425
+ (jsBitAnd(
2426
+ (decorView ?: jsCannotRead("getSystemUiVisibility"))
2427
+ .getSystemUiVisibility()
2428
+ .toDouble(),
2429
+ jsBitNot(
2430
+ android_view_View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR.toDouble()
2431
+ ),
2432
+ )),
2433
+ (jsBitAnd(
2434
+ jsConvertedNumberOrZero(jsGet(value, "systemUiVisibility")),
2435
+ android_view_View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR.toDouble(),
2436
+ )),
2437
+ )
2438
+ (decorView ?: jsCannotRead("setSystemUiVisibility"))
2439
+ .setSystemUiVisibility(merged.toLong().toInt())
2440
+ }
2441
+ }
2442
+ return
2443
+ }
2444
+ if (
2445
+ jsTypeof(value) == "object" && jsConvertedNumberOrNull(jsGet(value, "color")) != null
2446
+ ) {
2447
+ (window ?: jsCannotRead("setStatusBarColor")).setStatusBarColor(
2448
+ jsConvertedNumberOrZero(jsGet(value, "color")).toLong().toInt()
2449
+ )
2450
+ }
2451
+ }
2452
+
2453
+ override fun getClosestWindow(): Window? {
2454
+ val view: Any? = (this.parent ?: this)
2455
+ val dialogFragment: androidx_fragment_app_DialogFragment? =
2456
+ (jsCastCarried(view, View::class.java))._dialogFragment
2457
+ if (jsTruthy(dialogFragment)) {
2458
+ val dialog: Dialog? =
2459
+ (dialogFragment ?: jsCannotRead("getDialog")).getDialog()
2460
+ if (jsTruthy(dialog)) {
2461
+ return (dialog ?: jsCannotRead("getWindow")).getWindow()
2462
+ }
2463
+ }
2464
+ return jsCast(jsCallMethod(this._context, "getWindow"), Window::class.java)
2465
+ }
2466
+
2467
+ override fun setAccessibilityIdentifier_(view: Any?, value: String?) {
2468
+ val value: Any? = value
2469
+ val id: Double =
2470
+ Core_utils_native_helper.android.resources.getId(":id/nativescript_accessibility_id")
2471
+ if (jsTruthy(id)) {
2472
+ jsCallMethod(view, "setTag", id, value)
2473
+ jsCallMethod(view, "setTag", value)
2474
+ }
2475
+ if ((!this.testID.isNullOrEmpty() && !jsStrictEquals(this.testID, value))) {
2476
+ this.testID = jsConvertedStringOrEmpty(value)
2477
+ }
2478
+ if (!jsStrictEquals(this.accessibilityIdentifier, value)) {
2479
+ this.accessibilityIdentifier = jsConvertedStringOrEmpty(value)
2480
+ }
2481
+ }
2482
+
2483
+ open fun __symbol_directionProperty_setNative(value: String?) {
2484
+ val nativeView: android_view_View? =
2485
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
2486
+ when ((value ?: "undefined")) {
2487
+ org.nativescript.kit.CoreTypes.LayoutDirection.ltr -> {
2488
+ (nativeView ?: jsCannotRead("setLayoutDirection")).setLayoutDirection(
2489
+ android_view_View.LAYOUT_DIRECTION_LTR
2490
+ )
2491
+ }
2492
+ org.nativescript.kit.CoreTypes.LayoutDirection.rtl -> {
2493
+ (nativeView ?: jsCannotRead("setLayoutDirection")).setLayoutDirection(
2494
+ android_view_View.LAYOUT_DIRECTION_RTL
2495
+ )
2496
+ }
2497
+ else -> {
2498
+ (nativeView ?: jsCannotRead("setLayoutDirection")).setLayoutDirection(
2499
+ android_view_View.LAYOUT_DIRECTION_LOCALE
2500
+ )
2501
+ }
2502
+ }
2503
+ }
2504
+
2505
+ open fun __symbol_testIDProperty_setNative(value: String?) {
2506
+ this.setAccessibilityIdentifier_(
2507
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
2508
+ value,
2509
+ )
2510
+ }
2511
+
2512
+ open fun __symbol_accessibilityEnabledProperty_setNative(value: Boolean) {
2513
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2514
+ ?: jsCannotRead("setFocusable"))
2515
+ .setFocusable(value)
2516
+ Core_application_helpers_common.updateA11yPropertiesCallback(this)
2517
+ }
2518
+
2519
+ open fun __symbol_accessibilityIdentifierProperty_setNative(value: String?) {
2520
+ this.setAccessibilityIdentifier_(
2521
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
2522
+ value,
2523
+ )
2524
+ }
2525
+
2526
+ open fun __symbol_accessibilityValueProperty_setNative(value: String?) {
2527
+ this._androidContentDescriptionUpdated = true
2528
+ Core_application_helpers.updateContentDescription(this)
2529
+ }
2530
+
2531
+ open fun __symbol_accessibilityLabelProperty_setNative(value: String?) {
2532
+ this._androidContentDescriptionUpdated = true
2533
+ Core_application_helpers.updateContentDescription(this)
2534
+ }
2535
+
2536
+ open fun __symbol_accessibilityHintProperty_setNative(value: String?) {
2537
+ this._androidContentDescriptionUpdated = true
2538
+ Core_application_helpers.updateContentDescription(this)
2539
+ }
2540
+
2541
+ open fun __symbol_accessibilityHiddenProperty_setNative(value: Boolean) {
2542
+ if (value) {
2543
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2544
+ ?: jsCannotRead("setImportantForAccessibility"))
2545
+ .setImportantForAccessibility(
2546
+ android_view_View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
2547
+ )
2548
+ } else {
2549
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2550
+ ?: jsCannotRead("setImportantForAccessibility"))
2551
+ .setImportantForAccessibility(android_view_View.IMPORTANT_FOR_ACCESSIBILITY_YES)
2552
+ }
2553
+ }
2554
+
2555
+ open fun __symbol_accessibilityMediaSessionProperty_setNative(value: String?) {
2556
+ Core_application_helpers_common.updateA11yPropertiesCallback(this)
2557
+ }
2558
+
2559
+ open fun __symbol_androidElevationProperty_getDefault(): Double {
2560
+ return this.getDefaultElevation()
2561
+ }
2562
+
2563
+ open fun __symbol_androidElevationProperty_setNative(value: Double) {
2564
+ if (Core_utils_constants.SDK_VERSION < 21.0) {
2565
+ return
2566
+ }
2567
+ this.refreshStateListAnimator()
2568
+ }
2569
+
2570
+ open fun __symbol_androidDynamicElevationOffsetProperty_getDefault(): Double {
2571
+ return this.getDefaultDynamicElevationOffset()
2572
+ }
2573
+
2574
+ open fun __symbol_androidDynamicElevationOffsetProperty_setNative(value: Double) {
2575
+ if (Core_utils_constants.SDK_VERSION < 21.0) {
2576
+ return
2577
+ }
2578
+ this.refreshStateListAnimator()
2579
+ }
2580
+
2581
+ fun getDefaultElevation__View(): Double {
2582
+ if (Core_utils_constants.SDK_VERSION < 21.0) {
2583
+ return 0.0
2584
+ }
2585
+ return org.nativescript.kit.layout.toDeviceIndependentPixels(
2586
+ jsConvertedNumberOrZero(
2587
+ jsCallMethod(
2588
+ ((jsCast(this.nativeViewProtected, android_view_View::class.java)
2589
+ ?: jsObjectRequired())),
2590
+ "getElevation",
2591
+ )
2592
+ )
2593
+ )
2594
+ }
2595
+
2596
+ open fun getDefaultElevation(): Double {
2597
+ if (Core_utils_constants.SDK_VERSION < 21.0) {
2598
+ return 0.0
2599
+ }
2600
+ return org.nativescript.kit.layout.toDeviceIndependentPixels(
2601
+ jsConvertedNumberOrZero(
2602
+ jsCallMethod(
2603
+ ((jsCast(this.nativeViewProtected, android_view_View::class.java)
2604
+ ?: jsObjectRequired())),
2605
+ "getElevation",
2606
+ )
2607
+ )
2608
+ )
2609
+ }
2610
+
2611
+ fun getDefaultDynamicElevationOffset__View(): Double {
2612
+ return 0.0
2613
+ }
2614
+
2615
+ open fun getDefaultDynamicElevationOffset(): Double {
2616
+ return 0.0
2617
+ }
2618
+
2619
+ open fun refreshStateListAnimator() {
2620
+ val nativeView: Any? =
2621
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
2622
+ val duration: Double =
2623
+ jsDivideThrowing(
2624
+ jsCallMethod(
2625
+ jsCallMethod(jsCallMethod(nativeView, "getContext"), "getResources"),
2626
+ "getInteger",
2627
+ Core_ui_core_view_index.shortAnimTime,
2628
+ ),
2629
+ 2.0,
2630
+ )
2631
+ var elevation: Double = this.androidElevation
2632
+ elevation = org.nativescript.kit.layout.toDevicePixels(elevation)
2633
+ val z: Double = org.nativescript.kit.layout.toDevicePixels(0.0)
2634
+ var pressedZ: Double = this.androidDynamicElevationOffset
2635
+ pressedZ = org.nativescript.kit.layout.toDevicePixels(pressedZ)
2636
+ val pressedSet: AnimatorSet = AnimatorSet()
2637
+ pressedSet.playTogether(
2638
+ jsAs<MutableCollection<Animator>?>(
2639
+ Arrays.asList(
2640
+ *(arrayOf<Any>(
2641
+ ObjectAnimator.ofFloat(
2642
+ ((nativeView as Any?) as Any?),
2643
+ "translationZ",
2644
+ *floatArrayOf(pressedZ.toFloat()),
2645
+ )
2646
+ .setDuration(duration.toLong()),
2647
+ ObjectAnimator.ofFloat(
2648
+ ((nativeView as Any?) as Any?),
2649
+ "elevation",
2650
+ *floatArrayOf(elevation.toFloat()),
2651
+ )
2652
+ .setDuration(0L),
2653
+ ))
2654
+ )
2655
+ )
2656
+ )
2657
+ val notPressedSet: AnimatorSet = AnimatorSet()
2658
+ notPressedSet.playTogether(
2659
+ jsAs<MutableCollection<Animator>?>(
2660
+ Arrays.asList(
2661
+ *(arrayOf<Any>(
2662
+ ObjectAnimator.ofFloat(
2663
+ ((nativeView as Any?) as Any?),
2664
+ "translationZ",
2665
+ *floatArrayOf(z.toFloat()),
2666
+ )
2667
+ .setDuration(duration.toLong()),
2668
+ ObjectAnimator.ofFloat(
2669
+ ((nativeView as Any?) as Any?),
2670
+ "elevation",
2671
+ *floatArrayOf(elevation.toFloat()),
2672
+ )
2673
+ .setDuration(0L),
2674
+ ))
2675
+ )
2676
+ )
2677
+ )
2678
+ val defaultSet: AnimatorSet = AnimatorSet()
2679
+ defaultSet.playTogether(
2680
+ jsAs<MutableCollection<Animator>?>(
2681
+ Arrays.asList(
2682
+ *(arrayOf<Any>(
2683
+ ObjectAnimator.ofFloat(
2684
+ ((nativeView as Any?) as Any?),
2685
+ "translationZ",
2686
+ *floatArrayOf(0f),
2687
+ )
2688
+ .setDuration(0L),
2689
+ ObjectAnimator.ofFloat(
2690
+ ((nativeView as Any?) as Any?),
2691
+ "elevation",
2692
+ *floatArrayOf(0f),
2693
+ )
2694
+ .setDuration(0L),
2695
+ ))
2696
+ )
2697
+ )
2698
+ )
2699
+ val stateListAnimator: Any? = StateListAnimator()
2700
+ jsCallMethod(
2701
+ stateListAnimator,
2702
+ "addState",
2703
+ jsArrayOf<Any?>(
2704
+ Core_ui_core_view_index.statePressed,
2705
+ Core_ui_core_view_index.stateEnabled,
2706
+ ),
2707
+ pressedSet,
2708
+ )
2709
+ jsCallMethod(
2710
+ stateListAnimator,
2711
+ "addState",
2712
+ jsArrayOf<Any?>(Core_ui_core_view_index.stateEnabled),
2713
+ notPressedSet,
2714
+ )
2715
+ jsCallMethod(stateListAnimator, "addState", JSArray<Any?>(), defaultSet)
2716
+ val currentAnimator: Any? = jsCallMethod(nativeView, "getStateListAnimator")
2717
+ if (jsTruthy(currentAnimator)) {
2718
+ jsCallMethod(currentAnimator, "jumpToCurrentState")
2719
+ }
2720
+ jsCallMethod(nativeView, "setStateListAnimator", stateListAnimator)
2721
+ }
2722
+
2723
+ open fun __symbol_rotateProperty_setNative(value: Double) {
2724
+ org_nativescript_widgets_ViewHelper.setRotate(
2725
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
2726
+ jsToNumber(value).toFloat(),
2727
+ )
2728
+ }
2729
+
2730
+ open fun __symbol_rotateXProperty_setNative(value: Double) {
2731
+ org_nativescript_widgets_ViewHelper.setRotateX(
2732
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
2733
+ jsToNumber(value).toFloat(),
2734
+ )
2735
+ }
2736
+
2737
+ open fun __symbol_rotateYProperty_setNative(value: Double) {
2738
+ org_nativescript_widgets_ViewHelper.setRotateY(
2739
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
2740
+ jsToNumber(value).toFloat(),
2741
+ )
2742
+ }
2743
+
2744
+ open fun __symbol_perspectiveProperty_setNative(value: Double) {
2745
+ org_nativescript_widgets_ViewHelper.setPerspective(
2746
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
2747
+ jsToNumber(value * (Screen.mainScreen ?: jsCannotRead("scale")).scale).toFloat(),
2748
+ )
2749
+ }
2750
+
2751
+ open fun __symbol_scaleXProperty_setNative(value: Double) {
2752
+ org_nativescript_widgets_ViewHelper.setScaleX(
2753
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
2754
+ jsToNumber(value).toFloat(),
2755
+ )
2756
+ }
2757
+
2758
+ open fun __symbol_scaleYProperty_setNative(value: Double) {
2759
+ org_nativescript_widgets_ViewHelper.setScaleY(
2760
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
2761
+ jsToNumber(value).toFloat(),
2762
+ )
2763
+ }
2764
+
2765
+ open fun __symbol_translateXProperty_setNative(value: Double) {
2766
+ org_nativescript_widgets_ViewHelper.setTranslateX(
2767
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
2768
+ org.nativescript.kit.layout.toDevicePixels(value).toFloat(),
2769
+ )
2770
+ }
2771
+
2772
+ open fun __symbol_translateYProperty_setNative(value: Double) {
2773
+ org_nativescript_widgets_ViewHelper.setTranslateY(
2774
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
2775
+ org.nativescript.kit.layout.toDevicePixels(value).toFloat(),
2776
+ )
2777
+ }
2778
+
2779
+ open fun __symbol_zIndexProperty_getDefault(): Double {
2780
+ return 0.0
2781
+ }
2782
+
2783
+ open fun __symbol_zIndexProperty_setNative(value: Double) {
2784
+ org_nativescript_widgets_ViewHelper.setZIndex(
2785
+ jsCast(this.nativeViewProtected, android_view_View::class.java),
2786
+ value.toFloat(),
2787
+ )
2788
+ }
2789
+
2790
+ open fun __symbol_backgroundInternalProperty_getDefault(): Drawable? {
2791
+ val nativeView: android_view_View? =
2792
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
2793
+ return AndroidHelper.getCopyOrDrawable(
2794
+ (nativeView ?: jsCannotRead("getBackground")).getBackground(),
2795
+ (nativeView ?: jsCannotRead("getResources")).getResources(),
2796
+ )
2797
+ }
2798
+
2799
+ open fun __symbol_backgroundInternalProperty_setNative(value: Any?) {
2800
+ this._redrawNativeBackground(value)
2801
+ }
2802
+
2803
+ open fun __symbol_minWidthProperty_setNative(value: Any?) {
2804
+ if (
2805
+ ((this.parent is CustomLayoutView) &&
2806
+ jsTruthy(
2807
+ jsCast(
2808
+ (this.parent as CustomLayoutView).nativeViewProtected,
2809
+ ViewGroup::class.java,
2810
+ )
2811
+ ))
2812
+ ) {
2813
+ (this.parent as CustomLayoutView)._setChildMinWidthNative(this, value)
2814
+ } else {
2815
+ (this._setMinWidthNative ?: jsNotAFunction("this._setMinWidthNative"))(
2816
+ value
2817
+ )
2818
+ }
2819
+ }
2820
+
2821
+ open fun __symbol_minHeightProperty_setNative(value: Any?) {
2822
+ if (
2823
+ ((this.parent is CustomLayoutView) &&
2824
+ jsTruthy(
2825
+ jsCast(
2826
+ (this.parent as CustomLayoutView).nativeViewProtected,
2827
+ ViewGroup::class.java,
2828
+ )
2829
+ ))
2830
+ ) {
2831
+ (this.parent as CustomLayoutView)._setChildMinHeightNative(this, value)
2832
+ } else {
2833
+ (this._setMinHeightNative ?: jsNotAFunction("this._setMinHeightNative"))(
2834
+ value
2835
+ )
2836
+ }
2837
+ }
2838
+
2839
+ override fun _applyBackground(
2840
+ background: Any?,
2841
+ isBorderDrawable: Boolean,
2842
+ onlyColor: Boolean,
2843
+ backgroundDrawable: Drawable?,
2844
+ ) {
2845
+ val background: Background? = jsCast(background, Background::class.java)
2846
+ (fun() {
2847
+ var backgroundDrawable: Drawable? = backgroundDrawable
2848
+ val nativeView: Any? =
2849
+ (jsCast(this.nativeViewProtected, android_view_View::class.java)
2850
+ ?: jsObjectRequired())
2851
+ if (onlyColor) {
2852
+ val backgroundColor: Double =
2853
+ ((background ?: jsCannotRead("color")).color ?: jsCannotRead("android")).android
2854
+ if (isBorderDrawable) {
2855
+ backgroundDrawable =
2856
+ (if (!jsIsNullish(jsGet(nativeView, "_cachedDrawable")))
2857
+ AndroidHelper.getCopyOrDrawable(
2858
+ jsCast(jsGet(nativeView, "_cachedDrawable"), Drawable::class.java),
2859
+ jsCast(
2860
+ jsCallMethod(nativeView, "getResources"),
2861
+ Resources::class.java,
2862
+ ),
2863
+ )
2864
+ else null)
2865
+ jsCallMethod(nativeView, "setBackground", backgroundDrawable)
2866
+ }
2867
+ if ((this.needsNativeDrawableFill && jsTruthy(backgroundDrawable))) {
2868
+ (backgroundDrawable ?: jsCannotRead("mutate")).mutate()
2869
+ AndroidHelper.setDrawableColor(
2870
+ backgroundColor,
2871
+ backgroundDrawable,
2872
+ )
2873
+ (backgroundDrawable ?: jsCannotRead("invalidateSelf"))
2874
+ .invalidateSelf()
2875
+ } else {
2876
+ jsCallMethod(nativeView, "setBackgroundColor", backgroundColor)
2877
+ }
2878
+ } else {
2879
+ if (
2880
+ jsTruthy(
2881
+ jsBitAnd(
2882
+ (background ?: jsCannotRead("clearFlags")).clearFlags,
2883
+ BackgroundClearFlags.CLEAR_BACKGROUND_COLOR,
2884
+ )
2885
+ )
2886
+ ) {
2887
+ if (jsTruthy(backgroundDrawable)) {
2888
+ (backgroundDrawable ?: jsCannotRead("mutate")).mutate()
2889
+ AndroidHelper.clearDrawableColor(backgroundDrawable)
2890
+ (backgroundDrawable ?: jsCannotRead("invalidateSelf"))
2891
+ .invalidateSelf()
2892
+ } else {
2893
+ jsCallMethod(nativeView, "setBackgroundColor", -1.0)
2894
+ }
2895
+ }
2896
+ if ((background ?: jsCannotRead("isEmpty")).isEmpty()) {
2897
+ val defaultDrawable: Any? =
2898
+ jsNullishCoalesce(jsGet(nativeView, "_cachedDrawable")) { jsNull }
2899
+ if (!jsStrictEquals(backgroundDrawable, defaultDrawable)) {
2900
+ jsCallMethod(nativeView, "setBackground", defaultDrawable)
2901
+ }
2902
+ } else {
2903
+ if (isBorderDrawable) {
2904
+ Core_ui_styling_background.refreshBorderDrawable(
2905
+ this,
2906
+ (backgroundDrawable as BorderDrawable?),
2907
+ )
2908
+ } else {
2909
+ val borderDrawable: BorderDrawable =
2910
+ BorderDrawable(
2911
+ org.nativescript.kit.layout.getDisplayDensity().toFloat(),
2912
+ this.toString(),
2913
+ )
2914
+ Core_ui_styling_background.refreshBorderDrawable(
2915
+ this,
2916
+ borderDrawable,
2917
+ )
2918
+ jsCallMethod(nativeView, "setBackground", borderDrawable)
2919
+ }
2920
+ }
2921
+ }
2922
+ })()
2923
+ }
2924
+
2925
+ open fun _drawBoxShadow(boxShadows: JSArray<Any?>?) {
2926
+ val nativeView: android_view_View? =
2927
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
2928
+ val valueCount: Double = 6.0
2929
+ val nativeArray: JSArray<Double>? =
2930
+ jsUnlessNullish(
2931
+ JSArray(
2932
+ IntArray(((boxShadows ?: jsCannotRead("length")).length * valueCount).toInt())
2933
+ .map { it.toDouble() }
2934
+ )
2935
+ ) {
2936
+ jsArrayFrom(it) { jsConvertedNumber(it) }
2937
+ }
2938
+ var i: Double = 0.0
2939
+ val length: Double = (boxShadows ?: jsCannotRead("length")).length
2940
+ while (i < length) {
2941
+ val boxShadow: Any? = (boxShadows ?: jsCannotRead(js(i))).element(i)
2942
+ val nativeIndex: Double = i * valueCount
2943
+ (nativeArray ?: jsCannotSet(js(nativeIndex + 0.0)))[nativeIndex + 0.0] =
2944
+ jsCastCarried(jsGet(boxShadow, "color"), Color::class.java).android
2945
+ (nativeArray ?: jsCannotSet(js(nativeIndex + 1.0)))[nativeIndex + 1.0] =
2946
+ (jsConvertedNumberOrNull(jsGet(boxShadow, "spreadRadius")) ?: Double.NaN)
2947
+ (nativeArray ?: jsCannotSet(js(nativeIndex + 2.0)))[nativeIndex + 2.0] =
2948
+ (jsConvertedNumberOrNull(jsGet(boxShadow, "blurRadius")) ?: Double.NaN)
2949
+ (nativeArray ?: jsCannotSet(js(nativeIndex + 3.0)))[nativeIndex + 3.0] =
2950
+ (jsConvertedNumberOrNull(jsGet(boxShadow, "offsetX")) ?: Double.NaN)
2951
+ (nativeArray ?: jsCannotSet(js(nativeIndex + 4.0)))[nativeIndex + 4.0] =
2952
+ (jsConvertedNumberOrNull(jsGet(boxShadow, "offsetY")) ?: Double.NaN)
2953
+ (nativeArray ?: jsCannotSet(js(nativeIndex + 5.0)))[nativeIndex + 5.0] =
2954
+ (if (jsTruthy(jsConvertedBooleanOrNull(jsGet(boxShadow, "inset")))) 1.0 else 0.0)
2955
+ i += 1.0
2956
+ }
2957
+ Utils.drawBoxShadow(
2958
+ nativeView,
2959
+ nativeArray?.elements?.map { it.toLong().toInt() }?.toIntArray(),
2960
+ )
2961
+ }
2962
+
2963
+ override fun _redrawNativeBackground(value: Any?) {
2964
+ if ((value is Background)) {
2965
+ this.onBackgroundOrBorderPropertyChanged()
2966
+ } else {
2967
+ val nativeView: android_view_View? =
2968
+ jsCast(this.nativeViewProtected, android_view_View::class.java)
2969
+ (nativeView ?: jsCannotRead("setBackground")).setBackground(
2970
+ jsCastCarried(value, Drawable::class.java)
2971
+ )
2972
+ if (jsTruthy(this._isPaddingRelative)) {
2973
+ (nativeView ?: jsCannotRead("setPaddingRelative")).setPaddingRelative(
2974
+ this.effectivePaddingLeft.toLong().toInt(),
2975
+ this.effectivePaddingTop.toLong().toInt(),
2976
+ this.effectivePaddingRight.toLong().toInt(),
2977
+ this.effectivePaddingBottom.toLong().toInt(),
2978
+ )
2979
+ } else {
2980
+ (nativeView ?: jsCannotRead("setPadding")).setPadding(
2981
+ this.effectivePaddingLeft.toLong().toInt(),
2982
+ this.effectivePaddingTop.toLong().toInt(),
2983
+ this.effectivePaddingRight.toLong().toInt(),
2984
+ this.effectivePaddingBottom.toLong().toInt(),
2985
+ )
2986
+ }
2987
+ }
2988
+ }
2989
+
2990
+ open fun onBackgroundOrBorderPropertyChanged() {
2991
+ val nativeView: Any? =
2992
+ (jsCast(this.nativeViewProtected, android_view_View::class.java) ?: jsObjectRequired())
2993
+ if (!jsTruthy(nativeView)) {
2994
+ return
2995
+ }
2996
+ val background: Background? =
2997
+ (this.style ?: jsCannotRead("backgroundInternal")).backgroundInternal
2998
+ val drawable: Any? = jsCallMethod(nativeView, "getBackground")
2999
+ val isBorderDrawable: Boolean = (drawable is BorderDrawable)
3000
+ if (jsStrictEquals(jsGet(nativeView, "_cachedDrawable"), null)) {
3001
+ jsSet(nativeView, "_cachedDrawable", drawable)
3002
+ }
3003
+ if (
3004
+ jsTruthy(
3005
+ jsBitAnd(
3006
+ (background ?: jsCannotRead("clearFlags")).clearFlags,
3007
+ BackgroundClearFlags.CLEAR_BOX_SHADOW,
3008
+ )
3009
+ )
3010
+ ) {
3011
+ if ((drawable is Any)) {
3012
+ jsCallMethod(
3013
+ nativeView,
3014
+ "setBackground",
3015
+ jsNullishCoalesce(jsGet(nativeView, "_cachedDrawable")) { jsNull },
3016
+ )
3017
+ }
3018
+ }
3019
+ val onlyColor: Boolean =
3020
+ !((background ?: jsCannotRead("hasBorderWidth")).hasBorderWidth()) &&
3021
+ !((background ?: jsCannotRead("hasBorderRadius")).hasBorderRadius()) &&
3022
+ !((background ?: jsCannotRead("hasBoxShadows")).hasBoxShadows()) &&
3023
+ !jsTruthy((background ?: jsCannotRead("clipPath")).clipPath) &&
3024
+ !jsTruthy((background ?: jsCannotRead("image")).image) &&
3025
+ jsTruthy((background ?: jsCannotRead("color")).color)
3026
+ this._applyBackground(
3027
+ background,
3028
+ isBorderDrawable,
3029
+ onlyColor,
3030
+ jsCast(drawable, Drawable::class.java),
3031
+ )
3032
+ if ((background ?: jsCannotRead("hasBoxShadows")).hasBoxShadows()) {
3033
+ this._drawBoxShadow(
3034
+ (background ?: jsCannotRead("getBoxShadows")).getBoxShadows_()
3035
+ )
3036
+ }
3037
+ val leftPadding: Double =
3038
+ Math.ceil((this.effectiveBorderLeftWidth ?: Double.NaN) + this.effectivePaddingLeft)
3039
+ val topPadding: Double =
3040
+ Math.ceil((this.effectiveBorderTopWidth ?: Double.NaN) + this.effectivePaddingTop)
3041
+ val rightPadding: Double =
3042
+ Math.ceil((this.effectiveBorderRightWidth ?: Double.NaN) + this.effectivePaddingRight)
3043
+ val bottomPadding: Double =
3044
+ Math.ceil((this.effectiveBorderBottomWidth ?: Double.NaN) + this.effectivePaddingBottom)
3045
+ if (jsTruthy(this._isPaddingRelative)) {
3046
+ jsCallMethod(
3047
+ nativeView,
3048
+ "setPaddingRelative",
3049
+ leftPadding,
3050
+ topPadding,
3051
+ rightPadding,
3052
+ bottomPadding,
3053
+ )
3054
+ } else {
3055
+ jsCallMethod(
3056
+ nativeView,
3057
+ "setPadding",
3058
+ leftPadding,
3059
+ topPadding,
3060
+ rightPadding,
3061
+ bottomPadding,
3062
+ )
3063
+ }
3064
+ (background ?: jsCannotSet("clearFlags")).clearFlags =
3065
+ BackgroundClearFlags.NONE
3066
+ }
3067
+
3068
+ override fun accessibilityAnnouncement(msg: String?) {
3069
+ val message: String = msg ?: this.accessibilityLabel
3070
+ this.sendAccessibilityEvent(
3071
+ jsObjectOf(
3072
+ "androidAccessibilityEvent" to AndroidAccessibilityEvent.ANNOUNCEMENT,
3073
+ "message" to message,
3074
+ )
3075
+ )
3076
+ }
3077
+
3078
+ fun accessibilityScreenChanged__View() {
3079
+ this.sendAccessibilityEvent(
3080
+ jsObjectOf(
3081
+ "androidAccessibilityEvent" to AndroidAccessibilityEvent.WINDOW_STATE_CHANGED
3082
+ )
3083
+ )
3084
+ }
3085
+
3086
+ override fun accessibilityScreenChanged() {
3087
+ this.sendAccessibilityEvent(
3088
+ jsObjectOf(
3089
+ "androidAccessibilityEvent" to AndroidAccessibilityEvent.WINDOW_STATE_CHANGED
3090
+ )
3091
+ )
3092
+ }
3093
+
3094
+ override val jsDeclaredKeys: List<String>
3095
+ get() =
3096
+ super.jsDeclaredKeys +
3097
+ (if ((jsMadeBits1 and (1L shl 46)) != 0L) listOf("_dialogFragment") else listOf()) +
3098
+ (if ((jsMadeBits1 and (1L shl 48)) != 0L) listOf("touchListenerIsSet")
3099
+ else listOf()) +
3100
+ (if ((jsMadeBits1 and (1L shl 49)) != 0L) listOf("touchListener") else listOf()) +
3101
+ (if ((jsMadeBits1 and (1L shl 50)) != 0L) listOf("layoutChangeListenerIsSet")
3102
+ else listOf()) +
3103
+ (if ((jsMadeBits1 and (1L shl 51)) != 0L) listOf("layoutChangeListener")
3104
+ else listOf()) +
3105
+ (if ((jsMadeBits1 and (1L shl 52)) != 0L) listOf("_rootManager") else listOf()) +
3106
+ (if ((jsMadeBits1 and (1L shl 53)) != 0L) listOf("insetListenerIsSet")
3107
+ else listOf())
3108
+
3109
+ override val jsClassName: String?
3110
+ get() = "View"
3111
+
3112
+ private object JSSymbolKeys {
3113
+ val index =
3114
+ JSKeyIndex(49) {
3115
+ when (it) {
3116
+ 0 ->
3117
+ (Core_ui_core_view_view_common.androidOverflowEdgeProperty.setNative?.key
3118
+ ?: "undefined")
3119
+ 1 ->
3120
+ (Core_ui_core_view_view_common.isEnabledProperty.setNative?.key
3121
+ ?: "undefined")
3122
+ 2 ->
3123
+ (Core_ui_core_view_view_common.originXProperty.getDefault?.key
3124
+ ?: "undefined")
3125
+ 3 ->
3126
+ (Core_ui_core_view_view_common.originXProperty.setNative?.key
3127
+ ?: "undefined")
3128
+ 4 ->
3129
+ (Core_ui_core_view_view_common.originYProperty.getDefault?.key
3130
+ ?: "undefined")
3131
+ 5 ->
3132
+ (Core_ui_core_view_view_common.originYProperty.setNative?.key
3133
+ ?: "undefined")
3134
+ 6 ->
3135
+ (Core_ui_core_view_view_common.isUserInteractionEnabledProperty.setNative
3136
+ ?.key ?: "undefined")
3137
+ 7 ->
3138
+ (Core_ui_core_view_base_index.hiddenProperty.getDefault?.key ?: "undefined")
3139
+ 8 -> (Core_ui_core_view_base_index.hiddenProperty.setNative?.key ?: "undefined")
3140
+ 9 ->
3141
+ (Core_ui_styling_style_properties.visibilityProperty.getDefault?.key
3142
+ ?: "undefined")
3143
+ 10 ->
3144
+ (Core_ui_styling_style_properties.visibilityProperty.setNative?.key
3145
+ ?: "undefined")
3146
+ 11 ->
3147
+ (Core_ui_styling_style_properties.opacityProperty.getDefault?.key
3148
+ ?: "undefined")
3149
+ 12 ->
3150
+ (Core_ui_styling_style_properties.opacityProperty.setNative?.key
3151
+ ?: "undefined")
3152
+ 13 ->
3153
+ (Core_accessibility_accessibility_properties.accessibilityRoleProperty
3154
+ .setNative
3155
+ ?.key ?: "undefined")
3156
+ 14 ->
3157
+ (Core_accessibility_accessibility_properties.accessibilityLiveRegionProperty
3158
+ .setNative
3159
+ ?.key ?: "undefined")
3160
+ 15 ->
3161
+ (Core_accessibility_accessibility_properties.accessibilityStateProperty
3162
+ .setNative
3163
+ ?.key ?: "undefined")
3164
+ 16 ->
3165
+ (Core_ui_styling_style_properties.horizontalAlignmentProperty.getDefault
3166
+ ?.key ?: "undefined")
3167
+ 17 ->
3168
+ (Core_ui_styling_style_properties.horizontalAlignmentProperty.setNative?.key
3169
+ ?: "undefined")
3170
+ 18 ->
3171
+ (Core_ui_styling_style_properties.verticalAlignmentProperty.getDefault?.key
3172
+ ?: "undefined")
3173
+ 19 ->
3174
+ (Core_ui_styling_style_properties.verticalAlignmentProperty.setNative?.key
3175
+ ?: "undefined")
3176
+ 20 ->
3177
+ (Core_ui_core_view_view_common.statusBarStyleProperty.getDefault?.key
3178
+ ?: "undefined")
3179
+ 21 ->
3180
+ (Core_ui_core_view_view_common.statusBarStyleProperty.setNative?.key
3181
+ ?: "undefined")
3182
+ 22 ->
3183
+ (Core_ui_styling_style_properties.directionProperty.setNative?.key
3184
+ ?: "undefined")
3185
+ 23 ->
3186
+ (Core_ui_core_view_view_common.testIDProperty.setNative?.key ?: "undefined")
3187
+ 24 ->
3188
+ (Core_accessibility_accessibility_properties.accessibilityEnabledProperty
3189
+ .setNative
3190
+ ?.key ?: "undefined")
3191
+ 25 ->
3192
+ (Core_accessibility_accessibility_properties.accessibilityIdentifierProperty
3193
+ .setNative
3194
+ ?.key ?: "undefined")
3195
+ 26 ->
3196
+ (Core_accessibility_accessibility_properties.accessibilityValueProperty
3197
+ .setNative
3198
+ ?.key ?: "undefined")
3199
+ 27 ->
3200
+ (Core_accessibility_accessibility_properties.accessibilityLabelProperty
3201
+ .setNative
3202
+ ?.key ?: "undefined")
3203
+ 28 ->
3204
+ (Core_accessibility_accessibility_properties.accessibilityHintProperty
3205
+ .setNative
3206
+ ?.key ?: "undefined")
3207
+ 29 ->
3208
+ (Core_accessibility_accessibility_properties.accessibilityHiddenProperty
3209
+ .setNative
3210
+ ?.key ?: "undefined")
3211
+ 30 ->
3212
+ (Core_accessibility_accessibility_properties
3213
+ .accessibilityMediaSessionProperty
3214
+ .setNative
3215
+ ?.key ?: "undefined")
3216
+ 31 ->
3217
+ (Core_ui_styling_style_properties.androidElevationProperty.getDefault?.key
3218
+ ?: "undefined")
3219
+ 32 ->
3220
+ (Core_ui_styling_style_properties.androidElevationProperty.setNative?.key
3221
+ ?: "undefined")
3222
+ 33 ->
3223
+ (Core_ui_styling_style_properties.androidDynamicElevationOffsetProperty
3224
+ .getDefault
3225
+ ?.key ?: "undefined")
3226
+ 34 ->
3227
+ (Core_ui_styling_style_properties.androidDynamicElevationOffsetProperty
3228
+ .setNative
3229
+ ?.key ?: "undefined")
3230
+ 35 ->
3231
+ (Core_ui_styling_style_properties.rotateProperty.setNative?.key
3232
+ ?: "undefined")
3233
+ 36 ->
3234
+ (Core_ui_styling_style_properties.rotateXProperty.setNative?.key
3235
+ ?: "undefined")
3236
+ 37 ->
3237
+ (Core_ui_styling_style_properties.rotateYProperty.setNative?.key
3238
+ ?: "undefined")
3239
+ 38 ->
3240
+ (Core_ui_styling_style_properties.perspectiveProperty.setNative?.key
3241
+ ?: "undefined")
3242
+ 39 ->
3243
+ (Core_ui_styling_style_properties.scaleXProperty.setNative?.key
3244
+ ?: "undefined")
3245
+ 40 ->
3246
+ (Core_ui_styling_style_properties.scaleYProperty.setNative?.key
3247
+ ?: "undefined")
3248
+ 41 ->
3249
+ (Core_ui_styling_style_properties.translateXProperty.setNative?.key
3250
+ ?: "undefined")
3251
+ 42 ->
3252
+ (Core_ui_styling_style_properties.translateYProperty.setNative?.key
3253
+ ?: "undefined")
3254
+ 43 ->
3255
+ (Core_ui_styling_style_properties.zIndexProperty.getDefault?.key
3256
+ ?: "undefined")
3257
+ 44 ->
3258
+ (Core_ui_styling_style_properties.zIndexProperty.setNative?.key
3259
+ ?: "undefined")
3260
+ 45 ->
3261
+ (Core_ui_styling_style_properties.backgroundInternalProperty.getDefault?.key
3262
+ ?: "undefined")
3263
+ 46 ->
3264
+ (Core_ui_styling_style_properties.backgroundInternalProperty.setNative?.key
3265
+ ?: "undefined")
3266
+ 47 ->
3267
+ (Core_ui_styling_style_properties.minWidthProperty.setNative?.key
3268
+ ?: "undefined")
3269
+ 48 ->
3270
+ (Core_ui_styling_style_properties.minHeightProperty.setNative?.key
3271
+ ?: "undefined")
3272
+ else -> ""
3273
+ }
3274
+ }
3275
+ }
3276
+
3277
+ override fun jsGet(key: String): Any? =
3278
+ when (key) {
3279
+ "_dialogFragment" ->
3280
+ if ((jsMadeBits1 and (1L shl 46)) != 0L) this._dialogFragment else null
3281
+ "touchListenerIsSet" ->
3282
+ if ((jsMadeBits1 and (1L shl 48)) != 0L) this.touchListenerIsSet else null
3283
+ "touchListener" -> if ((jsMadeBits1 and (1L shl 49)) != 0L) this.touchListener else null
3284
+ "layoutChangeListenerIsSet" ->
3285
+ if ((jsMadeBits1 and (1L shl 50)) != 0L) this.layoutChangeListenerIsSet else null
3286
+ "layoutChangeListener" ->
3287
+ if ((jsMadeBits1 and (1L shl 51)) != 0L) this.layoutChangeListener else null
3288
+ "_rootManager" -> if ((jsMadeBits1 and (1L shl 52)) != 0L) this._rootManager else null
3289
+ "insetListenerIsSet" ->
3290
+ if ((jsMadeBits1 and (1L shl 53)) != 0L) this.insetListenerIsSet else null
3291
+ "isLayoutRequired" -> this.isLayoutRequired
3292
+ "isLayoutValid" -> this.isLayoutValid
3293
+ "_hasFragments" -> this._hasFragments
3294
+ "_observe" ->
3295
+ jsFunction { __a ->
3296
+ this._observe(
3297
+ jsConvertedNumberOrZero(__a.getOrNull(0)),
3298
+ jsFunction1<Any?, Unit>(__a.getOrNull(1)),
3299
+ __a.getOrNull(2),
3300
+ )
3301
+ null
3302
+ }
3303
+ "addEventListener" ->
3304
+ jsFunction { __a ->
3305
+ this.addEventListener(
3306
+ jsConvertedStringOrNull(__a.getOrNull(0)),
3307
+ jsFunction1<EventData, Unit>(__a.getOrNull(1)),
3308
+ __a.getOrNull(2),
3309
+ jsConvertedBooleanOrNull(__a.getOrNull(3)),
3310
+ )
3311
+ null
3312
+ }
3313
+ "removeEventListener" ->
3314
+ jsFunction { __a ->
3315
+ this.removeEventListener(
3316
+ jsConvertedStringOrNull(__a.getOrNull(0)),
3317
+ jsUnlessNullish(__a.getOrNull(1)) { jsFunction1<EventData, Unit>(it) },
3318
+ __a.getOrNull(2),
3319
+ )
3320
+ null
3321
+ }
3322
+ "setInsetListener" ->
3323
+ jsFunction {
3324
+ this.setInsetListener()
3325
+ null
3326
+ }
3327
+ "clearInsetListener" ->
3328
+ jsFunction {
3329
+ this.clearInsetListener()
3330
+ null
3331
+ }
3332
+ "needsInsetListener" -> jsFunction { this.needsInsetListener() }
3333
+ "_getChildFragmentManager" -> jsFunction { this._getChildFragmentManager() }
3334
+ "_getRootFragmentManager" -> jsFunction { this._getRootFragmentManager() }
3335
+ "onLoaded" ->
3336
+ jsFunction {
3337
+ this.onLoaded()
3338
+ null
3339
+ }
3340
+ "onUnloaded" ->
3341
+ jsFunction {
3342
+ this.onUnloaded()
3343
+ null
3344
+ }
3345
+ "onBackPressed" -> jsFunction { this.onBackPressed() }
3346
+ "handleGestureTouch" ->
3347
+ jsFunction { __a ->
3348
+ this.handleGestureTouch(jsCast(__a.getOrNull(0), MotionEvent::class.java))
3349
+ }
3350
+ "hasGestureObservers" -> jsFunction { this.hasGestureObservers() }
3351
+ "initNativeView" ->
3352
+ jsFunction {
3353
+ this.initNativeView()
3354
+ null
3355
+ }
3356
+ "needsOnLayoutChangeListener" -> jsFunction { this.needsOnLayoutChangeListener() }
3357
+ "disposeNativeView" ->
3358
+ jsFunction {
3359
+ this.disposeNativeView()
3360
+ null
3361
+ }
3362
+ "setOnTouchListener" ->
3363
+ jsFunction {
3364
+ this.setOnTouchListener()
3365
+ null
3366
+ }
3367
+ "setOnLayoutChangeListener" ->
3368
+ jsFunction {
3369
+ this.setOnLayoutChangeListener()
3370
+ null
3371
+ }
3372
+ "layoutNativeView" ->
3373
+ jsFunction { __a ->
3374
+ this.layoutNativeView(
3375
+ jsConvertedNumberOrZero(__a.getOrNull(0)),
3376
+ jsConvertedNumberOrZero(__a.getOrNull(1)),
3377
+ jsConvertedNumberOrZero(__a.getOrNull(2)),
3378
+ jsConvertedNumberOrZero(__a.getOrNull(3)),
3379
+ )
3380
+ null
3381
+ }
3382
+ "requestLayout" ->
3383
+ jsFunction {
3384
+ this.requestLayout()
3385
+ null
3386
+ }
3387
+ "measure" ->
3388
+ jsFunction { __a ->
3389
+ this.measure(
3390
+ jsConvertedNumberOrZero(__a.getOrNull(0)),
3391
+ jsConvertedNumberOrZero(__a.getOrNull(1)),
3392
+ )
3393
+ null
3394
+ }
3395
+ "layout" ->
3396
+ jsFunction { __a ->
3397
+ this.layout(
3398
+ jsConvertedNumberOrZero(__a.getOrNull(0)),
3399
+ jsConvertedNumberOrZero(__a.getOrNull(1)),
3400
+ jsConvertedNumberOrZero(__a.getOrNull(2)),
3401
+ jsConvertedNumberOrZero(__a.getOrNull(3)),
3402
+ )
3403
+ null
3404
+ }
3405
+ "onMeasure" ->
3406
+ jsFunction { __a ->
3407
+ this.onMeasure(
3408
+ jsConvertedNumberOrZero(__a.getOrNull(0)),
3409
+ jsConvertedNumberOrZero(__a.getOrNull(1)),
3410
+ )
3411
+ null
3412
+ }
3413
+ "onLayout" ->
3414
+ jsFunction { __a ->
3415
+ this.onLayout(
3416
+ jsConvertedNumberOrZero(__a.getOrNull(0)),
3417
+ jsConvertedNumberOrZero(__a.getOrNull(1)),
3418
+ jsConvertedNumberOrZero(__a.getOrNull(2)),
3419
+ jsConvertedNumberOrZero(__a.getOrNull(3)),
3420
+ )
3421
+ null
3422
+ }
3423
+ "_getCurrentLayoutBounds" -> jsFunction { this._getCurrentLayoutBounds() }
3424
+ "getMeasuredWidth" -> jsFunction { this.getMeasuredWidth() }
3425
+ "getMeasuredHeight" -> jsFunction { this.getMeasuredHeight() }
3426
+ "focus" -> jsFunction { this.focus() }
3427
+ "getLocationInWindow" -> jsFunction { this.getLocationInWindow() }
3428
+ "getLocationOnScreen" -> jsFunction { this.getLocationOnScreen() }
3429
+ "getLocationRelativeTo" ->
3430
+ jsFunction { __a ->
3431
+ this.getLocationRelativeTo(jsCast(__a.getOrNull(0), ViewCommon::class.java))
3432
+ }
3433
+ "_showNativeModalView" ->
3434
+ jsFunction { __a ->
3435
+ this._showNativeModalView(
3436
+ jsCast(__a.getOrNull(0), ViewCommon::class.java),
3437
+ __a.getOrNull(1),
3438
+ )
3439
+ null
3440
+ }
3441
+ "getClosestWindow" -> jsFunction { this.getClosestWindow() }
3442
+ "getDefaultElevation" -> jsFunction { this.getDefaultElevation() }
3443
+ "getDefaultDynamicElevationOffset" ->
3444
+ jsFunction { this.getDefaultDynamicElevationOffset() }
3445
+ "refreshStateListAnimator" ->
3446
+ jsFunction {
3447
+ this.refreshStateListAnimator()
3448
+ null
3449
+ }
3450
+ "_drawBoxShadow" ->
3451
+ jsFunction { __a ->
3452
+ this._drawBoxShadow(
3453
+ (if (jsIsNullish(__a.getOrNull(0))) null
3454
+ else jsArrayFrom(__a.getOrNull(0)) { it })
3455
+ )
3456
+ null
3457
+ }
3458
+ "_redrawNativeBackground" ->
3459
+ jsFunction { __a ->
3460
+ this._redrawNativeBackground(__a.getOrNull(0))
3461
+ null
3462
+ }
3463
+ "onBackgroundOrBorderPropertyChanged" ->
3464
+ jsFunction {
3465
+ this.onBackgroundOrBorderPropertyChanged()
3466
+ null
3467
+ }
3468
+ "accessibilityAnnouncement" ->
3469
+ jsFunction { __a ->
3470
+ this.accessibilityAnnouncement(jsConvertedStringOrNull(__a.getOrNull(0)))
3471
+ null
3472
+ }
3473
+ "accessibilityScreenChanged" ->
3474
+ jsFunction {
3475
+ this.accessibilityScreenChanged()
3476
+ null
3477
+ }
3478
+ "_getFragmentManager" -> jsFunction { this._getFragmentManager() }
3479
+ "_setDefaultPaddings" ->
3480
+ jsFunction { __a ->
3481
+ this._setDefaultPaddings(__a.getOrNull(0))
3482
+ null
3483
+ }
3484
+ "_hideNativeModalView" ->
3485
+ jsFunction { __a ->
3486
+ this._hideNativeModalView(
3487
+ jsCast(__a.getOrNull(0), ViewCommon::class.java),
3488
+ jsFunction0<Unit>(__a.getOrNull(1)),
3489
+ )
3490
+ null
3491
+ }
3492
+ "updateStatusBarStyle" ->
3493
+ jsFunction { __a ->
3494
+ this.updateStatusBarStyle(jsConvertedStringOrNull(__a.getOrNull(0)))
3495
+ null
3496
+ }
3497
+ "setAccessibilityIdentifier" ->
3498
+ jsFunction { __a ->
3499
+ this.setAccessibilityIdentifier_(
3500
+ __a.getOrNull(0),
3501
+ jsConvertedStringOrNull(__a.getOrNull(1)),
3502
+ )
3503
+ null
3504
+ }
3505
+ "_applyBackground" ->
3506
+ jsFunction { __a ->
3507
+ this._applyBackground(
3508
+ __a.getOrNull(0),
3509
+ jsConvertedBooleanOrFalse(__a.getOrNull(1)),
3510
+ jsConvertedBooleanOrFalse(__a.getOrNull(2)),
3511
+ jsCast(__a.getOrNull(3), Drawable::class.java),
3512
+ )
3513
+ null
3514
+ }
3515
+ else ->
3516
+ if (!jsIsSymbolKey(key) && key != "undefined") super.jsGet(key)
3517
+ else
3518
+ when (JSSymbolKeys.index.of(key)) {
3519
+ 0 ->
3520
+ jsFunction { __a ->
3521
+ this.__symbol_androidOverflowEdgeProperty_setNative(
3522
+ jsConvertedStringOrNull(__a.getOrNull(0))
3523
+ )
3524
+ null
3525
+ }
3526
+ 1 ->
3527
+ jsFunction { __a ->
3528
+ this.__symbol_isEnabledProperty_setNative(
3529
+ jsConvertedBooleanOrFalse(__a.getOrNull(0))
3530
+ )
3531
+ null
3532
+ }
3533
+ 2 -> jsFunction { this.__symbol_originXProperty_getDefault() }
3534
+ 3 ->
3535
+ jsFunction { __a ->
3536
+ this.__symbol_originXProperty_setNative(
3537
+ jsConvertedNumberOrZero(__a.getOrNull(0))
3538
+ )
3539
+ null
3540
+ }
3541
+ 4 -> jsFunction { this.__symbol_originYProperty_getDefault() }
3542
+ 5 ->
3543
+ jsFunction { __a ->
3544
+ this.__symbol_originYProperty_setNative(
3545
+ jsConvertedNumberOrZero(__a.getOrNull(0))
3546
+ )
3547
+ null
3548
+ }
3549
+ 6 ->
3550
+ jsFunction { __a ->
3551
+ this.__symbol_isUserInteractionEnabledProperty_setNative(
3552
+ jsConvertedBooleanOrFalse(__a.getOrNull(0))
3553
+ )
3554
+ null
3555
+ }
3556
+ 7 -> jsFunction { this.__symbol_hiddenProperty_getDefault() }
3557
+ 8 ->
3558
+ jsFunction { __a ->
3559
+ this.__symbol_hiddenProperty_setNative(
3560
+ jsConvertedBooleanOrFalse(__a.getOrNull(0))
3561
+ )
3562
+ null
3563
+ }
3564
+ 9 -> jsFunction { this.__symbol_visibilityProperty_getDefault() }
3565
+ 10 ->
3566
+ jsFunction { __a ->
3567
+ this.__symbol_visibilityProperty_setNative(
3568
+ jsConvertedStringOrNull(__a.getOrNull(0))
3569
+ )
3570
+ null
3571
+ }
3572
+ 11 -> jsFunction { this.__symbol_opacityProperty_getDefault() }
3573
+ 12 ->
3574
+ jsFunction { __a ->
3575
+ this.__symbol_opacityProperty_setNative(
3576
+ jsConvertedNumberOrZero(__a.getOrNull(0))
3577
+ )
3578
+ null
3579
+ }
3580
+ 13 ->
3581
+ jsFunction { __a ->
3582
+ this.__symbol_accessibilityRoleProperty_setNative(
3583
+ jsConvertedStringOrNull(__a.getOrNull(0))
3584
+ )
3585
+ null
3586
+ }
3587
+ 14 ->
3588
+ jsFunction { __a ->
3589
+ this.__symbol_accessibilityLiveRegionProperty_setNative(
3590
+ jsConvertedStringOrNull(__a.getOrNull(0))
3591
+ )
3592
+ null
3593
+ }
3594
+ 15 ->
3595
+ jsFunction { __a ->
3596
+ this.__symbol_accessibilityStateProperty_setNative(
3597
+ jsConvertedStringOrNull(__a.getOrNull(0))
3598
+ )
3599
+ null
3600
+ }
3601
+ 16 -> jsFunction { this.__symbol_horizontalAlignmentProperty_getDefault() }
3602
+ 17 ->
3603
+ jsFunction { __a ->
3604
+ this.__symbol_horizontalAlignmentProperty_setNative(
3605
+ jsConvertedStringOrNull(__a.getOrNull(0))
3606
+ )
3607
+ null
3608
+ }
3609
+ 18 -> jsFunction { this.__symbol_verticalAlignmentProperty_getDefault() }
3610
+ 19 ->
3611
+ jsFunction { __a ->
3612
+ this.__symbol_verticalAlignmentProperty_setNative(
3613
+ jsConvertedStringOrNull(__a.getOrNull(0))
3614
+ )
3615
+ null
3616
+ }
3617
+ 20 -> jsFunction { this.__symbol_statusBarStyleProperty_getDefault() }
3618
+ 21 ->
3619
+ jsFunction { __a ->
3620
+ this.__symbol_statusBarStyleProperty_setNative(__a.getOrNull(0))
3621
+ null
3622
+ }
3623
+ 22 ->
3624
+ jsFunction { __a ->
3625
+ this.__symbol_directionProperty_setNative(
3626
+ jsConvertedStringOrNull(__a.getOrNull(0))
3627
+ )
3628
+ null
3629
+ }
3630
+ 23 ->
3631
+ jsFunction { __a ->
3632
+ this.__symbol_testIDProperty_setNative(
3633
+ jsConvertedStringOrNull(__a.getOrNull(0))
3634
+ )
3635
+ null
3636
+ }
3637
+ 24 ->
3638
+ jsFunction { __a ->
3639
+ this.__symbol_accessibilityEnabledProperty_setNative(
3640
+ jsConvertedBooleanOrFalse(__a.getOrNull(0))
3641
+ )
3642
+ null
3643
+ }
3644
+ 25 ->
3645
+ jsFunction { __a ->
3646
+ this.__symbol_accessibilityIdentifierProperty_setNative(
3647
+ jsConvertedStringOrNull(__a.getOrNull(0))
3648
+ )
3649
+ null
3650
+ }
3651
+ 26 ->
3652
+ jsFunction {
3653
+ this.__symbol_accessibilityValueProperty_setNative(null)
3654
+ null
3655
+ }
3656
+ 27 ->
3657
+ jsFunction {
3658
+ this.__symbol_accessibilityLabelProperty_setNative(null)
3659
+ null
3660
+ }
3661
+ 28 ->
3662
+ jsFunction {
3663
+ this.__symbol_accessibilityHintProperty_setNative(null)
3664
+ null
3665
+ }
3666
+ 29 ->
3667
+ jsFunction { __a ->
3668
+ this.__symbol_accessibilityHiddenProperty_setNative(
3669
+ jsConvertedBooleanOrFalse(__a.getOrNull(0))
3670
+ )
3671
+ null
3672
+ }
3673
+ 30 ->
3674
+ jsFunction {
3675
+ this.__symbol_accessibilityMediaSessionProperty_setNative(null)
3676
+ null
3677
+ }
3678
+ 31 -> jsFunction { this.__symbol_androidElevationProperty_getDefault() }
3679
+ 32 ->
3680
+ jsFunction {
3681
+ this.__symbol_androidElevationProperty_setNative(0.0)
3682
+ null
3683
+ }
3684
+ 33 ->
3685
+ jsFunction {
3686
+ this.__symbol_androidDynamicElevationOffsetProperty_getDefault()
3687
+ }
3688
+ 34 ->
3689
+ jsFunction {
3690
+ this.__symbol_androidDynamicElevationOffsetProperty_setNative(0.0)
3691
+ null
3692
+ }
3693
+ 35 ->
3694
+ jsFunction { __a ->
3695
+ this.__symbol_rotateProperty_setNative(
3696
+ jsConvertedNumberOrZero(__a.getOrNull(0))
3697
+ )
3698
+ null
3699
+ }
3700
+ 36 ->
3701
+ jsFunction { __a ->
3702
+ this.__symbol_rotateXProperty_setNative(
3703
+ jsConvertedNumberOrZero(__a.getOrNull(0))
3704
+ )
3705
+ null
3706
+ }
3707
+ 37 ->
3708
+ jsFunction { __a ->
3709
+ this.__symbol_rotateYProperty_setNative(
3710
+ jsConvertedNumberOrZero(__a.getOrNull(0))
3711
+ )
3712
+ null
3713
+ }
3714
+ 38 ->
3715
+ jsFunction { __a ->
3716
+ this.__symbol_perspectiveProperty_setNative(
3717
+ jsConvertedNumberOrZero(__a.getOrNull(0))
3718
+ )
3719
+ null
3720
+ }
3721
+ 39 ->
3722
+ jsFunction { __a ->
3723
+ this.__symbol_scaleXProperty_setNative(
3724
+ jsConvertedNumberOrZero(__a.getOrNull(0))
3725
+ )
3726
+ null
3727
+ }
3728
+ 40 ->
3729
+ jsFunction { __a ->
3730
+ this.__symbol_scaleYProperty_setNative(
3731
+ jsConvertedNumberOrZero(__a.getOrNull(0))
3732
+ )
3733
+ null
3734
+ }
3735
+ 41 ->
3736
+ jsFunction { __a ->
3737
+ this.__symbol_translateXProperty_setNative(
3738
+ jsConvertedNumberOrZero(__a.getOrNull(0))
3739
+ )
3740
+ null
3741
+ }
3742
+ 42 ->
3743
+ jsFunction { __a ->
3744
+ this.__symbol_translateYProperty_setNative(
3745
+ jsConvertedNumberOrZero(__a.getOrNull(0))
3746
+ )
3747
+ null
3748
+ }
3749
+ 43 -> jsFunction { this.__symbol_zIndexProperty_getDefault() }
3750
+ 44 ->
3751
+ jsFunction { __a ->
3752
+ this.__symbol_zIndexProperty_setNative(
3753
+ jsConvertedNumberOrZero(__a.getOrNull(0))
3754
+ )
3755
+ null
3756
+ }
3757
+ 45 -> jsFunction { this.__symbol_backgroundInternalProperty_getDefault() }
3758
+ 46 ->
3759
+ jsFunction { __a ->
3760
+ this.__symbol_backgroundInternalProperty_setNative(__a.getOrNull(0))
3761
+ null
3762
+ }
3763
+ 47 ->
3764
+ jsFunction { __a ->
3765
+ this.__symbol_minWidthProperty_setNative(__a.getOrNull(0))
3766
+ null
3767
+ }
3768
+ 48 ->
3769
+ jsFunction { __a ->
3770
+ this.__symbol_minHeightProperty_setNative(__a.getOrNull(0))
3771
+ null
3772
+ }
3773
+ else -> super.jsGet(key)
3774
+ }
3775
+ }
3776
+
3777
+ override fun jsSet(key: String, value: Any?) {
3778
+ when (key) {
3779
+ "_dialogFragment" ->
3780
+ this._dialogFragment =
3781
+ jsCast(value, androidx_fragment_app_DialogFragment::class.java)
3782
+ "touchListenerIsSet" ->
3783
+ this.touchListenerIsSet = jsConvertedBooleanOrNull(value, "touchListenerIsSet")
3784
+ "touchListener" ->
3785
+ this.touchListener = jsCast(value, android_view_View.OnTouchListener::class.java)
3786
+ "layoutChangeListenerIsSet" ->
3787
+ this.layoutChangeListenerIsSet =
3788
+ jsConvertedBooleanOrNull(value, "layoutChangeListenerIsSet")
3789
+ "layoutChangeListener" ->
3790
+ this.layoutChangeListener =
3791
+ jsCast(value, android_view_View.OnLayoutChangeListener::class.java)
3792
+ "_rootManager" -> this._rootManager = jsCast(value, FragmentManager::class.java)
3793
+ "insetListenerIsSet" ->
3794
+ this.insetListenerIsSet = jsConvertedBooleanOrNull(value, "insetListenerIsSet")
3795
+ else -> super.jsSet(key, value)
3796
+ }
3797
+ }
3798
+
3799
+ override fun jsHasMember(key: String): Boolean =
3800
+ when (key) {
3801
+ "isLayoutRequired",
3802
+ "isLayoutValid",
3803
+ "_hasFragments",
3804
+ "_observe",
3805
+ "addEventListener",
3806
+ "removeEventListener",
3807
+ "setInsetListener",
3808
+ "clearInsetListener",
3809
+ "needsInsetListener",
3810
+ "_getChildFragmentManager",
3811
+ "_getRootFragmentManager",
3812
+ "onLoaded",
3813
+ "onUnloaded",
3814
+ "onBackPressed",
3815
+ "handleGestureTouch",
3816
+ "hasGestureObservers",
3817
+ "initNativeView",
3818
+ "needsOnLayoutChangeListener",
3819
+ "disposeNativeView",
3820
+ "setOnTouchListener",
3821
+ "setOnLayoutChangeListener",
3822
+ "layoutNativeView",
3823
+ "requestLayout",
3824
+ "measure",
3825
+ "layout",
3826
+ "onMeasure",
3827
+ "onLayout",
3828
+ "_getCurrentLayoutBounds",
3829
+ "getMeasuredWidth",
3830
+ "getMeasuredHeight",
3831
+ "focus",
3832
+ "getLocationInWindow",
3833
+ "getLocationOnScreen",
3834
+ "getLocationRelativeTo",
3835
+ "_showNativeModalView",
3836
+ "getClosestWindow",
3837
+ "getDefaultElevation",
3838
+ "getDefaultDynamicElevationOffset",
3839
+ "refreshStateListAnimator",
3840
+ "_drawBoxShadow",
3841
+ "_redrawNativeBackground",
3842
+ "onBackgroundOrBorderPropertyChanged",
3843
+ "accessibilityAnnouncement",
3844
+ "accessibilityScreenChanged",
3845
+ "_getFragmentManager",
3846
+ "_setDefaultPaddings",
3847
+ "_hideNativeModalView",
3848
+ "updateStatusBarStyle",
3849
+ "setAccessibilityIdentifier",
3850
+ "_applyBackground" -> true
3851
+ else -> super<ViewCommon>.jsHasMember(key)
3852
+ }
3853
+
3854
+ companion object {
3855
+ var androidBackPressedEvent: String = Core_ui_core_view_index.androidBackPressedEvent
3856
+
3857
+ fun resolveSizeAndState(
3858
+ size: Double,
3859
+ specSize: Double,
3860
+ specMode: Double,
3861
+ childMeasuredState: Double,
3862
+ ): Double {
3863
+ var result: Double = size
3864
+ when (specMode) {
3865
+ org.nativescript.kit.layout.UNSPECIFIED -> {
3866
+ result = size
3867
+ }
3868
+ org.nativescript.kit.layout.AT_MOST -> {
3869
+ if (specSize < size) {
3870
+ result =
3871
+ jsBitOr(specSize, org.nativescript.kit.layout.MEASURED_STATE_TOO_SMALL)
3872
+ }
3873
+ }
3874
+ org.nativescript.kit.layout.EXACTLY -> {
3875
+ result = specSize
3876
+ }
3877
+ }
3878
+ return jsBitOr(
3879
+ result,
3880
+ (jsBitAnd(childMeasuredState, org.nativescript.kit.layout.MEASURED_STATE_MASK)),
3881
+ )
3882
+ }
3883
+ }
3884
+ }
3885
+
3886
+ @UiThread
3887
+ open class ContainerView : View {
3888
+ constructor() : super() {
3889
+ this.androidOverflowEdge = "ignore"
3890
+ }
3891
+
3892
+ override val jsClassName: String?
3893
+ get() = "ContainerView"
3894
+
3895
+ override fun jsGet(key: String): Any? =
3896
+ when (key) {
3897
+ else -> super.jsGet(key)
3898
+ }
3899
+
3900
+ override fun jsSet(key: String, value: Any?) {
3901
+ when (key) {
3902
+ else -> super.jsSet(key, value)
3903
+ }
3904
+ }
3905
+ }
3906
+
3907
+ @UiThread
3908
+ open class CustomLayoutView : ContainerView {
3909
+ constructor() : super()
3910
+
3911
+ fun createNativeView__CustomLayoutView(): ContentLayout? {
3912
+ return ContentLayout((this._context as Context?))
3913
+ }
3914
+
3915
+ override fun createNativeView(): Any? {
3916
+ return ContentLayout((this._context as Context?))
3917
+ }
3918
+
3919
+ fun _addViewToNativeVisualTree__CustomLayoutView(
3920
+ child: Any?,
3921
+ atIndex: Double? = null,
3922
+ ): Boolean {
3923
+ val atIndex: Double = atIndex.let {
3924
+ if (it == null || it.isNaN()) 9007199254740991.0 else it
3925
+ }
3926
+ super._addViewToNativeVisualTree(
3927
+ jsCastCarried(child, ViewCommon::class.java),
3928
+ null,
3929
+ )
3930
+ if (
3931
+ (jsTruthy(jsCast(this.nativeViewProtected, ViewGroup::class.java)) &&
3932
+ jsTruthy(jsCastCarried(child, ViewCommon::class.java).nativeViewProtected))
3933
+ ) {
3934
+ if (org.nativescript.kit.Trace.isEnabled()) {
3935
+ org.nativescript.kit.Trace.write(
3936
+ "${jsToStringThrowing(this)}.nativeView.addView(${jsToStringThrowing(jsCastCarried(child, ViewCommon::class.java))}.nativeView, ${js(atIndex)})",
3937
+ org.nativescript.kit.Trace.categories.VisualTreeEvents,
3938
+ )
3939
+ }
3940
+ AndroidHelper.insertNativeSubview(
3941
+ jsCast(this.nativeViewProtected, ViewGroup::class.java),
3942
+ jsCast(
3943
+ jsCastCarried(child, ViewCommon::class.java).nativeViewProtected,
3944
+ android_view_View::class.java,
3945
+ ),
3946
+ atIndex,
3947
+ )
3948
+ if ((child is View)) {
3949
+ this._updateNativeLayoutParams(jsCastCarried(child, View::class.java))
3950
+ }
3951
+ return true
3952
+ }
3953
+ return false
3954
+ }
3955
+
3956
+ override fun _addViewToNativeVisualTree(view: ViewBase?, atIndex: Double?): Boolean {
3957
+ val child: Any? = view
3958
+ return (fun(): Boolean {
3959
+ val atIndex: Double = atIndex.let {
3960
+ if (it == null || it.isNaN()) 9007199254740991.0 else it
3961
+ }
3962
+ super._addViewToNativeVisualTree(
3963
+ jsCastCarried(child, ViewCommon::class.java),
3964
+ null,
3965
+ )
3966
+ if (
3967
+ (jsTruthy(jsCast(this.nativeViewProtected, ViewGroup::class.java)) &&
3968
+ jsTruthy(jsCastCarried(child, ViewCommon::class.java).nativeViewProtected))
3969
+ ) {
3970
+ if (org.nativescript.kit.Trace.isEnabled()) {
3971
+ org.nativescript.kit.Trace.write(
3972
+ "${jsToStringThrowing(this)}.nativeView.addView(${jsToStringThrowing(jsCastCarried(child, ViewCommon::class.java))}.nativeView, ${js(atIndex)})",
3973
+ org.nativescript.kit.Trace.categories.VisualTreeEvents,
3974
+ )
3975
+ }
3976
+ AndroidHelper.insertNativeSubview(
3977
+ jsCast(this.nativeViewProtected, ViewGroup::class.java),
3978
+ jsCast(
3979
+ jsCastCarried(child, ViewCommon::class.java).nativeViewProtected,
3980
+ android_view_View::class.java,
3981
+ ),
3982
+ atIndex,
3983
+ )
3984
+ if ((child is View)) {
3985
+ this._updateNativeLayoutParams(
3986
+ jsCastCarried(child, View::class.java)
3987
+ )
3988
+ }
3989
+ return true
3990
+ }
3991
+ return false
3992
+ })()
3993
+ }
3994
+
3995
+ fun _updateNativeLayoutParams__CustomLayoutView(child: View?) {}
3996
+
3997
+ open fun _updateNativeLayoutParams(child: View?) {}
3998
+
3999
+ fun _setChildMinWidthNative__CustomLayoutView(child: View?, value: Any?) {
4000
+ ((child ?: jsCannotRead("_setMinWidthNative"))._setMinWidthNative
4001
+ ?: jsNotAFunction("child._setMinWidthNative"))(value)
4002
+ }
4003
+
4004
+ open fun _setChildMinWidthNative(child: View?, value: Any?) {
4005
+ ((child ?: jsCannotRead("_setMinWidthNative"))._setMinWidthNative
4006
+ ?: jsNotAFunction("child._setMinWidthNative"))(value)
4007
+ }
4008
+
4009
+ fun _setChildMinHeightNative__CustomLayoutView(child: View?, value: Any?) {
4010
+ ((child ?: jsCannotRead("_setMinHeightNative"))._setMinHeightNative
4011
+ ?: jsNotAFunction("child._setMinHeightNative"))(value)
4012
+ }
4013
+
4014
+ open fun _setChildMinHeightNative(child: View?, value: Any?) {
4015
+ ((child ?: jsCannotRead("_setMinHeightNative"))._setMinHeightNative
4016
+ ?: jsNotAFunction("child._setMinHeightNative"))(value)
4017
+ }
4018
+
4019
+ fun _removeViewFromNativeVisualTree__CustomLayoutView(child: ViewBase?) {
4020
+ super._removeViewFromNativeVisualTree((child as ViewBase?))
4021
+ val nativeView: ViewGroup? =
4022
+ jsCast(this.nativeViewProtected, ViewGroup::class.java)
4023
+ val childView: Any? =
4024
+ ((child as ViewBase?) ?: jsCannotRead("nativeViewProtected")).nativeViewProtected
4025
+ if ((jsTruthy(nativeView) && jsTruthy(childView))) {
4026
+ (nativeView ?: jsCannotRead("removeView")).removeView(
4027
+ (childView as android_view_View?)
4028
+ )
4029
+ if (org.nativescript.kit.Trace.isEnabled()) {
4030
+ org.nativescript.kit.Trace.write(
4031
+ "${jsToString(nativeView)}.removeView(${jsToStringThrowing(childView)})",
4032
+ org.nativescript.kit.Trace.categories.VisualTreeEvents,
4033
+ )
4034
+ org.nativescript.kit.Trace.notifyEvent(
4035
+ (child as ViewBase?),
4036
+ "childInLayoutRemovedFromNativeVisualTree",
4037
+ )
4038
+ }
4039
+ }
4040
+ }
4041
+
4042
+ override fun _removeViewFromNativeVisualTree(view: ViewBase?) {
4043
+ val child = view
4044
+ super._removeViewFromNativeVisualTree((child as ViewBase?))
4045
+ val nativeView: ViewGroup? =
4046
+ jsCast(this.nativeViewProtected, ViewGroup::class.java)
4047
+ val childView: Any? =
4048
+ ((child as ViewBase?) ?: jsCannotRead("nativeViewProtected")).nativeViewProtected
4049
+ if ((jsTruthy(nativeView) && jsTruthy(childView))) {
4050
+ (nativeView ?: jsCannotRead("removeView")).removeView(
4051
+ (childView as android_view_View?)
4052
+ )
4053
+ if (org.nativescript.kit.Trace.isEnabled()) {
4054
+ org.nativescript.kit.Trace.write(
4055
+ "${jsToString(nativeView)}.removeView(${jsToStringThrowing(childView)})",
4056
+ org.nativescript.kit.Trace.categories.VisualTreeEvents,
4057
+ )
4058
+ org.nativescript.kit.Trace.notifyEvent(
4059
+ (child as ViewBase?),
4060
+ "childInLayoutRemovedFromNativeVisualTree",
4061
+ )
4062
+ }
4063
+ }
4064
+ }
4065
+
4066
+ override val jsClassName: String?
4067
+ get() = "CustomLayoutView"
4068
+
4069
+ override fun jsGet(key: String): Any? =
4070
+ when (key) {
4071
+ "_updateNativeLayoutParams" ->
4072
+ jsFunction { __a ->
4073
+ this._updateNativeLayoutParams(jsCast(__a.getOrNull(0), View::class.java))
4074
+ null
4075
+ }
4076
+ "_setChildMinWidthNative" ->
4077
+ jsFunction { __a ->
4078
+ this._setChildMinWidthNative(
4079
+ jsCast(__a.getOrNull(0), View::class.java),
4080
+ __a.getOrNull(1),
4081
+ )
4082
+ null
4083
+ }
4084
+ "_setChildMinHeightNative" ->
4085
+ jsFunction { __a ->
4086
+ this._setChildMinHeightNative(
4087
+ jsCast(__a.getOrNull(0), View::class.java),
4088
+ __a.getOrNull(1),
4089
+ )
4090
+ null
4091
+ }
4092
+ "_removeViewFromNativeVisualTree" ->
4093
+ jsFunction { __a ->
4094
+ this._removeViewFromNativeVisualTree(
4095
+ jsCast(__a.getOrNull(0), ViewBase::class.java)
4096
+ )
4097
+ null
4098
+ }
4099
+ "createNativeView" -> jsFunction { this.createNativeView() }
4100
+ "_addViewToNativeVisualTree" ->
4101
+ jsFunction { __a ->
4102
+ this._addViewToNativeVisualTree(
4103
+ jsCast(__a.getOrNull(0), ViewBase::class.java),
4104
+ jsConvertedNumberOrNull(__a.getOrNull(1)),
4105
+ )
4106
+ }
4107
+ else -> super.jsGet(key)
4108
+ }
4109
+
4110
+ override fun jsSet(key: String, value: Any?) {
4111
+ when (key) {
4112
+ else -> super.jsSet(key, value)
4113
+ }
4114
+ }
4115
+
4116
+ override fun jsHasMember(key: String): Boolean =
4117
+ when (key) {
4118
+ "_updateNativeLayoutParams",
4119
+ "_setChildMinWidthNative",
4120
+ "_setChildMinHeightNative",
4121
+ "_removeViewFromNativeVisualTree",
4122
+ "createNativeView",
4123
+ "_addViewToNativeVisualTree" -> true
4124
+ else -> super<ContainerView>.jsHasMember(key)
4125
+ }
4126
+ }
4127
+
4128
+ @UiThread
4129
+ object Core_ui_core_view_index {
4130
+ @JvmField val DOMID: String = "_domId"
4131
+ @JvmField val androidBackPressedEvent: String = "androidBackPressed"
4132
+ @JvmField val shortAnimTime: Double = 17694720.0
4133
+ @JvmField val statePressed: Double = 16842919.0
4134
+ @JvmField val stateEnabled: Double = 16842910.0
4135
+ @JvmField val styleAnimationDialog: Double = 16973826.0
4136
+ @JvmField val VERTICAL_GRAVITY_MASK: Double = 112.0
4137
+ @JvmField val HORIZONTAL_GRAVITY_MASK: Double = 7.0
4138
+ @JvmField val GRAVITY_LEFT: Double = 3.0
4139
+ @JvmField val GRAVITY_RIGHT: Double = 5.0
4140
+ @JvmField val GRAVITY_TOP: Double = 48.0
4141
+ @JvmField val GRAVITY_BOTTOM: Double = 80.0
4142
+ @JvmField val GRAVITY_CENTER_HORIZONTAL: Double = 1.0
4143
+ @JvmField val GRAVITY_FILL_HORIZONTAL: Double = 7.0
4144
+ @JvmField val GRAVITY_CENTER_VERTICAL: Double = 16.0
4145
+ @JvmField val GRAVITY_FILL_VERTICAL: Double = 112.0
4146
+ @JvmField val SYSTEM_UI_FLAG_LIGHT_STATUS_BAR: Double = 8192.0
4147
+ @JvmField val STATUS_BAR_LIGHT_BCKG: Double = -657931.0
4148
+ @JvmField val STATUS_BAR_DARK_BCKG: Double = 1711276032.0
4149
+ @JvmField val modalMap: JSMap<Double, Any?> = JSMap<Double, Any?>()
4150
+ @JvmField var TouchListener: Any? = null
4151
+ @JvmField var DialogFragment: Any? = null
4152
+
4153
+ fun initializeTouchListener() {
4154
+ if (jsTruthy(Core_ui_core_view_index.TouchListener)) {
4155
+ return
4156
+ }
4157
+ Core_ui_core_view_index.TouchListener = TouchListenerImpl::class.java
4158
+ }
4159
+
4160
+ fun initializeDialogFragment() {
4161
+ if (jsTruthy(Core_ui_core_view_index.DialogFragment)) {
4162
+ return
4163
+ }
4164
+ Core_ui_core_view_index.DialogFragment = DialogFragmentImpl::class.java
4165
+ }
4166
+
4167
+ fun saveModal(options: Any?) {
4168
+ Core_ui_core_view_index.modalMap.set(
4169
+ (jsCastCarried(jsGet(options, "owner"), View::class.java)._domId ?: Double.NaN),
4170
+ options,
4171
+ )
4172
+ }
4173
+
4174
+ fun removeModal(domId: Double) {
4175
+ Core_ui_core_view_index.modalMap.delete(domId)
4176
+ }
4177
+
4178
+ fun getModalOptions(domId: Double): Any? {
4179
+ return Core_ui_core_view_index.modalMap.get(domId)
4180
+ }
4181
+
4182
+ @JvmField val INSET_LEFT: Double = 0.0
4183
+ @JvmField val INSET_TOP: Double = 4.0
4184
+ @JvmField val INSET_RIGHT: Double = 8.0
4185
+ @JvmField val INSET_BOTTOM: Double = 12.0
4186
+ @JvmField val INSET_BOTTOM_IME: Double = 32.0
4187
+ @JvmField val INSET_LEFT_CONSUMED: Double = 16.0
4188
+ @JvmField val INSET_TOP_CONSUMED: Double = 20.0
4189
+ @JvmField val INSET_RIGHT_CONSUMED: Double = 24.0
4190
+ @JvmField val INSET_BOTTOM_CONSUMED: Double = 28.0
4191
+ @JvmField val INSET_BOTTOM_IME_CONSUMED: Double = 36.0
4192
+ @JvmField val INSET_CUTOUT_LEFT: Double = 40.0
4193
+ @JvmField val INSET_CUTOUT_TOP: Double = 44.0
4194
+ @JvmField val INSET_CUTOUT_RIGHT: Double = 48.0
4195
+ @JvmField val INSET_CUTOUT_BOTTOM: Double = 52.0
4196
+ @JvmField val INSET_CUTOUT_LEFT_CONSUMED: Double = 56.0
4197
+ @JvmField val INSET_CUTOUT_TOP_CONSUMED: Double = 60.0
4198
+ @JvmField val INSET_CUTOUT_RIGHT_CONSUMED: Double = 64.0
4199
+ @JvmField val INSET_CUTOUT_BOTTOM_CONSUMED: Double = 68.0
4200
+ @JvmField
4201
+ val percentNotSupported: (android_view_View, Double) -> Nothing =
4202
+ fun(view: android_view_View?, value: Double): Nothing {
4203
+ throw JSException(JSError("PercentLength is not supported."))
4204
+ }
4205
+
4206
+ fun createNativePercentLengthProperty(options: Any?) {
4207
+ var options: Any? = options
4208
+ val __d_1: Any? = options
4209
+ val getter: Any? = jsGet(__d_1, "getter")
4210
+ val setter: Any? = jsGet(__d_1, "setter")
4211
+ val auto: Double = jsConvertedNumber((jsGet(__d_1, "auto") ?: 0.0))
4212
+ var setPixels: Any? = null
4213
+ var getPixels: Any? = null
4214
+ var setPercent: Any? = null
4215
+ if (jsTruthy(getter)) {
4216
+ jsSet(
4217
+ JSPrototypes.of(View::class.java),
4218
+ jsPropertyKey(getter),
4219
+ JSMethod { __self, _ ->
4220
+ val __this: View = (__self as View)
4221
+ (fun(): Any? {
4222
+ if (jsTruthy(options)) {
4223
+ setPixels = jsGet(options, "setPixels")
4224
+ getPixels = jsGet(options, "getPixels")
4225
+ setPercent = kotlin.run {
4226
+ val __v_1: Any? = jsGet(options, "setPercent")
4227
+ if (jsTruthy(__v_1)) __v_1
4228
+ else Core_ui_core_view_index.percentNotSupported
4229
+ }
4230
+ options = jsNull
4231
+ }
4232
+ val value: Any? =
4233
+ jsCall(
4234
+ getPixels,
4235
+ jsCast(__this.nativeViewProtected, android_view_View::class.java),
4236
+ )
4237
+ if (jsLooseEquals(value, auto)) {
4238
+ return "auto"
4239
+ } else {
4240
+ return jsObjectOf("value" to value, "unit" to "px")
4241
+ }
4242
+ })()
4243
+ },
4244
+ )
4245
+ }
4246
+ if (jsTruthy(setter)) {
4247
+ jsSet(
4248
+ JSPrototypes.of(View::class.java),
4249
+ jsPropertyKey(setter),
4250
+ JSMethod { __self, __a ->
4251
+ val __this: View = (__self as View)
4252
+ val length: Any? = __a.getOrNull(0)
4253
+ (fun() {
4254
+ if (jsTruthy(options)) {
4255
+ setPixels = jsGet(options, "setPixels")
4256
+ getPixels = jsGet(options, "getPixels")
4257
+ setPercent = kotlin.run {
4258
+ val __v_2: Any? = jsGet(options, "setPercent")
4259
+ if (jsTruthy(__v_2)) __v_2
4260
+ else Core_ui_core_view_index.percentNotSupported
4261
+ }
4262
+ options = jsNull
4263
+ }
4264
+ if (
4265
+ jsLooseEquals(length, "auto") ||
4266
+ jsIsNullish(length) ||
4267
+ Core_ui_core_properties_property_shared.isCssWideKeyword(length)
4268
+ ) {
4269
+ jsCall(
4270
+ setPixels,
4271
+ jsCast(__this.nativeViewProtected, android_view_View::class.java),
4272
+ auto,
4273
+ )
4274
+ } else if (jsTypeof(length) == "number") {
4275
+ jsCall(
4276
+ setPixels,
4277
+ jsCast(__this.nativeViewProtected, android_view_View::class.java),
4278
+ org.nativescript.kit.layout.round(
4279
+ org.nativescript.kit.layout.toDevicePixels(
4280
+ jsConvertedNumber(length)
4281
+ )
4282
+ ),
4283
+ )
4284
+ } else if (
4285
+ jsConvertedStringOrNull(jsGet((length), "unit")) == "dip"
4286
+ ) {
4287
+ jsCall(
4288
+ setPixels,
4289
+ jsCast(__this.nativeViewProtected, android_view_View::class.java),
4290
+ org.nativescript.kit.layout.round(
4291
+ org.nativescript.kit.layout.toDevicePixels(
4292
+ (jsConvertedNumberOrNull(jsGet((length), "value"))
4293
+ ?: Double.NaN)
4294
+ )
4295
+ ),
4296
+ )
4297
+ } else if (
4298
+ jsConvertedStringOrNull(jsGet((length), "unit")) == "px"
4299
+ ) {
4300
+ jsCall(
4301
+ setPixels,
4302
+ jsCast(__this.nativeViewProtected, android_view_View::class.java),
4303
+ org.nativescript.kit.layout.round(
4304
+ (jsConvertedNumberOrNull(jsGet((length), "value"))
4305
+ ?: Double.NaN)
4306
+ ),
4307
+ )
4308
+ } else if (
4309
+ jsConvertedStringOrNull(jsGet((length), "unit")) == "%"
4310
+ ) {
4311
+ jsCall(
4312
+ setPercent,
4313
+ jsCast(__this.nativeViewProtected, android_view_View::class.java),
4314
+ jsGet((length), "value"),
4315
+ )
4316
+ } else {
4317
+ throw JSException(
4318
+ JSError("Unsupported PercentLength ${jsToStringThrowing(length)}")
4319
+ )
4320
+ }
4321
+ })()
4322
+ },
4323
+ )
4324
+ }
4325
+ }
4326
+
4327
+ fun __init() {
4328
+ try {
4329
+ if (Core_utils_constants.SDK_VERSION >= 33.0) {
4330
+ }
4331
+ Core_ui_core_view_index.createNativePercentLengthProperty(
4332
+ kotlin.run {
4333
+ val __o_1 = JSObject()
4334
+ __o_1["setter"] = Core_ui_styling_style_properties.marginTopProperty.setNative
4335
+ __o_1.defineProperty(
4336
+ "setPixels",
4337
+ JSPropertyDescriptor(
4338
+ get =
4339
+ fun(__this: Any?): Any? {
4340
+ return { __a0: android_view_View, __a1: Double ->
4341
+ org_nativescript_widgets_ViewHelper.setMarginTop(
4342
+ __a0,
4343
+ __a1.toLong().toInt(),
4344
+ )
4345
+ Unit
4346
+ }
4347
+ },
4348
+ enumerable = true,
4349
+ configurable = true,
4350
+ ),
4351
+ )
4352
+ __o_1.defineProperty(
4353
+ "setPercent",
4354
+ JSPropertyDescriptor(
4355
+ get =
4356
+ fun(__this: Any?): Any? {
4357
+ return { __a0: android_view_View, __a1: Double ->
4358
+ org_nativescript_widgets_ViewHelper.setMarginTopPercent(
4359
+ __a0,
4360
+ __a1.toFloat(),
4361
+ )
4362
+ Unit
4363
+ }
4364
+ },
4365
+ enumerable = true,
4366
+ configurable = true,
4367
+ ),
4368
+ )
4369
+ __o_1
4370
+ }
4371
+ )
4372
+ Core_ui_core_view_index.createNativePercentLengthProperty(
4373
+ kotlin.run {
4374
+ val __o_2 = JSObject()
4375
+ __o_2["setter"] = Core_ui_styling_style_properties.marginRightProperty.setNative
4376
+ __o_2.defineProperty(
4377
+ "setPixels",
4378
+ JSPropertyDescriptor(
4379
+ get =
4380
+ fun(__this: Any?): Any? {
4381
+ return { __a0: android_view_View, __a1: Double ->
4382
+ org_nativescript_widgets_ViewHelper.setMarginRight(
4383
+ __a0,
4384
+ __a1.toLong().toInt(),
4385
+ )
4386
+ Unit
4387
+ }
4388
+ },
4389
+ enumerable = true,
4390
+ configurable = true,
4391
+ ),
4392
+ )
4393
+ __o_2.defineProperty(
4394
+ "setPercent",
4395
+ JSPropertyDescriptor(
4396
+ get =
4397
+ fun(__this: Any?): Any? {
4398
+ return { __a0: android_view_View, __a1: Double ->
4399
+ org_nativescript_widgets_ViewHelper.setMarginRightPercent(
4400
+ __a0,
4401
+ __a1.toFloat(),
4402
+ )
4403
+ Unit
4404
+ }
4405
+ },
4406
+ enumerable = true,
4407
+ configurable = true,
4408
+ ),
4409
+ )
4410
+ __o_2
4411
+ }
4412
+ )
4413
+ Core_ui_core_view_index.createNativePercentLengthProperty(
4414
+ kotlin.run {
4415
+ val __o_3 = JSObject()
4416
+ __o_3["setter"] =
4417
+ Core_ui_styling_style_properties.marginBottomProperty.setNative
4418
+ __o_3.defineProperty(
4419
+ "setPixels",
4420
+ JSPropertyDescriptor(
4421
+ get =
4422
+ fun(__this: Any?): Any? {
4423
+ return { __a0: android_view_View, __a1: Double ->
4424
+ org_nativescript_widgets_ViewHelper.setMarginBottom(
4425
+ __a0,
4426
+ __a1.toLong().toInt(),
4427
+ )
4428
+ Unit
4429
+ }
4430
+ },
4431
+ enumerable = true,
4432
+ configurable = true,
4433
+ ),
4434
+ )
4435
+ __o_3.defineProperty(
4436
+ "setPercent",
4437
+ JSPropertyDescriptor(
4438
+ get =
4439
+ fun(__this: Any?): Any? {
4440
+ return { __a0: android_view_View, __a1: Double ->
4441
+ org_nativescript_widgets_ViewHelper.setMarginBottomPercent(
4442
+ __a0,
4443
+ __a1.toFloat(),
4444
+ )
4445
+ Unit
4446
+ }
4447
+ },
4448
+ enumerable = true,
4449
+ configurable = true,
4450
+ ),
4451
+ )
4452
+ __o_3
4453
+ }
4454
+ )
4455
+ Core_ui_core_view_index.createNativePercentLengthProperty(
4456
+ kotlin.run {
4457
+ val __o_4 = JSObject()
4458
+ __o_4["setter"] = Core_ui_styling_style_properties.marginLeftProperty.setNative
4459
+ __o_4.defineProperty(
4460
+ "setPixels",
4461
+ JSPropertyDescriptor(
4462
+ get =
4463
+ fun(__this: Any?): Any? {
4464
+ return { __a0: android_view_View, __a1: Double ->
4465
+ org_nativescript_widgets_ViewHelper.setMarginLeft(
4466
+ __a0,
4467
+ __a1.toLong().toInt(),
4468
+ )
4469
+ Unit
4470
+ }
4471
+ },
4472
+ enumerable = true,
4473
+ configurable = true,
4474
+ ),
4475
+ )
4476
+ __o_4.defineProperty(
4477
+ "setPercent",
4478
+ JSPropertyDescriptor(
4479
+ get =
4480
+ fun(__this: Any?): Any? {
4481
+ return { __a0: android_view_View, __a1: Double ->
4482
+ org_nativescript_widgets_ViewHelper.setMarginLeftPercent(
4483
+ __a0,
4484
+ __a1.toFloat(),
4485
+ )
4486
+ Unit
4487
+ }
4488
+ },
4489
+ enumerable = true,
4490
+ configurable = true,
4491
+ ),
4492
+ )
4493
+ __o_4
4494
+ }
4495
+ )
4496
+ Core_ui_core_view_index.createNativePercentLengthProperty(
4497
+ kotlin.run {
4498
+ val __o_5 = JSObject()
4499
+ __o_5["setter"] = Core_ui_styling_style_properties.widthProperty.setNative
4500
+ __o_5["auto"] = -1.0
4501
+ __o_5.defineProperty(
4502
+ "setPixels",
4503
+ JSPropertyDescriptor(
4504
+ get =
4505
+ fun(__this: Any?): Any? {
4506
+ return { __a0: android_view_View, __a1: Double ->
4507
+ org_nativescript_widgets_ViewHelper.setWidth(
4508
+ __a0,
4509
+ __a1.toLong().toInt(),
4510
+ )
4511
+ Unit
4512
+ }
4513
+ },
4514
+ enumerable = true,
4515
+ configurable = true,
4516
+ ),
4517
+ )
4518
+ __o_5.defineProperty(
4519
+ "setPercent",
4520
+ JSPropertyDescriptor(
4521
+ get =
4522
+ fun(__this: Any?): Any? {
4523
+ return { __a0: android_view_View, __a1: Double ->
4524
+ org_nativescript_widgets_ViewHelper.setWidthPercent(
4525
+ __a0,
4526
+ __a1.toFloat(),
4527
+ )
4528
+ Unit
4529
+ }
4530
+ },
4531
+ enumerable = true,
4532
+ configurable = true,
4533
+ ),
4534
+ )
4535
+ __o_5
4536
+ }
4537
+ )
4538
+ Core_ui_core_view_index.createNativePercentLengthProperty(
4539
+ kotlin.run {
4540
+ val __o_6 = JSObject()
4541
+ __o_6["setter"] = Core_ui_styling_style_properties.heightProperty.setNative
4542
+ __o_6["auto"] = -1.0
4543
+ __o_6.defineProperty(
4544
+ "setPixels",
4545
+ JSPropertyDescriptor(
4546
+ get =
4547
+ fun(__this: Any?): Any? {
4548
+ return { __a0: android_view_View, __a1: Double ->
4549
+ org_nativescript_widgets_ViewHelper.setHeight(
4550
+ __a0,
4551
+ __a1.toLong().toInt(),
4552
+ )
4553
+ Unit
4554
+ }
4555
+ },
4556
+ enumerable = true,
4557
+ configurable = true,
4558
+ ),
4559
+ )
4560
+ __o_6.defineProperty(
4561
+ "setPercent",
4562
+ JSPropertyDescriptor(
4563
+ get =
4564
+ fun(__this: Any?): Any? {
4565
+ return { __a0: android_view_View, __a1: Double ->
4566
+ org_nativescript_widgets_ViewHelper.setHeightPercent(
4567
+ __a0,
4568
+ __a1.toFloat(),
4569
+ )
4570
+ Unit
4571
+ }
4572
+ },
4573
+ enumerable = true,
4574
+ configurable = true,
4575
+ ),
4576
+ )
4577
+ __o_6
4578
+ }
4579
+ )
4580
+ Core_ui_core_view_index.createNativePercentLengthProperty(
4581
+ kotlin.run {
4582
+ val __o_7 = JSObject()
4583
+ __o_7["setter"] = "_setMinWidthNative"
4584
+ __o_7.defineProperty(
4585
+ "setPixels",
4586
+ JSPropertyDescriptor(
4587
+ get =
4588
+ fun(__this: Any?): Any? {
4589
+ return { __a0: android_view_View, __a1: Double ->
4590
+ org_nativescript_widgets_ViewHelper.setMinWidth(
4591
+ __a0,
4592
+ __a1.toLong().toInt(),
4593
+ )
4594
+ Unit
4595
+ }
4596
+ },
4597
+ enumerable = true,
4598
+ configurable = true,
4599
+ ),
4600
+ )
4601
+ __o_7
4602
+ }
4603
+ )
4604
+ Core_ui_core_view_index.createNativePercentLengthProperty(
4605
+ kotlin.run {
4606
+ val __o_8 = JSObject()
4607
+ __o_8["setter"] = "_setMinHeightNative"
4608
+ __o_8.defineProperty(
4609
+ "setPixels",
4610
+ JSPropertyDescriptor(
4611
+ get =
4612
+ fun(__this: Any?): Any? {
4613
+ return { __a0: android_view_View, __a1: Double ->
4614
+ org_nativescript_widgets_ViewHelper.setMinHeight(
4615
+ __a0,
4616
+ __a1.toLong().toInt(),
4617
+ )
4618
+ Unit
4619
+ }
4620
+ },
4621
+ enumerable = true,
4622
+ configurable = true,
4623
+ ),
4624
+ )
4625
+ __o_8
4626
+ }
4627
+ )
4628
+ Core_ui_core_view_index.createNativePercentLengthProperty(
4629
+ kotlin.run {
4630
+ val __o_9 = JSObject()
4631
+ __o_9["setter"] = Core_ui_styling_style_properties.maxWidthProperty.setNative
4632
+ __o_9["auto"] = -1.0
4633
+ __o_9.defineProperty(
4634
+ "setPixels",
4635
+ JSPropertyDescriptor(
4636
+ get =
4637
+ fun(__this: Any?): Any? {
4638
+ return { __a0: android_view_View, __a1: Double ->
4639
+ org_nativescript_widgets_ViewHelper.setMaxWidth(
4640
+ __a0,
4641
+ __a1.toLong().toInt(),
4642
+ )
4643
+ Unit
4644
+ }
4645
+ },
4646
+ enumerable = true,
4647
+ configurable = true,
4648
+ ),
4649
+ )
4650
+ __o_9.defineProperty(
4651
+ "setPercent",
4652
+ JSPropertyDescriptor(
4653
+ get =
4654
+ fun(__this: Any?): Any? {
4655
+ return { __a0: android_view_View, __a1: Double ->
4656
+ org_nativescript_widgets_ViewHelper.setMaxWidthPercent(
4657
+ __a0,
4658
+ __a1.toFloat(),
4659
+ )
4660
+ Unit
4661
+ }
4662
+ },
4663
+ enumerable = true,
4664
+ configurable = true,
4665
+ ),
4666
+ )
4667
+ __o_9
4668
+ }
4669
+ )
4670
+ Core_ui_core_view_index.createNativePercentLengthProperty(
4671
+ kotlin.run {
4672
+ val __o_10 = JSObject()
4673
+ __o_10["setter"] = Core_ui_styling_style_properties.maxHeightProperty.setNative
4674
+ __o_10["auto"] = -1.0
4675
+ __o_10.defineProperty(
4676
+ "setPixels",
4677
+ JSPropertyDescriptor(
4678
+ get =
4679
+ fun(__this: Any?): Any? {
4680
+ return { __a0: android_view_View, __a1: Double ->
4681
+ org_nativescript_widgets_ViewHelper.setMaxHeight(
4682
+ __a0,
4683
+ __a1.toLong().toInt(),
4684
+ )
4685
+ Unit
4686
+ }
4687
+ },
4688
+ enumerable = true,
4689
+ configurable = true,
4690
+ ),
4691
+ )
4692
+ __o_10.defineProperty(
4693
+ "setPercent",
4694
+ JSPropertyDescriptor(
4695
+ get =
4696
+ fun(__this: Any?): Any? {
4697
+ return { __a0: android_view_View, __a1: Double ->
4698
+ org_nativescript_widgets_ViewHelper.setMaxHeightPercent(
4699
+ __a0,
4700
+ __a1.toFloat(),
4701
+ )
4702
+ Unit
4703
+ }
4704
+ },
4705
+ enumerable = true,
4706
+ configurable = true,
4707
+ ),
4708
+ )
4709
+ __o_10
4710
+ }
4711
+ )
4712
+ } catch (__e: Throwable) {
4713
+ jsReportThrown(__e)
4714
+ }
4715
+ }
4716
+ }