@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,3238 @@
1
+ // Generated from @nativescript/core by tools/kit: edit core, not this file.
2
+
3
+ import CFNetwork
4
+ import CoreFoundation
5
+ import CoreGraphics
6
+ import CoreServices
7
+ import CoreText
8
+ import Dispatch
9
+ import Foundation
10
+ import ObjectiveC
11
+ import Photos
12
+ import QuartzCore
13
+ import Symbols
14
+ import SystemConfiguration
15
+ import UIKit
16
+ import WebKit
17
+
18
+ open class MeasureContext: JSDynamic, JSExpando, JSStaticKeyed {
19
+ nonisolated deinit {}
20
+ open var owner: FlexboxLayout?
21
+ open var children: JSArray<View>? = JSArray<View>()
22
+ public init(_ owner: FlexboxLayout?) throws {
23
+ self.owner = owner
24
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:44)
25
+ self.children = JSArray<View>()
26
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:45)
27
+ try jsUnwrap(self.owner, "eachLayoutChild").eachLayoutChild({
28
+ (child: View?, _ __unused0: Bool) throws -> Void in
29
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:46)
30
+ _ = try jsUnwrap(self.children, "push").push(jsObjectRequired(child))
31
+ })
32
+ }
33
+ #sourceLocation()
34
+ open var childrenCount: Double {
35
+ get throws {
36
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:51)
37
+ return try jsUnwrap(self.children, "length").length
38
+ }
39
+ }
40
+ #sourceLocation()
41
+ open func jsSymbolMethod(_ key: String) -> JSMethod? {
42
+ return nil
43
+ }
44
+ open class var jsSymbolPlain: Bool { true }
45
+ open class var jsSymbolFieldsPlain: Bool { true }
46
+ open var jsExpando: JSObject?
47
+ open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
48
+ open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
49
+ open func childAt(_ index: Double) throws -> View? {
50
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:55)
51
+ return try jsImplicit(jsUnwrap(self.children, "index").element(index))
52
+ }
53
+ #sourceLocation()
54
+ open var jsKeys: [String] { ["owner"] + ["children"] + (jsExpando?.jsKeys ?? []) }
55
+ open var jsClassName: String? { "MeasureContext" }
56
+ open subscript(jsKey key: String) -> Any? {
57
+ get {
58
+ switch key.utf8.count {
59
+ case 5:
60
+ switch key {
61
+ case "owner": return self.owner
62
+ default: break
63
+ }
64
+ case 7:
65
+ switch key {
66
+ case "childAt": return FunctionCell_Double_to_ViewOpt.script("childAt", 1, self.childAt)
67
+ default: break
68
+ }
69
+ case 8:
70
+ switch key {
71
+ case "children": return self.children
72
+ default: break
73
+ }
74
+ default: break
75
+ }
76
+ return jsExpandoGet(self, key)
77
+ }
78
+ set {
79
+ switch key.utf8.count {
80
+ case 5:
81
+ switch key {
82
+ case "owner":
83
+ jsStoring { self.owner = (try jsCast(newValue, FlexboxLayout.self)) }
84
+ return
85
+ default: break
86
+ }
87
+ case 8:
88
+ switch key {
89
+ case "children":
90
+ jsStoring {
91
+ self.children = try jsArrayOrNil(
92
+ newValue, as: JSArray<View>.self, { try (jsCastPresent($0) as View) })
93
+ }
94
+ return
95
+ default: break
96
+ }
97
+ default: break
98
+ }
99
+ jsExpandoSet(self, key, newValue)
100
+ }
101
+ }
102
+ open class var jsName: String { "MeasureContext" }
103
+ open class var jsStaticKeys: [String] { [] }
104
+ }
105
+
106
+ open class FlexLine: JSDynamic, JSExpando, JSStaticKeyed {
107
+ nonisolated deinit {}
108
+ open var _left: Double = Double.greatestFiniteMagnitude
109
+ open var _top: Double = Double.greatestFiniteMagnitude
110
+ open var _right: Double = Double.greatestFiniteMagnitude
111
+ open var _bottom: Double = Double.greatestFiniteMagnitude
112
+ open var _mainSize: Double = 0
113
+ open var _gapLengthInMainSize: Double = 0
114
+ open var _crossSize: Double = 0
115
+ open var _itemCount: Double = 0
116
+ open var _goneItemCount: Double = 0
117
+ open var _totalFlexGrow: Double = 0
118
+ open var _totalFlexShrink: Double = 0
119
+ open var _maxBaseline: Double = 0
120
+ open var _indicesAlignSelfStretch: JSArray<Double>? = JSArray<Double>()
121
+ public init() {}
122
+ open var left: Double {
123
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:77)
124
+ return self._left
125
+ }
126
+ #sourceLocation()
127
+ open var top: Double {
128
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:80)
129
+ return self._top
130
+ }
131
+ #sourceLocation()
132
+ open var right: Double {
133
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:83)
134
+ return self._right
135
+ }
136
+ #sourceLocation()
137
+ open var bottom: Double {
138
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:86)
139
+ return self._bottom
140
+ }
141
+ #sourceLocation()
142
+ open var mainSize: Double {
143
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:90)
144
+ return self._mainSize
145
+ }
146
+ #sourceLocation()
147
+ open var crossSize: Double {
148
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:93)
149
+ return self._crossSize
150
+ }
151
+ #sourceLocation()
152
+ open var itemCount: Double {
153
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:96)
154
+ return self._itemCount
155
+ }
156
+ #sourceLocation()
157
+ open var layoutVisibleItemCount: Double {
158
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:99)
159
+ return self._itemCount - self._goneItemCount
160
+ }
161
+ #sourceLocation()
162
+ open var totalFlexGrow: Double {
163
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:102)
164
+ return self._totalFlexGrow
165
+ }
166
+ #sourceLocation()
167
+ open var totalFlexShrink: Double {
168
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:105)
169
+ return self._totalFlexShrink
170
+ }
171
+ #sourceLocation()
172
+ open func jsSymbolMethod(_ key: String) -> JSMethod? {
173
+ return nil
174
+ }
175
+ open class var jsSymbolPlain: Bool { true }
176
+ open class var jsSymbolFieldsPlain: Bool { true }
177
+ open var jsExpando: JSObject?
178
+ open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
179
+ open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
180
+ open var jsKeys: [String] {
181
+ ["_left"] + ["_top"] + ["_right"] + ["_bottom"] + ["_mainSize"] + ["_gapLengthInMainSize"] + ["_crossSize"] + [
182
+ "_itemCount"
183
+ ] + ["_goneItemCount"] + ["_totalFlexGrow"] + ["_totalFlexShrink"] + ["_maxBaseline"] + [
184
+ "_indicesAlignSelfStretch"
185
+ ] + (jsExpando?.jsKeys ?? [])
186
+ }
187
+ open var jsClassName: String? { "FlexLine" }
188
+ open subscript(jsKey key: String) -> Any? {
189
+ get {
190
+ switch key.utf8.count {
191
+ case 4:
192
+ switch key {
193
+ case "_top": return self._top
194
+ default: break
195
+ }
196
+ case 5:
197
+ switch key {
198
+ case "_left": return self._left
199
+ default: break
200
+ }
201
+ case 6:
202
+ switch key {
203
+ case "_right": return self._right
204
+ default: break
205
+ }
206
+ case 7:
207
+ switch key {
208
+ case "_bottom": return self._bottom
209
+ default: break
210
+ }
211
+ case 9:
212
+ switch key {
213
+ case "_mainSize": return self._mainSize
214
+ default: break
215
+ }
216
+ case 10:
217
+ switch key {
218
+ case "_crossSize": return self._crossSize
219
+ case "_itemCount": return self._itemCount
220
+ default: break
221
+ }
222
+ case 12:
223
+ switch key {
224
+ case "_maxBaseline": return self._maxBaseline
225
+ default: break
226
+ }
227
+ case 14:
228
+ switch key {
229
+ case "_goneItemCount": return self._goneItemCount
230
+ case "_totalFlexGrow": return self._totalFlexGrow
231
+ default: break
232
+ }
233
+ case 16:
234
+ switch key {
235
+ case "_totalFlexShrink": return self._totalFlexShrink
236
+ default: break
237
+ }
238
+ case 20:
239
+ switch key {
240
+ case "_gapLengthInMainSize": return self._gapLengthInMainSize
241
+ default: break
242
+ }
243
+ case 24:
244
+ switch key {
245
+ case "_indicesAlignSelfStretch": return self._indicesAlignSelfStretch
246
+ default: break
247
+ }
248
+ default: break
249
+ }
250
+ return jsExpandoGet(self, key)
251
+ }
252
+ set {
253
+ switch key.utf8.count {
254
+ case 4:
255
+ switch key {
256
+ case "_top":
257
+ jsStoring { self._top = (try jsConvertedNumber(newValue)) }
258
+ return
259
+ default: break
260
+ }
261
+ case 5:
262
+ switch key {
263
+ case "_left":
264
+ jsStoring { self._left = (try jsConvertedNumber(newValue)) }
265
+ return
266
+ default: break
267
+ }
268
+ case 6:
269
+ switch key {
270
+ case "_right":
271
+ jsStoring { self._right = (try jsConvertedNumber(newValue)) }
272
+ return
273
+ default: break
274
+ }
275
+ case 7:
276
+ switch key {
277
+ case "_bottom":
278
+ jsStoring { self._bottom = (try jsConvertedNumber(newValue)) }
279
+ return
280
+ default: break
281
+ }
282
+ case 9:
283
+ switch key {
284
+ case "_mainSize":
285
+ jsStoring { self._mainSize = (try jsConvertedNumber(newValue)) }
286
+ return
287
+ default: break
288
+ }
289
+ case 10:
290
+ switch key {
291
+ case "_crossSize":
292
+ jsStoring { self._crossSize = (try jsConvertedNumber(newValue)) }
293
+ return
294
+ case "_itemCount":
295
+ jsStoring { self._itemCount = (try jsConvertedNumber(newValue)) }
296
+ return
297
+ default: break
298
+ }
299
+ case 12:
300
+ switch key {
301
+ case "_maxBaseline":
302
+ jsStoring { self._maxBaseline = (try jsConvertedNumber(newValue)) }
303
+ return
304
+ default: break
305
+ }
306
+ case 14:
307
+ switch key {
308
+ case "_goneItemCount":
309
+ jsStoring { self._goneItemCount = (try jsConvertedNumber(newValue)) }
310
+ return
311
+ case "_totalFlexGrow":
312
+ jsStoring { self._totalFlexGrow = (try jsConvertedNumber(newValue)) }
313
+ return
314
+ default: break
315
+ }
316
+ case 16:
317
+ switch key {
318
+ case "_totalFlexShrink":
319
+ jsStoring { self._totalFlexShrink = (try jsConvertedNumber(newValue)) }
320
+ return
321
+ default: break
322
+ }
323
+ case 20:
324
+ switch key {
325
+ case "_gapLengthInMainSize":
326
+ jsStoring { self._gapLengthInMainSize = (try jsConvertedNumber(newValue)) }
327
+ return
328
+ default: break
329
+ }
330
+ case 24:
331
+ switch key {
332
+ case "_indicesAlignSelfStretch":
333
+ self._indicesAlignSelfStretch = jsArrayOrNil(newValue, { jsLenientNumber($0) })
334
+ return
335
+ default: break
336
+ }
337
+ default: break
338
+ }
339
+ jsExpandoSet(self, key, newValue)
340
+ }
341
+ }
342
+ open class var jsName: String { "FlexLine" }
343
+ open class var jsStaticKeys: [String] { [] }
344
+ }
345
+
346
+ open class Order: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
347
+ nonisolated deinit {}
348
+ open var index: Double = .nan {
349
+ didSet { if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "index") } }
350
+ }
351
+ private static let jsSite_Order_order = JSReadSite("order")
352
+ open var order: Double {
353
+ get { jsLenientNumber(jsExpandoGet(self, Order.jsSite_Order_order)) }
354
+ set { jsExpandoSet(self, "order", newValue) }
355
+ }
356
+ public init() {}
357
+ open func jsSymbolMethod(_ key: String) -> JSMethod? {
358
+ return nil
359
+ }
360
+ open class var jsSymbolPlain: Bool { true }
361
+ open class var jsSymbolFieldsPlain: Bool { true }
362
+ open var jsExpando: JSObject?
363
+ open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
364
+ open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
365
+ open func compareTo(_ another: Order?) throws -> Double {
366
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:114)
367
+ if try !jsLenientNumberEquals(self.order, jsUnwrap(another, "order").order) {
368
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:115)
369
+ return try self.order - jsUnwrap(another, "order").order
370
+ }
371
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:118)
372
+ return try self.index - jsUnwrap(another, "index").index
373
+ }
374
+ #sourceLocation()
375
+ public final var jsMadeBits0: UInt64 = 0
376
+ public final var jsMade: [String]?
377
+ open var jsDeclaredKeys: [String] { (jsMadeBits0 & (1 << 0) != 0 ? ["index"] : []) }
378
+ open var jsKeys: [String] { jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?? [])) }
379
+ open var jsClassName: String? { "Order" }
380
+ open subscript(jsKey key: String) -> Any? {
381
+ get {
382
+ switch key.utf8.count {
383
+ case 5:
384
+ switch key {
385
+ case "index":
386
+ if !(jsMadeBits0 & (1 << 0) != 0) { return nil }
387
+ return self.index
388
+ default: break
389
+ }
390
+ case 9:
391
+ switch key {
392
+ case "compareTo": return FunctionCell_OrderOpt_to_Double.script("compareTo", 1, self.compareTo)
393
+ default: break
394
+ }
395
+ default: break
396
+ }
397
+ return jsExpandoGet(self, key)
398
+ }
399
+ set {
400
+ switch key.utf8.count {
401
+ case 5:
402
+ switch key {
403
+ case "index":
404
+ jsStoring { self.index = (try jsConvertedNumber(newValue)) }
405
+ return
406
+ default: break
407
+ }
408
+ default: break
409
+ }
410
+ jsExpandoSet(self, key, newValue)
411
+ }
412
+ }
413
+ open class var jsName: String { "Order" }
414
+ open class var jsStaticKeys: [String] { [] }
415
+ }
416
+
417
+ open class FlexboxLayout: FlexboxLayoutBase {
418
+ nonisolated deinit {}
419
+ open var _reorderedIndices: JSArray<Double>? = JSArray<Double>() {
420
+ didSet { if jsMadeBits1 & (1 << 60) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 60, "_reorderedIndices") } }
421
+ }
422
+ open var _orderCache: JSArray<Double>? = JSArray<Double>() {
423
+ didSet { if jsMadeBits1 & (1 << 61) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 61, "_orderCache") } }
424
+ }
425
+ open var _flexLines: JSArray<FlexLine>? = JSArray<FlexLine>()
426
+ open var _childrenFrozen: JSArray<Bool>? = JSArray<Bool>() {
427
+ didSet { if jsMadeBits1 & (1 << 62) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 62, "_childrenFrozen") } }
428
+ }
429
+ open var measureContext: MeasureContext? {
430
+ didSet { if jsMadeBits1 & (1 << 63) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 63, "measureContext") } }
431
+ }
432
+ public override init() throws {
433
+ try super.init()
434
+ jsMadeLevel(&jsMade, ["_flexLines"])
435
+ }
436
+ open var _isOrderChangedFromLastMeasurement: Bool {
437
+ get throws {
438
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:210)
439
+ let childCount: Double = try jsUnwrap(self.measureContext, "childrenCount").childrenCount
440
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:211)
441
+ if !jsTruthy(self._orderCache) {
442
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:212)
443
+ self._orderCache = JSArray<Double>()
444
+ }
445
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:214)
446
+ if try !jsLenientNumberEquals(jsUnwrap(self._orderCache, "length").length, childCount) {
447
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:215)
448
+ return true
449
+ }
450
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:217)
451
+ var i: Double = 0
452
+ var __first1 = true
453
+ while true {
454
+ if !__first1 { i += 1 }
455
+ __first1 = false
456
+ if !(i < childCount) { break }
457
+ do {
458
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:218)
459
+ let view: View? = try jsUnwrap(self.measureContext, "childAt").childAt(i)
460
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:219)
461
+ if false {
462
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:220)
463
+ continue
464
+ }
465
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:223)
466
+ if try FlexboxLayout.getOrder(view) != (jsUnwrap(self._orderCache, "i").element(i) ?? .nan) {
467
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:224)
468
+ return true
469
+ }
470
+ }
471
+ }
472
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:228)
473
+ return false
474
+ }
475
+ }
476
+ #sourceLocation()
477
+ open override func onMeasure(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
478
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:131)
479
+ self.measureContext = try MeasureContext(self)
480
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:134)
481
+ if try self._isOrderChangedFromLastMeasurement {
482
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:135)
483
+ self._reorderedIndices = try self._createReorderedIndices()
484
+ }
485
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:137)
486
+ if try !jsTruthy(self._childrenFrozen)
487
+ || jsUnwrap(self._childrenFrozen, "length").length
488
+ < jsUnwrap(self.measureContext, "childrenCount").childrenCount
489
+ {
490
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:138)
491
+ self._childrenFrozen = try jsArrayFrom(
492
+ JSArray<Any?>(
493
+ Array(
494
+ repeating: nil,
495
+ count: jsArrayLength(jsUnwrap(self.measureContext, "childrenCount").childrenCount)))
496
+ ) { jsLenientBool($0) }
497
+ }
498
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:141)
499
+ let __switch1: String = self.flexDirection
500
+ switch __switch1 {
501
+ case _
502
+ where jsStringEquals(__switch1, NativeScriptKit.FlexDirection.ROW)
503
+ || jsStringEquals(__switch1, NativeScriptKit.FlexDirection.ROW_REVERSE):
504
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:144)
505
+ try self._measureHorizontal(widthMeasureSpec, heightMeasureSpec)
506
+ case _
507
+ where jsStringEquals(__switch1, NativeScriptKit.FlexDirection.COLUMN)
508
+ || jsStringEquals(__switch1, NativeScriptKit.FlexDirection.COLUMN_REVERSE):
509
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:148)
510
+ try self._measureVertical(widthMeasureSpec, heightMeasureSpec)
511
+ default:
512
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:151)
513
+ throw JSException(
514
+ value: JSError("Invalid value for the flex direction is set: " + jsToStringDefault(self.flexDirection)))
515
+ }
516
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:154)
517
+ try jsUnwrap(self._childrenFrozen, setting: "length").length = 0
518
+ }
519
+ #sourceLocation()
520
+ open func _getReorderedChildAt(_ index: Double) throws -> View? {
521
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:158)
522
+ var child: View?
523
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:159)
524
+ if try index < 0 || index >= jsUnwrap(self._reorderedIndices, "length").length {
525
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:160)
526
+ child = nil
527
+ } else {
528
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:162)
529
+ let reorderedIndex: Double? = try jsUnwrap(self._reorderedIndices, "index").element(index)
530
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:163)
531
+ child = try jsUnwrap(self.measureContext, "childAt").childAt((reorderedIndex ?? .nan))
532
+ }
533
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:166)
534
+ return child
535
+ }
536
+ #sourceLocation()
537
+ open func _createReorderedIndices() throws -> JSArray<Double>? {
538
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:170)
539
+ let childCount: Double = try jsUnwrap(self.measureContext, "childrenCount").childrenCount
540
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:171)
541
+ let orders: JSArray<Order>? = try self._createOrders(childCount)
542
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:173)
543
+ return try self._sortOrdersIntoReorderedIndices(childCount, orders)
544
+ }
545
+ #sourceLocation()
546
+ open func _sortOrdersIntoReorderedIndices(_ _childCount: Double, _ orders: JSArray<Order>?) throws -> JSArray<
547
+ Double
548
+ >? {
549
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:177)
550
+ _ = try jsUnwrap(orders, "sort").sort({ (a: Order?, b: Order?) throws -> Double in
551
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:177)
552
+ return try jsUnwrap(a, "compareTo").compareTo(b)
553
+ })
554
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:178)
555
+ if !jsTruthy(self._orderCache) {
556
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:179)
557
+ self._orderCache = JSArray<Double>()
558
+ } else {
559
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:181)
560
+ try jsUnwrap(self._orderCache, setting: "length").length = 0
561
+ }
562
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:184)
563
+ let reorderedIndices: JSArray<Double> = JSArray<Double>()
564
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:186)
565
+ var i: Double = 0
566
+ let length: Double = try jsUnwrap(orders, "length").length
567
+ while i < length {
568
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:187)
569
+ let order: Order? = try jsUnwrap(orders, "i").element(i)
570
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:189)
571
+ try reorderedIndices[(i as Double)] = jsUnwrap(order, "index").index
572
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:190)
573
+ try jsUnwrap(self._orderCache, setting: "order.index")[(jsUnwrap(order, "index").index as Double)] =
574
+ jsUnwrap(order, "order").order
575
+ i += 1
576
+ }
577
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:193)
578
+ return reorderedIndices
579
+ }
580
+ #sourceLocation()
581
+ open func _createOrders(_ childCount: Double) throws -> JSArray<Order>? {
582
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:197)
583
+ let orders: JSArray<Order> = JSArray<Order>()
584
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:198)
585
+ var i: Double = 0
586
+ while i < childCount {
587
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:199)
588
+ let child: View? = try jsUnwrap(self.measureContext, "childAt").childAt(i)
589
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:200)
590
+ let order: Order = Order()
591
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:201)
592
+ order.order = try FlexboxLayout.getOrder(child)
593
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:202)
594
+ order.index = i
595
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:203)
596
+ _ = orders.push(order)
597
+ i += 1
598
+ }
599
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:206)
600
+ return orders
601
+ }
602
+ #sourceLocation()
603
+ open func _measureHorizontal(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
604
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:232)
605
+ let widthSize: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecSize(widthMeasureSpec)
606
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:233)
607
+ let widthMode: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecMode(widthMeasureSpec)
608
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:234)
609
+ let heightSize: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecSize(heightMeasureSpec)
610
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:235)
611
+ let heightMode: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecMode(heightMeasureSpec)
612
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:237)
613
+ var childState: Double = 0
614
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:239)
615
+ try jsUnwrap(self._flexLines, setting: "length").length = 0
616
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:241)
617
+ let childCount: Double = try jsUnwrap(self.measureContext, "childrenCount").childrenCount
618
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:242)
619
+ let paddingStart: Double = try NativeScriptKit.FlexboxLayout.getPaddingStart(self)
620
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:243)
621
+ let paddingEnd: Double = try NativeScriptKit.FlexboxLayout.getPaddingEnd(self)
622
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:244)
623
+ var largestHeightInRow: Double = Double.leastNonzeroMagnitude
624
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:245)
625
+ var flexLine: FlexLine? = FlexLine()
626
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:247)
627
+ var indexInFlexLine: Double = 0
628
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:248)
629
+ try jsUnwrap(flexLine, setting: "_mainSize")._mainSize = paddingStart + paddingEnd
630
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:249)
631
+ var i: Double = 0
632
+ var __first2 = true
633
+ while true {
634
+ if !__first2 { i += 1 }
635
+ __first2 = false
636
+ if !(i < childCount) { break }
637
+ do {
638
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:250)
639
+ let child: View? = try self._getReorderedChildAt(i)
640
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:251)
641
+ if false {
642
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:252)
643
+ try self._addFlexLineIfLastFlexItem(i, childCount, flexLine)
644
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:253)
645
+ continue
646
+ } else if try jsTruthy(jsUnwrap(child, "isCollapsed").isCollapsed) {
647
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:255)
648
+ try jsUnwrap(flexLine, "_itemCount")._itemCount += 1
649
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:256)
650
+ try jsUnwrap(flexLine, "_goneItemCount")._goneItemCount += 1
651
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:257)
652
+ try self._addFlexLineIfLastFlexItem(i, childCount, flexLine)
653
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:258)
654
+ continue
655
+ }
656
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:261)
657
+ try jsUnwrap(child, "_updateEffectiveLayoutValues")._updateEffectiveLayoutValues(
658
+ widthSize, widthMode, heightSize, heightMode)
659
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:262)
660
+ let lp: View? = child
661
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:263)
662
+ if try jsStringEquals(FlexboxLayout.getAlignSelf(child), "stretch") {
663
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:264)
664
+ _ = try jsUnwrap(jsUnwrap(flexLine, "_indicesAlignSelfStretch")._indicesAlignSelfStretch, "push")
665
+ .push(i)
666
+ }
667
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:267)
668
+ var childWidth: Double = try jsUnwrap(lp, "effectiveWidth").effectiveWidth
669
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:268)
670
+ if NativeScriptKit.FlexBasisPercent.DEFAULT != NativeScriptKit.FlexBasisPercent.DEFAULT
671
+ && jsLenientNumberEquals(widthMode, Core_ui_layouts_flexbox_layout_index.EXACTLY)
672
+ {
673
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:269)
674
+ childWidth = jsRound(widthSize * jsToNumber(NativeScriptKit.FlexBasisPercent.DEFAULT))
675
+ }
676
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:272)
677
+ let childWidthMeasureSpec: Double = try FlexboxLayout.getChildMeasureSpec(
678
+ widthMeasureSpec,
679
+ self.effectivePaddingLeft + self.effectivePaddingRight
680
+ + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft
681
+ + jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight,
682
+ (childWidth < 0 ? Core_ui_layouts_flexbox_layout_index.WRAP_CONTENT : childWidth))
683
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:274)
684
+ let childHeightMeasureSpec: Double = try FlexboxLayout.getChildMeasureSpec(
685
+ heightMeasureSpec,
686
+ self.effectivePaddingTop + self.effectivePaddingBottom
687
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
688
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom,
689
+ (jsUnwrap(lp, "effectiveHeight").effectiveHeight < 0
690
+ ? Core_ui_layouts_flexbox_layout_index.WRAP_CONTENT
691
+ : jsUnwrap(lp, "effectiveHeight").effectiveHeight))
692
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:276)
693
+ try jsUnwrap(child, "measure").measure(childWidthMeasureSpec, childHeightMeasureSpec)
694
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:278)
695
+ try self._checkSizeConstraints(child)
696
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:280)
697
+ childState = try View.combineMeasuredStates(
698
+ childState, jsUnwrap(child, "getMeasuredState").getMeasuredState())
699
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:281)
700
+ largestHeightInRow = try jsMathMax(
701
+ largestHeightInRow,
702
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight()
703
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
704
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
705
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:283)
706
+ if try self._isWrapRequired(
707
+ child, widthMode, widthSize, jsUnwrap(flexLine, "_mainSize")._mainSize,
708
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth()
709
+ + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft
710
+ + jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight, i, indexInFlexLine)
711
+ {
712
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:284)
713
+ if try jsUnwrap(flexLine, "layoutVisibleItemCount").layoutVisibleItemCount > 0 {
714
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:285)
715
+ try self._addFlexLine(flexLine)
716
+ }
717
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:288)
718
+ flexLine = FlexLine()
719
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:289)
720
+ try jsUnwrap(flexLine, setting: "_itemCount")._itemCount = 1
721
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:290)
722
+ try jsUnwrap(flexLine, setting: "_mainSize")._mainSize = paddingStart + paddingEnd
723
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:291)
724
+ largestHeightInRow =
725
+ try jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight()
726
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
727
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom
728
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:292)
729
+ indexInFlexLine = 0
730
+ } else {
731
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:294)
732
+ try jsUnwrap(flexLine, "_itemCount")._itemCount += 1
733
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:295)
734
+ indexInFlexLine += 1
735
+ }
736
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:297)
737
+ try jsUnwrap(flexLine, "_mainSize")._mainSize +=
738
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth()
739
+ + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft
740
+ + jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight
741
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:298)
742
+ try jsUnwrap(flexLine, "_totalFlexGrow")._totalFlexGrow += FlexboxLayout.getFlexGrow(child)
743
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:299)
744
+ try jsUnwrap(flexLine, "_totalFlexShrink")._totalFlexShrink += FlexboxLayout.getFlexShrink(child)
745
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:301)
746
+ try jsUnwrap(flexLine, setting: "_crossSize")._crossSize = jsMathMax(
747
+ jsUnwrap(flexLine, "_crossSize")._crossSize, largestHeightInRow)
748
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:304)
749
+ if try self.effectiveColumnGap > 0 && self._hasPrecedingViews(i, indexInFlexLine) {
750
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:305)
751
+ try jsUnwrap(flexLine, "_mainSize")._mainSize += self.effectiveColumnGap
752
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:306)
753
+ try jsUnwrap(flexLine, "_gapLengthInMainSize")._gapLengthInMainSize += self.effectiveColumnGap
754
+ }
755
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:309)
756
+ if !jsStringEquals(self.flexWrap, NativeScriptKit.FlexWrap.WRAP_REVERSE) {
757
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:310)
758
+ try jsUnwrap(flexLine, setting: "_maxBaseline")._maxBaseline = jsMathMax(
759
+ jsUnwrap(flexLine, "_maxBaseline")._maxBaseline,
760
+ NativeScriptKit.FlexboxLayout.getBaseline(child)
761
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop)
762
+ } else {
763
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:312)
764
+ try jsUnwrap(flexLine, setting: "_maxBaseline")._maxBaseline = jsMathMax(
765
+ jsUnwrap(flexLine, "_maxBaseline")._maxBaseline,
766
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight()
767
+ - NativeScriptKit.FlexboxLayout.getBaseline(child)
768
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
769
+ }
770
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:314)
771
+ try self._addFlexLineIfLastFlexItem(i, childCount, flexLine)
772
+ }
773
+ }
774
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:317)
775
+ try self._determineMainSize(self.flexDirection, widthMeasureSpec, heightMeasureSpec)
776
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:319)
777
+ if jsStringEquals(self.alignItems, NativeScriptKit.AlignItems.BASELINE) {
778
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:320)
779
+ var viewIndex: Double = 0
780
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:322)
781
+ for fl in try jsIterated(self._flexLines, "this._flexLines is not iterable") {
782
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:323)
783
+ var largestHeightInLine: Double = Double.leastNonzeroMagnitude
784
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:324)
785
+ var i: Double = viewIndex
786
+ while try i < viewIndex + jsUnwrap(fl, "_itemCount")._itemCount {
787
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:325)
788
+ let child: View? = try self._getReorderedChildAt(i)
789
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:326)
790
+ let lp: View? = child
791
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:327)
792
+ if !jsStringEquals(self.flexWrap, NativeScriptKit.FlexWrap.WRAP_REVERSE) {
793
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:328)
794
+ var marginTop: Double =
795
+ try jsUnwrap(fl, "_maxBaseline")._maxBaseline
796
+ - NativeScriptKit.FlexboxLayout.getBaseline(child)
797
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:329)
798
+ marginTop = try jsMathMax(marginTop, jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop)
799
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:330)
800
+ largestHeightInLine = try jsMathMax(
801
+ largestHeightInLine,
802
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight() + marginTop
803
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
804
+ } else {
805
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:332)
806
+ var marginBottom: Double =
807
+ try jsUnwrap(fl, "_maxBaseline")._maxBaseline
808
+ - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight()
809
+ + NativeScriptKit.FlexboxLayout.getBaseline(child)
810
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:333)
811
+ marginBottom = try jsMathMax(
812
+ marginBottom, jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
813
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:334)
814
+ largestHeightInLine = try jsMathMax(
815
+ largestHeightInLine,
816
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight()
817
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop + marginBottom)
818
+ }
819
+ i += 1
820
+ }
821
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:337)
822
+ try jsUnwrap(fl, setting: "_crossSize")._crossSize = largestHeightInLine
823
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:338)
824
+ try viewIndex += jsUnwrap(fl, "itemCount").itemCount
825
+ }
826
+ }
827
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:342)
828
+ try self._determineCrossSize(
829
+ self.flexDirection, widthMeasureSpec, heightMeasureSpec,
830
+ self.effectivePaddingTop + self.effectivePaddingBottom)
831
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:343)
832
+ try self._stretchViews(self.flexDirection, self.alignItems)
833
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:344)
834
+ try self._setMeasuredDimensionForFlex(self.flexDirection, widthMeasureSpec, heightMeasureSpec, childState)
835
+ }
836
+ #sourceLocation()
837
+ open func _measureVertical(_ widthMeasureSpec: Any?, _ heightMeasureSpec: Any?) throws {
838
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:348)
839
+ let widthSize: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecSize(
840
+ try jsConvertedNumber(widthMeasureSpec))
841
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:349)
842
+ let widthMode: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecMode(
843
+ try jsConvertedNumber(widthMeasureSpec))
844
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:350)
845
+ let heightSize: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecSize(
846
+ try jsConvertedNumber(heightMeasureSpec))
847
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:351)
848
+ let heightMode: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecMode(
849
+ try jsConvertedNumber(heightMeasureSpec))
850
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:352)
851
+ var childState: Double = 0
852
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:354)
853
+ try jsUnwrap(self._flexLines, setting: "length").length = 0
854
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:356)
855
+ let childCount: Double = try jsUnwrap(self.measureContext, "childrenCount").childrenCount
856
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:357)
857
+ let paddingTop: Double = self.effectivePaddingTop
858
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:358)
859
+ let paddingBottom: Double = self.effectivePaddingBottom
860
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:359)
861
+ var largestWidthInColumn: Double = Double.leastNonzeroMagnitude
862
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:360)
863
+ var flexLine: FlexLine? = FlexLine()
864
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:361)
865
+ try jsUnwrap(flexLine, setting: "_mainSize")._mainSize = paddingTop + paddingBottom
866
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:363)
867
+ var indexInFlexLine: Double = 0
868
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:364)
869
+ var i: Double = 0
870
+ var __first3 = true
871
+ while true {
872
+ if !__first3 { i += 1 }
873
+ __first3 = false
874
+ if !(i < childCount) { break }
875
+ do {
876
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:365)
877
+ let child: View? = try self._getReorderedChildAt(i)
878
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:366)
879
+ if false {
880
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:367)
881
+ try self._addFlexLineIfLastFlexItem(i, childCount, flexLine)
882
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:368)
883
+ continue
884
+ } else if try jsTruthy(jsUnwrap(child, "isCollapsed").isCollapsed) {
885
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:370)
886
+ try jsUnwrap(flexLine, "_itemCount")._itemCount += 1
887
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:371)
888
+ try jsUnwrap(flexLine, "_goneItemCount")._goneItemCount += 1
889
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:372)
890
+ try self._addFlexLineIfLastFlexItem(i, childCount, flexLine)
891
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:373)
892
+ continue
893
+ }
894
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:376)
895
+ try jsUnwrap(child, "_updateEffectiveLayoutValues")._updateEffectiveLayoutValues(
896
+ widthSize, widthMode, heightSize, heightMode)
897
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:377)
898
+ let lp: View? = child
899
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:378)
900
+ if try jsStringEquals(FlexboxLayout.getAlignSelf(child), "stretch") {
901
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:379)
902
+ _ = try jsUnwrap(jsUnwrap(flexLine, "_indicesAlignSelfStretch")._indicesAlignSelfStretch, "push")
903
+ .push(i)
904
+ }
905
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:382)
906
+ var childHeight: Double = try jsUnwrap(lp, "effectiveHeight").effectiveHeight
907
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:384)
908
+ if NativeScriptKit.FlexBasisPercent.DEFAULT != NativeScriptKit.FlexBasisPercent.DEFAULT
909
+ && jsLenientNumberEquals(heightMode, Core_ui_layouts_flexbox_layout_index.EXACTLY)
910
+ {
911
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:385)
912
+ childHeight = jsRound(heightSize * jsToNumber(NativeScriptKit.FlexBasisPercent.DEFAULT))
913
+ }
914
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:388)
915
+ let childWidthMeasureSpec: Double = try FlexboxLayout.getChildMeasureSpec(
916
+ try jsConvertedNumber(widthMeasureSpec),
917
+ self.effectivePaddingLeft + self.effectivePaddingRight
918
+ + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft
919
+ + jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight,
920
+ (jsUnwrap(lp, "effectiveWidth").effectiveWidth < 0
921
+ ? Core_ui_layouts_flexbox_layout_index.WRAP_CONTENT
922
+ : jsUnwrap(lp, "effectiveWidth").effectiveWidth))
923
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:389)
924
+ let childHeightMeasureSpec: Double = try FlexboxLayout.getChildMeasureSpec(
925
+ try jsConvertedNumber(heightMeasureSpec),
926
+ self.effectivePaddingTop + self.effectivePaddingBottom
927
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
928
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom,
929
+ (childHeight < 0 ? Core_ui_layouts_flexbox_layout_index.WRAP_CONTENT : childHeight))
930
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:390)
931
+ try jsUnwrap(child, "measure").measure(childWidthMeasureSpec, childHeightMeasureSpec)
932
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:392)
933
+ try self._checkSizeConstraints(child)
934
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:394)
935
+ childState = try View.combineMeasuredStates(
936
+ childState, jsUnwrap(child, "getMeasuredState").getMeasuredState())
937
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:395)
938
+ largestWidthInColumn = try jsMathMax(
939
+ largestWidthInColumn,
940
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth()
941
+ + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft
942
+ + jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight)
943
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:397)
944
+ if try self._isWrapRequired(
945
+ child, heightMode, heightSize, jsUnwrap(flexLine, "mainSize").mainSize,
946
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight()
947
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
948
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom, i, indexInFlexLine)
949
+ {
950
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:398)
951
+ if try jsUnwrap(flexLine, "layoutVisibleItemCount").layoutVisibleItemCount > 0 {
952
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:399)
953
+ try self._addFlexLine(flexLine)
954
+ }
955
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:402)
956
+ flexLine = FlexLine()
957
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:403)
958
+ try jsUnwrap(flexLine, setting: "_itemCount")._itemCount = 1
959
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:404)
960
+ try jsUnwrap(flexLine, setting: "_mainSize")._mainSize = paddingTop + paddingBottom
961
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:405)
962
+ largestWidthInColumn =
963
+ try jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth()
964
+ + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft
965
+ + jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight
966
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:406)
967
+ indexInFlexLine = 0
968
+ } else {
969
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:408)
970
+ try jsUnwrap(flexLine, "_itemCount")._itemCount += 1
971
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:409)
972
+ indexInFlexLine += 1
973
+ }
974
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:412)
975
+ try jsUnwrap(flexLine, "_mainSize")._mainSize +=
976
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight()
977
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
978
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom
979
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:413)
980
+ try jsUnwrap(flexLine, "_totalFlexGrow")._totalFlexGrow += FlexboxLayout.getFlexGrow(child)
981
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:414)
982
+ try jsUnwrap(flexLine, "_totalFlexShrink")._totalFlexShrink += FlexboxLayout.getFlexShrink(child)
983
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:416)
984
+ try jsUnwrap(flexLine, setting: "_crossSize")._crossSize = jsMathMax(
985
+ jsUnwrap(flexLine, "_crossSize")._crossSize, largestWidthInColumn)
986
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:418)
987
+ if try self.effectiveRowGap > 0 && self._hasPrecedingViews(i, indexInFlexLine) {
988
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:419)
989
+ try jsUnwrap(flexLine, "_mainSize")._mainSize += self.effectiveRowGap
990
+ }
991
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:422)
992
+ try self._addFlexLineIfLastFlexItem(i, childCount, flexLine)
993
+ }
994
+ }
995
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:425)
996
+ try self._determineMainSize(
997
+ self.flexDirection, try jsConvertedNumber(widthMeasureSpec), try jsConvertedNumber(heightMeasureSpec))
998
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:426)
999
+ try self._determineCrossSize(
1000
+ self.flexDirection, try jsConvertedNumber(widthMeasureSpec), try jsConvertedNumber(heightMeasureSpec),
1001
+ self.effectivePaddingLeft + self.effectivePaddingRight)
1002
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:427)
1003
+ try self._stretchViews(self.flexDirection, self.alignItems)
1004
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:428)
1005
+ try self._setMeasuredDimensionForFlex(
1006
+ self.flexDirection, try jsConvertedNumber(widthMeasureSpec), try jsConvertedNumber(heightMeasureSpec),
1007
+ childState)
1008
+ }
1009
+ #sourceLocation()
1010
+ open func _checkSizeConstraints(_ view: View?) throws {
1011
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:432)
1012
+ var needsMeasure: Bool = false
1013
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:433)
1014
+ var childWidth: Double = try jsUnwrap(view, "getMeasuredWidth").getMeasuredWidth()
1015
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:434)
1016
+ var childHeight: Double = try jsUnwrap(view, "getMeasuredHeight").getMeasuredHeight()
1017
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:436)
1018
+ let minWidth: Double = try jsUnwrap(view, "effectiveMinWidth").effectiveMinWidth
1019
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:437)
1020
+ try jsUnwrap(view, setting: "effectiveMinWidth").effectiveMinWidth = 0
1021
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:438)
1022
+ if try jsUnwrap(view, "getMeasuredWidth").getMeasuredWidth() < minWidth {
1023
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:439)
1024
+ needsMeasure = true
1025
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:440)
1026
+ childWidth = minWidth
1027
+ } else if try jsUnwrap(view, "getMeasuredWidth").getMeasuredWidth()
1028
+ > jsUnwrap(view, "effectiveMaxWidth").effectiveMaxWidth
1029
+ {
1030
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:442)
1031
+ needsMeasure = true
1032
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:443)
1033
+ childWidth = try jsUnwrap(view, "effectiveMaxWidth").effectiveMaxWidth
1034
+ }
1035
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:446)
1036
+ let minHeight: Double = try jsUnwrap(view, "effectiveMinHeight").effectiveMinHeight
1037
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:447)
1038
+ try jsUnwrap(view, setting: "effectiveMinHeight").effectiveMinHeight = 0
1039
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:448)
1040
+ if childHeight < minHeight {
1041
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:449)
1042
+ needsMeasure = true
1043
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:450)
1044
+ childHeight = minHeight
1045
+ } else if try childHeight > jsUnwrap(view, "effectiveMaxHeight").effectiveMaxHeight {
1046
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:452)
1047
+ needsMeasure = true
1048
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:453)
1049
+ childHeight = try jsUnwrap(view, "effectiveMaxHeight").effectiveMaxHeight
1050
+ }
1051
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:455)
1052
+ if needsMeasure {
1053
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:456)
1054
+ try jsUnwrap(view, "measure").measure(
1055
+ Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1056
+ childWidth, Core_ui_layouts_flexbox_layout_index.EXACTLY),
1057
+ Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1058
+ childHeight, Core_ui_layouts_flexbox_layout_index.EXACTLY))
1059
+ }
1060
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:458)
1061
+ try jsUnwrap(view, setting: "effectiveMinWidth").effectiveMinWidth = minWidth
1062
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:459)
1063
+ try jsUnwrap(view, setting: "effectiveMinHeight").effectiveMinHeight = minHeight
1064
+ }
1065
+ #sourceLocation()
1066
+ open func _addFlexLineIfLastFlexItem(_ childIndex: Double, _ childCount: Double, _ flexLine: FlexLine?) throws {
1067
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:463)
1068
+ if try childIndex == childCount - 1 && jsUnwrap(flexLine, "layoutVisibleItemCount").layoutVisibleItemCount != 0
1069
+ {
1070
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:464)
1071
+ try self._addFlexLine(flexLine)
1072
+ }
1073
+ }
1074
+ #sourceLocation()
1075
+ open func _addFlexLine(_ flexLine: FlexLine?) throws {
1076
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:469)
1077
+ _ = try jsUnwrap(self._flexLines, "push").push(jsObjectRequired(flexLine))
1078
+ }
1079
+ #sourceLocation()
1080
+ open func _determineMainSize(_ flexDirection: String, _ widthMeasureSpec: Double, _ heightMeasureSpec: Double)
1081
+ throws
1082
+ {
1083
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:473)
1084
+ var mainSize: Double? = nil
1085
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:474)
1086
+ var paddingAlongMainAxis: Double? = nil
1087
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:476)
1088
+ let __switch2: String = flexDirection
1089
+ switch __switch2 {
1090
+ case _
1091
+ where jsStringEquals(__switch2, NativeScriptKit.FlexDirection.ROW)
1092
+ || jsStringEquals(__switch2, NativeScriptKit.FlexDirection.ROW_REVERSE):
1093
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:478)
1094
+ do {
1095
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:479)
1096
+ let widthMode: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecMode(widthMeasureSpec)
1097
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:480)
1098
+ let widthSize: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecSize(widthMeasureSpec)
1099
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:481)
1100
+ if jsLenientNumberEquals(widthMode, Core_ui_layouts_flexbox_layout_index.EXACTLY) {
1101
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:482)
1102
+ mainSize = widthSize
1103
+ } else {
1104
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:484)
1105
+ mainSize = try self._getLargestMainSize()
1106
+ }
1107
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:486)
1108
+ paddingAlongMainAxis = self.effectivePaddingLeft + self.effectivePaddingRight
1109
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:487)
1110
+ break
1111
+ }
1112
+ case _
1113
+ where jsStringEquals(__switch2, NativeScriptKit.FlexDirection.COLUMN)
1114
+ || jsStringEquals(__switch2, NativeScriptKit.FlexDirection.COLUMN_REVERSE):
1115
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:490)
1116
+ do {
1117
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:491)
1118
+ let heightMode: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecMode(heightMeasureSpec)
1119
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:492)
1120
+ let heightSize: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecSize(heightMeasureSpec)
1121
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:493)
1122
+ if jsLenientNumberEquals(heightMode, Core_ui_layouts_flexbox_layout_index.EXACTLY) {
1123
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:494)
1124
+ mainSize = heightSize
1125
+ } else {
1126
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:496)
1127
+ mainSize = try self._getLargestMainSize()
1128
+ }
1129
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:498)
1130
+ paddingAlongMainAxis = self.effectivePaddingTop + self.effectivePaddingBottom
1131
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:499)
1132
+ break
1133
+ }
1134
+ default:
1135
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:502)
1136
+ throw JSException(value: JSError("Invalid flex direction: " + jsToStringDefault(flexDirection)))
1137
+ }
1138
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:505)
1139
+ var childIndex: Double = 0
1140
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:506)
1141
+ for flexLine in try jsIterated(self._flexLines, "this._flexLines is not iterable") {
1142
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:507)
1143
+ if try jsUnwrap(flexLine, "mainSize").mainSize < (mainSize ?? .nan) {
1144
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:508)
1145
+ childIndex = try self._expandFlexItems(
1146
+ flexLine, flexDirection, (mainSize ?? .nan), (paddingAlongMainAxis ?? .nan), childIndex)
1147
+ } else {
1148
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:510)
1149
+ childIndex = try self._shrinkFlexItems(
1150
+ flexLine, flexDirection, (mainSize ?? .nan), (paddingAlongMainAxis ?? .nan), childIndex)
1151
+ }
1152
+ }
1153
+ }
1154
+ #sourceLocation()
1155
+ open func _expandFlexItems(
1156
+ _ flexLine: FlexLine?, _ flexDirection: String, _ maxMainSize: Double, _ paddingAlongMainAxis: Double,
1157
+ _ startIndex: Double
1158
+ ) throws -> Double {
1159
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:516)
1160
+ var childIndex: Double = startIndex
1161
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:517)
1162
+ if try jsUnwrap(flexLine, "_totalFlexGrow")._totalFlexGrow <= 0
1163
+ || maxMainSize < jsUnwrap(flexLine, "_mainSize")._mainSize
1164
+ {
1165
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:518)
1166
+ try childIndex += jsUnwrap(flexLine, "_itemCount")._itemCount
1167
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:520)
1168
+ return childIndex
1169
+ }
1170
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:522)
1171
+ let sizeBeforeExpand: Double = try jsUnwrap(flexLine, "_mainSize")._mainSize
1172
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:523)
1173
+ var needsReexpand: Bool = false
1174
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:524)
1175
+ let pendingSpace: Double = try maxMainSize - jsUnwrap(flexLine, "_mainSize")._mainSize
1176
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:525)
1177
+ let unitSpace: Double = try pendingSpace / jsUnwrap(flexLine, "_totalFlexGrow")._totalFlexGrow
1178
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:526)
1179
+ try jsUnwrap(flexLine, setting: "_mainSize")._mainSize =
1180
+ paddingAlongMainAxis + jsUnwrap(flexLine, "_gapLengthInMainSize")._gapLengthInMainSize
1181
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:527)
1182
+ var accumulatedRoundError: Double = 0
1183
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:528)
1184
+ var i: Double = 0
1185
+ var __first4 = true
1186
+ while true {
1187
+ if !__first4 { i += 1 }
1188
+ __first4 = false
1189
+ if !(try i < jsUnwrap(flexLine, "itemCount").itemCount) { break }
1190
+ do {
1191
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:529)
1192
+ let child: View? = try self._getReorderedChildAt(childIndex)
1193
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:530)
1194
+ if false {
1195
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:531)
1196
+ continue
1197
+ } else if try jsTruthy(jsUnwrap(child, "isCollapsed").isCollapsed) {
1198
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:533)
1199
+ childIndex += 1
1200
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:534)
1201
+ continue
1202
+ }
1203
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:536)
1204
+ let lp: View? = child
1205
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:537)
1206
+ if self._isMainAxisDirectionHorizontal(flexDirection) {
1207
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:538)
1208
+ if try !(jsTruthy(jsUnwrap(self._childrenFrozen, "childIndex").element(childIndex) as Any?)) {
1209
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:539)
1210
+ let flexGrow: Double = try FlexboxLayout.getFlexGrow(child)
1211
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:540)
1212
+ let rawCalculatedWidth: Double =
1213
+ try jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth() + unitSpace * flexGrow
1214
+ + accumulatedRoundError
1215
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:541)
1216
+ var roundedCalculatedWidth: Double = jsRound(rawCalculatedWidth)
1217
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:543)
1218
+ if try roundedCalculatedWidth > jsUnwrap(child, "effectiveMaxWidth").effectiveMaxWidth {
1219
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:544)
1220
+ needsReexpand = true
1221
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:545)
1222
+ roundedCalculatedWidth = try jsUnwrap(child, "effectiveMaxWidth").effectiveMaxWidth
1223
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:546)
1224
+ try jsUnwrap(self._childrenFrozen, setting: "childIndex")[(childIndex as Double)] = true
1225
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:547)
1226
+ try jsUnwrap(flexLine, "_totalFlexGrow")._totalFlexGrow -= flexGrow
1227
+ } else {
1228
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:549)
1229
+ accumulatedRoundError = rawCalculatedWidth - roundedCalculatedWidth
1230
+ }
1231
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:551)
1232
+ try jsUnwrap(child, "measure").measure(
1233
+ Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1234
+ roundedCalculatedWidth, Core_ui_layouts_flexbox_layout_index.EXACTLY),
1235
+ Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1236
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
1237
+ Core_ui_layouts_flexbox_layout_index.EXACTLY))
1238
+ }
1239
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:553)
1240
+ try jsUnwrap(flexLine, "_mainSize")._mainSize +=
1241
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth()
1242
+ + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft
1243
+ + jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight
1244
+ } else {
1245
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:555)
1246
+ if try !(jsTruthy(jsUnwrap(self._childrenFrozen, "childIndex").element(childIndex) as Any?)) {
1247
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:556)
1248
+ let flexGrow: Double = try FlexboxLayout.getFlexGrow(child)
1249
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:557)
1250
+ let rawCalculatedHeight: Double =
1251
+ try jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight() + unitSpace * flexGrow
1252
+ + accumulatedRoundError
1253
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:558)
1254
+ var roundedCalculatedHeight: Double = jsRound(rawCalculatedHeight)
1255
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:560)
1256
+ if try roundedCalculatedHeight > jsUnwrap(child, "effectiveMaxHeight").effectiveMaxHeight {
1257
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:561)
1258
+ needsReexpand = true
1259
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:562)
1260
+ roundedCalculatedHeight = try jsUnwrap(child, "effectiveMaxHeight").effectiveMaxHeight
1261
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:563)
1262
+ try jsUnwrap(self._childrenFrozen, setting: "childIndex")[(childIndex as Double)] = true
1263
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:564)
1264
+ try jsUnwrap(flexLine, "_totalFlexGrow")._totalFlexGrow -= flexGrow
1265
+ } else {
1266
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:566)
1267
+ accumulatedRoundError = rawCalculatedHeight - roundedCalculatedHeight
1268
+ }
1269
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:568)
1270
+ try jsUnwrap(child, "measure").measure(
1271
+ Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1272
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
1273
+ Core_ui_layouts_flexbox_layout_index.EXACTLY),
1274
+ Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1275
+ roundedCalculatedHeight, Core_ui_layouts_flexbox_layout_index.EXACTLY))
1276
+ }
1277
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:570)
1278
+ try jsUnwrap(flexLine, "_mainSize")._mainSize +=
1279
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight()
1280
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
1281
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom
1282
+ }
1283
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:572)
1284
+ childIndex += 1
1285
+ }
1286
+ }
1287
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:575)
1288
+ if try needsReexpand && !jsLenientNumberEquals(sizeBeforeExpand, jsUnwrap(flexLine, "_mainSize")._mainSize) {
1289
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:576)
1290
+ _ = try self._expandFlexItems(flexLine, flexDirection, maxMainSize, paddingAlongMainAxis, startIndex)
1291
+ }
1292
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:579)
1293
+ return childIndex
1294
+ }
1295
+ #sourceLocation()
1296
+ open func _shrinkFlexItems(
1297
+ _ flexLine: FlexLine?, _ flexDirection: String, _ maxMainSize: Double, _ paddingAlongMainAxis: Double,
1298
+ _ startIndex: Double
1299
+ ) throws -> Double {
1300
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:583)
1301
+ var childIndex: Double = startIndex
1302
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:584)
1303
+ let sizeBeforeShrink: Double = try jsUnwrap(flexLine, "_mainSize")._mainSize
1304
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:585)
1305
+ if try jsUnwrap(flexLine, "_totalFlexShrink")._totalFlexShrink <= 0
1306
+ || maxMainSize > jsUnwrap(flexLine, "_mainSize")._mainSize
1307
+ {
1308
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:586)
1309
+ try childIndex += jsUnwrap(flexLine, "itemCount").itemCount
1310
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:588)
1311
+ return childIndex
1312
+ }
1313
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:590)
1314
+ var needsReshrink: Bool = false
1315
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:591)
1316
+ let unitShrink: Double =
1317
+ try (jsUnwrap(flexLine, "_mainSize")._mainSize - maxMainSize)
1318
+ / jsUnwrap(flexLine, "_totalFlexShrink")._totalFlexShrink
1319
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:592)
1320
+ var accumulatedRoundError: Double = 0
1321
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:593)
1322
+ try jsUnwrap(flexLine, setting: "_mainSize")._mainSize =
1323
+ paddingAlongMainAxis + jsUnwrap(flexLine, "_gapLengthInMainSize")._gapLengthInMainSize
1324
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:594)
1325
+ var i: Double = 0
1326
+ var __first5 = true
1327
+ while true {
1328
+ if !__first5 { i += 1 }
1329
+ __first5 = false
1330
+ if !(try i < jsUnwrap(flexLine, "itemCount").itemCount) { break }
1331
+ do {
1332
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:595)
1333
+ let child: View? = try self._getReorderedChildAt(childIndex)
1334
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:596)
1335
+ if false {
1336
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:597)
1337
+ continue
1338
+ } else if try jsTruthy(jsUnwrap(child, "isCollapsed").isCollapsed) {
1339
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:599)
1340
+ childIndex += 1
1341
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:600)
1342
+ continue
1343
+ }
1344
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:602)
1345
+ let lp: View? = child
1346
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:603)
1347
+ if self._isMainAxisDirectionHorizontal(flexDirection) {
1348
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:605)
1349
+ if try !(jsTruthy(jsUnwrap(self._childrenFrozen, "childIndex").element(childIndex) as Any?)) {
1350
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:606)
1351
+ let flexShrink: Double = try FlexboxLayout.getFlexShrink(child)
1352
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:607)
1353
+ let rawCalculatedWidth: Double =
1354
+ try jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth() - unitShrink * flexShrink
1355
+ + accumulatedRoundError
1356
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:608)
1357
+ var roundedCalculatedWidth: Double = jsRound(rawCalculatedWidth)
1358
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:609)
1359
+ let minWidth: Double = try jsUnwrap(child, "effectiveMinWidth").effectiveMinWidth
1360
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:610)
1361
+ try jsUnwrap(child, setting: "effectiveMinWidth").effectiveMinWidth = 0
1362
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:611)
1363
+ if roundedCalculatedWidth < minWidth {
1364
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:612)
1365
+ needsReshrink = true
1366
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:613)
1367
+ roundedCalculatedWidth = minWidth
1368
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:614)
1369
+ try jsUnwrap(self._childrenFrozen, setting: "childIndex")[(childIndex as Double)] = true
1370
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:615)
1371
+ try jsUnwrap(flexLine, "_totalFlexShrink")._totalFlexShrink -= flexShrink
1372
+ } else {
1373
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:617)
1374
+ accumulatedRoundError = rawCalculatedWidth - roundedCalculatedWidth
1375
+ }
1376
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:620)
1377
+ let childWidthMeasureSpec: Double = try Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1378
+ roundedCalculatedWidth, Core_ui_layouts_flexbox_layout_index.EXACTLY)
1379
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:626)
1380
+ let childHeightMeasureSpec: Double = try FlexboxLayout.getChildMeasureSpec(
1381
+ self._currentHeightMeasureSpec,
1382
+ self.effectivePaddingTop + self.effectivePaddingBottom
1383
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
1384
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom,
1385
+ (jsUnwrap(lp, "effectiveHeight").effectiveHeight < 0
1386
+ ? Core_ui_layouts_flexbox_layout_index.WRAP_CONTENT
1387
+ : jsUnwrap(lp, "effectiveHeight").effectiveHeight))
1388
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:628)
1389
+ try jsUnwrap(child, "measure").measure(childWidthMeasureSpec, childHeightMeasureSpec)
1390
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:629)
1391
+ try jsUnwrap(child, setting: "effectiveMinWidth").effectiveMinWidth = minWidth
1392
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:632)
1393
+ try jsUnwrap(flexLine, setting: "_crossSize")._crossSize = jsMathMax(
1394
+ jsUnwrap(flexLine, "_crossSize")._crossSize,
1395
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight()
1396
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
1397
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
1398
+ }
1399
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:634)
1400
+ try jsUnwrap(flexLine, "_mainSize")._mainSize +=
1401
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth()
1402
+ + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft
1403
+ + jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight
1404
+ } else {
1405
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:636)
1406
+ if try !(jsTruthy(jsUnwrap(self._childrenFrozen, "childIndex").element(childIndex) as Any?)) {
1407
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:637)
1408
+ let flexShrink: Double = try FlexboxLayout.getFlexShrink(child)
1409
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:638)
1410
+ let rawCalculatedHeight: Double =
1411
+ try jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight() - unitShrink * flexShrink
1412
+ + accumulatedRoundError
1413
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:639)
1414
+ var roundedCalculatedHeight: Double = jsRound(rawCalculatedHeight)
1415
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:640)
1416
+ let minHeight: Double = try jsUnwrap(child, "effectiveMinHeight").effectiveMinHeight
1417
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:641)
1418
+ try jsUnwrap(child, setting: "effectiveMinHeight").effectiveMinHeight = 0
1419
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:642)
1420
+ if roundedCalculatedHeight < minHeight {
1421
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:643)
1422
+ needsReshrink = true
1423
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:644)
1424
+ roundedCalculatedHeight = minHeight
1425
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:645)
1426
+ try jsUnwrap(self._childrenFrozen, setting: "childIndex")[(childIndex as Double)] = true
1427
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:646)
1428
+ try jsUnwrap(flexLine, "_totalFlexShrink")._totalFlexShrink -= flexShrink
1429
+ } else {
1430
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:648)
1431
+ accumulatedRoundError = rawCalculatedHeight - roundedCalculatedHeight
1432
+ }
1433
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:650)
1434
+ try jsUnwrap(child, "measure").measure(
1435
+ Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1436
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
1437
+ Core_ui_layouts_flexbox_layout_index.EXACTLY),
1438
+ Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1439
+ roundedCalculatedHeight, Core_ui_layouts_flexbox_layout_index.EXACTLY))
1440
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:651)
1441
+ try jsUnwrap(child, setting: "effectiveMinHeight").effectiveMinHeight = minHeight
1442
+ }
1443
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:653)
1444
+ try jsUnwrap(flexLine, "_mainSize")._mainSize +=
1445
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight()
1446
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
1447
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom
1448
+ }
1449
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:655)
1450
+ childIndex += 1
1451
+ }
1452
+ }
1453
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:658)
1454
+ if try needsReshrink && !jsLenientNumberEquals(sizeBeforeShrink, jsUnwrap(flexLine, "_mainSize")._mainSize) {
1455
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:659)
1456
+ _ = try self._shrinkFlexItems(flexLine, flexDirection, maxMainSize, paddingAlongMainAxis, startIndex)
1457
+ }
1458
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:662)
1459
+ return childIndex
1460
+ }
1461
+ #sourceLocation()
1462
+ open func _determineCrossSize(
1463
+ _ flexDirection: String, _ widthMeasureSpec: Double, _ heightMeasureSpec: Double,
1464
+ _ paddingAlongCrossAxis: Double
1465
+ ) throws {
1466
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:666)
1467
+ var mode: Any? = nil
1468
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:667)
1469
+ var size: Any? = nil
1470
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:668)
1471
+ let __switch3: String = flexDirection
1472
+ switch __switch3 {
1473
+ case _
1474
+ where jsStringEquals(__switch3, NativeScriptKit.FlexDirection.ROW)
1475
+ || jsStringEquals(__switch3, NativeScriptKit.FlexDirection.ROW_REVERSE):
1476
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:671)
1477
+ mode = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecMode(heightMeasureSpec)
1478
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:672)
1479
+ size = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecSize(heightMeasureSpec)
1480
+ case _
1481
+ where jsStringEquals(__switch3, NativeScriptKit.FlexDirection.COLUMN)
1482
+ || jsStringEquals(__switch3, NativeScriptKit.FlexDirection.COLUMN_REVERSE):
1483
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:676)
1484
+ mode = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecMode(widthMeasureSpec)
1485
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:677)
1486
+ size = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecSize(widthMeasureSpec)
1487
+ default:
1488
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:680)
1489
+ throw JSException(value: JSError("Invalid flex direction: " + jsToStringDefault(flexDirection)))
1490
+ }
1491
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:682)
1492
+ if jsStrictEquals(mode, Core_ui_layouts_flexbox_layout_index.EXACTLY) {
1493
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:683)
1494
+ let totalCrossSize: Double = try self._getSumOfCrossSize() + paddingAlongCrossAxis
1495
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:684)
1496
+ if try jsUnwrap(self._flexLines, "length").length == 1 {
1497
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:685)
1498
+ try jsUnwrap(jsUnwrap(self._flexLines, "0").element(0), setting: "_crossSize")._crossSize =
1499
+ jsSubtractThrowing(size, paddingAlongCrossAxis)
1500
+ } else if try jsUnwrap(self._flexLines, "length").length >= 2 && jsLessThrowing(totalCrossSize, size) {
1501
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:687)
1502
+ let __switch4: String = self.alignContent
1503
+ switch __switch4 {
1504
+ case _ where jsStringEquals(__switch4, NativeScriptKit.AlignContent.STRETCH):
1505
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:688)
1506
+ do {
1507
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:689)
1508
+ let freeSpaceUnit: Double =
1509
+ try jsSubtractThrowing(size, totalCrossSize) / jsUnwrap(self._flexLines, "length").length
1510
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:690)
1511
+ var accumulatedError: Double = 0
1512
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:692)
1513
+ var i: Double = 0
1514
+ let flexLinesSize: Double = try jsUnwrap(self._flexLines, "length").length
1515
+ while i < flexLinesSize {
1516
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:693)
1517
+ let flexLine: FlexLine? = try jsUnwrap(self._flexLines, "i").element(i)
1518
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:694)
1519
+ var newCrossSizeAsFloat: Double =
1520
+ try jsUnwrap(flexLine, "_crossSize")._crossSize + freeSpaceUnit
1521
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:695)
1522
+ if try i == jsUnwrap(self._flexLines, "length").length - 1 {
1523
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:696)
1524
+ newCrossSizeAsFloat += accumulatedError
1525
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:697)
1526
+ accumulatedError = 0
1527
+ }
1528
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:699)
1529
+ var newCrossSize: Double = jsRound(newCrossSizeAsFloat)
1530
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:700)
1531
+ accumulatedError += newCrossSizeAsFloat - newCrossSize
1532
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:701)
1533
+ if accumulatedError > 1 {
1534
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:702)
1535
+ newCrossSize += 1
1536
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:703)
1537
+ accumulatedError -= 1
1538
+ } else if accumulatedError < -1 {
1539
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:705)
1540
+ newCrossSize -= 1
1541
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:706)
1542
+ accumulatedError += 1
1543
+ }
1544
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:708)
1545
+ try jsUnwrap(flexLine, setting: "_crossSize")._crossSize = newCrossSize
1546
+ i += 1
1547
+ }
1548
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:710)
1549
+ break
1550
+ }
1551
+ case _ where jsStringEquals(__switch4, NativeScriptKit.AlignContent.SPACE_AROUND):
1552
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:712)
1553
+ do {
1554
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:713)
1555
+ var spaceTopAndBottom: Double = try jsSubtractThrowing(size, totalCrossSize)
1556
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:714)
1557
+ let numberOfSpaces: Double = try jsUnwrap(self._flexLines, "length").length * 2
1558
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:715)
1559
+ let newFlexLines: JSArray<FlexLine> = JSArray<FlexLine>()
1560
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:716)
1561
+ let dummySpaceFlexLine: FlexLine = FlexLine()
1562
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:718)
1563
+ spaceTopAndBottom = spaceTopAndBottom / numberOfSpaces
1564
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:719)
1565
+ dummySpaceFlexLine._crossSize = spaceTopAndBottom
1566
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:721)
1567
+ for flexLine in try jsIterated(self._flexLines, "this._flexLines is not iterable") {
1568
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:722)
1569
+ _ = newFlexLines.push(dummySpaceFlexLine)
1570
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:723)
1571
+ _ = try newFlexLines.push(jsObjectRequired(flexLine))
1572
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:724)
1573
+ _ = newFlexLines.push(dummySpaceFlexLine)
1574
+ }
1575
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:726)
1576
+ self._flexLines = newFlexLines
1577
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:727)
1578
+ break
1579
+ }
1580
+ case _ where jsStringEquals(__switch4, NativeScriptKit.AlignContent.SPACE_BETWEEN):
1581
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:729)
1582
+ do {
1583
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:730)
1584
+ var spaceBetweenFlexLine: Double = try jsSubtractThrowing(size, totalCrossSize)
1585
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:731)
1586
+ let numberOfSpaces: Double = try jsUnwrap(self._flexLines, "length").length - 1
1587
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:732)
1588
+ spaceBetweenFlexLine = spaceBetweenFlexLine / numberOfSpaces
1589
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:733)
1590
+ var accumulatedError: Double = 0
1591
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:734)
1592
+ let newFlexLines: JSArray<FlexLine> = JSArray<FlexLine>()
1593
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:735)
1594
+ var i: Double = 0
1595
+ let flexLineSize: Double = try jsUnwrap(self._flexLines, "length").length
1596
+ while i < flexLineSize {
1597
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:736)
1598
+ let flexLine: FlexLine? = try jsUnwrap(self._flexLines, "i").element(i)
1599
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:737)
1600
+ _ = try newFlexLines.push(jsObjectRequired(flexLine))
1601
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:739)
1602
+ if try i != jsUnwrap(self._flexLines, "length").length - 1 {
1603
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:740)
1604
+ let dummySpaceFlexLine: FlexLine = FlexLine()
1605
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:741)
1606
+ if try i == jsUnwrap(self._flexLines, "length").length - 2 {
1607
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:742)
1608
+ dummySpaceFlexLine._crossSize = jsRound(spaceBetweenFlexLine + accumulatedError)
1609
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:743)
1610
+ accumulatedError = 0
1611
+ } else {
1612
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:745)
1613
+ dummySpaceFlexLine._crossSize = jsRound(spaceBetweenFlexLine)
1614
+ }
1615
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:747)
1616
+ accumulatedError += spaceBetweenFlexLine - dummySpaceFlexLine._crossSize
1617
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:748)
1618
+ if accumulatedError > 1 {
1619
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:749)
1620
+ dummySpaceFlexLine._crossSize += 1
1621
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:750)
1622
+ accumulatedError -= 1
1623
+ } else if accumulatedError < -1 {
1624
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:752)
1625
+ dummySpaceFlexLine._crossSize -= 1
1626
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:753)
1627
+ accumulatedError += 1
1628
+ }
1629
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:755)
1630
+ _ = newFlexLines.push(dummySpaceFlexLine)
1631
+ }
1632
+ i += 1
1633
+ }
1634
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:758)
1635
+ self._flexLines = newFlexLines
1636
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:759)
1637
+ break
1638
+ }
1639
+ case _ where jsStringEquals(__switch4, NativeScriptKit.AlignContent.CENTER):
1640
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:761)
1641
+ do {
1642
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:762)
1643
+ var spaceAboveAndBottom: Double = try jsSubtractThrowing(size, totalCrossSize)
1644
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:763)
1645
+ spaceAboveAndBottom = spaceAboveAndBottom / 2
1646
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:764)
1647
+ let newFlexLines: JSArray<FlexLine> = JSArray<FlexLine>()
1648
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:765)
1649
+ let dummySpaceFlexLine: FlexLine = FlexLine()
1650
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:766)
1651
+ dummySpaceFlexLine._crossSize = spaceAboveAndBottom
1652
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:767)
1653
+ var i: Double = 0
1654
+ let flexLineSize: Double = try jsUnwrap(self._flexLines, "length").length
1655
+ while i < flexLineSize {
1656
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:768)
1657
+ if i == 0 {
1658
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:769)
1659
+ _ = newFlexLines.push(dummySpaceFlexLine)
1660
+ }
1661
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:771)
1662
+ let flexLine: FlexLine? = try jsUnwrap(self._flexLines, "i").element(i)
1663
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:772)
1664
+ _ = try newFlexLines.push(jsObjectRequired(flexLine))
1665
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:773)
1666
+ if try i == jsUnwrap(self._flexLines, "length").length - 1 {
1667
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:774)
1668
+ _ = newFlexLines.push(dummySpaceFlexLine)
1669
+ }
1670
+ i += 1
1671
+ }
1672
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:777)
1673
+ self._flexLines = newFlexLines
1674
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:778)
1675
+ break
1676
+ }
1677
+ case _ where jsStringEquals(__switch4, NativeScriptKit.AlignContent.FLEX_END):
1678
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:780)
1679
+ do {
1680
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:781)
1681
+ let spaceTop: Double = try jsSubtractThrowing(size, totalCrossSize)
1682
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:782)
1683
+ let dummySpaceFlexLine: FlexLine = FlexLine()
1684
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:783)
1685
+ dummySpaceFlexLine._crossSize = spaceTop
1686
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:784)
1687
+ _ = try jsUnwrap(self._flexLines, "unshift").unshift(dummySpaceFlexLine)
1688
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:785)
1689
+ break
1690
+ }
1691
+ default:
1692
+ break
1693
+ }
1694
+ }
1695
+ }
1696
+ }
1697
+ #sourceLocation()
1698
+ open func _stretchViews(_ flexDirection: String, _ alignItems: String) throws {
1699
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:793)
1700
+ if jsStringEquals(alignItems, NativeScriptKit.AlignItems.STRETCH) {
1701
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:794)
1702
+ var viewIndex: Double = 0
1703
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:796)
1704
+ for flexLine in try jsIterated(self._flexLines, "this._flexLines is not iterable") {
1705
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:797)
1706
+ var i: Double = 0
1707
+ var __first6 = true
1708
+ while true {
1709
+ if !__first6 {
1710
+ i += 1
1711
+ viewIndex += 1
1712
+ }
1713
+ __first6 = false
1714
+ if !(try i < jsUnwrap(flexLine, "itemCount").itemCount) { break }
1715
+ do {
1716
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:798)
1717
+ let view: View? = try self._getReorderedChildAt(viewIndex)
1718
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:799)
1719
+ let alignSelf: String = try FlexboxLayout.getAlignSelf(view)
1720
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:800)
1721
+ if !jsStringEquals(alignSelf, "auto") && !jsStringEquals(alignSelf, "stretch") {
1722
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:801)
1723
+ continue
1724
+ }
1725
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:803)
1726
+ let __switch5: String = flexDirection
1727
+ switch __switch5 {
1728
+ case _
1729
+ where jsStringEquals(__switch5, NativeScriptKit.FlexDirection.ROW)
1730
+ || jsStringEquals(__switch5, NativeScriptKit.FlexDirection.ROW_REVERSE):
1731
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:806)
1732
+ try self._stretchViewVertically(view, jsUnwrap(flexLine, "_crossSize")._crossSize)
1733
+ case _
1734
+ where jsStringEquals(__switch5, NativeScriptKit.FlexDirection.COLUMN)
1735
+ || jsStringEquals(__switch5, NativeScriptKit.FlexDirection.COLUMN_REVERSE):
1736
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:810)
1737
+ try self._stretchViewHorizontally(view, jsUnwrap(flexLine, "_crossSize")._crossSize)
1738
+ default:
1739
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:813)
1740
+ throw JSException(
1741
+ value: JSError("Invalid flex direction: " + jsToStringDefault(flexDirection)))
1742
+ }
1743
+ }
1744
+ }
1745
+ }
1746
+ } else {
1747
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:818)
1748
+ for flexLine in try jsIterated(self._flexLines, "this._flexLines is not iterable") {
1749
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:819)
1750
+ for index in try jsIterated(
1751
+ jsUnwrap(flexLine, "_indicesAlignSelfStretch")._indicesAlignSelfStretch,
1752
+ "flexLine._indicesAlignSelfStretch is not iterable")
1753
+ {
1754
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:820)
1755
+ let view: View? = try self._getReorderedChildAt(index)
1756
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:821)
1757
+ let __switch6: String = flexDirection
1758
+ switch __switch6 {
1759
+ case _
1760
+ where jsStringEquals(__switch6, NativeScriptKit.FlexDirection.ROW)
1761
+ || jsStringEquals(__switch6, NativeScriptKit.FlexDirection.ROW_REVERSE):
1762
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:824)
1763
+ try self._stretchViewVertically(view, jsUnwrap(flexLine, "_crossSize")._crossSize)
1764
+ case _
1765
+ where jsStringEquals(__switch6, NativeScriptKit.FlexDirection.COLUMN)
1766
+ || jsStringEquals(__switch6, NativeScriptKit.FlexDirection.COLUMN_REVERSE):
1767
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:828)
1768
+ try self._stretchViewHorizontally(view, jsUnwrap(flexLine, "_crossSize")._crossSize)
1769
+ default:
1770
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:831)
1771
+ throw JSException(value: JSError("Invalid flex direction: " + jsToStringDefault(flexDirection)))
1772
+ }
1773
+ }
1774
+ }
1775
+ }
1776
+ }
1777
+ #sourceLocation()
1778
+ open func _stretchViewVertically(_ view: View?, _ crossSize: Double) throws {
1779
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:839)
1780
+ var newHeight: Double =
1781
+ try crossSize - jsUnwrap(view, "effectiveMarginTop").effectiveMarginTop
1782
+ - jsUnwrap(view, "effectiveMarginBottom").effectiveMarginBottom
1783
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:840)
1784
+ newHeight = jsMathMax(newHeight, 0)
1785
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:841)
1786
+ let originalMeasuredWidth: Double = try jsUnwrap(view, "getMeasuredWidth").getMeasuredWidth()
1787
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:842)
1788
+ var childWidthMeasureSpec: Double = try FlexboxLayout.getChildMeasureSpec(
1789
+ self._currentWidthMeasureSpec,
1790
+ self.effectivePaddingLeft + self.effectivePaddingRight
1791
+ + jsUnwrap(view, "effectiveMarginLeft").effectiveMarginLeft
1792
+ + jsUnwrap(view, "effectiveMarginRight").effectiveMarginRight,
1793
+ (jsUnwrap(view, "effectiveWidth").effectiveWidth < 0
1794
+ ? Core_ui_layouts_flexbox_layout_index.WRAP_CONTENT
1795
+ : jsMathMin(jsUnwrap(view, "effectiveWidth").effectiveWidth, originalMeasuredWidth)))
1796
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:844)
1797
+ try jsUnwrap(view, "measure").measure(
1798
+ childWidthMeasureSpec,
1799
+ Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1800
+ newHeight, Core_ui_layouts_flexbox_layout_index.EXACTLY))
1801
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:846)
1802
+ if try originalMeasuredWidth > jsUnwrap(view, "getMeasuredWidth").getMeasuredWidth() {
1803
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:847)
1804
+ childWidthMeasureSpec = try Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1805
+ originalMeasuredWidth, Core_ui_layouts_flexbox_layout_index.EXACTLY)
1806
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:848)
1807
+ try jsUnwrap(view, "measure").measure(
1808
+ childWidthMeasureSpec,
1809
+ Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1810
+ newHeight, Core_ui_layouts_flexbox_layout_index.EXACTLY))
1811
+ }
1812
+ }
1813
+ #sourceLocation()
1814
+ open func _stretchViewHorizontally(_ view: View?, _ crossSize: Double) throws {
1815
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:853)
1816
+ var newWidth: Double =
1817
+ try crossSize - jsUnwrap(view, "effectiveMarginLeft").effectiveMarginLeft
1818
+ - jsUnwrap(view, "effectiveMarginRight").effectiveMarginRight
1819
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:854)
1820
+ newWidth = jsMathMax(newWidth, 0)
1821
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:855)
1822
+ try jsUnwrap(view, "measure").measure(
1823
+ Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1824
+ newWidth, Core_ui_layouts_flexbox_layout_index.EXACTLY),
1825
+ Core_ui_layouts_flexbox_layout_index.makeMeasureSpec(
1826
+ jsUnwrap(view, "getMeasuredHeight").getMeasuredHeight(), Core_ui_layouts_flexbox_layout_index.EXACTLY))
1827
+ }
1828
+ #sourceLocation()
1829
+ open func _setMeasuredDimensionForFlex(
1830
+ _ flexDirection: String, _ widthMeasureSpec: Double, _ heightMeasureSpec: Double, _ childState: Double
1831
+ ) throws {
1832
+ var childState = childState
1833
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:859)
1834
+ let widthMode: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecMode(widthMeasureSpec)
1835
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:860)
1836
+ var widthSize: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecSize(widthMeasureSpec)
1837
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:861)
1838
+ let heightMode: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecMode(heightMeasureSpec)
1839
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:862)
1840
+ var heightSize: Double = try Core_ui_layouts_flexbox_layout_index.getMeasureSpecSize(heightMeasureSpec)
1841
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:863)
1842
+ var calculatedMaxHeight: Any? = nil
1843
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:864)
1844
+ var calculatedMaxWidth: Any? = nil
1845
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:865)
1846
+ let __switch7: String = flexDirection
1847
+ switch __switch7 {
1848
+ case _
1849
+ where jsStringEquals(__switch7, NativeScriptKit.FlexDirection.ROW)
1850
+ || jsStringEquals(__switch7, NativeScriptKit.FlexDirection.ROW_REVERSE):
1851
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:868)
1852
+ calculatedMaxHeight = try self._getSumOfCrossSize() + self.effectivePaddingTop + self.effectivePaddingBottom
1853
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:869)
1854
+ calculatedMaxWidth = try self._getLargestMainSize()
1855
+ case _
1856
+ where jsStringEquals(__switch7, NativeScriptKit.FlexDirection.COLUMN)
1857
+ || jsStringEquals(__switch7, NativeScriptKit.FlexDirection.COLUMN_REVERSE):
1858
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:873)
1859
+ calculatedMaxHeight = try self._getLargestMainSize()
1860
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:874)
1861
+ calculatedMaxWidth = try self._getSumOfCrossSize() + self.effectivePaddingLeft + self.effectivePaddingRight
1862
+ default:
1863
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:877)
1864
+ throw JSException(value: JSError("Invalid flex direction: " + jsToStringDefault(flexDirection)))
1865
+ }
1866
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:880)
1867
+ var widthSizeAndState: Any? = nil
1868
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:881)
1869
+ let __switch8: Double = widthMode
1870
+ switch __switch8 {
1871
+ case _ where __switch8 == (Core_ui_layouts_flexbox_layout_index.EXACTLY):
1872
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:883)
1873
+ if try jsLessThrowing(widthSize, calculatedMaxWidth) {
1874
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:884)
1875
+ childState = try View.combineMeasuredStates(
1876
+ childState, Core_ui_layouts_flexbox_layout_index.MEASURED_STATE_TOO_SMALL)
1877
+ }
1878
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:886)
1879
+ widthSizeAndState = View.resolveSizeAndState(widthSize, widthSize, widthMode, childState)
1880
+ case _ where __switch8 == (Core_ui_layouts_flexbox_layout_index.AT_MOST):
1881
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:889)
1882
+ if try jsLessThrowing(widthSize, calculatedMaxWidth) {
1883
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:890)
1884
+ childState = try View.combineMeasuredStates(
1885
+ childState, Core_ui_layouts_flexbox_layout_index.MEASURED_STATE_TOO_SMALL)
1886
+ } else {
1887
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:892)
1888
+ widthSize = jsLenientNumber(calculatedMaxWidth)
1889
+ }
1890
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:894)
1891
+ widthSizeAndState = View.resolveSizeAndState(widthSize, widthSize, widthMode, childState)
1892
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:895)
1893
+ break
1894
+ case _ where __switch8 == (Core_ui_layouts_flexbox_layout_index.UNSPECIFIED):
1895
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:898)
1896
+ widthSizeAndState = View.resolveSizeAndState(
1897
+ jsLenientNumber(calculatedMaxWidth), widthSize, widthMode, childState)
1898
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:899)
1899
+ break
1900
+ default:
1901
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:902)
1902
+ throw JSException(value: JSError("Unknown width mode is set: " + js(widthMode)))
1903
+ }
1904
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:904)
1905
+ var heightSizeAndState: Any? = nil
1906
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:905)
1907
+ let __switch9: Double = heightMode
1908
+ switch __switch9 {
1909
+ case _ where __switch9 == (Core_ui_layouts_flexbox_layout_index.EXACTLY):
1910
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:907)
1911
+ if try jsLessThrowing(heightSize, calculatedMaxHeight) {
1912
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:908)
1913
+ childState = try View.combineMeasuredStates(
1914
+ childState,
1915
+ jsShiftRight(
1916
+ Core_ui_layouts_flexbox_layout_index.MEASURED_STATE_TOO_SMALL,
1917
+ NativeScriptKit.layout.MEASURED_HEIGHT_STATE_SHIFT))
1918
+ }
1919
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:910)
1920
+ heightSizeAndState = View.resolveSizeAndState(heightSize, heightSize, heightMode, childState)
1921
+ case _ where __switch9 == (Core_ui_layouts_flexbox_layout_index.AT_MOST):
1922
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:913)
1923
+ if try jsLessThrowing(heightSize, calculatedMaxHeight) {
1924
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:914)
1925
+ childState = try View.combineMeasuredStates(
1926
+ childState,
1927
+ jsShiftRight(
1928
+ Core_ui_layouts_flexbox_layout_index.MEASURED_STATE_TOO_SMALL,
1929
+ NativeScriptKit.layout.MEASURED_HEIGHT_STATE_SHIFT))
1930
+ } else {
1931
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:916)
1932
+ heightSize = jsLenientNumber(calculatedMaxHeight)
1933
+ }
1934
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:919)
1935
+ heightSizeAndState = View.resolveSizeAndState(heightSize, heightSize, heightMode, childState)
1936
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:920)
1937
+ break
1938
+ case _ where __switch9 == (Core_ui_layouts_flexbox_layout_index.UNSPECIFIED):
1939
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:923)
1940
+ heightSizeAndState = View.resolveSizeAndState(
1941
+ jsLenientNumber(calculatedMaxHeight), heightSize, heightMode, childState)
1942
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:924)
1943
+ break
1944
+ default:
1945
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:927)
1946
+ throw JSException(value: JSError("Unknown height mode is set: " + js(heightMode)))
1947
+ }
1948
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:929)
1949
+ try self.setMeasuredDimension(jsLenientNumber(widthSizeAndState), jsLenientNumber(heightSizeAndState))
1950
+ }
1951
+ #sourceLocation()
1952
+ open func _isWrapRequired(
1953
+ _ child: View?, _ mode: Double, _ maxSize: Double, _ currentLength: Double, _ childLength: Double,
1954
+ _ childAbsoluteIndex: Double, _ childRelativeIndexInFlexLine: Double
1955
+ ) throws -> Bool {
1956
+ var childLength = childLength
1957
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:933)
1958
+ if jsStringEquals(self.flexWrap, NativeScriptKit.FlexWrap.NOWRAP) {
1959
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:934)
1960
+ return false
1961
+ }
1962
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:937)
1963
+ if try FlexboxLayout.getFlexWrapBefore(child) {
1964
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:938)
1965
+ return true
1966
+ }
1967
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:941)
1968
+ if jsLenientNumberEquals(mode, Core_ui_layouts_flexbox_layout_index.UNSPECIFIED) {
1969
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:942)
1970
+ return false
1971
+ }
1972
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:945)
1973
+ if self._isMainAxisDirectionHorizontal(self.flexDirection) {
1974
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:946)
1975
+ if try self.effectiveColumnGap > 0
1976
+ && self._hasPrecedingViews(childAbsoluteIndex, childRelativeIndexInFlexLine)
1977
+ {
1978
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:947)
1979
+ childLength += self.effectiveColumnGap
1980
+ }
1981
+ } else {
1982
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:950)
1983
+ if try self.effectiveRowGap > 0 && self._hasPrecedingViews(childAbsoluteIndex, childRelativeIndexInFlexLine)
1984
+ {
1985
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:951)
1986
+ childLength += self.effectiveRowGap
1987
+ }
1988
+ }
1989
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:955)
1990
+ return maxSize < currentLength + childLength
1991
+ }
1992
+ #sourceLocation()
1993
+ open func _getLargestMainSize() throws -> Double {
1994
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:959)
1995
+ return try jsUnwrap(self._flexLines, "reduce").reduce(
1996
+ { (max: Double, flexLine: FlexLine?) throws -> Double in
1997
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:959)
1998
+ return try jsMathMax(max, jsUnwrap(flexLine, "mainSize").mainSize)
1999
+ }, Double.leastNonzeroMagnitude)
2000
+ }
2001
+ #sourceLocation()
2002
+ open func _getSumOfCrossSize() throws -> Double {
2003
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:963)
2004
+ let isHorizontalDirection: Bool = self._isMainAxisDirectionHorizontal(self.flexDirection)
2005
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:964)
2006
+ var sum: Double = 0
2007
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:966)
2008
+ var i: Double = 0
2009
+ let length: Double = try jsUnwrap(self._flexLines, "length").length
2010
+ while i < length {
2011
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:967)
2012
+ let flexLine: FlexLine? = try jsUnwrap(self._flexLines, "i").element(i)
2013
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:968)
2014
+ let gap: Double = (isHorizontalDirection ? self.effectiveRowGap : self.effectiveColumnGap)
2015
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:971)
2016
+ if try gap > 0 && self._hasPrecedingFlexLines(i) {
2017
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:972)
2018
+ sum += gap
2019
+ }
2020
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:974)
2021
+ try sum += jsUnwrap(flexLine, "_crossSize")._crossSize
2022
+ i += 1
2023
+ }
2024
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:977)
2025
+ return sum
2026
+ }
2027
+ #sourceLocation()
2028
+ open func _isMainAxisDirectionHorizontal(_ flexDirection: String) -> Bool {
2029
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:981)
2030
+ return jsStringEquals(flexDirection, NativeScriptKit.FlexDirection.ROW)
2031
+ || jsStringEquals(flexDirection, NativeScriptKit.FlexDirection.ROW_REVERSE)
2032
+ }
2033
+ #sourceLocation()
2034
+ open override func onLayout(_ left: Double, _ top: Double, _ right: Double, _ bottom: Double) throws {
2035
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:985)
2036
+ let insets: Any? = try self.getSafeAreaInsets()
2037
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:986)
2038
+ var isRtl: Bool = jsStringEquals(self.direction, NativeScriptKit.CoreTypes.LayoutDirection.rtl)
2039
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:988)
2040
+ let __switch10: String = self.flexDirection
2041
+ switch __switch10 {
2042
+ case _ where jsStringEquals(__switch10, NativeScriptKit.FlexDirection.ROW):
2043
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:990)
2044
+ try self._layoutHorizontal(isRtl, left, top, right, bottom, insets)
2045
+ case _ where jsStringEquals(__switch10, NativeScriptKit.FlexDirection.ROW_REVERSE):
2046
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:993)
2047
+ try self._layoutHorizontal(!isRtl, left, top, right, bottom, insets)
2048
+ case _ where jsStringEquals(__switch10, NativeScriptKit.FlexDirection.COLUMN):
2049
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:996)
2050
+ if jsStringEquals(self.flexWrap, NativeScriptKit.FlexWrap.WRAP_REVERSE) {
2051
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:997)
2052
+ isRtl = !isRtl
2053
+ }
2054
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:999)
2055
+ try self._layoutVertical(isRtl, false, left, top, right, bottom, insets)
2056
+ case _ where jsStringEquals(__switch10, NativeScriptKit.FlexDirection.COLUMN_REVERSE):
2057
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1002)
2058
+ if jsStringEquals(self.flexWrap, NativeScriptKit.FlexWrap.WRAP_REVERSE) {
2059
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1003)
2060
+ isRtl = !isRtl
2061
+ }
2062
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1005)
2063
+ try self._layoutVertical(isRtl, true, left, top, right, bottom, insets)
2064
+ default:
2065
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1008)
2066
+ throw JSException(value: JSError("Invalid flex direction is set: " + jsToStringDefault(self.flexDirection)))
2067
+ }
2068
+ }
2069
+ #sourceLocation()
2070
+ open func _layoutHorizontal(
2071
+ _ isRtl: Bool, _ left: Double, _ top: Double, _ right: Double, _ bottom: Double, _ insets: Any?
2072
+ ) throws {
2073
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1014)
2074
+ let paddingLeft: Double = try self.effectivePaddingLeft + jsConvertedNumber(jsGet(insets, "left"))
2075
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1015)
2076
+ let paddingTop: Double = try self.effectivePaddingTop + jsConvertedNumber(jsGet(insets, "top"))
2077
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1016)
2078
+ let paddingRight: Double = try self.effectivePaddingRight + jsConvertedNumber(jsGet(insets, "right"))
2079
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1017)
2080
+ let paddingBottom: Double = try self.effectivePaddingBottom + jsConvertedNumber(jsGet(insets, "bottom"))
2081
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1019)
2082
+ var childLeft: Any? = nil
2083
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1020)
2084
+ var currentViewIndex: Double = 0
2085
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1022)
2086
+ let height: Double = bottom - top
2087
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1023)
2088
+ let width: Double = right - left
2089
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1026)
2090
+ var childBottom: Double = height - paddingBottom
2091
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1027)
2092
+ var childTop: Double = paddingTop
2093
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1028)
2094
+ var childRight: Any? = nil
2095
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1030)
2096
+ var i: Double = 0
2097
+ let length: Double = try jsUnwrap(self._flexLines, "length").length
2098
+ while i < length {
2099
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1031)
2100
+ let flexLine: FlexLine? = try jsUnwrap(self._flexLines, "i").element(i)
2101
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1033)
2102
+ if try self.effectiveRowGap > 0 && self._hasPrecedingFlexLines(i) {
2103
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1034)
2104
+ childBottom -= self.effectiveRowGap
2105
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1035)
2106
+ childTop += self.effectiveRowGap
2107
+ }
2108
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1038)
2109
+ var spaceBetweenItem: Double = 0
2110
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1039)
2111
+ let __switch11: String = self.justifyContent
2112
+ switch __switch11 {
2113
+ case _ where jsStringEquals(__switch11, NativeScriptKit.JustifyContent.FLEX_START):
2114
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1041)
2115
+ childLeft = paddingLeft
2116
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1042)
2117
+ childRight = width - paddingRight
2118
+ case _ where jsStringEquals(__switch11, NativeScriptKit.JustifyContent.FLEX_END):
2119
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1045)
2120
+ childLeft = try width - jsUnwrap(flexLine, "_mainSize")._mainSize + paddingRight
2121
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1046)
2122
+ childRight = try jsUnwrap(flexLine, "_mainSize")._mainSize - paddingLeft
2123
+ case _ where jsStringEquals(__switch11, NativeScriptKit.JustifyContent.CENTER):
2124
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1049)
2125
+ childLeft =
2126
+ try paddingLeft
2127
+ + (width - jsConvertedNumber(jsGet(insets, "left")) - jsConvertedNumber(jsGet(insets, "right"))
2128
+ - jsUnwrap(flexLine, "_mainSize")._mainSize) / 2
2129
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1050)
2130
+ childRight =
2131
+ try width - paddingRight
2132
+ - (width - jsConvertedNumber(jsGet(insets, "left")) - jsConvertedNumber(jsGet(insets, "right"))
2133
+ - jsUnwrap(flexLine, "_mainSize")._mainSize) / 2
2134
+ case _ where jsStringEquals(__switch11, NativeScriptKit.JustifyContent.SPACE_AROUND):
2135
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1052)
2136
+ do {
2137
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1053)
2138
+ let visibleCount: Double = try jsUnwrap(flexLine, "layoutVisibleItemCount").layoutVisibleItemCount
2139
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1054)
2140
+ if visibleCount != 0 {
2141
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1055)
2142
+ spaceBetweenItem =
2143
+ try
2144
+ (width - jsConvertedNumber(jsGet(insets, "left"))
2145
+ - jsConvertedNumber(jsGet(insets, "right")) - jsUnwrap(flexLine, "mainSize").mainSize)
2146
+ / visibleCount
2147
+ }
2148
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1057)
2149
+ childLeft = paddingLeft + spaceBetweenItem / 2
2150
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1058)
2151
+ childRight = width - paddingRight - spaceBetweenItem / 2
2152
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1059)
2153
+ break
2154
+ }
2155
+ case _ where jsStringEquals(__switch11, NativeScriptKit.JustifyContent.SPACE_BETWEEN):
2156
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1061)
2157
+ do {
2158
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1062)
2159
+ let visibleCount: Double = try jsUnwrap(flexLine, "layoutVisibleItemCount").layoutVisibleItemCount
2160
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1063)
2161
+ let denominator: Double = (visibleCount != 1 ? visibleCount - 1 : 1)
2162
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1065)
2163
+ childLeft = paddingLeft
2164
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1066)
2165
+ spaceBetweenItem =
2166
+ try
2167
+ (width - jsConvertedNumber(jsGet(insets, "left")) - jsConvertedNumber(jsGet(insets, "right"))
2168
+ - jsUnwrap(flexLine, "mainSize").mainSize) / denominator
2169
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1067)
2170
+ childRight = width - paddingRight
2171
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1068)
2172
+ break
2173
+ }
2174
+ default:
2175
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1071)
2176
+ throw JSException(
2177
+ value: JSError("Invalid justifyContent is set: " + jsToStringDefault(self.justifyContent)))
2178
+ }
2179
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1073)
2180
+ spaceBetweenItem = jsMathMax(spaceBetweenItem, 0)
2181
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1075)
2182
+ var j: Double = 0
2183
+ var __first7 = true
2184
+ while true {
2185
+ if !__first7 { j += 1 }
2186
+ __first7 = false
2187
+ if !(try j < jsUnwrap(flexLine, "itemCount").itemCount) { break }
2188
+ do {
2189
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1076)
2190
+ let child: View? = try self._getReorderedChildAt(currentViewIndex)
2191
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1077)
2192
+ if false {
2193
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1078)
2194
+ continue
2195
+ } else if try jsTruthy(jsUnwrap(child, "isCollapsed").isCollapsed) {
2196
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1080)
2197
+ currentViewIndex += 1
2198
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1081)
2199
+ continue
2200
+ }
2201
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1083)
2202
+ let lp: View? = child
2203
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1084)
2204
+ childLeft = try jsAddThrowing(childLeft, jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft)
2205
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1085)
2206
+ childRight = try jsSubtractThrowing(
2207
+ childRight, jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight)
2208
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1087)
2209
+ if try self.effectiveColumnGap > 0 && self._hasPrecedingViews(currentViewIndex, j) {
2210
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1088)
2211
+ childLeft = try jsAddThrowing(childLeft, self.effectiveColumnGap)
2212
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1089)
2213
+ childRight = try jsSubtractThrowing(childRight, self.effectiveColumnGap)
2214
+ }
2215
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1092)
2216
+ if jsStringEquals(self.flexWrap, NativeScriptKit.FlexWrap.WRAP_REVERSE) {
2217
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1093)
2218
+ if isRtl {
2219
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1094)
2220
+ try self._layoutSingleChildHorizontal(
2221
+ child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
2222
+ jsRound(jsLenientNumber(childRight))
2223
+ - jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
2224
+ childBottom - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
2225
+ jsRound(jsLenientNumber(childRight)), childBottom)
2226
+ } else {
2227
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1096)
2228
+ try self._layoutSingleChildHorizontal(
2229
+ child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
2230
+ jsRound(jsLenientNumber(childLeft)),
2231
+ childBottom - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
2232
+ jsRound(jsLenientNumber(childLeft))
2233
+ + jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(), childBottom)
2234
+ }
2235
+ } else {
2236
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1099)
2237
+ if isRtl {
2238
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1100)
2239
+ try self._layoutSingleChildHorizontal(
2240
+ child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
2241
+ jsRound(jsLenientNumber(childRight))
2242
+ - jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(), childTop,
2243
+ jsRound(jsLenientNumber(childRight)),
2244
+ childTop + jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
2245
+ } else {
2246
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1102)
2247
+ try self._layoutSingleChildHorizontal(
2248
+ child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
2249
+ jsRound(jsLenientNumber(childLeft)), childTop,
2250
+ jsRound(jsLenientNumber(childLeft))
2251
+ + jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
2252
+ childTop + jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
2253
+ }
2254
+ }
2255
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1105)
2256
+ childLeft = try jsAddThrowing(
2257
+ childLeft,
2258
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth() + spaceBetweenItem
2259
+ + jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight)
2260
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1106)
2261
+ childRight = try jsSubtractThrowing(
2262
+ childRight,
2263
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth() + spaceBetweenItem
2264
+ + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft)
2265
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1107)
2266
+ currentViewIndex += 1
2267
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1109)
2268
+ let bounds: Any? = try jsUnwrap(child, "_getCurrentLayoutBounds")._getCurrentLayoutBounds()
2269
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1110)
2270
+ try jsUnwrap(flexLine, setting: "_left")._left = jsMathMin(
2271
+ jsUnwrap(flexLine, "_left")._left,
2272
+ jsConvertedNumber(jsGet(bounds, "left"))
2273
+ - jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft)
2274
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1111)
2275
+ try jsUnwrap(flexLine, setting: "_top")._top = jsMathMin(
2276
+ jsUnwrap(flexLine, "_top")._top,
2277
+ jsConvertedNumber(jsGet(bounds, "top")) - jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop)
2278
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1112)
2279
+ try jsUnwrap(flexLine, setting: "_right")._right = jsMathMax(
2280
+ jsUnwrap(flexLine, "_right")._right,
2281
+ jsConvertedNumber(jsGet(bounds, "right"))
2282
+ + jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight)
2283
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1113)
2284
+ try jsUnwrap(flexLine, setting: "_bottom")._bottom = jsMathMax(
2285
+ jsUnwrap(flexLine, "_bottom")._bottom,
2286
+ jsConvertedNumber(jsGet(bounds, "bottom"))
2287
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
2288
+ }
2289
+ }
2290
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1116)
2291
+ try childTop += jsUnwrap(flexLine, "_crossSize")._crossSize
2292
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1117)
2293
+ try childBottom -= jsUnwrap(flexLine, "_crossSize")._crossSize
2294
+ i += 1
2295
+ }
2296
+ }
2297
+ #sourceLocation()
2298
+ open func _layoutSingleChildHorizontal(
2299
+ _ view: View?, _ flexLine: FlexLine?, _ flexWrap: String, _ alignItems: String, _ left: Double, _ top: Double,
2300
+ _ right: Double, _ bottom: Double
2301
+ ) throws {
2302
+ var alignItems = alignItems
2303
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1122)
2304
+ let lp: View? = view
2305
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1124)
2306
+ let alignSelf: String = try FlexboxLayout.getAlignSelf(view)
2307
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1125)
2308
+ if !jsStringEquals(alignSelf, "auto") {
2309
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1126)
2310
+ alignItems = alignSelf
2311
+ }
2312
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1129)
2313
+ let crossSize: Double = try jsUnwrap(flexLine, "_crossSize")._crossSize
2314
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1130)
2315
+ let __switch12: String = alignItems
2316
+ switch __switch12 {
2317
+ case _
2318
+ where jsStringEquals(__switch12, NativeScriptKit.AlignItems.FLEX_START)
2319
+ || jsStringEquals(__switch12, NativeScriptKit.AlignItems.STRETCH):
2320
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1133)
2321
+ if !jsStringEquals(flexWrap, NativeScriptKit.FlexWrap.WRAP_REVERSE) {
2322
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1134)
2323
+ try jsUnwrap(view, "layout").layout(
2324
+ left, top + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop, right,
2325
+ bottom + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop)
2326
+ } else {
2327
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1136)
2328
+ try jsUnwrap(view, "layout").layout(
2329
+ left, top - jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom, right,
2330
+ bottom - jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
2331
+ }
2332
+ case _ where jsStringEquals(__switch12, NativeScriptKit.AlignItems.BASELINE):
2333
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1140)
2334
+ if !jsStringEquals(flexWrap, NativeScriptKit.FlexWrap.WRAP_REVERSE) {
2335
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1141)
2336
+ var marginTop: Double =
2337
+ try jsUnwrap(flexLine, "_maxBaseline")._maxBaseline
2338
+ - NativeScriptKit.FlexboxLayout.getBaseline(view)
2339
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1142)
2340
+ marginTop = try jsMathMax(marginTop, jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop)
2341
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1143)
2342
+ try jsUnwrap(view, "layout").layout(left, top + marginTop, right, bottom + marginTop)
2343
+ } else {
2344
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1145)
2345
+ var marginBottom: Double =
2346
+ try jsUnwrap(flexLine, "_maxBaseline")._maxBaseline
2347
+ - jsUnwrap(view, "getMeasuredHeight").getMeasuredHeight()
2348
+ + NativeScriptKit.FlexboxLayout.getBaseline(view)
2349
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1146)
2350
+ marginBottom = try jsMathMax(marginBottom, jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
2351
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1147)
2352
+ try jsUnwrap(view, "layout").layout(left, top - marginBottom, right, bottom - marginBottom)
2353
+ }
2354
+ case _ where jsStringEquals(__switch12, NativeScriptKit.AlignItems.FLEX_END):
2355
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1151)
2356
+ if !jsStringEquals(flexWrap, NativeScriptKit.FlexWrap.WRAP_REVERSE) {
2357
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1152)
2358
+ try jsUnwrap(view, "layout").layout(
2359
+ left,
2360
+ top + crossSize - jsUnwrap(view, "getMeasuredHeight").getMeasuredHeight()
2361
+ - jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom, right,
2362
+ top + crossSize - jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
2363
+ } else {
2364
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1154)
2365
+ try jsUnwrap(view, "layout").layout(
2366
+ left,
2367
+ top - crossSize + jsUnwrap(view, "getMeasuredHeight").getMeasuredHeight()
2368
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop, right,
2369
+ bottom - crossSize + jsUnwrap(view, "getMeasuredHeight").getMeasuredHeight()
2370
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop)
2371
+ }
2372
+ case _ where jsStringEquals(__switch12, NativeScriptKit.AlignItems.CENTER):
2373
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1158)
2374
+ let topFromCrossAxis: Double = try (crossSize - jsUnwrap(view, "getMeasuredHeight").getMeasuredHeight()) / 2
2375
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1159)
2376
+ if !jsStringEquals(flexWrap, NativeScriptKit.FlexWrap.WRAP_REVERSE) {
2377
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1160)
2378
+ try jsUnwrap(view, "layout").layout(
2379
+ left,
2380
+ top + topFromCrossAxis + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
2381
+ - jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom, right,
2382
+ top + topFromCrossAxis + jsUnwrap(view, "getMeasuredHeight").getMeasuredHeight()
2383
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
2384
+ - jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
2385
+ } else {
2386
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1162)
2387
+ try jsUnwrap(view, "layout").layout(
2388
+ left,
2389
+ top - topFromCrossAxis + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
2390
+ - jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom, right,
2391
+ top - topFromCrossAxis + jsUnwrap(view, "getMeasuredHeight").getMeasuredHeight()
2392
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop
2393
+ - jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
2394
+ }
2395
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1164)
2396
+ break
2397
+ default:
2398
+ break
2399
+ }
2400
+ }
2401
+ #sourceLocation()
2402
+ open func _layoutVertical(
2403
+ _ isRtl: Bool, _ fromBottomToTop: Bool, _ left: Double, _ top: Double, _ right: Double, _ bottom: Double,
2404
+ _ insets: Any?
2405
+ ) throws {
2406
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1170)
2407
+ let paddingLeft: Double = try self.effectivePaddingLeft + jsConvertedNumber(jsGet(insets, "left"))
2408
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1171)
2409
+ let paddingTop: Double = try self.effectivePaddingTop + jsConvertedNumber(jsGet(insets, "top"))
2410
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1172)
2411
+ let paddingRight: Double = try self.effectivePaddingRight + jsConvertedNumber(jsGet(insets, "right"))
2412
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1173)
2413
+ let paddingBottom: Double = try self.effectivePaddingBottom + jsConvertedNumber(jsGet(insets, "bottom"))
2414
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1175)
2415
+ var childLeft: Double = paddingLeft
2416
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1176)
2417
+ var currentViewIndex: Double = 0
2418
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1178)
2419
+ let width: Double = right - left
2420
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1179)
2421
+ let height: Double = bottom - top
2422
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1180)
2423
+ var childRight: Double = width - paddingRight
2424
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1182)
2425
+ var childTop: Any? = nil
2426
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1183)
2427
+ var childBottom: Any? = nil
2428
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1185)
2429
+ var i: Double = 0
2430
+ let length: Double = try jsUnwrap(self._flexLines, "length").length
2431
+ while i < length {
2432
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1186)
2433
+ let flexLine: FlexLine? = try jsUnwrap(self._flexLines, "i").element(i)
2434
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1188)
2435
+ if try self.effectiveColumnGap > 0 && self._hasPrecedingFlexLines(i) {
2436
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1189)
2437
+ childLeft += self.effectiveColumnGap
2438
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1190)
2439
+ childRight -= self.effectiveColumnGap
2440
+ }
2441
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1193)
2442
+ var spaceBetweenItem: Double = 0
2443
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1195)
2444
+ let __switch13: String = self.justifyContent
2445
+ switch __switch13 {
2446
+ case _ where jsStringEquals(__switch13, NativeScriptKit.JustifyContent.FLEX_START):
2447
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1197)
2448
+ childTop = paddingTop
2449
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1198)
2450
+ childBottom = height - paddingBottom
2451
+ case _ where jsStringEquals(__switch13, NativeScriptKit.JustifyContent.FLEX_END):
2452
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1201)
2453
+ childTop = try height - jsUnwrap(flexLine, "_mainSize")._mainSize + paddingBottom
2454
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1202)
2455
+ childBottom = try jsUnwrap(flexLine, "_mainSize")._mainSize - paddingTop
2456
+ case _ where jsStringEquals(__switch13, NativeScriptKit.JustifyContent.CENTER):
2457
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1205)
2458
+ childTop =
2459
+ try paddingTop
2460
+ + (height - jsConvertedNumber(jsGet(insets, "top")) - jsConvertedNumber(jsGet(insets, "bottom"))
2461
+ - jsUnwrap(flexLine, "_mainSize")._mainSize) / 2
2462
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1206)
2463
+ childBottom =
2464
+ try height - paddingBottom
2465
+ - (height - jsConvertedNumber(jsGet(insets, "top")) - jsConvertedNumber(jsGet(insets, "bottom"))
2466
+ - jsUnwrap(flexLine, "_mainSize")._mainSize) / 2
2467
+ case _ where jsStringEquals(__switch13, NativeScriptKit.JustifyContent.SPACE_AROUND):
2468
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1208)
2469
+ do {
2470
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1209)
2471
+ let visibleCount: Double = try jsUnwrap(flexLine, "layoutVisibleItemCount").layoutVisibleItemCount
2472
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1210)
2473
+ if visibleCount != 0 {
2474
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1211)
2475
+ spaceBetweenItem =
2476
+ try
2477
+ (height - jsConvertedNumber(jsGet(insets, "top"))
2478
+ - jsConvertedNumber(jsGet(insets, "bottom")) - jsUnwrap(flexLine, "_mainSize")._mainSize)
2479
+ / visibleCount
2480
+ }
2481
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1213)
2482
+ childTop = paddingTop + spaceBetweenItem / 2
2483
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1214)
2484
+ childBottom = height - paddingBottom - spaceBetweenItem / 2
2485
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1215)
2486
+ break
2487
+ }
2488
+ case _ where jsStringEquals(__switch13, NativeScriptKit.JustifyContent.SPACE_BETWEEN):
2489
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1217)
2490
+ do {
2491
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1218)
2492
+ let visibleCount: Double = try jsUnwrap(flexLine, "layoutVisibleItemCount").layoutVisibleItemCount
2493
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1219)
2494
+ let denominator: Double = (visibleCount != 1 ? visibleCount - 1 : 1)
2495
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1221)
2496
+ childTop = paddingTop
2497
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1222)
2498
+ spaceBetweenItem =
2499
+ try
2500
+ (height - jsConvertedNumber(jsGet(insets, "top")) - jsConvertedNumber(jsGet(insets, "bottom"))
2501
+ - jsUnwrap(flexLine, "mainSize").mainSize) / denominator
2502
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1223)
2503
+ childBottom = height - paddingBottom
2504
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1224)
2505
+ break
2506
+ }
2507
+ default:
2508
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1227)
2509
+ throw JSException(
2510
+ value: JSError("Invalid justifyContent is set: " + jsToStringDefault(self.justifyContent)))
2511
+ }
2512
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1229)
2513
+ spaceBetweenItem = jsMathMax(spaceBetweenItem, 0)
2514
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1231)
2515
+ var j: Double = 0
2516
+ var __first8 = true
2517
+ while true {
2518
+ if !__first8 { j += 1 }
2519
+ __first8 = false
2520
+ if !(try j < jsUnwrap(flexLine, "itemCount").itemCount) { break }
2521
+ do {
2522
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1232)
2523
+ let child: View? = try self._getReorderedChildAt(currentViewIndex)
2524
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1233)
2525
+ if false {
2526
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1234)
2527
+ continue
2528
+ } else if try jsTruthy(jsUnwrap(child, "isCollapsed").isCollapsed) {
2529
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1236)
2530
+ currentViewIndex += 1
2531
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1237)
2532
+ continue
2533
+ }
2534
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1239)
2535
+ let lp: View? = child
2536
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1240)
2537
+ childTop = try jsAddThrowing(childTop, jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop)
2538
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1241)
2539
+ childBottom = try jsSubtractThrowing(
2540
+ childBottom, jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
2541
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1243)
2542
+ if try self.effectiveRowGap > 0 && self._hasPrecedingViews(currentViewIndex, j) {
2543
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1244)
2544
+ childTop = try jsAddThrowing(childTop, self.effectiveRowGap)
2545
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1245)
2546
+ childBottom = try jsSubtractThrowing(childBottom, self.effectiveRowGap)
2547
+ }
2548
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1248)
2549
+ if isRtl {
2550
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1249)
2551
+ if fromBottomToTop {
2552
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1250)
2553
+ try self._layoutSingleChildVertical(
2554
+ child, jsImplicit(flexLine), true, self.alignItems,
2555
+ childRight - jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
2556
+ jsRound(jsLenientNumber(childBottom))
2557
+ - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(), childRight,
2558
+ jsRound(jsLenientNumber(childBottom)))
2559
+ } else {
2560
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1252)
2561
+ try self._layoutSingleChildVertical(
2562
+ child, jsImplicit(flexLine), true, self.alignItems,
2563
+ childRight - jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
2564
+ jsRound(jsLenientNumber(childTop)), childRight,
2565
+ jsRound(jsLenientNumber(childTop))
2566
+ + jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
2567
+ }
2568
+ } else {
2569
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1255)
2570
+ if fromBottomToTop {
2571
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1256)
2572
+ try self._layoutSingleChildVertical(
2573
+ child, jsImplicit(flexLine), false, self.alignItems, childLeft,
2574
+ jsRound(jsLenientNumber(childBottom))
2575
+ - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
2576
+ childLeft + jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
2577
+ jsRound(jsLenientNumber(childBottom)))
2578
+ } else {
2579
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1258)
2580
+ try self._layoutSingleChildVertical(
2581
+ child, jsImplicit(flexLine), false, self.alignItems, childLeft,
2582
+ jsRound(jsLenientNumber(childTop)),
2583
+ childLeft + jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
2584
+ jsRound(jsLenientNumber(childTop))
2585
+ + jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
2586
+ }
2587
+ }
2588
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1261)
2589
+ childTop = try jsAddThrowing(
2590
+ childTop,
2591
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight() + spaceBetweenItem
2592
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
2593
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1262)
2594
+ childBottom = try jsSubtractThrowing(
2595
+ childBottom,
2596
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight() + spaceBetweenItem
2597
+ + jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop)
2598
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1263)
2599
+ currentViewIndex += 1
2600
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1265)
2601
+ let bounds: Any? = try jsUnwrap(child, "_getCurrentLayoutBounds")._getCurrentLayoutBounds()
2602
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1266)
2603
+ try jsUnwrap(flexLine, setting: "_left")._left = jsMathMin(
2604
+ jsUnwrap(flexLine, "_left")._left,
2605
+ jsConvertedNumber(jsGet(bounds, "left"))
2606
+ - jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft)
2607
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1267)
2608
+ try jsUnwrap(flexLine, setting: "_top")._top = jsMathMin(
2609
+ jsUnwrap(flexLine, "_top")._top,
2610
+ jsConvertedNumber(jsGet(bounds, "top")) - jsUnwrap(lp, "effectiveMarginTop").effectiveMarginTop)
2611
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1268)
2612
+ try jsUnwrap(flexLine, setting: "_right")._right = jsMathMax(
2613
+ jsUnwrap(flexLine, "_right")._right,
2614
+ jsConvertedNumber(jsGet(bounds, "right"))
2615
+ + jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight)
2616
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1269)
2617
+ try jsUnwrap(flexLine, setting: "_bottom")._bottom = jsMathMax(
2618
+ jsUnwrap(flexLine, "_bottom")._bottom,
2619
+ jsConvertedNumber(jsGet(bounds, "bottom"))
2620
+ + jsUnwrap(lp, "effectiveMarginBottom").effectiveMarginBottom)
2621
+ }
2622
+ }
2623
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1272)
2624
+ try childLeft += jsUnwrap(flexLine, "crossSize").crossSize
2625
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1273)
2626
+ try childRight -= jsUnwrap(flexLine, "crossSize").crossSize
2627
+ i += 1
2628
+ }
2629
+ }
2630
+ #sourceLocation()
2631
+ open func _layoutSingleChildVertical(
2632
+ _ view: View?, _ flexLine: FlexLine?, _ isRtl: Bool, _ alignItems: String, _ left: Double, _ top: Double,
2633
+ _ right: Double, _ bottom: Double
2634
+ ) throws {
2635
+ var alignItems = alignItems
2636
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1278)
2637
+ let lp: View? = view
2638
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1279)
2639
+ let alignSelf: String = try FlexboxLayout.getAlignSelf(view)
2640
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1280)
2641
+ if !jsStringEquals(alignSelf, "auto") {
2642
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1281)
2643
+ alignItems = alignSelf
2644
+ }
2645
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1283)
2646
+ let crossSize: Double = try jsUnwrap(flexLine, "crossSize").crossSize
2647
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1284)
2648
+ let __switch14: String = alignItems
2649
+ switch __switch14 {
2650
+ case _
2651
+ where jsStringEquals(__switch14, NativeScriptKit.AlignItems.FLEX_START)
2652
+ || jsStringEquals(__switch14, NativeScriptKit.AlignItems.STRETCH)
2653
+ || jsStringEquals(__switch14, NativeScriptKit.AlignItems.BASELINE):
2654
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1288)
2655
+ if !isRtl {
2656
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1289)
2657
+ try jsUnwrap(view, "layout").layout(
2658
+ left + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft, top,
2659
+ right + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft, bottom)
2660
+ } else {
2661
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1291)
2662
+ try jsUnwrap(view, "layout").layout(
2663
+ left - jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight, top,
2664
+ right - jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight, bottom)
2665
+ }
2666
+ case _ where jsStringEquals(__switch14, NativeScriptKit.AlignItems.FLEX_END):
2667
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1295)
2668
+ if !isRtl {
2669
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1296)
2670
+ try jsUnwrap(view, "layout").layout(
2671
+ left + crossSize - jsUnwrap(view, "getMeasuredWidth").getMeasuredWidth()
2672
+ - jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight, top,
2673
+ right + crossSize - jsUnwrap(view, "getMeasuredWidth").getMeasuredWidth()
2674
+ - jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight, bottom)
2675
+ } else {
2676
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1300)
2677
+ try jsUnwrap(view, "layout").layout(
2678
+ left - crossSize + jsUnwrap(view, "getMeasuredWidth").getMeasuredWidth()
2679
+ + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft, top,
2680
+ right - crossSize + jsUnwrap(view, "getMeasuredWidth").getMeasuredWidth()
2681
+ + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft, bottom)
2682
+ }
2683
+ case _ where jsStringEquals(__switch14, NativeScriptKit.AlignItems.CENTER):
2684
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1304)
2685
+ let leftFromCrossAxis: Double = try (crossSize - jsUnwrap(view, "getMeasuredWidth").getMeasuredWidth()) / 2
2686
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1305)
2687
+ if !isRtl {
2688
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1306)
2689
+ try jsUnwrap(view, "layout").layout(
2690
+ left + leftFromCrossAxis + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft
2691
+ - jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight, top,
2692
+ right + leftFromCrossAxis + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft
2693
+ - jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight, bottom)
2694
+ } else {
2695
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1308)
2696
+ try jsUnwrap(view, "layout").layout(
2697
+ left - leftFromCrossAxis + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft
2698
+ - jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight, top,
2699
+ right - leftFromCrossAxis + jsUnwrap(lp, "effectiveMarginLeft").effectiveMarginLeft
2700
+ - jsUnwrap(lp, "effectiveMarginRight").effectiveMarginRight, bottom)
2701
+ }
2702
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1310)
2703
+ break
2704
+ default:
2705
+ break
2706
+ }
2707
+ }
2708
+ #sourceLocation()
2709
+ open func _hasPrecedingViews(_ childAbsoluteIndex: Double, _ childRelativeIndexInFlexLine: Double) throws -> Bool {
2710
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1316)
2711
+ var i: Double = 1
2712
+ while i <= childRelativeIndexInFlexLine {
2713
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1317)
2714
+ let view: View? = try self._getReorderedChildAt(childAbsoluteIndex - i)
2715
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1318)
2716
+ if try view != nil && !(jsTruthy(jsUnwrap(view, "isCollapsed").isCollapsed)) {
2717
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1319)
2718
+ return true
2719
+ }
2720
+ i += 1
2721
+ }
2722
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1322)
2723
+ return false
2724
+ }
2725
+ #sourceLocation()
2726
+ open func _hasPrecedingFlexLines(_ flexLineIndex: Double) throws -> Bool {
2727
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1326)
2728
+ if try flexLineIndex < 0 || flexLineIndex >= jsUnwrap(self._flexLines, "length").length {
2729
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1327)
2730
+ return false
2731
+ }
2732
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1330)
2733
+ var i: Double = 0
2734
+ while i < flexLineIndex {
2735
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1331)
2736
+ if try jsUnwrap(jsUnwrap(self._flexLines, "i").element(i), "layoutVisibleItemCount").layoutVisibleItemCount
2737
+ > 0
2738
+ {
2739
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1332)
2740
+ return true
2741
+ }
2742
+ i += 1
2743
+ }
2744
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1336)
2745
+ return false
2746
+ }
2747
+ #sourceLocation()
2748
+ open class func getChildMeasureSpec(_ spec: Double, _ padding: Double, _ childDimension: Double) -> Double {
2749
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1343)
2750
+ let specMode: Double = NativeScriptKit.layout.getMeasureSpecMode(spec)
2751
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1344)
2752
+ let specSize: Double = NativeScriptKit.layout.getMeasureSpecSize(spec)
2753
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1346)
2754
+ let size: Double = jsMathMax(0, specSize - padding)
2755
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1348)
2756
+ var resultSize: Double = 0
2757
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1349)
2758
+ var resultMode: Double = 0
2759
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1351)
2760
+ let __switch15: Double = specMode
2761
+ switch __switch15 {
2762
+ case _ where __switch15 == (Core_ui_layouts_flexbox_layout_index.EXACTLY):
2763
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1354)
2764
+ if childDimension >= 0 {
2765
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1355)
2766
+ resultSize = childDimension
2767
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1356)
2768
+ resultMode = Core_ui_layouts_flexbox_layout_index.EXACTLY
2769
+ } else if jsLenientNumberEquals(childDimension, Core_ui_layouts_flexbox_layout_index.MATCH_PARENT) {
2770
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1358)
2771
+ resultSize = size
2772
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1359)
2773
+ resultMode = Core_ui_layouts_flexbox_layout_index.EXACTLY
2774
+ } else if jsLenientNumberEquals(childDimension, Core_ui_layouts_flexbox_layout_index.WRAP_CONTENT) {
2775
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1361)
2776
+ resultSize = size
2777
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1362)
2778
+ resultMode = Core_ui_layouts_flexbox_layout_index.AT_MOST
2779
+ }
2780
+ case _ where __switch15 == (Core_ui_layouts_flexbox_layout_index.AT_MOST):
2781
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1367)
2782
+ if childDimension >= 0 {
2783
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1368)
2784
+ resultSize = childDimension
2785
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1369)
2786
+ resultMode = Core_ui_layouts_flexbox_layout_index.EXACTLY
2787
+ } else if jsLenientNumberEquals(childDimension, Core_ui_layouts_flexbox_layout_index.MATCH_PARENT) {
2788
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1371)
2789
+ resultSize = size
2790
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1372)
2791
+ resultMode = Core_ui_layouts_flexbox_layout_index.AT_MOST
2792
+ } else if jsLenientNumberEquals(childDimension, Core_ui_layouts_flexbox_layout_index.WRAP_CONTENT) {
2793
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1374)
2794
+ resultSize = size
2795
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1375)
2796
+ resultMode = Core_ui_layouts_flexbox_layout_index.AT_MOST
2797
+ }
2798
+ case _ where __switch15 == (Core_ui_layouts_flexbox_layout_index.UNSPECIFIED):
2799
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1380)
2800
+ if childDimension >= 0 {
2801
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1381)
2802
+ resultSize = childDimension
2803
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1382)
2804
+ resultMode = Core_ui_layouts_flexbox_layout_index.EXACTLY
2805
+ } else if jsLenientNumberEquals(childDimension, Core_ui_layouts_flexbox_layout_index.MATCH_PARENT) {
2806
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1384)
2807
+ resultSize = (Core_ui_layouts_flexbox_layout_index.View_sUseZeroUnspecifiedMeasureSpec ? 0 : size)
2808
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1385)
2809
+ resultMode = Core_ui_layouts_flexbox_layout_index.UNSPECIFIED
2810
+ } else if jsLenientNumberEquals(childDimension, Core_ui_layouts_flexbox_layout_index.WRAP_CONTENT) {
2811
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1387)
2812
+ resultSize = (Core_ui_layouts_flexbox_layout_index.View_sUseZeroUnspecifiedMeasureSpec ? 0 : size)
2813
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1388)
2814
+ resultMode = Core_ui_layouts_flexbox_layout_index.UNSPECIFIED
2815
+ }
2816
+ default:
2817
+ break
2818
+ }
2819
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1393)
2820
+ return NativeScriptKit.layout.makeMeasureSpec(resultSize, resultMode)
2821
+ }
2822
+ #sourceLocation()
2823
+ open override class func jsConstruct(_ __a: [Any?]) throws -> Any? { try FlexboxLayout() }
2824
+ open override var jsDeclaredKeys: [String] {
2825
+ super.jsDeclaredKeys + ["_flexLines"] + (jsMadeBits1 & (1 << 60) != 0 ? ["_reorderedIndices"] : [])
2826
+ + (jsMadeBits1 & (1 << 61) != 0 ? ["_orderCache"] : [])
2827
+ + (jsMadeBits1 & (1 << 62) != 0 ? ["_childrenFrozen"] : [])
2828
+ + (jsMadeBits1 & (1 << 63) != 0 ? ["measureContext"] : [])
2829
+ }
2830
+ open override var jsClassName: String? { "FlexboxLayout" }
2831
+ open override subscript(jsKey key: String) -> Any? {
2832
+ get {
2833
+ switch key.utf8.count {
2834
+ case 8:
2835
+ switch key {
2836
+ case "onLayout":
2837
+ return FunctionCell_Double_Double_Double_Double_to_Void.script("onLayout", 4, self.onLayout)
2838
+ default: break
2839
+ }
2840
+ case 9:
2841
+ switch key {
2842
+ case "onMeasure": return FunctionCell_Double_Double_to_Void.script("onMeasure", 2, self.onMeasure)
2843
+ default: break
2844
+ }
2845
+ case 10:
2846
+ switch key {
2847
+ case "_flexLines": return self._flexLines
2848
+ default: break
2849
+ }
2850
+ case 11:
2851
+ switch key {
2852
+ case "_orderCache":
2853
+ if !(jsMadeBits1 & (1 << 61) != 0) { return nil }
2854
+ return self._orderCache
2855
+ default: break
2856
+ }
2857
+ case 12:
2858
+ switch key {
2859
+ case "_addFlexLine":
2860
+ return FunctionCell_FlexLineOpt_to_Void.script("_addFlexLine", 1, self._addFlexLine)
2861
+ default: break
2862
+ }
2863
+ case 13:
2864
+ switch key {
2865
+ case "_createOrders":
2866
+ return FunctionCell_Double_to_JSArray_Order_Opt.script("_createOrders", 1, self._createOrders)
2867
+ case "_stretchViews":
2868
+ return FunctionCell_String_String_to_Void.script("_stretchViews", 2, self._stretchViews)
2869
+ default: break
2870
+ }
2871
+ case 14:
2872
+ switch key {
2873
+ case "measureContext":
2874
+ if !(jsMadeBits1 & (1 << 63) != 0) { return nil }
2875
+ return self.measureContext
2876
+ default: break
2877
+ }
2878
+ case 15:
2879
+ switch key {
2880
+ case "_childrenFrozen":
2881
+ if !(jsMadeBits1 & (1 << 62) != 0) { return nil }
2882
+ return self._childrenFrozen
2883
+ case "_isWrapRequired":
2884
+ return FunctionCell_ViewOpt_Double_Double_Double_Double_Double_Double_to_Bool.script(
2885
+ "_isWrapRequired", 7, self._isWrapRequired)
2886
+ case "_layoutVertical":
2887
+ return FunctionCell_Bool_Bool_Double_Double_Double_Double_AnyOpt_to_Void.script(
2888
+ "_layoutVertical", 7, self._layoutVertical)
2889
+ default: break
2890
+ }
2891
+ case 16:
2892
+ switch key {
2893
+ case "_measureVertical":
2894
+ return FunctionCell_AnyOpt_AnyOpt_to_Void.script("_measureVertical", 2, self._measureVertical)
2895
+ case "_expandFlexItems":
2896
+ return FunctionCell_FlexLineOpt_String_Double_Double_Double_to_Double.script(
2897
+ "_expandFlexItems", 5, self._expandFlexItems)
2898
+ case "_shrinkFlexItems":
2899
+ return FunctionCell_FlexLineOpt_String_Double_Double_Double_to_Double.script(
2900
+ "_shrinkFlexItems", 5, self._shrinkFlexItems)
2901
+ default: break
2902
+ }
2903
+ case 17:
2904
+ switch key {
2905
+ case "_reorderedIndices":
2906
+ if !(jsMadeBits1 & (1 << 60) != 0) { return nil }
2907
+ return self._reorderedIndices
2908
+ case "_layoutHorizontal":
2909
+ return FunctionCell_Bool_Double_Double_Double_Double_AnyOpt_to_Void.script(
2910
+ "_layoutHorizontal", 6, self._layoutHorizontal)
2911
+ default: break
2912
+ }
2913
+ case 18:
2914
+ switch key {
2915
+ case "_measureHorizontal":
2916
+ return FunctionCell_Double_Double_to_Void.script("_measureHorizontal", 2, self._measureHorizontal)
2917
+ case "_determineMainSize":
2918
+ return FunctionCell_String_Double_Double_to_Void.script(
2919
+ "_determineMainSize", 3, self._determineMainSize)
2920
+ case "_getSumOfCrossSize":
2921
+ return FunctionCell_none_to_Double.script("_getSumOfCrossSize", 0, self._getSumOfCrossSize)
2922
+ case "_hasPrecedingViews":
2923
+ return FunctionCell_Double_Double_to_Bool.script("_hasPrecedingViews", 2, self._hasPrecedingViews)
2924
+ default: break
2925
+ }
2926
+ case 19:
2927
+ switch key {
2928
+ case "_determineCrossSize":
2929
+ return FunctionCell_String_Double_Double_Double_to_Void.script(
2930
+ "_determineCrossSize", 4, self._determineCrossSize)
2931
+ case "_getLargestMainSize":
2932
+ return FunctionCell_none_to_Double.script("_getLargestMainSize", 0, self._getLargestMainSize)
2933
+ default: break
2934
+ }
2935
+ case 20:
2936
+ switch key {
2937
+ case "_getReorderedChildAt":
2938
+ return FunctionCell_Double_to_ViewOpt.script("_getReorderedChildAt", 1, self._getReorderedChildAt)
2939
+ default: break
2940
+ }
2941
+ case 21:
2942
+ switch key {
2943
+ case "_checkSizeConstraints":
2944
+ return FunctionCell_ViewOpt_to_Void.script("_checkSizeConstraints", 1, self._checkSizeConstraints)
2945
+ default: break
2946
+ }
2947
+ case 22:
2948
+ switch key {
2949
+ case "_stretchViewVertically":
2950
+ return FunctionCell_ViewOpt_Double_to_Void.script(
2951
+ "_stretchViewVertically", 2, self._stretchViewVertically)
2952
+ case "_hasPrecedingFlexLines":
2953
+ return FunctionCell_Double_to_Bool.script("_hasPrecedingFlexLines", 1, self._hasPrecedingFlexLines)
2954
+ default: break
2955
+ }
2956
+ case 23:
2957
+ switch key {
2958
+ case "_createReorderedIndices":
2959
+ return FunctionCell_none_to_JSArray_Double_Opt.script(
2960
+ "_createReorderedIndices", 0, self._createReorderedIndices)
2961
+ default: break
2962
+ }
2963
+ case 24:
2964
+ switch key {
2965
+ case "_stretchViewHorizontally":
2966
+ return FunctionCell_ViewOpt_Double_to_Void.script(
2967
+ "_stretchViewHorizontally", 2, self._stretchViewHorizontally)
2968
+ default: break
2969
+ }
2970
+ case 26:
2971
+ switch key {
2972
+ case "_addFlexLineIfLastFlexItem":
2973
+ return FunctionCell_Double_Double_FlexLineOpt_to_Void.script(
2974
+ "_addFlexLineIfLastFlexItem", 3, self._addFlexLineIfLastFlexItem)
2975
+ case "_layoutSingleChildVertical":
2976
+ return FunctionCell_ViewOpt_FlexLineOpt_Bool_String_Double_Double_Double_Double_to_Void.script(
2977
+ "_layoutSingleChildVertical", 8, self._layoutSingleChildVertical)
2978
+ default: break
2979
+ }
2980
+ case 28:
2981
+ switch key {
2982
+ case "_setMeasuredDimensionForFlex":
2983
+ return FunctionCell_String_Double_Double_Double_to_Void.script(
2984
+ "_setMeasuredDimensionForFlex", 4, self._setMeasuredDimensionForFlex)
2985
+ case "_layoutSingleChildHorizontal":
2986
+ return FunctionCell_ViewOpt_FlexLineOpt_String_String_Double_Double_Double_Double_to_Void.script(
2987
+ "_layoutSingleChildHorizontal", 8, self._layoutSingleChildHorizontal)
2988
+ default: break
2989
+ }
2990
+ case 30:
2991
+ switch key {
2992
+ case "_isMainAxisDirectionHorizontal":
2993
+ return FunctionCell_String_to_Bool.script(
2994
+ "_isMainAxisDirectionHorizontal", 1, self._isMainAxisDirectionHorizontal)
2995
+ default: break
2996
+ }
2997
+ case 31:
2998
+ switch key {
2999
+ case "_sortOrdersIntoReorderedIndices":
3000
+ return FunctionCell_Double_JSArray_Order_Opt_to_JSArray_Double_Opt.script(
3001
+ "_sortOrdersIntoReorderedIndices", 2, self._sortOrdersIntoReorderedIndices)
3002
+ default: break
3003
+ }
3004
+ default: break
3005
+ }
3006
+ return super[jsKey: key]
3007
+ }
3008
+ set {
3009
+ switch key.utf8.count {
3010
+ case 10:
3011
+ switch key {
3012
+ case "_flexLines":
3013
+ jsStoring {
3014
+ self._flexLines = try jsArrayOrNil(
3015
+ newValue, as: JSArray<FlexLine>.self,
3016
+ { try jsObjectRequired(jsShaped($0) { NativeScriptKit.FlexLine() }) })
3017
+ }
3018
+ return
3019
+ default: break
3020
+ }
3021
+ case 11:
3022
+ switch key {
3023
+ case "_orderCache":
3024
+ self._orderCache = jsArrayOrNil(newValue, { jsLenientNumber($0) })
3025
+ return
3026
+ default: break
3027
+ }
3028
+ case 14:
3029
+ switch key {
3030
+ case "measureContext":
3031
+ jsStoring { self.measureContext = (try jsCast(newValue, MeasureContext.self)) }
3032
+ return
3033
+ default: break
3034
+ }
3035
+ case 15:
3036
+ switch key {
3037
+ case "_childrenFrozen":
3038
+ self._childrenFrozen = jsArrayOrNil(newValue, { jsLenientBool($0) })
3039
+ return
3040
+ default: break
3041
+ }
3042
+ case 17:
3043
+ switch key {
3044
+ case "_reorderedIndices":
3045
+ self._reorderedIndices = jsArrayOrNil(newValue, { jsLenientNumber($0) })
3046
+ return
3047
+ default: break
3048
+ }
3049
+ default: break
3050
+ }
3051
+ super[jsKey: key] = newValue
3052
+ }
3053
+ }
3054
+ open override class var jsName: String { "FlexboxLayout" }
3055
+ open override class var jsStaticKeys: [String] { super.jsStaticKeys + ["getChildMeasureSpec"] }
3056
+ }
3057
+
3058
+ extension FlexboxLayout {
3059
+ public static func getBaseline(_ child: View?) -> Double {
3060
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1400)
3061
+ return 0
3062
+ }
3063
+ #sourceLocation()
3064
+ public static func getPaddingStart(_ child: View?) throws -> Double {
3065
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1404)
3066
+ return try jsUnwrap(child, "effectivePaddingLeft").effectivePaddingLeft
3067
+ }
3068
+ #sourceLocation()
3069
+ public static func getPaddingEnd(_ child: View?) throws -> Double {
3070
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1408)
3071
+ return try jsUnwrap(child, "effectivePaddingRight").effectivePaddingRight
3072
+ }
3073
+ }
3074
+
3075
+ #sourceLocation()
3076
+ public enum Core_ui_layouts_flexbox_layout_index {
3077
+ public static let EXACTLY: Double = NativeScriptKit.layout.EXACTLY
3078
+ public static let AT_MOST: Double = NativeScriptKit.layout.AT_MOST
3079
+ public static let UNSPECIFIED: Double = NativeScriptKit.layout.UNSPECIFIED
3080
+ public static let MEASURED_STATE_TOO_SMALL: Double = NativeScriptKit.layout.MEASURED_STATE_TOO_SMALL
3081
+ public static let MATCH_PARENT: Double = -1
3082
+ public static let WRAP_CONTENT: Double = -2
3083
+ public static let View_sUseZeroUnspecifiedMeasureSpec: Bool = true
3084
+ public static let makeMeasureSpec: (Double, Double) throws -> Double = {
3085
+ @MainActor () -> (Double, Double) throws -> Double in NativeScriptKit.layout.makeMeasureSpec
3086
+ }()
3087
+ public static let getMeasureSpecMode: (Double) throws -> Double = { @MainActor () -> (Double) throws -> Double in
3088
+ NativeScriptKit.layout.getMeasureSpecMode
3089
+ }()
3090
+ public static let getMeasureSpecSize: (Double) throws -> Double = { @MainActor () -> (Double) throws -> Double in
3091
+ NativeScriptKit.layout.getMeasureSpecSize
3092
+ }()
3093
+ public static func requestFlexboxLayout(_ this: View?, _ _value: Any?) throws {
3094
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:31)
3095
+ let flexbox: ViewBase? = try jsUnwrap(this, "parent").parent
3096
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:32)
3097
+ if flexbox is FlexboxLayoutBase {
3098
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:33)
3099
+ try jsUnwrap(flexbox as? FlexboxLayoutBase, "requestLayout").requestLayout()
3100
+ }
3101
+ }
3102
+ }
3103
+
3104
+ #sourceLocation()
3105
+ public func __init_Core_ui_layouts_flexbox_layout_index() {
3106
+ jsReport {
3107
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:24)
3108
+ try jsSet(
3109
+ JSPrototypes.of(View.self),
3110
+ jsUnwrap(Core_ui_layouts_flexbox_layout_flexbox_layout_common.orderProperty, "setNative").setNative.key,
3111
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
3112
+ try Core_ui_layouts_flexbox_layout_index.requestFlexboxLayout((__this as? View), jsArg(__a, 0))
3113
+ return nil
3114
+ } as JSMethod))
3115
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:25)
3116
+ try jsSet(
3117
+ JSPrototypes.of(View.self),
3118
+ jsUnwrap(Core_ui_layouts_flexbox_layout_flexbox_layout_common.flexGrowProperty, "setNative").setNative.key,
3119
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
3120
+ try Core_ui_layouts_flexbox_layout_index.requestFlexboxLayout((__this as? View), jsArg(__a, 0))
3121
+ return nil
3122
+ } as JSMethod))
3123
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:26)
3124
+ try jsSet(
3125
+ JSPrototypes.of(View.self),
3126
+ jsUnwrap(Core_ui_layouts_flexbox_layout_flexbox_layout_common.flexShrinkProperty, "setNative").setNative
3127
+ .key,
3128
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
3129
+ try Core_ui_layouts_flexbox_layout_index.requestFlexboxLayout((__this as? View), jsArg(__a, 0))
3130
+ return nil
3131
+ } as JSMethod))
3132
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:27)
3133
+ try jsSet(
3134
+ JSPrototypes.of(View.self),
3135
+ jsUnwrap(Core_ui_layouts_flexbox_layout_flexbox_layout_common.flexWrapBeforeProperty, "setNative").setNative
3136
+ .key,
3137
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
3138
+ try Core_ui_layouts_flexbox_layout_index.requestFlexboxLayout((__this as? View), jsArg(__a, 0))
3139
+ return nil
3140
+ } as JSMethod))
3141
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:28)
3142
+ try jsSet(
3143
+ JSPrototypes.of(View.self),
3144
+ jsUnwrap(Core_ui_layouts_flexbox_layout_flexbox_layout_common.alignSelfProperty, "setNative").setNative.key,
3145
+ ({ (__this: Any?, __a: [Any?]) throws -> Any? in
3146
+ try Core_ui_layouts_flexbox_layout_index.requestFlexboxLayout((__this as? View), jsArg(__a, 0))
3147
+ return nil
3148
+ } as JSMethod))
3149
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:40)
3150
+ JSPrototypes.declare(
3151
+ MeasureContext.self, "childrenCount",
3152
+ get: { (__this: Any?) throws -> Any? in
3153
+ guard let __o = __this as? MeasureContext else { throw JSException(JSTypeError("Illegal invocation")) }
3154
+ return try __o.childrenCount
3155
+ }, set: nil)
3156
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:59)
3157
+ JSPrototypes.declare(
3158
+ FlexLine.self, "left",
3159
+ get: { (__this: Any?) throws -> Any? in
3160
+ guard let __o = __this as? FlexLine else { throw JSException(JSTypeError("Illegal invocation")) }
3161
+ return __o.left
3162
+ }, set: nil)
3163
+ JSPrototypes.declare(
3164
+ FlexLine.self, "top",
3165
+ get: { (__this: Any?) throws -> Any? in
3166
+ guard let __o = __this as? FlexLine else { throw JSException(JSTypeError("Illegal invocation")) }
3167
+ return __o.top
3168
+ }, set: nil)
3169
+ JSPrototypes.declare(
3170
+ FlexLine.self, "right",
3171
+ get: { (__this: Any?) throws -> Any? in
3172
+ guard let __o = __this as? FlexLine else { throw JSException(JSTypeError("Illegal invocation")) }
3173
+ return __o.right
3174
+ }, set: nil)
3175
+ JSPrototypes.declare(
3176
+ FlexLine.self, "bottom",
3177
+ get: { (__this: Any?) throws -> Any? in
3178
+ guard let __o = __this as? FlexLine else { throw JSException(JSTypeError("Illegal invocation")) }
3179
+ return __o.bottom
3180
+ }, set: nil)
3181
+ JSPrototypes.declare(
3182
+ FlexLine.self, "mainSize",
3183
+ get: { (__this: Any?) throws -> Any? in
3184
+ guard let __o = __this as? FlexLine else { throw JSException(JSTypeError("Illegal invocation")) }
3185
+ return __o.mainSize
3186
+ }, set: nil)
3187
+ JSPrototypes.declare(
3188
+ FlexLine.self, "crossSize",
3189
+ get: { (__this: Any?) throws -> Any? in
3190
+ guard let __o = __this as? FlexLine else { throw JSException(JSTypeError("Illegal invocation")) }
3191
+ return __o.crossSize
3192
+ }, set: nil)
3193
+ JSPrototypes.declare(
3194
+ FlexLine.self, "itemCount",
3195
+ get: { (__this: Any?) throws -> Any? in
3196
+ guard let __o = __this as? FlexLine else { throw JSException(JSTypeError("Illegal invocation")) }
3197
+ return __o.itemCount
3198
+ }, set: nil)
3199
+ JSPrototypes.declare(
3200
+ FlexLine.self, "layoutVisibleItemCount",
3201
+ get: { (__this: Any?) throws -> Any? in
3202
+ guard let __o = __this as? FlexLine else { throw JSException(JSTypeError("Illegal invocation")) }
3203
+ return __o.layoutVisibleItemCount
3204
+ }, set: nil)
3205
+ JSPrototypes.declare(
3206
+ FlexLine.self, "totalFlexGrow",
3207
+ get: { (__this: Any?) throws -> Any? in
3208
+ guard let __o = __this as? FlexLine else { throw JSException(JSTypeError("Illegal invocation")) }
3209
+ return __o.totalFlexGrow
3210
+ }, set: nil)
3211
+ JSPrototypes.declare(
3212
+ FlexLine.self, "totalFlexShrink",
3213
+ get: { (__this: Any?) throws -> Any? in
3214
+ guard let __o = __this as? FlexLine else { throw JSException(JSTypeError("Illegal invocation")) }
3215
+ return __o.totalFlexShrink
3216
+ }, set: nil)
3217
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:122)
3218
+ JSPrototypes.declare(
3219
+ FlexboxLayout.self, "_isOrderChangedFromLastMeasurement",
3220
+ get: { (__this: Any?) throws -> Any? in
3221
+ guard let __o = __this as? FlexboxLayout else { throw JSException(JSTypeError("Illegal invocation")) }
3222
+ return try __o._isOrderChangedFromLastMeasurement
3223
+ }, set: nil)
3224
+ #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:122)
3225
+ JSPrototypes.declareStatics(
3226
+ FlexboxLayout.self,
3227
+ [
3228
+ (
3229
+ "getChildMeasureSpec",
3230
+ { () -> Any? in
3231
+ FunctionCell_Double_Double_Double_to_Double.script(
3232
+ "getChildMeasureSpec", 3, FlexboxLayout.getChildMeasureSpec)
3233
+ }
3234
+ )
3235
+ ])
3236
+ }
3237
+ }
3238
+ #sourceLocation()