@nstudio/nativescript-compiler 9.2.0-alpha.18 → 9.2.0-alpha.20

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 (85) hide show
  1. package/config.js +1 -0
  2. package/dist/kotlin/arguments.js +6 -0
  3. package/dist/kotlin/class-methods.js +4 -4
  4. package/dist/kotlin/overrides.js +1 -1
  5. package/dist/kotlin/placement.js +23 -2
  6. package/dist/kotlin/untyped-values.js +5 -0
  7. package/dist/semantics/conversion.js +9 -1
  8. package/dist/semantics/runtime.js +1 -0
  9. package/dist/semantics/signals.js +1 -1
  10. package/dist/semantics/throws.js +1 -1
  11. package/dist/swift/arguments.js +14 -9
  12. package/dist/swift/assignment.js +6 -1
  13. package/dist/swift/calls.js +7 -2
  14. package/dist/swift/class-methods.js +2 -1
  15. package/dist/swift/library.js +2 -2
  16. package/dist/swift/method-values.js +2 -1
  17. package/dist/swift/names.js +4 -4
  18. package/dist/swift/native/calls.js +9 -3
  19. package/dist/swift/placement.js +18 -3
  20. package/dist/swift/static-calls.js +1 -1
  21. package/dist/swift/syntax.js +1 -1
  22. package/dist/swift/types.js +2 -2
  23. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +8 -0
  24. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +16 -0
  25. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +2 -0
  26. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +38 -37
  27. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +9 -0
  28. package/kit-android/generated/source-lines.json +1 -1
  29. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +9 -0
  30. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Dynamic.kt +28 -13
  31. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +10 -2
  32. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +11 -10
  33. package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +6 -2
  34. package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +1 -1
  35. package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +7 -7
  36. package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +10 -10
  37. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +1 -1
  38. package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +3 -3
  39. package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +2 -2
  40. package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +4 -22
  41. package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +2 -1
  42. package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +33 -21
  43. package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +12 -6
  44. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1 -1
  45. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +6 -2
  46. package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +14 -13
  47. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +8 -7
  48. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +79 -59
  49. package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +17 -16
  50. package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +2 -2
  51. package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +27 -18
  52. package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +9 -9
  53. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +6 -6
  54. package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +8 -8
  55. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +4 -3
  56. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +1 -1
  57. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +1 -1
  58. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +2 -2
  59. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +9 -9
  60. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +9 -6
  61. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +38 -20
  62. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +2 -2
  63. package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +12 -10
  64. package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +18 -9
  65. package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +28 -18
  66. package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +19 -12
  67. package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +14 -12
  68. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +14 -9
  69. package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +12 -10
  70. package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +36 -20
  71. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +2 -2
  72. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +25 -22
  73. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +2 -3
  74. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +21 -14
  75. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +33 -21
  76. package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +22 -18
  77. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +15 -15
  78. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +1 -1
  79. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +2 -2
  80. package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +2 -2
  81. package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +6 -2
  82. package/kit-apple/Sources/NativeScriptKit/Runtime/Functions.swift +3 -1
  83. package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +2 -1
  84. package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +5 -2
  85. package/package.json +5 -3
@@ -467,41 +467,41 @@ open class TextBase: TextBaseCommon {
467
467
  }
468
468
  #sourceLocation()
469
469
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
470
- if key == ((Core_ui_text_base_text_base_common.textProperty?.getDefault)?.key ?? "undefined") {
470
+ if key == (try? ((Core_ui_text_base_text_base_common.textProperty?.getDefault)?.key ?? "undefined")) {
471
471
  return { __this, __a in return try (jsCastPresent(__this) as TextBase).symbol_getDefault_text() }
472
472
  }
473
- if key == ((Core_ui_text_base_text_base_common.textProperty?.setNative)?.key ?? "undefined") {
473
+ if key == (try? ((Core_ui_text_base_text_base_common.textProperty?.setNative)?.key ?? "undefined")) {
474
474
  return { __this, __a in
475
475
  try (jsCastPresent(__this) as TextBase).symbol_setNative_text(jsArg(__a, 0))
476
476
  return nil
477
477
  }
478
478
  }
479
- if key == ((Core_ui_text_base_text_base_common.formattedTextProperty?.setNative)?.key ?? "undefined") {
479
+ if key == (try? ((Core_ui_text_base_text_base_common.formattedTextProperty?.setNative)?.key ?? "undefined")) {
480
480
  return { __this, __a in
481
481
  try (jsCastPresent(__this) as TextBase).symbol_setNative_formattedText(
482
482
  (try jsCast(jsArg(__a, 0), FormattedString.self)))
483
483
  return nil
484
484
  }
485
485
  }
486
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
486
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
487
487
  return { __this, __a in return try (jsCastPresent(__this) as TextBase).symbol_getDefault_color() }
488
488
  }
489
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
489
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
490
490
  return { __this, __a in
491
491
  try (jsCastPresent(__this) as TextBase).symbol_setNative_color(jsArg(__a, 0))
492
492
  return nil
493
493
  }
494
494
  }
495
- if key == ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined") {
495
+ if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined")) {
496
496
  return { __this, __a in return try (jsCastPresent(__this) as TextBase).symbol_getDefault_fontInternal() }
497
497
  }
