@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
@@ -538,42 +538,43 @@ open class View: ViewCommon {
538
538
  }
539
539
  #sourceLocation()
540
540
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
541
- if key == ((Core_ui_core_view_view_common.isEnabledProperty?.getDefault)?.key ?? "undefined") {
541
+ if key == (try? ((Core_ui_core_view_view_common.isEnabledProperty?.getDefault)?.key ?? "undefined")) {
542
542
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_isEnabled() }
543
543
  }
544
- if key == ((Core_ui_core_view_view_common.isEnabledProperty?.setNative)?.key ?? "undefined") {
544
+ if key == (try? ((Core_ui_core_view_view_common.isEnabledProperty?.setNative)?.key ?? "undefined")) {
545
545
  return { __this, __a in
546
546
  try (jsCastPresent(__this) as View).symbol_setNative_isEnabled((try jsConvertedBool(jsArg(__a, 0))))
547
547
  return nil
548
548
  }
549
549
  }
550
- if key == ((Core_ui_core_view_view_common.originXProperty?.getDefault)?.key ?? "undefined") {
550
+ if key == (try? ((Core_ui_core_view_view_common.originXProperty?.getDefault)?.key ?? "undefined")) {
551
551
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_originX() }
552
552
  }
553
- if key == ((Core_ui_core_view_view_common.originXProperty?.setNative)?.key ?? "undefined") {
553
+ if key == (try? ((Core_ui_core_view_view_common.originXProperty?.setNative)?.key ?? "undefined")) {
554
554
  return { __this, __a in
555
555
  try (jsCastPresent(__this) as View).symbol_setNative_originX((try jsConvertedNumber(jsArg(__a, 0))))
556
556
  return nil
557
557
  }
558
558
  }
559
- if key == ((Core_ui_core_view_view_common.originYProperty?.getDefault)?.key ?? "undefined") {
559
+ if key == (try? ((Core_ui_core_view_view_common.originYProperty?.getDefault)?.key ?? "undefined")) {
560
560
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_originY() }
561
561
  }
562
- if key == ((Core_ui_core_view_view_common.originYProperty?.setNative)?.key ?? "undefined") {
562
+ if key == (try? ((Core_ui_core_view_view_common.originYProperty?.setNative)?.key ?? "undefined")) {
563
563
  return { __this, __a in
564
564
  try (jsCastPresent(__this) as View).symbol_setNative_originY((try jsConvertedNumber(jsArg(__a, 0))))
565
565
  return nil
566
566
  }
567
567
  }
568
- if key == ((Core_ui_core_view_view_common.testIDProperty?.setNative)?.key ?? "undefined") {
568
+ if key == (try? ((Core_ui_core_view_view_common.testIDProperty?.setNative)?.key ?? "undefined")) {
569
569
  return { __this, __a in
570
570
  try (jsCastPresent(__this) as View).symbol_setNative_testID((try jsConvertedString(jsArg(__a, 0))))
571
571
  return nil
572
572
  }
573
573
  }
574
574
  if key
575
- == ((Core_accessibility_accessibility_properties.accessibilityEnabledProperty?.setNative)?.key
576
- ?? "undefined")
575
+ == (try?
576
+ ((Core_accessibility_accessibility_properties.accessibilityEnabledProperty?.setNative)?.key
577
+ ?? "undefined"))
577
578
  {
578
579
  return { __this, __a in
579
580
  try (jsCastPresent(__this) as View).symbol_setNative_accessibilityEnabled(
@@ -582,16 +583,18 @@ open class View: ViewCommon {
582
583
  }
583
584
  }
584
585
  if key
585
- == ((Core_accessibility_accessibility_properties.accessibilityIdentifierProperty?.getDefault)?.key
586
- ?? "undefined")
586
+ == (try?
587
+ ((Core_accessibility_accessibility_properties.accessibilityIdentifierProperty?.getDefault)?.key
588
+ ?? "undefined"))
587
589
  {
588
590
  return { __this, __a in
589
591
  return try (jsCastPresent(__this) as View).symbol_getDefault_accessibilityIdentifier()
590
592
  }
591
593
  }
592
594
  if key
593
- == ((Core_accessibility_accessibility_properties.accessibilityIdentifierProperty?.setNative)?.key
594
- ?? "undefined")
595
+ == (try?
596
+ ((Core_accessibility_accessibility_properties.accessibilityIdentifierProperty?.setNative)?.key
597
+ ?? "undefined"))
595
598
  {
596
599
  return { __this, __a in
597
600
  try (jsCastPresent(__this) as View).symbol_setNative_accessibilityIdentifier(
@@ -600,7 +603,8 @@ open class View: ViewCommon {
600
603
  }
601
604
  }
602
605
  if key
603
- == ((Core_accessibility_accessibility_properties.accessibilityRoleProperty?.setNative)?.key ?? "undefined")
606
+ == (try?
607
+ ((Core_accessibility_accessibility_properties.accessibilityRoleProperty?.setNative)?.key ?? "undefined"))
604
608
  {
605
609
  return { __this, __a in
606
610
  try (jsCastPresent(__this) as View).symbol_setNative_accessibilityRole(
@@ -609,7 +613,8 @@ open class View: ViewCommon {
609
613
  }
610
614
  }
611
615
  if key
612
- == ((Core_accessibility_accessibility_properties.accessibilityValueProperty?.setNative)?.key ?? "undefined")
616
+ == (try?
617
+ ((Core_accessibility_accessibility_properties.accessibilityValueProperty?.setNative)?.key ?? "undefined"))
613
618
  {
614
619
  return { __this, __a in
615
620
  try (jsCastPresent(__this) as View).symbol_setNative_accessibilityValue(
@@ -618,7 +623,8 @@ open class View: ViewCommon {
618
623
  }
619
624
  }
620
625
  if key
621
- == ((Core_accessibility_accessibility_properties.accessibilityLabelProperty?.setNative)?.key ?? "undefined")
626
+ == (try?
627
+ ((Core_accessibility_accessibility_properties.accessibilityLabelProperty?.setNative)?.key ?? "undefined"))
622
628
  {
623
629
  return { __this, __a in
624
630
  try (jsCastPresent(__this) as View).symbol_setNative_accessibilityLabel(
@@ -627,7 +633,8 @@ open class View: ViewCommon {
627
633
  }
628
634
  }
629
635
  if key
630
- == ((Core_accessibility_accessibility_properties.accessibilityHintProperty?.setNative)?.key ?? "undefined")
636
+ == (try?
637
+ ((Core_accessibility_accessibility_properties.accessibilityHintProperty?.setNative)?.key ?? "undefined"))
631
638
  {
632
639
  return { __this, __a in
633
640
  try (jsCastPresent(__this) as View).symbol_setNative_accessibilityHint(
@@ -636,8 +643,9 @@ open class View: ViewCommon {
636
643
  }
637
644
  }
638
645
  if key
639
- == ((Core_accessibility_accessibility_properties.accessibilityIgnoresInvertColorsProperty?.setNative)?.key
640
- ?? "undefined")
646
+ == (try?
647
+ ((Core_accessibility_accessibility_properties.accessibilityIgnoresInvertColorsProperty?.setNative)?.key
648
+ ?? "undefined"))
641
649
  {
642
650
  return { __this, __a in
643
651
  try (jsCastPresent(__this) as View).symbol_setNative_accessibilityIgnoresInvertColors(
@@ -646,8 +654,9 @@ open class View: ViewCommon {
646
654
  }
647
655
  }
648
656
  if key
649
- == ((Core_accessibility_accessibility_properties.accessibilityLanguageProperty?.setNative)?.key
650
- ?? "undefined")
657
+ == (try?
658
+ ((Core_accessibility_accessibility_properties.accessibilityLanguageProperty?.setNative)?.key
659
+ ?? "undefined"))
651
660
  {
652
661
  return { __this, __a in
653
662
  try (jsCastPresent(__this) as View).symbol_setNative_accessibilityLanguage(
@@ -656,7 +665,9 @@ open class View: ViewCommon {
656
665
  }
657
666
  }
658
667
  if key
659
- == ((Core_accessibility_accessibility_properties.accessibilityHiddenProperty?.setNative)?.key ?? "undefined")
668
+ == (try?
669
+ ((Core_accessibility_accessibility_properties.accessibilityHiddenProperty?.setNative)?.key
670
+ ?? "undefined"))
660
671
  {
661
672
  return { __this, __a in
662
673
  try (jsCastPresent(__this) as View).symbol_setNative_accessibilityHidden(
@@ -665,8 +676,9 @@ open class View: ViewCommon {
665
676
  }
666
677
  }
667
678
  if key
668
- == ((Core_accessibility_accessibility_properties.accessibilityLiveRegionProperty?.setNative)?.key
669
- ?? "undefined")
679
+ == (try?
680
+ ((Core_accessibility_accessibility_properties.accessibilityLiveRegionProperty?.setNative)?.key
681
+ ?? "undefined"))
670
682
  {
671
683
  return { __this, __a in
672
684
  try (jsCastPresent(__this) as View).symbol_setNative_accessibilityLiveRegion()
@@ -674,7 +686,8 @@ open class View: ViewCommon {
674
686
  }
675
687
  }
676
688
  if key
677
- == ((Core_accessibility_accessibility_properties.accessibilityStateProperty?.setNative)?.key ?? "undefined")
689
+ == (try?
690
+ ((Core_accessibility_accessibility_properties.accessibilityStateProperty?.setNative)?.key ?? "undefined"))
678
691
  {
679
692
  return { __this, __a in
680
693
  try (jsCastPresent(__this) as View).symbol_setNative_accessibilityState(
@@ -683,160 +696,167 @@ open class View: ViewCommon {
683
696
  }
684
697
  }
685
698
  if key
686
- == ((Core_accessibility_accessibility_properties.accessibilityMediaSessionProperty?.setNative)?.key
687
- ?? "undefined")
699
+ == (try?
700
+ ((Core_accessibility_accessibility_properties.accessibilityMediaSessionProperty?.setNative)?.key
701
+ ?? "undefined"))
688
702
  {
689
703
  return { __this, __a in
690
704
  try (jsCastPresent(__this) as View).symbol_setNative_accessibilityMediaSession()
691
705
  return nil
692
706
  }
693
707
  }
694
- if key == ((Core_ui_core_view_view_common.isUserInteractionEnabledProperty?.getDefault)?.key ?? "undefined") {
708
+ if key
709
+ == (try? ((Core_ui_core_view_view_common.isUserInteractionEnabledProperty?.getDefault)?.key ?? "undefined"))
710
+ {
695
711
  return { __this, __a in
696
712
  return try (jsCastPresent(__this) as View).symbol_getDefault_isUserInteractionEnabled()
697
713
  }
698
714
  }
699
- if key == ((Core_ui_core_view_view_common.isUserInteractionEnabledProperty?.setNative)?.key ?? "undefined") {
715
+ if key
716
+ == (try? ((Core_ui_core_view_view_common.isUserInteractionEnabledProperty?.setNative)?.key ?? "undefined"))
717
+ {
700
718
  return { __this, __a in
701
719
  try (jsCastPresent(__this) as View).symbol_setNative_isUserInteractionEnabled(
702
720
  (try jsConvertedBool(jsArg(__a, 0))))
703
721
  return nil
704
722
  }
705
723
  }
706
- if key == ((Core_ui_core_view_base_index.hiddenProperty?.getDefault)?.key ?? "undefined") {
724
+ if key == (try? ((Core_ui_core_view_base_index.hiddenProperty?.getDefault)?.key ?? "undefined")) {
707
725
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_hidden() }
708
726
  }
709
- if key == ((Core_ui_core_view_base_index.hiddenProperty?.setNative)?.key ?? "undefined") {
727
+ if key == (try? ((Core_ui_core_view_base_index.hiddenProperty?.setNative)?.key ?? "undefined")) {
710
728
  return { __this, __a in
711
729
  try (jsCastPresent(__this) as View).symbol_setNative_hidden((try jsConvertedBool(jsArg(__a, 0))))
712
730
  return nil
713
731
  }
714
732
  }
715
- if key == ((Core_ui_styling_style_properties.visibilityProperty?.getDefault)?.key ?? "undefined") {
733
+ if key == (try? ((Core_ui_styling_style_properties.visibilityProperty?.getDefault)?.key ?? "undefined")) {
716
734
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_visibility() }
717
735
  }
718
- if key == ((Core_ui_styling_style_properties.visibilityProperty?.setNative)?.key ?? "undefined") {
736
+ if key == (try? ((Core_ui_styling_style_properties.visibilityProperty?.setNative)?.key ?? "undefined")) {
719
737
  return { __this, __a in
720
738
  try (jsCastPresent(__this) as View).symbol_setNative_visibility((try jsConvertedString(jsArg(__a, 0))))
721
739
  return nil
722
740
  }
723
741
  }
724
- if key == ((Core_ui_styling_style_properties.opacityProperty?.getDefault)?.key ?? "undefined") {
742
+ if key == (try? ((Core_ui_styling_style_properties.opacityProperty?.getDefault)?.key ?? "undefined")) {
725
743
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_opacity() }
726
744
  }
727
- if key == ((Core_ui_styling_style_properties.opacityProperty?.setNative)?.key ?? "undefined") {
745
+ if key == (try? ((Core_ui_styling_style_properties.opacityProperty?.setNative)?.key ?? "undefined")) {
728
746
  return { __this, __a in
729
747
  try (jsCastPresent(__this) as View).symbol_setNative_opacity((try jsConvertedNumber(jsArg(__a, 0))))
730
748
  return nil
731
749
  }
732
750
  }
733
- if key == ((Core_ui_styling_style_properties.rotateProperty?.getDefault)?.key ?? "undefined") {
751
+ if key == (try? ((Core_ui_styling_style_properties.rotateProperty?.getDefault)?.key ?? "undefined")) {
734
752
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_rotate() }
735
753
  }
736
- if key == ((Core_ui_styling_style_properties.rotateProperty?.setNative)?.key ?? "undefined") {
754
+ if key == (try? ((Core_ui_styling_style_properties.rotateProperty?.setNative)?.key ?? "undefined")) {
737
755
  return { __this, __a in
738
756
  try (jsCastPresent(__this) as View).symbol_setNative_rotate(0)
739
757
  return nil
740
758
  }
741
759
  }
742
- if key == ((Core_ui_styling_style_properties.rotateXProperty?.getDefault)?.key ?? "undefined") {
760
+ if key == (try? ((Core_ui_styling_style_properties.rotateXProperty?.getDefault)?.key ?? "undefined")) {
743
761
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_rotateX() }
744
762
  }
745
- if key == ((Core_ui_styling_style_properties.rotateXProperty?.setNative)?.key ?? "undefined") {
763
+ if key == (try? ((Core_ui_styling_style_properties.rotateXProperty?.setNative)?.key ?? "undefined")) {
746
764
  return { __this, __a in
747
765
  try (jsCastPresent(__this) as View).symbol_setNative_rotateX(0)
748
766
  return nil
749
767
  }
750
768
  }
751
- if key == ((Core_ui_styling_style_properties.rotateYProperty?.getDefault)?.key ?? "undefined") {
769
+ if key == (try? ((Core_ui_styling_style_properties.rotateYProperty?.getDefault)?.key ?? "undefined")) {
752
770
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_rotateY() }
753
771
  }
754
- if key == ((Core_ui_styling_style_properties.rotateYProperty?.setNative)?.key ?? "undefined") {
772
+ if key == (try? ((Core_ui_styling_style_properties.rotateYProperty?.setNative)?.key ?? "undefined")) {
755
773
  return { __this, __a in
756
774
  try (jsCastPresent(__this) as View).symbol_setNative_rotateY(0)
757
775
  return nil
758
776
  }
759
777
  }
760
- if key == ((Core_ui_styling_style_properties.perspectiveProperty?.getDefault)?.key ?? "undefined") {
778
+ if key == (try? ((Core_ui_styling_style_properties.perspectiveProperty?.getDefault)?.key ?? "undefined")) {
761
779
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_perspective() }
762
780
  }
763
- if key == ((Core_ui_styling_style_properties.perspectiveProperty?.setNative)?.key ?? "undefined") {
781
+ if key == (try? ((Core_ui_styling_style_properties.perspectiveProperty?.setNative)?.key ?? "undefined")) {
764
782
  return { __this, __a in
765
783
  try (jsCastPresent(__this) as View).symbol_setNative_perspective(0)
766
784
  return nil
767
785
  }
768
786
  }
769
- if key == ((Core_ui_styling_style_properties.scaleXProperty?.getDefault)?.key ?? "undefined") {
787
+ if key == (try? ((Core_ui_styling_style_properties.scaleXProperty?.getDefault)?.key ?? "undefined")) {
770
788
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_scaleX() }
771
789
  }
772
- if key == ((Core_ui_styling_style_properties.scaleXProperty?.setNative)?.key ?? "undefined") {
790
+ if key == (try? ((Core_ui_styling_style_properties.scaleXProperty?.setNative)?.key ?? "undefined")) {
773
791
  return { __this, __a in
774
792
  try (jsCastPresent(__this) as View).symbol_setNative_scaleX(0)
775
793
  return nil
776
794
  }
777
795
  }
778
- if key == ((Core_ui_styling_style_properties.scaleYProperty?.getDefault)?.key ?? "undefined") {
796
+ if key == (try? ((Core_ui_styling_style_properties.scaleYProperty?.getDefault)?.key ?? "undefined")) {
779
797
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_scaleY() }
780
798
  }
781
- if key == ((Core_ui_styling_style_properties.scaleYProperty?.setNative)?.key ?? "undefined") {
799
+ if key == (try? ((Core_ui_styling_style_properties.scaleYProperty?.setNative)?.key ?? "undefined")) {
782
800
  return { __this, __a in
783
801
  try (jsCastPresent(__this) as View).symbol_setNative_scaleY(0)
784
802
  return nil
785
803
  }
786
804
  }
787
- if key == ((Core_ui_styling_style_properties.translateXProperty?.getDefault)?.key ?? "undefined") {
805
+ if key == (try? ((Core_ui_styling_style_properties.translateXProperty?.getDefault)?.key ?? "undefined")) {
788
806
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_translateX() }
789
807
  }
790
- if key == ((Core_ui_styling_style_properties.translateXProperty?.setNative)?.key ?? "undefined") {
808
+ if key == (try? ((Core_ui_styling_style_properties.translateXProperty?.setNative)?.key ?? "undefined")) {
791
809
  return { __this, __a in
792
810
  try (jsCastPresent(__this) as View).symbol_setNative_translateX(0)
793
811
  return nil
794
812
  }
795
813
  }
796
- if key == ((Core_ui_styling_style_properties.translateYProperty?.getDefault)?.key ?? "undefined") {
814
+ if key == (try? ((Core_ui_styling_style_properties.translateYProperty?.getDefault)?.key ?? "undefined")) {
797
815
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_translateY() }
798
816
  }
799
- if key == ((Core_ui_styling_style_properties.translateYProperty?.setNative)?.key ?? "undefined") {
817
+ if key == (try? ((Core_ui_styling_style_properties.translateYProperty?.setNative)?.key ?? "undefined")) {
800
818
  return { __this, __a in
801
819
  try (jsCastPresent(__this) as View).symbol_setNative_translateY(0)
802
820
  return nil
803
821
  }
804
822
  }
805
- if key == ((Core_ui_styling_style_properties.zIndexProperty?.getDefault)?.key ?? "undefined") {
823
+ if key == (try? ((Core_ui_styling_style_properties.zIndexProperty?.getDefault)?.key ?? "undefined")) {
806
824
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_zIndex() }
807
825
  }
808
- if key == ((Core_ui_styling_style_properties.zIndexProperty?.setNative)?.key ?? "undefined") {
826
+ if key == (try? ((Core_ui_styling_style_properties.zIndexProperty?.setNative)?.key ?? "undefined")) {
809
827
  return { __this, __a in
810
828
  try (jsCastPresent(__this) as View).symbol_setNative_zIndex((try jsConvertedNumber(jsArg(__a, 0))))
811
829
  return nil
812
830
  }
813
831
  }
814
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined") {
832
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined"))
833
+ {
815
834
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_backgroundInternal() }
816
835
  }
817
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined") {
836
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined"))
837
+ {
818
838
  return { __this, __a in
819
839
  try (jsCastPresent(__this) as View).symbol_setNative_backgroundInternal(jsArg(__a, 0))
820
840
  return nil
821
841
  }
822
842
  }
823
- if key == ((Core_ui_core_view_view_common.statusBarStyleProperty?.getDefault)?.key ?? "undefined") {
843
+ if key == (try? ((Core_ui_core_view_view_common.statusBarStyleProperty?.getDefault)?.key ?? "undefined")) {
824
844
  return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_statusBarStyle() }
825
845
  }
826
- if key == ((Core_ui_core_view_view_common.statusBarStyleProperty?.setNative)?.key ?? "undefined") {
846
+ if key == (try? ((Core_ui_core_view_view_common.statusBarStyleProperty?.setNative)?.key ?? "undefined")) {
827
847
  return { __this, __a in
828
848
  try (jsCastPresent(__this) as View).symbol_setNative_statusBarStyle(
829
849
  (try jsConvertedString(jsArg(__a, 0))))
830
850
  return nil
831
851
  }
832
852
  }
833
- if key == ((Core_ui_core_view_view_common.iosGlassEffectProperty?.setNative)?.key ?? "undefined") {
853
+ if key == (try? ((Core_ui_core_view_view_common.iosGlassEffectProperty?.setNative)?.key ?? "undefined")) {
834
854
  return { __this, __a in
835
855
  try (jsCastPresent(__this) as View).symbol_setNative_iosGlassEffect(jsArg(__a, 0))
836
856
  return nil
837
857
  }
838
858
  }
839
- if key == ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined") {
859
+ if key == (try? ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined")) {
840
860
  return { __this, __a in
841
861
  try (jsCastPresent(__this) as View).symbol_setNative_direction((try jsConvertedString(jsArg(__a, 0))))
842
862
  return nil
@@ -272,7 +272,7 @@ open class DatePicker: DatePickerBase {
272
272
  }
273
273
  #sourceLocation()
274
274
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
275
- if key == ((Core_ui_date_picker_date_picker_common.showTimeProperty?.setNative)?.key ?? "undefined") {
275
+ if key == (try? ((Core_ui_date_picker_date_picker_common.showTimeProperty?.setNative)?.key ?? "undefined")) {
276
276
  return { __this, __a in
277
277
  try (jsCastPresent(__this) as DatePicker).symbol_setNative_showTime(
278
278
  (try jsConvertedBool(jsArg(__a, 0))))
@@ -280,8 +280,9 @@ open class DatePicker: DatePickerBase {
280
280
  }
281
281
  }
282
282
  if key
283
- == ((Core_ui_date_picker_date_picker_common.iosPreferredDatePickerStyleProperty?.setNative)?.key
284
- ?? "undefined")
283
+ == (try?
284
+ ((Core_ui_date_picker_date_picker_common.iosPreferredDatePickerStyleProperty?.setNative)?.key
285
+ ?? "undefined"))
285
286
  {
286
287
  return { __this, __a in
287
288
  try (jsCastPresent(__this) as DatePicker).symbol_setNative_iosPreferredDatePickerStyle(
@@ -289,72 +290,72 @@ open class DatePicker: DatePickerBase {
289
290
  return nil
290
291
  }
291
292
  }
292
- if key == ((Core_ui_date_picker_date_picker_common.yearProperty?.setNative)?.key ?? "undefined") {
293
+ if key == (try? ((Core_ui_date_picker_date_picker_common.yearProperty?.setNative)?.key ?? "undefined")) {
293
294
  return { __this, __a in
294
295
  try (jsCastPresent(__this) as DatePicker).symbol_setNative_year((try jsConvertedNumber(jsArg(__a, 0))))
295
296
  return nil
296
297
  }
297
298
  }
298
- if key == ((Core_ui_date_picker_date_picker_common.monthProperty?.setNative)?.key ?? "undefined") {
299
+ if key == (try? ((Core_ui_date_picker_date_picker_common.monthProperty?.setNative)?.key ?? "undefined")) {
299
300
  return { __this, __a in
300
301
  try (jsCastPresent(__this) as DatePicker).symbol_setNative_month((try jsConvertedNumber(jsArg(__a, 0))))
301
302
  return nil
302
303
  }
303
304
  }
304
- if key == ((Core_ui_date_picker_date_picker_common.dayProperty?.setNative)?.key ?? "undefined") {
305
+ if key == (try? ((Core_ui_date_picker_date_picker_common.dayProperty?.setNative)?.key ?? "undefined")) {
305
306
  return { __this, __a in
306
307
  try (jsCastPresent(__this) as DatePicker).symbol_setNative_day((try jsConvertedNumber(jsArg(__a, 0))))
307
308
  return nil
308
309
  }
309
310
  }
310
- if key == ((Core_ui_date_picker_date_picker_common.hourProperty?.setNative)?.key ?? "undefined") {
311
+ if key == (try? ((Core_ui_date_picker_date_picker_common.hourProperty?.setNative)?.key ?? "undefined")) {
311
312
  return { __this, __a in
312
313
  try (jsCastPresent(__this) as DatePicker).symbol_setNative_hour((try jsConvertedNumber(jsArg(__a, 0))))
313
314
  return nil
314
315
  }
315
316
  }
316
- if key == ((Core_ui_date_picker_date_picker_common.minuteProperty?.setNative)?.key ?? "undefined") {
317
+ if key == (try? ((Core_ui_date_picker_date_picker_common.minuteProperty?.setNative)?.key ?? "undefined")) {
317
318
  return { __this, __a in
318
319
  try (jsCastPresent(__this) as DatePicker).symbol_setNative_minute(
319
320
  (try jsConvertedNumber(jsArg(__a, 0))))
320
321
  return nil
321
322
  }
322
323
  }
323
- if key == ((Core_ui_date_picker_date_picker_common.secondProperty?.setNative)?.key ?? "undefined") {
324
+ if key == (try? ((Core_ui_date_picker_date_picker_common.secondProperty?.setNative)?.key ?? "undefined")) {
324
325
  return { __this, __a in
325
326
  try (jsCastPresent(__this) as DatePicker).symbol_setNative_second(
326
327
  (try jsConvertedNumber(jsArg(__a, 0))))
327
328
  return nil
328
329
  }
329
330
  }
330
- if key == ((Core_ui_date_picker_date_picker_common.dateProperty?.setNative)?.key ?? "undefined") {
331
+ if key == (try? ((Core_ui_date_picker_date_picker_common.dateProperty?.setNative)?.key ?? "undefined")) {
331
332
  return { __this, __a in
332
333
  try (jsCastPresent(__this) as DatePicker).symbol_setNative_date(jsDateOrNil(jsArg(__a, 0)))
333
334
  return nil
334
335
  }
335
336
  }
336
- if key == ((Core_ui_date_picker_date_picker_common.maxDateProperty?.getDefault)?.key ?? "undefined") {
337
+ if key == (try? ((Core_ui_date_picker_date_picker_common.maxDateProperty?.getDefault)?.key ?? "undefined")) {
337
338
  return { __this, __a in return try (jsCastPresent(__this) as DatePicker).symbol_getDefault_maxDate() }
338
339
  }
339
- if key == ((Core_ui_date_picker_date_picker_common.maxDateProperty?.setNative)?.key ?? "undefined") {
340
+ if key == (try? ((Core_ui_date_picker_date_picker_common.maxDateProperty?.setNative)?.key ?? "undefined")) {
340
341
  return { __this, __a in
341
342
  try (jsCastPresent(__this) as DatePicker).symbol_setNative_maxDate(jsDateOrNil(jsArg(__a, 0)))
342
343
  return nil
343
344
  }
344
345
  }
345
- if key == ((Core_ui_date_picker_date_picker_common.minDateProperty?.getDefault)?.key ?? "undefined") {
346
+ if key == (try? ((Core_ui_date_picker_date_picker_common.minDateProperty?.getDefault)?.key ?? "undefined")) {
346
347
  return { __this, __a in return try (jsCastPresent(__this) as DatePicker).symbol_getDefault_minDate() }
347
348
  }
348
- if key == ((Core_ui_date_picker_date_picker_common.minDateProperty?.setNative)?.key ?? "undefined") {
349
+ if key == (try? ((Core_ui_date_picker_date_picker_common.minDateProperty?.setNative)?.key ?? "undefined")) {
349
350
  return { __this, __a in
350
351
  try (jsCastPresent(__this) as DatePicker).symbol_setNative_minDate(jsDateOrNil(jsArg(__a, 0)))
351
352
  return nil
352
353
  }
353
354
  }
354
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
355
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
355
356
  return { __this, __a in return try (jsCastPresent(__this) as DatePicker).symbol_getDefault_color() }
356
357
  }
357
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
358
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
358
359
  return { __this, __a in
359
360
  try (jsCastPresent(__this) as DatePicker).symbol_setNative_color(jsArg(__a, 0))
360
361
  return nil
@@ -204,7 +204,7 @@ public enum Core_ui_dialogs_index {
204
204
  "", 0,
205
205
  { () throws -> Void in
206
206
  #sourceLocation(file:"@nativescript/core/ui.dialogs.index.ios.ts",line:99)
207
- __resolvers1.resolve()
207
+ try __resolvers1.resolve()
208
208
  }))
209
209
  #sourceLocation(file:"@nativescript/core/ui.dialogs.index.ios.ts",line:102)
210
210
  try Core_ui_dialogs_index.showUIAlertController(alertController)
@@ -241,7 +241,7 @@ public enum Core_ui_dialogs_index {
241
241
  "", 1,
242
242
  { (r: Any?) throws -> Void in
243
243
  #sourceLocation(file:"@nativescript/core/ui.dialogs.index.ios.ts",line:123)
244
- __resolvers2.resolve(try jsConvertedBool(r))
244
+ try __resolvers2.resolve(try jsConvertedBool(r))
245
245
  }))
246
246
  #sourceLocation(file:"@nativescript/core/ui.dialogs.index.ios.ts",line:126)
247
247
  try Core_ui_dialogs_index.showUIAlertController(alertController)
@@ -310,16 +310,18 @@ open class EditableTextBase__index_ios: EditableTextBase {
310
310
  #sourceLocation()
311
311
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
312
312
  if key
313
- == ((Core_ui_editable_text_base_editable_text_base_common.keyboardTypeProperty?.getDefault)?.key
314
- ?? "undefined")
313
+ == (try?
314
+ ((Core_ui_editable_text_base_editable_text_base_common.keyboardTypeProperty?.getDefault)?.key
315
+ ?? "undefined"))
315
316
  {
316
317
  return { __this, __a in
317
318
  return try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_getDefault_keyboardType()
318
319
  }
319
320
  }
320
321
  if key
321
- == ((Core_ui_editable_text_base_editable_text_base_common.keyboardTypeProperty?.setNative)?.key
322
- ?? "undefined")
322
+ == (try?
323
+ ((Core_ui_editable_text_base_editable_text_base_common.keyboardTypeProperty?.setNative)?.key
324
+ ?? "undefined"))
323
325
  {
324
326
  return { __this, __a in
325
327
  try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_setNative_keyboardType(
@@ -328,8 +330,9 @@ open class EditableTextBase__index_ios: EditableTextBase {
328
330
  }
329
331
  }
330
332
  if key
331
- == ((Core_ui_editable_text_base_editable_text_base_common.autofillTypeProperty?.setNative)?.key
332
- ?? "undefined")
333
+ == (try?
334
+ ((Core_ui_editable_text_base_editable_text_base_common.autofillTypeProperty?.setNative)?.key
335
+ ?? "undefined"))
333
336
  {
334
337
  return { __this, __a in
335
338
  try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_setNative_autofillType(
@@ -338,16 +341,18 @@ open class EditableTextBase__index_ios: EditableTextBase {
338
341
  }
339
342
  }
340
343
  if key
341
- == ((Core_ui_editable_text_base_editable_text_base_common.returnKeyTypeProperty?.getDefault)?.key
342
- ?? "undefined")
344
+ == (try?
345
+ ((Core_ui_editable_text_base_editable_text_base_common.returnKeyTypeProperty?.getDefault)?.key
346
+ ?? "undefined"))
343
347
  {
344
348
  return { __this, __a in
345
349
  return try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_getDefault_returnKeyType()
346
350
  }
347
351
  }
348
352
  if key
349
- == ((Core_ui_editable_text_base_editable_text_base_common.returnKeyTypeProperty?.setNative)?.key
350
- ?? "undefined")
353
+ == (try?
354
+ ((Core_ui_editable_text_base_editable_text_base_common.returnKeyTypeProperty?.setNative)?.key
355
+ ?? "undefined"))
351
356
  {
352
357
  return { __this, __a in
353
358
  try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_setNative_returnKeyType(
@@ -356,8 +361,9 @@ open class EditableTextBase__index_ios: EditableTextBase {
356
361
  }
357
362
  }
358
363
  if key
359
- == ((Core_ui_editable_text_base_editable_text_base_common.autocapitalizationTypeProperty?.getDefault)?.key
360
- ?? "undefined")
364
+ == (try?
365
+ ((Core_ui_editable_text_base_editable_text_base_common.autocapitalizationTypeProperty?.getDefault)?.key
366
+ ?? "undefined"))
361
367
  {
362
368
  return { __this, __a in
363
369
  return try (jsCastPresent(__this) as EditableTextBase__index_ios)
@@ -365,8 +371,9 @@ open class EditableTextBase__index_ios: EditableTextBase {
365
371
  }
366
372
  }
367
373
  if key
368
- == ((Core_ui_editable_text_base_editable_text_base_common.autocapitalizationTypeProperty?.setNative)?.key
369
- ?? "undefined")
374
+ == (try?
375
+ ((Core_ui_editable_text_base_editable_text_base_common.autocapitalizationTypeProperty?.setNative)?.key
376
+ ?? "undefined"))
370
377
  {
371
378
  return { __this, __a in
372
379
  try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_setNative_autocapitalizationType(
@@ -375,16 +382,18 @@ open class EditableTextBase__index_ios: EditableTextBase {
375
382
  }
376
383
  }
377
384
  if key
378
- == ((Core_ui_editable_text_base_editable_text_base_common.autocorrectProperty?.getDefault)?.key
379
- ?? "undefined")
385
+ == (try?
386
+ ((Core_ui_editable_text_base_editable_text_base_common.autocorrectProperty?.getDefault)?.key
387
+ ?? "undefined"))
380
388
  {
381
389
  return { __this, __a in
382
390
  return try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_getDefault_autocorrect()
383
391
  }
384
392
  }
385
393
  if key
386
- == ((Core_ui_editable_text_base_editable_text_base_common.autocorrectProperty?.setNative)?.key
387
- ?? "undefined")
394
+ == (try?
395
+ ((Core_ui_editable_text_base_editable_text_base_common.autocorrectProperty?.setNative)?.key
396
+ ?? "undefined"))
388
397
  {
389
398
  return { __this, __a in
390
399
  try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_setNative_autocorrect(jsArg(__a, 0))