@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.
- package/config.js +1 -0
- package/dist/kotlin/arguments.js +6 -0
- package/dist/kotlin/class-methods.js +4 -4
- package/dist/kotlin/overrides.js +1 -1
- package/dist/kotlin/placement.js +23 -2
- package/dist/kotlin/untyped-values.js +5 -0
- package/dist/semantics/conversion.js +9 -1
- package/dist/semantics/runtime.js +1 -0
- package/dist/semantics/signals.js +1 -1
- package/dist/semantics/throws.js +1 -1
- package/dist/swift/arguments.js +14 -9
- package/dist/swift/assignment.js +6 -1
- package/dist/swift/calls.js +7 -2
- package/dist/swift/class-methods.js +2 -1
- package/dist/swift/library.js +2 -2
- package/dist/swift/method-values.js +2 -1
- package/dist/swift/names.js +4 -4
- package/dist/swift/native/calls.js +9 -3
- package/dist/swift/placement.js +18 -3
- package/dist/swift/static-calls.js +1 -1
- package/dist/swift/syntax.js +1 -1
- package/dist/swift/types.js +2 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +8 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +16 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +2 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +38 -37
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +9 -0
- package/kit-android/generated/source-lines.json +1 -1
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +9 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Dynamic.kt +28 -13
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +10 -2
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +11 -10
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +6 -2
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +7 -7
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +10 -10
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +4 -22
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +2 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +33 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +12 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +6 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +14 -13
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +8 -7
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +79 -59
- package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +17 -16
- package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +27 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +9 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +6 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +8 -8
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +4 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +9 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +9 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +38 -20
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +12 -10
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +18 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +28 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +19 -12
- package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +14 -12
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +14 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +12 -10
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +36 -20
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +25 -22
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +2 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +21 -14
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +33 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +22 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +15 -15
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +6 -2
- package/kit-apple/Sources/NativeScriptKit/Runtime/Functions.swift +3 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +2 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +5 -2
- package/package.json +5 -3
|
@@ -383,7 +383,8 @@ open class ActionBar: ActionBarBase {
|
|
|
383
383
|
#sourceLocation()
|
|
384
384
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
385
385
|
if key
|
|
386
|
-
== (
|
|
386
|
+
== (try?
|
|
387
|
+
((Core_accessibility_accessibility_properties.accessibilityValueProperty?.setNative)?.key ?? "undefined"))
|
|
387
388
|
{
|
|
388
389
|
return { __this, __a in
|
|
389
390
|
try (jsCastPresent(__this) as ActionBar).symbol_setNative_accessibilityValue_ActionBar(
|
|
@@ -392,7 +393,8 @@ open class ActionBar: ActionBarBase {
|
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
395
|
if key
|
|
395
|
-
== (
|
|
396
|
+
== (try?
|
|
397
|
+
((Core_accessibility_accessibility_properties.accessibilityLabelProperty?.setNative)?.key ?? "undefined"))
|
|
396
398
|
{
|
|
397
399
|
return { __this, __a in
|
|
398
400
|
try (jsCastPresent(__this) as ActionBar).symbol_setNative_accessibilityLabel_ActionBar(
|
|
@@ -401,7 +403,8 @@ open class ActionBar: ActionBarBase {
|
|
|
401
403
|
}
|
|
402
404
|
}
|
|
403
405
|
if key
|
|
404
|
-
== (
|
|
406
|
+
== (try?
|
|
407
|
+
((Core_accessibility_accessibility_properties.accessibilityHintProperty?.setNative)?.key ?? "undefined"))
|
|
405
408
|
{
|
|
406
409
|
return { __this, __a in
|
|
407
410
|
try (jsCastPresent(__this) as ActionBar).symbol_setNative_accessibilityHint_ActionBar(
|
|
@@ -410,8 +413,9 @@ open class ActionBar: ActionBarBase {
|
|
|
410
413
|
}
|
|
411
414
|
}
|
|
412
415
|
if key
|
|
413
|
-
== (
|
|
414
|
-
|
|
416
|
+
== (try?
|
|
417
|
+
((Core_accessibility_accessibility_properties.accessibilityLanguageProperty?.setNative)?.key
|
|
418
|
+
?? "undefined"))
|
|
415
419
|
{
|
|
416
420
|
return { __this, __a in
|
|
417
421
|
try (jsCastPresent(__this) as ActionBar).symbol_setNative_accessibilityLanguage_ActionBar(
|
|
@@ -419,65 +423,72 @@ open class ActionBar: ActionBarBase {
|
|
|
419
423
|
return nil
|
|
420
424
|
}
|
|
421
425
|
}
|
|
422
|
-
if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
|
|
426
|
+
if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
|
|
423
427
|
return { __this, __a in return try (jsCastPresent(__this) as ActionBar).symbol_getDefault_color() }
|
|
424
428
|
}
|
|
425
|
-
if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
|
|
429
|
+
if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
|
|
426
430
|
return { __this, __a in
|
|
427
431
|
try (jsCastPresent(__this) as ActionBar).symbol_setNative_color((try jsCast(jsArg(__a, 0), Color.self)))
|
|
428
432
|
return nil
|
|
429
433
|
}
|
|
430
434
|
}
|
|
431
|
-
if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined") {
|
|
435
|
+
if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined")) {
|
|
432
436
|
return { __this, __a in return try (jsCastPresent(__this) as ActionBar).symbol_getDefault_backgroundColor()
|
|
433
437
|
}
|
|
434
438
|
}
|
|
435
|
-
if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined") {
|
|
439
|
+
if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined")) {
|
|
436
440
|
return { __this, __a in
|
|
437
441
|
try (jsCastPresent(__this) as ActionBar).symbol_setNative_backgroundColor(jsArg(__a, 0))
|
|
438
442
|
return nil
|
|
439
443
|
}
|
|
440
444
|
}
|
|
441
|
-
if key == ((Core_ui_styling_style_properties.backgroundImageProperty?.getDefault)?.key ?? "undefined") {
|
|
445
|
+
if key == (try? ((Core_ui_styling_style_properties.backgroundImageProperty?.getDefault)?.key ?? "undefined")) {
|
|
442
446
|
return { __this, __a in return try (jsCastPresent(__this) as ActionBar).symbol_getDefault_backgroundImage()
|
|
443
447
|
}
|
|
444
448
|
}
|
|
445
|
-
if key == ((Core_ui_styling_style_properties.backgroundImageProperty?.setNative)?.key ?? "undefined") {
|
|
449
|
+
if key == (try? ((Core_ui_styling_style_properties.backgroundImageProperty?.setNative)?.key ?? "undefined")) {
|
|
446
450
|
return { __this, __a in
|
|
447
451
|
try (jsCastPresent(__this) as ActionBar).symbol_setNative_backgroundImage(jsArg(__a, 0))
|
|
448
452
|
return nil
|
|
449
453
|
}
|
|
450
454
|
}
|
|
451
|
-
if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined")
|
|
455
|
+
if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined"))
|
|
456
|
+
{
|
|
452
457
|
return { __this, __a in
|
|
453
458
|
return try (jsCastPresent(__this) as ActionBar).symbol_getDefault_backgroundInternal_ActionBar()
|
|
454
459
|
}
|
|
455
460
|
}
|
|
456
|
-
if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined")
|
|
461
|
+
if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined"))
|
|
462
|
+
{
|
|
457
463
|
return { __this, __a in
|
|
458
464
|
try (jsCastPresent(__this) as ActionBar).symbol_setNative_backgroundInternal_ActionBar(nil)
|
|
459
465
|
return nil
|
|
460
466
|
}
|
|
461
467
|
}
|
|
462
|
-
if key == ((Core_ui_action_bar_action_bar_common.flatProperty?.setNative)?.key ?? "undefined") {
|
|
468
|
+
if key == (try? ((Core_ui_action_bar_action_bar_common.flatProperty?.setNative)?.key ?? "undefined")) {
|
|
463
469
|
return { __this, __a in
|
|
464
470
|
try (jsCastPresent(__this) as ActionBar).symbol_setNative_flat(false)
|
|
465
471
|
return nil
|
|
466
472
|
}
|
|
467
473
|
}
|
|
468
|
-
if key
|
|
474
|
+
if key
|
|
475
|
+
== (try?
|
|
476
|
+
((Core_ui_action_bar_action_bar_common.iosIconRenderingModeProperty?.getDefault)?.key ?? "undefined"))
|
|
469
477
|
{
|
|
470
478
|
return { __this, __a in
|
|
471
479
|
return try (jsCastPresent(__this) as ActionBar).symbol_getDefault_iosIconRenderingMode()
|
|
472
480
|
}
|
|
473
481
|
}
|
|
474
|
-
if key
|
|
482
|
+
if key
|
|
483
|
+
== (try?
|
|
484
|
+
((Core_ui_action_bar_action_bar_common.iosIconRenderingModeProperty?.setNative)?.key ?? "undefined"))
|
|
485
|
+
{
|
|
475
486
|
return { __this, __a in
|
|
476
487
|
try (jsCastPresent(__this) as ActionBar).symbol_setNative_iosIconRenderingMode("")
|
|
477
488
|
return nil
|
|
478
489
|
}
|
|
479
490
|
}
|
|
480
|
-
if key == ((Core_ui_action_bar_action_bar_common.iosLargeTitleProperty?.setNative)?.key ?? "undefined") {
|
|
491
|
+
if key == (try? ((Core_ui_action_bar_action_bar_common.iosLargeTitleProperty?.setNative)?.key ?? "undefined")) {
|
|
481
492
|
return { __this, __a in
|
|
482
493
|
try (jsCastPresent(__this) as ActionBar).symbol_setNative_iosLargeTitle(
|
|
483
494
|
(try jsConvertedBool(jsArg(__a, 0))))
|
|
@@ -1427,12 +1438,13 @@ public enum Core_ui_action_bar_index {
|
|
|
1427
1438
|
#sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:70)
|
|
1428
1439
|
if try jsStrictEquals(jsGet(settings, "axisBehavior"), "horizontalOnly") {
|
|
1429
1440
|
#sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:71)
|
|
1430
|
-
try (
|
|
1431
|
-
BarButtonItemAxisBehavior.HorizontalOnly
|
|
1441
|
+
try jsNativeSet(
|
|
1442
|
+
jsUnwrap(placement, setting: "axisBehavior"), "axisBehavior", BarButtonItemAxisBehavior.HorizontalOnly)
|
|
1432
1443
|
} else if try jsStrictEquals(jsGet(settings, "axisBehavior"), "verticalPreferred") {
|
|
1433
1444
|
#sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:73)
|
|
1434
|
-
try (
|
|
1435
|
-
|
|
1445
|
+
try jsNativeSet(
|
|
1446
|
+
jsUnwrap(placement, setting: "axisBehavior"), "axisBehavior",
|
|
1447
|
+
BarButtonItemAxisBehavior.VerticalPreferred)
|
|
1436
1448
|
}
|
|
1437
1449
|
}
|
|
1438
1450
|
}
|
|
@@ -66,29 +66,35 @@ open class ActivityIndicator: ActivityIndicatorBase {
|
|
|
66
66
|
}
|
|
67
67
|
#sourceLocation()
|
|
68
68
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
69
|
-
if key
|
|
69
|
+
if key
|
|
70
|
+
== (try?
|
|
71
|
+
((Core_ui_activity_indicator_activity_indicator_common.busyProperty?.getDefault)?.key ?? "undefined"))
|
|
70
72
|
{
|
|
71
73
|
return { __this, __a in return try (jsCastPresent(__this) as ActivityIndicator).symbol_getDefault_busy() }
|
|
72
74
|
}
|
|
73
|
-
if key
|
|
75
|
+
if key
|
|
76
|
+
== (try?
|
|
77
|
+
((Core_ui_activity_indicator_activity_indicator_common.busyProperty?.setNative)?.key ?? "undefined"))
|
|
78
|
+
{
|
|
74
79
|
return { __this, __a in
|
|
75
80
|
try (jsCastPresent(__this) as ActivityIndicator).symbol_setNative_busy(
|
|
76
81
|
(try jsConvertedBool(jsArg(__a, 0))))
|
|
77
82
|
return nil
|
|
78
83
|
}
|
|
79
84
|
}
|
|
80
|
-
if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
|
|
85
|
+
if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
|
|
81
86
|
return { __this, __a in return try (jsCastPresent(__this) as ActivityIndicator).symbol_getDefault_color() }
|
|
82
87
|
}
|
|
83
|
-
if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
|
|
88
|
+
if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
|
|
84
89
|
return { __this, __a in
|
|
85
90
|
try (jsCastPresent(__this) as ActivityIndicator).symbol_setNative_color(jsArg(__a, 0))
|
|
86
91
|
return nil
|
|
87
92
|
}
|
|
88
93
|
}
|
|
89
94
|
if key
|
|
90
|
-
== (
|
|
91
|
-
|
|
95
|
+
== (try?
|
|
96
|
+
((Core_ui_activity_indicator_activity_indicator_common.iosIndicatorViewStyleProperty?.setNative)?.key
|
|
97
|
+
?? "undefined"))
|
|
92
98
|
{
|
|
93
99
|
return { __this, __a in
|
|
94
100
|
try (jsCastPresent(__this) as ActivityIndicator).symbol_setNative_iosIndicatorViewStyle(
|
|
@@ -634,7 +634,7 @@ open class KeyframeAnimation: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
634
634
|
return JSPromise<Void> { (__resolvers1: JSResolvers<Void>) throws -> Void in
|
|
635
635
|
|
|
636
636
|
#sourceLocation(file:"@nativescript/core/ui.animation.keyframe-animation.ts",line:212)
|
|
637
|
-
__resolvers1.resolve()
|
|
637
|
+
try __resolvers1.resolve()
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
#sourceLocation(file:"@nativescript/core/ui.animation.keyframe-animation.ts",line:216)
|
|
@@ -1658,8 +1658,12 @@ public enum Core_ui_builder_index {
|
|
|
1658
1658
|
jsAwait(
|
|
1659
1659
|
value: try jsObjectRequired(Builder.load(pathOrOptions, context)),
|
|
1660
1660
|
{ (__t_1: View) -> Void in
|
|
1661
|
-
|
|
1662
|
-
|
|
1661
|
+
do {
|
|
1662
|
+
__async1.returnValue(try jsObjectRequired(__t_1))
|
|
1663
|
+
} catch {
|
|
1664
|
+
__async1.throwValue(jsCaught(error))
|
|
1665
|
+
}
|
|
1666
|
+
}, __async1.throwValue)
|
|
1663
1667
|
}
|
|
1664
1668
|
return __async1.promise
|
|
1665
1669
|
}
|
|
@@ -206,68 +206,69 @@ open class Button: ButtonBase {
|
|
|
206
206
|
}
|
|
207
207
|
#sourceLocation()
|
|
208
208
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
209
|
-
if key == ((Core_ui_styling_style_properties.borderTopWidthProperty?.getDefault)?.key ?? "undefined") {
|
|
209
|
+
if key == (try? ((Core_ui_styling_style_properties.borderTopWidthProperty?.getDefault)?.key ?? "undefined")) {
|
|
210
210
|
return { __this, __a in return try (jsCastPresent(__this) as Button).symbol_getDefault_borderTopWidth() }
|
|
211
211
|
}
|
|
212
|
-
if key == ((Core_ui_styling_style_properties.borderTopWidthProperty?.setNative)?.key ?? "undefined") {
|
|
212
|
+
if key == (try? ((Core_ui_styling_style_properties.borderTopWidthProperty?.setNative)?.key ?? "undefined")) {
|
|
213
213
|
return { __this, __a in
|
|
214
214
|
try (jsCastPresent(__this) as Button).symbol_setNative_borderTopWidth(nil)
|
|
215
215
|
return nil
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
if key == ((Core_ui_styling_style_properties.borderRightWidthProperty?.getDefault)?.key ?? "undefined") {
|
|
218
|
+
if key == (try? ((Core_ui_styling_style_properties.borderRightWidthProperty?.getDefault)?.key ?? "undefined")) {
|
|
219
219
|
return { __this, __a in return try (jsCastPresent(__this) as Button).symbol_getDefault_borderRightWidth() }
|
|
220
220
|
}
|
|
221
|
-
if key == ((Core_ui_styling_style_properties.borderRightWidthProperty?.setNative)?.key ?? "undefined") {
|
|
221
|
+
if key == (try? ((Core_ui_styling_style_properties.borderRightWidthProperty?.setNative)?.key ?? "undefined")) {
|
|
222
222
|
return { __this, __a in
|
|
223
223
|
try (jsCastPresent(__this) as Button).symbol_setNative_borderRightWidth(nil)
|
|
224
224
|
return nil
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
if key == ((Core_ui_styling_style_properties.borderBottomWidthProperty?.getDefault)?.key ?? "undefined")
|
|
227
|
+
if key == (try? ((Core_ui_styling_style_properties.borderBottomWidthProperty?.getDefault)?.key ?? "undefined"))
|
|
228
|
+
{
|
|
228
229
|
return { __this, __a in return try (jsCastPresent(__this) as Button).symbol_getDefault_borderBottomWidth() }
|
|
229
230
|
}
|
|
230
|
-
if key == ((Core_ui_styling_style_properties.borderBottomWidthProperty?.setNative)?.key ?? "undefined") {
|
|
231
|
+
if key == (try? ((Core_ui_styling_style_properties.borderBottomWidthProperty?.setNative)?.key ?? "undefined")) {
|
|
231
232
|
return { __this, __a in
|
|
232
233
|
try (jsCastPresent(__this) as Button).symbol_setNative_borderBottomWidth(nil)
|
|
233
234
|
return nil
|
|
234
235
|
}
|
|
235
236
|
}
|
|
236
|
-
if key == ((Core_ui_styling_style_properties.borderLeftWidthProperty?.getDefault)?.key ?? "undefined") {
|
|
237
|
+
if key == (try? ((Core_ui_styling_style_properties.borderLeftWidthProperty?.getDefault)?.key ?? "undefined")) {
|
|
237
238
|
return { __this, __a in return try (jsCastPresent(__this) as Button).symbol_getDefault_borderLeftWidth() }
|
|
238
239
|
}
|
|
239
|
-
if key == ((Core_ui_styling_style_properties.borderLeftWidthProperty?.setNative)?.key ?? "undefined") {
|
|
240
|
+
if key == (try? ((Core_ui_styling_style_properties.borderLeftWidthProperty?.setNative)?.key ?? "undefined")) {
|
|
240
241
|
return { __this, __a in
|
|
241
242
|
try (jsCastPresent(__this) as Button).symbol_setNative_borderLeftWidth(nil)
|
|
242
243
|
return nil
|
|
243
244
|
}
|
|
244
245
|
}
|
|
245
|
-
if key == ((Core_ui_styling_style_properties.paddingInternalProperty?.setNative)?.key ?? "undefined") {
|
|
246
|
+
if key == (try? ((Core_ui_styling_style_properties.paddingInternalProperty?.setNative)?.key ?? "undefined")) {
|
|
246
247
|
return { __this, __a in
|
|
247
248
|
try (jsCastPresent(__this) as Button).symbol_setNative_paddingInternal("")
|
|
248
249
|
return nil
|
|
249
250
|
}
|
|
250
251
|
}
|
|
251
|
-
if key == ((Core_ui_text_base_text_base_common.textAlignmentProperty?.setNative)?.key ?? "undefined") {
|
|
252
|
+
if key == (try? ((Core_ui_text_base_text_base_common.textAlignmentProperty?.setNative)?.key ?? "undefined")) {
|
|
252
253
|
return { __this, __a in
|
|
253
254
|
try (jsCastPresent(__this) as Button).symbol_setNative_textAlignment_Button(
|
|
254
255
|
(try jsConvertedString(jsArg(__a, 0))))
|
|
255
256
|
return nil
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
|
-
if key == ((Core_ui_text_base_text_base_common.whiteSpaceProperty?.setNative)?.key ?? "undefined") {
|
|
259
|
+
if key == (try? ((Core_ui_text_base_text_base_common.whiteSpaceProperty?.setNative)?.key ?? "undefined")) {
|
|
259
260
|
return { __this, __a in
|
|
260
261
|
try (jsCastPresent(__this) as Button).symbol_setNative_whiteSpace("")
|
|
261
262
|
return nil
|
|
262
263
|
}
|
|
263
264
|
}
|
|
264
|
-
if key == ((Core_ui_text_base_text_base_common.textOverflowProperty?.setNative)?.key ?? "undefined") {
|
|
265
|
+
if key == (try? ((Core_ui_text_base_text_base_common.textOverflowProperty?.setNative)?.key ?? "undefined")) {
|
|
265
266
|
return { __this, __a in
|
|
266
267
|
try (jsCastPresent(__this) as Button).symbol_setNative_textOverflow("")
|
|
267
268
|
return nil
|
|
268
269
|
}
|
|
269
270
|
}
|
|
270
|
-
if key == ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined") {
|
|
271
|
+
if key == (try? ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined")) {
|
|
271
272
|
return { __this, __a in
|
|
272
273
|
try (jsCastPresent(__this) as Button).symbol_setNative_direction_Button(
|
|
273
274
|
(try jsConvertedString(jsArg(__a, 0))))
|
|
@@ -3622,17 +3622,17 @@ public enum Core_ui_core_properties_index {
|
|
|
3622
3622
|
#sourceLocation()
|
|
3623
3623
|
/// Wrap a local setter: a string holding var()/calc() is written substituted and kept
|
|
3624
3624
|
/// for the cascade to substitute again, any other write releases what was kept.
|
|
3625
|
-
public static func localCssExpressionSetter
|
|
3625
|
+
public static func localCssExpressionSetter(_ cssName: String, _ set: Any?) -> Any? {
|
|
3626
3626
|
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:419)
|
|
3627
3627
|
return
|
|
3628
3628
|
({ (__this: Any?, __a: [Any?]) throws -> Any? in
|
|
3629
|
-
let __self: T? = jsConverted(__this, to: T.self)
|
|
3630
3629
|
let value: Any? = jsArg(__a, 0)
|
|
3631
3630
|
try { () throws -> Void in
|
|
3632
3631
|
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:420)
|
|
3633
3632
|
if Core_ui_core_properties_index.hasCssExpression(value) {
|
|
3634
3633
|
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:421)
|
|
3635
|
-
let view: ViewBase? = try jsUnwrap(
|
|
3634
|
+
let view: ViewBase? = try jsUnwrap(jsGet(__this, "viewRef") as? JSWeakRef<ViewBase>, "get")
|
|
3635
|
+
.get()
|
|
3636
3636
|
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:422)
|
|
3637
3637
|
if jsTruthy(view as Any?) {
|
|
3638
3638
|
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:423)
|
|
@@ -3641,18 +3641,19 @@ public enum Core_ui_core_properties_index {
|
|
|
3641
3641
|
let substituted: Any? = try Core_ui_core_properties_index._evaluateCssExpressions(
|
|
3642
3642
|
view, cssName, jsLenientString(value), (reads as? JSMap<String, String>))
|
|
3643
3643
|
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:425)
|
|
3644
|
-
_ = try jsCallMethod(set, "call",
|
|
3644
|
+
_ = try jsCallMethod(set, "call", __this, substituted)
|
|
3645
3645
|
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:426)
|
|
3646
3646
|
try Core_ui_core_properties_index.keepLocalCssExpression(
|
|
3647
|
-
|
|
3647
|
+
(try jsCast(__this, Style.self)), cssName, jsLenientString(value), substituted, reads)
|
|
3648
3648
|
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:428)
|
|
3649
3649
|
return
|
|
3650
3650
|
}
|
|
3651
3651
|
}
|
|
3652
3652
|
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:432)
|
|
3653
|
-
_ = try jsCallMethod(set, "call",
|
|
3653
|
+
_ = try jsCallMethod(set, "call", __this, value)
|
|
3654
3654
|
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:433)
|
|
3655
|
-
try Core_ui_core_properties_index.releaseLocalCssExpression(
|
|
3655
|
+
try Core_ui_core_properties_index.releaseLocalCssExpression(
|
|
3656
|
+
(try jsCast(__this, Style.self)), cssName)
|
|
3656
3657
|
}()
|
|
3657
3658
|
return nil
|
|
3658
3659
|
} as JSMethod)
|