@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
@@ -1,6 +1,6 @@
1
1
  {
2
- "core": "9.1.5-next.7",
3
- "commit": "783f90db5efaf86f4ae2955253cd8a83d0063e4f",
2
+ "core": "9.2.0-next.2",
3
+ "commit": "5911fbe4740e816279bce2c34d2ee44bd677ad92",
4
4
  "modules": [
5
5
  "abortcontroller/",
6
6
  "accessibility/",
@@ -134,7 +134,7 @@
134
134
  "utils/constants.ios.ts": "fa1feaf122e6"
135
135
  },
136
136
  "application.helpers-common.swift": {
137
- "application/helpers-common.ts": "eb0bc684eb9a"
137
+ "application/helpers-common.ts": "8addd6c788d5"
138
138
  },
139
139
  "utils.native-helper.ios.swift": {
140
140
  "utils/native-helper.ios.ts": "709c6ad66dd9"
@@ -248,7 +248,7 @@
248
248
  "native-window/native-window-interfaces.ts": "1e826cc30c8a"
249
249
  },
250
250
  "application.application-common.swift": {
251
- "application/application-common.ts": "93b2efe6e8ef"
251
+ "application/application-common.ts": "64c831949029"
252
252
  },
253
253
  "application.scene-delegate-bridge.swift": {
254
254
  "application/scene-delegate-bridge.ts": "e4be7aa636d7"
@@ -266,7 +266,7 @@
266
266
  "application/application-interfaces.ts": "e91c9009d2bf"
267
267
  },
268
268
  "application.application.ios.swift": {
269
- "application/application.ios.ts": "c3e45d1c47a4"
269
+ "application/application.ios.ts": "7131741fcdb5"
270
270
  },
271
271
  "application.application-shims.swift": {
272
272
  "application/application-shims.ts": "2651f791bae8"
@@ -311,10 +311,10 @@
311
311
  "http/http-interfaces.ts": "52b81deb6a54"
312
312
  },
313
313
  "ui.styling.style.index.swift": {
314
- "ui/styling/style/index.ts": "841024a8c9a8"
314
+ "ui/styling/style/index.ts": "4951b56aa929"
315
315
  },
316
316
  "ui.core.properties.index.swift": {
317
- "ui/core/properties/index.ts": "5c6c0d30430c"
317
+ "ui/core/properties/index.ts": "45d078ed05eb"
318
318
  },
319
319
  "ui.styling.font-common.swift": {
320
320
  "ui/styling/font-common.ts": "339b63e8cf3a"
@@ -323,10 +323,10 @@
323
323
  "ui/styling/font.ios.ts": "f75cc4fb8aef"
324
324
  },
325
325
  "http.http-request-internal.http-request-internal-common.swift": {
326
- "http/http-request-internal/http-request-internal-common.ts": "ba6d4640ff3a"
326
+ "http/http-request-internal/http-request-internal-common.ts": "9296c1ead038"
327
327
  },
328
328
  "http.http-request-internal.index.ios.swift": {
329
- "http/http-request-internal/index.ios.ts": "9bca8ce140a9"
329
+ "http/http-request-internal/index.ios.ts": "eca08d39a5b0"
330
330
  },
331
331
  "image-source.image-source-common.swift": {
332
332
  "image-source/image-source-common.ts": "e1591db257c1"
@@ -371,7 +371,7 @@
371
371
  "ui/styling/length-shared.ts": "7d3514503a6d"
372
372
  },
373
373
  "css-mediaquery.index.swift": {
374
- "css-mediaquery/index.ts": "1441b295b1fe"
374
+ "css-mediaquery/index.ts": "e32cfc6f0b59"
375
375
  },
376
376
  "css-value.reworkcss-value.swift": {
377
377
  "css-value/reworkcss-value.ts": "cb109f55b992"
@@ -386,7 +386,7 @@
386
386
  "css/parser.ts": "6b766650593c"
387
387
  },
388
388
  "xhr.index.swift": {
389
- "xhr/index.ts": "595f598bf631"
389
+ "xhr/index.ts": "181fa1342153"
390
390
  },
391
391
  "fetch.index.swift": {
392
392
  "fetch/index.ts": "c11a9eae01ed"
@@ -404,7 +404,7 @@
404
404
  "matrix/index.ts": "9279be2f236f"
405
405
  },
406
406
  "media-query-list.index.swift": {
407
- "media-query-list/index.ts": "41b5cc06b76c"
407
+ "media-query-list/index.ts": "3a27edf80641"
408
408
  },
409
409
  "module-name-resolver.non-bundle-workflow-compat.swift": {
410
410
  "module-name-resolver/non-bundle-workflow-compat.ts": "a3e7ec1e2efb"
@@ -413,16 +413,16 @@
413
413
  "ui/styling/styling-shared.ts": "de4238e723c5"
414
414
  },
415
415
  "npm.css-what.src.types.swift": {
416
- "npm/css-what/src/types.ts": "b063b3a7fb69"
416
+ "npm/css-what/src/types.ts": "d4b9a5e5534d"
417
417
  },
418
418
  "npm.css-what.src.parse.swift": {
419
- "npm/css-what/src/parse.ts": "bc2c1a402eef"
419
+ "npm/css-what/src/parse.ts": "8238542f30bb"
420
420
  },
421
421
  "npm.css-what.src.stringify.swift": {
422
- "npm/css-what/src/stringify.ts": "6d757936015f"
422
+ "npm/css-what/src/stringify.ts": "87dfedf38125"
423
423
  },
424
424
  "npm.css-what.src.index.swift": {
425
- "npm/css-what/src/index.ts": "4b3e80186215"
425
+ "npm/css-what/src/index.ts": "bc33eff9d9db"
426
426
  },
427
427
  "ui.styling.css-utils.swift": {
428
428
  "ui/styling/css-utils.ts": "bfc3a26710c8"
@@ -464,7 +464,7 @@
464
464
  "ui/styling/style-properties.ts": "2dbe8f1f2b6c"
465
465
  },
466
466
  "ui.animation.index.ios.swift": {
467
- "ui/animation/index.ios.ts": "26f51d50cb82"
467
+ "ui/animation/index.ios.ts": "133e0a61e32c"
468
468
  },
469
469
  "ui.animation.keyframe-animation.swift": {
470
470
  "ui/animation/keyframe-animation.ts": "a90311e2cee1"
@@ -476,7 +476,7 @@
476
476
  "ui/styling/css-animation-parser.ts": "80e26c3f26e4"
477
477
  },
478
478
  "ui.styling.style-scope.swift": {
479
- "ui/styling/style-scope.ts": "0593f77ad81e"
479
+ "ui/styling/style-scope.ts": "1927a73e61f8"
480
480
  },
481
481
  "ui.core.view-base.index.swift": {
482
482
  "ui/core/view-base/index.ts": "422e4269b053"
@@ -737,7 +737,7 @@
737
737
  "ui/page/page-common.ts": "a89eb8b4a323"
738
738
  },
739
739
  "ui.page.index.ios.swift": {
740
- "ui/page/index.ios.ts": "8e2fc558b39e"
740
+ "ui/page/index.ios.ts": "85bd2f328eac"
741
741
  },
742
742
  "ui.placeholder.placeholder-common.swift": {
743
743
  "ui/placeholder/placeholder-common.ts": "05bdc6f1a8e2"
@@ -832,6 +832,9 @@
832
832
  "ui.web-view.index.ios.swift": {
833
833
  "ui/web-view/index.ios.ts": "a8097f472340"
834
834
  },
835
+ "utils.android-runtime-version.swift": {
836
+ "utils/android-runtime-version.ts": "c260e6abbb4e"
837
+ },
835
838
  "utils.lazy.swift": {
836
839
  "utils/lazy.ts": "8a8e718319ac"
837
840
  },
@@ -1104,6 +1107,7 @@
1104
1107
  "Object_eventName_object_error.swift": {},
1105
1108
  "Object_eventName_object_window.swift": {},
1106
1109
  "Object_eventName_object_ios_android.swift": {},
1110
+ "Object_eventName_object_ios_android_.swift": {},
1107
1111
  "Object_moduleName.swift": {},
1108
1112
  "Object_eventName_rootView.swift": {},
1109
1113
  "Object_eventName_object_cssFile.swift": {},
@@ -1143,6 +1147,9 @@
1143
1147
  "Object_exists_isDirectory.swift": {},
1144
1148
  "Object_message.swift": {},
1145
1149
  "Object_folder_path.swift": {},
1150
+ "Object_substituted_values_reads.swift": {},
1151
+ "Object_specified_substituted_reads.swift": {},
1152
+ "Object_substituted_values_reads_.swift": {},
1146
1153
  "Object_object_eventName_propertyName_value_oldValue_origin.swift": {},
1147
1154
  "Object_enumerable_configurable_get_set.swift": {},
1148
1155
  "Object_enumerable_configurable_get_set_.swift": {},
@@ -2311,6 +2318,7 @@
2311
2318
  "init": "__init_Core_ui_styling_style_scope",
2312
2319
  "imports": [
2313
2320
  "application.index.ios.swift",
2321
+ "css-mediaquery.index.swift",
2314
2322
  "css.CSS3Parser.swift",
2315
2323
  "css.CSSNativeScript.swift",
2316
2324
  "file-system.index.swift",
@@ -3372,6 +3380,9 @@
3372
3380
  "ui.web-view.web-view-common.swift"
3373
3381
  ]
3374
3382
  },
3383
+ "utils.android-runtime-version.swift": {
3384
+ "imports": []
3385
+ },
3375
3386
  "utils.lazy.swift": {
3376
3387
  "imports": []
3377
3388
  },
@@ -34,12 +34,12 @@ open class MediaQueryListImpl: Observable {
34
34
  }
35
35
  public override init() throws {
36
36
  try super.init()
37
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:75)
37
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:124)
38
38
  if !Core_media_query_list_index.isMediaInitializationEnabled {
39
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:76)
39
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:125)
40
40
  throw JSException(value: JSTypeError("Illegal constructor"))
