@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.
- package/LICENSE +19 -0
- package/README.md +72 -2
- package/bin/build-dist.mjs +145 -0
- package/bin/ns-compiled-adapter.js +46 -0
- package/bin/ns-compiled-doctor.js +15 -0
- package/bin/ns-compiled-retrace.js +16 -0
- package/bin/ns-compiled-verify.js +15 -0
- package/bin/ns-compiled.js +26 -0
- package/bin/strip-types.js +18 -0
- package/config.d.ts +41 -0
- package/dist/adapters/active.js +59 -0
- package/dist/adapters/first-party.js +12 -0
- package/dist/adapters/framework.js +135 -0
- package/dist/adapters/hooks.js +115 -0
- package/dist/adapters/load.js +188 -0
- package/dist/api/adapter-api.js +2 -0
- package/dist/api/binding-api.js +11 -0
- package/dist/api/elements.js +21 -0
- package/dist/api/ir.js +29 -0
- package/dist/api/listview.js +27 -0
- package/dist/api/rewrite.js +98 -0
- package/dist/api/typescript-internal.d.ts +35 -0
- package/dist/cli/commands/compile-android.cjs +79 -0
- package/dist/cli/commands/compile-doctor.cjs +45 -0
- package/dist/cli/commands/compile-ios.cjs +77 -0
- package/dist/cli/commands/compile-retrace.cjs +40 -0
- package/dist/cli/commands/compile-verify.cjs +73 -0
- package/dist/cli/contracts.cjs +36 -0
- package/dist/cli/runtime.cjs +166 -0
- package/dist/css/css.js +118 -0
- package/dist/css/worker.js +242 -0
- package/dist/driver/cli.js +95 -0
- package/dist/driver/compile.js +571 -0
- package/dist/driver/contract.js +136 -0
- package/dist/driver/mirror.js +71 -0
- package/dist/driver/paths.js +19 -0
- package/dist/driver/preflight.js +206 -0
- package/dist/driver/toolchain.js +46 -0
- package/dist/driver/unimplemented.js +326 -0
- package/dist/kit/core-source.js +107 -0
- package/dist/kit/kit-index.js +105 -0
- package/dist/kit/manifest.js +468 -0
- package/dist/kit/overlay.js +56 -0
- package/dist/kit/swift-declarations.js +643 -0
- package/dist/kotlin/access.js +635 -0
- package/dist/kotlin/app-modules.js +111 -0
- package/dist/kotlin/arguments.js +398 -0
- package/dist/kotlin/assignment.js +226 -0
- package/dist/kotlin/builtins.js +575 -0
- package/dist/kotlin/calls.js +519 -0
- package/dist/kotlin/checked.js +61 -0
- package/dist/kotlin/class-accessors.js +129 -0
- package/dist/kotlin/class-constructor.js +129 -0
- package/dist/kotlin/class-declaration.js +337 -0
- package/dist/kotlin/class-fields.js +362 -0
- package/dist/kotlin/class-methods.js +213 -0
- package/dist/kotlin/classes.js +333 -0
- package/dist/kotlin/components.js +450 -0
- package/dist/kotlin/construction.js +235 -0
- package/dist/kotlin/control-flow.js +188 -0
- package/dist/kotlin/conversion.js +513 -0
- package/dist/kotlin/core-api.js +762 -0
- package/dist/kotlin/core-index.js +228 -0
- package/dist/kotlin/declarations.js +461 -0
- package/dist/kotlin/diagnostics.js +28 -0
- package/dist/kotlin/expression-statements.js +227 -0
- package/dist/kotlin/expressions.js +468 -0
- package/dist/kotlin/functions.js +479 -0
- package/dist/kotlin/global-calls.js +307 -0
- package/dist/kotlin/install.js +89 -0
- package/dist/kotlin/key-plans.js +117 -0
- package/dist/kotlin/kit-gen.js +581 -0
- package/dist/kotlin/ktfmt.js +60 -0
- package/dist/kotlin/library.js +62 -0
- package/dist/kotlin/literals.js +593 -0
- package/dist/kotlin/loops.js +185 -0
- package/dist/kotlin/mixins.js +103 -0
- package/dist/kotlin/modules.js +769 -0
- package/dist/kotlin/names.js +273 -0
- package/dist/kotlin/narrowing.js +180 -0
- package/dist/kotlin/native/api.js +117 -0
- package/dist/kotlin/native/bridging.js +254 -0
- package/dist/kotlin/native/calls.js +408 -0
- package/dist/kotlin/native/classfiles.js +524 -0
- package/dist/kotlin/native/classpath.js +32 -0
- package/dist/kotlin/native/conversions.js +280 -0
- package/dist/kotlin/native/extend.js +302 -0
- package/dist/kotlin/native/members.js +240 -0
- package/dist/kotlin/native/overloads.js +253 -0
- package/dist/kotlin/native/subclasses.js +378 -0
- package/dist/kotlin/native/types.js +421 -0
- package/dist/kotlin/operators.js +449 -0
- package/dist/kotlin/optional-chains.js +279 -0
- package/dist/kotlin/overrides.js +835 -0
- package/dist/kotlin/placement.js +749 -0
- package/dist/kotlin/prototype-calls.js +154 -0
- package/dist/kotlin/render.js +363 -0
- package/dist/kotlin/state-backend.js +123 -0
- package/dist/kotlin/statements.js +426 -0
- package/dist/kotlin/static-calls.js +296 -0
- package/dist/kotlin/syntax.js +689 -0
- package/dist/kotlin/translator-types.js +1 -0
- package/dist/kotlin/translator.js +810 -0
- package/dist/kotlin/type-facts.js +414 -0
- package/dist/kotlin/type-tests.js +250 -0
- package/dist/kotlin/types.js +662 -0
- package/dist/kotlin/untyped-values.js +356 -0
- package/dist/plugins/bindings-android.js +69 -0
- package/dist/plugins/bindings.js +93 -0
- package/dist/plugins/native-android.js +582 -0
- package/dist/plugins/native-ios.js +632 -0
- package/dist/plugins/resolve.js +108 -0
- package/dist/plugins/source.js +1124 -0
- package/dist/program/app-modules.js +52 -0
- package/dist/program/app-paths.js +60 -0
- package/dist/program/build-caches.js +14 -0
- package/dist/program/build-context.js +48 -0
- package/dist/program/constructor-factories.js +134 -0
- package/dist/program/core-facts.js +151 -0
- package/dist/program/core-patches.js +59 -0
- package/dist/program/env.js +4 -0
- package/dist/program/module-order.js +123 -0
- package/dist/program/order.js +23 -0
- package/dist/program/patterns.js +99 -0
- package/dist/program/platform.js +401 -0
- package/dist/program/program.js +726 -0
- package/dist/program/properties.js +61 -0
- package/dist/program/reach.js +444 -0
- package/dist/program/source-lines.js +268 -0
- package/dist/program/stable-names.js +112 -0
- package/dist/semantics/apis/api.js +31 -0
- package/dist/semantics/apis/array.js +69 -0
- package/dist/semantics/apis/bigint.js +53 -0
- package/dist/semantics/apis/console.js +29 -0
- package/dist/semantics/apis/date.js +7 -0
- package/dist/semantics/apis/globals.js +40 -0
- package/dist/semantics/apis/json.js +6 -0
- package/dist/semantics/apis/mapset.js +21 -0
- package/dist/semantics/apis/math.js +48 -0
- package/dist/semantics/apis/number.js +33 -0
- package/dist/semantics/apis/object.js +25 -0
- package/dist/semantics/apis/operators.js +316 -0
- package/dist/semantics/apis/promise.js +22 -0
- package/dist/semantics/apis/regexp.js +15 -0
- package/dist/semantics/apis/statics.js +61 -0
- package/dist/semantics/apis/string.js +45 -0
- package/dist/semantics/ast.js +315 -0
- package/dist/semantics/async.js +582 -0
- package/dist/semantics/class-plan.js +168 -0
- package/dist/semantics/classes.js +562 -0
- package/dist/semantics/config.js +29 -0
- package/dist/semantics/constant-init.js +107 -0
- package/dist/semantics/conversion.js +255 -0
- package/dist/semantics/decision-trace.js +304 -0
- package/dist/semantics/facts.js +433 -0
- package/dist/semantics/forms/by-name.js +338 -0
- package/dist/semantics/forms/flow.js +336 -0
- package/dist/semantics/forms/forms.js +311 -0
- package/dist/semantics/forms/observers.js +513 -0
- package/dist/semantics/forms/open.js +218 -0
- package/dist/semantics/forms/place-calls.js +387 -0
- package/dist/semantics/forms/placements.js +296 -0
- package/dist/semantics/forms/results.js +307 -0
- package/dist/semantics/forms/union-find.js +157 -0
- package/dist/semantics/globals.js +46 -0
- package/dist/semantics/lang/arrays.js +238 -0
- package/dist/semantics/lang/fields.js +211 -0
- package/dist/semantics/lang/members.js +277 -0
- package/dist/semantics/lang/prototypes.js +262 -0
- package/dist/semantics/lang/this-args.js +189 -0
- package/dist/semantics/lang.js +232 -0
- package/dist/semantics/ledger.js +157 -0
- package/dist/semantics/limits.js +11 -0
- package/dist/semantics/losses.js +201 -0
- package/dist/semantics/lowering-methods.js +42 -0
- package/dist/semantics/marks.js +39 -0
- package/dist/semantics/nullish.js +918 -0
- package/dist/semantics/observers.js +1 -0
- package/dist/semantics/placement.js +698 -0
- package/dist/semantics/platform-globals.js +20 -0
- package/dist/semantics/read-sites.js +29 -0
- package/dist/semantics/refusals.js +206 -0
- package/dist/semantics/refuse-construction.js +64 -0
- package/dist/semantics/refuse-receivers.js +189 -0
- package/dist/semantics/refuse-scope.js +82 -0
- package/dist/semantics/regexp.js +219 -0
- package/dist/semantics/result-shapes.js +203 -0
- package/dist/semantics/runtime.js +482 -0
- package/dist/semantics/shape-defined-keys.js +146 -0
- package/dist/semantics/shape-instance-keys.js +230 -0
- package/dist/semantics/shape-map.js +72 -0
- package/dist/semantics/shapes.js +660 -0
- package/dist/semantics/sharing.js +406 -0
- package/dist/semantics/signals.js +166 -0
- package/dist/semantics/spelled.js +45 -0
- package/dist/semantics/states/by-name.js +46 -0
- package/dist/semantics/states/elements.js +310 -0
- package/dist/semantics/states/fields.js +308 -0
- package/dist/semantics/states/foreign.js +208 -0
- package/dist/semantics/states/lenient.js +246 -0
- package/dist/semantics/states/missing.js +289 -0
- package/dist/semantics/states/nil.js +223 -0
- package/dist/semantics/states/parameters.js +191 -0
- package/dist/semantics/states/predicates.js +232 -0
- package/dist/semantics/states/reads.js +247 -0
- package/dist/semantics/states/results.js +113 -0
- package/dist/semantics/states/untrusted.js +141 -0
- package/dist/semantics/states/untyped.js +194 -0
- package/dist/semantics/states/value-states.js +422 -0
- package/dist/semantics/tdz.js +106 -0
- package/dist/semantics/threading.js +77 -0
- package/dist/semantics/throws.js +880 -0
- package/dist/semantics/top-names.js +59 -0
- package/dist/semantics/translator-methods.js +602 -0
- package/dist/semantics/trust.js +321 -0
- package/dist/semantics/type-methods.js +168 -0
- package/dist/semantics/type-step.js +116 -0
- package/dist/semantics/types.js +458 -0
- package/dist/semantics/worker-state.js +198 -0
- package/dist/swift/access.js +754 -0
- package/dist/swift/app-modules.js +41 -0
- package/dist/swift/arguments.js +237 -0
- package/dist/swift/assignment.js +270 -0
- package/dist/swift/availability.js +146 -0
- package/dist/swift/builtins.js +822 -0
- package/dist/swift/calls.js +493 -0
- package/dist/swift/casts.js +218 -0
- package/dist/swift/checked.js +433 -0
- package/dist/swift/class-accessors.js +139 -0
- package/dist/swift/class-constructor.js +144 -0
- package/dist/swift/class-declaration.js +308 -0
- package/dist/swift/class-fields.js +361 -0
- package/dist/swift/class-methods.js +247 -0
- package/dist/swift/classes.js +524 -0
- package/dist/swift/components.js +386 -0
- package/dist/swift/construction.js +291 -0
- package/dist/swift/control-flow.js +210 -0
- package/dist/swift/conversion.js +425 -0
- package/dist/swift/core-api.js +1068 -0
- package/dist/swift/declarations.js +389 -0
- package/dist/swift/enums.js +58 -0
- package/dist/swift/expression-statements.js +312 -0
- package/dist/swift/expressions.js +575 -0
- package/dist/swift/from-any.js +316 -0
- package/dist/swift/functions.js +498 -0
- package/dist/swift/generics.js +124 -0
- package/dist/swift/global-calls.js +217 -0
- package/dist/swift/install.js +109 -0
- package/dist/swift/key-plans.js +136 -0
- package/dist/swift/kit-gen.js +605 -0
- package/dist/swift/lenient.js +468 -0
- package/dist/swift/library.js +109 -0
- package/dist/swift/literals.js +509 -0
- package/dist/swift/loops.js +245 -0
- package/dist/swift/marks.js +212 -0
- package/dist/swift/members.js +253 -0
- package/dist/swift/method-values.js +179 -0
- package/dist/swift/mixins.js +113 -0
- package/dist/swift/modules.js +969 -0
- package/dist/swift/names.js +370 -0
- package/dist/swift/narrowing.js +170 -0
- package/dist/swift/native/api.js +269 -0
- package/dist/swift/native/bridging.js +240 -0
- package/dist/swift/native/calls.js +586 -0
- package/dist/swift/native/conversions.js +532 -0
- package/dist/swift/native/dispatch.js +218 -0
- package/dist/swift/native/members.js +416 -0
- package/dist/swift/native/sdk-tables.js +772 -0
- package/dist/swift/native/sdk-types.js +1 -0
- package/dist/swift/native/sdk.js +409 -0
- package/dist/swift/native/subclasses.js +533 -0
- package/dist/swift/object-classes.js +396 -0
- package/dist/swift/operators.js +575 -0
- package/dist/swift/optional-chains.js +405 -0
- package/dist/swift/parameters.js +210 -0
- package/dist/swift/placement.js +900 -0
- package/dist/swift/protocols.js +164 -0
- package/dist/swift/prototype-calls.js +227 -0
- package/dist/swift/render.js +385 -0
- package/dist/swift/results.js +370 -0
- package/dist/swift/state-backend.js +243 -0
- package/dist/swift/statements.js +505 -0
- package/dist/swift/static-calls.js +320 -0
- package/dist/swift/syntax.js +916 -0
- package/dist/swift/translator-types.js +1 -0
- package/dist/swift/translator.js +890 -0
- package/dist/swift/type-facts.js +530 -0
- package/dist/swift/type-tests.js +211 -0
- package/dist/swift/types.js +665 -0
- package/dist/targets/android/build.js +598 -0
- package/dist/targets/android/compose-mapping.js +218 -0
- package/dist/targets/android/deprecations.js +81 -0
- package/dist/targets/android/resources.js +80 -0
- package/dist/targets/ios/build.js +583 -0
- package/dist/targets/ios/core-native.js +149 -0
- package/dist/targets/ios/dependencies.js +464 -0
- package/dist/targets/ios/plist.js +127 -0
- package/dist/targets/ios/resources.js +285 -0
- package/dist/targets/ios/retrace.js +196 -0
- package/dist/targets/ios/signing.js +84 -0
- package/dist/targets/ios/xcodegen.js +39 -0
- package/dist/targets/resources.js +180 -0
- package/dist/template/model.js +38 -0
- package/dist/template/plan.js +576 -0
- package/dist/tools/doctor.js +172 -0
- package/dist/tools/retrace.js +116 -0
- package/dist/tools/verify.js +330 -0
- package/dist/types/adapter-api.d.ts +683 -0
- package/dist/types/binding-api.d.ts +48 -0
- package/dist/types/elements.d.ts +10 -0
- package/dist/types/ir.d.ts +245 -0
- package/dist/types/listview.d.ts +15 -0
- package/dist/types/rewrite.d.ts +18 -0
- package/dist/types/typescript-internal.d.ts +35 -0
- package/dist/xml/app.js +65 -0
- package/dist/xml/bindings.js +308 -0
- package/dist/xml/contexts.js +296 -0
- package/dist/xml/fold.js +170 -0
- package/dist/xml/keys.js +146 -0
- package/dist/xml/pages.js +550 -0
- package/dist/xml/plan.js +650 -0
- package/docs/CLI.md +131 -0
- package/docs/cli/compile-android.md +30 -0
- package/docs/cli/compile-doctor.md +18 -0
- package/docs/cli/compile-ios.md +30 -0
- package/docs/cli/compile-retrace.md +18 -0
- package/docs/cli/compile-verify.md +18 -0
- package/docs/cli/compile.md +15 -0
- package/kit-android/build.gradle.kts +65 -0
- package/kit-android/consumer-rules.pro +7 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Exports.kt +966 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +125 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +39497 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_abortsignal.kt +101 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_index.kt +109 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +547 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_properties.kt +263 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application.kt +2656 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +1932 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_interfaces.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_shims.kt +111 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers.kt +198 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +270 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_scene_delegate_bridge.kt +233 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_application_settings_common.kt +28 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_index.kt +188 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_common.kt +707 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_types.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +368 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_index.kt +37 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_known_colors.kt +418 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.FragmentClass.kt +287 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.NativeScriptActivity.kt +263 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.OnBackPressedCallback.kt +116 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/connectivity_index.kt +289 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/core_types_animation_types.kt +56 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/core_types_index.kt +427 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/core_types_validators.kt +34 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_CSS3Parser.kt +954 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_CSSNativeScript.kt +205 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +270 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_parser.kt +885 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_system_classes.kt +98 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_value_reworkcss_value.kt +214 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +798 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +1175 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +271 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/file_system_file_system_access.kt +3828 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/file_system_index.kt +1669 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_fps_native.kt +177 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_index.kt +93 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/globals_global_utils.kt +185 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_interfaces.kt +14 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_http_request_common.kt +41 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +119 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +61 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +237 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_index.kt +155 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_image_asset_common.kt +201 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_index.kt +119 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_source_image_source_common.kt +26 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_source_index.kt +846 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/js_libs_easysax_easysax.kt +1045 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +166 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +391 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_helpers.kt +45 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_index.kt +185 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_non_bundle_workflow_compat.kt +262 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_qualifier_matcher_index.kt +305 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window.kt +397 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_common.kt +685 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_interfaces.kt +51 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_window_base.kt +223 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_index.kt +4 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +755 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_stringify.kt +212 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_types.kt +65 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptComponentCallbacks.kt +57 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +579 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_common.kt +20 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_device_index.kt +251 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_screen_index.kt +183 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/profiling_index.kt +485 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_formatted_string.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_index.kt +15 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_span.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_text_common.kt +277 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/trace_index.kt +480 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_action_bar_common.kt +1081 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_index.kt +1207 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_activity_indicator_common.kt +89 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_index.kt +171 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_common.kt +518 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_shared.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_types.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_index.kt +1539 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_keyframe_animation.kt +1081 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_binding_builder.kt +369 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_component_builder_index.kt +487 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +1938 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_button_common.kt +70 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_index.kt +367 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_content_view_index.kt +220 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_expressions.kt +735 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_resources.kt +17 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_types.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +4970 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1342 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_control_state_change_index.kt +52 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +3578 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_property_shared.kt +44 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +3261 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_utils.kt +16 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_index.kt +4716 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_overflow_edges.kt +82 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_common.kt +3597 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_index.kt +134 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_common.kt +360 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_shared.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_interfaces.kt +349 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +266 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_date_picker_common.kt +369 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_index.kt +427 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_dialogs_common.kt +428 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_index.kt +689 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_editable_text_base_common.kt +421 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_index.kt +1140 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_embedding_index.kt +34 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_enums.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_activity.kt +210 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment.kt +88 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions.kt +1544 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions_types.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_common.kt +1350 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_constants.kt +10 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helper_for_android.kt +615 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helpers.kt +42 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_interfaces.kt +22 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_stack.kt +112 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_index.kt +1890 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_common.kt +208 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_types.kt +348 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_index.kt +1785 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_touch_manager.kt +288 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_html_view_common.kt +121 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_index.kt +283 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_image_cache_common.kt +450 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_index.kt +225 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_image_common.kt +574 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_index.kt +493 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects.kt +31 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects_common.kt +138 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_label_index.kt +108 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_absolute_layout_common.kt +167 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_index.kt +94 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_dock_layout_common.kt +157 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_index.kt +124 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_flexbox_layout_common.kt +1004 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_index.kt +675 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_grid_layout_common.kt +1011 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_index.kt +450 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base.kt +123 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base_common.kt +442 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_index.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_liquid_glass_container_common.kt +38 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_index.kt +30 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_liquid_glass_common.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_index.kt +556 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_common.kt +930 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_stack.kt +49 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_index.kt +63 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_stack_layout_common.kt +83 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_index.kt +106 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_wrap_layout_common.kt +185 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_index.kt +400 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_list_picker_common.kt +260 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_index.kt +2406 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_list_view_common.kt +912 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_events.kt +17 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_index.kt +241 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_page_common.kt +449 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_index.kt +61 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_placeholder_common.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_index.kt +204 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_progress_common.kt +129 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_proxy_view_container_index.kt +457 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_repeater_index.kt +523 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_index.kt +400 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_scroll_view_common.kt +402 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_index.kt +711 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_search_bar_common.kt +186 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_index.kt +774 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_segmented_bar_common.kt +409 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_index.kt +477 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_slider_common.kt +234 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_index.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_split_view_common.kt +446 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background.kt +268 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background_common.kt +771 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_box_shadow.kt +108 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_clip_path_function.kt +129 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_converters.kt +92 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_animation_parser.kt +416 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_selector.kt +3532 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_shadow.kt +38 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_stroke.kt +30 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_transform.kt +366 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_utils.kt +249 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font.kt +488 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_common.kt +446 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_interfaces.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_length_shared.kt +264 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_linear_gradient.kt +136 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +1345 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +2907 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +3031 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_profile.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_shared.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_index.kt +295 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_switch_common.kt +139 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_index.kt +1977 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_tab_view_common.kt +902 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_formatted_string.kt +471 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_index.kt +1662 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_span.kt +284 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_text_base_common.kt +792 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_index.kt +211 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_text_field_common.kt +115 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_index.kt +94 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +140 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_index.kt +225 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_time_picker_common.kt +699 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_fade_transition.kt +68 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_flip_transition.kt +209 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_index.kt +160 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_modal_transition.kt +49 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_page_transition.kt +416 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition.kt +457 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition_helper.kt +46 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_slide_transition.kt +294 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_utils.kt +20 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_index.kt +595 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_common.kt +209 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_interfaces.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_animation_helpers.kt +76 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_common.kt +224 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_constants.kt +22 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug.kt +9 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug_source.kt +246 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_index.kt +296 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_index.kt +139 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_common.kt +61 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_shared.kt +23 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_lazy.kt +20 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_macrotask_scheduler.kt +45 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_mainthread_helper.kt +64 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_module_merge.kt +13 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper.kt +79 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper_for_android.kt +805 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_number_utils.kt +66 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_platform_check.kt +15 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_shared.kt +65 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_types.kt +229 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_utils_shared.kt +16 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/xml_index.kt +869 -0
- package/kit-android/generated/manifest.json +860 -0
- package/kit-android/generated/source-lines.json +1 -0
- package/kit-android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/kit-android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/kit-android/gradlew +240 -0
- package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_builder_index.kt +524 -0
- package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1335 -0
- package/kit-android/overlays/xml-free/overlay.json +20 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/AnimationFrame.kt +68 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/CoreBridge.kt +302 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Modal.kt +61 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +230 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Regions.kt +289 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/ChangeDetection.kt +28 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/ColorMix.kt +643 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/JS.kt +10 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/MainThread.kt +10 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/Signals.kt +866 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/UncaughtErrors.kt +51 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +731 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ArrayLike.kt +781 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/BigInt.kt +136 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CSSCalc.kt +109 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Collections.kt +426 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CorePackages.kt +13 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Date.kt +573 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Dynamic.kt +689 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ES2023.kt +93 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ErrorOrigin.kt +17 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Errors.kt +270 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/HostObjects.kt +72 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Inspect.kt +814 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +702 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Iterators.kt +746 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +587 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +526 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Lowering.kt +70 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Number.kt +367 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Promise.kt +680 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Prototypes.kt +292 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Reactive.kt +36 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Realm.kt +85 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/RegExp.kt +2245 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ShortestDouble.kt +157 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +398 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ThrownValue.kt +34 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Timers.kt +182 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/TypedArrays.kt +993 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/URI.kt +74 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +1263 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Views.kt +52 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Weak.kt +110 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/WinterTC.kt +356 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Workers.kt +312 -0
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +536 -0
- package/kit-apple/Overlays/xml-free/Core/ui.core.bindable.index.swift +1375 -0
- package/kit-apple/Overlays/xml-free/overlay.json +34 -0
- package/kit-apple/Package.swift +17 -0
- package/kit-apple/Sources/NativeScriptKit/AnimationFrame.swift +41 -0
- package/kit-apple/Sources/NativeScriptKit/AppModules.swift +88 -0
- package/kit-apple/Sources/NativeScriptKit/ApplicationDelegateClass.swift +273 -0
- package/kit-apple/Sources/NativeScriptKit/CSSCalc.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/ChangeDetection.swift +31 -0
- package/kit-apple/Sources/NativeScriptKit/ColorMix.swift +577 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity0.swift +1413 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +6525 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +4713 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +5428 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_Accuracy_AndroidActionBarIconVisibility_AndroidActionItemPosition_AnimationCurve_AutocapitalizationType_BackgroundRepeat_and_26_more_630c32.swift +472 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ArrayExpression_BinaryExpression_CallExpression_ChainExpression_ConditionalExpression_Identifier_and_10_more_f883bf.swift +359 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_Tab_NewLine_excl_quot_QUOT_num_and_287_more_88aef2.swift +2190 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_Unknown_QuirksMode_IgnoreCase_CaseSensitive.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_b_c_d_tx_ty.swift +123 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_l.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_v.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_r_g_b.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_activate_deactivate_background_foreground_close_attached_and_26_more_127a37.swift +448 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_activeType.swift +65 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_alert_confirm_prompt_login_action.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_align_offset.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_android_ios_visionos_apple.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_angle_colors.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_animations.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_animations_completion.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_axis_value.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +257 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_body.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_boundsChanged_sizeChanged.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_callback_thisArg_once.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_collections_createUIDocumentInteractionControllerDelegate_getCurrentAppPath_getRootViewController_getVisibleViewController_getWindow_and_10_more_6713a9.swift +281 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_color.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_color_backgroundColor.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_color_offset.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_connectionOptions.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_constructor_hasOwnProperty_isPrototypeOf_propertyIsEnumerable_toLocaleString_toString_and_21_more_e9ed9b.swift +331 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_content_statusCode_headers.swift +106 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_context_closeCallback_fullscreen_animated_stretched.swift +149 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_context_parent_name_elementName_templateItems_errorFormat_sourceTracker_xmlModule.swift +185 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_counters_timeline.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_create.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_createSelector_SelectorCore_SimpleSelector_InvalidSelector_UniversalSelector_TypeSelector_and_12_more_71e044.swift +315 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_curve.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_affectsLayout.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_deg_rad_grad_turn.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_damping.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_repeatCount_delay_curve_propertyNameToAnimate_subPropertiesToAnimate_fromValue_toValue.swift +211 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_spring.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_edge_interaction.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_onCreate.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView_toGlassStyleFn.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_empty_text_json_blob_arraybuffer.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enterFrom_exitTo.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_isBackNavigation_navigationType.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag_frameId.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set.swift +123 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set_.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set__.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_android_ios_newValue_object.swift +147 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_data.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount.swift +153 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount_.swift +154 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount__.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_android_ios_error.swift +148 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_closeCallback.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_isBackNavigation.swift +132 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssText.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data_.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_error.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_count.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +168 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android.swift +129 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_cssFile.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_isBack_entry_fromEntry.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_error.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_image.swift +129 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_matches_media.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_newValue.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +104 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex_.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_propertyName_value_oldValue.swift +147 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_text_ios.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_type_view_ios.swift +117 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error.swift +158 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error_.swift +160 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_viewController.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_view_context.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window.swift +103 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_newValue.swift +123 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler.swift +157 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler_.swift +158 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions.swift +137 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions_.swift +137 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts_.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity_.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_rootView.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type_object.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_window_object.swift +103 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventType_position_prefix_namespace_elementName_attributes_data.swift +169 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_exists_isDirectory.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_f_s_t_a.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_folder_path.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_fontFamily_fontSize_fontWeight_fontVariationSettings_isBold_isItalic.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_fontStyle_fontVariant_fontWeight.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_l.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_v.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_headers_timestamp_headersSize_method_postData_url.swift +173 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_highlighted.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_horizontal_vertical.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_hour_minute.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_action.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_percent.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_import_type.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_color_values.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color.swift +147 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color_.swift +126 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_instanceModule.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property_.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan_interactiveCancelled.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveCancelled.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactive_pageStart_pageEnd_pageOut_pageReturn_instance_activeType.swift +165 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inverse_type_features.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ios.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType_message.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_scene.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_isMatch_getMatchOccurences_getMatchValue.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_iterator_prototype_for_keyFor_hasInstance_isConcatSpreadable_and_19_more_91b5f3.swift +413 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_keepAspectRatio_autoScaleFactor.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView_.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_launchData.swift +68 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right_center_top_bottom.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_lifecycle_timeline.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_line_column.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_location.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_location_length.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_m.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_maskPath_shadowPath.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_matches_media.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_measuredWidth_measuredHeight.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_message.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_method.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_method_postData.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_modifier_property_value.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName.swift +65 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_create_transition.swift +93 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_transition.swift +76 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged.swift +103 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged_.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged__.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged___.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter_valueChanged.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged.swift +139 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged_.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter_.swift +134 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueChanged_valueConverter.swift +183 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter.swift +168 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_.swift +169 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +181 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter__.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_valueChanged.swift +139 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueChanged_valueConverter.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueConverter.swift +150 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter__.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter___.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_valueChanged.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_defaultValue_valueConverter.swift +129 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_valueConverter.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter__.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter___.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter____.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_____.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged.swift +99 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter.swift +153 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter_.swift +132 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_valueConverter.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter__.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_valueChanged.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue__.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue___.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +163 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_coerceValue_valueConverter.swift +144 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_valueConverter.swift +124 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter__.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter___.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter____.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_valueChanged.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueChanged_valueConverter.swift +125 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter.swift +116 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter_.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_coerceValue_valueChanged_valueConverter.swift +170 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueChanged.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter.swift +116 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter_.swift +139 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter__.swift +136 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_coerceValue_valueConverter.swift +126 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_equalityComparer_valueConverter.swift +146 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter__.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter___.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter____.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_____.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter______.swift +126 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter__.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter___.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter____.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_coerceValue.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged_.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_duration.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter_.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter__.swift +119 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_keyframes_mediaQueryString.swift +117 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged___.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged____.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_____.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged______.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_______.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged________.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_________.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__________.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter_.swift +119 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter__.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter_.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter__.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_navigatingToEvent_navigatedToEvent_navigatingFromEvent_navigatedFromEvent.swift +116 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_normalState_selectedState.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_num_regexp_string_name_privateId_eof_and_71_more_93cbae.swift +688 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_propertyName_value_oldValue_origin.swift +154 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY_.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_opacity_color_tapToClose_animation_ignoreShadeRestore.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance_.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_parent_name_items.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name_extension.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_pattern_flags.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_position_systemIcon.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_prefix_namespace_name.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_presented_presenting_independent.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_propName_propValue.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value__.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value___.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value____.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_____.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value______.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_______.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value________.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_r_g_b.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked_.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString_.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_recognizer_target.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_repeatX_repeatY_posX_posY.swift +93 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_requestTime_proxyStart_proxyEnd_dnsStart_dnsEnd_connectStart_and_9_more_3e958e.swift +248 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_result_text.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_result_userName_password.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_right_left.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_row_col.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_rules.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_rules_.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_safeArea_fullscreen_inWindow.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_translate_rotate.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_tx_ty.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sceneWillConnect_sceneDidActivate_sceneWillResignActive_sceneWillEnterForeground_sceneDidEnterBackground_sceneDidDisconnect_and_1_more_1be9d4.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_scene_uiWindow.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_shape_rule.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedElements_presented_presenting.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedTransitionTag_zIndex.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_showing.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_snap_endFrame_endCornerRadius_srcSharedView.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_expression_twoWay_source_defaultProperty.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression_twoWay_compiled.swift +145 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_spans.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____.swift +88 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_______.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___________.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____________.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______________.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_status_headers.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText_headers_url.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty_sourceProperty.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_opacity_backgroundColor_translate_scale_height_width_rotate_duration_delay_iterations_curve.swift +252 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve_.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve__.swift +153 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve___.swift +151 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_translate_scale_rotate_opacity_duration_curve.swift +165 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_delay_velocity_animateOptions_animations_completion.swift +165 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay_animations_completion.swift +142 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_textColor_tintColor.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_text_iosFont_color_backgroundColor_textDecoration_baselineOffset_index.swift +144 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_cancelButtonText.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_inputType.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_message.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_message.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_section.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_toArrayBuffer_toString_toJSON_toImage_toFile.swift +142 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_toString_charAt_charCodeAt_concat_indexOf_lastIndexOf_and_44_more_fc25df.swift +481 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_topLeft_topRight_bottomLeft_bottomRight.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_bottom.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_left_bottom_right.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left_.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_totalTime_count_currentStart_runCount.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_touches_event.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_transitionContext.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity_duration_curve.swift +151 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_translate_rotate_scale.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase_.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data_.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_namespace.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_prelude_block.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text.swift +104 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text_components.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_namespace.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_path.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_prelude_block.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_property_value.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_quote_string_value.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_selectors_declarations.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_left_right.swift +127 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_name.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string_unit_value.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_stylesheet.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text__.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_associatedToken_values.swift +125 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_direction_object_eventName.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_eventName_object_getPointerCount_getX_getY.swift +187 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName_state.swift +167 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_rotation_object_eventName_state.swift +182 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_scale_getFocusX_getFocusY_object_eventName_state.swift +194 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_startX_startY_deltaX_deltaY_object_eventName_state.swift +201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_uri_message_time.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_method.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_status_statusText_headers_mimeType_fromDiskCache_timing_headersSize.swift +201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_isPresented_startFrame_snapshot_endFrame_startTransform_and_5_more_20e753.swift +234 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_snapshot_startOpacity_endOpacity_propertiesToMatch_zIndex.swift +186 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_startOpacity_endOpacity_propertiesToMatch_imageSourceChangeListener.swift +181 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_type_animation.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_color.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_os_deviceType.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_windowOpen_windowClose_primaryWindowChanged.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary_data_ios.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_xRadius_yRadius_maxRadius.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y__.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y___.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y____.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_____.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y______.swift +74 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_______.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y________.swift +88 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_________.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_width_height.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z_.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_xmlns.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_xs_ys_xt_yt_rx_ry_rz.swift +106 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidApplication.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidHelper.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.AnimationCurve.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Application.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSHelper.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSType.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Device.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Dialogs.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Enums.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.NativeWindowEvents.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.PseudoClassHandler.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.SceneEvents.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.WindowEvents.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._resetRootView.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._resolveAnimationCurve.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._setResolver.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._updateCharactersInRangeReplacementString.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.action.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.addCss.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.addTaggedAdditionalCSS.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.addWeakEventListener.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.alert.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.android.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidDynamicElevationOffsetProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidElevationProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.animationTimingFunctionConverter.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocapitalizationTypeProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocorrectProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundImageProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundInternalProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundPositionProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundRepeatProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundSizeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.booleanConverter.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomLeftRadiusProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomRightRadiusProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopLeftRadiusProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopRightRadiusProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.clipPathProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.colorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.columnGapProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.confirm.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.cornerShapeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.directionProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.discardedErrorEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.displayedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.eachDescendant.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.editableProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.ensureA11yClasses.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.exitEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontFamilyProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontInternalProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleInternalProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontSizeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontStyleProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontVariationSettingsProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontWeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.foregroundEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObject.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObjectRecursive.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAncestor.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAndroidAccessibilityManager.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCssFileName.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentFontScale.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentPage.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getFileAccess.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getMainEntry.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApp.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApplication.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getResources.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayout.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayoutById.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootView.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getTransformedText.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getViewById.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasLaunched.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasListeners.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.heightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.hintProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.horizontalAlignmentProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.inBackground.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.initAccessibilityCssHelper.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAccessibilityServiceEnabled.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAndroid.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isApple.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isEmbedded.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isIOS.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isUserInteractionEnabledProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isVisionOS.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.keyboardTypeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.launchEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirection.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChanged.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.letterSpacingProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.lineHeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.loadAppCss.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.login.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.lowMemoryEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeParser.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeValidator.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginBottomProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginLeftProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginRightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginTopProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxHeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxLengthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.minHeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.minWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.notify.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.off.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.on.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.opacityProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientation.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientationChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingBottomProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingInternalProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingLeftProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingRightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingTopProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSShadow.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSStroke.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseKeyframeDeclarations.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.perspectiveProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.placeholderColorProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.platformNames.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profile.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDisable.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDumpProfiles.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingEnable.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingIsRunning.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingResetProfiles.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStart.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStartCPU.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStop.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStopCPU.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingUptime.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.prompt.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.querySelectorAll.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeTaggedAdditionalCSS.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeWeakEventListener.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.resetRootView.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.resolveFileNameFromUrl.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.resumeEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.returnKeyTypeProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateXProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateYProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rowGapProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.run.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.sanitizeModuleName.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleXProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleYProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.sendAccessibilityEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setActivityCallbacks.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setAutoSystemAppearanceChanged.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setCssFileName.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setMaxRefreshRate.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setNativeApp.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setResources.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspendEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspended.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearance.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChanged.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textAlignmentProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textDecorationProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textOverflowProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textShadowProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textStrokeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textTransformProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.timeConverter.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateXProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateYProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.uncaughtErrorEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.unsetValue.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateAccessibilityProperties.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateCurrentHelperClasses.swift +21 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateTextTriggerProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.verticalAlignmentProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.visibilityProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.whiteSpaceProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.widthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.zIndexProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Modules.swift +17 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Http.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Utils.swift +201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.abortsignal.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.index.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-common.swift +572 -0
- package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-properties.swift +258 -0
- package/kit-apple/Sources/NativeScriptKit/Core/accessibility.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application-settings.application-settings-common.swift +36 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application-settings.index.ios.swift +157 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +2095 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-interfaces.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-shims.swift +212 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +3854 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +224 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.helpers.ios.swift +57 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.index.ios.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.scene-delegate-bridge.swift +234 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-common.swift +756 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-types.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-utils.swift +388 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.index.ios.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.known-colors.swift +520 -0
- package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +190 -0
- package/kit-apple/Sources/NativeScriptKit/Core/core-types.animation-types.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/core-types.index.swift +361 -0
- package/kit-apple/Sources/NativeScriptKit/Core/core-types.validators.swift +62 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +220 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css-value.reworkcss-value.swift +280 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1012 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.CSSNativeScript.swift +264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +971 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.system-classes.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +699 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable.index.swift +1166 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.virtual-array.index.swift +325 -0
- package/kit-apple/Sources/NativeScriptKit/Core/fetch.index.swift +1201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +1450 -0
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +1756 -0
- package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.fps-native.ios.swift +227 -0
- package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.index.swift +141 -0
- package/kit-apple/Sources/NativeScriptKit/Core/globals.global-utils.swift +252 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-interfaces.swift +24 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +413 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.http-request-common.swift +57 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.index.ios.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +175 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-asset.image-asset-common.swift +285 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-asset.index.ios.swift +205 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.image-source-common.swift +40 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +1130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +1388 -0
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +30808 -0
- package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +3383 -0
- package/kit-apple/Sources/NativeScriptKit/Core/matrix.index.swift +151 -0
- package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +468 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.helpers.swift +57 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.index.swift +220 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.non-bundle-workflow-compat.swift +262 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.qualifier-matcher.index.swift +330 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-common.swift +730 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-interfaces.swift +46 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +521 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.window-base.swift +298 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +668 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +221 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +62 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.common.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.device.index.ios.swift +289 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.screen.index.ios.swift +217 -0
- package/kit-apple/Sources/NativeScriptKit/Core/profiling.index.swift +528 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.formatted-string.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.index.ios.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.span.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.text-common.swift +309 -0
- package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +513 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.action-bar-common.swift +1270 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +1480 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.activity-indicator-common.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +175 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-common.swift +581 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-shared.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-types.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +2204 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1213 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.binding-builder.swift +318 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.component-builder.index.swift +387 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +2026 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.button-common.swift +75 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +614 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.content-view.index.swift +291 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-expressions.swift +770 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-resources.swift +30 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-types.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.expression-parser.swift +5297 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.index.swift +1376 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.control-state-change.index.ios.swift +197 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +3899 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.property-shared.swift +53 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +3522 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.utils.swift +32 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +3318 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +4347 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.index.ios.swift +1417 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-common.swift +337 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-shared.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-interfaces.swift +272 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.weak-event-listener.index.swift +323 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.date-picker-common.swift +335 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +609 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.dialogs-common.swift +486 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +677 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.editable-text-base-common.swift +378 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +512 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.embedding.index.ios.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.enums.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.ios.swift +26 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.transitions.types.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +1526 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-constants.swift +21 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-helpers.swift +40 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-interfaces.swift +26 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-stack.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +1794 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-common.swift +269 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-types.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.index.ios.swift +1453 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.touch-manager.swift +451 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.html-view-common.swift +106 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +301 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.image-cache-common.swift +479 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.index.ios.swift +232 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.image-common.swift +399 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +499 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects-common.swift +150 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects.ios.swift +148 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +483 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.absolute-layout-common.swift +172 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.index.ios.swift +189 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.dock-layout-common.swift +157 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.index.ios.swift +264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.flexbox-layout-common.swift +1028 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +3235 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.grid-layout-common.swift +1014 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.index.ios.swift +2435 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base-common.swift +591 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +364 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.liquid-glass-container-common.swift +49 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +238 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.liquid-glass-common.swift +34 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +347 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +964 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-stack.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.index.ios.swift +350 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.stack-layout-common.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.index.ios.swift +357 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.wrap-layout-common.swift +188 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +374 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.list-picker-common.swift +252 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +2611 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.list-view-common.swift +950 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.events.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +1340 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.page-common.swift +520 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.index.swift +63 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.placeholder-common.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +173 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.progress-common.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.proxy-view-container.index.swift +497 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +535 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +699 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.scroll-view-common.swift +414 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +609 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.search-bar-common.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +470 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.segmented-bar-common.swift +448 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +593 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.slider-common.swift +211 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +1459 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.split-view-common.swift +410 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background-common.swift +809 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2290 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.box-shadow.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +198 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.converters.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +493 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +4016 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-shadow.swift +48 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-stroke.swift +41 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-transform.swift +406 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-utils.swift +297 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +477 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-interfaces.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font.ios.swift +416 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.length-shared.swift +343 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.linear-gradient.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-properties.swift +2524 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +3330 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +905 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-profile.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-shared.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +508 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.switch-common.swift +143 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +2284 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.tab-view-common.swift +985 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +801 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +1264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.span.swift +476 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +1047 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +912 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.text-field-common.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +1030 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +473 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.time-picker-common.swift +536 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.fade-transition.ios.swift +265 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +635 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +1167 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +3673 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition.swift +492 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.slide-transition.ios.swift +328 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.utils.ios.swift +132 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +827 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +206 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-interfaces.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.animation-helpers.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.common.swift +278 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.constants.ios.swift +33 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +271 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.debug.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +205 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.index.ios.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-common.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-shared.swift +28 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.lazy.swift +39 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.macrotask-scheduler.swift +71 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.mainthread-helper.ios.swift +52 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.module-merge.swift +27 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.native-helper.ios.swift +734 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.number-utils.swift +79 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.platform-check.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.shared.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.types.swift +308 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.utils-shared.swift +31 -0
- package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +1726 -0
- package/kit-apple/Sources/NativeScriptKit/Core/xml.index.swift +775 -0
- package/kit-apple/Sources/NativeScriptKit/CoreBridge.swift +388 -0
- package/kit-apple/Sources/NativeScriptKit/CoreConnectivity.swift +46 -0
- package/kit-apple/Sources/NativeScriptKit/CoreLifetimes.swift +15 -0
- package/kit-apple/Sources/NativeScriptKit/CorePackages.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/JS.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Modal.swift +65 -0
- package/kit-apple/Sources/NativeScriptKit/Probe.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Regions.swift +291 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/AbsentModules.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +1693 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/ArrayLike.swift +859 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/BigInt.swift +338 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/BuiltinValues.swift +45 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Collections.swift +609 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Date.swift +269 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +474 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/ES2023.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Errors.swift +402 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Functions.swift +372 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Inspect.swift +762 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +42 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +799 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +898 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +874 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +593 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +819 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/NativeStack.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Number.swift +599 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Promise.swift +810 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +471 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Reactive.swift +34 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Record.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/RegExp.swift +576 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/RegExpEngine.swift +1918 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Stack.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/StringUTF16.swift +179 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +142 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Threads.swift +275 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Timers.swift +240 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/TypedArrays.swift +996 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/URI.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +2069 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Weak.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/WinterTC.swift +484 -0
- package/kit-apple/Sources/NativeScriptKit/Signals.swift +952 -0
- package/kit-apple/Sources/NativeScriptKit/UncaughtErrors.swift +37 -0
- package/package.json +94 -4
- package/verify/ui-driver/Host/App.swift +7 -0
- package/verify/ui-driver/Tests/Driver.swift +54 -0
- package/verify/ui-driver/project.yml +35 -0
|
@@ -0,0 +1,1068 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
import { heldLoss } from "../semantics/losses.js";
|
|
3
|
+
import { KIT_APPLE_SOURCES } from "../driver/paths.js";
|
|
4
|
+
import { KIT_GLOBALS, KitTypes, coreClass, kitExtends, kitIndex, kitMember } from "../kit/kit-index.js";
|
|
5
|
+
import { NATIVE_MEMBERS, SCRIPT_OBJECTS, addedDeclarations, augmentedProperty, coreBarrels, coreSymbolName, isCoreDeclaration, ownPropertyOnly, packageOf, unappliedProperty } from "../program/core-facts.js";
|
|
6
|
+
import { optionalType, splitTopLevel, RT } from "./syntax.js";
|
|
7
|
+
import { rethrowUnlessRefused } from "../semantics/refusals.js";
|
|
8
|
+
import { isKit, isUntyped, spelledType } from "../semantics/types.js";
|
|
9
|
+
export const KIT = KIT_APPLE_SOURCES;
|
|
10
|
+
/**
|
|
11
|
+
* @nativescript/core's API as NativeScriptKit offers it. A core class is the
|
|
12
|
+
* kit class of the same name; a member the kit declares is used as it is
|
|
13
|
+
* (numbers converted to Double), a view property the kit applies by name
|
|
14
|
+
* (`text`, `color`) is set and read through `set`/`get`, and anything else
|
|
15
|
+
* stops the build with the file and line.
|
|
16
|
+
*/
|
|
17
|
+
export class CoreAPI extends KitTypes {
|
|
18
|
+
directoryMembers = new Map();
|
|
19
|
+
t;
|
|
20
|
+
constructor(t) {
|
|
21
|
+
super(kitIndex(KIT, t.config.adapter.kit.apple, t.kitExclude));
|
|
22
|
+
this.t = t;
|
|
23
|
+
}
|
|
24
|
+
/** Whether NativeScriptKit declares a type of this name itself, not only extends one. */
|
|
25
|
+
declares(name) {
|
|
26
|
+
return !!this.index.get(name)?.declared;
|
|
27
|
+
}
|
|
28
|
+
typeNames() {
|
|
29
|
+
return [...this.index.values()].filter((t) => t.declared && !t.name.includes('.')).map((t) => t.name);
|
|
30
|
+
}
|
|
31
|
+
/** Whether NativeScriptKit has a top-level function or variable of this name (core's index exports it). */
|
|
32
|
+
exportsTopLevel(name) {
|
|
33
|
+
return !!this.coreGlobal(name);
|
|
34
|
+
}
|
|
35
|
+
/** A top-level function or variable the kit generated from core's index exports (`getRootLayout`, `widthProperty`). */
|
|
36
|
+
coreGlobal(name, kind) {
|
|
37
|
+
return (this.index
|
|
38
|
+
.get(KIT_GLOBALS)
|
|
39
|
+
?.members.get(name)
|
|
40
|
+
?.find((m) => m.exported && (!kind || m.kind === kind)) ?? null);
|
|
41
|
+
}
|
|
42
|
+
/** The kit's class of a core class name: the iOS file's where the kit names it apart (`Font__font_ios`), else the class of that name. */
|
|
43
|
+
platformClass(name) {
|
|
44
|
+
const ios = `${name}__${name.replace(/[A-Z]/g, (c, k) => (k ? '_' : '') + c.toLowerCase())}_ios`;
|
|
45
|
+
if (this.index.has(ios))
|
|
46
|
+
return ios;
|
|
47
|
+
return coreClass(this.index, name);
|
|
48
|
+
}
|
|
49
|
+
/** The kit type of a core class, if the kit has one. */
|
|
50
|
+
kitTypeName(name) {
|
|
51
|
+
const k = this.platformClass(name);
|
|
52
|
+
return this.index.has(k) ? k : null;
|
|
53
|
+
}
|
|
54
|
+
/** `recv.method(…args)` of a kit method named apart from the call (`Observable.prototype.on.call(this, …)`), arguments as its parameters take them. */
|
|
55
|
+
nonVirtualCall(e, recv, owner, method, args) {
|
|
56
|
+
const m = kitMember(this.index, owner, method);
|
|
57
|
+
const params = (m.params ?? '').trim() ? splitParams(m.params) : [];
|
|
58
|
+
const given = args.map((a, k) => this.t.coerce(a, params[k] ? kitParamType(params[k]).replace(/^@escaping /, '') : 'Any?'));
|
|
59
|
+
while (given.length < params.length && !params[given.length].includes('=') && /[?!]\s*$/.test(params[given.length]))
|
|
60
|
+
given.push('nil');
|
|
61
|
+
return this.fromKit(`${recv}.${method}(${given.join(', ')})`, m.type, this.t.typeOf(e));
|
|
62
|
+
}
|
|
63
|
+
/** Whether a kit class's initializer taking no arguments throws. */
|
|
64
|
+
initThrows(name) {
|
|
65
|
+
for (let t = this.index.get(name); t; t = t.base ? this.index.get(t.base) : undefined) {
|
|
66
|
+
const plain = (t.members.get('init') ?? []).find((m) => !(m.params ?? '').trim());
|
|
67
|
+
if (plain)
|
|
68
|
+
return !!plain.throws;
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
/** Whether a kit type extends another (`View` extends `ViewBase`). */
|
|
73
|
+
extendsKit(sub, base) {
|
|
74
|
+
return sub !== base && kitExtends(this.index, sub, base);
|
|
75
|
+
}
|
|
76
|
+
/** The kit type a core-typed expression is, and whether it is the type itself (`Device.model`, `Color.isValid`). */
|
|
77
|
+
owner(e) {
|
|
78
|
+
const c = this.t.checker;
|
|
79
|
+
// A namespace inside a core namespace (`Utils.layout`): the kit's nested type of that path.
|
|
80
|
+
if (ts.isPropertyAccessExpression(e)) {
|
|
81
|
+
const sym = this.t.resolve(e);
|
|
82
|
+
if (sym && isCoreDeclaration(sym.declarations?.[0])) {
|
|
83
|
+
const outer = this.owner(e.expression);
|
|
84
|
+
const name = outer?.isStatic ? `${outer.name}.${e.name.text}` : null;
|
|
85
|
+
if (name && this.index.has(name))
|
|
86
|
+
return { name, isStatic: true };
|
|
87
|
+
// A class a core namespace exports (`Utils.Source`): the class itself, under the kit's name for it.
|
|
88
|
+
const target = sym.flags & ts.SymbolFlags.Alias ? c.getAliasedSymbol(sym) : sym;
|
|
89
|
+
if (outer?.isStatic && target.flags & ts.SymbolFlags.Class && this.index.has(this.platformClass(target.name)))
|
|
90
|
+
return { name: this.platformClass(target.name), isStatic: true };
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (ts.isIdentifier(e)) {
|
|
94
|
+
const module = this.moduleOwner(e);
|
|
95
|
+
if (module)
|
|
96
|
+
return { name: module, isStatic: true };
|
|
97
|
+
const sym = this.t.resolve(e);
|
|
98
|
+
// `globalThis`: the program's global object, which core's global-types.d.ts augments with a namespace declaration.
|
|
99
|
+
if (sym?.name === 'globalThis' && sym.flags & ts.SymbolFlags.ValueModule)
|
|
100
|
+
return null;
|
|
101
|
+
const decl = sym?.declarations?.[0];
|
|
102
|
+
if (sym && isCoreDeclaration(decl) && sym.flags & (ts.SymbolFlags.Class | ts.SymbolFlags.ValueModule | ts.SymbolFlags.Variable) && !this.t.compiledCounterpart(sym)) {
|
|
103
|
+
if (sym.flags & ts.SymbolFlags.ValueModule)
|
|
104
|
+
return { name: e.text, isStatic: true };
|
|
105
|
+
if (sym.flags & ts.SymbolFlags.Class)
|
|
106
|
+
return { name: this.platformClass(sym.name), isStatic: true };
|
|
107
|
+
// A constant core exports (`Device`): the kit has a type of that name with static members.
|
|
108
|
+
if (this.index.has(sym.name))
|
|
109
|
+
return { name: sym.name, isStatic: true };
|
|
110
|
+
const held = this.heldObject(e);
|
|
111
|
+
if (held)
|
|
112
|
+
return { name: held, isStatic: false };
|
|
113
|
+
}
|
|
114
|
+
if (sym && sym.flags & ts.SymbolFlags.Alias)
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
// Library mode: core's own interfaces (`ModuleContext`, `NavigationTransition`) are shapes the generated code reads, not kit types.
|
|
118
|
+
if (this.t.library) {
|
|
119
|
+
const decl = c.getNonNullableType(c.getTypeAtLocation(e)).getSymbol()?.declarations?.[0];
|
|
120
|
+
if (decl && (ts.isInterfaceDeclaration(decl) || ts.isTypeLiteralNode(decl)) && isCoreDeclaration(decl))
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
let type = c.getNonNullableType(c.getTypeAtLocation(e));
|
|
124
|
+
// `View & { extra?: … }`: the core class.
|
|
125
|
+
if (type.isIntersection())
|
|
126
|
+
type = type.types.find((u) => (u.getSymbol()?.flags ?? 0) & ts.SymbolFlags.Class && isCoreDeclaration(u.getSymbol()?.declarations?.[0])) ?? type;
|
|
127
|
+
const sym = type.getSymbol();
|
|
128
|
+
// `global`, typed as `typeof globalThis`: the program's global object, which core's typings only augment.
|
|
129
|
+
if (sym?.name === 'globalThis' && sym.flags & ts.SymbolFlags.ValueModule)
|
|
130
|
+
return null;
|
|
131
|
+
const mixin = this.t.mixinOf(sym);
|
|
132
|
+
if (mixin)
|
|
133
|
+
return { name: mixin, isStatic: false };
|
|
134
|
+
// An interface extending a core class (`interface MenuView extends View`): that class.
|
|
135
|
+
if (sym && sym.flags & ts.SymbolFlags.Interface && !isCoreDeclaration(sym.declarations?.[0]) && type.isClassOrInterface()) {
|
|
136
|
+
const base = c
|
|
137
|
+
.getBaseTypes(type)
|
|
138
|
+
.map((b) => b.getSymbol())
|
|
139
|
+
.find((b) => b && b.flags & ts.SymbolFlags.Class && isCoreDeclaration(b.declarations?.[0]));
|
|
140
|
+
if (base)
|
|
141
|
+
return { name: this.platformClass(base.name), isStatic: false };
|
|
142
|
+
}
|
|
143
|
+
if (!sym || !isCoreDeclaration(sym.declarations?.[0]) || this.t.compiledCounterpart(sym))
|
|
144
|
+
return null;
|
|
145
|
+
// Core's event data types are the kit's one EventData, whose members the translator reads directly.
|
|
146
|
+
if (this.t.type(type, e) === 'EventData')
|
|
147
|
+
return null;
|
|
148
|
+
const name = sym.flags & ts.SymbolFlags.Class ? this.platformClass(coreSymbolName(sym)) : coreSymbolName(sym);
|
|
149
|
+
// An interface core's typings declare (`Screen.mainScreen: ScreenMetrics`) where the kit's member holds its class (`MainScreen`).
|
|
150
|
+
// Or a shape (`Utils.ios: { collections: {…} }`) where the kit's member holds an object of its class, or a type itself (`collections.Type`).
|
|
151
|
+
if (!this.index.has(name) && sym.flags & (ts.SymbolFlags.Interface | ts.SymbolFlags.TypeLiteral) && ts.isPropertyAccessExpression(e)) {
|
|
152
|
+
const outer = this.owner(e.expression);
|
|
153
|
+
const held = outer &&
|
|
154
|
+
kitMember(this.index, outer.name, e.name.text)
|
|
155
|
+
?.type.replace(/[?!]$/, '')
|
|
156
|
+
.replace(/^NativeScriptKit\./, '');
|
|
157
|
+
if (held && this.index.has(held))
|
|
158
|
+
return { name: held, isStatic: false };
|
|
159
|
+
const meta = held && /^([\w.]+)\.Type$/.exec(held)?.[1];
|
|
160
|
+
if (meta && this.index.has(meta))
|
|
161
|
+
return { name: meta, isStatic: true };
|
|
162
|
+
}
|
|
163
|
+
// A shape core's typings declare (`{ unit: 'dip'; value: number }`) that the kit has no type for: read as any object is.
|
|
164
|
+
if (!this.index.has(name) && (sym.flags & ts.SymbolFlags.TypeLiteral || sym.flags & ts.SymbolFlags.Interface))
|
|
165
|
+
return null;
|
|
166
|
+
return { name, isStatic: false };
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* The kit class of the object a constant core exports holds (`Dialogs = { alert, confirm, … }`, `Device`), the type of
|
|
170
|
+
* the kit's global of that name. Only where the class has every member the typings declare: one it lacks is
|
|
171
|
+
* the object's own, read by name.
|
|
172
|
+
*/
|
|
173
|
+
heldObject(e) {
|
|
174
|
+
if (!ts.isIdentifier(e))
|
|
175
|
+
return null;
|
|
176
|
+
const sym = this.t.resolve(e);
|
|
177
|
+
if (!sym || !(sym.flags & ts.SymbolFlags.Variable) || !isCoreDeclaration(sym.declarations?.[0]) || this.t.compiledCounterpart(sym))
|
|
178
|
+
return null;
|
|
179
|
+
const held = this.coreGlobal(sym.name, 'var')?.type.trim().replace(/[?!]$/, '');
|
|
180
|
+
return held &&
|
|
181
|
+
this.index.has(held) &&
|
|
182
|
+
this.t.checker
|
|
183
|
+
.getTypeAtLocation(e)
|
|
184
|
+
.getProperties()
|
|
185
|
+
.every((p) => kitMember(this.index, held, p.name))
|
|
186
|
+
? held
|
|
187
|
+
: null;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* A function such an object holds, other than called (`Dialogs.alert` as a value, assigned, or `?.()`): the kit's
|
|
191
|
+
* closure type is the function core implements, not the typings' overloads, so it is read and written by name.
|
|
192
|
+
*/
|
|
193
|
+
heldFunction(target, name) {
|
|
194
|
+
const held = this.heldObject(target);
|
|
195
|
+
const m = held ? kitMember(this.index, held, name) : null;
|
|
196
|
+
return m?.kind === 'var' && !!this.t.functionTypeParts(m.type.trim().replace(/^\((.*)\)[?!]$/, '$1'));
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* A function of a core module that core's index does not export (`resolveModuleName`, imported from
|
|
200
|
+
* `@nativescript/core/module-name-resolver`): the kit's module enum it was compiled into, which has no top-level forwarder for it.
|
|
201
|
+
*/
|
|
202
|
+
moduleFunction(decl) {
|
|
203
|
+
// Or a module's variable (`_rootModalViews` of view-common).
|
|
204
|
+
const variable = ts.isVariableDeclaration(decl) && ts.isIdentifier(decl.name) && ts.isSourceFile(decl.parent.parent.parent);
|
|
205
|
+
if (!(ts.isFunctionDeclaration(decl) || variable) || !decl.name || !isCoreDeclaration(decl))
|
|
206
|
+
return null;
|
|
207
|
+
const name = decl.name.text;
|
|
208
|
+
if (this.coreGlobal(name))
|
|
209
|
+
return null;
|
|
210
|
+
const file = decl.getSourceFile().fileName;
|
|
211
|
+
const root = /^(.*[\\/]@nativescript[\\/]core)[\\/]/.exec(file)?.[1] ?? (packageOf(file)?.name === '@nativescript/core' ? packageOf(file).root : undefined);
|
|
212
|
+
if (!root)
|
|
213
|
+
return null;
|
|
214
|
+
const rel = file
|
|
215
|
+
.slice(root.length + 1)
|
|
216
|
+
.replace(/\\/g, '/')
|
|
217
|
+
.replace(/(\.(ios|android))?\.d\.ts$|(\.(ios|android))?\.ts$/, '');
|
|
218
|
+
const kind = variable ? 'var' : 'func';
|
|
219
|
+
const owner = `Core_${rel.replace(/[^A-Za-z0-9]+/g, '_')}`;
|
|
220
|
+
if (kitMember(this.index, owner, name)?.kind === kind)
|
|
221
|
+
return `${owner}.${name}`;
|
|
222
|
+
// A directory's typings (`ui/core/view/index.d.ts`) declaring what one of its modules defines (view-common's `isEnabledProperty`).
|
|
223
|
+
// Owner names flatten `/` and `-` alike, so a sibling directory (`view-base`) shares the prefix: only a single owner is taken.
|
|
224
|
+
if (rel.endsWith('/index')) {
|
|
225
|
+
const prefix = owner.slice(0, -'index'.length);
|
|
226
|
+
const key = `${prefix} ${kind} ${name}`;
|
|
227
|
+
if (!this.directoryMembers.has(key)) {
|
|
228
|
+
const found = [...this.index.keys()].filter((k) => k.startsWith(prefix) && kitMember(this.index, k, name)?.kind === kind);
|
|
229
|
+
this.directoryMembers.set(key, found.length === 1 ? `${found[0]}.${name}` : null);
|
|
230
|
+
}
|
|
231
|
+
const member = this.directoryMembers.get(key);
|
|
232
|
+
if (member)
|
|
233
|
+
return member;
|
|
234
|
+
}
|
|
235
|
+
// A module core's index exports as a namespace (`export * as Http from './http'`): the kit's type of that name.
|
|
236
|
+
const barrel = rel.endsWith('/index') || !rel.includes('/') ? coreBarrels(root).get(rel.split('/')[0]) : undefined;
|
|
237
|
+
return barrel && kitMember(this.index, barrel, name)?.kind === kind ? `${barrel}.${name}` : null;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* A core module or namespace imported under any name (`import * as utils from
|
|
241
|
+
* '../utils'`, `import { ios as iosUtils } from './native-helper'`): the kit
|
|
242
|
+
* type of its public path, `Utils` or `Utils.ios`, as core's index exports it.
|
|
243
|
+
*/
|
|
244
|
+
moduleOwner(e) {
|
|
245
|
+
const local = this.t.checker.getSymbolAtLocation(e);
|
|
246
|
+
const target = local && local.flags & ts.SymbolFlags.Alias ? this.t.checker.getAliasedSymbol(local) : local;
|
|
247
|
+
const decl = target?.valueDeclaration ?? target?.declarations?.[0];
|
|
248
|
+
// A module or namespace, or a module's constant object of functions (`export const ios = { … }`).
|
|
249
|
+
const constant = !!target && !!(target.flags & ts.SymbolFlags.Variable) && !!decl && ts.isVariableDeclaration(decl) && ts.isSourceFile(decl.parent.parent.parent);
|
|
250
|
+
if (!target || !(target.flags & ts.SymbolFlags.ValueModule || constant) || !decl || !isCoreDeclaration(decl))
|
|
251
|
+
return null;
|
|
252
|
+
const file = decl.getSourceFile().fileName;
|
|
253
|
+
const root = /^(.*[\\/]@nativescript[\\/]core)[\\/]/.exec(file)?.[1] ?? (packageOf(file)?.name === '@nativescript/core' ? packageOf(file).root : undefined);
|
|
254
|
+
const barrel = root ? coreBarrels(root).get(file.slice(root.length + 1).split(/[\\/]/)[0]) : undefined;
|
|
255
|
+
const candidates = ts.isSourceFile(decl) ? [barrel] : [barrel && `${barrel}.${target.name}`, constant ? undefined : target.name];
|
|
256
|
+
return candidates.find((c) => !!c && this.index.has(c)) ?? null;
|
|
257
|
+
}
|
|
258
|
+
/** A member the kit's class lacks that the program's own declarations give a core type (`addedDeclarations`). */
|
|
259
|
+
addedMember(owner, e) {
|
|
260
|
+
if (kitMember(this.index, owner, e.name.text))
|
|
261
|
+
return false;
|
|
262
|
+
return addedDeclarations(this.t.resolve(e.name)?.declarations ?? []);
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* A kit object's code as a receiver: a weak reference's target (`weakRef.get()`, typed present), or what a call Swift has
|
|
266
|
+
* as optional gives (`getColor().hex` of a helper returning null), is a TypeError's where it is gone.
|
|
267
|
+
*/
|
|
268
|
+
receiver(e, key) {
|
|
269
|
+
const checked = key !== undefined ? this.t.presentTypedReceiver(e) : null;
|
|
270
|
+
if (checked)
|
|
271
|
+
return checked;
|
|
272
|
+
const code = this.t.expr(e);
|
|
273
|
+
// A value the kit holds optional that the read leaves so: JavaScript's TypeError for the member read of it where it is missing.
|
|
274
|
+
const raw = this.t.marks.unwrapInner(code) ?? code, held = this.t.marks.markOf(raw);
|
|
275
|
+
if (key !== undefined && this.optionalKitValue(e) && !(held?.op === 'helper' && held.name === 'jsUnwrap')) {
|
|
276
|
+
return this.t.chainingLoose ? `${raw}?` : `${RT.jsUnwrap}(${raw}, ${JSON.stringify(key)})`;
|
|
277
|
+
}
|
|
278
|
+
const weak = ts.isCallExpression(e) && ts.isPropertyAccessExpression(e.expression) && ['get', 'deref'].includes(e.expression.name.text) && isKit(spelledType(this.t.typeOf(e.expression.expression).replace(/[?!]$/, '')), 'JSWeakRef');
|
|
279
|
+
return (weak && !this.t.typeOf(e).endsWith('?')) || this.t.givesUndefined(e) ? this.t.marks.unwrappedCode(code) : code;
|
|
280
|
+
}
|
|
281
|
+
/** The kit's method a call of `count` unlabeled arguments reaches, among overloads of its name (core's `bind(options)` beside the kit's own `bind(items:)`). */
|
|
282
|
+
callMember(owner, name, count) {
|
|
283
|
+
const all = [];
|
|
284
|
+
for (let t = this.index.get(owner); t; t = t.base ? this.index.get(t.base) : undefined)
|
|
285
|
+
all.push(...(t.members.get(name) ?? []));
|
|
286
|
+
const fits = (m) => {
|
|
287
|
+
const params = (m.params ?? '').trim() ? splitParams(m.params) : [];
|
|
288
|
+
return params.every((p) => /^_\s/.test(p.trim())) && params.filter((p) => !/=/.test(p)).length <= count && (count <= params.length || params.some((p) => /JSArray|JSRest/.test(p)));
|
|
289
|
+
};
|
|
290
|
+
return all.find((m) => m.kind !== 'func' || fits(m)) ?? all[0] ?? null;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* A property core's typings declare on a class whose implementation leaves it to each object (Transition's `name`,
|
|
294
|
+
* `presented`): the kit has no member for it, and the object's own property holds it, as script's does.
|
|
295
|
+
*/
|
|
296
|
+
ownPropertyOnly(owner, name) {
|
|
297
|
+
return ownPropertyOnly(this.index, owner, name, this.t.resolve(name));
|
|
298
|
+
}
|
|
299
|
+
member(owner, name, e) {
|
|
300
|
+
const m = kitMember(this.index, owner, name);
|
|
301
|
+
if (!m)
|
|
302
|
+
throw this.t.error(e, `${owner}.${name} (NativeScriptKit has no such member)`);
|
|
303
|
+
return m;
|
|
304
|
+
}
|
|
305
|
+
/** Whether the kit applies `name` by name on this view class (a property in its setProperty). */
|
|
306
|
+
isViewProperty(owner, name) {
|
|
307
|
+
// A style property applies to any view; the kit's classes each apply their own.
|
|
308
|
+
if (owner === 'Style')
|
|
309
|
+
return [...this.index.values()].some((t) => kitExtends(this.index, t.name, 'View') && t.props.has(name));
|
|
310
|
+
for (let t = this.index.get(owner); t; t = t.base ? this.index.get(t.base) : undefined)
|
|
311
|
+
if (t.props.has(name))
|
|
312
|
+
return true;
|
|
313
|
+
return false;
|
|
314
|
+
}
|
|
315
|
+
/** `object.name` of an `augmentedProperty` on a core-typed object, outside a chain: the read of its own property (`Any?`), or null. */
|
|
316
|
+
augmentedRead(e) {
|
|
317
|
+
if (ts.isOptionalChain(e) || this.constant(e) !== null || this.mixinOwn(e.name))
|
|
318
|
+
return null;
|
|
319
|
+
const owner = this.owner(e.expression) ?? this.inheritedOwner(e.expression, e.name);
|
|
320
|
+
if (!owner || owner.isStatic || (this.isView(owner.name) && this.isViewProperty(owner.name, e.name.text)))
|
|
321
|
+
return null;
|
|
322
|
+
if (!augmentedProperty(this.index, owner.name, e.name, this.t.resolve(e.name)))
|
|
323
|
+
return null;
|
|
324
|
+
return `${this.receiver(e.expression, e.name.text)}[jsKey: ${JSON.stringify(e.name.text)}]`;
|
|
325
|
+
}
|
|
326
|
+
/** A read of `target.name` where target is core-typed, or null when it is not. */
|
|
327
|
+
property(e) {
|
|
328
|
+
const constant = this.constant(e);
|
|
329
|
+
if (constant !== null)
|
|
330
|
+
return constant;
|
|
331
|
+
if (this.heldFunction(e.expression, e.name.text))
|
|
332
|
+
return null;
|
|
333
|
+
const owner = this.mixinOwn(e.name) ? null : (this.owner(e.expression) ?? this.inheritedOwner(e.expression, e.name));
|
|
334
|
+
if (!owner)
|
|
335
|
+
return null;
|
|
336
|
+
const t = this.t;
|
|
337
|
+
const name = e.name.text;
|
|
338
|
+
// `a?.b`: Swift chains only on an optional, and lenient code types none; as optional, valid for an implicitly unwrapped one too.
|
|
339
|
+
const tt = t.typeOf(e.expression);
|
|
340
|
+
const chained = !owner.isStatic && !!e.questionDotToken;
|
|
341
|
+
const recv = owner.isStatic ? owner.name : chained ? (tt.endsWith('?') ? `${t.expr(e.expression)}?` : `(${t.expr(e.expression)} as ${tt.replace(/!$/, '')}?)?`) : this.receiver(e.expression, name);
|
|
342
|
+
// Swift's chain, as script's, goes on to what follows (`a?.b.c`), reading the optional.
|
|
343
|
+
const continued = ts.isOptionalChain(e.parent) && e.parent.expression === e;
|
|
344
|
+
const inChain = chained || (ts.isOptionalChain(e) && !owner.isStatic);
|
|
345
|
+
// A kit without the member (`ios` is a Page's controller where the kit has it from core).
|
|
346
|
+
if (!owner.isStatic && NATIVE_MEMBERS.has(name) && this.isView(owner.name) && !kitMember(this.index, owner.name, name))
|
|
347
|
+
return `${recv}.nativeView`;
|
|
348
|
+
if (!owner.isStatic && this.isView(owner.name) && !kitMember(this.index, owner.name, name)) {
|
|
349
|
+
if (!this.isViewProperty(owner.name, name)) {
|
|
350
|
+
if (!augmentedProperty(this.index, owner.name, e.name, t.resolve(e.name)))
|
|
351
|
+
unappliedProperty(t, e.name, `${owner.name}.${name}`, 'NativeScriptKit');
|
|
352
|
+
else if (inChain)
|
|
353
|
+
throw t.error(e, `${owner.name}.${name} in an optional chain`);
|
|
354
|
+
else
|
|
355
|
+
return t.fromAnyCode(`${recv}[jsKey: ${JSON.stringify(name)}]`, t.typeOf(e), true);
|
|
356
|
+
}
|
|
357
|
+
return t.fromAnyCode(`${recv}.get(${JSON.stringify(name)})`, t.typeOf(e), true);
|
|
358
|
+
}
|
|
359
|
+
// A namespace of core's held as a value (`knownFolders.ios[name]()`): an object of its functions that take nothing, as script reads it.
|
|
360
|
+
if (owner.isStatic && !kitMember(this.index, owner.name, name) && this.index.has(`${owner.name}.${name}`)) {
|
|
361
|
+
const ns = `${owner.name}.${name}`;
|
|
362
|
+
const fns = [...(this.index.get(ns)?.members ?? [])].filter(([, ms]) => ms.some((m) => m.kind === 'func' && m.static && !(m.params ?? '').trim()));
|
|
363
|
+
return `JSObject([${fns.map(([fn]) => `(${JSON.stringify(fn)}, { (_: [Any?]) throws -> Any? in ${kitMember(this.index, ns, fn)?.throws ? 'try ' : ''}${ns}.${fn}() } as JSFunction)`).join(', ')}])`;
|
|
364
|
+
}
|
|
365
|
+
// `Color.equals` as a value: the class's own function of the name, not an instance method of it.
|
|
366
|
+
const own = (() => {
|
|
367
|
+
for (let x = this.index.get(owner.name); x; x = x.base ? this.index.get(x.base) : undefined) {
|
|
368
|
+
const f = x.members.get(name)?.find((y) => y.kind === 'func' && !!y.static === owner.isStatic);
|
|
369
|
+
if (f)
|
|
370
|
+
return f;
|
|
371
|
+
}
|
|
372
|
+
return undefined;
|
|
373
|
+
})();
|
|
374
|
+
if (!own && !owner.isStatic && (this.ownPropertyOnly(owner.name, e.name) || augmentedProperty(this.index, owner.name, e.name, t.resolve(e.name)))) {
|
|
375
|
+
if (inChain)
|
|
376
|
+
throw t.error(e, `${owner.name}.${name} in an optional chain`);
|
|
377
|
+
return t.fromAnyCode(`${recv}[jsKey: ${JSON.stringify(name)}]`, t.typeOf(e), true);
|
|
378
|
+
}
|
|
379
|
+
const m = own ?? this.member(owner.name, name, e);
|
|
380
|
+
if (inChain && continued)
|
|
381
|
+
return this.t.marks.memberOf(recv, '.', name);
|
|
382
|
+
// A method as a value (`Builder.load` given to `isFunction`): the function Swift has of it, adapted to the declared type.
|
|
383
|
+
const called = ts.isCallExpression(e.parent) && e.parent.expression === e;
|
|
384
|
+
if (m.kind === 'func' && !called && !inChain) {
|
|
385
|
+
const plain = (x) => x
|
|
386
|
+
.trim()
|
|
387
|
+
.replace(/^\((.*)\)!$/, '($1)?')
|
|
388
|
+
.replace(/!$/, '?');
|
|
389
|
+
const kitFn = `(${(m.params ?? '').trim()
|
|
390
|
+
? splitParams(m.params)
|
|
391
|
+
.map(kitParamType)
|
|
392
|
+
.map(plain)
|
|
393
|
+
.map((p) => (this.t.functionTypeParts(p) ? `@escaping ${p}` : p))
|
|
394
|
+
.join(', ')
|
|
395
|
+
: ''}) ${m.throws ? 'throws ' : ''}-> ${plain(m.type) || 'Void'}`;
|
|
396
|
+
return this.fromKit(`(${recv}.${name} as ${kitFn})`, kitFn, t.typeOf(e));
|
|
397
|
+
}
|
|
398
|
+
// A property the kit holds untyped, read as any value (`<any>style.borderColor` after `style.borderColor = hex`, which
|
|
399
|
+
// TypeScript narrows to the string assigned): what it holds, which a setter converted (a Color).
|
|
400
|
+
let outer = e.parent;
|
|
401
|
+
while (ts.isParenthesizedExpression(outer))
|
|
402
|
+
outer = outer.parent;
|
|
403
|
+
const untyped = (ts.isAsExpression(outer) || ts.isTypeAssertionExpression(outer)) && outer.type.kind === ts.SyntaxKind.AnyKeyword;
|
|
404
|
+
const read = isUntyped(spelledType(m.type.trim())) && untyped && ['String', 'Double', 'Bool'].includes(t.typeOf(e)) ? 'Any?' : t.typeOf(e);
|
|
405
|
+
const optional = !inChain && /[?!]$/.test(m.type.trim()) && !isUntyped(spelledType(read)) && !read.endsWith('?') && (t.readOptional(e) || (!t.lenient && t.states.nilKept(e)));
|
|
406
|
+
return this.fromKit(this.t.marks.memberOf(recv, '.', name), inChain ? m.type.replace(/[?!]?$/, '?') : m.type, optional ? optionalType(read) : read);
|
|
407
|
+
}
|
|
408
|
+
/** A constant core declares with a literal type (`CoreTypes.AnimationCurve.easeIn` is "easeIn"), as that literal. */
|
|
409
|
+
constant(e) {
|
|
410
|
+
const decl = this.t.resolve(e.name)?.declarations?.[0];
|
|
411
|
+
if (!decl || !isCoreDeclaration(decl) || !ts.isVariableDeclaration(decl) || !(ts.getCombinedNodeFlags(decl) & ts.NodeFlags.Const))
|
|
412
|
+
return null;
|
|
413
|
+
const type = this.t.checker.getTypeAtLocation(decl);
|
|
414
|
+
if (type.isStringLiteral())
|
|
415
|
+
return JSON.stringify(type.value);
|
|
416
|
+
if (type.isNumberLiteral())
|
|
417
|
+
return String(type.value);
|
|
418
|
+
return null;
|
|
419
|
+
}
|
|
420
|
+
/** `target.name = value` where target is core-typed. */
|
|
421
|
+
assign(left, value) {
|
|
422
|
+
if (this.heldFunction(left.expression, left.name.text))
|
|
423
|
+
return null;
|
|
424
|
+
const owner = this.mixinOwn(left.name) ? null : (this.owner(left.expression) ?? this.inheritedOwner(left.expression, left.name));
|
|
425
|
+
if (!owner)
|
|
426
|
+
return null;
|
|
427
|
+
const t = this.t;
|
|
428
|
+
const name = left.name.text;
|
|
429
|
+
const recv = owner.isStatic ? owner.name : this.receiver(left.expression, left.name.text);
|
|
430
|
+
if (!owner.isStatic && this.isView(owner.name) && (!kitMember(this.index, owner.name, name) || this.isViewProperty(owner.name, name))) {
|
|
431
|
+
if (!this.isViewProperty(owner.name, name)) {
|
|
432
|
+
if (augmentedProperty(this.index, owner.name, left.name, t.resolve(left.name)))
|
|
433
|
+
return `${recv}[jsKey: ${JSON.stringify(name)}] = ${t.coerce(value, 'Any?')}`;
|
|
434
|
+
unappliedProperty(t, left.name, `${owner.name}.${name}`, 'NativeScriptKit');
|
|
435
|
+
}
|
|
436
|
+
// Core's `set` runs the property's change handlers, whose errors are reported as core reports them.
|
|
437
|
+
return `${RT.jsReport} { try ${recv}.set(${JSON.stringify(name)}, ${t.coerce(value, 'Any?')}) }`;
|
|
438
|
+
}
|
|
439
|
+
if (!owner.isStatic && (this.ownPropertyOnly(owner.name, left.name) || augmentedProperty(this.index, owner.name, left.name, t.resolve(left.name))))
|
|
440
|
+
return `${recv}[jsKey: ${JSON.stringify(name)}] = ${t.coerce(value, 'Any?')}`;
|
|
441
|
+
const m = this.member(owner.name, name, left);
|
|
442
|
+
const assigned = (code) => this.t.marks.assignedCode(`${recv}.${name}`, code, !owner.isStatic && (t.receiverThrows(left.expression) || this.optionalKitValue(left.expression)));
|
|
443
|
+
// A kit member typed `Any?` holds what core reads as a plain script object (`TouchManager.animations`).
|
|
444
|
+
if (isUntyped(spelledType(m.type.trim())))
|
|
445
|
+
return assigned(this.scriptValue(value));
|
|
446
|
+
// Undefined where the kit holds a string, number or boolean: its zero, as core's own code assigning it was compiled.
|
|
447
|
+
const zero = { String: '""', Double: '0', Bool: 'false' }[m.type.trim()];
|
|
448
|
+
const nullish = value.kind === ts.SyntaxKind.NullKeyword || (ts.isIdentifier(value) && value.text === 'undefined');
|
|
449
|
+
if (zero && nullish)
|
|
450
|
+
return assigned(zero);
|
|
451
|
+
// Null where the kit holds an object maybe missing (`view.backgroundColor = null`): none.
|
|
452
|
+
if (nullish && /[?!]$/.test(m.type.trim()))
|
|
453
|
+
return assigned('nil');
|
|
454
|
+
return assigned(this.toKit(t.coerce(value, t.typeOf(left)), m.type));
|
|
455
|
+
}
|
|
456
|
+
/** A core member read through a class of the app or a plugin that extends a core class (`this.isPassThroughParentEnabled` in a GridLayout subclass). */
|
|
457
|
+
inheritedOwner(target, name) {
|
|
458
|
+
const c = this.t.checker;
|
|
459
|
+
const decl = c.getSymbolAtLocation(name)?.valueDeclaration;
|
|
460
|
+
if (!decl || !isCoreDeclaration(decl))
|
|
461
|
+
return null;
|
|
462
|
+
const cls = c.getNonNullableType(c.getTypeAtLocation(target)).getSymbol()?.valueDeclaration;
|
|
463
|
+
const root = cls && ts.isClassLike(cls) && !cls.getSourceFile().isDeclarationFile ? this.t.kitRootOf(cls) : null;
|
|
464
|
+
return root ? { name: root, isStatic: false } : null;
|
|
465
|
+
}
|
|
466
|
+
/** A member a mixin class declares: the extension it becomes has it by name. */
|
|
467
|
+
mixinOwn(name) {
|
|
468
|
+
const decl = this.t.checker.getSymbolAtLocation(name)?.valueDeclaration;
|
|
469
|
+
return !!decl && ts.isClassDeclaration(decl.parent) && !!this.t.mixinOf(this.t.checker.getSymbolAtLocation(decl.parent.name));
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* A member of an event data type (core's, or a framework's such as `ListViewItemTapEvent`)
|
|
473
|
+
* that the kit's EventData does not declare (`args.state`, `args.getX()`, `args.item`): the
|
|
474
|
+
* event's own object has it, read by name.
|
|
475
|
+
*/
|
|
476
|
+
eventMember(e) {
|
|
477
|
+
const c = this.t.checker;
|
|
478
|
+
const type = c.getNonNullableType(c.getTypeAtLocation(e.expression));
|
|
479
|
+
if (this.t.type(type, e.expression) !== 'EventData')
|
|
480
|
+
return false;
|
|
481
|
+
return !kitMember(this.index, 'EventData', e.name.text);
|
|
482
|
+
}
|
|
483
|
+
/** A call of a kit method, or a `new` of a kit class, that the kit declares `throws` (the kit generated from core throws as script does). */
|
|
484
|
+
throwingCall(e) {
|
|
485
|
+
if (ts.isNewExpression(e)) {
|
|
486
|
+
const sym = ts.isIdentifier(e.expression) ? this.t.resolve(e.expression) : undefined;
|
|
487
|
+
const decl = sym?.declarations?.[0];
|
|
488
|
+
if (!sym || !(sym.flags & ts.SymbolFlags.Class) || !isCoreDeclaration(decl) || this.t.compiledCounterpart(sym))
|
|
489
|
+
return false;
|
|
490
|
+
const name = coreSymbolName(sym);
|
|
491
|
+
// A color made of a string throws where the string is no color.
|
|
492
|
+
if (name === 'Color')
|
|
493
|
+
return (e.arguments ?? []).some((a) => this.t.typeOf(a) !== 'Double');
|
|
494
|
+
return (this.index.get(this.platformClass(name))?.members.get('init') ?? []).some((m) => m.throws);
|
|
495
|
+
}
|
|
496
|
+
// A function core's index exports (`fromObject`), as the kit compiled it.
|
|
497
|
+
if (ts.isIdentifier(e.expression)) {
|
|
498
|
+
const decl = this.t.resolve(e.expression)?.declarations?.[0];
|
|
499
|
+
if (!decl || !isCoreDeclaration(decl) || !ts.isFunctionDeclaration(decl))
|
|
500
|
+
return false;
|
|
501
|
+
// By its own name, whatever the import calls it (`bindingBuilder.getBindingOptions`, read as `__bindingBuilder_getBindingOptions`).
|
|
502
|
+
const name = decl.name?.text ?? e.expression.text;
|
|
503
|
+
const owned = this.moduleFunction(decl);
|
|
504
|
+
return owned ? !!kitMember(this.index, owned.slice(0, owned.lastIndexOf('.')), name)?.throws : this.throwingExports().has(name);
|
|
505
|
+
}
|
|
506
|
+
if (!ts.isPropertyAccessExpression(e.expression) || this.mixinOwn(e.expression.name))
|
|
507
|
+
return false;
|
|
508
|
+
// `super.initNativeView()`, `this.requestLayout()` in a program's class of a core one: the core class declaring the method.
|
|
509
|
+
const member = this.t.resolve(e.expression.name)?.declarations?.[0];
|
|
510
|
+
const declaring = member && isCoreDeclaration(member) && ts.isClassLike(member.parent) && member.parent.name ? member.parent.name.text : null;
|
|
511
|
+
const owner = this.owner(e.expression.expression)?.name ?? declaring;
|
|
512
|
+
if (owner && this.addedMember(owner, e.expression))
|
|
513
|
+
return true;
|
|
514
|
+
const m = owner ? this.callMember(owner, e.expression.name.text, e.arguments.length) : null;
|
|
515
|
+
// A property holding a function that throws (`on: ((String, …) throws -> Void)!`).
|
|
516
|
+
return !!m && (!!m.throws || (m.kind === 'var' && /\)\s*throws\s*->[^>]*\)?[?!]?$/.test(m.type)));
|
|
517
|
+
}
|
|
518
|
+
/** `signal.aborted`: a property of core's whose getter the kit compiled as throwing. */
|
|
519
|
+
throwingAccess(e) {
|
|
520
|
+
if (this.mixinOwn(e.name))
|
|
521
|
+
return false;
|
|
522
|
+
const owner = (this.owner(e.expression) ?? this.inheritedOwner(e.expression, e.name))?.name;
|
|
523
|
+
const m = owner ? kitMember(this.index, owner, e.name.text) : null;
|
|
524
|
+
if (m && !e.questionDotToken && this.optionalKitValue(e.expression))
|
|
525
|
+
return true;
|
|
526
|
+
// A function held optional, called: checked (see `call`).
|
|
527
|
+
if (m?.kind === 'var' && !m.params && ts.isCallExpression(e.parent) && e.parent.expression === e && /[?!]$/.test(m.type.trim()) && this.t.functionTypeParts(m.type.replace(/[?!]$/, '').replace(/^\((.*)\)$/, '$1')))
|
|
528
|
+
return true;
|
|
529
|
+
return m?.kind === 'var' && !!m.throws;
|
|
530
|
+
}
|
|
531
|
+
/** A kit property's value or method's result the kit holds optional, read where core's typings say present. */
|
|
532
|
+
kitNil(x) {
|
|
533
|
+
try {
|
|
534
|
+
x = ts.skipOuterExpressions(x, ts.OuterExpressionKinds.Parentheses);
|
|
535
|
+
if (ts.isCallExpression(x) && ts.isIdentifier(x.expression)) {
|
|
536
|
+
const result = this.moduleResult(this.t.resolve(x.expression)?.declarations?.[0]);
|
|
537
|
+
return (!!result &&
|
|
538
|
+
/[?!]$/.test(result.trim()) &&
|
|
539
|
+
!isUntyped(spelledType(result.trim())) &&
|
|
540
|
+
!this.t.functionTypeParts(result
|
|
541
|
+
.trim()
|
|
542
|
+
.replace(/[?!]$/, '')
|
|
543
|
+
.replace(/^\((.*)\)$/, '$1')));
|
|
544
|
+
}
|
|
545
|
+
const access = ts.isCallExpression(x) ? x.expression : x;
|
|
546
|
+
if (ts.isOptionalChain(x) || !ts.isPropertyAccessExpression(access) || this.mixinOwn(access.name))
|
|
547
|
+
return false;
|
|
548
|
+
const owner = this.owner(access.expression) ?? this.inheritedOwner(access.expression, access.name);
|
|
549
|
+
const m = !owner ? null : ts.isCallExpression(x) ? this.callMember(owner.name, access.name.text, x.arguments.length) : kitMember(this.index, owner.name, access.name.text);
|
|
550
|
+
if (!m || m.kind !== (ts.isCallExpression(x) ? 'func' : 'var'))
|
|
551
|
+
return false;
|
|
552
|
+
const k = m.type.trim();
|
|
553
|
+
return /[?!]$/.test(k) && !isUntyped(spelledType(k)) && !this.t.functionTypeParts(k.replace(/[?!]$/, '').replace(/^\((.*)\)$/, '$1'));
|
|
554
|
+
}
|
|
555
|
+
catch (e) {
|
|
556
|
+
rethrowUnlessRefused(e);
|
|
557
|
+
return false;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* A read of a core value the kit holds optional that gives it as it is: a module constant (`Application`), a static or
|
|
562
|
+
* member core's typings declare as an interface the kit has no type for (`Screen.mainScreen`, read as any value).
|
|
563
|
+
*/
|
|
564
|
+
optionalKitValue(x) {
|
|
565
|
+
while (ts.isParenthesizedExpression(x))
|
|
566
|
+
x = x.expression;
|
|
567
|
+
if (!this.t.lenient && !this.t.library && this.kitNil(x))
|
|
568
|
+
return true;
|
|
569
|
+
if (ts.isIdentifier(x)) {
|
|
570
|
+
const sym = this.t.resolve(x);
|
|
571
|
+
const decl = sym?.declarations?.[0];
|
|
572
|
+
if (!sym || !decl || !ts.isVariableDeclaration(decl) || !isCoreDeclaration(decl) || this.t.compiledCounterpart(sym))
|
|
573
|
+
return false;
|
|
574
|
+
return /\?$/.test(this.exportVarType(sym.name) ?? '');
|
|
575
|
+
}
|
|
576
|
+
// A kit method's optional result (`SplitView.getInstance()`, `SplitViewBase | null`), which a non-strict app's typings give present.
|
|
577
|
+
if (ts.isCallExpression(x) && ts.isPropertyAccessExpression(x.expression) && !x.expression.questionDotToken && !ts.isOptionalChain(x)) {
|
|
578
|
+
const c = x.expression;
|
|
579
|
+
const owner = this.mixinOwn(c.name) ? null : (this.owner(c.expression) ?? this.inheritedOwner(c.expression, c.name));
|
|
580
|
+
const m = owner ? this.callMember(owner.name, c.name.text, x.arguments.length) : null;
|
|
581
|
+
if (m?.kind !== 'func' ||
|
|
582
|
+
!/\?$/.test(m.type.trim()) ||
|
|
583
|
+
this.t.functionTypeParts(m.type
|
|
584
|
+
.trim()
|
|
585
|
+
.replace(/\?$/, '')
|
|
586
|
+
.replace(/^\((.*)\)$/, '$1')))
|
|
587
|
+
return false;
|
|
588
|
+
const read = this.t.typeOf(x);
|
|
589
|
+
return isUntyped(spelledType(read)) || read.endsWith('?');
|
|
590
|
+
}
|
|
591
|
+
if (!ts.isPropertyAccessExpression(x) || x.questionDotToken || ts.isOptionalChain(x))
|
|
592
|
+
return false;
|
|
593
|
+
const owner = this.mixinOwn(x.name) ? null : (this.owner(x.expression) ?? this.inheritedOwner(x.expression, x.name));
|
|
594
|
+
const m = owner ? kitMember(this.index, owner.name, x.name.text) : null;
|
|
595
|
+
if (m?.kind !== 'var' ||
|
|
596
|
+
!/\?$/.test(m.type.trim()) ||
|
|
597
|
+
this.t.functionTypeParts(m.type
|
|
598
|
+
.trim()
|
|
599
|
+
.replace(/\?$/, '')
|
|
600
|
+
.replace(/^\((.*)\)$/, '$1')))
|
|
601
|
+
return false;
|
|
602
|
+
// `fromKit` unwraps it where the read is of a type it converts to; what is read as any value, or optional, stays as the kit holds it.
|
|
603
|
+
const read = this.t.typeOf(x);
|
|
604
|
+
return isUntyped(spelledType(read)) || read.endsWith('?');
|
|
605
|
+
}
|
|
606
|
+
/** The type of a variable core's index exports, as the kit's top-level accessor gives it. */
|
|
607
|
+
exportVarType(name) {
|
|
608
|
+
return this.coreGlobal(name, 'var')?.type ?? null;
|
|
609
|
+
}
|
|
610
|
+
/** The functions the kit's index exports that throw. */
|
|
611
|
+
throwingExports() {
|
|
612
|
+
return new Set([...(this.index.get(KIT_GLOBALS)?.members ?? [])].filter(([, list]) => list.some((m) => m.exported && m.kind === 'func' && m.throws)).map(([n]) => n));
|
|
613
|
+
}
|
|
614
|
+
/** A call of a core function, its result as the declarations type it: one the kit compiled into its module enum, or one core's index exports. */
|
|
615
|
+
moduleCall(decl, code, tsType, e) {
|
|
616
|
+
const result = this.moduleResult(decl);
|
|
617
|
+
if (!result)
|
|
618
|
+
return code;
|
|
619
|
+
const kept = !!e && /[?!]$/.test(result.trim()) && !isUntyped(spelledType(tsType)) && !tsType.endsWith('?') && !this.t.lenient && this.t.states.nilKept(e);
|
|
620
|
+
return this.fromKit(code, result, kept ? optionalType(tsType) : tsType);
|
|
621
|
+
}
|
|
622
|
+
/** The kit's result type of a core function an app calls by name: one compiled into its module's enum, or one core's index exports. */
|
|
623
|
+
moduleResult(decl) {
|
|
624
|
+
if (!decl || !ts.isFunctionDeclaration(decl) || !decl.name || !isCoreDeclaration(decl))
|
|
625
|
+
return undefined;
|
|
626
|
+
const owned = this.moduleFunction(decl);
|
|
627
|
+
const m = owned && kitMember(this.index, owned.slice(0, owned.lastIndexOf('.')), decl.name.text);
|
|
628
|
+
return m ? m.type : !owned ? this.exportSignature(decl.name.text)?.result : undefined;
|
|
629
|
+
}
|
|
630
|
+
/** The kit's forwarder of a function core's index exports: its parameters and result. */
|
|
631
|
+
exportSignature(name) {
|
|
632
|
+
const m = this.coreGlobal(name, 'func');
|
|
633
|
+
return m ? { params: (m.params ?? '').trim() ? splitParams(m.params) : [], result: m.type } : null;
|
|
634
|
+
}
|
|
635
|
+
/** The arguments of a call of a function core's index exports, as the kit's forwarder takes them (`addWeakEventListener(…, target.onEvent, …)`). */
|
|
636
|
+
exportArgs(e, decl, args) {
|
|
637
|
+
if (!ts.isFunctionDeclaration(decl) || !decl.name || !isCoreDeclaration(decl))
|
|
638
|
+
return args;
|
|
639
|
+
// Or one compiled into its module's enum (`fpsMeter.addCallback`): that member's parameters.
|
|
640
|
+
const owned = this.moduleFunction(decl);
|
|
641
|
+
const member = owned ? kitMember(this.index, owned.slice(0, owned.lastIndexOf('.')), decl.name.text) : null;
|
|
642
|
+
const params = owned ? (member?.params?.trim() ? splitParams(member.params) : null) : this.exportSignature(decl.name.text)?.params;
|
|
643
|
+
// A rest parameter (`makeValidator(...values)`), which the kit takes as one array.
|
|
644
|
+
const restAt = decl.parameters.findIndex((p) => !!p.dotDotDotToken);
|
|
645
|
+
const restType = params && restAt >= 0 && restAt === params.length - 1 ? /:\s*(JSArray<.*>)\s*$/.exec(params[restAt])?.[1] : undefined;
|
|
646
|
+
if (restType && args.length >= restAt && !e.arguments.some(ts.isSpreadElement))
|
|
647
|
+
return [...args.slice(0, restAt), `${restType}([${args.slice(restAt).join(', ')}])`];
|
|
648
|
+
if (!params || params.length < e.arguments.length)
|
|
649
|
+
return args;
|
|
650
|
+
const out = [...args];
|
|
651
|
+
this.matchKitParams(e, params, out);
|
|
652
|
+
return out;
|
|
653
|
+
}
|
|
654
|
+
/** Whether `target.method` is a method the kit declares on target's class (an optional call of it is a plain call). */
|
|
655
|
+
isKitMethod(callee) {
|
|
656
|
+
if (!ts.isPropertyAccessExpression(callee))
|
|
657
|
+
return false;
|
|
658
|
+
const owner = this.owner(callee.expression);
|
|
659
|
+
return !!owner && !owner.isStatic && kitMember(this.index, owner.name, callee.name.text)?.kind === 'func';
|
|
660
|
+
}
|
|
661
|
+
/** `target.method(args)` where target is core-typed, or `new CoreClass(args)`. */
|
|
662
|
+
call(e) {
|
|
663
|
+
if (!ts.isPropertyAccessExpression(e.expression))
|
|
664
|
+
return null;
|
|
665
|
+
// A factory in a core namespace is the kit class it builds.
|
|
666
|
+
if (e.expression.getText() === 'CoreTypes.AnimationCurve.cubicBezier' && isCoreDeclaration(this.t.resolve(e.expression.name)?.declarations?.[0])) {
|
|
667
|
+
return `CubicBezierAnimationCurve(${e.arguments.map((a) => this.t.coerce(a, 'Double')).join(', ')})`;
|
|
668
|
+
}
|
|
669
|
+
const owner = this.mixinOwn(e.expression.name) ? null : (this.owner(e.expression.expression) ?? this.inheritedOwner(e.expression.expression, e.expression.name));
|
|
670
|
+
if (!owner)
|
|
671
|
+
return null;
|
|
672
|
+
const t = this.t;
|
|
673
|
+
const name = e.expression.name.text;
|
|
674
|
+
// A method the app's own type adds to a core one (`View & { addChild(view: View): void }`): called by name, as script calls it.
|
|
675
|
+
if (this.addedMember(owner.name, e.expression)) {
|
|
676
|
+
const target = owner.isStatic ? owner.name : t.expr(e.expression.expression);
|
|
677
|
+
return this.fromKit(`${RT.jsCallMethod}(${target}, ${JSON.stringify(name)}${e.arguments.map((a) => `, ${t.coerce(a, 'Any?')}`).join('')})`, 'Any?', t.typeOf(e));
|
|
678
|
+
}
|
|
679
|
+
// `toString()` of a kit object without its own: as script converts it.
|
|
680
|
+
if (name === 'toString' && !owner.isStatic && !e.arguments.length && !kitMember(this.index, owner.name, name))
|
|
681
|
+
return `${RT.jsToString}(${t.expr(e.expression.expression)})`;
|
|
682
|
+
this.member(owner.name, name, e.expression);
|
|
683
|
+
const m = this.callMember(owner.name, name, e.arguments.length);
|
|
684
|
+
// `this.hud?.animate(…)`: nothing runs where the object is missing.
|
|
685
|
+
const chained = !owner.isStatic && !!e.expression.questionDotToken && t.typeOf(e.expression.expression).endsWith('?');
|
|
686
|
+
// A namespace of core's by its module (`path.join`), which a local of the name (`path: string`) would shadow.
|
|
687
|
+
const recv = owner.isStatic ? (/^[a-z]/.test(owner.name) ? `NativeScriptKit.${owner.name}` : owner.name) : chained ? `${t.expr(e.expression.expression)}?` : this.receiver(e.expression.expression, name);
|
|
688
|
+
if (name === 'navigate' && kitExtends(this.index, owner.name, 'Frame'))
|
|
689
|
+
return this.navigate(recv, e);
|
|
690
|
+
const listener = this.listenerArgs(e, m);
|
|
691
|
+
// A kit method takes the arguments given; its own defaults stand for the rest.
|
|
692
|
+
// A last argument spread into the kit's rest parameter is placed below, as the array it is.
|
|
693
|
+
const spreadLast = e.arguments.length > 0 && ts.isSpreadElement(e.arguments[e.arguments.length - 1]);
|
|
694
|
+
const args = listener ?? (SCRIPT_OBJECTS.has(name) && this.isView(owner.name) ? e.arguments.map((a, k) => this.scriptValue(a, (m.params ?? '').trim() ? kitParamType(splitParams(m.params)[k] ?? '') : undefined)) : spreadLast ? [...t.args(e, e.arguments.length - 1), ''] : t.args(e, e.arguments.length));
|
|
695
|
+
// A property holding a function (`Application.on`, which core assigns in its constructor): its parameters are the function type's,
|
|
696
|
+
// each of them passed, as a Swift function value has no defaults.
|
|
697
|
+
const held = m.kind === 'var' && !m.params ? t.functionTypeParts(m.type.replace(/[?!]$/, '').replace(/^\((.*)\)$/, '$1')) : null;
|
|
698
|
+
// A closure for a kit parameter that cannot throw (`dispatchToMainThread`) reports what it throws, as a handler does.
|
|
699
|
+
const kitParams = (m.params ?? '').trim() ? splitParams(m.params) : held ? held.params.map((p) => `_ p: ${p}`) : [];
|
|
700
|
+
e.arguments.forEach((a, k) => {
|
|
701
|
+
const p = kitParams[k];
|
|
702
|
+
if (!listener && p && (ts.isArrowFunction(a) || ts.isFunctionExpression(a)) && !a.parameters.length && (t.checker.getContextualType(a)?.getCallSignatures()[0]?.getParameters().length ?? 0) === 0 && /->/.test(p) && !/\bthrows\b/.test(p) && /\(\s*\)\s*->/.test(p))
|
|
703
|
+
args[k] = t.callback(a);
|
|
704
|
+
});
|
|
705
|
+
const packed = !listener && this.matchKitParams(e, kitParams, args);
|
|
706
|
+
// A rest parameter (`join(...paths)`), which the kit takes as one array.
|
|
707
|
+
const restAt = t.checker.getResolvedSignature(e)?.getDeclaration()?.parameters?.findIndex((p) => !!p.dotDotDotToken) ?? -1;
|
|
708
|
+
const restType = restAt >= 0 ? /:\s*(JSArray<.*>)\s*$/.exec(kitParams[restAt] ?? '')?.[1] : undefined;
|
|
709
|
+
if (restType && !listener && !packed && !e.arguments.some(ts.isSpreadElement) && args.length >= restAt)
|
|
710
|
+
args.splice(restAt, args.length - restAt, `${restType}([${args.slice(restAt).join(', ')}])`);
|
|
711
|
+
// One array spread into the rest (`path.join(...parts)`): the array the kit's rest parameter is.
|
|
712
|
+
const spread = e.arguments[restAt];
|
|
713
|
+
if (restType && !listener && !packed && e.arguments.length === restAt + 1 && spread && ts.isSpreadElement(spread))
|
|
714
|
+
args.splice(restAt, args.length - restAt, t.coerce(spread.expression, restType));
|
|
715
|
+
// Fewer arguments than core declares (lenient code's `Builder.parseMultipleTemplates(value)`): undefined for each optional one left out.
|
|
716
|
+
if (!held && !listener && !packed && !e.arguments.some(ts.isSpreadElement))
|
|
717
|
+
while (args.length < kitParams.length && !kitParams[args.length].includes('=') && /[?!]\s*$/.test(kitParams[args.length]))
|
|
718
|
+
args.push('nil');
|
|
719
|
+
if (held) {
|
|
720
|
+
// A rest parameter of the function core implements behind the overloads its typings declare (`prompt(...args)` for `prompt(options)`).
|
|
721
|
+
if (held.rest >= 0 && !listener && !packed) {
|
|
722
|
+
while (args.length < held.rest)
|
|
723
|
+
args.push('nil');
|
|
724
|
+
args.splice(held.rest, args.length - held.rest, t.packed(e.arguments.slice(held.rest), held.params[held.rest]));
|
|
725
|
+
}
|
|
726
|
+
while (args.length < held.params.length && /[?!]$/.test(held.params[args.length]))
|
|
727
|
+
args.push('nil');
|
|
728
|
+
// Held optional (core assigns it later): V8's "is not a function" where it is missing.
|
|
729
|
+
const fn = /[?!]$/.test(m.type.trim()) ? `${RT.jsCallable}(${recv}.${name}, ${JSON.stringify(e.expression.getText().replace(/\s+/g, ' '))})` : `${recv}.${name}`;
|
|
730
|
+
return this.fromKit(this.t.marks.leading(`${fn}(${args.join(', ')})`, recv), held.result, t.typeOf(e));
|
|
731
|
+
}
|
|
732
|
+
const read = t.typeOf(e), kept = /[?!]$/.test(m.type.trim()) && !isUntyped(spelledType(read)) && !read.endsWith('?') && !t.lenient && t.states.nilKept(e);
|
|
733
|
+
return this.fromKit(this.t.marks.leading(`${recv}.${name}(${args.join(', ')})`, recv), chained && m.type !== 'Void' ? m.type.replace(/\??$/, '?') : m.type, kept ? optionalType(read) : read);
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Arguments as the kit's own parameters take them, where its Swift types differ from the
|
|
737
|
+
* declarations' (the kit generated from core): a function as the kit's function type
|
|
738
|
+
* (`on(event, (data) => …)` for `(EventData?) throws -> Void`), and the arguments from a
|
|
739
|
+
* rest parameter on (`closeModal('done')`) as the array the kit's rest parameter is. Returns whether it packed a rest
|
|
740
|
+
* parameter's arguments.
|
|
741
|
+
*/
|
|
742
|
+
matchKitParams(e, kitParams, args) {
|
|
743
|
+
const t = this.t;
|
|
744
|
+
const decl = t.checker.getResolvedSignature(e)?.getDeclaration();
|
|
745
|
+
const declared = decl && !ts.isJSDocSignature(decl) ? decl.parameters : undefined;
|
|
746
|
+
let packed = false;
|
|
747
|
+
kitParams.forEach((p, k) => {
|
|
748
|
+
const type = kitParamType(p);
|
|
749
|
+
// `...args: any` the kit compiled as one untyped parameter, which the function reads as the array script passes;
|
|
750
|
+
// or a method reading `arguments`, which takes them all so.
|
|
751
|
+
// Not where the kit spreads the rest over parameters of its own (`showModal(_ __b0: Any?, _ __b1: Any?)`).
|
|
752
|
+
const wholeRest = type === 'JSArray<Any?>' || (isUntyped(spelledType(type)) && k === kitParams.length - 1 && !/^_\s+__b\d/.test(p.trim()));
|
|
753
|
+
if ((declared?.[k]?.dotDotDotToken && wholeRest) || (k === 0 && kitParams.length === 1 && /^_ __arguments: JSArray<Any\?>$/.test(p.trim()))) {
|
|
754
|
+
args.splice(k, args.length - k, `JSArray<Any?>([${e.arguments
|
|
755
|
+
.slice(k)
|
|
756
|
+
.map((a) => t.coerce(a, 'Any?'))
|
|
757
|
+
.join(', ')}])`);
|
|
758
|
+
packed = true;
|
|
759
|
+
return;
|
|
760
|
+
}
|
|
761
|
+
const a = e.arguments[k];
|
|
762
|
+
// A typed array where the kit erased its element type (`VirtualArray<number>.load(index, items)`): its elements as any value.
|
|
763
|
+
if (a && !ts.isSpreadElement(a) && /^JSArray<Any\?>[?!]?$/.test(type) && /^JSArray<.+>$/.test(t.typeOf(a)) && t.typeOf(a) !== 'JSArray<Any?>') {
|
|
764
|
+
const loose = t.loose(a) && t.looseTolerated(a);
|
|
765
|
+
args[k] = t.untypedArray(loose ? `${t.expr(a)} as ${t.typeOf(a)}?` : t.expr(a), t.typeOf(a), type, loose) ?? (loose ? `(${t.expr(a)} as ${t.typeOf(a)}?).map { JSArray<Any?>($0.storage.map { $0 as Any? }) }` : `JSArray<Any?>(${t.expr(a)}.storage.map { $0 as Any? })`);
|
|
766
|
+
return;
|
|
767
|
+
}
|
|
768
|
+
// Code without null checks: undefined or null where the kit takes a value (`addWeakEventListener(source, name, undefined, target)`),
|
|
769
|
+
// the TypeError of its first use; a string, number or boolean where the kit takes another, converted as script converts it.
|
|
770
|
+
if (a && t.lenientApp && !ts.isSpreadElement(a)) {
|
|
771
|
+
let bare = a;
|
|
772
|
+
while (ts.isParenthesizedExpression(bare) || ts.isAsExpression(bare) || ts.isTypeAssertionExpression(bare))
|
|
773
|
+
bare = bare.expression;
|
|
774
|
+
if ((bare.kind === ts.SyntaxKind.NullKeyword || (ts.isIdentifier(bare) && bare.text === 'undefined')) && !/[?!]$/.test(type) && !['String', 'Double', 'Bool', 'Any?'].includes(type)) {
|
|
775
|
+
args[k] = this.t.marks.tryCode(`${RT.jsRequired}(nil as ${optionalType(type.replace(/^@escaping /, ''))}, ${JSON.stringify(p.trim().split(/[\s:]+/)[1] ?? 'argument')})`);
|
|
776
|
+
return;
|
|
777
|
+
}
|
|
778
|
+
const own = t.typeOf(a);
|
|
779
|
+
const convert = { String: RT.jsToString, Double: RT.jsToNumber, Bool: RT.jsTruthy };
|
|
780
|
+
if (convert[type] && convert[own] && own !== type) {
|
|
781
|
+
args[k] = `${convert[type]}(${t.coerce(a, own)})`;
|
|
782
|
+
return;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
// An untyped value where the kit's parameter has a type (`releaseNativeObject(obj as any)` for an `NSObject!`): read as it.
|
|
786
|
+
if (a && !ts.isSpreadElement(a) && !/->/.test(type) && !isUntyped(spelledType(type)) && isUntyped(spelledType(t.typeOf(a)))) {
|
|
787
|
+
args[k] = t.coerce(a, type.replace(/!$/, '?'));
|
|
788
|
+
return;
|
|
789
|
+
}
|
|
790
|
+
if (a && /->/.test(type) && (ts.isArrowFunction(a) || ts.isFunctionExpression(a) || ts.isIdentifier(a) || ts.isPropertyAccessExpression(a) || (ts.isCallExpression(a) && /->/.test(t.typeOf(a))))) {
|
|
791
|
+
// An optional function parameter (`callback: ((Any?) throws -> Void)?`) takes a closure as the function it wraps.
|
|
792
|
+
const plain = type.replace(/^\((.*)\)[?!]$/, '$1');
|
|
793
|
+
const fn = t.functionTypeParts(plain);
|
|
794
|
+
if ((ts.isArrowFunction(a) || ts.isFunctionExpression(a)) && fn) {
|
|
795
|
+
args[k] = this.closureArgument(a, plain);
|
|
796
|
+
}
|
|
797
|
+
else {
|
|
798
|
+
const own = t.typeOf(a);
|
|
799
|
+
args[k] = /->/.test(own) && own.replace(/^\((.*)\)$/, '$1') !== type ? t.convertPlaced(a, own, type) : t.coerce(a, type);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
});
|
|
803
|
+
return packed;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* `on`/`off`/`once` with a named function: Swift closures have no identity,
|
|
807
|
+
* so the kit matches a listener by key, here the declaration the function
|
|
808
|
+
* comes from. Two closures from one declaration (one per instance) share it.
|
|
809
|
+
*/
|
|
810
|
+
listenerArgs(e, m) {
|
|
811
|
+
const name = e.expression.name.text;
|
|
812
|
+
if (!['on', 'once', 'off', 'addEventListener', 'removeEventListener'].includes(name) || !/\bkey: String\?/.test(m.params ?? ''))
|
|
813
|
+
return null;
|
|
814
|
+
const [event, callback, thisArg] = e.arguments;
|
|
815
|
+
if (!event || !callback)
|
|
816
|
+
return null;
|
|
817
|
+
const t = this.t;
|
|
818
|
+
const sym = ts.isIdentifier(callback) || ts.isPropertyAccessExpression(callback) ? t.resolve(ts.isIdentifier(callback) ? callback : callback.name) : undefined;
|
|
819
|
+
const decl = sym?.valueDeclaration;
|
|
820
|
+
// Only a function with one identity per declaration: a parameter or a reassigned variable holds any function.
|
|
821
|
+
const named = decl && (ts.isFunctionDeclaration(decl) || ts.isMethodDeclaration(decl) || (ts.isPropertyDeclaration(decl) && !!decl.initializer && ts.isArrowFunction(decl.initializer)) || (ts.isVariableDeclaration(decl) && !!(decl.parent.flags & ts.NodeFlags.Const) && !!decl.initializer && (ts.isArrowFunction(decl.initializer) || ts.isFunctionExpression(decl.initializer))));
|
|
822
|
+
if (!decl || !named)
|
|
823
|
+
return null;
|
|
824
|
+
const key = `${decl.getSourceFile().fileName.split('/').pop()}:${decl.getStart()}`;
|
|
825
|
+
return [t.str(event), t.coerce(callback, '(EventData) throws -> Void'), thisArg ? t.coerce(thisArg, 'Any?') : 'nil', `key: ${JSON.stringify(key)}`];
|
|
826
|
+
}
|
|
827
|
+
construct(e) {
|
|
828
|
+
const code = this.constructed(e);
|
|
829
|
+
// A local of the class's name (`var StackLayout = new sp.StackLayout()`) hides the kit's class: named through the kit.
|
|
830
|
+
const name = code && /^([A-Z]\w*)\(/.exec(code)?.[1];
|
|
831
|
+
const local = name ? this.t.checker.resolveName(name, e, ts.SymbolFlags.Value, false)?.valueDeclaration : undefined;
|
|
832
|
+
return local && (ts.isVariableDeclaration(local) || ts.isParameter(local)) && !local.getSourceFile().isDeclarationFile ? `NativeScriptKit.${code}` : code;
|
|
833
|
+
}
|
|
834
|
+
constructed(e) {
|
|
835
|
+
const sym = this.t.resolve(e.expression);
|
|
836
|
+
if (!sym || !isCoreDeclaration(sym.declarations?.[0]) || this.t.compiledCounterpart(sym))
|
|
837
|
+
return null;
|
|
838
|
+
const t = this.t;
|
|
839
|
+
const args = e.arguments ?? ts.factory.createNodeArray();
|
|
840
|
+
const className = coreSymbolName(sym);
|
|
841
|
+
let kitName = this.platformClass(className);
|
|
842
|
+
// A class of a namespace (`Trace.DefaultErrorHandler`), nested in the kit as in core.
|
|
843
|
+
if (!this.index.has(kitName)) {
|
|
844
|
+
const path = [sym.name];
|
|
845
|
+
let p = sym.parent;
|
|
846
|
+
for (; p && p.flags & ts.SymbolFlags.Module && !ts.isSourceFile(p.valueDeclaration ?? p.declarations[0]); p = p.parent)
|
|
847
|
+
path.unshift(p.name);
|
|
848
|
+
// A module core's index exports as a namespace (`export * as Trace from './trace'`): its public name.
|
|
849
|
+
const file = p?.valueDeclaration && ts.isSourceFile(p.valueDeclaration) ? p.valueDeclaration.fileName : undefined;
|
|
850
|
+
const root = file && /^(.*[\\/]@nativescript[\\/]core)[\\/]/.exec(file)?.[1];
|
|
851
|
+
const barrel = root ? coreBarrels(root).get(file.slice(root.length + 1).split(/[\\/]/)[0]) : undefined;
|
|
852
|
+
if (barrel)
|
|
853
|
+
path.unshift(barrel);
|
|
854
|
+
if (path.length > 1 && this.index.has(path.join('.')))
|
|
855
|
+
kitName = path.join('.');
|
|
856
|
+
}
|
|
857
|
+
if (!this.index.has(kitName))
|
|
858
|
+
throw t.error(e, `new ${className} (NativeScriptKit has no such class)`);
|
|
859
|
+
// Core's constructor takes its arguments as a rest parameter; numbers never make it throw.
|
|
860
|
+
if (sym.name === 'Color') {
|
|
861
|
+
const list = `JSArray<Any?>([${args.map((a) => t.coerce(a, 'Any?')).join(', ')}])`;
|
|
862
|
+
// A string may not be a color, which throws as script's constructor does.
|
|
863
|
+
return args.some((a) => t.typeOf(a) !== 'Double') ? `Color(${list})` : `(try! Color(${list}))`;
|
|
864
|
+
}
|
|
865
|
+
if (sym.name === 'Animation')
|
|
866
|
+
return `Animation(${args.map((a) => this.scriptValue(a)).join(', ')})`;
|
|
867
|
+
const inits = (this.index.get(kitName)?.members.get('init') ?? []).map((m) => ((m.params ?? '').trim() ? splitTopLevel(m.params) : []));
|
|
868
|
+
// A constructor reading `arguments`, which the kit's takes as the one array script passes.
|
|
869
|
+
if (inits.length === 1 && inits[0].length === 1 && /^_ __arguments: JSArray<Any\?>$/.test(inits[0][0].trim()))
|
|
870
|
+
return `${kitName}(${t.packed(args, 'JSArray<Any?>')})`;
|
|
871
|
+
const given = this.kitInitArgs(kitName, args);
|
|
872
|
+
return `${kitName}(${(given ?? t.args(e)).join(', ')})`;
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* `require('@nativescript/core/ui/animation').fn(args)`: the function the kit compiled into that module's enum
|
|
876
|
+
* (`Core_ui_animation_index`), its arguments as it takes them; null where the call is not one of a core module.
|
|
877
|
+
*/
|
|
878
|
+
requiredModuleCall(e) {
|
|
879
|
+
if (!ts.isPropertyAccessExpression(e.expression))
|
|
880
|
+
return null;
|
|
881
|
+
let base = e.expression.expression;
|
|
882
|
+
while (ts.isParenthesizedExpression(base) || ts.isAsExpression(base) || ts.isTypeAssertionExpression(base))
|
|
883
|
+
base = base.expression;
|
|
884
|
+
if (!ts.isCallExpression(base) || !ts.isIdentifier(base.expression) || base.expression.text !== 'require' || !base.arguments[0] || !ts.isStringLiteral(base.arguments[0]))
|
|
885
|
+
return null;
|
|
886
|
+
const path = /^@nativescript\/core\/(.+)$/.exec(base.arguments[0].text)?.[1];
|
|
887
|
+
if (!path)
|
|
888
|
+
throw this.t.error(base, `require('${base.arguments[0].text}') of a module other than core's`);
|
|
889
|
+
const name = e.expression.name.text;
|
|
890
|
+
const owner = [`Core_${path}_index`, `Core_${path}`].map((x) => x.replace(/\W/g, '_')).find((x) => kitMember(this.index, x, name)?.kind === 'func');
|
|
891
|
+
if (!owner)
|
|
892
|
+
throw this.t.error(e, `require('${base.arguments[0].text}').${name}, which the kit has no function of`);
|
|
893
|
+
const m = kitMember(this.index, owner, name);
|
|
894
|
+
const params = (m.params ?? '').trim() ? splitParams(m.params).map(kitParamType) : [];
|
|
895
|
+
const args = e.arguments.map((a, k) => this.t.coerce(a, (params[k] ?? 'Any?').replace(/^@escaping /, '').replace(/!$/, '?')));
|
|
896
|
+
return this.fromKit(this.t.marks.tryIf(m.throws, `${owner}.${name}(${args.join(', ')})`), m.type, this.t.typeOf(e));
|
|
897
|
+
}
|
|
898
|
+
/** The arguments as an initializer of the kit's class takes them (`ImageSource(_ nativeSource: UIImage!)` for core's `nativeSource?: any`), or null. */
|
|
899
|
+
kitInitArgs(kitName, args) {
|
|
900
|
+
const t = this.t;
|
|
901
|
+
const params = (this.index.get(kitName)?.members.get('init') ?? []).map((m) => ((m.params ?? '').trim() ? splitTopLevel(m.params) : [])).find((ps) => ps.length >= args.length && !args.some(ts.isSpreadElement));
|
|
902
|
+
if (!params || !args.length || !params.every((p) => p.includes(':')))
|
|
903
|
+
return null;
|
|
904
|
+
return args.map((a, k) => {
|
|
905
|
+
const p = params[k];
|
|
906
|
+
const label = p.slice(0, p.indexOf(':')).trim().split(/\s+/)[0];
|
|
907
|
+
const type = p
|
|
908
|
+
.slice(p.indexOf(':') + 1)
|
|
909
|
+
.replace(/=.*$/, '')
|
|
910
|
+
.trim()
|
|
911
|
+
.replace(/^@escaping\s+/, '')
|
|
912
|
+
.replace(/!$/, '?');
|
|
913
|
+
// An optional function parameter takes the closure as the function it wraps.
|
|
914
|
+
const fnType = type.replace(/^\((.*)\)\?$/, '$1');
|
|
915
|
+
return `${label === '_' ? '' : `${label}: `}${(ts.isArrowFunction(a) || ts.isFunctionExpression(a)) && t.functionTypeParts(fnType) ? this.closureArgument(a, fnType) : t.coerce(a, type)}`;
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* A closure passed where the kit takes a function of a known Swift type: the type's parameters past those the closure
|
|
920
|
+
* declares, and, where core's lenient types differ from the app's (`(ParserEvent?) throws -> Void` for `(e: ParserEvent) => void`), adapted.
|
|
921
|
+
*/
|
|
922
|
+
closureArgument(a, type) {
|
|
923
|
+
const t = this.t;
|
|
924
|
+
const want = t.functionTypeParts(type);
|
|
925
|
+
t.closureSlots.set(a, want.params);
|
|
926
|
+
try {
|
|
927
|
+
const code = t.coerce(a, type);
|
|
928
|
+
const own = t.typeOf(a);
|
|
929
|
+
const have = t.functionTypeParts(own.replace(/^\((.*)\)[?!]$/, '$1'));
|
|
930
|
+
return have && have.params.length === want.params.length && own.replace(/^\((.*)\)[?!]$/, '$1') !== type.replace(/^\((.*)\)[?!]$/, '$1') ? t.convert(code, own, type) : code;
|
|
931
|
+
}
|
|
932
|
+
finally {
|
|
933
|
+
t.closureSlots.delete(a);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
/** `frame.navigate({ create: () => page })`: the kit builds what `create` returns. */
|
|
937
|
+
navigate(recv, e) {
|
|
938
|
+
const entry = e.arguments[0];
|
|
939
|
+
if (!entry)
|
|
940
|
+
throw this.t.error(e, 'frame.navigate without an entry');
|
|
941
|
+
// A function making the page, which core calls for it: its result is the page.
|
|
942
|
+
const factory = (code) => `({ (_: [Any?]) throws -> Any? in try (${code})() } as JSFunction)`;
|
|
943
|
+
if (ts.isArrowFunction(entry) || ts.isFunctionExpression(entry))
|
|
944
|
+
return `${recv}.navigate(${factory(this.t.expr(entry))})`;
|
|
945
|
+
// A module name, or an entry held in a variable: as script gives it, its `create` boxed as script calls it.
|
|
946
|
+
if (!ts.isObjectLiteralExpression(entry))
|
|
947
|
+
return `${recv}.navigate(${this.t.coerce(entry, 'Any?')})`;
|
|
948
|
+
// Core reads the entry as script gives it: `create` a function it calls for the page, the rest plain values.
|
|
949
|
+
const fields = entry.properties.map((p) => {
|
|
950
|
+
if (ts.isShorthandPropertyAssignment(p))
|
|
951
|
+
return p.name.text === 'create' ? `("create", ${factory(this.t.expr(p.name))})` : `(${JSON.stringify(p.name.text)}, ${this.t.coerce(p.name, 'Any?')})`;
|
|
952
|
+
if (!ts.isPropertyAssignment(p))
|
|
953
|
+
throw this.t.error(p, `the navigation entry's ${p.name?.getText()}`);
|
|
954
|
+
const name = p.name.getText().replace(/^['"]|['"]$/g, '');
|
|
955
|
+
if (name !== 'create')
|
|
956
|
+
return `(${JSON.stringify(name)}, ${this.scriptValue(p.initializer)})`;
|
|
957
|
+
return `("create", ${factory(this.t.expr(p.initializer))})`;
|
|
958
|
+
});
|
|
959
|
+
return `${recv}.navigate(JSObject([${fields.join(', ')}]))`;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* An argument core reads as a plain script object (an animation definition):
|
|
963
|
+
* literals become JavaScript objects and arrays, whatever their declared type.
|
|
964
|
+
*/
|
|
965
|
+
scriptValue(e, kitType) {
|
|
966
|
+
if (ts.isObjectLiteralExpression(e)) {
|
|
967
|
+
const entry = (p) => {
|
|
968
|
+
if (ts.isPropertyAssignment(p))
|
|
969
|
+
return [JSON.stringify(p.name.getText().replace(/^['"]|['"]$/g, '')), this.scriptValue(p.initializer)];
|
|
970
|
+
if (ts.isShorthandPropertyAssignment(p))
|
|
971
|
+
return [JSON.stringify(p.name.text), this.t.coerce(p.name, 'Any?')];
|
|
972
|
+
throw this.t.error(p, 'this member in an animation definition');
|
|
973
|
+
};
|
|
974
|
+
if (!e.properties.some(ts.isSpreadAssignment))
|
|
975
|
+
return `JSObject([${e.properties.map((p) => `(${entry(p).join(', ')})`).join(', ')}])`;
|
|
976
|
+
// `{ ...base, duration: 150 }`: each in order, a later key over an earlier one.
|
|
977
|
+
const steps = e.properties.map((p) => (ts.isSpreadAssignment(p) ? this.t.marks.tryCode(`${RT.jsObjectSpread}(__o, ${this.t.coerce(p.expression, 'Any?').replace(/^try /, '')})`) : `__o[${entry(p)[0]}] = try ${entry(p)[1].replace(/^try /, '')}`));
|
|
978
|
+
const body = `let __o = JSObject([]); ${steps.join('; ')}; return __o`;
|
|
979
|
+
return `(try { () throws -> JSObject in ${body} }())`;
|
|
980
|
+
}
|
|
981
|
+
if (ts.isArrayLiteralExpression(e))
|
|
982
|
+
return `JSArray<Any?>([${e.elements.map((x) => this.scriptValue(x)).join(', ')}])`;
|
|
983
|
+
if (ts.isArrowFunction(e) || ts.isFunctionExpression(e)) {
|
|
984
|
+
// A function core calls back (`closeCallback`) takes script values.
|
|
985
|
+
const args = e.parameters.map((p, i) => this.t.fromAnyCode(`(${i} < __args.count ? __args[${i}] : nil)`, this.t.typeOf(p)));
|
|
986
|
+
return `({ (__args: [Any?]) throws -> Any? in _ = try (${this.t.expr(e)})(${args.join(', ')}); return nil } as JSFunction)`;
|
|
987
|
+
}
|
|
988
|
+
// A view the kit takes as its class (`open(_ view: View?, …)`), not as a script object.
|
|
989
|
+
return this.t.coerce(e, kitType && /^[A-Z]\w*\?$/.test(kitType) ? kitType : 'Any?');
|
|
990
|
+
}
|
|
991
|
+
/** A kit value as the TypeScript type reads it: kit integers and CGFloats are Doubles. */
|
|
992
|
+
fromKit(code, kitType, tsType) {
|
|
993
|
+
const k = kitType.trim();
|
|
994
|
+
// What the kit generated from core gives untyped (`animate()`'s promise), read as the type the declarations give it.
|
|
995
|
+
if (isUntyped(spelledType(k)) && !isUntyped(spelledType(tsType)) && tsType !== 'Void')
|
|
996
|
+
return this.t.fromAnyCode(code, tsType, true);
|
|
997
|
+
if (k === 'JSArray<Any?>' && /^JSArray<.+>$/.test(tsType) && tsType !== k)
|
|
998
|
+
return this.t.arrayOf(code, tsType.slice(8, -1));
|
|
999
|
+
// An array of a base class (`Frame._stack()` of FrameBase) that TypeScript types as of a subclass.
|
|
1000
|
+
const ke = /^JSArray<([A-Z]\w*)>[?!]?$/.exec(k)?.[1], te = /^JSArray<([A-Z]\w*)>$/.exec(tsType)?.[1];
|
|
1001
|
+
if (ke && te && ke !== te && !['Any', 'Double', 'String', 'Bool'].includes(te)) {
|
|
1002
|
+
// Lenient code's array may be missing, which stays undefined; an element of another class is a TypeError.
|
|
1003
|
+
if (this.t.lenient)
|
|
1004
|
+
return this.t.marks.tryCode(`(${code} as JSArray<${ke}>?).map { JSArray<${te}>(try $0.storage.map { try (${RT.jsCastPresent}($0) as ${te}) }) }`);
|
|
1005
|
+
return `JSArray<${te}>((${code})${/[?!]$/.test(k) ? '!' : ''}.storage.map { $0 as! ${te} })`;
|
|
1006
|
+
}
|
|
1007
|
+
const numeric = /^(Int|UInt|Int32|UInt32|Int64|UInt64|CGFloat|Float)\??$/.exec(k);
|
|
1008
|
+
if (numeric && tsType.startsWith('Double'))
|
|
1009
|
+
return k.endsWith('?') ? `${code}.map { Double($0) }` : `Double(${code})`;
|
|
1010
|
+
// A member the kit types as a base class (`EventData.object` is an Observable) that TypeScript types as a subclass.
|
|
1011
|
+
const kb = k.replace(/[?!]$/, ''), tb = tsType.replace(/[?!]$/, '');
|
|
1012
|
+
if (kb !== tb && /^[A-Z]\w*$/.test(kb) && /^[A-Z]\w*$/.test(tb) && !['Double', 'String', 'Bool', 'Any'].includes(tb) && kb !== 'Any') {
|
|
1013
|
+
return tsType.endsWith('?') ? `(${code} as? ${tb})` : `(${code} as! ${tb})`;
|
|
1014
|
+
}
|
|
1015
|
+
// A function the kit gives of other types (`lazy(…)`'s, its result untyped): adapted to the declared one.
|
|
1016
|
+
const fn = (x) => this.t.functionTypeParts(x.replace(/^\((.*)\)[?!]$/, '$1'));
|
|
1017
|
+
if (k !== tsType && fn(k) && fn(tsType) && fn(k).text !== fn(tsType).text)
|
|
1018
|
+
return this.t.convert(code, k.replace(/^\((.*)\)!$/, '($1)?'), tsType);
|
|
1019
|
+
if (k.endsWith('?') && !tsType.endsWith('?') && !isUntyped(spelledType(tsType))) {
|
|
1020
|
+
const zero = tsType === 'String' ? '""' : tsType === 'Double' ? '0' : tsType === 'Bool' ? 'false' : null;
|
|
1021
|
+
return zero ? (heldLoss('kitResult', zero, { native: !!this.t.native }), `(${code} ?? ${zero})`) : this.t.marks.unwrappedCode(code);
|
|
1022
|
+
}
|
|
1023
|
+
return code;
|
|
1024
|
+
}
|
|
1025
|
+
toKit(code, kitType) {
|
|
1026
|
+
const k = kitType.replace(/\?$/, '');
|
|
1027
|
+
return /^(Int|UInt|Int32|UInt32|Int64|UInt64|CGFloat|Float)$/.test(k) ? `${k}(${code})` : code;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
/** A Swift parameter's type (`_ callback: @escaping (EventData?) throws -> Void = …` gives `(EventData?) throws -> Void`). */
|
|
1031
|
+
function kitParamType(param) {
|
|
1032
|
+
let depth = 0, colon = -1, end = param.length;
|
|
1033
|
+
for (let i = 0; i < param.length; i++) {
|
|
1034
|
+
const ch = param[i];
|
|
1035
|
+
if ('([<'.includes(ch))
|
|
1036
|
+
depth++;
|
|
1037
|
+
else if (')]>'.includes(ch) && !(ch === '>' && param[i - 1] === '-'))
|
|
1038
|
+
depth--;
|
|
1039
|
+
else if (depth === 0 && ch === ':' && colon < 0)
|
|
1040
|
+
colon = i;
|
|
1041
|
+
else if (depth === 0 && ch === '=' && param[i + 1] !== '=' && colon >= 0) {
|
|
1042
|
+
end = i;
|
|
1043
|
+
break;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
return param
|
|
1047
|
+
.slice(colon + 1, end)
|
|
1048
|
+
.replace(/@escaping\s+/, '')
|
|
1049
|
+
.trim();
|
|
1050
|
+
}
|
|
1051
|
+
/** A parameter list's parameters, split at top-level commas. */
|
|
1052
|
+
function splitParams(text) {
|
|
1053
|
+
const out = [];
|
|
1054
|
+
let depth = 0, start = 0;
|
|
1055
|
+
for (let i = 0; i < text.length; i++) {
|
|
1056
|
+
const ch = text[i];
|
|
1057
|
+
if ('([<'.includes(ch))
|
|
1058
|
+
depth++;
|
|
1059
|
+
else if (')]>'.includes(ch) && text[i - 1] !== '-')
|
|
1060
|
+
depth--;
|
|
1061
|
+
else if (ch === ',' && depth === 0) {
|
|
1062
|
+
out.push(text.slice(start, i).trim());
|
|
1063
|
+
start = i + 1;
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
out.push(text.slice(start).trim());
|
|
1067
|
+
return out;
|
|
1068
|
+
}
|