@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
@@ -80,49 +80,51 @@ open class Progress: ProgressBase {
80
80
 
81
81
  }
82
82
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
83
- if key == ((Core_ui_progress_progress_common.valueProperty?.getDefault)?.key ?? "undefined") {
83
+ if key == (try? ((Core_ui_progress_progress_common.valueProperty?.getDefault)?.key ?? "undefined")) {
84
84
  return { __this, __a in return try (jsCastPresent(__this) as Progress).symbol_getDefault_value() }
85
85
  }
86
- if key == ((Core_ui_progress_progress_common.valueProperty?.setNative)?.key ?? "undefined") {
86
+ if key == (try? ((Core_ui_progress_progress_common.valueProperty?.setNative)?.key ?? "undefined")) {
87
87
  return { __this, __a in
88
88
  try (jsCastPresent(__this) as Progress).symbol_setNative_value((try jsConvertedNumber(jsArg(__a, 0))))
89
89
  return nil
90
90
  }
91
91
  }
92
- if key == ((Core_ui_progress_progress_common.maxValueProperty?.getDefault)?.key ?? "undefined") {
92
+ if key == (try? ((Core_ui_progress_progress_common.maxValueProperty?.getDefault)?.key ?? "undefined")) {
93
93
  return { __this, __a in return try (jsCastPresent(__this) as Progress).symbol_getDefault_maxValue() }
94
94
  }
95
- if key == ((Core_ui_progress_progress_common.maxValueProperty?.setNative)?.key ?? "undefined") {
95
+ if key == (try? ((Core_ui_progress_progress_common.maxValueProperty?.setNative)?.key ?? "undefined")) {
96
96
  return { __this, __a in
97
97
  try (jsCastPresent(__this) as Progress).symbol_setNative_maxValue(
98
98
  (try jsConvertedNumber(jsArg(__a, 0))))
99
99
  return nil
100
100
  }
101
101
  }
102
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
102
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
103
103
  return { __this, __a in return try (jsCastPresent(__this) as Progress).symbol_getDefault_color() }
104
104
  }
105
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
105
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
106
106
  return { __this, __a in
107
107
  try (jsCastPresent(__this) as Progress).symbol_setNative_color(jsArg(__a, 0))
108
108
  return nil
109
109
  }
110
110
  }
111
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined") {
111
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined")) {
112
112
  return { __this, __a in return try (jsCastPresent(__this) as Progress).symbol_getDefault_backgroundColor() }
113
113
  }
114
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined") {
114
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined")) {
115
115
  return { __this, __a in
116
116
  try (jsCastPresent(__this) as Progress).symbol_setNative_backgroundColor(jsArg(__a, 0))
117
117
  return nil
118
118
  }
119
119
  }
120
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined") {
120
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined"))
121
+ {
121
122
  return { __this, __a in
122
123
  return try (jsCastPresent(__this) as Progress).symbol_getDefault_backgroundInternal_Progress()
123
124
  }
124
125
  }