41
41
  }
42
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:79)
42
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:128)
43
43
  _ = try
44
44
  ({ () throws -> Any? in
45
45
  self._onChange = jsNull
@@ -51,7 +51,7 @@ open class MediaQueryListImpl: Observable {
51
51
  #sourceLocation()
52
52
  open var media: String {
53
53
  get throws {
54
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:100)
54
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:149)
55
55
  try
56
56
  ({ () throws -> Void in
57
57
  if let __own1 = jsOwnProperty(self, "_throwInvocationError") {
@@ -60,14 +60,14 @@ open class MediaQueryListImpl: Observable {
60
60
  try self._throwInvocationError()
61
61
  }
62
62
  }())
63
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:102)
63
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:151)
64
64
  return self._media
65
65
  }
66
66
  }
67
67
  #sourceLocation()
68
68
  open var matches: Bool {
69
69
  get throws {
70
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:106)
70
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:155)
71
71
  try
72
72
  ({ () throws -> Void in
73
73
  if let __own2 = jsOwnProperty(self, "_throwInvocationError") {
@@ -76,7 +76,7 @@ open class MediaQueryListImpl: Observable {
76
76
  try self._throwInvocationError()
77
77
  }
78
78
  }())
79
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:108)
79
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:157)
80
80
  return self._matches
