@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.
Files changed (207) hide show
  1. package/README.md +3 -0
  2. package/config.js +1 -0
  3. package/dist/kotlin/access.js +8 -7
  4. package/dist/kotlin/arguments.js +6 -0
  5. package/dist/kotlin/assignment.js +22 -13
  6. package/dist/kotlin/builtins.js +67 -0
  7. package/dist/kotlin/calls.js +3 -2
  8. package/dist/kotlin/class-declaration.js +4 -9
  9. package/dist/kotlin/class-methods.js +2 -2
  10. package/dist/kotlin/core-api.js +1 -1
  11. package/dist/kotlin/declarations.js +1 -1
  12. package/dist/kotlin/expression-statements.js +13 -1
  13. package/dist/kotlin/functions.js +1 -0
  14. package/dist/kotlin/literals.js +4 -8
  15. package/dist/kotlin/names.js +4 -4
  16. package/dist/kotlin/native/api.js +1 -1
  17. package/dist/kotlin/operators.js +25 -25
  18. package/dist/kotlin/optional-chains.js +1 -1
  19. package/dist/kotlin/overrides.js +3 -3
  20. package/dist/kotlin/state-backend.js +6 -2
  21. package/dist/kotlin/translator.js +1 -1
  22. package/dist/kotlin/types.js +4 -4
  23. package/dist/semantics/classes.js +15 -0
  24. package/dist/semantics/conversion.js +9 -1
  25. package/dist/semantics/facts.js +1 -1
  26. package/dist/semantics/lang.js +10 -0
  27. package/dist/semantics/lower.js +54 -0
  28. package/dist/semantics/lowering-methods.js +5 -0
  29. package/dist/semantics/placement.js +9 -3
  30. package/dist/semantics/runtime.js +1 -0
  31. package/dist/semantics/signals.js +11 -0
  32. package/dist/semantics/states/missing.js +7 -0
  33. package/dist/semantics/tdz.js +54 -15
  34. package/dist/semantics/throws.js +2 -2
  35. package/dist/semantics/translator-methods.js +1 -1
  36. package/dist/swift/access.js +7 -9
  37. package/dist/swift/arguments.js +14 -9
  38. package/dist/swift/assignment.js +26 -15
  39. package/dist/swift/calls.js +13 -5
  40. package/dist/swift/class-methods.js +2 -1
  41. package/dist/swift/classes.js +7 -9
  42. package/dist/swift/components.js +3 -3
  43. package/dist/swift/control-flow.js +1 -1
  44. package/dist/swift/conversion.js +5 -2
  45. package/dist/swift/core-api.js +2 -2
  46. package/dist/swift/declarations.js +1 -1
  47. package/dist/swift/expressions.js +6 -2
  48. package/dist/swift/from-any.js +1 -1
  49. package/dist/swift/functions.js +5 -6
  50. package/dist/swift/global-calls.js +1 -1
  51. package/dist/swift/lenient.js +1 -6
  52. package/dist/swift/library.js +2 -2
  53. package/dist/swift/literals.js +8 -3
  54. package/dist/swift/method-values.js +2 -1
  55. package/dist/swift/modules.js +3 -3
  56. package/dist/swift/names.js +7 -7
  57. package/dist/swift/native/calls.js +10 -4
  58. package/dist/swift/object-classes.js +84 -1
  59. package/dist/swift/operators.js +31 -29
  60. package/dist/swift/placement.js +22 -6
  61. package/dist/swift/state-backend.js +3 -2
  62. package/dist/swift/static-calls.js +3 -4
  63. package/dist/swift/syntax.js +10 -6
  64. package/dist/swift/translator.js +1 -1
  65. package/dist/swift/type-facts.js +3 -3
  66. package/dist/swift/types.js +5 -5
  67. package/dist/targets/ios/build.js +1 -1
  68. package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +1 -0
  69. package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +525 -99
  70. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +2 -2
  71. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +29 -6
  72. package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +14 -0
  73. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +3 -3
  74. package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +49 -1
  75. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +0 -8
  76. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +0 -16
  77. package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +6 -4
  78. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +19 -7
  79. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +14 -0
  80. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +19 -10
  81. package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +17 -29
  82. package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +144 -22
  83. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +8 -3
  84. package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +2 -10
  85. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +0 -2
  86. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +6 -10
  87. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +531 -8
  88. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +0 -9
  89. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +3 -3
  90. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +19 -0
  91. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +5 -2
  92. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +232 -174
  93. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +1 -1
  94. package/kit-android/generated/kotlin/org/nativescript/kit/utils_android_runtime_version.kt +75 -0
  95. package/kit-android/generated/manifest.json +21 -18
  96. package/kit-android/generated/source-lines.json +1 -1
  97. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +9 -0
  98. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +497 -42
  99. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +1 -1
  100. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +22 -2
  101. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +32 -18
  102. package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +7 -3
  103. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +14 -10
  104. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +3 -9
  105. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +20 -21
  106. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +5 -7
  107. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_.swift +130 -0
  108. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +2 -4
  109. package/kit-apple/Sources/NativeScriptKit/Core/Object_specified_substituted_reads.swift +115 -0
  110. package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads.swift +113 -0
  111. package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads_.swift +113 -0
  112. package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +348 -330
  113. package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +358 -359
  114. package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +47 -29
  115. package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +3 -1
  116. package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +95 -53
  117. package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1 -1
  118. package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +1 -1
  119. package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +3 -3
  120. package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +58 -49
  121. package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +10 -10
  122. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +18 -0
  123. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +67 -52
  124. package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +3 -3
  125. package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +69 -53
  126. package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +4 -22
  127. package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +144 -32
  128. package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +30 -19
  129. package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +190 -78
  130. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +1 -1
  131. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +205 -201
  132. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +41 -42
  133. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +1 -1
  134. package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +2 -2
  135. package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +33 -21
  136. package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +12 -6
  137. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +77 -65
  138. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1 -1
  139. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +10 -6
  140. package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +14 -13
  141. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +1273 -824
  142. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +2 -2
  143. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +87 -67
  144. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -1
  145. package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +17 -16
  146. package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +2 -2
  147. package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +27 -18
  148. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +2 -1
  149. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +6 -6
  150. package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +9 -9
  151. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +6 -6
  152. package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +8 -8
  153. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +22 -21
  154. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +4 -3
  155. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +1 -1
  156. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +1 -1
  157. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +2 -2
  158. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +9 -9
  159. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +9 -6
  160. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +38 -20
  161. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +204 -190
  162. package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +12 -10
  163. package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +2 -6
  164. package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +18 -9
  165. package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +28 -18
  166. package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +19 -12
  167. package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +14 -12
  168. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +17 -12
  169. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2 -2
  170. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +1 -1
  171. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +1 -1
  172. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +2 -2
  173. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +2 -2
  174. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +869 -838
  175. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +46 -31
  176. package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +12 -10
  177. package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +36 -20
  178. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +3 -4
  179. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +25 -22
  180. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +2 -3
  181. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +21 -14
  182. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +33 -21
  183. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +1 -1
  184. package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +22 -18
  185. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +2 -2
  186. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +4 -4
  187. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +2 -2
  188. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +32 -32
  189. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +1 -1
  190. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +2 -2
  191. package/kit-apple/Sources/NativeScriptKit/Core/utils.android-runtime-version.swift +77 -0
  192. package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +2 -2
  193. package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +2 -2
  194. package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +62 -61
  195. package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +4 -0
  196. package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +2 -0
  197. package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +1 -1
  198. package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +1 -1
  199. package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +1 -1
  200. package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +280 -9
  201. package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +3 -2
  202. package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +2 -1
  203. package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +1 -0
  204. package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +1 -0
  205. package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +1 -0
  206. package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +2 -0
  207. 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
