@nstudio/nativescript-compiler 9.2.0-alpha.17 → 9.2.0-alpha.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/README.md +3 -0
  2. package/config.js +1 -0
  3. package/dist/kotlin/access.js +8 -7
  4. package/dist/kotlin/arguments.js +6 -0
  5. package/dist/kotlin/assignment.js +22 -13
  6. package/dist/kotlin/builtins.js +67 -0
  7. package/dist/kotlin/calls.js +3 -2
  8. package/dist/kotlin/class-declaration.js +4 -9
  9. package/dist/kotlin/class-methods.js +2 -2
  10. package/dist/kotlin/core-api.js +1 -1
  11. package/dist/kotlin/declarations.js +1 -1
  12. package/dist/kotlin/expression-statements.js +13 -1
  13. package/dist/kotlin/functions.js +1 -0
  14. package/dist/kotlin/literals.js +4 -8
  15. package/dist/kotlin/names.js +4 -4
  16. package/dist/kotlin/native/api.js +1 -1
  17. package/dist/kotlin/operators.js +25 -25
  18. package/dist/kotlin/optional-chains.js +1 -1
  19. package/dist/kotlin/overrides.js +3 -3
  20. package/dist/kotlin/state-backend.js +6 -2
  21. package/dist/kotlin/translator.js +1 -1
  22. package/dist/kotlin/types.js +4 -4
  23. package/dist/semantics/classes.js +15 -0
  24. package/dist/semantics/conversion.js +9 -1
  25. package/dist/semantics/facts.js +1 -1
  26. package/dist/semantics/lang.js +10 -0
  27. package/dist/semantics/lower.js +54 -0
  28. package/dist/semantics/lowering-methods.js +5 -0
  29. package/dist/semantics/placement.js +9 -3
  30. package/dist/semantics/runtime.js +1 -0
  31. package/dist/semantics/signals.js +11 -0
  32. package/dist/semantics/states/missing.js +7 -0
  33. package/dist/semantics/tdz.js +54 -15
  34. package/dist/semantics/throws.js +2 -2
  35. package/dist/semantics/translator-methods.js +1 -1
  36. package/dist/swift/access.js +7 -9
  37. package/dist/swift/arguments.js +14 -9
  38. package/dist/swift/assignment.js +26 -15
  39. package/dist/swift/calls.js +13 -5
  40. package/dist/swift/class-methods.js +2 -1
  41. package/dist/swift/classes.js +7 -9
  42. package/dist/swift/components.js +3 -3
  43. package/dist/swift/control-flow.js +1 -1
  44. package/dist/swift/conversion.js +5 -2
  45. package/dist/swift/core-api.js +2 -2
  46. package/dist/swift/declarations.js +1 -1
  47. package/dist/swift/expressions.js +6 -2
  48. package/dist/swift/from-any.js +1 -1
  49. package/dist/swift/functions.js +5 -6
  50. package/dist/swift/global-calls.js +1 -1
  51. package/dist/swift/lenient.js +1 -6
  52. package/dist/swift/library.js +2 -2
  53. package/dist/swift/literals.js +8 -3
  54. package/dist/swift/method-values.js +2 -1
  55. package/dist/swift/modules.js +3 -3
  56. package/dist/swift/names.js +7 -7
  57. package/dist/swift/native/calls.js +10 -4
  58. package/dist/swift/object-classes.js +84 -1
  59. package/dist/swift/operators.js +31 -29
  60. package/dist/swift/placement.js +22 -6
  61. package/dist/swift/state-backend.js +3 -2
  62. package/dist/swift/static-calls.js +3 -4
  63. package/dist/swift/syntax.js +10 -6
  64. package/dist/swift/translator.js +1 -1
  65. package/dist/swift/type-facts.js +3 -3
  66. package/dist/swift/types.js +5 -5
  67. package/dist/targets/ios/build.js +1 -1
  68. package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +1 -0
  69. package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +525 -99
  70. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +2 -2
  71. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +29 -6
  72. package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +14 -0
  73. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +3 -3
  74. package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +49 -1
  75. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +0 -8
  76. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +0 -16
  77. package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +6 -4
  78. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +19 -7
  79. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +14 -0
  80. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +19 -10
  81. package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +17 -29
  82. package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +144 -22
  83. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +8 -3
  84. package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +2 -10
  85. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +0 -2
  86. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +6 -10
  87. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +531 -8
  88. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +0 -9
  89. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +3 -3
  90. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +19 -0
  91. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +5 -2
  92. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +232 -174
  93. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +1 -1
  94. package/kit-android/generated/kotlin/org/nativescript/kit/utils_android_runtime_version.kt +75 -0
  95. package/kit-android/generated/manifest.json +21 -18
  96. package/kit-android/generated/source-lines.json +1 -1
  97. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +9 -0
  98. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +497 -42
  99. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +1 -1
  100. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +22 -2
  101. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +32 -18
  102. package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +7 -3
  103. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +14 -10
  104. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +3 -9
  105. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +20 -21
  106. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +5 -7
  107. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_.swift +130 -0
  108. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +2 -4
  109. package/kit-apple/Sources/NativeScriptKit/Core/Object_specified_substituted_reads.swift +115 -0
  110. package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads.swift +113 -0
  111. package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads_.swift +113 -0
  112. package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +348 -330
  113. package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +358 -359
  114. package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +47 -29
  115. package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +3 -1
  116. package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +95 -53
  117. package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1 -1
  118. package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +1 -1
  119. package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +3 -3
  120. package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +58 -49
  121. package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +10 -10
  122. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +18 -0
  123. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +67 -52
  124. package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +3 -3
  125. package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +69 -53
  126. package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +4 -22
  127. package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +144 -32
  128. package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +30 -19
  129. package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +190 -78
  130. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +1 -1
  131. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +205 -201
  132. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +41 -42
  133. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +1 -1
  134. package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +2 -2
  135. package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +33 -21
  136. package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +12 -6
  137. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +77 -65
  138. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1 -1
  139. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +10 -6
  140. package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +14 -13
  141. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +1273 -824
  142. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +2 -2
  143. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +87 -67
  144. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -1
  145. package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +17 -16
  146. package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +2 -2
  147. package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +27 -18
  148. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +2 -1
  149. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +6 -6
  150. package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +9 -9
  151. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +6 -6
  152. package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +8 -8
  153. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +22 -21
  154. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +4 -3
  155. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +1 -1
  156. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +1 -1
  157. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +2 -2
  158. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +9 -9
  159. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +9 -6
  160. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +38 -20
  161. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +204 -190
  162. package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +12 -10
  163. package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +2 -6
  164. package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +18 -9
  165. package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +28 -18
  166. package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +19 -12
  167. package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +14 -12
  168. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +17 -12
  169. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2 -2
  170. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +1 -1
  171. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +1 -1
  172. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +2 -2
  173. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +2 -2
  174. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +869 -838
  175. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +46 -31
  176. package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +12 -10
  177. package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +36 -20
  178. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +3 -4
  179. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +25 -22
  180. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +2 -3
  181. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +21 -14
  182. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +33 -21
  183. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +1 -1
  184. package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +22 -18
  185. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +2 -2
  186. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +4 -4
  187. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +2 -2
  188. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +32 -32
  189. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +1 -1
  190. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +2 -2
  191. package/kit-apple/Sources/NativeScriptKit/Core/utils.android-runtime-version.swift +77 -0
  192. package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +2 -2
  193. package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +2 -2
  194. package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +62 -61
  195. package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +4 -0
  196. package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +2 -0
  197. package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +1 -1
  198. package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +1 -1
  199. package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +1 -1
  200. package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +280 -9
  201. package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +3 -2
  202. package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +2 -1
  203. package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +1 -0
  204. package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +1 -0
  205. package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +1 -0
  206. package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +2 -0
  207. package/package.json +6 -4
