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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/README.md +3 -0
  2. package/dist/kotlin/access.js +8 -7
  3. package/dist/kotlin/assignment.js +22 -13
  4. package/dist/kotlin/builtins.js +67 -0
  5. package/dist/kotlin/calls.js +3 -2
  6. package/dist/kotlin/class-declaration.js +4 -9
  7. package/dist/kotlin/class-methods.js +2 -2
  8. package/dist/kotlin/core-api.js +1 -1
  9. package/dist/kotlin/declarations.js +1 -1
  10. package/dist/kotlin/expression-statements.js +13 -1
  11. package/dist/kotlin/functions.js +1 -0
  12. package/dist/kotlin/literals.js +4 -8
  13. package/dist/kotlin/names.js +4 -4
  14. package/dist/kotlin/native/api.js +1 -1
  15. package/dist/kotlin/operators.js +25 -25
  16. package/dist/kotlin/optional-chains.js +1 -1
  17. package/dist/kotlin/overrides.js +2 -2
  18. package/dist/kotlin/state-backend.js +6 -2
  19. package/dist/kotlin/translator.js +1 -1
  20. package/dist/kotlin/types.js +4 -4
  21. package/dist/semantics/classes.js +15 -0
  22. package/dist/semantics/facts.js +1 -1
  23. package/dist/semantics/lang.js +10 -0
  24. package/dist/semantics/lower.js +54 -0
  25. package/dist/semantics/lowering-methods.js +5 -0
  26. package/dist/semantics/placement.js +9 -3
  27. package/dist/semantics/signals.js +11 -0
  28. package/dist/semantics/states/missing.js +7 -0
  29. package/dist/semantics/tdz.js +54 -15
  30. package/dist/semantics/throws.js +1 -1
  31. package/dist/semantics/translator-methods.js +1 -1
  32. package/dist/swift/access.js +7 -9
  33. package/dist/swift/assignment.js +20 -14
  34. package/dist/swift/calls.js +6 -3
  35. package/dist/swift/classes.js +7 -9
  36. package/dist/swift/components.js +3 -3
  37. package/dist/swift/control-flow.js +1 -1
  38. package/dist/swift/conversion.js +5 -2
  39. package/dist/swift/core-api.js +2 -2
  40. package/dist/swift/declarations.js +1 -1
  41. package/dist/swift/expressions.js +6 -2
  42. package/dist/swift/from-any.js +1 -1
  43. package/dist/swift/functions.js +5 -6
  44. package/dist/swift/global-calls.js +1 -1
  45. package/dist/swift/lenient.js +1 -6
  46. package/dist/swift/literals.js +8 -3
  47. package/dist/swift/modules.js +3 -3
  48. package/dist/swift/names.js +3 -3
  49. package/dist/swift/native/calls.js +1 -1
  50. package/dist/swift/object-classes.js +84 -1
  51. package/dist/swift/operators.js +31 -29
  52. package/dist/swift/placement.js +4 -3
  53. package/dist/swift/state-backend.js +3 -2
  54. package/dist/swift/static-calls.js +2 -3
  55. package/dist/swift/syntax.js +9 -5
  56. package/dist/swift/translator.js +1 -1
  57. package/dist/swift/type-facts.js +3 -3
  58. package/dist/swift/types.js +3 -3
  59. package/dist/targets/ios/build.js +1 -1
  60. package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +1 -0
  61. package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +525 -99
  62. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +2 -2
  63. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +29 -6
  64. package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +14 -0
  65. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +3 -3
  66. package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +49 -1
  67. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +0 -8
  68. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +0 -16
  69. package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +6 -4
  70. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +19 -7
  71. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +14 -0
  72. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +19 -10
  73. package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +17 -29
  74. package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +144 -22
  75. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +8 -3
  76. package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +2 -10
  77. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +0 -2
  78. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +6 -10
  79. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +531 -8
  80. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +0 -9
  81. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +3 -3
  82. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +19 -0
  83. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +5 -2
  84. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +232 -174
  85. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +1 -1
  86. package/kit-android/generated/kotlin/org/nativescript/kit/utils_android_runtime_version.kt +75 -0
  87. package/kit-android/generated/manifest.json +21 -18
  88. package/kit-android/generated/source-lines.json +1 -1
  89. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +497 -42
  90. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +1 -1
  91. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +22 -2
  92. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +32 -18
  93. package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +1 -1
  94. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +14 -10
  95. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +3 -9
  96. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +20 -21
  97. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +5 -7
  98. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_.swift +130 -0
  99. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +2 -4
  100. package/kit-apple/Sources/NativeScriptKit/Core/Object_specified_substituted_reads.swift +115 -0
  101. package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads.swift +113 -0
  102. package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads_.swift +113 -0
  103. package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +348 -330
  104. package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +358 -359
  105. package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +47 -29
  106. package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +3 -1
  107. package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +95 -53
  108. package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1 -1
  109. package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +1 -1
  110. package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +2 -2
  111. package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +52 -43
  112. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +18 -0
  113. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +66 -51
  114. package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +67 -51
  115. package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +143 -32
  116. package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +30 -19
  117. package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +190 -78
  118. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +1 -1
  119. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +205 -201
  120. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +41 -42
  121. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +1 -1
  122. package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +2 -2
  123. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +77 -65
  124. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +4 -4
  125. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +1272 -824
  126. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +2 -2
  127. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +8 -8
  128. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -1
  129. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +2 -1
  130. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +6 -6
  131. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +22 -21
  132. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +202 -188
  133. package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +2 -6
  134. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +3 -3
  135. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2 -2
  136. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +1 -1
  137. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +1 -1
  138. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +2 -2
  139. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +2 -2
  140. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +869 -838
  141. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +46 -31
  142. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +1 -2
  143. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +1 -1
  144. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +2 -2
  145. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +4 -4
  146. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +2 -2
  147. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +17 -17
  148. package/kit-apple/Sources/NativeScriptKit/Core/utils.android-runtime-version.swift +77 -0
  149. package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +2 -2
  150. package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +62 -61
  151. package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +4 -0
  152. package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +2 -0
  153. package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +1 -1
  154. package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +1 -1
  155. package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +1 -1
  156. package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +280 -9
  157. package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +3 -2
  158. package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +1 -0
  159. package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +1 -0
  160. package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +1 -0
  161. package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +2 -0
  162. package/package.json +2 -2
