@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
|
@@ -22,17 +22,16 @@ public enum Package_css_what_src_stringify {
|
|
|
22
22
|
public static var charsToEscapeInPseudoValue: JSSet<Double>? = JSSet<Double>()
|
|
23
23
|
public static var charsToEscapeInName: JSSet<Double>? = JSSet<Double>()
|
|
24
24
|
/// Turns `selector` back into a string.
|
|
25
|
-
///
|
|
26
25
|
/// @param selector Selector to stringify.
|
|
27
26
|
public static func stringify(_ selector: JSArray<JSArray<Any?>>?) throws -> String {
|
|
28
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
27
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:36)
|
|
29
28
|
return try jsUnwrap(
|
|
30
29
|
(jsUnwrap(selector, "map") as JSArray<JSArray<Any?>>).map({ (token: JSArray<Any?>?) throws -> String in
|
|
31
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
30
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:38)
|
|
32
31
|
return try jsUnwrap(
|
|
33
32
|
(jsUnwrap(token, "map") as JSArray<Any?>).map({
|
|
34
33
|
(token: Any?, index: Double, array: JSArray<Any?>?) throws -> String in
|
|
35
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
34
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:40)
|
|
36
35
|
return try Package_css_what_src_stringify.stringifyToken(token, index, array)
|
|
37
36
|
}), "join"
|
|
38
37
|
).join("")
|
|
@@ -41,73 +40,73 @@ public enum Package_css_what_src_stringify {
|
|
|
41
40
|
}
|
|
42
41
|
#sourceLocation()
|
|
43
42
|
public static func stringifyToken(_ token: Any?, _ index: Double, _ array: JSArray<Any?>?) throws -> String {
|
|
44
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
43
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:52)
|
|
45
44
|
let __switch1: String = try jsConvertedString(jsGet(token, "type"))
|
|
46
45
|
switch __switch1 {
|
|
47
46
|
case _ where jsStringEquals(__switch1, SelectorType.Child):
|
|
48
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
47
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:55)
|
|
49
48
|
return (index == 0 ? "> " : " > ")
|
|
50
49
|
case _ where jsStringEquals(__switch1, SelectorType.Parent):
|
|
51
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
50
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:58)
|
|
52
51
|
return (index == 0 ? "< " : " < ")
|
|
53
52
|
case _ where jsStringEquals(__switch1, SelectorType.Sibling):
|
|
54
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
53
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:61)
|
|
55
54
|
return (index == 0 ? "~ " : " ~ ")
|
|
56
55
|
case _ where jsStringEquals(__switch1, SelectorType.Adjacent):
|
|
57
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
56
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:64)
|
|
58
57
|
return (index == 0 ? "+ " : " + ")
|
|
59
58
|
case _ where jsStringEquals(__switch1, SelectorType.Descendant):
|
|
60
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
59
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:67)
|
|
61
60
|
return " "
|
|
62
61
|
case _ where jsStringEquals(__switch1, SelectorType.ColumnCombinator):
|
|
63
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
62
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:70)
|
|
64
63
|
return (index == 0 ? "|| " : " || ")
|
|
65
64
|
case _ where jsStringEquals(__switch1, SelectorType.Universal):
|
|
66
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
65
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:74)
|
|
67
66
|
return try
|
|
68
67
|
(jsStrictEquals(jsGet(token, "namespace"), "*") && index + 1 < jsUnwrap(array, "length").length
|
|
69
68
|
&& jsHasKey(((jsUnwrap(array, "index + 1").element(index + 1) ?? nil) as Any?), "name")
|
|
70
69
|
? "" : "\(Package_css_what_src_stringify.getNamespace(jsConvertedString(jsGet(token, "namespace"))))*")
|
|
71
70
|
case _ where jsStringEquals(__switch1, SelectorType.Tag):
|
|
72
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
71
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:82)
|
|
73
72
|
return try Package_css_what_src_stringify.getNamespacedName(token)
|
|
74
73
|
case _ where jsStringEquals(__switch1, SelectorType.PseudoElement):
|
|
75
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
74
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:86)
|
|
76
75
|
return try
|
|
77
76
|
"::\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "name")), Package_css_what_src_stringify.charsToEscapeInName))\((jsStrictEquals(jsGet(token, "data"), jsNull) ? "" : "(\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "data")), Package_css_what_src_stringify.charsToEscapeInPseudoValue)))"))"
|
|
78
77
|
case _ where jsStringEquals(__switch1, SelectorType.Pseudo):
|
|
79
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
78
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:94)
|
|
80
79
|
return try
|
|
81
80
|
":\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "name")), Package_css_what_src_stringify.charsToEscapeInName))\((jsStrictEquals(jsGet(token, "data"), jsNull) ? "" : "(\((jsStringEquals(jsTypeof(jsGet(token, "data")), "string") ? Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "data")), Package_css_what_src_stringify.charsToEscapeInPseudoValue) : Package_css_what_src_stringify.stringify(try jsArrayOrNil(jsGet(token, "data"), as: JSArray<JSArray<Any?>>.self, { try jsObjectRequired(jsArrayOrNil($0, as: JSArray<Any?>.self, { $0 })) })))))"))"
|
|
82
81
|
case _ where jsStringEquals(__switch1, SelectorType.Attribute):
|
|
83
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
82
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:108)
|
|
84
83
|
do {
|
|
85
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
84
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:109)
|
|
86
85
|
if try jsStrictEquals(jsGet(token, "name"), "id")
|
|
87
86
|
&& jsStrictEquals(jsGet(token, "action"), AttributeAction.Equals)
|
|
88
87
|
&& jsStrictEquals(jsGet(token, "ignoreCase"), "quirks") && !(jsTruthy(jsGet(token, "namespace")))
|
|
89
88
|
{
|
|
90
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
89
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:115)
|
|
91
90
|
return try
|
|
92
91
|
"#\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "value")), Package_css_what_src_stringify.charsToEscapeInName))"
|
|
93
92
|
}
|
|
94
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
93
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:117)
|
|
95
94
|
if try jsStrictEquals(jsGet(token, "name"), "class")
|
|
96
95
|
&& jsStrictEquals(jsGet(token, "action"), AttributeAction.Element)
|
|
97
96
|
&& jsStrictEquals(jsGet(token, "ignoreCase"), "quirks") && !(jsTruthy(jsGet(token, "namespace")))
|
|
98
97
|
{
|
|
99
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
98
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:123)
|
|
100
99
|
return try
|
|
101
100
|
".\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "value")), Package_css_what_src_stringify.charsToEscapeInName))"
|
|
102
101
|
}
|
|
103
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
102
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:126)
|
|
104
103
|
let name: String = try Package_css_what_src_stringify.getNamespacedName(token)
|
|
105
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
104
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:128)
|
|
106
105
|
if try jsStrictEquals(jsGet(token, "action"), AttributeAction.Exists) {
|
|
107
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
106
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:129)
|
|
108
107
|
return "[\(name)]"
|
|
109
108
|
}
|
|
110
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
109
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:132)
|
|
111
110
|
return try
|
|
112
111
|
"[\(name)\(Package_css_what_src_stringify.getActionValue(jsConvertedString(jsGet(token, "action"))))=\"\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "value")), Package_css_what_src_stringify.charsToEscapeInAttributeValue))\"\((jsStrictEquals(jsGet(token, "ignoreCase"), jsNull) ? "" : (jsTruthy(jsGet(token, "ignoreCase")) ? " i" : " s")))]"
|
|
113
112
|
}
|
|
@@ -118,44 +117,44 @@ public enum Package_css_what_src_stringify {
|
|
|
118
117
|
}
|
|
119
118
|
#sourceLocation()
|
|
120
119
|
public static func getActionValue(_ action: String) throws -> String {
|
|
121
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
120
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:145)
|
|
122
121
|
let __switch2: String = action
|
|
123
122
|
switch __switch2 {
|
|
124
123
|
case _ where jsStringEquals(__switch2, AttributeAction.Equals):
|
|
125
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
124
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:147)
|
|
126
125
|
return ""
|
|
127
126
|
case _ where jsStringEquals(__switch2, AttributeAction.Element):
|
|
128
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
127
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:150)
|
|
129
128
|
return "~"
|
|
130
129
|
case _ where jsStringEquals(__switch2, AttributeAction.Start):
|
|
131
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
130
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:153)
|
|
132
131
|
return "^"
|
|
133
132
|
case _ where jsStringEquals(__switch2, AttributeAction.End):
|
|
134
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
133
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:156)
|
|
135
134
|
return "$"
|
|
136
135
|
case _ where jsStringEquals(__switch2, "any"):
|
|
137
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
136
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:159)
|
|
138
137
|
return "*"
|
|
139
138
|
case _ where jsStringEquals(__switch2, AttributeAction.Not):
|
|
140
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
139
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:162)
|
|
141
140
|
return "!"
|
|
142
141
|
case _ where jsStringEquals(__switch2, AttributeAction.Hyphen):
|
|
143
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
142
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:165)
|
|
144
143
|
return "|"
|
|
145
144
|
default:
|
|
146
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
145
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:168)
|
|
147
146
|
throw JSException(value: JSError("Shouldn't be here"))
|
|
148
147
|
}
|
|
149
148
|
}
|
|
150
149
|
#sourceLocation()
|
|
151
150
|
public static func getNamespacedName(_ token: Any?) throws -> String {
|
|
152
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
151
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:177)
|
|
153
152
|
return try
|
|
154
153
|
"\(Package_css_what_src_stringify.getNamespace(jsConvertedString(jsGet(token, "namespace"))))\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "name")), Package_css_what_src_stringify.charsToEscapeInName))"
|
|
155
154
|
}
|
|
156
155
|
#sourceLocation()
|
|
157
156
|
public static func getNamespace(_ namespace: Any?) throws -> String {
|
|
158
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
157
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:184)
|
|
159
158
|
return try
|
|
160
159
|
(jsStrictEquals(namespace, jsNull)
|
|
161
160
|
? ""
|
|
@@ -163,23 +162,23 @@ public enum Package_css_what_src_stringify {
|
|
|
163
162
|
}
|
|
164
163
|
#sourceLocation()
|
|
165
164
|
public static func escapeName(_ name: String, _ charsToEscape: JSSet<Double>?) throws -> String {
|
|
166
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:193)
|
|
167
|
-
var lastIndex: Double = 0
|
|
168
165
|
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:194)
|
|
166
|
+
var lastIndex: Double = 0
|
|
167
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:195)
|
|
169
168
|
var escapedName: String = ""
|
|
170
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
169
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:197)
|
|
171
170
|
var index: Double = 0
|
|
172
171
|
while index < Double(name.utf16.count) {
|
|
173
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
172
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:198)
|
|
174
173
|
if try jsUnwrap(charsToEscape, "has").has(jsCharCodeAt(name, index)) {
|
|
175
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:198)
|
|
176
|
-
escapedName += "\(jsSlice(name, lastIndex, index))\\\(jsCharAt(name, index))"
|
|
177
174
|
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:199)
|
|
175
|
+
escapedName += "\(jsSlice(name, lastIndex, index))\\\(jsCharAt(name, index))"
|
|
176
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:200)
|
|
178
177
|
lastIndex = index + 1
|
|
179
178
|
}
|
|
180
179
|
index += 1
|
|
181
180
|
}
|
|
182
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:
|
|
181
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:204)
|
|
183
182
|
return (Double(escapedName.utf16.count) > 0 ? escapedName + jsSlice(name, lastIndex) : name)
|
|
184
183
|
}
|
|
185
184
|
}
|
|
@@ -55,7 +55,7 @@ public enum Package_css_what_src_types {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
public func __init_Package_css_what_src_types() {
|
|
58
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.types.ts",line:
|
|
58
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.types.ts",line:34)
|
|
59
59
|
Package_css_what_src_types.IgnoreCaseMode = Object_Unknown_QuirksMode_IgnoreCase_CaseSensitive(
|
|
60
60
|
Unknown: jsNull, QuirksMode: "quirks", IgnoreCase: true, CaseSensitive: false)
|
|
61
61
|
}
|
|
@@ -15,7 +15,7 @@ import SystemConfiguration
|
|
|
15
15
|
import UIKit
|
|
16
16
|
import WebKit
|
|
17
17
|
|
|
18
|
-
public protocol TraceErrorHandler: JSDynamic {
|
|
18
|
+
@MainActor public protocol TraceErrorHandler: JSDynamic {
|
|
19
19
|
func handlerError(_ error: JSError) throws -> Any?
|
|
20
20
|
}
|
|
21
21
|
public final class TraceErrorHandlerObject: TraceErrorHandler, JSObjectConvertible {
|
|
@@ -85,7 +85,7 @@ public final class TraceErrorHandlerObject: TraceErrorHandler, JSObjectConvertib
|
|
|
85
85
|
public func handlerError(_ error: JSError) throws -> Any? { try jsCallable(_handlerError, "handlerError")(error) }
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
public protocol TraceWriter: JSDynamic {
|
|
88
|
+
@MainActor public protocol TraceWriter: JSDynamic {
|
|
89
89
|
func write(_ message: Any?, _ category: String, _ type: Double?) throws
|
|
90
90
|
}
|
|
91
91
|
public final class TraceWriterObject: TraceWriter, JSObjectConvertible {
|
|
@@ -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(
|