@@ -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:350)
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:351)
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:353)
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:354)
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:356)
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:357)
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:359)
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:360)
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:362)
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:363)
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:365)
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:366)
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:368)
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:370)
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:371)
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:372)
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:373)
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:374)
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:376)
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:377)
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:378)
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:380)
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:381)
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:383)
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:384)
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:386)
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:387)
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:388)
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:392)
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:394)
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:395)
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:396)
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:397)
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:398)
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:399)
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:401)
221
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:605)
222
222
  wrapped = try jsConvertedBoolOrNil(
223
223
  ({ () throws -> Any? in
224
- let __v_1 = boxedValue
225
- return jsTruthy(__v_1) ? try jsGet(boxedValue, "wrapped") : __v_1
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:402)
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:404)
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:405)
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:409)
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:410)
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:412)
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:413)
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:414)
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:417)
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:418)
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:419)
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:420)
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:422)
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:423)
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:424)
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:425)
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:428)
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:429)
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:431)
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:435)
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:436)
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:437)
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:439)
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:440)
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:441)
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:442)
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:445)
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:446)
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:448)
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:453)
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:454)
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:464)
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:465)
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:466)
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:468)
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:474)
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:475)
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:478)
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:479)
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:480)
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:481)
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:482)
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:483)
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:484)
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:487)
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:488)
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:491)
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:492)
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:502)
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:503)
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:506)
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:507)
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:512)
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:516)
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:517)
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:519)
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:520)
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:524)
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:535)
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:536)
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:537)
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:538)
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:539)
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:540)
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:542)
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:544)
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:545)
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:546)
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:547)
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:548)
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:549)
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:550)
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:551)
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:553)
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:554)
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:555)
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:557)
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:558)
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:560)
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:561)
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:563)
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:564)
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:565)
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:567)
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:568)
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:572)
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:573)
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:575)
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:578)
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:579)
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:580)
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:581)
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:582)
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:583)
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:584)
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:586)
717
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:790)
718
718
  wrapped = try jsConvertedBoolOrNil(
719
719
  ({ () throws -> Any? in
720
- let __v_2 = boxedValue
721
- return jsTruthy(__v_2) ? try jsGet(boxedValue, "wrapped") : __v_2
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:587)
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:589)
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:590)
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:593)
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:594)
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:597)
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:598)
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:600)
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:601)
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:602)
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:603)
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:604)
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:607)
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:608)
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:609)
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:610)
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:613)
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:614)
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:616)
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:620)
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:621)
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:622)
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:625)
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:626)
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:627)
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:628)
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:631)
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:632)
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:634)
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:639)
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:640)
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:650)
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:651)
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:654)
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:655)
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:656)
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:658)
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:672)
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:673)
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:674)
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:676)
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:677)
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:679)
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:680)
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:681)
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:682)
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:684)
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:685)
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:687)
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:688)
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:691)
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:692)
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:693)
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:695)
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:696)
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:700)
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:701)
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:705)
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:706)
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:708)
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:709)
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:711)
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:712)
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:713)
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:714)
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 __v_3 = try jsUnwrap(child, "sourceKey")[jsKey: sourceKey.key]
970
- return jsTruthy(__v_3) ? __v_3 : ValueSource.Default
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:715)
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:716)
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:717)
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:720)
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:721)
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:725)
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:730)
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:731)
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:733)
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:735)
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:815)
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:816)
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:817)
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:818)
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:820)
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:823)
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:825)
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:826)
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:827)
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:829)
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:830)
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:831)
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:832)
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:833)
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:834)
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:838)
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:839)
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:840)
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:842)
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:843)
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:846)
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:847)
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:849)
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:850)
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:851)
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:852)
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:853)
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:856)
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:857)
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:858)
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:859)
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:862)
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:863)
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:865)
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:869)
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:870)
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:871)
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:874)
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:875)
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:876)
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:877)
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:880)
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:881)
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:883)
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:888)
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:889)
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:899)
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:900)
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:905)
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:906)
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:907)
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:908)
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:910)
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:913)
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 __v_4 = try jsGet(this, sourceKey.key)
1271
- return jsTruthy(__v_4) ? __v_4 : ValueSource.Default
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:916)
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:917)
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:920)
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:921)
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:923)
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:924)
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:925)
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:927)
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:928)
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:931)
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:932)
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:934)
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:935)
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:936)
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:937)
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:938)
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:941)
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:942)
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:943)
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:944)
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:947)
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:948)
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:950)
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:954)
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:955)
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:956)
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:959)
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:960)
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:961)
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:962)
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:965)
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:966)
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:968)
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:973)
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:974)
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:984)
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:985)
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:990)
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:991)
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:761)
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:762)
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:765)
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:766)
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:769)
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:770)
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:772)
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:773)
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:775)
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:776)
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:778)
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:779)
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:781)
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:782)
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:784)
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:785)
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:787)
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:788)
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:790)
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:791)
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:792)
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:793)
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:794)
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:795)
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:797)
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:798)
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:799)
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:801)
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:802)
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:804)
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:805)
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:807)
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:808)
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:809)
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:813)
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:994)
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:1001)
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
- ({ (__this: Any?, __a: [Any?]) throws -> Any? in
1493
- try setLocalValue(__this, jsArg(__a, 0))
1494
- return nil
1495
- } as JSMethod)
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:1008)
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:1012)
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:1013)
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:1015)
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:1016)
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:1017)
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:1018)
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:1019)
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:1022)
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:1026)
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:1100)
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:1101)
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:1103)
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:1108)
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:1111)
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:1114)
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:1115)
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:1116)
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:1118)
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:1121)
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:1122)
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:1123)
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:1124)
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:1126)
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:1127)
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:1128)
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:1130)
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:1131)
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:1132)
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:1134)
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:1135)
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:1137)
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:1138)
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:1142)
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:1143)
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:1145)
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:1146)
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:1147)
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:1148)
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:1152)
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:1153)
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:1154)
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:1156)
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:1158)
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:1159)
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:1162)
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:1163)
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:1164)
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:1165)
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:1168)
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:1169)
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:1170)
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:1172)
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:1174)
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:1175)
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:1177)
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:1183)
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:1184)
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:1057)
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:1058)
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:1060)
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:1061)
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:1064)
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:1065)
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:1066)
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:1069)
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:1071)
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 __v_5 = try jsConvertedString(jsGet(options, "cssName"))
2010
- return jsTruthy(__v_5) ? jsPresent(__v_5) : propertyName
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:1072)
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:1073)
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:1074)
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:1076)
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:1077)
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:1078)
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:1080)
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:1081)
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:1083)
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:1085)
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:1086)
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:1087)
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:1088)
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:1089)
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:1090)
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:1091)
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:1093)
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:1094)
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:1095)
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:1096)
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:1098)
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:1197)
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:1198)
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:1199)
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:1200)
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:1202)
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:1203)
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:1205)
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:1206)
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:1207)
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:1209)
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:1210)
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:1211)
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:1213)
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:1214)
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:1215)
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:1216)
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:1217)
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:1219)
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:1224)
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:1225)
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:1226)
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:1228)
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:1231)
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:1233)
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:1234)
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:1235)
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:1240)
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:1244)
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:1248)
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:1258)
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:1260)
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:1261)
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:1262)
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:1263)
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:1264)
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:1265)
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:1266)
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:1267)
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:1269)
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:1270)
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:1271)
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:1272)
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:1273)
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:1275)
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:1277)
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:1278)
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:1279)
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:1281)
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:1282)
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:1284)
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:1285)
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:1287)
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:1288)
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:1289)
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:1293)
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:1294)
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:1296)
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:1298)
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:1299)
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:1300)
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:1301)
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:1302)
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:1305)
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:1306)
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:1309)
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:1310)
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:1311)
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:1312)
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:1313)
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:1314)
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:1315)
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:1316)
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:1320)
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 __v_6 = try jsGet(__this, sourceKey.key)
2495
- return jsTruthy(__v_6) ? __v_6 : ValueSource.Default
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:1322)
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:1324)
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:1325)
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:1328)
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:1329)
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:1333)
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:1334)
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:1335)
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:1337)
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:1338)
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:1341)
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:1342)
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:1343)
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:1344)
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:1346)
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:1347)
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:1348)
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:1349)
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:1352)
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:1353)
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:1354)
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:1356)
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:1358)
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:1361)
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:1363)
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:1364)
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:1365)
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:1368)
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:1369)
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:1370)
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:1371)
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:1374)
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:1375)
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:1376)
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:1378)
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:1381)
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:1382)
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:1385)
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:1389)
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:1390)
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:1400)
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:1401)
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:1404)
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:1405)
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:1406)
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 __v_7 = try jsUnwrap(childStyle, "sourceKey")[jsKey: sourceKey.key]
2640
- return jsTruthy(__v_7) ? __v_7 : ValueSource.Default
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:1407)
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:1408)
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:1409)
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:1412)
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:1413)
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:1417)
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:1423)
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:1424)
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:1426)
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:1427)
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:1428)
2676
- try jsSet(self.localValueDescriptor, "set", setFunc(ValueSource.Local))
2677
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1430)
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
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1460)
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
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1461)
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:1462)
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:1463)
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:1465)
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:1468)
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:1469)
2754
- for __item1 in try jsIterated(
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? = __item1.0
2759
- let v: Any? = __item1.1
2760
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1470)
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:1475)
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:1476)
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:1477)
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:1478)
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:1480)
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:1483)
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:1484)
2782
- for __item2 in try jsIterated(
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? = __item2.0
2787
- let v: Any? = __item2.1
2788
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1485)
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:1448)
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:1450)
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:1451)
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:1453)
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:1454)
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:1455)
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:1456)
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:1458)
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:1490)
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:1497)
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:1504)
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:1508)
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:1509)
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:1512)
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:1513)
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:1514)
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:1515)
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:1516)
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,702 @@ public enum Core_ui_core_properties_index {
3265
3335
  return jsIncludes(value, "var(--")
3266
3336
  }