81
81
  }
82
82
  }
@@ -84,7 +84,7 @@ open class MediaQueryListImpl: Observable {
84
84
  open var onchange: Any? {
85
85
  get {
86
86
  jsReported { () throws -> Any? in
87
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:180)
87
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:229)
88
88
  try
89
89
  ({ () throws -> Void in
90
90
  if let __own3 = jsOwnProperty(self, "_throwInvocationError") {
@@ -93,14 +93,14 @@ open class MediaQueryListImpl: Observable {
93
93
  try self._throwInvocationError()
94
94
  }
95
95
  }())
96
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:182)
96
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:231)
97
97
  return self._onChange
98
98
  } ?? nil
99
99
  }
100
100
  set {
101
101
  let callback = newValue
102
102
  jsReport {
103
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:186)
103
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:235)
104
104
  try
105
105
  ({ () throws -> Void in
106
106
  if let __own4 = jsOwnProperty(self, "_throwInvocationError") {
@@ -109,17 +109,17 @@ open class MediaQueryListImpl: Observable {
109
109
  try self._throwInvocationError()
110
110
  }
111
111
  }())
112
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:189)
112
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:238)
113
113
  if jsTruthy(self._onChange) {
114
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:190)
114
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:239)
115
115
  try self.removeListener(self._onChange)
