@nstudio/nativescript-compiler 9.2.0-alpha.10 → 9.2.0-alpha.12
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/dist/api/ir.js +7 -1
- package/dist/cli/runtime.cjs +7 -1
- package/dist/css/css.js +30 -6
- package/dist/driver/cli.js +2 -0
- package/dist/driver/compile.js +23 -10
- package/dist/driver/paths.js +7 -0
- package/dist/driver/unimplemented.js +15 -0
- package/dist/kotlin/access.js +23 -5
- package/dist/kotlin/arguments.js +5 -0
- package/dist/kotlin/builtins.js +0 -4
- package/dist/kotlin/calls.js +6 -2
- package/dist/kotlin/class-methods.js +9 -3
- package/dist/kotlin/components.js +13 -8
- package/dist/kotlin/conversion.js +17 -5
- package/dist/kotlin/core-api.js +2 -13
- package/dist/kotlin/declarations.js +2 -0
- package/dist/kotlin/expression-statements.js +5 -4
- package/dist/kotlin/expressions.js +8 -3
- package/dist/kotlin/functions.js +13 -4
- package/dist/kotlin/global-calls.js +11 -0
- package/dist/kotlin/literals.js +58 -14
- package/dist/kotlin/names.js +2 -2
- package/dist/kotlin/native/api.js +9 -1
- package/dist/kotlin/native/calls.js +84 -3
- package/dist/kotlin/native/subclasses.js +4 -3
- package/dist/kotlin/native/types.js +8 -5
- package/dist/kotlin/operators.js +4 -1
- package/dist/kotlin/overrides.js +7 -5
- package/dist/kotlin/placement.js +3 -1
- package/dist/kotlin/prototype-calls.js +5 -0
- package/dist/kotlin/render.js +62 -0
- package/dist/kotlin/statements.js +9 -0
- package/dist/kotlin/static-calls.js +10 -7
- package/dist/kotlin/translator.js +31 -11
- package/dist/kotlin/type-facts.js +10 -2
- package/dist/kotlin/types.js +6 -6
- package/dist/plugins/native-android.js +37 -5
- package/dist/plugins/native-ios.js +2 -0
- package/dist/plugins/source.js +73 -23
- package/dist/program/app-modules.js +91 -16
- package/dist/program/app-paths.js +80 -12
- package/dist/program/class-mixins.js +463 -0
- package/dist/program/core-facts.js +7 -0
- package/dist/program/glob.js +274 -0
- package/dist/program/platform.js +32 -4
- package/dist/program/program.js +239 -38
- package/dist/program/source-lines.js +4 -1
- package/dist/program/vite-plugins.js +144 -0
- package/dist/semantics/apis/globals.js +2 -2
- package/dist/semantics/apis/object.js +1 -0
- package/dist/semantics/apis/statics.js +6 -0
- package/dist/semantics/ast.js +20 -2
- package/dist/semantics/classes.js +36 -1
- package/dist/semantics/facts.js +28 -1
- package/dist/semantics/globals.js +3 -0
- package/dist/semantics/lang.js +13 -1
- package/dist/semantics/nullish.js +29 -11
- package/dist/semantics/refuse-receivers.js +3 -3
- package/dist/semantics/refuse-scope.js +2 -7
- package/dist/semantics/runtime.js +1 -0
- package/dist/semantics/shapes.js +21 -1
- package/dist/semantics/states/value-states.js +1 -1
- package/dist/semantics/throws.js +1 -0
- package/dist/semantics/translator-methods.js +1 -1
- package/dist/semantics/types.js +21 -1
- package/dist/swift/access.js +25 -10
- package/dist/swift/arguments.js +10 -2
- package/dist/swift/assignment.js +12 -1
- package/dist/swift/builtins.js +0 -4
- package/dist/swift/calls.js +6 -2
- package/dist/swift/class-methods.js +3 -3
- package/dist/swift/components.js +28 -8
- package/dist/swift/construction.js +4 -0
- package/dist/swift/conversion.js +1 -1
- package/dist/swift/core-api.js +9 -12
- package/dist/swift/from-any.js +2 -2
- package/dist/swift/functions.js +13 -2
- package/dist/swift/generics.js +5 -1
- package/dist/swift/global-calls.js +2 -0
- package/dist/swift/literals.js +57 -10
- package/dist/swift/modules.js +1 -1
- package/dist/swift/names.js +1 -1
- package/dist/swift/native/sdk-tables.js +52 -4
- package/dist/swift/native/sdk.js +9 -1
- package/dist/swift/operators.js +4 -1
- package/dist/swift/parameters.js +5 -2
- package/dist/swift/placement.js +44 -4
- package/dist/swift/prototype-calls.js +17 -2
- package/dist/swift/render.js +64 -0
- package/dist/swift/results.js +1 -1
- package/dist/swift/statements.js +9 -0
- package/dist/swift/static-calls.js +13 -6
- package/dist/swift/types.js +9 -9
- package/dist/targets/android/build.js +18 -12
- package/dist/targets/ios/build.js +11 -10
- package/dist/targets/ios/dependencies.js +12 -0
- package/dist/targets/resources.js +15 -1
- package/dist/template/plan.js +105 -8
- package/dist/types/adapter-api.d.ts +13 -0
- package/dist/types/ir.d.ts +47 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +102 -7485
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application.kt +4 -4
- package/kit-android/generated/kotlin/org/nativescript/kit/image_source_index.kt +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_common.kt +7 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_index.kt +3 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +2 -4
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_index.kt +5 -6
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_common.kt +1 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_index.kt +11 -6
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions.kt +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_common.kt +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helper_for_android.kt +7 -5
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_index.kt +6 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_touch_manager.kt +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_index.kt +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_index.kt +4 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_index.kt +2 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_formatted_string.kt +1 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_index.kt +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_fade_transition.kt +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_flip_transition.kt +8 -8
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_index.kt +1 -1
- package/kit-android/generated/source-lines.json +1 -1
- package/kit-android/gradlew.bat +94 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/CoreBridge.kt +67 -1
- package/kit-android/src/main/kotlin/org/nativescript/kit/Signals.kt +15 -2
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Prototypes.kt +26 -0
- package/kit-apple/Overlays/xml-free/Core/ui.core.bindable.index.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +26 -161
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +9 -284
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +11 -7
- package/kit-apple/Sources/NativeScriptKit/Core/Object_callback_thisArg_once.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +7 -5
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +4 -2
- package/kit-apple/Sources/NativeScriptKit/Core/{Object_iterator_prototype_for_keyFor_hasInstance_isConcatSpreadable_and_19_more_91b5f3.swift → Object_iterator_prototype_for_keyFor_hasInstance_isConcatSpreadable_and_19_more_fa18e1.swift} +28 -103
- package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Utils.swift +17 -15
- package/kit-apple/Sources/NativeScriptKit/Core/application-settings.index.ios.swift +8 -8
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-common.swift +7 -7
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable.index.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +2 -1
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +40 -246
- package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +1 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.content-view.index.swift +8 -8
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.index.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +8 -8
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-common.swift +7 -7
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.weak-event-listener.index.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.image-common.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +10 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +2 -1
- package/kit-apple/Sources/NativeScriptKit/Core/utils.common.swift +9 -9
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.index.ios.swift +10 -10
- package/kit-apple/Sources/NativeScriptKit/CoreBridge.swift +67 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +4 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/RegExp.swift +6 -0
- package/kit-apple/Sources/NativeScriptKit/Signals.swift +20 -2
- package/package.json +2 -1
- package/kit-apple/Sources/NativeScriptKit/Core/Object_toString_charAt_charCodeAt_concat_indexOf_lastIndexOf_and_44_more_fc25df.swift +0 -481
|
@@ -1164,7 +1164,7 @@
|
|
|
1164
1164
|
"Object_toArrayBuffer_toString_toJSON_toImage_toFile.swift": {},
|
|
1165
1165
|
"Object_keepAspectRatio_autoScaleFactor.swift": {},
|
|
1166
1166
|
"Object_width_height_.swift": {},
|
|
1167
|
-
"
|
|
1167
|
+
"Object_iterator_prototype_for_keyFor_hasInstance_isConcatSpreadable_and_19_more_fa18e1.swift": {},
|
|
1168
1168
|
"Object_eventName_type.swift": {},
|
|
1169
1169
|
"Object_name_cssName_valueConverter.swift": {},
|
|
1170
1170
|
"Object_defaultValue_name_cssName_valueConverter.swift": {},
|
|
@@ -1339,7 +1339,6 @@
|
|
|
1339
1339
|
"Object_name_valueChanged_.swift": {},
|
|
1340
1340
|
"Object_name_valueChanged_valueConverter.swift": {},
|
|
1341
1341
|
"Object_name_valueChanged_valueConverter_.swift": {},
|
|
1342
|
-
"Object_toString_charAt_charCodeAt_concat_indexOf_lastIndexOf_and_44_more_fc25df.swift": {},
|
|
1343
1342
|
"Object_name_valueChanged_valueConverter__.swift": {},
|
|
1344
1343
|
"Object_effectType_onCreate.swift": {},
|
|
1345
1344
|
"Object_effectType_targetView.swift": {},
|
|
@@ -1119,9 +1119,9 @@ open class ActionBar: ActionBarBase {
|
|
|
1119
1119
|
#sourceLocation()
|
|
1120
1120
|
open override func onMeasure(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
|
|
1121
1121
|
#sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:601)
|
|
1122
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
1122
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
1123
1123
|
#sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:602)
|
|
1124
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
1124
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
1125
1125
|
#sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:604)
|
|
1126
1126
|
if jsTruthy(self.titleView) {
|
|
1127
1127
|
#sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:605)
|
|
@@ -1355,7 +1355,7 @@ public enum Core_ui_action_bar_index {
|
|
|
1355
1355
|
#sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:27)
|
|
1356
1356
|
let itemStyle: Style? = try jsUnwrap(item, "style").style
|
|
1357
1357
|
#sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:28)
|
|
1358
|
-
if Core_utils_common.isFontIconURI(itemIcon) {
|
|
1358
|
+
if try Core_utils_common.isFontIconURI(itemIcon) {
|
|
1359
1359
|
#sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:29)
|
|
1360
1360
|
let fontIconCode: String? = try jsUnwrap(jsSplit(itemIcon, "//", nil), "1").element(1)
|
|
1361
1361
|
#sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:30)
|
|
@@ -417,13 +417,13 @@ open class Button: ButtonBase {
|
|
|
417
417
|
#sourceLocation(file:"@nativescript/core/ui.button.index.ios.ts",line:239)
|
|
418
418
|
if jsTruthy(nativeView) {
|
|
419
419
|
#sourceLocation(file:"@nativescript/core/ui.button.index.ios.ts",line:240)
|
|
420
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
420
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
421
421
|
#sourceLocation(file:"@nativescript/core/ui.button.index.ios.ts",line:241)
|
|
422
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
422
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
423
423
|
#sourceLocation(file:"@nativescript/core/ui.button.index.ios.ts",line:242)
|
|
424
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
424
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
425
425
|
#sourceLocation(file:"@nativescript/core/ui.button.index.ios.ts",line:243)
|
|
426
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
426
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
427
427
|
#sourceLocation(file:"@nativescript/core/ui.button.index.ios.ts",line:245)
|
|
428
428
|
let horizontalPadding: Double =
|
|
429
429
|
self.effectivePaddingLeft + self.effectiveBorderLeftWidth + self.effectivePaddingRight
|
|
@@ -141,13 +141,13 @@ open class ContentView: CustomLayoutView {
|
|
|
141
141
|
#sourceLocation(file:"@nativescript/core/ui.content-view.index.ts",line:83)
|
|
142
142
|
let result: Any? = try View.measureChild(self, self.layoutView, widthMeasureSpec, heightMeasureSpec)
|
|
143
143
|
#sourceLocation(file:"@nativescript/core/ui.content-view.index.ts",line:85)
|
|
144
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
144
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
145
145
|
#sourceLocation(file:"@nativescript/core/ui.content-view.index.ts",line:86)
|
|
146
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
146
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
147
147
|
#sourceLocation(file:"@nativescript/core/ui.content-view.index.ts",line:88)
|
|
148
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
148
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
149
149
|
#sourceLocation(file:"@nativescript/core/ui.content-view.index.ts",line:89)
|
|
150
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
150
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
151
151
|
#sourceLocation(file:"@nativescript/core/ui.content-view.index.ts",line:91)
|
|
152
152
|
let measureWidth: Double = try jsMathMax(
|
|
153
153
|
jsConvertedNumber(jsGet(result, "measuredWidth")), self.effectiveMinWidth)
|
|
@@ -166,13 +166,13 @@ open class ContentView: CustomLayoutView {
|
|
|
166
166
|
#sourceLocation(file:"@nativescript/core/ui.content-view.index.ts",line:83)
|
|
167
167
|
let result: Any? = try View.measureChild(self, self.layoutView, widthMeasureSpec, heightMeasureSpec)
|
|
168
168
|
#sourceLocation(file:"@nativescript/core/ui.content-view.index.ts",line:85)
|
|
169
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
169
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
170
170
|
#sourceLocation(file:"@nativescript/core/ui.content-view.index.ts",line:86)
|
|
171
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
171
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
172
172
|
#sourceLocation(file:"@nativescript/core/ui.content-view.index.ts",line:88)
|
|
173
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
173
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
174
174
|
#sourceLocation(file:"@nativescript/core/ui.content-view.index.ts",line:89)
|
|
175
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
175
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
176
176
|
#sourceLocation(file:"@nativescript/core/ui.content-view.index.ts",line:91)
|
|
177
177
|
let measureWidth: Double = try jsMathMax(
|
|
178
178
|
jsConvertedNumber(jsGet(result, "measuredWidth")), self.effectiveMinWidth)
|
|
@@ -214,7 +214,7 @@ open class Binding: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
214
214
|
#sourceLocation(file:"@nativescript/core/ui.core.bindable.index.ts",line:202)
|
|
215
215
|
source = self.sourceAsObject(source)
|
|
216
216
|
#sourceLocation(file:"@nativescript/core/ui.core.bindable.index.ts",line:204)
|
|
217
|
-
if !Core_utils_types.isNullOrUndefined(source) {
|
|
217
|
+
if try !Core_utils_types.isNullOrUndefined(source) {
|
|
218
218
|
#sourceLocation(file:"@nativescript/core/ui.core.bindable.index.ts",line:206)
|
|
219
219
|
self.source = try JSWeakRef<AnyObject>(jsCoreWeakTarget(source))
|
|
220
220
|
#sourceLocation(file:"@nativescript/core/ui.core.bindable.index.ts",line:207)
|
|
@@ -568,7 +568,7 @@ open class Binding: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
568
568
|
return jsTruthy(__v_3) ? __v_3 : jsGlobalThis
|
|
569
569
|
}())
|
|
570
570
|
#sourceLocation(file:"@nativescript/core/ui.core.bindable.index.ts",line:380)
|
|
571
|
-
let resources: Any? = Core_ui_core_bindable_bindable_resources.get()
|
|
571
|
+
let resources: Any? = try Core_ui_core_bindable_bindable_resources.get()
|
|
572
572
|
#sourceLocation(file:"@nativescript/core/ui.core.bindable.index.ts",line:381)
|
|
573
573
|
for prop in jsKeysOf(resources) {
|
|
574
574
|
#sourceLocation(file:"@nativescript/core/ui.core.bindable.index.ts",line:382)
|
|
@@ -763,7 +763,7 @@ open class Binding: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
763
763
|
jsKey: jsToString(
|
|
764
764
|
jsUnwrap(sourceProps, "changedPropertyIndex").element(changedPropertyIndex) as Any?)]
|
|
765
765
|
#sourceLocation(file:"@nativescript/core/ui.core.bindable.index.ts",line:464)
|
|
766
|
-
if !Core_utils_types.isNullOrUndefined(newObject) && jsStringEquals(jsTypeof(newObject), "object") {
|
|
766
|
+
if try !Core_utils_types.isNullOrUndefined(newObject) && jsStringEquals(jsTypeof(newObject), "object") {
|
|
767
767
|
#sourceLocation(file:"@nativescript/core/ui.core.bindable.index.ts",line:465)
|
|
768
768
|
try self.addPropertyChangeListeners(
|
|
769
769
|
JSWeakRef<AnyObject>(jsCoreWeakTarget(newObject)), newProps, parentProps)
|
|
@@ -981,7 +981,7 @@ open class Binding: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
981
981
|
#sourceLocation(file:"@nativescript/core/ui.core.bindable.index.ts",line:581)
|
|
982
982
|
indexAsInt -= 1
|
|
983
983
|
}
|
|
984
|
-
} else if Core_utils_types.isString(index) {
|
|
984
|
+
} else if try Core_utils_types.isString(index) {
|
|
985
985
|
#sourceLocation(file:"@nativescript/core/ui.core.bindable.index.ts",line:584)
|
|
986
986
|
let normalizedIndex: String = jsLenientString(index).lowercased()
|
|
987
987
|
#sourceLocation(file:"@nativescript/core/ui.core.bindable.index.ts",line:585)
|
|
@@ -1110,13 +1110,13 @@ open class View: ViewCommon {
|
|
|
1110
1110
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:202)
|
|
1111
1111
|
let view: UIView? = self.nativeViewProtected as? UIView
|
|
1112
1112
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:203)
|
|
1113
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
1113
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
1114
1114
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:204)
|
|
1115
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
1115
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
1116
1116
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:206)
|
|
1117
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
1117
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
1118
1118
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:207)
|
|
1119
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
1119
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
1120
1120
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:209)
|
|
1121
1121
|
var nativeWidth: Double = 0
|
|
1122
1122
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:210)
|
|
@@ -1151,13 +1151,13 @@ open class View: ViewCommon {
|
|
|
1151
1151
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:202)
|
|
1152
1152
|
let view: UIView? = self.nativeViewProtected as? UIView
|
|
1153
1153
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:203)
|
|
1154
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
1154
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
1155
1155
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:204)
|
|
1156
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
1156
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
1157
1157
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:206)
|
|
1158
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
1158
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
1159
1159
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:207)
|
|
1160
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
1160
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
1161
1161
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:209)
|
|
1162
1162
|
var nativeWidth: Double = 0
|
|
1163
1163
|
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:210)
|
|
@@ -4270,9 +4270,7 @@ public func __init_Core_ui_core_view_view_common() {
|
|
|
4270
4270
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-common.ts",line:1538)
|
|
4271
4271
|
if Core_utils_types.isObject(value) {
|
|
4272
4272
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-common.ts",line:1539)
|
|
4273
|
-
return
|
|
4274
|
-
(jsCastPresent(value)
|
|
4275
|
-
as Object_toString_charAt_charCodeAt_concat_indexOf_lastIndexOf_and_44_more_fc25df)
|
|
4273
|
+
return value
|
|
4276
4274
|
} else {
|
|
4277
4275
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-common.ts",line:1541)
|
|
4278
4276
|
return Core_ui_core_view_base_utils.booleanConverter(value)
|
package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-common.swift
CHANGED
|
@@ -46,13 +46,13 @@ open class ViewHelper: JSDynamic, JSExpando, JSStaticKeyed {
|
|
|
46
46
|
(jsTruthy(parent)
|
|
47
47
|
? jsUnwrap(parent, "_currentHeightMeasureSpec")._currentHeightMeasureSpec : heightMeasureSpec)
|
|
48
48
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-helper.view-helper-common.ts",line:15)
|
|
49
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthSpec)
|
|
49
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthSpec)
|
|
50
50
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-helper.view-helper-common.ts",line:16)
|
|
51
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthSpec)
|
|
51
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthSpec)
|
|
52
52
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-helper.view-helper-common.ts",line:18)
|
|
53
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightSpec)
|
|
53
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightSpec)
|
|
54
54
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-helper.view-helper-common.ts",line:19)
|
|
55
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightSpec)
|
|
55
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightSpec)
|
|
56
56
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-helper.view-helper-common.ts",line:21)
|
|
57
57
|
try jsUnwrap(child, "_updateEffectiveLayoutValues")._updateEffectiveLayoutValues(
|
|
58
58
|
width, widthMode, height, heightMode)
|
|
@@ -256,13 +256,13 @@ open class ViewHelper: JSDynamic, JSExpando, JSStaticKeyed {
|
|
|
256
256
|
#sourceLocation()
|
|
257
257
|
open class func getMeasureSpec(
|
|
258
258
|
_ parentSpec: Double, _ margins: Double, _ childLength: Double, _ stretched: Bool, _ maxLength: Double? = nil
|
|
259
|
-
) -> Double {
|
|
259
|
+
) throws -> Double {
|
|
260
260
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-helper.view-helper-common.ts",line:161)
|
|
261
261
|
let maxLength: Double = maxLength ?? Double.infinity
|
|
262
262
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-helper.view-helper-common.ts",line:162)
|
|
263
|
-
let parentLength: Double = NativeScriptKit.layout.getMeasureSpecSize(parentSpec)
|
|
263
|
+
let parentLength: Double = try NativeScriptKit.layout.getMeasureSpecSize(parentSpec)
|
|
264
264
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-helper.view-helper-common.ts",line:163)
|
|
265
|
-
let parentSpecMode: Double = NativeScriptKit.layout.getMeasureSpecMode(parentSpec)
|
|
265
|
+
let parentSpecMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(parentSpec)
|
|
266
266
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-helper.view-helper-common.ts",line:165)
|
|
267
267
|
var resultSize: Double? = nil
|
|
268
268
|
#sourceLocation(file:"@nativescript/core/ui.core.view.view-helper.view-helper-common.ts",line:166)
|
|
@@ -41,7 +41,7 @@ open class TargetHandlerPair: JSDynamic, JSExpando, JSStaticKeyed {
|
|
|
41
41
|
switch key.utf8.count {
|
|
42
42
|
case 7:
|
|
43
43
|
switch key {
|
|
44
|
-
case "handler": return FunctionCell_EventDataOpt_to_Void.
|
|
44
|
+
case "handler": return FunctionCell_EventDataOpt_to_Void.scriptOrNil("", 1, self.handler)
|
|
45
45
|
default: break
|
|
46
46
|
}
|
|
47
47
|
case 8:
|
|
@@ -160,8 +160,8 @@ public enum Core_ui_core_weak_event_listener_index {
|
|
|
160
160
|
#sourceLocation(file:"@nativescript/core/ui.core.weak-event-listener.index.ts",line:57)
|
|
161
161
|
_ = try Core_ui_core_weak_event_listener_index.handlersForEventName.set(
|
|
162
162
|
eventName,
|
|
163
|
-
FunctionCell_EventDataOpt_to_Void.
|
|
164
|
-
|
|
163
|
+
FunctionCell_EventDataOpt_to_Void.scriptOrNil("", 1, FunctionCell_EventDataOpt_to_Void.present(handler))
|
|
164
|
+
)
|
|
165
165
|
}
|
|
166
166
|
#sourceLocation(file:"@nativescript/core/ui.core.weak-event-listener.index.ts",line:60)
|
|
167
167
|
return handler
|
|
@@ -522,13 +522,13 @@ open class Frame: FrameBase {
|
|
|
522
522
|
#sourceLocation()
|
|
523
523
|
open override func onMeasure(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
|
|
524
524
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:362)
|
|
525
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
525
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
526
526
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:363)
|
|
527
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
527
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
528
528
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:365)
|
|
529
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
529
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
530
530
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:366)
|
|
531
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
531
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
532
532
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:368)
|
|
533
533
|
let widthAndState: Double = View.resolveSizeAndState(width, width, widthMode, 0)
|
|
534
534
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:369)
|
|
@@ -508,7 +508,7 @@ open class GesturesObserver: GesturesObserverBase {
|
|
|
508
508
|
switch key {
|
|
509
509
|
case "_onTargetLoaded":
|
|
510
510
|
if !(jsMadeBits0 & (1 << 1) != 0) { return nil }
|
|
511
|
-
return FunctionCell_EventDataOpt_to_Void.
|
|
511
|
+
return FunctionCell_EventDataOpt_to_Void.scriptOrNil("", 1, self._onTargetLoaded)
|
|
512
512
|
default: break
|
|
513
513
|
}
|
|
514
514
|
case 16:
|
|
@@ -521,7 +521,7 @@ open class GesturesObserver: GesturesObserverBase {
|
|
|
521
521
|
switch key {
|
|
522
522
|
case "_onTargetUnloaded":
|
|
523
523
|
if !(jsMadeBits0 & (1 << 2) != 0) { return nil }
|
|
524
|
-
return FunctionCell_EventDataOpt_to_Void.
|
|
524
|
+
return FunctionCell_EventDataOpt_to_Void.scriptOrNil("", 1, self._onTargetUnloaded)
|
|
525
525
|
case "_createRecognizer":
|
|
526
526
|
return
|
|
527
527
|
FunctionCell_Double_AnyOpt_to_Void_Opt_UISwipeGestureRecognizer_DirectionOpt_to_UIGestureRecognizerOpt
|
|
@@ -170,13 +170,13 @@ open class HtmlView: HtmlViewBase {
|
|
|
170
170
|
#sourceLocation(file:"@nativescript/core/ui.html-view.index.ios.ts",line:40)
|
|
171
171
|
if jsTruthy(nativeView) {
|
|
172
172
|
#sourceLocation(file:"@nativescript/core/ui.html-view.index.ios.ts",line:41)
|
|
173
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
173
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
174
174
|
#sourceLocation(file:"@nativescript/core/ui.html-view.index.ios.ts",line:42)
|
|
175
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
175
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
176
176
|
#sourceLocation(file:"@nativescript/core/ui.html-view.index.ios.ts",line:44)
|
|
177
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
177
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
178
178
|
#sourceLocation(file:"@nativescript/core/ui.html-view.index.ios.ts",line:45)
|
|
179
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
179
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
180
180
|
#sourceLocation(file:"@nativescript/core/ui.html-view.index.ios.ts",line:47)
|
|
181
181
|
let desiredSize: Any? = try NativeScriptKit.layout.measureNativeView(
|
|
182
182
|
nativeView, width, widthMode, height, heightMode)
|
|
@@ -127,7 +127,7 @@ open class ImageBase: View {
|
|
|
127
127
|
self.isLoading = false
|
|
128
128
|
}
|
|
129
129
|
#sourceLocation(file:"@nativescript/core/ui.image.image-common.ts",line:63)
|
|
130
|
-
if Core_utils_common.isFontIconURI(jsLenientString(value)) {
|
|
130
|
+
if try Core_utils_common.isFontIconURI(jsLenientString(value)) {
|
|
131
131
|
#sourceLocation(file:"@nativescript/core/ui.image.image-common.ts",line:64)
|
|
132
132
|
let fontIconCode: String? = try jsUnwrap(jsSplit(jsLenientString(value), "//", nil), "1").element(1)
|
|
133
133
|
#sourceLocation(file:"@nativescript/core/ui.image.image-common.ts",line:65)
|
|
@@ -153,7 +153,7 @@ open class ImageBase: View {
|
|
|
153
153
|
_ = try jsUnwrap(ImageSource.fromBase64((base64Data ?? "undefined")), "then").then(imageLoaded)
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
} else if Core_utils_common.isFileOrResourcePath(jsLenientString(value)) {
|
|
156
|
+
} else if try Core_utils_common.isFileOrResourcePath(jsLenientString(value)) {
|
|
157
157
|
#sourceLocation(file:"@nativescript/core/ui.image.image-common.ts",line:81)
|
|
158
158
|
if try jsIndexOf(jsLenientString(value), Core_utils_common.RESOURCE_PREFIX, nil) == 0 {
|
|
159
159
|
#sourceLocation(file:"@nativescript/core/ui.image.image-common.ts",line:82)
|
|
@@ -284,13 +284,13 @@ open class Image: ImageBase {
|
|
|
284
284
|
#sourceLocation()
|
|
285
285
|
open override func onMeasure(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
|
|
286
286
|
#sourceLocation(file:"@nativescript/core/ui.image.index.ios.ts",line:94)
|
|
287
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
287
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
288
288
|
#sourceLocation(file:"@nativescript/core/ui.image.index.ios.ts",line:95)
|
|
289
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
289
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
290
290
|
#sourceLocation(file:"@nativescript/core/ui.image.index.ios.ts",line:97)
|
|
291
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
291
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
292
292
|
#sourceLocation(file:"@nativescript/core/ui.image.index.ios.ts",line:98)
|
|
293
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
293
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
294
294
|
#sourceLocation(file:"@nativescript/core/ui.image.index.ios.ts",line:100)
|
|
295
295
|
let nativeWidth: Double =
|
|
296
296
|
try
|
|
@@ -238,13 +238,13 @@ open class Label: TextBase {
|
|
|
238
238
|
#sourceLocation(file:"@nativescript/core/ui.label.index.ios.ts",line:67)
|
|
239
239
|
if jsTruthy(nativeView) {
|
|
240
240
|
#sourceLocation(file:"@nativescript/core/ui.label.index.ios.ts",line:68)
|
|
241
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
241
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
242
242
|
#sourceLocation(file:"@nativescript/core/ui.label.index.ios.ts",line:69)
|
|
243
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
243
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
244
244
|
#sourceLocation(file:"@nativescript/core/ui.label.index.ios.ts",line:71)
|
|
245
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
245
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
246
246
|
#sourceLocation(file:"@nativescript/core/ui.label.index.ios.ts",line:72)
|
|
247
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
247
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
248
248
|
#sourceLocation(file:"@nativescript/core/ui.label.index.ios.ts",line:74)
|
|
249
249
|
self._fixedSize = jsBitOr(
|
|
250
250
|
((jsLenientNumberEquals(widthMode, NativeScriptKit.layout.EXACTLY) ? FixedSize.WIDTH : FixedSize.NONE)),
|
|
@@ -38,13 +38,13 @@ open class AbsoluteLayout: AbsoluteLayoutBase {
|
|
|
38
38
|
#sourceLocation(file:"@nativescript/core/ui.layouts.absolute-layout.index.ios.ts",line:21)
|
|
39
39
|
var measureHeight: Double = 0
|
|
40
40
|
#sourceLocation(file:"@nativescript/core/ui.layouts.absolute-layout.index.ios.ts",line:23)
|
|
41
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
41
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
42
42
|
#sourceLocation(file:"@nativescript/core/ui.layouts.absolute-layout.index.ios.ts",line:24)
|
|
43
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
43
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
44
44
|
#sourceLocation(file:"@nativescript/core/ui.layouts.absolute-layout.index.ios.ts",line:26)
|
|
45
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
45
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
46
46
|
#sourceLocation(file:"@nativescript/core/ui.layouts.absolute-layout.index.ios.ts",line:27)
|
|
47
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
47
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
48
48
|
#sourceLocation(file:"@nativescript/core/ui.layouts.absolute-layout.index.ios.ts",line:29)
|
|
49
49
|
let childMeasureSpec: Double = NativeScriptKit.layout.makeMeasureSpec(0, NativeScriptKit.layout.UNSPECIFIED)
|
|
50
50
|
#sourceLocation(file:"@nativescript/core/ui.layouts.absolute-layout.index.ios.ts",line:31)
|
|
@@ -33,13 +33,13 @@ open class DockLayout: DockLayoutBase {
|
|
|
33
33
|
#sourceLocation(file:"@nativescript/core/ui.layouts.dock-layout.index.ios.ts",line:16)
|
|
34
34
|
var measureHeight: Double = 0
|
|
35
35
|
#sourceLocation(file:"@nativescript/core/ui.layouts.dock-layout.index.ios.ts",line:18)
|
|
36
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
36
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
37
37
|
#sourceLocation(file:"@nativescript/core/ui.layouts.dock-layout.index.ios.ts",line:19)
|
|
38
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
38
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
39
39
|
#sourceLocation(file:"@nativescript/core/ui.layouts.dock-layout.index.ios.ts",line:21)
|
|
40
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
40
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
41
41
|
#sourceLocation(file:"@nativescript/core/ui.layouts.dock-layout.index.ios.ts",line:22)
|
|
42
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
42
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
43
43
|
#sourceLocation(file:"@nativescript/core/ui.layouts.dock-layout.index.ios.ts",line:24)
|
|
44
44
|
let horizontalPaddingsAndMargins: Double =
|
|
45
45
|
self.effectivePaddingLeft + self.effectivePaddingRight + self.effectiveBorderLeftWidth
|
|
@@ -2742,11 +2742,11 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
2742
2742
|
return false
|
|
2743
2743
|
}
|
|
2744
2744
|
#sourceLocation()
|
|
2745
|
-
open class func getChildMeasureSpec(_ spec: Double, _ padding: Double, _ childDimension: Double) -> Double {
|
|
2745
|
+
open class func getChildMeasureSpec(_ spec: Double, _ padding: Double, _ childDimension: Double) throws -> Double {
|
|
2746
2746
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1343)
|
|
2747
|
-
let specMode: Double = NativeScriptKit.layout.getMeasureSpecMode(spec)
|
|
2747
|
+
let specMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(spec)
|
|
2748
2748
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1344)
|
|
2749
|
-
let specSize: Double = NativeScriptKit.layout.getMeasureSpecSize(spec)
|
|
2749
|
+
let specSize: Double = try NativeScriptKit.layout.getMeasureSpecSize(spec)
|
|
2750
2750
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1346)
|
|
2751
2751
|
let size: Double = jsMathMax(0, specSize - padding)
|
|
2752
2752
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1348)
|
|
@@ -176,13 +176,13 @@ open class GridLayout: GridLayoutBase {
|
|
|
176
176
|
#sourceLocation(file:"@nativescript/core/ui.layouts.grid-layout.index.ios.ts",line:111)
|
|
177
177
|
var measureHeight: Double = 0
|
|
178
178
|
#sourceLocation(file:"@nativescript/core/ui.layouts.grid-layout.index.ios.ts",line:113)
|
|
179
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
179
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
180
180
|
#sourceLocation(file:"@nativescript/core/ui.layouts.grid-layout.index.ios.ts",line:114)
|
|
181
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
181
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
182
182
|
#sourceLocation(file:"@nativescript/core/ui.layouts.grid-layout.index.ios.ts",line:116)
|
|
183
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
183
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
184
184
|
#sourceLocation(file:"@nativescript/core/ui.layouts.grid-layout.index.ios.ts",line:117)
|
|
185
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
185
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
186
186
|
#sourceLocation(file:"@nativescript/core/ui.layouts.grid-layout.index.ios.ts",line:119)
|
|
187
187
|
let horizontalPaddingsAndMargins: Double =
|
|
188
188
|
self.effectivePaddingLeft + self.effectivePaddingRight + self.effectiveBorderLeftWidth
|
|
@@ -30,13 +30,13 @@ open class StackLayout: StackLayoutBase {
|
|
|
30
30
|
#sourceLocation(file:"@nativescript/core/ui.layouts.stack-layout.index.ios.ts",line:17)
|
|
31
31
|
var measureHeight: Double = 0
|
|
32
32
|
#sourceLocation(file:"@nativescript/core/ui.layouts.stack-layout.index.ios.ts",line:19)
|
|
33
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
33
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
34
34
|
#sourceLocation(file:"@nativescript/core/ui.layouts.stack-layout.index.ios.ts",line:20)
|
|
35
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
35
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
36
36
|
#sourceLocation(file:"@nativescript/core/ui.layouts.stack-layout.index.ios.ts",line:22)
|
|
37
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
37
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
38
38
|
#sourceLocation(file:"@nativescript/core/ui.layouts.stack-layout.index.ios.ts",line:23)
|
|
39
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
39
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
40
40
|
#sourceLocation(file:"@nativescript/core/ui.layouts.stack-layout.index.ios.ts",line:25)
|
|
41
41
|
let isVertical: Bool = jsStringEquals(self.orientation, "vertical")
|
|
42
42
|
#sourceLocation(file:"@nativescript/core/ui.layouts.stack-layout.index.ios.ts",line:26)
|
|
@@ -48,13 +48,13 @@ open class WrapLayout: WrapLayoutBase {
|
|
|
48
48
|
#sourceLocation(file:"@nativescript/core/ui.layouts.wrap-layout.index.ios.ts",line:24)
|
|
49
49
|
var measureHeight: Double = 0
|
|
50
50
|
#sourceLocation(file:"@nativescript/core/ui.layouts.wrap-layout.index.ios.ts",line:26)
|
|
51
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
51
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
52
52
|
#sourceLocation(file:"@nativescript/core/ui.layouts.wrap-layout.index.ios.ts",line:27)
|
|
53
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
53
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
54
54
|
#sourceLocation(file:"@nativescript/core/ui.layouts.wrap-layout.index.ios.ts",line:29)
|
|
55
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
55
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
56
56
|
#sourceLocation(file:"@nativescript/core/ui.layouts.wrap-layout.index.ios.ts",line:30)
|
|
57
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
57
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
58
58
|
#sourceLocation(file:"@nativescript/core/ui.layouts.wrap-layout.index.ios.ts",line:32)
|
|
59
59
|
let horizontalPaddingsAndMargins: Double =
|
|
60
60
|
self.effectivePaddingLeft + self.effectivePaddingRight + self.effectiveBorderLeftWidth
|
|
@@ -1775,7 +1775,7 @@ open class ListView: ListViewBase {
|
|
|
1775
1775
|
#sourceLocation(file:"@nativescript/core/ui.list-view.index.ios.ts",line:827)
|
|
1776
1776
|
if jsTruthy(cellHeight) {
|
|
1777
1777
|
#sourceLocation(file:"@nativescript/core/ui.list-view.index.ios.ts",line:828)
|
|
1778
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(self.widthMeasureSpec)
|
|
1778
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(self.widthMeasureSpec)
|
|
1779
1779
|
#sourceLocation(file:"@nativescript/core/ui.list-view.index.ios.ts",line:829)
|
|
1780
1780
|
try jsUnwrap(childView, setting: "iosOverflowSafeAreaEnabled").iosOverflowSafeAreaEnabled = false
|
|
1781
1781
|
#sourceLocation(file:"@nativescript/core/ui.list-view.index.ios.ts",line:830)
|
|
@@ -1793,7 +1793,7 @@ open class ListView: ListViewBase {
|
|
|
1793
1793
|
: jsCallable(NativeScriptKit.Length.toDevicePixels, "Length.toDevicePixels")(
|
|
1794
1794
|
self.stickyHeaderHeight, 44))
|
|
1795
1795
|
#sourceLocation(file:"@nativescript/core/ui.list-view.index.ios.ts",line:835)
|
|
1796
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(self.widthMeasureSpec)
|
|
1796
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(self.widthMeasureSpec)
|
|
1797
1797
|
#sourceLocation(file:"@nativescript/core/ui.list-view.index.ios.ts",line:836)
|
|
1798
1798
|
try jsUnwrap(childView, setting: "iosOverflowSafeAreaEnabled").iosOverflowSafeAreaEnabled = false
|
|
1799
1799
|
#sourceLocation(file:"@nativescript/core/ui.list-view.index.ios.ts",line:837)
|
|
@@ -1949,7 +1949,7 @@ open class ListView: ListViewBase {
|
|
|
1949
1949
|
#sourceLocation(file:"@nativescript/core/ui.list-view.index.ios.ts",line:924)
|
|
1950
1950
|
if try (jsTruthy(cellView) && jsUnwrap(cellView, "isLayoutRequired").isLayoutRequired) {
|
|
1951
1951
|
#sourceLocation(file:"@nativescript/core/ui.list-view.index.ios.ts",line:927)
|
|
1952
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(self.widthMeasureSpec)
|
|
1952
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(self.widthMeasureSpec)
|
|
1953
1953
|
#sourceLocation(file:"@nativescript/core/ui.list-view.index.ios.ts",line:928)
|
|
1954
1954
|
let rowHeight: Double = self._effectiveRowHeight
|
|
1955
1955
|
#sourceLocation(file:"@nativescript/core/ui.list-view.index.ios.ts",line:929)
|
|
@@ -896,13 +896,13 @@ open class Page: PageBase {
|
|
|
896
896
|
#sourceLocation()
|
|
897
897
|
open override func onMeasure(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
|
|
898
898
|
#sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:485)
|
|
899
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
899
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
900
900
|
#sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:486)
|
|
901
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
901
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
902
902
|
#sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:488)
|
|
903
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
903
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
904
904
|
#sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:489)
|
|
905
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
905
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
906
906
|
#sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:491)
|
|
907
907
|
if try
|
|
908
908
|
((self.hasActionBar && jsTruthy(self.frame))
|
|
@@ -263,13 +263,13 @@ open class Repeater: CustomLayoutView {
|
|
|
263
263
|
#sourceLocation(file:"@nativescript/core/ui.repeater.index.ts",line:198)
|
|
264
264
|
let result: Any? = try View.measureChild(self, self.itemsLayout, widthMeasureSpec, heightMeasureSpec)
|
|
265
265
|
#sourceLocation(file:"@nativescript/core/ui.repeater.index.ts",line:200)
|
|
266
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
266
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
267
267
|
#sourceLocation(file:"@nativescript/core/ui.repeater.index.ts",line:201)
|
|
268
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
268
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
269
269
|
#sourceLocation(file:"@nativescript/core/ui.repeater.index.ts",line:203)
|
|
270
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
270
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
271
271
|
#sourceLocation(file:"@nativescript/core/ui.repeater.index.ts",line:204)
|
|
272
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
272
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
273
273
|
#sourceLocation(file:"@nativescript/core/ui.repeater.index.ts",line:206)
|
|
274
274
|
let widthAndState: Double = try View.resolveSizeAndState(
|
|
275
275
|
jsConvertedNumber(jsGet(result, "measuredWidth")), width, widthMode, 0)
|
|
@@ -467,7 +467,9 @@ public func __init_Core_ui_repeater_index() {
|
|
|
467
467
|
if oldValue is ObservableArray {
|
|
468
468
|
#sourceLocation(file:"@nativescript/core/ui.repeater.index.ts",line:258)
|
|
469
469
|
try Core_ui_core_weak_event_listener_index.removeWeakEventListener(
|
|
470
|
-
(
|
|
470
|
+
{ (__o: Any?) -> ObservableArray in
|
|
471
|
+
(jsFlat(__o) as? ObservableArray) ?? ObservableArray(jsObject: __o)
|
|
472
|
+
}(oldValue), ObservableArray.changeEvent,
|
|
471
473
|
FunctionCell_EventDataOpt_to_Void.adapting(
|
|
472
474
|
jsMethodValue(jsUnwrap(target, "_onItemsChanged"), "_onItemsChanged") {
|
|
473
475
|
__r, __i in
|
|
@@ -483,7 +485,9 @@ public func __init_Core_ui_repeater_index() {
|
|
|
483
485
|
if newValue is ObservableArray {
|
|
484
486
|
#sourceLocation(file:"@nativescript/core/ui.repeater.index.ts",line:262)
|
|
485
487
|
try Core_ui_core_weak_event_listener_index.addWeakEventListener(
|
|
486
|
-
(
|
|
488
|
+
{ (__o: Any?) -> ObservableArray in
|
|
489
|
+
(jsFlat(__o) as? ObservableArray) ?? ObservableArray(jsObject: __o)
|
|
490
|
+
}(newValue), ObservableArray.changeEvent,
|
|
487
491
|
FunctionCell_EventDataOpt_to_Void.adapting(
|
|
488
492
|
jsMethodValue(jsUnwrap(target, "_onItemsChanged"), "_onItemsChanged") {
|
|
489
493
|
__r, __i in
|
|
@@ -395,13 +395,13 @@ open class ScrollView: ScrollViewBase {
|
|
|
395
395
|
#sourceLocation()
|
|
396
396
|
open override func onMeasure(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
|
|
397
397
|
#sourceLocation(file:"@nativescript/core/ui.scroll-view.index.ios.ts",line:205)
|
|
398
|
-
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
398
|
+
let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
399
399
|
#sourceLocation(file:"@nativescript/core/ui.scroll-view.index.ios.ts",line:206)
|
|
400
|
-
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
400
|
+
let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
401
401
|
#sourceLocation(file:"@nativescript/core/ui.scroll-view.index.ios.ts",line:208)
|
|
402
|
-
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
402
|
+
let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
403
403
|
#sourceLocation(file:"@nativescript/core/ui.scroll-view.index.ios.ts",line:209)
|
|
404
|
-
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
404
|
+
let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
405
405
|
#sourceLocation(file:"@nativescript/core/ui.scroll-view.index.ios.ts",line:211)
|
|
406
406
|
let child: View? = try self.layoutView
|
|
407
407
|
#sourceLocation(file:"@nativescript/core/ui.scroll-view.index.ios.ts",line:212)
|