3267
3337
  #sourceLocation()
3268
- public static func _evaluateCssVariableExpression(_ view: ViewBase?, _ cssName: String, _ value: String) throws
3269
- -> String
3270
- {
3271
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:230)
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:232)
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:235)
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:238)
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:239)
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:240)
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:242)
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:243)
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:244)
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:247)
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:248)
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:249)
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:252)
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:253)
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:254)
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:255)
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:256)
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:257)
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:258)
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:260)
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:261)
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:264)
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:265)
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:268)
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:273)
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:277)
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:278)
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:279)
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:280)
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:281)
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:283)
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:287)
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:295)
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:296)
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:298)
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:304)
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:308)
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:309)
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:310)
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:312)
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:313)
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:315)
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(_ 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 value: Any? = jsArg(__a, 0)
3630
+ try { () throws -> Void in
3631
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:420)
3632
+ if Core_ui_core_properties_index.hasCssExpression(value) {
3633
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:421)
3634
+ let view: ViewBase? = try jsUnwrap(jsGet(__this, "viewRef") as? JSWeakRef<ViewBase>, "get")
3635
+ .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", __this, substituted)
3645
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:426)
3646
+ try Core_ui_core_properties_index.keepLocalCssExpression(
3647
+ (try jsCast(__this, Style.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", __this, value)
3654
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:433)
3655
+ try Core_ui_core_properties_index.releaseLocalCssExpression(
3656
+ (try jsCast(__this, Style.self)), cssName)
3657
+ }()
3658
+ return nil
3659
+ } as JSMethod)
3660
+ }
3661
+ #sourceLocation()
3662
+ public static func setLocalCssExpression(
3663
+ _ style: Style?, _ cssName: String, _ specified: Any?, _ substituted: Any?, _ reads: Any?, _ value: Any?
3664
+ ) throws {
3665
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:438)
3666
+ try jsUnwrap(style, setting: "cssName")[jsKey: cssName] = value
3667
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:439)
3668
+ try Core_ui_core_properties_index.keepLocalCssExpression(style, cssName, specified, substituted, reads)
3669
+ }
3670
+ #sourceLocation()
3671
+ /// Write a longhand's share of a pending-substitution shorthand as a local value,
3672
+ /// kept for the cascade to substitute again.
3673
+ public static func _setLocalCssShorthandValue(
3674
+ _ style: Style?, _ longhand: String, _ pending: CssPendingSubstitution?, _ shorthand: Any?
3675
+ ) throws {
3676
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:447)
3677
+ try Core_ui_core_properties_index.setLocalCssExpression(
3678
+ style, longhand, pending, jsGet(shorthand, "substituted"), jsGet(shorthand, "reads"),
3679
+ (jsHasKey(jsRecordOf(jsGet(shorthand, "values"), as: JSRecord<Any?>.self) { $0 }, longhand)
3680
+ ? jsUnwrap(jsRecordOf(jsGet(shorthand, "values"), as: JSRecord<Any?>.self) { $0 }, "longhand")[
3681
+ entry: longhand] : Core_ui_core_properties_property_shared.unsetValue))
3682
+ }
3683
+ #sourceLocation()
3684
+ /// Substitute the kept local var()/calc() values again, writing only those whose
3685
+ /// substitution changed since they were last written.
3686
+ public static func _reevaluateLocalCssExpressions(_ view: ViewBase?) throws {
3687
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:455)
3688
+ let style: Style? = try jsUnwrap(view, "style").style
3689
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:456)
3690
+ let expressions: JSMap<String, Any?>? = try jsUnwrap(style, "_localCssExpressions")._localCssExpressions
3691
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:457)
3692
+ if !jsTruthy(expressions) {
3693
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:458)
3694
+ return
3695
+ }
3696
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:461)
3697
+ var shorthands: JSMap<CssPendingSubstitution, Any?>? = nil
3698
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:463)
3699
+ let entries: JSArray<(String, Any?)>? = try JSArray<(String, Any?)>.from(
3700
+ jsObjectRequired(expressions).entries())
3701
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:464)
3702
+ var i: Double = 0
3703
+ let length: Double = try jsUnwrap(entries, "length").length
3704
+ var __first1 = true
3705
+ while true {
3706
+ if !__first1 { i += 1 }
3707
+ __first1 = false
3708
+ if !(i < length) { break }
3709
+ do {
3710
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:465)
3711
+ let __d_1: (String, Any?) = try jsDestructured(jsImplicit(jsUnwrap(entries, "i").element(i)), nil)
3712
+ let cssName: String = __d_1.0
3713
+ let expression: Any? = __d_1.1
3714
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:467)
3715
+ if try !jsStrictEquals(
3716
+ ((jsUnwrap(style, "_localCssExpressions")._localCssExpressions as JSMap<String, Any?>?)?.get(
3717
+ cssName) ?? nil), expression)
3718
+ || Core_ui_core_properties_index.cssVariablesUnchanged(
3719
+ view, (jsGet(expression, "reads") as? JSMap<String, String>))
3720
+ {
3721
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:468)
3722
+ continue
3723
+ }
3724
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:471)
3725
+ let specified: Any? = try jsGet(expression, "specified")
3726
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:472)
3727
+ var substituted: Any? = nil
3728
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:473)
3729
+ var reads: Any? = nil
3730
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:474)
3731
+ var value: Any? = nil
3732
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:476)
3733
+ if specified is CssPendingSubstitution {
3734
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:477)
3735
+ if !jsTruthy(shorthands as Any?) {
3736
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:478)
3737
+ shorthands = JSMap<CssPendingSubstitution, Any?>()
3738
+ }
3739
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:480)
3740
+ var shorthand: Any? =
3741
+ try
3742
+ (((specified as? CssPendingSubstitution) as CssPendingSubstitution?).map {
3743
+ try jsUnwrap(shorthands, "get").get($0) ?? nil
3744
+ } ?? nil)
3745
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:481)
3746
+ if !jsTruthy(shorthand) {
3747
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:482)
3748
+ reads = JSMap<Any?, Any?>()
3749
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:484)
3750
+ shorthand = try JSObject([
3751
+ (
3752
+ "substituted",
3753
+ Core_ui_core_properties_index._evaluateCssExpressions(
3754
+ view, jsUnwrap(specified as? CssPendingSubstitution, "shorthand").shorthand,
3755
+ jsUnwrap(specified as? CssPendingSubstitution, "value").value,
3756
+ (reads as? JSMap<String, String>))
3757
+ ), ("values", nil), ("reads", reads as Any?),
3758
+ ])
3759
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:485)
3760
+ _ = try jsUnwrap(shorthands, "set").set(
3761
+ (jsCastPresent(specified) as CssPendingSubstitution), shorthand)
3762
+ }
3763
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:487)
3764
+ substituted = try jsGet(shorthand, "substituted")
3765
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:488)
3766
+ reads = try jsGet(shorthand, "reads")
3767
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:489)
3768
+ if try jsStrictEquals(substituted, jsGet(expression, "substituted")) {
3769
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:490)
3770
+ try jsSet(expression, "reads", reads)
3771
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:491)
3772
+ continue
3773
+ }
3774
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:493)
3775
+ if try !(jsTruthy(jsGet(shorthand, "values"))) {
3776
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:494)
3777
+ try jsSet(
3778
+ shorthand, "values",
3779
+ Core_ui_core_properties_index.expandSubstitutedShorthand(
3780
+ view, jsUnwrap(specified as? CssPendingSubstitution, "shorthand").shorthand, substituted
3781
+ ))
3782
+ }
3783
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:496)
3784
+ value =
3785
+ try
3786
+ (jsHasKey(jsRecordOf(jsGet(shorthand, "values"), as: JSRecord<Any?>.self) { $0 }, cssName)
3787
+ ? jsUnwrap(jsRecordOf(jsGet(shorthand, "values"), as: JSRecord<Any?>.self) { $0 }, "cssName")[
3788
+ entry: cssName] : Core_ui_core_properties_property_shared.unsetValue)
3789
+ } else {
3790
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:498)
3791
+ reads = JSMap<Any?, Any?>()
3792
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:499)
3793
+ substituted = try Core_ui_core_properties_index._evaluateCssExpressions(
3794
+ view, cssName, jsLenientString(specified), (reads as? JSMap<String, String>))
3795
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:500)
3796
+ if try jsStrictEquals(substituted, jsGet(expression, "substituted")) {
3797
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:501)
3798
+ try jsSet(expression, "reads", reads)
3799
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:502)
3800
+ continue
3801
+ }
3802
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:504)
3803
+ value = substituted
3804
+ }
3805
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:507)
3806
+ do {
3807
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:508)
3808
+ try Core_ui_core_properties_index.setLocalCssExpression(
3809
+ style, cssName, specified, substituted, reads, value)
3810
+ } catch {
3811
+ let e: Any? = jsCaught(error)
3812
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:510)
3813
+ try NativeScriptKit.Trace.write(
3814
+ "Failed to apply property [\(cssName)] with value [\(jsToStringThrowing(value))] to \(jsToStringThrowing(view)). \(jsToStringThrowing(jsGet(e, "stack")))",
3815
+ NativeScriptKit.Trace.categories.Error, NativeScriptKit.Trace.messageType.error)
3816
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:511)
3817
+ do {
3818
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:512)
3819
+ try jsUnwrap(style, setting: "cssName")[jsKey: cssName] =
3820
+ Core_ui_core_properties_property_shared.unsetValue
3821
+ } catch {
3822
+ let e: Any? = jsCaught(error)
3823
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:514)
3824
+ try NativeScriptKit.Trace.write(
3825
+ "Failed to unset property [\(cssName)] on \(jsToStringThrowing(view)). \(jsToStringThrowing(jsGet(e, "stack")))",
3826
+ NativeScriptKit.Trace.categories.Error, NativeScriptKit.Trace.messageType.error)
3827
+ }
3828
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:517)
3829
+ try Core_ui_core_properties_index.keepLocalCssExpression(
3830
+ style, cssName, specified, substituted, reads)
3831
+ }
3832
+ }
3833
+ }
3834
+ }
3835
+ #sourceLocation()
3391
3836
  public static func getPropertiesFromMap(_ map: Any?) throws -> Any? {
3392
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:319)
3837
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:523)
3393
3838
  let symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(map)