498
- if key == ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined") {
498
+ if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined")) {
499
499
  return { __this, __a in
500
500
  try (jsCastPresent(__this) as TextBase).symbol_setNative_fontInternal(jsArg(__a, 0))
501
501
  return nil
502
502
  }
503
503
  }
504
- if key == ((Core_ui_styling_style_properties.fontScaleInternalProperty?.setNative)?.key ?? "undefined") {
504
+ if key == (try? ((Core_ui_styling_style_properties.fontScaleInternalProperty?.setNative)?.key ?? "undefined")) {
505
505
  return { __this, __a in
506
506
  try (jsCastPresent(__this) as TextBase).symbol_setNative_fontScaleInternal(
507
507
  (try jsConvertedNumber(jsArg(__a, 0))))
@@ -509,8 +509,9 @@ open class TextBase: TextBaseCommon {
509
509
  }
510
510
  }
511
511
  if key
512
- == ((Core_accessibility_accessibility_properties.iosAccessibilityAdjustsFontSizeProperty?.setNative)?.key
513
- ?? "undefined")
512
+ == (try?
513
+ ((Core_accessibility_accessibility_properties.iosAccessibilityAdjustsFontSizeProperty?.setNative)?.key
514
+ ?? "undefined"))
514
515
  {
515
516
  return { __this, __a in
516
517
  try (jsCastPresent(__this) as TextBase).symbol_setNative_iosAccessibilityAdjustsFontSize(false)
@@ -518,8 +519,9 @@ open class TextBase: TextBaseCommon {
518
519
  }
519
520
  }
520
521
  if key
521
- == ((Core_accessibility_accessibility_properties.iosAccessibilityMinFontScaleProperty?.setNative)?.key
522
- ?? "undefined")
522
+ == (try?
523
+ ((Core_accessibility_accessibility_properties.iosAccessibilityMinFontScaleProperty?.setNative)?.key
524
+ ?? "undefined"))
523
525
  {
524
526
  return { __this, __a in
525
527
  try (jsCastPresent(__this) as TextBase).symbol_setNative_iosAccessibilityMinFontScale(0)
@@ -527,58 +529,59 @@ open class TextBase: TextBaseCommon {
527
529
  }
528
530
  }
529
531
  if key
530
- == ((Core_accessibility_accessibility_properties.iosAccessibilityMaxFontScaleProperty?.setNative)?.key
531
- ?? "undefined")
532
+ == (try?
533
+ ((Core_accessibility_accessibility_properties.iosAccessibilityMaxFontScaleProperty?.setNative)?.key
534
+ ?? "undefined"))
532
535
  {
533
536
  return { __this, __a in
534
537
  try (jsCastPresent(__this) as TextBase).symbol_setNative_iosAccessibilityMaxFontScale(0)
535
538
  return nil
536
539
  }
537
540
  }
538
- if key == ((Core_ui_text_base_text_base_common.textAlignmentProperty?.setNative)?.key ?? "undefined") {
541
+ if key == (try? ((Core_ui_text_base_text_base_common.textAlignmentProperty?.setNative)?.key ?? "undefined")) {
539
542
  return { __this, __a in
540
543
  try (jsCastPresent(__this) as TextBase).symbol_setNative_textAlignment(
541
544
  (try jsConvertedString(jsArg(__a, 0))))
542
545
  return nil
543
546
  }
544
547
  }
545
- if key == ((Core_ui_text_base_text_base_common.textDecorationProperty?.setNative)?.key ?? "undefined") {
548
+ if key == (try? ((Core_ui_text_base_text_base_common.textDecorationProperty?.setNative)?.key ?? "undefined")) {
546
549
  return { __this, __a in
547
550
  try (jsCastPresent(__this) as TextBase).symbol_setNative_textDecoration("")
548
551
  return nil
549
552
  }
550
553
  }
551
- if key == ((Core_ui_text_base_text_base_common.textTransformProperty?.setNative)?.key ?? "undefined") {
554
+ if key == (try? ((Core_ui_text_base_text_base_common.textTransformProperty?.setNative)?.key ?? "undefined")) {
552
555
  return { __this, __a in
553
556
  try (jsCastPresent(__this) as TextBase).symbol_setNative_textTransform("")
554
557
  return nil
555
558
  }
556
559
  }
557
- if key == ((Core_ui_text_base_text_base_common.textStrokeProperty?.setNative)?.key ?? "undefined") {
560
+ if key == (try? ((Core_ui_text_base_text_base_common.textStrokeProperty?.setNative)?.key ?? "undefined")) {
558
561
  return { __this, __a in
559
562
  try (jsCastPresent(__this) as TextBase).symbol_setNative_textStroke(nil)
560
563
  return nil
561
564
  }
562
565
  }
563
- if key == ((Core_ui_text_base_text_base_common.letterSpacingProperty?.setNative)?.key ?? "undefined") {
566
+ if key == (try? ((Core_ui_text_base_text_base_common.letterSpacingProperty?.setNative)?.key ?? "undefined")) {
564
567
  return { __this, __a in
565
568
  try (jsCastPresent(__this) as TextBase).symbol_setNative_letterSpacing(0)
566
569
  return nil
567
570
  }
568
571
  }
569
- if key == ((Core_ui_text_base_text_base_common.lineHeightProperty?.setNative)?.key ?? "undefined") {
572
+ if key == (try? ((Core_ui_text_base_text_base_common.lineHeightProperty?.setNative)?.key ?? "undefined")) {
570
573
  return { __this, __a in
571
574
  try (jsCastPresent(__this) as TextBase).symbol_setNative_lineHeight(0)
572
575
  return nil
573
576
  }
574
577
  }
575
- if key == ((Core_ui_text_base_text_base_common.textShadowProperty?.setNative)?.key ?? "undefined") {
578
+ if key == (try? ((Core_ui_text_base_text_base_common.textShadowProperty?.setNative)?.key ?? "undefined")) {
576
579
  return { __this, __a in
577
580
  try (jsCastPresent(__this) as TextBase).symbol_setNative_textShadow(jsArg(__a, 0))
578
581
  return nil
579
582
  }
580
583
  }
581
- if key == ((Core_ui_text_base_text_base_common.maxLinesProperty?.setNative)?.key ?? "undefined") {
584
+ if key == (try? ((Core_ui_text_base_text_base_common.maxLinesProperty?.setNative)?.key ?? "undefined")) {
582
585
  return { __this, __a in
583
586
  try (jsCastPresent(__this) as TextBase).symbol_setNative_maxLines(
584
587
  (try jsConvertedNumber(jsArg(__a, 0))))
@@ -410,13 +410,12 @@ open class TextBaseCommon: View {
410
410
  #sourceLocation(file:"@nativescript/core/ui.text-base.text-base-common.ts",line:199)
411
411
  let formattedText: FormattedString = try FormattedString()
412
412
  #sourceLocation(file:"@nativescript/core/ui.text-base.text-base-common.ts",line:200)
413
- _ = try jsUnwrap(formattedText.spans, "push").push(JSArray<Span>([(jsCastPresent(value) as Span)]))
413
+ _ = try jsUnwrap(formattedText.spans, "push").push(JSArray<Any?>([value]))
414
414
  #sourceLocation(file:"@nativescript/core/ui.text-base.text-base-common.ts",line:201)
415
415
  self.formattedText = formattedText
416
416
  } else {
417
417
  #sourceLocation(file:"@nativescript/core/ui.text-base.text-base-common.ts",line:203)
418
- _ = try jsUnwrap(jsUnwrap(self.formattedText, "spans").spans, "push").push(
419
- JSArray<Span>([(jsCastPresent(value) as Span)]))
418
+ _ = try jsUnwrap(jsUnwrap(self.formattedText, "spans").spans, "push").push(JSArray<Any?>([value]))
420
419
  }
421
420
  } else if jsStringEquals(name, Core_ui_text_base_text_base_common.CHILD_FORMATTED_TEXT)
422
421
  || jsStringEquals(name, Core_ui_text_base_text_base_common.CHILD_FORMATTED_STRING)
@@ -355,70 +355,77 @@ open class TextField: TextFieldBase {
355
355
  }
356
356
  #sourceLocation()
357
357
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
358
- if key == ((Core_ui_editable_text_base_editable_text_base_common.hintProperty?.getDefault)?.key ?? "undefined")
358
+ if key
359
+ == (try?
360
+ ((Core_ui_editable_text_base_editable_text_base_common.hintProperty?.getDefault)?.key ?? "undefined"))
359
361
  {
360
362
  return { __this, __a in return try (jsCastPresent(__this) as TextField).symbol_getDefault_hint() }
361
363
  }
362
- if key == ((Core_ui_editable_text_base_editable_text_base_common.hintProperty?.setNative)?.key ?? "undefined") {
364
+ if key
365
+ == (try?
366
+ ((Core_ui_editable_text_base_editable_text_base_common.hintProperty?.setNative)?.key ?? "undefined"))
367
+ {
363
368
  return { __this, __a in
364
369
  try (jsCastPresent(__this) as TextField).symbol_setNative_hint("")
365
370
  return nil
366
371
  }
367
372
  }
368
- if key == ((Core_ui_text_field_text_field_common.secureProperty?.getDefault)?.key ?? "undefined") {
373
+ if key == (try? ((Core_ui_text_field_text_field_common.secureProperty?.getDefault)?.key ?? "undefined")) {
369
374
  return { __this, __a in return try (jsCastPresent(__this) as TextField).symbol_getDefault_secure() }
370
375
  }
371
- if key == ((Core_ui_text_field_text_field_common.secureProperty?.setNative)?.key ?? "undefined") {
376
+ if key == (try? ((Core_ui_text_field_text_field_common.secureProperty?.setNative)?.key ?? "undefined")) {
372
377
  return { __this, __a in
373
378
  try (jsCastPresent(__this) as TextField).symbol_setNative_secure((try jsConvertedBool(jsArg(__a, 0))))
374
379
  return nil
375
380
  }
376
381
  }
377
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
382
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
378
383
  return { __this, __a in return try (jsCastPresent(__this) as TextField).symbol_getDefault_color_TextField()
379
384
  }
380
385
  }
381
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
386
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
382
387
  return { __this, __a in
383
388
  try (jsCastPresent(__this) as TextField).symbol_setNative_color_TextField(jsArg(__a, 0))
384
389
  return nil
385
390
  }
386
391
  }
387
392
  if key
388
- == ((Core_ui_editable_text_base_editable_text_base_common.placeholderColorProperty?.getDefault)?.key
389
- ?? "undefined")
393
+ == (try?
394
+ ((Core_ui_editable_text_base_editable_text_base_common.placeholderColorProperty?.getDefault)?.key
395
+ ?? "undefined"))
390
396
  {
391
397
  return { __this, __a in return try (jsCastPresent(__this) as TextField).symbol_getDefault_placeholderColor()
392
398
  }
393
399
  }
394
400
  if key
395
- == ((Core_ui_editable_text_base_editable_text_base_common.placeholderColorProperty?.setNative)?.key
396
- ?? "undefined")
401
+ == (try?
402
+ ((Core_ui_editable_text_base_editable_text_base_common.placeholderColorProperty?.setNative)?.key
403
+ ?? "undefined"))
397
404
  {
398
405
  return { __this, __a in
399
406
  try (jsCastPresent(__this) as TextField).symbol_setNative_placeholderColor(nil)
400
407
  return nil
401
408
  }
402
409
  }
403
- if key == ((Core_ui_styling_style_properties.paddingInternalProperty?.setNative)?.key ?? "undefined") {
410
+ if key == (try? ((Core_ui_styling_style_properties.paddingInternalProperty?.setNative)?.key ?? "undefined")) {
404
411
  return { __this, __a in
405
412
  try (jsCastPresent(__this) as TextField).symbol_setNative_paddingInternal("")
406
413
  return nil
407
414
  }
408
415
  }
409
- if key == ((Core_ui_text_base_text_base_common.whiteSpaceProperty?.setNative)?.key ?? "undefined") {
416
+ if key == (try? ((Core_ui_text_base_text_base_common.whiteSpaceProperty?.setNative)?.key ?? "undefined")) {
410
417
  return { __this, __a in
411
418
  try (jsCastPresent(__this) as TextField).symbol_setNative_whiteSpace("")
412
419
  return nil
413
420
  }
414
421
  }
415
- if key == ((Core_ui_text_base_text_base_common.textOverflowProperty?.setNative)?.key ?? "undefined") {
422
+ if key == (try? ((Core_ui_text_base_text_base_common.textOverflowProperty?.setNative)?.key ?? "undefined")) {
416
423
  return { __this, __a in
417
424
  try (jsCastPresent(__this) as TextField).symbol_setNative_textOverflow("")
418
425
  return nil
419
426
  }
420
427
  }
421
- if key == ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined") {
428
+ if key == (try? ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined")) {
422
429
  return { __this, __a in
423
430
  try (jsCastPresent(__this) as TextField).symbol_setNative_direction_TextField(
424
431
  (try jsConvertedString(jsArg(__a, 0))))
@@ -469,106 +469,117 @@ open class TextView: TextViewBase {
469
469
  }
470
470
  #sourceLocation()
471
471
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
472
- if key == ((Core_ui_text_base_text_base_common.textProperty?.getDefault)?.key ?? "undefined") {
472
+ if key == (try? ((Core_ui_text_base_text_base_common.textProperty?.getDefault)?.key ?? "undefined")) {
473
473
  return { __this, __a in return try (jsCastPresent(__this) as TextView).symbol_getDefault_text_TextView() }
474
474
  }
475
- if key == ((Core_ui_text_base_text_base_common.textProperty?.setNative)?.key ?? "undefined") {
475
+ if key == (try? ((Core_ui_text_base_text_base_common.textProperty?.setNative)?.key ?? "undefined")) {
476
476
  return { __this, __a in
477
477
  try (jsCastPresent(__this) as TextView).symbol_setNative_text_TextView(
478
478
  (try jsConvertedString(jsArg(__a, 0))))
479
479
  return nil
480
480
  }
481
481
  }
482
- if key == ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined") {
482
+ if key == (try? ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined")) {
483
483
  return { __this, __a in
484
484
  try (jsCastPresent(__this) as TextView).symbol_setNative_direction_TextView(
485
485
  (try jsConvertedString(jsArg(__a, 0))))
486
486
  return nil
487
487
  }
488
488
  }
489
- if key == ((Core_ui_editable_text_base_editable_text_base_common.hintProperty?.getDefault)?.key ?? "undefined")
489
+ if key
490
+ == (try?
491
+ ((Core_ui_editable_text_base_editable_text_base_common.hintProperty?.getDefault)?.key ?? "undefined"))
490
492
  {
491
493
  return { __this, __a in return try (jsCastPresent(__this) as TextView).symbol_getDefault_hint() }
492
494
  }
493
- if key == ((Core_ui_editable_text_base_editable_text_base_common.hintProperty?.setNative)?.key ?? "undefined") {
495
+ if key
496
+ == (try?
497
+ ((Core_ui_editable_text_base_editable_text_base_common.hintProperty?.setNative)?.key ?? "undefined"))
498
+ {
494
499
  return { __this, __a in
495
500
  try (jsCastPresent(__this) as TextView).symbol_setNative_hint((try jsConvertedString(jsArg(__a, 0))))
496
501
  return nil
497
502
  }
498
503
  }
499
504
  if key
500
- == ((Core_ui_editable_text_base_editable_text_base_common.editableProperty?.getDefault)?.key ?? "undefined")
505
+ == (try?
506
+ ((Core_ui_editable_text_base_editable_text_base_common.editableProperty?.getDefault)?.key ?? "undefined"))
501
507
  {
502
508
  return { __this, __a in return try (jsCastPresent(__this) as TextView).symbol_getDefault_editable() }
503
509
  }
504
510
  if key
505
- == ((Core_ui_editable_text_base_editable_text_base_common.editableProperty?.setNative)?.key ?? "undefined")
511
+ == (try?
512
+ ((Core_ui_editable_text_base_editable_text_base_common.editableProperty?.setNative)?.key ?? "undefined"))
506
513
  {
507
514
  return { __this, __a in
508
515
  try (jsCastPresent(__this) as TextView).symbol_setNative_editable((try jsConvertedBool(jsArg(__a, 0))))
509
516
  return nil
510
517
  }
511
518
  }
512
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
519
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
513
520
  return { __this, __a in
514
521
  try (jsCastPresent(__this) as TextView).symbol_setNative_color_TextView(nil)
515
522
  return nil
516
523
  }
517
524
  }
518
525
  if key
519
- == ((Core_ui_editable_text_base_editable_text_base_common.placeholderColorProperty?.setNative)?.key
520
- ?? "undefined")
526
+ == (try?
527
+ ((Core_ui_editable_text_base_editable_text_base_common.placeholderColorProperty?.setNative)?.key
528
+ ?? "undefined"))
521
529
  {
522
530
  return { __this, __a in
523
531
  try (jsCastPresent(__this) as TextView).symbol_setNative_placeholderColor(nil)
524
532
  return nil
525
533
  }
526
534
  }
527
- if key == ((Core_ui_styling_style_properties.borderTopWidthProperty?.getDefault)?.key ?? "undefined") {
535
+ if key == (try? ((Core_ui_styling_style_properties.borderTopWidthProperty?.getDefault)?.key ?? "undefined")) {
528
536
  return { __this, __a in return try (jsCastPresent(__this) as TextView).symbol_getDefault_borderTopWidth() }
529
537
  }
530
- if key == ((Core_ui_styling_style_properties.borderTopWidthProperty?.setNative)?.key ?? "undefined") {
538
+ if key == (try? ((Core_ui_styling_style_properties.borderTopWidthProperty?.setNative)?.key ?? "undefined")) {
531
539
  return { __this, __a in
532
540
  try (jsCastPresent(__this) as TextView).symbol_setNative_borderTopWidth(nil)
533
541
  return nil
534
542
  }
535
543
  }
536
- if key == ((Core_ui_styling_style_properties.borderRightWidthProperty?.getDefault)?.key ?? "undefined") {
544
+ if key == (try? ((Core_ui_styling_style_properties.borderRightWidthProperty?.getDefault)?.key ?? "undefined")) {
537
545
  return { __this, __a in return try (jsCastPresent(__this) as TextView).symbol_getDefault_borderRightWidth()
538
546
  }
539
547
  }
540
- if key == ((Core_ui_styling_style_properties.borderRightWidthProperty?.setNative)?.key ?? "undefined") {
548
+ if key == (try? ((Core_ui_styling_style_properties.borderRightWidthProperty?.setNative)?.key ?? "undefined")) {
541
549
  return { __this, __a in
542
550
  try (jsCastPresent(__this) as TextView).symbol_setNative_borderRightWidth(nil)
543
551
  return nil
544
552
  }
545
553
  }
546
- if key == ((Core_ui_styling_style_properties.borderBottomWidthProperty?.getDefault)?.key ?? "undefined") {
554
+ if key == (try? ((Core_ui_styling_style_properties.borderBottomWidthProperty?.getDefault)?.key ?? "undefined"))
555
+ {
547
556
  return { __this, __a in return try (jsCastPresent(__this) as TextView).symbol_getDefault_borderBottomWidth()
548
557
  }
549
558
  }
550
- if key == ((Core_ui_styling_style_properties.borderBottomWidthProperty?.setNative)?.key ?? "undefined") {
559
+ if key == (try? ((Core_ui_styling_style_properties.borderBottomWidthProperty?.setNative)?.key ?? "undefined")) {
551
560
  return { __this, __a in
552
561
  try (jsCastPresent(__this) as TextView).symbol_setNative_borderBottomWidth(nil)
553
562
  return nil
554
563
  }
555
564
  }
556
- if key == ((Core_ui_styling_style_properties.borderLeftWidthProperty?.getDefault)?.key ?? "undefined") {
565
+ if key == (try? ((Core_ui_styling_style_properties.borderLeftWidthProperty?.getDefault)?.key ?? "undefined")) {
557
566
  return { __this, __a in return try (jsCastPresent(__this) as TextView).symbol_getDefault_borderLeftWidth() }
558
567
  }
559
- if key == ((Core_ui_styling_style_properties.borderLeftWidthProperty?.setNative)?.key ?? "undefined") {
568
+ if key == (try? ((Core_ui_styling_style_properties.borderLeftWidthProperty?.setNative)?.key ?? "undefined")) {
560
569
  return { __this, __a in
561
570
  try (jsCastPresent(__this) as TextView).symbol_setNative_borderLeftWidth(nil)
562
571
  return nil
563
572
  }
564
573
  }
565
- if key == ((Core_ui_styling_style_properties.paddingInternalProperty?.setNative)?.key ?? "undefined") {
574
+ if key == (try? ((Core_ui_styling_style_properties.paddingInternalProperty?.setNative)?.key ?? "undefined")) {
566
575
  return { __this, __a in
567
576
  try (jsCastPresent(__this) as TextView).symbol_setNative_paddingInternal("")
568
577
  return nil
569
578
  }
570
579
  }
571
- if key == ((Core_ui_text_view_text_view_common.iosWritingToolsBehaviorProperty?.setNative)?.key ?? "undefined")
580
+ if key
581
+ == (try?
582
+ ((Core_ui_text_view_text_view_common.iosWritingToolsBehaviorProperty?.setNative)?.key ?? "undefined"))
572
583
  {
573
584
  return { __this, __a in
574
585
  try (jsCastPresent(__this) as TextView).symbol_setNative_iosWritingToolsBehavior(
@@ -577,7 +588,8 @@ open class TextView: TextViewBase {
577
588
  }
578
589
  }
579
590
  if key
580
- == ((Core_ui_text_view_text_view_common.iosWritingToolsAllowedInputProperty?.setNative)?.key ?? "undefined")
591
+ == (try?
592
+ ((Core_ui_text_view_text_view_common.iosWritingToolsAllowedInputProperty?.setNative)?.key ?? "undefined"))
581
593
  {
582
594
  return { __this, __a in
583
595
  try (jsCastPresent(__this) as TextView).symbol_setNative_iosWritingToolsAllowedInput(
@@ -166,89 +166,93 @@ open class TimePicker: TimePickerBase {
166
166
  }
167
167
  #sourceLocation()
168
168
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
169
- if key == ((Core_ui_time_picker_time_picker_common.timeProperty?.getDefault)?.key ?? "undefined") {
169
+ if key == (try? ((Core_ui_time_picker_time_picker_common.timeProperty?.getDefault)?.key ?? "undefined")) {
170
170
  return { __this, __a in return try (jsCastPresent(__this) as TimePicker).symbol_getDefault_time() }
171
171
  }
172
- if key == ((Core_ui_time_picker_time_picker_common.timeProperty?.setNative)?.key ?? "undefined") {
172
+ if key == (try? ((Core_ui_time_picker_time_picker_common.timeProperty?.setNative)?.key ?? "undefined")) {
173
173
  return { __this, __a in
174
174
  try (jsCastPresent(__this) as TimePicker).symbol_setNative_time(nil)
175
175
  return nil
176
176
  }
177
177
  }
178
- if key == ((Core_ui_time_picker_time_picker_common.minuteProperty?.getDefault)?.key ?? "undefined") {
178
+ if key == (try? ((Core_ui_time_picker_time_picker_common.minuteProperty?.getDefault)?.key ?? "undefined")) {
179
179
  return { __this, __a in return try (jsCastPresent(__this) as TimePicker).symbol_getDefault_minute() }
180
180
  }
181
- if key == ((Core_ui_time_picker_time_picker_common.minuteProperty?.setNative)?.key ?? "undefined") {
181
+ if key == (try? ((Core_ui_time_picker_time_picker_common.minuteProperty?.setNative)?.key ?? "undefined")) {
182
182
  return { __this, __a in
183
183
  try (jsCastPresent(__this) as TimePicker).symbol_setNative_minute(
184
184
  (try jsConvertedNumber(jsArg(__a, 0))))
185
185
  return nil
186
186
  }
187
187
  }
188
- if key == ((Core_ui_time_picker_time_picker_common.hourProperty?.getDefault)?.key ?? "undefined") {
188
+ if key == (try? ((Core_ui_time_picker_time_picker_common.hourProperty?.getDefault)?.key ?? "undefined")) {
189
189
  return { __this, __a in return try (jsCastPresent(__this) as TimePicker).symbol_getDefault_hour() }
190
190
  }
191
- if key == ((Core_ui_time_picker_time_picker_common.hourProperty?.setNative)?.key ?? "undefined") {
191
+ if key == (try? ((Core_ui_time_picker_time_picker_common.hourProperty?.setNative)?.key ?? "undefined")) {
192
192
  return { __this, __a in
193
193
  try (jsCastPresent(__this) as TimePicker).symbol_setNative_hour((try jsConvertedNumber(jsArg(__a, 0))))
194
194
  return nil
195
195
  }
196
196
  }
197
- if key == ((Core_ui_time_picker_time_picker_common.minHourProperty?.getDefault)?.key ?? "undefined") {
197
+ if key == (try? ((Core_ui_time_picker_time_picker_common.minHourProperty?.getDefault)?.key ?? "undefined")) {
198
198
  return { __this, __a in return try (jsCastPresent(__this) as TimePicker).symbol_getDefault_minHour() }
199
199
  }
200
- if key == ((Core_ui_time_picker_time_picker_common.minHourProperty?.setNative)?.key ?? "undefined") {
200
+ if key == (try? ((Core_ui_time_picker_time_picker_common.minHourProperty?.setNative)?.key ?? "undefined")) {
201
201
  return { __this, __a in
202
202
  try (jsCastPresent(__this) as TimePicker).symbol_setNative_minHour(
203
203
  (try jsConvertedNumber(jsArg(__a, 0))))
204
204
  return nil
205
205
  }
206
206
  }
207
- if key == ((Core_ui_time_picker_time_picker_common.maxHourProperty?.getDefault)?.key ?? "undefined") {
207
+ if key == (try? ((Core_ui_time_picker_time_picker_common.maxHourProperty?.getDefault)?.key ?? "undefined")) {
208
208
  return { __this, __a in return try (jsCastPresent(__this) as TimePicker).symbol_getDefault_maxHour() }
209
209
  }
210
- if key == ((Core_ui_time_picker_time_picker_common.maxHourProperty?.setNative)?.key ?? "undefined") {
210
+ if key == (try? ((Core_ui_time_picker_time_picker_common.maxHourProperty?.setNative)?.key ?? "undefined")) {
211
211
  return { __this, __a in
212
212
  try (jsCastPresent(__this) as TimePicker).symbol_setNative_maxHour(
213
213
  (try jsConvertedNumber(jsArg(__a, 0))))
214
214
  return nil
215
215
  }
216
216
  }
217
- if key == ((Core_ui_time_picker_time_picker_common.minMinuteProperty?.getDefault)?.key ?? "undefined") {
217
+ if key == (try? ((Core_ui_time_picker_time_picker_common.minMinuteProperty?.getDefault)?.key ?? "undefined")) {
218
218
  return { __this, __a in return try (jsCastPresent(__this) as TimePicker).symbol_getDefault_minMinute() }
219
219
  }
220
- if key == ((Core_ui_time_picker_time_picker_common.minMinuteProperty?.setNative)?.key ?? "undefined") {
220
+ if key == (try? ((Core_ui_time_picker_time_picker_common.minMinuteProperty?.setNative)?.key ?? "undefined")) {
221
221
  return { __this, __a in
222
222
  try (jsCastPresent(__this) as TimePicker).symbol_setNative_minMinute(
223
223
  (try jsConvertedNumber(jsArg(__a, 0))))
224
224
  return nil
225
225
  }
226
226
  }
227
- if key == ((Core_ui_time_picker_time_picker_common.maxMinuteProperty?.getDefault)?.key ?? "undefined") {
227
+ if key == (try? ((Core_ui_time_picker_time_picker_common.maxMinuteProperty?.getDefault)?.key ?? "undefined")) {
228
228
  return { __this, __a in return try (jsCastPresent(__this) as TimePicker).symbol_getDefault_maxMinute() }
229
229
  }
230
- if key == ((Core_ui_time_picker_time_picker_common.maxMinuteProperty?.setNative)?.key ?? "undefined") {
230
+ if key == (try? ((Core_ui_time_picker_time_picker_common.maxMinuteProperty?.setNative)?.key ?? "undefined")) {
231
231
  return { __this, __a in
232
232
  try (jsCastPresent(__this) as TimePicker).symbol_setNative_maxMinute(
233
233
  (try jsConvertedNumber(jsArg(__a, 0))))
234
234
  return nil
235
235
  }
236
236
  }
237
- if key == ((Core_ui_time_picker_time_picker_common.minuteIntervalProperty?.getDefault)?.key ?? "undefined") {
237
+ if key
238
+ == (try? ((Core_ui_time_picker_time_picker_common.minuteIntervalProperty?.getDefault)?.key ?? "undefined"))
239
+ {
238
240
  return { __this, __a in return try (jsCastPresent(__this) as TimePicker).symbol_getDefault_minuteInterval()
239
241
  }
240
242
  }
241
- if key == ((Core_ui_time_picker_time_picker_common.minuteIntervalProperty?.setNative)?.key ?? "undefined") {
243
+ if key
244
+ == (try? ((Core_ui_time_picker_time_picker_common.minuteIntervalProperty?.setNative)?.key ?? "undefined"))
245
+ {
242
246
  return { __this, __a in
243
247
  try (jsCastPresent(__this) as TimePicker).symbol_setNative_minuteInterval(
244
248
  (try jsConvertedNumber(jsArg(__a, 0))))
245
249
  return nil
246
250
  }
247
251
  }
248
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
252
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
249
253
  return { __this, __a in return try (jsCastPresent(__this) as TimePicker).symbol_getDefault_color() }
250
254
  }
251
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
255
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
252
256
  return { __this, __a in
253
257
  try (jsCastPresent(__this) as TimePicker).symbol_setNative_color(jsArg(__a, 0))
254
258
  return nil
@@ -661,7 +661,7 @@ open class SharedTransitionHelper: JSDynamic, JSExpando, JSStaticKeyed {
661
661
  __async1.returnValue(())
662
662
  return
663
663
  } catch {
664
- { __async1.throwValue($0) }(jsCaught(error))
664
+ __async1.throwValue(jsCaught(error))
665
665
  }
666
666
  }
667
667
  #sourceLocation(file:"@nativescript/core/ui.transition.shared-transition-helper.ios.ts",line:628)
@@ -671,7 +671,7 @@ open class SharedTransitionHelper: JSDynamic, JSExpando, JSStaticKeyed {
671
671
  }
672
672
  let __closeError1: (Any?) -> Void = { (__e_1: Any?) -> Void in
673
673
  __it10.jsClose()
674
- { __async1.throwValue($0) }(__e_1)
674
+ __async1.throwValue(__e_1)
675
675
  }
676
676
  JSAsyncLoop().run { (__continue1: @escaping @MainActor () -> Void) -> Void in
677
677
  do {
@@ -709,12 +709,12 @@ open class SharedTransitionHelper: JSDynamic, JSExpando, JSStaticKeyed {
709
709
  __closeError1(jsCaught(error))
710
710
  }
711
711
  } catch {
712
- { __async1.throwValue($0) }(jsCaught(error))
712
+ __async1.throwValue(jsCaught(error))
713
713
  }
714
714
  }
715
715
  }
716
716
  } catch {
717
- { __async1.throwValue($0) }(jsCaught(error))
717
+ __async1.throwValue(jsCaught(error))
718
718
  }
719
719
  }
720
720
  #sourceLocation()
@@ -1035,7 +1035,7 @@ open class SharedTransitionHelper: JSDynamic, JSExpando, JSStaticKeyed {
1035
1035
  try jsSet(presentedSharedElement, "alpha", Double(0))
1036
1036
  __continue2()
1037
1037
  } catch {
1038
- { __async2.throwValue($0) }(jsCaught(error))
1038
+ __async2.throwValue(jsCaught(error))
1039
1039
  }
1040
1040
  }
1041
1041
  #sourceLocation(file:"@nativescript/core/ui.transition.shared-transition-helper.ios.ts",line:197)
@@ -1052,12 +1052,12 @@ open class SharedTransitionHelper: JSDynamic, JSExpando, JSStaticKeyed {
1052
1052
  "present")) as? JSPromise<Void>) as Any?),
1053
1053
  { (__t_2: Any?) -> Void in
1054
1054
  __next2()
1055
- }, { __async2.throwValue($0) })
1055
+ }, __async2.throwValue)
1056
1056
  } else {
1057
1057
  __next2()
1058
1058
  }
1059
1059
  } catch {
1060
- { __async2.throwValue($0) }(jsCaught(error))
1060
+ __async2.throwValue(jsCaught(error))
1061
1061
  }
1062
1062
  }
1063
1063
  }
@@ -1300,7 +1300,7 @@ open class SharedTransitionHelper: JSDynamic, JSExpando, JSStaticKeyed {
1300
1300
  0
1301
1301
  __continue3()
1302
1302
  } catch {
1303
- { __async3.throwValue($0) }(jsCaught(error))
1303
+ __async3.throwValue(jsCaught(error))
1304
1304
  }
1305
1305
  }
1306
1306
  #sourceLocation(file:"@nativescript/core/ui.transition.shared-transition-helper.ios.ts",line:312)
@@ -1317,12 +1317,12 @@ open class SharedTransitionHelper: JSDynamic, JSExpando, JSStaticKeyed {
1317
1317
  "present")) as? JSPromise<Void>) as Any?),
1318
1318
  { (__t_3: Any?) -> Void in
1319
1319
  __next3()
1320
- }, { __async3.throwValue($0) })
1320
+ }, __async3.throwValue)
1321
1321
  } else {
1322
1322
  __next3()
1323
1323
  }
1324
1324
  } catch {
1325
- { __async3.throwValue($0) }(jsCaught(error))
1325
+ __async3.throwValue(jsCaught(error))
1326
1326
  }
1327
1327
  }
1328
1328
  }
@@ -2028,16 +2028,16 @@ open class SharedTransitionHelper: JSDynamic, JSExpando, JSStaticKeyed {
2028
2028
  __async1.returnValue(())
2029
2029
  return
2030
2030
  } catch {
2031
- { __async1.throwValue($0) }(jsCaught(error))
2031
+ __async1.throwValue(jsCaught(error))
2032
2032
  }
2033
- }, { __async1.throwValue($0) })
2033
+ }, __async1.throwValue)
2034
2034
  } catch {
2035
- { __async1.throwValue($0) }(jsCaught(error))
2035
+ __async1.throwValue(jsCaught(error))
2036
2036
  }
2037
- }, { __async1.throwValue($0) })
2037
+ }, __async1.throwValue)
2038
2038
  }
2039
2039
  } catch {
2040
- { __async1.throwValue($0) }(jsCaught(error))
2040
+ __async1.throwValue(jsCaught(error))
2041
2041
  }
2042
2042
  }
2043
2043
  __clause1()
@@ -523,7 +523,7 @@ open class WebView: WebViewBase {
523
523
  }
524
524
  #sourceLocation()
525
525
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
526
- if key == ((Core_ui_web_view_web_view_common.disableZoomProperty?.setNative)?.key ?? "undefined") {
526
+ if key == (try? ((Core_ui_web_view_web_view_common.disableZoomProperty?.setNative)?.key ?? "undefined")) {
527
527
  return { __this, __a in
528
528
  try (jsCastPresent(__this) as WebView).symbol_setNative_disableZoom(
529
529
  (try jsConvertedBool(jsArg(__a, 0))))