@nativescript/core 8.9.0-alpha.3 → 8.9.0-next-01-13-2025-12740325729

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 (446) hide show
  1. package/accessibility/accessibility-properties.js +0 -1
  2. package/accessibility/accessibility-properties.js.map +1 -1
  3. package/animation-frame/index.d.ts +3 -17
  4. package/core-types/index.d.ts +2 -2
  5. package/core-types/index.js +3 -3
  6. package/core-types/index.js.map +1 -1
  7. package/css/css-tree-parser.js +17 -21
  8. package/css/parser.js +2 -1
  9. package/css/parser.js.map +1 -1
  10. package/data/observable/index.d.ts +1 -0
  11. package/data/observable/index.js +1 -0
  12. package/data/observable/index.js.map +1 -1
  13. package/debugger/devtools-elements.d.ts +5 -23
  14. package/debugger/dom-node.d.ts +20 -23
  15. package/file-system/file-system-access.ios.js +2 -2
  16. package/file-system/file-system-access.ios.js.map +1 -1
  17. package/file-system/index.d.ts +95 -370
  18. package/fps-meter/index.d.ts +7 -24
  19. package/globals/index.d.ts +19 -4
  20. package/globals/index.js +5 -3
  21. package/globals/index.js.map +1 -1
  22. package/http/index.d.ts +73 -149
  23. package/image-source/index.android.d.ts +3 -2
  24. package/image-source/index.android.js +13 -6
  25. package/image-source/index.android.js.map +1 -1
  26. package/image-source/index.ios.d.ts +3 -2
  27. package/image-source/index.ios.js +10 -3
  28. package/image-source/index.ios.js.map +1 -1
  29. package/index.d.ts +6 -23
  30. package/matrix/index.d.ts +5 -32
  31. package/module-name-resolver/index.d.ts +13 -21
  32. package/module-name-resolver/qualifier-matcher/index.d.ts +6 -12
  33. package/package.json +1 -1
  34. package/platform/index.d.ts +0 -26
  35. package/profiling/index.d.ts +26 -153
  36. package/text/formatted-string.d.ts +1 -1
  37. package/text/span.d.ts +1 -1
  38. package/trace/index.d.ts +105 -131
  39. package/ui/action-bar/index.android.d.ts +1 -0
  40. package/ui/action-bar/index.android.js +3 -0
  41. package/ui/action-bar/index.android.js.map +1 -1
  42. package/ui/action-bar/index.ios.d.ts +7 -2
  43. package/ui/action-bar/index.ios.js +120 -19
  44. package/ui/action-bar/index.ios.js.map +1 -1
  45. package/ui/animation/animation-common.d.ts +1 -8
  46. package/ui/animation/animation-common.js +0 -8
  47. package/ui/animation/animation-common.js.map +1 -1
  48. package/ui/animation/animation-interfaces.d.ts +11 -0
  49. package/ui/animation/animation-interfaces.js +12 -1
  50. package/ui/animation/animation-interfaces.js.map +1 -1
  51. package/ui/animation/index.android.d.ts +2 -2
  52. package/ui/animation/index.android.js +2 -2
  53. package/ui/animation/index.android.js.map +1 -1
  54. package/ui/animation/index.ios.d.ts +2 -2
  55. package/ui/animation/index.ios.js +4 -4
  56. package/ui/animation/index.ios.js.map +1 -1
  57. package/ui/animation/keyframe-animation.d.ts +67 -118
  58. package/ui/builder/binding-builder.d.ts +12 -15
  59. package/ui/builder/index.d.ts +27 -69
  60. package/ui/button/index.android.d.ts +1 -1
  61. package/ui/button/index.android.js +17 -15
  62. package/ui/button/index.android.js.map +1 -1
  63. package/ui/button/index.ios.js +8 -2
  64. package/ui/button/index.ios.js.map +1 -1
  65. package/ui/content-view/index.d.ts +23 -4
  66. package/ui/core/control-state-change/index.android.d.ts +2 -2
  67. package/ui/core/control-state-change/index.android.js +1 -1
  68. package/ui/core/control-state-change/index.android.js.map +1 -1
  69. package/ui/core/control-state-change/index.ios.d.ts +3 -7
  70. package/ui/core/control-state-change/index.ios.js +19 -36
  71. package/ui/core/control-state-change/index.ios.js.map +1 -1
  72. package/ui/core/view/index.android.d.ts +2 -7
  73. package/ui/core/view/index.android.js +3 -4
  74. package/ui/core/view/index.android.js.map +1 -1
  75. package/ui/core/view/index.ios.d.ts +3 -13
  76. package/ui/core/view/index.ios.js +16 -8
  77. package/ui/core/view/index.ios.js.map +1 -1
  78. package/ui/core/view/view-common.d.ts +11 -15
  79. package/ui/core/view/view-common.js +23 -15
  80. package/ui/core/view/view-common.js.map +1 -1
  81. package/ui/core/view/view-helper/index.ios.d.ts +3 -18
  82. package/ui/core/view/view-helper/index.ios.js.map +1 -1
  83. package/ui/core/view-base/index.d.ts +107 -4
  84. package/ui/core/view-base/index.js +55 -7
  85. package/ui/core/view-base/index.js.map +1 -1
  86. package/ui/core/weak-event-listener/index.d.ts +2 -18
  87. package/ui/date-picker/date-picker-common.d.ts +1 -0
  88. package/ui/date-picker/date-picker-common.js +1 -0
  89. package/ui/date-picker/date-picker-common.js.map +1 -1
  90. package/ui/editable-text-base/editable-text-base-common.d.ts +1 -2
  91. package/ui/editable-text-base/editable-text-base-common.js +13 -7
  92. package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
  93. package/ui/frame/frame-common.d.ts +3 -2
  94. package/ui/frame/frame-common.js +6 -6
  95. package/ui/frame/frame-common.js.map +1 -1
  96. package/ui/gestures/gestures-common.d.ts +22 -0
  97. package/ui/gestures/gestures-common.js +22 -0
  98. package/ui/gestures/gestures-common.js.map +1 -1
  99. package/ui/html-view/html-view-common.d.ts +1 -0
  100. package/ui/html-view/html-view-common.js.map +1 -1
  101. package/ui/image/image-common.d.ts +2 -0
  102. package/ui/image/image-common.js +3 -1
  103. package/ui/image/image-common.js.map +1 -1
  104. package/ui/index.d.ts +3 -1
  105. package/ui/index.js +1 -1
  106. package/ui/index.js.map +1 -1
  107. package/ui/layouts/flexbox-layout/index.ios.js.map +1 -1
  108. package/ui/layouts/index.d.ts +2 -1
  109. package/ui/layouts/layout-base-common.d.ts +0 -1
  110. package/ui/layouts/layout-base-common.js +1 -8
  111. package/ui/layouts/layout-base-common.js.map +1 -1
  112. package/ui/layouts/stack-layout/index.ios.js.map +1 -1
  113. package/ui/list-picker/list-picker-common.d.ts +1 -0
  114. package/ui/list-picker/list-picker-common.js +1 -0
  115. package/ui/list-picker/list-picker-common.js.map +1 -1
  116. package/ui/placeholder/index.android.d.ts +1 -1
  117. package/ui/placeholder/index.d.ts +8 -42
  118. package/ui/proxy-view-container/index.d.ts +2 -0
  119. package/ui/proxy-view-container/index.js +2 -0
  120. package/ui/proxy-view-container/index.js.map +1 -1
  121. package/ui/repeater/index.d.ts +2 -0
  122. package/ui/repeater/index.js +2 -0
  123. package/ui/repeater/index.js.map +1 -1
  124. package/ui/search-bar/search-bar-common.js.map +1 -1
  125. package/ui/slider/slider-common.d.ts +1 -0
  126. package/ui/slider/slider-common.js +1 -0
  127. package/ui/slider/slider-common.js.map +1 -1
  128. package/ui/styling/background.ios.d.ts +1 -15
  129. package/ui/styling/background.ios.js +52 -54
  130. package/ui/styling/background.ios.js.map +1 -1
  131. package/ui/styling/converters.d.ts +2 -2
  132. package/ui/styling/style/index.d.ts +3 -1
  133. package/ui/styling/style/index.js.map +1 -1
  134. package/ui/styling/style-properties.d.ts +81 -100
  135. package/ui/styling/style-properties.js.map +1 -1
  136. package/ui/styling/style-scope.d.ts +79 -48
  137. package/ui/switch/switch-common.js +4 -4
  138. package/ui/switch/switch-common.js.map +1 -1
  139. package/ui/text-base/formatted-string.d.ts +36 -73
  140. package/ui/text-base/index.android.js +2 -11
  141. package/ui/text-base/index.android.js.map +1 -1
  142. package/ui/text-base/span.d.ts +36 -81
  143. package/ui/text-base/text-base-common.d.ts +2 -0
  144. package/ui/text-base/text-base-common.js +6 -0
  145. package/ui/text-base/text-base-common.js.map +1 -1
  146. package/ui/text-field/text-field-common.js.map +1 -1
  147. package/ui/text-view/index.android.d.ts +0 -1
  148. package/ui/text-view/index.android.js +0 -1
  149. package/ui/text-view/index.android.js.map +1 -1
  150. package/ui/text-view/index.ios.d.ts +0 -3
  151. package/ui/text-view/index.ios.js +8 -64
  152. package/ui/text-view/index.ios.js.map +1 -1
  153. package/ui/text-view/text-view-common.d.ts +0 -26
  154. package/ui/text-view/text-view-common.js +0 -34
  155. package/ui/text-view/text-view-common.js.map +1 -1
  156. package/ui/time-picker/time-picker-common.d.ts +1 -0
  157. package/ui/time-picker/time-picker-common.js +1 -0
  158. package/ui/time-picker/time-picker-common.js.map +1 -1
  159. package/ui/utils.ios.d.ts +1 -2
  160. package/ui/utils.ios.js.map +1 -1
  161. package/ui/web-view/web-view-common.d.ts +1 -1
  162. package/utils/debug.d.ts +17 -61
  163. package/utils/ios/index.js +4 -4
  164. package/utils/ios/index.js.map +1 -1
  165. package/utils/lazy.d.ts +0 -5
  166. package/utils/macrotask-scheduler.d.ts +1 -5
  167. package/utils/native-helper.ios.js +1 -0
  168. package/utils/native-helper.ios.js.map +1 -1
  169. package/utils/types.d.ts +23 -115
  170. package/xml/index.d.ts +44 -105
  171. package/xml/index.js +1 -1
  172. package/xml/index.js.map +1 -1
  173. package/accessibility/accessibility-service.d.ts +0 -10
  174. package/accessibility/font-scale.d.ts +0 -9
  175. package/accessibility/index.d.ts +0 -37
  176. package/animation-frame/animation-native.d.ts +0 -4
  177. package/application/application.d.ts +0 -194
  178. package/application/index.d.ts +0 -2
  179. package/application-settings/index.d.ts +0 -70
  180. package/cli-hooks/before-checkForChanges.js +0 -60
  181. package/cli-hooks/postinstall.js +0 -2
  182. package/cli-hooks/preuninstall.js +0 -2
  183. package/color/index.d.ts +0 -206
  184. package/connectivity/index.d.ts +0 -52
  185. package/css/lib/parse/index.js +0 -602
  186. package/css/package.json +0 -36
  187. package/css/reworkcss.d.ts +0 -47
  188. package/css/reworkcss.js +0 -1
  189. package/css-value/package.json +0 -23
  190. package/css-value/reworkcss-value.d.ts +0 -8
  191. package/css-value/reworkcss-value.js +0 -113
  192. package/debugger/css-agent.d.ts +0 -59
  193. package/fetch/index.js +0 -539
  194. package/file-system/file-system-access.d.ts +0 -441
  195. package/fps-meter/fps-native.d.ts +0 -24
  196. package/global-types.d.ts +0 -393
  197. package/http/http-request/index.d.ts +0 -3
  198. package/image-asset/index.d.ts +0 -17
  199. package/image-source/index.d.ts +0 -345
  200. package/js-libs/easysax/easysax.d.ts +0 -8
  201. package/js-libs/easysax/easysax.js +0 -782
  202. package/js-libs/easysax/package.json +0 -35
  203. package/platform/device/index.d.ts +0 -70
  204. package/platform/screen/index.d.ts +0 -48
  205. package/platforms/android/native-api-usage.json +0 -32
  206. package/platforms/android/res/values/ids.xml +0 -4
  207. package/platforms/android/widgets-release.aar +0 -0
  208. package/platforms/android/winter_cg-release.aar +0 -0
  209. package/platforms/ios/NSCWinterCG.xcframework/Info.plist +0 -102
  210. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  211. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  212. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  213. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Info.plist +0 -0
  214. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  215. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/NSCWinterCG +0 -0
  216. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  217. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  218. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  219. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  220. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  221. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  222. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  223. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/NSCWinterCG +0 -0
  224. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Resources/Info.plist +0 -52
  225. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSCCrypto.h +0 -79
  226. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSCWinterCG.h +0 -20
  227. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSString+WinterCG.h +0 -21
  228. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Modules/module.modulemap +0 -6
  229. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/NSCWinterCG +0 -0
  230. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Resources/Info.plist +0 -52
  231. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/Current/NSCWinterCG +0 -0
  232. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  233. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  234. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  235. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
  236. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  237. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  238. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  239. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Info.plist +0 -0
  240. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  241. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG +0 -0
  242. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/_CodeSignature/CodeResources +0 -146
  243. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  244. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  245. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  246. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
  247. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  248. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  249. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  250. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Info.plist +0 -0
  251. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  252. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/NSCWinterCG +0 -0
  253. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  254. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  255. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  256. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  257. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  258. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  259. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Info.plist +0 -0
  260. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  261. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG +0 -0
  262. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/_CodeSignature/CodeResources +0 -146
  263. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  264. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  265. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  266. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
  267. package/platforms/ios/TNSWidgets.xcframework/Info.plist +0 -102
  268. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  269. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  270. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  271. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  272. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  273. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  274. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  275. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  276. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  277. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  278. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +0 -6
  279. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  280. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  281. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  282. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  283. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  284. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  285. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  286. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  287. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  288. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  289. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  290. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  291. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  292. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  293. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  294. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +0 -6
  295. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  296. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  297. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +0 -52
  298. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  299. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +0 -60
  300. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +0 -24
  301. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +0 -22
  302. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +0 -25
  303. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +0 -16
  304. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +0 -29
  305. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +0 -25
  306. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +0 -26
  307. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +0 -17
  308. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +0 -6
  309. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +0 -17
  310. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +0 -18
  311. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +0 -52
  312. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  313. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  314. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  315. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  316. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  317. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
  318. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  319. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  320. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  321. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  322. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  323. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  324. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  325. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  326. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  327. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  328. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +0 -6
  329. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  330. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  331. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  332. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +0 -223
  333. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  334. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  335. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  336. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
  337. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  338. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  339. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  340. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  341. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  342. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  343. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  344. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  345. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  346. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
  347. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +0 -6
  348. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  349. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  350. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  351. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  352. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  353. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  354. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  355. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  356. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  357. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  358. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  359. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  360. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  361. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  362. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  363. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  364. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +0 -6
  365. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  366. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  367. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  368. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +0 -223
  369. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  370. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  371. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  372. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
  373. package/platforms/ios/native-api-usage.json +0 -41
  374. package/platforms/ios/src/NativeScriptEmbedder.h +0 -31
  375. package/platforms/ios/src/NativeScriptEmbedder.m +0 -43
  376. package/platforms/ios/src/NativeScriptMainWindow.swift +0 -179
  377. package/platforms/ios/src/NativeScriptUtils.h +0 -16
  378. package/platforms/ios/src/NativeScriptUtils.m +0 -137
  379. package/platforms/ios/src/UIView+NativeScript.h +0 -15
  380. package/platforms/ios/src/UIView+NativeScript.m +0 -150
  381. package/platforms/ios/src/module.modulemap +0 -14
  382. package/platforms/ios/typings/objc!MaterialComponents.d.ts +0 -808
  383. package/platforms/ios/typings/objc!NativeScriptUtils.d.ts +0 -18
  384. package/references.d.ts +0 -10
  385. package/text/index.d.ts +0 -36
  386. package/timer/index.d.ts +0 -27
  387. package/ui/action-bar/index.d.ts +0 -271
  388. package/ui/activity-indicator/index.d.ts +0 -21
  389. package/ui/animation/index.d.ts +0 -152
  390. package/ui/button/index.d.ts +0 -44
  391. package/ui/core/control-state-change/index.d.ts +0 -15
  392. package/ui/core/view/index.d.ts +0 -992
  393. package/ui/core/view/view-helper/index.d.ts +0 -76
  394. package/ui/date-picker/index.d.ts +0 -65
  395. package/ui/dialogs/index.d.ts +0 -311
  396. package/ui/editable-text-base/index.d.ts +0 -100
  397. package/ui/embedding/index.d.ts +0 -10
  398. package/ui/frame/fragment.d.ts +0 -5
  399. package/ui/frame/fragment.transitions.d.ts +0 -43
  400. package/ui/frame/index.d.ts +0 -553
  401. package/ui/frame/transition-definitions.android.d.ts +0 -54
  402. package/ui/gestures/index.d.ts +0 -59
  403. package/ui/html-view/index.d.ts +0 -27
  404. package/ui/image/index.d.ts +0 -77
  405. package/ui/image/symbol-effects.d.ts +0 -13
  406. package/ui/image-cache/index.d.ts +0 -147
  407. package/ui/label/index.d.ts +0 -21
  408. package/ui/layouts/absolute-layout/index.d.ts +0 -40
  409. package/ui/layouts/dock-layout/index.d.ts +0 -35
  410. package/ui/layouts/flexbox-layout/index.d.ts +0 -66
  411. package/ui/layouts/grid-layout/index.d.ts +0 -182
  412. package/ui/layouts/layout-base.d.ts +0 -105
  413. package/ui/layouts/root-layout/index.d.ts +0 -45
  414. package/ui/layouts/stack-layout/index.d.ts +0 -19
  415. package/ui/layouts/wrap-layout/index.d.ts +0 -43
  416. package/ui/list-picker/index.d.ts +0 -32
  417. package/ui/list-view/index.d.ts +0 -208
  418. package/ui/page/index.d.ts +0 -212
  419. package/ui/progress/index.d.ts +0 -37
  420. package/ui/scroll-view/index.d.ts +0 -89
  421. package/ui/search-bar/index.d.ts +0 -89
  422. package/ui/segmented-bar/index.d.ts +0 -106
  423. package/ui/slider/index.d.ts +0 -72
  424. package/ui/styling/background.d.ts +0 -93
  425. package/ui/styling/font.d.ts +0 -62
  426. package/ui/switch/index.d.ts +0 -35
  427. package/ui/tab-view/index.d.ts +0 -175
  428. package/ui/text-base/index.d.ts +0 -161
  429. package/ui/text-field/index.d.ts +0 -41
  430. package/ui/text-view/index.d.ts +0 -35
  431. package/ui/time-picker/index.d.ts +0 -80
  432. package/ui/transition/fade-transition.d.ts +0 -3
  433. package/ui/transition/flip-transition.d.ts +0 -5
  434. package/ui/transition/index.d.ts +0 -59
  435. package/ui/transition/modal-transition.d.ts +0 -2
  436. package/ui/transition/page-transition.d.ts +0 -4
  437. package/ui/transition/shared-transition-helper.d.ts +0 -14
  438. package/ui/transition/slide-transition.d.ts +0 -5
  439. package/ui/utils.d.ts +0 -44
  440. package/ui/web-view/index.d.ts +0 -130
  441. package/utils/constants.d.ts +0 -1
  442. package/utils/index.d.ts +0 -177
  443. package/utils/layout-helper/index.d.ts +0 -82
  444. package/utils/mainthread-helper.d.ts +0 -16
  445. package/utils/native-helper.d.ts +0 -280
  446. package/utils/typescript-utils.d.ts +0 -6