@@ -22,17 +22,16 @@ public enum Package_css_what_src_stringify {
22
22
  public static var charsToEscapeInPseudoValue: JSSet<Double>? = JSSet<Double>()
23
23
  public static var charsToEscapeInName: JSSet<Double>? = JSSet<Double>()
24
24
  /// Turns `selector` back into a string.
25
- ///
26
25
  /// @param selector Selector to stringify.
27
26
  public static func stringify(_ selector: JSArray<JSArray<Any?>>?) throws -> String {
28
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:37)
27
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:36)
29
28
  return try jsUnwrap(
30
29
  (jsUnwrap(selector, "map") as JSArray<JSArray<Any?>>).map({ (token: JSArray<Any?>?) throws -> String in
31
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:39)
30
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:38)
32
31
  return try jsUnwrap(
33
32
  (jsUnwrap(token, "map") as JSArray<Any?>).map({
34
33
  (token: Any?, index: Double, array: JSArray<Any?>?) throws -> String in
35
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:41)
34
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:40)
36
35
  return try Package_css_what_src_stringify.stringifyToken(token, index, array)
37
36
  }), "join"
38
37
  ).join("")
@@ -41,73 +40,73 @@ public enum Package_css_what_src_stringify {
41
40
  }
42
41
  #sourceLocation()
43
42
  public static func stringifyToken(_ token: Any?, _ index: Double, _ array: JSArray<Any?>?) throws -> String {
44
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:53)
43
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:52)
45
44
  let __switch1: String = try jsConvertedString(jsGet(token, "type"))
