@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
|
@@ -1903,60 +1903,72 @@ open class Animation: AnimationBase {
|
|
|
1903
1903
|
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:899)
|
|
1904
1904
|
var i: Double = 0
|
|
1905
1905
|
let count: Any? = try jsGet(outerShadowLayers, "count")
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
__literal14.repeatCount = __spread13.repeatCount
|
|
1928
|
-
__literal14.delay = __spread13.delay
|
|
1929
|
-
}
|
|
1930
|
-
__literal14.propertyNameToAnimate = "shadowPath"
|
|
1931
|
-
__literal14.fromValue = try jsGet(shadowLayer, "shadowPath")
|
|
1932
|
-
__literal14.toValue = shadowPath
|
|
1933
|
-
return __literal14
|
|
1934
|
-
}(), animation)), "shadowPath")
|
|
1935
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:916)
|
|
1936
|
-
if try (jsGet(shadowLayer, "mask") is CAShapeLayer) {
|
|
1937
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:917)
|
|
1906
|
+
var __first2 = true
|
|
1907
|
+
while true {
|
|
1908
|
+
if !__first2 { i += 1 }
|
|
1909
|
+
__first2 = false
|
|
1910
|
+
if !(try jsLessThrowing(i, count)) { break }
|
|
1911
|
+
do {
|
|
1912
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:900)
|
|
1913
|
+
let boxShadow: BoxShadow? = (boxShadows?.element(i) ?? nil)
|
|
1914
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:901)
|
|
1915
|
+
if !jsTruthy(boxShadow as Any?) {
|
|
1916
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:902)
|
|
1917
|
+
continue
|
|
1918
|
+
}
|
|
1919
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:905)
|
|
1920
|
+
let shadowLayer: Any? = try jsGet(outerShadowLayers, js(i))
|
|
1921
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:906)
|
|
1922
|
+
let __d_1: Any? = try NativeScriptKit.ios__background_ios.generateShadowLayerPaths(
|
|
1923
|
+
view, boxShadow, bounds)
|
|
1924
|
+
let maskPath: Any? = (try jsGet(__d_1, "maskPath"))
|
|
1925
|
+
let shadowPath: Any? = (try jsGet(__d_1, "shadowPath"))
|
|
1926
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:908)
|
|
1938
1927
|
_ = try jsCallMethod(
|
|
1939
|
-
|
|
1928
|
+
shadowLayer, "addAnimationForKey",
|
|
1940
1929
|
jsObjectRequired(
|
|
1941
1930
|
self._createBasicAnimation(
|
|
1942
1931
|
{ () throws -> AnimationInfo in
|
|
1943
|
-
let
|
|
1944
|
-
if let
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1932
|
+
let __literal14 = AnimationInfo(jsLiteral: ())
|
|
1933
|
+
if let __spread13 = args {
|
|
1934
|
+
__literal14.propertyNameToAnimate = __spread13.propertyNameToAnimate
|
|
1935
|
+
__literal14.subPropertiesToAnimate = __spread13.subPropertiesToAnimate
|
|
1936
|
+
__literal14.fromValue = __spread13.fromValue
|
|
1937
|
+
__literal14.toValue = __spread13.toValue
|
|
1938
|
+
__literal14.duration = __spread13.duration
|
|
1939
|
+
__literal14.repeatCount = __spread13.repeatCount
|
|
1940
|
+
__literal14.delay = __spread13.delay
|
|
1952
1941
|
}
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
return
|
|
1957
|
-
}(), animation)), "
|
|
1942
|
+
__literal14.propertyNameToAnimate = "shadowPath"
|
|
1943
|
+
__literal14.fromValue = try jsGet(shadowLayer, "shadowPath")
|
|
1944
|
+
__literal14.toValue = shadowPath
|
|
1945
|
+
return __literal14
|
|
1946
|
+
}(), animation)), "shadowPath")
|
|
1947
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:921)
|
|
1948
|
+
if try (jsGet(shadowLayer, "mask") is CAShapeLayer) {
|
|
1949
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:922)
|
|
1950
|
+
_ = try jsCallMethod(
|
|
1951
|
+
jsGet(shadowLayer, "mask"), "addAnimationForKey",
|
|
1952
|
+
jsObjectRequired(
|
|
1953
|
+
self._createBasicAnimation(
|
|
1954
|
+
{ () throws -> AnimationInfo in
|
|
1955
|
+
let __literal15 = AnimationInfo(jsLiteral: ())
|
|
1956
|
+
if let __spread14 = args {
|
|
1957
|
+
__literal15.propertyNameToAnimate = __spread14.propertyNameToAnimate
|
|
1958
|
+
__literal15.subPropertiesToAnimate = __spread14.subPropertiesToAnimate
|
|
1959
|
+
__literal15.fromValue = __spread14.fromValue
|
|
1960
|
+
__literal15.toValue = __spread14.toValue
|
|
1961
|
+
__literal15.duration = __spread14.duration
|
|
1962
|
+
__literal15.repeatCount = __spread14.repeatCount
|
|
1963
|
+
__literal15.delay = __spread14.delay
|
|
1964
|
+
}
|
|
1965
|
+
__literal15.propertyNameToAnimate = "path"
|
|
1966
|
+
__literal15.fromValue = try jsGet(jsGet(shadowLayer, "mask"), "path")
|
|
1967
|
+
__literal15.toValue = maskPath
|
|
1968
|
+
return __literal15
|
|
1969
|
+
}(), animation)), "path")
|
|
1970
|
+
}
|
|
1958
1971
|
}
|
|
1959
|
-
i += 1
|
|
1960
1972
|
}
|
|
1961
1973
|
}
|
|
1962
1974
|
}
|
|
@@ -2126,71 +2138,71 @@ public enum Core_ui_animation_index {
|
|
|
2126
2138
|
}
|
|
2127
2139
|
#sourceLocation()
|
|
2128
2140
|
public static func _getTransformMismatchErrorMessage(_ view: View?) throws -> String? {
|
|
2129
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2141
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:942)
|
|
2130
2142
|
let expectedTransform: CATransform3D = try Core_ui_animation_index.calculateTransform(view)
|
|
2131
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2143
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:943)
|
|
2132
2144
|
let expectedTransformString: String = Core_ui_animation_index.getCATransform3DString(expectedTransform)
|
|
2133
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2145
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:944)
|
|
2134
2146
|
let actualTransformString: String = try Core_ui_animation_index.getCATransform3DString(
|
|
2135
2147
|
jsUnwrap(
|
|
2136
2148
|
jsUnwrap(jsUnwrap(view, "nativeViewProtected").nativeViewProtected as? UIView, "layer").layer,
|
|
2137
2149
|
"transform"
|
|
2138
2150
|
).transform)
|
|
2139
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2151
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:946)
|
|
2140
2152
|
if !jsStringEquals(actualTransformString, expectedTransformString) {
|
|
2141
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2153
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:947)
|
|
2142
2154
|
return "View and Native transforms do not match.\nActual: " + actualTransformString + ";\nExpected: "
|
|
2143
2155
|
+ expectedTransformString
|
|
2144
2156
|
}
|
|
2145
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2157
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:950)
|
|
2146
2158
|
return nil
|
|
2147
2159
|
}
|
|
2148
2160
|
#sourceLocation()
|
|
2149
2161
|
public static func calculateTransform(_ view: View?) throws -> CATransform3D {
|
|
2150
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2162
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:954)
|
|
2151
2163
|
let scaleX: Double = try
|
|
2152
2164
|
({ () throws -> Double in
|
|
2153
2165
|
let __v_1 = try jsUnwrap(view, "scaleX").scaleX
|
|
2154
2166
|
return jsTruthy(__v_1) ? jsPresent(__v_1) : 0.000001
|
|
2155
2167
|
}())
|
|
2156
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2168
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:955)
|
|
2157
2169
|
let scaleY: Double = try
|
|
2158
2170
|
({ () throws -> Double in
|
|
2159
2171
|
let __v_2 = try jsUnwrap(view, "scaleY").scaleY
|
|
2160
2172
|
return jsTruthy(__v_2) ? jsPresent(__v_2) : 0.000001
|
|
2161
2173
|
}())
|
|
2162
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2174
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:956)
|
|
2163
2175
|
let perspective: Double = try
|
|
2164
2176
|
({ () throws -> Double in
|
|
2165
2177
|
let __v_3 = try jsUnwrap(view, "perspective").perspective
|
|
2166
2178
|
return jsTruthy(__v_3) ? jsPresent(__v_3) : 300
|
|
2167
2179
|
}())
|
|
2168
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2180
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:959)
|
|
2169
2181
|
var expectedTransform: CATransform3D = CATransform3DIdentity
|
|
2170
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2182
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:962)
|
|
2171
2183
|
if try (jsTruthy(jsUnwrap(view, "rotateX").rotateX) || jsTruthy(jsUnwrap(view, "rotateY").rotateY)) {
|
|
2172
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2184
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:963)
|
|
2173
2185
|
expectedTransform.m34 = CGFloat(jsNativeNumber(-1 / perspective))
|
|
2174
2186
|
}
|
|
2175
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2187
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:966)
|
|
2176
2188
|
expectedTransform = try CATransform3DTranslate(
|
|
2177
2189
|
expectedTransform, CGFloat(jsNativeNumber(jsUnwrap(view, "translateX").translateX)),
|
|
2178
2190
|
CGFloat(jsNativeNumber(jsUnwrap(view, "translateY").translateY)), 0)
|
|
2179
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2191
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:967)
|
|
2180
2192
|
expectedTransform = try jsCallable(
|
|
2181
2193
|
jsUnwrap(Core_utils_native_helper.ios, "applyRotateTransform").applyRotateTransform,
|
|
2182
2194
|
"iosHelper.applyRotateTransform")(
|
|
2183
2195
|
expectedTransform, jsUnwrap(view, "rotateX").rotateX, jsUnwrap(view, "rotateY").rotateY,
|
|
2184
2196
|
jsUnwrap(view, "rotate").rotate)
|
|
2185
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2197
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:968)
|
|
2186
2198
|
expectedTransform = CATransform3DScale(
|
|
2187
2199
|
expectedTransform, CGFloat(jsNativeNumber(scaleX)), CGFloat(jsNativeNumber(scaleY)), 1)
|
|
2188
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2200
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:970)
|
|
2189
2201
|
return expectedTransform
|
|
2190
2202
|
}
|
|
2191
2203
|
#sourceLocation()
|
|
2192
2204
|
public static func getCATransform3DString(_ t: CATransform3D) -> String {
|
|
2193
|
-
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:
|
|
2205
|
+
#sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:974)
|
|
2194
2206
|
return
|
|
2195
2207
|
"[\n \(js(Double(t.m11))), \(js(Double(t.m12))), \(js(Double(t.m13))), \(js(Double(t.m14))),\n \(js(Double(t.m21))), \(js(Double(t.m22))), \(js(Double(t.m23))), \(js(Double(t.m24))),\n \(js(Double(t.m31))), \(js(Double(t.m32))), \(js(Double(t.m33))), \(js(Double(t.m34))),\n \(js(Double(t.m41))), \(js(Double(t.m42))), \(js(Double(t.m43))), \(js(Double(t.m44)))]"
|
|
2196
2208
|
}
|
|
@@ -634,7 +634,7 @@ open class KeyframeAnimation: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
634
634
|
return JSPromise<Void> { (__resolvers1: JSResolvers<Void>) throws -> Void in
|
|
635
635
|
|
|
636
636
|
#sourceLocation(file:"@nativescript/core/ui.animation.keyframe-animation.ts",line:212)
|
|
637
|
-
__resolvers1.resolve()
|
|
637
|
+
try __resolvers1.resolve()
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
#sourceLocation(file:"@nativescript/core/ui.animation.keyframe-animation.ts",line:216)
|
|
@@ -15,7 +15,7 @@ import SystemConfiguration
|
|
|
15
15
|
import UIKit
|
|
16
16
|
import WebKit
|
|
17
17
|
|
|
18
|
-
public protocol XmlProducer: JSDynamic {
|
|
18
|
+
@MainActor public protocol XmlProducer: JSDynamic {
|
|
19
19
|
func pipe(_ next: Any?) throws -> Any?
|
|
20
20
|
}
|
|
21
21
|
public final class XmlProducerObject: XmlProducer, JSObjectConvertible {
|
|
@@ -154,7 +154,7 @@ open class Builder: JSDynamic, JSExpando, JSStaticKeyed {
|
|
|
154
154
|
}()))
|
|
155
155
|
}
|
|
156
156
|
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:101)
|
|
157
|
-
return (componentView
|
|
157
|
+
return try jsCast(componentView, View.self)
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
#sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:105)
|
|
@@ -1279,7 +1279,7 @@ public enum xml2ui {
|
|
|
1279
1279
|
}())
|
|
1280
1280
|
), ("parent", parent), ("name", (name as Any?)),
|
|
1281
1281
|
("elementName", jsUnwrap(args, "elementName").elementName),
|
|
1282
|
-
("templateItems", JSArray<
|
|
1282
|
+
("templateItems", JSArray<String>()),
|
|
1283
1283
|
(
|
|
1284
1284
|
"errorFormat",
|
|
1285
1285
|
FunctionCell_JSErrorOpt_AnyOpt_to_JSErrorOpt.scriptOrNil("", 2, self.error)
|
|
@@ -1311,7 +1311,7 @@ public enum xml2ui {
|
|
|
1311
1311
|
}())
|
|
1312
1312
|
), ("parent", parent), ("name", (name as Any?)),
|
|
1313
1313
|
("elementName", jsUnwrap(args, "elementName").elementName),
|
|
1314
|
-
("templateItems", JSArray<
|
|
1314
|
+
("templateItems", JSArray<String>()),
|
|
1315
1315
|
(
|
|
1316
1316
|
"errorFormat",
|
|
1317
1317
|
FunctionCell_JSErrorOpt_AnyOpt_to_JSErrorOpt.scriptOrNil("", 2, self.error)
|
|
@@ -1658,8 +1658,12 @@ public enum Core_ui_builder_index {
|
|
|
1658
1658
|
jsAwait(
|
|
1659
1659
|
value: try jsObjectRequired(Builder.load(pathOrOptions, context)),
|
|
1660
1660
|
{ (__t_1: View) -> Void in
|
|
1661
|
-
|
|
1662
|
-
|
|
1661
|
+
do {
|
|
1662
|
+
__async1.returnValue(try jsObjectRequired(__t_1))
|
|
1663
|
+
} catch {
|
|
1664
|
+
__async1.throwValue(jsCaught(error))
|
|
1665
|
+
}
|
|
1666
|
+
}, __async1.throwValue)
|
|
1663
1667
|
}
|
|
1664
1668
|
return __async1.promise
|
|
1665
1669
|
}
|
|
@@ -206,68 +206,69 @@ open class Button: ButtonBase {
|
|
|
206
206
|
}
|
|
207
207
|
#sourceLocation()
|
|
208
208
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
209
|
-
if key == ((Core_ui_styling_style_properties.borderTopWidthProperty?.getDefault)?.key ?? "undefined") {
|
|
209
|
+
if key == (try? ((Core_ui_styling_style_properties.borderTopWidthProperty?.getDefault)?.key ?? "undefined")) {
|
|
210
210
|
return { __this, __a in return try (jsCastPresent(__this) as Button).symbol_getDefault_borderTopWidth() }
|
|
211
211
|
}
|
|
212
|
-
if key == ((Core_ui_styling_style_properties.borderTopWidthProperty?.setNative)?.key ?? "undefined") {
|
|
212
|
+
if key == (try? ((Core_ui_styling_style_properties.borderTopWidthProperty?.setNative)?.key ?? "undefined")) {
|
|
213
213
|
return { __this, __a in
|
|
214
214
|
try (jsCastPresent(__this) as Button).symbol_setNative_borderTopWidth(nil)
|
|
215
215
|
return nil
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
if key == ((Core_ui_styling_style_properties.borderRightWidthProperty?.getDefault)?.key ?? "undefined") {
|
|
218
|
+
if key == (try? ((Core_ui_styling_style_properties.borderRightWidthProperty?.getDefault)?.key ?? "undefined")) {
|
|
219
219
|
return { __this, __a in return try (jsCastPresent(__this) as Button).symbol_getDefault_borderRightWidth() }
|
|
220
220
|
}
|
|
221
|
-
if key == ((Core_ui_styling_style_properties.borderRightWidthProperty?.setNative)?.key ?? "undefined") {
|
|
221
|
+
if key == (try? ((Core_ui_styling_style_properties.borderRightWidthProperty?.setNative)?.key ?? "undefined")) {
|
|
222
222
|
return { __this, __a in
|
|
223
223
|
try (jsCastPresent(__this) as Button).symbol_setNative_borderRightWidth(nil)
|
|
224
224
|
return nil
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
if key == ((Core_ui_styling_style_properties.borderBottomWidthProperty?.getDefault)?.key ?? "undefined")
|
|
227
|
+
if key == (try? ((Core_ui_styling_style_properties.borderBottomWidthProperty?.getDefault)?.key ?? "undefined"))
|
|
228
|
+
{
|
|
228
229
|
return { __this, __a in return try (jsCastPresent(__this) as Button).symbol_getDefault_borderBottomWidth() }
|
|
229
230
|
}
|
|
230
|
-
if key == ((Core_ui_styling_style_properties.borderBottomWidthProperty?.setNative)?.key ?? "undefined") {
|
|
231
|
+
if key == (try? ((Core_ui_styling_style_properties.borderBottomWidthProperty?.setNative)?.key ?? "undefined")) {
|
|
231
232
|
return { __this, __a in
|
|
232
233
|
try (jsCastPresent(__this) as Button).symbol_setNative_borderBottomWidth(nil)
|
|
233
234
|
return nil
|
|
234
235
|
}
|
|
235
236
|
}
|
|
236
|
-
if key == ((Core_ui_styling_style_properties.borderLeftWidthProperty?.getDefault)?.key ?? "undefined") {
|
|
237
|
+
if key == (try? ((Core_ui_styling_style_properties.borderLeftWidthProperty?.getDefault)?.key ?? "undefined")) {
|
|
237
238
|
return { __this, __a in return try (jsCastPresent(__this) as Button).symbol_getDefault_borderLeftWidth() }
|
|
238
239
|
}
|
|
239
|
-
if key == ((Core_ui_styling_style_properties.borderLeftWidthProperty?.setNative)?.key ?? "undefined") {
|
|
240
|
+
if key == (try? ((Core_ui_styling_style_properties.borderLeftWidthProperty?.setNative)?.key ?? "undefined")) {
|
|
240
241
|
return { __this, __a in
|
|
241
242
|
try (jsCastPresent(__this) as Button).symbol_setNative_borderLeftWidth(nil)
|
|
242
243
|
return nil
|
|
243
244
|
}
|
|
244
245
|
}
|
|
245
|
-
if key == ((Core_ui_styling_style_properties.paddingInternalProperty?.setNative)?.key ?? "undefined") {
|
|
246
|
+
if key == (try? ((Core_ui_styling_style_properties.paddingInternalProperty?.setNative)?.key ?? "undefined")) {
|
|
246
247
|
return { __this, __a in
|
|
247
248
|
try (jsCastPresent(__this) as Button).symbol_setNative_paddingInternal("")
|
|
248
249
|
return nil
|
|
249
250
|
}
|
|
250
251
|
}
|
|
251
|
-
if key == ((Core_ui_text_base_text_base_common.textAlignmentProperty?.setNative)?.key ?? "undefined") {
|
|
252
|
+
if key == (try? ((Core_ui_text_base_text_base_common.textAlignmentProperty?.setNative)?.key ?? "undefined")) {
|
|
252
253
|
return { __this, __a in
|
|
253
254
|
try (jsCastPresent(__this) as Button).symbol_setNative_textAlignment_Button(
|
|
254
255
|
(try jsConvertedString(jsArg(__a, 0))))
|
|
255
256
|
return nil
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
|
-
if key == ((Core_ui_text_base_text_base_common.whiteSpaceProperty?.setNative)?.key ?? "undefined") {
|
|
259
|
+
if key == (try? ((Core_ui_text_base_text_base_common.whiteSpaceProperty?.setNative)?.key ?? "undefined")) {
|
|
259
260
|
return { __this, __a in
|
|
260
261
|
try (jsCastPresent(__this) as Button).symbol_setNative_whiteSpace("")
|
|
261
262
|
return nil
|
|
262
263
|
}
|
|
263
264
|
}
|
|
264
|
-
if key == ((Core_ui_text_base_text_base_common.textOverflowProperty?.setNative)?.key ?? "undefined") {
|
|
265
|
+
if key == (try? ((Core_ui_text_base_text_base_common.textOverflowProperty?.setNative)?.key ?? "undefined")) {
|
|
265
266
|
return { __this, __a in
|
|
266
267
|
try (jsCastPresent(__this) as Button).symbol_setNative_textOverflow("")
|
|
267
268
|
return nil
|
|
268
269
|
}
|
|
269
270
|
}
|
|
270
|
-
if key == ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined") {
|
|
271
|
+
if key == (try? ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined")) {
|
|
271
272
|
return { __this, __a in
|
|
272
273
|
try (jsCastPresent(__this) as Button).symbol_setNative_direction_Button(
|
|
273
274
|
(try jsConvertedString(jsArg(__a, 0))))
|