125
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined") {
126
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined"))
127
+ {
126
128
  return { __this, __a in
127
129
  try (jsCastPresent(__this) as Progress).symbol_setNative_backgroundInternal_Progress(nil)
128
130
  return nil
@@ -467,9 +467,7 @@ public func __init_Core_ui_repeater_index() {
467
467
  if oldValue is ObservableArray {
468
468
  #sourceLocation(file:"@nativescript/core/ui.repeater.index.ts",line:258)
469
469
  try Core_ui_core_weak_event_listener_index.removeWeakEventListener(
470
- { (__o: Any?) -> ObservableArray in
471
- (jsFlat(__o) as? ObservableArray) ?? ObservableArray(jsObject: __o)
472
- }(oldValue), ObservableArray.changeEvent,
470
+ (oldValue as? ObservableArray), ObservableArray.changeEvent,
473
471
  FunctionCell_EventDataOpt_to_Void.adapting(
474
472
  jsMethodValue(jsUnwrap(target, "_onItemsChanged"), "_onItemsChanged") {
475
473
  __r, __i in
@@ -485,9 +483,7 @@ public func __init_Core_ui_repeater_index() {
485
483
  if newValue is ObservableArray {
486
484
  #sourceLocation(file:"@nativescript/core/ui.repeater.index.ts",line:262)
487
485
  try Core_ui_core_weak_event_listener_index.addWeakEventListener(
488
- { (__o: Any?) -> ObservableArray in
489
- (jsFlat(__o) as? ObservableArray) ?? ObservableArray(jsObject: __o)
490
- }(newValue), ObservableArray.changeEvent,
486
+ (newValue as? ObservableArray), ObservableArray.changeEvent,
491
487
  FunctionCell_EventDataOpt_to_Void.adapting(
492
488
  jsMethodValue(jsUnwrap(target, "_onItemsChanged"), "_onItemsChanged") {
493
489
  __r, __i in
@@ -172,11 +172,15 @@ open class ScrollView: ScrollViewBase {
172
172
  }
173
173
  #sourceLocation()
174
174
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
175
- if key == ((Core_ui_scroll_view_scroll_view_common.isScrollEnabledProperty?.getDefault)?.key ?? "undefined") {
175
+ if key
176
+ == (try? ((Core_ui_scroll_view_scroll_view_common.isScrollEnabledProperty?.getDefault)?.key ?? "undefined"))
177
+ {
176
178
  return { __this, __a in return try (jsCastPresent(__this) as ScrollView).symbol_getDefault_isScrollEnabled()
177
179
  }
178
180
  }
179
- if key == ((Core_ui_scroll_view_scroll_view_common.isScrollEnabledProperty?.setNative)?.key ?? "undefined") {
181
+ if key
182
+ == (try? ((Core_ui_scroll_view_scroll_view_common.isScrollEnabledProperty?.setNative)?.key ?? "undefined"))
183
+ {
180
184
  return { __this, __a in
181
185
  try (jsCastPresent(__this) as ScrollView).symbol_setNative_isScrollEnabled(
182
186
  (try jsConvertedBool(jsArg(__a, 0))))
@@ -184,16 +188,18 @@ open class ScrollView: ScrollViewBase {
184
188
  }
185
189
  }
186
190
  if key
187
- == ((Core_ui_scroll_view_scroll_view_common.scrollBarIndicatorVisibleProperty?.getDefault)?.key
188
- ?? "undefined")
191
+ == (try?
192
+ ((Core_ui_scroll_view_scroll_view_common.scrollBarIndicatorVisibleProperty?.getDefault)?.key
193
+ ?? "undefined"))
189
194
  {
190
195
  return { __this, __a in
191
196
  return try (jsCastPresent(__this) as ScrollView).symbol_getDefault_scrollBarIndicatorVisible()
192
197
  }
193
198
  }
194
199
  if key
195
- == ((Core_ui_scroll_view_scroll_view_common.scrollBarIndicatorVisibleProperty?.setNative)?.key
196
- ?? "undefined")
200
+ == (try?
201
+ ((Core_ui_scroll_view_scroll_view_common.scrollBarIndicatorVisibleProperty?.setNative)?.key
202
+ ?? "undefined"))
197
203
  {
198
204
  return { __this, __a in
199
205
  try (jsCastPresent(__this) as ScrollView).symbol_setNative_scrollBarIndicatorVisible(
@@ -202,8 +208,9 @@ open class ScrollView: ScrollViewBase {
202
208
  }
203
209
  }
204
210
  if key
205
- == ((Core_ui_scroll_view_scroll_view_common.iosContentInsetAdjustmentBehaviorProperty?.setNative)?.key
206
- ?? "undefined")
211
+ == (try?
212
+ ((Core_ui_scroll_view_scroll_view_common.iosContentInsetAdjustmentBehaviorProperty?.setNative)?.key
213
+ ?? "undefined"))
207
214
  {
208
215
  return { __this, __a in
209
216
  try (jsCastPresent(__this) as ScrollView).symbol_setNative_iosContentInsetAdjustmentBehavior(
@@ -211,7 +218,9 @@ open class ScrollView: ScrollViewBase {
211
218
  return nil
212
219
  }
213
220
  }
214
- if key == ((Core_ui_scroll_view_scroll_view_common.iosScrollEdgeEffectProperty?.setNative)?.key ?? "undefined")
221
+ if key
222
+ == (try?
223
+ ((Core_ui_scroll_view_scroll_view_common.iosScrollEdgeEffectProperty?.setNative)?.key ?? "undefined"))
215
224
  {
216
225
  return { __this, __a in
217
226
  try (jsCastPresent(__this) as ScrollView).symbol_setNative_iosScrollEdgeEffect(
@@ -328,97 +328,107 @@ open class SearchBar: SearchBarBase {
328
328
  }
329
329
  #sourceLocation()
330
330
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
331
- if key == ((Core_ui_core_view_view_common.isEnabledProperty?.setNative)?.key ?? "undefined") {
331
+ if key == (try? ((Core_ui_core_view_view_common.isEnabledProperty?.setNative)?.key ?? "undefined")) {
332
332
  return { __this, __a in
333
333
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_isEnabled_SearchBar(
334
334
  (try jsConvertedBool(jsArg(__a, 0))))
335
335
  return nil
336
336
  }
337
337
  }
338
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined") {
338
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined")) {
339
339
  return { __this, __a in return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_backgroundColor()
340
340
  }
341
341
  }
342
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined") {
342
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined")) {
343
343
  return { __this, __a in
344
344
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_backgroundColor(jsArg(__a, 0))
345
345
  return nil
346
346
  }
347
347
  }
348
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
348
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
349
349
  return { __this, __a in return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_color() }
350
350
  }
351
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
351
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
352
352
  return { __this, __a in
353
353
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_color(jsArg(__a, 0))
354
354
  return nil
355
355
  }
356
356
  }
357
- if key == ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined") {
357
+ if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined")) {
358
358
  return { __this, __a in return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_fontInternal() }
359
359
  }
360
- if key == ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined") {
360
+ if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined")) {
361
361
  return { __this, __a in
362
362
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_fontInternal(jsArg(__a, 0))
363
363
  return nil
364
364
  }
365
365
  }
366
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined") {
366
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined"))
367
+ {
367
368
  return { __this, __a in
368
369
  return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_backgroundInternal_SearchBar()
369
370
  }
370
371
  }
371
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined") {
372
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined"))
373
+ {
372
374
  return { __this, __a in
373
375
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_backgroundInternal_SearchBar(nil)
374
376
  return nil
375
377
  }
376
378
  }
377
- if key == ((Core_ui_search_bar_search_bar_common.textProperty?.getDefault)?.key ?? "undefined") {
379
+ if key == (try? ((Core_ui_search_bar_search_bar_common.textProperty?.getDefault)?.key ?? "undefined")) {
378
380
  return { __this, __a in return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_text() }
379
381
  }
380
- if key == ((Core_ui_search_bar_search_bar_common.textProperty?.setNative)?.key ?? "undefined") {
382
+ if key == (try? ((Core_ui_search_bar_search_bar_common.textProperty?.setNative)?.key ?? "undefined")) {
381
383
  return { __this, __a in
382
384
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_text((try jsConvertedString(jsArg(__a, 0))))
383
385
  return nil
384
386
  }
385
387
  }
386
- if key == ((Core_ui_search_bar_search_bar_common.hintProperty?.getDefault)?.key ?? "undefined") {
388
+ if key == (try? ((Core_ui_search_bar_search_bar_common.hintProperty?.getDefault)?.key ?? "undefined")) {
387
389
  return { __this, __a in return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_hint() }
388
390
  }
389
- if key == ((Core_ui_search_bar_search_bar_common.hintProperty?.setNative)?.key ?? "undefined") {
391
+ if key == (try? ((Core_ui_search_bar_search_bar_common.hintProperty?.setNative)?.key ?? "undefined")) {
390
392
  return { __this, __a in
391
393
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_hint("")
392
394
  return nil
393
395
  }
394
396
  }
395
397
  if key
396
- == ((Core_ui_search_bar_search_bar_common.textFieldBackgroundColorProperty?.getDefault)?.key ?? "undefined")
398
+ == (try?
399
+ ((Core_ui_search_bar_search_bar_common.textFieldBackgroundColorProperty?.getDefault)?.key ?? "undefined"))
397
400
  {
398
401
  return { __this, __a in
399
402
  return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_textFieldBackgroundColor()
400
403
  }
401
404
  }
402
405
  if key
403
- == ((Core_ui_search_bar_search_bar_common.textFieldBackgroundColorProperty?.setNative)?.key ?? "undefined")
406
+ == (try?
407
+ ((Core_ui_search_bar_search_bar_common.textFieldBackgroundColorProperty?.setNative)?.key ?? "undefined"))
404
408
  {
405
409
  return { __this, __a in
406
410
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_textFieldBackgroundColor(jsArg(__a, 0))
407
411
  return nil
408
412
  }
409
413
  }
410
- if key == ((Core_ui_search_bar_search_bar_common.textFieldHintColorProperty?.getDefault)?.key ?? "undefined") {
414
+ if key
415
+ == (try? ((Core_ui_search_bar_search_bar_common.textFieldHintColorProperty?.getDefault)?.key ?? "undefined"))
416
+ {
411
417
  return { __this, __a in
412
418
  return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_textFieldHintColor()
413
419
  }
414
420
  }
415
- if key == ((Core_ui_search_bar_search_bar_common.textFieldHintColorProperty?.setNative)?.key ?? "undefined") {
421
+ if key
422
+ == (try? ((Core_ui_search_bar_search_bar_common.textFieldHintColorProperty?.setNative)?.key ?? "undefined"))
423
+ {
416
424
  return { __this, __a in
417
425
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_textFieldHintColor(nil)
418
426
  return nil
419
427
  }
420
428
  }
421
- if key == ((Core_ui_search_bar_search_bar_common.clearButtonColorProperty?.setNative)?.key ?? "undefined") {
429
+ if key
430
+ == (try? ((Core_ui_search_bar_search_bar_common.clearButtonColorProperty?.setNative)?.key ?? "undefined"))
431
+ {
422
432
  return { __this, __a in
423
433
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_clearButtonColor(jsArg(__a, 0))
424
434
  return nil
@@ -198,21 +198,26 @@ open class SegmentedBar: SegmentedBarBase {
198
198
  }
199
199
  #sourceLocation()
200
200
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
201
- if key == ((Core_ui_segmented_bar_segmented_bar_common.selectedIndexProperty?.getDefault)?.key ?? "undefined") {
201
+ if key
202
+ == (try?
203
+ ((Core_ui_segmented_bar_segmented_bar_common.selectedIndexProperty?.getDefault)?.key ?? "undefined"))
204
+ {
202
205
  return { __this, __a in return try (jsCastPresent(__this) as SegmentedBar).symbol_getDefault_selectedIndex()
203
206
  }
204
207
  }
205
- if key == ((Core_ui_segmented_bar_segmented_bar_common.selectedIndexProperty?.setNative)?.key ?? "undefined") {
208
+ if key
209
+ == (try? ((Core_ui_segmented_bar_segmented_bar_common.selectedIndexProperty?.setNative)?.key ?? "undefined"))
210
+ {
206
211
  return { __this, __a in
207
212
  try (jsCastPresent(__this) as SegmentedBar).symbol_setNative_selectedIndex(
208
213
  (try jsConvertedNumber(jsArg(__a, 0))))
209
214
  return nil
210
215
  }
211
216
  }
212
- if key == ((Core_ui_segmented_bar_segmented_bar_common.itemsProperty?.getDefault)?.key ?? "undefined") {
217
+ if key == (try? ((Core_ui_segmented_bar_segmented_bar_common.itemsProperty?.getDefault)?.key ?? "undefined")) {
213
218
  return { __this, __a in return try (jsCastPresent(__this) as SegmentedBar).symbol_getDefault_items() }
214
219
  }
215
- if key == ((Core_ui_segmented_bar_segmented_bar_common.itemsProperty?.setNative)?.key ?? "undefined") {
220
+ if key == (try? ((Core_ui_segmented_bar_segmented_bar_common.itemsProperty?.setNative)?.key ?? "undefined")) {
216
221
  return { __this, __a in
217
222
  try (jsCastPresent(__this) as SegmentedBar).symbol_setNative_items(
218
223
  try jsArrayOrNil(
@@ -222,36 +227,38 @@ open class SegmentedBar: SegmentedBarBase {
222
227
  }
223
228
  }
224
229
  if key
225
- == ((Core_ui_segmented_bar_segmented_bar_common.selectedBackgroundColorProperty?.getDefault)?.key
226
- ?? "undefined")
230
+ == (try?
231
+ ((Core_ui_segmented_bar_segmented_bar_common.selectedBackgroundColorProperty?.getDefault)?.key
232
+ ?? "undefined"))
227
233
  {
228
234
  return { __this, __a in
229
235
  return try (jsCastPresent(__this) as SegmentedBar).symbol_getDefault_selectedBackgroundColor()
230
236
  }
231
237
  }
232
238
  if key
233
- == ((Core_ui_segmented_bar_segmented_bar_common.selectedBackgroundColorProperty?.setNative)?.key
234
- ?? "undefined")
239
+ == (try?
240
+ ((Core_ui_segmented_bar_segmented_bar_common.selectedBackgroundColorProperty?.setNative)?.key
241
+ ?? "undefined"))
235
242
  {
236
243
  return { __this, __a in
237
244
  try (jsCastPresent(__this) as SegmentedBar).symbol_setNative_selectedBackgroundColor(jsArg(__a, 0))
238
245
  return nil
239
246
  }
240
247
  }
241
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
248
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
242
249
  return { __this, __a in return try (jsCastPresent(__this) as SegmentedBar).symbol_getDefault_color() }
243
250
  }
244
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
251
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
245
252
  return { __this, __a in
246
253
  try (jsCastPresent(__this) as SegmentedBar).symbol_setNative_color(jsArg(__a, 0))
247
254
  return nil
248
255
  }
249
256
  }
250
- if key == ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined") {
257
+ if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined")) {
251
258
  return { __this, __a in return try (jsCastPresent(__this) as SegmentedBar).symbol_getDefault_fontInternal()
252
259
  }
253
260
  }
254
- if key == ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined") {
261
+ if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined")) {
255
262
  return { __this, __a in
256
263
  try (jsCastPresent(__this) as SegmentedBar).symbol_setNative_fontInternal(
257
264
  (try jsCast(jsArg(__a, 0), Font__font_ios.self)))
@@ -232,57 +232,59 @@ open class Slider: SliderBase {
232
232
  }
233
233
  #sourceLocation()
234
234
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
235
- if key == ((Core_ui_slider_slider_common.valueProperty?.getDefault)?.key ?? "undefined") {
235
+ if key == (try? ((Core_ui_slider_slider_common.valueProperty?.getDefault)?.key ?? "undefined")) {
236
236
  return { __this, __a in return try (jsCastPresent(__this) as Slider).symbol_getDefault_value() }
237
237
  }
238
- if key == ((Core_ui_slider_slider_common.valueProperty?.setNative)?.key ?? "undefined") {
238
+ if key == (try? ((Core_ui_slider_slider_common.valueProperty?.setNative)?.key ?? "undefined")) {
239
239
  return { __this, __a in
240
240
  try (jsCastPresent(__this) as Slider).symbol_setNative_value((try jsConvertedNumber(jsArg(__a, 0))))
241
241
  return nil
242
242
  }
243
243
  }
244
- if key == ((Core_ui_slider_slider_common.minValueProperty?.getDefault)?.key ?? "undefined") {
244
+ if key == (try? ((Core_ui_slider_slider_common.minValueProperty?.getDefault)?.key ?? "undefined")) {
245
245
  return { __this, __a in return try (jsCastPresent(__this) as Slider).symbol_getDefault_minValue() }
246
246
  }
247
- if key == ((Core_ui_slider_slider_common.minValueProperty?.setNative)?.key ?? "undefined") {
247
+ if key == (try? ((Core_ui_slider_slider_common.minValueProperty?.setNative)?.key ?? "undefined")) {
248
248
  return { __this, __a in
249
249
  try (jsCastPresent(__this) as Slider).symbol_setNative_minValue((try jsConvertedNumber(jsArg(__a, 0))))
250
250
  return nil
251
251
  }
252
252
  }
253
- if key == ((Core_ui_slider_slider_common.maxValueProperty?.getDefault)?.key ?? "undefined") {
253
+ if key == (try? ((Core_ui_slider_slider_common.maxValueProperty?.getDefault)?.key ?? "undefined")) {
254
254
  return { __this, __a in return try (jsCastPresent(__this) as Slider).symbol_getDefault_maxValue() }
255
255
  }
256
- if key == ((Core_ui_slider_slider_common.maxValueProperty?.setNative)?.key ?? "undefined") {
256
+ if key == (try? ((Core_ui_slider_slider_common.maxValueProperty?.setNative)?.key ?? "undefined")) {
257
257
  return { __this, __a in
258
258
  try (jsCastPresent(__this) as Slider).symbol_setNative_maxValue((try jsConvertedNumber(jsArg(__a, 0))))
259
259
  return nil
260
260
  }
261
261
  }
262
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
262
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
263
263
  return { __this, __a in return try (jsCastPresent(__this) as Slider).symbol_getDefault_color() }
264
264
  }
265
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
265
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
266
266
  return { __this, __a in
267
267
  try (jsCastPresent(__this) as Slider).symbol_setNative_color(jsArg(__a, 0))
268
268
  return nil
269
269
  }
270
270
  }
271
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined") {
271
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined")) {
272
272
  return { __this, __a in return try (jsCastPresent(__this) as Slider).symbol_getDefault_backgroundColor() }
273
273
  }
274
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined") {
274
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined")) {
275
275
  return { __this, __a in
276
276
  try (jsCastPresent(__this) as Slider).symbol_setNative_backgroundColor(jsArg(__a, 0))
277
277
  return nil
278
278
  }
279
279
  }
280
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined") {
280
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined"))
281
+ {
281
282
  return { __this, __a in
282
283
  return try (jsCastPresent(__this) as Slider).symbol_getDefault_backgroundInternal_Slider()
283
284
  }
284
285
  }
285
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined") {
286
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined"))
287
+ {
286
288
  return { __this, __a in
287
289
  try (jsCastPresent(__this) as Slider).symbol_setNative_backgroundInternal_Slider(
288
290
  (try jsCast(jsArg(__a, 0), Background.self)))
@@ -333,21 +333,22 @@ open class SplitView: SplitViewBase {
333
333
  }
334
334
  #sourceLocation()
335
335
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
336
- if key == ((Core_ui_split_view_split_view_common.displayModeProperty?.setNative)?.key ?? "undefined") {
336
+ if key == (try? ((Core_ui_split_view_split_view_common.displayModeProperty?.setNative)?.key ?? "undefined")) {
337
337
  return { __this, __a in
338
338
  try (jsCastPresent(__this) as SplitView).symbol_setNative_displayMode("")
339
339
  return nil
340
340
  }
341
341
  }
342
- if key == ((Core_ui_split_view_split_view_common.splitBehaviorProperty?.setNative)?.key ?? "undefined") {
342
+ if key == (try? ((Core_ui_split_view_split_view_common.splitBehaviorProperty?.setNative)?.key ?? "undefined")) {
343
343
  return { __this, __a in
344
344
  try (jsCastPresent(__this) as SplitView).symbol_setNative_splitBehavior("")
345
345
  return nil
346
346
  }
347
347
  }
348
348
  if key
349
- == ((Core_ui_split_view_split_view_common.preferredPrimaryColumnWidthFractionProperty?.setNative)?.key
350
- ?? "undefined")
349
+ == (try?
350
+ ((Core_ui_split_view_split_view_common.preferredPrimaryColumnWidthFractionProperty?.setNative)?.key
351
+ ?? "undefined"))
351
352
  {
352
353
  return { __this, __a in
353
354
  try (jsCastPresent(__this) as SplitView).symbol_setNative_preferredPrimaryColumnWidthFraction(0)
@@ -355,8 +356,9 @@ open class SplitView: SplitViewBase {
355
356
  }
356
357
  }
357
358
  if key
358
- == ((Core_ui_split_view_split_view_common.preferredSupplementaryColumnWidthFractionProperty?.setNative)?.key
359
- ?? "undefined")
359
+ == (try?
360
+ ((Core_ui_split_view_split_view_common.preferredSupplementaryColumnWidthFractionProperty?.setNative)?
361
+ .key ?? "undefined"))
360
362
  {
361
363
  return { __this, __a in
362
364
  try (jsCastPresent(__this) as SplitView).symbol_setNative_preferredSupplementaryColumnWidthFraction(0)
@@ -364,15 +366,18 @@ open class SplitView: SplitViewBase {
364
366
  }
365
367
  }
366
368
  if key
367
- == ((Core_ui_split_view_split_view_common.preferredInspectorColumnWidthFractionProperty?.setNative)?.key
368
- ?? "undefined")
369
+ == (try?
370
+ ((Core_ui_split_view_split_view_common.preferredInspectorColumnWidthFractionProperty?.setNative)?.key
371
+ ?? "undefined"))
369
372
  {
370
373
  return { __this, __a in
371
374
  try (jsCastPresent(__this) as SplitView).symbol_setNative_preferredInspectorColumnWidthFraction(0)
372
375
  return nil
373
376
  }
374
377
  }
375
- if key == ((Core_ui_split_view_split_view_common.navigationBarTintColorProperty?.setNative)?.key ?? "undefined")
378
+ if key
379
+ == (try?
380
+ ((Core_ui_split_view_split_view_common.navigationBarTintColorProperty?.setNative)?.key ?? "undefined"))
376
381
  {
377
382
  return { __this, __a in
378
383
  try (jsCastPresent(__this) as SplitView).symbol_setNative_navigationBarTintColor(nil)
@@ -871,7 +876,7 @@ open class SplitView: SplitViewBase {
871
876
  #sourceLocation(file:"@nativescript/core/ui.split-view.index.ios.ts",line:399)
872
877
  if !jsTruthy(targetVC) {
873
878
  #sourceLocation(file:"@nativescript/core/ui.split-view.index.ios.ts",line:401)
874
- let frameChild: Any? = try jsUnwrap(self._children, "get").get("secondary")
879
+ let frameChild: Any? = try (jsUnwrap(self._children, "get").get("secondary") as Any?)
875
880
  #sourceLocation(file:"@nativescript/core/ui.split-view.index.ios.ts",line:402)
876
881
  if try
877
882
  ((jsTruthy(frameChild) && jsTruthy(jsGet(frameChild, "on")))
@@ -935,7 +940,7 @@ open class SplitView: SplitViewBase {
935
940
  #sourceLocation(file:"@nativescript/core/ui.split-view.index.ios.ts",line:433)
936
941
  if !jsTruthy(targetVC) {
937
942
  #sourceLocation(file:"@nativescript/core/ui.split-view.index.ios.ts",line:435)
938
- let frameChild: Any? = try jsUnwrap(self._children, "get").get("primary")
943
+ let frameChild: Any? = try (jsUnwrap(self._children, "get").get("primary") as Any?)
939
944
  #sourceLocation(file:"@nativescript/core/ui.split-view.index.ios.ts",line:436)
940
945
  if try
941
946
  ((jsTruthy(frameChild) && jsTruthy(jsGet(frameChild, "on")))
@@ -1016,7 +1021,7 @@ open class SplitView: SplitViewBase {
1016
1021
  #sourceLocation(file:"@nativescript/core/ui.split-view.index.ios.ts",line:474)
1017
1022
  if !jsTruthy(targetVC) {
1018
1023
  #sourceLocation(file:"@nativescript/core/ui.split-view.index.ios.ts",line:476)
1019
- let frameChild: Any? = try jsUnwrap(self._children, "get").get("inspector")
1024
+ let frameChild: Any? = try (jsUnwrap(self._children, "get").get("inspector") as Any?)
1020
1025
  #sourceLocation(file:"@nativescript/core/ui.split-view.index.ios.ts",line:477)
1021
1026
  if try
1022
1027
  ((jsTruthy(frameChild) && jsTruthy(jsGet(frameChild, "on")))
@@ -794,9 +794,9 @@ public enum Core_ui_styling_background {
794
794
  #sourceLocation(file:"@nativescript/core/ui.styling.background.ios.ts",line:535)
795
795
  if try jsUnwrap(values, "length").length == 2 {
796
796
  #sourceLocation(file:"@nativescript/core/ui.styling.background.ios.ts",line:536)
797
- let vx: Any? = try (jsUnwrap(values, "0").element(0) ?? nil)
797
+ let vx: Any? = try ((jsUnwrap(values, "0").element(0) ?? nil) as Any?)
798
798
  #sourceLocation(file:"@nativescript/core/ui.styling.background.ios.ts",line:537)
799
- let vy: Any? = try (jsUnwrap(values, "1").element(1) ?? nil)
799
+ let vy: Any? = try ((jsUnwrap(values, "1").element(1) ?? nil) as Any?)
800
800
  #sourceLocation(file:"@nativescript/core/ui.styling.background.ios.ts",line:538)
801
801
  if try jsStrictEquals(jsGet(vx, "unit"), "%") && jsStrictEquals(jsGet(vy, "unit"), "%") {
802
802
  #sourceLocation(file:"@nativescript/core/ui.styling.background.ios.ts",line:539)
@@ -15,7 +15,7 @@ import SystemConfiguration
15
15
  import UIKit
16
16
  import WebKit
17
17
 
18
- public protocol IClipPathFunction: JSDynamic {
18
+ @MainActor public protocol IClipPathFunction: JSDynamic {
19
19
  var shape: String { get }
20
20
  var rule: String { get }
21
21
  }
@@ -111,7 +111,7 @@ open class CssAnimationParser: JSDynamic, JSExpando, JSStaticKeyed {
111
111
  return __literal1
112
112
  }()
113
113
  #sourceLocation(file:"@nativescript/core/ui.styling.css-animation-parser.ts",line:67)
114
- try jsUnwrap(current, setting: "duration").duration = jsLenientNumber(time)
114
+ try jsUnwrap(current, setting: "duration").duration = try jsConvertedNumber(time)
115
115
  #sourceLocation(file:"@nativescript/core/ui.styling.css-animation-parser.ts",line:68)
116
116
  try jsUnwrap(current, setting: "declarations").declarations = JSArray<KeyframeDeclaration>()
117
117
  #sourceLocation(file:"@nativescript/core/ui.styling.css-animation-parser.ts",line:69)
@@ -15,7 +15,7 @@ import SystemConfiguration
15
15
  import UIKit
16
16
  import WebKit
17
17
 
18
- public protocol ChangeAccumulator: JSDynamic {
18
+ @MainActor public protocol ChangeAccumulator: JSDynamic {
19
19
  func addAttribute(_ node: Any?, _ attribute: String) throws
20
20
  func addPseudoClass(_ node: Any?, _ pseudoClass: String) throws
21
21
  }
@@ -3288,7 +3288,7 @@ open class SelectorsMatch: ChangeAccumulator, JSExpando, JSKeysMade, JSStaticKey
3288
3288
  #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1471)
3289
3289
  _ = try jsCallMethod(
3290
3290
  changeMap, "set", node,
3291
- ({ () -> JSObject in
3291
+ ({ () -> JSObject? in
3292
3292
  set = JSObject([])
3293
3293
  return (set as? JSObject)
3294
3294
  }()))
@@ -369,10 +369,10 @@ public enum Core_ui_styling_font_common {
369
369
  try jsSet(result, "fontVariant", (part as Any?))
370
370
  } else if Core_ui_styling_font_common.styles.has((part ?? "undefined")) {
371
371
  #sourceLocation(file:"@nativescript/core/ui.styling.font-common.ts",line:185)
372
- try jsSet(result, "fontStyle", (part ?? "undefined"))
372
+ try jsSet(result, "fontStyle", (part as Any?))
373
373
  } else if Core_ui_styling_font_common.weights.has((part ?? "undefined")) {
374
374
  #sourceLocation(file:"@nativescript/core/ui.styling.font-common.ts",line:187)
375
- try jsSet(result, "fontWeight", (part ?? "undefined"))
375
+ try jsSet(result, "fontWeight", (part as Any?))
376
376
  } else if try !(jsTruthy(jsGet(result, "fontSize"))) {
377
377
  #sourceLocation(file:"@nativescript/core/ui.styling.font-common.ts",line:189)
378
378
  let sizes: JSArray<String>? = jsSplit((part ?? "undefined"), "/", nil)