@@ -1,602 +0,0 @@
1
- // http://www.w3.org/TR/CSS21/grammar.html
2
- // https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027
3
- var commentre = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g
4
-
5
- module.exports = function(css, options){
6
- options = options || {};
7
-
8
- /**
9
- * Positional.
10
- */
11
-
12
- var lineno = 1;
13
- var column = 1;
14
-
15
- /**
16
- * Update lineno and column based on `str`.
17
- */
18
-
19
- function updatePosition(str) {
20
- var lines = str.match(/\n/g);
21
- if (lines) lineno += lines.length;
22
- var i = str.lastIndexOf('\n');
23
- column = ~i ? str.length - i : column + str.length;
24
- }
25
-
26
- /**
27
- * Mark position and patch `node.position`.
28
- */
29
-
30
- function position() {
31
- var start = { line: lineno, column: column };
32
- return function(node){
33
- node.position = new Position(start);
34
- whitespace();
35
- return node;
36
- };
37
- }
38
-
39
- /**
40
- * Store position information for a node
41
- */
42
-
43
- function Position(start) {
44
- this.start = start;
45
- this.end = { line: lineno, column: column };
46
- this.source = options.source;
47
- }
48
-
49
- /**
50
- * Non-enumerable source string
51
- */
52
-
53
- Position.prototype.content = css;
54
-
55
- /**
56
- * Error `msg`.
57
- */
58
-
59
- var errorsList = [];
60
-
61
- function error(msg) {
62
- var err = new Error(options.source + ':' + lineno + ':' + column + ': ' + msg);
63
- err.reason = msg;
64
- err.filename = options.source;
65
- err.line = lineno;
66
- err.column = column;
67
- err.source = css;
68
-
69
- if (options.silent) {
70
- errorsList.push(err);
71
- } else {
72
- throw err;
73
- }
74
- }
75
-
76
- /**
77
- * Parse stylesheet.
78
- */
79
-
80
- function stylesheet() {
81
- var rulesList = rules();
82
-
83
- return {
84
- type: 'stylesheet',
85
- stylesheet: {
86
- rules: rulesList,
87
- parsingErrors: errorsList
88
- }
89
- };
90
- }
91
-
92
- /**
93
- * Opening brace.
94
- */
95
-
96
- function open() {
97
- return match(/^{\s*/);
98
- }
99
-
100
- /**
101
- * Closing brace.
102
- */
103
-
104
- function close() {
105
- return match(/^}/);
106
- }
107
-
108
- /**
109
- * Parse ruleset.
110
- */
111
-
112
- function rules() {
113
- var node;
114
- var rules = [];
115
- whitespace();
116
- comments(rules);
117
- while (css.length && css.charAt(0) != '}' && (node = atrule() || rule())) {
118
- if (node !== false) {
119
- rules.push(node);
120
- comments(rules);
121
- }
122
- }
123
- return rules;
124
- }
125
-
126
- /**
127
- * Match `re` and return captures.
128
- */
129
-
130
- function match(re) {
131
- var m = re.exec(css);
132
- if (!m) return;
133
- var str = m[0];
134
- updatePosition(str);
135
- css = css.slice(str.length);
136
- return m;
137
- }
138
-
139
- /**
140
- * Parse whitespace.
141
- */
142
-
143
- function whitespace() {
144
- match(/^\s*/);
145
- }
146
-
147
- /**
148
- * Parse comments;
149
- */
150
-
151
- function comments(rules) {
152
- var c;
153
- rules = rules || [];
154
- while (c = comment()) {
155
- if (c !== false) {
156
- rules.push(c);
157
- }
158
- }
159
- return rules;
160
- }
161
-
162
- /**
163
- * Parse comment.
164
- */
165
-
166
- function comment() {
167
- var pos = position();
168
- if ('/' != css.charAt(0) || '*' != css.charAt(1)) return;
169
-
170
- var i = 2;
171
- while ("" != css.charAt(i) && ('*' != css.charAt(i) || '/' != css.charAt(i + 1))) ++i;
172
- i += 2;
173
-
174
- if ("" === css.charAt(i-1)) {
175
- return error('End of comment missing');
176
- }
177
-
178
- var str = css.slice(2, i - 2);
179
- column += 2;
180
- updatePosition(str);
181
- css = css.slice(i);
182
- column += 2;
183
-
184
- return pos({
185
- type: 'comment',
186
- comment: str
187
- });
188
- }
189
-
190
- /**
191
- * Parse selector.
192
- */
193
-
194
- function selector() {
195
- var m = match(/^([^{]+)/);
196
- if (!m) return;
197
- /* @fix Remove all comments from selectors
198
- * http://ostermiller.org/findcomment.html */
199
- return trim(m[0])
200
- .replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g, '')
201
- .replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g, function(m) {
202
- return m.replace(/,/g, '\u200C');
203
- })
204
- .split(/\s*(?![^(]*\)),\s*/)
205
- .map(function(s) {
206
- return s.replace(/\u200C/g, ',');
207
- });
208
- }
209
-
210
- /**
211
- * Parse declaration.
212
- */
213
-
214
- function declaration() {
215
- var pos = position();
216
-
217
- // prop
218
- var prop = match(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);
219
- if (!prop) return;
220
- prop = trim(prop[0]);
221
-
222
- // :
223
- if (!match(/^:\s*/)) return error("property missing ':'");
224
-
225
- // val
226
- var val = match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/);
227
-
228
- var ret = pos({
229
- type: 'declaration',
230
- property: prop.replace(commentre, ''),
231
- value: val ? trim(val[0]).replace(commentre, '') : ''
232
- });
233
-
234
- // ;
235
- match(/^[;\s]*/);
236
-
237
- return ret;
238
- }
239
-
240
- /**
241
- * Parse declarations.
242
- */
243
-
244
- function declarations() {
245
- var decls = [];
246
-
247
- if (!open()) return error("missing '{'");
248
- comments(decls);
249
-
250
- // declarations
251
- var decl;
252
- while (decl = declaration()) {
253
- if (decl !== false) {
254
- decls.push(decl);
255
- comments(decls);
256
- }
257
- }
258
-
259
- if (!close()) return error("missing '}'");
260
- return decls;
261
- }
262
-
263
- /**
264
- * Parse keyframe.
265
- */
266
-
267
- function keyframe() {
268
- var m;
269
- var vals = [];
270
- var pos = position();
271
-
272
- while (m = match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/)) {
273
- vals.push(m[1]);
274
- match(/^,\s*/);
275
- }
276
-
277
- if (!vals.length) return;
278
-
279
- return pos({
280
- type: 'keyframe',
281
- values: vals,
282
- declarations: declarations()
283
- });
284
- }
285
-
286
- /**
287
- * Parse keyframes.
288
- */
289
-
290
- function atkeyframes() {
291
- var pos = position();
292
- var m = match(/^@([-\w]+)?keyframes\s*/);
293
-
294
- if (!m) return;
295
- var vendor = m[1];
296
-
297
- // identifier
298
- var m = match(/^([-\w]+)\s*/);
299
- if (!m) return error("@keyframes missing name");
300
- var name = m[1];
301
-
302
- if (!open()) return error("@keyframes missing '{'");
303
-
304
- var frame;
305
- var frames = comments();
306
- while (frame = keyframe()) {
307
- frames.push(frame);
308
- frames = frames.concat(comments());
309
- }
310
-
311
- if (!close()) return error("@keyframes missing '}'");
312
-
313
- return pos({
314
- type: 'keyframes',
315
- name: name,
316
- vendor: vendor,
317
- keyframes: frames
318
- });
319
- }
320
-
321
- /**
322
- * Parse supports.
323
- */
324
-
325
- function atsupports() {
326
- var pos = position();
327
- var m = match(/^@supports *([^{]+)/);
328
-
329
- if (!m) return;
330
- var supports = trim(m[1]);
331
-
332
- if (!open()) return error("@supports missing '{'");
333
-
334
- var style = comments().concat(rules());
335
-
336
- if (!close()) return error("@supports missing '}'");
337
-
338
- return pos({
339
- type: 'supports',
340
- supports: supports,
341
- rules: style
342
- });
343
- }
344
-
345
- /**
346
- * Parse host.
347
- */
348
-
349
- function athost() {
350
- var pos = position();
351
- var m = match(/^@host\s*/);
352
-
353
- if (!m) return;
354
-
355
- if (!open()) return error("@host missing '{'");
356
-
357
- var style = comments().concat(rules());
358
-
359
- if (!close()) return error("@host missing '}'");
360
-
361
- return pos({
362
- type: 'host',
363
- rules: style
364
- });
365
- }
366
-
367
- /**
368
- * Parse media.
369
- */
370
-
371
- function atmedia() {
372
- var pos = position();
373
- var m = match(/^@media *([^{]+)/);
374
-
375
- if (!m) return;
376
- var media = trim(m[1]);
377
-
378
- if (!open()) return error("@media missing '{'");
379
-
380
- var style = comments().concat(rules());
381
-
382
- if (!close()) return error("@media missing '}'");
383
-
384
- return pos({
385
- type: 'media',
386
- media: media,
387
- rules: style
388
- });
389
- }
390
-
391
-
392
- /**
393
- * Parse custom-media.
394
- */
395
-
396
- function atcustommedia() {
397
- var pos = position();
398
- var m = match(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);
399
- if (!m) return;
400
-
401
- return pos({
402
- type: 'custom-media',
403
- name: trim(m[1]),
404
- media: trim(m[2])
405
- });
406
- }
407
-
408
- /**
409
- * Parse paged media.
410
- */
411
-
412
- function atpage() {
413
- var pos = position();
414
- var m = match(/^@page */);
415
- if (!m) return;
416
-
417
- var sel = selector() || [];
418
-
419
- if (!open()) return error("@page missing '{'");
420
- var decls = comments();
421
-
422
- // declarations
423
- var decl;
424
- while (decl = declaration()) {
425
- decls.push(decl);
426
- decls = decls.concat(comments());
427
- }
428
-
429
- if (!close()) return error("@page missing '}'");
430
-
431
- return pos({
432
- type: 'page',
433
- selectors: sel,
434
- declarations: decls
435
- });
436
- }
437
-
438
- /**
439
- * Parse document.
440
- */
441
-
442
- function atdocument() {
443
- var pos = position();
444
- var m = match(/^@([-\w]+)?document *([^{]+)/);
445
- if (!m) return;
446
-
447
- var vendor = trim(m[1]);
448
- var doc = trim(m[2]);
449
-
450
- if (!open()) return error("@document missing '{'");
451
-
452
- var style = comments().concat(rules());
453
-
454
- if (!close()) return error("@document missing '}'");
455
-
456
- return pos({
457
- type: 'document',
458
- document: doc,
459
- vendor: vendor,
460
- rules: style
461
- });
462
- }
463
-
464
- /**
465
- * Parse font-face.
466
- */
467
-
468
- function atfontface() {
469
- var pos = position();
470
- var m = match(/^@font-face\s*/);
471
- if (!m) return;
472
-
473
- if (!open()) return error("@font-face missing '{'");
474
- var decls = comments();
475
-
476
- // declarations
477
- var decl;
478
- while (decl = declaration()) {
479
- decls.push(decl);
480
- decls = decls.concat(comments());
481
- }
482
-
483
- if (!close()) return error("@font-face missing '}'");
484
-
485
- return pos({
486
- type: 'font-face',
487
- declarations: decls
488
- });
489
- }
490
-
491
- /**
492
- * Parse import
493
- */
494
-
495
- var atimport = _compileAtrule('import');
496
-
497
- /**
498
- * Parse charset
499
- */
500
-
501
- var atcharset = _compileAtrule('charset');
502
-
503
- /**
504
- * Parse namespace
505
- */
506
-
507
- var atnamespace = _compileAtrule('namespace');
508
-
509
- /**
510
- * Parse non-block at-rules
511
- */
512
-
513
-
514
- function _compileAtrule(name) {
515
- var re = new RegExp('^@' + name + '\\s*([^;]+);');
516
- return function() {
517
- var pos = position();
518
- var m = match(re);
519
- if (!m) return;
520
- var ret = { type: name };
521
- ret[name] = m[1].trim();
522
- return pos(ret);
523
- }
524
- }
525
-
526
- /**
527
- * Parse at rule.
528
- */
529
-
530
- function atrule() {
531
- if (css[0] != '@') return;
532
-
533
- return atkeyframes()
534
- || atmedia()
535
- || atcustommedia()
536
- || atsupports()
537
- || atimport()
538
- || atcharset()
539
- || atnamespace()
540
- || atdocument()
541
- || atpage()
542
- || athost()
543
- || atfontface();
544
- }
545
-
546
- /**
547
- * Parse rule.
548
- */
549
-
550
- function rule() {
551
- var pos = position();
552
- var sel = selector();
553
-
554
- if (!sel) return error('selector missing');
555
- comments();
556
-
557
- return pos({
558
- type: 'rule',
559
- selectors: sel,
560
- declarations: declarations()
561
- });
562
- }
563
-
564
- return addParent(stylesheet());
565
- };
566
-
567
- /**
568
- * Trim `str`.
569
- */
570
-
571
- function trim(str) {
572
- return str ? str.replace(/^\s+|\s+$/g, '') : '';
573
- }
574
-
575
- /**
576
- * Adds non-enumerable parent node reference to each node.
577
- */
578
-
579
- function addParent(obj, parent) {
580
- var isNode = obj && typeof obj.type === 'string';
581
- var childParent = isNode ? obj : parent;
582
-
583
- for (var k in obj) {
584
- var value = obj[k];
585
- if (Array.isArray(value)) {
586
- value.forEach(function(v) { addParent(v, childParent); });
587
- } else if (value && typeof value === 'object') {
588
- addParent(value, childParent);
589
- }
590
- }
591
-
592
- if (isNode) {
593
- Object.defineProperty(obj, 'parent', {
594
- configurable: true,
595
- writable: true,
596
- enumerable: false,
597
- value: parent || null
598
- });
599
- }
600
-
601
- return obj;
602
- }
package/css/package.json DELETED
@@ -1,36 +0,0 @@
1
- {
2
- "name": "css",
3
- "version": "2.2.1",
4
- "description": "CSS parser / stringifier",
5
- "main": "reworkcss",
6
- "types": "reworkcss.d.ts",
7
- "dependencies": {
8
- "source-map": "^0.1.38",
9
- "source-map-resolve": "^0.3.0",
10
- "urix": "^0.1.0",
11
- "inherits": "^2.0.1"
12
- },
13
- "devDependencies": {
14
- "mocha": "^1.21.3",
15
- "should": "^4.0.4",
16
- "matcha": "^0.5.0",
17
- "bytes": "^1.0.0"
18
- },
19
- "scripts": {
20
- "benchmark": "matcha",
21
- "test": "mocha --require should --reporter spec --bail test/*.js"
22
- },
23
- "author": "TJ Holowaychuk <tj@vision-media.ca>",
24
- "license": "MIT",
25
- "repository": {
26
- "type": "git",
27
- "url": "https://github.com/reworkcss/css.git"
28
- },
29
- "keywords": [
30
- "css",
31
- "parser",
32
- "stringifier",
33
- "stylesheet"
34
- ],
35
- "nativescript": {}
36
- }
@@ -1,47 +0,0 @@
1
- export interface Position {
2
- start: { line: number; column: number };
3
- end: { line: number; column: number };
4
- }
5
-
6
- export interface Node {
7
- type: 'rule' | 'keyframes' | 'declaration' | 'import' | 'media';
8
- position: Position;
9
- }
10
-
11
- export interface Declaration extends Node {
12
- property: string;
13
- value: string;
14
- }
15
-
16
- export interface Rule extends Node {
17
- selectors: string[];
18
- declarations: Declaration[];
19
- }
20
-
21
- export type AtRule = KeyFrames | Media;
22
-
23
- export interface Keyframes extends Rule {
24
- name: string;
25
- vendor?: string;
26
- keyframes?: Array<KeyFrame>;
27
- }
28
-
29
- export interface KeyFrame extends Node {
30
- values: string[];
31
- declarations: Array<Declaration>;
32
- }
33
-
34
- export interface Media extends Node {
35
- media: string;
36
- rules: Array<Rule | AtRule>;
37
- }
38
-
39
- export interface StyleSheet {
40
- rules: Rule[];
41
- }
42
-
43
- export interface SyntaxTree {
44
- stylesheet: StyleSheet;
45
- }
46
-
47
- export function parse(css: string, options: any): SyntaxTree;
package/css/reworkcss.js DELETED
@@ -1 +0,0 @@
1
- exports.parse = require('./lib/parse');
@@ -1,23 +0,0 @@
1
- {
2
- "name": "css-value",
3
- "version": "0.0.1",
4
- "description": "CSS value parser",
5
- "keywords": [
6
- "css",
7
- "parser",
8
- "value"
9
- ],
10
- "author": "TJ Holowaychuk <tj@vision-media.ca>",
11
- "repository": {
12
- "type": "git",
13
- "url": "git://github.com/visionmedia/css-value.git"
14
- },
15
- "dependencies": {},
16
- "devDependencies": {
17
- "mocha": "~1.9.0",
18
- "should": "~1.2.2"
19
- },
20
- "main": "reworkcss-value",
21
- "types": "reworkcss-value.d.ts",
22
- "nativescript": {}
23
- }
@@ -1,8 +0,0 @@
1
- interface CSSValue {
2
- type: string;
3
- string: string;
4
- unit?: string;
5
- value?: number;
6
- }
7
-
8
- export function parse(cssValue: string): Array<CSSValue>;