46
45
  switch __switch1 {
47
46
  case _ where jsStringEquals(__switch1, SelectorType.Child):
48
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:56)
47
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:55)
49
48
  return (index == 0 ? "> " : " > ")
50
49
  case _ where jsStringEquals(__switch1, SelectorType.Parent):
51
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:59)
50
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:58)
52
51
  return (index == 0 ? "< " : " < ")
53
52
  case _ where jsStringEquals(__switch1, SelectorType.Sibling):
54
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:62)
53
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:61)
55
54
  return (index == 0 ? "~ " : " ~ ")
56
55
  case _ where jsStringEquals(__switch1, SelectorType.Adjacent):
57
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:65)
56
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:64)
58
57
  return (index == 0 ? "+ " : " + ")
59
58
  case _ where jsStringEquals(__switch1, SelectorType.Descendant):
60
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:68)
59
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:67)
61
60
  return " "
62
61
  case _ where jsStringEquals(__switch1, SelectorType.ColumnCombinator):
63
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:71)
62
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:70)
64
63
  return (index == 0 ? "|| " : " || ")
65
64
  case _ where jsStringEquals(__switch1, SelectorType.Universal):
66
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:75)
65
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:74)
67
66
  return try
68
67
  (jsStrictEquals(jsGet(token, "namespace"), "*") && index + 1 < jsUnwrap(array, "length").length
69
68
  && jsHasKey(((jsUnwrap(array, "index + 1").element(index + 1) ?? nil) as Any?), "name")
70
69
  ? "" : "\(Package_css_what_src_stringify.getNamespace(jsConvertedString(jsGet(token, "namespace"))))*")
71
70
  case _ where jsStringEquals(__switch1, SelectorType.Tag):
72
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:83)
71
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:82)
73
72
  return try Package_css_what_src_stringify.getNamespacedName(token)
74
73
  case _ where jsStringEquals(__switch1, SelectorType.PseudoElement):
75
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:87)
74
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:86)
76
75
  return try
77
76
  "::\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "name")), Package_css_what_src_stringify.charsToEscapeInName))\((jsStrictEquals(jsGet(token, "data"), jsNull) ? "" : "(\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "data")), Package_css_what_src_stringify.charsToEscapeInPseudoValue)))"))"
78
77
  case _ where jsStringEquals(__switch1, SelectorType.Pseudo):
79
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:95)
78
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:94)
80
79
  return try
81
80
  ":\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "name")), Package_css_what_src_stringify.charsToEscapeInName))\((jsStrictEquals(jsGet(token, "data"), jsNull) ? "" : "(\((jsStringEquals(jsTypeof(jsGet(token, "data")), "string") ? Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "data")), Package_css_what_src_stringify.charsToEscapeInPseudoValue) : Package_css_what_src_stringify.stringify(try jsArrayOrNil(jsGet(token, "data"), as: JSArray<JSArray<Any?>>.self, { try jsObjectRequired(jsArrayOrNil($0, as: JSArray<Any?>.self, { $0 })) })))))"))"
82
81
  case _ where jsStringEquals(__switch1, SelectorType.Attribute):
83
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:109)
82
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:108)
84
83
  do {
85
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:110)
84
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:109)
86
85
  if try jsStrictEquals(jsGet(token, "name"), "id")
87
86
  && jsStrictEquals(jsGet(token, "action"), AttributeAction.Equals)
88
87
  && jsStrictEquals(jsGet(token, "ignoreCase"), "quirks") && !(jsTruthy(jsGet(token, "namespace")))
89
88
  {
90
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:116)
89
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:115)
91
90
  return try
92
91
  "#\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "value")), Package_css_what_src_stringify.charsToEscapeInName))"
93
92
  }
94
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:118)
93
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:117)
95
94
  if try jsStrictEquals(jsGet(token, "name"), "class")
96
95
  && jsStrictEquals(jsGet(token, "action"), AttributeAction.Element)
97
96
  && jsStrictEquals(jsGet(token, "ignoreCase"), "quirks") && !(jsTruthy(jsGet(token, "namespace")))
