@nstudio/nativescript-compiler 9.2.0-alpha.17 → 9.2.0-alpha.19
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/README.md +3 -0
- package/config.js +1 -0
- package/dist/kotlin/access.js +8 -7
- package/dist/kotlin/arguments.js +6 -0
- package/dist/kotlin/assignment.js +22 -13
- package/dist/kotlin/builtins.js +67 -0
- package/dist/kotlin/calls.js +3 -2
- package/dist/kotlin/class-declaration.js +4 -9
- package/dist/kotlin/class-methods.js +2 -2
- package/dist/kotlin/core-api.js +1 -1
- package/dist/kotlin/declarations.js +1 -1
- package/dist/kotlin/expression-statements.js +13 -1
- package/dist/kotlin/functions.js +1 -0
- package/dist/kotlin/literals.js +4 -8
- package/dist/kotlin/names.js +4 -4
- package/dist/kotlin/native/api.js +1 -1
- package/dist/kotlin/operators.js +25 -25
- package/dist/kotlin/optional-chains.js +1 -1
- package/dist/kotlin/overrides.js +3 -3
- package/dist/kotlin/state-backend.js +6 -2
- package/dist/kotlin/translator.js +1 -1
- package/dist/kotlin/types.js +4 -4
- package/dist/semantics/classes.js +15 -0
- package/dist/semantics/conversion.js +9 -1
- package/dist/semantics/facts.js +1 -1
- package/dist/semantics/lang.js +10 -0
- package/dist/semantics/lower.js +54 -0
- package/dist/semantics/lowering-methods.js +5 -0
- package/dist/semantics/placement.js +9 -3
- package/dist/semantics/runtime.js +1 -0
- package/dist/semantics/signals.js +11 -0
- package/dist/semantics/states/missing.js +7 -0
- package/dist/semantics/tdz.js +54 -15
- package/dist/semantics/throws.js +2 -2
- package/dist/semantics/translator-methods.js +1 -1
- package/dist/swift/access.js +7 -9
- package/dist/swift/arguments.js +14 -9
- package/dist/swift/assignment.js +26 -15
- package/dist/swift/calls.js +13 -5
- package/dist/swift/class-methods.js +2 -1
- package/dist/swift/classes.js +7 -9
- package/dist/swift/components.js +3 -3
- package/dist/swift/control-flow.js +1 -1
- package/dist/swift/conversion.js +5 -2
- package/dist/swift/core-api.js +2 -2
- package/dist/swift/declarations.js +1 -1
- package/dist/swift/expressions.js +6 -2
- package/dist/swift/from-any.js +1 -1
- package/dist/swift/functions.js +5 -6
- package/dist/swift/global-calls.js +1 -1
- package/dist/swift/lenient.js +1 -6
- package/dist/swift/library.js +2 -2
- package/dist/swift/literals.js +8 -3
- package/dist/swift/method-values.js +2 -1
- package/dist/swift/modules.js +3 -3
- package/dist/swift/names.js +7 -7
- package/dist/swift/native/calls.js +10 -4
- package/dist/swift/object-classes.js +84 -1
- package/dist/swift/operators.js +31 -29
- package/dist/swift/placement.js +22 -6
- package/dist/swift/state-backend.js +3 -2
- package/dist/swift/static-calls.js +3 -4
- package/dist/swift/syntax.js +10 -6
- package/dist/swift/translator.js +1 -1
- package/dist/swift/type-facts.js +3 -3
- package/dist/swift/types.js +5 -5
- package/dist/targets/ios/build.js +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +1 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +525 -99
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +2 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +29 -6
- package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +14 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +3 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +49 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +0 -8
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +0 -16
- package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +6 -4
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +19 -7
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +14 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +19 -10
- package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +17 -29
- package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +144 -22
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +8 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +2 -10
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +0 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +6 -10
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +531 -8
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +0 -9
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +3 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +19 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +5 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +232 -174
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_android_runtime_version.kt +75 -0
- package/kit-android/generated/manifest.json +21 -18
- package/kit-android/generated/source-lines.json +1 -1
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +9 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +497 -42
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +1 -1
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +22 -2
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +32 -18
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +7 -3
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +14 -10
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +3 -9
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +20 -21
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +5 -7
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +2 -4
- package/kit-apple/Sources/NativeScriptKit/Core/Object_specified_substituted_reads.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +348 -330
- package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +358 -359
- package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +47 -29
- package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +3 -1
- package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +95 -53
- package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +58 -49
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +10 -10
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +67 -52
- package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +69 -53
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +4 -22
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +144 -32
- package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +30 -19
- package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +190 -78
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +205 -201
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +41 -42
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +33 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +12 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +77 -65
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +10 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +14 -13
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +1273 -824
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +87 -67
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +17 -16
- package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +27 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +2 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +6 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +9 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +6 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +8 -8
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +22 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +4 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +9 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +9 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +38 -20
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +204 -190
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +12 -10
- package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +2 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +18 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +28 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +19 -12
- package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +14 -12
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +17 -12
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +869 -838
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +46 -31
- package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +12 -10
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +36 -20
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +3 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +25 -22
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +2 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +21 -14
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +33 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +22 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +32 -32
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/utils.android-runtime-version.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +62 -61
- package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +4 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +2 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +280 -9
- package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +3 -2
- package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +2 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +1 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +1 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +1 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +2 -0
- package/package.json +6 -4
|
@@ -902,13 +902,13 @@ open class ViewBase: Observable, JSStringConvertible {
|
|
|
902
902
|
/// Returns the child view with the specified id.
|
|
903
903
|
open func getViewById(_ id: String) throws -> Any? {
|
|
904
904
|
#sourceLocation(file:"@nativescript/core/ui.core.view-base.index.ts",line:696)
|
|
905
|
-
return try
|
|
905
|
+
return try (Core_ui_core_view_base_index.getViewById(self, id) as Any?)
|
|
906
906
|
}
|
|
907
907
|
#sourceLocation()
|
|
908
908
|
/// Returns the child view with the specified domId.
|
|
909
909
|
open func getViewByDomId(_ domId: Double) throws -> Any? {
|
|
910
910
|
#sourceLocation(file:"@nativescript/core/ui.core.view-base.index.ts",line:703)
|
|
911
|
-
return try
|
|
911
|
+
return try (Core_ui_core_view_base_index.getViewByDomId(self, domId) as Any?)
|
|
912
912
|
}
|
|
913
913
|
#sourceLocation()
|
|
914
914
|
/// @unstable
|
|
@@ -538,42 +538,43 @@ open class View: ViewCommon {
|
|
|
538
538
|
}
|
|
539
539
|
#sourceLocation()
|
|
540
540
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
541
|
-
if key == ((Core_ui_core_view_view_common.isEnabledProperty?.getDefault)?.key ?? "undefined") {
|
|
541
|
+
if key == (try? ((Core_ui_core_view_view_common.isEnabledProperty?.getDefault)?.key ?? "undefined")) {
|
|
542
542
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_isEnabled() }
|
|
543
543
|
}
|
|
544
|
-
if key == ((Core_ui_core_view_view_common.isEnabledProperty?.setNative)?.key ?? "undefined") {
|
|
544
|
+
if key == (try? ((Core_ui_core_view_view_common.isEnabledProperty?.setNative)?.key ?? "undefined")) {
|
|
545
545
|
return { __this, __a in
|
|
546
546
|
try (jsCastPresent(__this) as View).symbol_setNative_isEnabled((try jsConvertedBool(jsArg(__a, 0))))
|
|
547
547
|
return nil
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
if key == ((Core_ui_core_view_view_common.originXProperty?.getDefault)?.key ?? "undefined") {
|
|
550
|
+
if key == (try? ((Core_ui_core_view_view_common.originXProperty?.getDefault)?.key ?? "undefined")) {
|
|
551
551
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_originX() }
|
|
552
552
|
}
|
|
553
|
-
if key == ((Core_ui_core_view_view_common.originXProperty?.setNative)?.key ?? "undefined") {
|
|
553
|
+
if key == (try? ((Core_ui_core_view_view_common.originXProperty?.setNative)?.key ?? "undefined")) {
|
|
554
554
|
return { __this, __a in
|
|
555
555
|
try (jsCastPresent(__this) as View).symbol_setNative_originX((try jsConvertedNumber(jsArg(__a, 0))))
|
|
556
556
|
return nil
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
if key == ((Core_ui_core_view_view_common.originYProperty?.getDefault)?.key ?? "undefined") {
|
|
559
|
+
if key == (try? ((Core_ui_core_view_view_common.originYProperty?.getDefault)?.key ?? "undefined")) {
|
|
560
560
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_originY() }
|
|
561
561
|
}
|
|
562
|
-
if key == ((Core_ui_core_view_view_common.originYProperty?.setNative)?.key ?? "undefined") {
|
|
562
|
+
if key == (try? ((Core_ui_core_view_view_common.originYProperty?.setNative)?.key ?? "undefined")) {
|
|
563
563
|
return { __this, __a in
|
|
564
564
|
try (jsCastPresent(__this) as View).symbol_setNative_originY((try jsConvertedNumber(jsArg(__a, 0))))
|
|
565
565
|
return nil
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
if key == ((Core_ui_core_view_view_common.testIDProperty?.setNative)?.key ?? "undefined") {
|
|
568
|
+
if key == (try? ((Core_ui_core_view_view_common.testIDProperty?.setNative)?.key ?? "undefined")) {
|
|
569
569
|
return { __this, __a in
|
|
570
570
|
try (jsCastPresent(__this) as View).symbol_setNative_testID((try jsConvertedString(jsArg(__a, 0))))
|
|
571
571
|
return nil
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
if key
|
|
575
|
-
== (
|
|
576
|
-
|
|
575
|
+
== (try?
|
|
576
|
+
((Core_accessibility_accessibility_properties.accessibilityEnabledProperty?.setNative)?.key
|
|
577
|
+
?? "undefined"))
|
|
577
578
|
{
|
|
578
579
|
return { __this, __a in
|
|
579
580
|
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityEnabled(
|
|
@@ -582,16 +583,18 @@ open class View: ViewCommon {
|
|
|
582
583
|
}
|
|
583
584
|
}
|
|
584
585
|
if key
|
|
585
|
-
== (
|
|
586
|
-
|
|
586
|
+
== (try?
|
|
587
|
+
((Core_accessibility_accessibility_properties.accessibilityIdentifierProperty?.getDefault)?.key
|
|
588
|
+
?? "undefined"))
|
|
587
589
|
{
|
|
588
590
|
return { __this, __a in
|
|
589
591
|
return try (jsCastPresent(__this) as View).symbol_getDefault_accessibilityIdentifier()
|
|
590
592
|
}
|
|
591
593
|
}
|
|
592
594
|
if key
|
|
593
|
-
== (
|
|
594
|
-
|
|
595
|
+
== (try?
|
|
596
|
+
((Core_accessibility_accessibility_properties.accessibilityIdentifierProperty?.setNative)?.key
|
|
597
|
+
?? "undefined"))
|
|
595
598
|
{
|
|
596
599
|
return { __this, __a in
|
|
597
600
|
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityIdentifier(
|
|
@@ -600,7 +603,8 @@ open class View: ViewCommon {
|
|
|
600
603
|
}
|
|
601
604
|
}
|
|
602
605
|
if key
|
|
603
|
-
== (
|
|
606
|
+
== (try?
|
|
607
|
+
((Core_accessibility_accessibility_properties.accessibilityRoleProperty?.setNative)?.key ?? "undefined"))
|
|
604
608
|
{
|
|
605
609
|
return { __this, __a in
|
|
606
610
|
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityRole(
|
|
@@ -609,7 +613,8 @@ open class View: ViewCommon {
|
|
|
609
613
|
}
|
|
610
614
|
}
|
|
611
615
|
if key
|
|
612
|
-
== (
|
|
616
|
+
== (try?
|
|
617
|
+
((Core_accessibility_accessibility_properties.accessibilityValueProperty?.setNative)?.key ?? "undefined"))
|
|
613
618
|
{
|
|
614
619
|
return { __this, __a in
|
|
615
620
|
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityValue(
|
|
@@ -618,7 +623,8 @@ open class View: ViewCommon {
|
|
|
618
623
|
}
|
|
619
624
|
}
|
|
620
625
|
if key
|
|
621
|
-
== (
|
|
626
|
+
== (try?
|
|
627
|
+
((Core_accessibility_accessibility_properties.accessibilityLabelProperty?.setNative)?.key ?? "undefined"))
|
|
622
628
|
{
|
|
623
629
|
return { __this, __a in
|
|
624
630
|
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityLabel(
|
|
@@ -627,7 +633,8 @@ open class View: ViewCommon {
|
|
|
627
633
|
}
|
|
628
634
|
}
|
|
629
635
|
if key
|
|
630
|
-
== (
|
|
636
|
+
== (try?
|
|
637
|
+
((Core_accessibility_accessibility_properties.accessibilityHintProperty?.setNative)?.key ?? "undefined"))
|
|
631
638
|
{
|
|
632
639
|
return { __this, __a in
|
|
633
640
|
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityHint(
|
|
@@ -636,8 +643,9 @@ open class View: ViewCommon {
|
|
|
636
643
|
}
|
|
637
644
|
}
|
|
638
645
|
if key
|
|
639
|
-
== (
|
|
640
|
-
|
|
646
|
+
== (try?
|
|
647
|
+
((Core_accessibility_accessibility_properties.accessibilityIgnoresInvertColorsProperty?.setNative)?.key
|
|
648
|
+
?? "undefined"))
|
|
641
649
|
{
|
|
642
650
|
return { __this, __a in
|
|
643
651
|
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityIgnoresInvertColors(
|
|
@@ -646,8 +654,9 @@ open class View: ViewCommon {
|
|
|
646
654
|
}
|
|
647
655
|
}
|
|
648
656
|
if key
|
|
649
|
-
== (
|
|
650
|
-
|
|
657
|
+
== (try?
|
|
658
|
+
((Core_accessibility_accessibility_properties.accessibilityLanguageProperty?.setNative)?.key
|
|
659
|
+
?? "undefined"))
|
|
651
660
|
{
|
|
652
661
|
return { __this, __a in
|
|
653
662
|
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityLanguage(
|
|
@@ -656,7 +665,9 @@ open class View: ViewCommon {
|
|
|
656
665
|
}
|
|
657
666
|
}
|
|
658
667
|
if key
|
|
659
|
-
== (
|
|
668
|
+
== (try?
|
|
669
|
+
((Core_accessibility_accessibility_properties.accessibilityHiddenProperty?.setNative)?.key
|
|
670
|
+
?? "undefined"))
|
|
660
671
|
{
|
|
661
672
|
return { __this, __a in
|
|
662
673
|
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityHidden(
|
|
@@ -665,8 +676,9 @@ open class View: ViewCommon {
|
|
|
665
676
|
}
|
|
666
677
|
}
|
|
667
678
|
if key
|
|
668
|
-
== (
|
|
669
|
-
|
|
679
|
+
== (try?
|
|
680
|
+
((Core_accessibility_accessibility_properties.accessibilityLiveRegionProperty?.setNative)?.key
|
|
681
|
+
?? "undefined"))
|
|
670
682
|
{
|
|
671
683
|
return { __this, __a in
|
|
672
684
|
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityLiveRegion()
|
|
@@ -674,7 +686,8 @@ open class View: ViewCommon {
|
|
|
674
686
|
}
|
|
675
687
|
}
|
|
676
688
|
if key
|
|
677
|
-
== (
|
|
689
|
+
== (try?
|
|
690
|
+
((Core_accessibility_accessibility_properties.accessibilityStateProperty?.setNative)?.key ?? "undefined"))
|
|
678
691
|
{
|
|
679
692
|
return { __this, __a in
|
|
680
693
|
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityState(
|
|
@@ -683,160 +696,167 @@ open class View: ViewCommon {
|
|
|
683
696
|
}
|
|
684
697
|
}
|
|
685
698
|
if key
|
|
686
|
-
== (
|
|
687
|
-
|
|
699
|
+
== (try?
|
|
700
|
+
((Core_accessibility_accessibility_properties.accessibilityMediaSessionProperty?.setNative)?.key
|
|
701
|
+
?? "undefined"))
|
|
688
702
|
{
|
|
689
703
|
return { __this, __a in
|
|
690
704
|
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityMediaSession()
|
|
691
705
|
return nil
|
|
692
706
|
}
|
|
693
707
|
}
|
|
694
|
-
if key
|
|
708
|
+
if key
|
|
709
|
+
== (try? ((Core_ui_core_view_view_common.isUserInteractionEnabledProperty?.getDefault)?.key ?? "undefined"))
|
|
710
|
+
{
|
|
695
711
|
return { __this, __a in
|
|
696
712
|
return try (jsCastPresent(__this) as View).symbol_getDefault_isUserInteractionEnabled()
|
|
697
713
|
}
|
|
698
714
|
}
|
|
699
|
-
if key
|
|
715
|
+
if key
|
|
716
|
+
== (try? ((Core_ui_core_view_view_common.isUserInteractionEnabledProperty?.setNative)?.key ?? "undefined"))
|
|
717
|
+
{
|
|
700
718
|
return { __this, __a in
|
|
701
719
|
try (jsCastPresent(__this) as View).symbol_setNative_isUserInteractionEnabled(
|
|
702
720
|
(try jsConvertedBool(jsArg(__a, 0))))
|
|
703
721
|
return nil
|
|
704
722
|
}
|
|
705
723
|
}
|
|
706
|
-
if key == ((Core_ui_core_view_base_index.hiddenProperty?.getDefault)?.key ?? "undefined") {
|
|
724
|
+
if key == (try? ((Core_ui_core_view_base_index.hiddenProperty?.getDefault)?.key ?? "undefined")) {
|
|
707
725
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_hidden() }
|
|
708
726
|
}
|
|
709
|
-
if key == ((Core_ui_core_view_base_index.hiddenProperty?.setNative)?.key ?? "undefined") {
|
|
727
|
+
if key == (try? ((Core_ui_core_view_base_index.hiddenProperty?.setNative)?.key ?? "undefined")) {
|
|
710
728
|
return { __this, __a in
|
|
711
729
|
try (jsCastPresent(__this) as View).symbol_setNative_hidden((try jsConvertedBool(jsArg(__a, 0))))
|
|
712
730
|
return nil
|
|
713
731
|
}
|
|
714
732
|
}
|
|
715
|
-
if key == ((Core_ui_styling_style_properties.visibilityProperty?.getDefault)?.key ?? "undefined") {
|
|
733
|
+
if key == (try? ((Core_ui_styling_style_properties.visibilityProperty?.getDefault)?.key ?? "undefined")) {
|
|
716
734
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_visibility() }
|
|
717
735
|
}
|
|
718
|
-
if key == ((Core_ui_styling_style_properties.visibilityProperty?.setNative)?.key ?? "undefined") {
|
|
736
|
+
if key == (try? ((Core_ui_styling_style_properties.visibilityProperty?.setNative)?.key ?? "undefined")) {
|
|
719
737
|
return { __this, __a in
|
|
720
738
|
try (jsCastPresent(__this) as View).symbol_setNative_visibility((try jsConvertedString(jsArg(__a, 0))))
|
|
721
739
|
return nil
|
|
722
740
|
}
|
|
723
741
|
}
|
|
724
|
-
if key == ((Core_ui_styling_style_properties.opacityProperty?.getDefault)?.key ?? "undefined") {
|
|
742
|
+
if key == (try? ((Core_ui_styling_style_properties.opacityProperty?.getDefault)?.key ?? "undefined")) {
|
|
725
743
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_opacity() }
|
|
726
744
|
}
|
|
727
|
-
if key == ((Core_ui_styling_style_properties.opacityProperty?.setNative)?.key ?? "undefined") {
|
|
745
|
+
if key == (try? ((Core_ui_styling_style_properties.opacityProperty?.setNative)?.key ?? "undefined")) {
|
|
728
746
|
return { __this, __a in
|
|
729
747
|
try (jsCastPresent(__this) as View).symbol_setNative_opacity((try jsConvertedNumber(jsArg(__a, 0))))
|
|
730
748
|
return nil
|
|
731
749
|
}
|
|
732
750
|
}
|
|
733
|
-
if key == ((Core_ui_styling_style_properties.rotateProperty?.getDefault)?.key ?? "undefined") {
|
|
751
|
+
if key == (try? ((Core_ui_styling_style_properties.rotateProperty?.getDefault)?.key ?? "undefined")) {
|
|
734
752
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_rotate() }
|
|
735
753
|
}
|
|
736
|
-
if key == ((Core_ui_styling_style_properties.rotateProperty?.setNative)?.key ?? "undefined") {
|
|
754
|
+
if key == (try? ((Core_ui_styling_style_properties.rotateProperty?.setNative)?.key ?? "undefined")) {
|
|
737
755
|
return { __this, __a in
|
|
738
756
|
try (jsCastPresent(__this) as View).symbol_setNative_rotate(0)
|
|
739
757
|
return nil
|
|
740
758
|
}
|
|
741
759
|
}
|
|
742
|
-
if key == ((Core_ui_styling_style_properties.rotateXProperty?.getDefault)?.key ?? "undefined") {
|
|
760
|
+
if key == (try? ((Core_ui_styling_style_properties.rotateXProperty?.getDefault)?.key ?? "undefined")) {
|
|
743
761
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_rotateX() }
|
|
744
762
|
}
|
|
745
|
-
if key == ((Core_ui_styling_style_properties.rotateXProperty?.setNative)?.key ?? "undefined") {
|
|
763
|
+
if key == (try? ((Core_ui_styling_style_properties.rotateXProperty?.setNative)?.key ?? "undefined")) {
|
|
746
764
|
return { __this, __a in
|
|
747
765
|
try (jsCastPresent(__this) as View).symbol_setNative_rotateX(0)
|
|
748
766
|
return nil
|
|
749
767
|
}
|
|
750
768
|
}
|
|
751
|
-
if key == ((Core_ui_styling_style_properties.rotateYProperty?.getDefault)?.key ?? "undefined") {
|
|
769
|
+
if key == (try? ((Core_ui_styling_style_properties.rotateYProperty?.getDefault)?.key ?? "undefined")) {
|
|
752
770
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_rotateY() }
|
|
753
771
|
}
|
|
754
|
-
if key == ((Core_ui_styling_style_properties.rotateYProperty?.setNative)?.key ?? "undefined") {
|
|
772
|
+
if key == (try? ((Core_ui_styling_style_properties.rotateYProperty?.setNative)?.key ?? "undefined")) {
|
|
755
773
|
return { __this, __a in
|
|
756
774
|
try (jsCastPresent(__this) as View).symbol_setNative_rotateY(0)
|
|
757
775
|
return nil
|
|
758
776
|
}
|
|
759
777
|
}
|
|
760
|
-
if key == ((Core_ui_styling_style_properties.perspectiveProperty?.getDefault)?.key ?? "undefined") {
|
|
778
|
+
if key == (try? ((Core_ui_styling_style_properties.perspectiveProperty?.getDefault)?.key ?? "undefined")) {
|
|
761
779
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_perspective() }
|
|
762
780
|
}
|
|
763
|
-
if key == ((Core_ui_styling_style_properties.perspectiveProperty?.setNative)?.key ?? "undefined") {
|
|
781
|
+
if key == (try? ((Core_ui_styling_style_properties.perspectiveProperty?.setNative)?.key ?? "undefined")) {
|
|
764
782
|
return { __this, __a in
|
|
765
783
|
try (jsCastPresent(__this) as View).symbol_setNative_perspective(0)
|
|
766
784
|
return nil
|
|
767
785
|
}
|
|
768
786
|
}
|
|
769
|
-
if key == ((Core_ui_styling_style_properties.scaleXProperty?.getDefault)?.key ?? "undefined") {
|
|
787
|
+
if key == (try? ((Core_ui_styling_style_properties.scaleXProperty?.getDefault)?.key ?? "undefined")) {
|
|
770
788
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_scaleX() }
|
|
771
789
|
}
|
|
772
|
-
if key == ((Core_ui_styling_style_properties.scaleXProperty?.setNative)?.key ?? "undefined") {
|
|
790
|
+
if key == (try? ((Core_ui_styling_style_properties.scaleXProperty?.setNative)?.key ?? "undefined")) {
|
|
773
791
|
return { __this, __a in
|
|
774
792
|
try (jsCastPresent(__this) as View).symbol_setNative_scaleX(0)
|
|
775
793
|
return nil
|
|
776
794
|
}
|
|
777
795
|
}
|
|
778
|
-
if key == ((Core_ui_styling_style_properties.scaleYProperty?.getDefault)?.key ?? "undefined") {
|
|
796
|
+
if key == (try? ((Core_ui_styling_style_properties.scaleYProperty?.getDefault)?.key ?? "undefined")) {
|
|
779
797
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_scaleY() }
|
|
780
798
|
}
|
|
781
|
-
if key == ((Core_ui_styling_style_properties.scaleYProperty?.setNative)?.key ?? "undefined") {
|
|
799
|
+
if key == (try? ((Core_ui_styling_style_properties.scaleYProperty?.setNative)?.key ?? "undefined")) {
|
|
782
800
|
return { __this, __a in
|
|
783
801
|
try (jsCastPresent(__this) as View).symbol_setNative_scaleY(0)
|
|
784
802
|
return nil
|
|
785
803
|
}
|
|
786
804
|
}
|
|
787
|
-
if key == ((Core_ui_styling_style_properties.translateXProperty?.getDefault)?.key ?? "undefined") {
|
|
805
|
+
if key == (try? ((Core_ui_styling_style_properties.translateXProperty?.getDefault)?.key ?? "undefined")) {
|
|
788
806
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_translateX() }
|
|
789
807
|
}
|
|
790
|
-
if key == ((Core_ui_styling_style_properties.translateXProperty?.setNative)?.key ?? "undefined") {
|
|
808
|
+
if key == (try? ((Core_ui_styling_style_properties.translateXProperty?.setNative)?.key ?? "undefined")) {
|
|
791
809
|
return { __this, __a in
|
|
792
810
|
try (jsCastPresent(__this) as View).symbol_setNative_translateX(0)
|
|
793
811
|
return nil
|
|
794
812
|
}
|
|
795
813
|
}
|
|
796
|
-
if key == ((Core_ui_styling_style_properties.translateYProperty?.getDefault)?.key ?? "undefined") {
|
|
814
|
+
if key == (try? ((Core_ui_styling_style_properties.translateYProperty?.getDefault)?.key ?? "undefined")) {
|
|
797
815
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_translateY() }
|
|
798
816
|
}
|
|
799
|
-
if key == ((Core_ui_styling_style_properties.translateYProperty?.setNative)?.key ?? "undefined") {
|
|
817
|
+
if key == (try? ((Core_ui_styling_style_properties.translateYProperty?.setNative)?.key ?? "undefined")) {
|
|
800
818
|
return { __this, __a in
|
|
801
819
|
try (jsCastPresent(__this) as View).symbol_setNative_translateY(0)
|
|
802
820
|
return nil
|
|
803
821
|
}
|
|
804
822
|
}
|
|
805
|
-
if key == ((Core_ui_styling_style_properties.zIndexProperty?.getDefault)?.key ?? "undefined") {
|
|
823
|
+
if key == (try? ((Core_ui_styling_style_properties.zIndexProperty?.getDefault)?.key ?? "undefined")) {
|
|
806
824
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_zIndex() }
|
|
807
825
|
}
|
|
808
|
-
if key == ((Core_ui_styling_style_properties.zIndexProperty?.setNative)?.key ?? "undefined") {
|
|
826
|
+
if key == (try? ((Core_ui_styling_style_properties.zIndexProperty?.setNative)?.key ?? "undefined")) {
|
|
809
827
|
return { __this, __a in
|
|
810
828
|
try (jsCastPresent(__this) as View).symbol_setNative_zIndex((try jsConvertedNumber(jsArg(__a, 0))))
|
|
811
829
|
return nil
|
|
812
830
|
}
|
|
813
831
|
}
|
|
814
|
-
if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined")
|
|
832
|
+
if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined"))
|
|
833
|
+
{
|
|
815
834
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_backgroundInternal() }
|
|
816
835
|
}
|
|
817
|
-
if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined")
|
|
836
|
+
if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined"))
|
|
837
|
+
{
|
|
818
838
|
return { __this, __a in
|
|
819
839
|
try (jsCastPresent(__this) as View).symbol_setNative_backgroundInternal(jsArg(__a, 0))
|
|
820
840
|
return nil
|
|
821
841
|
}
|
|
822
842
|
}
|
|
823
|
-
if key == ((Core_ui_core_view_view_common.statusBarStyleProperty?.getDefault)?.key ?? "undefined") {
|
|
843
|
+
if key == (try? ((Core_ui_core_view_view_common.statusBarStyleProperty?.getDefault)?.key ?? "undefined")) {
|
|
824
844
|
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_statusBarStyle() }
|
|
825
845
|
}
|
|
826
|
-
if key == ((Core_ui_core_view_view_common.statusBarStyleProperty?.setNative)?.key ?? "undefined") {
|
|
846
|
+
if key == (try? ((Core_ui_core_view_view_common.statusBarStyleProperty?.setNative)?.key ?? "undefined")) {
|
|
827
847
|
return { __this, __a in
|
|
828
848
|
try (jsCastPresent(__this) as View).symbol_setNative_statusBarStyle(
|
|
829
849
|
(try jsConvertedString(jsArg(__a, 0))))
|
|
830
850
|
return nil
|
|
831
851
|
}
|
|
832
852
|
}
|
|
833
|
-
if key == ((Core_ui_core_view_view_common.iosGlassEffectProperty?.setNative)?.key ?? "undefined") {
|
|
853
|
+
if key == (try? ((Core_ui_core_view_view_common.iosGlassEffectProperty?.setNative)?.key ?? "undefined")) {
|
|
834
854
|
return { __this, __a in
|
|
835
855
|
try (jsCastPresent(__this) as View).symbol_setNative_iosGlassEffect(jsArg(__a, 0))
|
|
836
856
|
return nil
|
|
837
857
|
}
|
|
838
858
|
}
|
|
839
|
-
if key == ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined") {
|
|
859
|
+
if key == (try? ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined")) {
|
|
840
860
|
return { __this, __a in
|
|
841
861
|
try (jsCastPresent(__this) as View).symbol_setNative_direction((try jsConvertedString(jsArg(__a, 0))))
|
|
842
862
|
return nil
|
|
@@ -2937,8 +2957,8 @@ public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewCo
|
|
|
2937
2957
|
)? {
|
|
2938
2958
|
if jsOffScriptThread() { return jsAwait { self.animationController(forDismissed: dismissed) } }
|
|
2939
2959
|
return jsOnMainThread(dismissed) { (dismissed) -> (any UIViewControllerAnimatedTransitioning)? in
|
|
2940
|
-
let __result: any UIViewControllerAnimatedTransitioning? = jsReportedOrZero {
|
|
2941
|
-
() throws -> any UIViewControllerAnimatedTransitioning? in
|
|
2960
|
+
let __result: (any UIViewControllerAnimatedTransitioning)? = jsReportedOrZero {
|
|
2961
|
+
() throws -> (any UIViewControllerAnimatedTransitioning)? in
|
|
2942
2962
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1245)
|
|
2943
2963
|
let owner: NativeScriptKit.ModalTransition? =
|
|
2944
2964
|
(self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
|
|
@@ -2963,8 +2983,8 @@ public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewCo
|
|
|
2963
2983
|
}
|
|
2964
2984
|
return jsOnMainThread(presented, presenting, source) {
|
|
2965
2985
|
(presented, presenting, source) -> (any UIViewControllerAnimatedTransitioning)? in
|
|
2966
|
-
let __result: any UIViewControllerAnimatedTransitioning? = jsReportedOrZero {
|
|
2967
|
-
() throws -> any UIViewControllerAnimatedTransitioning? in
|
|
2986
|
+
let __result: (any UIViewControllerAnimatedTransitioning)? = jsReportedOrZero {
|
|
2987
|
+
() throws -> (any UIViewControllerAnimatedTransitioning)? in
|
|
2968
2988
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1253)
|
|
2969
2989
|
let owner: NativeScriptKit.ModalTransition? =
|
|
2970
2990
|
(self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
|
|
@@ -2986,8 +3006,8 @@ public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewCo
|
|
|
2986
3006
|
{
|
|
2987
3007
|
if jsOffScriptThread() { return jsAwait { self.interactionControllerForDismissal(using: animator) } }
|
|
2988
3008
|
return jsOnMainThread(animator) { (animator) -> (any UIViewControllerInteractiveTransitioning)? in
|
|
2989
|
-
let __result: any UIViewControllerInteractiveTransitioning? = jsReportedOrZero {
|
|
2990
|
-
() throws -> any UIViewControllerInteractiveTransitioning? in
|
|
3009
|
+
let __result: (any UIViewControllerInteractiveTransitioning)? = jsReportedOrZero {
|
|
3010
|
+
() throws -> (any UIViewControllerInteractiveTransitioning)? in
|
|
2991
3011
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1261)
|
|
2992
3012
|
let owner: NativeScriptKit.ModalTransition? =
|
|
2993
3013
|
(self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
|
|
@@ -3014,8 +3034,8 @@ public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewCo
|
|
|
3014
3034
|
) -> (any UIViewControllerInteractiveTransitioning)? {
|
|
3015
3035
|
if jsOffScriptThread() { return jsAwait { self.interactionControllerForPresentation(using: animator) } }
|
|
3016
3036
|
return jsOnMainThread(animator) { (animator) -> (any UIViewControllerInteractiveTransitioning)? in
|
|
3017
|
-
let __result: any UIViewControllerInteractiveTransitioning? = jsReportedOrZero {
|
|
3018
|
-
() throws -> any UIViewControllerInteractiveTransitioning? in
|
|
3037
|
+
let __result: (any UIViewControllerInteractiveTransitioning)? = jsReportedOrZero {
|
|
3038
|
+
() throws -> (any UIViewControllerInteractiveTransitioning)? in
|
|
3019
3039
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1272)
|
|
3020
3040
|
let owner: NativeScriptKit.ModalTransition? =
|
|
3021
3041
|
(self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
|
|
@@ -1826,7 +1826,7 @@ open class ViewCommon: ViewBase {
|
|
|
1826
1826
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-common.ts",line:462)
|
|
1827
1827
|
if try jsUnwrap(args, "length").length == 2 {
|
|
1828
1828
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-common.ts",line:463)
|
|
1829
|
-
options = try (jsUnwrap(args, "1").element(1) ?? nil)
|
|
1829
|
+
options = try ((jsUnwrap(args, "1").element(1) ?? nil) as Any?)
|
|
1830
1830
|
} else {
|
|
1831
1831
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-common.ts",line:465)
|
|
1832
1832
|
if try ((jsUnwrap(args, "0").element(0) ?? nil) is ViewCommon) {
|
|
@@ -272,7 +272,7 @@ open class DatePicker: DatePickerBase {
|
|
|
272
272
|
}
|
|
273
273
|
#sourceLocation()
|
|
274
274
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
275
|
-
if key == ((Core_ui_date_picker_date_picker_common.showTimeProperty?.setNative)?.key ?? "undefined") {
|
|
275
|
+
if key == (try? ((Core_ui_date_picker_date_picker_common.showTimeProperty?.setNative)?.key ?? "undefined")) {
|
|
276
276
|
return { __this, __a in
|
|
277
277
|
try (jsCastPresent(__this) as DatePicker).symbol_setNative_showTime(
|
|
278
278
|
(try jsConvertedBool(jsArg(__a, 0))))
|
|
@@ -280,8 +280,9 @@ open class DatePicker: DatePickerBase {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
if key
|
|
283
|
-
== (
|
|
284
|
-
|
|
283
|
+
== (try?
|
|
284
|
+
((Core_ui_date_picker_date_picker_common.iosPreferredDatePickerStyleProperty?.setNative)?.key
|
|
285
|
+
?? "undefined"))
|
|
285
286
|
{
|
|
286
287
|
return { __this, __a in
|
|
287
288
|
try (jsCastPresent(__this) as DatePicker).symbol_setNative_iosPreferredDatePickerStyle(
|
|
@@ -289,72 +290,72 @@ open class DatePicker: DatePickerBase {
|
|
|
289
290
|
return nil
|
|
290
291
|
}
|
|
291
292
|
}
|
|
292
|
-
if key == ((Core_ui_date_picker_date_picker_common.yearProperty?.setNative)?.key ?? "undefined") {
|
|
293
|
+
if key == (try? ((Core_ui_date_picker_date_picker_common.yearProperty?.setNative)?.key ?? "undefined")) {
|
|
293
294
|
return { __this, __a in
|
|
294
295
|
try (jsCastPresent(__this) as DatePicker).symbol_setNative_year((try jsConvertedNumber(jsArg(__a, 0))))
|
|
295
296
|
return nil
|
|
296
297
|
}
|
|
297
298
|
}
|
|
298
|
-
if key == ((Core_ui_date_picker_date_picker_common.monthProperty?.setNative)?.key ?? "undefined") {
|
|
299
|
+
if key == (try? ((Core_ui_date_picker_date_picker_common.monthProperty?.setNative)?.key ?? "undefined")) {
|
|
299
300
|
return { __this, __a in
|
|
300
301
|
try (jsCastPresent(__this) as DatePicker).symbol_setNative_month((try jsConvertedNumber(jsArg(__a, 0))))
|
|
301
302
|
return nil
|
|
302
303
|
}
|
|
303
304
|
}
|
|
304
|
-
if key == ((Core_ui_date_picker_date_picker_common.dayProperty?.setNative)?.key ?? "undefined") {
|
|
305
|
+
if key == (try? ((Core_ui_date_picker_date_picker_common.dayProperty?.setNative)?.key ?? "undefined")) {
|
|
305
306
|
return { __this, __a in
|
|
306
307
|
try (jsCastPresent(__this) as DatePicker).symbol_setNative_day((try jsConvertedNumber(jsArg(__a, 0))))
|
|
307
308
|
return nil
|
|
308
309
|
}
|
|
309
310
|
}
|
|
310
|
-
if key == ((Core_ui_date_picker_date_picker_common.hourProperty?.setNative)?.key ?? "undefined") {
|
|
311
|
+
if key == (try? ((Core_ui_date_picker_date_picker_common.hourProperty?.setNative)?.key ?? "undefined")) {
|
|
311
312
|
return { __this, __a in
|
|
312
313
|
try (jsCastPresent(__this) as DatePicker).symbol_setNative_hour((try jsConvertedNumber(jsArg(__a, 0))))
|
|
313
314
|
return nil
|
|
314
315
|
}
|
|
315
316
|
}
|
|
316
|
-
if key == ((Core_ui_date_picker_date_picker_common.minuteProperty?.setNative)?.key ?? "undefined") {
|
|
317
|
+
if key == (try? ((Core_ui_date_picker_date_picker_common.minuteProperty?.setNative)?.key ?? "undefined")) {
|
|
317
318
|
return { __this, __a in
|
|
318
319
|
try (jsCastPresent(__this) as DatePicker).symbol_setNative_minute(
|
|
319
320
|
(try jsConvertedNumber(jsArg(__a, 0))))
|
|
320
321
|
return nil
|
|
321
322
|
}
|
|
322
323
|
}
|
|
323
|
-
if key == ((Core_ui_date_picker_date_picker_common.secondProperty?.setNative)?.key ?? "undefined") {
|
|
324
|
+
if key == (try? ((Core_ui_date_picker_date_picker_common.secondProperty?.setNative)?.key ?? "undefined")) {
|
|
324
325
|
return { __this, __a in
|
|
325
326
|
try (jsCastPresent(__this) as DatePicker).symbol_setNative_second(
|
|
326
327
|
(try jsConvertedNumber(jsArg(__a, 0))))
|
|
327
328
|
return nil
|
|
328
329
|
}
|
|
329
330
|
}
|
|
330
|
-
if key == ((Core_ui_date_picker_date_picker_common.dateProperty?.setNative)?.key ?? "undefined") {
|
|
331
|
+
if key == (try? ((Core_ui_date_picker_date_picker_common.dateProperty?.setNative)?.key ?? "undefined")) {
|
|
331
332
|
return { __this, __a in
|
|
332
333
|
try (jsCastPresent(__this) as DatePicker).symbol_setNative_date(jsDateOrNil(jsArg(__a, 0)))
|
|
333
334
|
return nil
|
|
334
335
|
}
|
|
335
336
|
}
|
|
336
|
-
if key == ((Core_ui_date_picker_date_picker_common.maxDateProperty?.getDefault)?.key ?? "undefined") {
|
|
337
|
+
if key == (try? ((Core_ui_date_picker_date_picker_common.maxDateProperty?.getDefault)?.key ?? "undefined")) {
|
|
337
338
|
return { __this, __a in return try (jsCastPresent(__this) as DatePicker).symbol_getDefault_maxDate() }
|
|
338
339
|
}
|
|
339
|
-
if key == ((Core_ui_date_picker_date_picker_common.maxDateProperty?.setNative)?.key ?? "undefined") {
|
|
340
|
+
if key == (try? ((Core_ui_date_picker_date_picker_common.maxDateProperty?.setNative)?.key ?? "undefined")) {
|
|
340
341
|
return { __this, __a in
|
|
341
342
|
try (jsCastPresent(__this) as DatePicker).symbol_setNative_maxDate(jsDateOrNil(jsArg(__a, 0)))
|
|
342
343
|
return nil
|
|
343
344
|
}
|
|
344
345
|
}
|
|
345
|
-
if key == ((Core_ui_date_picker_date_picker_common.minDateProperty?.getDefault)?.key ?? "undefined") {
|
|
346
|
+
if key == (try? ((Core_ui_date_picker_date_picker_common.minDateProperty?.getDefault)?.key ?? "undefined")) {
|
|
346
347
|
return { __this, __a in return try (jsCastPresent(__this) as DatePicker).symbol_getDefault_minDate() }
|
|
347
348
|
}
|
|
348
|
-
if key == ((Core_ui_date_picker_date_picker_common.minDateProperty?.setNative)?.key ?? "undefined") {
|
|
349
|
+
if key == (try? ((Core_ui_date_picker_date_picker_common.minDateProperty?.setNative)?.key ?? "undefined")) {
|
|
349
350
|
return { __this, __a in
|
|
350
351
|
try (jsCastPresent(__this) as DatePicker).symbol_setNative_minDate(jsDateOrNil(jsArg(__a, 0)))
|
|
351
352
|
return nil
|
|
352
353
|
}
|
|
353
354
|
}
|
|
354
|
-
if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
|
|
355
|
+
if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
|
|
355
356
|
return { __this, __a in return try (jsCastPresent(__this) as DatePicker).symbol_getDefault_color() }
|
|
356
357
|
}
|
|
357
|
-
if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
|
|
358
|
+
if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
|
|
358
359
|
return { __this, __a in
|
|
359
360
|
try (jsCastPresent(__this) as DatePicker).symbol_setNative_color(jsArg(__a, 0))
|
|
360
361
|
return nil
|
|
@@ -204,7 +204,7 @@ public enum Core_ui_dialogs_index {
|
|
|
204
204
|
"", 0,
|
|
205
205
|
{ () throws -> Void in
|
|
206
206
|
#sourceLocation(file:"@nativescript/core/ui.dialogs.index.ios.ts",line:99)
|
|
207
|
-
__resolvers1.resolve()
|
|
207
|
+
try __resolvers1.resolve()
|
|
208
208
|
}))
|
|
209
209
|
#sourceLocation(file:"@nativescript/core/ui.dialogs.index.ios.ts",line:102)
|
|
210
210
|
try Core_ui_dialogs_index.showUIAlertController(alertController)
|
|
@@ -241,7 +241,7 @@ public enum Core_ui_dialogs_index {
|
|
|
241
241
|
"", 1,
|
|
242
242
|
{ (r: Any?) throws -> Void in
|
|
243
243
|
#sourceLocation(file:"@nativescript/core/ui.dialogs.index.ios.ts",line:123)
|
|
244
|
-
__resolvers2.resolve(try jsConvertedBool(r))
|
|
244
|
+
try __resolvers2.resolve(try jsConvertedBool(r))
|
|
245
245
|
}))
|
|
246
246
|
#sourceLocation(file:"@nativescript/core/ui.dialogs.index.ios.ts",line:126)
|
|
247
247
|
try Core_ui_dialogs_index.showUIAlertController(alertController)
|