3394
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:320)
3839
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:524)
3395
3840
  let len: Double = try jsUnwrap(symbols, "length").length
3396
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:321)
3841
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:525)
3397
3842
  let props: JSArray<Any?> = try JSArray<Any?>.holes(Double(jsArrayLength(len)))
3398
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:322)
3843
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:526)
3399
3844
  var i: Double = 0
3400
3845
  while i < len {
3401
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:323)
3846
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:527)
3402
3847
  try props[(i as Double)] = jsGet(map, (jsImplicit(jsUnwrap(symbols, "i").element(i))?.key ?? "undefined"))
3403
3848
  i += 1
3404
3849
  }
3405
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:325)
3850
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:529)
3406
3851
  return props
3407
3852
  }
3408
3853
  #sourceLocation()
3409
3854
  public static func inheritablePropertyValuesOn(_ view: ViewBase?) throws -> JSArray<Any?>? {
3410
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1527)
3855
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1758)
3411
3856
  let array: JSArray<Any?> = JSArray<Any?>()
3412
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1531)
3857
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1762)
3413
3858
  for prop in try jsIterated(
3414
3859
  Core_ui_core_properties_index.inheritableProperties, "inheritableProperties is not iterable")
3415
3860
  {
3416
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1532)
3861
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1763)
3417
3862
  let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