116
116
  }
117
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:193)
117
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:242)
118
118
  if jsTruthy(callback) {
119
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:194)
119
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:243)
120
120
  try self.addListener(callback)
121
121
  }
122
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:197)
122
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:246)
123
123
  self._onChange = callback
124
124
  }
125
125
  }
@@ -129,7 +129,7 @@ open class MediaQueryListImpl: Observable {
129
129
  _ eventName: String, _ callback: @escaping (EventData?) throws -> Void, _ thisArg: Any? = nil,
130
130
  _ once: Bool? = nil
131
131
  ) throws {
132
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:113)
132
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:162)
133
133
  try
134
134
  ({ () throws -> Void in
135
135
  if let __own5 = jsOwnProperty(self, "_throwInvocationError") {
@@ -138,17 +138,17 @@ open class MediaQueryListImpl: Observable {
138
138
  try self._throwInvocationError()
139
139
  }
140
140
  }())
141
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:115)
141
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:164)
142
142
  let hasChangeListeners: Bool = try self.hasListeners(MediaQueryListImpl.changeEvent)
143
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:118)
143
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:167)
144
144
  try super.addEventListener(eventName, FunctionCell_EventDataOpt_to_Void.present(callback), thisArg, once)
145
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:120)
145
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:169)
146
146
  if jsStringEquals(eventName, MediaQueryListImpl.changeEvent) && !hasChangeListeners {
147
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:121)
147
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:170)
148
148
  _ = Core_media_query_list_index.mediaQueryLists.push(self)
149
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:123)
149
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:172)
150
150
  if Core_media_query_list_index.mediaQueryLists.length == 1 {
151
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:124)
151
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:173)
152
152
  try Core_application_helpers_common.toggleApplicationEventListeners(
153
153
  true,
154
154
  FunctionCell_AnyOpt_to_Void.declared(
@@ -161,7 +161,7 @@ open class MediaQueryListImpl: Observable {
161
161
  open override func removeEventListener(
162
162
  _ eventName: String, _ callback: ((EventData?) throws -> Void)? = nil, _ thisArg: Any? = nil
163
163
  ) throws {
164
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:131)
164
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:180)
165
165
  try
166
166
  ({ () throws -> Void in
167
167
  if let __own6 = jsOwnProperty(self, "_throwInvocationError") {
@@ -170,23 +170,23 @@ open class MediaQueryListImpl: Observable {
170
170
  try self._throwInvocationError()
171
171
  }
172
172
  }())
173
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:134)
173
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:183)
174
174
  try super.removeEventListener(eventName, FunctionCell_EventDataOpt_to_Void.implicit(callback), thisArg)
175
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:136)
175
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:185)
176
176
  if jsStringEquals(eventName, MediaQueryListImpl.changeEvent) {
177
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:137)
177
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:186)
178
178
  let hasChangeListeners: Bool = try self.hasListeners(MediaQueryListImpl.changeEvent)
179
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:139)
179
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:188)
180
180
  if !hasChangeListeners {
181
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:140)
181
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:189)
182
182
  let index: Double = Core_media_query_list_index.mediaQueryLists.indexOf(self)
183
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:141)
183
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:190)
184
184
  if index >= 0 {
185
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:142)
185
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:191)
186
186
  _ = Core_media_query_list_index.mediaQueryLists.splice(index, 1)
187
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:144)
187
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:193)
188
188
  if !jsTruthy(Core_media_query_list_index.mediaQueryLists.length) {
189
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:145)
189
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:194)
190
190
  try Core_application_helpers_common.toggleApplicationEventListeners(
191
191
  false,
192
192
  FunctionCell_AnyOpt_to_Void.declared(
@@ -199,7 +199,7 @@ open class MediaQueryListImpl: Observable {
199
199
  }
200
200
  #sourceLocation()
201
201
  open func addListener(_ callback: Any?) throws {
202
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:153)
202
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:202)
203
203
  try
204
204
  ({ () throws -> Void in
205
205
  if let __own7 = jsOwnProperty(self, "_throwInvocationError") {
@@ -208,21 +208,21 @@ open class MediaQueryListImpl: Observable {
208
208
  try self._throwInvocationError()
209
209
  }
210
210
  }())
211
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:157)
211
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:206)
212
212
  let wrapperCallback: (Any?) throws -> Void = { (data: Any?) throws -> Void in
213
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:158)
213
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:207)
214
214
  _ = try jsCallMethod(callback, "call", self, JSObject([("matches", self.matches), ("media", self.media)]))