98
97
  {
99
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:124)
98
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:123)
100
99
  return try
101
100
  ".\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "value")), Package_css_what_src_stringify.charsToEscapeInName))"
102
101
  }
103
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:127)
102
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:126)
104
103
  let name: String = try Package_css_what_src_stringify.getNamespacedName(token)
105
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:129)
104
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:128)
106
105
  if try jsStrictEquals(jsGet(token, "action"), AttributeAction.Exists) {
107
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:130)
106
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:129)
108
107
  return "[\(name)]"
109
108
  }
110
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:133)
109
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:132)
111
110
  return try
112
111
  "[\(name)\(Package_css_what_src_stringify.getActionValue(jsConvertedString(jsGet(token, "action"))))=\"\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "value")), Package_css_what_src_stringify.charsToEscapeInAttributeValue))\"\((jsStrictEquals(jsGet(token, "ignoreCase"), jsNull) ? "" : (jsTruthy(jsGet(token, "ignoreCase")) ? " i" : " s")))]"
113
112
  }
@@ -118,44 +117,44 @@ public enum Package_css_what_src_stringify {
118
117
  }
119
118
  #sourceLocation()
120
119
  public static func getActionValue(_ action: String) throws -> String {
121
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:144)
120
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:145)
122
121
  let __switch2: String = action
123
122
  switch __switch2 {
124
123
  case _ where jsStringEquals(__switch2, AttributeAction.Equals):
125
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:146)
124
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:147)
126
125
  return ""
127
126
  case _ where jsStringEquals(__switch2, AttributeAction.Element):
128
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:149)
127
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:150)
129
128
  return "~"
130
129
  case _ where jsStringEquals(__switch2, AttributeAction.Start):
131
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:152)
130
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:153)
132
131
  return "^"
133
132
  case _ where jsStringEquals(__switch2, AttributeAction.End):
134
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:155)
133
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:156)
135
134
  return "$"
136
135
  case _ where jsStringEquals(__switch2, "any"):
137
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:158)
136
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:159)
138
137
  return "*"
139
138
  case _ where jsStringEquals(__switch2, AttributeAction.Not):
140
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:161)
139
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:162)
141
140
  return "!"
142
141
  case _ where jsStringEquals(__switch2, AttributeAction.Hyphen):
143
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:164)
142
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:165)
144
143
  return "|"
145
144
  default:
146
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:167)
145
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:168)
147
146
  throw JSException(value: JSError("Shouldn't be here"))
148
147
  }
149
148
  }
150
149
  #sourceLocation()
151
150
  public static func getNamespacedName(_ token: Any?) throws -> String {
152
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:176)
151
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:177)
153
152
  return try
154
153
  "\(Package_css_what_src_stringify.getNamespace(jsConvertedString(jsGet(token, "namespace"))))\(Package_css_what_src_stringify.escapeName(jsConvertedString(jsGet(token, "name")), Package_css_what_src_stringify.charsToEscapeInName))"
155
154
  }
156
155
  #sourceLocation()
157
156
  public static func getNamespace(_ namespace: Any?) throws -> String {
158
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:183)
157
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:184)
159
158
  return try
160
159
  (jsStrictEquals(namespace, jsNull)
161
160
  ? ""
@@ -163,23 +162,23 @@ public enum Package_css_what_src_stringify {
163
162
  }
164
163
  #sourceLocation()
165
164
  public static func escapeName(_ name: String, _ charsToEscape: JSSet<Double>?) throws -> String {
166
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:193)
167
- var lastIndex: Double = 0
168
165
  #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:194)
166
+ var lastIndex: Double = 0
167
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:195)
169
168
  var escapedName: String = ""
170
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:196)
169
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:197)
171
170
  var index: Double = 0
172
171
  while index < Double(name.utf16.count) {
173
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:197)
172
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:198)
174
173
  if try jsUnwrap(charsToEscape, "has").has(jsCharCodeAt(name, index)) {
175
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:198)
176
- escapedName += "\(jsSlice(name, lastIndex, index))\\\(jsCharAt(name, index))"
177
174
  #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:199)