3418
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1533)
3863
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1764)
3419
3864
  let valueSource: Double = try jsConvertedNumber(
3420
3865
  ({ () throws -> Any? in
3421
- let __v_8 = try jsUnwrap(view, "sourceKey")[jsKey: sourceKey.key]
3422
- return jsTruthy(__v_8) ? __v_8 : ValueSource.Default
3866
+ let __v_11 = try jsUnwrap(view, "sourceKey")[jsKey: sourceKey.key]
3867
+ return jsTruthy(__v_11) ? __v_11 : ValueSource.Default
3423
3868
  }()))
3424
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1534)
3869
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1765)
3425
3870
  if !jsLenientNumberEquals(valueSource, ValueSource.Default) {
3426
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1537)
3871
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1768)
3427
3872
  _ = try array.push(
3428
3873
  JSObject([
3429
3874
  ("property", prop), ("value", jsUnwrap(view, "prop.name")[jsKey: jsUnwrap(prop, "name").name]),
3430
3875
  ]))
3431
3876
  }
3432
3877
  }
3433
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1541)
3878
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1772)
3434
3879
  return array
3435
3880
  }
3436
3881
  #sourceLocation()
3437
3882
  public static func inheritableCssPropertyValuesOn(_ style: Style?) throws -> JSArray<Any?>? {
3438
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1545)
3883
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1776)
3439
3884
  let array: JSArray<Any?> = JSArray<Any?>()
3440
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1549)
3885
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1780)
3441
3886
  for prop in try jsIterated(
3442
3887
  Core_ui_core_properties_index.inheritableCssProperties, "inheritableCssProperties is not iterable")
3443
3888
  {
3444
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1550)
3889
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1781)
3445
3890
  let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
3446
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1551)
3891
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1782)
3447
3892
  let valueSource: Double = try jsConvertedNumber(
3448
3893
  ({ () throws -> Any? in
3449
- let __v_9 = try jsUnwrap(style, "sourceKey")[jsKey: sourceKey.key]
3450
- return jsTruthy(__v_9) ? __v_9 : ValueSource.Default
3894
+ let __v_12 = try jsUnwrap(style, "sourceKey")[jsKey: sourceKey.key]
3895
+ return jsTruthy(__v_12) ? __v_12 : ValueSource.Default
3451
3896
  }()))
3452
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1552)
3897
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1783)
3453
3898
  if !jsLenientNumberEquals(valueSource, ValueSource.Default) {
3454
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1555)
3899
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1786)
3455
3900
  _ = try array.push(
3456
3901
  JSObject([
3457
3902
  ("property", prop), ("value", jsUnwrap(style, "prop.name")[jsKey: jsUnwrap(prop, "name").name]),
3458
3903
  ]))
3459
3904
  }
3460
3905
  }
3461
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1559)
3906
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1790)
3462
3907
  return array
3463
3908
  }
3464
3909
  #sourceLocation()
3465
3910
  public static var initNativeView: Any? = nil
3466
3911
  public static func applyPendingNativeSetters(_ view: ViewBase?) throws {
3467
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1576)
3912
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1807)
3468
3913
  let suspendedUpdates: JSRecord<Any?>? = try jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates
3469
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1577)
3914
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1808)
3470
3915
  for propertyName in jsKeysOf(suspendedUpdates) {
3471
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1578)
3916
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1809)
3472
3917
  if !jsTruthy(jsHasOwn(suspendedUpdates, propertyName)) {
3473
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1578)
3918
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1809)
3474
3919
  continue
3475
3920
  }
3476
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1579)
3921
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1810)
3477
3922
  let property: Any? = try jsUnwrap(suspendedUpdates, "propertyName")[entry: propertyName]
3478
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1580)
3923
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1811)
3479
3924
  let setNative: JSSymbol = try (jsCastPresent(jsGet(property, "setNative")) as JSSymbol)
3480
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1581)
3925
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1812)
3481
3926
  if try jsTruthy(jsUnwrap(view, "setNative")[jsKey: setNative.key]) {
3482
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1582)
3483
- let __d_1: Any? = property
3484
- let getDefault: JSSymbol = (try jsCastPresent((try jsGet(__d_1, "getDefault"))) as JSSymbol)
3485
- let isStyleProperty: Bool = (try jsConvertedBool((try jsGet(__d_1, "isStyleProperty"))))
3486
- let defaultValueKey: JSSymbol = (try jsCastPresent((try jsGet(__d_1, "defaultValueKey"))) as JSSymbol)
3487
- let defaultValue: Any? = (try jsGet(__d_1, "defaultValue"))
3488
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1583)
3927
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1813)
3928
+ let __d_2: Any? = property
3929
+ let getDefault: JSSymbol = (try jsCastPresent((try jsGet(__d_2, "getDefault"))) as JSSymbol)
3930
+ let isStyleProperty: Bool = (try jsConvertedBool((try jsGet(__d_2, "isStyleProperty"))))
3931
+ let defaultValueKey: JSSymbol = (try jsCastPresent((try jsGet(__d_2, "defaultValueKey"))) as JSSymbol)
3932
+ let defaultValue: Any? = (try jsGet(__d_2, "defaultValue"))
3933
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1814)
3489
3934
  var value: Any? = nil
3490
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1584)
3935
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1815)
3491
3936
  if isStyleProperty {
3492
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1585)
3937
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1816)
3493
3938
  let style: Style? = try jsUnwrap(view, "style").style
3494
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1586)
3939
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1817)
3495
3940
  if try jsLenientBool(jsCallMethod(property, "isSet", jsUnwrap(view, "style").style)) {
3496
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1587)
3941
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1818)
3497
3942
  if !jsHasKey(style, defaultValueKey.key) {
3498
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1588)
3943
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1819)
3499
3944
  try jsUnwrap(style, setting: "defaultValueKey")[jsKey: defaultValueKey.key] =
3500
3945
  (jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
3501
3946
  ? jsCallMethod(jsUnwrap(view, "getDefault"), getDefault.key) : defaultValue)
3502
3947
  }
3503
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1590)
3948
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1821)
3504
3949
  value = try jsUnwrap(jsUnwrap(view, "style").style, "propertyName")[jsKey: propertyName]
3505
3950
  } else {
3506
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1592)
3951
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1823)
3507
3952
  value = try jsUnwrap(style, "defaultValueKey")[jsKey: defaultValueKey.key]
3508
3953
  }
3509
3954
  } else {
3510
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1595)
3955
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1826)
3511
3956
  if try jsUnwrap(property as? Property, "isSet").isSet(view) {
3512
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1596)
3957
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1827)
3513
3958
  if !jsHasKey(view, defaultValueKey.key) {
3514
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1597)
3959
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1828)
3515
3960
  try jsUnwrap(view, setting: "defaultValueKey")[jsKey: defaultValueKey.key] =
3516
3961
  (jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
3517
3962
  ? jsCallMethod(jsUnwrap(view, "getDefault"), getDefault.key) : defaultValue)
3518
3963
  }