215
215
  }
216
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:165)
216
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:214)
217
217
  try self.addEventListener(
218
218
  MediaQueryListImpl.changeEvent, FunctionCell_EventDataOpt_to_Void.adapting(wrapperCallback))
219
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:166)
219
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:215)
220
220
  _ = try jsUnwrap(self.mediaQueryChangeListeners, "set").set(
221
221
  callback, FunctionCell_AnyOpt_to_Void.scriptOrNil("", 1, wrapperCallback))
222
222
  }
223
223
  #sourceLocation()
224
224
  open func removeListener(_ callback: Any?) throws {
225
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:170)
225
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:219)
226
226
  try
227
227
  ({ () throws -> Void in
228
228
  if let __own8 = jsOwnProperty(self, "_throwInvocationError") {
@@ -231,20 +231,20 @@ open class MediaQueryListImpl: Observable {
231
231
  try self._throwInvocationError()
232
232
  }
233
233
  }())
234
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:172)
234
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:221)
235
235
  if try jsUnwrap(self.mediaQueryChangeListeners, "has").has(callback) {
236
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:174)
236
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:223)
237
237
  try self.removeEventListener(
238
238
  MediaQueryListImpl.changeEvent,
239
239
  FunctionCell_EventDataOpt_to_Void.fromScriptOrNil(
240
240
  (jsUnwrap(self.mediaQueryChangeListeners, "get").get(callback) ?? nil)))
241
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:175)
241
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:224)
242
242
  _ = try jsUnwrap(self.mediaQueryChangeListeners, "delete").delete(callback)
243
243
  }
244
244
  }
245
245
  #sourceLocation()
246
246
  open func _throwInvocationError() throws {
247
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:201)
247
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:250)
248
248
  throw JSException(value: JSTypeError("Illegal invocation"))
249
249
  }
250
250
  #sourceLocation()
@@ -363,16 +363,42 @@ open class MediaQueryListImpl: Observable {
363
363
  public enum Core_media_query_list_index {
364
364
  public static let mediaQueryLists: JSArray<MediaQueryListImpl> = JSArray<MediaQueryListImpl>()
365
365
  public static var isMediaInitializationEnabled: Bool = false
366
+ public static let matchResultCache: JSMap<String, Bool> = JSMap<String, Bool>()
367
+ public static var isCacheInvalidationRegistered: Bool = false
368
+ public static func clearMatchResultCache() {
369
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:18)
370
+ Core_media_query_list_index.matchResultCache.clear()
371
+ }
372
+ #sourceLocation()
373
+ public static func registerCacheInvalidation() throws {
374
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:22)
375
+ if Core_media_query_list_index.isCacheInvalidationRegistered {
376
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:23)
377
+ return
378
+ }
379
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:26)
380
+ Core_media_query_list_index.isCacheInvalidationRegistered = true
381
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:27)
382
+ try Core_application_helpers_common.toggleApplicationEventListeners(
383
+ true,
384
+ FunctionCell_AnyOpt_to_Void.adapting(
385
+ FunctionCell_none_to_Void.declared(
386
+ "Core_media_query_list_index.clearMatchResultCache",
387
+ { Core_media_query_list_index.clearMatchResultCache() })))
388
+ }
389
+ #sourceLocation()
366
390
  public static func onDeviceChange(_ args: Any?) throws {
367
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:14)
391
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:32)
392
+ Core_media_query_list_index.clearMatchResultCache()
393
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:34)
368
394
  for mql in Core_media_query_list_index.mediaQueryLists {
369
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:15)
395
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:35)
370
396
  let matches: Bool? = try Core_media_query_list_index.checkIfMediaQueryMatches(jsUnwrap(mql, "media").media)
371
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:16)
397
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:36)
372
398
  if try jsUnwrap(mql, "matches").matches != (matches ?? false) {
373
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:17)
399
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:37)
374
400
  try jsUnwrap(mql, setting: "_matches")._matches = (matches ?? false)
