@nativescript/core 8.9.0-next-01-17-2025-12834437745 → 8.9.0-next-01-18-2025-12839190246

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 (309) hide show
  1. package/accessibility/accessibility-service.d.ts +10 -0
  2. package/accessibility/font-scale.d.ts +9 -0
  3. package/accessibility/index.d.ts +37 -0
  4. package/animation-frame/animation-native.d.ts +4 -0
  5. package/animation-frame/index.d.ts +17 -3
  6. package/application/application.d.ts +194 -0
  7. package/application/index.d.ts +2 -0
  8. package/application-settings/index.d.ts +70 -0
  9. package/cli-hooks/before-checkForChanges.js +60 -0
  10. package/cli-hooks/postinstall.js +2 -0
  11. package/cli-hooks/preuninstall.js +2 -0
  12. package/color/index.d.ts +206 -0
  13. package/connectivity/index.d.ts +52 -0
  14. package/css/css-tree-parser.js +21 -17
  15. package/css/lib/parse/index.js +602 -0
  16. package/css/package.json +36 -0
  17. package/css/reworkcss.d.ts +47 -0
  18. package/css/reworkcss.js +1 -0
  19. package/css-value/package.json +23 -0
  20. package/css-value/reworkcss-value.d.ts +8 -0
  21. package/css-value/reworkcss-value.js +113 -0
  22. package/debugger/css-agent.d.ts +59 -0
  23. package/debugger/devtools-elements.d.ts +23 -5
  24. package/debugger/dom-node.d.ts +23 -20
  25. package/fetch/index.js +539 -0
  26. package/file-system/file-system-access.d.ts +441 -0
  27. package/file-system/index.d.ts +370 -95
  28. package/fps-meter/fps-native.d.ts +24 -0
  29. package/fps-meter/index.d.ts +24 -7
  30. package/global-types.d.ts +393 -0
  31. package/globals/index.d.ts +4 -19
  32. package/http/http-request/index.d.ts +3 -0
  33. package/http/index.d.ts +149 -73
  34. package/image-asset/index.d.ts +17 -0
  35. package/image-source/index.d.ts +350 -0
  36. package/index.d.ts +24 -7
  37. package/js-libs/easysax/easysax.d.ts +8 -0
  38. package/js-libs/easysax/easysax.js +782 -0
  39. package/js-libs/easysax/package.json +35 -0
  40. package/matrix/index.d.ts +32 -5
  41. package/module-name-resolver/index.d.ts +21 -13
  42. package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
  43. package/package.json +1 -1
  44. package/platform/device/index.d.ts +70 -0
  45. package/platform/index.d.ts +26 -0
  46. package/platform/screen/index.d.ts +48 -0
  47. package/platforms/android/native-api-usage.json +32 -0
  48. package/platforms/android/res/values/ids.xml +4 -0
  49. package/platforms/android/widgets-release.aar +0 -0
  50. package/platforms/android/winter_tc-release.aar +0 -0
  51. package/platforms/ios/NSCWinterTC.xcframework/Info.plist +102 -0
  52. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  53. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  54. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  55. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Info.plist +0 -0
  56. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  57. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/NSCWinterTC +0 -0
  58. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  59. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  60. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  61. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  62. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  63. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  64. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  65. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/NSCWinterTC +0 -0
  66. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Resources/Info.plist +52 -0
  67. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCCrypto.h +79 -0
  68. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCWinterTC.h +20 -0
  69. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSString+WinterTC.h +21 -0
  70. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Modules/module.modulemap +6 -0
  71. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/NSCWinterTC +0 -0
  72. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Resources/Info.plist +52 -0
  73. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC +0 -0
  74. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  75. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  76. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  77. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  78. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  79. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  80. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  81. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Info.plist +0 -0
  82. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  83. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC +0 -0
  84. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/_CodeSignature/CodeResources +146 -0
  85. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  86. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  87. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  88. package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  89. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  90. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  91. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  92. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Info.plist +0 -0
  93. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  94. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/NSCWinterTC +0 -0
  95. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  96. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  97. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  98. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
  99. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
  100. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
  101. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Info.plist +0 -0
  102. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
  103. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC +0 -0
  104. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/_CodeSignature/CodeResources +146 -0
  105. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
  106. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
  107. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
  108. package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
  109. package/platforms/ios/TNSWidgets.xcframework/Info.plist +102 -0
  110. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  111. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  112. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  113. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  114. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  115. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  116. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  117. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  118. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  119. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  120. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
  121. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  122. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  123. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  124. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  125. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  126. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  127. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  128. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  129. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  130. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  131. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  132. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  133. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  134. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  135. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  136. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +6 -0
  137. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  138. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  139. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +52 -0
  140. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  141. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +60 -0
  142. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +24 -0
  143. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
  144. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +25 -0
  145. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +16 -0
  146. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +29 -0
  147. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +25 -0
  148. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +26 -0
  149. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +17 -0
  150. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +6 -0
  151. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +17 -0
  152. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +18 -0
  153. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +52 -0
  154. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  155. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  156. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  157. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  158. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  159. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
  160. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  161. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  162. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  163. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  164. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  165. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  166. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  167. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  168. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  169. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  170. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
  171. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  172. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  173. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  174. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
  175. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  176. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  177. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  178. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
  179. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  180. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  181. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  182. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  183. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  184. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  185. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  186. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  187. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  188. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
  189. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
  190. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  191. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  192. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  193. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  194. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  195. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  196. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
  197. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  198. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  199. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  200. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  201. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  202. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
  203. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  204. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  205. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  206. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
  207. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  208. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  209. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  210. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
  211. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  212. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  213. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
  214. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
  215. package/platforms/ios/native-api-usage.json +41 -0
  216. package/platforms/ios/src/NativeScriptEmbedder.h +31 -0
  217. package/platforms/ios/src/NativeScriptEmbedder.m +43 -0
  218. package/platforms/ios/src/NativeScriptMainWindow.swift +196 -0
  219. package/platforms/ios/src/NativeScriptUtils.h +16 -0
  220. package/platforms/ios/src/NativeScriptUtils.m +137 -0
  221. package/platforms/ios/src/UIView+NativeScript.h +15 -0
  222. package/platforms/ios/src/UIView+NativeScript.m +148 -0
  223. package/platforms/ios/src/module.modulemap +14 -0
  224. package/platforms/ios/typings/objc!MaterialComponents.d.ts +808 -0
  225. package/platforms/ios/typings/objc!NativeScriptUtils.d.ts +18 -0
  226. package/profiling/index.d.ts +153 -26
  227. package/references.d.ts +10 -0
  228. package/text/formatted-string.d.ts +1 -1
  229. package/text/index.d.ts +36 -0
  230. package/text/span.d.ts +1 -1
  231. package/timer/index.d.ts +27 -0
  232. package/trace/index.d.ts +131 -105
  233. package/ui/action-bar/index.d.ts +304 -0
  234. package/ui/activity-indicator/index.d.ts +25 -0
  235. package/ui/animation/index.d.ts +139 -0
  236. package/ui/animation/keyframe-animation.d.ts +118 -67
  237. package/ui/builder/binding-builder.d.ts +15 -12
  238. package/ui/builder/index.d.ts +69 -27
  239. package/ui/button/index.d.ts +50 -0
  240. package/ui/content-view/index.d.ts +11 -21
  241. package/ui/core/control-state-change/index.d.ts +17 -0
  242. package/ui/core/view/index.d.ts +1216 -0
  243. package/ui/core/view/view-helper/index.d.ts +76 -0
  244. package/ui/core/weak-event-listener/index.d.ts +18 -2
  245. package/ui/date-picker/index.d.ts +95 -0
  246. package/ui/dialogs/index.d.ts +311 -0
  247. package/ui/editable-text-base/index.d.ts +142 -0
  248. package/ui/embedding/index.d.ts +10 -0
  249. package/ui/frame/fragment.d.ts +5 -0
  250. package/ui/frame/fragment.transitions.d.ts +43 -0
  251. package/ui/frame/index.d.ts +590 -0
  252. package/ui/frame/transition-definitions.android.d.ts +54 -0
  253. package/ui/gestures/index.d.ts +59 -0
  254. package/ui/html-view/index.d.ts +41 -0
  255. package/ui/image/index.d.ts +119 -0
  256. package/ui/image/symbol-effects.d.ts +13 -0
  257. package/ui/image-cache/index.d.ts +147 -0
  258. package/ui/label/index.d.ts +25 -0
  259. package/ui/layouts/absolute-layout/index.d.ts +42 -0
  260. package/ui/layouts/dock-layout/index.d.ts +39 -0
  261. package/ui/layouts/flexbox-layout/index.d.ts +98 -0
  262. package/ui/layouts/grid-layout/index.d.ts +201 -0
  263. package/ui/layouts/index.d.ts +1 -2
  264. package/ui/layouts/layout-base.d.ts +119 -0
  265. package/ui/layouts/root-layout/index.d.ts +48 -0
  266. package/ui/layouts/stack-layout/index.d.ts +22 -0
  267. package/ui/layouts/wrap-layout/index.d.ts +51 -0
  268. package/ui/list-picker/index.d.ts +43 -0
  269. package/ui/list-view/index.d.ts +232 -0
  270. package/ui/page/index.d.ts +241 -0
  271. package/ui/placeholder/index.d.ts +46 -8
  272. package/ui/progress/index.d.ts +50 -0
  273. package/ui/scroll-view/index.d.ts +99 -0
  274. package/ui/search-bar/index.d.ts +103 -0
  275. package/ui/segmented-bar/index.d.ts +122 -0
  276. package/ui/slider/index.d.ts +99 -0
  277. package/ui/styling/background.d.ts +95 -0
  278. package/ui/styling/converters.d.ts +2 -2
  279. package/ui/styling/font.d.ts +62 -0
  280. package/ui/styling/style-properties.d.ts +101 -81
  281. package/ui/styling/style-scope.d.ts +48 -79
  282. package/ui/switch/index.d.ts +46 -0
  283. package/ui/tab-view/index.d.ts +213 -0
  284. package/ui/text-base/formatted-string.d.ts +97 -36
  285. package/ui/text-base/index.d.ts +208 -0
  286. package/ui/text-base/span.d.ts +111 -36
  287. package/ui/text-field/index.d.ts +54 -0
  288. package/ui/text-view/index.d.ts +35 -0
  289. package/ui/time-picker/index.d.ts +107 -0
  290. package/ui/transition/fade-transition.d.ts +3 -0
  291. package/ui/transition/flip-transition.d.ts +5 -0
  292. package/ui/transition/index.d.ts +59 -0
  293. package/ui/transition/modal-transition.d.ts +2 -0
  294. package/ui/transition/page-transition.d.ts +4 -0
  295. package/ui/transition/shared-transition-helper.d.ts +14 -0
  296. package/ui/transition/slide-transition.d.ts +5 -0
  297. package/ui/utils.d.ts +44 -0
  298. package/ui/web-view/index.d.ts +142 -0
  299. package/utils/constants.d.ts +1 -0
  300. package/utils/debug.d.ts +61 -17
  301. package/utils/index.d.ts +183 -0
  302. package/utils/layout-helper/index.d.ts +82 -0
  303. package/utils/lazy.d.ts +5 -0
  304. package/utils/macrotask-scheduler.d.ts +5 -1
  305. package/utils/mainthread-helper.d.ts +16 -0
  306. package/utils/native-helper.d.ts +280 -0
  307. package/utils/types.d.ts +115 -23
  308. package/utils/typescript-utils.d.ts +6 -0
  309. package/xml/index.d.ts +105 -44