175
+ escapedName += "\(jsSlice(name, lastIndex, index))\\\(jsCharAt(name, index))"
176
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:200)
178
177
  lastIndex = index + 1
179
178
  }
180
179
  index += 1
181
180
  }
182
- #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:203)
181
+ #sourceLocation(file:"@nativescript/core/css-what.src.stringify.ts",line:204)
183
182
  return (Double(escapedName.utf16.count) > 0 ? escapedName + jsSlice(name, lastIndex) : name)
184
183
  }
185
184
  }
@@ -55,7 +55,7 @@ public enum Package_css_what_src_types {
55
55
  }
56
56
 
57
57
  public func __init_Package_css_what_src_types() {
58
- #sourceLocation(file:"@nativescript/core/css-what.src.types.ts",line:32)
58
+ #sourceLocation(file:"@nativescript/core/css-what.src.types.ts",line:34)
59
59
  Package_css_what_src_types.IgnoreCaseMode = Object_Unknown_QuirksMode_IgnoreCase_CaseSensitive(
60
60
  Unknown: jsNull, QuirksMode: "quirks", IgnoreCase: true, CaseSensitive: false)
61
61
  }
@@ -15,7 +15,7 @@ import SystemConfiguration
15
15
  import UIKit
16
16
  import WebKit
17
17
 