3519
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1599)
3964
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1830)
3520
3965
  value = try jsUnwrap(view, "propertyName")[jsKey: propertyName]
3521
3966
  } else {
3522
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1601)
3967
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1832)
3523
3968
  value = try jsUnwrap(view, "defaultValueKey")[jsKey: defaultValueKey.key]
3524
3969
  }
3525
3970
  }
3526
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1605)
3971
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1836)
3527
3972
  _ = try jsCallMethod(jsUnwrap(view, "setNative"), setNative.key, value)
3528
3973
  }
3529
3974
  }
3530
3975
  }
3531
3976
  #sourceLocation()
3532
3977
  public static func applyAllNativeSetters(_ view: ViewBase?) throws {
3533
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1611)
3978
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1842)
3534
3979
  var symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(view)
3535
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1612)
3980
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1843)
3536
3981
  for symbol in try jsIterated(symbols, "symbols is not iterable") {
3537
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1613)
3982
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1844)
3538
3983
  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:1614)
3984
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1845)
3540
3985
  if !jsTruthy(property) {
3541
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1615)
3986
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1846)
3542
3987
  continue
3543
3988
  }
3544
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1618)
3989
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1849)
3545
3990
  let setNative: JSSymbol = try jsUnwrap(property, "setNative").setNative
3546
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1619)
3991
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1850)
3547
3992
  let getDefault: JSSymbol = try jsUnwrap(property, "getDefault").getDefault
3548
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1620)
3993
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1851)
3549
3994
  if jsHasKey(view, setNative.key) {
3550
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1621)
3995
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1852)
3551
3996
  let defaultValueKey: JSSymbol = try jsUnwrap(property, "defaultValueKey").defaultValueKey
3552
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1622)
3997
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1853)
3553
3998
  if !jsHasKey(view, defaultValueKey.key) {
3554
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1623)
3999
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1854)
3555
4000
  try jsUnwrap(view, setting: "defaultValueKey")[jsKey: defaultValueKey.key] =
3556
4001
  (jsTruthy(jsUnwrap(view, "getDefault")[jsKey: getDefault.key])
3557
4002
  ? jsCallMethod(jsUnwrap(view, "getDefault"), getDefault.key)
3558
4003
  : jsUnwrap(property, "defaultValue").defaultValue)
3559
4004
  }
3560
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1626)
4005
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1857)
3561
4006
  let value: Any? = try jsUnwrap(view, "symbol")[jsKey: symbol.key]
3562
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1627)
4007
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1858)
3563
4008
  _ = try jsCallMethod(jsUnwrap(view, "setNative"), setNative.key, value)
3564
4009
  }
3565
4010
  }
3566
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1631)
4011
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1862)
3567
4012
  let style: Style? = try jsUnwrap(view, "style").style
3568
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1632)
4013
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1863)
3569
4014
  symbols = jsOwnPropertySymbols(style)
3570
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1633)
4015
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1864)
3571
4016
  for symbol in try jsIterated(symbols, "symbols is not iterable") {
3572
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1634)
4017
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1865)
3573
4018
  let property: Any? = Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: symbol.key]
3574
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1635)
4019
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1866)
3575
4020
  if !jsTruthy(property) {
3576
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1636)
4021
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1867)
3577
4022
  continue
3578
4023
  }
3579
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1639)
4024
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1870)
3580
4025
  if try jsTruthy(
3581
4026
  jsUnwrap(view, "property.setNative")[
3582
4027
  jsKey: (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key])
3583
4028
  {
3584
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1640)
4029
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1871)
3585
4030
  let defaultValueKey: JSSymbol = try (jsCastPresent(jsGet(property, "defaultValueKey")) as JSSymbol)
3586
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1641)
4031
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1872)
3587
4032
  if !jsHasKey(style, defaultValueKey.key) {
3588
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1642)
4033
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1873)
3589
4034
  try jsUnwrap(style, setting: "defaultValueKey")[jsKey: defaultValueKey.key] =
3590
4035
  (jsTruthy(
3591
4036
  jsUnwrap(view, "property.getDefault")[
@@ -3595,9 +4040,9 @@ public enum Core_ui_core_properties_index {
3595
4040
  (jsCastPresent(jsGet(property, "getDefault")) as JSSymbol).key)
3596
4041
  : jsGet(property, "defaultValue"))
3597
4042
  }
3598
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1645)
4043
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1876)
3599
4044
  let value: Any? = try jsUnwrap(style, "symbol")[jsKey: symbol.key]
3600
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1646)
4045
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1877)
3601
4046
  _ = try jsCallMethod(
3602
4047
  jsUnwrap(view, "property.setNative"), (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key,
3603
4048
  value)
@@ -3606,73 +4051,73 @@ public enum Core_ui_core_properties_index {
3606
4051
  }
3607
4052
  #sourceLocation()
3608
4053
  public static func resetNativeView(_ view: ViewBase?) throws {
3609
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1652)
4054
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1883)
3610
4055
  var symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(view)
3611
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1653)
4056
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1884)
3612
4057
  for symbol in try jsIterated(symbols, "symbols is not iterable") {
3613
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1654)
4058
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1885)
3614
4059
  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:1655)
4060
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1886)
3616
4061
  if !jsTruthy(property) {
3617
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1656)
4062
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1887)
3618
4063
  continue
3619
4064
  }
3620
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1659)
4065
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1890)
3621
4066
  if try jsTruthy(jsUnwrap(view, "property.setNative")[jsKey: jsUnwrap(property, "setNative").setNative.key])
3622
4067
  {
3623
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1660)
4068
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1891)
3624
4069
  if try jsHasKey(view, jsUnwrap(property, "defaultValueKey").defaultValueKey.key) {
3625
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1661)
4070
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1892)
3626
4071
  _ = try jsCallMethod(
3627
4072
  jsUnwrap(view, "property.setNative"), jsUnwrap(property, "setNative").setNative.key,
3628
4073
  jsUnwrap(view, "property.defaultValueKey")[
3629
4074
  jsKey: jsUnwrap(property, "defaultValueKey").defaultValueKey.key])
3630
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1662)
4075
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1893)
3631
4076
  _ =
3632
4077
  ((try? jsDelete(
3633
4078
  jsUnwrap(view, "property.defaultValueKey"),
3634
4079
  jsUnwrap(property, "defaultValueKey").defaultValueKey.key)) ?? false)
3635
4080
  } else {
3636
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1664)
4081
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1895)
3637
4082
  _ = try jsCallMethod(
3638
4083
  jsUnwrap(view, "property.setNative"), jsUnwrap(property, "setNative").setNative.key,
3639
4084
  jsUnwrap(property, "defaultValue").defaultValue)
3640
4085
  }
3641
4086
  }
3642
4087
  }
3643
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1669)
4088
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1900)
3644
4089
  let style: Style? = try jsUnwrap(view, "style").style
3645
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1671)
4090
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1902)
3646
4091
  symbols = jsOwnPropertySymbols(style)
3647
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1672)
4092
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1903)
3648
4093
  for symbol in try jsIterated(symbols, "symbols is not iterable") {
3649
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1673)
4094
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1904)
3650
4095
  let property: Any? = Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: symbol.key]
3651
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1674)
4096
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1905)
3652
4097
  if !jsTruthy(property) {
3653
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1675)
4098
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1906)
3654
4099
  continue
