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

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