18
- public protocol TraceErrorHandler: JSDynamic {
18
+ @MainActor public protocol TraceErrorHandler: JSDynamic {
19
19
  func handlerError(_ error: JSError) throws -> Any?
20
20
  }
21
21
  public final class TraceErrorHandlerObject: TraceErrorHandler, JSObjectConvertible {
@@ -85,7 +85,7 @@ public final class TraceErrorHandlerObject: TraceErrorHandler, JSObjectConvertib
85
85
  public func handlerError(_ error: JSError) throws -> Any? { try jsCallable(_handlerError, "handlerError")(error) }
86
86
  }
87
87
 
88
- public protocol TraceWriter: JSDynamic {
88
+ @MainActor public protocol TraceWriter: JSDynamic {
89
89
  func write(_ message: Any?, _ category: String, _ type: Double?) throws
90
90
  }
91
91
  public final class TraceWriterObject: TraceWriter, JSObjectConvertible {
@@ -1903,60 +1903,72 @@ open class Animation: AnimationBase {
1903
1903
  #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:899)
1904
1904
  var i: Double = 0
1905
1905
  let count: Any? = try jsGet(outerShadowLayers, "count")
1906
- while try jsLessThrowing(i, count) {
1907
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:900)
1908
- let shadowLayer: Any? = try jsGet(outerShadowLayers, js(i))
1909
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:901)
1910
- let __d_1: Any? = try NativeScriptKit.ios__background_ios.generateShadowLayerPaths(
1911
- view, jsImplicit(jsUnwrap(boxShadows, "i").element(i)), bounds)
1912
- let maskPath: Any? = (try jsGet(__d_1, "maskPath"))
1913
- let shadowPath: Any? = (try jsGet(__d_1, "shadowPath"))
1914
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:903)
1915
- _ = try jsCallMethod(
1916
- shadowLayer, "addAnimationForKey",
1917
- jsObjectRequired(
1918
- self._createBasicAnimation(
1919
- { () throws -> AnimationInfo in
1920
- let __literal14 = AnimationInfo(jsLiteral: ())
1921
- if let __spread13 = args {
1922
- __literal14.propertyNameToAnimate = __spread13.propertyNameToAnimate
1923
- __literal14.subPropertiesToAnimate = __spread13.subPropertiesToAnimate
1924
- __literal14.fromValue = __spread13.fromValue
1925
- __literal14.toValue = __spread13.toValue
1926
- __literal14.duration = __spread13.duration
1927
- __literal14.repeatCount = __spread13.repeatCount
1928
- __literal14.delay = __spread13.delay
1929
- }
1930
- __literal14.propertyNameToAnimate = "shadowPath"
1931
- __literal14.fromValue = try jsGet(shadowLayer, "shadowPath")
1932
- __literal14.toValue = shadowPath
1933
- return __literal14
1934
- }(), animation)), "shadowPath")
1935
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:916)
1936
- if try (jsGet(shadowLayer, "mask") is CAShapeLayer) {
1937
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:917)
1906
+ var __first2 = true
1907
+ while true {
1908
+ if !__first2 { i += 1 }
1909
+ __first2 = false
1910
+ if !(try jsLessThrowing(i, count)) { break }
1911
+ do {
1912
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:900)
1913
+ let boxShadow: BoxShadow? = (boxShadows?.element(i) ?? nil)
1914
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:901)
1915
+ if !jsTruthy(boxShadow as Any?) {
1916
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:902)
1917
+ continue
1918
+ }
1919
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:905)
1920
+ let shadowLayer: Any? = try jsGet(outerShadowLayers, js(i))
1921
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:906)
1922
+ let __d_1: Any? = try NativeScriptKit.ios__background_ios.generateShadowLayerPaths(
1923
+ view, boxShadow, bounds)
1924
+ let maskPath: Any? = (try jsGet(__d_1, "maskPath"))
1925
+ let shadowPath: Any? = (try jsGet(__d_1, "shadowPath"))
1926
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:908)
1938
1927
  _ = try jsCallMethod(
1939
- jsGet(shadowLayer, "mask"), "addAnimationForKey",
1928
+ shadowLayer, "addAnimationForKey",
1940
1929
  jsObjectRequired(
1941
1930
  self._createBasicAnimation(
1942
1931
  { () throws -> AnimationInfo in
1943
- let __literal15 = AnimationInfo(jsLiteral: ())
1944
- if let __spread14 = args {
1945
- __literal15.propertyNameToAnimate = __spread14.propertyNameToAnimate
1946
- __literal15.subPropertiesToAnimate = __spread14.subPropertiesToAnimate
1947
- __literal15.fromValue = __spread14.fromValue
1948
- __literal15.toValue = __spread14.toValue
1949
- __literal15.duration = __spread14.duration
1950
- __literal15.repeatCount = __spread14.repeatCount
1951
- __literal15.delay = __spread14.delay
1932
+ let __literal14 = AnimationInfo(jsLiteral: ())
1933
+ if let __spread13 = args {
1934
+ __literal14.propertyNameToAnimate = __spread13.propertyNameToAnimate
1935
+ __literal14.subPropertiesToAnimate = __spread13.subPropertiesToAnimate
1936
+ __literal14.fromValue = __spread13.fromValue
1937
+ __literal14.toValue = __spread13.toValue
1938
+ __literal14.duration = __spread13.duration
1939
+ __literal14.repeatCount = __spread13.repeatCount
1940
+ __literal14.delay = __spread13.delay
1952
1941
  }
1953
- __literal15.propertyNameToAnimate = "path"
1954
- __literal15.fromValue = try jsGet(jsGet(shadowLayer, "mask"), "path")
1955
- __literal15.toValue = maskPath
1956
- return __literal15
1957
- }(), animation)), "path")
1942
+ __literal14.propertyNameToAnimate = "shadowPath"
1943
+ __literal14.fromValue = try jsGet(shadowLayer, "shadowPath")
1944
+ __literal14.toValue = shadowPath
1945
+ return __literal14
1946
+ }(), animation)), "shadowPath")
1947
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:921)
1948
+ if try (jsGet(shadowLayer, "mask") is CAShapeLayer) {
1949
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:922)
1950
+ _ = try jsCallMethod(
1951
+ jsGet(shadowLayer, "mask"), "addAnimationForKey",
1952
+ jsObjectRequired(
1953
+ self._createBasicAnimation(
1954
+ { () throws -> AnimationInfo in
1955
+ let __literal15 = AnimationInfo(jsLiteral: ())
1956
+ if let __spread14 = args {
1957
+ __literal15.propertyNameToAnimate = __spread14.propertyNameToAnimate
1958
+ __literal15.subPropertiesToAnimate = __spread14.subPropertiesToAnimate
1959
+ __literal15.fromValue = __spread14.fromValue
1960
+ __literal15.toValue = __spread14.toValue
1961
+ __literal15.duration = __spread14.duration
1962
+ __literal15.repeatCount = __spread14.repeatCount
1963
+ __literal15.delay = __spread14.delay
1964
+ }
1965
+ __literal15.propertyNameToAnimate = "path"
1966
+ __literal15.fromValue = try jsGet(jsGet(shadowLayer, "mask"), "path")
1967
+ __literal15.toValue = maskPath
1968
+ return __literal15
1969
+ }(), animation)), "path")
1970
+ }
1958
1971
  }
