@nstudio/nativescript-compiler 0.0.0-stage → 9.2.0-alpha.11
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 +35 -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 +97 -0
- package/dist/driver/compile.js +583 -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 +341 -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 +653 -0
- package/dist/kotlin/app-modules.js +111 -0
- package/dist/kotlin/arguments.js +403 -0
- package/dist/kotlin/assignment.js +226 -0
- package/dist/kotlin/builtins.js +571 -0
- package/dist/kotlin/calls.js +523 -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 +219 -0
- package/dist/kotlin/classes.js +333 -0
- package/dist/kotlin/components.js +455 -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 +751 -0
- package/dist/kotlin/core-index.js +228 -0
- package/dist/kotlin/declarations.js +463 -0
- package/dist/kotlin/diagnostics.js +28 -0
- package/dist/kotlin/expression-statements.js +228 -0
- package/dist/kotlin/expressions.js +468 -0
- package/dist/kotlin/functions.js +488 -0
- package/dist/kotlin/global-calls.js +318 -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 +639 -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 +125 -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 +379 -0
- package/dist/kotlin/native/types.js +424 -0
- package/dist/kotlin/operators.js +452 -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 +159 -0
- package/dist/kotlin/render.js +425 -0
- package/dist/kotlin/state-backend.js +123 -0
- package/dist/kotlin/statements.js +435 -0
- package/dist/kotlin/static-calls.js +297 -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 +586 -0
- package/dist/plugins/native-ios.js +634 -0
- package/dist/plugins/resolve.js +108 -0
- package/dist/plugins/source.js +1174 -0
- package/dist/program/app-modules.js +127 -0
- package/dist/program/app-paths.js +128 -0
- package/dist/program/build-caches.js +14 -0
- package/dist/program/build-context.js +48 -0
- package/dist/program/class-mixins.js +463 -0
- package/dist/program/constructor-factories.js +134 -0
- package/dist/program/core-facts.js +158 -0
- package/dist/program/core-patches.js +59 -0
- package/dist/program/env.js +4 -0
- package/dist/program/glob.js +274 -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 +429 -0
- package/dist/program/program.js +918 -0
- package/dist/program/properties.js +61 -0
- package/dist/program/reach.js +444 -0
- package/dist/program/source-lines.js +271 -0
- package/dist/program/stable-names.js +112 -0
- package/dist/program/vite-plugins.js +144 -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 +26 -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 +67 -0
- package/dist/semantics/apis/string.js +45 -0
- package/dist/semantics/ast.js +333 -0
- package/dist/semantics/async.js +582 -0
- package/dist/semantics/class-plan.js +168 -0
- package/dist/semantics/classes.js +597 -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 +49 -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 +244 -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 +936 -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 +77 -0
- package/dist/semantics/regexp.js +219 -0
- package/dist/semantics/result-shapes.js +203 -0
- package/dist/semantics/runtime.js +483 -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 +881 -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 +478 -0
- package/dist/semantics/worker-state.js +198 -0
- package/dist/swift/access.js +769 -0
- package/dist/swift/app-modules.js +41 -0
- package/dist/swift/arguments.js +245 -0
- package/dist/swift/assignment.js +281 -0
- package/dist/swift/availability.js +146 -0
- package/dist/swift/builtins.js +818 -0
- package/dist/swift/calls.js +497 -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 +406 -0
- package/dist/swift/construction.js +295 -0
- package/dist/swift/control-flow.js +210 -0
- package/dist/swift/conversion.js +425 -0
- package/dist/swift/core-api.js +1065 -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 +509 -0
- package/dist/swift/generics.js +128 -0
- package/dist/swift/global-calls.js +219 -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 +556 -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 +820 -0
- package/dist/swift/native/sdk-types.js +1 -0
- package/dist/swift/native/sdk.js +417 -0
- package/dist/swift/native/subclasses.js +533 -0
- package/dist/swift/object-classes.js +396 -0
- package/dist/swift/operators.js +578 -0
- package/dist/swift/optional-chains.js +405 -0
- package/dist/swift/parameters.js +213 -0
- package/dist/swift/placement.js +941 -0
- package/dist/swift/protocols.js +164 -0
- package/dist/swift/prototype-calls.js +242 -0
- package/dist/swift/render.js +449 -0
- package/dist/swift/results.js +370 -0
- package/dist/swift/state-backend.js +243 -0
- package/dist/swift/statements.js +514 -0
- package/dist/swift/static-calls.js +325 -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 +602 -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 +584 -0
- package/dist/targets/ios/core-native.js +149 -0
- package/dist/targets/ios/dependencies.js +476 -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 +194 -0
- package/dist/template/model.js +38 -0
- package/dist/template/plan.js +673 -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 +696 -0
- package/dist/types/binding-api.d.ts +48 -0
- package/dist/types/elements.d.ts +10 -0
- package/dist/types/ir.d.ts +292 -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 +32114 -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 +3595 -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 +368 -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 +318 -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 +6403 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +4432 -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_fa18e1.swift +338 -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_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 +203 -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 +414 -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 +30598 -0
- package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +3382 -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 +4345 -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 +454 -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 +597 -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 +496 -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 +582 -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,2026 @@
|
|
|
1
|
+
// Generated from @nativescript/core by tools/kit: edit core, not this file.
|
|
2
|
+
|
|
3
|
+
import CFNetwork
|
|
4
|
+
import CoreFoundation
|
|
5
|
+
import CoreGraphics
|
|
6
|
+
import CoreServices
|
|
7
|
+
import CoreText
|
|
8
|
+
import Dispatch
|
|
9
|
+
import Foundation
|
|
10
|
+
import ObjectiveC
|
|
11
|
+
import Photos
|
|
12
|
+
import QuartzCore
|
|
13
|
+
import Symbols
|
|
14
|
+
import SystemConfiguration
|
|
15
|
+
import UIKit
|
|
16
|
+
import WebKit
|
|
17
|
+
|
|
18
|
+
public protocol XmlProducer: JSDynamic {
|
|
19
|
+
func pipe(_ next: Any?) throws -> Any?
|
|
20
|
+
}
|
|
21
|
+
public final class XmlProducerObject: XmlProducer, JSObjectConvertible {
|
|
22
|
+
nonisolated deinit {}
|
|
23
|
+
public var _pipe: ((Any?) throws -> Any?)? { didSet { jsWrote("pipe", oldValue != nil, self._pipe == nil) } }
|
|
24
|
+
private var jsOrder: [String]?
|
|
25
|
+
public init(_pipe: ((Any?) throws -> Any?)?, jsOrder: [String]? = nil, jsUnset: Set<String>? = nil) {
|
|
26
|
+
self._pipe = _pipe
|
|
27
|
+
self.jsOrder = jsOrder
|
|
28
|
+
self.jsUnset = jsUnset
|
|
29
|
+
}
|
|
30
|
+
private var jsExtra: JSDynamic?
|
|
31
|
+
public convenience init(jsObject: Any?) {
|
|
32
|
+
self.init(
|
|
33
|
+
_pipe: FunctionCell_AnyOpt_to_AnyOpt.fromScriptOrNil(jsField(jsObject, "pipe")),
|
|
34
|
+
jsOrder: (jsObject as? JSDynamic)?.jsKeys)
|
|
35
|
+
jsUnset = jsUnsetKeys(jsObject, ["pipe"])
|
|
36
|
+
jsExtra = jsObject as? JSDynamic
|
|
37
|
+
}
|
|
38
|
+
private var jsUnset: Set<String>?
|
|
39
|
+
private func jsHas(_ key: String) -> Bool {
|
|
40
|
+
switch key {
|
|
41
|
+
case "pipe": return self._pipe != nil || jsUnset?.contains("pipe") == true
|
|
42
|
+
default: return true
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
private func jsWrote(_ key: String, _ had: Bool, _ unset: Bool) {
|
|
46
|
+
let was = had || jsUnset?.contains(key) == true
|
|
47
|
+
if unset { jsUnset = (jsUnset ?? []).union([key]) } else { jsUnset?.remove(key) }
|
|
48
|
+
if !was { jsOrder = (jsOrder ?? ["pipe"]).filter { $0 != key && jsHas($0) } + [key] }
|
|
49
|
+
}
|
|
50
|
+
public var jsKeys: [String] {
|
|
51
|
+
let order = jsOrder ?? ["pipe"]
|
|
52
|
+
let keys = order + (jsExtra?.jsKeys ?? []).filter { !order.contains($0) }
|
|
53
|
+
return keys.filter(jsHas)
|
|
54
|
+
}
|
|
55
|
+
public var jsClassName: String? { nil }
|
|
56
|
+
public subscript(jsKey key: String) -> Any? {
|
|
57
|
+
get {
|
|
58
|
+
switch key.utf8.count {
|
|
59
|
+
case 4:
|
|
60
|
+
switch key {
|
|
61
|
+
case "pipe": return FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil("", 1, self._pipe)
|
|
62
|
+
default: break
|
|
63
|
+
}
|
|
64
|
+
default: break
|
|
65
|
+
}
|
|
66
|
+
return jsExtra?[jsKey: key] ?? nil
|
|
67
|
+
}
|
|
68
|
+
set {
|
|
69
|
+
switch key.utf8.count {
|
|
70
|
+
case 4:
|
|
71
|
+
switch key {
|
|
72
|
+
case "pipe":
|
|
73
|
+
self._pipe = FunctionCell_AnyOpt_to_AnyOpt.fromScriptOrNil(newValue)
|
|
74
|
+
return
|
|
75
|
+
default: break
|
|
76
|
+
}
|
|
77
|
+
default: break
|
|
78
|
+
}
|
|
79
|
+
if jsExtra == nil { jsExtra = JSObject() }
|
|
80
|
+
jsExtra?[jsKey: key] = newValue
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
public func pipe(_ next: Any?) throws -> Any? { try jsCallable(_pipe, "pipe")(next) }
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
open class Builder: JSDynamic, JSExpando, JSStaticKeyed {
|
|
87
|
+
nonisolated deinit {}
|
|
88
|
+
/// UI plugin developers can add to these to define their own custom types if needed
|
|
89
|
+
public static var knownTemplates: JSSet<String>? = JSSet<String>(JSArray<String>(["itemTemplate"]))
|
|
90
|
+
public static var knownMultiTemplates: JSSet<String>? = JSSet<String>(JSArray<String>(["itemTemplates"]))
|
|
91
|
+
public static var knownCollections: JSSet<String>? = JSSet<String>(
|
|
92
|
+
JSArray<String>(["items", "spans", "actionItems"]))
|
|
93
|
+
public init() {}
|
|
94
|
+
open func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
95
|
+
return nil
|
|
96
|
+
}
|
|
97
|
+
open class var jsSymbolPlain: Bool { true }
|
|
98
|
+
open class var jsSymbolFieldsPlain: Bool { true }
|
|
99
|
+
open var jsExpando: JSObject?
|
|
100
|
+
open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
|
|
101
|
+
open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
|
|
102
|
+
/// Creates view from navigation entry
|
|
103
|
+
/// @param entry NavigationEntry
|
|
104
|
+
open class func createViewFromEntry(_ entry: Any?) throws -> View? {
|
|
105
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:67)
|
|
106
|
+
if try jsTruthy(jsGet(entry, "create")) {
|
|
107
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:68)
|
|
108
|
+
let view: View? = try jsCallMethod(entry, "create") as? View
|
|
109
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:69)
|
|
110
|
+
if !jsTruthy(view) {
|
|
111
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:70)
|
|
112
|
+
throw JSException(value: JSError("Failed to create View with entry.create() function."))
|
|
113
|
+
}
|
|
114
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:73)
|
|
115
|
+
return view
|
|
116
|
+
} else if try jsTruthy(jsGet(entry, "moduleName")) {
|
|
117
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:75)
|
|
118
|
+
let moduleName: String = try Core_utils_common.sanitizeModuleName(
|
|
119
|
+
jsConvertedString(jsGet(entry, "moduleName")))
|
|
120
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:76)
|
|
121
|
+
let resolvedCodeModuleName: String? = try Core_module_name_resolver_index.resolveModuleName(moduleName, "")
|
|
122
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:77)
|
|
123
|
+
let moduleExports: Any? =
|
|
124
|
+
try
|
|
125
|
+
(jsTruthy(resolvedCodeModuleName as Any?)
|
|
126
|
+
? Core_ui_builder_index.loadCodeModule((resolvedCodeModuleName ?? "undefined")) : jsNull)
|
|
127
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:78)
|
|
128
|
+
if try (jsTruthy(moduleExports) && jsTruthy(jsGet(moduleExports, "createPage"))) {
|
|
129
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:80)
|
|
130
|
+
let view: Any? = try jsCallMethod(moduleExports, "createPage")
|
|
131
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:81)
|
|
132
|
+
let resolvedCssModuleName: String? = try Core_module_name_resolver_index.resolveModuleName(
|
|
133
|
+
moduleName, "css")
|
|
134
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:82)
|
|
135
|
+
if jsTruthy(resolvedCssModuleName as Any?) {
|
|
136
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:83)
|
|
137
|
+
_ = try jsCallMethod(view, "addCssFile", (resolvedCssModuleName as Any?))
|
|
138
|
+
}
|
|
139
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:86)
|
|
140
|
+
return try jsCast(view, View.self)
|
|
141
|
+
} else {
|
|
142
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:88)
|
|
143
|
+
var componentView: Any? = nil
|
|
144
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:89)
|
|
145
|
+
do {
|
|
146
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:90)
|
|
147
|
+
let componentModule: Any? = try Core_ui_builder_index.loadInternal(moduleName, moduleExports)
|
|
148
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:91)
|
|
149
|
+
componentView = try jsImplicit(
|
|
150
|
+
({ () throws -> ViewBase? in
|
|
151
|
+
let __v_1 = componentModule
|
|
152
|
+
return jsTruthy(__v_1)
|
|
153
|
+
? try (jsCast(jsGet(componentModule, "component"), ViewBase.self)) : nil
|
|
154
|
+
}()))
|
|
155
|
+
}
|
|
156
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:101)
|
|
157
|
+
return (componentView as? View)
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:105)
|
|
161
|
+
throw try JSException(
|
|
162
|
+
value: JSError("Failed to load page XML file for module: " + jsConvertedString(jsGet(entry, "moduleName"))))
|
|
163
|
+
}
|
|
164
|
+
#sourceLocation()
|
|
165
|
+
open class func parse(_ value: Any?, _ context: Any? = nil) throws -> View? {
|
|
166
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:109)
|
|
167
|
+
if jsStringEquals(jsTypeof(value), "function") {
|
|
168
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:110)
|
|
169
|
+
return try (jsCast(jsCall(value), View.self))
|
|
170
|
+
} else {
|
|
171
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:112)
|
|
172
|
+
let exports: Any? =
|
|
173
|
+
try (jsTruthy(context) ? Core_ui_builder_index.getExports((try jsCast(context, ViewBase.self))) : nil)
|
|
174
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:113)
|
|
175
|
+
let componentModule: Any? = try Core_ui_builder_index.parseInternal(try jsConvertedString(value), exports)
|
|
176
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:115)
|
|
177
|
+
return try jsImplicit(
|
|
178
|
+
({ () throws -> View? in
|
|
179
|
+
let __v_2 = componentModule
|
|
180
|
+
return jsTruthy(__v_2)
|
|
181
|
+
? try ((jsCast(jsGet(componentModule, "component"), ViewBase.self)) as? View) : nil
|
|
182
|
+
}()))
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
#sourceLocation()
|
|
186
|
+
/// Loads component from module with context
|
|
187
|
+
/// @param moduleName the module name
|
|
188
|
+
/// @param exports the context of the component to be loaded
|
|
189
|
+
open class func load(_ pathOrOptions: Any?, _ context: Any? = nil) throws -> View? {
|
|
190
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:125)
|
|
191
|
+
var componentModule: Any? = nil
|
|
192
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:126)
|
|
193
|
+
if jsStringEquals(jsTypeof(pathOrOptions), "string") {
|
|
194
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:127)
|
|
195
|
+
let moduleName: String = try Core_utils_common.sanitizeModuleName(jsLenientString(pathOrOptions))
|
|
196
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:128)
|
|
197
|
+
componentModule = try Core_ui_builder_index.loadInternal(moduleName, context)
|
|
198
|
+
} else {
|
|
199
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:130)
|
|
200
|
+
componentModule = try Core_ui_builder_index.loadCustomComponent(
|
|
201
|
+
jsConvertedString(jsGet(pathOrOptions, "path")), jsConvertedString(jsGet(pathOrOptions, "name")),
|
|
202
|
+
jsGet(pathOrOptions, "attributes"), jsGet(pathOrOptions, "exports"),
|
|
203
|
+
(jsCast(jsGet(pathOrOptions, "page"), Page.self)), true)
|
|
204
|
+
}
|
|
205
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:133)
|
|
206
|
+
return try jsImplicit(
|
|
207
|
+
({ () throws -> View? in
|
|
208
|
+
let __v_3 = componentModule
|
|
209
|
+
return jsTruthy(__v_3)
|
|
210
|
+
? try ((jsCast(jsGet(componentModule, "component"), ViewBase.self)) as? View) : nil
|
|
211
|
+
}()))
|
|
212
|
+
}
|
|
213
|
+
#sourceLocation()
|
|
214
|
+
/// Creates an array of KeyedTemplates from string
|
|
215
|
+
/// @param value The xml of the template to be parsed
|
|
216
|
+
/// @param exports Current context of the template
|
|
217
|
+
open class func parseMultipleTemplates(_ value: String, _ context: Any?) throws -> JSArray<Any?>? {
|
|
218
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:142)
|
|
219
|
+
let dummyComponent: String = "<ListView><ListView.itemTemplates>\(value)</ListView.itemTemplates></ListView>"
|
|
220
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:143)
|
|
221
|
+
return try jsArrayOrNil(
|
|
222
|
+
jsUnwrap(
|
|
223
|
+
jsCast(jsGet(Core_ui_builder_index.parseInternal(dummyComponent, context), "component"), ViewBase.self),
|
|
224
|
+
"itemTemplates")[jsKey: "itemTemplates"], as: JSArray<Any?>.self, { $0 })
|
|
225
|
+
}
|
|
226
|
+
#sourceLocation()
|
|
227
|
+
open var jsKeys: [String] { (jsExpando?.jsKeys ?? []) }
|
|
228
|
+
open var jsClassName: String? { "Builder" }
|
|
229
|
+
open subscript(jsKey key: String) -> Any? {
|
|
230
|
+
get {
|
|
231
|
+
return jsExpandoGet(self, key)
|
|
232
|
+
}
|
|
233
|
+
set {
|
|
234
|
+
jsExpandoSet(self, key, newValue)
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
open class var jsName: String { "Builder" }
|
|
238
|
+
open class var jsStaticKeys: [String] {
|
|
239
|
+
[
|
|
240
|
+
"knownTemplates", "knownMultiTemplates", "knownCollections", "createViewFromEntry", "parse", "load",
|
|
241
|
+
"parseMultipleTemplates",
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
public enum xml2ui {
|
|
247
|
+
open class XmlProducerBase: XmlProducer, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
248
|
+
nonisolated deinit {}
|
|
249
|
+
open var _next: Any? = nil {
|
|
250
|
+
didSet { if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "_next") } }
|
|
251
|
+
}
|
|
252
|
+
public init() {}
|
|
253
|
+
open func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
254
|
+
return nil
|
|
255
|
+
}
|
|
256
|
+
open class var jsSymbolPlain: Bool { true }
|
|
257
|
+
open class var jsSymbolFieldsPlain: Bool { true }
|
|
258
|
+
open var jsExpando: JSObject?
|
|
259
|
+
open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
|
|
260
|
+
open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
|
|
261
|
+
open func pipe(_ next: Any?) -> Any? {
|
|
262
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:371)
|
|
263
|
+
self._next = next
|
|
264
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:373)
|
|
265
|
+
return next
|
|
266
|
+
}
|
|
267
|
+
#sourceLocation()
|
|
268
|
+
open func next(_ args: ParserEvent?) throws {
|
|
269
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:376)
|
|
270
|
+
_ = try jsCallMethod(self._next, "parse", jsObjectRequired(args))
|
|
271
|
+
}
|
|
272
|
+
#sourceLocation()
|
|
273
|
+
public final var jsMadeBits0: UInt64 = 0
|
|
274
|
+
public final var jsMade: [String]?
|
|
275
|
+
open var jsDeclaredKeys: [String] { (jsMadeBits0 & (1 << 0) != 0 ? ["_next"] : []) }
|
|
276
|
+
open var jsKeys: [String] { jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?? [])) }
|
|
277
|
+
open var jsClassName: String? { "XmlProducerBase" }
|
|
278
|
+
open subscript(jsKey key: String) -> Any? {
|
|
279
|
+
get {
|
|
280
|
+
switch key.utf8.count {
|
|
281
|
+
case 4:
|
|
282
|
+
switch key {
|
|
283
|
+
case "pipe": return FunctionCell_AnyOpt_to_AnyOpt.script("pipe", 1, self.pipe)
|
|
284
|
+
case "next": return FunctionCell_ParserEventOpt_to_Void.script("next", 1, self.next)
|
|
285
|
+
default: break
|
|
286
|
+
}
|
|
287
|
+
case 5:
|
|
288
|
+
switch key {
|
|
289
|
+
case "_next":
|
|
290
|
+
if !(jsMadeBits0 & (1 << 0) != 0) { return nil }
|
|
291
|
+
return self._next
|
|
292
|
+
default: break
|
|
293
|
+
}
|
|
294
|
+
default: break
|
|
295
|
+
}
|
|
296
|
+
return jsExpandoGet(self, key)
|
|
297
|
+
}
|
|
298
|
+
set {
|
|
299
|
+
switch key.utf8.count {
|
|
300
|
+
case 5:
|
|
301
|
+
switch key {
|
|
302
|
+
case "_next":
|
|
303
|
+
self._next = newValue
|
|
304
|
+
return
|
|
305
|
+
default: break
|
|
306
|
+
}
|
|
307
|
+
default: break
|
|
308
|
+
}
|
|
309
|
+
jsExpandoSet(self, key, newValue)
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
open class var jsName: String { "XmlProducerBase" }
|
|
313
|
+
open class var jsStaticKeys: [String] { [] }
|
|
314
|
+
}
|
|
315
|
+
open class XmlStringParser: NativeScriptKit.xml2ui.XmlProducerBase {
|
|
316
|
+
nonisolated deinit {}
|
|
317
|
+
open var error: ((JSError?, Any?) throws -> JSError)?
|
|
318
|
+
public init(_ error: ((JSError?, Any?) throws -> JSError)? = nil) {
|
|
319
|
+
super.init()
|
|
320
|
+
jsMadeLevel(&jsMade, ["error"])
|
|
321
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:385)
|
|
322
|
+
self.error = jsImplicit(
|
|
323
|
+
({ () -> ((JSError?, Any?) throws -> JSError)? in
|
|
324
|
+
let __v_7 = error
|
|
325
|
+
return jsTruthy(__v_7)
|
|
326
|
+
? jsPresent(__v_7)
|
|
327
|
+
: FunctionCell_JSErrorOpt_AnyOpt_to_JSError.adaptingOrNil(
|
|
328
|
+
FunctionCell_JSErrorOpt_AnyOpt_to_JSErrorOpt.declared(
|
|
329
|
+
"xml2ui.PositionErrorFormat", { try NativeScriptKit.xml2ui.PositionErrorFormat($0, $1) }
|
|
330
|
+
))
|
|
331
|
+
}()))
|
|
332
|
+
}
|
|
333
|
+
#sourceLocation()
|
|
334
|
+
open func parse(_ value: Any?) throws {
|
|
335
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:390)
|
|
336
|
+
let xmlParser: XmlParser = try XmlParser(
|
|
337
|
+
{ (args: ParserEvent?) throws -> Void in
|
|
338
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:392)
|
|
339
|
+
do {
|
|
340
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:393)
|
|
341
|
+
try self.next(args)
|
|
342
|
+
} catch {
|
|
343
|
+
let e: Any? = jsCaught(error)
|
|
344
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:395)
|
|
345
|
+
throw try JSException(
|
|
346
|
+
value: jsObjectRequired(
|
|
347
|
+
jsCallable(self.error, "this.error")(
|
|
348
|
+
(e as? JSError), jsUnwrap(args, "position").position)))
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{ (e: JSError?, p: Any?) throws -> Void in
|
|
352
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:399)
|
|
353
|
+
throw try JSException(value: jsObjectRequired(jsCallable(self.error, "this.error")(e, p)))
|
|
354
|
+
}, true)
|
|
355
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:404)
|
|
356
|
+
if Core_utils_types.isString(value) {
|
|
357
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:405)
|
|
358
|
+
try xmlParser.parse(jsLenientString(value))
|
|
359
|
+
} else if try Core_utils_types.isObject(value) && Core_utils_types.isString(jsGet(value, "default")) {
|
|
360
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:407)
|
|
361
|
+
try xmlParser.parse(jsConvertedString(jsGet(value, "default")))
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
#sourceLocation()
|
|
365
|
+
open override var jsDeclaredKeys: [String] { super.jsDeclaredKeys + ["error"] }
|
|
366
|
+
open override var jsClassName: String? { "XmlStringParser" }
|
|
367
|
+
open override subscript(jsKey key: String) -> Any? {
|
|
368
|
+
get {
|
|
369
|
+
switch key.utf8.count {
|
|
370
|
+
case 5:
|
|
371
|
+
switch key {
|
|
372
|
+
case "error": return FunctionCell_JSErrorOpt_AnyOpt_to_JSErrorOpt.scriptOrNil("", 2, self.error)
|
|
373
|
+
case "parse": return FunctionCell_AnyOpt_to_Void.script("parse", 1, self.parse)
|
|
374
|
+
default: break
|
|
375
|
+
}
|
|
376
|
+
default: break
|
|
377
|
+
}
|
|
378
|
+
return super[jsKey: key]
|
|
379
|
+
}
|
|
380
|
+
set {
|
|
381
|
+
switch key.utf8.count {
|
|
382
|
+
case 5:
|
|
383
|
+
switch key {
|
|
384
|
+
case "error":
|
|
385
|
+
self.error = FunctionCell_JSErrorOpt_AnyOpt_to_JSError.fromScriptOrNil(newValue)
|
|
386
|
+
return
|
|
387
|
+
default: break
|
|
388
|
+
}
|
|
389
|
+
default: break
|
|
390
|
+
}
|
|
391
|
+
super[jsKey: key] = newValue
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
open override class var jsName: String { "XmlStringParser" }
|
|
395
|
+
}
|
|
396
|
+
public static func PositionErrorFormat(_ e: JSError?, _ p: Any?) throws -> JSError? {
|
|
397
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:418)
|
|
398
|
+
return try ScopeError(
|
|
399
|
+
e,
|
|
400
|
+
"Parsing XML at " + js(jsConvertedNumber(jsGet(p, "line"))) + ":"
|
|
401
|
+
+ js(jsConvertedNumber(jsGet(p, "column"))))
|
|
402
|
+
}
|
|
403
|
+
#sourceLocation()
|
|
404
|
+
public static func SourceErrorFormat(_ uri: Any?) -> ((JSError?, Any?) throws -> JSError)? {
|
|
405
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:422)
|
|
406
|
+
return { (e: JSError?, p: Any?) throws -> JSError in
|
|
407
|
+
var e: JSError? = e
|
|
408
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:423)
|
|
409
|
+
jsError(uri, ((e as JSError?)?.message ?? e))
|
|
410
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:428)
|
|
411
|
+
do {
|
|
412
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:429)
|
|
413
|
+
try jsSet(
|
|
414
|
+
jsGlobalThis, "__NS_LAST_XML_ERROR__",
|
|
415
|
+
JSObject([
|
|
416
|
+
("uri", uri as Any?),
|
|
417
|
+
(
|
|
418
|
+
"message",
|
|
419
|
+
({ () throws -> String in
|
|
420
|
+
let __v_8 = try
|
|
421
|
+
(({ () throws -> String in
|
|
422
|
+
let __v_9 = e
|
|
423
|
+
return jsTruthy(__v_9) ? try jsUnwrap(e, "message").message : ""
|
|
424
|
+
}()))
|
|
425
|
+
return jsTruthy(__v_8) ? jsPresent(__v_8) : jsToString(e)
|
|
426
|
+
}())
|
|
427
|
+
), ("time", JSDate.now()),
|
|
428
|
+
]))
|
|
429
|
+
} catch {
|
|
430
|
+
|
|
431
|
+
}
|
|
432
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:431)
|
|
433
|
+
let source: Source__debug_source? =
|
|
434
|
+
try
|
|
435
|
+
(jsTruthy(p)
|
|
436
|
+
? Source__debug_source(
|
|
437
|
+
try jsConvertedString(uri), jsConvertedNumber(jsGet(p, "line")),
|
|
438
|
+
jsConvertedNumber(jsGet(p, "column"))) : Source__debug_source(try jsConvertedString(uri), -1, -1))
|
|
439
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:432)
|
|
440
|
+
e = try SourceError(e, source, "Building UI from XML.")
|
|
441
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:434)
|
|
442
|
+
return try jsObjectRequired(e)
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
#sourceLocation()
|
|
446
|
+
public static func ComponentSourceTracker(_ uri: Any?) -> ((Any?, Any?) throws -> Void)? {
|
|
447
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:443)
|
|
448
|
+
return { (component: Any?, p: Any?) throws -> Void in
|
|
449
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:444)
|
|
450
|
+
if try !jsTruthy(Source__debug_source.get(component)) {
|
|
451
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:445)
|
|
452
|
+
let source: Source__debug_source? =
|
|
453
|
+
try
|
|
454
|
+
(jsTruthy(p)
|
|
455
|
+
? Source__debug_source(
|
|
456
|
+
try jsConvertedString(uri), jsConvertedNumber(jsGet(p, "line")),
|
|
457
|
+
jsConvertedNumber(jsGet(p, "column")))
|
|
458
|
+
: Source__debug_source(try jsConvertedString(uri), -1, -1))
|
|
459
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:446)
|
|
460
|
+
try Source__debug_source.set(component, source)
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
#sourceLocation()
|
|
465
|
+
open class PlatformFilter: NativeScriptKit.xml2ui.XmlProducerBase {
|
|
466
|
+
nonisolated deinit {}
|
|
467
|
+
open var currentPlatformContext: String = "" {
|
|
468
|
+
didSet {
|
|
469
|
+
if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "currentPlatformContext") }
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
open func parse(_ args: ParserEvent?) throws {
|
|
473
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:455)
|
|
474
|
+
if try jsStringEquals(jsUnwrap(args, "eventType").eventType, ParserEventType.StartElement) {
|
|
475
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:456)
|
|
476
|
+
if try NativeScriptKit.xml2ui.PlatformFilter.isPlatform(jsUnwrap(args, "elementName").elementName) {
|
|
477
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:457)
|
|
478
|
+
if jsTruthy(self.currentPlatformContext) {
|
|
479
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:458)
|
|
480
|
+
throw try JSException(
|
|
481
|
+
value: JSError(
|
|
482
|
+
"Already in '" + self.currentPlatformContext
|
|
483
|
+
+ "' platform context and cannot switch to '"
|
|
484
|
+
+ jsUnwrap(args, "elementName").elementName
|
|
485
|
+
+ "' platform! Platform tags cannot be nested."))
|
|
486
|
+
}
|
|
487
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:461)
|
|
488
|
+
self.currentPlatformContext = try jsUnwrap(args, "elementName").elementName
|
|
489
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:463)
|
|
490
|
+
return
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:467)
|
|
494
|
+
if try jsStringEquals(jsUnwrap(args, "eventType").eventType, ParserEventType.EndElement) {
|
|
495
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:468)
|
|
496
|
+
if try NativeScriptKit.xml2ui.PlatformFilter.isPlatform(jsUnwrap(args, "elementName").elementName) {
|
|
497
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:469)
|
|
498
|
+
self.currentPlatformContext = ""
|
|
499
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:471)
|
|
500
|
+
return
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:475)
|
|
504
|
+
if try
|
|
505
|
+
(jsTruthy(self.currentPlatformContext)
|
|
506
|
+
&& !NativeScriptKit.xml2ui.PlatformFilter.isCurentPlatform(self.currentPlatformContext))
|
|
507
|
+
{
|
|
508
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:476)
|
|
509
|
+
return
|
|
510
|
+
}
|
|
511
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:479)
|
|
512
|
+
try self.next(args)
|
|
513
|
+
}
|
|
514
|
+
#sourceLocation()
|
|
515
|
+
open class func isPlatform(_ value: String) -> Bool {
|
|
516
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:483)
|
|
517
|
+
if jsTruthy(value) {
|
|
518
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:484)
|
|
519
|
+
let toLower: String = value.lowercased()
|
|
520
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:486)
|
|
521
|
+
return jsStringEquals(toLower, Core_ui_builder_index.android)
|
|
522
|
+
|| jsStringEquals(toLower, Core_ui_builder_index.ios)
|
|
523
|
+
|| jsStringEquals(toLower, Core_ui_builder_index.visionos)
|
|
524
|
+
|| jsStringEquals(toLower, Core_ui_builder_index.apple)
|
|
525
|
+
}
|
|
526
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:489)
|
|
527
|
+
return false
|
|
528
|
+
}
|
|
529
|
+
#sourceLocation()
|
|
530
|
+
open class func isCurentPlatform(_ value: String) throws -> Bool {
|
|
531
|
+
var value = value
|
|
532
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:493)
|
|
533
|
+
value =
|
|
534
|
+
({ () -> String in
|
|
535
|
+
let __v_10 = value
|
|
536
|
+
return jsTruthy(__v_10) ? value.lowercased() : jsPresent(__v_10)
|
|
537
|
+
}())
|
|
538
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:494)
|
|
539
|
+
return try
|
|
540
|
+
(jsStringEquals(value, Core_ui_builder_index.apple)
|
|
541
|
+
? true : jsStringEquals(value, jsUnwrap(Core_platform_device_index.Device, "os").os.lowercased()))
|
|
542
|
+
}
|
|
543
|
+
#sourceLocation()
|
|
544
|
+
open override var jsDeclaredKeys: [String] {
|
|
545
|
+
super.jsDeclaredKeys + (jsMadeBits0 & (1 << 1) != 0 ? ["currentPlatformContext"] : [])
|
|
546
|
+
}
|
|
547
|
+
open override var jsClassName: String? { "PlatformFilter" }
|
|
548
|
+
open override subscript(jsKey key: String) -> Any? {
|
|
549
|
+
get {
|
|
550
|
+
switch key.utf8.count {
|
|
551
|
+
case 5:
|
|
552
|
+
switch key {
|
|
553
|
+
case "parse": return FunctionCell_ParserEventOpt_to_Void.script("parse", 1, self.parse)
|
|
554
|
+
default: break
|
|
555
|
+
}
|
|
556
|
+
case 22:
|
|
557
|
+
switch key {
|
|
558
|
+
case "currentPlatformContext":
|
|
559
|
+
if !(jsMadeBits0 & (1 << 1) != 0) { return nil }
|
|
560
|
+
return self.currentPlatformContext
|
|
561
|
+
default: break
|
|
562
|
+
}
|
|
563
|
+
default: break
|
|
564
|
+
}
|
|
565
|
+
return super[jsKey: key]
|
|
566
|
+
}
|
|
567
|
+
set {
|
|
568
|
+
switch key.utf8.count {
|
|
569
|
+
case 22:
|
|
570
|
+
switch key {
|
|
571
|
+
case "currentPlatformContext":
|
|
572
|
+
jsStoring { self.currentPlatformContext = (try jsConvertedString(newValue)) }
|
|
573
|
+
return
|
|
574
|
+
default: break
|
|
575
|
+
}
|
|
576
|
+
default: break
|
|
577
|
+
}
|
|
578
|
+
super[jsKey: key] = newValue
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
open override class var jsName: String { "PlatformFilter" }
|
|
582
|
+
open override class var jsStaticKeys: [String] { super.jsStaticKeys + ["isPlatform", "isCurentPlatform"] }
|
|
583
|
+
}
|
|
584
|
+
open class XmlArgsReplay: NativeScriptKit.xml2ui.XmlProducerBase {
|
|
585
|
+
nonisolated deinit {}
|
|
586
|
+
open var error: ((JSError?, Any?) throws -> JSError)?
|
|
587
|
+
open var args: JSArray<ParserEvent>? = JSArray<ParserEvent>()
|
|
588
|
+
public init(_ args: JSArray<ParserEvent>?, _ errorFormat: @escaping (JSError?, Any?) throws -> JSError) {
|
|
589
|
+
super.init()
|
|
590
|
+
jsMadeLevel(&jsMade, ["args", "error"])
|
|
591
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:504)
|
|
592
|
+
self.args = args
|
|
593
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:505)
|
|
594
|
+
self.error = errorFormat
|
|
595
|
+
}
|
|
596
|
+
#sourceLocation()
|
|
597
|
+
open func replay() throws {
|
|
598
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:509)
|
|
599
|
+
try jsUnwrap(self.args, "forEach").forEach({ (args: ParserEvent?) throws -> Void in
|
|
600
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:510)
|
|
601
|
+
do {
|
|
602
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:511)
|
|
603
|
+
try self.next(args)
|
|
604
|
+
} catch {
|
|
605
|
+
let e: Any? = jsCaught(error)
|
|
606
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:513)
|
|
607
|
+
throw try JSException(
|
|
608
|
+
value: jsObjectRequired(
|
|
609
|
+
jsCallable(self.error, "this.error")((e as? JSError), jsUnwrap(args, "position").position)))
|
|
610
|
+
}
|
|
611
|
+
})
|
|
612
|
+
}
|
|
613
|
+
#sourceLocation()
|
|
614
|
+
open override var jsDeclaredKeys: [String] { super.jsDeclaredKeys + ["args"] + ["error"] }
|
|
615
|
+
open override var jsClassName: String? { "XmlArgsReplay" }
|
|
616
|
+
open override subscript(jsKey key: String) -> Any? {
|
|
617
|
+
get {
|
|
618
|
+
switch key.utf8.count {
|
|
619
|
+
case 4:
|
|
620
|
+
switch key {
|
|
621
|
+
case "args": return self.args
|
|
622
|
+
default: break
|
|
623
|
+
}
|
|
624
|
+
case 5:
|
|
625
|
+
switch key {
|
|
626
|
+
case "error": return FunctionCell_JSErrorOpt_AnyOpt_to_JSErrorOpt.scriptOrNil("", 2, self.error)
|
|
627
|
+
default: break
|
|
628
|
+
}
|
|
629
|
+
case 6:
|
|
630
|
+
switch key {
|
|
631
|
+
case "replay": return FunctionCell_none_to_Void.script("replay", 0, self.replay)
|
|
632
|
+
default: break
|
|
633
|
+
}
|
|
634
|
+
default: break
|
|
635
|
+
}
|
|
636
|
+
return super[jsKey: key]
|
|
637
|
+
}
|
|
638
|
+
set {
|
|
639
|
+
switch key.utf8.count {
|
|
640
|
+
case 4:
|
|
641
|
+
switch key {
|
|
642
|
+
case "args":
|
|
643
|
+
jsStoring {
|
|
644
|
+
self.args = try jsArrayOrNil(
|
|
645
|
+
newValue, as: JSArray<ParserEvent>.self, { try (jsCastPresent($0) as ParserEvent) })
|
|
646
|
+
}
|
|
647
|
+
return
|
|
648
|
+
default: break
|
|
649
|
+
}
|
|
650
|
+
case 5:
|
|
651
|
+
switch key {
|
|
652
|
+
case "error":
|
|
653
|
+
self.error = FunctionCell_JSErrorOpt_AnyOpt_to_JSError.fromScriptOrNil(newValue)
|
|
654
|
+
return
|
|
655
|
+
default: break
|
|
656
|
+
}
|
|
657
|
+
default: break
|
|
658
|
+
}
|
|
659
|
+
super[jsKey: key] = newValue
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
open override class var jsName: String { "XmlArgsReplay" }
|
|
663
|
+
}
|
|
664
|
+
/// It is a state pattern
|
|
665
|
+
/// https://en.wikipedia.org/wiki/State_pattern
|
|
666
|
+
open class XmlStateParser: JSDynamic, JSExpando, JSStaticKeyed {
|
|
667
|
+
nonisolated deinit {}
|
|
668
|
+
open var state: Any? = nil
|
|
669
|
+
public init(_ state: Any?) {
|
|
670
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:538)
|
|
671
|
+
self.state = state
|
|
672
|
+
}
|
|
673
|
+
#sourceLocation()
|
|
674
|
+
open func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
675
|
+
return nil
|
|
676
|
+
}
|
|
677
|
+
open class var jsSymbolPlain: Bool { true }
|
|
678
|
+
open class var jsSymbolFieldsPlain: Bool { true }
|
|
679
|
+
open var jsExpando: JSObject?
|
|
680
|
+
open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
|
|
681
|
+
open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
|
|
682
|
+
open func parse(_ args: ParserEvent?) throws {
|
|
683
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:542)
|
|
684
|
+
self.state = try jsCallMethod(self.state, "parse", jsObjectRequired(args))
|
|
685
|
+
}
|
|
686
|
+
#sourceLocation()
|
|
687
|
+
open var jsKeys: [String] { (self.state == nil ? [] : ["state"]) + (jsExpando?.jsKeys ?? []) }
|
|
688
|
+
open var jsClassName: String? { "XmlStateParser" }
|
|
689
|
+
open subscript(jsKey key: String) -> Any? {
|
|
690
|
+
get {
|
|
691
|
+
switch key.utf8.count {
|
|
692
|
+
case 5:
|
|
693
|
+
switch key {
|
|
694
|
+
case "state": return self.state
|
|
695
|
+
case "parse": return FunctionCell_ParserEventOpt_to_Void.script("parse", 1, self.parse)
|
|
696
|
+
default: break
|
|
697
|
+
}
|
|
698
|
+
default: break
|
|
699
|
+
}
|
|
700
|
+
return jsExpandoGet(self, key)
|
|
701
|
+
}
|
|
702
|
+
set {
|
|
703
|
+
switch key.utf8.count {
|
|
704
|
+
case 5:
|
|
705
|
+
switch key {
|
|
706
|
+
case "state":
|
|
707
|
+
self.state = newValue
|
|
708
|
+
return
|
|
709
|
+
default: break
|
|
710
|
+
}
|
|
711
|
+
default: break
|
|
712
|
+
}
|
|
713
|
+
jsExpandoSet(self, key, newValue)
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
open class var jsName: String { "XmlStateParser" }
|
|
717
|
+
open class var jsStaticKeys: [String] { [] }
|
|
718
|
+
}
|
|
719
|
+
open class TemplateParser: JSDynamic, JSExpando, JSConstructibleType, JSStaticKeyed {
|
|
720
|
+
nonisolated deinit {}
|
|
721
|
+
open var _context: Any? = nil
|
|
722
|
+
open var _recordedXmlStream: JSArray<ParserEvent>? = JSArray<ParserEvent>()
|
|
723
|
+
open var _templateProperty: Any? = nil
|
|
724
|
+
open var _nestingLevel: Double = .nan
|
|
725
|
+
open var _state: Double = .nan
|
|
726
|
+
open var parent: Any? = nil
|
|
727
|
+
open var _setTemplateProperty: Bool = false
|
|
728
|
+
public init(_ parent: Any?, _ templateProperty: Any?, _ setTemplateProperty: Bool = true) throws {
|
|
729
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:561)
|
|
730
|
+
self.parent = parent
|
|
731
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:562)
|
|
732
|
+
self._context = try jsGet(templateProperty, "context")
|
|
733
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:563)
|
|
734
|
+
self._recordedXmlStream = JSArray<ParserEvent>()
|
|
735
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:564)
|
|
736
|
+
self._templateProperty = templateProperty
|
|
737
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:565)
|
|
738
|
+
self._nestingLevel = 0
|
|
739
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:566)
|
|
740
|
+
self._state = NativeScriptKit.xml2ui.TemplateParser.State.EXPECTING_START
|
|
741
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:567)
|
|
742
|
+
self._setTemplateProperty = setTemplateProperty
|
|
743
|
+
}
|
|
744
|
+
#sourceLocation()
|
|
745
|
+
open var elementName: String {
|
|
746
|
+
get throws {
|
|
747
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:583)
|
|
748
|
+
return try jsConvertedString(jsGet(self._templateProperty, "elementName"))
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
#sourceLocation()
|
|
752
|
+
open func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
753
|
+
return nil
|
|
754
|
+
}
|
|
755
|
+
open class var jsSymbolPlain: Bool { true }
|
|
756
|
+
open class var jsSymbolFieldsPlain: Bool { true }
|
|
757
|
+
open var jsExpando: JSObject?
|
|
758
|
+
open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
|
|
759
|
+
open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
|
|
760
|
+
open func parse(_ args: ParserEvent?) throws -> Any? {
|
|
761
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:571)
|
|
762
|
+
if try jsStringEquals(jsUnwrap(args, "eventType").eventType, ParserEventType.StartElement) {
|
|
763
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:572)
|
|
764
|
+
try self.parseStartElement(
|
|
765
|
+
jsUnwrap(args, "prefix").prefix, jsUnwrap(args, "namespace").namespace,
|
|
766
|
+
jsUnwrap(args, "elementName").elementName, jsUnwrap(args, "attributes").attributes)
|
|
767
|
+
} else if try jsStringEquals(jsUnwrap(args, "eventType").eventType, ParserEventType.EndElement) {
|
|
768
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:574)
|
|
769
|
+
try self.parseEndElement(
|
|
770
|
+
(jsUnwrap(args, "prefix").prefix ?? "undefined"), jsUnwrap(args, "elementName").elementName)
|
|
771
|
+
}
|
|
772
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:577)
|
|
773
|
+
_ = try jsUnwrap(self._recordedXmlStream, "push").push(jsObjectRequired(args))
|
|
774
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:579)
|
|
775
|
+
return
|
|
776
|
+
(jsLenientNumberEquals(self._state, NativeScriptKit.xml2ui.TemplateParser.State.FINISHED)
|
|
777
|
+
? self.parent : (self as Any?))
|
|
778
|
+
}
|
|
779
|
+
#sourceLocation()
|
|
780
|
+
open func parseStartElement(_ prefix: String?, _ namespace: String?, _ elementName: String, _ attributes: Any?)
|
|
781
|
+
throws
|
|
782
|
+
{
|
|
783
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:587)
|
|
784
|
+
if jsLenientNumberEquals(self._state, NativeScriptKit.xml2ui.TemplateParser.State.EXPECTING_START) {
|
|
785
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:588)
|
|
786
|
+
self._state = NativeScriptKit.xml2ui.TemplateParser.State.PARSING
|
|
787
|
+
} else if jsLenientNumberEquals(self._state, NativeScriptKit.xml2ui.TemplateParser.State.FINISHED) {
|
|
788
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:590)
|
|
789
|
+
throw JSException(
|
|
790
|
+
value: JSError("Template must have exactly one root element but multiple elements were found."))
|
|
791
|
+
}
|
|
792
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:593)
|
|
793
|
+
self._nestingLevel += 1
|
|
794
|
+
}
|
|
795
|
+
#sourceLocation()
|
|
796
|
+
open func parseEndElement(_ prefix: String, _ elementName: String) throws {
|
|
797
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:597)
|
|
798
|
+
if jsLenientNumberEquals(self._state, NativeScriptKit.xml2ui.TemplateParser.State.EXPECTING_START) {
|
|
799
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:598)
|
|
800
|
+
throw JSException(value: JSError("Template must have exactly one root element but none was found."))
|
|
801
|
+
} else if jsLenientNumberEquals(self._state, NativeScriptKit.xml2ui.TemplateParser.State.FINISHED) {
|
|
802
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:600)
|
|
803
|
+
throw JSException(value: JSError("No more closing elements expected for this template."))
|
|
804
|
+
}
|
|
805
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:603)
|
|
806
|
+
self._nestingLevel -= 1
|
|
807
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:605)
|
|
808
|
+
if self._nestingLevel == 0 {
|
|
809
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:606)
|
|
810
|
+
self._state = NativeScriptKit.xml2ui.TemplateParser.State.FINISHED
|
|
811
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:608)
|
|
812
|
+
if try self._setTemplateProperty
|
|
813
|
+
&& jsHasKey(
|
|
814
|
+
jsGet(jsGet(self._templateProperty, "parent"), "component"),
|
|
815
|
+
jsConvertedString(jsGet(self._templateProperty, "name")))
|
|
816
|
+
{
|
|
817
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:609)
|
|
818
|
+
let template: Any? = try self.buildTemplate()
|
|
819
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:610)
|
|
820
|
+
try jsUnwrap(
|
|
821
|
+
jsCast(jsGet(jsGet(self._templateProperty, "parent"), "component"), ViewBase.self),
|
|
822
|
+
setting: "this._templateProperty.name")[
|
|
823
|
+
jsKey: jsConvertedString(jsGet(self._templateProperty, "name"))] = template
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
#sourceLocation()
|
|
828
|
+
open func buildTemplate() throws -> Any? {
|
|
829
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:616)
|
|
830
|
+
do {
|
|
831
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:617)
|
|
832
|
+
let context: Any? = self._context
|
|
833
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:618)
|
|
834
|
+
let errorFormat: ((JSError?, Any?) throws -> JSError)? =
|
|
835
|
+
try FunctionCell_JSErrorOpt_AnyOpt_to_JSError.fromScriptOrNil(
|
|
836
|
+
jsGet(self._templateProperty, "errorFormat"))
|
|
837
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:619)
|
|
838
|
+
let sourceTracker: ((Any?, Any?) throws -> Void)? =
|
|
839
|
+
try FunctionCell_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(
|
|
840
|
+
jsGet(self._templateProperty, "sourceTracker"))
|
|
841
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:620)
|
|
842
|
+
let template: Any? = FunctionCell_none_to_ViewBaseOpt.scriptOrNil(
|
|
843
|
+
"", 0,
|
|
844
|
+
{ () throws -> ViewBase in
|
|
845
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:621)
|
|
846
|
+
var start: NativeScriptKit.xml2ui.XmlArgsReplay?
|
|
847
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:622)
|
|
848
|
+
var ui: NativeScriptKit.xml2ui.ComponentParser?
|
|
849
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:624)
|
|
850
|
+
_ =
|
|
851
|
+
try
|
|
852
|
+
(jsUnwrap(
|
|
853
|
+
({ () throws -> NativeScriptKit.xml2ui.XmlArgsReplay? in
|
|
854
|
+
try start = NativeScriptKit.xml2ui.XmlArgsReplay(
|
|
855
|
+
self._recordedXmlStream,
|
|
856
|
+
FunctionCell_JSErrorOpt_AnyOpt_to_JSError.present(errorFormat))
|
|
857
|
+
return start
|
|
858
|
+
}()), "pipe"
|
|
859
|
+
).pipe(
|
|
860
|
+
NativeScriptKit.xml2ui.XmlStateParser(
|
|
861
|
+
({ () throws -> NativeScriptKit.xml2ui.ComponentParser? in
|
|
862
|
+
try ui = NativeScriptKit.xml2ui.ComponentParser(
|
|
863
|
+
context, FunctionCell_JSErrorOpt_AnyOpt_to_JSError.present(errorFormat),
|
|
864
|
+
FunctionCell_AnyOpt_AnyOpt_to_Void.present(sourceTracker), nil,
|
|
865
|
+
jsConvertedString(jsGet(self._templateProperty, "xmlModule")))
|
|
866
|
+
return ui
|
|
867
|
+
}()))) as? NativeScriptKit.xml2ui.XmlStateParser)
|
|
868
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:628)
|
|
869
|
+
try jsUnwrap(start, "replay").replay()
|
|
870
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:630)
|
|
871
|
+
return try
|
|
872
|
+
(jsCastPresent(jsGet(jsUnwrap(ui, "rootComponentModule").rootComponentModule, "component"))
|
|
873
|
+
as ViewBase)
|
|
874
|
+
})
|
|
875
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:633)
|
|
876
|
+
return template
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
#sourceLocation()
|
|
880
|
+
open class func jsConstruct(_ __a: [Any?]) throws -> Any? {
|
|
881
|
+
try TemplateParser(
|
|
882
|
+
jsArg(__a, 0), jsArg(__a, 1), (jsFlat(jsArg(__a, 2)) == nil ? true : jsLenientBool(jsArg(__a, 2))))
|
|
883
|
+
}
|
|
884
|
+
open var jsKeys: [String] {
|
|
885
|
+
(self.parent == nil ? [] : ["parent"]) + (self._context == nil ? [] : ["_context"]) + ["_recordedXmlStream"]
|
|
886
|
+
+ (self._templateProperty == nil ? [] : ["_templateProperty"]) + ["_nestingLevel"] + ["_state"] + [
|
|
887
|
+
"_setTemplateProperty"
|
|
888
|
+
] + (jsExpando?.jsKeys ?? [])
|
|
889
|
+
}
|
|
890
|
+
open var jsClassName: String? { "TemplateParser" }
|
|
891
|
+
open subscript(jsKey key: String) -> Any? {
|
|
892
|
+
get {
|
|
893
|
+
switch key.utf8.count {
|
|
894
|
+
case 5:
|
|
895
|
+
switch key {
|
|
896
|
+
case "parse": return FunctionCell_ParserEventOpt_to_AnyOpt.script("parse", 1, self.parse)
|
|
897
|
+
default: break
|
|
898
|
+
}
|
|
899
|
+
case 6:
|
|
900
|
+
switch key {
|
|
901
|
+
case "_state": return self._state
|
|
902
|
+
case "parent": return self.parent
|
|
903
|
+
default: break
|
|
904
|
+
}
|
|
905
|
+
case 8:
|
|
906
|
+
switch key {
|
|
907
|
+
case "_context": return self._context
|
|
908
|
+
default: break
|
|
909
|
+
}
|
|
910
|
+
case 13:
|
|
911
|
+
switch key {
|
|
912
|
+
case "_nestingLevel": return self._nestingLevel
|
|
913
|
+
case "buildTemplate":
|
|
914
|
+
return FunctionCell_none_to_AnyOpt.script("buildTemplate", 0, self.buildTemplate)
|
|
915
|
+
default: break
|
|
916
|
+
}
|
|
917
|
+
case 15:
|
|
918
|
+
switch key {
|
|
919
|
+
case "parseEndElement":
|
|
920
|
+
return FunctionCell_String_String_to_Void.script("parseEndElement", 2, self.parseEndElement)
|
|
921
|
+
default: break
|
|
922
|
+
}
|
|
923
|
+
case 17:
|
|
924
|
+
switch key {
|
|
925
|
+
case "_templateProperty": return self._templateProperty
|
|
926
|
+
case "parseStartElement":
|
|
927
|
+
return FunctionCell_StringOpt_StringOpt_String_AnyOpt_to_Void.script(
|
|
928
|
+
"parseStartElement", 4, self.parseStartElement)
|
|
929
|
+
default: break
|
|
930
|
+
}
|
|
931
|
+
case 18:
|
|
932
|
+
switch key {
|
|
933
|
+
case "_recordedXmlStream": return self._recordedXmlStream
|
|
934
|
+
default: break
|
|
935
|
+
}
|
|
936
|
+
case 20:
|
|
937
|
+
switch key {
|
|
938
|
+
case "_setTemplateProperty": return self._setTemplateProperty
|
|
939
|
+
default: break
|
|
940
|
+
}
|
|
941
|
+
default: break
|
|
942
|
+
}
|
|
943
|
+
return jsExpandoGet(self, key)
|
|
944
|
+
}
|
|
945
|
+
set {
|
|
946
|
+
switch key.utf8.count {
|
|
947
|
+
case 6:
|
|
948
|
+
switch key {
|
|
949
|
+
case "_state":
|
|
950
|
+
jsStoring { self._state = (try jsConvertedNumber(newValue)) }
|
|
951
|
+
return
|
|
952
|
+
case "parent":
|
|
953
|
+
self.parent = newValue
|
|
954
|
+
return
|
|
955
|
+
default: break
|
|
956
|
+
}
|
|
957
|
+
case 8:
|
|
958
|
+
switch key {
|
|
959
|
+
case "_context":
|
|
960
|
+
self._context = newValue
|
|
961
|
+
return
|
|
962
|
+
default: break
|
|
963
|
+
}
|
|
964
|
+
case 13:
|
|
965
|
+
switch key {
|
|
966
|
+
case "_nestingLevel":
|
|
967
|
+
jsStoring { self._nestingLevel = (try jsConvertedNumber(newValue)) }
|
|
968
|
+
return
|
|
969
|
+
default: break
|
|
970
|
+
}
|
|
971
|
+
case 17:
|
|
972
|
+
switch key {
|
|
973
|
+
case "_templateProperty":
|
|
974
|
+
self._templateProperty = newValue
|
|
975
|
+
return
|
|
976
|
+
default: break
|
|
977
|
+
}
|
|
978
|
+
case 18:
|
|
979
|
+
switch key {
|
|
980
|
+
case "_recordedXmlStream":
|
|
981
|
+
jsStoring {
|
|
982
|
+
self._recordedXmlStream = try jsArrayOrNil(
|
|
983
|
+
newValue, as: JSArray<ParserEvent>.self, { try (jsCastPresent($0) as ParserEvent) })
|
|
984
|
+
}
|
|
985
|
+
return
|
|
986
|
+
default: break
|
|
987
|
+
}
|
|
988
|
+
case 20:
|
|
989
|
+
switch key {
|
|
990
|
+
case "_setTemplateProperty":
|
|
991
|
+
jsStoring { self._setTemplateProperty = (try jsConvertedBool(newValue)) }
|
|
992
|
+
return
|
|
993
|
+
default: break
|
|
994
|
+
}
|
|
995
|
+
default: break
|
|
996
|
+
}
|
|
997
|
+
jsExpandoSet(self, key, newValue)
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
open class var jsName: String { "TemplateParser" }
|
|
1001
|
+
open class var jsStaticKeys: [String] { [] }
|
|
1002
|
+
}
|
|
1003
|
+
open class MultiTemplateParser: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
1004
|
+
nonisolated deinit {}
|
|
1005
|
+
open var parent: Any? = nil
|
|
1006
|
+
open var templateProperty: Any? = nil
|
|
1007
|
+
open var _childParsers: JSArray<NativeScriptKit.xml2ui.TemplateParser>? = JSArray<
|
|
1008
|
+
NativeScriptKit.xml2ui.TemplateParser
|
|
1009
|
+
>()
|
|
1010
|
+
open var _value: JSArray<Any?>? = JSArray<Any?>() {
|
|
1011
|
+
didSet { if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "_value") } }
|
|
1012
|
+
}
|
|
1013
|
+
public init(_ parent: Any?, _ templateProperty: Any?) {
|
|
1014
|
+
self.parent = parent
|
|
1015
|
+
self.templateProperty = templateProperty
|
|
1016
|
+
self._childParsers = JSArray<NativeScriptKit.xml2ui.TemplateParser>()
|
|
1017
|
+
}
|
|
1018
|
+
open var value: JSArray<Any?>? {
|
|
1019
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:645)
|
|
1020
|
+
return self._value
|
|
1021
|
+
}
|
|
1022
|
+
#sourceLocation()
|
|
1023
|
+
open func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
1024
|
+
return nil
|
|
1025
|
+
}
|
|
1026
|
+
open class var jsSymbolPlain: Bool { true }
|
|
1027
|
+
open class var jsSymbolFieldsPlain: Bool { true }
|
|
1028
|
+
open var jsExpando: JSObject?
|
|
1029
|
+
open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
|
|
1030
|
+
open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
|
|
1031
|
+
open func parse(_ args: ParserEvent?) throws -> Any? {
|
|
1032
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:654)
|
|
1033
|
+
if try jsStringEquals(jsUnwrap(args, "eventType").eventType, ParserEventType.StartElement)
|
|
1034
|
+
&& jsStringEquals(jsUnwrap(args, "elementName").elementName, "template")
|
|
1035
|
+
{
|
|
1036
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:655)
|
|
1037
|
+
let childParser: NativeScriptKit.xml2ui.TemplateParser = try NativeScriptKit.xml2ui.TemplateParser(
|
|
1038
|
+
self, self.templateProperty, false)
|
|
1039
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:656)
|
|
1040
|
+
try childParser[jsKey: "key"] = jsGet(jsUnwrap(args, "attributes").attributes, "key")
|
|
1041
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:657)
|
|
1042
|
+
_ = try jsUnwrap(self._childParsers, "push").push(childParser)
|
|
1043
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:659)
|
|
1044
|
+
return childParser
|
|
1045
|
+
}
|
|
1046
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:662)
|
|
1047
|
+
if try jsStringEquals(jsUnwrap(args, "eventType").eventType, ParserEventType.EndElement) {
|
|
1048
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:663)
|
|
1049
|
+
let name: String? = try NativeScriptKit.xml2ui.ComponentParser.getComplexPropertyName(
|
|
1050
|
+
jsUnwrap(args, "elementName").elementName)
|
|
1051
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:664)
|
|
1052
|
+
if try jsStrictEquals((name as Any?), jsGet(self.templateProperty, "name")) {
|
|
1053
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:665)
|
|
1054
|
+
let templates: JSArray<Any?> = JSArray<Any?>()
|
|
1055
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:666)
|
|
1056
|
+
var i: Double = 0
|
|
1057
|
+
while try i < jsUnwrap(self._childParsers, "length").length {
|
|
1058
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:667)
|
|
1059
|
+
_ = try templates.push(
|
|
1060
|
+
JSObject([
|
|
1061
|
+
("key", jsUnwrap(jsUnwrap(self._childParsers, "i").element(i), "key")[jsKey: "key"]),
|
|
1062
|
+
(
|
|
1063
|
+
"createView",
|
|
1064
|
+
jsUnwrap(jsUnwrap(self._childParsers, "i").element(i), "buildTemplate")
|
|
1065
|
+
.buildTemplate()
|
|
1066
|
+
),
|
|
1067
|
+
]))
|
|
1068
|
+
i += 1
|
|
1069
|
+
}
|
|
1070
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:672)
|
|
1071
|
+
self._value = templates
|
|
1072
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:674)
|
|
1073
|
+
return try jsCallMethod(self.parent, "parse", jsObjectRequired(args))
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:678)
|
|
1077
|
+
return self
|
|
1078
|
+
}
|
|
1079
|
+
#sourceLocation()
|
|
1080
|
+
public final var jsMadeBits0: UInt64 = 0
|
|
1081
|
+
public final var jsMade: [String]?
|
|
1082
|
+
open var jsDeclaredKeys: [String] {
|
|
1083
|
+
(self.parent == nil ? [] : ["parent"]) + (self.templateProperty == nil ? [] : ["templateProperty"]) + [
|
|
1084
|
+
"_childParsers"
|
|
1085
|
+
] + (jsMadeBits0 & (1 << 0) != 0 ? ["_value"] : [])
|
|
1086
|
+
}
|
|
1087
|
+
open var jsKeys: [String] { jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?? [])) }
|
|
1088
|
+
open var jsClassName: String? { "MultiTemplateParser" }
|
|
1089
|
+
open subscript(jsKey key: String) -> Any? {
|
|
1090
|
+
get {
|
|
1091
|
+
switch key.utf8.count {
|
|
1092
|
+
case 5:
|
|
1093
|
+
switch key {
|
|
1094
|
+
case "parse": return FunctionCell_ParserEventOpt_to_AnyOpt.script("parse", 1, self.parse)
|
|
1095
|
+
default: break
|
|
1096
|
+
}
|
|
1097
|
+
case 6:
|
|
1098
|
+
switch key {
|
|
1099
|
+
case "parent": return self.parent
|
|
1100
|
+
case "_value":
|
|
1101
|
+
if !(jsMadeBits0 & (1 << 0) != 0) { return nil }
|
|
1102
|
+
return self._value
|
|
1103
|
+
default: break
|
|
1104
|
+
}
|
|
1105
|
+
case 13:
|
|
1106
|
+
switch key {
|
|
1107
|
+
case "_childParsers": return self._childParsers
|
|
1108
|
+
default: break
|
|
1109
|
+
}
|
|
1110
|
+
case 16:
|
|
1111
|
+
switch key {
|
|
1112
|
+
case "templateProperty": return self.templateProperty
|
|
1113
|
+
default: break
|
|
1114
|
+
}
|
|
1115
|
+
default: break
|
|
1116
|
+
}
|
|
1117
|
+
return jsExpandoGet(self, key)
|
|
1118
|
+
}
|
|
1119
|
+
set {
|
|
1120
|
+
switch key.utf8.count {
|
|
1121
|
+
case 6:
|
|
1122
|
+
switch key {
|
|
1123
|
+
case "parent":
|
|
1124
|
+
self.parent = newValue
|
|
1125
|
+
return
|
|
1126
|
+
case "_value":
|
|
1127
|
+
self._value = jsArrayOrNil(newValue, as: JSArray<Any?>.self, { $0 })
|
|
1128
|
+
return
|
|
1129
|
+
default: break
|
|
1130
|
+
}
|
|
1131
|
+
case 13:
|
|
1132
|
+
switch key {
|
|
1133
|
+
case "_childParsers":
|
|
1134
|
+
jsStoring {
|
|
1135
|
+
self._childParsers = try jsArrayOrNil(
|
|
1136
|
+
newValue, as: JSArray<NativeScriptKit.xml2ui.TemplateParser>.self,
|
|
1137
|
+
{ try (jsCastPresent($0) as NativeScriptKit.xml2ui.TemplateParser) })
|
|
1138
|
+
}
|
|
1139
|
+
return
|
|
1140
|
+
default: break
|
|
1141
|
+
}
|
|
1142
|
+
case 16:
|
|
1143
|
+
switch key {
|
|
1144
|
+
case "templateProperty":
|
|
1145
|
+
self.templateProperty = newValue
|
|
1146
|
+
return
|
|
1147
|
+
default: break
|
|
1148
|
+
}
|
|
1149
|
+
default: break
|
|
1150
|
+
}
|
|
1151
|
+
jsExpandoSet(self, key, newValue)
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
open class var jsName: String { "MultiTemplateParser" }
|
|
1155
|
+
open class var jsStaticKeys: [String] { [] }
|
|
1156
|
+
}
|
|
1157
|
+
open class ComponentParser: JSDynamic, JSExpando, JSConstructibleType, JSKeysMade, JSStaticKeyed {
|
|
1158
|
+
nonisolated deinit {}
|
|
1159
|
+
open var moduleName: String = ""
|
|
1160
|
+
open var xmlModule: String = ""
|
|
1161
|
+
public static var KNOWNCOLLECTIONS: String = "knownCollections"
|
|
1162
|
+
public static var KNOWNTEMPLATES: String = "knownTemplates"
|
|
1163
|
+
public static var KNOWNMULTITEMPLATES: String = "knownMultiTemplates"
|
|
1164
|
+
open var rootComponentModule: Any? = nil {
|
|
1165
|
+
didSet {
|
|
1166
|
+
if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "rootComponentModule") }
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
open var context: Any? = nil
|
|
1170
|
+
open var currentRootView: View? {
|
|
1171
|
+
didSet { if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "currentRootView") } }
|
|
1172
|
+
}
|
|
1173
|
+
open var parents: JSArray<Any?>? = JSArray<Any?>()
|
|
1174
|
+
open var complexProperties: JSArray<Any?>? = JSArray<Any?>()
|
|
1175
|
+
open var error: ((JSError?, Any?) throws -> JSError)?
|
|
1176
|
+
open var sourceTracker: ((Any?, Any?) throws -> Void)?
|
|
1177
|
+
public init(
|
|
1178
|
+
_ context: Any?, _ errorFormat: @escaping (JSError?, Any?) throws -> JSError,
|
|
1179
|
+
_ sourceTracker: @escaping (Any?, Any?) throws -> Void, _ moduleName: String? = nil,
|
|
1180
|
+
_ xmlModule: String? = nil
|
|
1181
|
+
) {
|
|
1182
|
+
self.moduleName = (moduleName ?? "")
|
|
1183
|
+
self.xmlModule = (xmlModule ?? "")
|
|
1184
|
+
self.parents = JSArray<Any?>()
|
|
1185
|
+
self.complexProperties = JSArray<Any?>()
|
|
1186
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:713)
|
|
1187
|
+
self.context = context
|
|
1188
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:714)
|
|
1189
|
+
self.error = errorFormat
|
|
1190
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:715)
|
|
1191
|
+
self.sourceTracker = sourceTracker
|
|
1192
|
+
}
|
|
1193
|
+
#sourceLocation()
|
|
1194
|
+
open func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
1195
|
+
return nil
|
|
1196
|
+
}
|
|
1197
|
+
open class var jsSymbolPlain: Bool { true }
|
|
1198
|
+
open class var jsSymbolFieldsPlain: Bool { true }
|
|
1199
|
+
open var jsExpando: JSObject?
|
|
1200
|
+
open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
|
|
1201
|
+
open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
|
|
1202
|
+
open func buildComponent(_ args: ParserEvent?) throws -> Any? {
|
|
1203
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:720)
|
|
1204
|
+
let bindingKey: String? =
|
|
1205
|
+
try
|
|
1206
|
+
((jsTruthy(self.xmlModule) && jsTruthy(jsUnwrap(args, "position").position))
|
|
1207
|
+
? "\((jsStartsWith(self.xmlModule, "./", nil) ? jsSubstring(self.xmlModule, 2, nil) : self.xmlModule)):\(js(jsConvertedNumber(jsGet(jsUnwrap(args, "position").position, "line")))):\(js(jsConvertedNumber(jsGet(jsUnwrap(args, "position").position, "column")))):"
|
|
1208
|
+
: nil)
|
|
1209
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:721)
|
|
1210
|
+
if try (jsTruthy(jsUnwrap(args, "prefix").prefix) && jsTruthy(jsUnwrap(args, "namespace").namespace)) {
|
|
1211
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:723)
|
|
1212
|
+
return try Core_ui_builder_index.loadCustomComponent(
|
|
1213
|
+
(jsUnwrap(args, "namespace").namespace ?? "undefined"), jsUnwrap(args, "elementName").elementName,
|
|
1214
|
+
jsUnwrap(args, "attributes").attributes, self.context, self.currentRootView,
|
|
1215
|
+
!jsTruthy(self.currentRootView), self.moduleName, bindingKey)
|
|
1216
|
+
} else {
|
|
1217
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:726)
|
|
1218
|
+
var namespace: String? = try jsUnwrap(args, "namespace").namespace
|
|
1219
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:727)
|
|
1220
|
+
if Core_ui_builder_index.defaultNameSpaceMatcher.test(
|
|
1221
|
+
({ () -> String in
|
|
1222
|
+
let __v_11 = namespace
|
|
1223
|
+
return jsTruthy(__v_11) ? jsPresent(__v_11) : ""
|
|
1224
|
+
}()))
|
|
1225
|
+
{
|
|
1226
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:729)
|
|
1227
|
+
namespace = nil
|
|
1228
|
+
}
|
|
1229
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:732)
|
|
1230
|
+
return try Core_ui_builder_component_builder_index.getComponentModule(
|
|
1231
|
+
jsUnwrap(args, "elementName").elementName, namespace, jsUnwrap(args, "attributes").attributes,
|
|
1232
|
+
self.context, self.moduleName, !jsTruthy(self.currentRootView), bindingKey)
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
#sourceLocation()
|
|
1236
|
+
open func parse(_ args: ParserEvent?) throws -> Any? {
|
|
1237
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:738)
|
|
1238
|
+
let parent: Any? =
|
|
1239
|
+
try
|
|
1240
|
+
((jsUnwrap(self.parents, "this.parents.length - 1").element(jsUnwrap(self.parents, "length").length - 1)
|
|
1241
|
+
?? nil) as Any?)
|
|
1242
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:739)
|
|
1243
|
+
let complexProperty: Any? =
|
|
1244
|
+
try
|
|
1245
|
+
((jsUnwrap(self.complexProperties, "this.complexProperties.length - 1").element(
|
|
1246
|
+
jsUnwrap(self.complexProperties, "length").length - 1) ?? nil) as Any?)
|
|
1247
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:742)
|
|
1248
|
+
if try jsStringEquals(jsUnwrap(args, "eventType").eventType, ParserEventType.StartElement) {
|
|
1249
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:743)
|
|
1250
|
+
if try NativeScriptKit.xml2ui.ComponentParser.isComplexProperty(
|
|
1251
|
+
jsUnwrap(args, "elementName").elementName)
|
|
1252
|
+
{
|
|
1253
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:744)
|
|
1254
|
+
let name: String? = try NativeScriptKit.xml2ui.ComponentParser.getComplexPropertyName(
|
|
1255
|
+
jsUnwrap(args, "elementName").elementName)
|
|
1256
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:746)
|
|
1257
|
+
let complexProperty: Any? = JSObject([
|
|
1258
|
+
("parent", parent), ("name", (name as Any?)), ("items", JSArray<Any?>()),
|
|
1259
|
+
])
|
|
1260
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:751)
|
|
1261
|
+
_ = try jsUnwrap(self.complexProperties, "push").push(complexProperty)
|
|
1262
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:753)
|
|
1263
|
+
if try NativeScriptKit.xml2ui.ComponentParser.isKnownTemplate(
|
|
1264
|
+
(name ?? "undefined"), jsGet(parent, "exports"))
|
|
1265
|
+
{
|
|
1266
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:754)
|
|
1267
|
+
return try NativeScriptKit.xml2ui.TemplateParser(
|
|
1268
|
+
self,
|
|
1269
|
+
JSObject([
|
|
1270
|
+
(
|
|
1271
|
+
"context",
|
|
1272
|
+
({ () throws -> Any? in
|
|
1273
|
+
let __v_12 =
|
|
1274
|
+
try
|
|
1275
|
+
((jsTruthy(parent)
|
|
1276
|
+
? Core_ui_builder_index.getExports(
|
|
1277
|
+
(jsGet(parent, "component") as? ViewBase)) : jsNull))
|
|
1278
|
+
return jsTruthy(__v_12) ? __v_12 : self.context
|
|
1279
|
+
}())
|
|
1280
|
+
), ("parent", parent), ("name", (name as Any?)),
|
|
1281
|
+
("elementName", jsUnwrap(args, "elementName").elementName),
|
|
1282
|
+
("templateItems", JSArray<Any?>()),
|
|
1283
|
+
(
|
|
1284
|
+
"errorFormat",
|
|
1285
|
+
FunctionCell_JSErrorOpt_AnyOpt_to_JSErrorOpt.scriptOrNil("", 2, self.error)
|
|
1286
|
+
),
|
|
1287
|
+
(
|
|
1288
|
+
"sourceTracker",
|
|
1289
|
+
FunctionCell_AnyOpt_AnyOpt_to_Void.scriptOrNil("", 2, self.sourceTracker)
|
|
1290
|
+
), ("xmlModule", self.xmlModule),
|
|
1291
|
+
]))
|
|
1292
|
+
}
|
|
1293
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:766)
|
|
1294
|
+
if try NativeScriptKit.xml2ui.ComponentParser.isKnownMultiTemplate(
|
|
1295
|
+
(name ?? "undefined"), jsGet(parent, "exports"))
|
|
1296
|
+
{
|
|
1297
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:767)
|
|
1298
|
+
let parser: NativeScriptKit.xml2ui.MultiTemplateParser = try NativeScriptKit.xml2ui
|
|
1299
|
+
.MultiTemplateParser(
|
|
1300
|
+
self,
|
|
1301
|
+
JSObject([
|
|
1302
|
+
(
|
|
1303
|
+
"context",
|
|
1304
|
+
({ () throws -> Any? in
|
|
1305
|
+
let __v_13 =
|
|
1306
|
+
try
|
|
1307
|
+
((jsTruthy(parent)
|
|
1308
|
+
? Core_ui_builder_index.getExports(
|
|
1309
|
+
(jsGet(parent, "component") as? ViewBase)) : jsNull))
|
|
1310
|
+
return jsTruthy(__v_13) ? __v_13 : self.context
|
|
1311
|
+
}())
|
|
1312
|
+
), ("parent", parent), ("name", (name as Any?)),
|
|
1313
|
+
("elementName", jsUnwrap(args, "elementName").elementName),
|
|
1314
|
+
("templateItems", JSArray<Any?>()),
|
|
1315
|
+
(
|
|
1316
|
+
"errorFormat",
|
|
1317
|
+
FunctionCell_JSErrorOpt_AnyOpt_to_JSErrorOpt.scriptOrNil("", 2, self.error)
|
|
1318
|
+
),
|
|
1319
|
+
(
|
|
1320
|
+
"sourceTracker",
|
|
1321
|
+
FunctionCell_AnyOpt_AnyOpt_to_Void.scriptOrNil("", 2, self.sourceTracker)
|
|
1322
|
+
), ("xmlModule", self.xmlModule),
|
|
1323
|
+
]))
|
|
1324
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:777)
|
|
1325
|
+
try jsSet(complexProperty, "parser", parser)
|
|
1326
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:779)
|
|
1327
|
+
return parser
|
|
1328
|
+
}
|
|
1329
|
+
} else {
|
|
1330
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:782)
|
|
1331
|
+
let componentModule: Any? = try self.buildComponent(args)
|
|
1332
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:784)
|
|
1333
|
+
if jsTruthy(componentModule) {
|
|
1334
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:785)
|
|
1335
|
+
try jsCallable(self.sourceTracker, "this.sourceTracker")(
|
|
1336
|
+
jsGet(componentModule, "component"), jsUnwrap(args, "position").position)
|
|
1337
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:786)
|
|
1338
|
+
if jsTruthy(parent) {
|
|
1339
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:787)
|
|
1340
|
+
if try
|
|
1341
|
+
(jsTruthy(complexProperty) && jsLooseEquals(jsGet(complexProperty, "parent"), parent))
|
|
1342
|
+
{
|
|
1343
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:789)
|
|
1344
|
+
try NativeScriptKit.xml2ui.ComponentParser.addToComplexProperty(
|
|
1345
|
+
parent, complexProperty, componentModule)
|
|
1346
|
+
} else if try jsTruthy(jsGet((jsGet(parent, "component")), "_addChildFromBuilder")) {
|
|
1347
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:791)
|
|
1348
|
+
_ = try jsCallMethod(
|
|
1349
|
+
(jsGet(parent, "component")), "_addChildFromBuilder",
|
|
1350
|
+
jsUnwrap(args, "elementName").elementName,
|
|
1351
|
+
(jsCastPresent(jsGet(componentModule, "component")) as ViewBase))
|
|
1352
|
+
}
|
|
1353
|
+
} else if try jsUnwrap(self.parents, "length").length == 0 {
|
|
1354
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:795)
|
|
1355
|
+
self.rootComponentModule = componentModule
|
|
1356
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:797)
|
|
1357
|
+
if jsTruthy(self.rootComponentModule) {
|
|
1358
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:798)
|
|
1359
|
+
self.currentRootView =
|
|
1360
|
+
try ((jsCast(jsGet(self.rootComponentModule, "component"), ViewBase.self)) as? View)
|
|
1361
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:800)
|
|
1362
|
+
if try jsTruthy(jsGet(self.currentRootView, "exports")) {
|
|
1363
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:801)
|
|
1364
|
+
self.context = try jsGet(self.currentRootView, "exports")
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:807)
|
|
1369
|
+
_ = try jsUnwrap(self.parents, "push").push(componentModule)
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
} else if try jsStringEquals(jsUnwrap(args, "eventType").eventType, ParserEventType.EndElement) {
|
|
1373
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:811)
|
|
1374
|
+
if try NativeScriptKit.xml2ui.ComponentParser.isComplexProperty(
|
|
1375
|
+
jsUnwrap(args, "elementName").elementName)
|
|
1376
|
+
{
|
|
1377
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:812)
|
|
1378
|
+
if jsTruthy(complexProperty) {
|
|
1379
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:813)
|
|
1380
|
+
if try jsTruthy(jsGet(complexProperty, "parser")) {
|
|
1381
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:814)
|
|
1382
|
+
try jsUnwrap(
|
|
1383
|
+
jsCast(jsGet(parent, "component"), ViewBase.self), setting: "complexProperty.name")[
|
|
1384
|
+
jsKey: jsConvertedString(jsGet(complexProperty, "name"))] = jsGet(
|
|
1385
|
+
jsGet(complexProperty, "parser"), "value")
|
|
1386
|
+
} else if try
|
|
1387
|
+
(jsTruthy(parent) && jsTruthy(jsGet((jsGet(parent, "component")), "_addArrayFromBuilder")))
|
|
1388
|
+
{
|
|
1389
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:817)
|
|
1390
|
+
_ = try jsCallMethod(
|
|
1391
|
+
(jsGet(parent, "component")), "_addArrayFromBuilder", jsGet(complexProperty, "name"),
|
|
1392
|
+
jsObjectRequired(
|
|
1393
|
+
jsArrayOrNil(jsGet(complexProperty, "items"), as: JSArray<Any?>.self, { $0 })))
|
|
1394
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:818)
|
|
1395
|
+
try jsSet(complexProperty, "items", JSArray<Any?>())
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:822)
|
|
1399
|
+
_ = try jsUnwrap(self.complexProperties, "pop").pop()
|
|
1400
|
+
} else {
|
|
1401
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:825)
|
|
1402
|
+
_ = try jsUnwrap(self.parents, "pop").pop()
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:829)
|
|
1406
|
+
return self
|
|
1407
|
+
}
|
|
1408
|
+
#sourceLocation()
|
|
1409
|
+
open class func isComplexProperty(_ name: String) -> Bool {
|
|
1410
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:833)
|
|
1411
|
+
return Core_utils_types.isString(name) && jsIndexOf(name, ".", nil) != -1
|
|
1412
|
+
}
|
|
1413
|
+
#sourceLocation()
|
|
1414
|
+
open class func getComplexPropertyName(_ fullName: String) throws -> String? {
|
|
1415
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:837)
|
|
1416
|
+
var name: String? = nil
|
|
1417
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:839)
|
|
1418
|
+
if Core_utils_types.isString(fullName) {
|
|
1419
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:840)
|
|
1420
|
+
let names: JSArray<String>? = jsSplit(fullName, ".", nil)
|
|
1421
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:841)
|
|
1422
|
+
name = try jsUnwrap(names, "names.length - 1").element(jsUnwrap(names, "length").length - 1)
|
|
1423
|
+
}
|
|
1424
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:844)
|
|
1425
|
+
return name
|
|
1426
|
+
}
|
|
1427
|
+
#sourceLocation()
|
|
1428
|
+
open class func isKnownTemplate(_ name: String, _ exports: Any?) throws -> Bool {
|
|
1429
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:848)
|
|
1430
|
+
return try jsUnwrap(Builder.knownTemplates, "has").has(name)
|
|
1431
|
+
}
|
|
1432
|
+
#sourceLocation()
|
|
1433
|
+
open class func isKnownMultiTemplate(_ name: String, _ exports: Any?) throws -> Bool {
|
|
1434
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:852)
|
|
1435
|
+
return try jsUnwrap(Builder.knownMultiTemplates, "has").has(name)
|
|
1436
|
+
}
|
|
1437
|
+
#sourceLocation()
|
|
1438
|
+
open class func addToComplexProperty(_ parent: Any?, _ complexProperty: Any?, _ elementModule: Any?) throws {
|
|
1439
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:857)
|
|
1440
|
+
let parentComponent: Any? = try jsGet(parent, "component")
|
|
1441
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:858)
|
|
1442
|
+
if try NativeScriptKit.xml2ui.ComponentParser.isKnownCollection(
|
|
1443
|
+
jsConvertedString(jsGet(complexProperty, "name")), jsGet(parent, "exports"))
|
|
1444
|
+
{
|
|
1445
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:859)
|
|
1446
|
+
_ = try jsUnwrap(jsArrayOrNil(jsGet(complexProperty, "items"), as: JSArray<Any?>.self, { $0 }), "push")
|
|
1447
|
+
.push(jsGet(elementModule, "component"))
|
|
1448
|
+
} else if try jsTruthy(jsGet(parentComponent, "_addChildFromBuilder")) {
|
|
1449
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:861)
|
|
1450
|
+
_ = try jsCallMethod(
|
|
1451
|
+
parentComponent, "_addChildFromBuilder", jsGet(complexProperty, "name"),
|
|
1452
|
+
(jsCastPresent(jsGet(elementModule, "component")) as ViewBase))
|
|
1453
|
+
} else {
|
|
1454
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:864)
|
|
1455
|
+
try jsSet(
|
|
1456
|
+
parentComponent, jsConvertedString(jsGet(complexProperty, "name")),
|
|
1457
|
+
jsGet(elementModule, "component"))
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
#sourceLocation()
|
|
1461
|
+
open class func isKnownCollection(_ name: String, _ context: Any?) throws -> Bool {
|
|
1462
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:869)
|
|
1463
|
+
return try jsUnwrap(Builder.knownCollections, "has").has(name)
|
|
1464
|
+
}
|
|
1465
|
+
#sourceLocation()
|
|
1466
|
+
open class func jsConstruct(_ __a: [Any?]) throws -> Any? {
|
|
1467
|
+
ComponentParser(
|
|
1468
|
+
jsArg(__a, 0),
|
|
1469
|
+
try FunctionCell_JSErrorOpt_AnyOpt_to_JSError.present(
|
|
1470
|
+
FunctionCell_JSErrorOpt_AnyOpt_to_JSError.fromScriptOrNil(jsArg(__a, 1))),
|
|
1471
|
+
try FunctionCell_AnyOpt_AnyOpt_to_Void.present(
|
|
1472
|
+
FunctionCell_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(jsArg(__a, 2))),
|
|
1473
|
+
jsLenientStringOrNil(jsArg(__a, 3)), jsLenientStringOrNil(jsArg(__a, 4)))
|
|
1474
|
+
}
|
|
1475
|
+
public final var jsMadeBits0: UInt64 = 0
|
|
1476
|
+
public final var jsMade: [String]?
|
|
1477
|
+
open var jsDeclaredKeys: [String] {
|
|
1478
|
+
["moduleName"] + ["xmlModule"] + ["parents"] + ["complexProperties"]
|
|
1479
|
+
+ (self.context == nil ? [] : ["context"]) + ["error"] + ["sourceTracker"]
|
|
1480
|
+
+ (jsMadeBits0 & (1 << 0) != 0 ? ["rootComponentModule"] : [])
|
|
1481
|
+
+ (jsMadeBits0 & (1 << 1) != 0 ? ["currentRootView"] : [])
|
|
1482
|
+
}
|
|
1483
|
+
open var jsKeys: [String] { jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?? [])) }
|
|
1484
|
+
open var jsClassName: String? { "ComponentParser" }
|
|
1485
|
+
open subscript(jsKey key: String) -> Any? {
|
|
1486
|
+
get {
|
|
1487
|
+
switch key.utf8.count {
|
|
1488
|
+
case 5:
|
|
1489
|
+
switch key {
|
|
1490
|
+
case "error": return FunctionCell_JSErrorOpt_AnyOpt_to_JSErrorOpt.scriptOrNil("", 2, self.error)
|
|
1491
|
+
case "parse": return FunctionCell_ParserEventOpt_to_AnyOpt.script("parse", 1, self.parse)
|
|
1492
|
+
default: break
|
|
1493
|
+
}
|
|
1494
|
+
case 7:
|
|
1495
|
+
switch key {
|
|
1496
|
+
case "context": return self.context
|
|
1497
|
+
case "parents": return self.parents
|
|
1498
|
+
default: break
|
|
1499
|
+
}
|
|
1500
|
+
case 9:
|
|
1501
|
+
switch key {
|
|
1502
|
+
case "xmlModule": return self.xmlModule
|
|
1503
|
+
default: break
|
|
1504
|
+
}
|
|
1505
|
+
case 10:
|
|
1506
|
+
switch key {
|
|
1507
|
+
case "moduleName": return self.moduleName
|
|
1508
|
+
default: break
|
|
1509
|
+
}
|
|
1510
|
+
case 13:
|
|
1511
|
+
switch key {
|
|
1512
|
+
case "sourceTracker":
|
|
1513
|
+
return FunctionCell_AnyOpt_AnyOpt_to_Void.scriptOrNil("", 2, self.sourceTracker)
|
|
1514
|
+
default: break
|
|
1515
|
+
}
|
|
1516
|
+
case 14:
|
|
1517
|
+
switch key {
|
|
1518
|
+
case "buildComponent":
|
|
1519
|
+
return FunctionCell_ParserEventOpt_to_AnyOpt.script("buildComponent", 1, self.buildComponent)
|
|
1520
|
+
default: break
|
|
1521
|
+
}
|
|
1522
|
+
case 15:
|
|
1523
|
+
switch key {
|
|
1524
|
+
case "currentRootView":
|
|
1525
|
+
if !(jsMadeBits0 & (1 << 1) != 0) { return nil }
|
|
1526
|
+
return self.currentRootView
|
|
1527
|
+
default: break
|
|
1528
|
+
}
|
|
1529
|
+
case 17:
|
|
1530
|
+
switch key {
|
|
1531
|
+
case "complexProperties": return self.complexProperties
|
|
1532
|
+
default: break
|
|
1533
|
+
}
|
|
1534
|
+
case 19:
|
|
1535
|
+
switch key {
|
|
1536
|
+
case "rootComponentModule":
|
|
1537
|
+
if !(jsMadeBits0 & (1 << 0) != 0) { return nil }
|
|
1538
|
+
return self.rootComponentModule
|
|
1539
|
+
default: break
|
|
1540
|
+
}
|
|
1541
|
+
default: break
|
|
1542
|
+
}
|
|
1543
|
+
return jsExpandoGet(self, key)
|
|
1544
|
+
}
|
|
1545
|
+
set {
|
|
1546
|
+
switch key.utf8.count {
|
|
1547
|
+
case 5:
|
|
1548
|
+
switch key {
|
|
1549
|
+
case "error":
|
|
1550
|
+
self.error = FunctionCell_JSErrorOpt_AnyOpt_to_JSError.fromScriptOrNil(newValue)
|
|
1551
|
+
return
|
|
1552
|
+
default: break
|
|
1553
|
+
}
|
|
1554
|
+
case 7:
|
|
1555
|
+
switch key {
|
|
1556
|
+
case "context":
|
|
1557
|
+
self.context = newValue
|
|
1558
|
+
return
|
|
1559
|
+
case "parents":
|
|
1560
|
+
self.parents = jsArrayOrNil(newValue, as: JSArray<Any?>.self, { $0 })
|
|
1561
|
+
return
|
|
1562
|
+
default: break
|
|
1563
|
+
}
|
|
1564
|
+
case 9:
|
|
1565
|
+
switch key {
|
|
1566
|
+
case "xmlModule":
|
|
1567
|
+
jsStoring { self.xmlModule = (try jsConvertedString(newValue)) }
|
|
1568
|
+
return
|
|
1569
|
+
default: break
|
|
1570
|
+
}
|
|
1571
|
+
case 10:
|
|
1572
|
+
switch key {
|
|
1573
|
+
case "moduleName":
|
|
1574
|
+
jsStoring { self.moduleName = (try jsConvertedString(newValue)) }
|
|
1575
|
+
return
|
|
1576
|
+
default: break
|
|
1577
|
+
}
|
|
1578
|
+
case 13:
|
|
1579
|
+
switch key {
|
|
1580
|
+
case "sourceTracker":
|
|
1581
|
+
self.sourceTracker = FunctionCell_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(newValue)
|
|
1582
|
+
return
|
|
1583
|
+
default: break
|
|
1584
|
+
}
|
|
1585
|
+
case 15:
|
|
1586
|
+
switch key {
|
|
1587
|
+
case "currentRootView":
|
|
1588
|
+
jsStoring { self.currentRootView = (try jsCast(newValue, View.self)) }
|
|
1589
|
+
return
|
|
1590
|
+
default: break
|
|
1591
|
+
}
|
|
1592
|
+
case 17:
|
|
1593
|
+
switch key {
|
|
1594
|
+
case "complexProperties":
|
|
1595
|
+
self.complexProperties = jsArrayOrNil(newValue, as: JSArray<Any?>.self, { $0 })
|
|
1596
|
+
return
|
|
1597
|
+
default: break
|
|
1598
|
+
}
|
|
1599
|
+
case 19:
|
|
1600
|
+
switch key {
|
|
1601
|
+
case "rootComponentModule":
|
|
1602
|
+
self.rootComponentModule = newValue
|
|
1603
|
+
return
|
|
1604
|
+
default: break
|
|
1605
|
+
}
|
|
1606
|
+
default: break
|
|
1607
|
+
}
|
|
1608
|
+
jsExpandoSet(self, key, newValue)
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
open class var jsName: String { "ComponentParser" }
|
|
1612
|
+
open class var jsStaticKeys: [String] {
|
|
1613
|
+
[
|
|
1614
|
+
"KNOWNCOLLECTIONS", "KNOWNTEMPLATES", "KNOWNMULTITEMPLATES", "isComplexProperty",
|
|
1615
|
+
"getComplexPropertyName", "isKnownTemplate", "isKnownMultiTemplate", "addToComplexProperty",
|
|
1616
|
+
"isKnownCollection",
|
|
1617
|
+
]
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
extension NativeScriptKit.xml2ui.TemplateParser {
|
|
1622
|
+
public enum State {
|
|
1623
|
+
public static let EXPECTING_START: Double = 0
|
|
1624
|
+
public static let PARSING: Double = 1
|
|
1625
|
+
public static let FINISHED: Double = 2
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
public enum Core_ui_builder_index {
|
|
1630
|
+
public static var ios: String = ""
|
|
1631
|
+
public static var android: String = ""
|
|
1632
|
+
public static var visionos: String = ""
|
|
1633
|
+
public static var apple: String = ""
|
|
1634
|
+
public static let defaultNameSpaceMatcher: JSRegExp = jsRegExpLiteral("tns\\.xsd$", "i")
|
|
1635
|
+
/// @deprecated Use Builder.parse() instead.
|
|
1636
|
+
public static func parse(_ value: Any?, _ context: Any? = nil) throws -> View? {
|
|
1637
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:151)
|
|
1638
|
+
jsLog("parse() is deprecated. Use Builder.parse() instead.")
|
|
1639
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:153)
|
|
1640
|
+
return try Builder.parse(value, context)
|
|
1641
|
+
}
|
|
1642
|
+
#sourceLocation()
|
|
1643
|
+
/// @deprecated Use Builder.parseMultipleTemplates() instead.
|
|
1644
|
+
public static func parseMultipleTemplates(_ value: String, _ context: Any?) throws -> JSArray<Any?>? {
|
|
1645
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:160)
|
|
1646
|
+
jsLog("parseMultipleTemplates() is deprecated. Use Builder.parseMultipleTemplates() instead.")
|
|
1647
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:162)
|
|
1648
|
+
return try Builder.parseMultipleTemplates(value, context)
|
|
1649
|
+
}
|
|
1650
|
+
#sourceLocation()
|
|
1651
|
+
/// @deprecated Use Builder.load() instead.
|
|
1652
|
+
public static func load(_ pathOrOptions: Any?, _ context: Any? = nil) -> JSPromise<View>? {
|
|
1653
|
+
let __async1 = JSAsync<View>()
|
|
1654
|
+
__async1.body {
|
|
1655
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:169)
|
|
1656
|
+
jsLog("load() is deprecated. Use Builder.load() instead.")
|
|
1657
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:171)
|
|
1658
|
+
jsAwait(
|
|
1659
|
+
value: try jsObjectRequired(Builder.load(pathOrOptions, context)),
|
|
1660
|
+
{ (__t_1: View) -> Void in
|
|
1661
|
+
__async1.returnValue(jsObjectRequired(__t_1))
|
|
1662
|
+
}, { __async1.throwValue($0) })
|
|
1663
|
+
}
|
|
1664
|
+
return __async1.promise
|
|
1665
|
+
}
|
|
1666
|
+
#sourceLocation()
|
|
1667
|
+
/// @deprecated Use Builder.createViewFromEntry() instead.
|
|
1668
|
+
public static func createViewFromEntry(_ entry: Any?) throws -> View? {
|
|
1669
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:178)
|
|
1670
|
+
jsLog("createViewFromEntry() is deprecated. Use Builder.createViewFromEntry() instead.")
|
|
1671
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:180)
|
|
1672
|
+
return try jsImplicit(Builder.createViewFromEntry(entry))
|
|
1673
|
+
}
|
|
1674
|
+
#sourceLocation()
|
|
1675
|
+
public static let pageFactories: JSMap<String, Any?> = JSMap<String, Any?>()
|
|
1676
|
+
public static let pageCodeModules: JSMap<String, String> = JSMap<String, String>()
|
|
1677
|
+
public static let ownedCodeModules: JSMap<String, Any?> = JSMap<String, Any?>()
|
|
1678
|
+
/// Registers the factory of the XML file `xmlModule` (as the module name resolver names it, without a leading `./`);
|
|
1679
|
+
/// `undefined` removes it. The resolver still picks the file, so qualified variants keep their own factories.
|
|
1680
|
+
/// `codeModule`/`codeExports`: the file's code-behind as the resolver names it and the very object `global.loadModule`
|
|
1681
|
+
/// returns for it, which core then takes without loading the module.
|
|
1682
|
+
public static func registerPageFactory(
|
|
1683
|
+
_ xmlModule: String, _ factory: ((Any?, String, String) throws -> View)? = nil, _ codeModule: String? = nil,
|
|
1684
|
+
_ codeExports: Any? = nil
|
|
1685
|
+
) throws {
|
|
1686
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:200)
|
|
1687
|
+
let owned: String? = Core_ui_builder_index.pageCodeModules.get(xmlModule)
|
|
1688
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:201)
|
|
1689
|
+
if owned != nil {
|
|
1690
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:202)
|
|
1691
|
+
_ = Core_ui_builder_index.pageCodeModules.delete(xmlModule)
|
|
1692
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:203)
|
|
1693
|
+
_ = Core_ui_builder_index.ownedCodeModules.delete((owned ?? "undefined"))
|
|
1694
|
+
}
|
|
1695
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:205)
|
|
1696
|
+
if jsTruthy(factory as Any?) {
|
|
1697
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:206)
|
|
1698
|
+
_ = try Core_ui_builder_index.pageFactories.set(
|
|
1699
|
+
xmlModule, FunctionCell_AnyOpt_String_String_to_ViewOpt.scriptOrNil("", 3, factory))
|
|
1700
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:207)
|
|
1701
|
+
if jsTruthy(codeModule as Any?) {
|
|
1702
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:208)
|
|
1703
|
+
_ = Core_ui_builder_index.pageCodeModules.set(xmlModule, (codeModule ?? "undefined"))
|
|
1704
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:209)
|
|
1705
|
+
_ = Core_ui_builder_index.ownedCodeModules.set((codeModule ?? "undefined"), codeExports)
|
|
1706
|
+
}
|
|
1707
|
+
} else {
|
|
1708
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:212)
|
|
1709
|
+
_ = Core_ui_builder_index.pageFactories.delete(xmlModule)
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
#sourceLocation()
|
|
1713
|
+
public static func loadCodeModule(_ resolvedCodeModuleName: String) throws -> Any? {
|
|
1714
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:217)
|
|
1715
|
+
let name: String =
|
|
1716
|
+
(jsStartsWith(resolvedCodeModuleName, "./", nil)
|
|
1717
|
+
? jsSubstring(resolvedCodeModuleName, 2, nil) : resolvedCodeModuleName)
|
|
1718
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:219)
|
|
1719
|
+
return try
|
|
1720
|
+
(Core_ui_builder_index.ownedCodeModules.has(name)
|
|
1721
|
+
? (Core_ui_builder_index.ownedCodeModules.get(name) ?? nil)
|
|
1722
|
+
: jsCallMethod(jsGlobalThis, "loadModule", resolvedCodeModuleName))
|
|
1723
|
+
}
|
|
1724
|
+
#sourceLocation()
|
|
1725
|
+
public static func loadInternal(_ moduleName: String, _ moduleExports: Any?) throws -> Any? {
|
|
1726
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:223)
|
|
1727
|
+
var componentModule: Any? = nil
|
|
1728
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:224)
|
|
1729
|
+
let resolvedXmlModule: String? = try Core_module_name_resolver_index.resolveModuleName(moduleName, "xml")
|
|
1730
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:226)
|
|
1731
|
+
if jsTruthy(resolvedXmlModule as Any?) {
|
|
1732
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:227)
|
|
1733
|
+
let factory: ((Any?, String, String) throws -> View)? =
|
|
1734
|
+
FunctionCell_AnyOpt_String_String_to_View.fromScriptOrNil(
|
|
1735
|
+
(Core_ui_builder_index.pageFactories.get(
|
|
1736
|
+
(jsStartsWith((resolvedXmlModule ?? "undefined"), "./", nil)
|
|
1737
|
+
? jsSubstring((resolvedXmlModule ?? "undefined"), 2, nil)
|
|
1738
|
+
: (resolvedXmlModule ?? "undefined"))) ?? nil))
|
|
1739
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:228)
|
|
1740
|
+
if jsTruthy(factory) {
|
|
1741
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:229)
|
|
1742
|
+
componentModule = try JSObject([
|
|
1743
|
+
(
|
|
1744
|
+
"component",
|
|
1745
|
+
jsCallable(factory, "factory")(moduleExports, moduleName, (resolvedXmlModule ?? "undefined"))
|
|
1746
|
+
), ("exports", moduleExports),
|
|
1747
|
+
])
|
|
1748
|
+
} else {
|
|
1749
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:231)
|
|
1750
|
+
let text: Any? = try jsCallMethod(jsGlobalThis, "loadModule", (resolvedXmlModule as Any?))
|
|
1751
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:232)
|
|
1752
|
+
componentModule = try Core_ui_builder_index.parseInternal(
|
|
1753
|
+
try jsConvertedString(text), moduleExports, resolvedXmlModule, moduleName)
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:236)
|
|
1757
|
+
let componentView: ViewBase? = try { () throws -> ViewBase? in
|
|
1758
|
+
let __v_4 = componentModule
|
|
1759
|
+
return jsTruthy(__v_4) ? try (jsCast(jsGet(componentModule, "component"), ViewBase.self)) : nil
|
|
1760
|
+
}()
|
|
1761
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:237)
|
|
1762
|
+
if jsTruthy(componentView) {
|
|
1763
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:239)
|
|
1764
|
+
try jsSet(componentView, "exports", moduleExports)
|
|
1765
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:242)
|
|
1766
|
+
try jsUnwrap(componentView, setting: "_moduleName")._moduleName = moduleName
|
|
1767
|
+
}
|
|
1768
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:245)
|
|
1769
|
+
if !jsTruthy(componentModule) {
|
|
1770
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:246)
|
|
1771
|
+
throw JSException(value: JSError("Failed to load component from module: " + moduleName))
|
|
1772
|
+
}
|
|
1773
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:249)
|
|
1774
|
+
return componentModule
|
|
1775
|
+
}
|
|
1776
|
+
#sourceLocation()
|
|
1777
|
+
public static func loadCustomComponent(
|
|
1778
|
+
_ componentNamespace: String, _ componentName: String? = nil, _ attributes: Any? = nil, _ context: Any? = nil,
|
|
1779
|
+
_ parentPage: View? = nil, _ isRootComponent: Bool = true, _ moduleNamePath: String? = nil,
|
|
1780
|
+
_ bindingKey: String? = nil
|
|
1781
|
+
) throws -> Any? {
|
|
1782
|
+
var componentNamespace = componentNamespace
|
|
1783
|
+
var parentPage: View? = parentPage
|
|
1784
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:253)
|
|
1785
|
+
if !jsTruthy(parentPage as Any?) && jsTruthy(context) {
|
|
1786
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:256)
|
|
1787
|
+
parentPage = try jsCast(jsGet(context, "_parentPage"), View.self)
|
|
1788
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:257)
|
|
1789
|
+
_ = try jsDelete(context, "_parentPage")
|
|
1790
|
+
}
|
|
1791
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:260)
|
|
1792
|
+
var result: Any? = nil
|
|
1793
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:262)
|
|
1794
|
+
componentNamespace = try Core_utils_common.sanitizeModuleName(componentNamespace)
|
|
1795
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:263)
|
|
1796
|
+
let moduleName: String = "\(componentNamespace)/\(jsToString(componentName as Any?))"
|
|
1797
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:264)
|
|
1798
|
+
let resolvedCodeModuleName: String? = try Core_module_name_resolver_index.resolveModuleName(moduleName, "")
|
|
1799
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:265)
|
|
1800
|
+
let resolvedXmlModuleName: String? = try Core_module_name_resolver_index.resolveModuleName(moduleName, "xml")
|
|
1801
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:266)
|
|
1802
|
+
var resolvedCssModuleName: String? = try Core_module_name_resolver_index.resolveModuleName(moduleName, "css")
|
|
1803
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:268)
|
|
1804
|
+
if jsTruthy(resolvedXmlModuleName as Any?) {
|
|
1805
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:270)
|
|
1806
|
+
var subExports: Any? = context
|
|
1807
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:271)
|
|
1808
|
+
if jsTruthy(resolvedCodeModuleName as Any?) {
|
|
1809
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:273)
|
|
1810
|
+
subExports = try Core_ui_builder_index.loadCodeModule((resolvedCodeModuleName ?? "undefined"))
|
|
1811
|
+
}
|
|
1812
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:278)
|
|
1813
|
+
if !jsTruthy(subExports) {
|
|
1814
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:279)
|
|
1815
|
+
subExports = JSObject([])
|
|
1816
|
+
}
|
|
1817
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:282)
|
|
1818
|
+
try jsSet(subExports, "_parentPage", (parentPage as Any?))
|
|
1819
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:284)
|
|
1820
|
+
result = try Core_ui_builder_index.loadInternal(moduleName, subExports)
|
|
1821
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:287)
|
|
1822
|
+
if try Core_utils_types.isDefined(result) && Core_utils_types.isDefined(jsGet(result, "component"))
|
|
1823
|
+
&& Core_utils_types.isDefined(attributes)
|
|
1824
|
+
{
|
|
1825
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:288)
|
|
1826
|
+
for attr in jsKeysOf(attributes) {
|
|
1827
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:289)
|
|
1828
|
+
try Core_ui_builder_component_builder_index.setPropertyValue(
|
|
1829
|
+
jsGet(result, "component"), subExports, context, attr, jsGet(attributes, attr),
|
|
1830
|
+
({ () -> String in
|
|
1831
|
+
let __v_5 = bindingKey
|
|
1832
|
+
return jsTruthy(__v_5) ? jsToString(bindingKey as Any?) + attr : (__v_5 ?? "undefined")
|
|
1833
|
+
}()))
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
} else {
|
|
1837
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:294)
|
|
1838
|
+
result = try Core_ui_builder_component_builder_index.getComponentModule(
|
|
1839
|
+
(componentName ?? "undefined"), componentNamespace, attributes, context, moduleNamePath,
|
|
1840
|
+
isRootComponent, bindingKey)
|
|
1841
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:299)
|
|
1842
|
+
if !jsTruthy(resolvedCssModuleName as Any?) {
|
|
1843
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:300)
|
|
1844
|
+
resolvedCssModuleName = try Core_module_name_resolver_index.resolveModuleName(componentNamespace, "css")
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:305)
|
|
1848
|
+
if jsTruthy(parentPage as Any?) && jsTruthy(resolvedCssModuleName as Any?) {
|
|
1849
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:306)
|
|
1850
|
+
try jsUnwrap(parentPage, "addCssFile").addCssFile((resolvedCssModuleName ?? "undefined"))
|
|
1851
|
+
}
|
|
1852
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:309)
|
|
1853
|
+
return result
|
|
1854
|
+
}
|
|
1855
|
+
#sourceLocation()
|
|
1856
|
+
public static func getExports(_ instance: ViewBase?) throws -> Any? {
|
|
1857
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:313)
|
|
1858
|
+
let isView: Bool = try !(!(jsTruthy(jsUnwrap(instance, "_domId")._domId)))
|
|
1859
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:314)
|
|
1860
|
+
if !isView {
|
|
1861
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:315)
|
|
1862
|
+
return try
|
|
1863
|
+
({ () throws -> Any? in
|
|
1864
|
+
let __v_6 = try jsGet(instance, "exports")
|
|
1865
|
+
return jsTruthy(__v_6) ? __v_6 : instance
|
|
1866
|
+
}())
|
|
1867
|
+
}
|
|
1868
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:318)
|
|
1869
|
+
var exportObject: Any? = try jsGet(instance, "exports")
|
|
1870
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:319)
|
|
1871
|
+
var parent: ViewBase? = try jsUnwrap(instance, "parent").parent
|
|
1872
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:320)
|
|
1873
|
+
while jsStrictEquals(exportObject, nil) && jsTruthy(parent) {
|
|
1874
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:321)
|
|
1875
|
+
exportObject = try jsGet(parent, "exports")
|
|
1876
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:322)
|
|
1877
|
+
parent = try jsUnwrap(parent, "parent").parent
|
|
1878
|
+
}
|
|
1879
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:325)
|
|
1880
|
+
return exportObject
|
|
1881
|
+
}
|
|
1882
|
+
#sourceLocation()
|
|
1883
|
+
public static func parseInternal(
|
|
1884
|
+
_ value: String, _ context: Any?, _ xmlModule: String? = nil, _ moduleName: String? = nil
|
|
1885
|
+
) throws -> Any? {
|
|
1886
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:329)
|
|
1887
|
+
do {
|
|
1888
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:330)
|
|
1889
|
+
var start: NativeScriptKit.xml2ui.XmlStringParser?
|
|
1890
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:331)
|
|
1891
|
+
var ui: NativeScriptKit.xml2ui.ComponentParser?
|
|
1892
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:333)
|
|
1893
|
+
let errorFormat: ((JSError?, Any?) throws -> JSError)? =
|
|
1894
|
+
((Core_utils_debug.debug && jsTruthy(xmlModule as Any?))
|
|
1895
|
+
? NativeScriptKit.xml2ui.SourceErrorFormat((xmlModule as Any?))
|
|
1896
|
+
: FunctionCell_JSErrorOpt_AnyOpt_to_JSError.adaptingOrNil(
|
|
1897
|
+
NativeScriptKit.xml2ui.PositionErrorFormat))
|
|
1898
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:334)
|
|
1899
|
+
let componentSourceTracker: ((Any?, Any?) throws -> Void)? =
|
|
1900
|
+
((Core_utils_debug.debug && jsTruthy(xmlModule as Any?))
|
|
1901
|
+
? NativeScriptKit.xml2ui.ComponentSourceTracker((xmlModule as Any?))
|
|
1902
|
+
: { (_ __unused0: Any?, _ __unused1: Any?) -> Void in
|
|
1903
|
+
|
|
1904
|
+
})
|
|
1905
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:341)
|
|
1906
|
+
_ =
|
|
1907
|
+
try
|
|
1908
|
+
(jsUnwrap(
|
|
1909
|
+
jsUnwrap(
|
|
1910
|
+
({ () -> NativeScriptKit.xml2ui.XmlStringParser? in
|
|
1911
|
+
start = NativeScriptKit.xml2ui.XmlStringParser(errorFormat)
|
|
1912
|
+
return start
|
|
1913
|
+
}()), "pipe"
|
|
1914
|
+
).pipe(NativeScriptKit.xml2ui.PlatformFilter()) as? NativeScriptKit.xml2ui.PlatformFilter, "pipe"
|
|
1915
|
+
).pipe(
|
|
1916
|
+
NativeScriptKit.xml2ui.XmlStateParser(
|
|
1917
|
+
({ () throws -> NativeScriptKit.xml2ui.ComponentParser? in
|
|
1918
|
+
try ui = NativeScriptKit.xml2ui.ComponentParser(
|
|
1919
|
+
context, FunctionCell_JSErrorOpt_AnyOpt_to_JSError.present(errorFormat),
|
|
1920
|
+
FunctionCell_AnyOpt_AnyOpt_to_Void.present(componentSourceTracker), moduleName,
|
|
1921
|
+
xmlModule)
|
|
1922
|
+
return ui
|
|
1923
|
+
}()))) as? NativeScriptKit.xml2ui.XmlStateParser)
|
|
1924
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:343)
|
|
1925
|
+
try jsUnwrap(start, "parse").parse(value)
|
|
1926
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:345)
|
|
1927
|
+
return try jsUnwrap(ui, "rootComponentModule").rootComponentModule
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
#sourceLocation()
|
|
1933
|
+
public func __init_Core_ui_builder_index() {
|
|
1934
|
+
jsReport {
|
|
1935
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:19)
|
|
1936
|
+
if try jsStringEquals(jsTypeof(jsGet(jsGlobalThis, "__metadata")), "undefined") {
|
|
1937
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:26)
|
|
1938
|
+
try jsSet(
|
|
1939
|
+
jsGlobalThis, "__metadata",
|
|
1940
|
+
FunctionCell_AnyOpt_AnyOpt_to_AnyOpt.scriptOrNil(
|
|
1941
|
+
"", 2,
|
|
1942
|
+
{ (metadataKey: Any?, metadataValue: Any?) throws -> Any? in
|
|
1943
|
+
return nil
|
|
1944
|
+
}))
|
|
1945
|
+
}
|
|
1946
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:40)
|
|
1947
|
+
Core_ui_builder_index.ios = Core_platform_common.platformNames.ios.lowercased()
|
|
1948
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:41)
|
|
1949
|
+
Core_ui_builder_index.android = Core_platform_common.platformNames.android.lowercased()
|
|
1950
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:42)
|
|
1951
|
+
Core_ui_builder_index.visionos = Core_platform_common.platformNames.visionos.lowercased()
|
|
1952
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:43)
|
|
1953
|
+
Core_ui_builder_index.apple = Core_platform_common.platformNames.apple.lowercased()
|
|
1954
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:351)
|
|
1955
|
+
JSPrototypes.declare(
|
|
1956
|
+
NativeScriptKit.xml2ui.TemplateParser.self, "elementName",
|
|
1957
|
+
get: { (__this: Any?) throws -> Any? in
|
|
1958
|
+
guard let __o = __this as? NativeScriptKit.xml2ui.TemplateParser else {
|
|
1959
|
+
throw JSException(JSTypeError("Illegal invocation"))
|
|
1960
|
+
}
|
|
1961
|
+
return try __o.elementName
|
|
1962
|
+
}, set: nil)
|
|
1963
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:351)
|
|
1964
|
+
|
|
1965
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:351)
|
|
1966
|
+
JSPrototypes.declare(
|
|
1967
|
+
NativeScriptKit.xml2ui.MultiTemplateParser.self, "value",
|
|
1968
|
+
get: { (__this: Any?) throws -> Any? in
|
|
1969
|
+
guard let __o = __this as? NativeScriptKit.xml2ui.MultiTemplateParser else {
|
|
1970
|
+
throw JSException(JSTypeError("Illegal invocation"))
|
|
1971
|
+
}
|
|
1972
|
+
return __o.value
|
|
1973
|
+
}, set: nil)
|
|
1974
|
+
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:351)
|
|
1975
|
+
JSPrototypes.declareStatics(
|
|
1976
|
+
NativeScriptKit.xml2ui.ComponentParser.self,
|
|
1977
|
+
[
|
|
1978
|
+
("KNOWNCOLLECTIONS", { () -> Any? in NativeScriptKit.xml2ui.ComponentParser.KNOWNCOLLECTIONS }),
|
|
1979
|
+
("KNOWNTEMPLATES", { () -> Any? in NativeScriptKit.xml2ui.ComponentParser.KNOWNTEMPLATES }),
|
|
1980
|
+
("KNOWNMULTITEMPLATES", { () -> Any? in NativeScriptKit.xml2ui.ComponentParser.KNOWNMULTITEMPLATES }),
|
|
1981
|
+
(
|
|
1982
|
+
"isComplexProperty",
|
|
1983
|
+
{ () -> Any? in
|
|
1984
|
+
FunctionCell_String_to_Bool.script(
|
|
1985
|
+
"isComplexProperty", 1, NativeScriptKit.xml2ui.ComponentParser.isComplexProperty)
|
|
1986
|
+
}
|
|
1987
|
+
),
|
|
1988
|
+
(
|
|
1989
|
+
"getComplexPropertyName",
|
|
1990
|
+
{ () -> Any? in
|
|
1991
|
+
FunctionCell_String_to_StringOpt.script(
|
|
1992
|
+
"getComplexPropertyName", 1, NativeScriptKit.xml2ui.ComponentParser.getComplexPropertyName)
|
|
1993
|
+
}
|
|
1994
|
+
),
|
|
1995
|
+
(
|
|
1996
|
+
"isKnownTemplate",
|
|
1997
|
+
{ () -> Any? in
|
|
1998
|
+
FunctionCell_String_AnyOpt_to_Bool.script(
|
|
1999
|
+
"isKnownTemplate", 2, NativeScriptKit.xml2ui.ComponentParser.isKnownTemplate)
|
|
2000
|
+
}
|
|
2001
|
+
),
|
|
2002
|
+
(
|
|
2003
|
+
"isKnownMultiTemplate",
|
|
2004
|
+
{ () -> Any? in
|
|
2005
|
+
FunctionCell_String_AnyOpt_to_Bool.script(
|
|
2006
|
+
"isKnownMultiTemplate", 2, NativeScriptKit.xml2ui.ComponentParser.isKnownMultiTemplate)
|
|
2007
|
+
}
|
|
2008
|
+
),
|
|
2009
|
+
(
|
|
2010
|
+
"addToComplexProperty",
|
|
2011
|
+
{ () -> Any? in
|
|
2012
|
+
FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.script(
|
|
2013
|
+
"addToComplexProperty", 3, NativeScriptKit.xml2ui.ComponentParser.addToComplexProperty)
|
|
2014
|
+
}
|
|
2015
|
+
),
|
|
2016
|
+
(
|
|
2017
|
+
"isKnownCollection",
|
|
2018
|
+
{ () -> Any? in
|
|
2019
|
+
FunctionCell_String_AnyOpt_to_Bool.script(
|
|
2020
|
+
"isKnownCollection", 2, NativeScriptKit.xml2ui.ComponentParser.isKnownCollection)
|
|
2021
|
+
}
|
|
2022
|
+
),
|
|
2023
|
+
])
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
#sourceLocation()
|