- while try jsLessThrowing(i, count) {
1907
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:900)
1908
- let shadowLayer: Any? = try jsGet(outerShadowLayers, js(i))
1909
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:901)
1910
- let __d_1: Any? = try NativeScriptKit.ios__background_ios.generateShadowLayerPaths(
1911
- view, jsImplicit(jsUnwrap(boxShadows, "i").element(i)), bounds)
1912
- let maskPath: Any? = (try jsGet(__d_1, "maskPath"))
1913
- let shadowPath: Any? = (try jsGet(__d_1, "shadowPath"))
1914
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:903)
1915
- _ = try jsCallMethod(
1916
- shadowLayer, "addAnimationForKey",
1917
- jsObjectRequired(
1918
- self._createBasicAnimation(
1919
- { () throws -> AnimationInfo in
1920
- let __literal14 = AnimationInfo(jsLiteral: ())
1921
- if let __spread13 = args {
1922
- __literal14.propertyNameToAnimate = __spread13.propertyNameToAnimate
1923
- __literal14.subPropertiesToAnimate = __spread13.subPropertiesToAnimate
1924
- __literal14.fromValue = __spread13.fromValue
1925
- __literal14.toValue = __spread13.toValue
1926
- __literal14.duration = __spread13.duration
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
- jsGet(shadowLayer, "mask"), "addAnimationForKey",
1928
+ shadowLayer, "addAnimationForKey",
1940
1929
  jsObjectRequired(
1941
1930
  self._createBasicAnimation(
1942
1931
  { () throws -> AnimationInfo in
1943
- let __literal15 = AnimationInfo(jsLiteral: ())
1944
- if let __spread14 = args {
1945
- __literal15.propertyNameToAnimate = __spread14.propertyNameToAnimate
1946
- __literal15.subPropertiesToAnimate = __spread14.subPropertiesToAnimate
1947
- __literal15.fromValue = __spread14.fromValue
1948
- __literal15.toValue = __spread14.toValue
1949
- __literal15.duration = __spread14.duration
1950
- __literal15.repeatCount = __spread14.repeatCount
1951
- __literal15.delay = __spread14.delay
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
- __literal15.propertyNameToAnimate = "path"
1954
- __literal15.fromValue = try jsGet(jsGet(shadowLayer, "mask"), "path")
1955
- __literal15.toValue = maskPath
1956
- return __literal15
1957
- }(), animation)), "path")
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:937)
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:938)
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:939)
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:941)
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:942)
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:945)
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:949)
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:950)
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:951)
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:954)
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:957)
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:958)
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:961)
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:962)
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:963)
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:965)
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:969)
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 as? View)
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<Any?>()),
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<Any?>()),
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
- __async1.returnValue(jsObjectRequired(__t_1))
1662
- }, { __async1.throwValue($0) })
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))))