@nstudio/nativescript-compiler 9.2.0-alpha.17 → 9.2.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/config.js +1 -0
- package/dist/kotlin/access.js +8 -7
- package/dist/kotlin/arguments.js +6 -0
- package/dist/kotlin/assignment.js +22 -13
- package/dist/kotlin/builtins.js +67 -0
- package/dist/kotlin/calls.js +3 -2
- package/dist/kotlin/class-declaration.js +4 -9
- package/dist/kotlin/class-methods.js +2 -2
- package/dist/kotlin/core-api.js +1 -1
- package/dist/kotlin/declarations.js +1 -1
- package/dist/kotlin/expression-statements.js +13 -1
- package/dist/kotlin/functions.js +1 -0
- package/dist/kotlin/literals.js +4 -8
- package/dist/kotlin/names.js +4 -4
- package/dist/kotlin/native/api.js +1 -1
- package/dist/kotlin/operators.js +25 -25
- package/dist/kotlin/optional-chains.js +1 -1
- package/dist/kotlin/overrides.js +3 -3
- package/dist/kotlin/state-backend.js +6 -2
- package/dist/kotlin/translator.js +1 -1
- package/dist/kotlin/types.js +4 -4
- package/dist/semantics/classes.js +15 -0
- package/dist/semantics/conversion.js +9 -1
- package/dist/semantics/facts.js +1 -1
- package/dist/semantics/lang.js +10 -0
- package/dist/semantics/lower.js +54 -0
- package/dist/semantics/lowering-methods.js +5 -0
- package/dist/semantics/placement.js +9 -3
- package/dist/semantics/runtime.js +1 -0
- package/dist/semantics/signals.js +11 -0
- package/dist/semantics/states/missing.js +7 -0
- package/dist/semantics/tdz.js +54 -15
- package/dist/semantics/throws.js +2 -2
- package/dist/semantics/translator-methods.js +1 -1
- package/dist/swift/access.js +7 -9
- package/dist/swift/arguments.js +14 -9
- package/dist/swift/assignment.js +26 -15
- package/dist/swift/calls.js +13 -5
- package/dist/swift/class-methods.js +2 -1
- package/dist/swift/classes.js +7 -9
- package/dist/swift/components.js +3 -3
- package/dist/swift/control-flow.js +1 -1
- package/dist/swift/conversion.js +5 -2
- package/dist/swift/core-api.js +2 -2
- package/dist/swift/declarations.js +1 -1
- package/dist/swift/expressions.js +6 -2
- package/dist/swift/from-any.js +1 -1
- package/dist/swift/functions.js +5 -6
- package/dist/swift/global-calls.js +1 -1
- package/dist/swift/lenient.js +1 -6
- package/dist/swift/library.js +2 -2
- package/dist/swift/literals.js +8 -3
- package/dist/swift/method-values.js +2 -1
- package/dist/swift/modules.js +3 -3
- package/dist/swift/names.js +7 -7
- package/dist/swift/native/calls.js +10 -4
- package/dist/swift/object-classes.js +84 -1
- package/dist/swift/operators.js +31 -29
- package/dist/swift/placement.js +22 -6
- package/dist/swift/state-backend.js +3 -2
- package/dist/swift/static-calls.js +3 -4
- package/dist/swift/syntax.js +10 -6
- package/dist/swift/translator.js +1 -1
- package/dist/swift/type-facts.js +3 -3
- package/dist/swift/types.js +5 -5
- package/dist/targets/ios/build.js +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +1 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +525 -99
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +2 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +29 -6
- package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +14 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +3 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +49 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +0 -8
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +0 -16
- package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +6 -4
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +19 -7
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +14 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +19 -10
- package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +17 -29
- package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +144 -22
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +8 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +2 -10
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +0 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +6 -10
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +531 -8
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +0 -9
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +3 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +19 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +5 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +232 -174
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_android_runtime_version.kt +75 -0
- package/kit-android/generated/manifest.json +21 -18
- 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/Array.kt +497 -42
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +1 -1
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +22 -2
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +32 -18
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +7 -3
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +14 -10
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +3 -9
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +20 -21
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +5 -7
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +2 -4
- package/kit-apple/Sources/NativeScriptKit/Core/Object_specified_substituted_reads.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +348 -330
- package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +358 -359
- package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +47 -29
- package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +3 -1
- package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +95 -53
- package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +58 -49
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +10 -10
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +67 -52
- package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +69 -53
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +4 -22
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +144 -32
- package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +30 -19
- package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +190 -78
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +205 -201
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +41 -42
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +2 -2
- 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.index.ios.swift +77 -65
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +10 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +14 -13
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +1273 -824
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +87 -67
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -1
- 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.frame.frame-common.swift +2 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +6 -6
- 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.flexbox-layout.index.ios.swift +22 -21
- 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 +204 -190
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +12 -10
- package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +2 -6
- 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 +17 -12
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +869 -838
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +46 -31
- 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 +3 -4
- 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.text-view.text-view-common.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +22 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +32 -32
- 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.android-runtime-version.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +62 -61
- package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +4 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +2 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +280 -9
- package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +3 -2
- package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +2 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +1 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +1 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +1 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +2 -0
- package/package.json +6 -4
|
@@ -647,18 +647,26 @@ open class Style: Observable, JSStringConvertible {
|
|
|
647
647
|
if jsMadeBits1 & (1 << 58) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 58, "_localValueVersion") }
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
+
/// Local values specified with var()/calc(), by css name, with the variables their
|
|
651
|
+
/// last substitution read and what it produced. The cascade substitutes them again
|
|
652
|
+
/// when those variables change.
|
|
653
|
+
open var _localCssExpressions: JSMap<String, Any?>? = JSMap<String, Any?>() {
|
|
654
|
+
didSet {
|
|
655
|
+
if jsMadeBits1 & (1 << 59) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 59, "_localCssExpressions") }
|
|
656
|
+
}
|
|
657
|
+
}
|
|
650
658
|
public init(_ ownerView: Any?) throws {
|
|
651
659
|
try super.init()
|
|
652
660
|
jsMadeLevel(&jsMade, ["unscopedCssVariables", "scopedCssVariables"])
|
|
653
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
661
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:46)
|
|
654
662
|
if try jsIndexOf(jsLenientString(jsCallMethod(jsConstructor(ownerView), "toString")), "[native code]", nil)
|
|
655
663
|
!= -1 || jsStringEquals(jsLenientString(jsCallMethod(ownerView, "toString")), "[object WeakRef]")
|
|
656
664
|
{
|
|
657
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
665
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:47)
|
|
658
666
|
self.viewRef = (ownerView as? JSWeakRef<ViewBase>)
|
|
659
667
|
if jsMadeBits1 & (1 << 57) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 57, "viewRef") }
|
|
660
668
|
} else {
|
|
661
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
669
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:49)
|
|
662
670
|
self.viewRef = try JSWeakRef<ViewBase>((jsCastPresent(ownerView) as ViewBase))
|
|
663
671
|
if jsMadeBits1 & (1 << 57) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 57, "viewRef") }
|
|
664
672
|
}
|
|
@@ -666,89 +674,89 @@ open class Style: Observable, JSStringConvertible {
|
|
|
666
674
|
#sourceLocation()
|
|
667
675
|
open var view: ViewBase? {
|
|
668
676
|
get throws {
|
|
669
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
677
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:286)
|
|
670
678
|
if jsTruthy(self.viewRef) {
|
|
671
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
679
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:287)
|
|
672
680
|
return try (jsUnwrap(self.viewRef, "get").get() as? ViewBase)
|
|
673
681
|
}
|
|
674
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
682
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:290)
|
|
675
683
|
return nil
|
|
676
684
|
}
|
|
677
685
|
}
|
|
678
686
|
#sourceLocation()
|
|
679
687
|
open func setScopedCssVariable(_ varName: String, _ value: String) throws {
|
|
680
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
688
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:54)
|
|
681
689
|
_ = try jsUnwrap(self.scopedCssVariables, "set").set(varName, value)
|
|
682
690
|
}
|
|
683
691
|
#sourceLocation()
|
|
684
692
|
open func setUnscopedCssVariable(_ varName: String, _ value: String) throws {
|
|
685
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
693
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:58)
|
|
686
694
|
_ = try jsUnwrap(self.unscopedCssVariables, "set").set(varName, value)
|
|
687
695
|
}
|
|
688
696
|
#sourceLocation()
|
|
689
697
|
open func removeScopedCssVariable(_ varName: String) throws {
|
|
690
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
698
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:62)
|
|
691
699
|
_ = try jsUnwrap(self.scopedCssVariables, "delete").delete(varName)
|
|
692
700
|
}
|
|
693
701
|
#sourceLocation()
|
|
694
702
|
open func removeUnscopedCssVariable(_ varName: String) throws {
|
|
695
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
703
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:66)
|
|
696
704
|
_ = try jsUnwrap(self.unscopedCssVariables, "delete").delete(varName)
|
|
697
705
|
}
|
|
698
706
|
#sourceLocation()
|
|
699
707
|
open func getCssVariable(_ varName: String) throws -> String? {
|
|
700
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:69)
|
|
701
|
-
let view: ViewBase? = try self.view
|
|
702
708
|
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:70)
|
|
709
|
+
let view: ViewBase? = try self.view
|
|
710
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:71)
|
|
703
711
|
if !jsTruthy(view) {
|
|
704
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
712
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:72)
|
|
705
713
|
return nil
|
|
706
714
|
}
|
|
707
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
715
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:75)
|
|
708
716
|
if try jsUnwrap(self.unscopedCssVariables, "has").has(varName) {
|
|
709
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
717
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:76)
|
|
710
718
|
return try jsUnwrap(self.unscopedCssVariables, "get").get(varName)
|
|
711
719
|
}
|
|
712
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
720
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:79)
|
|
713
721
|
if try jsUnwrap(self.scopedCssVariables, "has").has(varName) {
|
|
714
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
722
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:80)
|
|
715
723
|
return try jsUnwrap(self.scopedCssVariables, "get").get(varName)
|
|
716
724
|
}
|
|
717
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
725
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:83)
|
|
718
726
|
if try !(jsTruthy(jsUnwrap(view, "parent").parent))
|
|
719
727
|
|| !(jsTruthy(jsUnwrap(jsUnwrap(view, "parent").parent, "style").style))
|
|
720
728
|
{
|
|
721
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
729
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:84)
|
|
722
730
|
return nil
|
|
723
731
|
}
|
|
724
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
732
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:87)
|
|
725
733
|
return try jsUnwrap(jsUnwrap(jsUnwrap(view, "parent").parent, "style").style, "getCssVariable").getCssVariable(
|
|
726
734
|
varName)
|
|
727
735
|
}
|
|
728
736
|
#sourceLocation()
|
|
729
737
|
open func resetScopedCssVariables() throws {
|
|
730
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
738
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:91)
|
|
731
739
|
try jsUnwrap(self.scopedCssVariables, "clear").clear()
|
|
732
740
|
}
|
|
733
741
|
#sourceLocation()
|
|
734
742
|
open func resetUnscopedCssVariables() throws {
|
|
735
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
743
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:95)
|
|
736
744
|
try jsUnwrap(self.unscopedCssVariables, "clear").clear()
|
|
737
745
|
}
|
|
738
746
|
#sourceLocation()
|
|
739
747
|
open func toString() throws -> String {
|
|
740
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:98)
|
|
741
|
-
let view: ViewBase? = try jsUnwrap(self.viewRef, "get").get()
|
|
742
748
|
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:99)
|
|
749
|
+
let view: ViewBase? = try jsUnwrap(self.viewRef, "get").get()
|
|
750
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:100)
|
|
743
751
|
if !jsTruthy(view as Any?) {
|
|
744
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
752
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:101)
|
|
745
753
|
try NativeScriptKit.Trace.write(
|
|
746
754
|
"toString() of Style cannot execute correctly because \".viewRef\" is cleared",
|
|
747
755
|
NativeScriptKit.Trace.categories.Animation, NativeScriptKit.Trace.messageType.warn)
|
|
748
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
756
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:103)
|
|
749
757
|
return ""
|
|
750
758
|
}
|
|
751
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
759
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:106)
|
|
752
760
|
return try "\(jsToStringThrowing((view as Any?))).style"
|
|
753
761
|
}
|
|
754
762
|
#sourceLocation()
|
|
@@ -758,6 +766,7 @@ open class Style: Observable, JSStringConvertible {
|
|
|
758
766
|
+ (jsMadeBits1 & (1 << 46) != 0 ? ["accessibilityHidden"] : [])
|
|
759
767
|
+ (jsMadeBits1 & (1 << 56) != 0 ? ["PropertyBag"] : []) + (jsMadeBits1 & (1 << 57) != 0 ? ["viewRef"] : [])
|
|
760
768
|
+ (jsMadeBits1 & (1 << 58) != 0 ? ["_localValueVersion"] : [])
|
|
769
|
+
+ (jsMadeBits1 & (1 << 59) != 0 ? ["_localCssExpressions"] : [])
|
|
761
770
|
}
|
|
762
771
|
open override var jsClassName: String? { "Style" }
|
|
763
772
|
open override subscript(jsKey key: String) -> Any? {
|
|
@@ -802,6 +811,9 @@ open class Style: Observable, JSStringConvertible {
|
|
|
802
811
|
case 20:
|
|
803
812
|
switch key {
|
|
804
813
|
case "unscopedCssVariables": return self.unscopedCssVariables
|
|
814
|
+
case "_localCssExpressions":
|
|
815
|
+
if !(jsMadeBits1 & (1 << 59) != 0) { return nil }
|
|
816
|
+
return self._localCssExpressions
|
|
805
817
|
case "setScopedCssVariable":
|
|
806
818
|
return FunctionCell_String_String_to_Void.script(
|
|
807
819
|
"setScopedCssVariable", 2, self.setScopedCssVariable)
|
|
@@ -875,6 +887,9 @@ open class Style: Observable, JSStringConvertible {
|
|
|
875
887
|
case "unscopedCssVariables":
|
|
876
888
|
self.unscopedCssVariables = (newValue as? JSMap<String, String>)
|
|
877
889
|
return
|
|
890
|
+
case "_localCssExpressions":
|
|
891
|
+
self._localCssExpressions = (newValue as? JSMap<String, Any?>)
|
|
892
|
+
return
|
|
878
893
|
default: break
|
|
879
894
|
}
|
|
880
895
|
default: break
|
|
@@ -887,18 +902,18 @@ open class Style: Observable, JSStringConvertible {
|
|
|
887
902
|
|
|
888
903
|
public func __init_Core_ui_styling_style_index() {
|
|
889
904
|
jsReport {
|
|
890
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
905
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:38)
|
|
891
906
|
JSPrototypes.declare(
|
|
892
907
|
Style.self, "view",
|
|
893
908
|
get: { (__this: Any?) throws -> Any? in
|
|
894
909
|
guard let __o = __this as? Style else { throw JSException(JSTypeError("Illegal invocation")) }
|
|
895
910
|
return try __o.view
|
|
896
911
|
}, set: nil)
|
|
897
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
912
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:38)
|
|
898
913
|
|
|
899
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
914
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:293)
|
|
900
915
|
try jsSet(JSPrototypes.of(Style.self), "PropertyBag", JSConstructor { _ in JSObject() })
|
|
901
|
-
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:
|
|
916
|
+
#sourceLocation(file:"@nativescript/core/ui.styling.style.index.ts",line:296)
|
|
902
917
|
try jsSet(JSPrototypes.of(Style.self), "_localValueVersion", Double(0))
|
|
903
918
|
}
|
|
904
919
|
}
|
|
@@ -178,49 +178,51 @@ open class Switch: SwitchBase {
|
|
|
178
178
|
}
|
|
179
179
|
#sourceLocation()
|
|
180
180
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
181
|
-
if key == ((Core_ui_switch_switch_common.checkedProperty?.getDefault)?.key ?? "undefined") {
|
|
181
|
+
if key == (try? ((Core_ui_switch_switch_common.checkedProperty?.getDefault)?.key ?? "undefined")) {
|
|
182
182
|
return { __this, __a in return try (jsCastPresent(__this) as Switch).symbol_getDefault_checked() }
|
|
183
183
|
}
|
|
184
|
-
if key == ((Core_ui_switch_switch_common.checkedProperty?.setNative)?.key ?? "undefined") {
|
|
184
|
+
if key == (try? ((Core_ui_switch_switch_common.checkedProperty?.setNative)?.key ?? "undefined")) {
|
|
185
185
|
return { __this, __a in
|
|
186
186
|
try (jsCastPresent(__this) as Switch).symbol_setNative_checked((try jsConvertedBool(jsArg(__a, 0))))
|
|
187
187
|
return nil
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
|
|
190
|
+
if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
|
|
191
191
|
return { __this, __a in return try (jsCastPresent(__this) as Switch).symbol_getDefault_color() }
|
|
192
192
|
}
|
|
193
|
-
if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
|
|
193
|
+
if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
|
|
194
194
|
return { __this, __a in
|
|
195
195
|
try (jsCastPresent(__this) as Switch).symbol_setNative_color(jsArg(__a, 0))
|
|
196
196
|
return nil
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined") {
|
|
199
|
+
if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined")) {
|
|
200
200
|
return { __this, __a in return try (jsCastPresent(__this) as Switch).symbol_getDefault_backgroundColor() }
|
|
201
201
|
}
|
|
202
|
-
if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined") {
|
|
202
|
+
if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined")) {
|
|
203
203
|
return { __this, __a in
|
|
204
204
|
try (jsCastPresent(__this) as Switch).symbol_setNative_backgroundColor(jsArg(__a, 0))
|
|
205
205
|
return nil
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined")
|
|
208
|
+
if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined"))
|
|
209
|
+
{
|
|
209
210
|
return { __this, __a in
|
|
210
211
|
return try (jsCastPresent(__this) as Switch).symbol_getDefault_backgroundInternal_Switch()
|
|
211
212
|
}
|
|
212
213
|
}
|
|
213
|
-
if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined")
|
|
214
|
+
if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined"))
|
|
215
|
+
{
|
|
214
216
|
return { __this, __a in
|
|
215
217
|
try (jsCastPresent(__this) as Switch).symbol_setNative_backgroundInternal_Switch(nil)
|
|
216
218
|
return nil
|
|
217
219
|
}
|
|
218
220
|
}
|
|
219
|
-
if key == ((Core_ui_switch_switch_common.offBackgroundColorProperty?.getDefault)?.key ?? "undefined") {
|
|
221
|
+
if key == (try? ((Core_ui_switch_switch_common.offBackgroundColorProperty?.getDefault)?.key ?? "undefined")) {
|
|
220
222
|
return { __this, __a in return try (jsCastPresent(__this) as Switch).symbol_getDefault_offBackgroundColor()
|
|
221
223
|
}
|
|
222
224
|
}
|
|
223
|
-
if key == ((Core_ui_switch_switch_common.offBackgroundColorProperty?.setNative)?.key ?? "undefined") {
|
|
225
|
+
if key == (try? ((Core_ui_switch_switch_common.offBackgroundColorProperty?.setNative)?.key ?? "undefined")) {
|
|
224
226
|
return { __this, __a in
|
|
225
227
|
try (jsCastPresent(__this) as Switch).symbol_setNative_offBackgroundColor(jsArg(__a, 0))
|
|
226
228
|
return nil
|
|
@@ -499,7 +499,7 @@ open class TabViewItem: TabViewItemBase {
|
|
|
499
499
|
}
|
|
500
500
|
#sourceLocation()
|
|
501
501
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
502
|
-
if key == ((Core_ui_text_base_text_base_common.textTransformProperty?.setNative)?.key ?? "undefined") {
|
|
502
|
+
if key == (try? ((Core_ui_text_base_text_base_common.textTransformProperty?.setNative)?.key ?? "undefined")) {
|
|
503
503
|
return { __this, __a in
|
|
504
504
|
try (jsCastPresent(__this) as TabViewItem).symbol_setNative_textTransform("")
|
|
505
505
|
return nil
|
|
@@ -887,17 +887,17 @@ open class TabView: TabViewBase {
|
|
|
887
887
|
}
|
|
888
888
|
#sourceLocation()
|
|
889
889
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
890
|
-
if key == ((Core_ui_tab_view_tab_view_common.selectedIndexProperty?.setNative)?.key ?? "undefined") {
|
|
890
|
+
if key == (try? ((Core_ui_tab_view_tab_view_common.selectedIndexProperty?.setNative)?.key ?? "undefined")) {
|
|
891
891
|
return { __this, __a in
|
|
892
892
|
try (jsCastPresent(__this) as TabView).symbol_setNative_selectedIndex(
|
|
893
893
|
(try jsConvertedNumber(jsArg(__a, 0))))
|
|
894
894
|
return nil
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
|
-
if key == ((Core_ui_tab_view_tab_view_common.itemsProperty?.getDefault)?.key ?? "undefined") {
|
|
897
|
+
if key == (try? ((Core_ui_tab_view_tab_view_common.itemsProperty?.getDefault)?.key ?? "undefined")) {
|
|
898
898
|
return { __this, __a in return try (jsCastPresent(__this) as TabView).symbol_getDefault_items() }
|
|
899
899
|
}
|
|
900
|
-
if key == ((Core_ui_tab_view_tab_view_common.itemsProperty?.setNative)?.key ?? "undefined") {
|
|
900
|
+
if key == (try? ((Core_ui_tab_view_tab_view_common.itemsProperty?.setNative)?.key ?? "undefined")) {
|
|
901
901
|
return { __this, __a in
|
|
902
902
|
try (jsCastPresent(__this) as TabView).symbol_setNative_items(
|
|
903
903
|
try jsArrayOrNil(
|
|
@@ -905,83 +905,99 @@ open class TabView: TabViewBase {
|
|
|
905
905
|
return nil
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
|
-
if key == ((Core_ui_tab_view_tab_view_common.tabTextFontSizeProperty?.getDefault)?.key ?? "undefined") {
|
|
908
|
+
if key == (try? ((Core_ui_tab_view_tab_view_common.tabTextFontSizeProperty?.getDefault)?.key ?? "undefined")) {
|
|
909
909
|
return { __this, __a in return try (jsCastPresent(__this) as TabView).symbol_getDefault_tabTextFontSize() }
|
|
910
910
|
}
|
|
911
|
-
if key == ((Core_ui_tab_view_tab_view_common.tabTextFontSizeProperty?.setNative)?.key ?? "undefined") {
|
|
911
|
+
if key == (try? ((Core_ui_tab_view_tab_view_common.tabTextFontSizeProperty?.setNative)?.key ?? "undefined")) {
|
|
912
912
|
return { __this, __a in
|
|
913
913
|
try (jsCastPresent(__this) as TabView).symbol_setNative_tabTextFontSize(nil)
|
|
914
914
|
return nil
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
if key == ((Core_ui_tab_view_tab_view_common.tabTextColorProperty?.getDefault)?.key ?? "undefined") {
|
|
917
|
+
if key == (try? ((Core_ui_tab_view_tab_view_common.tabTextColorProperty?.getDefault)?.key ?? "undefined")) {
|
|
918
918
|
return { __this, __a in return try (jsCastPresent(__this) as TabView).symbol_getDefault_tabTextColor() }
|
|
919
919
|
}
|
|
920
|
-
if key == ((Core_ui_tab_view_tab_view_common.tabTextColorProperty?.setNative)?.key ?? "undefined") {
|
|
920
|
+
if key == (try? ((Core_ui_tab_view_tab_view_common.tabTextColorProperty?.setNative)?.key ?? "undefined")) {
|
|
921
921
|
return { __this, __a in
|
|
922
922
|
try (jsCastPresent(__this) as TabView).symbol_setNative_tabTextColor(nil)
|
|
923
923
|
return nil
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
-
if key == ((Core_ui_tab_view_tab_view_common.tabBackgroundColorProperty?.getDefault)?.key ?? "undefined")
|
|
926
|
+
if key == (try? ((Core_ui_tab_view_tab_view_common.tabBackgroundColorProperty?.getDefault)?.key ?? "undefined"))
|
|
927
|
+
{
|
|
927
928
|
return { __this, __a in return try (jsCastPresent(__this) as TabView).symbol_getDefault_tabBackgroundColor()
|
|
928
929
|
}
|
|
929
930
|
}
|
|
930
|
-
if key == ((Core_ui_tab_view_tab_view_common.tabBackgroundColorProperty?.setNative)?.key ?? "undefined")
|
|
931
|
+
if key == (try? ((Core_ui_tab_view_tab_view_common.tabBackgroundColorProperty?.setNative)?.key ?? "undefined"))
|
|
932
|
+
{
|
|
931
933
|
return { __this, __a in
|
|
932
934
|
try (jsCastPresent(__this) as TabView).symbol_setNative_tabBackgroundColor(jsArg(__a, 0))
|
|
933
935
|
return nil
|
|
934
936
|
}
|
|
935
937
|
}
|
|
936
|
-
if key
|
|
938
|
+
if key
|
|
939
|
+
== (try? ((Core_ui_tab_view_tab_view_common.selectedTabTextColorProperty?.getDefault)?.key ?? "undefined"))
|
|
940
|
+
{
|
|
937
941
|
return { __this, __a in
|
|
938
942
|
return try (jsCastPresent(__this) as TabView).symbol_getDefault_selectedTabTextColor()
|
|
939
943
|
}
|
|
940
944
|
}
|
|
941
|
-
if key
|
|
945
|
+
if key
|
|
946
|
+
== (try? ((Core_ui_tab_view_tab_view_common.selectedTabTextColorProperty?.setNative)?.key ?? "undefined"))
|
|
947
|
+
{
|
|
942
948
|
return { __this, __a in
|
|
943
949
|
try (jsCastPresent(__this) as TabView).symbol_setNative_selectedTabTextColor(jsArg(__a, 0))
|
|
944
950
|
return nil
|
|
945
951
|
}
|
|
946
952
|
}
|
|
947
|
-
if key == ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined") {
|
|
953
|
+
if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined")) {
|
|
948
954
|
return { __this, __a in return try (jsCastPresent(__this) as TabView).symbol_getDefault_fontInternal() }
|
|
949
955
|
}
|
|
950
|
-
if key == ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined") {
|
|
956
|
+
if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined")) {
|
|
951
957
|
return { __this, __a in
|
|
952
958
|
try (jsCastPresent(__this) as TabView).symbol_setNative_fontInternal(nil)
|
|
953
959
|
return nil
|
|
954
960
|
}
|
|
955
961
|
}
|
|
956
|
-
if key
|
|
962
|
+
if key
|
|
963
|
+
== (try? ((Core_ui_tab_view_tab_view_common.iosIconRenderingModeProperty?.getDefault)?.key ?? "undefined"))
|
|
964
|
+
{
|
|
957
965
|
return { __this, __a in
|
|
958
966
|
return try (jsCastPresent(__this) as TabView).symbol_getDefault_iosIconRenderingMode()
|
|
959
967
|
}
|
|
960
968
|
}
|
|
961
|
-
if key
|
|
969
|
+
if key
|
|
970
|
+
== (try? ((Core_ui_tab_view_tab_view_common.iosIconRenderingModeProperty?.setNative)?.key ?? "undefined"))
|
|
971
|
+
{
|
|
962
972
|
return { __this, __a in
|
|
963
973
|
try (jsCastPresent(__this) as TabView).symbol_setNative_iosIconRenderingMode("")
|
|
964
974
|
return nil
|
|
965
975
|
}
|
|
966
976
|
}
|
|
967
|
-
if key == ((Core_ui_tab_view_tab_view_common.iosBottomAccessoryProperty?.getDefault)?.key ?? "undefined")
|
|
977
|
+
if key == (try? ((Core_ui_tab_view_tab_view_common.iosBottomAccessoryProperty?.getDefault)?.key ?? "undefined"))
|
|
978
|
+
{
|
|
968
979
|
return { __this, __a in return try (jsCastPresent(__this) as TabView).symbol_getDefault_iosBottomAccessory()
|
|
969
980
|
}
|
|
970
981
|
}
|
|
971
|
-
if key == ((Core_ui_tab_view_tab_view_common.iosBottomAccessoryProperty?.setNative)?.key ?? "undefined")
|
|
982
|
+
if key == (try? ((Core_ui_tab_view_tab_view_common.iosBottomAccessoryProperty?.setNative)?.key ?? "undefined"))
|
|
983
|
+
{
|
|
972
984
|
return { __this, __a in
|
|
973
985
|
try (jsCastPresent(__this) as TabView).symbol_setNative_iosBottomAccessory(
|
|
974
986
|
(try jsCast(jsArg(__a, 0), View.self)))
|
|
975
987
|
return nil
|
|
976
988
|
}
|
|
977
989
|
}
|
|
978
|
-
if key
|
|
990
|
+
if key
|
|
991
|
+
== (try?
|
|
992
|
+
((Core_ui_tab_view_tab_view_common.iosTabBarMinimizeBehaviorProperty?.getDefault)?.key ?? "undefined"))
|
|
979
993
|
{
|
|
980
994
|
return { __this, __a in
|
|
981
995
|
return try (jsCastPresent(__this) as TabView).symbol_getDefault_iosTabBarMinimizeBehavior()
|
|
982
996
|
}
|
|
983
997
|
}
|
|
984
|
-
if key
|
|
998
|
+
if key
|
|
999
|
+
== (try?
|
|
1000
|
+
((Core_ui_tab_view_tab_view_common.iosTabBarMinimizeBehaviorProperty?.setNative)?.key ?? "undefined"))
|
|
985
1001
|
{
|
|
986
1002
|
return { __this, __a in
|
|
987
1003
|
try (jsCastPresent(__this) as TabView).symbol_setNative_iosTabBarMinimizeBehavior(
|
|
@@ -245,7 +245,7 @@ open class FormattedString: ViewBase {
|
|
|
245
245
|
#sourceLocation(file:"@nativescript/core/ui.text-base.formatted-string.ts",line:115)
|
|
246
246
|
if jsStringEquals(name, "spans") {
|
|
247
247
|
#sourceLocation(file:"@nativescript/core/ui.text-base.formatted-string.ts",line:116)
|
|
248
|
-
_ = try jsUnwrap(self.spans, "push").push(JSArray<
|
|
248
|
+
_ = try jsUnwrap(self.spans, "push").push(JSArray<Any?>(Array(jsIterated(value, "value is not iterable"))))
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
#sourceLocation()
|
|
@@ -253,7 +253,7 @@ open class FormattedString: ViewBase {
|
|
|
253
253
|
#sourceLocation(file:"@nativescript/core/ui.text-base.formatted-string.ts",line:121)
|
|
254
254
|
if value is Span {
|
|
255
255
|
#sourceLocation(file:"@nativescript/core/ui.text-base.formatted-string.ts",line:122)
|
|
256
|
-
_ = try jsUnwrap(self.spans, "push").push(JSArray<
|
|
256
|
+
_ = try jsUnwrap(self.spans, "push").push(JSArray<Any?>([(jsCastPresent(value) as Span)]))
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
#sourceLocation()
|
|
@@ -661,8 +661,7 @@ open class FormattedString: ViewBase {
|
|
|
661
661
|
case 6:
|
|
662
662
|
switch key {
|
|
663
663
|
case "_spans":
|
|
664
|
-
self._spans =
|
|
665
|
-
newValue, { (jsFlat($0) as? ObservableArray) ?? ObservableArray(jsObject: $0) })
|
|
664
|
+
self._spans = (newValue as? ObservableArray)
|
|
666
665
|
return
|
|
667
666
|
default: break
|
|
668
667
|
}
|
|
@@ -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
|
-
== (
|
|
513
|
-
|
|
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
|
-
== (
|
|
522
|
-
|
|
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
|
-
== (
|
|
531
|
-
|
|
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<
|
|
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)
|