1959
- i += 1
1960
1972
  }
1961
1973
  }
1962
1974
  }
@@ -2126,71 +2138,71 @@ public enum Core_ui_animation_index {
2126
2138
  }
2127
2139
  #sourceLocation()
2128
2140
  public static func _getTransformMismatchErrorMessage(_ view: View?) throws -> String? {
2129
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:937)
2141
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:942)
2130
2142
  let expectedTransform: CATransform3D = try Core_ui_animation_index.calculateTransform(view)
2131
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:938)
2143
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:943)
2132
2144
  let expectedTransformString: String = Core_ui_animation_index.getCATransform3DString(expectedTransform)
2133
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:939)
2145
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:944)
2134
2146
  let actualTransformString: String = try Core_ui_animation_index.getCATransform3DString(
2135
2147
  jsUnwrap(
2136
2148
  jsUnwrap(jsUnwrap(view, "nativeViewProtected").nativeViewProtected as? UIView, "layer").layer,
2137
2149
  "transform"
2138
2150
  ).transform)
2139
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:941)
2151
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:946)
2140
2152
  if !jsStringEquals(actualTransformString, expectedTransformString) {
2141
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:942)
2153
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:947)
2142
2154
  return "View and Native transforms do not match.\nActual: " + actualTransformString + ";\nExpected: "
2143
2155
  + expectedTransformString
2144
2156
  }
2145
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:945)
2157
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:950)
2146
2158
  return nil
2147
2159
  }
2148
2160
  #sourceLocation()
2149
2161
  public static func calculateTransform(_ view: View?) throws -> CATransform3D {
2150
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:949)
2162
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:954)
2151
2163
  let scaleX: Double = try
2152
2164
  ({ () throws -> Double in
2153
2165
  let __v_1 = try jsUnwrap(view, "scaleX").scaleX
2154
2166
  return jsTruthy(__v_1) ? jsPresent(__v_1) : 0.000001
2155
2167
  }())
2156
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:950)
2168
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:955)
2157
2169
  let scaleY: Double = try
2158
2170
  ({ () throws -> Double in
2159
2171
  let __v_2 = try jsUnwrap(view, "scaleY").scaleY
2160
2172
  return jsTruthy(__v_2) ? jsPresent(__v_2) : 0.000001
2161
2173
  }())
2162
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:951)
2174
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:956)
2163
2175
  let perspective: Double = try
2164
2176
  ({ () throws -> Double in
2165
2177
  let __v_3 = try jsUnwrap(view, "perspective").perspective
2166
2178
  return jsTruthy(__v_3) ? jsPresent(__v_3) : 300
2167
2179
  }())
2168
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:954)
2180
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:959)
2169
2181
  var expectedTransform: CATransform3D = CATransform3DIdentity
2170
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:957)
2182
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:962)
2171
2183
  if try (jsTruthy(jsUnwrap(view, "rotateX").rotateX) || jsTruthy(jsUnwrap(view, "rotateY").rotateY)) {
2172
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:958)
2184
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:963)
2173
2185
  expectedTransform.m34 = CGFloat(jsNativeNumber(-1 / perspective))
2174
2186
  }
