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