3655
4100
  }
3656
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1678)
4101
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1909)
3657
4102
  if try jsTruthy(
3658
4103
  jsUnwrap(view, "property.setNative")[
3659
4104
  jsKey: (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key])
3660
4105
  {
3661
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1679)
4106
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1910)
3662
4107
  if try jsHasKey(style, (jsCastPresent(jsGet(property, "defaultValueKey")) as JSSymbol).key) {
3663
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1680)
4108
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1911)
3664
4109
  _ = try jsCallMethod(
3665
4110
  jsUnwrap(view, "property.setNative"),
3666
4111
  (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key,
3667
4112
  jsUnwrap(style, "property.defaultValueKey")[
3668
4113
  jsKey: (jsCastPresent(jsGet(property, "defaultValueKey")) as JSSymbol).key])
3669
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1681)
4114
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1912)
3670
4115
  _ =
3671
4116
  ((try? jsDelete(
3672
4117
  jsUnwrap(style, "property.defaultValueKey"),
3673
4118
  (jsCastPresent(jsGet(property, "defaultValueKey")) as JSSymbol).key)) ?? false)
3674
4119
  } else {
3675
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1683)
4120
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1914)
3676
4121
  _ = try jsCallMethod(
3677
4122
  jsUnwrap(view, "property.setNative"),
3678
4123
  (jsCastPresent(jsGet(property, "setNative")) as JSSymbol).key, jsGet(property, "defaultValue"))
@@ -3682,30 +4127,30 @@ public enum Core_ui_core_properties_index {
3682
4127
  }
3683
4128
  #sourceLocation()
3684
4129
  public static func clearInheritedProperties(_ view: ViewBase?) throws {
3685
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1690)
4130
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1921)
3686
4131
  for prop in try jsIterated(
3687
4132
  Core_ui_core_properties_index.inheritableProperties, "inheritableProperties is not iterable")
3688
4133
  {
3689
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1691)
4134
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1922)
3690
4135
  let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
3691
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1692)
4136
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1923)
3692
4137
  if try jsStrictEquals(jsUnwrap(view, "sourceKey")[jsKey: sourceKey.key], ValueSource.Inherited) {
3693
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1693)
4138
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1924)
3694
4139
  _ = try jsCallMethod(
3695
4140
  jsUnwrap(prop, "set").set, "call", view, Core_ui_core_properties_property_shared.unsetValue)
3696
4141
  }
3697
4142
  }
3698
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1697)
4143
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1928)
3699
4144
  let style: Style? = try jsUnwrap(view, "style").style
3700
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1698)
4145
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1929)
3701
4146
  for prop in try jsIterated(
3702
4147
  Core_ui_core_properties_index.inheritableCssProperties, "inheritableCssProperties is not iterable")
3703
4148
  {
3704
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1699)
4149
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1930)
3705
4150
  let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
3706
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1700)
4151
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1931)
3707
4152
  if try jsStrictEquals(jsUnwrap(style, "sourceKey")[jsKey: sourceKey.key], ValueSource.Inherited) {
3708
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1701)
4153
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1932)
3709
4154
  _ = try jsCallMethod(
3710
4155
  jsUnwrap(prop, "setInheritedValue").setInheritedValue, "call", style,
3711
4156
  Core_ui_core_properties_property_shared.unsetValue)
@@ -3714,26 +4159,26 @@ public enum Core_ui_core_properties_index {
3714
4159
  }
3715
4160
  #sourceLocation()
3716
4161
  public static func resetCSSProperties(_ style: Style?) throws {
3717
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1707)
4162
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1938)
3718
4163
  let symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(style)
3719
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1708)
4164
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1939)
3720
4165
  for symbol in try jsIterated(symbols, "symbols is not iterable") {
3721
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1709)
4166
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1940)
3722
4167
  var cssProperty: Any? = nil
3723
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1710)
4168
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1941)
3724
4169
  if jsTruthy(
3725
4170
  ({ () -> Any? in
3726
4171
  cssProperty = Core_ui_core_properties_index.cssSymbolPropertyMap[jsKey: symbol.key]
3727
4172
  return cssProperty
3728
4173
  }()))
3729
4174
  {
3730
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1711)
4175
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1942)
3731
4176
  try jsUnwrap(style, setting: "cssProperty.cssName")[
3732
4177
  jsKey: jsPropertyKey(jsGet(cssProperty, "cssName"))] =
3733
4178
  Core_ui_core_properties_property_shared.unsetValue
3734
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1712)
4179
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1943)
3735
4180
  if cssProperty is CssAnimationProperty {
3736
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1713)
4181
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1944)
3737
4182
  try jsUnwrap(style, setting: "cssProperty.keyframe")[
3738
4183
  jsKey: jsUnwrap(cssProperty as? CssAnimationProperty, "keyframe").keyframe] =
3739
4184
  Core_ui_core_properties_property_shared.unsetValue
@@ -3743,24 +4188,24 @@ public enum Core_ui_core_properties_index {
3743
4188
  }
3744
4189
  #sourceLocation()
3745
4190
  public static func propagateInheritableProperties(_ view: ViewBase?, _ child: ViewBase?) throws {
3746
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1720)
4191
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1951)
3747
4192
  let inheritablePropertyValues: JSArray<Any?>? = try Core_ui_core_properties_index.inheritablePropertyValuesOn(
3748
4193
  view)
3749
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1721)
4194
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1952)
3750
4195
  for pair in try jsIterated(inheritablePropertyValues, "inheritablePropertyValues is not iterable") {
3751
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1722)
4196
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1953)
3752
4197
  let prop: InheritedProperty? = try jsGet(pair, "property") as? InheritedProperty
3753
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1723)
4198
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1954)
3754
4199
  let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
3755
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1724)
4200
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1955)
3756
4201
  let currentValueSource: Double = try jsConvertedNumber(
3757
4202
  ({ () throws -> Any? in
3758
- let __v_10 = try jsUnwrap(child, "sourceKey")[jsKey: sourceKey.key]
3759
- return jsTruthy(__v_10) ? __v_10 : ValueSource.Default
4203
+ let __v_13 = try jsUnwrap(child, "sourceKey")[jsKey: sourceKey.key]
4204
+ return jsTruthy(__v_13) ? __v_13 : ValueSource.Default
3760
4205
  }()))
3761
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1725)
4206
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1956)
3762
4207
  if currentValueSource <= ValueSource.Inherited {
3763
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1726)
4208
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1957)
3764
4209
  _ = try jsCallMethod(
3765
4210
  jsUnwrap(prop, "setInheritedValue").setInheritedValue, "call", child, jsGet(pair, "value"))
3766
4211
  }
@@ -3768,24 +4213,24 @@ public enum Core_ui_core_properties_index {
3768
4213
  }
3769
4214
  #sourceLocation()
3770
4215
  public static func propagateInheritableCssProperties(_ parentStyle: Style?, _ childStyle: Style?) throws {
3771
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1732)
4216
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1963)
3772
4217
  let inheritableCssPropertyValues: JSArray<Any?>? =
3773
4218
  try Core_ui_core_properties_index.inheritableCssPropertyValuesOn(parentStyle)
3774
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1733)
4219
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1964)
3775
4220
  for pair in try jsIterated(inheritableCssPropertyValues, "inheritableCssPropertyValues is not iterable") {
3776
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1734)
4221
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1965)
3777
4222
  let prop: InheritedCssProperty? = try jsGet(pair, "property") as? InheritedCssProperty