2175
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:961)
2187
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:966)
2176
2188
  expectedTransform = try CATransform3DTranslate(
2177
2189
  expectedTransform, CGFloat(jsNativeNumber(jsUnwrap(view, "translateX").translateX)),
2178
2190
  CGFloat(jsNativeNumber(jsUnwrap(view, "translateY").translateY)), 0)
2179
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:962)
2191
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:967)
2180
2192
  expectedTransform = try jsCallable(
2181
2193
  jsUnwrap(Core_utils_native_helper.ios, "applyRotateTransform").applyRotateTransform,
2182
2194
  "iosHelper.applyRotateTransform")(
2183
2195
  expectedTransform, jsUnwrap(view, "rotateX").rotateX, jsUnwrap(view, "rotateY").rotateY,
2184
2196
  jsUnwrap(view, "rotate").rotate)
2185
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:963)
2197
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:968)
2186
2198
  expectedTransform = CATransform3DScale(
2187
2199
  expectedTransform, CGFloat(jsNativeNumber(scaleX)), CGFloat(jsNativeNumber(scaleY)), 1)
2188
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:965)
2200
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:970)
2189
2201
  return expectedTransform
2190
2202
  }
2191
2203
  #sourceLocation()
2192
2204
  public static func getCATransform3DString(_ t: CATransform3D) -> String {
2193
- #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:969)
2205
+ #sourceLocation(file:"@nativescript/core/ui.animation.index.ios.ts",line:974)
2194
2206
  return
2195
2207
  "[\n \(js(Double(t.m11))), \(js(Double(t.m12))), \(js(Double(t.m13))), \(js(Double(t.m14))),\n \(js(Double(t.m21))), \(js(Double(t.m22))), \(js(Double(t.m23))), \(js(Double(t.m24))),\n \(js(Double(t.m31))), \(js(Double(t.m32))), \(js(Double(t.m33))), \(js(Double(t.m34))),\n \(js(Double(t.m41))), \(js(Double(t.m42))), \(js(Double(t.m43))), \(js(Double(t.m44)))]"
2196
2208
  }
@@ -15,7 +15,7 @@ import SystemConfiguration
15
15
  import UIKit
16
16
  import WebKit
17
17
 
18
- public protocol XmlProducer: JSDynamic {
18
+ @MainActor public protocol XmlProducer: JSDynamic {
19
19
  func pipe(_ next: Any?) throws -> Any?
20
20
  }
21
21
  public final class XmlProducerObject: XmlProducer, JSObjectConvertible {
@@ -154,7 +154,7 @@ open class Builder: JSDynamic, JSExpando, JSStaticKeyed {
154
154
  }()))
155
155
  }
156
156
  #sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:101)
157
- return (componentView as? View)
157
+ return try jsCast(componentView, View.self)
158
158
  }
159
159
  }
160
160
  #sourceLocation(file:"@nativescript/core/ui.builder.index.ts",line:105)
@@ -1279,7 +1279,7 @@ public enum xml2ui {
1279
1279
  }())
1280
1280
  ), ("parent", parent), ("name", (name as Any?)),
1281
1281
  ("elementName", jsUnwrap(args, "elementName").elementName),
1282
- ("templateItems", JSArray<Any?>()),
1282
+ ("templateItems", JSArray<String>()),
1283
1283
  (
1284
1284
  "errorFormat",
1285
1285
  FunctionCell_JSErrorOpt_AnyOpt_to_JSErrorOpt.scriptOrNil("", 2, self.error)
@@ -1311,7 +1311,7 @@ public enum xml2ui {
1311
1311
  }())
1312
1312
  ), ("parent", parent), ("name", (name as Any?)),
1313
1313
  ("elementName", jsUnwrap(args, "elementName").elementName),
1314
- ("templateItems", JSArray<Any?>()),
1314
+ ("templateItems", JSArray<String>()),
1315
1315
  (
1316
1316
  "errorFormat",
1317
1317
  FunctionCell_JSErrorOpt_AnyOpt_to_JSErrorOpt.scriptOrNil("", 2, self.error)