@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
|
@@ -310,16 +310,18 @@ open class EditableTextBase__index_ios: EditableTextBase {
|
|
|
310
310
|
#sourceLocation()
|
|
311
311
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
312
312
|
if key
|
|
313
|
-
== (
|
|
314
|
-
|
|
313
|
+
== (try?
|
|
314
|
+
((Core_ui_editable_text_base_editable_text_base_common.keyboardTypeProperty?.getDefault)?.key
|
|
315
|
+
?? "undefined"))
|
|
315
316
|
{
|
|
316
317
|
return { __this, __a in
|
|
317
318
|
return try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_getDefault_keyboardType()
|
|
318
319
|
}
|
|
319
320
|
}
|
|
320
321
|
if key
|
|
321
|
-
== (
|
|
322
|
-
|
|
322
|
+
== (try?
|
|
323
|
+
((Core_ui_editable_text_base_editable_text_base_common.keyboardTypeProperty?.setNative)?.key
|
|
324
|
+
?? "undefined"))
|
|
323
325
|
{
|
|
324
326
|
return { __this, __a in
|
|
325
327
|
try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_setNative_keyboardType(
|
|
@@ -328,8 +330,9 @@ open class EditableTextBase__index_ios: EditableTextBase {
|
|
|
328
330
|
}
|
|
329
331
|
}
|
|
330
332
|
if key
|
|
331
|
-
== (
|
|
332
|
-
|
|
333
|
+
== (try?
|
|
334
|
+
((Core_ui_editable_text_base_editable_text_base_common.autofillTypeProperty?.setNative)?.key
|
|
335
|
+
?? "undefined"))
|
|
333
336
|
{
|
|
334
337
|
return { __this, __a in
|
|
335
338
|
try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_setNative_autofillType(
|
|
@@ -338,16 +341,18 @@ open class EditableTextBase__index_ios: EditableTextBase {
|
|
|
338
341
|
}
|
|
339
342
|
}
|
|
340
343
|
if key
|
|
341
|
-
== (
|
|
342
|
-
|
|
344
|
+
== (try?
|
|
345
|
+
((Core_ui_editable_text_base_editable_text_base_common.returnKeyTypeProperty?.getDefault)?.key
|
|
346
|
+
?? "undefined"))
|
|
343
347
|
{
|
|
344
348
|
return { __this, __a in
|
|
345
349
|
return try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_getDefault_returnKeyType()
|
|
346
350
|
}
|
|
347
351
|
}
|
|
348
352
|
if key
|
|
349
|
-
== (
|
|
350
|
-
|
|
353
|
+
== (try?
|
|
354
|
+
((Core_ui_editable_text_base_editable_text_base_common.returnKeyTypeProperty?.setNative)?.key
|
|
355
|
+
?? "undefined"))
|
|
351
356
|
{
|
|
352
357
|
return { __this, __a in
|
|
353
358
|
try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_setNative_returnKeyType(
|
|
@@ -356,8 +361,9 @@ open class EditableTextBase__index_ios: EditableTextBase {
|
|
|
356
361
|
}
|
|
357
362
|
}
|
|
358
363
|
if key
|
|
359
|
-
== (
|
|
360
|
-
|
|
364
|
+
== (try?
|
|
365
|
+
((Core_ui_editable_text_base_editable_text_base_common.autocapitalizationTypeProperty?.getDefault)?.key
|
|
366
|
+
?? "undefined"))
|
|
361
367
|
{
|
|
362
368
|
return { __this, __a in
|
|
363
369
|
return try (jsCastPresent(__this) as EditableTextBase__index_ios)
|
|
@@ -365,8 +371,9 @@ open class EditableTextBase__index_ios: EditableTextBase {
|
|
|
365
371
|
}
|
|
366
372
|
}
|
|
367
373
|
if key
|
|
368
|
-
== (
|
|
369
|
-
|
|
374
|
+
== (try?
|
|
375
|
+
((Core_ui_editable_text_base_editable_text_base_common.autocapitalizationTypeProperty?.setNative)?.key
|
|
376
|
+
?? "undefined"))
|
|
370
377
|
{
|
|
371
378
|
return { __this, __a in
|
|
372
379
|
try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_setNative_autocapitalizationType(
|
|
@@ -375,16 +382,18 @@ open class EditableTextBase__index_ios: EditableTextBase {
|
|
|
375
382
|
}
|
|
376
383
|
}
|
|
377
384
|
if key
|
|
378
|
-
== (
|
|
379
|
-
|
|
385
|
+
== (try?
|
|
386
|
+
((Core_ui_editable_text_base_editable_text_base_common.autocorrectProperty?.getDefault)?.key
|
|
387
|
+
?? "undefined"))
|
|
380
388
|
{
|
|
381
389
|
return { __this, __a in
|
|
382
390
|
return try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_getDefault_autocorrect()
|
|
383
391
|
}
|
|
384
392
|
}
|
|
385
393
|
if key
|
|
386
|
-
== (
|
|
387
|
-
|
|
394
|
+
== (try?
|
|
395
|
+
((Core_ui_editable_text_base_editable_text_base_common.autocorrectProperty?.setNative)?.key
|
|
396
|
+
?? "undefined"))
|
|
388
397
|
{
|
|
389
398
|
return { __this, __a in
|
|
390
399
|
try (jsCastPresent(__this) as EditableTextBase__index_ios).symbol_setNative_autocorrect(jsArg(__a, 0))
|
|
@@ -913,7 +913,8 @@ open class FrameBase: CustomLayoutView {
|
|
|
913
913
|
#sourceLocation(file:"@nativescript/core/ui.frame.frame-common.ts",line:672)
|
|
914
914
|
while i >= 0 {
|
|
915
915
|
#sourceLocation(file:"@nativescript/core/ui.frame.frame-common.ts",line:673)
|
|
916
|
-
let backstackEntry: Any? =
|
|
916
|
+
let backstackEntry: Any? =
|
|
917
|
+
try ((jsUnwrap(self.backStack, "i--").element(jsPostDecrement(&i)) ?? nil) as Any?)
|
|
917
918
|
#sourceLocation(file:"@nativescript/core/ui.frame.frame-common.ts",line:674)
|
|
918
919
|
try jsLog("\t\(jsToStringThrowing(jsGet(backstackEntry, "resolvedPage")))")
|
|
919
920
|
}
|
|
@@ -830,8 +830,8 @@ open class Frame: FrameBase {
|
|
|
830
830
|
let navigationController: NativeScriptKit.UINavigationControllerImpl? =
|
|
831
831
|
navigationController as? NativeScriptKit.UINavigationControllerImpl
|
|
832
832
|
let operation: Double = Double(operation.rawValue)
|
|
833
|
-
let __result: any UIViewControllerAnimatedTransitioning? = jsReportedOrZero {
|
|
834
|
-
() throws -> any UIViewControllerAnimatedTransitioning? in
|
|
833
|
+
let __result: (any UIViewControllerAnimatedTransitioning)? = jsReportedOrZero {
|
|
834
|
+
() throws -> (any UIViewControllerAnimatedTransitioning)? in
|
|
835
835
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:475)
|
|
836
836
|
var viewController: UIViewController?
|
|
837
837
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:476)
|
|
@@ -919,7 +919,7 @@ open class Frame: FrameBase {
|
|
|
919
919
|
return try jsCallMethod(
|
|
920
920
|
__o_2, "iosNavigatedController", (navigationController as Any?), operation, fromVC, toVC
|
|
921
921
|
)
|
|
922
|
-
}()) as? any UIViewControllerAnimatedTransitioning)
|
|
922
|
+
}()) as? (any UIViewControllerAnimatedTransitioning))
|
|
923
923
|
}
|
|
924
924
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:526)
|
|
925
925
|
return nil
|
|
@@ -941,8 +941,8 @@ open class Frame: FrameBase {
|
|
|
941
941
|
(navigationController, animationController) -> (any UIViewControllerInteractiveTransitioning)? in
|
|
942
942
|
let navigationController: NativeScriptKit.UINavigationControllerImpl? =
|
|
943
943
|
navigationController as? NativeScriptKit.UINavigationControllerImpl
|
|
944
|
-
let __result: any UIViewControllerInteractiveTransitioning? = jsReportedOrZero {
|
|
945
|
-
() throws -> any UIViewControllerInteractiveTransitioning? in
|
|
944
|
+
let __result: (any UIViewControllerInteractiveTransitioning)? = jsReportedOrZero {
|
|
945
|
+
() throws -> (any UIViewControllerInteractiveTransitioning)? in
|
|
946
946
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:530)
|
|
947
947
|
let owner: NativeScriptKit.Frame? = try jsUnwrap(navigationController, "owner").owner
|
|
948
948
|
#sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:531)
|
|
@@ -966,7 +966,7 @@ open class Frame: FrameBase {
|
|
|
966
966
|
as Any?)
|
|
967
967
|
return try jsIsNullish(__o_3)
|
|
968
968
|
? nil : try jsCallMethod(__o_3, "iosInteractionDismiss", jsNull)
|
|
969
|
-
}()) as? any UIViewControllerInteractiveTransitioning)
|
|
969
|
+
}()) as? (any UIViewControllerInteractiveTransitioning))
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
972
|
}
|
|
@@ -85,44 +85,44 @@ open class HtmlView: HtmlViewBase {
|
|
|
85
85
|
}
|
|
86
86
|
#sourceLocation()
|
|
87
87
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
88
|
-
if key == ((Core_ui_html_view_html_view_common.htmlProperty?.getDefault)?.key ?? "undefined") {
|
|
88
|
+
if key == (try? ((Core_ui_html_view_html_view_common.htmlProperty?.getDefault)?.key ?? "undefined")) {
|
|
89
89
|
return { __this, __a in return try (jsCastPresent(__this) as HtmlView).symbol_getDefault_html() }
|
|
90
90
|
}
|
|
91
|
-
if key == ((Core_ui_html_view_html_view_common.htmlProperty?.setNative)?.key ?? "undefined") {
|
|
91
|
+
if key == (try? ((Core_ui_html_view_html_view_common.htmlProperty?.setNative)?.key ?? "undefined")) {
|
|
92
92
|
return { __this, __a in
|
|
93
93
|
try (jsCastPresent(__this) as HtmlView).symbol_setNative_html("")
|
|
94
94
|
return nil
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
if key == ((Core_ui_html_view_html_view_common.selectableProperty?.getDefault)?.key ?? "undefined") {
|
|
97
|
+
if key == (try? ((Core_ui_html_view_html_view_common.selectableProperty?.getDefault)?.key ?? "undefined")) {
|
|
98
98
|
return { __this, __a in return try (jsCastPresent(__this) as HtmlView).symbol_getDefault_selectable() }
|
|
99
99
|
}
|
|
100
|
-
if key == ((Core_ui_html_view_html_view_common.selectableProperty?.setNative)?.key ?? "undefined") {
|
|
100
|
+
if key == (try? ((Core_ui_html_view_html_view_common.selectableProperty?.setNative)?.key ?? "undefined")) {
|
|
101
101
|
return { __this, __a in
|
|
102
102
|
try (jsCastPresent(__this) as HtmlView).symbol_setNative_selectable(
|
|
103
103
|
(try jsConvertedBool(jsArg(__a, 0))))
|
|
104
104
|
return nil
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
|
|
107
|
+
if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
|
|
108
108
|
return { __this, __a in return try (jsCastPresent(__this) as HtmlView).symbol_getDefault_color() }
|
|
109
109
|
}
|
|
110
|
-
if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
|
|
110
|
+
if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
|
|
111
111
|
return { __this, __a in
|
|
112
112
|
try (jsCastPresent(__this) as HtmlView).symbol_setNative_color(jsArg(__a, 0))
|
|
113
113
|
return nil
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
if key == ((Core_ui_html_view_html_view_common.linkColorProperty?.setNative)?.key ?? "undefined") {
|
|
116
|
+
if key == (try? ((Core_ui_html_view_html_view_common.linkColorProperty?.setNative)?.key ?? "undefined")) {
|
|
117
117
|
return { __this, __a in
|
|
118
118
|
try (jsCastPresent(__this) as HtmlView).symbol_setNative_linkColor(nil)
|
|
119
119
|
return nil
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
if key == ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined") {
|
|
122
|
+
if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined")) {
|
|
123
123
|
return { __this, __a in return try (jsCastPresent(__this) as HtmlView).symbol_getDefault_fontInternal() }
|
|
124
124
|
}
|
|
125
|
-
if key == ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined") {
|
|
125
|
+
if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined")) {
|
|
126
126
|
return { __this, __a in
|
|
127
127
|
try (jsCastPresent(__this) as HtmlView).symbol_setNative_fontInternal(jsArg(__a, 0))
|
|
128
128
|
return nil
|
|
@@ -121,38 +121,38 @@ open class Image: ImageBase {
|
|
|
121
121
|
}
|
|
122
122
|
#sourceLocation()
|
|
123
123
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
124
|
-
if key == ((Core_ui_image_image_common.stretchProperty?.setNative)?.key ?? "undefined") {
|
|
124
|
+
if key == (try? ((Core_ui_image_image_common.stretchProperty?.setNative)?.key ?? "undefined")) {
|
|
125
125
|
return { __this, __a in
|
|
126
126
|
try (jsCastPresent(__this) as Image).symbol_setNative_stretch((try jsConvertedString(jsArg(__a, 0))))
|
|
127
127
|
return nil
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
if key == ((Core_ui_image_image_common.tintColorProperty?.setNative)?.key ?? "undefined") {
|
|
130
|
+
if key == (try? ((Core_ui_image_image_common.tintColorProperty?.setNative)?.key ?? "undefined")) {
|
|
131
131
|
return { __this, __a in
|
|
132
132
|
try (jsCastPresent(__this) as Image).symbol_setNative_tintColor((try jsCast(jsArg(__a, 0), Color.self)))
|
|
133
133
|
return nil
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
if key == ((Core_ui_image_image_common.imageSourceProperty?.setNative)?.key ?? "undefined") {
|
|
136
|
+
if key == (try? ((Core_ui_image_image_common.imageSourceProperty?.setNative)?.key ?? "undefined")) {
|
|
137
137
|
return { __this, __a in
|
|
138
138
|
try (jsCastPresent(__this) as Image).symbol_setNative_imageSource(
|
|
139
139
|
(try jsCast(jsArg(__a, 0), ImageSource.self)))
|
|
140
140
|
return nil
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
if key == ((Core_ui_image_image_common.srcProperty?.setNative)?.key ?? "undefined") {
|
|
143
|
+
if key == (try? ((Core_ui_image_image_common.srcProperty?.setNative)?.key ?? "undefined")) {
|
|
144
144
|
return { __this, __a in
|
|
145
145
|
try (jsCastPresent(__this) as Image).symbol_setNative_src(jsArg(__a, 0))
|
|
146
146
|
return nil
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
if key == ((Core_ui_image_image_common.iosSymbolEffectProperty?.setNative)?.key ?? "undefined") {
|
|
149
|
+
if key == (try? ((Core_ui_image_image_common.iosSymbolEffectProperty?.setNative)?.key ?? "undefined")) {
|
|
150
150
|
return { __this, __a in
|
|
151
151
|
try (jsCastPresent(__this) as Image).symbol_setNative_iosSymbolEffect(jsArg(__a, 0))
|
|
152
152
|
return nil
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
if key == ((Core_ui_image_image_common.iosSymbolScaleProperty?.setNative)?.key ?? "undefined") {
|
|
155
|
+
if key == (try? ((Core_ui_image_image_common.iosSymbolScaleProperty?.setNative)?.key ?? "undefined")) {
|
|
156
156
|
return { __this, __a in
|
|
157
157
|
try (jsCastPresent(__this) as Image).symbol_setNative_iosSymbolScale("")
|
|
158
158
|
return nil
|
|
@@ -146,50 +146,50 @@ open class Label: TextBase {
|
|
|
146
146
|
}
|
|
147
147
|
#sourceLocation()
|
|
148
148
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
149
|
-
if key == ((Core_ui_text_base_text_base_common.whiteSpaceProperty?.setNative)?.key ?? "undefined") {
|
|
149
|
+
if key == (try? ((Core_ui_text_base_text_base_common.whiteSpaceProperty?.setNative)?.key ?? "undefined")) {
|
|
150
150
|
return { __this, __a in
|
|
151
151
|
try (jsCastPresent(__this) as Label).symbol_setNative_whiteSpace("")
|
|
152
152
|
return nil
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
if key == ((Core_ui_text_base_text_base_common.textOverflowProperty?.setNative)?.key ?? "undefined") {
|
|
155
|
+
if key == (try? ((Core_ui_text_base_text_base_common.textOverflowProperty?.setNative)?.key ?? "undefined")) {
|
|
156
156
|
return { __this, __a in
|
|
157
157
|
try (jsCastPresent(__this) as Label).symbol_setNative_textOverflow("")
|
|
158
158
|
return nil
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
if key == ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined") {
|
|
161
|
+
if key == (try? ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined")) {
|
|
162
162
|
return { __this, __a in
|
|
163
163
|
try (jsCastPresent(__this) as Label).symbol_setNative_direction_Label(
|
|
164
164
|
(try jsConvertedString(jsArg(__a, 0))))
|
|
165
165
|
return nil
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
if key == ((Core_ui_styling_style_properties.borderTopWidthProperty?.setNative)?.key ?? "undefined") {
|
|
168
|
+
if key == (try? ((Core_ui_styling_style_properties.borderTopWidthProperty?.setNative)?.key ?? "undefined")) {
|
|
169
169
|
return { __this, __a in
|
|
170
170
|
try (jsCastPresent(__this) as Label).symbol_setNative_borderTopWidth(nil)
|
|
171
171
|
return nil
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
if key == ((Core_ui_styling_style_properties.borderRightWidthProperty?.setNative)?.key ?? "undefined") {
|
|
174
|
+
if key == (try? ((Core_ui_styling_style_properties.borderRightWidthProperty?.setNative)?.key ?? "undefined")) {
|
|
175
175
|
return { __this, __a in
|
|
176
176
|
try (jsCastPresent(__this) as Label).symbol_setNative_borderRightWidth(nil)
|
|
177
177
|
return nil
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
if key == ((Core_ui_styling_style_properties.borderBottomWidthProperty?.setNative)?.key ?? "undefined") {
|
|
180
|
+
if key == (try? ((Core_ui_styling_style_properties.borderBottomWidthProperty?.setNative)?.key ?? "undefined")) {
|
|
181
181
|
return { __this, __a in
|
|
182
182
|
try (jsCastPresent(__this) as Label).symbol_setNative_borderBottomWidth(nil)
|
|
183
183
|
return nil
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
if key == ((Core_ui_styling_style_properties.borderLeftWidthProperty?.setNative)?.key ?? "undefined") {
|
|
186
|
+
if key == (try? ((Core_ui_styling_style_properties.borderLeftWidthProperty?.setNative)?.key ?? "undefined")) {
|
|
187
187
|
return { __this, __a in
|
|
188
188
|
try (jsCastPresent(__this) as Label).symbol_setNative_borderLeftWidth(nil)
|
|
189
189
|
return nil
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
if key == ((Core_ui_styling_style_properties.paddingInternalProperty?.setNative)?.key ?? "undefined") {
|
|
192
|
+
if key == (try? ((Core_ui_styling_style_properties.paddingInternalProperty?.setNative)?.key ?? "undefined")) {
|
|
193
193
|
return { __this, __a in
|
|
194
194
|
try (jsCastPresent(__this) as Label).symbol_setNative_paddingInternal("")
|
|
195
195
|
return nil
|
|
@@ -1882,7 +1882,7 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
1882
1882
|
childState, Core_ui_layouts_flexbox_layout_index.MEASURED_STATE_TOO_SMALL)
|
|
1883
1883
|
} else {
|
|
1884
1884
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:892)
|
|
1885
|
-
widthSize =
|
|
1885
|
+
widthSize = try jsConvertedNumber(calculatedMaxWidth)
|
|
1886
1886
|
}
|
|
1887
1887
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:894)
|
|
1888
1888
|
widthSizeAndState = View.resolveSizeAndState(widthSize, widthSize, widthMode, childState)
|
|
@@ -1891,7 +1891,7 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
1891
1891
|
case _ where __switch8 == (Core_ui_layouts_flexbox_layout_index.UNSPECIFIED):
|
|
1892
1892
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:898)
|
|
1893
1893
|
widthSizeAndState = View.resolveSizeAndState(
|
|
1894
|
-
|
|
1894
|
+
try jsConvertedNumber(calculatedMaxWidth), widthSize, widthMode, childState)
|
|
1895
1895
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:899)
|
|
1896
1896
|
break
|
|
1897
1897
|
default:
|
|
@@ -1926,7 +1926,7 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
1926
1926
|
NativeScriptKit.layout.MEASURED_HEIGHT_STATE_SHIFT))
|
|
1927
1927
|
} else {
|
|
1928
1928
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:916)
|
|
1929
|
-
heightSize =
|
|
1929
|
+
heightSize = try jsConvertedNumber(calculatedMaxHeight)
|
|
1930
1930
|
}
|
|
1931
1931
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:919)
|
|
1932
1932
|
heightSizeAndState = View.resolveSizeAndState(heightSize, heightSize, heightMode, childState)
|
|
@@ -1935,7 +1935,7 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
1935
1935
|
case _ where __switch9 == (Core_ui_layouts_flexbox_layout_index.UNSPECIFIED):
|
|
1936
1936
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:923)
|
|
1937
1937
|
heightSizeAndState = View.resolveSizeAndState(
|
|
1938
|
-
|
|
1938
|
+
try jsConvertedNumber(calculatedMaxHeight), heightSize, heightMode, childState)
|
|
1939
1939
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:924)
|
|
1940
1940
|
break
|
|
1941
1941
|
default:
|
|
@@ -1943,7 +1943,8 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
1943
1943
|
throw JSException(value: JSError("Unknown height mode is set: " + js(heightMode)))
|
|
1944
1944
|
}
|
|
1945
1945
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:929)
|
|
1946
|
-
try self.setMeasuredDimension(
|
|
1946
|
+
try self.setMeasuredDimension(
|
|
1947
|
+
try jsConvertedNumber(widthSizeAndState), try jsConvertedNumber(heightSizeAndState))
|
|
1947
1948
|
}
|
|
1948
1949
|
#sourceLocation()
|
|
1949
1950
|
open func _isWrapRequired(
|
|
@@ -2216,17 +2217,17 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
2216
2217
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1094)
|
|
2217
2218
|
try self._layoutSingleChildHorizontal(
|
|
2218
2219
|
child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
|
|
2219
|
-
jsRound(
|
|
2220
|
+
jsRound(try jsConvertedNumber(childRight))
|
|
2220
2221
|
- jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
|
|
2221
2222
|
childBottom - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
|
|
2222
|
-
jsRound(
|
|
2223
|
+
jsRound(try jsConvertedNumber(childRight)), childBottom)
|
|
2223
2224
|
} else {
|
|
2224
2225
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1096)
|
|
2225
2226
|
try self._layoutSingleChildHorizontal(
|
|
2226
2227
|
child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
|
|
2227
|
-
jsRound(
|
|
2228
|
+
jsRound(try jsConvertedNumber(childLeft)),
|
|
2228
2229
|
childBottom - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
|
|
2229
|
-
jsRound(
|
|
2230
|
+
jsRound(try jsConvertedNumber(childLeft))
|
|
2230
2231
|
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(), childBottom)
|
|
2231
2232
|
}
|
|
2232
2233
|
} else {
|
|
@@ -2235,16 +2236,16 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
2235
2236
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1100)
|
|
2236
2237
|
try self._layoutSingleChildHorizontal(
|
|
2237
2238
|
child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
|
|
2238
|
-
jsRound(
|
|
2239
|
+
jsRound(try jsConvertedNumber(childRight))
|
|
2239
2240
|
- jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(), childTop,
|
|
2240
|
-
jsRound(
|
|
2241
|
+
jsRound(try jsConvertedNumber(childRight)),
|
|
2241
2242
|
childTop + jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
|
|
2242
2243
|
} else {
|
|
2243
2244
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1102)
|
|
2244
2245
|
try self._layoutSingleChildHorizontal(
|
|
2245
2246
|
child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
|
|
2246
|
-
jsRound(
|
|
2247
|
-
jsRound(
|
|
2247
|
+
jsRound(try jsConvertedNumber(childLeft)), childTop,
|
|
2248
|
+
jsRound(try jsConvertedNumber(childLeft))
|
|
2248
2249
|
+ jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
|
|
2249
2250
|
childTop + jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
|
|
2250
2251
|
}
|
|
@@ -2550,16 +2551,16 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
2550
2551
|
try self._layoutSingleChildVertical(
|
|
2551
2552
|
child, jsImplicit(flexLine), true, self.alignItems,
|
|
2552
2553
|
childRight - jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
|
|
2553
|
-
jsRound(
|
|
2554
|
+
jsRound(try jsConvertedNumber(childBottom))
|
|
2554
2555
|
- jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(), childRight,
|
|
2555
|
-
jsRound(
|
|
2556
|
+
jsRound(try jsConvertedNumber(childBottom)))
|
|
2556
2557
|
} else {
|
|
2557
2558
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1252)
|
|
2558
2559
|
try self._layoutSingleChildVertical(
|
|
2559
2560
|
child, jsImplicit(flexLine), true, self.alignItems,
|
|
2560
2561
|
childRight - jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
|
|
2561
|
-
jsRound(
|
|
2562
|
-
jsRound(
|
|
2562
|
+
jsRound(try jsConvertedNumber(childTop)), childRight,
|
|
2563
|
+
jsRound(try jsConvertedNumber(childTop))
|
|
2563
2564
|
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
|
|
2564
2565
|
}
|
|
2565
2566
|
} else {
|
|
@@ -2568,17 +2569,17 @@ open class FlexboxLayout: FlexboxLayoutBase {
|
|
|
2568
2569
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1256)
|
|
2569
2570
|
try self._layoutSingleChildVertical(
|
|
2570
2571
|
child, jsImplicit(flexLine), false, self.alignItems, childLeft,
|
|
2571
|
-
jsRound(
|
|
2572
|
+
jsRound(try jsConvertedNumber(childBottom))
|
|
2572
2573
|
- jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
|
|
2573
2574
|
childLeft + jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
|
|
2574
|
-
jsRound(
|
|
2575
|
+
jsRound(try jsConvertedNumber(childBottom)))
|
|
2575
2576
|
} else {
|
|
2576
2577
|
#sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1258)
|
|
2577
2578
|
try self._layoutSingleChildVertical(
|
|
2578
2579
|
child, jsImplicit(flexLine), false, self.alignItems, childLeft,
|
|
2579
|
-
jsRound(
|
|
2580
|
+
jsRound(try jsConvertedNumber(childTop)),
|
|
2580
2581
|
childLeft + jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
|
|
2581
|
-
jsRound(
|
|
2582
|
+
jsRound(try jsConvertedNumber(childTop))
|
|
2582
2583
|
+ jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
|
|
2583
2584
|
}
|
|
2584
2585
|
}
|
|
@@ -37,17 +37,18 @@ open class LayoutBase: LayoutBaseCommon {
|
|
|
37
37
|
}
|
|
38
38
|
#sourceLocation()
|
|
39
39
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
40
|
-
if key == ((Core_ui_layouts_layout_base_common.clipToBoundsProperty?.getDefault)?.key ?? "undefined") {
|
|
40
|
+
if key == (try? ((Core_ui_layouts_layout_base_common.clipToBoundsProperty?.getDefault)?.key ?? "undefined")) {
|
|
41
41
|
return { __this, __a in return try (jsCastPresent(__this) as LayoutBase).symbol_getDefault_clipToBounds() }
|
|
42
42
|
}
|
|
43
|
-
if key == ((Core_ui_layouts_layout_base_common.clipToBoundsProperty?.setNative)?.key ?? "undefined") {
|
|
43
|
+
if key == (try? ((Core_ui_layouts_layout_base_common.clipToBoundsProperty?.setNative)?.key ?? "undefined")) {
|
|
44
44
|
return { __this, __a in
|
|
45
45
|
try (jsCastPresent(__this) as LayoutBase).symbol_setNative_clipToBounds(false)
|
|
46
46
|
return nil
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
if key
|
|
50
|
-
== (
|
|
50
|
+
== (try?
|
|
51
|
+
((Core_ui_layouts_layout_base_common.isPassThroughParentEnabledProperty?.setNative)?.key ?? "undefined"))
|
|
51
52
|
{
|
|
52
53
|
return { __this, __a in
|
|
53
54
|
try (jsCastPresent(__this) as LayoutBase).symbol_setNative_isPassThroughParentEnabled(
|
package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift
CHANGED
|
@@ -43,7 +43,7 @@ open class LiquidGlassContainer: LiquidGlassContainerCommon {
|
|
|
43
43
|
}
|
|
44
44
|
#sourceLocation()
|
|
45
45
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
46
|
-
if key == ((Core_ui_core_view_view_common.iosGlassEffectProperty?.setNative)?.key ?? "undefined") {
|
|
46
|
+
if key == (try? ((Core_ui_core_view_view_common.iosGlassEffectProperty?.setNative)?.key ?? "undefined")) {
|
|
47
47
|
return { __this, __a in
|
|
48
48
|
try (jsCastPresent(__this) as LiquidGlassContainer)
|
|
49
49
|
.symbol_setNative_iosGlassEffect_LiquidGlassContainer(jsArg(__a, 0))
|
|
@@ -41,7 +41,7 @@ open class LiquidGlass: LiquidGlassCommon {
|
|
|
41
41
|
}
|
|
42
42
|
#sourceLocation()
|
|
43
43
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
44
|
-
if key == ((Core_ui_core_view_view_common.iosGlassEffectProperty?.setNative)?.key ?? "undefined") {
|
|
44
|
+
if key == (try? ((Core_ui_core_view_view_common.iosGlassEffectProperty?.setNative)?.key ?? "undefined")) {
|
|
45
45
|
return { __this, __a in
|
|
46
46
|
try (jsCastPresent(__this) as LiquidGlass).symbol_setNative_iosGlassEffect_LiquidGlass(jsArg(__a, 0))
|
|
47
47
|
return nil
|
|
@@ -149,7 +149,7 @@ open class RootLayout: RootLayoutBase {
|
|
|
149
149
|
try
|
|
150
150
|
({ (completed: Bool) throws -> Void in
|
|
151
151
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.index.ios.ts",line:75)
|
|
152
|
-
__resolvers1.resolve()
|
|
152
|
+
try __resolvers1.resolve()
|
|
153
153
|
})(completed)
|
|
154
154
|
}
|
|
155
155
|
})
|
|
@@ -194,7 +194,7 @@ open class RootLayout: RootLayoutBase {
|
|
|
194
194
|
try
|
|
195
195
|
({ (completed: Bool) throws -> Void in
|
|
196
196
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.index.ios.ts",line:96)
|
|
197
|
-
__resolvers2.resolve()
|
|
197
|
+
try __resolvers2.resolve()
|
|
198
198
|
})(completed)
|
|
199
199
|
}
|
|
200
200
|
})
|
package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift
CHANGED
|
@@ -139,7 +139,7 @@ open class RootLayoutBase: GridLayout {
|
|
|
139
139
|
("eventName", "opened"), ("object", view),
|
|
140
140
|
]))))
|
|
141
141
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:94)
|
|
142
|
-
__resolvers2.resolve()
|
|
142
|
+
try __resolvers2.resolve()
|
|
143
143
|
}),
|
|
144
144
|
FunctionCell_AnyOpt_to_Void.scriptOrNil(
|
|
145
145
|
"", 1,
|
|
@@ -157,7 +157,7 @@ open class RootLayoutBase: GridLayout {
|
|
|
157
157
|
_ = try jsUnwrap(JSPromise<Any?>.all(toOpen), "then").then(
|
|
158
158
|
{ (_ __unused: JSArray<Any?>) throws -> Void in
|
|
159
159
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:106)
|
|
160
|
-
__resolvers1.resolve()
|
|
160
|
+
try __resolvers1.resolve()
|
|
161
161
|
},
|
|
162
162
|
{ (err: Any?) throws -> Void in
|
|
163
163
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:109)
|
|
@@ -203,7 +203,7 @@ open class RootLayoutBase: GridLayout {
|
|
|
203
203
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:138)
|
|
204
204
|
try self.removeChild(view)
|
|
205
205
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:139)
|
|
206
|
-
__resolvers3.resolve()
|
|
206
|
+
try __resolvers3.resolve()
|
|
207
207
|
}
|
|
208
208
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:142)
|
|
209
209
|
let exitAnimationDefinition: Any? = try
|
|
@@ -240,7 +240,7 @@ open class RootLayoutBase: GridLayout {
|
|
|
240
240
|
) { _ in () }
|
|
241
241
|
} else {
|
|
242
242
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:158)
|
|
243
|
-
__resolvers4.resolve()
|
|
243
|
+
try __resolvers4.resolve()
|
|
244
244
|
}
|
|
245
245
|
})
|
|
246
246
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:163)
|
|
@@ -342,7 +342,7 @@ open class RootLayoutBase: GridLayout {
|
|
|
342
342
|
NativeScriptKit.Trace.messageType.warn)
|
|
343
343
|
}
|
|
344
344
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:227)
|
|
345
|
-
__resolvers5.resolve()
|
|
345
|
+
try __resolvers5.resolve()
|
|
346
346
|
} else {
|
|
347
347
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:230)
|
|
348
348
|
let shadeCover: View? = try self.createShadeCover()
|
|
@@ -355,7 +355,7 @@ open class RootLayoutBase: GridLayout {
|
|
|
355
355
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:233)
|
|
356
356
|
_ = try jsUnwrap(self.updateShadeCover(shadeCover, options), "then").then({ () throws -> Void in
|
|
357
357
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:234)
|
|
358
|
-
__resolvers5.resolve()
|
|
358
|
+
try __resolvers5.resolve()
|
|
359
359
|
})
|
|
360
360
|
})
|
|
361
361
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:238)
|
|
@@ -393,12 +393,12 @@ open class RootLayoutBase: GridLayout {
|
|
|
393
393
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:258)
|
|
394
394
|
try self._cleanupPlatformShadeCover()
|
|
395
395
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:259)
|
|
396
|
-
__resolvers6.resolve()
|
|
396
|
+
try __resolvers6.resolve()
|
|
397
397
|
}))
|
|
398
398
|
return
|
|
399
399
|
}
|
|
400
400
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:262)
|
|
401
|
-
__resolvers6.resolve()
|
|
401
|
+
try __resolvers6.resolve()
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
#sourceLocation()
|
|
@@ -519,7 +519,7 @@ open class RootLayoutBase: GridLayout {
|
|
|
519
519
|
_ = try self.updateShadeCover(self._shadeCover, shadeCoverOptions)
|
|
520
520
|
}
|
|
521
521
|
#sourceLocation(file:"@nativescript/core/ui.layouts.root-layout.root-layout-common.ts",line:336)
|
|
522
|
-
__resolvers7.resolve()
|
|
522
|
+
try __resolvers7.resolve()
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
#sourceLocation()
|
|
@@ -71,29 +71,32 @@ open class ListPicker: ListPickerBase {
|
|
|
71
71
|
}
|
|
72
72
|
#sourceLocation()
|
|
73
73
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
74
|
-
if key
|
|
74
|
+
if key
|
|
75
|
+
== (try? ((Core_ui_list_picker_list_picker_common.selectedIndexProperty?.getDefault)?.key ?? "undefined"))
|
|
76
|
+
{
|
|
75
77
|
return { __this, __a in return try (jsCastPresent(__this) as ListPicker).symbol_getDefault_selectedIndex() }
|
|
76
78
|
}
|
|
77
|
-
if key == ((Core_ui_list_picker_list_picker_common.selectedIndexProperty?.setNative)?.key ?? "undefined")
|
|
79
|
+
if key == (try? ((Core_ui_list_picker_list_picker_common.selectedIndexProperty?.setNative)?.key ?? "undefined"))
|
|
80
|
+
{
|
|
78
81
|
return { __this, __a in
|
|
79
82
|
try (jsCastPresent(__this) as ListPicker).symbol_setNative_selectedIndex(
|
|
80
83
|
(try jsConvertedNumber(jsArg(__a, 0))))
|
|
81
84
|
return nil
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
|
-
if key == ((Core_ui_list_picker_list_picker_common.itemsProperty?.getDefault)?.key ?? "undefined") {
|
|
87
|
+
if key == (try? ((Core_ui_list_picker_list_picker_common.itemsProperty?.getDefault)?.key ?? "undefined")) {
|
|
85
88
|
return { __this, __a in return try (jsCastPresent(__this) as ListPicker).symbol_getDefault_items() }
|
|
86
89
|
}
|
|
87
|
-
if key == ((Core_ui_list_picker_list_picker_common.itemsProperty?.setNative)?.key ?? "undefined") {
|
|
90
|
+
if key == (try? ((Core_ui_list_picker_list_picker_common.itemsProperty?.setNative)?.key ?? "undefined")) {
|
|
88
91
|
return { __this, __a in
|
|
89
92
|
try (jsCastPresent(__this) as ListPicker).symbol_setNative_items(nil)
|
|
90
93
|
return nil
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
|
-
if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
|
|
96
|
+
if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
|
|
94
97
|
return { __this, __a in return try (jsCastPresent(__this) as ListPicker).symbol_getDefault_color() }
|
|
95
98
|
}
|
|
96
|
-
if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
|
|
99
|
+
if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
|
|
97
100
|
return { __this, __a in
|
|
98
101
|
try (jsCastPresent(__this) as ListPicker).symbol_setNative_color(jsArg(__a, 0))
|
|
99
102
|
return nil
|