@nstudio/nativescript-compiler 0.0.0-stage → 9.2.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +624 -0
- package/dist/kotlin/app-modules.js +111 -0
- package/dist/kotlin/arguments.js +397 -0
- package/dist/kotlin/assignment.js +226 -0
- package/dist/kotlin/builtins.js +575 -0
- package/dist/kotlin/calls.js +516 -0
- package/dist/kotlin/checked.js +61 -0
- package/dist/kotlin/class-accessors.js +129 -0
- package/dist/kotlin/class-constructor.js +117 -0
- package/dist/kotlin/class-declaration.js +308 -0
- package/dist/kotlin/class-fields.js +361 -0
- package/dist/kotlin/class-methods.js +213 -0
- package/dist/kotlin/classes.js +333 -0
- package/dist/kotlin/components.js +445 -0
- package/dist/kotlin/construction.js +228 -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 +461 -0
- package/dist/kotlin/functions.js +474 -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 +184 -0
- package/dist/kotlin/mixins.js +103 -0
- package/dist/kotlin/modules.js +769 -0
- package/dist/kotlin/names.js +274 -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 +445 -0
- package/dist/kotlin/optional-chains.js +279 -0
- package/dist/kotlin/overrides.js +825 -0
- package/dist/kotlin/placement.js +746 -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 +806 -0
- package/dist/kotlin/type-facts.js +414 -0
- package/dist/kotlin/type-tests.js +250 -0
- package/dist/kotlin/types.js +655 -0
- package/dist/kotlin/untyped-values.js +354 -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 +1040 -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 +425 -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 +180 -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 +878 -0
- package/dist/semantics/top-names.js +59 -0
- package/dist/semantics/translator-methods.js +597 -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 +456 -0
- package/dist/semantics/worker-state.js +198 -0
- package/dist/swift/access.js +749 -0
- package/dist/swift/app-modules.js +41 -0
- package/dist/swift/arguments.js +236 -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 +139 -0
- package/dist/swift/class-declaration.js +282 -0
- package/dist/swift/class-fields.js +360 -0
- package/dist/swift/class-methods.js +229 -0
- package/dist/swift/classes.js +522 -0
- package/dist/swift/components.js +386 -0
- package/dist/swift/construction.js +287 -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 +568 -0
- package/dist/swift/from-any.js +316 -0
- package/dist/swift/functions.js +487 -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 +244 -0
- package/dist/swift/marks.js +212 -0
- package/dist/swift/members.js +253 -0
- package/dist/swift/method-values.js +177 -0
- package/dist/swift/mixins.js +113 -0
- package/dist/swift/modules.js +969 -0
- package/dist/swift/names.js +371 -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 +571 -0
- package/dist/swift/optional-chains.js +405 -0
- package/dist/swift/parameters.js +210 -0
- package/dist/swift/placement.js +896 -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 +886 -0
- package/dist/swift/type-facts.js +539 -0
- package/dist/swift/type-tests.js +211 -0
- package/dist/swift/types.js +659 -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 +668 -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 +651 -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 +518 -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 +1237 -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 +700 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable.index.swift +1166 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.virtual-array.index.swift +326 -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 +30789 -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 +3238 -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 +1046 -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 +64 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +1640 -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 +470 -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 +340 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Inspect.swift +758 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +42 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +728 -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 +588 -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 +2061 -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,3532 @@
|
|
|
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
|
+
object Specificity {
|
|
7
|
+
const val Inline: Double = 1000.0
|
|
8
|
+
const val Id: Double = 100.0
|
|
9
|
+
const val Attribute: Double = 10.0
|
|
10
|
+
const val Class: Double = 10.0
|
|
11
|
+
const val PseudoClass: Double = 10.0
|
|
12
|
+
const val Type: Double = 1.0
|
|
13
|
+
const val Universal: Double = 0.0
|
|
14
|
+
const val Invalid: Double = 0.0
|
|
15
|
+
const val Zero: Double = 0.0
|
|
16
|
+
const val SelectorListHighest: Double = -1.0
|
|
17
|
+
val jsEnumObject: JSObject by kotlin.lazy {
|
|
18
|
+
jsObjectOf(
|
|
19
|
+
"Inline" to 1000.0,
|
|
20
|
+
"1000" to "Inline",
|
|
21
|
+
"Id" to 100.0,
|
|
22
|
+
"100" to "Id",
|
|
23
|
+
"Attribute" to 10.0,
|
|
24
|
+
"10" to "Attribute",
|
|
25
|
+
"Class" to 10.0,
|
|
26
|
+
"10" to "Class",
|
|
27
|
+
"PseudoClass" to 10.0,
|
|
28
|
+
"10" to "PseudoClass",
|
|
29
|
+
"Type" to 1.0,
|
|
30
|
+
"1" to "Type",
|
|
31
|
+
"Universal" to 0.0,
|
|
32
|
+
"0" to "Universal",
|
|
33
|
+
"Invalid" to 0.0,
|
|
34
|
+
"0" to "Invalid",
|
|
35
|
+
"Zero" to 0.0,
|
|
36
|
+
"0" to "Zero",
|
|
37
|
+
"SelectorListHighest" to -1.0,
|
|
38
|
+
"-1" to "SelectorListHighest",
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
object Rarity {
|
|
44
|
+
const val Invalid: Double = 4.0
|
|
45
|
+
const val Id: Double = 3.0
|
|
46
|
+
const val Class: Double = 2.0
|
|
47
|
+
const val Type: Double = 1.0
|
|
48
|
+
const val PseudoClass: Double = 0.0
|
|
49
|
+
const val Attribute: Double = 0.0
|
|
50
|
+
const val Universal: Double = 0.0
|
|
51
|
+
const val Inline: Double = 0.0
|
|
52
|
+
val jsEnumObject: JSObject by kotlin.lazy {
|
|
53
|
+
jsObjectOf(
|
|
54
|
+
"Invalid" to 4.0,
|
|
55
|
+
"4" to "Invalid",
|
|
56
|
+
"Id" to 3.0,
|
|
57
|
+
"3" to "Id",
|
|
58
|
+
"Class" to 2.0,
|
|
59
|
+
"2" to "Class",
|
|
60
|
+
"Type" to 1.0,
|
|
61
|
+
"1" to "Type",
|
|
62
|
+
"PseudoClass" to 0.0,
|
|
63
|
+
"0" to "PseudoClass",
|
|
64
|
+
"Attribute" to 0.0,
|
|
65
|
+
"0" to "Attribute",
|
|
66
|
+
"Universal" to 0.0,
|
|
67
|
+
"0" to "Universal",
|
|
68
|
+
"Inline" to 0.0,
|
|
69
|
+
"0" to "Inline",
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
object PseudoClassSelectorList {
|
|
75
|
+
const val Regular: Double = 0.0
|
|
76
|
+
const val Forgiving: Double = 1.0
|
|
77
|
+
const val Relative: Double = 2.0
|
|
78
|
+
val jsEnumObject: JSObject by kotlin.lazy {
|
|
79
|
+
jsObjectOf(
|
|
80
|
+
"Regular" to 0.0,
|
|
81
|
+
"0" to "Regular",
|
|
82
|
+
"Forgiving" to 1.0,
|
|
83
|
+
"1" to "Forgiving",
|
|
84
|
+
"Relative" to 2.0,
|
|
85
|
+
"2" to "Relative",
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
object Combinator {
|
|
91
|
+
const val descendant: String = " "
|
|
92
|
+
const val child: String = ">"
|
|
93
|
+
const val adjacent: String = "+"
|
|
94
|
+
const val sibling: String = "~"
|
|
95
|
+
const val parent: String = "<"
|
|
96
|
+
const val _column_combinator_: String = "||"
|
|
97
|
+
val jsEnumObject: JSObject by kotlin.lazy {
|
|
98
|
+
jsObjectOf(
|
|
99
|
+
"descendant" to " ",
|
|
100
|
+
"child" to ">",
|
|
101
|
+
"adjacent" to "+",
|
|
102
|
+
"sibling" to "~",
|
|
103
|
+
"parent" to "<",
|
|
104
|
+
"'column-combinator'" to "||",
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
object AttributeSelectorOperator {
|
|
110
|
+
const val exists: String = ""
|
|
111
|
+
const val equals: String = "="
|
|
112
|
+
const val start: String = "^="
|
|
113
|
+
const val end: String = "\$="
|
|
114
|
+
const val any: String = "*="
|
|
115
|
+
const val element: String = "~="
|
|
116
|
+
const val hyphen: String = "|="
|
|
117
|
+
val jsEnumObject: JSObject by kotlin.lazy {
|
|
118
|
+
jsObjectOf(
|
|
119
|
+
"exists" to "",
|
|
120
|
+
"equals" to "=",
|
|
121
|
+
"start" to "^=",
|
|
122
|
+
"end" to "\$=",
|
|
123
|
+
"any" to "*=",
|
|
124
|
+
"element" to "~=",
|
|
125
|
+
"hyphen" to "|=",
|
|
126
|
+
)
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
object SelectorTier {
|
|
131
|
+
const val Application: Double = 0.0
|
|
132
|
+
const val Local: Double = 1.0
|
|
133
|
+
val jsEnumObject: JSObject by kotlin.lazy {
|
|
134
|
+
jsObjectOf("Application" to 0.0, "0" to "Application", "Local" to 1.0, "1" to "Local")
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
object Match {
|
|
139
|
+
@JvmField val Dynamic: Boolean = true
|
|
140
|
+
@JvmField val Static: Boolean = false
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@UiThread
|
|
144
|
+
abstract class SelectorBase : JSExpando, JSKeysMade {
|
|
145
|
+
var jsMadeBits0: Long = 0L
|
|
146
|
+
|
|
147
|
+
fun jsMadeNote0(bit: Long, key: String) {
|
|
148
|
+
if ((jsMadeBits0 and bit) == 0L) {
|
|
149
|
+
jsMadeBits0 = jsMadeBits0 or bit
|
|
150
|
+
jsMadeNote(this, key)
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
override var jsMade: MutableList<String>? = null
|
|
155
|
+
/** Dynamic selectors depend on attributes and pseudo classes. */
|
|
156
|
+
private var __own_dynamic: Boolean? = null
|
|
157
|
+
private var __own_dynamic_set = false
|
|
158
|
+
open var dynamic: Boolean?
|
|
159
|
+
get() =
|
|
160
|
+
if (__own_dynamic_set) __own_dynamic
|
|
161
|
+
else jsConvertedBooleanOrNull(JSPrototypes.value(this.javaClass, "dynamic", this))
|
|
162
|
+
set(value) {
|
|
163
|
+
__own_dynamic = value
|
|
164
|
+
__own_dynamic_set = true
|
|
165
|
+
jsMadeNote0(1L shl 0, "dynamic")
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Selector contains an adjacent sibling ('+') combinator, so its match depends on the direct
|
|
170
|
+
* previous sibling.
|
|
171
|
+
*/
|
|
172
|
+
private var __own_hasAdjacentCombinator: Boolean? = null
|
|
173
|
+
private var __own_hasAdjacentCombinator_set = false
|
|
174
|
+
open var hasAdjacentCombinator: Boolean?
|
|
175
|
+
get() =
|
|
176
|
+
if (__own_hasAdjacentCombinator_set) __own_hasAdjacentCombinator
|
|
177
|
+
else
|
|
178
|
+
jsConvertedBooleanOrNull(
|
|
179
|
+
JSPrototypes.value(this.javaClass, "hasAdjacentCombinator", this)
|
|
180
|
+
)
|
|
181
|
+
set(value) {
|
|
182
|
+
__own_hasAdjacentCombinator = value
|
|
183
|
+
__own_hasAdjacentCombinator_set = true
|
|
184
|
+
jsMadeNote0(1L shl 1, "hasAdjacentCombinator")
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Selector contains a general sibling ('~') combinator, so its match depends on all previous
|
|
189
|
+
* siblings.
|
|
190
|
+
*/
|
|
191
|
+
private var __own_hasSiblingCombinator: Boolean? = null
|
|
192
|
+
private var __own_hasSiblingCombinator_set = false
|
|
193
|
+
open var hasSiblingCombinator: Boolean?
|
|
194
|
+
get() =
|
|
195
|
+
if (__own_hasSiblingCombinator_set) __own_hasSiblingCombinator
|
|
196
|
+
else
|
|
197
|
+
jsConvertedBooleanOrNull(
|
|
198
|
+
JSPrototypes.value(this.javaClass, "hasSiblingCombinator", this)
|
|
199
|
+
)
|
|
200
|
+
set(value) {
|
|
201
|
+
__own_hasSiblingCombinator = value
|
|
202
|
+
__own_hasSiblingCombinator_set = true
|
|
203
|
+
jsMadeNote0(1L shl 2, "hasSiblingCombinator")
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
abstract fun match(node: Any?): Boolean
|
|
207
|
+
|
|
208
|
+
abstract fun mayMatch(node: Any?): Boolean
|
|
209
|
+
|
|
210
|
+
abstract fun trackChanges(node: Any?, map: Any?)
|
|
211
|
+
|
|
212
|
+
override var jsExpando: JSObject? = null
|
|
213
|
+
override val jsDeclaredKeys: List<String>
|
|
214
|
+
get() =
|
|
215
|
+
(if ((jsMadeBits0 and (1L shl 0)) != 0L) listOf("dynamic") else listOf()) +
|
|
216
|
+
(if ((jsMadeBits0 and (1L shl 1)) != 0L) listOf("hasAdjacentCombinator")
|
|
217
|
+
else listOf()) +
|
|
218
|
+
(if ((jsMadeBits0 and (1L shl 2)) != 0L) listOf("hasSiblingCombinator")
|
|
219
|
+
else listOf())
|
|
220
|
+
|
|
221
|
+
override val jsKeys: List<String>
|
|
222
|
+
get() = jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?: listOf()))
|
|
223
|
+
|
|
224
|
+
override val jsClassName: String?
|
|
225
|
+
get() = "SelectorBase"
|
|
226
|
+
|
|
227
|
+
override fun jsGet(key: String): Any? =
|
|
228
|
+
when (key) {
|
|
229
|
+
"dynamic" -> this.dynamic
|
|
230
|
+
"hasAdjacentCombinator" -> this.hasAdjacentCombinator
|
|
231
|
+
"hasSiblingCombinator" -> this.hasSiblingCombinator
|
|
232
|
+
else -> jsExpandoGet(this, key)
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
override fun jsSet(key: String, value: Any?) {
|
|
236
|
+
when (key) {
|
|
237
|
+
"dynamic" -> this.dynamic = jsConvertedBooleanOrNull(value, "dynamic")
|
|
238
|
+
"hasAdjacentCombinator" ->
|
|
239
|
+
this.hasAdjacentCombinator =
|
|
240
|
+
jsConvertedBooleanOrNull(value, "hasAdjacentCombinator")
|
|
241
|
+
"hasSiblingCombinator" ->
|
|
242
|
+
this.hasSiblingCombinator = jsConvertedBooleanOrNull(value, "hasSiblingCombinator")
|
|
243
|
+
else -> jsExpandoSet(this, key, value)
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
override fun jsHasMember(key: String): Boolean =
|
|
248
|
+
when (key) {
|
|
249
|
+
"dynamic",
|
|
250
|
+
"hasAdjacentCombinator",
|
|
251
|
+
"hasSiblingCombinator" -> true
|
|
252
|
+
else -> false
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@UiThread
|
|
257
|
+
abstract class SelectorCore : SelectorBase {
|
|
258
|
+
@get:JvmName("__get_pos")
|
|
259
|
+
@set:JvmName("__set_pos")
|
|
260
|
+
var pos: Double? = null
|
|
261
|
+
set(value) {
|
|
262
|
+
field = value
|
|
263
|
+
jsMadeNote0(1L shl 3, "pos")
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
private var __own_tier: Double? = null
|
|
267
|
+
private var __own_tier_set = false
|
|
268
|
+
open var tier: Double?
|
|
269
|
+
get() =
|
|
270
|
+
if (__own_tier_set) __own_tier
|
|
271
|
+
else jsConvertedNumberOrNull(JSPrototypes.value(this.javaClass, "tier", this))
|
|
272
|
+
set(value) {
|
|
273
|
+
__own_tier = value
|
|
274
|
+
__own_tier_set = true
|
|
275
|
+
jsMadeNote0(1L shl 4, "tier")
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
private var __own_specificity: Double? = null
|
|
279
|
+
private var __own_specificity_set = false
|
|
280
|
+
open var specificity: Double?
|
|
281
|
+
get() =
|
|
282
|
+
if (__own_specificity_set) __own_specificity
|
|
283
|
+
else jsConvertedNumberOrNull(JSPrototypes.value(this.javaClass, "specificity", this))
|
|
284
|
+
set(value) {
|
|
285
|
+
__own_specificity = value
|
|
286
|
+
__own_specificity_set = true
|
|
287
|
+
jsMadeNote0(1L shl 5, "specificity")
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
private var __own_rarity: Double? = null
|
|
291
|
+
private var __own_rarity_set = false
|
|
292
|
+
open var rarity: Double?
|
|
293
|
+
get() =
|
|
294
|
+
if (__own_rarity_set) __own_rarity
|
|
295
|
+
else jsConvertedNumberOrNull(JSPrototypes.value(this.javaClass, "rarity", this))
|
|
296
|
+
set(value) {
|
|
297
|
+
__own_rarity = value
|
|
298
|
+
__own_rarity_set = true
|
|
299
|
+
jsMadeNote0(1L shl 6, "rarity")
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
private var __own_combinator: String? = null
|
|
303
|
+
private var __own_combinator_set = false
|
|
304
|
+
open var combinator: String?
|
|
305
|
+
get() =
|
|
306
|
+
if (__own_combinator_set) __own_combinator
|
|
307
|
+
else jsConvertedStringOrNull(JSPrototypes.value(this.javaClass, "combinator", this))
|
|
308
|
+
set(value) {
|
|
309
|
+
__own_combinator = value
|
|
310
|
+
__own_combinator_set = true
|
|
311
|
+
jsMadeNote0(1L shl 7, "combinator")
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@get:JvmName("__get_ruleset")
|
|
315
|
+
@set:JvmName("__set_ruleset")
|
|
316
|
+
var ruleset: RuleSet? = null
|
|
317
|
+
set(value) {
|
|
318
|
+
field = value
|
|
319
|
+
jsMadeNote0(1L shl 8, "ruleset")
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
constructor() : super()
|
|
323
|
+
|
|
324
|
+
abstract fun accumulateChanges(node: Any?, map: Any?): Boolean
|
|
325
|
+
|
|
326
|
+
fun lookupSort__SelectorCore(sorter: Any?, base: SelectorCore? = null) {
|
|
327
|
+
jsCallMethod(
|
|
328
|
+
sorter,
|
|
329
|
+
"sortAsUniversal",
|
|
330
|
+
kotlin.run {
|
|
331
|
+
val __v_1: Any? = base
|
|
332
|
+
if (jsTruthy(__v_1)) __v_1 else this
|
|
333
|
+
},
|
|
334
|
+
)
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
open fun lookupSort(sorter: Any?, base: SelectorCore? = null) {
|
|
338
|
+
jsCallMethod(
|
|
339
|
+
sorter,
|
|
340
|
+
"sortAsUniversal",
|
|
341
|
+
kotlin.run {
|
|
342
|
+
val __v_1: Any? = base
|
|
343
|
+
if (jsTruthy(__v_1)) __v_1 else this
|
|
344
|
+
},
|
|
345
|
+
)
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
override val jsDeclaredKeys: List<String>
|
|
349
|
+
get() =
|
|
350
|
+
super.jsDeclaredKeys +
|
|
351
|
+
(if ((jsMadeBits0 and (1L shl 3)) != 0L) listOf("pos") else listOf()) +
|
|
352
|
+
(if ((jsMadeBits0 and (1L shl 4)) != 0L) listOf("tier") else listOf()) +
|
|
353
|
+
(if ((jsMadeBits0 and (1L shl 5)) != 0L) listOf("specificity") else listOf()) +
|
|
354
|
+
(if ((jsMadeBits0 and (1L shl 6)) != 0L) listOf("rarity") else listOf()) +
|
|
355
|
+
(if ((jsMadeBits0 and (1L shl 7)) != 0L) listOf("combinator") else listOf()) +
|
|
356
|
+
(if ((jsMadeBits0 and (1L shl 8)) != 0L) listOf("ruleset") else listOf())
|
|
357
|
+
|
|
358
|
+
override val jsClassName: String?
|
|
359
|
+
get() = "SelectorCore"
|
|
360
|
+
|
|
361
|
+
override fun jsGet(key: String): Any? =
|
|
362
|
+
when (key) {
|
|
363
|
+
"pos" -> if ((jsMadeBits0 and (1L shl 3)) != 0L) this.pos else null
|
|
364
|
+
"tier" -> this.tier
|
|
365
|
+
"specificity" -> this.specificity
|
|
366
|
+
"rarity" -> this.rarity
|
|
367
|
+
"combinator" -> this.combinator
|
|
368
|
+
"ruleset" -> if ((jsMadeBits0 and (1L shl 8)) != 0L) this.ruleset else null
|
|
369
|
+
"lookupSort" ->
|
|
370
|
+
jsFunction { __a ->
|
|
371
|
+
this.lookupSort(
|
|
372
|
+
__a.getOrNull(0),
|
|
373
|
+
jsCast(__a.getOrNull(1), SelectorCore::class.java),
|
|
374
|
+
)
|
|
375
|
+
null
|
|
376
|
+
}
|
|
377
|
+
else -> super.jsGet(key)
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
override fun jsSet(key: String, value: Any?) {
|
|
381
|
+
when (key) {
|
|
382
|
+
"pos" -> this.pos = jsConvertedNumberOrNull(value, "pos")
|
|
383
|
+
"tier" -> this.tier = jsConvertedNumberOrNull(value, "tier")
|
|
384
|
+
"specificity" -> this.specificity = jsConvertedNumberOrNull(value, "specificity")
|
|
385
|
+
"rarity" -> this.rarity = jsConvertedNumberOrNull(value, "rarity")
|
|
386
|
+
"combinator" -> this.combinator = jsConvertedStringOrNull(value, "combinator")
|
|
387
|
+
"ruleset" -> this.ruleset = jsCast(value, RuleSet::class.java)
|
|
388
|
+
else -> super.jsSet(key, value)
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
override fun jsHasMember(key: String): Boolean =
|
|
393
|
+
when (key) {
|
|
394
|
+
"lookupSort",
|
|
395
|
+
"tier",
|
|
396
|
+
"specificity",
|
|
397
|
+
"rarity",
|
|
398
|
+
"combinator" -> true
|
|
399
|
+
else -> super<SelectorBase>.jsHasMember(key)
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
@UiThread
|
|
404
|
+
abstract class SimpleSelector : SelectorCore {
|
|
405
|
+
constructor() : super()
|
|
406
|
+
|
|
407
|
+
override fun accumulateChanges(node: Any?, map: Any?): Boolean {
|
|
408
|
+
if (!jsTruthy(this.dynamic)) {
|
|
409
|
+
return this.match(node)
|
|
410
|
+
} else if (this.mayMatch(node)) {
|
|
411
|
+
this.trackChanges(node, map)
|
|
412
|
+
return true
|
|
413
|
+
}
|
|
414
|
+
return false
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
fun mayMatch__SimpleSelector(node: Any?): Boolean {
|
|
418
|
+
return this.match(node)
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
override fun mayMatch(node: Any?): Boolean {
|
|
422
|
+
return this.match(node)
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
fun trackChanges__SimpleSelector(node: Any?, map: Any?) {}
|
|
426
|
+
|
|
427
|
+
override fun trackChanges(node: Any?, map: Any?) {}
|
|
428
|
+
|
|
429
|
+
override val jsClassName: String?
|
|
430
|
+
get() = "SimpleSelector"
|
|
431
|
+
|
|
432
|
+
override fun jsGet(key: String): Any? =
|
|
433
|
+
when (key) {
|
|
434
|
+
"accumulateChanges" ->
|
|
435
|
+
jsFunction { __a -> this.accumulateChanges(__a.getOrNull(0), __a.getOrNull(1)) }
|
|
436
|
+
"mayMatch" -> jsFunction { __a -> this.mayMatch(__a.getOrNull(0)) }
|
|
437
|
+
"trackChanges" ->
|
|
438
|
+
jsFunction { __a ->
|
|
439
|
+
this.trackChanges(__a.getOrNull(0), __a.getOrNull(1))
|
|
440
|
+
null
|
|
441
|
+
}
|
|
442
|
+
else -> super.jsGet(key)
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
override fun jsSet(key: String, value: Any?) {
|
|
446
|
+
when (key) {
|
|
447
|
+
else -> super.jsSet(key, value)
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
override fun jsHasMember(key: String): Boolean =
|
|
452
|
+
when (key) {
|
|
453
|
+
"accumulateChanges",
|
|
454
|
+
"mayMatch",
|
|
455
|
+
"trackChanges" -> true
|
|
456
|
+
else -> super<SelectorCore>.jsHasMember(key)
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
@UiThread
|
|
461
|
+
open class InvalidSelector : SimpleSelector, JSStringConvertible {
|
|
462
|
+
init {
|
|
463
|
+
if (jsMade != null) jsMadeLevel(this, listOf("e"))
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
open var e: JSError? = null
|
|
467
|
+
|
|
468
|
+
constructor(e: JSError?) : super() {
|
|
469
|
+
this.e = e
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
override fun toString(): String {
|
|
473
|
+
return "<${jsToString(this.e)}>"
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
override fun match(node: Any?): Boolean {
|
|
477
|
+
return false
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
override fun lookupSort(sorter: Any?, base: SelectorCore?) {}
|
|
481
|
+
|
|
482
|
+
override val jsDeclaredKeys: List<String>
|
|
483
|
+
get() = super.jsDeclaredKeys + (if (e == null) listOf() else listOf("e"))
|
|
484
|
+
|
|
485
|
+
override val jsClassName: String?
|
|
486
|
+
get() = "InvalidSelector"
|
|
487
|
+
|
|
488
|
+
override fun jsGet(key: String): Any? =
|
|
489
|
+
when (key) {
|
|
490
|
+
"e" -> this.e
|
|
491
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
492
|
+
"lookupSort" ->
|
|
493
|
+
jsFunction { __a ->
|
|
494
|
+
this.lookupSort(
|
|
495
|
+
__a.getOrNull(0),
|
|
496
|
+
jsCast(__a.getOrNull(1), SelectorCore::class.java),
|
|
497
|
+
)
|
|
498
|
+
null
|
|
499
|
+
}
|
|
500
|
+
else -> super.jsGet(key)
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
override fun jsSet(key: String, value: Any?) {
|
|
504
|
+
when (key) {
|
|
505
|
+
"e" -> this.e = jsCast(value, JSError::class.java)
|
|
506
|
+
else -> super.jsSet(key, value)
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
override fun jsHasMember(key: String): Boolean =
|
|
511
|
+
when (key) {
|
|
512
|
+
"match",
|
|
513
|
+
"lookupSort" -> true
|
|
514
|
+
else -> super<SimpleSelector>.jsHasMember(key)
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
@UiThread
|
|
519
|
+
open class UniversalSelector : SimpleSelector, JSStringConvertible {
|
|
520
|
+
constructor() : super()
|
|
521
|
+
|
|
522
|
+
override fun toString(): String {
|
|
523
|
+
return "*${Core_ui_styling_css_selector.wrap(this.combinator)}"
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
override fun match(node: Any?): Boolean {
|
|
527
|
+
return true
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
override val jsClassName: String?
|
|
531
|
+
get() = "UniversalSelector"
|
|
532
|
+
|
|
533
|
+
override fun jsGet(key: String): Any? =
|
|
534
|
+
when (key) {
|
|
535
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
536
|
+
else -> super.jsGet(key)
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
override fun jsSet(key: String, value: Any?) {
|
|
540
|
+
when (key) {
|
|
541
|
+
else -> super.jsSet(key, value)
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
override fun jsHasMember(key: String): Boolean =
|
|
546
|
+
when (key) {
|
|
547
|
+
"match" -> true
|
|
548
|
+
else -> super<SimpleSelector>.jsHasMember(key)
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
@UiThread
|
|
553
|
+
open class IdSelector : SimpleSelector, JSStringConvertible {
|
|
554
|
+
init {
|
|
555
|
+
if (jsMade != null) jsMadeLevel(this, listOf("id"))
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
open var id: String? = null
|
|
559
|
+
|
|
560
|
+
constructor(id: String?) : super() {
|
|
561
|
+
this.id = id
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
override fun toString(): String {
|
|
565
|
+
return "#${jsToString((this.id ?: "undefined"))}${Core_ui_styling_css_selector.wrap(this.combinator)}"
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
override fun match(node: Any?): Boolean {
|
|
569
|
+
return jsConvertedStringOrNull(jsGet(node, "id")) == this.id
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
override fun lookupSort(sorter: Any?, base: SelectorCore?) {
|
|
573
|
+
jsCallMethod(sorter, "sortById", this.id, jsOr(base) { this })
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
override val jsDeclaredKeys: List<String>
|
|
577
|
+
get() = super.jsDeclaredKeys + (if (id == null) listOf() else listOf("id"))
|
|
578
|
+
|
|
579
|
+
override val jsClassName: String?
|
|
580
|
+
get() = "IdSelector"
|
|
581
|
+
|
|
582
|
+
override fun jsGet(key: String): Any? =
|
|
583
|
+
when (key) {
|
|
584
|
+
"id" -> this.id
|
|
585
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
586
|
+
"lookupSort" ->
|
|
587
|
+
jsFunction { __a ->
|
|
588
|
+
this.lookupSort(
|
|
589
|
+
__a.getOrNull(0),
|
|
590
|
+
jsCast(__a.getOrNull(1), SelectorCore::class.java),
|
|
591
|
+
)
|
|
592
|
+
null
|
|
593
|
+
}
|
|
594
|
+
else -> super.jsGet(key)
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
override fun jsSet(key: String, value: Any?) {
|
|
598
|
+
when (key) {
|
|
599
|
+
"id" -> this.id = jsConvertedStringOrNull(value, "id")
|
|
600
|
+
else -> super.jsSet(key, value)
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
override fun jsHasMember(key: String): Boolean =
|
|
605
|
+
when (key) {
|
|
606
|
+
"match",
|
|
607
|
+
"lookupSort" -> true
|
|
608
|
+
else -> super<SimpleSelector>.jsHasMember(key)
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
@UiThread
|
|
613
|
+
open class TypeSelector : SimpleSelector, JSStringConvertible {
|
|
614
|
+
init {
|
|
615
|
+
if (jsMade != null) jsMadeLevel(this, listOf("cssType"))
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
open var cssType: String? = null
|
|
619
|
+
|
|
620
|
+
constructor(cssType: String?) : super() {
|
|
621
|
+
this.cssType = cssType
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
override fun toString(): String {
|
|
625
|
+
return "${jsToString((this.cssType ?: "undefined"))}${Core_ui_styling_css_selector.wrap(this.combinator)}"
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
override fun match(node: Any?): Boolean {
|
|
629
|
+
return jsConvertedStringOrNull(jsGet(node, "cssType")) == this.cssType
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
override fun lookupSort(sorter: Any?, base: SelectorCore?) {
|
|
633
|
+
jsCallMethod(sorter, "sortByType", this.cssType, jsOr(base) { this })
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
override val jsDeclaredKeys: List<String>
|
|
637
|
+
get() = super.jsDeclaredKeys + (if (cssType == null) listOf() else listOf("cssType"))
|
|
638
|
+
|
|
639
|
+
override val jsClassName: String?
|
|
640
|
+
get() = "TypeSelector"
|
|
641
|
+
|
|
642
|
+
override fun jsGet(key: String): Any? =
|
|
643
|
+
when (key) {
|
|
644
|
+
"cssType" -> this.cssType
|
|
645
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
646
|
+
"lookupSort" ->
|
|
647
|
+
jsFunction { __a ->
|
|
648
|
+
this.lookupSort(
|
|
649
|
+
__a.getOrNull(0),
|
|
650
|
+
jsCast(__a.getOrNull(1), SelectorCore::class.java),
|
|
651
|
+
)
|
|
652
|
+
null
|
|
653
|
+
}
|
|
654
|
+
else -> super.jsGet(key)
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
override fun jsSet(key: String, value: Any?) {
|
|
658
|
+
when (key) {
|
|
659
|
+
"cssType" -> this.cssType = jsConvertedStringOrNull(value, "cssType")
|
|
660
|
+
else -> super.jsSet(key, value)
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
override fun jsHasMember(key: String): Boolean =
|
|
665
|
+
when (key) {
|
|
666
|
+
"match",
|
|
667
|
+
"lookupSort" -> true
|
|
668
|
+
else -> super<SimpleSelector>.jsHasMember(key)
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
@UiThread
|
|
673
|
+
open class ClassSelector : SimpleSelector, JSStringConvertible {
|
|
674
|
+
init {
|
|
675
|
+
if (jsMade != null) jsMadeLevel(this, listOf("cssClass"))
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
open var cssClass: String? = null
|
|
679
|
+
|
|
680
|
+
constructor(cssClass: String?) : super() {
|
|
681
|
+
this.cssClass = cssClass
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
override fun toString(): String {
|
|
685
|
+
return ".${jsToString((this.cssClass ?: "undefined"))}${Core_ui_styling_css_selector.wrap(this.combinator)}"
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
override fun match(node: Any?): Boolean {
|
|
689
|
+
return jsConvertedBooleanOrFalse(
|
|
690
|
+
(jsTruthy(jsAs<JSSet<String>?>(jsJavaArgument(jsGet(node, "cssClasses")))) &&
|
|
691
|
+
(jsAsOrNull<JSSet<String>>(jsGet(node, "cssClasses")) ?: JSSet<String>()).has(
|
|
692
|
+
(this.cssClass ?: "undefined")
|
|
693
|
+
))
|
|
694
|
+
)
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
override fun lookupSort(sorter: Any?, base: SelectorCore?) {
|
|
698
|
+
jsCallMethod(sorter, "sortByClass", this.cssClass, jsOr(base) { this })
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
override val jsDeclaredKeys: List<String>
|
|
702
|
+
get() = super.jsDeclaredKeys + (if (cssClass == null) listOf() else listOf("cssClass"))
|
|
703
|
+
|
|
704
|
+
override val jsClassName: String?
|
|
705
|
+
get() = "ClassSelector"
|
|
706
|
+
|
|
707
|
+
override fun jsGet(key: String): Any? =
|
|
708
|
+
when (key) {
|
|
709
|
+
"cssClass" -> this.cssClass
|
|
710
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
711
|
+
"lookupSort" ->
|
|
712
|
+
jsFunction { __a ->
|
|
713
|
+
this.lookupSort(
|
|
714
|
+
__a.getOrNull(0),
|
|
715
|
+
jsCast(__a.getOrNull(1), SelectorCore::class.java),
|
|
716
|
+
)
|
|
717
|
+
null
|
|
718
|
+
}
|
|
719
|
+
else -> super.jsGet(key)
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
override fun jsSet(key: String, value: Any?) {
|
|
723
|
+
when (key) {
|
|
724
|
+
"cssClass" -> this.cssClass = jsConvertedStringOrNull(value, "cssClass")
|
|
725
|
+
else -> super.jsSet(key, value)
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
override fun jsHasMember(key: String): Boolean =
|
|
730
|
+
when (key) {
|
|
731
|
+
"match",
|
|
732
|
+
"lookupSort" -> true
|
|
733
|
+
else -> super<SimpleSelector>.jsHasMember(key)
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
@UiThread
|
|
738
|
+
open class AttributeSelector : SimpleSelector, JSStringConvertible {
|
|
739
|
+
init {
|
|
740
|
+
if (jsMade != null) jsMadeLevel(this, listOf("attribute", "test", "value", "ignoreCase"))
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
open var attribute: String? = null
|
|
744
|
+
open var test: String? = null
|
|
745
|
+
open var value: String? = null
|
|
746
|
+
open var ignoreCase: Boolean = false
|
|
747
|
+
|
|
748
|
+
constructor(attribute: String?, test: String?, value: String?, ignoreCase: Boolean) : super() {
|
|
749
|
+
this.attribute = attribute
|
|
750
|
+
this.test = test
|
|
751
|
+
this.value = value
|
|
752
|
+
this.ignoreCase = ignoreCase
|
|
753
|
+
if ((ignoreCase && !value.isNullOrEmpty())) {
|
|
754
|
+
this.value = jsLowerCase((value ?: "undefined"))
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
override fun toString(): String {
|
|
759
|
+
return "[${jsToString((this.attribute ?: "undefined"))}${Core_ui_styling_css_selector.wrap((jsConvertedString(AttributeSelectorOperator.jsEnumObject.jsGet(jsToString((this.test ?: "undefined")))) ?: this.test))}${run { val __v_1 = this.value
|
|
760
|
+
if (jsTruthy(__v_1)) __v_1 else "" }}]${Core_ui_styling_css_selector.wrap(this.combinator)}"
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
override fun match(node: Any?): Boolean {
|
|
764
|
+
var attr: Any? = jsGet(node, jsToString((this.attribute ?: "undefined")))
|
|
765
|
+
if (this.test == "exists") {
|
|
766
|
+
return !Core_utils_types.isNullOrUndefined(attr)
|
|
767
|
+
}
|
|
768
|
+
if (this.value.isNullOrEmpty()) {
|
|
769
|
+
return false
|
|
770
|
+
}
|
|
771
|
+
attr = jsAddThrowing(attr, "")
|
|
772
|
+
if (this.ignoreCase) {
|
|
773
|
+
attr = jsCallMethod(attr, "toLowerCase")
|
|
774
|
+
}
|
|
775
|
+
if (this.test == "equals") {
|
|
776
|
+
return jsStrictEquals(attr, this.value)
|
|
777
|
+
}
|
|
778
|
+
if (this.test == "start") {
|
|
779
|
+
return jsConvertedBooleanOrFalse(
|
|
780
|
+
jsCallMethod(attr, "startsWith", this.value)
|
|
781
|
+
)
|
|
782
|
+
}
|
|
783
|
+
if (this.test == "end") {
|
|
784
|
+
return jsConvertedBooleanOrFalse(
|
|
785
|
+
jsCallMethod(attr, "endsWith", this.value)
|
|
786
|
+
)
|
|
787
|
+
}
|
|
788
|
+
if (this.test == "any") {
|
|
789
|
+
return !jsStrictEquals(jsCallMethod(attr, "indexOf", this.value), -1.0)
|
|
790
|
+
}
|
|
791
|
+
if (this.test == "element") {
|
|
792
|
+
val words: Any? = jsCallMethod(attr, "split", " ")
|
|
793
|
+
return jsConvertedBooleanOrFalse(
|
|
794
|
+
kotlin.run {
|
|
795
|
+
val __v_1 = words
|
|
796
|
+
if (jsTruthy(__v_1))
|
|
797
|
+
!jsStrictEquals(jsCallMethod(words, "indexOf", this.value), -1.0)
|
|
798
|
+
else jsConvertedBooleanOrFalse(__v_1)
|
|
799
|
+
}
|
|
800
|
+
)
|
|
801
|
+
}
|
|
802
|
+
if (this.test == "hyphen") {
|
|
803
|
+
return jsConvertedBooleanOrFalse(
|
|
804
|
+
jsOr(jsStrictEquals(attr, this.value)) {
|
|
805
|
+
jsCallMethod(attr, "startsWith", jsToString((this.value ?: "undefined")) + "-")
|
|
806
|
+
}
|
|
807
|
+
)
|
|
808
|
+
}
|
|
809
|
+
return false
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
override fun mayMatch(node: Any?): Boolean {
|
|
813
|
+
return true
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
override fun trackChanges(node: Any?, map: Any?) {
|
|
817
|
+
if (
|
|
818
|
+
Core_ui_styling_css_selector.attributeNotifiesChanges(node, this.attribute)
|
|
819
|
+
) {
|
|
820
|
+
jsCallMethod(map, "addAttribute", node, this.attribute)
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
override val jsDeclaredKeys: List<String>
|
|
825
|
+
get() =
|
|
826
|
+
super.jsDeclaredKeys +
|
|
827
|
+
(if (attribute == null) listOf() else listOf("attribute")) +
|
|
828
|
+
(if (test == null) listOf() else listOf("test")) +
|
|
829
|
+
(if (value == null) listOf() else listOf("value")) +
|
|
830
|
+
listOf("ignoreCase")
|
|
831
|
+
|
|
832
|
+
override val jsClassName: String?
|
|
833
|
+
get() = "AttributeSelector"
|
|
834
|
+
|
|
835
|
+
override fun jsGet(key: String): Any? =
|
|
836
|
+
when (key) {
|
|
837
|
+
"attribute" -> this.attribute
|
|
838
|
+
"test" -> this.test
|
|
839
|
+
"value" -> this.value
|
|
840
|
+
"ignoreCase" -> this.ignoreCase
|
|
841
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
842
|
+
"mayMatch" -> jsFunction { __a -> this.mayMatch(__a.getOrNull(0)) }
|
|
843
|
+
"trackChanges" ->
|
|
844
|
+
jsFunction { __a ->
|
|
845
|
+
this.trackChanges(__a.getOrNull(0), __a.getOrNull(1))
|
|
846
|
+
null
|
|
847
|
+
}
|
|
848
|
+
else -> super.jsGet(key)
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
override fun jsSet(key: String, value: Any?) {
|
|
852
|
+
when (key) {
|
|
853
|
+
"attribute" -> this.attribute = jsConvertedStringOrNull(value, "attribute")
|
|
854
|
+
"test" -> this.test = jsConvertedStringOrNull(value, "test")
|
|
855
|
+
"value" -> this.value = jsConvertedStringOrNull(value, "value")
|
|
856
|
+
"ignoreCase" -> this.ignoreCase = jsConvertedBoolean(value, "ignoreCase")
|
|
857
|
+
else -> super.jsSet(key, value)
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
override fun jsHasMember(key: String): Boolean =
|
|
862
|
+
when (key) {
|
|
863
|
+
"match",
|
|
864
|
+
"mayMatch",
|
|
865
|
+
"trackChanges" -> true
|
|
866
|
+
else -> super<SimpleSelector>.jsHasMember(key)
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
@UiThread
|
|
871
|
+
open class PseudoClassSelector : SimpleSelector, JSStringConvertible {
|
|
872
|
+
init {
|
|
873
|
+
if (jsMade != null) jsMadeLevel(this, listOf("cssPseudoClass"))
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
open var cssPseudoClass: String? = null
|
|
877
|
+
|
|
878
|
+
constructor(cssPseudoClass: String?) : super() {
|
|
879
|
+
this.cssPseudoClass = cssPseudoClass
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
override fun toString(): String {
|
|
883
|
+
return ":${jsToString((this.cssPseudoClass ?: "undefined"))}${Core_ui_styling_css_selector.wrap(this.combinator)}"
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
fun match__PseudoClassSelector(node: Any?): Boolean {
|
|
887
|
+
return jsConvertedBooleanOrFalse(
|
|
888
|
+
(jsTruthy(jsAs<JSSet<String>?>(jsJavaArgument(jsGet(node, "cssPseudoClasses")))) &&
|
|
889
|
+
(jsAsOrNull<JSSet<String>>(jsGet(node, "cssPseudoClasses")) ?: JSSet<String>()).has(
|
|
890
|
+
(this.cssPseudoClass ?: "undefined")
|
|
891
|
+
))
|
|
892
|
+
)
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
override fun match(node: Any?): Boolean {
|
|
896
|
+
return jsConvertedBooleanOrFalse(
|
|
897
|
+
(jsTruthy(jsAs<JSSet<String>?>(jsJavaArgument(jsGet(node, "cssPseudoClasses")))) &&
|
|
898
|
+
(jsAsOrNull<JSSet<String>>(jsGet(node, "cssPseudoClasses")) ?: JSSet<String>()).has(
|
|
899
|
+
(this.cssPseudoClass ?: "undefined")
|
|
900
|
+
))
|
|
901
|
+
)
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
fun mayMatch__PseudoClassSelector(node: Any?): Boolean {
|
|
905
|
+
return true
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
override fun mayMatch(node: Any?): Boolean {
|
|
909
|
+
return true
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
fun trackChanges__PseudoClassSelector(node: Any?, map: Any?) {
|
|
913
|
+
jsCallMethod(map, "addPseudoClass", node, this.cssPseudoClass)
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
override fun trackChanges(node: Any?, map: Any?) {
|
|
917
|
+
jsCallMethod(map, "addPseudoClass", node, this.cssPseudoClass)
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
override val jsDeclaredKeys: List<String>
|
|
921
|
+
get() =
|
|
922
|
+
super.jsDeclaredKeys +
|
|
923
|
+
(if (cssPseudoClass == null) listOf() else listOf("cssPseudoClass"))
|
|
924
|
+
|
|
925
|
+
override val jsClassName: String?
|
|
926
|
+
get() = "PseudoClassSelector"
|
|
927
|
+
|
|
928
|
+
override fun jsGet(key: String): Any? =
|
|
929
|
+
when (key) {
|
|
930
|
+
"cssPseudoClass" -> this.cssPseudoClass
|
|
931
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
932
|
+
"mayMatch" -> jsFunction { __a -> this.mayMatch(__a.getOrNull(0)) }
|
|
933
|
+
"trackChanges" ->
|
|
934
|
+
jsFunction { __a ->
|
|
935
|
+
this.trackChanges(__a.getOrNull(0), __a.getOrNull(1))
|
|
936
|
+
null
|
|
937
|
+
}
|
|
938
|
+
else -> super.jsGet(key)
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
override fun jsSet(key: String, value: Any?) {
|
|
942
|
+
when (key) {
|
|
943
|
+
"cssPseudoClass" ->
|
|
944
|
+
this.cssPseudoClass = jsConvertedStringOrNull(value, "cssPseudoClass")
|
|
945
|
+
else -> super.jsSet(key, value)
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
override fun jsHasMember(key: String): Boolean =
|
|
950
|
+
when (key) {
|
|
951
|
+
"match",
|
|
952
|
+
"mayMatch",
|
|
953
|
+
"trackChanges" -> true
|
|
954
|
+
else -> super<SimpleSelector>.jsHasMember(key)
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
@UiThread
|
|
959
|
+
abstract class FunctionalPseudoClassSelector : PseudoClassSelector {
|
|
960
|
+
@get:JvmName("__get_selectors")
|
|
961
|
+
@set:JvmName("__set_selectors")
|
|
962
|
+
var selectors: JSArray<Any?>? = null
|
|
963
|
+
set(value) {
|
|
964
|
+
field = value
|
|
965
|
+
jsMadeNote0(1L shl 9, "selectors")
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
@get:JvmName("__get_selectorListType")
|
|
969
|
+
@set:JvmName("__set_selectorListType")
|
|
970
|
+
var selectorListType: Double? = null
|
|
971
|
+
set(value) {
|
|
972
|
+
field = value
|
|
973
|
+
jsMadeNote0(1L shl 10, "selectorListType")
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
constructor(cssPseudoClass: String?, dataType: Any?) : super(cssPseudoClass) {
|
|
977
|
+
val selectors: JSArray<Any?> = JSArray<Any?>()
|
|
978
|
+
val needsHighestSpecificity: Boolean =
|
|
979
|
+
this.specificity == Specificity.SelectorListHighest
|
|
980
|
+
var specificity: Double = 0.0
|
|
981
|
+
if (JSArray.isArray(dataType)) {
|
|
982
|
+
for (asts in jsArrayFrom(dataType) { jsArrayFrom(it) { it } }) {
|
|
983
|
+
val selector: Any? =
|
|
984
|
+
Core_ui_styling_css_selector.createSelectorFromAst(asts)
|
|
985
|
+
if ((selector is InvalidSelector)) {
|
|
986
|
+
if (this.selectorListType != PseudoClassSelectorList.Forgiving) {
|
|
987
|
+
selectors.splice(0.0)
|
|
988
|
+
specificity = 0.0
|
|
989
|
+
break
|
|
990
|
+
}
|
|
991
|
+
continue
|
|
992
|
+
}
|
|
993
|
+
if (
|
|
994
|
+
needsHighestSpecificity &&
|
|
995
|
+
jsConvertedNumberOrZero(jsGet(selector, "specificity")) > specificity
|
|
996
|
+
) {
|
|
997
|
+
specificity =
|
|
998
|
+
(jsConvertedNumberOrNull(jsGet(selector, "specificity")) ?: Double.NaN)
|
|
999
|
+
}
|
|
1000
|
+
selectors.push(selector)
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
this.selectors = selectors
|
|
1004
|
+
this.specificity = specificity
|
|
1005
|
+
this.dynamic =
|
|
1006
|
+
(this.selectors ?: jsCannotRead("some")).some({ sel: Any? ->
|
|
1007
|
+
(jsConvertedBooleanOrNull(jsGet(sel, "dynamic")) ?: false)
|
|
1008
|
+
})
|
|
1009
|
+
this.hasAdjacentCombinator =
|
|
1010
|
+
(this.selectors ?: jsCannotRead("some")).some({ sel: Any? ->
|
|
1011
|
+
(jsConvertedBooleanOrNull(jsGet(sel, "hasAdjacentCombinator"))
|
|
1012
|
+
?: false)
|
|
1013
|
+
})
|
|
1014
|
+
this.hasSiblingCombinator =
|
|
1015
|
+
(this.selectors ?: jsCannotRead("some")).some({ sel: Any? ->
|
|
1016
|
+
(jsConvertedBooleanOrNull(jsGet(sel, "hasSiblingCombinator")) ?: false)
|
|
1017
|
+
})
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
override fun toString(): String {
|
|
1021
|
+
return ":${jsToString((this.cssPseudoClass ?: "undefined"))}(${(this.selectors ?: jsCannotRead("join")).join(", ")})${Core_ui_styling_css_selector.wrap(this.combinator)}"
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
fun match__FunctionalPseudoClassSelector(node: Any?): Boolean {
|
|
1025
|
+
return false
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
override fun match(node: Any?): Boolean {
|
|
1029
|
+
return false
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
override fun mayMatch(node: Any?): Boolean {
|
|
1033
|
+
return true
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
override fun trackChanges(node: Any?, map: Any?) {
|
|
1037
|
+
(this.selectors ?: jsCannotRead("forEach")).forEach({ sel: Any? ->
|
|
1038
|
+
jsCallMethod(sel, "trackChanges", node, map)
|
|
1039
|
+
})
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
override val jsDeclaredKeys: List<String>
|
|
1043
|
+
get() =
|
|
1044
|
+
super.jsDeclaredKeys +
|
|
1045
|
+
(if ((jsMadeBits0 and (1L shl 9)) != 0L) listOf("selectors") else listOf()) +
|
|
1046
|
+
(if ((jsMadeBits0 and (1L shl 10)) != 0L) listOf("selectorListType") else listOf())
|
|
1047
|
+
|
|
1048
|
+
override val jsClassName: String?
|
|
1049
|
+
get() = "FunctionalPseudoClassSelector"
|
|
1050
|
+
|
|
1051
|
+
override fun jsGet(key: String): Any? =
|
|
1052
|
+
when (key) {
|
|
1053
|
+
"selectors" -> if ((jsMadeBits0 and (1L shl 9)) != 0L) this.selectors else null
|
|
1054
|
+
"selectorListType" ->
|
|
1055
|
+
if ((jsMadeBits0 and (1L shl 10)) != 0L) this.selectorListType else null
|
|
1056
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
1057
|
+
"mayMatch" -> jsFunction { __a -> this.mayMatch(__a.getOrNull(0)) }
|
|
1058
|
+
"trackChanges" ->
|
|
1059
|
+
jsFunction { __a ->
|
|
1060
|
+
this.trackChanges(__a.getOrNull(0), __a.getOrNull(1))
|
|
1061
|
+
null
|
|
1062
|
+
}
|
|
1063
|
+
else -> super.jsGet(key)
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
override fun jsSet(key: String, value: Any?) {
|
|
1067
|
+
when (key) {
|
|
1068
|
+
"selectors" ->
|
|
1069
|
+
this.selectors = (if (jsIsNullish(value)) null else jsArrayFrom(value) { it })
|
|
1070
|
+
"selectorListType" ->
|
|
1071
|
+
this.selectorListType = jsConvertedNumberOrNull(value, "selectorListType")
|
|
1072
|
+
else -> super.jsSet(key, value)
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
override fun jsHasMember(key: String): Boolean =
|
|
1077
|
+
when (key) {
|
|
1078
|
+
"match",
|
|
1079
|
+
"mayMatch",
|
|
1080
|
+
"trackChanges" -> true
|
|
1081
|
+
else -> super<PseudoClassSelector>.jsHasMember(key)
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
@UiThread
|
|
1086
|
+
open class NotFunctionalPseudoClassSelector : FunctionalPseudoClassSelector {
|
|
1087
|
+
constructor(cssPseudoClass: String?, dataType: Any?) : super(cssPseudoClass, dataType)
|
|
1088
|
+
|
|
1089
|
+
override fun match(node: Any?): Boolean {
|
|
1090
|
+
return !((this.selectors ?: jsCannotRead("some")).some({ sel: Any? ->
|
|
1091
|
+
jsConvertedBooleanOrFalse(jsCallMethod(sel, "match", node))
|
|
1092
|
+
}))
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
override val jsClassName: String?
|
|
1096
|
+
get() = "NotFunctionalPseudoClassSelector"
|
|
1097
|
+
|
|
1098
|
+
override fun jsGet(key: String): Any? =
|
|
1099
|
+
when (key) {
|
|
1100
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
1101
|
+
else -> super.jsGet(key)
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
override fun jsSet(key: String, value: Any?) {
|
|
1105
|
+
when (key) {
|
|
1106
|
+
else -> super.jsSet(key, value)
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
override fun jsHasMember(key: String): Boolean =
|
|
1111
|
+
when (key) {
|
|
1112
|
+
"match" -> true
|
|
1113
|
+
else -> super<FunctionalPseudoClassSelector>.jsHasMember(key)
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
@UiThread
|
|
1118
|
+
open class IsFunctionalPseudoClassSelector : FunctionalPseudoClassSelector {
|
|
1119
|
+
constructor(cssPseudoClass: String?, dataType: Any?) : super(cssPseudoClass, dataType)
|
|
1120
|
+
|
|
1121
|
+
override fun match(node: Any?): Boolean {
|
|
1122
|
+
return (this.selectors ?: jsCannotRead("some")).some({ sel: Any? ->
|
|
1123
|
+
jsConvertedBooleanOrFalse(jsCallMethod(sel, "match", node))
|
|
1124
|
+
})
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
override fun lookupSort(sorter: Any?, base: SelectorCore?) {
|
|
1128
|
+
if ((this.selectors ?: jsCannotRead("length")).length == 1.0) {
|
|
1129
|
+
jsCallMethod(
|
|
1130
|
+
(this.selectors ?: jsCannotRead("0")).element(0.0),
|
|
1131
|
+
"lookupSort",
|
|
1132
|
+
sorter,
|
|
1133
|
+
jsOr(base) { this },
|
|
1134
|
+
)
|
|
1135
|
+
} else {
|
|
1136
|
+
super.lookupSort(
|
|
1137
|
+
sorter,
|
|
1138
|
+
jsCast(jsOr(base) { this }, SelectorCore::class.java),
|
|
1139
|
+
)
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
override val jsClassName: String?
|
|
1144
|
+
get() = "IsFunctionalPseudoClassSelector"
|
|
1145
|
+
|
|
1146
|
+
override fun jsGet(key: String): Any? =
|
|
1147
|
+
when (key) {
|
|
1148
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
1149
|
+
"lookupSort" ->
|
|
1150
|
+
jsFunction { __a ->
|
|
1151
|
+
this.lookupSort(
|
|
1152
|
+
__a.getOrNull(0),
|
|
1153
|
+
jsCast(__a.getOrNull(1), SelectorCore::class.java),
|
|
1154
|
+
)
|
|
1155
|
+
null
|
|
1156
|
+
}
|
|
1157
|
+
else -> super.jsGet(key)
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
override fun jsSet(key: String, value: Any?) {
|
|
1161
|
+
when (key) {
|
|
1162
|
+
else -> super.jsSet(key, value)
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
override fun jsHasMember(key: String): Boolean =
|
|
1167
|
+
when (key) {
|
|
1168
|
+
"match",
|
|
1169
|
+
"lookupSort" -> true
|
|
1170
|
+
else -> super<FunctionalPseudoClassSelector>.jsHasMember(key)
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
@UiThread
|
|
1175
|
+
open class WhereFunctionalPseudoClassSelector : FunctionalPseudoClassSelector {
|
|
1176
|
+
constructor(cssPseudoClass: String?, dataType: Any?) : super(cssPseudoClass, dataType)
|
|
1177
|
+
|
|
1178
|
+
override fun match(node: Any?): Boolean {
|
|
1179
|
+
return (this.selectors ?: jsCannotRead("some")).some({ sel: Any? ->
|
|
1180
|
+
jsConvertedBooleanOrFalse(jsCallMethod(sel, "match", node))
|
|
1181
|
+
})
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
override fun lookupSort(sorter: Any?, base: SelectorCore?) {
|
|
1185
|
+
if ((this.selectors ?: jsCannotRead("length")).length == 1.0) {
|
|
1186
|
+
jsCallMethod(
|
|
1187
|
+
(this.selectors ?: jsCannotRead("0")).element(0.0),
|
|
1188
|
+
"lookupSort",
|
|
1189
|
+
sorter,
|
|
1190
|
+
jsOr(base) { this },
|
|
1191
|
+
)
|
|
1192
|
+
} else {
|
|
1193
|
+
super.lookupSort(
|
|
1194
|
+
sorter,
|
|
1195
|
+
jsCast(jsOr(base) { this }, SelectorCore::class.java),
|
|
1196
|
+
)
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
override val jsClassName: String?
|
|
1201
|
+
get() = "WhereFunctionalPseudoClassSelector"
|
|
1202
|
+
|
|
1203
|
+
override fun jsGet(key: String): Any? =
|
|
1204
|
+
when (key) {
|
|
1205
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
1206
|
+
"lookupSort" ->
|
|
1207
|
+
jsFunction { __a ->
|
|
1208
|
+
this.lookupSort(
|
|
1209
|
+
__a.getOrNull(0),
|
|
1210
|
+
jsCast(__a.getOrNull(1), SelectorCore::class.java),
|
|
1211
|
+
)
|
|
1212
|
+
null
|
|
1213
|
+
}
|
|
1214
|
+
else -> super.jsGet(key)
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
override fun jsSet(key: String, value: Any?) {
|
|
1218
|
+
when (key) {
|
|
1219
|
+
else -> super.jsSet(key, value)
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
override fun jsHasMember(key: String): Boolean =
|
|
1224
|
+
when (key) {
|
|
1225
|
+
"match",
|
|
1226
|
+
"lookupSort" -> true
|
|
1227
|
+
else -> super<FunctionalPseudoClassSelector>.jsHasMember(key)
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
@UiThread
|
|
1232
|
+
open class SimpleSelectorSequence : SimpleSelector, JSStringConvertible {
|
|
1233
|
+
init {
|
|
1234
|
+
if (jsMade != null) jsMadeLevel(this, listOf("selectors"))
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
open var selectors: JSArray<SimpleSelector>? = null
|
|
1238
|
+
@get:JvmName("__get_head")
|
|
1239
|
+
@set:JvmName("__set_head")
|
|
1240
|
+
var head: SimpleSelector? = null
|
|
1241
|
+
set(value) {
|
|
1242
|
+
field = value
|
|
1243
|
+
jsMadeNote0(1L shl 9, "head")
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
constructor(selectors: JSArray<SimpleSelector>?) : super() {
|
|
1247
|
+
this.selectors = selectors
|
|
1248
|
+
this.specificity =
|
|
1249
|
+
(selectors ?: jsCannotRead("reduce")).reduce(
|
|
1250
|
+
{ sum: Double, sel: SimpleSelector? ->
|
|
1251
|
+
((sel ?: jsCannotRead("specificity")).specificity ?: Double.NaN) +
|
|
1252
|
+
sum
|
|
1253
|
+
},
|
|
1254
|
+
0.0,
|
|
1255
|
+
)
|
|
1256
|
+
this.head =
|
|
1257
|
+
(selectors ?: jsCannotRead("reduce")).reduce(
|
|
1258
|
+
{ prev: SimpleSelector?, curr: SimpleSelector? ->
|
|
1259
|
+
((if (
|
|
1260
|
+
!jsTruthy(prev) ||
|
|
1261
|
+
((curr ?: jsCannotRead("rarity")).rarity ?: Double.NaN) >
|
|
1262
|
+
((prev ?: jsCannotRead("rarity")).rarity ?: Double.NaN)
|
|
1263
|
+
)
|
|
1264
|
+
(curr ?: jsObjectRequired())
|
|
1265
|
+
else (prev ?: jsObjectRequired())))
|
|
1266
|
+
},
|
|
1267
|
+
null,
|
|
1268
|
+
)
|
|
1269
|
+
this.dynamic =
|
|
1270
|
+
(selectors ?: jsCannotRead("some")).some({ sel: SimpleSelector? ->
|
|
1271
|
+
((sel ?: jsCannotRead("dynamic")).dynamic ?: false)
|
|
1272
|
+
})
|
|
1273
|
+
this.hasAdjacentCombinator =
|
|
1274
|
+
(selectors ?: jsCannotRead("some")).some({ sel: SimpleSelector? ->
|
|
1275
|
+
((sel ?: jsCannotRead("hasAdjacentCombinator")).hasAdjacentCombinator
|
|
1276
|
+
?: false)
|
|
1277
|
+
})
|
|
1278
|
+
this.hasSiblingCombinator =
|
|
1279
|
+
(selectors ?: jsCannotRead("some")).some({ sel: SimpleSelector? ->
|
|
1280
|
+
((sel ?: jsCannotRead("hasSiblingCombinator")).hasSiblingCombinator
|
|
1281
|
+
?: false)
|
|
1282
|
+
})
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
override fun toString(): String {
|
|
1286
|
+
return "${(this.selectors ?: jsCannotRead("join")).join("")}${Core_ui_styling_css_selector.wrap(this.combinator)}"
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
override fun match(node: Any?): Boolean {
|
|
1290
|
+
val selectors: JSArray<SimpleSelector>? = this.selectors
|
|
1291
|
+
var i: Double = 0.0
|
|
1292
|
+
val length: Double = (selectors ?: jsCannotRead("length")).length
|
|
1293
|
+
while (i < length) {
|
|
1294
|
+
if (
|
|
1295
|
+
!(((selectors ?: jsCannotRead(js(i))).element(i) ?: jsCannotRead("match")).match(
|
|
1296
|
+
node
|
|
1297
|
+
))
|
|
1298
|
+
) {
|
|
1299
|
+
return false
|
|
1300
|
+
}
|
|
1301
|
+
i += 1.0
|
|
1302
|
+
}
|
|
1303
|
+
return true
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
override fun mayMatch(node: Any?): Boolean {
|
|
1307
|
+
val selectors: JSArray<SimpleSelector>? = this.selectors
|
|
1308
|
+
var i: Double = 0.0
|
|
1309
|
+
val length: Double = (selectors ?: jsCannotRead("length")).length
|
|
1310
|
+
while (i < length) {
|
|
1311
|
+
if (
|
|
1312
|
+
!(((selectors ?: jsCannotRead(js(i))).element(i) ?: jsCannotRead("mayMatch"))
|
|
1313
|
+
.mayMatch(node))
|
|
1314
|
+
) {
|
|
1315
|
+
return false
|
|
1316
|
+
}
|
|
1317
|
+
i += 1.0
|
|
1318
|
+
}
|
|
1319
|
+
return true
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
override fun trackChanges(node: Any?, map: Any?) {
|
|
1323
|
+
val selectors: JSArray<SimpleSelector>? = this.selectors
|
|
1324
|
+
var i: Double = 0.0
|
|
1325
|
+
val length: Double = (selectors ?: jsCannotRead("length")).length
|
|
1326
|
+
while (i < length) {
|
|
1327
|
+
((selectors ?: jsCannotRead(js(i))).element(i)
|
|
1328
|
+
?: jsCannotRead("trackChanges"))
|
|
1329
|
+
.trackChanges(node, map)
|
|
1330
|
+
i += 1.0
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
override fun lookupSort(sorter: Any?, base: SelectorCore?) {
|
|
1335
|
+
(this.head ?: jsCannotRead("lookupSort")).lookupSort(
|
|
1336
|
+
sorter,
|
|
1337
|
+
jsCast(jsOr(base) { this }, SelectorCore::class.java),
|
|
1338
|
+
)
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
override val jsDeclaredKeys: List<String>
|
|
1342
|
+
get() =
|
|
1343
|
+
super.jsDeclaredKeys +
|
|
1344
|
+
(if (selectors == null) listOf() else listOf("selectors")) +
|
|
1345
|
+
(if ((jsMadeBits0 and (1L shl 9)) != 0L) listOf("head") else listOf())
|
|
1346
|
+
|
|
1347
|
+
override val jsClassName: String?
|
|
1348
|
+
get() = "SimpleSelectorSequence"
|
|
1349
|
+
|
|
1350
|
+
override fun jsGet(key: String): Any? =
|
|
1351
|
+
when (key) {
|
|
1352
|
+
"selectors" -> this.selectors
|
|
1353
|
+
"head" -> if ((jsMadeBits0 and (1L shl 9)) != 0L) this.head else null
|
|
1354
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
1355
|
+
"mayMatch" -> jsFunction { __a -> this.mayMatch(__a.getOrNull(0)) }
|
|
1356
|
+
"trackChanges" ->
|
|
1357
|
+
jsFunction { __a ->
|
|
1358
|
+
this.trackChanges(__a.getOrNull(0), __a.getOrNull(1))
|
|
1359
|
+
null
|
|
1360
|
+
}
|
|
1361
|
+
"lookupSort" ->
|
|
1362
|
+
jsFunction { __a ->
|
|
1363
|
+
this.lookupSort(
|
|
1364
|
+
__a.getOrNull(0),
|
|
1365
|
+
jsCast(__a.getOrNull(1), SelectorCore::class.java),
|
|
1366
|
+
)
|
|
1367
|
+
null
|
|
1368
|
+
}
|
|
1369
|
+
else -> super.jsGet(key)
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
override fun jsSet(key: String, value: Any?) {
|
|
1373
|
+
when (key) {
|
|
1374
|
+
"selectors" ->
|
|
1375
|
+
this.selectors =
|
|
1376
|
+
(if (jsIsNullish(value)) null
|
|
1377
|
+
else jsArrayFrom(value) { jsCastCarried(it, SimpleSelector::class.java) })
|
|
1378
|
+
"head" -> this.head = jsCast(value, SimpleSelector::class.java)
|
|
1379
|
+
else -> super.jsSet(key, value)
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
override fun jsHasMember(key: String): Boolean =
|
|
1384
|
+
when (key) {
|
|
1385
|
+
"match",
|
|
1386
|
+
"mayMatch",
|
|
1387
|
+
"trackChanges",
|
|
1388
|
+
"lookupSort" -> true
|
|
1389
|
+
else -> super<SimpleSelector>.jsHasMember(key)
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
@UiThread
|
|
1394
|
+
open class ComplexSelector : SelectorCore, JSStringConvertible {
|
|
1395
|
+
init {
|
|
1396
|
+
if (jsMade != null) jsMadeLevel(this, listOf("selectors"))
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
open var selectors: JSArray<SimpleSelector>? = null
|
|
1400
|
+
@get:JvmName("__get_groups")
|
|
1401
|
+
@set:JvmName("__set_groups")
|
|
1402
|
+
var groups: JSArray<org.nativescript.kit.Selector.ChildGroup>? = null
|
|
1403
|
+
set(value) {
|
|
1404
|
+
field = value
|
|
1405
|
+
jsMadeNote0(1L shl 9, "groups")
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
@get:JvmName("__get_last")
|
|
1409
|
+
@set:JvmName("__set_last")
|
|
1410
|
+
var last: SelectorCore? = null
|
|
1411
|
+
set(value) {
|
|
1412
|
+
field = value
|
|
1413
|
+
jsMadeNote0(1L shl 10, "last")
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
constructor(selectors: JSArray<SimpleSelector>?) : super() {
|
|
1417
|
+
this.selectors = selectors
|
|
1418
|
+
var siblingsToGroup: JSArray<SimpleSelector>? = null
|
|
1419
|
+
var currentGroup: JSArray<JSArray<SimpleSelector>>? = null
|
|
1420
|
+
val groups: JSArray<JSArray<JSArray<SimpleSelector>>> =
|
|
1421
|
+
JSArray<JSArray<JSArray<SimpleSelector>>>()
|
|
1422
|
+
this.specificity = 0.0
|
|
1423
|
+
this.dynamic = false
|
|
1424
|
+
this.hasAdjacentCombinator = false
|
|
1425
|
+
this.hasSiblingCombinator = false
|
|
1426
|
+
var i: Double = (selectors ?: jsCannotRead("length")).length - 1.0
|
|
1427
|
+
while (i >= 0.0) {
|
|
1428
|
+
val sel: SimpleSelector? = (selectors ?: jsCannotRead(js(i))).element(i)
|
|
1429
|
+
when (
|
|
1430
|
+
val __switch1: String? = (sel ?: jsCannotRead("combinator")).combinator
|
|
1431
|
+
) {
|
|
1432
|
+
null,
|
|
1433
|
+
Combinator.descendant -> {
|
|
1434
|
+
siblingsToGroup = JSArray<SimpleSelector>()
|
|
1435
|
+
currentGroup =
|
|
1436
|
+
jsArrayOf<JSArray<SimpleSelector>>((siblingsToGroup ?: jsObjectRequired()))
|
|
1437
|
+
groups.push((currentGroup ?: jsObjectRequired()))
|
|
1438
|
+
}
|
|
1439
|
+
Combinator.child -> {
|
|
1440
|
+
siblingsToGroup = JSArray<SimpleSelector>()
|
|
1441
|
+
(currentGroup ?: jsCannotRead("push")).push(
|
|
1442
|
+
(siblingsToGroup ?: jsObjectRequired())
|
|
1443
|
+
)
|
|
1444
|
+
}
|
|
1445
|
+
Combinator.adjacent -> {
|
|
1446
|
+
this.hasAdjacentCombinator = true
|
|
1447
|
+
}
|
|
1448
|
+
Combinator.sibling -> {
|
|
1449
|
+
this.hasSiblingCombinator = true
|
|
1450
|
+
}
|
|
1451
|
+
else -> {
|
|
1452
|
+
throw JSException(
|
|
1453
|
+
JSError(
|
|
1454
|
+
"Unsupported combinator \"${jsToString(((sel ?: jsCannotRead("combinator")).combinator ?: "undefined"))}\" for selector ${jsToString(sel)}."
|
|
1455
|
+
)
|
|
1456
|
+
)
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
this.specificity =
|
|
1460
|
+
(this.specificity ?: Double.NaN) +
|
|
1461
|
+
((sel ?: jsCannotRead("specificity")).specificity ?: Double.NaN)
|
|
1462
|
+
if (jsTruthy((sel ?: jsCannotRead("dynamic")).dynamic)) {
|
|
1463
|
+
this.dynamic = true
|
|
1464
|
+
}
|
|
1465
|
+
if (
|
|
1466
|
+
jsTruthy((sel ?: jsCannotRead("hasAdjacentCombinator")).hasAdjacentCombinator)
|
|
1467
|
+
) {
|
|
1468
|
+
this.hasAdjacentCombinator = true
|
|
1469
|
+
}
|
|
1470
|
+
if (
|
|
1471
|
+
jsTruthy((sel ?: jsCannotRead("hasSiblingCombinator")).hasSiblingCombinator)
|
|
1472
|
+
) {
|
|
1473
|
+
this.hasSiblingCombinator = true
|
|
1474
|
+
}
|
|
1475
|
+
(siblingsToGroup ?: jsCannotRead("push")).push((sel ?: jsObjectRequired()))
|
|
1476
|
+
i -= 1.0
|
|
1477
|
+
}
|
|
1478
|
+
this.groups =
|
|
1479
|
+
groups.map({ g: JSArray<JSArray<SimpleSelector>>? ->
|
|
1480
|
+
org.nativescript.kit.Selector.ChildGroup(
|
|
1481
|
+
jsArrayFrom(
|
|
1482
|
+
(g ?: jsCannotRead("map")).map({ selectors: JSArray<SimpleSelector>? ->
|
|
1483
|
+
((if ((selectors ?: jsCannotRead("length")).length > 1.0)
|
|
1484
|
+
org.nativescript.kit.Selector.SiblingGroup(
|
|
1485
|
+
(selectors ?: jsObjectRequired())
|
|
1486
|
+
)
|
|
1487
|
+
else (selectors ?: jsCannotRead("0")).element(0.0)))
|
|
1488
|
+
})
|
|
1489
|
+
) {
|
|
1490
|
+
jsCastCarried(it, SelectorBase::class.java)
|
|
1491
|
+
}
|
|
1492
|
+
)
|
|
1493
|
+
})
|
|
1494
|
+
this.last =
|
|
1495
|
+
(selectors ?: jsCannotRead("selectors.length - 1")).element(
|
|
1496
|
+
(selectors ?: jsCannotRead("length")).length - 1.0
|
|
1497
|
+
)
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
override fun toString(): String {
|
|
1501
|
+
return (this.selectors ?: jsCannotRead("join")).join("")
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
override fun match(node: Any?): Boolean {
|
|
1505
|
+
var node: Any? = node
|
|
1506
|
+
val groups: JSArray<org.nativescript.kit.Selector.ChildGroup>? = this.groups
|
|
1507
|
+
var i: Double = 0.0
|
|
1508
|
+
val length: Double = (groups ?: jsCannotRead("length")).length
|
|
1509
|
+
while (i < length) {
|
|
1510
|
+
val group: org.nativescript.kit.Selector.ChildGroup? =
|
|
1511
|
+
(groups ?: jsCannotRead(js(i))).element(i)
|
|
1512
|
+
if (i == 0.0) {
|
|
1513
|
+
node =
|
|
1514
|
+
(group ?: jsCannotRead("getMatchingNode")).getMatchingNode(node, true)
|
|
1515
|
+
if (!jsTruthy(node)) {
|
|
1516
|
+
return false
|
|
1517
|
+
}
|
|
1518
|
+
} else {
|
|
1519
|
+
var ancestor: Any? = node
|
|
1520
|
+
var matched: Boolean = false
|
|
1521
|
+
while (
|
|
1522
|
+
jsTruthy(
|
|
1523
|
+
(kotlin.run {
|
|
1524
|
+
val __assigned1: Any? =
|
|
1525
|
+
jsNullishCoalesce(jsGet(ancestor, "parent")) {
|
|
1526
|
+
jsGet(ancestor, "_modalParent")
|
|
1527
|
+
}
|
|
1528
|
+
ancestor = __assigned1
|
|
1529
|
+
__assigned1
|
|
1530
|
+
})
|
|
1531
|
+
)
|
|
1532
|
+
) {
|
|
1533
|
+
if (
|
|
1534
|
+
jsTruthy(
|
|
1535
|
+
(kotlin.run {
|
|
1536
|
+
val __assigned2: Any? =
|
|
1537
|
+
(group ?: jsCannotRead("getMatchingNode")).getMatchingNode(
|
|
1538
|
+
ancestor,
|
|
1539
|
+
true,
|
|
1540
|
+
)
|
|
1541
|
+
node = __assigned2
|
|
1542
|
+
__assigned2
|
|
1543
|
+
})
|
|
1544
|
+
)
|
|
1545
|
+
) {
|
|
1546
|
+
matched = true
|
|
1547
|
+
break
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
if (!matched) {
|
|
1551
|
+
return false
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
i += 1.0
|
|
1555
|
+
}
|
|
1556
|
+
return true
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
override fun mayMatch(node: Any?): Boolean {
|
|
1560
|
+
return false
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
override fun trackChanges(node: Any?, map: Any?) {
|
|
1564
|
+
val selectors: JSArray<SimpleSelector>? = this.selectors
|
|
1565
|
+
var i: Double = 0.0
|
|
1566
|
+
val length: Double = (selectors ?: jsCannotRead("length")).length
|
|
1567
|
+
while (i < length) {
|
|
1568
|
+
((selectors ?: jsCannotRead(js(i))).element(i)
|
|
1569
|
+
?: jsCannotRead("trackChanges"))
|
|
1570
|
+
.trackChanges(node, map)
|
|
1571
|
+
i += 1.0
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
override fun lookupSort(sorter: Any?, base: SelectorCore?) {
|
|
1576
|
+
(this.last ?: jsCannotRead("lookupSort")).lookupSort(
|
|
1577
|
+
sorter,
|
|
1578
|
+
jsCast(jsOr(base) { this }, SelectorCore::class.java),
|
|
1579
|
+
)
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
override fun accumulateChanges(node: Any?, map: Any?): Boolean {
|
|
1583
|
+
var node: Any? = node
|
|
1584
|
+
if (!jsTruthy(this.dynamic)) {
|
|
1585
|
+
return this.match(node)
|
|
1586
|
+
}
|
|
1587
|
+
val bounds: JSArray<Any?> = JSArray<Any?>()
|
|
1588
|
+
val mayMatch: Boolean =
|
|
1589
|
+
(this.groups ?: jsCannotRead("every")).every(
|
|
1590
|
+
fun(group: org.nativescript.kit.Selector.ChildGroup?, i: Double): Boolean {
|
|
1591
|
+
if (i == 0.0) {
|
|
1592
|
+
val nextNode: Any? =
|
|
1593
|
+
(group ?: jsCannotRead("getMatchingNode")).getMatchingNode(node, false)
|
|
1594
|
+
bounds.push(jsObjectOf("left" to node, "right" to node))
|
|
1595
|
+
node = nextNode
|
|
1596
|
+
return jsTruthy(node)
|
|
1597
|
+
} else {
|
|
1598
|
+
var ancestor: Any? = node
|
|
1599
|
+
while (
|
|
1600
|
+
jsTruthy(
|
|
1601
|
+
(kotlin.run {
|
|
1602
|
+
val __assigned1: Any? = jsGet(ancestor, "parent")
|
|
1603
|
+
ancestor = jsGet(ancestor, "parent")
|
|
1604
|
+
__assigned1
|
|
1605
|
+
})
|
|
1606
|
+
)
|
|
1607
|
+
) {
|
|
1608
|
+
val nextNode: Any? =
|
|
1609
|
+
(group ?: jsCannotRead("getMatchingNode")).getMatchingNode(
|
|
1610
|
+
ancestor,
|
|
1611
|
+
false,
|
|
1612
|
+
)
|
|
1613
|
+
if (jsTruthy(nextNode)) {
|
|
1614
|
+
bounds.push(
|
|
1615
|
+
jsObjectOf("left" to ancestor, "right" to jsNull)
|
|
1616
|
+
)
|
|
1617
|
+
node = nextNode
|
|
1618
|
+
return true
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
return false
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
)
|
|
1625
|
+
if (!mayMatch) {
|
|
1626
|
+
return false
|
|
1627
|
+
}
|
|
1628
|
+
if (!jsTruthy(map)) {
|
|
1629
|
+
return mayMatch
|
|
1630
|
+
}
|
|
1631
|
+
var i: Double = 0.0
|
|
1632
|
+
var __first1 = true
|
|
1633
|
+
while (true) {
|
|
1634
|
+
if (!__first1) {
|
|
1635
|
+
i += 1.0
|
|
1636
|
+
}
|
|
1637
|
+
__first1 = false
|
|
1638
|
+
if (!(i < (this.groups ?: jsCannotRead("length")).length)) break
|
|
1639
|
+
kotlin.run {
|
|
1640
|
+
val group: org.nativescript.kit.Selector.ChildGroup? =
|
|
1641
|
+
(this.groups ?: jsCannotRead(js(i))).element(i)
|
|
1642
|
+
if (!jsTruthy((group ?: jsCannotRead("dynamic")).dynamic)) {
|
|
1643
|
+
continue
|
|
1644
|
+
}
|
|
1645
|
+
val bound: Any? = bounds.element(i)
|
|
1646
|
+
var node: Any? = jsGet(bound, "left")
|
|
1647
|
+
do {
|
|
1648
|
+
if ((group ?: jsCannotRead("mayMatch")).mayMatch(node)) {
|
|
1649
|
+
(group ?: jsCannotRead("trackChanges")).trackChanges(node, map)
|
|
1650
|
+
}
|
|
1651
|
+
} while (
|
|
1652
|
+
(!jsStrictEquals(node, jsGet(bound, "right")) &&
|
|
1653
|
+
jsTruthy(
|
|
1654
|
+
(kotlin.run {
|
|
1655
|
+
val __assigned2: Any? = jsGet(node, "parent")
|
|
1656
|
+
node = jsGet(node, "parent")
|
|
1657
|
+
__assigned2
|
|
1658
|
+
})
|
|
1659
|
+
))
|
|
1660
|
+
)
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
return mayMatch
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
override val jsDeclaredKeys: List<String>
|
|
1667
|
+
get() =
|
|
1668
|
+
super.jsDeclaredKeys +
|
|
1669
|
+
(if (selectors == null) listOf() else listOf("selectors")) +
|
|
1670
|
+
(if ((jsMadeBits0 and (1L shl 9)) != 0L) listOf("groups") else listOf()) +
|
|
1671
|
+
(if ((jsMadeBits0 and (1L shl 10)) != 0L) listOf("last") else listOf())
|
|
1672
|
+
|
|
1673
|
+
override val jsClassName: String?
|
|
1674
|
+
get() = "ComplexSelector"
|
|
1675
|
+
|
|
1676
|
+
override fun jsGet(key: String): Any? =
|
|
1677
|
+
when (key) {
|
|
1678
|
+
"selectors" -> this.selectors
|
|
1679
|
+
"groups" -> if ((jsMadeBits0 and (1L shl 9)) != 0L) this.groups else null
|
|
1680
|
+
"last" -> if ((jsMadeBits0 and (1L shl 10)) != 0L) this.last else null
|
|
1681
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
1682
|
+
"mayMatch" -> jsFunction { __a -> this.mayMatch(__a.getOrNull(0)) }
|
|
1683
|
+
"trackChanges" ->
|
|
1684
|
+
jsFunction { __a ->
|
|
1685
|
+
this.trackChanges(__a.getOrNull(0), __a.getOrNull(1))
|
|
1686
|
+
null
|
|
1687
|
+
}
|
|
1688
|
+
"lookupSort" ->
|
|
1689
|
+
jsFunction { __a ->
|
|
1690
|
+
this.lookupSort(
|
|
1691
|
+
__a.getOrNull(0),
|
|
1692
|
+
jsCast(__a.getOrNull(1), SelectorCore::class.java),
|
|
1693
|
+
)
|
|
1694
|
+
null
|
|
1695
|
+
}
|
|
1696
|
+
"accumulateChanges" ->
|
|
1697
|
+
jsFunction { __a -> this.accumulateChanges(__a.getOrNull(0), __a.getOrNull(1)) }
|
|
1698
|
+
else -> super.jsGet(key)
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
override fun jsSet(key: String, value: Any?) {
|
|
1702
|
+
when (key) {
|
|
1703
|
+
"selectors" ->
|
|
1704
|
+
this.selectors =
|
|
1705
|
+
(if (jsIsNullish(value)) null
|
|
1706
|
+
else jsArrayFrom(value) { jsCastCarried(it, SimpleSelector::class.java) })
|
|
1707
|
+
"groups" ->
|
|
1708
|
+
this.groups =
|
|
1709
|
+
(if (jsIsNullish(value)) null
|
|
1710
|
+
else
|
|
1711
|
+
jsArrayFrom(value) {
|
|
1712
|
+
jsCastCarried(it, org.nativescript.kit.Selector.ChildGroup::class.java)
|
|
1713
|
+
})
|
|
1714
|
+
"last" -> this.last = jsCast(value, SelectorCore::class.java)
|
|
1715
|
+
else -> super.jsSet(key, value)
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
override fun jsHasMember(key: String): Boolean =
|
|
1720
|
+
when (key) {
|
|
1721
|
+
"match",
|
|
1722
|
+
"mayMatch",
|
|
1723
|
+
"trackChanges",
|
|
1724
|
+
"lookupSort",
|
|
1725
|
+
"accumulateChanges" -> true
|
|
1726
|
+
else -> super<SelectorCore>.jsHasMember(key)
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
object Selector {
|
|
1731
|
+
@UiThread
|
|
1732
|
+
open class ChildGroup : SelectorBase {
|
|
1733
|
+
init {
|
|
1734
|
+
if (jsMade != null) jsMadeLevel(this, listOf("selectors"))
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
open var selectors: JSArray<SelectorBase>? = null
|
|
1738
|
+
|
|
1739
|
+
constructor(selectors: JSArray<SelectorBase>?) : super() {
|
|
1740
|
+
this.selectors = selectors
|
|
1741
|
+
this.dynamic =
|
|
1742
|
+
(selectors ?: jsCannotRead("some")).some({ sel: SelectorBase? ->
|
|
1743
|
+
((sel ?: jsCannotRead("dynamic")).dynamic ?: false)
|
|
1744
|
+
})
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
open fun getMatchingNode(node: Any?, strict: Boolean): Any? {
|
|
1748
|
+
var node: Any? = node
|
|
1749
|
+
val selectors: JSArray<SelectorBase>? = this.selectors
|
|
1750
|
+
var i: Double = 0.0
|
|
1751
|
+
val length: Double = (selectors ?: jsCannotRead("length")).length
|
|
1752
|
+
while (i < length) {
|
|
1753
|
+
if (i != 0.0) {
|
|
1754
|
+
node = jsGet(node, "parent")
|
|
1755
|
+
}
|
|
1756
|
+
if (!jsTruthy(node)) {
|
|
1757
|
+
return jsNull
|
|
1758
|
+
}
|
|
1759
|
+
val sel: SelectorBase? = (selectors ?: jsCannotRead(js(i))).element(i)
|
|
1760
|
+
if (
|
|
1761
|
+
!((if (strict) (sel ?: jsCannotRead("match")).match(node)
|
|
1762
|
+
else (sel ?: jsCannotRead("mayMatch")).mayMatch(node)))
|
|
1763
|
+
) {
|
|
1764
|
+
return jsNull
|
|
1765
|
+
}
|
|
1766
|
+
i += 1.0
|
|
1767
|
+
}
|
|
1768
|
+
return node
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
override fun match(node: Any?): Boolean {
|
|
1772
|
+
return !jsIsNullish(this.getMatchingNode(node, true))
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
override fun mayMatch(node: Any?): Boolean {
|
|
1776
|
+
return !jsIsNullish(this.getMatchingNode(node, false))
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
override fun trackChanges(node: Any?, map: Any?) {
|
|
1780
|
+
var node: Any? = node
|
|
1781
|
+
(this.selectors ?: jsCannotRead("forEach")).forEach({
|
|
1782
|
+
sel: SelectorBase?,
|
|
1783
|
+
i: Double ->
|
|
1784
|
+
if (i == 0.0) {
|
|
1785
|
+
kotlin.run {
|
|
1786
|
+
val __v_1 = node
|
|
1787
|
+
if (jsTruthy(__v_1))
|
|
1788
|
+
(sel ?: jsCannotRead("trackChanges")).trackChanges(node, map)
|
|
1789
|
+
else Unit
|
|
1790
|
+
}
|
|
1791
|
+
} else {
|
|
1792
|
+
node = jsGet(node, "parent")
|
|
1793
|
+
if (
|
|
1794
|
+
(jsTruthy(node) && (sel ?: jsCannotRead("mayMatch")).mayMatch(node))
|
|
1795
|
+
) {
|
|
1796
|
+
(sel ?: jsCannotRead("trackChanges")).trackChanges(node, map)
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
})
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
override val jsDeclaredKeys: List<String>
|
|
1803
|
+
get() =
|
|
1804
|
+
super.jsDeclaredKeys + (if (selectors == null) listOf() else listOf("selectors"))
|
|
1805
|
+
|
|
1806
|
+
override val jsClassName: String?
|
|
1807
|
+
get() = "ChildGroup"
|
|
1808
|
+
|
|
1809
|
+
override fun jsGet(key: String): Any? =
|
|
1810
|
+
when (key) {
|
|
1811
|
+
"selectors" -> this.selectors
|
|
1812
|
+
"getMatchingNode" ->
|
|
1813
|
+
jsFunction { __a ->
|
|
1814
|
+
this.getMatchingNode(
|
|
1815
|
+
__a.getOrNull(0),
|
|
1816
|
+
jsConvertedBooleanOrFalse(__a.getOrNull(1)),
|
|
1817
|
+
)
|
|
1818
|
+
}
|
|
1819
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
1820
|
+
"mayMatch" -> jsFunction { __a -> this.mayMatch(__a.getOrNull(0)) }
|
|
1821
|
+
"trackChanges" ->
|
|
1822
|
+
jsFunction { __a ->
|
|
1823
|
+
this.trackChanges(__a.getOrNull(0), __a.getOrNull(1))
|
|
1824
|
+
null
|
|
1825
|
+
}
|
|
1826
|
+
else -> super.jsGet(key)
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
override fun jsSet(key: String, value: Any?) {
|
|
1830
|
+
when (key) {
|
|
1831
|
+
"selectors" ->
|
|
1832
|
+
this.selectors =
|
|
1833
|
+
(if (jsIsNullish(value)) null
|
|
1834
|
+
else jsArrayFrom(value) { jsCastCarried(it, SelectorBase::class.java) })
|
|
1835
|
+
else -> super.jsSet(key, value)
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
override fun jsHasMember(key: String): Boolean =
|
|
1840
|
+
when (key) {
|
|
1841
|
+
"getMatchingNode",
|
|
1842
|
+
"match",
|
|
1843
|
+
"mayMatch",
|
|
1844
|
+
"trackChanges" -> true
|
|
1845
|
+
else -> super<SelectorBase>.jsHasMember(key)
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
@UiThread
|
|
1850
|
+
open class SiblingGroup : SelectorBase {
|
|
1851
|
+
init {
|
|
1852
|
+
if (jsMade != null) jsMadeLevel(this, listOf("selectors"))
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
open var selectors: JSArray<SimpleSelector>? = null
|
|
1856
|
+
|
|
1857
|
+
constructor(selectors: JSArray<SimpleSelector>?) : super() {
|
|
1858
|
+
this.selectors = selectors
|
|
1859
|
+
this.dynamic =
|
|
1860
|
+
(selectors ?: jsCannotRead("some")).some({ sel: SimpleSelector? ->
|
|
1861
|
+
((sel ?: jsCannotRead("dynamic")).dynamic ?: false)
|
|
1862
|
+
})
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
override fun match(node: Any?): Boolean {
|
|
1866
|
+
var node: Any? = node
|
|
1867
|
+
return (this.selectors ?: jsCannotRead("every")).every(
|
|
1868
|
+
fn1@{ sel: SimpleSelector?, i: Double ->
|
|
1869
|
+
if (i == 0.0) {
|
|
1870
|
+
return@fn1 jsConvertedBooleanOrFalse(
|
|
1871
|
+
kotlin.run {
|
|
1872
|
+
val __v_1 = node
|
|
1873
|
+
if (jsTruthy(__v_1)) (sel ?: jsCannotRead("match")).match(node)
|
|
1874
|
+
else jsConvertedBooleanOrFalse(__v_1)
|
|
1875
|
+
}
|
|
1876
|
+
)
|
|
1877
|
+
}
|
|
1878
|
+
if (
|
|
1879
|
+
(sel ?: jsCannotRead("combinator")).combinator == Combinator.adjacent
|
|
1880
|
+
) {
|
|
1881
|
+
node =
|
|
1882
|
+
Core_ui_styling_css_selector.getNodePreviousDirectSibling(node)
|
|
1883
|
+
return@fn1 jsConvertedBooleanOrFalse(
|
|
1884
|
+
kotlin.run {
|
|
1885
|
+
val __v_2 = node
|
|
1886
|
+
if (jsTruthy(__v_2)) (sel ?: jsCannotRead("match")).match(node)
|
|
1887
|
+
else jsConvertedBooleanOrFalse(__v_2)
|
|
1888
|
+
}
|
|
1889
|
+
)
|
|
1890
|
+
}
|
|
1891
|
+
var isMatching: Boolean = false
|
|
1892
|
+
Core_ui_styling_css_selector.eachNodePreviousGeneralSibling(
|
|
1893
|
+
node,
|
|
1894
|
+
{ sibling: Any? ->
|
|
1895
|
+
isMatching = (sel ?: jsCannotRead("match")).match(sibling)
|
|
1896
|
+
!isMatching
|
|
1897
|
+
},
|
|
1898
|
+
)
|
|
1899
|
+
isMatching
|
|
1900
|
+
}
|
|
1901
|
+
)
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
override fun mayMatch(node: Any?): Boolean {
|
|
1905
|
+
var node: Any? = node
|
|
1906
|
+
return (this.selectors ?: jsCannotRead("every")).every(
|
|
1907
|
+
fn1@{ sel: SimpleSelector?, i: Double ->
|
|
1908
|
+
if (i == 0.0) {
|
|
1909
|
+
return@fn1 jsConvertedBooleanOrFalse(
|
|
1910
|
+
kotlin.run {
|
|
1911
|
+
val __v_1 = node
|
|
1912
|
+
if (jsTruthy(__v_1))
|
|
1913
|
+
(sel ?: jsCannotRead("mayMatch")).mayMatch(node)
|
|
1914
|
+
else jsConvertedBooleanOrFalse(__v_1)
|
|
1915
|
+
}
|
|
1916
|
+
)
|
|
1917
|
+
}
|
|
1918
|
+
if (
|
|
1919
|
+
(sel ?: jsCannotRead("combinator")).combinator == Combinator.adjacent
|
|
1920
|
+
) {
|
|
1921
|
+
node =
|
|
1922
|
+
Core_ui_styling_css_selector.getNodePreviousDirectSibling(node)
|
|
1923
|
+
return@fn1 jsConvertedBooleanOrFalse(
|
|
1924
|
+
kotlin.run {
|
|
1925
|
+
val __v_2 = node
|
|
1926
|
+
if (jsTruthy(__v_2))
|
|
1927
|
+
(sel ?: jsCannotRead("mayMatch")).mayMatch(node)
|
|
1928
|
+
else jsConvertedBooleanOrFalse(__v_2)
|
|
1929
|
+
}
|
|
1930
|
+
)
|
|
1931
|
+
}
|
|
1932
|
+
var isMatching: Boolean = false
|
|
1933
|
+
Core_ui_styling_css_selector.eachNodePreviousGeneralSibling(
|
|
1934
|
+
node,
|
|
1935
|
+
{ sibling: Any? ->
|
|
1936
|
+
isMatching =
|
|
1937
|
+
(sel ?: jsCannotRead("mayMatch")).mayMatch(sibling)
|
|
1938
|
+
!isMatching
|
|
1939
|
+
},
|
|
1940
|
+
)
|
|
1941
|
+
isMatching
|
|
1942
|
+
}
|
|
1943
|
+
)
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
override fun trackChanges(node: Any?, map: Any?) {
|
|
1947
|
+
var node: Any? = node
|
|
1948
|
+
(this.selectors ?: jsCannotRead("forEach")).forEach({
|
|
1949
|
+
sel: SimpleSelector?,
|
|
1950
|
+
i: Double ->
|
|
1951
|
+
if (i == 0.0) {
|
|
1952
|
+
if (jsTruthy(node)) {
|
|
1953
|
+
(sel ?: jsCannotRead("trackChanges")).trackChanges(node, map)
|
|
1954
|
+
}
|
|
1955
|
+
} else {
|
|
1956
|
+
if (
|
|
1957
|
+
(sel ?: jsCannotRead("combinator")).combinator == Combinator.adjacent
|
|
1958
|
+
) {
|
|
1959
|
+
node =
|
|
1960
|
+
Core_ui_styling_css_selector.getNodePreviousDirectSibling(node)
|
|
1961
|
+
if (
|
|
1962
|
+
(jsTruthy(node) && (sel ?: jsCannotRead("mayMatch")).mayMatch(node))
|
|
1963
|
+
) {
|
|
1964
|
+
(sel ?: jsCannotRead("trackChanges")).trackChanges(
|
|
1965
|
+
node,
|
|
1966
|
+
map,
|
|
1967
|
+
)
|
|
1968
|
+
}
|
|
1969
|
+
} else {
|
|
1970
|
+
var matchingSibling: Any? = null
|
|
1971
|
+
Core_ui_styling_css_selector.eachNodePreviousGeneralSibling(
|
|
1972
|
+
node,
|
|
1973
|
+
{ sibling: Any? ->
|
|
1974
|
+
val isMatching: Boolean =
|
|
1975
|
+
(sel ?: jsCannotRead("mayMatch")).mayMatch(sibling)
|
|
1976
|
+
if (isMatching) {
|
|
1977
|
+
matchingSibling = sibling
|
|
1978
|
+
}
|
|
1979
|
+
!isMatching
|
|
1980
|
+
},
|
|
1981
|
+
)
|
|
1982
|
+
if (jsTruthy(matchingSibling)) {
|
|
1983
|
+
(sel ?: jsCannotRead("trackChanges")).trackChanges(
|
|
1984
|
+
matchingSibling,
|
|
1985
|
+
map,
|
|
1986
|
+
)
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
})
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
override val jsDeclaredKeys: List<String>
|
|
1994
|
+
get() =
|
|
1995
|
+
super.jsDeclaredKeys + (if (selectors == null) listOf() else listOf("selectors"))
|
|
1996
|
+
|
|
1997
|
+
override val jsClassName: String?
|
|
1998
|
+
get() = "SiblingGroup"
|
|
1999
|
+
|
|
2000
|
+
override fun jsGet(key: String): Any? =
|
|
2001
|
+
when (key) {
|
|
2002
|
+
"selectors" -> this.selectors
|
|
2003
|
+
"match" -> jsFunction { __a -> this.match(__a.getOrNull(0)) }
|
|
2004
|
+
"mayMatch" -> jsFunction { __a -> this.mayMatch(__a.getOrNull(0)) }
|
|
2005
|
+
"trackChanges" ->
|
|
2006
|
+
jsFunction { __a ->
|
|
2007
|
+
this.trackChanges(__a.getOrNull(0), __a.getOrNull(1))
|
|
2008
|
+
null
|
|
2009
|
+
}
|
|
2010
|
+
else -> super.jsGet(key)
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
override fun jsSet(key: String, value: Any?) {
|
|
2014
|
+
when (key) {
|
|
2015
|
+
"selectors" ->
|
|
2016
|
+
this.selectors =
|
|
2017
|
+
(if (jsIsNullish(value)) null
|
|
2018
|
+
else jsArrayFrom(value) { jsCastCarried(it, SimpleSelector::class.java) })
|
|
2019
|
+
else -> super.jsSet(key, value)
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
override fun jsHasMember(key: String): Boolean =
|
|
2024
|
+
when (key) {
|
|
2025
|
+
"match",
|
|
2026
|
+
"mayMatch",
|
|
2027
|
+
"trackChanges" -> true
|
|
2028
|
+
else -> super<SelectorBase>.jsHasMember(key)
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
@UiThread
|
|
2034
|
+
open class RuleSet : JSStringConvertible, JSExpando, JSKeysMade {
|
|
2035
|
+
var jsMadeBits0: Long = 0L
|
|
2036
|
+
|
|
2037
|
+
fun jsMadeNote0(bit: Long, key: String) {
|
|
2038
|
+
if ((jsMadeBits0 and bit) == 0L) {
|
|
2039
|
+
jsMadeBits0 = jsMadeBits0 or bit
|
|
2040
|
+
jsMadeNote(this, key)
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
override var jsMade: MutableList<String>? = null
|
|
2045
|
+
@JvmField var selectors: JSArray<SelectorCore>? = null
|
|
2046
|
+
@JvmField var declarations: JSArray<Any?>? = null
|
|
2047
|
+
@get:JvmName("__get_mediaQueryString")
|
|
2048
|
+
@set:JvmName("__set_mediaQueryString")
|
|
2049
|
+
var mediaQueryString: Any? = null
|
|
2050
|
+
set(value) {
|
|
2051
|
+
field = value
|
|
2052
|
+
jsMadeNote0(1L shl 0, "mediaQueryString")
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
@get:JvmName("__get_tag")
|
|
2056
|
+
@set:JvmName("__set_tag")
|
|
2057
|
+
var tag: Any? = null
|
|
2058
|
+
set(value) {
|
|
2059
|
+
field = value
|
|
2060
|
+
jsMadeNote0(1L shl 1, "tag")
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
@get:JvmName("__get_scopedTag")
|
|
2064
|
+
@set:JvmName("__set_scopedTag")
|
|
2065
|
+
var scopedTag: String? = null
|
|
2066
|
+
set(value) {
|
|
2067
|
+
field = value
|
|
2068
|
+
jsMadeNote0(1L shl 2, "scopedTag")
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
@JvmField
|
|
2072
|
+
var shorthandsVersion: Double = Core_ui_core_properties_index._getCssShorthandsVersion()
|
|
2073
|
+
|
|
2074
|
+
constructor(selectors: JSArray<SelectorCore>?, declarations: JSArray<Any?>?) {
|
|
2075
|
+
this.selectors = selectors
|
|
2076
|
+
this.declarations = declarations
|
|
2077
|
+
(this.selectors ?: jsCannotRead("forEach")).forEach({ sel: SelectorCore? ->
|
|
2078
|
+
kotlin.run {
|
|
2079
|
+
(sel ?: jsCannotSet("ruleset")).ruleset = this
|
|
2080
|
+
(sel ?: jsCannotSet("ruleset")).ruleset
|
|
2081
|
+
}
|
|
2082
|
+
})
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
/** Expands, once, shorthands registered after this rule was parsed (e.g. by a plugin). */
|
|
2086
|
+
open fun expandLateShorthands() {
|
|
2087
|
+
val version: Double = Core_ui_core_properties_index._getCssShorthandsVersion()
|
|
2088
|
+
if (this.shorthandsVersion == version) {
|
|
2089
|
+
return
|
|
2090
|
+
}
|
|
2091
|
+
this.shorthandsVersion = version
|
|
2092
|
+
val declarations: JSArray<Any?>? = this.declarations
|
|
2093
|
+
var expanded: JSArray<Any?>? = null
|
|
2094
|
+
var i: Double = 0.0
|
|
2095
|
+
val length: Double = (declarations ?: jsCannotRead("length")).length
|
|
2096
|
+
var __first1 = true
|
|
2097
|
+
while (true) {
|
|
2098
|
+
if (!__first1) {
|
|
2099
|
+
i += 1.0
|
|
2100
|
+
}
|
|
2101
|
+
__first1 = false
|
|
2102
|
+
if (!(i < length)) break
|
|
2103
|
+
kotlin.run {
|
|
2104
|
+
val declaration: Any? =
|
|
2105
|
+
(declarations ?: jsCannotRead(js(i))).element(i)
|
|
2106
|
+
if (
|
|
2107
|
+
!jsTruthy(expanded) &&
|
|
2108
|
+
jsTypeof(jsGet(declaration, "value")) == "string" &&
|
|
2109
|
+
Core_ui_core_properties_index._isCssShorthand(
|
|
2110
|
+
jsConvertedStringOrNull(jsGet(declaration, "property"))
|
|
2111
|
+
)
|
|
2112
|
+
) {
|
|
2113
|
+
expanded = (declarations ?: jsCannotRead("slice")).slice(0.0, i)
|
|
2114
|
+
}
|
|
2115
|
+
if (!jsTruthy(expanded)) {
|
|
2116
|
+
continue
|
|
2117
|
+
}
|
|
2118
|
+
if (jsTypeof(jsGet(declaration, "value")) == "string") {
|
|
2119
|
+
Core_ui_styling_css_selector.pushDeclaration(
|
|
2120
|
+
expanded,
|
|
2121
|
+
jsConvertedStringOrNull(jsGet(declaration, "property")),
|
|
2122
|
+
jsConvertedStringOrNull(jsGet(declaration, "value")),
|
|
2123
|
+
)
|
|
2124
|
+
} else {
|
|
2125
|
+
(expanded ?: jsCannotRead("push")).push(declaration)
|
|
2126
|
+
}
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
if (jsTruthy(expanded)) {
|
|
2130
|
+
this.declarations = expanded
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
override fun toString(): String {
|
|
2135
|
+
var desc: String =
|
|
2136
|
+
"${(this.selectors ?: jsCannotRead("join")).join(", ")} {${(this.declarations ?: jsCannotRead("map")).map({ d: Any?, i: Double ->
|
|
2137
|
+
"${(if (i == 0.0) " " else "")}${jsToString(jsConvertedStringOrNull(jsGet(d, "property")))}: ${jsToStringThrowing(jsGet(d, "value"))}"
|
|
2138
|
+
}).join("; ")} }"
|
|
2139
|
+
if (jsTruthy(this.mediaQueryString)) {
|
|
2140
|
+
desc = "@media ${jsToStringThrowing(this.mediaQueryString)} { ${desc} }"
|
|
2141
|
+
}
|
|
2142
|
+
return desc
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
open fun lookupSort(sorter: Any?) {
|
|
2146
|
+
(this.selectors ?: jsCannotRead("forEach")).forEach({ sel: SelectorCore? ->
|
|
2147
|
+
(sel ?: jsCannotRead("lookupSort")).lookupSort(sorter)
|
|
2148
|
+
})
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
override var jsExpando: JSObject? = null
|
|
2152
|
+
override val jsDeclaredKeys: List<String>
|
|
2153
|
+
get() =
|
|
2154
|
+
listOf("shorthandsVersion") +
|
|
2155
|
+
(if (selectors == null) listOf() else listOf("selectors")) +
|
|
2156
|
+
(if (declarations == null) listOf() else listOf("declarations")) +
|
|
2157
|
+
(if ((jsMadeBits0 and (1L shl 0)) != 0L) listOf("mediaQueryString") else listOf()) +
|
|
2158
|
+
(if ((jsMadeBits0 and (1L shl 1)) != 0L) listOf("tag") else listOf()) +
|
|
2159
|
+
(if ((jsMadeBits0 and (1L shl 2)) != 0L) listOf("scopedTag") else listOf())
|
|
2160
|
+
|
|
2161
|
+
override val jsKeys: List<String>
|
|
2162
|
+
get() = jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?: listOf()))
|
|
2163
|
+
|
|
2164
|
+
override val jsClassName: String?
|
|
2165
|
+
get() = "RuleSet"
|
|
2166
|
+
|
|
2167
|
+
override fun jsGet(key: String): Any? =
|
|
2168
|
+
when (key) {
|
|
2169
|
+
"selectors" -> this.selectors
|
|
2170
|
+
"declarations" -> this.declarations
|
|
2171
|
+
"mediaQueryString" ->
|
|
2172
|
+
if ((jsMadeBits0 and (1L shl 0)) != 0L) this.mediaQueryString else null
|
|
2173
|
+
"tag" -> if ((jsMadeBits0 and (1L shl 1)) != 0L) this.tag else null
|
|
2174
|
+
"scopedTag" -> if ((jsMadeBits0 and (1L shl 2)) != 0L) this.scopedTag else null
|
|
2175
|
+
"shorthandsVersion" -> this.shorthandsVersion
|
|
2176
|
+
"expandLateShorthands" ->
|
|
2177
|
+
jsFunction {
|
|
2178
|
+
this.expandLateShorthands()
|
|
2179
|
+
null
|
|
2180
|
+
}
|
|
2181
|
+
"lookupSort" ->
|
|
2182
|
+
jsFunction { __a ->
|
|
2183
|
+
this.lookupSort(__a.getOrNull(0))
|
|
2184
|
+
null
|
|
2185
|
+
}
|
|
2186
|
+
else -> jsExpandoGet(this, key)
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
override fun jsSet(key: String, value: Any?) {
|
|
2190
|
+
when (key) {
|
|
2191
|
+
"selectors" ->
|
|
2192
|
+
this.selectors =
|
|
2193
|
+
(if (jsIsNullish(value)) null
|
|
2194
|
+
else jsArrayFrom(value) { jsCastCarried(it, SelectorCore::class.java) })
|
|
2195
|
+
"declarations" ->
|
|
2196
|
+
this.declarations = (if (jsIsNullish(value)) null else jsArrayFrom(value) { it })
|
|
2197
|
+
"mediaQueryString" -> this.mediaQueryString = value
|
|
2198
|
+
"tag" -> this.tag = value
|
|
2199
|
+
"scopedTag" -> this.scopedTag = jsConvertedStringOrNull(value, "scopedTag")
|
|
2200
|
+
"shorthandsVersion" ->
|
|
2201
|
+
this.shorthandsVersion = jsConvertedNumber(value, "shorthandsVersion")
|
|
2202
|
+
else -> jsExpandoSet(this, key, value)
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
override fun jsHasMember(key: String): Boolean =
|
|
2207
|
+
when (key) {
|
|
2208
|
+
"expandLateShorthands",
|
|
2209
|
+
"lookupSort" -> true
|
|
2210
|
+
else -> false
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
@UiThread
|
|
2215
|
+
abstract class SelectorScope : JSExpando, JSKeysMade {
|
|
2216
|
+
var jsMadeBits0: Long = 0L
|
|
2217
|
+
|
|
2218
|
+
fun jsMadeNote0(bit: Long, key: String) {
|
|
2219
|
+
if ((jsMadeBits0 and bit) == 0L) {
|
|
2220
|
+
jsMadeBits0 = jsMadeBits0 or bit
|
|
2221
|
+
jsMadeNote(this, key)
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
override var jsMade: MutableList<String>? = null
|
|
2226
|
+
open var id: JSRecord<JSArray<SelectorCore>>?
|
|
2227
|
+
get() = jsRecordOrNull<JSArray<SelectorCore>>(jsExpandoGet(this, "id"))
|
|
2228
|
+
set(value) {
|
|
2229
|
+
jsExpandoSet(this, "id", value)
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
init {
|
|
2233
|
+
this.id = JSRecord<JSArray<SelectorCore>>()
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
@JvmField var `class`: JSRecord<JSArray<SelectorCore>>? = JSRecord<JSArray<SelectorCore>>()
|
|
2237
|
+
@JvmField var type: JSRecord<JSArray<SelectorCore>>? = JSRecord<JSArray<SelectorCore>>()
|
|
2238
|
+
@JvmField var universal: JSArray<SelectorCore>? = JSArray<SelectorCore>()
|
|
2239
|
+
@JvmField var position: Double = 0.0
|
|
2240
|
+
@JvmField var tier: Double = SelectorTier.Application
|
|
2241
|
+
/** True when any selector in the scope contains an adjacent sibling ('+') combinator. */
|
|
2242
|
+
@JvmField var hasAdjacentCombinatorSelectors: Boolean = false
|
|
2243
|
+
/** True when any selector in the scope contains a general sibling ('~') combinator. */
|
|
2244
|
+
@JvmField var hasSiblingCombinatorSelectors: Boolean = false
|
|
2245
|
+
|
|
2246
|
+
open fun getSelectorCandidates(
|
|
2247
|
+
node: Any?,
|
|
2248
|
+
candidates: JSArray<SelectorCore>? = null,
|
|
2249
|
+
): JSArray<SelectorCore>? {
|
|
2250
|
+
val candidates: JSArray<SelectorCore>? = candidates ?: JSArray<SelectorCore>()
|
|
2251
|
+
val __d_1: Any? = node
|
|
2252
|
+
val cssClasses: JSSet<String>? =
|
|
2253
|
+
jsUnchecked<JSSet<String>>(jsJavaArgument(jsGet(__d_1, "cssClasses")))
|
|
2254
|
+
val id: String = jsConvertedString(jsGet(__d_1, "id"))
|
|
2255
|
+
val cssType: String = jsConvertedString(jsGet(__d_1, "cssType"))
|
|
2256
|
+
Core_ui_styling_css_selector.appendSelectorCandidates(
|
|
2257
|
+
candidates,
|
|
2258
|
+
this.universal,
|
|
2259
|
+
)
|
|
2260
|
+
if (!id.isNullOrEmpty()) {
|
|
2261
|
+
Core_ui_styling_css_selector.appendSelectorCandidates(
|
|
2262
|
+
candidates,
|
|
2263
|
+
(this.id ?: jsCannotRead(id))[id],
|
|
2264
|
+
)
|
|
2265
|
+
}
|
|
2266
|
+
if (!cssType.isNullOrEmpty()) {
|
|
2267
|
+
Core_ui_styling_css_selector.appendSelectorCandidates(
|
|
2268
|
+
candidates,
|
|
2269
|
+
(this.type ?: jsCannotRead(cssType))[cssType],
|
|
2270
|
+
)
|
|
2271
|
+
}
|
|
2272
|
+
if (
|
|
2273
|
+
(jsTruthy(cssClasses) && jsTruthy((cssClasses ?: jsCannotRead("size")).size))
|
|
2274
|
+
) {
|
|
2275
|
+
val classSelectors: JSRecord<JSArray<SelectorCore>>? = this.`class`
|
|
2276
|
+
for (cssClass in (cssClasses ?: jsObjectRequired())) {
|
|
2277
|
+
Core_ui_styling_css_selector.appendSelectorCandidates(
|
|
2278
|
+
candidates,
|
|
2279
|
+
(classSelectors ?: jsCannotRead(cssClass))[cssClass],
|
|
2280
|
+
)
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
return candidates
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
open fun sortById(id: String?, sel: SelectorCore?) {
|
|
2287
|
+
this.addToMap(this.id, id, sel)
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
open fun sortByClass(cssClass: String?, sel: SelectorCore?) {
|
|
2291
|
+
this.addToMap(this.`class`, cssClass, sel)
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
open fun sortByType(cssType: String?, sel: SelectorCore?) {
|
|
2295
|
+
this.addToMap(this.type, cssType, sel)
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
open fun sortAsUniversal(sel: SelectorCore?) {
|
|
2299
|
+
(this.universal ?: jsCannotRead("push")).push(
|
|
2300
|
+
(this.makeDocSelector(sel) ?: jsObjectRequired())
|
|
2301
|
+
)
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
open fun addToMap(map: JSRecord<JSArray<SelectorCore>>?, head: String?, sel: SelectorCore?) {
|
|
2305
|
+
if (
|
|
2306
|
+
!jsTruthy(
|
|
2307
|
+
(map ?: jsCannotRead(jsToString((head ?: "undefined"))))[
|
|
2308
|
+
jsToString((head ?: "undefined"))]
|
|
2309
|
+
)
|
|
2310
|
+
) {
|
|
2311
|
+
(map ?: jsCannotSet(jsToString((head ?: "undefined"))))[
|
|
2312
|
+
jsToString((head ?: "undefined"))] = JSArray<SelectorCore>()
|
|
2313
|
+
}
|
|
2314
|
+
((map ?: jsCannotRead(jsToString((head ?: "undefined"))))[
|
|
2315
|
+
jsToString((head ?: "undefined"))] ?: JSArray<SelectorCore>())
|
|
2316
|
+
.push((this.makeDocSelector(sel) ?: jsObjectRequired()))
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
open fun makeDocSelector(sel: SelectorCore?): SelectorCore? {
|
|
2320
|
+
if (
|
|
2321
|
+
jsTruthy((sel ?: jsCannotRead("hasAdjacentCombinator")).hasAdjacentCombinator)
|
|
2322
|
+
) {
|
|
2323
|
+
this.hasAdjacentCombinatorSelectors = true
|
|
2324
|
+
}
|
|
2325
|
+
if (
|
|
2326
|
+
jsTruthy((sel ?: jsCannotRead("hasSiblingCombinator")).hasSiblingCombinator)
|
|
2327
|
+
) {
|
|
2328
|
+
this.hasSiblingCombinatorSelectors = true
|
|
2329
|
+
}
|
|
2330
|
+
(sel ?: jsCannotSet("pos")).pos =
|
|
2331
|
+
this.position.also { this.position = it + 1.0 }
|
|
2332
|
+
(sel ?: jsCannotSet("tier")).tier = this.tier
|
|
2333
|
+
return sel
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
override var jsExpando: JSObject? = null
|
|
2337
|
+
override val jsDeclaredKeys: List<String>
|
|
2338
|
+
get() =
|
|
2339
|
+
(if (id == null) listOf() else listOf("id")) +
|
|
2340
|
+
(if (`class` == null) listOf() else listOf("class")) +
|
|
2341
|
+
(if (type == null) listOf() else listOf("type")) +
|
|
2342
|
+
(if (universal == null) listOf() else listOf("universal")) +
|
|
2343
|
+
listOf("position") +
|
|
2344
|
+
listOf("tier") +
|
|
2345
|
+
listOf("hasAdjacentCombinatorSelectors") +
|
|
2346
|
+
listOf("hasSiblingCombinatorSelectors")
|
|
2347
|
+
|
|
2348
|
+
override val jsKeys: List<String>
|
|
2349
|
+
get() = jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?: listOf()))
|
|
2350
|
+
|
|
2351
|
+
override val jsClassName: String?
|
|
2352
|
+
get() = "SelectorScope"
|
|
2353
|
+
|
|
2354
|
+
override fun jsGet(key: String): Any? =
|
|
2355
|
+
when (key) {
|
|
2356
|
+
"id" -> this.id
|
|
2357
|
+
"class" -> this.`class`
|
|
2358
|
+
"type" -> this.type
|
|
2359
|
+
"universal" -> this.universal
|
|
2360
|
+
"position" -> this.position
|
|
2361
|
+
"tier" -> this.tier
|
|
2362
|
+
"hasAdjacentCombinatorSelectors" -> this.hasAdjacentCombinatorSelectors
|
|
2363
|
+
"hasSiblingCombinatorSelectors" -> this.hasSiblingCombinatorSelectors
|
|
2364
|
+
"getSelectorCandidates" ->
|
|
2365
|
+
jsFunction { __a ->
|
|
2366
|
+
this.getSelectorCandidates(
|
|
2367
|
+
__a.getOrNull(0),
|
|
2368
|
+
(if (jsIsNullish(__a.getOrNull(1))) null
|
|
2369
|
+
else
|
|
2370
|
+
jsArrayFrom(__a.getOrNull(1)) {
|
|
2371
|
+
jsCastCarried(it, SelectorCore::class.java)
|
|
2372
|
+
}),
|
|
2373
|
+
)
|
|
2374
|
+
}
|
|
2375
|
+
"sortById" ->
|
|
2376
|
+
jsFunction { __a ->
|
|
2377
|
+
this.sortById(
|
|
2378
|
+
jsConvertedStringOrNull(__a.getOrNull(0)),
|
|
2379
|
+
jsCast(__a.getOrNull(1), SelectorCore::class.java),
|
|
2380
|
+
)
|
|
2381
|
+
null
|
|
2382
|
+
}
|
|
2383
|
+
"sortByClass" ->
|
|
2384
|
+
jsFunction { __a ->
|
|
2385
|
+
this.sortByClass(
|
|
2386
|
+
jsConvertedStringOrNull(__a.getOrNull(0)),
|
|
2387
|
+
jsCast(__a.getOrNull(1), SelectorCore::class.java),
|
|
2388
|
+
)
|
|
2389
|
+
null
|
|
2390
|
+
}
|
|
2391
|
+
"sortByType" ->
|
|
2392
|
+
jsFunction { __a ->
|
|
2393
|
+
this.sortByType(
|
|
2394
|
+
jsConvertedStringOrNull(__a.getOrNull(0)),
|
|
2395
|
+
jsCast(__a.getOrNull(1), SelectorCore::class.java),
|
|
2396
|
+
)
|
|
2397
|
+
null
|
|
2398
|
+
}
|
|
2399
|
+
"sortAsUniversal" ->
|
|
2400
|
+
jsFunction { __a ->
|
|
2401
|
+
this.sortAsUniversal(jsCast(__a.getOrNull(0), SelectorCore::class.java))
|
|
2402
|
+
null
|
|
2403
|
+
}
|
|
2404
|
+
"addToMap" ->
|
|
2405
|
+
jsFunction { __a ->
|
|
2406
|
+
this.addToMap(
|
|
2407
|
+
jsRecordOrNull<JSArray<SelectorCore>>(__a.getOrNull(0)),
|
|
2408
|
+
jsConvertedStringOrNull(__a.getOrNull(1)),
|
|
2409
|
+
jsCast(__a.getOrNull(2), SelectorCore::class.java),
|
|
2410
|
+
)
|
|
2411
|
+
null
|
|
2412
|
+
}
|
|
2413
|
+
"makeDocSelector" ->
|
|
2414
|
+
jsFunction { __a ->
|
|
2415
|
+
this.makeDocSelector(jsCast(__a.getOrNull(0), SelectorCore::class.java))
|
|
2416
|
+
}
|
|
2417
|
+
else -> jsExpandoGet(this, key)
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
override fun jsSet(key: String, value: Any?) {
|
|
2421
|
+
when (key) {
|
|
2422
|
+
"id" -> jsExpandoSet(this, "id", value)
|
|
2423
|
+
"class" -> this.`class` = jsRecordOrNull<JSArray<SelectorCore>>(value)
|
|
2424
|
+
"type" -> this.type = jsRecordOrNull<JSArray<SelectorCore>>(value)
|
|
2425
|
+
"universal" ->
|
|
2426
|
+
this.universal =
|
|
2427
|
+
(if (jsIsNullish(value)) null
|
|
2428
|
+
else jsArrayFrom(value) { jsCastCarried(it, SelectorCore::class.java) })
|
|
2429
|
+
"position" -> this.position = jsConvertedNumber(value, "position")
|
|
2430
|
+
"tier" -> this.tier = jsConvertedNumber(value, "tier")
|
|
2431
|
+
"hasAdjacentCombinatorSelectors" ->
|
|
2432
|
+
this.hasAdjacentCombinatorSelectors =
|
|
2433
|
+
jsConvertedBoolean(value, "hasAdjacentCombinatorSelectors")
|
|
2434
|
+
"hasSiblingCombinatorSelectors" ->
|
|
2435
|
+
this.hasSiblingCombinatorSelectors =
|
|
2436
|
+
jsConvertedBoolean(value, "hasSiblingCombinatorSelectors")
|
|
2437
|
+
else -> jsExpandoSet(this, key, value)
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
override fun jsHasMember(key: String): Boolean =
|
|
2442
|
+
when (key) {
|
|
2443
|
+
"getSelectorCandidates",
|
|
2444
|
+
"sortById",
|
|
2445
|
+
"sortByClass",
|
|
2446
|
+
"sortByType",
|
|
2447
|
+
"sortAsUniversal",
|
|
2448
|
+
"addToMap",
|
|
2449
|
+
"makeDocSelector" -> true
|
|
2450
|
+
else -> false
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
@UiThread
|
|
2455
|
+
open class MediaQuerySelectorScope : SelectorScope {
|
|
2456
|
+
init {
|
|
2457
|
+
if (jsMade != null) jsMadeLevel(this, listOf("_mediaQueryString"))
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
@JvmField var _mediaQueryString: Any? = null
|
|
2461
|
+
|
|
2462
|
+
constructor(mediaQueryString: Any?, tier: Double) : super() {
|
|
2463
|
+
this._mediaQueryString = mediaQueryString
|
|
2464
|
+
this.tier = tier
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
open val mediaQueryString: Any?
|
|
2468
|
+
get() {
|
|
2469
|
+
return this._mediaQueryString
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
override val jsDeclaredKeys: List<String>
|
|
2473
|
+
get() =
|
|
2474
|
+
super.jsDeclaredKeys +
|
|
2475
|
+
(if (_mediaQueryString == null) listOf() else listOf("_mediaQueryString"))
|
|
2476
|
+
|
|
2477
|
+
override val jsClassName: String?
|
|
2478
|
+
get() = "MediaQuerySelectorScope"
|
|
2479
|
+
|
|
2480
|
+
override fun jsGet(key: String): Any? =
|
|
2481
|
+
when (key) {
|
|
2482
|
+
"_mediaQueryString" -> this._mediaQueryString
|
|
2483
|
+
"mediaQueryString" -> this.mediaQueryString
|
|
2484
|
+
else -> super.jsGet(key)
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
override fun jsSet(key: String, value: Any?) {
|
|
2488
|
+
when (key) {
|
|
2489
|
+
"_mediaQueryString" -> this._mediaQueryString = value
|
|
2490
|
+
else -> super.jsSet(key, value)
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
override fun jsHasMember(key: String): Boolean =
|
|
2495
|
+
when (key) {
|
|
2496
|
+
"mediaQueryString" -> true
|
|
2497
|
+
else -> super<SelectorScope>.jsHasMember(key)
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
@UiThread
|
|
2502
|
+
open class StyleSheetSelectorScope : SelectorScope {
|
|
2503
|
+
@get:JvmName("__get_mediaQuerySelectorScopes")
|
|
2504
|
+
@set:JvmName("__set_mediaQuerySelectorScopes")
|
|
2505
|
+
var mediaQuerySelectorScopes: JSArray<MediaQuerySelectorScope>? = null
|
|
2506
|
+
set(value) {
|
|
2507
|
+
field = value
|
|
2508
|
+
jsMadeNote0(1L shl 0, "mediaQuerySelectorScopes")
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
constructor(rulesets: JSArray<RuleSet>?, tier: Double? = null) : super() {
|
|
2512
|
+
val tier: Double = tier.let {
|
|
2513
|
+
if (it == null || it.isNaN()) SelectorTier.Application else it
|
|
2514
|
+
}
|
|
2515
|
+
this.tier = tier
|
|
2516
|
+
this.lookupRulesets(rulesets)
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
/**
|
|
2520
|
+
* Index rulesets added after this scope was built; the rules already indexed keep their
|
|
2521
|
+
* positions.
|
|
2522
|
+
*/
|
|
2523
|
+
open fun appendRulesets(rulesets: JSArray<RuleSet>?, from: Double) {
|
|
2524
|
+
this.lookupRulesets(rulesets, from)
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
open fun createMediaQuerySelectorScope(mediaQueryString: Any?): MediaQuerySelectorScope? {
|
|
2528
|
+
val selectorScope: MediaQuerySelectorScope =
|
|
2529
|
+
MediaQuerySelectorScope(mediaQueryString, this.tier)
|
|
2530
|
+
selectorScope.position = this.position
|
|
2531
|
+
if (jsTruthy(this.mediaQuerySelectorScopes)) {
|
|
2532
|
+
(this.mediaQuerySelectorScopes ?: jsCannotRead("push")).push(selectorScope)
|
|
2533
|
+
} else {
|
|
2534
|
+
this.mediaQuerySelectorScopes =
|
|
2535
|
+
jsArrayOf<MediaQuerySelectorScope>(selectorScope)
|
|
2536
|
+
}
|
|
2537
|
+
return selectorScope
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
open fun lookupRulesets(rulesets: JSArray<RuleSet>?, from: Double = 0.0) {
|
|
2541
|
+
var lastMediaSelectorScope: MediaQuerySelectorScope? = null
|
|
2542
|
+
var i: Double = from
|
|
2543
|
+
val length: Double = (rulesets ?: jsCannotRead("length")).length
|
|
2544
|
+
while (i < length) {
|
|
2545
|
+
val ruleset: RuleSet? = (rulesets ?: jsCannotRead(js(i))).element(i)
|
|
2546
|
+
if (
|
|
2547
|
+
(jsTruthy(lastMediaSelectorScope) &&
|
|
2548
|
+
!jsStrictEquals(
|
|
2549
|
+
(lastMediaSelectorScope ?: jsCannotRead("mediaQueryString"))
|
|
2550
|
+
.mediaQueryString,
|
|
2551
|
+
(ruleset ?: jsCannotRead("mediaQueryString")).mediaQueryString,
|
|
2552
|
+
))
|
|
2553
|
+
) {
|
|
2554
|
+
this.position =
|
|
2555
|
+
(lastMediaSelectorScope ?: jsCannotRead("position")).position
|
|
2556
|
+
lastMediaSelectorScope = null
|
|
2557
|
+
}
|
|
2558
|
+
if (
|
|
2559
|
+
jsTruthy((ruleset ?: jsCannotRead("mediaQueryString")).mediaQueryString)
|
|
2560
|
+
) {
|
|
2561
|
+
if (!jsTruthy(lastMediaSelectorScope)) {
|
|
2562
|
+
lastMediaSelectorScope =
|
|
2563
|
+
this.createMediaQuerySelectorScope(
|
|
2564
|
+
(ruleset ?: jsCannotRead("mediaQueryString")).mediaQueryString
|
|
2565
|
+
)
|
|
2566
|
+
}
|
|
2567
|
+
(ruleset ?: jsCannotRead("lookupSort")).lookupSort(
|
|
2568
|
+
lastMediaSelectorScope
|
|
2569
|
+
)
|
|
2570
|
+
} else {
|
|
2571
|
+
(ruleset ?: jsCannotRead("lookupSort")).lookupSort(this)
|
|
2572
|
+
}
|
|
2573
|
+
i += 1.0
|
|
2574
|
+
}
|
|
2575
|
+
if (jsTruthy(lastMediaSelectorScope)) {
|
|
2576
|
+
this.position =
|
|
2577
|
+
(lastMediaSelectorScope ?: jsCannotRead("position")).position
|
|
2578
|
+
lastMediaSelectorScope = null
|
|
2579
|
+
}
|
|
2580
|
+
if (jsTruthy(this.mediaQuerySelectorScopes)) {
|
|
2581
|
+
for (selectorScope in
|
|
2582
|
+
(this.mediaQuerySelectorScopes ?: jsObjectRequired())) {
|
|
2583
|
+
if (
|
|
2584
|
+
(selectorScope ?: jsCannotRead("hasAdjacentCombinatorSelectors"))
|
|
2585
|
+
.hasAdjacentCombinatorSelectors
|
|
2586
|
+
) {
|
|
2587
|
+
this.hasAdjacentCombinatorSelectors = true
|
|
2588
|
+
}
|
|
2589
|
+
if (
|
|
2590
|
+
(selectorScope ?: jsCannotRead("hasSiblingCombinatorSelectors"))
|
|
2591
|
+
.hasSiblingCombinatorSelectors
|
|
2592
|
+
) {
|
|
2593
|
+
this.hasSiblingCombinatorSelectors = true
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
/**
|
|
2600
|
+
* Append every selector that could match the node, matching media query scopes included, for
|
|
2601
|
+
* `matchSelectorCandidates` to resolve.
|
|
2602
|
+
*/
|
|
2603
|
+
open fun collectCandidates(
|
|
2604
|
+
node: Any?,
|
|
2605
|
+
candidates: JSArray<SelectorCore>? = null,
|
|
2606
|
+
): JSArray<SelectorCore>? {
|
|
2607
|
+
val candidates: JSArray<SelectorCore>? = candidates ?: JSArray<SelectorCore>()
|
|
2608
|
+
this.getSelectorCandidates(node, candidates)
|
|
2609
|
+
if (jsTruthy(this.mediaQuerySelectorScopes)) {
|
|
2610
|
+
val validatedMediaQueries: JSArray<String> = JSArray<String>()
|
|
2611
|
+
var i: Double = 0.0
|
|
2612
|
+
val length: Double = (this.mediaQuerySelectorScopes ?: jsCannotRead("length")).length
|
|
2613
|
+
while (i < length) {
|
|
2614
|
+
val selectorScope: MediaQuerySelectorScope? =
|
|
2615
|
+
(this.mediaQuerySelectorScopes ?: jsCannotRead(js(i))).element(i)
|
|
2616
|
+
val isMatchingAllQueries: Boolean =
|
|
2617
|
+
Core_ui_styling_css_selector.matchMediaQueryString(
|
|
2618
|
+
(selectorScope ?: jsCannotRead("mediaQueryString")).mediaQueryString,
|
|
2619
|
+
validatedMediaQueries,
|
|
2620
|
+
)
|
|
2621
|
+
if (isMatchingAllQueries) {
|
|
2622
|
+
(selectorScope ?: jsCannotRead("getSelectorCandidates"))
|
|
2623
|
+
.getSelectorCandidates(node, candidates)
|
|
2624
|
+
}
|
|
2625
|
+
i += 1.0
|
|
2626
|
+
}
|
|
2627
|
+
}
|
|
2628
|
+
return candidates
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
open fun query(node: Any?): SelectorsMatch? {
|
|
2632
|
+
return Core_ui_styling_css_selector.matchSelectorCandidates(
|
|
2633
|
+
node,
|
|
2634
|
+
this.collectCandidates(node),
|
|
2635
|
+
)
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
override val jsDeclaredKeys: List<String>
|
|
2639
|
+
get() =
|
|
2640
|
+
super.jsDeclaredKeys +
|
|
2641
|
+
(if ((jsMadeBits0 and (1L shl 0)) != 0L) listOf("mediaQuerySelectorScopes")
|
|
2642
|
+
else listOf())
|
|
2643
|
+
|
|
2644
|
+
override val jsClassName: String?
|
|
2645
|
+
get() = "StyleSheetSelectorScope"
|
|
2646
|
+
|
|
2647
|
+
override fun jsGet(key: String): Any? =
|
|
2648
|
+
when (key) {
|
|
2649
|
+
"mediaQuerySelectorScopes" ->
|
|
2650
|
+
if ((jsMadeBits0 and (1L shl 0)) != 0L) this.mediaQuerySelectorScopes else null
|
|
2651
|
+
"appendRulesets" ->
|
|
2652
|
+
jsFunction { __a ->
|
|
2653
|
+
this.appendRulesets(
|
|
2654
|
+
(if (jsIsNullish(__a.getOrNull(0))) null
|
|
2655
|
+
else
|
|
2656
|
+
jsArrayFrom(__a.getOrNull(0)) {
|
|
2657
|
+
jsCastCarried(it, RuleSet::class.java)
|
|
2658
|
+
}),
|
|
2659
|
+
jsConvertedNumberOrZero(__a.getOrNull(1)),
|
|
2660
|
+
)
|
|
2661
|
+
null
|
|
2662
|
+
}
|
|
2663
|
+
"createMediaQuerySelectorScope" ->
|
|
2664
|
+
jsFunction { __a -> this.createMediaQuerySelectorScope(__a.getOrNull(0)) }
|
|
2665
|
+
"lookupRulesets" ->
|
|
2666
|
+
jsFunction { __a ->
|
|
2667
|
+
this.lookupRulesets(
|
|
2668
|
+
(if (jsIsNullish(__a.getOrNull(0))) null
|
|
2669
|
+
else
|
|
2670
|
+
jsArrayFrom(__a.getOrNull(0)) {
|
|
2671
|
+
jsCastCarried(it, RuleSet::class.java)
|
|
2672
|
+
}),
|
|
2673
|
+
jsConvertedNumberOrZero(__a.getOrNull(1)),
|
|
2674
|
+
)
|
|
2675
|
+
null
|
|
2676
|
+
}
|
|
2677
|
+
"collectCandidates" ->
|
|
2678
|
+
jsFunction { __a ->
|
|
2679
|
+
this.collectCandidates(
|
|
2680
|
+
__a.getOrNull(0),
|
|
2681
|
+
(if (jsIsNullish(__a.getOrNull(1))) null
|
|
2682
|
+
else
|
|
2683
|
+
jsArrayFrom(__a.getOrNull(1)) {
|
|
2684
|
+
jsCastCarried(it, SelectorCore::class.java)
|
|
2685
|
+
}),
|
|
2686
|
+
)
|
|
2687
|
+
}
|
|
2688
|
+
"query" -> jsFunction { __a -> this.query(__a.getOrNull(0)) }
|
|
2689
|
+
else -> super.jsGet(key)
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
override fun jsSet(key: String, value: Any?) {
|
|
2693
|
+
when (key) {
|
|
2694
|
+
"mediaQuerySelectorScopes" ->
|
|
2695
|
+
this.mediaQuerySelectorScopes =
|
|
2696
|
+
(if (jsIsNullish(value)) null
|
|
2697
|
+
else
|
|
2698
|
+
jsArrayFrom(value) {
|
|
2699
|
+
jsCastCarried(it, MediaQuerySelectorScope::class.java)
|
|
2700
|
+
})
|
|
2701
|
+
else -> super.jsSet(key, value)
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
override fun jsHasMember(key: String): Boolean =
|
|
2706
|
+
when (key) {
|
|
2707
|
+
"appendRulesets",
|
|
2708
|
+
"createMediaQuerySelectorScope",
|
|
2709
|
+
"lookupRulesets",
|
|
2710
|
+
"collectCandidates",
|
|
2711
|
+
"query" -> true
|
|
2712
|
+
else -> super<SelectorScope>.jsHasMember(key)
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
@UiThread
|
|
2717
|
+
open class SelectorsMatch : JSExpando, JSKeysMade {
|
|
2718
|
+
var jsMadeBits0: Long = 0L
|
|
2719
|
+
|
|
2720
|
+
fun jsMadeNote0(bit: Long, key: String) {
|
|
2721
|
+
if ((jsMadeBits0 and bit) == 0L) {
|
|
2722
|
+
jsMadeBits0 = jsMadeBits0 or bit
|
|
2723
|
+
jsMadeNote(this, key)
|
|
2724
|
+
}
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
override var jsMade: MutableList<String>? = null
|
|
2728
|
+
@JvmField var changeMap: Any? = Core_ui_styling_css_selector.emptyChangeMap
|
|
2729
|
+
@get:JvmName("__get_selectors")
|
|
2730
|
+
@set:JvmName("__set_selectors")
|
|
2731
|
+
var selectors: JSArray<SelectorCore>? = null
|
|
2732
|
+
set(value) {
|
|
2733
|
+
field = value
|
|
2734
|
+
jsMadeNote0(1L shl 0, "selectors")
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
constructor()
|
|
2738
|
+
|
|
2739
|
+
constructor(@Suppress("UNUSED_PARAMETER") __literal: Unit)
|
|
2740
|
+
|
|
2741
|
+
open fun addAttribute(node: Any?, attribute: String?) {
|
|
2742
|
+
val deps: Any? = kotlin.run {
|
|
2743
|
+
val __own1 = jsOwnProperty(this, "properties")
|
|
2744
|
+
if (__own1 != null) jsCallValue(__own1.value, this, false, node)
|
|
2745
|
+
else this.properties(node)
|
|
2746
|
+
}
|
|
2747
|
+
if (
|
|
2748
|
+
!jsTruthy(jsAs<JSSet<String>?>(jsJavaArgument(jsGet(deps, "attributes"))))
|
|
2749
|
+
) {
|
|
2750
|
+
jsSet(deps, "attributes", JSSet<String>())
|
|
2751
|
+
}
|
|
2752
|
+
(jsAsOrNull<JSSet<String>>(jsGet(deps, "attributes")) ?: JSSet<String>()).add(
|
|
2753
|
+
(attribute ?: "undefined")
|
|
2754
|
+
)
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
open fun addPseudoClass(node: Any?, pseudoClass: String?) {
|
|
2758
|
+
val deps: Any? = kotlin.run {
|
|
2759
|
+
val __own1 = jsOwnProperty(this, "properties")
|
|
2760
|
+
if (__own1 != null) jsCallValue(__own1.value, this, false, node)
|
|
2761
|
+
else this.properties(node)
|
|
2762
|
+
}
|
|
2763
|
+
if (
|
|
2764
|
+
!jsTruthy(jsAs<JSSet<String>?>(jsJavaArgument(jsGet(deps, "pseudoClasses"))))
|
|
2765
|
+
) {
|
|
2766
|
+
jsSet(deps, "pseudoClasses", JSSet<String>())
|
|
2767
|
+
}
|
|
2768
|
+
(jsAsOrNull<JSSet<String>>(jsGet(deps, "pseudoClasses")) ?: JSSet<String>())
|
|
2769
|
+
.add((pseudoClass ?: "undefined"))
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
open fun properties(node: Any?): Any? {
|
|
2773
|
+
var changeMap: Any? = this.changeMap
|
|
2774
|
+
if (jsStrictEquals(changeMap, Core_ui_styling_css_selector.emptyChangeMap)) {
|
|
2775
|
+
this.changeMap = kotlin.run {
|
|
2776
|
+
val __assigned1: JSMap<Any?, Any?> = JSMap<Any?, Any?>()
|
|
2777
|
+
changeMap = __assigned1
|
|
2778
|
+
__assigned1
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
var set: Any? = jsCallMethod(changeMap, "get", node)
|
|
2782
|
+
if (!jsTruthy(set)) {
|
|
2783
|
+
jsCallMethod(
|
|
2784
|
+
changeMap,
|
|
2785
|
+
"set",
|
|
2786
|
+
node,
|
|
2787
|
+
(kotlin.run {
|
|
2788
|
+
val __assigned2: Any? = jsObjectOf()
|
|
2789
|
+
set = __assigned2
|
|
2790
|
+
__assigned2
|
|
2791
|
+
}),
|
|
2792
|
+
)
|
|
2793
|
+
}
|
|
2794
|
+
return set
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
override var jsExpando: JSObject? = null
|
|
2798
|
+
override val jsDeclaredKeys: List<String>
|
|
2799
|
+
get() =
|
|
2800
|
+
(if (changeMap == null) listOf() else listOf("changeMap")) +
|
|
2801
|
+
(if ((jsMadeBits0 and (1L shl 0)) != 0L) listOf("selectors") else listOf())
|
|
2802
|
+
|
|
2803
|
+
override val jsKeys: List<String>
|
|
2804
|
+
get() = jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?: listOf()))
|
|
2805
|
+
|
|
2806
|
+
override val jsClassName: String?
|
|
2807
|
+
get() = "SelectorsMatch"
|
|
2808
|
+
|
|
2809
|
+
override fun jsGet(key: String): Any? =
|
|
2810
|
+
when (key) {
|
|
2811
|
+
"changeMap" -> this.changeMap
|
|
2812
|
+
"selectors" -> if ((jsMadeBits0 and (1L shl 0)) != 0L) this.selectors else null
|
|
2813
|
+
"addAttribute" ->
|
|
2814
|
+
(jsOwnProperty(this, "addAttribute")
|
|
2815
|
+
?: JSFound(
|
|
2816
|
+
jsFunction { __a ->
|
|
2817
|
+
this.addAttribute(
|
|
2818
|
+
__a.getOrNull(0),
|
|
2819
|
+
jsConvertedStringOrNull(__a.getOrNull(1)),
|
|
2820
|
+
)
|
|
2821
|
+
null
|
|
2822
|
+
}
|
|
2823
|
+
))
|
|
2824
|
+
.value
|
|
2825
|
+
"addPseudoClass" ->
|
|
2826
|
+
(jsOwnProperty(this, "addPseudoClass")
|
|
2827
|
+
?: JSFound(
|
|
2828
|
+
jsFunction { __a ->
|
|
2829
|
+
this.addPseudoClass(
|
|
2830
|
+
__a.getOrNull(0),
|
|
2831
|
+
jsConvertedStringOrNull(__a.getOrNull(1)),
|
|
2832
|
+
)
|
|
2833
|
+
null
|
|
2834
|
+
}
|
|
2835
|
+
))
|
|
2836
|
+
.value
|
|
2837
|
+
"properties" ->
|
|
2838
|
+
(jsOwnProperty(this, "properties")
|
|
2839
|
+
?: JSFound(jsFunction { __a -> this.properties(__a.getOrNull(0)) }))
|
|
2840
|
+
.value
|
|
2841
|
+
else -> jsExpandoGet(this, key)
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
override fun jsSet(key: String, value: Any?) {
|
|
2845
|
+
when (key) {
|
|
2846
|
+
"changeMap" -> this.changeMap = value
|
|
2847
|
+
"selectors" ->
|
|
2848
|
+
this.selectors =
|
|
2849
|
+
(if (jsIsNullish(value)) null
|
|
2850
|
+
else jsArrayFrom(value) { jsCastCarried(it, SelectorCore::class.java) })
|
|
2851
|
+
else -> jsExpandoSet(this, key, value)
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
override fun jsHasMember(key: String): Boolean =
|
|
2856
|
+
when (key) {
|
|
2857
|
+
"addAttribute",
|
|
2858
|
+
"addPseudoClass",
|
|
2859
|
+
"properties" -> true
|
|
2860
|
+
else -> false
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
@UiThread
|
|
2865
|
+
object Core_ui_styling_css_selector {
|
|
2866
|
+
init {
|
|
2867
|
+
jsLexical("notifyingAttributes")
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
fun eachNodePreviousGeneralSibling(node: Any?, callback: (Any?) -> Boolean) {
|
|
2871
|
+
if (
|
|
2872
|
+
!jsTruthy(jsGet(node, "parent")) ||
|
|
2873
|
+
!jsTruthy(
|
|
2874
|
+
jsUnlessNullish(jsGet(jsGet(node, "parent"), "getChildIndex")) {
|
|
2875
|
+
jsFunction1<Any?, Double>(it)
|
|
2876
|
+
}
|
|
2877
|
+
) ||
|
|
2878
|
+
!jsTruthy(
|
|
2879
|
+
jsUnlessNullish(jsGet(jsGet(node, "parent"), "getChildAt")) {
|
|
2880
|
+
jsFunction1<Double, Any?>(it)
|
|
2881
|
+
}
|
|
2882
|
+
) ||
|
|
2883
|
+
!jsTruthy(
|
|
2884
|
+
jsUnlessNullish(jsGet(jsGet(node, "parent"), "getChildrenCount")) {
|
|
2885
|
+
jsFunction0<Double>(it)
|
|
2886
|
+
}
|
|
2887
|
+
)
|
|
2888
|
+
) {
|
|
2889
|
+
return
|
|
2890
|
+
}
|
|
2891
|
+
val nodeIndex: Double =
|
|
2892
|
+
jsConvertedNumberOrZero(jsCallMethod(jsGet(node, "parent"), "getChildIndex", node))
|
|
2893
|
+
if (nodeIndex == 0.0) {
|
|
2894
|
+
return
|
|
2895
|
+
}
|
|
2896
|
+
val count: Double =
|
|
2897
|
+
jsConvertedNumberOrZero(jsCallMethod(jsGet(node, "parent"), "getChildrenCount"))
|
|
2898
|
+
var retVal: Boolean = true
|
|
2899
|
+
var i: Double = nodeIndex - 1.0
|
|
2900
|
+
while (i >= 0.0 && retVal) {
|
|
2901
|
+
val sibling: Any? = jsCallMethod(jsGet(node, "parent"), "getChildAt", i)
|
|
2902
|
+
retVal = callback(sibling)
|
|
2903
|
+
i -= 1.0
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2907
|
+
fun getNodePreviousDirectSibling(node: Any?): Any? {
|
|
2908
|
+
if (
|
|
2909
|
+
!jsTruthy(jsGet(node, "parent")) ||
|
|
2910
|
+
!jsTruthy(
|
|
2911
|
+
jsUnlessNullish(jsGet(jsGet(node, "parent"), "getChildIndex")) {
|
|
2912
|
+
jsFunction1<Any?, Double>(it)
|
|
2913
|
+
}
|
|
2914
|
+
) ||
|
|
2915
|
+
!jsTruthy(
|
|
2916
|
+
jsUnlessNullish(jsGet(jsGet(node, "parent"), "getChildAt")) {
|
|
2917
|
+
jsFunction1<Double, Any?>(it)
|
|
2918
|
+
}
|
|
2919
|
+
)
|
|
2920
|
+
) {
|
|
2921
|
+
return jsNull
|
|
2922
|
+
}
|
|
2923
|
+
val nodeIndex: Double =
|
|
2924
|
+
jsConvertedNumberOrZero(jsCallMethod(jsGet(node, "parent"), "getChildIndex", node))
|
|
2925
|
+
if (nodeIndex == 0.0) {
|
|
2926
|
+
return jsNull
|
|
2927
|
+
}
|
|
2928
|
+
return jsCallMethod(jsGet(node, "parent"), "getChildAt", nodeIndex - 1.0)
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
@get:JvmName("__get_notifyingAttributes")
|
|
2932
|
+
@set:JvmName("__set_notifyingAttributes")
|
|
2933
|
+
lateinit var notifyingAttributes: JSWeakMap<Any?, JSMap<String, Boolean>>
|
|
2934
|
+
|
|
2935
|
+
fun attributeNotifiesChanges(node: Any?, attribute: String?): Boolean {
|
|
2936
|
+
val prototype: Any? = jsGetPrototypeOf(node)
|
|
2937
|
+
if (!jsTruthy(prototype)) {
|
|
2938
|
+
return false
|
|
2939
|
+
}
|
|
2940
|
+
var cache: JSMap<String, Boolean>? =
|
|
2941
|
+
Core_ui_styling_css_selector.notifyingAttributes.get(prototype)
|
|
2942
|
+
if (jsTruthy(cache)) {
|
|
2943
|
+
val cached: Boolean? =
|
|
2944
|
+
(cache ?: jsCannotRead("get")).get((attribute ?: "undefined"))
|
|
2945
|
+
if (cached != null) {
|
|
2946
|
+
return (cached ?: false)
|
|
2947
|
+
}
|
|
2948
|
+
} else {
|
|
2949
|
+
cache = JSMap<String, Boolean>()
|
|
2950
|
+
Core_ui_styling_css_selector.notifyingAttributes.set(
|
|
2951
|
+
prototype,
|
|
2952
|
+
jsUnchecked<JSMap<String, Boolean>>(cache),
|
|
2953
|
+
)
|
|
2954
|
+
}
|
|
2955
|
+
var notifies: Boolean = false
|
|
2956
|
+
var current: Any? = prototype
|
|
2957
|
+
while (jsTruthy(current)) {
|
|
2958
|
+
val descriptor: Any? =
|
|
2959
|
+
jsOwnPropertyDescriptor(current, jsToString((attribute ?: "undefined")))
|
|
2960
|
+
if (jsTruthy(descriptor)) {
|
|
2961
|
+
notifies =
|
|
2962
|
+
jsTruthy(
|
|
2963
|
+
jsUnlessNullish(jsGet(descriptor, "set")) { jsFunction1<Any?, Unit>(it) }
|
|
2964
|
+
)
|
|
2965
|
+
break
|
|
2966
|
+
}
|
|
2967
|
+
current = jsGetPrototypeOf(current)
|
|
2968
|
+
}
|
|
2969
|
+
(cache ?: jsCannotRead("set")).set((attribute ?: "undefined"), notifies)
|
|
2970
|
+
return notifies
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
fun SelectorProperties(
|
|
2974
|
+
specificity: Double,
|
|
2975
|
+
rarity: Double,
|
|
2976
|
+
dynamic: Boolean = false,
|
|
2977
|
+
): (Any?) -> Any? {
|
|
2978
|
+
return { cls: Any? ->
|
|
2979
|
+
jsSet(jsGet(cls, "prototype"), "specificity", specificity)
|
|
2980
|
+
jsSet(jsGet(cls, "prototype"), "rarity", rarity)
|
|
2981
|
+
jsSet(jsGet(cls, "prototype"), "combinator", null)
|
|
2982
|
+
jsSet(jsGet(cls, "prototype"), "dynamic", dynamic)
|
|
2983
|
+
jsSet(jsGet(cls, "prototype"), "hasAdjacentCombinator", false)
|
|
2984
|
+
jsSet(jsGet(cls, "prototype"), "hasSiblingCombinator", false)
|
|
2985
|
+
jsSet(jsGet(cls, "prototype"), "tier", SelectorTier.Application)
|
|
2986
|
+
cls
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
|
|
2990
|
+
fun FunctionalPseudoClassProperties(
|
|
2991
|
+
specificity: Double,
|
|
2992
|
+
rarity: Double,
|
|
2993
|
+
pseudoSelectorListType: Double,
|
|
2994
|
+
): (Any?) -> Any? {
|
|
2995
|
+
return { cls: Any? ->
|
|
2996
|
+
jsSet(jsGet(cls, "prototype"), "specificity", specificity)
|
|
2997
|
+
jsSet(jsGet(cls, "prototype"), "rarity", rarity)
|
|
2998
|
+
jsSet(jsGet(cls, "prototype"), "combinator", null)
|
|
2999
|
+
jsSet(jsGet(cls, "prototype"), "dynamic", false)
|
|
3000
|
+
jsSet(jsGet(cls, "prototype"), "hasAdjacentCombinator", false)
|
|
3001
|
+
jsSet(jsGet(cls, "prototype"), "hasSiblingCombinator", false)
|
|
3002
|
+
jsSet(
|
|
3003
|
+
jsGet(cls, "prototype"),
|
|
3004
|
+
"pseudoSelectorListType",
|
|
3005
|
+
pseudoSelectorListType,
|
|
3006
|
+
)
|
|
3007
|
+
cls
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
|
|
3011
|
+
fun wrap(text: String?): String {
|
|
3012
|
+
return (if (!text.isNullOrEmpty()) " ${jsToString((text ?: "undefined"))} "
|
|
3013
|
+
else "")
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
fun fromAstNode(astRule: Any?): RuleSet? {
|
|
3017
|
+
val declarations: JSArray<Any?> = JSArray<Any?>()
|
|
3018
|
+
val nodes: Any? = jsGet(astRule, "declarations")
|
|
3019
|
+
var i: Double = 0.0
|
|
3020
|
+
val length: Any? = jsGet(nodes, "length")
|
|
3021
|
+
while (jsLessThrowing(i, length)) {
|
|
3022
|
+
val node: Any? = jsGet(nodes, js(i))
|
|
3023
|
+
if (Core_ui_styling_css_selector.isDeclaration(node)) {
|
|
3024
|
+
Core_ui_styling_css_selector.appendDeclaration(declarations, node)
|
|
3025
|
+
}
|
|
3026
|
+
i += 1.0
|
|
3027
|
+
}
|
|
3028
|
+
val selectors: Any? =
|
|
3029
|
+
jsCallMethod(
|
|
3030
|
+
jsGet(astRule, "selectors"),
|
|
3031
|
+
"map",
|
|
3032
|
+
{ __v0: Any? -> Core_ui_styling_css_selector.createSelector((__v0 as? String)) },
|
|
3033
|
+
)
|
|
3034
|
+
return RuleSet(
|
|
3035
|
+
(jsAsOrNull<JSArray<SelectorCore>>(selectors) ?: JSArray<SelectorCore>()),
|
|
3036
|
+
declarations,
|
|
3037
|
+
)
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3040
|
+
fun appendDeclaration(declarations: JSArray<Any?>?, decl: Any?) {
|
|
3041
|
+
val property: Any? =
|
|
3042
|
+
(if (
|
|
3043
|
+
Core_ui_core_properties_index.isCssVariable(
|
|
3044
|
+
jsConvertedStringOrNull(jsGet(decl, "property"))
|
|
3045
|
+
)
|
|
3046
|
+
)
|
|
3047
|
+
jsGet(decl, "property")
|
|
3048
|
+
else jsCallMethod(jsGet(decl, "property"), "toLowerCase"))
|
|
3049
|
+
Core_ui_styling_css_selector.pushDeclaration(
|
|
3050
|
+
declarations,
|
|
3051
|
+
jsConvertedStringOrNull(property),
|
|
3052
|
+
Core_ui_styling_css_utils.cleanupImportantFlags(
|
|
3053
|
+
jsGet(decl, "value"),
|
|
3054
|
+
jsConvertedStringOrNull(jsGet(decl, "property")),
|
|
3055
|
+
),
|
|
3056
|
+
)
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
fun pushDeclaration(declarations: JSArray<Any?>?, property: String?, value: String?) {
|
|
3060
|
+
val expanded: JSArray<Pair<String, Any?>>? =
|
|
3061
|
+
Core_ui_core_properties_index._expandCssShorthand(property, value)
|
|
3062
|
+
if (jsTruthy(expanded)) {
|
|
3063
|
+
var i: Double = 0.0
|
|
3064
|
+
val length: Double = (expanded ?: jsCannotRead("length")).length
|
|
3065
|
+
while (i < length) {
|
|
3066
|
+
(declarations ?: jsCannotRead("push")).push(
|
|
3067
|
+
jsObjectOf(
|
|
3068
|
+
"property" to
|
|
3069
|
+
((expanded ?: jsCannotRead(js(i))).element(i) ?: jsCannotRead("0"))
|
|
3070
|
+
.first,
|
|
3071
|
+
"value" to
|
|
3072
|
+
((expanded ?: jsCannotRead(js(i))).element(i) ?: jsCannotRead("1"))
|
|
3073
|
+
.second,
|
|
3074
|
+
)
|
|
3075
|
+
)
|
|
3076
|
+
i += 1.0
|
|
3077
|
+
}
|
|
3078
|
+
return
|
|
3079
|
+
}
|
|
3080
|
+
val pending: JSArray<Pair<String, CssPendingSubstitution>>? =
|
|
3081
|
+
Core_ui_core_properties_index._pendingCssShorthandSubstitution(property, value)
|
|
3082
|
+
if (jsTruthy(pending)) {
|
|
3083
|
+
var i: Double = 0.0
|
|
3084
|
+
val length: Double = (pending ?: jsCannotRead("length")).length
|
|
3085
|
+
while (i < length) {
|
|
3086
|
+
(declarations ?: jsCannotRead("push")).push(
|
|
3087
|
+
jsObjectOf(
|
|
3088
|
+
"property" to
|
|
3089
|
+
((pending ?: jsCannotRead(js(i))).element(i) ?: jsCannotRead("0"))
|
|
3090
|
+
.first,
|
|
3091
|
+
"value" to
|
|
3092
|
+
((pending ?: jsCannotRead(js(i))).element(i) ?: jsCannotRead("1"))
|
|
3093
|
+
.second,
|
|
3094
|
+
)
|
|
3095
|
+
)
|
|
3096
|
+
i += 1.0
|
|
3097
|
+
}
|
|
3098
|
+
return
|
|
3099
|
+
}
|
|
3100
|
+
(declarations ?: jsCannotRead("push")).push(
|
|
3101
|
+
jsObjectOf("property" to property, "value" to value)
|
|
3102
|
+
)
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
fun createSimpleSelectorFromAst(ast: Any?): SimpleSelector? {
|
|
3106
|
+
if (jsConvertedStringOrNull(jsGet(ast, "type")) == "attribute") {
|
|
3107
|
+
if (jsConvertedStringOrNull(jsGet(ast, "name")) == "class") {
|
|
3108
|
+
return ClassSelector(jsConvertedStringOrNull(jsGet(ast, "value")))
|
|
3109
|
+
}
|
|
3110
|
+
if (jsConvertedStringOrNull(jsGet(ast, "name")) == "id") {
|
|
3111
|
+
return IdSelector(jsConvertedStringOrNull(jsGet(ast, "value")))
|
|
3112
|
+
}
|
|
3113
|
+
return AttributeSelector(
|
|
3114
|
+
jsConvertedStringOrNull(jsGet(ast, "name")),
|
|
3115
|
+
jsConvertedStringOrNull(jsGet(ast, "action")),
|
|
3116
|
+
jsConvertedStringOrNull(jsGet(ast, "value")),
|
|
3117
|
+
jsTruthy(jsGet(ast, "ignoreCase")),
|
|
3118
|
+
)
|
|
3119
|
+
}
|
|
3120
|
+
if (jsConvertedStringOrNull(jsGet(ast, "type")) == "tag") {
|
|
3121
|
+
return TypeSelector(
|
|
3122
|
+
jsLowerCase(jsReplace(jsConvertedStringOrEmpty(jsGet(ast, "name")), "-", ""))
|
|
3123
|
+
)
|
|
3124
|
+
}
|
|
3125
|
+
if (jsConvertedStringOrNull(jsGet(ast, "type")) == "pseudo") {
|
|
3126
|
+
if (jsConvertedStringOrNull(jsGet(ast, "name")) == "is") {
|
|
3127
|
+
return IsFunctionalPseudoClassSelector(
|
|
3128
|
+
jsConvertedStringOrNull(jsGet(ast, "name")),
|
|
3129
|
+
jsGet(ast, "data"),
|
|
3130
|
+
)
|
|
3131
|
+
}
|
|
3132
|
+
if (jsConvertedStringOrNull(jsGet(ast, "name")) == "where") {
|
|
3133
|
+
return WhereFunctionalPseudoClassSelector(
|
|
3134
|
+
jsConvertedStringOrNull(jsGet(ast, "name")),
|
|
3135
|
+
jsGet(ast, "data"),
|
|
3136
|
+
)
|
|
3137
|
+
}
|
|
3138
|
+
if (jsConvertedStringOrNull(jsGet(ast, "name")) == "not") {
|
|
3139
|
+
return NotFunctionalPseudoClassSelector(
|
|
3140
|
+
jsConvertedStringOrNull(jsGet(ast, "name")),
|
|
3141
|
+
jsGet(ast, "data"),
|
|
3142
|
+
)
|
|
3143
|
+
}
|
|
3144
|
+
return PseudoClassSelector(jsConvertedStringOrNull(jsGet(ast, "name")))
|
|
3145
|
+
}
|
|
3146
|
+
if (jsConvertedStringOrNull(jsGet(ast, "type")) == "universal") {
|
|
3147
|
+
return UniversalSelector()
|
|
3148
|
+
}
|
|
3149
|
+
return InvalidSelector(
|
|
3150
|
+
JSError(jsToString(jsConvertedStringOrNull(jsGet(ast, "type"))))
|
|
3151
|
+
)
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
fun createSimpleSelectorSequenceFromAst(asts: JSArray<Any?>?): Any? {
|
|
3155
|
+
if ((asts ?: jsCannotRead("length")).length == 0.0) {
|
|
3156
|
+
return InvalidSelector(JSError("Empty simple selector sequence."))
|
|
3157
|
+
}
|
|
3158
|
+
if ((asts ?: jsCannotRead("length")).length == 1.0) {
|
|
3159
|
+
return Core_ui_styling_css_selector.createSimpleSelectorFromAst(
|
|
3160
|
+
(asts ?: jsCannotRead("0")).element(0.0)
|
|
3161
|
+
)
|
|
3162
|
+
}
|
|
3163
|
+
val sequenceSelectors: JSArray<SimpleSelector> = JSArray<SimpleSelector>()
|
|
3164
|
+
for (ast in (asts ?: jsObjectRequired())) {
|
|
3165
|
+
val selector: SimpleSelector? =
|
|
3166
|
+
Core_ui_styling_css_selector.createSimpleSelectorFromAst(ast)
|
|
3167
|
+
if ((selector is InvalidSelector)) {
|
|
3168
|
+
return (selector as InvalidSelector)
|
|
3169
|
+
}
|
|
3170
|
+
sequenceSelectors.push((selector ?: jsObjectRequired()))
|
|
3171
|
+
}
|
|
3172
|
+
return SimpleSelectorSequence(sequenceSelectors)
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
fun createSelectorFromAst(asts: JSArray<Any?>?): Any? {
|
|
3176
|
+
val result: Any?
|
|
3177
|
+
if ((asts ?: jsCannotRead("length")).length == 0.0) {
|
|
3178
|
+
return InvalidSelector(JSError("Empty selector."))
|
|
3179
|
+
}
|
|
3180
|
+
if ((asts ?: jsCannotRead("length")).length == 1.0) {
|
|
3181
|
+
return Core_ui_styling_css_selector.createSimpleSelectorFromAst(
|
|
3182
|
+
(asts ?: jsCannotRead("0")).element(0.0)
|
|
3183
|
+
)
|
|
3184
|
+
}
|
|
3185
|
+
val simpleSelectorSequences: JSArray<Any?> = JSArray<Any?>()
|
|
3186
|
+
var sequenceAsts: JSArray<Any?>? = JSArray<Any?>()
|
|
3187
|
+
var combinatorCount: Double = 0.0
|
|
3188
|
+
for (ast in (asts ?: jsObjectRequired())) {
|
|
3189
|
+
val combinator: Any? =
|
|
3190
|
+
Combinator.jsEnumObject.jsGet(
|
|
3191
|
+
jsToString(jsConvertedStringOrNull(jsGet(ast, "type")))
|
|
3192
|
+
)
|
|
3193
|
+
if (!jsIsNullish(combinator)) {
|
|
3194
|
+
val selector: Any? =
|
|
3195
|
+
Core_ui_styling_css_selector.createSimpleSelectorSequenceFromAst(sequenceAsts)
|
|
3196
|
+
if ((selector is InvalidSelector)) {
|
|
3197
|
+
return jsCastCarried(selector, InvalidSelector::class.java)
|
|
3198
|
+
}
|
|
3199
|
+
jsSet(selector, "combinator", combinator)
|
|
3200
|
+
simpleSelectorSequences.push(selector)
|
|
3201
|
+
combinatorCount += 1.0
|
|
3202
|
+
sequenceAsts = JSArray<Any?>()
|
|
3203
|
+
} else {
|
|
3204
|
+
(sequenceAsts ?: jsCannotRead("push")).push(ast)
|
|
3205
|
+
}
|
|
3206
|
+
}
|
|
3207
|
+
if (combinatorCount > 0.0) {
|
|
3208
|
+
if (jsTruthy((sequenceAsts ?: jsCannotRead("length")).length)) {
|
|
3209
|
+
val selector: Any? =
|
|
3210
|
+
Core_ui_styling_css_selector.createSimpleSelectorSequenceFromAst(sequenceAsts)
|
|
3211
|
+
if ((selector is InvalidSelector)) {
|
|
3212
|
+
return jsCastCarried(selector, InvalidSelector::class.java)
|
|
3213
|
+
}
|
|
3214
|
+
simpleSelectorSequences.push(selector)
|
|
3215
|
+
}
|
|
3216
|
+
return ComplexSelector(
|
|
3217
|
+
jsArrayFrom(simpleSelectorSequences) {
|
|
3218
|
+
jsCastCarried(it, SimpleSelector::class.java)
|
|
3219
|
+
}
|
|
3220
|
+
)
|
|
3221
|
+
}
|
|
3222
|
+
return Core_ui_styling_css_selector.createSimpleSelectorSequenceFromAst(
|
|
3223
|
+
sequenceAsts
|
|
3224
|
+
)
|
|
3225
|
+
}
|
|
3226
|
+
|
|
3227
|
+
fun createSelector(sel: String?): Any? {
|
|
3228
|
+
try {
|
|
3229
|
+
val result: JSArray<JSArray<Any?>>? = Package_css_what_src_parse.parse(sel)
|
|
3230
|
+
if (!jsTruthy(result?.length)) {
|
|
3231
|
+
return InvalidSelector(JSError("Empty selector"))
|
|
3232
|
+
}
|
|
3233
|
+
return Core_ui_styling_css_selector.createSelectorFromAst(
|
|
3234
|
+
(result ?: jsCannotRead("0")).element(0.0)
|
|
3235
|
+
)
|
|
3236
|
+
} catch (__e_1: Throwable) {
|
|
3237
|
+
val e: Any? = jsCaught(__e_1)
|
|
3238
|
+
return InvalidSelector(jsUnchecked<JSError>(jsJavaArgument(e)))
|
|
3239
|
+
}
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
fun isDeclaration(node: Any?): Boolean {
|
|
3243
|
+
return jsStrictEquals(jsGet(node, "type"), "declaration")
|
|
3244
|
+
}
|
|
3245
|
+
|
|
3246
|
+
fun matchMediaQueryString(mediaQueryString: Any?, cachedQueries: JSArray<String>?): Boolean {
|
|
3247
|
+
if (!jsTruthy(mediaQueryString)) {
|
|
3248
|
+
return false
|
|
3249
|
+
}
|
|
3250
|
+
if (jsTypeof(mediaQueryString) == "string") {
|
|
3251
|
+
if (
|
|
3252
|
+
(cachedQueries ?: jsCannotRead("includes")).includes(
|
|
3253
|
+
jsConvertedString(mediaQueryString)
|
|
3254
|
+
)
|
|
3255
|
+
) {
|
|
3256
|
+
return true
|
|
3257
|
+
}
|
|
3258
|
+
val result: Boolean =
|
|
3259
|
+
Core_media_query_list_index.checkIfMediaQueryMatches(
|
|
3260
|
+
jsConvertedString(mediaQueryString)
|
|
3261
|
+
)
|
|
3262
|
+
if (result) {
|
|
3263
|
+
(cachedQueries ?: jsCannotRead("push")).push(
|
|
3264
|
+
jsConvertedString(mediaQueryString)
|
|
3265
|
+
)
|
|
3266
|
+
return result
|
|
3267
|
+
}
|
|
3268
|
+
return false
|
|
3269
|
+
}
|
|
3270
|
+
var i: Double = 0.0
|
|
3271
|
+
val length: Double = jsArrayFrom(mediaQueryString) { jsConvertedString(it) }.length
|
|
3272
|
+
var __first1 = true
|
|
3273
|
+
while (true) {
|
|
3274
|
+
if (!__first1) {
|
|
3275
|
+
i += 1.0
|
|
3276
|
+
}
|
|
3277
|
+
__first1 = false
|
|
3278
|
+
if (!(i < length)) break
|
|
3279
|
+
kotlin.run {
|
|
3280
|
+
val mq: String? =
|
|
3281
|
+
jsArrayFrom(mediaQueryString) { jsConvertedString(it) }.element(i)
|
|
3282
|
+
if ((cachedQueries ?: jsCannotRead("includes")).includes(mq)) {
|
|
3283
|
+
continue
|
|
3284
|
+
}
|
|
3285
|
+
if (!Core_media_query_list_index.checkIfMediaQueryMatches(mq)) {
|
|
3286
|
+
return false
|
|
3287
|
+
}
|
|
3288
|
+
(cachedQueries ?: jsCannotRead("push")).push((mq ?: "undefined"))
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
return true
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
fun appendSelectorCandidates(
|
|
3295
|
+
candidates: JSArray<SelectorCore>?,
|
|
3296
|
+
selectors: JSArray<SelectorCore>?,
|
|
3297
|
+
) {
|
|
3298
|
+
if (jsTruthy(selectors)) {
|
|
3299
|
+
var i: Double = 0.0
|
|
3300
|
+
val length: Double = (selectors ?: jsCannotRead("length")).length
|
|
3301
|
+
while (i < length) {
|
|
3302
|
+
(candidates ?: jsCannotRead("push")).push(
|
|
3303
|
+
((selectors ?: jsCannotRead(js(i))).element(i) ?: jsObjectRequired())
|
|
3304
|
+
)
|
|
3305
|
+
i += 1.0
|
|
3306
|
+
}
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
/** Cascade order: specificity, then source order - (tier, position) across stylesheets. */
|
|
3311
|
+
fun compareSelectors(a: SelectorCore?, b: SelectorCore?): Double {
|
|
3312
|
+
return kotlin.run {
|
|
3313
|
+
val __v_1 = kotlin.run {
|
|
3314
|
+
val __v_2 =
|
|
3315
|
+
((a ?: jsCannotRead("specificity")).specificity ?: Double.NaN) -
|
|
3316
|
+
((b ?: jsCannotRead("specificity")).specificity ?: Double.NaN)
|
|
3317
|
+
if (jsTruthy(__v_2)) __v_2
|
|
3318
|
+
else
|
|
3319
|
+
((a ?: jsCannotRead("tier")).tier ?: Double.NaN) -
|
|
3320
|
+
((b ?: jsCannotRead("tier")).tier ?: Double.NaN)
|
|
3321
|
+
}
|
|
3322
|
+
if (jsTruthy(__v_1)) __v_1
|
|
3323
|
+
else
|
|
3324
|
+
((a ?: jsCannotRead("pos")).pos ?: Double.NaN) -
|
|
3325
|
+
((b ?: jsCannotRead("pos")).pos ?: Double.NaN)
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3329
|
+
/**
|
|
3330
|
+
* Resolve collected candidates against a node, compacting the array in place. `scopedTags`
|
|
3331
|
+
* filters out rules registered on behalf of a stylesheet this scope never loaded; pass it only
|
|
3332
|
+
* when such rules exist - it costs a lookup per candidate.
|
|
3333
|
+
*/
|
|
3334
|
+
fun matchSelectorCandidates(
|
|
3335
|
+
node: Any?,
|
|
3336
|
+
candidates: JSArray<SelectorCore>?,
|
|
3337
|
+
scopedTags: JSSet<String>? = null,
|
|
3338
|
+
): SelectorsMatch? {
|
|
3339
|
+
val selectorsMatch: SelectorsMatch = SelectorsMatch()
|
|
3340
|
+
var matched: Double = 0.0
|
|
3341
|
+
var i: Double = 0.0
|
|
3342
|
+
val length: Double = (candidates ?: jsCannotRead("length")).length
|
|
3343
|
+
var __first1 = true
|
|
3344
|
+
while (true) {
|
|
3345
|
+
if (!__first1) {
|
|
3346
|
+
i += 1.0
|
|
3347
|
+
}
|
|
3348
|
+
__first1 = false
|
|
3349
|
+
if (!(i < length)) break
|
|
3350
|
+
kotlin.run {
|
|
3351
|
+
val selector: SelectorCore? =
|
|
3352
|
+
(candidates ?: jsCannotRead(js(i))).element(i)
|
|
3353
|
+
if (jsTruthy(scopedTags)) {
|
|
3354
|
+
val scopedTag: String? =
|
|
3355
|
+
(selector ?: jsCannotRead("ruleset")).ruleset?.scopedTag
|
|
3356
|
+
if (
|
|
3357
|
+
(!scopedTag.isNullOrEmpty() &&
|
|
3358
|
+
!((scopedTags ?: jsCannotRead("has")).has((scopedTag ?: "undefined"))))
|
|
3359
|
+
) {
|
|
3360
|
+
continue
|
|
3361
|
+
}
|
|
3362
|
+
}
|
|
3363
|
+
if (
|
|
3364
|
+
(selector ?: jsCannotRead("accumulateChanges")).accumulateChanges(
|
|
3365
|
+
node,
|
|
3366
|
+
selectorsMatch,
|
|
3367
|
+
)
|
|
3368
|
+
) {
|
|
3369
|
+
(candidates
|
|
3370
|
+
?: jsCannotSet(js(matched.also { matched = it + 1.0 })))[
|
|
3371
|
+
matched.also { matched = it + 1.0 }] = (selector ?: jsObjectRequired())
|
|
3372
|
+
}
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
(candidates ?: jsCannotSet("length")).length = matched
|
|
3376
|
+
selectorsMatch.selectors =
|
|
3377
|
+
(candidates ?: jsCannotRead("sort")).sort({ __r0: SelectorCore, __r1: SelectorCore ->
|
|
3378
|
+
Core_ui_styling_css_selector.compareSelectors(__r0, __r1)
|
|
3379
|
+
})
|
|
3380
|
+
return selectorsMatch
|
|
3381
|
+
}
|
|
3382
|
+
|
|
3383
|
+
@JvmField val emptyChangeMap: Any? = JSMap<Any?, Any?>()
|
|
3384
|
+
@JvmField
|
|
3385
|
+
val CSSHelper: Object_createSelector_SelectorCore_SimpleSelector_InvalidSelecto_18 =
|
|
3386
|
+
Object_createSelector_SelectorCore_SimpleSelector_InvalidSelecto_18(
|
|
3387
|
+
createSelector = { __r0: String -> Core_ui_styling_css_selector.createSelector(__r0) },
|
|
3388
|
+
SelectorCore = SelectorCore::class.java,
|
|
3389
|
+
SimpleSelector = SimpleSelector::class.java,
|
|
3390
|
+
InvalidSelector = InvalidSelector::class.java,
|
|
3391
|
+
UniversalSelector = UniversalSelector::class.java,
|
|
3392
|
+
TypeSelector = TypeSelector::class.java,
|
|
3393
|
+
ClassSelector = ClassSelector::class.java,
|
|
3394
|
+
AttributeSelector = AttributeSelector::class.java,
|
|
3395
|
+
PseudoClassSelector = PseudoClassSelector::class.java,
|
|
3396
|
+
SimpleSelectorSequence = SimpleSelectorSequence::class.java,
|
|
3397
|
+
Selector = Selector,
|
|
3398
|
+
RuleSet = RuleSet::class.java,
|
|
3399
|
+
SelectorScope = SelectorScope::class.java,
|
|
3400
|
+
MediaQuerySelectorScope = MediaQuerySelectorScope::class.java,
|
|
3401
|
+
StyleSheetSelectorScope = StyleSheetSelectorScope::class.java,
|
|
3402
|
+
fromAstNode = { __r0: Any? ->
|
|
3403
|
+
(Core_ui_styling_css_selector.fromAstNode(__r0) ?: jsObjectRequired())
|
|
3404
|
+
},
|
|
3405
|
+
SelectorsMatch = SelectorsMatch::class.java,
|
|
3406
|
+
matchSelectorCandidates = {
|
|
3407
|
+
__r0: Any?,
|
|
3408
|
+
__r1: JSArray<SelectorCore>,
|
|
3409
|
+
__r2: JSSet<String>? ->
|
|
3410
|
+
(Core_ui_styling_css_selector.matchSelectorCandidates(__r0, __r1, __r2)
|
|
3411
|
+
?: jsObjectRequired())
|
|
3412
|
+
},
|
|
3413
|
+
)
|
|
3414
|
+
|
|
3415
|
+
fun __init() {
|
|
3416
|
+
try {
|
|
3417
|
+
notifyingAttributes = JSWeakMap<Any?, JSMap<String, Boolean>>()
|
|
3418
|
+
jsDecorate(
|
|
3419
|
+
SelectorCore::class.java,
|
|
3420
|
+
listOf(
|
|
3421
|
+
Core_ui_styling_css_selector.SelectorProperties(
|
|
3422
|
+
Specificity.Universal,
|
|
3423
|
+
Rarity.Universal,
|
|
3424
|
+
org.nativescript.kit.Match.Static,
|
|
3425
|
+
)
|
|
3426
|
+
),
|
|
3427
|
+
)
|
|
3428
|
+
jsDecorate(
|
|
3429
|
+
InvalidSelector::class.java,
|
|
3430
|
+
listOf(
|
|
3431
|
+
Core_ui_styling_css_selector.SelectorProperties(
|
|
3432
|
+
Specificity.Invalid,
|
|
3433
|
+
Rarity.Invalid,
|
|
3434
|
+
org.nativescript.kit.Match.Static,
|
|
3435
|
+
)
|
|
3436
|
+
),
|
|
3437
|
+
)
|
|
3438
|
+
jsDecorate(
|
|
3439
|
+
UniversalSelector::class.java,
|
|
3440
|
+
listOf(
|
|
3441
|
+
Core_ui_styling_css_selector.SelectorProperties(
|
|
3442
|
+
Specificity.Universal,
|
|
3443
|
+
Rarity.Universal,
|
|
3444
|
+
org.nativescript.kit.Match.Static,
|
|
3445
|
+
)
|
|
3446
|
+
),
|
|
3447
|
+
)
|
|
3448
|
+
jsDecorate(
|
|
3449
|
+
IdSelector::class.java,
|
|
3450
|
+
listOf(
|
|
3451
|
+
Core_ui_styling_css_selector.SelectorProperties(
|
|
3452
|
+
Specificity.Id,
|
|
3453
|
+
Rarity.Id,
|
|
3454
|
+
org.nativescript.kit.Match.Static,
|
|
3455
|
+
)
|
|
3456
|
+
),
|
|
3457
|
+
)
|
|
3458
|
+
jsDecorate(
|
|
3459
|
+
TypeSelector::class.java,
|
|
3460
|
+
listOf(
|
|
3461
|
+
Core_ui_styling_css_selector.SelectorProperties(
|
|
3462
|
+
Specificity.Type,
|
|
3463
|
+
Rarity.Type,
|
|
3464
|
+
org.nativescript.kit.Match.Static,
|
|
3465
|
+
)
|
|
3466
|
+
),
|
|
3467
|
+
)
|
|
3468
|
+
jsDecorate(
|
|
3469
|
+
ClassSelector::class.java,
|
|
3470
|
+
listOf(
|
|
3471
|
+
Core_ui_styling_css_selector.SelectorProperties(
|
|
3472
|
+
Specificity.Class,
|
|
3473
|
+
Rarity.Class,
|
|
3474
|
+
org.nativescript.kit.Match.Static,
|
|
3475
|
+
)
|
|
3476
|
+
),
|
|
3477
|
+
)
|
|
3478
|
+
jsDecorate(
|
|
3479
|
+
AttributeSelector::class.java,
|
|
3480
|
+
listOf(
|
|
3481
|
+
Core_ui_styling_css_selector.SelectorProperties(
|
|
3482
|
+
Specificity.Attribute,
|
|
3483
|
+
Rarity.Attribute,
|
|
3484
|
+
org.nativescript.kit.Match.Dynamic,
|
|
3485
|
+
)
|
|
3486
|
+
),
|
|
3487
|
+
)
|
|
3488
|
+
jsDecorate(
|
|
3489
|
+
PseudoClassSelector::class.java,
|
|
3490
|
+
listOf(
|
|
3491
|
+
Core_ui_styling_css_selector.SelectorProperties(
|
|
3492
|
+
Specificity.PseudoClass,
|
|
3493
|
+
Rarity.PseudoClass,
|
|
3494
|
+
org.nativescript.kit.Match.Dynamic,
|
|
3495
|
+
)
|
|
3496
|
+
),
|
|
3497
|
+
)
|
|
3498
|
+
jsDecorate(
|
|
3499
|
+
NotFunctionalPseudoClassSelector::class.java,
|
|
3500
|
+
listOf(
|
|
3501
|
+
Core_ui_styling_css_selector.FunctionalPseudoClassProperties(
|
|
3502
|
+
Specificity.SelectorListHighest,
|
|
3503
|
+
Rarity.PseudoClass,
|
|
3504
|
+
PseudoClassSelectorList.Regular,
|
|
3505
|
+
)
|
|
3506
|
+
),
|
|
3507
|
+
)
|
|
3508
|
+
jsDecorate(
|
|
3509
|
+
IsFunctionalPseudoClassSelector::class.java,
|
|
3510
|
+
listOf(
|
|
3511
|
+
Core_ui_styling_css_selector.FunctionalPseudoClassProperties(
|
|
3512
|
+
Specificity.SelectorListHighest,
|
|
3513
|
+
Rarity.PseudoClass,
|
|
3514
|
+
PseudoClassSelectorList.Forgiving,
|
|
3515
|
+
)
|
|
3516
|
+
),
|
|
3517
|
+
)
|
|
3518
|
+
jsDecorate(
|
|
3519
|
+
WhereFunctionalPseudoClassSelector::class.java,
|
|
3520
|
+
listOf(
|
|
3521
|
+
Core_ui_styling_css_selector.FunctionalPseudoClassProperties(
|
|
3522
|
+
Specificity.Zero,
|
|
3523
|
+
Rarity.PseudoClass,
|
|
3524
|
+
PseudoClassSelectorList.Forgiving,
|
|
3525
|
+
)
|
|
3526
|
+
),
|
|
3527
|
+
)
|
|
3528
|
+
} catch (__e: Throwable) {
|
|
3529
|
+
jsReportThrown(__e)
|
|
3530
|
+
}
|
|
3531
|
+
}
|
|
3532
|
+
}
|