@nstudio/nativescript-compiler 9.2.0-alpha.16 → 9.2.0-alpha.18
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/dist/kit/kit-index.js +9 -0
- package/dist/kotlin/access.js +14 -15
- package/dist/kotlin/arguments.js +2 -2
- 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 +16 -1
- package/dist/kotlin/class-methods.js +2 -2
- package/dist/kotlin/components.js +2 -7
- package/dist/kotlin/core-api.js +3 -22
- package/dist/kotlin/declarations.js +86 -9
- package/dist/kotlin/expression-statements.js +13 -1
- package/dist/kotlin/functions.js +2 -4
- package/dist/kotlin/global-calls.js +1 -4
- package/dist/kotlin/literals.js +3 -10
- package/dist/kotlin/names.js +6 -4
- package/dist/kotlin/native/api.js +1 -1
- package/dist/kotlin/native/classfiles.js +2 -13
- package/dist/kotlin/operators.js +36 -30
- package/dist/kotlin/optional-chains.js +3 -10
- package/dist/kotlin/overrides.js +5 -17
- package/dist/kotlin/placement.js +1 -12
- package/dist/kotlin/state-backend.js +6 -2
- package/dist/kotlin/statements.js +1 -13
- package/dist/kotlin/translator.js +3 -11
- package/dist/kotlin/type-tests.js +1 -1
- package/dist/kotlin/types.js +6 -23
- package/dist/program/core-facts.js +9 -0
- package/dist/semantics/classes.js +15 -0
- package/dist/semantics/facts.js +38 -2
- package/dist/semantics/lang.js +29 -0
- package/dist/semantics/lower.js +144 -0
- package/dist/semantics/lowering-methods.js +120 -3
- package/dist/semantics/marks.js +30 -0
- package/dist/semantics/placement.js +9 -3
- package/dist/semantics/refusals.js +12 -11
- package/dist/semantics/signals.js +11 -0
- package/dist/semantics/states/missing.js +7 -0
- package/dist/semantics/tdz.js +142 -8
- package/dist/semantics/throws.js +1 -1
- package/dist/semantics/translator-methods.js +1 -1
- package/dist/swift/access.js +13 -17
- package/dist/swift/assignment.js +30 -16
- package/dist/swift/calls.js +13 -5
- package/dist/swift/classes.js +22 -10
- package/dist/swift/components.js +3 -7
- package/dist/swift/control-flow.js +1 -1
- package/dist/swift/conversion.js +5 -2
- package/dist/swift/core-api.js +11 -31
- package/dist/swift/declarations.js +1 -6
- package/dist/swift/expression-statements.js +7 -0
- 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 -5
- package/dist/swift/lenient.js +0 -7
- package/dist/swift/literals.js +8 -3
- package/dist/swift/method-values.js +1 -19
- package/dist/swift/modules.js +5 -3
- package/dist/swift/names.js +3 -12
- package/dist/swift/native/api.js +3 -1
- package/dist/swift/native/calls.js +1 -1
- package/dist/swift/native/dispatch.js +2 -8
- package/dist/swift/object-classes.js +84 -1
- package/dist/swift/operators.js +37 -34
- package/dist/swift/optional-chains.js +1 -8
- package/dist/swift/parameters.js +0 -4
- package/dist/swift/placement.js +5 -15
- package/dist/swift/results.js +0 -4
- package/dist/swift/state-backend.js +3 -2
- package/dist/swift/statements.js +1 -13
- package/dist/swift/static-calls.js +2 -3
- package/dist/swift/syntax.js +9 -5
- package/dist/swift/translator.js +1 -11
- package/dist/swift/type-facts.js +3 -3
- package/dist/swift/types.js +3 -3
- package/dist/targets/ios/build.js +1 -1
- package/dist/types/adapter-api.d.ts +3 -3
- 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/main/kotlin/org/nativescript/kit/runtime/Array.kt +547 -51
- 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 +52 -6
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +33 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Prototypes.kt +9 -1
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +32 -18
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +137 -28
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +1 -1
- 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 +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +52 -43
- 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 +66 -51
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +67 -51
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +24 -6
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +143 -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.animation.index.ios.swift +77 -65
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +1272 -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 +8 -8
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -1
- 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.layouts.flexbox-layout.index.ios.swift +22 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +202 -188
- package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +2 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +3 -3
- 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.text-base.formatted-string.swift +1 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +1 -1
- 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 +17 -17
- 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/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 +413 -73
- package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +3 -2
- package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +14 -1
- 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 +2 -2
|
@@ -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
|
|
@@ -2937,8 +2937,8 @@ public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewCo
|
|
|
2937
2937
|
)? {
|
|
2938
2938
|
if jsOffScriptThread() { return jsAwait { self.animationController(forDismissed: dismissed) } }
|
|
2939
2939
|
return jsOnMainThread(dismissed) { (dismissed) -> (any UIViewControllerAnimatedTransitioning)? in
|
|
2940
|
-
let __result: any UIViewControllerAnimatedTransitioning? = jsReportedOrZero {
|
|
2941
|
-
() throws -> any UIViewControllerAnimatedTransitioning? in
|
|
2940
|
+
let __result: (any UIViewControllerAnimatedTransitioning)? = jsReportedOrZero {
|
|
2941
|
+
() throws -> (any UIViewControllerAnimatedTransitioning)? in
|
|
2942
2942
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1245)
|
|
2943
2943
|
let owner: NativeScriptKit.ModalTransition? =
|
|
2944
2944
|
(self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
|
|
@@ -2963,8 +2963,8 @@ public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewCo
|
|
|
2963
2963
|
}
|
|
2964
2964
|
return jsOnMainThread(presented, presenting, source) {
|
|
2965
2965
|
(presented, presenting, source) -> (any UIViewControllerAnimatedTransitioning)? in
|
|
2966
|
-
let __result: any UIViewControllerAnimatedTransitioning? = jsReportedOrZero {
|
|
2967
|
-
() throws -> any UIViewControllerAnimatedTransitioning? in
|
|
2966
|
+
let __result: (any UIViewControllerAnimatedTransitioning)? = jsReportedOrZero {
|
|
2967
|
+
() throws -> (any UIViewControllerAnimatedTransitioning)? in
|
|
2968
2968
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1253)
|
|
2969
2969
|
let owner: NativeScriptKit.ModalTransition? =
|
|
2970
2970
|
(self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
|
|
@@ -2986,8 +2986,8 @@ public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewCo
|
|
|
2986
2986
|
{
|
|
2987
2987
|
if jsOffScriptThread() { return jsAwait { self.interactionControllerForDismissal(using: animator) } }
|
|
2988
2988
|
return jsOnMainThread(animator) { (animator) -> (any UIViewControllerInteractiveTransitioning)? in
|
|
2989
|
-
let __result: any UIViewControllerInteractiveTransitioning? = jsReportedOrZero {
|
|
2990
|
-
() throws -> any UIViewControllerInteractiveTransitioning? in
|
|
2989
|
+
let __result: (any UIViewControllerInteractiveTransitioning)? = jsReportedOrZero {
|
|
2990
|
+
() throws -> (any UIViewControllerInteractiveTransitioning)? in
|
|
2991
2991
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1261)
|
|
2992
2992
|
let owner: NativeScriptKit.ModalTransition? =
|
|
2993
2993
|
(self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
|
|
@@ -3014,8 +3014,8 @@ public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewCo
|
|
|
3014
3014
|
) -> (any UIViewControllerInteractiveTransitioning)? {
|
|
3015
3015
|
if jsOffScriptThread() { return jsAwait { self.interactionControllerForPresentation(using: animator) } }
|
|
3016
3016
|
return jsOnMainThread(animator) { (animator) -> (any UIViewControllerInteractiveTransitioning)? in
|
|
3017
|
-
let __result: any UIViewControllerInteractiveTransitioning? = jsReportedOrZero {
|
|
3018
|
-
() throws -> any UIViewControllerInteractiveTransitioning? in
|
|
3017
|
+
let __result: (any UIViewControllerInteractiveTransitioning)? = jsReportedOrZero {
|
|
3018
|
+
() throws -> (any UIViewControllerInteractiveTransitioning)? in
|
|
3019
3019
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1272)
|
|
3020
3020
|
let owner: NativeScriptKit.ModalTransition? =
|
|
3021
3021
|
(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) {
|
|
@@ -913,7 +913,8 @@ open class FrameBase: CustomLayoutView {
|
|
|
913
913
|
#sourceLocation(file:"@nativescript/core/ui.frame.frame-common.ts",line:672)
|
|
914
914
|
while i >= 0 {
|
|
915
915
|
#sourceLocation(file:"@nativescript/core/ui.frame.frame-common.ts",line:673)
|
|
916
|
-
let backstackEntry: Any? =
|
|
916
|
+
let backstackEntry: Any? =
|
|
917
|
+
try ((jsUnwrap(self.backStack, "i--").element(jsPostDecrement(&i)) ?? nil) as Any?)
|
|
917
918
|
#sourceLocation(file:"@nativescript/core/ui.frame.frame-common.ts",line:674)
|
|
918
919
|
try jsLog("\t\(jsToStringThrowing(jsGet(backstackEntry, "resolvedPage")))")
|
|
919
920
|
}
|
|
@@ -830,8 +830,8 @@ open class Frame: FrameBase {
|
|
|
830
830
|
let navigationController: NativeScriptKit.UINavigationControllerImpl? =
|
|
831
831
|
navigationController as? NativeScriptKit.UINavigationControllerImpl
|
|
832
832
|
let operation: Double = Double(operation.rawValue)
|
|
833
|
-
let __result: any UIViewControllerAnimatedTransitioning? = jsReportedOrZero {
|
|
834
|
-
() throws -> any UIViewControllerAnimatedTransitioning? in
|
|
833
|
+
let __result: (any UIViewControllerAnimatedTransitioning)? = jsReportedOrZero {
|
|
834
|
+
() throws -> (any UIViewControllerAnimatedTransitioning)? in
|
|
835
835
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:475)
|
|
836
836
|
var viewController: UIViewController?
|
|
837
837
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:476)
|
|
@@ -919,7 +919,7 @@ open class Frame: FrameBase {
|
|
|
919
919
|
return try jsCallMethod(
|
|
920
920
|
__o_2, "iosNavigatedController", (navigationController as Any?), operation, fromVC, toVC
|
|
921
921
|
)
|
|
922
|
-
}()) as? any UIViewControllerAnimatedTransitioning)
|
|
922
|
+
}()) as? (any UIViewControllerAnimatedTransitioning))
|
|
923
923
|
}
|
|
924
924
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:526)
|
|
925
925
|
return nil
|
|
@@ -941,8 +941,8 @@ open class Frame: FrameBase {
|
|
|
941
941
|
(navigationController, animationController) -> (any UIViewControllerInteractiveTransitioning)? in
|
|
942
942
|
let navigationController: NativeScriptKit.UINavigationControllerImpl? =
|
|
943
943
|
navigationController as? NativeScriptKit.UINavigationControllerImpl
|
|
944
|
-
let __result: any UIViewControllerInteractiveTransitioning? = jsReportedOrZero {
|
|
945
|
-
() throws -> any UIViewControllerInteractiveTransitioning? in
|
|
944
|
+
let __result: (any UIViewControllerInteractiveTransitioning)? = jsReportedOrZero {
|
|
945
|
+
() throws -> (any UIViewControllerInteractiveTransitioning)? in
|
|
946
946
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:530)
|
|
947
947
|
let owner: NativeScriptKit.Frame? = try jsUnwrap(navigationController, "owner").owner
|
|
948
948
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:531)
|
|
@@ -966,7 +966,7 @@ open class Frame: FrameBase {
|
|
|
966
966
|
as Any?)
|
|
967
967
|
return try jsIsNullish(__o_3)
|
|
968
968
|
? nil : try jsCallMethod(__o_3, "iosInteractionDismiss", jsNull)
|
|
969
|
-
}()) as? any UIViewControllerInteractiveTransitioning)
|
|
969
|
+
}()) as? (any UIViewControllerInteractiveTransitioning))
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
972
|
}
|
|
@@ -1882,7 +1882,7 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
1882
1882
|
childState, Core_ui_layouts_flexbox_layout_index.MEASURED_STATE_TOO_SMALL)
|
|
1883
1883
|
} else {
|
|
1884
1884
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:892)
|
|
1885
|
-
widthSize =
|
|
1885
|
+
widthSize = try jsConvertedNumber(calculatedMaxWidth)
|
|
1886
1886
|
}
|
|
1887
1887
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:894)
|
|
1888
1888
|
widthSizeAndState = View.resolveSizeAndState(widthSize, widthSize, widthMode, childState)
|
|
@@ -1891,7 +1891,7 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
1891
1891
|
case _ where __switch8 == (Core_ui_layouts_flexbox_layout_index.UNSPECIFIED):
|
|
1892
1892
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:898)
|
|
1893
1893
|
widthSizeAndState = View.resolveSizeAndState(
|
|
1894
|
-
|
|
1894
|
+
try jsConvertedNumber(calculatedMaxWidth), widthSize, widthMode, childState)
|
|
1895
1895
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:899)
|
|
1896
1896
|
break
|
|
1897
1897
|
default:
|
|
@@ -1926,7 +1926,7 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
1926
1926
|
NativeScriptKit.layout.MEASURED_HEIGHT_STATE_SHIFT))
|
|
1927
1927
|
} else {
|
|
1928
1928
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:916)
|
|
1929
|
-
heightSize =
|
|
1929
|
+
heightSize = try jsConvertedNumber(calculatedMaxHeight)
|
|
1930
1930
|
}
|
|
1931
1931
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:919)
|
|
1932
1932
|
heightSizeAndState = View.resolveSizeAndState(heightSize, heightSize, heightMode, childState)
|
|
@@ -1935,7 +1935,7 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
1935
1935
|
case _ where __switch9 == (Core_ui_layouts_flexbox_layout_index.UNSPECIFIED):
|
|
1936
1936
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:923)
|
|
1937
1937
|
heightSizeAndState = View.resolveSizeAndState(
|
|
1938
|
-
|
|
1938
|
+
try jsConvertedNumber(calculatedMaxHeight), heightSize, heightMode, childState)
|
|
1939
1939
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:924)
|
|
1940
1940
|
break
|
|
1941
1941
|
default:
|
|
@@ -1943,7 +1943,8 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
1943
1943
|
throw JSException(value: JSError("Unknown height mode is set: " + js(heightMode)))
|
|
1944
1944
|
}
|
|
1945
1945
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:929)
|
|
1946
|
-
try self.setMeasuredDimension(
|
|
1946
|
+
try self.setMeasuredDimension(
|
|
1947
|
+
try jsConvertedNumber(widthSizeAndState), try jsConvertedNumber(heightSizeAndState))
|
|
1947
1948
|
}
|
|
1948
1949
|
#sourceLocation()
|
|
1949
1950
|
open func _isWrapRequired(
|
|
@@ -2216,17 +2217,17 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
2216
2217
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1094)
|
|
2217
2218
|
try self._layoutSingleChildHorizontal(
|
|
2218
2219
|
child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
|
|
2219
|
-
jsRound(
|
|
2220
|
+
jsRound(try jsConvertedNumber(childRight))
|
|
2220
2221
|
- jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
|
|
2221
2222
|
childBottom - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
|
|
2222
|
-
jsRound(
|
|
2223
|
+
jsRound(try jsConvertedNumber(childRight)), childBottom)
|
|
2223
2224
|
} else {
|
|
2224
2225
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1096)
|
|
2225
2226
|
try self._layoutSingleChildHorizontal(
|
|
2226
2227
|
child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
|
|
2227
|
-
jsRound(
|
|
2228
|
+
jsRound(try jsConvertedNumber(childLeft)),
|
|
2228
2229
|
childBottom - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
|
|
2229
|
-
jsRound(
|
|
2230
|
+
jsRound(try jsConvertedNumber(childLeft))
|
|
2230
2231
|
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(), childBottom)
|
|
2231
2232
|
}
|
|
2232
2233
|
} else {
|
|
@@ -2235,16 +2236,16 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
2235
2236
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1100)
|
|
2236
2237
|
try self._layoutSingleChildHorizontal(
|
|
2237
2238
|
child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
|
|
2238
|
-
jsRound(
|
|
2239
|
+
jsRound(try jsConvertedNumber(childRight))
|
|
2239
2240
|
- jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(), childTop,
|
|
2240
|
-
jsRound(
|
|
2241
|
+
jsRound(try jsConvertedNumber(childRight)),
|
|
2241
2242
|
childTop + jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
|
|
2242
2243
|
} else {
|
|
2243
2244
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1102)
|
|
2244
2245
|
try self._layoutSingleChildHorizontal(
|
|
2245
2246
|
child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
|
|
2246
|
-
jsRound(
|
|
2247
|
-
jsRound(
|
|
2247
|
+
jsRound(try jsConvertedNumber(childLeft)), childTop,
|
|
2248
|
+
jsRound(try jsConvertedNumber(childLeft))
|
|
2248
2249
|
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
|
|
2249
2250
|
childTop + jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
|
|
2250
2251
|
}
|
|
@@ -2550,16 +2551,16 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
2550
2551
|
try self._layoutSingleChildVertical(
|
|
2551
2552
|
child, jsImplicit(flexLine), true, self.alignItems,
|
|
2552
2553
|
childRight - jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
|
|
2553
|
-
jsRound(
|
|
2554
|
+
jsRound(try jsConvertedNumber(childBottom))
|
|
2554
2555
|
- jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(), childRight,
|
|
2555
|
-
jsRound(
|
|
2556
|
+
jsRound(try jsConvertedNumber(childBottom)))
|
|
2556
2557
|
} else {
|
|
2557
2558
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1252)
|
|
2558
2559
|
try self._layoutSingleChildVertical(
|
|
2559
2560
|
child, jsImplicit(flexLine), true, self.alignItems,
|
|
2560
2561
|
childRight - jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
|
|
2561
|
-
jsRound(
|
|
2562
|
-
jsRound(
|
|
2562
|
+
jsRound(try jsConvertedNumber(childTop)), childRight,
|
|
2563
|
+
jsRound(try jsConvertedNumber(childTop))
|
|
2563
2564
|
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
|
|
2564
2565
|
}
|
|
2565
2566
|
} else {
|
|
@@ -2568,17 +2569,17 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
2568
2569
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1256)
|
|
2569
2570
|
try self._layoutSingleChildVertical(
|
|
2570
2571
|
child, jsImplicit(flexLine), false, self.alignItems, childLeft,
|
|
2571
|
-
jsRound(
|
|
2572
|
+
jsRound(try jsConvertedNumber(childBottom))
|
|
2572
2573
|
- jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
|
|
2573
2574
|
childLeft + jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
|
|
2574
|
-
jsRound(
|
|
2575
|
+
jsRound(try jsConvertedNumber(childBottom)))
|
|
2575
2576
|
} else {
|
|
2576
2577
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1258)
|
|
2577
2578
|
try self._layoutSingleChildVertical(
|
|
2578
2579
|
child, jsImplicit(flexLine), false, self.alignItems, childLeft,
|
|
2579
|
-
jsRound(
|
|
2580
|
+
jsRound(try jsConvertedNumber(childTop)),
|
|
2580
2581
|
childLeft + jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
|
|
2581
|
-
jsRound(
|
|
2582
|
+
jsRound(try jsConvertedNumber(childTop))
|
|
2582
2583
|
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
|
|
2583
2584
|
}
|
|
2584
2585
|
}
|