375
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:19)
401
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:39)
376
402
  try jsUnwrap(mql, "notify").notify(
377
403
  Object_eventName_object_matches_media(
378
404
  eventName: MediaQueryListImpl.changeEvent, object: mql,
@@ -382,49 +408,135 @@ public enum Core_media_query_list_index {
382
408
  }
383
409
  #sourceLocation()
384
410
  public static func checkIfMediaQueryMatches(_ mediaQueryString: String) throws -> Bool? {
385
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:30)
386
- let __d_1: MainScreen = try jsDestructured(Screen.mainScreen, "widthPixels")
387
- let widthPixels: Double = try __d_1.widthPixels
388
- let heightPixels: Double = try __d_1.heightPixels
389
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:32)
411
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:50)
412
+ let cachedResult: Bool? = Core_media_query_list_index.matchResultCache.get(mediaQueryString)
413
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:51)
414
+ if cachedResult != nil {
415
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:52)
416
+ return cachedResult
417
+ }
418
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:55)
390
419
  var matches: Bool? = nil
391
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:34)
392
- do {
393
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:35)
394
- let appProperties: Any? = try Core_application_helpers_common.getApplicationProperties()
395
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:36)
396
- matches = try Core_css_mediaquery_index.matchQuery(
397
- mediaQueryString,
398
- JSObject([
399
- ("type", MediaQueryType.screen), ("width", widthPixels), ("height", heightPixels),
400
- ("device-width", widthPixels), ("device-height", heightPixels),
401
- ("orientation", jsGet(appProperties, "orientation")),
402
- ("prefers-color-scheme", jsGet(appProperties, "systemAppearance")),
403
- ]))
404
- } catch {
405
- let err: Any? = jsCaught(error)
406
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:46)
420
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:57)
421
+ if try Core_css_mediaquery_index.isEvaluableMediaQuery(mediaQueryString) {
422
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:58)
423
+ try Core_media_query_list_index.registerCacheInvalidation()
424
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:61)
425
+ var screenPixels: Any? = nil
426
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:62)
427
+ var appProperties: Any? = nil
428
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:63)
429
+ let getScreenPixels: () throws -> Any? = { () throws -> Any? in
430
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:63)
431
+ return try
432
+ (({ () throws -> Any? in
433
+ if jsIsNullish(screenPixels) {
434
+ try screenPixels = JSObject([
435
+ ("width", jsUnwrap(Screen.mainScreen, "widthPixels").widthPixels),
436
+ ("height", jsUnwrap(Screen.mainScreen, "heightPixels").heightPixels),
437
+ ])
438
+ }
439
+ return screenPixels
440
+ }()))
441
+ }
442
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:64)
443
+ let getAppProperties: () throws -> Any? = { () throws -> Any? in
444
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:64)
445
+ return try
446
+ (({ () throws -> Any? in
447
+ if jsIsNullish(appProperties) {
448
+ try appProperties = Core_application_helpers_common.getApplicationProperties()
449
+ }
450
+ return appProperties
451
+ }()))
452
+ }
453
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:66)
454
+ do {
455
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:67)
456
+ matches = try Core_css_mediaquery_index.matchQuery(
457
+ mediaQueryString,
458
+ { () -> JSObject in
459
+ let __o_1 = JSObject()
460
+ __o_1["type"] = MediaQueryType.screen
461
+ _ = try? __o_1.defineProperty(
462
+ "width",
463
+ JSPropertyDescriptor(
464
+ get: { (__this: Any?) throws -> Any? in
465
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:70)
466
+ return try jsGet(getScreenPixels(), "width")
467
+ }, enumerable: true, configurable: true))
468
+ _ = try? __o_1.defineProperty(
469
+ "height",
470
+ JSPropertyDescriptor(
471
+ get: { (__this: Any?) throws -> Any? in
472
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:73)
473
+ return try jsGet(getScreenPixels(), "height")
474
+ }, enumerable: true, configurable: true))
475
+ _ = try? __o_1.defineProperty(
476
+ "device-width",
477
+ JSPropertyDescriptor(
478
+ get: { (__this: Any?) throws -> Any? in
479
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:76)
480
+ return try jsGet(getScreenPixels(), "width")
481
+ }, enumerable: true, configurable: true))
482
+ _ = try? __o_1.defineProperty(
483
+ "device-height",
484
+ JSPropertyDescriptor(
485
+ get: { (__this: Any?) throws -> Any? in
486
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:79)
487
+ return try jsGet(getScreenPixels(), "height")
488
+ }, enumerable: true, configurable: true))
489
+ _ = try? __o_1.defineProperty(
490
+ "orientation",
491
+ JSPropertyDescriptor(
492
+ get: { (__this: Any?) throws -> Any? in
493
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:82)
494
+ return try jsGet(getAppProperties(), "orientation")
495
+ }, enumerable: true, configurable: true))
496
+ _ = try? __o_1.defineProperty(
497
+ "prefers-color-scheme",
498
+ JSPropertyDescriptor(
499
+ get: { (__this: Any?) throws -> Any? in
500
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:85)
501
+ return try jsGet(getAppProperties(), "systemAppearance")
502
+ }, enumerable: true, configurable: true))
503
+ return __o_1
504
+ }())
505
+ } catch {
506
+ #sourceLocation()
507
+ let err: Any? = jsCaught(error)
508
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:89)
509
+ matches = false
510
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:90)
511
+ try NativeScriptKit.Trace.write(
512
+ err, NativeScriptKit.Trace.categories.MediaQuery, NativeScriptKit.Trace.messageType.error)
513
+ }
514
+ } else {
515
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:93)
407
516
  matches = false