@@ -0,0 +1,782 @@
1
+  /*
2
+ new function() {
3
+ var parser = new EasySAXParser();
4
+
5
+ parser.ns('rss', { // or false
6
+ rss: 'http://purl.org/rss/1.0/',
7
+ atom: 'http://www.w3.org/2005/Atom',
8
+ xhtml: 'http://www.w3.org/1999/xhtml',
9
+ media: 'http://search.yahoo.com/mrss/'
10
+ });
11
+
12
+
13
+ parser.on('error', function(msg) {
14
+ //console.log(msg)
15
+ });
16
+
17
+ parser.on('startNode', function(elem, attr, uq, tagend, getStrNode) {
18
+ attr();
19
+ return;
20
+ if (tagend) {
21
+ console.log(' '+str)
22
+ } else {
23
+ console.log('+ '+str)
24
+ };
25
+ });
26
+
27
+ parser.on('endNode', function(elem, uq, tagstart, str) {
28
+ return;
29
+ if (!tagstart) console.log('- ' + str)
30
+ });
31
+
32
+ parser.on('textNode', function(s, uq) {
33
+ uq(s);
34
+ return
35
+ console.log(' '+s)
36
+ });
37
+
38
+ parser.on('cdata', function(data) {
39
+ });
40
+
41
+
42
+ parser.on('comment', function(text) {
43
+ //console.log('--'+text+'--')
44
+ });
45
+
46
+ //parser.on('question', function() {}); // <? ... ?>
47
+ //parser.on('attention', function() {}); // <!XXXXX zzzz="eeee">
48
+
49
+ console.time('easysax');
50
+ for(var z=1000;z--;) {
51
+ parser.parse(xml)
52
+ };
53
+ console.timeEnd('easysax');
54
+ };
55
+
56
+
57
+ */
58
+
59
+ // << ------------------------------------------------------------------------ >> //
60
+
61
+
62
+ if (typeof exports === 'object' /*&& this == exports*/) {
63
+ module.exports.EasySAXParser = EasySAXParser;
64
+ };
65
+
66
+ function EasySAXParser() {
67
+ 'use strict';
68
+
69
+ if (!this) return null;
70
+
71
+ this.angularSyntax = false;
72
+
73
+ function nullFunc() {};
74
+
75
+ this.onTextNode = nullFunc;
76
+ this.onStartNode = nullFunc;
77
+ this.onEndNode = nullFunc;
78
+ this.onCDATA = nullFunc;
79
+ this.onError = nullFunc;
80
+ this.onComment = null;
81
+ this.onQuestion = null;
82
+ this.onAttention = null;
83
+ this.is_onComment = this.is_onQuestion = this.is_onAttention = false;
84
+
85
+ this.isNamespace = false;
86
+ this.useNS = null;
87
+ this.default_xmlns = null;
88
+ this.xmlns = null;
89
+ this.nsmatrix = {xmlns: this.xmlns};
90
+ this.hasSurmiseNS = false;
91
+ ;
92
+
93
+
94
+ this.attr_string = ''; // строка атрибутов
95
+ this.attr_posstart = 0; //
96
+ this.attr_res; // закешированный результат разбора атрибутов , null - разбор не проводился, object - хеш атрибутов, true - нет атрибутов, false - невалидный xml
97
+ }
98
+
99
+ EasySAXParser.prototype.on = function(name, cb) {
100
+ if (typeof cb !== 'function') {
101
+ if (cb !== null) return;
102
+ };
103
+
104
+ switch(name) {
105
+ case 'error': this.onError = cb || nullFunc; break;
106
+ case 'startNode': this.onStartNode = cb || nullFunc; break;
107
+ case 'endNode': this.onEndNode = cb || nullFunc; break;
108
+ case 'textNode': this.onTextNode = cb || nullFunc; break;
109
+ case 'cdata': this.onCDATA = cb || nullFunc; break;
110
+
111
+ case 'comment': this.onComment = cb; this.is_onComment = !!cb; break;
112
+ case 'question': this.onQuestion = cb; this.is_onQuestion = !!cb; break; // <? .... ?>
113
+ case 'attention': this.onAttention = cb; this.is_onAttention = !!cb; break; // <!XXXXX zzzz="eeee">
114
+ };
115
+ };
116
+
117
+ EasySAXParser.prototype.ns = function(root, ns) {
118
+ if (!root || typeof root !== 'string' || !ns) {
119
+ return;
120
+ };
121
+
122
+ var u, x = {}, ok, v, i;
123
+
124
+ for(i in ns) {
125
+ v = ns[i];
126
+ if (typeof v === 'string') {
127
+ if (root === v) ok = true;
128
+ x[i] = v;
129
+ };
130
+ };
131
+
132
+ if (ok) {
133
+ this.isNamespace = true;
134
+ this.default_xmlns = root;
135
+ this.useNS = x;
136
+ };
137
+ };
138
+
139
+
140
+ EasySAXParser.prototype.parse = function(xml) {
141
+ if (typeof xml !== 'string') {
142
+ return;
143
+ };
144
+
145
+ if (this.isNamespace) {
146
+ this.nsmatrix = {xmlns: this.default_xmlns};
147
+
148
+ parse(xml);
149
+
150
+ this.nsmatrix = false;
151
+
152
+ } else {
153
+ parse(xml);
154
+ };
155
+
156
+ this.attr_res = true;
157
+ };
158
+
159
+ // -----------------------------------------------------
160
+
161
+ var xharsQuot={constructor: false, hasOwnProperty: false, isPrototypeOf: false, propertyIsEnumerable: false, toLocaleString: false, toString: false, valueOf: false
162
+ , quot: '"'
163
+ , QUOT: '"'
164
+ , amp: '&'
165
+ , AMP: '&'
166
+ , nbsp: '\u00A0'
167
+ , apos: '\''
168
+ , lt: '<'
169
+ , LT: '<'
170
+ , gt: '>'
171
+ , GT: '>'
172
+ , copy: '\u00A9'
173
+ , laquo: '\u00AB'
174
+ , raquo: '\u00BB'
175
+ , reg: '\u00AE'
176
+ , deg: '\u00B0'
177
+ , plusmn: '\u00B1'
178
+ , sup2: '\u00B2'
179
+ , sup3: '\u00B3'
180
+ , micro: '\u00B5'
181
+ , para: '\u00B6'
182
+ };
183
+
184
+
185
+ function rpEntities(s, d, x, z) {
186
+ if (z) {
187
+ return xharsQuot[z] || '\x01';
188
+ };
189
+
190
+ if (d) {
191
+ return String.fromCodePoint(d);
192
+ };
193
+
194
+ return String.fromCodePoint(parseInt(x, 16));
195
+ };
196
+
197
+ function unEntities(s, i) {
198
+ s = String(s);
199
+ if (s.length > 3 && s.indexOf('&') !== -1) {
200
+ if (s.indexOf('&gt;') !== -1) s = s.replace(/&gt;/g, '>');
201
+ if (s.indexOf('&lt;') !== -1) s = s.replace(/&lt;/g, '<');
202
+ if (s.indexOf('&quot;') !== -1) s = s.replace(/&quot;/g, '"');
203
+
204
+ if (s.indexOf('&') !== -1) {
205
+ s = s.replace(/&#(\d+);|&#x([0123456789abcdef]+);|&(\w+);/ig, rpEntities);
206
+ };
207
+ };
208
+
209
+ return s;
210
+ };
211
+
212
+
213
+ EasySAXParser.prototype.allowedAngularAttributeChars = function(w) {
214
+ if (!this.angularSyntax) {
215
+ return false;
216
+ } else {
217
+ return (
218
+ w === 40 || // (
219
+ w === 41 || // )
220
+ w === 91 || // [
221
+ w === 93 || // ]
222
+ w === 94 || // ^
223
+ w === 35 // #
224
+ );
225
+ }
226
+ };
227
+
228
+ /*
229
+ парсит атрибуты по требованию. Важно! - функция не генерирует исключения.
230
+
231
+ если была ошибка разбора возврашается false
232
+ если атрибутов нет и разбор удачен то возврашается true
233
+ если есть атрибуты то возврашается обьект(хеш)
234
+ */
235
+
236
+ EasySAXParser.prototype.getAttrs = function() {
237
+ if (this.attr_res !== null) {
238
+ return this.attr_res;
239
+ };
240
+
241
+ /*
242
+ if (xxtest !== u && attr_string.indexOf(xxtest) === -1) {
243
+ / *
244
+ // для ускорения
245
+ if (getAttrs('html').type == 'html') {
246
+ ...
247
+ };
248
+ * /
249
+ return true;
250
+ };
251
+ */
252
+
253
+ var u
254
+ , res = {}
255
+ , s = this.attr_string
256
+ , i = this.attr_posstart
257
+ , l = s.length
258
+ , attr_list = this.hasSurmiseNS ? [] : false
259
+ , name, value = ''
260
+ , ok = false
261
+ , noValueAttribute = false
262
+ , j, w, nn, n
263
+ , hasNewMatrix
264
+ , alias, newalias
265
+ ;
266
+
267
+ aa:
268
+ for(; i < l; i++) {
269
+ w = s.charCodeAt(i);
270
+
271
+ if (w===32 || (w<14 && w > 8) ) { // \f\n\r\t\v
272
+ continue
273
+ };
274
+
275
+ // Check for valid attribute start char
276
+ if ((w < 65 && !this.allowedAngularAttributeChars(w)) ||
277
+ w > 122 || (w > 90 && w < 97 && !this.allowedAngularAttributeChars(w)) ) { // ожидаем символ
278
+ return this.attr_res = false; // error. invalid char
279
+ };
280
+
281
+ for(j = i + 1; j < l; j++) { // проверяем все символы имени атрибута
282
+ w = s.charCodeAt(j);
283
+
284
+ if (w > 96 && w < 123 || w > 64 && w < 91 || w > 47 && w < 59 || w === 45 || w === 95 || w === 46 /* https://github.com/telerik/xPlatCore/issues/179 */) {
285
+ if (noValueAttribute) {
286
+ j--; //Started next attribute. Get back and break out of the loop.
287
+ break;
288
+ } else {
289
+ continue;
290
+ }
291
+ };
292
+
293
+ if (this.allowedAngularAttributeChars(w)) {
294
+ continue;
295
+ }
296
+
297
+ if (w === 32 || (w > 8 && w < 14) ) { // \f\n\r\t\v пробел
298
+ noValueAttribute = true;
299
+ continue;
300
+ } else if (w === 61) { // "=" == 61
301
+ noValueAttribute = false;
302
+ break;
303
+ } else {
304
+ //console.log('error 2');
305
+ if (!noValueAttribute)
306
+ return this.attr_res = false; // error. invalid char
307
+ };
308
+
309
+ break;
310
+ };
311
+
312
+ name = s.substring(i, j).trim();
313
+ ok = true;
314
+
315
+ if (name === 'xmlns:xmlns') {
316
+ //console.log('error 6')
317
+ return this.attr_res = false; // error. invalid name
318
+ };
319
+
320
+ w = s.charCodeAt(j+1);
321
+
322
+ while (w = s.charCodeAt(j+1)) {
323
+ if (w===32 || (w > 8 && w<14) ) { // \f\n\r\t\v пробел
324
+ j++;
325
+ } else {
326
+ break;
327
+ }
328
+ }
329
+
330
+ if (!noValueAttribute) {
331
+ if (w === 34) { // '"'
332
+ j = s.indexOf('"', i = j+2 );
333
+
334
+ } else {
335
+ if (w === 39) {
336
+ j = s.indexOf('\'', i = j+2 );
337
+
338
+ } else { // "'"
339
+ return this.attr_res = false; // error. invalid char
340
+ };
341
+ };
342
+ }
343
+
344
+ if (j === -1) {
345
+ //console.log('error 4')
346
+ return this.attr_res = false; // error. invalid char
347
+ };
348
+
349
+
350
+ if (j+1 < l && !noValueAttribute) {
351
+ w = s.charCodeAt(j+1);
352
+
353
+ if (w > 32 || w < 9 || (w < 32 && w > 13)) {
354
+ // error. invalid char
355
+ //console.log('error 5')
356
+ return this.attr_res = false;
357
+ };
358
+ };
359
+
360
+
361
+ if (noValueAttribute) {
362
+ value = '';
363
+ } else {
364
+ value = s.substring(i, j);
365
+ }
366
+
367
+ //i = j + 1; // след. семвол уже проверен потому проверять нужно следуюший
368
+ i = j; // след. семвол уже проверен потому проверять нужно следуюший
369
+
370
+ if (this.isNamespace) { //
371
+ if (this.hasSurmiseNS) {
372
+ // есть подозрение что в атрибутах присутствует xmlns
373
+
374
+ if (newalias = name === 'xmlns' ? 'xmlns' : name.charCodeAt(0) === 120 && name.substr(0, 6) === 'xmlns:' && name.substr(6) ) {
375
+ alias = this.useNS[unEntities(value)];
376
+
377
+ if (alias) {
378
+ if (this.nsmatrix[newalias] !== alias) {
379
+ if (!hasNewMatrix) {
380
+ hasNewMatrix = true;
381
+ nn = {}; for (n in this.nsmatrix) nn[n] = this.nsmatrix[n];
382
+ this.nsmatrix = nn;
383
+ };
384
+
385
+ this.nsmatrix[newalias] = alias;
386
+ };
387
+ } else {
388
+ if (this.nsmatrix[newalias]) {
389
+ if (!hasNewMatrix) {
390
+ hasNewMatrix = true;
391
+ nn = {}; for (n in this.nsmatrix) nn[n] = this.nsmatrix[n];
392
+ this.nsmatrix = nn;
393
+ };
394
+
395
+ this.nsmatrix[newalias] = false;
396
+ };
397
+ };
398
+
399
+ res[name] = value;
400
+ continue;
401
+ };
402
+
403
+ attr_list.push(name, value);
404
+ continue;
405
+ };
406
+
407
+ w = name.length;
408
+ while(--w) {
409
+ if (name.charCodeAt(w) === 58) { // ':'
410
+ if (w = this.nsmatrix[name.substring(0, w)] ) {
411
+ res[w + name.substr(w)] = value;
412
+ };
413
+ continue aa;
414
+
415
+ // 'xml:base' ???
416
+ };
417
+ };
418
+ };
419
+
420
+ res[name] = value;
421
+ noValueAttribute = false;
422
+ };
423
+
424
+
425
+ if (!ok) {
426
+ return this.attr_res = true; // атрибутов нет, ошибок тоже нет
427
+ };
428
+
429
+
430
+ if (this.hasSurmiseNS) {
431
+ bb:
432
+
433
+ for (i = 0, l = attr_list.length; i < l; i++) {
434
+ name = attr_list[i++];
435
+
436
+ w = name.length;
437
+ while(--w) { // name.indexOf(':')
438
+ if (name.charCodeAt(w) === 58) { // ':'
439
+ if (w = this.nsmatrix[name.substring(0, w)]) {
440
+ res[w + name.substr(w)] = attr_list[i];
441
+ };
442
+ continue bb;
443
+ break;
444
+ };
445
+ };
446
+
447
+ res[name] = attr_list[i];
448
+ };
449
+ };
450
+
451
+ return this.attr_res = res;
452
+ };
453
+
454
+
455
+ // xml - string
456
+ EasySAXParser.prototype.parse = function(xml) {
457
+ var u
458
+ , xml = String(xml)
459
+ , nodestack = []
460
+ , stacknsmatrix = []
461
+ //, string_node
462
+ , elem
463
+ , tagend = false
464
+ , tagstart = false
465
+ , j = 0, i = 0, k = 0, len
466
+ , x, y, q, w
467
+ , xmlns
468
+ , stopIndex = 0
469
+ , stop // используется при разборе "namespace" . если встретился неизвестное пространство то события не генерируются
470
+ , _nsmatrix
471
+ , ok
472
+ , pos = 0, ln = 0, lnStart = -2, lnEnd = -1
473
+ ;
474
+
475
+ len = xml.length;
476
+ function getStringNode() {
477
+ return xml.substring(i, j+1)
478
+ };
479
+ function findLineAndColumnFromPos() {
480
+ while (lnStart < lnEnd && lnEnd < pos) {
481
+ lnStart = lnEnd;
482
+ lnEnd = xml.indexOf("\n", lnEnd + 1);
483
+ ++ln;
484
+ }
485
+ return { line: ln, column: pos - lnStart };
486
+ }
487
+ function position(p) {
488
+ pos = p;
489
+ return findLineAndColumnFromPos;
490
+ }
491
+
492
+ while(j !== -1) {
493
+ stop = stopIndex > 0;
494
+
495
+ if (xml.charCodeAt(j) === 60) { // "<"
496
+ i = j;
497
+ } else {
498
+ i = xml.indexOf('<', j);
499
+ };
500
+
501
+ if (i === -1) { // конец разбора
502
+
503
+ if (nodestack.length) {
504
+ this.onError('end file', position(j));
505
+ return;
506
+ };
507
+
508
+ return;
509
+ };
510
+
511
+ if (j !== i && !stop) {
512
+ ok = this.onTextNode(xml.substring(j, i), unEntities, position(j));
513
+ if (ok === false) return;
514
+ };
515
+
516
+ w = xml.charCodeAt(i+1);
517
+
518
+ if (w === 33) { // "!"
519
+ w = xml.charCodeAt(i+2);
520
+ if (w === 91 && xml.substr(i+3, 6) === 'CDATA[') { // 91 == "["
521
+ j = xml.indexOf(']]>', i);
522
+ if (j === -1) {
523
+ this.onError('cdata', position(i));
524
+ return;
525
+ };
526
+
527
+ //x = xml.substring(i+9, j);
528
+ if (!stop) {
529
+ ok = this.onCDATA(xml.substring(i+9, j), false, position(i));
530
+ if (ok === false) return;
531
+ };
532
+
533
+ j += 3;
534
+ continue;
535
+ };
536
+
537
+ if (w === 45 && xml.charCodeAt(i+3) === 45) { // 45 == "-"
538
+ j = xml.indexOf('-->', i);
539
+ if (j === -1) {
540
+ this.onError('expected -->', position(i));
541
+ return;
542
+ };
543
+
544
+
545
+ if (this.is_onComment && !stop) {
546
+ ok = this.onComment(xml.substring(i+4, j), unEntities, position(i));
547
+ if (ok === false) return;
548
+ };
549
+
550
+ j += 3;
551
+ continue;
552
+ };
553
+
554
+ j = xml.indexOf('>', i+1);
555
+ if (j === -1) {
556
+ this.onError('expected ">"', position(i + 1));
557
+ return;
558
+ };
559
+
560
+ if (this.is_onAttention && !stop) {
561
+ ok = this.onAttention(xml.substring(i, j+1), unEntities, position(i));
562
+ if (ok === false) return;
563
+ };
564
+
565
+ j += 1;
566
+ continue;
567
+
568
+ } else {
569
+ if (w === 63) { // "?"
570
+ j = xml.indexOf('?>', i);
571
+ if (j === -1) { // error
572
+ this.onError('...?>', position(i));
573
+ return;
574
+ };
575
+
576
+ if (this.is_onQuestion) {
577
+ ok = this.onQuestion(xml.substring(i, j+2), position(i));
578
+ if (ok === false) return;
579
+ };
580
+
581
+ j += 2;
582
+ continue;
583
+ };
584
+ };
585
+
586
+ var inside=false;
587
+ for (k=i,j=-1;k<len;k++) {
588
+ var c = xml.charCodeAt(k);
589
+ if (!inside) {
590
+
591
+ if (c === 34) { // '"'
592
+ inside = c;
593
+ }
594
+ else if (c === 39) { // "'"
595
+ inside = c;
596
+ }
597
+ else if (c === 62) { // <
598
+ j = k; break;
599
+ }
600
+ } else {
601
+ if (c === inside) { inside = false; }
602
+ }
603
+ }
604
+
605
+ if (j == -1) { // error
606
+ this.onError('...>', position(i + 1));
607
+ return;
608
+ };
609
+
610
+ this.attr_res = true; // атрибутов нет
611
+
612
+ //if (xml.charCodeAt(i+1) === 47) { // </...
613
+ if (w === 47) { // </...
614
+ tagstart = false;
615
+ tagend = true;
616
+
617
+ // проверяем что должен быть закрыт тотже тег что и открывался
618
+ x = elem = nodestack.pop();
619
+ q = i + 2 + x.length;
620
+
621
+ //console.log()
622
+ if (xml.substring(i+2, q) !== x) {
623
+ this.onError('close tagname', position(i + 2));
624
+ return;
625
+ };
626
+
627
+ // проверим что в закрываюшем теге нет лишнего
628
+ for(; q < j; q++) {
629
+ w = xml.charCodeAt(q);
630
+
631
+ if (w===32 || (w > 8 && w<14) ) { // \f\n\r\t\v пробел
632
+ continue;
633
+ };
634
+
635
+ this.onError('close tag', position(i + 2));
636
+ return;
637
+ };
638
+
639
+ } else {
640
+ if (xml.charCodeAt(j-1) === 47) { // .../>
641
+ x = elem = xml.substring(i+1, j-1);
642
+
643
+ tagstart = true;
644
+ tagend = true;
645
+ } else {
646
+ x = elem = xml.substring(i+1, j);
647
+
648
+ tagstart = true;
649
+ tagend = false;
650
+ };
651
+
652
+ if ( !(w > 96 && w < 123 || w > 64 && w <91) ) {
653
+ this.onError('first char nodeName', position(i + 1));
654
+ return;
655
+ };
656
+
657
+ for(q = 1, y = x.length; q < y; q++) {
658
+ w = x.charCodeAt(q);
659
+
660
+ if (w > 96 && w < 123 || w > 64 && w < 91 || w > 47 && w < 59 || w === 45 || w === 95 || w === 46 /* https://github.com/telerik/xPlatCore/issues/179 */) {
661
+ continue;
662
+ };
663
+
664
+ if (w===32 || (w<14 && w > 8)) { // \f\n\r\t\v пробел
665
+ elem = x.substring(0, q)
666
+ this.attr_res = null; // возможно есть атирибуты
667
+ break;
668
+ };
669
+
670
+ this.onError('invalid nodeName', position(i + 1));
671
+ return;
672
+ };
673
+
674
+ if (!tagend) {
675
+ nodestack.push(elem);
676
+ };
677
+ };
678
+
679
+
680
+ if (this.isNamespace) {
681
+ if (stop) {
682
+ if (tagend) {
683
+ if (!tagstart) {
684
+ if (--stopIndex === 0) {
685
+ this.nsmatrix = stacknsmatrix.pop();
686
+ };
687
+ };
688
+
689
+ } else {
690
+ stopIndex += 1;
691
+ };
692
+
693
+
694
+ j += 1;
695
+ continue;
696
+ };
697
+
698
+ _nsmatrix = this.nsmatrix;
699
+
700
+ if (!tagend) {
701
+ stacknsmatrix.push(this.nsmatrix);
702
+
703
+ if (this.attr_res !== true) {
704
+ if (this.hasSurmiseNS = x.indexOf('xmlns', q) !== -1) {
705
+ this.attr_string = x;
706
+ this.attr_posstart = q;
707
+
708
+ this.getAttrs();
709
+
710
+ this.hasSurmiseNS = false;
711
+ };
712
+ };
713
+ };
714
+
715
+
716
+ w = elem.indexOf(':');
717
+ if (w !== -1) {
718
+ xmlns = this.nsmatrix[elem.substring(0, w)];
719
+ elem = elem.substr(w+1);
720
+
721
+ } else {
722
+ xmlns = this.nsmatrix.xmlns;
723
+ };
724
+
725
+ if (!xmlns) {
726
+ if (tagend) {
727
+ if (tagstart) {
728
+ this.nsmatrix = _nsmatrix;
729
+ } else {
730
+ this.nsmatrix = stacknsmatrix.pop();
731
+ };
732
+ } else {
733
+ stopIndex = 1; // первый элемент для которого не определено пространство имен
734
+ this.attr_res = true;
735
+ };
736
+
737
+ j += 1;
738
+ continue;
739
+ };
740
+
741
+ elem = xmlns + ':' + elem;
742
+ };
743
+
744
+ //string_node = xml.substring(i, j+1); // текст ноды как есть
745
+
746
+ if (tagstart) { // is_onStartNode
747
+ this.attr_string = x;
748
+ this.attr_posstart = q;
749
+
750
+ var that = this;
751
+ ok = this.onStartNode(elem, function() { return that.getAttrs() }, unEntities, tagend
752
+ , getStringNode, position(i)
753
+ );
754
+
755
+ if (ok === false) {
756
+ return;
757
+ };
758
+
759
+ this.attr_res = true;
760
+ };
761
+
762
+ if (tagend) {
763
+ ok = this.onEndNode(elem, unEntities, tagstart
764
+ , getStringNode, position(i)
765
+ );
766
+
767
+ if (ok === false) {
768
+ return;
769
+ };
770
+
771
+ if (this.isNamespace) {
772
+ if (tagstart) {
773
+ this.nsmatrix = _nsmatrix;
774
+ } else {
775
+ this.nsmatrix = stacknsmatrix.pop();
776
+ };
777
+ };
778
+ };
779
+
780
+ j += 1;
781
+ };
782
+ };