@nstudio/nativescript-compiler 9.2.0-alpha.16 → 9.2.0-alpha.18
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/dist/kit/kit-index.js +9 -0
- package/dist/kotlin/access.js +14 -15
- package/dist/kotlin/arguments.js +2 -2
- 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 +16 -1
- package/dist/kotlin/class-methods.js +2 -2
- package/dist/kotlin/components.js +2 -7
- package/dist/kotlin/core-api.js +3 -22
- package/dist/kotlin/declarations.js +86 -9
- package/dist/kotlin/expression-statements.js +13 -1
- package/dist/kotlin/functions.js +2 -4
- package/dist/kotlin/global-calls.js +1 -4
- package/dist/kotlin/literals.js +3 -10
- package/dist/kotlin/names.js +6 -4
- package/dist/kotlin/native/api.js +1 -1
- package/dist/kotlin/native/classfiles.js +2 -13
- package/dist/kotlin/operators.js +36 -30
- package/dist/kotlin/optional-chains.js +3 -10
- package/dist/kotlin/overrides.js +5 -17
- package/dist/kotlin/placement.js +1 -12
- package/dist/kotlin/state-backend.js +6 -2
- package/dist/kotlin/statements.js +1 -13
- package/dist/kotlin/translator.js +3 -11
- package/dist/kotlin/type-tests.js +1 -1
- package/dist/kotlin/types.js +6 -23
- package/dist/program/core-facts.js +9 -0
- package/dist/semantics/classes.js +15 -0
- package/dist/semantics/facts.js +38 -2
- package/dist/semantics/lang.js +29 -0
- package/dist/semantics/lower.js +144 -0
- package/dist/semantics/lowering-methods.js +120 -3
- package/dist/semantics/marks.js +30 -0
- package/dist/semantics/placement.js +9 -3
- package/dist/semantics/refusals.js +12 -11
- package/dist/semantics/signals.js +11 -0
- package/dist/semantics/states/missing.js +7 -0
- package/dist/semantics/tdz.js +142 -8
- package/dist/semantics/throws.js +1 -1
- package/dist/semantics/translator-methods.js +1 -1
- package/dist/swift/access.js +13 -17
- package/dist/swift/assignment.js +30 -16
- package/dist/swift/calls.js +13 -5
- package/dist/swift/classes.js +22 -10
- package/dist/swift/components.js +3 -7
- package/dist/swift/control-flow.js +1 -1
- package/dist/swift/conversion.js +5 -2
- package/dist/swift/core-api.js +11 -31
- package/dist/swift/declarations.js +1 -6
- package/dist/swift/expression-statements.js +7 -0
- 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 -5
- package/dist/swift/lenient.js +0 -7
- package/dist/swift/literals.js +8 -3
- package/dist/swift/method-values.js +1 -19
- package/dist/swift/modules.js +5 -3
- package/dist/swift/names.js +3 -12
- package/dist/swift/native/api.js +3 -1
- package/dist/swift/native/calls.js +1 -1
- package/dist/swift/native/dispatch.js +2 -8
- package/dist/swift/object-classes.js +84 -1
- package/dist/swift/operators.js +37 -34
- package/dist/swift/optional-chains.js +1 -8
- package/dist/swift/parameters.js +0 -4
- package/dist/swift/placement.js +5 -15
- package/dist/swift/results.js +0 -4
- package/dist/swift/state-backend.js +3 -2
- package/dist/swift/statements.js +1 -13
- package/dist/swift/static-calls.js +2 -3
- package/dist/swift/syntax.js +9 -5
- package/dist/swift/translator.js +1 -11
- package/dist/swift/type-facts.js +3 -3
- package/dist/swift/types.js +3 -3
- package/dist/targets/ios/build.js +1 -1
- package/dist/types/adapter-api.d.ts +3 -3
- 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/main/kotlin/org/nativescript/kit/runtime/Array.kt +547 -51
- 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 +52 -6
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +33 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Prototypes.kt +9 -1
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +32 -18
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +137 -28
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +1 -1
- 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 +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +52 -43
- 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 +66 -51
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +67 -51
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +24 -6
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +143 -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.animation.index.ios.swift +77 -65
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +1272 -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 +8 -8
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -1
- 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.layouts.flexbox-layout.index.ios.swift +22 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +202 -188
- package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +2 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +3 -3
- 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.text-base.formatted-string.swift +1 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +1 -1
- 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 +17 -17
- 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/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 +413 -73
- package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +3 -2
- package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +14 -1
- 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 +2 -2
|
@@ -133,102 +133,102 @@ open class Property: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
133
133
|
open var enumerable: Bool = true
|
|
134
134
|
open var configurable: Bool = true
|
|
135
135
|
public init(_ options: Any?) throws {
|
|
136
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
136
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:554)
|
|
137
137
|
let propertyName: String = try jsConvertedString(jsGet(options, "name"))
|
|
138
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
138
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:555)
|
|
139
139
|
self.name = propertyName
|
|
140
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
140
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:557)
|
|
141
141
|
let key: JSSymbol = jsSymbol(propertyName + ":propertyKey")
|
|
142
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
142
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:558)
|
|
143
143
|
self.key = key
|
|
144
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
144
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:560)
|
|
145
145
|
let getDefault: JSSymbol = jsSymbol(propertyName + ":getDefault")
|
|
146
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
146
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:561)
|
|
147
147
|
self.getDefault = getDefault
|
|
148
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
148
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:563)
|
|
149
149
|
let setNative: JSSymbol = jsSymbol(propertyName + ":setNative")
|
|
150
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
150
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:564)
|
|
151
151
|
self.setNative = setNative
|
|
152
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
152
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:566)
|
|
153
153
|
let defaultValueKey: JSSymbol = jsSymbol(propertyName + ":nativeDefaultValue")
|
|
154
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
154
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:567)
|
|
155
155
|
self.defaultValueKey = defaultValueKey
|
|
156
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
156
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:569)
|
|
157
157
|
let defaultValue: Any? = try jsGet(options, "defaultValue")
|
|
158
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
158
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:570)
|
|
159
159
|
self.defaultValue = defaultValue
|
|
160
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
160
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:572)
|
|
161
161
|
let eventName: String = propertyName + "Change"
|
|
162
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
162
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:574)
|
|
163
163
|
var equalityComparer: ((Any?, Any?) throws -> Bool)? = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
|
|
164
164
|
jsGet(options, "equalityComparer"))
|
|
165
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
165
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:575)
|
|
166
166
|
var affectsLayout: Bool? = (try jsGet(options, "affectsLayout") as? Bool)
|
|
167
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
167
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:576)
|
|
168
168
|
var valueChanged: ((Any?, Any?, Any?) throws -> Void)? =
|
|
169
169
|
try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(jsGet(options, "valueChanged"))
|
|
170
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
170
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:577)
|
|
171
171
|
var valueConverter: ((String) throws -> Any?)? = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(
|
|
172
172
|
jsGet(options, "valueConverter"))
|
|
173
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
173
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:578)
|
|
174
174
|
var overrideConverter: Bool = false
|
|
175
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
175
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:580)
|
|
176
176
|
self.overrideHandlers = { (options: Any?) throws -> Void in
|
|
177
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
177
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:581)
|
|
178
178
|
if try !jsStringEquals(jsTypeof(jsGet(options, "equalityComparer")), "undefined") {
|
|
179
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
179
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:582)
|
|
180
180
|
equalityComparer = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
|
|
181
181
|
jsGet(options, "equalityComparer"))
|
|
182
182
|
}
|
|
183
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
183
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:584)
|
|
184
184
|
if try !jsStringEquals(jsTypeof(jsGet(options, "affectsLayout")), "undefined") {
|
|
185
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
185
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:585)
|
|
186
186
|
affectsLayout = try jsConvertedBool(jsGet(options, "affectsLayout"))
|
|
187
187
|
}
|
|
188
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
188
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:587)
|
|
189
189
|
if try !jsStringEquals(jsTypeof(jsGet(options, "valueChanged")), "undefined") {
|
|
190
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
190
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:588)
|
|
191
191
|
valueChanged = try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(
|
|
192
192
|
jsGet(options, "valueChanged"))
|
|
193
193
|
}
|
|
194
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
194
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:590)
|
|
195
195
|
if try !jsStringEquals(jsTypeof(jsGet(options, "valueConverter")), "undefined") {
|
|
196
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
196
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:591)
|
|
197
197
|
valueConverter = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter"))
|
|
198
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
198
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:592)
|
|
199
199
|
overrideConverter = true
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
202
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:596)
|
|
203
203
|
let property: Property = self
|
|
204
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
204
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:598)
|
|
205
205
|
self.set =
|
|
206
206
|
({ (__this: Any?, __a: [Any?]) throws -> Any? in
|
|
207
207
|
let boxedValue: Any? = jsArg(__a, 0)
|
|
208
208
|
let origin: String? = (try jsConvertedStringOrNil(jsArg(__a, 1)))
|
|
209
209
|
try { () throws -> Void in
|
|
210
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
210
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:599)
|
|
211
211
|
let reset: Bool = Core_ui_core_properties_property_shared.isResetValue(boxedValue)
|
|
212
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
212
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:600)
|
|
213
213
|
var value: Any? = nil
|
|
214
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
214
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:601)
|
|
215
215
|
var wrapped: Bool? = nil
|
|
216
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
216
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:602)
|
|
217
217
|
if reset {
|
|
218
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
218
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:603)
|
|
219
219
|
value = defaultValue
|
|
220
220
|
} else {
|
|
221
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
221
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:605)
|
|
222
222
|
wrapped = try jsConvertedBoolOrNil(
|
|
223
223
|
({ () throws -> Any? in
|
|
224
|
-
let
|
|
225
|
-
return jsTruthy(
|
|
224
|
+
let __v_2 = boxedValue
|
|
225
|
+
return jsTruthy(__v_2) ? try jsGet(boxedValue, "wrapped") : __v_2
|
|
226
226
|
}()))
|
|
227
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
227
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:606)
|
|
228
228
|
value = try (jsTruthy(wrapped as Any?) ? WrappedValue.unwrap(boxedValue) : boxedValue)
|
|
229
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
229
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:608)
|
|
230
230
|
if jsTruthy(valueConverter) && jsStringEquals(jsTypeof(value), "string") {
|
|
231
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
231
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:609)
|
|
232
232
|
value =
|
|
233
233
|
try
|
|
234
234
|
(overrideConverter
|
|
@@ -236,89 +236,89 @@ open class Property: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
236
236
|
: jsCallable(valueConverter, "valueConverter")(jsLenientString(value)))
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
239
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:613)
|
|
240
240
|
let oldValue: Any? = try ((jsHasKey(__this, key.key) ? jsGet(__this, key.key) : defaultValue))
|
|
241
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
241
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:614)
|
|
242
242
|
let changed: Bool =
|
|
243
243
|
try
|
|
244
244
|
(jsTruthy(equalityComparer)
|
|
245
245
|
? !(jsCallable(equalityComparer, "equalityComparer")(oldValue, value))
|
|
246
246
|
: !jsStrictEquals(oldValue, value))
|
|
247
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
247
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:616)
|
|
248
248
|
if (wrapped ?? false) || changed {
|
|
249
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
249
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:617)
|
|
250
250
|
if jsTruthy(affectsLayout as Any?) {
|
|
251
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
251
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:618)
|
|
252
252
|
try jsCallMethod(__this, "requestLayout")
|
|
253
253
|
}
|
|
254
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
254
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:621)
|
|
255
255
|
if reset {
|
|
256
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
256
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:622)
|
|
257
257
|
_ = try jsDelete(__this, key.key)
|
|
258
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
258
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:623)
|
|
259
259
|
if jsTruthy(valueChanged) {
|
|
260
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
260
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:624)
|
|
261
261
|
try jsCallable(valueChanged, "valueChanged")(__this, oldValue, value)
|
|
262
262
|
}
|
|
263
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
263
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:626)
|
|
264
264
|
if try jsTruthy(jsGet(__this, setNative.key)) {
|
|
265
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
265
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:627)
|
|
266
266
|
if try jsTruthy(jsGet(__this, "_suspendNativeUpdatesCount")) {
|
|
267
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
267
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:628)
|
|
268
268
|
if try jsTruthy(jsGet(__this, "_suspendedUpdates")) {
|
|
269
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
269
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:629)
|
|
270
270
|
try jsUnwrap(
|
|
271
271
|
jsRecordOf(jsGet(__this, "_suspendedUpdates"), as: JSRecord<Any?>.self) {
|
|
272
272
|
$0
|
|
273
273
|
}, setting: "propertyName")[propertyName] = property
|
|
274
274
|
}
|
|
275
275
|
} else if jsHasKey(__this, defaultValueKey.key) {
|
|
276
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
276
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:632)
|
|
277
277
|
_ = try jsCallMethod(__this, setNative.key, jsGet(__this, defaultValueKey.key))
|
|
278
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
278
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:633)
|
|
279
279
|
_ = try jsDelete(__this, defaultValueKey.key)
|
|
280
280
|
} else {
|
|
281
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
281
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:635)
|
|
282
282
|
_ = try jsCallMethod(__this, setNative.key, defaultValue)
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
} else {
|
|
286
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
286
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:639)
|
|
287
287
|
try jsSet(__this, key.key, value)
|
|
288
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
288
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:640)
|
|
289
289
|
if jsTruthy(valueChanged) {
|
|
290
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
290
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:641)
|
|
291
291
|
try jsCallable(valueChanged, "valueChanged")(__this, oldValue, value)
|
|
292
292
|
}
|
|
293
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
293
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:643)
|
|
294
294
|
if try jsTruthy(jsGet(__this, setNative.key)) {
|
|
295
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
295
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:644)
|
|
296
296
|
if try jsTruthy(jsGet(__this, "_suspendNativeUpdatesCount")) {
|
|
297
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
297
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:645)
|
|
298
298
|
if try jsTruthy(jsGet(__this, "_suspendedUpdates")) {
|
|
299
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
299
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:646)
|
|
300
300
|
try jsUnwrap(
|
|
301
301
|
jsRecordOf(jsGet(__this, "_suspendedUpdates"), as: JSRecord<Any?>.self) {
|
|
302
302
|
$0
|
|
303
303
|
}, setting: "propertyName")[propertyName] = property
|
|
304
304
|
}
|
|
305
305
|
} else {
|
|
306
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
306
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:649)
|
|
307
307
|
if !jsHasKey(__this, defaultValueKey.key) {
|
|
308
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
308
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:650)
|
|
309
309
|
try jsSet(
|
|
310
310
|
__this, defaultValueKey.key,
|
|
311
311
|
(jsTruthy(jsGet(__this, getDefault.key))
|
|
312
312
|
? jsCallMethod(__this, getDefault.key) : defaultValue))
|
|
313
313
|
}
|
|
314
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
314
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:652)
|
|
315
315
|
_ = try jsCallMethod(__this, setNative.key, value)
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
319
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:657)
|
|
320
320
|
if try jsLenientBool(jsCallMethod(__this, "hasListeners", eventName)) {
|
|
321
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
321
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:658)
|
|
322
322
|
try jsCallMethod(
|
|
323
323
|
__this, "notify",
|
|
324
324
|
JSObject([
|
|
@@ -327,14 +327,14 @@ open class Property: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
327
327
|
("oldValue", oldValue as Any?), ("origin", ((origin) ?? "script")),
|
|
328
328
|
]))
|
|
329
329
|
}
|
|
330
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
330
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:668)
|
|
331
331
|
if try jsTruthy(jsGet(__this, "domNode")) {
|
|
332
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
332
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:669)
|
|
333
333
|
if reset {
|
|
334
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
334
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:670)
|
|
335
335
|
_ = try jsCallMethod(jsGet(__this, "domNode"), "attributeRemoved", propertyName)
|
|
336
336
|
} else {
|
|
337
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
337
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:672)
|
|
338
338
|
_ = try jsCallMethod(jsGet(__this, "domNode"), "attributeModified", propertyName, value)
|
|
339
339
|
}
|
|
340
340
|
}
|
|
@@ -343,44 +343,44 @@ open class Property: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
343
343
|
return nil
|
|
344
344
|
} as JSMethod)
|
|
345
345
|
if jsMadeBits0 & (1 << 4) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 4, "set") }
|
|
346
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
346
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:678)
|
|
347
347
|
self.get =
|
|
348
348
|
({ (__this: Any?, __a: [Any?]) throws -> Any? in
|
|
349
349
|
return try { () throws -> Any? in
|
|
350
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
350
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:679)
|
|
351
351
|
return try ((jsHasKey(__this, key.key) ? jsGet(__this, key.key) : defaultValue))
|
|
352
352
|
}()
|
|
353
353
|
} as JSMethod)
|
|
354
354
|
if jsMadeBits0 & (1 << 3) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 3, "get") }
|
|
355
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
355
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:682)
|
|
356
356
|
self.nativeValueChange = { (owner: Any?, value: Any?) throws -> Void in
|
|
357
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
357
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:683)
|
|
358
358
|
let oldValue: Any? = try ((jsHasKey(owner, key.key) ? jsGet(owner, key.key) : defaultValue))
|
|
359
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
359
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:684)
|
|
360
360
|
let changed: Bool =
|
|
361
361
|
try
|
|
362
362
|
(jsTruthy(equalityComparer)
|
|
363
363
|
? !(jsCallable(equalityComparer, "equalityComparer")(oldValue, value))
|
|
364
364
|
: !jsStrictEquals(oldValue, value))
|
|
365
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
365
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:685)
|
|
366
366
|
if changed {
|
|
367
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
367
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:686)
|
|
368
368
|
try jsSet(owner, key.key, value)
|
|
369
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
369
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:687)
|
|
370
370
|
if jsTruthy(valueChanged) {
|
|
371
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
371
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:688)
|
|
372
372
|
try jsCallable(valueChanged, "valueChanged")(owner, oldValue, value)
|
|
373
373
|
}
|
|
374
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
374
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:691)
|
|
375
375
|
if try (jsTruthy(jsGet(owner, "nativeViewProtected")) && !jsHasKey(owner, defaultValueKey.key)) {
|
|
376
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
376
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:692)
|
|
377
377
|
try jsSet(
|
|
378
378
|
owner, defaultValueKey.key,
|
|
379
379
|
(jsTruthy(jsGet(owner, getDefault.key)) ? jsCallMethod(owner, getDefault.key) : defaultValue))
|
|
380
380
|
}
|
|
381
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
381
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:695)
|
|
382
382
|
if try jsLenientBool(jsCallMethod(owner, "hasListeners", eventName)) {
|
|
383
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
383
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:696)
|
|
384
384
|
try jsCallMethod(
|
|
385
385
|
owner, "notify",
|
|
386
386
|
JSObject([
|
|
@@ -388,20 +388,20 @@ open class Property: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
388
388
|
("value", value as Any?), ("oldValue", oldValue as Any?), ("origin", "native"),
|
|
389
389
|
]))
|
|
390
390
|
}
|
|
391
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
391
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:706)
|
|
392
392
|
if jsTruthy(affectsLayout as Any?) {
|
|
393
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
393
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:707)
|
|
394
394
|
try jsCallMethod(owner, "requestLayout")
|
|
395
395
|
}
|
|
396
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
396
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:710)
|
|
397
397
|
if try jsTruthy(jsGet(owner, "domNode")) {
|
|
398
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
398
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:711)
|
|
399
399
|
_ = try jsCallMethod(jsGet(owner, "domNode"), "attributeModified", propertyName, value)
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "nativeValueChange") }
|
|
404
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
404
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:716)
|
|
405
405
|
Core_ui_core_properties_index.symbolPropertyMap[jsKey: key.key] = self
|
|
406
406
|
}
|
|
407
407
|
#sourceLocation()
|
|
@@ -414,19 +414,19 @@ open class Property: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
414
414
|
open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
|
|
415
415
|
open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
|
|
416
416
|
open func register(_ cls: Any?) throws {
|
|
417
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
417
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:720)
|
|
418
418
|
if self.registered {
|
|
419
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
419
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:721)
|
|
420
420
|
throw JSException(value: JSError("Property \(self.name) already registered."))
|
|
421
421
|
}
|
|
422
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
422
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:723)
|
|
423
423
|
self.registered = true
|
|
424
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
424
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:724)
|
|
425
425
|
_ = try jsDefineProperty(jsGet(cls, "prototype"), self.name, self)
|
|
426
426
|
}
|
|
427
427
|
#sourceLocation()
|
|
428
428
|
open func isSet(_ instance: Any?) -> Bool {
|
|
429
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
429
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:728)
|
|
430
430
|
return jsHasKey(instance, self.key.key)
|
|
431
431
|
}
|
|
432
432
|
#sourceLocation()
|
|
@@ -621,199 +621,199 @@ open class CoercibleProperty: Property {
|
|
|
621
621
|
}
|
|
622
622
|
public override init(_ options: Any?) throws {
|
|
623
623
|
try super.init(options)
|
|
624
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
624
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:739)
|
|
625
625
|
let propertyName: String = try jsConvertedString(jsGet(options, "name"))
|
|
626
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
626
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:740)
|
|
627
627
|
let key: JSSymbol = self.key
|
|
628
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
628
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:741)
|
|
629
629
|
let getDefault: JSSymbol = self.getDefault
|
|
630
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
630
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:742)
|
|
631
631
|
let setNative: JSSymbol = self.setNative
|
|
632
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
632
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:743)
|
|
633
633
|
let defaultValueKey: JSSymbol = self.defaultValueKey
|
|
634
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
634
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:744)
|
|
635
635
|
let defaultValue: Any? = self.defaultValue
|
|
636
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
636
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:746)
|
|
637
637
|
let coerceKey: JSSymbol = jsSymbol(propertyName + ":coerceKey")
|
|
638
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
638
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:748)
|
|
639
639
|
let eventName: String = propertyName + "Change"
|
|
640
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
640
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:749)
|
|
641
641
|
var affectsLayout: Bool? = (try jsGet(options, "affectsLayout") as? Bool)
|
|
642
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
642
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:750)
|
|
643
643
|
var equalityComparer: ((Any?, Any?) throws -> Bool)? = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
|
|
644
644
|
jsGet(options, "equalityComparer"))
|
|
645
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
645
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:751)
|
|
646
646
|
var valueChanged: ((Any?, Any?, Any?) throws -> Void)? =
|
|
647
647
|
try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(jsGet(options, "valueChanged"))
|
|
648
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
648
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:752)
|
|
649
649
|
var valueConverter: ((String) throws -> Any?)? = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(
|
|
650
650
|
jsGet(options, "valueConverter"))
|
|
651
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
651
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:753)
|
|
652
652
|
var coerceCallback: ((Any?, Any?) throws -> Any?)? = try FunctionCell_AnyOpt_AnyOpt_to_AnyOpt.fromScriptOrNil(
|
|
653
653
|
jsGet(options, "coerceValue"))
|
|
654
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
654
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:754)
|
|
655
655
|
var overrideConverter: Bool = false
|
|
656
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
656
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:755)
|
|
657
657
|
let property: CoercibleProperty = self
|
|
658
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
658
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:757)
|
|
659
659
|
self.overrideHandlers = { (options: Any?) throws -> Void in
|
|
660
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
660
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:758)
|
|
661
661
|
if try !jsStringEquals(jsTypeof(jsGet(options, "equalityComparer")), "undefined") {
|
|
662
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
662
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:759)
|
|
663
663
|
equalityComparer = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
|
|
664
664
|
jsGet(options, "equalityComparer"))
|
|
665
665
|
}
|
|
666
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
666
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:761)
|
|
667
667
|
if try !jsStringEquals(jsTypeof(jsGet(options, "affectsLayout")), "undefined") {
|
|
668
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
668
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:762)
|
|
669
669
|
affectsLayout = try jsConvertedBool(jsGet(options, "affectsLayout"))
|
|
670
670
|
}
|
|
671
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
671
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:764)
|
|
672
672
|
if try !jsStringEquals(jsTypeof(jsGet(options, "valueChanged")), "undefined") {
|
|
673
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
673
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:765)
|
|
674
674
|
valueChanged = try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(
|
|
675
675
|
jsGet(options, "valueChanged"))
|
|
676
676
|
}
|
|
677
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
677
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:767)
|
|
678
678
|
if try !jsStringEquals(jsTypeof(jsGet(options, "valueConverter")), "undefined") {
|
|
679
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
679
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:768)
|
|
680
680
|
valueConverter = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter"))
|
|
681
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
681
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:769)
|
|
682
682
|
overrideConverter = true
|
|
683
683
|
}
|
|
684
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
684
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:771)
|
|
685
685
|
if try !jsStringEquals(jsTypeof(jsGet(options, "coerceValue")), "undefined") {
|
|
686
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
686
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:772)
|
|
687
687
|
coerceCallback = try FunctionCell_AnyOpt_AnyOpt_to_AnyOpt.fromScriptOrNil(jsGet(options, "coerceValue"))
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
690
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:776)
|
|
691
691
|
self.coerce = { (target: Any?) throws -> Void in
|
|
692
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
692
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:777)
|
|
693
693
|
let originalValue: Any? =
|
|
694
694
|
try ((jsHasKey(target, coerceKey.key) ? jsGet(target, coerceKey.key) : defaultValue))
|
|
695
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
695
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:779)
|
|
696
696
|
try jsSet(target, propertyName, originalValue)
|
|
697
697
|
}
|
|
698
698
|
if jsMadeBits0 & (1 << 5) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 5, "coerce") }
|
|
699
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
699
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:782)
|
|
700
700
|
self.set =
|
|
701
701
|
({ (__this: Any?, __a: [Any?]) throws -> Any? in
|
|
702
702
|
let boxedValue: Any? = jsArg(__a, 0)
|
|
703
703
|
try { () throws -> Void in
|
|
704
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
704
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:783)
|
|
705
705
|
let reset: Bool = Core_ui_core_properties_property_shared.isResetValue(boxedValue)
|
|
706
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
706
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:784)
|
|
707
707
|
var value: Any? = nil
|
|
708
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
708
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:785)
|
|
709
709
|
var wrapped: Bool? = nil
|
|
710
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
710
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:786)
|
|
711
711
|
if reset {
|
|
712
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
712
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:787)
|
|
713
713
|
value = defaultValue
|
|
714
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
714
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:788)
|
|
715
715
|
_ = try jsDelete(__this, coerceKey.key)
|
|
716
716
|
} else {
|
|
717
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
717
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:790)
|
|
718
718
|
wrapped = try jsConvertedBoolOrNil(
|
|
719
719
|
({ () throws -> Any? in
|
|
720
|
-
let
|
|
721
|
-
return jsTruthy(
|
|
720
|
+
let __v_3 = boxedValue
|
|
721
|
+
return jsTruthy(__v_3) ? try jsGet(boxedValue, "wrapped") : __v_3
|
|
722
722
|
}()))
|
|
723
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
723
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:791)
|
|
724
724
|
value = try (jsTruthy(wrapped as Any?) ? WrappedValue.unwrap(boxedValue) : boxedValue)
|
|
725
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
725
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:793)
|
|
726
726
|
if jsTruthy(valueConverter) && jsStringEquals(jsTypeof(value), "string") {
|
|
727
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
727
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:794)
|
|
728
728
|
value =
|
|
729
729
|
try
|
|
730
730
|
(overrideConverter
|
|
731
731
|
? jsUnwrap(valueConverter, "call")(jsLenientString(value))
|
|
732
732
|
: jsCallable(valueConverter, "valueConverter")(jsLenientString(value)))
|
|
733
733
|
}
|
|
734
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
734
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:797)
|
|
735
735
|
try jsSet(__this, coerceKey.key, value)
|
|
736
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
736
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:798)
|
|
737
737
|
value = try jsCallable(coerceCallback, "coerceCallback")(__this, value)
|
|
738
738
|
}
|
|
739
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
739
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:801)
|
|
740
740
|
let oldValue: Any? = try (jsHasKey(__this, key.key) ? jsGet(__this, key.key) : defaultValue)
|
|
741
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
741
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:802)
|
|
742
742
|
let changed: Bool =
|
|
743
743
|
try
|
|
744
744
|
(jsTruthy(equalityComparer)
|
|
745
745
|
? !(jsCallable(equalityComparer, "equalityComparer")(oldValue, value))
|
|
746
746
|
: !jsStrictEquals(oldValue, value))
|
|
747
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
747
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:804)
|
|
748
748
|
if (wrapped ?? false) || changed {
|
|
749
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
749
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:805)
|
|
750
750
|
if reset {
|
|
751
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
751
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:806)
|
|
752
752
|
_ = try jsDelete(__this, key.key)
|
|
753
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
753
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:807)
|
|
754
754
|
if jsTruthy(valueChanged) {
|
|
755
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
755
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:808)
|
|
756
756
|
try jsCallable(valueChanged, "valueChanged")(__this, oldValue, value)
|
|
757
757
|
}
|
|
758
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
758
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:811)
|
|
759
759
|
if try jsTruthy(jsGet(__this, setNative.key)) {
|
|
760
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
760
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:812)
|
|
761
761
|
if try jsTruthy(jsGet(__this, "_suspendNativeUpdatesCount")) {
|
|
762
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
762
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:813)
|
|
763
763
|
if try jsTruthy(jsGet(__this, "_suspendedUpdates")) {
|
|
764
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
764
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:814)
|
|
765
765
|
try jsUnwrap(
|
|
766
766
|
jsRecordOf(jsGet(__this, "_suspendedUpdates"), as: JSRecord<Any?>.self) {
|
|
767
767
|
$0
|
|
768
768
|
}, setting: "propertyName")[propertyName] = property
|
|
769
769
|
}
|
|
770
770
|
} else if jsHasKey(__this, defaultValueKey.key) {
|
|
771
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
771
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:817)
|
|
772
772
|
_ = try jsCallMethod(__this, setNative.key, jsGet(__this, defaultValueKey.key))
|
|
773
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
773
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:818)
|
|
774
774
|
_ = try jsDelete(__this, defaultValueKey.key)
|
|
775
775
|
} else {
|
|
776
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
776
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:820)
|
|
777
777
|
_ = try jsCallMethod(__this, setNative.key, defaultValue)
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
} else {
|
|
781
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
781
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:824)
|
|
782
782
|
try jsSet(__this, key.key, value)
|
|
783
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
783
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:825)
|
|
784
784
|
if jsTruthy(valueChanged) {
|
|
785
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
785
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:826)
|
|
786
786
|
try jsCallable(valueChanged, "valueChanged")(__this, oldValue, value)
|
|
787
787
|
}
|
|
788
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
788
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:829)
|
|
789
789
|
if try jsTruthy(jsGet(__this, setNative.key)) {
|
|
790
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
790
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:830)
|
|
791
791
|
if try jsTruthy(jsGet(__this, "_suspendNativeUpdatesCount")) {
|
|
792
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
792
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:831)
|
|
793
793
|
if try jsTruthy(jsGet(__this, "_suspendedUpdates")) {
|
|
794
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
794
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:832)
|
|
795
795
|
try jsUnwrap(
|
|
796
796
|
jsRecordOf(jsGet(__this, "_suspendedUpdates"), as: JSRecord<Any?>.self) {
|
|
797
797
|
$0
|
|
798
798
|
}, setting: "propertyName")[propertyName] = property
|
|
799
799
|
}
|
|
800
800
|
} else {
|
|
801
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
801
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:835)
|
|
802
802
|
if !jsHasKey(__this, defaultValueKey.key) {
|
|
803
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
803
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:836)
|
|
804
804
|
try jsSet(
|
|
805
805
|
__this, defaultValueKey.key,
|
|
806
806
|
(jsTruthy(jsGet(__this, getDefault.key))
|
|
807
807
|
? jsCallMethod(__this, getDefault.key) : defaultValue))
|
|
808
808
|
}
|
|
809
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
809
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:838)
|
|
810
810
|
_ = try jsCallMethod(__this, setNative.key, value)
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
814
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:843)
|
|
815
815
|
if try jsLenientBool(jsCallMethod(__this, "hasListeners", eventName)) {
|
|
816
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
816
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:844)
|
|
817
817
|
try jsCallMethod(
|
|
818
818
|
__this, "notify",
|
|
819
819
|
JSObject([
|
|
@@ -822,19 +822,19 @@ open class CoercibleProperty: Property {
|
|
|
822
822
|
("oldValue", oldValue as Any?), ("origin", "script"),
|
|
823
823
|
]))
|
|
824
824
|
}
|
|
825
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
825
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:854)
|
|
826
826
|
if jsTruthy(affectsLayout as Any?) {
|
|
827
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
827
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:855)
|
|
828
828
|
try jsCallMethod(__this, "requestLayout")
|
|
829
829
|
}
|
|
830
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
830
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:858)
|
|
831
831
|
if try jsTruthy(jsGet(__this, "domNode")) {
|
|
832
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
832
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:859)
|
|
833
833
|
if reset {
|
|
834
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
834
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:860)
|
|
835
835
|
_ = try jsCallMethod(jsGet(__this, "domNode"), "attributeRemoved", propertyName)
|
|
836
836
|
} else {
|
|
837
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
837
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:862)
|
|
838
838
|
_ = try jsCallMethod(jsGet(__this, "domNode"), "attributeModified", propertyName, value)
|
|
839
839
|
}
|
|
840
840
|
}
|
|
@@ -890,102 +890,102 @@ open class InheritedProperty: Property {
|
|
|
890
890
|
public override init(_ options: Any?) throws {
|
|
891
891
|
try super.init(options)
|
|
892
892
|
var setInheritedValue: Any? = nil
|
|
893
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
893
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:876)
|
|
894
894
|
let name: String = try jsConvertedString(jsGet(options, "name"))
|
|
895
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
895
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:877)
|
|
896
896
|
let key: JSSymbol = self.key
|
|
897
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
897
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:878)
|
|
898
898
|
let defaultValue: Any? = try jsGet(options, "defaultValue")
|
|
899
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
899
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:880)
|
|
900
900
|
let sourceKey: JSSymbol = jsSymbol(name + ":valueSourceKey")
|
|
901
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
901
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:881)
|
|
902
902
|
self.sourceKey = sourceKey
|
|
903
903
|
if jsMadeBits0 & (1 << 5) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 5, "sourceKey") }
|
|
904
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
904
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:883)
|
|
905
905
|
let setBase: Any? = self.set
|
|
906
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
906
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:884)
|
|
907
907
|
var setFunc: ((Double) throws -> Any?)?
|
|
908
908
|
setFunc = { (valueSource: Double) -> Any? in
|
|
909
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
909
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:885)
|
|
910
910
|
return
|
|
911
911
|
({ (__this: Any?, __a: [Any?]) throws -> Any? in
|
|
912
912
|
let value: Any? = jsArg(__a, 0)
|
|
913
913
|
try { () throws -> Void in
|
|
914
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
914
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:886)
|
|
915
915
|
let that: Any? = __this
|
|
916
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
916
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:888)
|
|
917
917
|
var unboxedValue: Any? = nil
|
|
918
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
918
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:889)
|
|
919
919
|
var newValueSource: Double? = nil
|
|
920
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
920
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:891)
|
|
921
921
|
if Core_ui_core_properties_property_shared.isResetValue(value) {
|
|
922
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
922
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:892)
|
|
923
923
|
let parent: ViewBase? = try jsCast(jsGet(that, "parent"), ViewBase.self)
|
|
924
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
924
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:895)
|
|
925
925
|
if try
|
|
926
926
|
((!jsStrictEquals(value, "initial") && jsTruthy(parent))
|
|
927
927
|
&& !jsStrictEquals(
|
|
928
928
|
jsUnwrap(parent, "sourceKey")[jsKey: sourceKey.key], ValueSource.Default))
|
|
929
929
|
{
|
|
930
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
930
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:896)
|
|
931
931
|
unboxedValue = try jsUnwrap(parent, "name")[jsKey: name]
|
|
932
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
932
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:897)
|
|
933
933
|
newValueSource = ValueSource.Inherited
|
|
934
934
|
} else {
|
|
935
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
935
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:899)
|
|
936
936
|
unboxedValue = defaultValue
|
|
937
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
937
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:900)
|
|
938
938
|
newValueSource = ValueSource.Default
|
|
939
939
|
}
|
|
940
940
|
} else {
|
|
941
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
941
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:904)
|
|
942
942
|
unboxedValue = value
|
|
943
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
943
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:905)
|
|
944
944
|
newValueSource = valueSource
|
|
945
945
|
}
|
|
946
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
946
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:909)
|
|
947
947
|
let currentValue: Any? = try jsGet(that, key.key)
|
|
948
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
948
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:910)
|
|
949
949
|
_ = try jsCallMethod(
|
|
950
950
|
setBase, "call", that, unboxedValue,
|
|
951
951
|
(jsLenientNumberEquals(valueSource, ValueSource.Local) ? "script" : "inherited"))
|
|
952
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
952
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:912)
|
|
953
953
|
let newValue: Any? = try jsGet(that, key.key)
|
|
954
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
954
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:913)
|
|
955
955
|
try jsSet(that, sourceKey.key, (newValueSource as Any?))
|
|
956
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
956
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:915)
|
|
957
957
|
if !jsStrictEquals(currentValue, newValue) {
|
|
958
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
958
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:916)
|
|
959
959
|
let reset: Bool = jsLenientNumberEquals((newValueSource ?? .nan), ValueSource.Default)
|
|
960
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
960
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:917)
|
|
961
961
|
try jsCallMethod(
|
|
962
962
|
that, "eachChild",
|
|
963
963
|
FunctionCell_ViewBaseOpt_to_Bool.scriptOrNil(
|
|
964
964
|
"", 1,
|
|
965
965
|
{ (child: ViewBase?) throws -> Bool in
|
|
966
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
966
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:918)
|
|
967
967
|
let childValueSource: Any? = try
|
|
968
968
|
({ () throws -> Any? in
|
|
969
|
-
let
|
|
970
|
-
return jsTruthy(
|
|
969
|
+
let __v_4 = try jsUnwrap(child, "sourceKey")[jsKey: sourceKey.key]
|
|
970
|
+
return jsTruthy(__v_4) ? __v_4 : ValueSource.Default
|
|
971
971
|
}())
|
|
972
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
972
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:919)
|
|
973
973
|
if reset {
|
|
974
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
974
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:920)
|
|
975
975
|
if jsStrictEquals(childValueSource, ValueSource.Inherited) {
|
|
976
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
976
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:921)
|
|
977
977
|
_ = try jsUnwrap(setFunc, "call")(
|
|
978
978
|
try jsConvertedNumber(
|
|
979
979
|
Core_ui_core_properties_property_shared.unsetValue))
|
|
980
980
|
}
|
|
981
981
|
} else {
|
|
982
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
982
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:924)
|
|
983
983
|
if try jsLessOrEqualThrowing(childValueSource, ValueSource.Inherited) {
|
|
984
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
984
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:925)
|
|
985
985
|
_ = try jsCallMethod(setInheritedValue, "call", child, newValue)
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
988
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:929)
|
|
989
989
|
return true
|
|
990
990
|
}))
|
|
991
991
|
}
|
|
@@ -993,14 +993,14 @@ open class InheritedProperty: Property {
|
|
|
993
993
|
return nil
|
|
994
994
|
} as JSMethod)
|
|
995
995
|
}
|
|
996
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
996
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:934)
|
|
997
997
|
setInheritedValue = try jsCallable(setFunc, "setFunc")(ValueSource.Inherited)
|
|
998
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
998
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:935)
|
|
999
999
|
self.setInheritedValue = setInheritedValue
|
|
1000
1000
|
if jsMadeBits0 & (1 << 6) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 6, "setInheritedValue") }
|
|
1001
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1001
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:937)
|
|
1002
1002
|
self.set = try jsCallable(setFunc, "setFunc")(ValueSource.Local)
|
|
1003
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1003
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:939)
|
|
1004
1004
|
_ = try jsUnwrap(Core_ui_core_properties_index.inheritableProperties, "push").push(self)
|
|
1005
1005
|
}
|
|
1006
1006
|
#sourceLocation()
|
|
@@ -1107,53 +1107,53 @@ open class CssProperty: JSDynamic, JSExpando, JSConstructibleType, JSKeysMade, J
|
|
|
1107
1107
|
var valueConverter: ((String) throws -> Any?)!
|
|
1108
1108
|
var overrideConverter: Bool = false
|
|
1109
1109
|
var property: CssProperty!
|
|
1110
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1110
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1019)
|
|
1111
1111
|
func setLocalValue(_ this: Any?, _ newValue: Any?) throws {
|
|
1112
1112
|
var newValue = newValue
|
|
1113
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1113
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1020)
|
|
1114
1114
|
let view: ViewBase? = try jsUnwrap(jsGet(this, "viewRef") as? JSWeakRef<ViewBase>, "get").get()
|
|
1115
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1115
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1021)
|
|
1116
1116
|
if !jsTruthy(view as Any?) {
|
|
1117
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1117
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1022)
|
|
1118
1118
|
try NativeScriptKit.Trace.write(
|
|
1119
1119
|
"\(jsToStringThrowing(newValue)) not set to view because \".viewRef\" is cleared",
|
|
1120
1120
|
NativeScriptKit.Trace.categories.Style, NativeScriptKit.Trace.messageType.warn)
|
|
1121
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1121
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1024)
|
|
1122
1122
|
return
|
|
1123
1123
|
}
|
|
1124
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1124
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1027)
|
|
1125
1125
|
try jsPostUpdate(this, "_localValueVersion", +1)
|
|
1126
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1126
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1029)
|
|
1127
1127
|
var reset: Bool =
|
|
1128
1128
|
Core_ui_core_properties_property_shared.isResetValue(newValue) || jsStrictEquals(newValue, "")
|
|
1129
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1129
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1030)
|
|
1130
1130
|
var valueSource: Double = ValueSource.Local
|
|
1131
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1131
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1031)
|
|
1132
1132
|
var value: Any? = nil
|
|
1133
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1133
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1033)
|
|
1134
1134
|
if reset {
|
|
1135
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1135
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1034)
|
|
1136
1136
|
let cssValue: Any? = try Core_ui_core_properties_index.cascadedCssValue(view, property.cssLocalName)
|
|
1137
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1137
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1035)
|
|
1138
1138
|
if !jsStrictEquals(cssValue, nil) {
|
|
1139
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1139
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1036)
|
|
1140
1140
|
newValue = cssValue
|
|
1141
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1141
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1037)
|
|
1142
1142
|
valueSource = ValueSource.Css
|
|
1143
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1143
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1038)
|
|
1144
1144
|
reset = false
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1147
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1042)
|
|
1148
1148
|
if reset {
|
|
1149
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1149
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1043)
|
|
1150
1150
|
value = defaultValue
|
|
1151
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1151
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1044)
|
|
1152
1152
|
_ = try jsDelete(this, sourceKey.key)
|
|
1153
1153
|
} else {
|
|
1154
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1154
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1046)
|
|
1155
1155
|
try jsSet(this, sourceKey.key, valueSource)
|
|
1156
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1156
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1047)
|
|
1157
1157
|
value =
|
|
1158
1158
|
try
|
|
1159
1159
|
((jsTruthy(valueConverter) && jsStringEquals(jsTypeof(newValue), "string"))
|
|
@@ -1161,82 +1161,82 @@ open class CssProperty: JSDynamic, JSExpando, JSConstructibleType, JSKeysMade, J
|
|
|
1161
1161
|
? jsUnwrap(valueConverter, "call")(jsLenientString(newValue))
|
|
1162
1162
|
: jsCallable(valueConverter, "valueConverter")(jsLenientString(newValue)))) : newValue)
|
|
1163
1163
|
}
|
|
1164
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1164
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1050)
|
|
1165
1165
|
let oldValue: Any? = try ((jsHasKey(this, key.key) ? jsGet(this, key.key) : defaultValue))
|
|
1166
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1166
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1051)
|
|
1167
1167
|
let changed: Bool =
|
|
1168
1168
|
try
|
|
1169
1169
|
(jsTruthy(equalityComparer)
|
|
1170
1170
|
? !(jsCallable(equalityComparer, "equalityComparer")(oldValue, value))
|
|
1171
1171
|
: !jsStrictEquals(oldValue, value))
|
|
1172
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1172
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1053)
|
|
1173
1173
|
if changed {
|
|
1174
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1174
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1054)
|
|
1175
1175
|
if reset {
|
|
1176
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1176
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1055)
|
|
1177
1177
|
_ = try jsDelete(this, key.key)
|
|
1178
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1178
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1056)
|
|
1179
1179
|
if jsTruthy(valueChanged) {
|
|
1180
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1180
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1057)
|
|
1181
1181
|
try jsCallable(valueChanged, "valueChanged")(this, oldValue, value)
|
|
1182
1182
|
}
|
|
1183
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1183
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1060)
|
|
1184
1184
|
if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
|
|
1185
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1185
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1061)
|
|
1186
1186
|
if try jsTruthy(jsUnwrap(view, "_suspendNativeUpdatesCount")._suspendNativeUpdatesCount) {
|
|
1187
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1187
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1062)
|
|
1188
1188
|
if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
|
|
1189
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1189
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1063)
|
|
1190
1190
|
try jsUnwrap(
|
|
1191
1191
|
jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates, setting: "propertyName")[
|
|
1192
1192
|
propertyName] = property
|
|
1193
1193
|
}
|
|
1194
1194
|
} else if jsHasKey(this, defaultValueKey.key) {
|
|
1195
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1195
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1066)
|
|
1196
1196
|
_ = try jsCallMethod((view as Any?), setNative.key, jsGet(this, defaultValueKey.key))
|
|
1197
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1197
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1067)
|
|
1198
1198
|
_ = try jsDelete(this, defaultValueKey.key)
|
|
1199
1199
|
} else {
|
|
1200
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1200
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1069)
|
|
1201
1201
|
_ = try jsCallMethod((view as Any?), setNative.key, defaultValue)
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
1204
|
} else {
|
|
1205
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1205
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1073)
|
|
1206
1206
|
try jsSet(this, key.key, value)
|
|
1207
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1207
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1074)
|
|
1208
1208
|
if jsTruthy(valueChanged) {
|
|
1209
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1209
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1075)
|
|
1210
1210
|
try jsCallable(valueChanged, "valueChanged")(this, oldValue, value)
|
|
1211
1211
|
}
|
|
1212
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1212
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1078)
|
|
1213
1213
|
if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
|
|
1214
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1214
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1079)
|
|
1215
1215
|
if try jsTruthy(jsUnwrap(view, "_suspendNativeUpdatesCount")._suspendNativeUpdatesCount) {
|
|
1216
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1216
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1080)
|
|
1217
1217
|
if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
|
|
1218
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1218
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1081)
|
|
1219
1219
|
try jsUnwrap(
|
|
1220
1220
|
jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates, setting: "propertyName")[
|
|
1221
1221
|
propertyName] = property
|
|
1222
1222
|
}
|
|
1223
1223
|
} else {
|
|
1224
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1224
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1084)
|
|
1225
1225
|
if !jsHasKey(this, defaultValueKey.key) {
|
|
1226
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1226
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1085)
|
|
1227
1227
|
try jsSet(
|
|
1228
1228
|
this, defaultValueKey.key,
|
|
1229
1229
|
(jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
|
|
1230
1230
|
? jsCallMethod((view as Any?), getDefault.key) : defaultValue))
|
|
1231
1231
|
}
|
|
1232
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1232
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1087)
|
|
1233
1233
|
_ = try jsCallMethod((view as Any?), setNative.key, value)
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1237
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1092)
|
|
1238
1238
|
if try jsLenientBool(jsCallMethod(this, "hasListeners", eventName)) {
|
|
1239
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1239
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1093)
|
|
1240
1240
|
try jsCallMethod(
|
|
1241
1241
|
this, "notify",
|
|
1242
1242
|
JSObject([
|
|
@@ -1244,135 +1244,135 @@ open class CssProperty: JSDynamic, JSExpando, JSConstructibleType, JSKeysMade, J
|
|
|
1244
1244
|
("value", value as Any?), ("oldValue", oldValue as Any?), ("origin", "script"),
|
|
1245
1245
|
]))
|
|
1246
1246
|
}
|
|
1247
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1247
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1103)
|
|
1248
1248
|
if affectsLayout {
|
|
1249
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1249
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1104)
|
|
1250
1250
|
try jsUnwrap(view, "requestLayout").requestLayout()
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1254
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1109)
|
|
1255
1255
|
func setCssValue(_ this: Any?, _ newValue: Any?) throws {
|
|
1256
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1256
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1110)
|
|
1257
1257
|
let view: ViewBase? = try jsUnwrap(jsGet(this, "viewRef") as? JSWeakRef<ViewBase>, "get").get()
|
|
1258
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1258
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1111)
|
|
1259
1259
|
if !jsTruthy(view as Any?) {
|
|
1260
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1260
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1112)
|
|
1261
1261
|
try NativeScriptKit.Trace.write(
|
|
1262
1262
|
"\(jsToStringThrowing(newValue)) not set to view because \".viewRef\" is cleared",
|
|
1263
1263
|
NativeScriptKit.Trace.categories.Style, NativeScriptKit.Trace.messageType.warn)
|
|
1264
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1264
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1114)
|
|
1265
1265
|
return
|
|
1266
1266
|
}
|
|
1267
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1267
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1117)
|
|
1268
1268
|
let currentValueSource: Double = try jsConvertedNumber(
|
|
1269
1269
|
({ () throws -> Any? in
|
|
1270
|
-
let
|
|
1271
|
-
return jsTruthy(
|
|
1270
|
+
let __v_5 = try jsGet(this, sourceKey.key)
|
|
1271
|
+
return jsTruthy(__v_5) ? __v_5 : ValueSource.Default
|
|
1272
1272
|
}()))
|
|
1273
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1273
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1120)
|
|
1274
1274
|
if jsLenientNumberEquals(currentValueSource, ValueSource.Local) {
|
|
1275
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1275
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1121)
|
|
1276
1276
|
return
|
|
1277
1277
|
}
|
|
1278
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1278
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1124)
|
|
1279
1279
|
let reset: Bool =
|
|
1280
1280
|
Core_ui_core_properties_property_shared.isResetValue(newValue) || jsStrictEquals(newValue, "")
|
|
1281
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1281
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1125)
|
|
1282
1282
|
var value: Any? = nil
|
|
1283
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1283
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1127)
|
|
1284
1284
|
if reset {
|
|
1285
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1285
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1128)
|
|
1286
1286
|
value = defaultValue
|
|
1287
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1287
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1129)
|
|
1288
1288
|
_ = try jsDelete(this, sourceKey.key)
|
|
1289
1289
|
} else {
|
|
1290
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1290
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1131)
|
|
1291
1291
|
value =
|
|
1292
1292
|
try
|
|
1293
1293
|
((jsTruthy(valueConverter) && jsStringEquals(jsTypeof(newValue), "string"))
|
|
1294
1294
|
? ((overrideConverter
|
|
1295
1295
|
? jsUnwrap(valueConverter, "call")(jsLenientString(newValue))
|
|
1296
1296
|
: jsCallable(valueConverter, "valueConverter")(jsLenientString(newValue)))) : newValue)
|
|
1297
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1297
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1132)
|
|
1298
1298
|
try jsSet(this, sourceKey.key, ValueSource.Css)
|
|
1299
1299
|
}
|
|
1300
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1300
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1135)
|
|
1301
1301
|
let oldValue: Any? = try ((jsHasKey(this, key.key) ? jsGet(this, key.key) : defaultValue))
|
|
1302
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1302
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1136)
|
|
1303
1303
|
let changed: Bool =
|
|
1304
1304
|
try
|
|
1305
1305
|
(jsTruthy(equalityComparer)
|
|
1306
1306
|
? !(jsCallable(equalityComparer, "equalityComparer")(oldValue, value))
|
|
1307
1307
|
: !jsStrictEquals(oldValue, value))
|
|
1308
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1308
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1138)
|
|
1309
1309
|
if changed {
|
|
1310
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1310
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1139)
|
|
1311
1311
|
if reset {
|
|
1312
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1312
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1140)
|
|
1313
1313
|
_ = try jsDelete(this, key.key)
|
|
1314
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1314
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1141)
|
|
1315
1315
|
if jsTruthy(valueChanged) {
|
|
1316
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1316
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1142)
|
|
1317
1317
|
try jsCallable(valueChanged, "valueChanged")(this, oldValue, value)
|
|
1318
1318
|
}
|
|
1319
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1319
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1145)
|
|
1320
1320
|
if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
|
|
1321
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1321
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1146)
|
|
1322
1322
|
if try jsTruthy(jsUnwrap(view, "_suspendNativeUpdatesCount")._suspendNativeUpdatesCount) {
|
|
1323
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1323
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1147)
|
|
1324
1324
|
if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
|
|
1325
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1325
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1148)
|
|
1326
1326
|
try jsUnwrap(
|
|
1327
1327
|
jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates, setting: "propertyName")[
|
|
1328
1328
|
propertyName] = property
|
|
1329
1329
|
}
|
|
1330
1330
|
} else if jsHasKey(this, defaultValueKey.key) {
|
|
1331
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1331
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1151)
|
|
1332
1332
|
_ = try jsCallMethod((view as Any?), setNative.key, jsGet(this, defaultValueKey.key))
|
|
1333
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1333
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1152)
|
|
1334
1334
|
_ = try jsDelete(this, defaultValueKey.key)
|
|
1335
1335
|
} else {
|
|
1336
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1336
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1154)
|
|
1337
1337
|
_ = try jsCallMethod((view as Any?), setNative.key, defaultValue)
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
1340
|
} else {
|
|
1341
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1341
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1158)
|
|
1342
1342
|
try jsSet(this, key.key, value)
|
|
1343
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1343
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1159)
|
|
1344
1344
|
if jsTruthy(valueChanged) {
|
|
1345
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1345
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1160)
|
|
1346
1346
|
try jsCallable(valueChanged, "valueChanged")(this, oldValue, value)
|
|
1347
1347
|
}
|
|
1348
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1348
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1163)
|
|
1349
1349
|
if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
|
|
1350
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1350
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1164)
|
|
1351
1351
|
if try jsTruthy(jsUnwrap(view, "_suspendNativeUpdatesCount")._suspendNativeUpdatesCount) {
|
|
1352
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1352
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1165)
|
|
1353
1353
|
if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
|
|
1354
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1354
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1166)
|
|
1355
1355
|
try jsUnwrap(
|
|
1356
1356
|
jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates, setting: "propertyName")[
|
|
1357
1357
|
propertyName] = property
|
|
1358
1358
|
}
|
|
1359
1359
|
} else {
|
|
1360
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1360
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1169)
|
|
1361
1361
|
if !jsHasKey(this, defaultValueKey.key) {
|
|
1362
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1362
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1170)
|
|
1363
1363
|
try jsSet(
|
|
1364
1364
|
this, defaultValueKey.key,
|
|
1365
1365
|
(jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
|
|
1366
1366
|
? jsCallMethod((view as Any?), getDefault.key) : defaultValue))
|
|
1367
1367
|
}
|
|
1368
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1368
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1172)
|
|
1369
1369
|
_ = try jsCallMethod((view as Any?), setNative.key, value)
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1373
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1177)
|
|
1374
1374
|
if try jsLenientBool(jsCallMethod(this, "hasListeners", eventName)) {
|
|
1375
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1375
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1178)
|
|
1376
1376
|
try jsCallMethod(
|
|
1377
1377
|
this, "notify",
|
|
1378
1378
|
JSObject([
|
|
@@ -1380,97 +1380,97 @@ open class CssProperty: JSDynamic, JSExpando, JSConstructibleType, JSKeysMade, J
|
|
|
1380
1380
|
("value", value as Any?), ("oldValue", oldValue as Any?), ("origin", "css"),
|
|
1381
1381
|
]))
|
|
1382
1382
|
}
|
|
1383
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1383
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1188)
|
|
1384
1384
|
if affectsLayout {
|
|
1385
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1385
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1189)
|
|
1386
1386
|
try jsUnwrap(view, "requestLayout").requestLayout()
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1390
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1194)
|
|
1391
1391
|
func get(_ this: Any?) throws -> Any? {
|
|
1392
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1392
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1195)
|
|
1393
1393
|
return try (jsHasKey(this, key.key) ? jsGet(this, key.key) : defaultValue)
|
|
1394
1394
|
}
|
|
1395
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1395
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:965)
|
|
1396
1396
|
propertyName = try jsConvertedString(jsGet(options, "name"))
|
|
1397
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1397
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:966)
|
|
1398
1398
|
self.name = propertyName
|
|
1399
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1399
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:969)
|
|
1400
1400
|
if try jsTruthy(jsGet(options, "cssName")) {
|
|
1401
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1401
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:970)
|
|
1402
1402
|
_ = try Core_ui_core_properties_index.cssPropertyNames.push(jsConvertedString(jsGet(options, "cssName")))
|
|
1403
1403
|
}
|
|
1404
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1404
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:973)
|
|
1405
1405
|
self.cssName = try "css:\(jsConvertedString(jsGet(options, "cssName")))"
|
|
1406
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1406
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:974)
|
|
1407
1407
|
self.cssLocalName = try jsConvertedString(jsGet(options, "cssName"))
|
|
1408
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1408
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:976)
|
|
1409
1409
|
key = jsSymbol(propertyName + ":propertyKey")
|
|
1410
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1410
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:977)
|
|
1411
1411
|
self.key = key
|
|
1412
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1412
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:979)
|
|
1413
1413
|
sourceKey = jsSymbol(propertyName + ":valueSourceKey")
|
|
1414
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1414
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:980)
|
|
1415
1415
|
self.sourceKey = sourceKey
|
|
1416
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1416
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:982)
|
|
1417
1417
|
getDefault = jsSymbol(propertyName + ":getDefault")
|
|
1418
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1418
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:983)
|
|
1419
1419
|
self.getDefault = getDefault
|
|
1420
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1420
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:985)
|
|
1421
1421
|
setNative = jsSymbol(propertyName + ":setNative")
|
|
1422
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1422
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:986)
|
|
1423
1423
|
self.setNative = setNative
|
|
1424
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1424
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:988)
|
|
1425
1425
|
defaultValueKey = jsSymbol(propertyName + ":nativeDefaultValue")
|
|
1426
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1426
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:989)
|
|
1427
1427
|
self.defaultValueKey = defaultValueKey
|
|
1428
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1428
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:991)
|
|
1429
1429
|
defaultValue = try jsGet(options, "defaultValue")
|
|
1430
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1430
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:992)
|
|
1431
1431
|
self.defaultValue = defaultValue
|
|
1432
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1432
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:994)
|
|
1433
1433
|
eventName = propertyName + "Change"
|
|
1434
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1434
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:995)
|
|
1435
1435
|
affectsLayout = try jsConvertedBool(jsGet(options, "affectsLayout"))
|
|
1436
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1436
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:996)
|
|
1437
1437
|
equalityComparer = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(jsGet(options, "equalityComparer"))
|
|
1438
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1438
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:997)
|
|
1439
1439
|
valueChanged = try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(jsGet(options, "valueChanged"))
|
|
1440
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1440
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:998)
|
|
1441
1441
|
valueConverter = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter"))
|
|
1442
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1442
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:999)
|
|
1443
1443
|
overrideConverter = false
|
|
1444
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1444
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1001)
|
|
1445
1445
|
self.overrideHandlers = { (options: Any?) throws -> Void in
|
|
1446
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1446
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1002)
|
|
1447
1447
|
if try !jsStringEquals(jsTypeof(jsGet(options, "equalityComparer")), "undefined") {
|
|
1448
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1448
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1003)
|
|
1449
1449
|
equalityComparer = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
|
|
1450
1450
|
jsGet(options, "equalityComparer"))
|
|
1451
1451
|
}
|
|
1452
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1452
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1005)
|
|
1453
1453
|
if try !jsStringEquals(jsTypeof(jsGet(options, "affectsLayout")), "undefined") {
|
|
1454
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1454
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1006)
|
|
1455
1455
|
affectsLayout = try jsConvertedBool(jsGet(options, "affectsLayout"))
|
|
1456
1456
|
}
|
|
1457
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1457
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1008)
|
|
1458
1458
|
if try !jsStringEquals(jsTypeof(jsGet(options, "valueChanged")), "undefined") {
|
|
1459
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1459
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1009)
|
|
1460
1460
|
valueChanged = try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(
|
|
1461
1461
|
jsGet(options, "valueChanged"))
|
|
1462
1462
|
}
|
|
1463
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1463
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1011)
|
|
1464
1464
|
if try !jsStringEquals(jsTypeof(jsGet(options, "valueConverter")), "undefined") {
|
|
1465
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1465
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1012)
|
|
1466
1466
|
valueConverter = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter"))
|
|
1467
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1467
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1013)
|
|
1468
1468
|
overrideConverter = true
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1471
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1017)
|
|
1472
1472
|
property = self
|
|
1473
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1473
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1198)
|
|
1474
1474
|
self.cssValueDescriptor = JSObject([
|
|
1475
1475
|
("enumerable", true), ("configurable", true),
|
|
1476
1476
|
("get", ({ (__this: Any?, __a: [Any?]) throws -> Any? in return try get(__this) } as JSMethod)),
|
|
@@ -1483,20 +1483,25 @@ open class CssProperty: JSDynamic, JSExpando, JSConstructibleType, JSKeysMade, J
|
|
|
1483
1483
|
),
|
|
1484
1484
|
])
|
|
1485
1485
|
if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "cssValueDescriptor") }
|
|
1486
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1487
|
-
self.localValueDescriptor = JSObject([
|
|
1486
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1205)
|
|
1487
|
+
self.localValueDescriptor = try JSObject([
|
|
1488
1488
|
("enumerable", true), ("configurable", true),
|
|
1489
1489
|
("get", ({ (__this: Any?, __a: [Any?]) throws -> Any? in return try get(__this) } as JSMethod)),
|
|
1490
1490
|
(
|
|
1491
1491
|
"set",
|
|
1492
|
-
(
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1492
|
+
Core_ui_core_properties_index.localCssExpressionSetter(
|
|
1493
|
+
({ () throws -> String in
|
|
1494
|
+
let __v_6 = try jsLenientString(jsGet(options, "cssName"))
|
|
1495
|
+
return jsTruthy(__v_6) ? jsPresent(__v_6) : propertyName
|
|
1496
|
+
}()),
|
|
1497
|
+
({ (__this: Any?, __a: [Any?]) throws -> Any? in
|
|
1498
|
+
try setLocalValue(__this, jsArg(__a, 0))
|
|
1499
|
+
return nil
|
|
1500
|
+
} as JSMethod))
|
|
1496
1501
|
),
|
|
1497
1502
|
])
|
|
1498
1503
|
if jsMadeBits0 & (1 << 2) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 2, "localValueDescriptor") }
|
|
1499
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1504
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1212)
|
|
1500
1505
|
Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: key.key] = self
|
|
1501
1506
|
}
|
|
1502
1507
|
#sourceLocation()
|
|
@@ -1509,29 +1514,29 @@ open class CssProperty: JSDynamic, JSExpando, JSConstructibleType, JSKeysMade, J
|
|
|
1509
1514
|
open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
|
|
1510
1515
|
open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
|
|
1511
1516
|
open func register(_ cls: Any?) throws {
|
|
1512
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1517
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1216)
|
|
1513
1518
|
if self.registered {
|
|
1514
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1519
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1217)
|
|
1515
1520
|
throw JSException(value: JSError("Property \(self.name) already registered."))
|
|
1516
1521
|
}
|
|
1517
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1522
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1219)
|
|
1518
1523
|
self.registered = true
|
|
1519
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1524
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1220)
|
|
1520
1525
|
_ = try jsDefineProperty(jsGet(cls, "prototype"), self.name, self.localValueDescriptor)
|
|
1521
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1526
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1221)
|
|
1522
1527
|
_ = try jsDefineProperty(jsGet(cls, "prototype"), self.cssName, self.cssValueDescriptor)
|
|
1523
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1528
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1222)
|
|
1524
1529
|
if !jsStringEquals(self.cssLocalName, self.cssName) {
|
|
1525
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1530
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1223)
|
|
1526
1531
|
_ = try jsDefineProperty(jsGet(cls, "prototype"), self.cssLocalName, self.localValueDescriptor)
|
|
1527
1532
|
}
|
|
1528
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1533
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1226)
|
|
1529
1534
|
try jsUnwrap(Core_ui_core_properties_index.cssValueSourceKeys, setting: "this.cssLocalName")[
|
|
1530
1535
|
self.cssLocalName] = self.sourceKey
|
|
1531
1536
|
}
|
|
1532
1537
|
#sourceLocation()
|
|
1533
1538
|
open func isSet(_ instance: Any?) -> Bool {
|
|
1534
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1539
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1230)
|
|
1535
1540
|
return jsHasKey(instance, self.key.key)
|
|
1536
1541
|
}
|
|
1537
1542
|
#sourceLocation()
|
|
@@ -1801,16 +1806,16 @@ open class CssAnimationProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed
|
|
|
1801
1806
|
var setNative: JSSymbol!
|
|
1802
1807
|
var eventName: String = ""
|
|
1803
1808
|
var property: CssAnimationProperty!
|
|
1804
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1809
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1304)
|
|
1805
1810
|
func descriptor(
|
|
1806
1811
|
_ symbol: JSSymbol?, _ propertySource: Double, _ enumerable: Bool, _ configurable: Bool,
|
|
1807
1812
|
_ getsComputed: Bool
|
|
1808
1813
|
) -> Any? {
|
|
1809
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1814
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1305)
|
|
1810
1815
|
let origin: String =
|
|
1811
1816
|
(jsLenientNumberEquals(propertySource, ValueSource.Keyframe)
|
|
1812
1817
|
? "animation" : (jsLenientNumberEquals(propertySource, ValueSource.Css) ? "css" : "script"))
|
|
1813
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1818
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1307)
|
|
1814
1819
|
return { () -> JSObject in
|
|
1815
1820
|
let __o_1 = JSObject()
|
|
1816
1821
|
__o_1["enumerable"] = enumerable
|
|
@@ -1819,13 +1824,13 @@ open class CssAnimationProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed
|
|
|
1819
1824
|
(getsComputed
|
|
1820
1825
|
? ({ (__this: Any?, __a: [Any?]) throws -> Any? in
|
|
1821
1826
|
return try { () throws -> Any? in
|
|
1822
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1827
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1312)
|
|
1823
1828
|
return try jsGet(__this, computedValue.key)
|
|
1824
1829
|
}()
|
|
1825
1830
|
} as JSMethod)
|
|
1826
1831
|
: ({ (__this: Any?, __a: [Any?]) throws -> Any? in
|
|
1827
1832
|
return try { () throws -> Any? in
|
|
1828
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1833
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1315)
|
|
1829
1834
|
return try jsGet(__this, (jsImplicit(symbol)?.key ?? "undefined"))
|
|
1830
1835
|
}()
|
|
1831
1836
|
} as JSMethod))
|
|
@@ -1834,141 +1839,141 @@ open class CssAnimationProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed
|
|
|
1834
1839
|
let boxedValue: Any? = jsArg(__a, 0)
|
|
1835
1840
|
try { () throws -> Void in
|
|
1836
1841
|
var boxedValue = boxedValue
|
|
1837
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1842
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1318)
|
|
1838
1843
|
let view: ViewBase? = try jsUnwrap(jsGet(__this, "viewRef") as? JSWeakRef<ViewBase>, "get")
|
|
1839
1844
|
.get()
|
|
1840
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1845
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1319)
|
|
1841
1846
|
if !jsTruthy(view as Any?) {
|
|
1842
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1847
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1320)
|
|
1843
1848
|
try NativeScriptKit.Trace.write(
|
|
1844
1849
|
"\(jsToStringThrowing(boxedValue)) not set to view because \".viewRef\" is cleared",
|
|
1845
1850
|
NativeScriptKit.Trace.categories.Animation, NativeScriptKit.Trace.messageType.warn)
|
|
1846
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1851
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1322)
|
|
1847
1852
|
return
|
|
1848
1853
|
}
|
|
1849
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1854
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1325)
|
|
1850
1855
|
let oldValue: Any? = try jsGet(__this, computedValue.key)
|
|
1851
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1856
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1326)
|
|
1852
1857
|
let oldSource: Any? = try jsGet(__this, computedSource.key)
|
|
1853
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1858
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1327)
|
|
1854
1859
|
let wasSet: Bool = !jsStrictEquals(oldSource, ValueSource.Default)
|
|
1855
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1860
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1328)
|
|
1856
1861
|
let reset: Bool =
|
|
1857
1862
|
Core_ui_core_properties_property_shared.isResetValue(boxedValue)
|
|
1858
1863
|
|| jsStrictEquals(boxedValue, "")
|
|
1859
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1864
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1330)
|
|
1860
1865
|
if reset {
|
|
1861
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1866
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1331)
|
|
1862
1867
|
try jsSet(__this, (jsImplicit(symbol)?.key ?? "undefined"), boxedValue)
|
|
1863
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1868
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1332)
|
|
1864
1869
|
if try jsStrictEquals(jsGet(__this, computedSource.key), propertySource) {
|
|
1865
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1870
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1334)
|
|
1866
1871
|
if try !Core_ui_core_properties_property_shared.isResetValue(
|
|
1867
1872
|
jsGet(__this, styleValue.key))
|
|
1868
1873
|
{
|
|
1869
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1874
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1335)
|
|
1870
1875
|
try jsSet(__this, computedSource.key, ValueSource.Local)
|
|
1871
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1876
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1336)
|
|
1872
1877
|
try jsSet(__this, computedValue.key, jsGet(__this, styleValue.key))
|
|
1873
1878
|
} else if try !Core_ui_core_properties_property_shared.isResetValue(
|
|
1874
1879
|
jsGet(__this, cssValue.key))
|
|
1875
1880
|
{
|
|
1876
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1881
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1338)
|
|
1877
1882
|
try jsSet(__this, computedSource.key, ValueSource.Css)
|
|
1878
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1883
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1339)
|
|
1879
1884
|
try jsSet(__this, computedValue.key, jsGet(__this, cssValue.key))
|
|
1880
1885
|
} else {
|
|
1881
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1886
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1341)
|
|
1882
1887
|
_ = try jsDelete(__this, computedSource.key)
|
|
1883
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1888
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1342)
|
|
1884
1889
|
_ = try jsDelete(__this, computedValue.key)
|
|
1885
1890
|
}
|
|
1886
1891
|
}
|
|
1887
1892
|
} else {
|
|
1888
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1893
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1346)
|
|
1889
1894
|
if try
|
|
1890
1895
|
(jsTruthy(jsGet(options, "valueConverter"))
|
|
1891
1896
|
&& jsStringEquals(jsTypeof(boxedValue), "string"))
|
|
1892
1897
|
{
|
|
1893
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1898
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1347)
|
|
1894
1899
|
boxedValue = try jsUnwrap(
|
|
1895
1900
|
FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter")),
|
|
1896
1901
|
"call")(jsLenientString(boxedValue))
|
|
1897
1902
|
}
|
|
1898
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1903
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1349)
|
|
1899
1904
|
try jsSet(__this, (jsImplicit(symbol)?.key ?? "undefined"), boxedValue)
|
|
1900
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1905
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1350)
|
|
1901
1906
|
if try jsLessOrEqualThrowing(jsGet(__this, computedSource.key), propertySource) {
|
|
1902
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1907
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1351)
|
|
1903
1908
|
try jsSet(__this, computedSource.key, propertySource)
|
|
1904
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1909
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1352)
|
|
1905
1910
|
try jsSet(__this, computedValue.key, boxedValue)
|
|
1906
1911
|
}
|
|
1907
1912
|
}
|
|
1908
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1913
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1356)
|
|
1909
1914
|
let value: Any? = try jsGet(__this, computedValue.key)
|
|
1910
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1915
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1357)
|
|
1911
1916
|
let source: Any? = try jsGet(__this, computedSource.key)
|
|
1912
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1917
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1358)
|
|
1913
1918
|
let isSet: Bool = !jsStrictEquals(source, ValueSource.Default)
|
|
1914
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1919
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1360)
|
|
1915
1920
|
let computedValueChanged: Bool =
|
|
1916
1921
|
try !jsStrictEquals(oldValue, value)
|
|
1917
1922
|
&& (!(jsTruthy(jsGet(options, "equalityComparer")))
|
|
1918
1923
|
|| !(jsLenientBool(jsCallMethod(options, "equalityComparer", oldValue, value))))
|
|
1919
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1924
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1362)
|
|
1920
1925
|
if try (computedValueChanged && jsTruthy(jsGet(options, "valueChanged"))) {
|
|
1921
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1926
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1363)
|
|
1922
1927
|
try jsCallMethod(options, "valueChanged", __this, oldValue, value)
|
|
1923
1928
|
}
|
|
1924
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1929
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1366)
|
|
1925
1930
|
if try
|
|
1926
1931
|
(jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key])
|
|
1927
1932
|
&& (computedValueChanged || isSet != wasSet))
|
|
1928
1933
|
{
|
|
1929
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1934
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1367)
|
|
1930
1935
|
if try jsTruthy(jsUnwrap(view, "_suspendNativeUpdatesCount")._suspendNativeUpdatesCount)
|
|
1931
1936
|
{
|
|
1932
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1937
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1368)
|
|
1933
1938
|
if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
|
|
1934
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1939
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1369)
|
|
1935
1940
|
try jsUnwrap(
|
|
1936
1941
|
jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates,
|
|
1937
1942
|
setting: "propertyName")[propertyName] = property
|
|
1938
1943
|
}
|
|
1939
1944
|
} else {
|
|
1940
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1945
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1372)
|
|
1941
1946
|
if isSet {
|
|
1942
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1947
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1373)
|
|
1943
1948
|
if !wasSet && !jsHasKey(__this, defaultValueKey.key) {
|
|
1944
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1949
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1374)
|
|
1945
1950
|
try jsSet(
|
|
1946
1951
|
__this, defaultValueKey.key,
|
|
1947
1952
|
(jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
|
|
1948
1953
|
? jsCallMethod((view as Any?), getDefault.key)
|
|
1949
1954
|
: jsGet(options, "defaultValue")))
|
|
1950
1955
|
}
|
|
1951
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1956
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1376)
|
|
1952
1957
|
_ = try jsCallMethod((view as Any?), setNative.key, value)
|
|
1953
1958
|
} else if wasSet {
|
|
1954
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1959
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1378)
|
|
1955
1960
|
if jsHasKey(__this, defaultValueKey.key) {
|
|
1956
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1961
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1379)
|
|
1957
1962
|
_ = try jsCallMethod(
|
|
1958
1963
|
(view as Any?), setNative.key, jsGet(__this, defaultValueKey.key))
|
|
1959
1964
|
} else {
|
|
1960
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1965
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1381)
|
|
1961
1966
|
_ = try jsCallMethod(
|
|
1962
1967
|
(view as Any?), setNative.key, jsGet(options, "defaultValue"))
|
|
1963
1968
|
}
|
|
1964
1969
|
}
|
|
1965
1970
|
}
|
|
1966
1971
|
}
|
|
1967
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1972
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1387)
|
|
1968
1973
|
if try computedValueChanged
|
|
1969
1974
|
&& jsLenientBool(jsCallMethod(__this, "hasListeners", eventName))
|
|
1970
1975
|
{
|
|
1971
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1976
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1388)
|
|
1972
1977
|
try jsCallMethod(
|
|
1973
1978
|
__this, "notify",
|
|
1974
1979
|
JSObject([
|
|
@@ -1983,77 +1988,77 @@ open class CssAnimationProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed
|
|
|
1983
1988
|
return __o_1
|
|
1984
1989
|
}()
|
|
1985
1990
|
}
|
|
1986
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1991
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1261)
|
|
1987
1992
|
propertyName = try jsConvertedString(jsGet(options, "name"))
|
|
1988
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1993
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1262)
|
|
1989
1994
|
self.name = propertyName
|
|
1990
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1995
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1264)
|
|
1991
1996
|
if try jsTruthy(jsGet(options, "cssName")) {
|
|
1992
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
1997
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1265)
|
|
1993
1998
|
_ = try Core_ui_core_properties_index.cssPropertyNames.push(jsConvertedString(jsGet(options, "cssName")))
|
|
1994
1999
|
}
|
|
1995
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2000
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1268)
|
|
1996
2001
|
try jsUnwrap(CssAnimationProperty.properties, setting: "propertyName")[propertyName] = self
|
|
1997
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2002
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1269)
|
|
1998
2003
|
if try (jsTruthy(jsGet(options, "cssName")) && !jsStrictEquals(jsGet(options, "cssName"), propertyName)) {
|
|
1999
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2004
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1270)
|
|
2000
2005
|
try jsUnwrap(CssAnimationProperty.properties, setting: "options.cssName")[
|
|
2001
2006
|
jsConvertedString(jsGet(options, "cssName"))] = self
|
|
2002
2007
|
}
|
|
2003
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2008
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1273)
|
|
2004
2009
|
self._valueConverter = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter"))
|
|
2005
2010
|
if jsMadeBits0 & (1 << 11) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 11, "_valueConverter") }
|
|
2006
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2011
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1275)
|
|
2007
2012
|
let cssLocalName: String = try
|
|
2008
2013
|
({ () throws -> String in
|
|
2009
|
-
let
|
|
2010
|
-
return jsTruthy(
|
|
2014
|
+
let __v_7 = try jsConvertedString(jsGet(options, "cssName"))
|
|
2015
|
+
return jsTruthy(__v_7) ? jsPresent(__v_7) : propertyName
|
|
2011
2016
|
}())
|
|
2012
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2017
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1276)
|
|
2013
2018
|
self.cssLocalName = cssLocalName
|
|
2014
2019
|
if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "cssLocalName") }
|
|
2015
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2020
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1277)
|
|
2016
2021
|
let cssName: String = "css:" + cssLocalName
|
|
2017
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2022
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1278)
|
|
2018
2023
|
self.cssName = cssName
|
|
2019
2024
|
if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "cssName") }
|
|
2020
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2025
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1280)
|
|
2021
2026
|
let keyframeName: String = "keyframe:" + propertyName
|
|
2022
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2027
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1281)
|
|
2023
2028
|
self.keyframe = keyframeName
|
|
2024
2029
|
if jsMadeBits0 & (1 << 5) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 5, "keyframe") }
|
|
2025
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2030
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1282)
|
|
2026
2031
|
let defaultName: String = "default:" + propertyName
|
|
2027
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2032
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1284)
|
|
2028
2033
|
defaultValueKey = jsSymbol(defaultName)
|
|
2029
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2034
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1285)
|
|
2030
2035
|
self.defaultValueKey = defaultValueKey
|
|
2031
2036
|
if jsMadeBits0 & (1 << 6) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 6, "defaultValueKey") }
|
|
2032
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2037
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1287)
|
|
2033
2038
|
self.defaultValue = try jsGet(options, "defaultValue")
|
|
2034
2039
|
if jsMadeBits0 & (1 << 9) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 9, "defaultValue") }
|
|
2035
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2040
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1289)
|
|
2036
2041
|
cssValue = jsSymbol(cssName)
|
|
2037
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2042
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1290)
|
|
2038
2043
|
styleValue = jsSymbol("local:\(propertyName)")
|
|
2039
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2044
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1291)
|
|
2040
2045
|
let keyframeValue: JSSymbol = jsSymbol(keyframeName)
|
|
2041
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2046
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1292)
|
|
2042
2047
|
computedValue = jsSymbol("computed-value:" + propertyName)
|
|
2043
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2048
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1293)
|
|
2044
2049
|
self.key = computedValue
|
|
2045
2050
|
if jsMadeBits0 & (1 << 7) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 7, "key") }
|
|
2046
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2051
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1294)
|
|
2047
2052
|
computedSource = jsSymbol("computed-source:" + propertyName)
|
|
2048
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2053
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1295)
|
|
2049
2054
|
self.source = computedSource
|
|
2050
2055
|
if jsMadeBits0 & (1 << 8) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 8, "source") }
|
|
2051
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2056
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1297)
|
|
2052
2057
|
self.getDefault = jsSymbol(propertyName + ":getDefault")
|
|
2053
2058
|
if jsMadeBits0 & (1 << 2) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 2, "getDefault") }
|
|
2054
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2059
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1298)
|
|
2055
2060
|
getDefault = self.getDefault
|
|
2056
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2061
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1299)
|
|
2057
2062
|
setNative =
|
|
2058
2063
|
(({ () -> JSSymbol in
|
|
2059
2064
|
let __assigned1: JSSymbol = jsSymbol(propertyName + ":setNative")
|
|
@@ -2061,50 +2066,57 @@ open class CssAnimationProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed
|
|
|
2061
2066
|
return __assigned1
|
|
2062
2067
|
}()))
|
|
2063
2068
|
if jsMadeBits0 & (1 << 3) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 3, "setNative") }
|
|
2064
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2069
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1300)
|
|
2065
2070
|
eventName = propertyName + "Change"
|
|
2066
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2071
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1302)
|
|
2067
2072
|
property = self
|
|
2068
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2073
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1401)
|
|
2069
2074
|
let defaultPropertyDescriptor: Any? = descriptor(defaultValueKey, ValueSource.Default, false, false, false)
|
|
2070
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2075
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1402)
|
|
2071
2076
|
let cssPropertyDescriptor: Any? = descriptor(cssValue, ValueSource.Css, false, false, false)
|
|
2072
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2077
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1403)
|
|
2073
2078
|
let stylePropertyDescriptor: Any? = descriptor(styleValue, ValueSource.Local, true, true, true)
|
|
2074
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2079
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1404)
|
|
2080
|
+
try jsSet(
|
|
2081
|
+
stylePropertyDescriptor, "set",
|
|
2082
|
+
Core_ui_core_properties_index.localCssExpressionSetter(
|
|
2083
|
+
cssLocalName,
|
|
2084
|
+
FunctionCell_AnyOpt_to_Void.scriptOrNil(
|
|
2085
|
+
"", 1, FunctionCell_AnyOpt_to_Void.fromScriptOrNil(jsGet(stylePropertyDescriptor, "set")))))
|
|
2086
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1405)
|
|
2075
2087
|
let keyframePropertyDescriptor: Any? = descriptor(keyframeValue, ValueSource.Keyframe, false, false, false)
|
|
2076
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2088
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1407)
|
|
2077
2089
|
Core_ui_core_properties_index.symbolPropertyMap[jsKey: computedValue.key] = self
|
|
2078
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2090
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1408)
|
|
2079
2091
|
Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: computedValue.key] = self
|
|
2080
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2092
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1410)
|
|
2081
2093
|
self.register = { (cls: Any?) throws -> Void in
|
|
2082
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2094
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1411)
|
|
2083
2095
|
try jsSet(jsGet(cls, "prototype"), computedValue.key, jsGet(options, "defaultValue"))
|
|
2084
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2096
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1412)
|
|
2085
2097
|
try jsSet(jsGet(cls, "prototype"), computedSource.key, ValueSource.Default)
|
|
2086
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2098
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1414)
|
|
2087
2099
|
try jsSet(jsGet(cls, "prototype"), cssValue.key, Core_ui_core_properties_property_shared.unsetValue)
|
|
2088
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2100
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1415)
|
|
2089
2101
|
try jsSet(jsGet(cls, "prototype"), styleValue.key, Core_ui_core_properties_property_shared.unsetValue)
|
|
2090
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2102
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1416)
|
|
2091
2103
|
try jsSet(jsGet(cls, "prototype"), keyframeValue.key, Core_ui_core_properties_property_shared.unsetValue)
|
|
2092
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2104
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1418)
|
|
2093
2105
|
_ = try jsDefineProperty(jsGet(cls, "prototype"), defaultName, defaultPropertyDescriptor)
|
|
2094
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2106
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1419)
|
|
2095
2107
|
_ = try jsDefineProperty(jsGet(cls, "prototype"), cssName, cssPropertyDescriptor)
|
|
2096
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2108
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1420)
|
|
2097
2109
|
_ = try jsDefineProperty(jsGet(cls, "prototype"), propertyName, stylePropertyDescriptor)
|
|
2098
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2110
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1421)
|
|
2099
2111
|
if try
|
|
2100
2112
|
(jsTruthy(jsGet(options, "cssName"))
|
|
2101
2113
|
&& !jsStrictEquals(jsGet(options, "cssName"), jsGet(options, "name")))
|
|
2102
2114
|
{
|
|
2103
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2115
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1422)
|
|
2104
2116
|
_ = try jsDefineProperty(
|
|
2105
2117
|
jsGet(cls, "prototype"), jsConvertedString(jsGet(options, "cssName")), stylePropertyDescriptor)
|
|
2106
2118
|
}
|
|
2107
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2119
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1424)
|
|
2108
2120
|
_ = try jsDefineProperty(jsGet(cls, "prototype"), keyframeName, keyframePropertyDescriptor)
|
|
2109
2121
|
}
|
|
2110
2122
|
if jsMadeBits0 & (1 << 4) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 4, "register") }
|
|
@@ -2119,24 +2131,24 @@ open class CssAnimationProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed
|
|
|
2119
2131
|
open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
|
|
2120
2132
|
open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
|
|
2121
2133
|
open func _initDefaultNativeValue(_ target: Any?) throws {
|
|
2122
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2134
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1429)
|
|
2123
2135
|
let view: ViewBase? = try jsUnwrap(jsGet(target, "viewRef") as? JSWeakRef<ViewBase>, "get").get()
|
|
2124
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2136
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1430)
|
|
2125
2137
|
if !jsTruthy(view as Any?) {
|
|
2126
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2138
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1431)
|
|
2127
2139
|
try NativeScriptKit.Trace.write(
|
|
2128
2140
|
"_initDefaultNativeValue not executed to view because \".viewRef\" is cleared",
|
|
2129
2141
|
NativeScriptKit.Trace.categories.Animation, NativeScriptKit.Trace.messageType.warn)
|
|
2130
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2142
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1433)
|
|
2131
2143
|
return
|
|
2132
2144
|
}
|
|
2133
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2145
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1436)
|
|
2134
2146
|
let defaultValueKey: JSSymbol = self.defaultValueKey
|
|
2135
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2147
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1438)
|
|
2136
2148
|
if !jsHasKey(target, defaultValueKey.key) {
|
|
2137
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2149
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1439)
|
|
2138
2150
|
let getDefault: JSSymbol = self.getDefault
|
|
2139
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2151
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1440)
|
|
2140
2152
|
try jsSet(
|
|
2141
2153
|
target, defaultValueKey.key,
|
|
2142
2154
|
(jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
|
|
@@ -2145,17 +2157,17 @@ open class CssAnimationProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed
|
|
|
2145
2157
|
}
|
|
2146
2158
|
#sourceLocation()
|
|
2147
2159
|
open class func _getByCssName(_ name: String) throws -> CssAnimationProperty? {
|
|
2148
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2160
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1445)
|
|
2149
2161
|
return try jsImplicit(jsUnwrap(self.properties, "name")[name])
|
|
2150
2162
|
}
|
|
2151
2163
|
#sourceLocation()
|
|
2152
2164
|
open class func _getPropertyNames() throws -> JSArray<String>? {
|
|
2153
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2165
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1449)
|
|
2154
2166
|
return try jsObjectRequired(CssAnimationProperty.properties).keys
|
|
2155
2167
|
}
|
|
2156
2168
|
#sourceLocation()
|
|
2157
2169
|
open func isSet(_ instance: Any?) throws -> Bool {
|
|
2158
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2170
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1453)
|
|
2159
2171
|
return try !jsStrictEquals(jsGet(instance, self.source.key), ValueSource.Default)
|
|
2160
2172
|
}
|
|
2161
2173
|
#sourceLocation()
|
|
@@ -2378,244 +2390,244 @@ open class InheritedCssProperty: CssProperty {
|
|
|
2378
2390
|
try super.init(options)
|
|
2379
2391
|
var setDefaultFunc: Any? = nil
|
|
2380
2392
|
var setInheritedFunc: Any? = nil
|
|
2381
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2393
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1463)
|
|
2382
2394
|
let propertyName: String = try jsConvertedString(jsGet(options, "name"))
|
|
2383
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2395
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1465)
|
|
2384
2396
|
let key: JSSymbol = self.key
|
|
2385
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2397
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1466)
|
|
2386
2398
|
let sourceKey: JSSymbol = self.sourceKey
|
|
2387
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2399
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1467)
|
|
2388
2400
|
let getDefault: JSSymbol = self.getDefault
|
|
2389
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2401
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1468)
|
|
2390
2402
|
let setNative: JSSymbol = self.setNative
|
|
2391
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2403
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1469)
|
|
2392
2404
|
let defaultValueKey: JSSymbol = self.defaultValueKey
|
|
2393
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2405
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1470)
|
|
2394
2406
|
let cssLocalName: String = self.cssLocalName
|
|
2395
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2407
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1471)
|
|
2396
2408
|
let eventName: String = propertyName + "Change"
|
|
2397
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2409
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1472)
|
|
2398
2410
|
let defaultValue: Any? = try jsGet(options, "defaultValue")
|
|
2399
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2411
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1474)
|
|
2400
2412
|
var affectsLayout: Bool? = (try jsGet(options, "affectsLayout") as? Bool)
|
|
2401
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2413
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1475)
|
|
2402
2414
|
var equalityComparer: ((Any?, Any?) throws -> Bool)? = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
|
|
2403
2415
|
jsGet(options, "equalityComparer"))
|
|
2404
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2416
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1476)
|
|
2405
2417
|
var valueChanged: ((Any?, Any?, Any?) throws -> Void)? =
|
|
2406
2418
|
try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(jsGet(options, "valueChanged"))
|
|
2407
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2419
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1477)
|
|
2408
2420
|
var valueConverter: ((String) throws -> Any?)? = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(
|
|
2409
2421
|
jsGet(options, "valueConverter"))
|
|
2410
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2422
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1478)
|
|
2411
2423
|
var overrideConverter: Bool = false
|
|
2412
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2424
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1480)
|
|
2413
2425
|
let property: InheritedCssProperty = self
|
|
2414
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2426
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1482)
|
|
2415
2427
|
self.overrideHandlers = { (options: Any?) throws -> Void in
|
|
2416
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2428
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1483)
|
|
2417
2429
|
if try !jsStringEquals(jsTypeof(jsGet(options, "equalityComparer")), "undefined") {
|
|
2418
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2430
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1484)
|
|
2419
2431
|
equalityComparer = try FunctionCell_AnyOpt_AnyOpt_to_Bool.fromScriptOrNil(
|
|
2420
2432
|
jsGet(options, "equalityComparer"))
|
|
2421
2433
|
}
|
|
2422
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2434
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1486)
|
|
2423
2435
|
if try !jsStringEquals(jsTypeof(jsGet(options, "affectsLayout")), "undefined") {
|
|
2424
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2436
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1487)
|
|
2425
2437
|
affectsLayout = try jsConvertedBool(jsGet(options, "affectsLayout"))
|
|
2426
2438
|
}
|
|
2427
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2439
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1489)
|
|
2428
2440
|
if try !jsStringEquals(jsTypeof(jsGet(options, "valueChanged")), "undefined") {
|
|
2429
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2441
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1490)
|
|
2430
2442
|
valueChanged = try FunctionCell_AnyOpt_AnyOpt_AnyOpt_to_Void.fromScriptOrNil(
|
|
2431
2443
|
jsGet(options, "valueChanged"))
|
|
2432
2444
|
}
|
|
2433
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2445
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1492)
|
|
2434
2446
|
if try !jsStringEquals(jsTypeof(jsGet(options, "valueConverter")), "undefined") {
|
|
2435
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2447
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1493)
|
|
2436
2448
|
valueConverter = try FunctionCell_String_to_AnyOpt.fromScriptOrNil(jsGet(options, "valueConverter"))
|
|
2437
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2449
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1494)
|
|
2438
2450
|
overrideConverter = true
|
|
2439
2451
|
}
|
|
2440
2452
|
}
|
|
2441
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2453
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1498)
|
|
2442
2454
|
let setFunc: (Double) throws -> Any? = { (valueSource: Double) -> Any? in
|
|
2443
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2455
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1499)
|
|
2444
2456
|
let isLocalWrite: Bool = jsLenientNumberEquals(valueSource, ValueSource.Local)
|
|
2445
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2457
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1501)
|
|
2446
2458
|
let origin: String =
|
|
2447
2459
|
(isLocalWrite ? "script" : (jsLenientNumberEquals(valueSource, ValueSource.Css) ? "css" : "inherited"))
|
|
2448
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2460
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1503)
|
|
2449
2461
|
return
|
|
2450
2462
|
({ (__this: Any?, __a: [Any?]) throws -> Any? in
|
|
2451
2463
|
let boxedValue: Any? = jsArg(__a, 0)
|
|
2452
2464
|
try { () throws -> Void in
|
|
2453
2465
|
var boxedValue = boxedValue
|
|
2454
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2466
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1504)
|
|
2455
2467
|
let view: ViewBase? = try jsUnwrap(jsGet(__this, "viewRef") as? JSWeakRef<ViewBase>, "get")
|
|
2456
2468
|
.get()
|
|
2457
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2469
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1505)
|
|
2458
2470
|
if !jsTruthy(view as Any?) {
|
|
2459
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2471
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1506)
|
|
2460
2472
|
try NativeScriptKit.Trace.write(
|
|
2461
2473
|
"\(jsToStringThrowing(boxedValue)) not set to view's property because \".viewRef\" is cleared",
|
|
2462
2474
|
NativeScriptKit.Trace.categories.Style, NativeScriptKit.Trace.messageType.warn)
|
|
2463
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2475
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1507)
|
|
2464
2476
|
return
|
|
2465
2477
|
}
|
|
2466
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2478
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1510)
|
|
2467
2479
|
if isLocalWrite {
|
|
2468
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2480
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1511)
|
|
2469
2481
|
try jsPostUpdate(__this, "_localValueVersion", +1)
|
|
2470
2482
|
}
|
|
2471
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2483
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1514)
|
|
2472
2484
|
var reset: Bool =
|
|
2473
2485
|
Core_ui_core_properties_property_shared.isResetValue(boxedValue)
|
|
2474
2486
|
|| jsStrictEquals(boxedValue, "")
|
|
2475
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2487
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1515)
|
|
2476
2488
|
var newValueSource: Double = valueSource
|
|
2477
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2489
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1516)
|
|
2478
2490
|
if reset && isLocalWrite {
|
|
2479
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2491
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1517)
|
|
2480
2492
|
let cssValue: Any? = try Core_ui_core_properties_index.cascadedCssValue(view, cssLocalName)
|
|
2481
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2493
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1518)
|
|
2482
2494
|
if !jsStrictEquals(cssValue, nil) {
|
|
2483
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2495
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1519)
|
|
2484
2496
|
boxedValue = cssValue
|
|
2485
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2497
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1520)
|
|
2486
2498
|
newValueSource = ValueSource.Css
|
|
2487
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2499
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1521)
|
|
2488
2500
|
reset = false
|
|
2489
2501
|
}
|
|
2490
2502
|
}
|
|
2491
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2503
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1525)
|
|
2492
2504
|
let currentValueSource: Double = try jsConvertedNumber(
|
|
2493
2505
|
({ () throws -> Any? in
|
|
2494
|
-
let
|
|
2495
|
-
return jsTruthy(
|
|
2506
|
+
let __v_8 = try jsGet(__this, sourceKey.key)
|
|
2507
|
+
return jsTruthy(__v_8) ? __v_8 : ValueSource.Default
|
|
2496
2508
|
}()))
|
|
2497
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2509
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1527)
|
|
2498
2510
|
if reset {
|
|
2499
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2511
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1529)
|
|
2500
2512
|
if jsLenientNumberEquals(valueSource, ValueSource.Css)
|
|
2501
2513
|
&& jsLenientNumberEquals(currentValueSource, ValueSource.Local)
|
|
2502
2514
|
{
|
|
2503
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2515
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1530)
|
|
2504
2516
|
return
|
|
2505
2517
|
}
|
|
2506
2518
|
} else {
|
|
2507
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2519
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1533)
|
|
2508
2520
|
if currentValueSource > valueSource {
|
|
2509
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2521
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1534)
|
|
2510
2522
|
return
|
|
2511
2523
|
}
|
|
2512
2524
|
}
|
|
2513
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2525
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1538)
|
|
2514
2526
|
let oldValue: Any? = try (jsHasKey(__this, key.key) ? jsGet(__this, key.key) : defaultValue)
|
|
2515
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2527
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1539)
|
|
2516
2528
|
var value: Any? = nil
|
|
2517
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2529
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1540)
|
|
2518
2530
|
var unsetNativeValue: Bool = false
|
|
2519
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2531
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1542)
|
|
2520
2532
|
if reset {
|
|
2521
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2533
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1543)
|
|
2522
2534
|
let parentStyle: Style? =
|
|
2523
2535
|
try
|
|
2524
2536
|
(jsTruthy(jsUnwrap(view, "parent").parent)
|
|
2525
2537
|
? jsUnwrap(jsUnwrap(view, "parent").parent, "style").style : nil)
|
|
2526
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2538
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1546)
|
|
2527
2539
|
if try
|
|
2528
2540
|
((!jsStrictEquals(boxedValue, "initial") && jsTruthy(parentStyle as Any?))
|
|
2529
2541
|
&& jsGreaterThrowing(
|
|
2530
2542
|
jsUnwrap(parentStyle, "sourceKey")[jsKey: sourceKey.key], ValueSource.Default))
|
|
2531
2543
|
{
|
|
2532
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2544
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1547)
|
|
2533
2545
|
value = try jsUnwrap(parentStyle, "propertyName")[jsKey: propertyName]
|
|
2534
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2546
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1548)
|
|
2535
2547
|
try jsSet(__this, sourceKey.key, ValueSource.Inherited)
|
|
2536
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2548
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1549)
|
|
2537
2549
|
try jsSet(__this, key.key, value)
|
|
2538
2550
|
} else {
|
|
2539
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2551
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1551)
|
|
2540
2552
|
value = defaultValue
|
|
2541
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2553
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1552)
|
|
2542
2554
|
_ = try jsDelete(__this, sourceKey.key)
|
|
2543
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2555
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1553)
|
|
2544
2556
|
_ = try jsDelete(__this, key.key)
|
|
2545
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2557
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1554)
|
|
2546
2558
|
unsetNativeValue = true
|
|
2547
2559
|
}
|
|
2548
2560
|
} else {
|
|
2549
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2561
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1557)
|
|
2550
2562
|
try jsSet(__this, sourceKey.key, newValueSource)
|
|
2551
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2563
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1558)
|
|
2552
2564
|
if jsTruthy(valueConverter) && jsStringEquals(jsTypeof(boxedValue), "string") {
|
|
2553
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2565
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1559)
|
|
2554
2566
|
value =
|
|
2555
2567
|
try
|
|
2556
2568
|
(overrideConverter
|
|
2557
2569
|
? jsUnwrap(valueConverter, "call")(jsLenientString(boxedValue))
|
|
2558
2570
|
: jsCallable(valueConverter, "valueConverter")(jsLenientString(boxedValue)))
|
|
2559
2571
|
} else {
|
|
2560
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2572
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1561)
|
|
2561
2573
|
value = boxedValue
|
|
2562
2574
|
}
|
|
2563
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2575
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1563)
|
|
2564
2576
|
try jsSet(__this, key.key, value)
|
|
2565
2577
|
}
|
|
2566
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2578
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1566)
|
|
2567
2579
|
let changed: Bool =
|
|
2568
2580
|
try
|
|
2569
2581
|
(jsTruthy(equalityComparer)
|
|
2570
2582
|
? !(jsCallable(equalityComparer, "equalityComparer")(oldValue, value))
|
|
2571
2583
|
: !jsStrictEquals(oldValue, value))
|
|
2572
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2584
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1568)
|
|
2573
2585
|
if changed {
|
|
2574
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2586
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1569)
|
|
2575
2587
|
if jsTruthy(valueChanged) {
|
|
2576
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2588
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1570)
|
|
2577
2589
|
try jsCallable(valueChanged, "valueChanged")(__this, oldValue, value)
|
|
2578
2590
|
}
|
|
2579
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2591
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1573)
|
|
2580
2592
|
if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
|
|
2581
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2593
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1574)
|
|
2582
2594
|
if try jsTruthy(jsUnwrap(view, "_suspendNativeUpdatesCount")._suspendNativeUpdatesCount)
|
|
2583
2595
|
{
|
|
2584
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2596
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1575)
|
|
2585
2597
|
if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
|
|
2586
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2598
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1576)
|
|
2587
2599
|
try jsUnwrap(
|
|
2588
2600
|
jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates,
|
|
2589
2601
|
setting: "propertyName")[propertyName] = property
|
|
2590
2602
|
}
|
|
2591
2603
|
} else if unsetNativeValue {
|
|
2592
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2604
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1579)
|
|
2593
2605
|
if jsHasKey(__this, defaultValueKey.key) {
|
|
2594
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2606
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1580)
|
|
2595
2607
|
_ = try jsCallMethod(
|
|
2596
2608
|
(view as Any?), setNative.key, jsGet(__this, defaultValueKey.key))
|
|
2597
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2609
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1581)
|
|
2598
2610
|
_ = try jsDelete(__this, defaultValueKey.key)
|
|
2599
2611
|
} else {
|
|
2600
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2612
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1583)
|
|
2601
2613
|
_ = try jsCallMethod((view as Any?), setNative.key, defaultValue)
|
|
2602
2614
|
}
|
|
2603
2615
|
} else {
|
|
2604
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2616
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1586)
|
|
2605
2617
|
if !jsHasKey(__this, defaultValueKey.key) {
|
|
2606
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2618
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1587)
|
|
2607
2619
|
try jsSet(
|
|
2608
2620
|
__this, defaultValueKey.key,
|
|
2609
2621
|
(jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
|
|
2610
2622
|
? jsCallMethod((view as Any?), getDefault.key) : defaultValue))
|
|
2611
2623
|
}
|
|
2612
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2624
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1590)
|
|
2613
2625
|
_ = try jsCallMethod((view as Any?), setNative.key, value)
|
|
2614
2626
|
}
|
|
2615
2627
|
}
|
|
2616
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2628
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1594)
|
|
2617
2629
|
if try jsLenientBool(jsCallMethod(__this, "hasListeners", eventName)) {
|
|
2618
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2630
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1595)
|
|
2619
2631
|
try jsCallMethod(
|
|
2620
2632
|
__this, "notify",
|
|
2621
2633
|
JSObject([
|
|
@@ -2624,38 +2636,38 @@ open class InheritedCssProperty: CssProperty {
|
|
|
2624
2636
|
("oldValue", oldValue as Any?), ("origin", origin as Any?),
|
|
2625
2637
|
]))
|
|
2626
2638
|
}
|
|
2627
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2639
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1605)
|
|
2628
2640
|
if jsTruthy(affectsLayout as Any?) {
|
|
2629
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2641
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1606)
|
|
2630
2642
|
try jsUnwrap(view, "requestLayout").requestLayout()
|
|
2631
2643
|
}
|
|
2632
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2644
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1609)
|
|
2633
2645
|
try jsUnwrap(view, "eachChild").eachChild({ (child: ViewBase?) throws -> Bool in
|
|
2634
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2646
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1610)
|
|
2635
2647
|
let childStyle: Style? = try jsUnwrap(child, "style").style
|
|
2636
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2648
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1611)
|
|
2637
2649
|
let childValueSource: Any? = try
|
|
2638
2650
|
({ () throws -> Any? in
|
|
2639
|
-
let
|
|
2640
|
-
return jsTruthy(
|
|
2651
|
+
let __v_9 = try jsUnwrap(childStyle, "sourceKey")[jsKey: sourceKey.key]
|
|
2652
|
+
return jsTruthy(__v_9) ? __v_9 : ValueSource.Default
|
|
2641
2653
|
}())
|
|
2642
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2654
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1612)
|
|
2643
2655
|
if reset {
|
|
2644
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2656
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1613)
|
|
2645
2657
|
if jsStrictEquals(childValueSource, ValueSource.Inherited) {
|
|
2646
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2658
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1614)
|
|
2647
2659
|
_ = try jsCallMethod(
|
|
2648
2660
|
setDefaultFunc, "call", childStyle,
|
|
2649
2661
|
Core_ui_core_properties_property_shared.unsetValue)
|
|
2650
2662
|
}
|
|
2651
2663
|
} else {
|
|
2652
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2664
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1617)
|
|
2653
2665
|
if try jsLessOrEqualThrowing(childValueSource, ValueSource.Inherited) {
|
|
2654
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2666
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1618)
|
|
2655
2667
|
_ = try jsCallMethod(setInheritedFunc, "call", childStyle, value)
|
|
2656
2668
|
}
|
|
2657
2669
|
}
|
|
2658
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2670
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1622)
|
|
2659
2671
|
return true
|
|
2660
2672
|
})
|
|
2661
2673
|
}
|
|
@@ -2663,18 +2675,24 @@ open class InheritedCssProperty: CssProperty {
|
|
|
2663
2675
|
return nil
|
|
2664
2676
|
} as JSMethod)
|
|
2665
2677
|
}
|
|
2666
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2678
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1628)
|
|
2667
2679
|
setDefaultFunc = try setFunc(ValueSource.Default)
|
|
2668
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2680
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1629)
|
|
2669
2681
|
setInheritedFunc = try setFunc(ValueSource.Inherited)
|
|
2670
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2682
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1631)
|
|
2671
2683
|
self.setInheritedValue = setInheritedFunc
|
|
2672
2684
|
if jsMadeBits0 & (1 << 4) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 4, "setInheritedValue") }
|
|
2673
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2685
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1632)
|
|
2674
2686
|
try jsSet(self.cssValueDescriptor, "set", setFunc(ValueSource.Css))
|
|
2675
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2676
|
-
try jsSet(
|
|
2677
|
-
|
|
2687
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1633)
|
|
2688
|
+
try jsSet(
|
|
2689
|
+
self.localValueDescriptor, "set",
|
|
2690
|
+
Core_ui_core_properties_index.localCssExpressionSetter(
|
|
2691
|
+
({ () throws -> String in
|
|
2692
|
+
let __v_10 = try jsConvertedString(jsGet(options, "cssName"))
|
|
2693
|
+
return jsTruthy(__v_10) ? jsPresent(__v_10) : propertyName
|
|
2694
|
+
}()), setFunc(ValueSource.Local)))
|
|
2695
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1635)
|
|
2678
2696
|
_ = try jsUnwrap(Core_ui_core_properties_index.inheritableCssProperties, "push").push(self)
|
|
2679
2697
|
}
|
|
2680
2698
|
#sourceLocation()
|
|
@@ -2734,73 +2752,123 @@ open class ShorthandProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
2734
2752
|
}
|
|
2735
2753
|
public init(_ options: Any?) throws {
|
|
2736
2754
|
var converter: ((Any?) throws -> JSArray<(Any?, Any?)>)!
|
|
2737
|
-
|
|
2755
|
+
var cssLocalName: String = ""
|
|
2756
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1666)
|
|
2738
2757
|
func setLocalValue(_ this: Any?, _ value: Any?) throws {
|
|
2739
|
-
|
|
2758
|
+
var value = value
|
|
2759
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1667)
|
|
2740
2760
|
let view: ViewBase? = try jsUnwrap(jsGet(this, "viewRef") as? JSWeakRef<ViewBase>, "get").get()
|
|
2741
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2761
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1668)
|
|
2742
2762
|
if !jsTruthy(view as Any?) {
|
|
2743
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2763
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1669)
|
|
2744
2764
|
try NativeScriptKit.Trace.write(
|
|
2745
2765
|
"setLocalValue not executed to view because \".viewRef\" is cleared",
|
|
2746
2766
|
NativeScriptKit.Trace.categories.Animation, NativeScriptKit.Trace.messageType.warn)
|
|
2747
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2767
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1671)
|
|
2768
|
+
return
|
|
2769
|
+
}
|
|
2770
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1674)
|
|
2771
|
+
let pendingLonghands: JSArray<(String, CssPendingSubstitution?)>? =
|
|
2772
|
+
try
|
|
2773
|
+
(Core_ui_core_properties_index.hasCssExpression(value)
|
|
2774
|
+
? Core_ui_core_properties_index._pendingCssShorthandSubstitution(cssLocalName, jsLenientString(value))
|
|
2775
|
+
: nil)
|
|
2776
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1675)
|
|
2777
|
+
if jsTruthy(pendingLonghands as Any?) {
|
|
2778
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1676)
|
|
2779
|
+
let pending: CssPendingSubstitution? = try jsUnwrap(jsUnwrap(pendingLonghands, "0").element(0), "1").1
|
|
2780
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1677)
|
|
2781
|
+
let shorthand: Any? = try Core_ui_core_properties_index._substituteCssShorthand(view, pending)
|
|
2782
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1678)
|
|
2783
|
+
_ = try jsUnwrap(view, "_batchUpdate")._batchUpdate(
|
|
2784
|
+
FunctionCell_none_to_AnyOpt.adapting({ () throws -> Void in
|
|
2785
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1679)
|
|
2786
|
+
for __item1 in try jsIterated(jsImplicit(pendingLonghands), "pendingLonghands is not iterable")
|
|
2787
|
+
{
|
|
2788
|
+
let longhand: String = __item1.0
|
|
2789
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1680)
|
|
2790
|
+
try Core_ui_core_properties_index._setLocalCssShorthandValue(
|
|
2791
|
+
(try jsCast(this, Style.self)), longhand, pending, shorthand)
|
|
2792
|
+
}
|
|
2793
|
+
}))
|
|
2794
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1684)
|
|
2748
2795
|
return
|
|
2749
2796
|
}
|
|
2750
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2797
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1687)
|
|
2798
|
+
if Core_ui_core_properties_index.hasCssExpression(value) {
|
|
2799
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1688)
|
|
2800
|
+
value = try Core_ui_core_properties_index._evaluateCssExpressions(
|
|
2801
|
+
view, cssLocalName, jsLenientString(value))
|
|
2802
|
+
}
|
|
2803
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1691)
|
|
2751
2804
|
_ = try jsUnwrap(view, "_batchUpdate")._batchUpdate(
|
|
2752
2805
|
FunctionCell_none_to_AnyOpt.adapting({ () throws -> Void in
|
|
2753
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2754
|
-
for
|
|
2806
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1692)
|
|
2807
|
+
for __item2 in try jsIterated(
|
|
2755
2808
|
jsCallable(converter, "converter")(value),
|
|
2756
2809
|
"converter is not a function or its return value is not iterable")
|
|
2757
2810
|
{
|
|
2758
|
-
let p: Any? =
|
|
2759
|
-
let v: Any? =
|
|
2760
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2811
|
+
let p: Any? = __item2.0
|
|
2812
|
+
let v: Any? = __item2.1
|
|
2813
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1693)
|
|
2761
2814
|
try jsSet(this, jsPropertyKey(jsGet(p, "name")), v)
|
|
2762
2815
|
}
|
|
2763
2816
|
}))
|
|
2817
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1698)
|
|
2818
|
+
if try jsTruthy(jsGet(this, "_localCssExpressions")) {
|
|
2819
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1699)
|
|
2820
|
+
let longhands: JSArray<String>? = try Core_ui_core_properties_index.getCssShorthandLonghands(
|
|
2821
|
+
cssLocalName)
|
|
2822
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1700)
|
|
2823
|
+
var i: Double = 0
|
|
2824
|
+
let length: Double = try (jsTruthy(longhands) ? jsUnwrap(longhands, "length").length : 0)
|
|
2825
|
+
while i < length {
|
|
2826
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1701)
|
|
2827
|
+
try Core_ui_core_properties_index.releaseLocalCssExpression(
|
|
2828
|
+
(try jsCast(this, Style.self)), (jsUnwrap(longhands, "i").element(i) ?? "undefined"))
|
|
2829
|
+
i += 1
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2764
2832
|
}
|
|
2765
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2833
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1706)
|
|
2766
2834
|
func setCssValue(_ this: Any?, _ value: String) throws {
|
|
2767
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2835
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1707)
|
|
2768
2836
|
let view: ViewBase? = try jsUnwrap(jsGet(this, "viewRef") as? JSWeakRef<ViewBase>, "get").get()
|
|
2769
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2837
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1708)
|
|
2770
2838
|
if !jsTruthy(view as Any?) {
|
|
2771
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2839
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1709)
|
|
2772
2840
|
try NativeScriptKit.Trace.write(
|
|
2773
2841
|
"setCssValue not executed to view because \".viewRef\" is cleared",
|
|
2774
2842
|
NativeScriptKit.Trace.categories.Animation, NativeScriptKit.Trace.messageType.warn)
|
|
2775
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2843
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1711)
|
|
2776
2844
|
return
|
|
2777
2845
|
}
|
|
2778
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2846
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1714)
|
|
2779
2847
|
_ = try jsUnwrap(view, "_batchUpdate")._batchUpdate(
|
|
2780
2848
|
FunctionCell_none_to_AnyOpt.adapting({ () throws -> Void in
|
|
2781
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2782
|
-
for
|
|
2849
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1715)
|
|
2850
|
+
for __item3 in try jsIterated(
|
|
2783
2851
|
jsCallable(converter, "converter")(value),
|
|
2784
2852
|
"converter is not a function or its return value is not iterable")
|
|
2785
2853
|
{
|
|
2786
|
-
let p: Any? =
|
|
2787
|
-
let v: Any? =
|
|
2788
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2854
|
+
let p: Any? = __item3.0
|
|
2855
|
+
let v: Any? = __item3.1
|
|
2856
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1716)
|
|
2789
2857
|
try jsSet(this, jsPropertyKey(jsGet(p, "cssName")), v)
|
|
2790
2858
|
}
|
|
2791
2859
|
}))
|
|
2792
2860
|
}
|
|
2793
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2861
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1653)
|
|
2794
2862
|
self.name = try jsConvertedString(jsGet(options, "name"))
|
|
2795
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2863
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1655)
|
|
2796
2864
|
let key: JSSymbol = jsSymbol(self.name + ":propertyKey")
|
|
2797
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2865
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1656)
|
|
2798
2866
|
self.key = key
|
|
2799
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2867
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1658)
|
|
2800
2868
|
self.cssName = try "css:\(jsConvertedString(jsGet(options, "cssName")))"
|
|
2801
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2869
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1659)
|
|
2802
2870
|
self.cssLocalName = try "\(jsConvertedString(jsGet(options, "cssName")))"
|
|
2803
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2871
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1660)
|
|
2804
2872
|
_ = try Core_ui_core_properties_index.cssShorthandConverters.set(
|
|
2805
2873
|
jsConvertedString(jsGet(options, "cssName")),
|
|
2806
2874
|
FunctionCell_AnyOpt_to_JSArray_AnyOpt_AnyOpt_Opt.scriptOrNil(
|
|
@@ -2808,11 +2876,13 @@ open class ShorthandProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
2808
2876
|
FunctionCell_AnyOpt_to_JSArray_AnyOpt_AnyOpt.present(
|
|
2809
2877
|
FunctionCell_AnyOpt_to_JSArray_AnyOpt_AnyOpt.present(
|
|
2810
2878
|
FunctionCell_AnyOpt_to_JSArray_AnyOpt_AnyOpt.fromScriptOrNil(jsGet(options, "converter"))))))
|
|
2811
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2879
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1661)
|
|
2812
2880
|
Core_ui_core_properties_index.cssShorthandsVersion += 1
|
|
2813
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2881
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1663)
|
|
2814
2882
|
converter = try FunctionCell_AnyOpt_to_JSArray_AnyOpt_AnyOpt.fromScriptOrNil(jsGet(options, "converter"))
|
|
2815
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2883
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1664)
|
|
2884
|
+
cssLocalName = self.cssLocalName
|
|
2885
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1721)
|
|
2816
2886
|
self.cssValueDescriptor = try JSObject([
|
|
2817
2887
|
("enumerable", true), ("configurable", true), ("get", jsGet(options, "getter")),
|
|
2818
2888
|
(
|
|
@@ -2824,7 +2894,7 @@ open class ShorthandProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
2824
2894
|
),
|
|
2825
2895
|
])
|
|
2826
2896
|
if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "cssValueDescriptor") }
|
|
2827
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2897
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1728)
|
|
2828
2898
|
self.localValueDescriptor = try JSObject([
|
|
2829
2899
|
("enumerable", true), ("configurable", true), ("get", jsGet(options, "getter")),
|
|
2830
2900
|
(
|
|
@@ -2836,7 +2906,7 @@ open class ShorthandProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
2836
2906
|
),
|
|
2837
2907
|
])
|
|
2838
2908
|
if jsMadeBits0 & (1 << 2) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 2, "localValueDescriptor") }
|
|
2839
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2909
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1735)
|
|
2840
2910
|
Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: key.key] = self
|
|
2841
2911
|
}
|
|
2842
2912
|
#sourceLocation()
|
|
@@ -2849,22 +2919,22 @@ open class ShorthandProperty: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
2849
2919
|
open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
|
|
2850
2920
|
open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
|
|
2851
2921
|
open func register(_ cls: Style.Type?) throws {
|
|
2852
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2922
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1739)
|
|
2853
2923
|
if self.registered {
|
|
2854
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2924
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1740)
|
|
2855
2925
|
throw JSException(value: JSError("Property \(self.name) already registered."))
|
|
2856
2926
|
}
|
|
2857
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2927
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1743)
|
|
2858
2928
|
self.registered = true
|
|
2859
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2929
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1744)
|
|
2860
2930
|
_ = try jsDefineProperty(
|
|
2861
2931
|
jsObjectRequired(JSPrototypes.of(jsUnwrap(cls, "prototype"))), self.name, self.localValueDescriptor)
|
|
2862
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2932
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1745)
|
|
2863
2933
|
_ = try jsDefineProperty(
|
|
2864
2934
|
jsObjectRequired(JSPrototypes.of(jsUnwrap(cls, "prototype"))), self.cssName, self.cssValueDescriptor)
|
|
2865
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2935
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1746)
|
|
2866
2936
|
if !jsStringEquals(self.cssLocalName, self.cssName) {
|
|
2867
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
2937
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1747)
|
|
2868
2938
|
_ = try jsDefineProperty(
|
|
2869
2939
|
jsObjectRequired(JSPrototypes.of(jsUnwrap(cls, "prototype"))), self.cssLocalName,
|
|
2870
2940
|
self.localValueDescriptor)
|
|
@@ -3265,327 +3335,701 @@ public enum Core_ui_core_properties_index {
|
|
|
3265
3335
|
return jsIncludes(value, "var(--")
|
|
3266
3336
|
}
|
|
3267
3337
|
#sourceLocation()
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3338
|
+
/// Substitute the css-variables in a value.
|
|
3339
|
+
/// @param reads Collects every variable looked up, with the value the lookup returned.
|
|
3340
|
+
public static func _evaluateCssVariableExpression(
|
|
3341
|
+
_ view: ViewBase?, _ cssName: String, _ value: String, _ reads: JSMap<String, String>? = nil
|
|
3342
|
+
) throws -> String {
|
|
3343
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:234)
|
|
3272
3344
|
if !Core_ui_core_properties_index.isCssVariableExpression(value) {
|
|
3273
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3345
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:236)
|
|
3274
3346
|
return value
|
|
3275
3347
|
}
|
|
3276
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3348
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:239)
|
|
3277
3349
|
var output: String = jsTrim(value)
|
|
3278
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3350
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:242)
|
|
3279
3351
|
var lastValue: String? = nil
|
|
3280
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3352
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:243)
|
|
3281
3353
|
while !jsStringEquals((lastValue ?? "undefined"), output) {
|
|
3282
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3354
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:244)
|
|
3283
3355
|
lastValue = output
|
|
3284
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3356
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:246)
|
|
3285
3357
|
let idx: Double = jsLastIndexOf(output, "var(")
|
|
3286
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3358
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:247)
|
|
3287
3359
|
if idx == -1 {
|
|
3288
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3360
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:248)
|
|
3289
3361
|
continue
|
|
3290
3362
|
}
|
|
3291
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3363
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:251)
|
|
3292
3364
|
let endIdx: Double = Core_ui_core_properties_index.findClosingParenthesis(output, idx + 3)
|
|
3293
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3365
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:252)
|
|
3294
3366
|
if endIdx == -1 {
|
|
3295
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3367
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:253)
|
|
3296
3368
|
continue
|
|
3297
3369
|
}
|
|
3298
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3370
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:256)
|
|
3299
3371
|
let body: String = jsSubstring(output, idx + 4, endIdx)
|
|
3300
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3372
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:257)
|
|
3301
3373
|
let commaIdx: Double = jsIndexOf(body, ",", nil)
|
|
3302
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3374
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:258)
|
|
3303
3375
|
let cssVariableName: String = jsTrim(((commaIdx == -1 ? body : jsSubstring(body, 0, commaIdx))))
|
|
3304
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3376
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:259)
|
|
3305
3377
|
let fallback: String = (commaIdx == -1 ? "" : jsTrim(jsSubstring(body, commaIdx + 1, nil)))
|
|
3306
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3378
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:260)
|
|
3307
3379
|
var cssVariableValue: String? = try jsUnwrap(jsUnwrap(view, "style").style, "getCssVariable")
|
|
3308
3380
|
.getCssVariable(cssVariableName)
|
|
3309
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3381
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:261)
|
|
3382
|
+
if jsTruthy(reads as Any?) {
|
|
3383
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:262)
|
|
3384
|
+
_ = try jsUnwrap(reads, "set").set(cssVariableName, (cssVariableValue ?? "undefined"))
|
|
3385
|
+
}
|
|
3386
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:264)
|
|
3310
3387
|
if cssVariableValue != nil && jsStringEquals(jsTrim((cssVariableValue ?? "undefined")), "initial") {
|
|
3311
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3388
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:265)
|
|
3312
3389
|
cssVariableValue = nil
|
|
3313
3390
|
}
|
|
3314
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3391
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:267)
|
|
3315
3392
|
if cssVariableValue == nil && jsTruthy(fallback) {
|
|
3316
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3393
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:268)
|
|
3317
3394
|
cssVariableValue = try Core_ui_core_properties_index._evaluateCssVariableExpression(
|
|
3318
|
-
view, cssName, fallback)
|
|
3395
|
+
view, cssName, fallback, jsImplicit(reads))
|
|
3319
3396
|
}
|
|
3320
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3397
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:271)
|
|
3321
3398
|
if !jsTruthy(cssVariableValue as Any?) || jsStringEquals((cssVariableValue ?? "undefined"), "unset") {
|
|
3322
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3399
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:272)
|
|
3323
3400
|
cssVariableValue = Core_ui_core_properties_index.UNRESOLVED_VAR
|
|
3324
3401
|
}
|
|
3325
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3402
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:275)
|
|
3326
3403
|
output =
|
|
3327
3404
|
"\(jsSubstring(output, 0, idx))\(jsToString(cssVariableValue as Any?))\(jsSubstring(output, endIdx + 1, nil))"
|
|
3328
3405
|
}
|
|
3329
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3406
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:280)
|
|
3330
3407
|
return (jsIncludes(output, Core_ui_core_properties_index.UNRESOLVED_VAR) ? "unset" : output)
|
|
3331
3408
|
}
|
|
3332
3409
|
#sourceLocation()
|
|
3333
3410
|
public static func findClosingParenthesis(_ value: String, _ openIdx: Double) -> Double {
|
|
3334
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3411
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:284)
|
|
3335
3412
|
var depth: Double = 0
|
|
3336
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3413
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:285)
|
|
3337
3414
|
var i: Double = openIdx
|
|
3338
3415
|
while i < Double(value.utf16.count) {
|
|
3339
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3416
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:286)
|
|
3340
3417
|
let ch: String? = jsCharAtOrUndefined(value, i)
|
|
3341
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3418
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:287)
|
|
3342
3419
|
if jsStringEquals((ch ?? "undefined"), "(") {
|
|
3343
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3420
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:288)
|
|
3344
3421
|
depth += 1
|
|
3345
3422
|
} else if jsStringEquals((ch ?? "undefined"), ")") && jsPreDecrement(&depth) == 0 {
|
|
3346
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3423
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:290)
|
|
3347
3424
|
return i
|
|
3348
3425
|
}
|
|
3349
3426
|
i += 1
|
|
3350
3427
|
}
|
|
3351
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3428
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:294)
|
|
3352
3429
|
return -1
|
|
3353
3430
|
}
|
|
3354
3431
|
#sourceLocation()
|
|
3355
3432
|
public static func _evaluateCssCalcExpression(_ value: String) throws -> Any? {
|
|
3356
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3433
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:302)
|
|
3357
3434
|
if Core_ui_core_properties_index.isCssCalcExpression(value) {
|
|
3358
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3435
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:303)
|
|
3359
3436
|
return try jsCall(
|
|
3360
3437
|
CorePackages.calc,
|
|
3361
3438
|
Core_ui_core_properties_index._replaceKeywordsWithValues(
|
|
3362
3439
|
Core_ui_core_properties_index._replaceDip(value)))
|
|
3363
3440
|
} else {
|
|
3364
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3441
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:305)
|
|
3365
3442
|
return value
|
|
3366
3443
|
}
|
|
3367
3444
|
}
|
|
3368
3445
|
#sourceLocation()
|
|
3369
3446
|
public static func _replaceDip(_ value: String) -> String {
|
|
3370
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3447
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:311)
|
|
3371
3448
|
return jsReplace(value, Core_ui_core_properties_index.DIP_RE, "$1")
|
|
3372
3449
|
}
|
|
3373
3450
|
#sourceLocation()
|
|
3374
3451
|
public static func _replaceKeywordsWithValues(_ value: String) -> String {
|
|
3375
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3452
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:315)
|
|
3376
3453
|
var cssValue: String = value
|
|
3377
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3454
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:316)
|
|
3378
3455
|
if jsIncludes(cssValue, "unset") {
|
|
3379
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3456
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:317)
|
|
3380
3457
|
cssValue = jsReplace(cssValue, Core_ui_core_properties_index.UNSET_RE, "0")
|
|
3381
3458
|
}
|
|
3382
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3459
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:319)
|
|
3383
3460
|
if jsIncludes(cssValue, "infinity") {
|
|
3384
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3461
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:320)
|
|
3385
3462
|
cssValue = jsReplace(cssValue, Core_ui_core_properties_index.INFINITY_RE, "999999")
|
|
3386
3463
|
}
|
|
3387
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3464
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:322)
|
|
3388
3465
|
return cssValue
|
|
3389
3466
|
}
|
|
3390
3467
|
#sourceLocation()
|
|
3468
|
+
public static func hasCssExpression(_ value: Any?) -> Bool {
|
|
3469
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:326)
|
|
3470
|
+
return jsStringEquals(jsTypeof(value), "string")
|
|
3471
|
+
&& (Core_ui_core_properties_index.isCssVariableExpression(jsLenientString(value))
|
|
3472
|
+
|| Core_ui_core_properties_index.isCssCalcExpression(jsLenientString(value)))
|
|
3473
|
+
}
|
|
3474
|
+
#sourceLocation()
|
|
3475
|
+
/// Evaluate the css-variable and css-calc expressions of a value against the view,
|
|
3476
|
+
/// or `unsetValue` when they do not resolve.
|
|
3477
|
+
public static func _evaluateCssExpressions(
|
|
3478
|
+
_ view: ViewBase?, _ property: String, _ value: String, _ reads: JSMap<String, String>? = nil
|
|
3479
|
+
) throws -> Any? {
|
|
3480
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:334)
|
|
3481
|
+
let newValue: String = try Core_ui_core_properties_index._evaluateCssVariableExpression(
|
|
3482
|
+
view, property, value, jsImplicit(reads))
|
|
3483
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:335)
|
|
3484
|
+
if jsStringEquals(newValue, "unset") {
|
|
3485
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:336)
|
|
3486
|
+
return Core_ui_core_properties_property_shared.unsetValue
|
|
3487
|
+
}
|
|
3488
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:339)
|
|
3489
|
+
do {
|
|
3490
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:340)
|
|
3491
|
+
return try Core_ui_core_properties_index._evaluateCssCalcExpression(newValue)
|
|
3492
|
+
} catch {
|
|
3493
|
+
let e: Any? = jsCaught(error)
|
|
3494
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:342)
|
|
3495
|
+
try NativeScriptKit.Trace.write(
|
|
3496
|
+
"Failed to evaluate css-calc for property [\(property)] for expression [\(newValue)] to \(jsToStringThrowing(view)). \(jsToStringThrowing(jsGet(e, "stack")))",
|
|
3497
|
+
NativeScriptKit.Trace.categories.Error, NativeScriptKit.Trace.messageType.error)
|
|
3498
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:344)
|
|
3499
|
+
return Core_ui_core_properties_property_shared.unsetValue
|
|
3500
|
+
}
|
|
3501
|
+
}
|
|
3502
|
+
#sourceLocation()
|
|
3503
|
+
public static var NO_LONGHAND_VALUES: JSRecord<Any?>?
|
|
3504
|
+
public static func expandSubstitutedShorthand(_ view: ViewBase?, _ shorthand: String, _ substituted: Any?) throws
|
|
3505
|
+
-> JSRecord<Any?>?
|
|
3506
|
+
{
|
|
3507
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:351)
|
|
3508
|
+
if jsStrictEquals(substituted, Core_ui_core_properties_property_shared.unsetValue) {
|
|
3509
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:352)
|
|
3510
|
+
return Core_ui_core_properties_index.NO_LONGHAND_VALUES
|
|
3511
|
+
}
|
|
3512
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:355)
|
|
3513
|
+
let expanded: JSArray<(String, Any?)>? = try Core_ui_core_properties_index._expandCssShorthand(
|
|
3514
|
+
shorthand, try jsConvertedString(substituted))
|
|
3515
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:356)
|
|
3516
|
+
if !jsTruthy(expanded) {
|
|
3517
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:357)
|
|
3518
|
+
try NativeScriptKit.Trace.write(
|
|
3519
|
+
"Failed to expand shorthand [\(shorthand)] resolved to [\(jsToStringThrowing(substituted))] for \(jsToStringThrowing(view)).",
|
|
3520
|
+
NativeScriptKit.Trace.categories.Style, NativeScriptKit.Trace.messageType.warn)
|
|
3521
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:359)
|
|
3522
|
+
return Core_ui_core_properties_index.NO_LONGHAND_VALUES
|
|
3523
|
+
}
|
|
3524
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:362)
|
|
3525
|
+
let values: JSRecord<Any?> = JSRecord<Any?>()
|
|
3526
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:363)
|
|
3527
|
+
var i: Double = 0
|
|
3528
|
+
let length: Double = try jsUnwrap(expanded, "length").length
|
|
3529
|
+
while i < length {
|
|
3530
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:364)
|
|
3531
|
+
try values[jsUnwrap(jsUnwrap(expanded, "i").element(i), "0").0] =
|
|
3532
|
+
jsUnwrap(jsUnwrap(expanded, "i").element(i), "1").1
|
|
3533
|
+
i += 1
|
|
3534
|
+
}
|
|
3535
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:367)
|
|
3536
|
+
return values
|
|
3537
|
+
}
|
|
3538
|
+
#sourceLocation()
|
|
3539
|
+
public static func cssVariablesUnchanged(_ view: ViewBase?, _ reads: Any?) throws -> Bool {
|
|
3540
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:380)
|
|
3541
|
+
do {
|
|
3542
|
+
let __it1 = try jsIteratorOf(reads)
|
|
3543
|
+
var __returned1 = false
|
|
3544
|
+
var __value1: Bool? = nil
|
|
3545
|
+
do {
|
|
3546
|
+
__for1: while try __it1.jsAdvance() {
|
|
3547
|
+
let name: String = (try jsConvertedString((try jsGet(__it1.jsCurrent, "0"))))
|
|
3548
|
+
let value: String = (try jsConvertedString((try jsGet(__it1.jsCurrent, "1"))))
|
|
3549
|
+
do {
|
|
3550
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:381)
|
|
3551
|
+
if try !jsStringEquals(
|
|
3552
|
+
(jsUnwrap(jsUnwrap(view, "style").style, "getCssVariable").getCssVariable(name)
|
|
3553
|
+
?? "undefined"), value)
|
|
3554
|
+
{
|
|
3555
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:382)
|
|
3556
|
+
__value1 = false
|
|
3557
|
+
__returned1 = true
|
|
3558
|
+
break __for1
|
|
3559
|
+
}
|
|
3560
|
+
}
|
|
3561
|
+
}
|
|
3562
|
+
} catch {
|
|
3563
|
+
__it1.jsClose()
|
|
3564
|
+
throw error
|
|
3565
|
+
}
|
|
3566
|
+
try __it1.jsCloseChecked()
|
|
3567
|
+
if __returned1 { return __value1! }
|
|
3568
|
+
}
|
|
3569
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:386)
|
|
3570
|
+
return true
|
|
3571
|
+
}
|
|
3572
|
+
#sourceLocation()
|
|
3573
|
+
/// Evaluate a pending-substitution shorthand against the view and parse it; a value
|
|
3574
|
+
/// that does not survive evaluation expands to no longhands.
|
|
3575
|
+
public static func _substituteCssShorthand(_ view: ViewBase?, _ pending: CssPendingSubstitution?) throws -> Any? {
|
|
3576
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:394)
|
|
3577
|
+
let reads: Any? = JSMap<Any?, Any?>()
|
|
3578
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:395)
|
|
3579
|
+
let substituted: Any? = try Core_ui_core_properties_index._evaluateCssExpressions(
|
|
3580
|
+
view, jsUnwrap(pending, "shorthand").shorthand, jsUnwrap(pending, "value").value,
|
|
3581
|
+
(reads as? JSMap<String, String>))
|
|
3582
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:397)
|
|
3583
|
+
return try JSObject([
|
|
3584
|
+
("substituted", substituted as Any?),
|
|
3585
|
+
(
|
|
3586
|
+
"values",
|
|
3587
|
+
Core_ui_core_properties_index.expandSubstitutedShorthand(
|
|
3588
|
+
view, jsUnwrap(pending, "shorthand").shorthand, substituted)
|
|
3589
|
+
), ("reads", reads as Any?),
|
|
3590
|
+
])
|
|
3591
|
+
}
|
|
3592
|
+
#sourceLocation()
|
|
3593
|
+
public static func keepLocalCssExpression(
|
|
3594
|
+
_ style: Style?, _ cssName: String, _ specified: Any?, _ substituted: Any?, _ reads: Any?
|
|
3595
|
+
) throws {
|
|
3596
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:401)
|
|
3597
|
+
if try !(jsTruthy(jsUnwrap(style, "_localCssExpressions")._localCssExpressions)) {
|
|
3598
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:402)
|
|
3599
|
+
try jsUnwrap(style, setting: "_localCssExpressions")._localCssExpressions = JSMap<String, Any?>()
|
|
3600
|
+
}
|
|
3601
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:404)
|
|
3602
|
+
_ = try jsUnwrap(jsUnwrap(style, "_localCssExpressions")._localCssExpressions, "set").set(
|
|
3603
|
+
cssName,
|
|
3604
|
+
JSObject([("specified", specified as Any?), ("substituted", substituted as Any?), ("reads", reads as Any?)])
|
|
3605
|
+
)
|
|
3606
|
+
}
|
|
3607
|
+
#sourceLocation()
|
|
3608
|
+
public static func releaseLocalCssExpression(_ style: Style?, _ cssName: String) throws {
|
|
3609
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:408)
|
|
3610
|
+
let expressions: JSMap<String, Any?>? = try jsUnwrap(style, "_localCssExpressions")._localCssExpressions
|
|
3611
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:409)
|
|
3612
|
+
if try
|
|
3613
|
+
({ () throws -> Bool in
|
|
3614
|
+
let __v_1 = expressions
|
|
3615
|
+
return jsTruthy(__v_1) ? try jsUnwrap(expressions, "delete").delete(cssName) : jsTruthy(__v_1)
|
|
3616
|
+
}()) && jsUnwrap(expressions, "size").size == 0
|
|
3617
|
+
{
|
|
3618
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:410)
|
|
3619
|
+
try jsUnwrap(style, setting: "_localCssExpressions")._localCssExpressions = nil
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3622
|
+
#sourceLocation()
|
|
3623
|
+
/// Wrap a local setter: a string holding var()/calc() is written substituted and kept
|
|
3624
|
+
/// for the cascade to substitute again, any other write releases what was kept.
|
|
3625
|
+
public static func localCssExpressionSetter<T: Style>(_ cssName: String, _ set: Any?) -> Any? {
|
|
3626
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:419)
|
|
3627
|
+
return
|
|
3628
|
+
({ (__this: Any?, __a: [Any?]) throws -> Any? in
|
|
3629
|
+
let __self: T? = jsConverted(__this, to: T.self)
|
|
3630
|
+
let value: Any? = jsArg(__a, 0)
|
|
3631
|
+
try { () throws -> Void in
|
|
3632
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:420)
|
|
3633
|
+
if Core_ui_core_properties_index.hasCssExpression(value) {
|
|
3634
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:421)
|
|
3635
|
+
let view: ViewBase? = try jsUnwrap(__self.viewRef, "get").get()
|
|
3636
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:422)
|
|
3637
|
+
if jsTruthy(view as Any?) {
|
|
3638
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:423)
|
|
3639
|
+
let reads: Any? = JSMap<Any?, Any?>()
|
|
3640
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:424)
|
|
3641
|
+
let substituted: Any? = try Core_ui_core_properties_index._evaluateCssExpressions(
|
|
3642
|
+
view, cssName, jsLenientString(value), (reads as? JSMap<String, String>))
|
|
3643
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:425)
|
|
3644
|
+
_ = try jsCallMethod(set, "call", __self, substituted)
|
|
3645
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:426)
|
|
3646
|
+
try Core_ui_core_properties_index.keepLocalCssExpression(
|
|
3647
|
+
__self, cssName, jsLenientString(value), substituted, reads)
|
|
3648
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:428)
|
|
3649
|
+
return
|
|
3650
|
+
}
|
|
3651
|
+
}
|
|
3652
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:432)
|
|
3653
|
+
_ = try jsCallMethod(set, "call", __self, value)
|
|
3654
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:433)
|
|
3655
|
+
try Core_ui_core_properties_index.releaseLocalCssExpression(__self, cssName)
|
|
3656
|
+
}()
|
|
3657
|
+
return nil
|
|
3658
|
+
} as JSMethod)
|
|
3659
|
+
}
|
|
3660
|
+
#sourceLocation()
|
|
3661
|
+
public static func setLocalCssExpression(
|
|
3662
|
+
_ style: Style?, _ cssName: String, _ specified: Any?, _ substituted: Any?, _ reads: Any?, _ value: Any?
|
|
3663
|
+
) throws {
|
|
3664
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:438)
|
|
3665
|
+
try jsUnwrap(style, setting: "cssName")[jsKey: cssName] = value
|
|
3666
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:439)
|
|
3667
|
+
try Core_ui_core_properties_index.keepLocalCssExpression(style, cssName, specified, substituted, reads)
|
|
3668
|
+
}
|
|
3669
|
+
#sourceLocation()
|
|
3670
|
+
/// Write a longhand's share of a pending-substitution shorthand as a local value,
|
|
3671
|
+
/// kept for the cascade to substitute again.
|
|
3672
|
+
public static func _setLocalCssShorthandValue(
|
|
3673
|
+
_ style: Style?, _ longhand: String, _ pending: CssPendingSubstitution?, _ shorthand: Any?
|
|
3674
|
+
) throws {
|
|
3675
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:447)
|
|
3676
|
+
try Core_ui_core_properties_index.setLocalCssExpression(
|
|
3677
|
+
style, longhand, pending, jsGet(shorthand, "substituted"), jsGet(shorthand, "reads"),
|
|
3678
|
+
(jsHasKey(jsRecordOf(jsGet(shorthand, "values"), as: JSRecord<Any?>.self) { $0 }, longhand)
|
|
3679
|
+
? jsUnwrap(jsRecordOf(jsGet(shorthand, "values"), as: JSRecord<Any?>.self) { $0 }, "longhand")[
|
|
3680
|
+
entry: longhand] : Core_ui_core_properties_property_shared.unsetValue))
|
|
3681
|
+
}
|
|
3682
|
+
#sourceLocation()
|
|
3683
|
+
/// Substitute the kept local var()/calc() values again, writing only those whose
|
|
3684
|
+
/// substitution changed since they were last written.
|
|
3685
|
+
public static func _reevaluateLocalCssExpressions(_ view: ViewBase?) throws {
|
|
3686
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:455)
|
|
3687
|
+
let style: Style? = try jsUnwrap(view, "style").style
|
|
3688
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:456)
|
|
3689
|
+
let expressions: JSMap<String, Any?>? = try jsUnwrap(style, "_localCssExpressions")._localCssExpressions
|
|
3690
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:457)
|
|
3691
|
+
if !jsTruthy(expressions) {
|
|
3692
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:458)
|
|
3693
|
+
return
|
|
3694
|
+
}
|
|
3695
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:461)
|
|
3696
|
+
var shorthands: JSMap<CssPendingSubstitution, Any?>? = nil
|
|
3697
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:463)
|
|
3698
|
+
let entries: JSArray<(String, Any?)>? = try JSArray<(String, Any?)>.from(
|
|
3699
|
+
jsObjectRequired(expressions).entries())
|
|
3700
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:464)
|
|
3701
|
+
var i: Double = 0
|
|
3702
|
+
let length: Double = try jsUnwrap(entries, "length").length
|
|
3703
|
+
var __first1 = true
|
|
3704
|
+
while true {
|
|
3705
|
+
if !__first1 { i += 1 }
|
|
3706
|
+
__first1 = false
|
|
3707
|
+
if !(i < length) { break }
|
|
3708
|
+
do {
|
|
3709
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:465)
|
|
3710
|
+
let __d_1: (String, Any?) = try jsDestructured(jsImplicit(jsUnwrap(entries, "i").element(i)), nil)
|
|
3711
|
+
let cssName: String = __d_1.0
|
|
3712
|
+
let expression: Any? = __d_1.1
|
|
3713
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:467)
|
|
3714
|
+
if try !jsStrictEquals(
|
|
3715
|
+
((jsUnwrap(style, "_localCssExpressions")._localCssExpressions as JSMap<String, Any?>?)?.get(
|
|
3716
|
+
cssName) ?? nil), expression)
|
|
3717
|
+
|| Core_ui_core_properties_index.cssVariablesUnchanged(
|
|
3718
|
+
view, (jsGet(expression, "reads") as? JSMap<String, String>))
|
|
3719
|
+
{
|
|
3720
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:468)
|
|
3721
|
+
continue
|
|
3722
|
+
}
|
|
3723
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:471)
|
|
3724
|
+
let specified: Any? = try jsGet(expression, "specified")
|
|
3725
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:472)
|
|
3726
|
+
var substituted: Any? = nil
|
|
3727
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:473)
|
|
3728
|
+
var reads: Any? = nil
|
|
3729
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:474)
|
|
3730
|
+
var value: Any? = nil
|
|
3731
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:476)
|
|
3732
|
+
if specified is CssPendingSubstitution {
|
|
3733
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:477)
|
|
3734
|
+
if !jsTruthy(shorthands as Any?) {
|
|
3735
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:478)
|
|
3736
|
+
shorthands = JSMap<CssPendingSubstitution, Any?>()
|
|
3737
|
+
}
|
|
3738
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:480)
|
|
3739
|
+
var shorthand: Any? =
|
|
3740
|
+
try
|
|
3741
|
+
(((specified as? CssPendingSubstitution) as CssPendingSubstitution?).map {
|
|
3742
|
+
try jsUnwrap(shorthands, "get").get($0) ?? nil
|
|
3743
|
+
} ?? nil)
|
|
3744
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:481)
|
|
3745
|
+
if !jsTruthy(shorthand) {
|
|
3746
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:482)
|
|
3747
|
+
reads = JSMap<Any?, Any?>()
|
|
3748
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:484)
|
|
3749
|
+
shorthand = try JSObject([
|
|
3750
|
+
(
|
|
3751
|
+
"substituted",
|
|
3752
|
+
Core_ui_core_properties_index._evaluateCssExpressions(
|
|
3753
|
+
view, jsUnwrap(specified as? CssPendingSubstitution, "shorthand").shorthand,
|
|
3754
|
+
jsUnwrap(specified as? CssPendingSubstitution, "value").value,
|
|
3755
|
+
(reads as? JSMap<String, String>))
|
|
3756
|
+
), ("values", nil), ("reads", reads as Any?),
|
|
3757
|
+
])
|
|
3758
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:485)
|
|
3759
|
+
_ = try jsUnwrap(shorthands, "set").set(
|
|
3760
|
+
(jsCastPresent(specified) as CssPendingSubstitution), shorthand)
|
|
3761
|
+
}
|
|
3762
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:487)
|
|
3763
|
+
substituted = try jsGet(shorthand, "substituted")
|
|
3764
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:488)
|
|
3765
|
+
reads = try jsGet(shorthand, "reads")
|
|
3766
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:489)
|
|
3767
|
+
if try jsStrictEquals(substituted, jsGet(expression, "substituted")) {
|
|
3768
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:490)
|
|
3769
|
+
try jsSet(expression, "reads", reads)
|
|
3770
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:491)
|
|
3771
|
+
continue
|
|
3772
|
+
}
|
|
3773
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:493)
|
|
3774
|
+
if try !(jsTruthy(jsGet(shorthand, "values"))) {
|
|
3775
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:494)
|
|
3776
|
+
try jsSet(
|
|
3777
|
+
shorthand, "values",
|
|
3778
|
+
Core_ui_core_properties_index.expandSubstitutedShorthand(
|
|
3779
|
+
view, jsUnwrap(specified as? CssPendingSubstitution, "shorthand").shorthand, substituted
|
|
3780
|
+
))
|
|
3781
|
+
}
|
|
3782
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:496)
|
|
3783
|
+
value =
|
|
3784
|
+
try
|
|
3785
|
+
(jsHasKey(jsRecordOf(jsGet(shorthand, "values"), as: JSRecord<Any?>.self) { $0 }, cssName)
|
|
3786
|
+
? jsUnwrap(jsRecordOf(jsGet(shorthand, "values"), as: JSRecord<Any?>.self) { $0 }, "cssName")[
|
|
3787
|
+
entry: cssName] : Core_ui_core_properties_property_shared.unsetValue)
|
|
3788
|
+
} else {
|
|
3789
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:498)
|
|
3790
|
+
reads = JSMap<Any?, Any?>()
|
|
3791
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:499)
|
|
3792
|
+
substituted = try Core_ui_core_properties_index._evaluateCssExpressions(
|
|
3793
|
+
view, cssName, jsLenientString(specified), (reads as? JSMap<String, String>))
|
|
3794
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:500)
|
|
3795
|
+
if try jsStrictEquals(substituted, jsGet(expression, "substituted")) {
|
|
3796
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:501)
|
|
3797
|
+
try jsSet(expression, "reads", reads)
|
|
3798
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:502)
|
|
3799
|
+
continue
|
|
3800
|
+
}
|
|
3801
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:504)
|
|
3802
|
+
value = substituted
|
|
3803
|
+
}
|
|
3804
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:507)
|
|
3805
|
+
do {
|
|
3806
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:508)
|
|
3807
|
+
try Core_ui_core_properties_index.setLocalCssExpression(
|
|
3808
|
+
style, cssName, specified, substituted, reads, value)
|
|
3809
|
+
} catch {
|
|
3810
|
+
let e: Any? = jsCaught(error)
|
|
3811
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:510)
|
|
3812
|
+
try NativeScriptKit.Trace.write(
|
|
3813
|
+
"Failed to apply property [\(cssName)] with value [\(jsToStringThrowing(value))] to \(jsToStringThrowing(view)). \(jsToStringThrowing(jsGet(e, "stack")))",
|
|
3814
|
+
NativeScriptKit.Trace.categories.Error, NativeScriptKit.Trace.messageType.error)
|
|
3815
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:511)
|
|
3816
|
+
do {
|
|
3817
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:512)
|
|
3818
|
+
try jsUnwrap(style, setting: "cssName")[jsKey: cssName] =
|
|
3819
|
+
Core_ui_core_properties_property_shared.unsetValue
|
|
3820
|
+
} catch {
|
|
3821
|
+
let e: Any? = jsCaught(error)
|
|
3822
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:514)
|
|
3823
|
+
try NativeScriptKit.Trace.write(
|
|
3824
|
+
"Failed to unset property [\(cssName)] on \(jsToStringThrowing(view)). \(jsToStringThrowing(jsGet(e, "stack")))",
|
|
3825
|
+
NativeScriptKit.Trace.categories.Error, NativeScriptKit.Trace.messageType.error)
|
|
3826
|
+
}
|
|
3827
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:517)
|
|
3828
|
+
try Core_ui_core_properties_index.keepLocalCssExpression(
|
|
3829
|
+
style, cssName, specified, substituted, reads)
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3833
|
+
}
|
|
3834
|
+
#sourceLocation()
|
|
3391
3835
|
public static func getPropertiesFromMap(_ map: Any?) throws -> Any? {
|
|
3392
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3836
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:523)
|
|
3393
3837
|
let symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(map)
|
|
3394
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3838
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:524)
|
|
3395
3839
|
let len: Double = try jsUnwrap(symbols, "length").length
|
|
3396
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3840
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:525)
|
|
3397
3841
|
let props: JSArray<Any?> = try JSArray<Any?>.holes(Double(jsArrayLength(len)))
|
|
3398
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3842
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:526)
|
|
3399
3843
|
var i: Double = 0
|
|
3400
3844
|
while i < len {
|
|
3401
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3845
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:527)
|
|
3402
3846
|
try props[(i as Double)] = jsGet(map, (jsImplicit(jsUnwrap(symbols, "i").element(i))?.key ?? "undefined"))
|
|
3403
3847
|
i += 1
|
|
3404
3848
|
}
|
|
3405
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3849
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:529)
|
|
3406
3850
|
return props
|
|
3407
3851
|
}
|
|
3408
3852
|
#sourceLocation()
|
|
3409
3853
|
public static func inheritablePropertyValuesOn(_ view: ViewBase?) throws -> JSArray<Any?>? {
|
|
3410
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3854
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1758)
|
|
3411
3855
|
let array: JSArray<Any?> = JSArray<Any?>()
|
|
3412
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3856
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1762)
|
|
3413
3857
|
for prop in try jsIterated(
|
|
3414
3858
|
Core_ui_core_properties_index.inheritableProperties, "inheritableProperties is not iterable")
|
|
3415
3859
|
{
|
|
3416
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3860
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1763)
|
|
3417
3861
|
let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
|
|
3418
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3862
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1764)
|
|
3419
3863
|
let valueSource: Double = try jsConvertedNumber(
|
|
3420
3864
|
({ () throws -> Any? in
|
|
3421
|
-
let
|
|
3422
|
-
return jsTruthy(
|
|
3865
|
+
let __v_11 = try jsUnwrap(view, "sourceKey")[jsKey: sourceKey.key]
|
|
3866
|
+
return jsTruthy(__v_11) ? __v_11 : ValueSource.Default
|
|
3423
3867
|
}()))
|
|
3424
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3868
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1765)
|
|
3425
3869
|
if !jsLenientNumberEquals(valueSource, ValueSource.Default) {
|
|
3426
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3870
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1768)
|
|
3427
3871
|
_ = try array.push(
|
|
3428
3872
|
JSObject([
|
|
3429
3873
|
("property", prop), ("value", jsUnwrap(view, "prop.name")[jsKey: jsUnwrap(prop, "name").name]),
|
|
3430
3874
|
]))
|
|
3431
3875
|
}
|
|
3432
3876
|
}
|
|
3433
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3877
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1772)
|
|
3434
3878
|
return array
|
|
3435
3879
|
}
|
|
3436
3880
|
#sourceLocation()
|
|
3437
3881
|
public static func inheritableCssPropertyValuesOn(_ style: Style?) throws -> JSArray<Any?>? {
|
|
3438
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3882
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1776)
|
|
3439
3883
|
let array: JSArray<Any?> = JSArray<Any?>()
|
|
3440
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3884
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1780)
|
|
3441
3885
|
for prop in try jsIterated(
|
|
3442
3886
|
Core_ui_core_properties_index.inheritableCssProperties, "inheritableCssProperties is not iterable")
|
|
3443
3887
|
{
|
|
3444
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3888
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1781)
|
|
3445
3889
|
let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
|
|
3446
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3890
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1782)
|
|
3447
3891
|
let valueSource: Double = try jsConvertedNumber(
|
|
3448
3892
|
({ () throws -> Any? in
|
|
3449
|
-
let
|
|
3450
|
-
return jsTruthy(
|
|
3893
|
+
let __v_12 = try jsUnwrap(style, "sourceKey")[jsKey: sourceKey.key]
|
|
3894
|
+
return jsTruthy(__v_12) ? __v_12 : ValueSource.Default
|
|
3451
3895
|
}()))
|
|
3452
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3896
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1783)
|
|
3453
3897
|
if !jsLenientNumberEquals(valueSource, ValueSource.Default) {
|
|
3454
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3898
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1786)
|
|
3455
3899
|
_ = try array.push(
|
|
3456
3900
|
JSObject([
|
|
3457
3901
|
("property", prop), ("value", jsUnwrap(style, "prop.name")[jsKey: jsUnwrap(prop, "name").name]),
|
|
3458
3902
|
]))
|
|
3459
3903
|
}
|
|
3460
3904
|
}
|
|
3461
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3905
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1790)
|
|
3462
3906
|
return array
|
|
3463
3907
|
}
|
|
3464
3908
|
#sourceLocation()
|
|
3465
3909
|
public static var initNativeView: Any? = nil
|
|
3466
3910
|
public static func applyPendingNativeSetters(_ view: ViewBase?) throws {
|
|
3467
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3911
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1807)
|
|
3468
3912
|
let suspendedUpdates: JSRecord<Any?>? = try jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates
|
|
3469
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3913
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1808)
|
|
3470
3914
|
for propertyName in jsKeysOf(suspendedUpdates) {
|
|
3471
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3915
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1809)
|
|
3472
3916
|
if !jsTruthy(jsHasOwn(suspendedUpdates, propertyName)) {
|
|
3473
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3917
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1809)
|
|
3474
3918
|
continue
|
|
3475
3919
|
}
|
|
3476
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3920
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1810)
|
|
3477
3921
|
let property: Any? = try jsUnwrap(suspendedUpdates, "propertyName")[entry: propertyName]
|
|
3478
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3922
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1811)
|
|
3479
3923
|
let setNative: JSSymbol = try (jsCastPresent(jsGet(property, "setNative")) as JSSymbol)
|
|
3480
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3924
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1812)
|
|
3481
3925
|
if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
|
|
3482
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3483
|
-
let
|
|
3484
|
-
let getDefault: JSSymbol = (try jsCastPresent((try jsGet(
|
|
3485
|
-
let isStyleProperty: Bool = (try jsConvertedBool((try jsGet(
|
|
3486
|
-
let defaultValueKey: JSSymbol = (try jsCastPresent((try jsGet(
|
|
3487
|
-
let defaultValue: Any? = (try jsGet(
|
|
3488
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3926
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1813)
|
|
3927
|
+
let __d_2: Any? = property
|
|
3928
|
+
let getDefault: JSSymbol = (try jsCastPresent((try jsGet(__d_2, "getDefault"))) as JSSymbol)
|
|
3929
|
+
let isStyleProperty: Bool = (try jsConvertedBool((try jsGet(__d_2, "isStyleProperty"))))
|
|
3930
|
+
let defaultValueKey: JSSymbol = (try jsCastPresent((try jsGet(__d_2, "defaultValueKey"))) as JSSymbol)
|
|
3931
|
+
let defaultValue: Any? = (try jsGet(__d_2, "defaultValue"))
|
|
3932
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1814)
|
|
3489
3933
|
var value: Any? = nil
|
|
3490
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3934
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1815)
|
|
3491
3935
|
if isStyleProperty {
|
|
3492
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3936
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1816)
|
|
3493
3937
|
let style: Style? = try jsUnwrap(view, "style").style
|
|
3494
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3938
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1817)
|
|
3495
3939
|
if try jsLenientBool(jsCallMethod(property, "isSet", jsUnwrap(view, "style").style)) {
|
|
3496
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3940
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1818)
|
|
3497
3941
|
if !jsHasKey(style, defaultValueKey.key) {
|
|
3498
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3942
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1819)
|
|
3499
3943
|
try jsUnwrap(style, setting: "defaultValueKey")[jsKey: defaultValueKey.key] =
|
|
3500
3944
|
(jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
|
|
3501
3945
|
? jsCallMethod(jsUnwrap(view, "getDefault"), getDefault.key) : defaultValue)
|
|
3502
3946
|
}
|
|
3503
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3947
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1821)
|
|
3504
3948
|
value = try jsUnwrap(jsUnwrap(view, "style").style, "propertyName")[jsKey: propertyName]
|
|
3505
3949
|
} else {
|
|
3506
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3950
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1823)
|
|
3507
3951
|
value = try jsUnwrap(style, "defaultValueKey")[jsKey: defaultValueKey.key]
|
|
3508
3952
|
}
|
|
3509
3953
|
} else {
|
|
3510
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3954
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1826)
|
|
3511
3955
|
if try jsUnwrap(property as? Property, "isSet").isSet(view) {
|
|
3512
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3956
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1827)
|
|
3513
3957
|
if !jsHasKey(view, defaultValueKey.key) {
|
|
3514
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3958
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1828)
|
|
3515
3959
|
try jsUnwrap(view, setting: "defaultValueKey")[jsKey: defaultValueKey.key] =
|
|
3516
3960
|
(jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
|
|
3517
3961
|
? jsCallMethod(jsUnwrap(view, "getDefault"), getDefault.key) : defaultValue)
|
|
3518
3962
|
}
|
|
3519
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3963
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1830)
|
|
3520
3964
|
value = try jsUnwrap(view, "propertyName")[jsKey: propertyName]
|
|
3521
3965
|
} else {
|
|
3522
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3966
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1832)
|
|
3523
3967
|
value = try jsUnwrap(view, "defaultValueKey")[jsKey: defaultValueKey.key]
|
|
3524
3968
|
}
|
|
3525
3969
|
}
|
|
3526
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3970
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1836)
|
|
3527
3971
|
_ = try jsCallMethod(jsUnwrap(view, "setNative"), setNative.key, value)
|
|
3528
3972
|
}
|
|
3529
3973
|
}
|
|
3530
3974
|
}
|
|
3531
3975
|
#sourceLocation()
|
|
3532
3976
|
public static func applyAllNativeSetters(_ view: ViewBase?) throws {
|
|
3533
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3977
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1842)
|
|
3534
3978
|
var symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(view)
|
|
3535
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3979
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1843)
|
|
3536
3980
|
for symbol in try jsIterated(symbols, "symbols is not iterable") {
|
|
3537
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3981
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1844)
|
|
3538
3982
|
let property: Property? = Core_ui_core_properties_index.symbolPropertyMap[jsKey: symbol.key] as? Property
|
|
3539
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3983
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1845)
|
|
3540
3984
|
if !jsTruthy(property) {
|
|
3541
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3985
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1846)
|
|
3542
3986
|
continue
|
|
3543
3987
|
}
|
|
3544
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3988
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1849)
|
|
3545
3989
|
let setNative: JSSymbol = try jsUnwrap(property, "setNative").setNative
|
|
3546
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3990
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1850)
|
|
3547
3991
|
let getDefault: JSSymbol = try jsUnwrap(property, "getDefault").getDefault
|
|
3548
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3992
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1851)
|
|
3549
3993
|
if jsHasKey(view, setNative.key) {
|
|
3550
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3994
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1852)
|
|
3551
3995
|
let defaultValueKey: JSSymbol = try jsUnwrap(property, "defaultValueKey").defaultValueKey
|
|
3552
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3996
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1853)
|
|
3553
3997
|
if !jsHasKey(view, defaultValueKey.key) {
|
|
3554
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
3998
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1854)
|
|
3555
3999
|
try jsUnwrap(view, setting: "defaultValueKey")[jsKey: defaultValueKey.key] =
|
|
3556
4000
|
(jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
|
|
3557
4001
|
? jsCallMethod(jsUnwrap(view, "getDefault"), getDefault.key)
|
|
3558
4002
|
: jsUnwrap(property, "defaultValue").defaultValue)
|
|
3559
4003
|
}
|
|
3560
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4004
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1857)
|
|
3561
4005
|
let value: Any? = try jsUnwrap(view, "symbol")[jsKey: symbol.key]
|
|
3562
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4006
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1858)
|
|
3563
4007
|
_ = try jsCallMethod(jsUnwrap(view, "setNative"), setNative.key, value)
|
|
3564
4008
|
}
|
|
3565
4009
|
}
|
|
3566
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4010
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1862)
|
|
3567
4011
|
let style: Style? = try jsUnwrap(view, "style").style
|
|
3568
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4012
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1863)
|
|
3569
4013
|
symbols = jsOwnPropertySymbols(style)
|
|
3570
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4014
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1864)
|
|
3571
4015
|
for symbol in try jsIterated(symbols, "symbols is not iterable") {
|
|
3572
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4016
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1865)
|
|
3573
4017
|
let property: Any? = Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: symbol.key]
|
|
3574
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4018
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1866)
|
|
3575
4019
|
if !jsTruthy(property) {
|
|
3576
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4020
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1867)
|
|
3577
4021
|
continue
|
|
3578
4022
|
}
|
|
3579
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4023
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1870)
|
|
3580
4024
|
if try jsTruthy(
|
|
3581
4025
|
jsUnwrap(view, "property.setNative")[
|
|
3582
4026
|
jsKey: (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key])
|
|
3583
4027
|
{
|
|
3584
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4028
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1871)
|
|
3585
4029
|
let defaultValueKey: JSSymbol = try (jsCastPresent(jsGet(property, "defaultValueKey")) as JSSymbol)
|
|
3586
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4030
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1872)
|
|
3587
4031
|
if !jsHasKey(style, defaultValueKey.key) {
|
|
3588
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4032
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1873)
|
|
3589
4033
|
try jsUnwrap(style, setting: "defaultValueKey")[jsKey: defaultValueKey.key] =
|
|
3590
4034
|
(jsTruthy(
|
|
3591
4035
|
jsUnwrap(view, "property.getDefault")[
|
|
@@ -3595,9 +4039,9 @@ public enum Core_ui_core_properties_index {
|
|
|
3595
4039
|
(jsCastPresent(jsGet(property, "getDefault")) as JSSymbol).key)
|
|
3596
4040
|
: jsGet(property, "defaultValue"))
|
|
3597
4041
|
}
|
|
3598
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4042
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1876)
|
|
3599
4043
|
let value: Any? = try jsUnwrap(style, "symbol")[jsKey: symbol.key]
|
|
3600
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4044
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1877)
|
|
3601
4045
|
_ = try jsCallMethod(
|
|
3602
4046
|
jsUnwrap(view, "property.setNative"), (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key,
|
|
3603
4047
|
value)
|
|
@@ -3606,73 +4050,73 @@ public enum Core_ui_core_properties_index {
|
|
|
3606
4050
|
}
|
|
3607
4051
|
#sourceLocation()
|
|
3608
4052
|
public static func resetNativeView(_ view: ViewBase?) throws {
|
|
3609
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4053
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1883)
|
|
3610
4054
|
var symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(view)
|
|
3611
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4055
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1884)
|
|
3612
4056
|
for symbol in try jsIterated(symbols, "symbols is not iterable") {
|
|
3613
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4057
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1885)
|
|
3614
4058
|
let property: Property? = Core_ui_core_properties_index.symbolPropertyMap[jsKey: symbol.key] as? Property
|
|
3615
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4059
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1886)
|
|
3616
4060
|
if !jsTruthy(property) {
|
|
3617
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4061
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1887)
|
|
3618
4062
|
continue
|
|
3619
4063
|
}
|
|
3620
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4064
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1890)
|
|
3621
4065
|
if try jsTruthy(jsUnwrap(view, "property.setNative")[jsKey: jsUnwrap(property, "setNative").setNative.key])
|
|
3622
4066
|
{
|
|
3623
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4067
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1891)
|
|
3624
4068
|
if try jsHasKey(view, jsUnwrap(property, "defaultValueKey").defaultValueKey.key) {
|
|
3625
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4069
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1892)
|
|
3626
4070
|
_ = try jsCallMethod(
|
|
3627
4071
|
jsUnwrap(view, "property.setNative"), jsUnwrap(property, "setNative").setNative.key,
|
|
3628
4072
|
jsUnwrap(view, "property.defaultValueKey")[
|
|
3629
4073
|
jsKey: jsUnwrap(property, "defaultValueKey").defaultValueKey.key])
|
|
3630
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4074
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1893)
|
|
3631
4075
|
_ =
|
|
3632
4076
|
((try? jsDelete(
|
|
3633
4077
|
jsUnwrap(view, "property.defaultValueKey"),
|
|
3634
4078
|
jsUnwrap(property, "defaultValueKey").defaultValueKey.key)) ?? false)
|
|
3635
4079
|
} else {
|
|
3636
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4080
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1895)
|
|
3637
4081
|
_ = try jsCallMethod(
|
|
3638
4082
|
jsUnwrap(view, "property.setNative"), jsUnwrap(property, "setNative").setNative.key,
|
|
3639
4083
|
jsUnwrap(property, "defaultValue").defaultValue)
|
|
3640
4084
|
}
|
|
3641
4085
|
}
|
|
3642
4086
|
}
|
|
3643
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4087
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1900)
|
|
3644
4088
|
let style: Style? = try jsUnwrap(view, "style").style
|
|
3645
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4089
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1902)
|
|
3646
4090
|
symbols = jsOwnPropertySymbols(style)
|
|
3647
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4091
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1903)
|
|
3648
4092
|
for symbol in try jsIterated(symbols, "symbols is not iterable") {
|
|
3649
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4093
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1904)
|
|
3650
4094
|
let property: Any? = Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: symbol.key]
|
|
3651
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4095
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1905)
|
|
3652
4096
|
if !jsTruthy(property) {
|
|
3653
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4097
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1906)
|
|
3654
4098
|
continue
|
|
3655
4099
|
}
|
|
3656
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4100
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1909)
|
|
3657
4101
|
if try jsTruthy(
|
|
3658
4102
|
jsUnwrap(view, "property.setNative")[
|
|
3659
4103
|
jsKey: (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key])
|
|
3660
4104
|
{
|
|
3661
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4105
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1910)
|
|
3662
4106
|
if try jsHasKey(style, (jsCastPresent(jsGet(property, "defaultValueKey")) as JSSymbol).key) {
|
|
3663
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4107
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1911)
|
|
3664
4108
|
_ = try jsCallMethod(
|
|
3665
4109
|
jsUnwrap(view, "property.setNative"),
|
|
3666
4110
|
(jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key,
|
|
3667
4111
|
jsUnwrap(style, "property.defaultValueKey")[
|
|
3668
4112
|
jsKey: (jsCastPresent(jsGet(property, "defaultValueKey")) as JSSymbol).key])
|
|
3669
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4113
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1912)
|
|
3670
4114
|
_ =
|
|
3671
4115
|
((try? jsDelete(
|
|
3672
4116
|
jsUnwrap(style, "property.defaultValueKey"),
|
|
3673
4117
|
(jsCastPresent(jsGet(property, "defaultValueKey")) as JSSymbol).key)) ?? false)
|
|
3674
4118
|
} else {
|
|
3675
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4119
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1914)
|
|
3676
4120
|
_ = try jsCallMethod(
|
|
3677
4121
|
jsUnwrap(view, "property.setNative"),
|
|
3678
4122
|
(jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key, jsGet(property, "defaultValue"))
|
|
@@ -3682,30 +4126,30 @@ public enum Core_ui_core_properties_index {
|
|
|
3682
4126
|
}
|
|
3683
4127
|
#sourceLocation()
|
|
3684
4128
|
public static func clearInheritedProperties(_ view: ViewBase?) throws {
|
|
3685
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4129
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1921)
|
|
3686
4130
|
for prop in try jsIterated(
|
|
3687
4131
|
Core_ui_core_properties_index.inheritableProperties, "inheritableProperties is not iterable")
|
|
3688
4132
|
{
|
|
3689
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4133
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1922)
|
|
3690
4134
|
let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
|
|
3691
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4135
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1923)
|
|
3692
4136
|
if try jsStrictEquals(jsUnwrap(view, "sourceKey")[jsKey: sourceKey.key], ValueSource.Inherited) {
|
|
3693
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4137
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1924)
|
|
3694
4138
|
_ = try jsCallMethod(
|
|
3695
4139
|
jsUnwrap(prop, "set").set, "call", view, Core_ui_core_properties_property_shared.unsetValue)
|
|
3696
4140
|
}
|
|
3697
4141
|
}
|
|
3698
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4142
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1928)
|
|
3699
4143
|
let style: Style? = try jsUnwrap(view, "style").style
|
|
3700
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4144
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1929)
|
|
3701
4145
|
for prop in try jsIterated(
|
|
3702
4146
|
Core_ui_core_properties_index.inheritableCssProperties, "inheritableCssProperties is not iterable")
|
|
3703
4147
|
{
|
|
3704
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4148
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1930)
|
|
3705
4149
|
let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
|
|
3706
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4150
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1931)
|
|
3707
4151
|
if try jsStrictEquals(jsUnwrap(style, "sourceKey")[jsKey: sourceKey.key], ValueSource.Inherited) {
|
|
3708
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4152
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1932)
|
|
3709
4153
|
_ = try jsCallMethod(
|
|
3710
4154
|
jsUnwrap(prop, "setInheritedValue").setInheritedValue, "call", style,
|
|
3711
4155
|
Core_ui_core_properties_property_shared.unsetValue)
|
|
@@ -3714,26 +4158,26 @@ public enum Core_ui_core_properties_index {
|
|
|
3714
4158
|
}
|
|
3715
4159
|
#sourceLocation()
|
|
3716
4160
|
public static func resetCSSProperties(_ style: Style?) throws {
|
|
3717
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4161
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1938)
|
|
3718
4162
|
let symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(style)
|
|
3719
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4163
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1939)
|
|
3720
4164
|
for symbol in try jsIterated(symbols, "symbols is not iterable") {
|
|
3721
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4165
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1940)
|
|
3722
4166
|
var cssProperty: Any? = nil
|
|
3723
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4167
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1941)
|
|
3724
4168
|
if jsTruthy(
|
|
3725
4169
|
({ () -> Any? in
|
|
3726
4170
|
cssProperty = Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: symbol.key]
|
|
3727
4171
|
return cssProperty
|
|
3728
4172
|
}()))
|
|
3729
4173
|
{
|
|
3730
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4174
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1942)
|
|
3731
4175
|
try jsUnwrap(style, setting: "cssProperty.cssName")[
|
|
3732
4176
|
jsKey: jsPropertyKey(jsGet(cssProperty, "cssName"))] =
|
|
3733
4177
|
Core_ui_core_properties_property_shared.unsetValue
|
|
3734
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4178
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1943)
|
|
3735
4179
|
if cssProperty is CssAnimationProperty {
|
|
3736
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4180
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1944)
|
|
3737
4181
|
try jsUnwrap(style, setting: "cssProperty.keyframe")[
|
|
3738
4182
|
jsKey: jsUnwrap(cssProperty as? CssAnimationProperty, "keyframe").keyframe] =
|
|
3739
4183
|
Core_ui_core_properties_property_shared.unsetValue
|
|
@@ -3743,24 +4187,24 @@ public enum Core_ui_core_properties_index {
|
|
|
3743
4187
|
}
|
|
3744
4188
|
#sourceLocation()
|
|
3745
4189
|
public static func propagateInheritableProperties(_ view: ViewBase?, _ child: ViewBase?) throws {
|
|
3746
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4190
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1951)
|
|
3747
4191
|
let inheritablePropertyValues: JSArray<Any?>? = try Core_ui_core_properties_index.inheritablePropertyValuesOn(
|
|
3748
4192
|
view)
|
|
3749
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4193
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1952)
|
|
3750
4194
|
for pair in try jsIterated(inheritablePropertyValues, "inheritablePropertyValues is not iterable") {
|
|
3751
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4195
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1953)
|
|
3752
4196
|
let prop: InheritedProperty? = try jsGet(pair, "property") as? InheritedProperty
|
|
3753
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4197
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1954)
|
|
3754
4198
|
let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
|
|
3755
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4199
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1955)
|
|
3756
4200
|
let currentValueSource: Double = try jsConvertedNumber(
|
|
3757
4201
|
({ () throws -> Any? in
|
|
3758
|
-
let
|
|
3759
|
-
return jsTruthy(
|
|
4202
|
+
let __v_13 = try jsUnwrap(child, "sourceKey")[jsKey: sourceKey.key]
|
|
4203
|
+
return jsTruthy(__v_13) ? __v_13 : ValueSource.Default
|
|
3760
4204
|
}()))
|
|
3761
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4205
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1956)
|
|
3762
4206
|
if currentValueSource <= ValueSource.Inherited {
|
|
3763
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4207
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1957)
|
|
3764
4208
|
_ = try jsCallMethod(
|
|
3765
4209
|
jsUnwrap(prop, "setInheritedValue").setInheritedValue, "call", child, jsGet(pair, "value"))
|
|
3766
4210
|
}
|
|
@@ -3768,24 +4212,24 @@ public enum Core_ui_core_properties_index {
|
|
|
3768
4212
|
}
|
|
3769
4213
|
#sourceLocation()
|
|
3770
4214
|
public static func propagateInheritableCssProperties(_ parentStyle: Style?, _ childStyle: Style?) throws {
|
|
3771
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4215
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1963)
|
|
3772
4216
|
let inheritableCssPropertyValues: JSArray<Any?>? =
|
|
3773
4217
|
try Core_ui_core_properties_index.inheritableCssPropertyValuesOn(parentStyle)
|
|
3774
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4218
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1964)
|
|
3775
4219
|
for pair in try jsIterated(inheritableCssPropertyValues, "inheritableCssPropertyValues is not iterable") {
|
|
3776
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4220
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1965)
|
|
3777
4221
|
let prop: InheritedCssProperty? = try jsGet(pair, "property") as? InheritedCssProperty
|
|
3778
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4222
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1966)
|
|
3779
4223
|
let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
|
|
3780
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4224
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1967)
|
|
3781
4225
|
let currentValueSource: Double = try jsConvertedNumber(
|
|
3782
4226
|
({ () throws -> Any? in
|
|
3783
|
-
let
|
|
3784
|
-
return jsTruthy(
|
|
4227
|
+
let __v_14 = try jsUnwrap(childStyle, "sourceKey")[jsKey: sourceKey.key]
|
|
4228
|
+
return jsTruthy(__v_14) ? __v_14 : ValueSource.Default
|
|
3785
4229
|
}()))
|
|
3786
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4230
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1968)
|
|
3787
4231
|
if currentValueSource <= ValueSource.Inherited {
|
|
3788
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4232
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1969)
|
|
3789
4233
|
_ = try jsCallMethod(
|
|
3790
4234
|
jsUnwrap(prop, "setInheritedValue").setInheritedValue, "call", childStyle, jsGet(pair, "value"),
|
|
3791
4235
|
ValueSource.Inherited)
|
|
@@ -3794,64 +4238,64 @@ public enum Core_ui_core_properties_index {
|
|
|
3794
4238
|
}
|
|
3795
4239
|
#sourceLocation()
|
|
3796
4240
|
public static func getSetProperties(_ view: ViewBase?) throws -> JSArray<(String, Any?)>? {
|
|
3797
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4241
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1975)
|
|
3798
4242
|
let result: JSArray<Any?> = JSArray<Any?>()
|
|
3799
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4243
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1977)
|
|
3800
4244
|
let ownProps: JSArray<String>? = jsOwnPropertyNames(view)
|
|
3801
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4245
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1978)
|
|
3802
4246
|
var i: Double = 0
|
|
3803
4247
|
while try i < jsUnwrap(ownProps, "length").length {
|
|
3804
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4248
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1979)
|
|
3805
4249
|
let prop: String? = try jsUnwrap(ownProps, "i").element(i)
|
|
3806
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4250
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1980)
|
|
3807
4251
|
_ = try result.push(
|
|
3808
4252
|
JSArray<Any?>([(prop as Any?), jsUnwrap(view, "prop")[jsKey: jsToString(prop as Any?)]]))
|
|
3809
4253
|
i += 1
|
|
3810
4254
|
}
|
|
3811
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4255
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1983)
|
|
3812
4256
|
let symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(view)
|
|
3813
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4257
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1984)
|
|
3814
4258
|
for symbol in try jsIterated(symbols, "symbols is not iterable") {
|
|
3815
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4259
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1985)
|
|
3816
4260
|
let property: Any? = Core_ui_core_properties_index.symbolPropertyMap[jsKey: symbol.key]
|
|
3817
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4261
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1986)
|
|
3818
4262
|
if !jsTruthy(property) {
|
|
3819
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4263
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1987)
|
|
3820
4264
|
continue
|
|
3821
4265
|
}
|
|
3822
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4266
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1990)
|
|
3823
4267
|
let value: Any? = try jsUnwrap(view, "property.key")[jsKey: jsPropertyKey(jsGet(property, "key"))]
|
|
3824
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4268
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1991)
|
|
3825
4269
|
_ = try result.push(JSArray<Any?>([jsGet(property, "name"), value]))
|
|
3826
4270
|
}
|
|
3827
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4271
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1994)
|
|
3828
4272
|
return jsArrayFrom(result) {
|
|
3829
4273
|
{ (__a: Any?) -> (String, Any?) in (jsLenientString(jsField(__a, "0")), jsField(__a, "1")) }($0)
|
|
3830
4274
|
}
|
|
3831
4275
|
}
|
|
3832
4276
|
#sourceLocation()
|
|
3833
4277
|
public static func getComputedCssValues(_ view: ViewBase?) throws -> JSArray<(String, Any?)>? {
|
|
3834
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4278
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1998)
|
|
3835
4279
|
let result: JSArray<Any?> = JSArray<Any?>()
|
|
3836
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4280
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1999)
|
|
3837
4281
|
let style: Style? = try jsUnwrap(view, "style").style
|
|
3838
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4282
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2000)
|
|
3839
4283
|
for prop in Core_ui_core_properties_index.cssPropertyNames {
|
|
3840
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4284
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2001)
|
|
3841
4285
|
if prop != nil && prop != nil {
|
|
3842
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4286
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2002)
|
|
3843
4287
|
_ = try result.push(JSArray<Any?>([prop, jsUnwrap(style, "prop")[jsKey: prop]]))
|
|
3844
4288
|
}
|
|
3845
4289
|
}
|
|
3846
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4290
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2007)
|
|
3847
4291
|
_ = result.push(JSArray<Any?>(["top", "auto"]))
|
|
3848
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4292
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2008)
|
|
3849
4293
|
_ = result.push(JSArray<Any?>(["left", "auto"]))
|
|
3850
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4294
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2009)
|
|
3851
4295
|
_ = result.push(JSArray<Any?>(["bottom", "auto"]))
|
|
3852
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4296
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2010)
|
|
3853
4297
|
_ = result.push(JSArray<Any?>(["right", "auto"]))
|
|
3854
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4298
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2012)
|
|
3855
4299
|
return jsArrayFrom(result) {
|
|
3856
4300
|
{ (__a: Any?) -> (String, Any?) in (jsLenientString(jsField(__a, "0")), jsField(__a, "1")) }($0)
|
|
3857
4301
|
}
|
|
@@ -3871,27 +4315,31 @@ public func __init_Core_ui_core_properties_index() {
|
|
|
3871
4315
|
Core_ui_core_properties_index.cssValueSourceKeys = jsRecordOf(
|
|
3872
4316
|
jsObjectCreate(jsNull), as: JSRecord<JSSymbol>.self
|
|
3873
4317
|
) { ($0 as! JSSymbol) }
|
|
3874
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4318
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:348)
|
|
4319
|
+
Core_ui_core_properties_index.NO_LONGHAND_VALUES = jsRecordOf(jsFreeze(JSObject([])), as: JSRecord<Any?>.self) {
|
|
4320
|
+
$0
|
|
4321
|
+
}
|
|
4322
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:731)
|
|
3875
4323
|
try jsSet(JSPrototypes.of(Property.self), "isStyleProperty", false)
|
|
3876
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4324
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1233)
|
|
3877
4325
|
try jsSet(JSPrototypes.of(CssProperty.self), "isStyleProperty", true)
|
|
3878
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4326
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1456)
|
|
3879
4327
|
try jsSet(JSPrototypes.of(CssAnimationProperty.self), "isStyleProperty", true)
|
|
3880
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4328
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1458)
|
|
3881
4329
|
|
|
3882
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4330
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1795)
|
|
3883
4331
|
Core_ui_core_properties_index.initNativeView = FunctionCell_ViewBaseOpt_to_Void.scriptOrNil(
|
|
3884
4332
|
"", 1,
|
|
3885
4333
|
{ (view: ViewBase?) throws -> Void in
|
|
3886
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4334
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1796)
|
|
3887
4335
|
if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
|
|
3888
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4336
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1797)
|
|
3889
4337
|
try Core_ui_core_properties_index.applyPendingNativeSetters(view)
|
|
3890
4338
|
} else {
|
|
3891
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4339
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1799)
|
|
3892
4340
|
try Core_ui_core_properties_index.applyAllNativeSetters(view)
|
|
3893
4341
|
}
|
|
3894
|
-
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:
|
|
4342
|
+
#sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1802)
|
|
3895
4343
|
try jsUnwrap(view, setting: "_suspendedUpdates")._suspendedUpdates = JSRecord<Any?>()
|
|
3896
4344
|
})
|
|
3897
4345
|
}
|