408
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:47)
517
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:94)
409
518
  try NativeScriptKit.Trace.write(
410
- err, NativeScriptKit.Trace.categories.MediaQuery, NativeScriptKit.Trace.messageType.error)
519
+ "Media query '\(mediaQueryString)' cannot be evaluated and will never match",
520
+ NativeScriptKit.Trace.categories.MediaQuery, NativeScriptKit.Trace.messageType.warn)
411
521
  }
412
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:50)
522
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:97)
523
+ _ = Core_media_query_list_index.matchResultCache.set(mediaQueryString, (matches ?? false))
524
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:99)
413
525
  return matches
414
526
  }
415
527
  #sourceLocation()
416
528
  public static func matchMedia(_ mediaQueryString: String) throws -> MediaQueryListImpl? {
417
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:54)
529
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:103)
418
530
  Core_media_query_list_index.isMediaInitializationEnabled = true
419
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:55)
531
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:104)
420
532
  let mediaQueryList: MediaQueryListImpl = try MediaQueryListImpl()
421
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:56)
533
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:105)
422
534
  Core_media_query_list_index.isMediaInitializationEnabled = false
423
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:58)
535
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:107)
424
536
  mediaQueryList._media = mediaQueryString
425
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:59)
537
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:108)
426
538
  mediaQueryList._matches = try (Core_media_query_list_index.checkIfMediaQueryMatches(mediaQueryString) ?? false)
427
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:60)
539
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:109)
428
540
  return mediaQueryList
429
541
  }
430
542
  }
@@ -432,7 +544,7 @@ public enum Core_media_query_list_index {
432
544
  #sourceLocation()
433
545
  public func __init_Core_media_query_list_index() {
434
546
  jsReport {
435
- #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:63)
547
+ #sourceLocation(file:"@nativescript/core/media-query-list.index.ts",line:112)
436
548
  JSPrototypes.declare(
437
549
  MediaQueryListImpl.self, "media",
438
550
  get: { (__this: Any?) throws -> Any? in
@@ -71,7 +71,7 @@ open class IOSNativeWindow: NativeWindow {
71
71
  #sourceLocation(file:"@nativescript/core/native-window.native-window.ios.ts",line:68)
72
72
  _ = try
73
73
  (jsImplicit(jsUnwrap(NativeScriptEmbedder.sharedInstance(), "delegate").delegate)
74
- as any NativeScriptEmbedderDelegate?)?.presentNativeScriptApp(controller)
74
+ as (any NativeScriptEmbedderDelegate)?)?.presentNativeScriptApp(controller)
75
75
  } else {
76
76
  #sourceLocation(file:"@nativescript/core/native-window.native-window.ios.ts",line:70)
77
77
  let haveController: Bool =