3778
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1735)
4223
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1966)
3779
4224
  let sourceKey: JSSymbol = try jsUnwrap(prop, "sourceKey").sourceKey
3780
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1736)
4225
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1967)
3781
4226
  let currentValueSource: Double = try jsConvertedNumber(
3782
4227
  ({ () throws -> Any? in
3783
- let __v_11 = try jsUnwrap(childStyle, "sourceKey")[jsKey: sourceKey.key]
3784
- return jsTruthy(__v_11) ? __v_11 : ValueSource.Default
4228
+ let __v_14 = try jsUnwrap(childStyle, "sourceKey")[jsKey: sourceKey.key]
4229
+ return jsTruthy(__v_14) ? __v_14 : ValueSource.Default
3785
4230
  }()))
3786
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1737)
4231
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1968)
3787
4232
  if currentValueSource <= ValueSource.Inherited {
3788
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1738)
4233
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1969)
3789
4234
  _ = try jsCallMethod(
3790
4235
  jsUnwrap(prop, "setInheritedValue").setInheritedValue, "call", childStyle, jsGet(pair, "value"),
3791
4236
  ValueSource.Inherited)
@@ -3794,64 +4239,64 @@ public enum Core_ui_core_properties_index {
3794
4239
  }
3795
4240
  #sourceLocation()
3796
4241
  public static func getSetProperties(_ view: ViewBase?) throws -> JSArray<(String, Any?)>? {
3797
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1744)
4242
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1975)
3798
4243
  let result: JSArray<Any?> = JSArray<Any?>()
3799
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1746)
4244
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1977)
3800
4245
  let ownProps: JSArray<String>? = jsOwnPropertyNames(view)
3801
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1747)
4246
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1978)
3802
4247
  var i: Double = 0
3803
4248
  while try i < jsUnwrap(ownProps, "length").length {
3804
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1748)
4249
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1979)
3805
4250
  let prop: String? = try jsUnwrap(ownProps, "i").element(i)
3806
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1749)
4251
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1980)
3807
4252
  _ = try result.push(
3808
4253
  JSArray<Any?>([(prop as Any?), jsUnwrap(view, "prop")[jsKey: jsToString(prop as Any?)]]))
3809
4254
  i += 1
3810
4255
  }
3811
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1752)
4256
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1983)
3812
4257
  let symbols: JSArray<JSSymbol>? = jsOwnPropertySymbols(view)
3813
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1753)
4258
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1984)
3814
4259
  for symbol in try jsIterated(symbols, "symbols is not iterable") {
3815
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1754)
4260
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1985)
3816
4261
  let property: Any? = Core_ui_core_properties_index.symbolPropertyMap[jsKey: symbol.key]
3817
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1755)
4262
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1986)
3818
4263
  if !jsTruthy(property) {
3819
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1756)
4264
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1987)
3820
4265
  continue
3821
4266
  }
3822
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1759)
4267
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1990)
3823
4268
  let value: Any? = try jsUnwrap(view, "property.key")[jsKey: jsPropertyKey(jsGet(property, "key"))]
3824
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1760)
4269
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1991)
3825
4270
  _ = try result.push(JSArray<Any?>([jsGet(property, "name"), value]))
3826
4271
  }
3827
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1763)
4272
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1994)
3828
4273
  return jsArrayFrom(result) {
3829
4274
  { (__a: Any?) -> (String, Any?) in (jsLenientString(jsField(__a, "0")), jsField(__a, "1")) }($0)
3830
4275
  }
3831
4276
  }
3832
4277
  #sourceLocation()
3833
4278
  public static func getComputedCssValues(_ view: ViewBase?) throws -> JSArray<(String, Any?)>? {
3834
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1767)
4279
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1998)
3835
4280
  let result: JSArray<Any?> = JSArray<Any?>()
3836
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1768)
4281
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1999)
3837
4282
  let style: Style? = try jsUnwrap(view, "style").style
3838
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1769)
4283
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2000)
3839
4284
  for prop in Core_ui_core_properties_index.cssPropertyNames {
3840
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1770)
4285
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2001)
3841
4286
  if prop != nil && prop != nil {
3842
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1771)
4287
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2002)
3843
4288
  _ = try result.push(JSArray<Any?>([prop, jsUnwrap(style, "prop")[jsKey: prop]]))
3844
4289
  }
3845
4290
  }
3846
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1776)
4291
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2007)
3847
4292
  _ = result.push(JSArray<Any?>(["top", "auto"]))
3848
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1777)
4293
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2008)
3849
4294
  _ = result.push(JSArray<Any?>(["left", "auto"]))
3850
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1778)
4295
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2009)
3851
4296
  _ = result.push(JSArray<Any?>(["bottom", "auto"]))
3852
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1779)
4297
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2010)
3853
4298
  _ = result.push(JSArray<Any?>(["right", "auto"]))
3854
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1781)
4299
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:2012)
3855
4300
  return jsArrayFrom(result) {
3856
4301
  { (__a: Any?) -> (String, Any?) in (jsLenientString(jsField(__a, "0")), jsField(__a, "1")) }($0)
3857
4302
  }
@@ -3871,27 +4316,31 @@ public func __init_Core_ui_core_properties_index() {
3871
4316
  Core_ui_core_properties_index.cssValueSourceKeys = jsRecordOf(
3872
4317
  jsObjectCreate(jsNull), as: JSRecord<JSSymbol>.self
3873
4318
  ) { ($0 as! JSSymbol) }
3874
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:527)
4319
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:348)
4320
+ Core_ui_core_properties_index.NO_LONGHAND_VALUES = jsRecordOf(jsFreeze(JSObject([])), as: JSRecord<Any?>.self) {
4321
+ $0
4322
+ }
4323
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:731)
3875
4324
  try jsSet(JSPrototypes.of(Property.self), "isStyleProperty", false)
3876
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1029)
4325
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1233)
3877
4326
  try jsSet(JSPrototypes.of(CssProperty.self), "isStyleProperty", true)
3878
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1251)
4327
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1456)
3879
4328
  try jsSet(JSPrototypes.of(CssAnimationProperty.self), "isStyleProperty", true)
3880
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1253)
4329
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1458)
3881
4330
 
3882
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1564)
4331
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1795)
3883
4332
  Core_ui_core_properties_index.initNativeView = FunctionCell_ViewBaseOpt_to_Void.scriptOrNil(
3884
4333
  "", 1,
3885
4334
  { (view: ViewBase?) throws -> Void in
3886
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1565)
4335
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1796)
3887
4336
  if try jsTruthy(jsUnwrap(view, "_suspendedUpdates")._suspendedUpdates) {
3888
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1566)
4337
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1797)
3889
4338
  try Core_ui_core_properties_index.applyPendingNativeSetters(view)
3890
4339
  } else {
3891
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1568)
4340
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1799)
3892
4341
  try Core_ui_core_properties_index.applyAllNativeSetters(view)
3893
4342
  }
3894
- #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1571)
4343
+ #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:1802)
3895
4344
  try jsUnwrap(view, setting: "_suspendedUpdates")._suspendedUpdates = JSRecord<Any?>()
3896
4345
  })
3897
4346
  }