@situm/cordova 3.0.0

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 (313) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/CHANGELOG_UNRELEASED.md +28 -0
  3. package/Jenkinsfile +84 -0
  4. package/LICENSE +21 -0
  5. package/README.md +472 -0
  6. package/azure/common-steps.yaml +5 -0
  7. package/azure-pipelines.yml +336 -0
  8. package/docs/JSDoc/MapView.html +300 -0
  9. package/docs/JSDoc/MapViewControllerImpl.html +299 -0
  10. package/docs/JSDoc/Situm.html +5257 -0
  11. package/docs/JSDoc/android_Interfaces.js.html +825 -0
  12. package/docs/JSDoc/android_situm.js.html +380 -0
  13. package/docs/JSDoc/fonts/glyphicons-halflings-regular.eot +0 -0
  14. package/docs/JSDoc/fonts/glyphicons-halflings-regular.svg +288 -0
  15. package/docs/JSDoc/fonts/glyphicons-halflings-regular.ttf +0 -0
  16. package/docs/JSDoc/fonts/glyphicons-halflings-regular.woff +0 -0
  17. package/docs/JSDoc/fonts/glyphicons-halflings-regular.woff2 +0 -0
  18. package/docs/JSDoc/global.html +7538 -0
  19. package/docs/JSDoc/img/toast-ui.png +0 -0
  20. package/docs/JSDoc/index.html +90 -0
  21. package/docs/JSDoc/map-view-controller.js.html +307 -0
  22. package/docs/JSDoc/map-view.js.html +172 -0
  23. package/docs/JSDoc/scripts/jquery.min.js +2 -0
  24. package/docs/JSDoc/scripts/linenumber.js +30 -0
  25. package/docs/JSDoc/scripts/prettify/Apache-License-2.0.txt +202 -0
  26. package/docs/JSDoc/scripts/prettify/lang-css.js +2 -0
  27. package/docs/JSDoc/scripts/prettify/prettify.js +28 -0
  28. package/docs/JSDoc/scripts/tui-doc.js +200 -0
  29. package/docs/JSDoc/styles/bootstrap.min.css +6 -0
  30. package/docs/JSDoc/styles/custom.css +23 -0
  31. package/docs/JSDoc/styles/prettify-jsdoc.css +111 -0
  32. package/docs/JSDoc/styles/prettify-tomorrow.css +132 -0
  33. package/docs/JSDoc/styles/tui-doc.css +485 -0
  34. package/docs/conf.json +28 -0
  35. package/docs/getting-started.md +298 -0
  36. package/docs/imagotype-SITUM-transparent-90.png +0 -0
  37. package/docs/static/styles/custom.css +23 -0
  38. package/package.json +60 -0
  39. package/plugin.xml +102 -0
  40. package/scripts/update_changelog.sh +22 -0
  41. package/src/android/app/build.gradle +51 -0
  42. package/src/android/app/proguard-rules.pro +21 -0
  43. package/src/android/app/src/main/AndroidManifest.xml +11 -0
  44. package/src/android/app/src/main/java/es/situm/plugin/DateUtils.java +15 -0
  45. package/src/android/app/src/main/java/es/situm/plugin/PluginHelper.java +919 -0
  46. package/src/android/app/src/main/java/es/situm/plugin/SitumMapper.java +968 -0
  47. package/src/android/app/src/main/java/es/situm/plugin/SitumPlugin.java +109 -0
  48. package/src/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
  49. package/src/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
  50. package/src/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
  51. package/src/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
  52. package/src/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  53. package/src/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  54. package/src/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  55. package/src/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  56. package/src/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  57. package/src/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  58. package/src/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  59. package/src/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  60. package/src/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  61. package/src/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  62. package/src/android/app/src/main/res/values/colors.xml +6 -0
  63. package/src/android/app/src/main/res/values/strings.xml +3 -0
  64. package/src/android/app/src/main/res/values/styles.xml +11 -0
  65. package/src/android/app/src/test/java/es/situm/plugin/PluginHelperTest.java +27 -0
  66. package/src/android/app/src/test/java/es/situm/plugin/SitumMapperTest.java +1485 -0
  67. package/src/android/app/src/test/java/es/situm/plugin/angle/AngleCreator.java +46 -0
  68. package/src/android/app/src/test/java/es/situm/plugin/bounds/BoundsCreator.java +50 -0
  69. package/src/android/app/src/test/java/es/situm/plugin/building/BuildingCreator.java +76 -0
  70. package/src/android/app/src/test/java/es/situm/plugin/cartesianCoordinate/CartesianCoordinateCreator.java +31 -0
  71. package/src/android/app/src/test/java/es/situm/plugin/circle/CircleCreator.java +41 -0
  72. package/src/android/app/src/test/java/es/situm/plugin/coordinate/CoordinateCreator.java +32 -0
  73. package/src/android/app/src/test/java/es/situm/plugin/dimensions/DimensionsCreator.java +31 -0
  74. package/src/android/app/src/test/java/es/situm/plugin/directionsRequest/DirectionsRequestCreator.java +105 -0
  75. package/src/android/app/src/test/java/es/situm/plugin/event/EventCreator.java +108 -0
  76. package/src/android/app/src/test/java/es/situm/plugin/floor/FloorCreator.java +58 -0
  77. package/src/android/app/src/test/java/es/situm/plugin/indication/IndicationCreator.java +40 -0
  78. package/src/android/app/src/test/java/es/situm/plugin/location/LocationCreator.java +197 -0
  79. package/src/android/app/src/test/java/es/situm/plugin/locationRequest/LocationRequestCreator.java +45 -0
  80. package/src/android/app/src/test/java/es/situm/plugin/locationStatus/LocationStatusCreator.java +211 -0
  81. package/src/android/app/src/test/java/es/situm/plugin/navigationProgress/NavigationProgressCreator.java +154 -0
  82. package/src/android/app/src/test/java/es/situm/plugin/poi/PoiCreator.java +126 -0
  83. package/src/android/app/src/test/java/es/situm/plugin/poiCategory/PoiCategoryCreator.java +38 -0
  84. package/src/android/app/src/test/java/es/situm/plugin/point/PointCreator.java +200 -0
  85. package/src/android/app/src/test/java/es/situm/plugin/route/RouteCreator.java +142 -0
  86. package/src/android/app/src/test/java/es/situm/plugin/routeStep/RouteStepCreator.java +173 -0
  87. package/src/android/app/src/test/java/es/situm/plugin/situmConversionArea/SitumConversionAreaCreator.java +35 -0
  88. package/src/android/build.gradle +31 -0
  89. package/src/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  90. package/src/android/gradle/wrapper/gradle-wrapper.properties +6 -0
  91. package/src/android/gradle.properties +16 -0
  92. package/src/android/gradlew +172 -0
  93. package/src/android/gradlew.bat +84 -0
  94. package/src/android/settings.gradle +3 -0
  95. package/src/android/situm.gradle +19 -0
  96. package/src/ios/Classes/Private/CDVDebug.h +25 -0
  97. package/src/ios/Classes/Private/CDVJSON_private.h +31 -0
  98. package/src/ios/Classes/Private/CDVJSON_private.m +99 -0
  99. package/src/ios/Classes/Private/CDVPlugin+Private.h +24 -0
  100. package/src/ios/Classes/Private/CDVPlugins/CDVGestureHandler/CDVGestureHandler.h +26 -0
  101. package/src/ios/Classes/Private/CDVPlugins/CDVGestureHandler/CDVGestureHandler.m +70 -0
  102. package/src/ios/Classes/Private/CDVPlugins/CDVHandleOpenURL/CDVHandleOpenURL.h +27 -0
  103. package/src/ios/Classes/Private/CDVPlugins/CDVHandleOpenURL/CDVHandleOpenURL.m +86 -0
  104. package/src/ios/Classes/Private/CDVPlugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.h +34 -0
  105. package/src/ios/Classes/Private/CDVPlugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.m +153 -0
  106. package/src/ios/Classes/Private/CDVPlugins/CDVLocalStorage/CDVLocalStorage.h +50 -0
  107. package/src/ios/Classes/Private/CDVPlugins/CDVLocalStorage/CDVLocalStorage.m +487 -0
  108. package/src/ios/Classes/Private/CDVPlugins/CDVLogger/CDVLogger.h +26 -0
  109. package/src/ios/Classes/Private/CDVPlugins/CDVLogger/CDVLogger.m +37 -0
  110. package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewDelegate.h +41 -0
  111. package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewDelegate.m +399 -0
  112. package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewEngine.h +27 -0
  113. package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewEngine.m +202 -0
  114. package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.h +29 -0
  115. package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.m +153 -0
  116. package/src/ios/Classes/Public/CDV.h +32 -0
  117. package/src/ios/Classes/Public/CDVAppDelegate.h +28 -0
  118. package/src/ios/Classes/Public/CDVAppDelegate.m +118 -0
  119. package/src/ios/Classes/Public/CDVAvailability.h +111 -0
  120. package/src/ios/Classes/Public/CDVAvailabilityDeprecated.h +26 -0
  121. package/src/ios/Classes/Public/CDVCommandDelegate.h +51 -0
  122. package/src/ios/Classes/Public/CDVCommandDelegateImpl.h +36 -0
  123. package/src/ios/Classes/Public/CDVCommandDelegateImpl.m +186 -0
  124. package/src/ios/Classes/Public/CDVCommandQueue.h +39 -0
  125. package/src/ios/Classes/Public/CDVCommandQueue.m +194 -0
  126. package/src/ios/Classes/Public/CDVConfigParser.h +30 -0
  127. package/src/ios/Classes/Public/CDVConfigParser.m +81 -0
  128. package/src/ios/Classes/Public/CDVInvokedUrlCommand.h +52 -0
  129. package/src/ios/Classes/Public/CDVInvokedUrlCommand.m +116 -0
  130. package/src/ios/Classes/Public/CDVPlugin+Resources.h +39 -0
  131. package/src/ios/Classes/Public/CDVPlugin+Resources.m +38 -0
  132. package/src/ios/Classes/Public/CDVPlugin.h +85 -0
  133. package/src/ios/Classes/Public/CDVPlugin.m +202 -0
  134. package/src/ios/Classes/Public/CDVPluginResult.h +66 -0
  135. package/src/ios/Classes/Public/CDVPluginResult.m +186 -0
  136. package/src/ios/Classes/Public/CDVScreenOrientationDelegate.h +33 -0
  137. package/src/ios/Classes/Public/CDVTimer.h +27 -0
  138. package/src/ios/Classes/Public/CDVTimer.m +123 -0
  139. package/src/ios/Classes/Public/CDVURLProtocol.h +27 -0
  140. package/src/ios/Classes/Public/CDVURLProtocol.m +113 -0
  141. package/src/ios/Classes/Public/CDVUserAgentUtil.h +27 -0
  142. package/src/ios/Classes/Public/CDVUserAgentUtil.m +124 -0
  143. package/src/ios/Classes/Public/CDVViewController.h +92 -0
  144. package/src/ios/Classes/Public/CDVViewController.m +821 -0
  145. package/src/ios/Classes/Public/CDVWebViewEngineProtocol.h +42 -0
  146. package/src/ios/Classes/Public/CDVWhitelist.h +34 -0
  147. package/src/ios/Classes/Public/CDVWhitelist.m +285 -0
  148. package/src/ios/Classes/Public/NSDictionary+CordovaPreferences.h +35 -0
  149. package/src/ios/Classes/Public/NSDictionary+CordovaPreferences.m +63 -0
  150. package/src/ios/Classes/Public/NSMutableArray+QueueAdditions.h +29 -0
  151. package/src/ios/Classes/Public/NSMutableArray+QueueAdditions.m +58 -0
  152. package/src/ios/Cordova/Cordova.h +51 -0
  153. package/src/ios/Cordova/Info.plist +24 -0
  154. package/src/ios/Podfile +5 -0
  155. package/src/ios/SitumCordovaPlugin.xcodeproj/project.pbxproj +1324 -0
  156. package/src/ios/SitumCordovaPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  157. package/src/ios/SitumCordovaPlugin.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  158. package/src/ios/SitumCordovaPlugin.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  159. package/src/ios/SitumCordovaPlugin.xcodeproj/xcshareddata/xcschemes/CordovaLib.xcscheme +100 -0
  160. package/src/ios/SitumCordovaPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  161. package/src/ios/SitumCordovaPlugin_Prefix.pch +22 -0
  162. package/src/ios/VERSION +1 -0
  163. package/src/ios/cordova.js +2432 -0
  164. package/src/ios/situmcordovaplugin/AppDelegate.h +22 -0
  165. package/src/ios/situmcordovaplugin/AppDelegate.m +98 -0
  166. package/src/ios/situmcordovaplugin/Assets.xcassets/AppIcon.appiconset/Contents.json +98 -0
  167. package/src/ios/situmcordovaplugin/Base.lproj/LaunchScreen.storyboard +25 -0
  168. package/src/ios/situmcordovaplugin/Base.lproj/Main.storyboard +24 -0
  169. package/src/ios/situmcordovaplugin/Constants.h +14 -0
  170. package/src/ios/situmcordovaplugin/Constants.m +14 -0
  171. package/src/ios/situmcordovaplugin/Info.plist +45 -0
  172. package/src/ios/situmcordovaplugin/SITUtils.h +7 -0
  173. package/src/ios/situmcordovaplugin/SITUtils.m +13 -0
  174. package/src/ios/situmcordovaplugin/SitumLocationWrapper.h +109 -0
  175. package/src/ios/situmcordovaplugin/SitumLocationWrapper.m +983 -0
  176. package/src/ios/situmcordovaplugin/SitumPlugin.h +41 -0
  177. package/src/ios/situmcordovaplugin/SitumPlugin.m +752 -0
  178. package/src/ios/situmcordovaplugin/ViewController.h +15 -0
  179. package/src/ios/situmcordovaplugin/ViewController.m +29 -0
  180. package/src/ios/situmcordovaplugin/main.m +16 -0
  181. package/src/ios/situmcordovaplugin/situmcordovaplugin.xcdatamodeld/.xccurrentversion +8 -0
  182. package/src/ios/situmcordovaplugin/situmcordovaplugin.xcdatamodeld/situmcordovaplugin.xcdatamodel/contents +4 -0
  183. package/src/ios/situmcordovaplugintests/AngleTests.m +53 -0
  184. package/src/ios/situmcordovaplugintests/BoundTests.m +51 -0
  185. package/src/ios/situmcordovaplugintests/BuildingTests.m +41 -0
  186. package/src/ios/situmcordovaplugintests/CartesianCoordinateTests.m +42 -0
  187. package/src/ios/situmcordovaplugintests/ConversionAreaTests.m +43 -0
  188. package/src/ios/situmcordovaplugintests/CoordinateTests.m +42 -0
  189. package/src/ios/situmcordovaplugintests/DimensionTests.m +43 -0
  190. package/src/ios/situmcordovaplugintests/EventTests.m +42 -0
  191. package/src/ios/situmcordovaplugintests/FloorTests.m +52 -0
  192. package/src/ios/situmcordovaplugintests/Info.plist +38 -0
  193. package/src/ios/situmcordovaplugintests/InputTests/DirectionsRequestTest.m +108 -0
  194. package/src/ios/situmcordovaplugintests/InputTests/InputCartesianCoordinateTests.m +45 -0
  195. package/src/ios/situmcordovaplugintests/InputTests/InputCoordinateTests.m +45 -0
  196. package/src/ios/situmcordovaplugintests/InputTests/InputFloorTests.m +59 -0
  197. package/src/ios/situmcordovaplugintests/InputTests/InputIndicationTests.m +45 -0
  198. package/src/ios/situmcordovaplugintests/InputTests/InputLocationTests.m +163 -0
  199. package/src/ios/situmcordovaplugintests/InputTests/InputPoiCategoryTests.m +46 -0
  200. package/src/ios/situmcordovaplugintests/InputTests/InputPointTests.m +137 -0
  201. package/src/ios/situmcordovaplugintests/InputTests/LocationRequestTest.m +79 -0
  202. package/src/ios/situmcordovaplugintests/LocationStatusTests.m +60 -0
  203. package/src/ios/situmcordovaplugintests/LocationTests.m +114 -0
  204. package/src/ios/situmcordovaplugintests/NavigationProgressTests.m +50 -0
  205. package/src/ios/situmcordovaplugintests/PoiCategoryIconTests.m +43 -0
  206. package/src/ios/situmcordovaplugintests/PoiCategoryTests.m +42 -0
  207. package/src/ios/situmcordovaplugintests/PoiTests.m +83 -0
  208. package/src/ios/situmcordovaplugintests/PointTests.m +107 -0
  209. package/src/ios/situmcordovaplugintests/RouteStepTests.m +78 -0
  210. package/src/ios/situmcordovaplugintests/RouteTests.m +42 -0
  211. package/src/ios/situmcordovaplugintests/SitumCreatorTests.h +91 -0
  212. package/src/ios/situmcordovaplugintests/SitumCreatorTests.m +928 -0
  213. package/src/ios/situmcordovaplugintests/TestingHelper.h +48 -0
  214. package/src/ios/situmcordovaplugintests/TestingHelper.m +342 -0
  215. package/src/ios/situmcordovaplugintests/indicationTests.m +43 -0
  216. package/tests/common-resources/angle/angle1.json +6 -0
  217. package/tests/common-resources/angle/angle2.json +6 -0
  218. package/tests/common-resources/bounds/bounds1.json +18 -0
  219. package/tests/common-resources/bounds/bounds2.json +18 -0
  220. package/tests/common-resources/building/building1.json +64 -0
  221. package/tests/common-resources/cartesianCoordinate/cartesianCoordinate1.json +4 -0
  222. package/tests/common-resources/circle/circle1.json +17 -0
  223. package/tests/common-resources/coordinate/coordinate1.json +4 -0
  224. package/tests/common-resources/dimensions/dimensions1.json +4 -0
  225. package/tests/common-resources/directionsRequest/directionsRequest1.json +166 -0
  226. package/tests/common-resources/directionsRequest/directionsRequest2.json +167 -0
  227. package/tests/common-resources/directionsRequest/directionsRequest3.json +166 -0
  228. package/tests/common-resources/directionsRequest/directionsRequest4.json +166 -0
  229. package/tests/common-resources/directionsRequest/directionsRequest5.json +167 -0
  230. package/tests/common-resources/directionsRequest/directionsRequest6.json +153 -0
  231. package/tests/common-resources/events/event1.json +66 -0
  232. package/tests/common-resources/floor/floor1.json +13 -0
  233. package/tests/common-resources/floor/floor2.json +13 -0
  234. package/tests/common-resources/indication/indication1.json +10 -0
  235. package/tests/common-resources/location/location1.json +48 -0
  236. package/tests/common-resources/location/location10.json +48 -0
  237. package/tests/common-resources/location/location2.json +48 -0
  238. package/tests/common-resources/location/location3.json +48 -0
  239. package/tests/common-resources/location/location4.json +48 -0
  240. package/tests/common-resources/location/location5.json +48 -0
  241. package/tests/common-resources/location/location6.json +48 -0
  242. package/tests/common-resources/location/location7.json +48 -0
  243. package/tests/common-resources/location/location8.json +48 -0
  244. package/tests/common-resources/location/location9.json +48 -0
  245. package/tests/common-resources/locationRequest/locationRequest1.json +6 -0
  246. package/tests/common-resources/locationRequest/locationRequest2.json +32 -0
  247. package/tests/common-resources/locationRequest/locationRequest3.json +33 -0
  248. package/tests/common-resources/locationRequest/locationRequest4.json +31 -0
  249. package/tests/common-resources/locationStatus/locationStatus1.json +4 -0
  250. package/tests/common-resources/locationStatus/locationStatus10.json +4 -0
  251. package/tests/common-resources/locationStatus/locationStatus11.json +4 -0
  252. package/tests/common-resources/locationStatus/locationStatus12.json +4 -0
  253. package/tests/common-resources/locationStatus/locationStatus13.json +4 -0
  254. package/tests/common-resources/locationStatus/locationStatus2.json +4 -0
  255. package/tests/common-resources/locationStatus/locationStatus3.json +4 -0
  256. package/tests/common-resources/locationStatus/locationStatus4.json +4 -0
  257. package/tests/common-resources/locationStatus/locationStatus5.json +4 -0
  258. package/tests/common-resources/locationStatus/locationStatus6.json +4 -0
  259. package/tests/common-resources/locationStatus/locationStatus7.json +4 -0
  260. package/tests/common-resources/locationStatus/locationStatus8.json +4 -0
  261. package/tests/common-resources/locationStatus/locationStatus9.json +4 -0
  262. package/tests/common-resources/navigationProgress/navigationProgress1.json +77 -0
  263. package/tests/common-resources/navigationProgress/navigationProgress2.json +77 -0
  264. package/tests/common-resources/poi/poi1.json +35 -0
  265. package/tests/common-resources/poi/poi2.json +35 -0
  266. package/tests/common-resources/poi/poi3.json +35 -0
  267. package/tests/common-resources/poi/poi4.json +38 -0
  268. package/tests/common-resources/poi/poi5.json +35 -0
  269. package/tests/common-resources/poiCategory/poiCategory1.json +7 -0
  270. package/tests/common-resources/poiCategoryIcon/poiCategoryIcon1.json +1 -0
  271. package/tests/common-resources/poiCategoryIcon/poiCategoryIcon1.png +0 -0
  272. package/tests/common-resources/point/point1.json +14 -0
  273. package/tests/common-resources/point/point2.json +14 -0
  274. package/tests/common-resources/point/point3.json +14 -0
  275. package/tests/common-resources/point/point4.json +14 -0
  276. package/tests/common-resources/point/point5.json +14 -0
  277. package/tests/common-resources/point/point6.json +14 -0
  278. package/tests/common-resources/point/point7.json +14 -0
  279. package/tests/common-resources/point/point8.json +14 -0
  280. package/tests/common-resources/route/route1.json +530 -0
  281. package/tests/common-resources/routeStep/routeStep1.json +35 -0
  282. package/tests/common-resources/routeStep/routeStep2.json +35 -0
  283. package/tests/common-resources/routeStep/routeStep3.json +35 -0
  284. package/tests/common-resources/routeStep/routeStep4.json +35 -0
  285. package/tests/common-resources/routeStep/routeStep5.json +35 -0
  286. package/tests/common-resources/situmConversionArea/situmConversionArea1.json +19 -0
  287. package/tests/js/resources/fetchBuildings.json +176 -0
  288. package/tests/js/resources/fetchEventsFromBuilding.json +201 -0
  289. package/tests/js/resources/fetchFloorsFromBuilding.json +34 -0
  290. package/tests/js/resources/fetchIndoorPOIsFromBuilding.json +574 -0
  291. package/tests/js/resources/fetchMapFromFloor.json +3 -0
  292. package/tests/js/resources/fetchOutdoorPOIsFromBuilding.json +68 -0
  293. package/tests/js/resources/fetchPoiCategories.json +72 -0
  294. package/tests/js/resources/fetchPoiCategoryIconNormal.json +3 -0
  295. package/tests/js/resources/fetchPoiCategoryIconSelected.json +3 -0
  296. package/tests/js/resources/requestDirections.json +1167 -0
  297. package/tests/js/resources/startPositioning/0_starting.json +4 -0
  298. package/tests/js/resources/startPositioning/1_preparingPositioningModel.json +4 -0
  299. package/tests/js/resources/startPositioning/2_startingPositioning.json +4 -0
  300. package/tests/js/resources/startPositioning/3_calculating.json +4 -0
  301. package/tests/js/resources/startPositioning/4_position.json +48 -0
  302. package/tests/js/resources/startPositioning/5_position.json +48 -0
  303. package/tests/js/test.js +416 -0
  304. package/tests/scripts/clean_android_resources.sh +3 -0
  305. package/tests/scripts/clean_ios_resources.sh +3 -0
  306. package/tests/scripts/copy_android_resources.sh +3 -0
  307. package/tests/scripts/copy_ios_resources.sh +3 -0
  308. package/tests/scripts/self-destruct.sh +1 -0
  309. package/www/android/Interfaces.js +742 -0
  310. package/www/android/situm.js +296 -0
  311. package/www/ios/situm.js +99 -0
  312. package/www/map-view-controller.js +223 -0
  313. package/www/map-view.js +88 -0
@@ -0,0 +1,132 @@
1
+ /* Tomorrow Theme */
2
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
3
+ /* Pretty printing styles. Used with prettify.js. */
4
+ /* SPAN elements with the classes below are added by prettyprint. */
5
+ /* plain text */
6
+ .pln {
7
+ color: #4d4d4c; }
8
+
9
+ @media screen {
10
+ /* string content */
11
+ .str {
12
+ color: #718c00; }
13
+
14
+ /* a keyword */
15
+ .kwd {
16
+ color: #8959a8; }
17
+
18
+ /* a comment */
19
+ .com {
20
+ color: #8e908c; }
21
+
22
+ /* a type name */
23
+ .typ {
24
+ color: #4271ae; }
25
+
26
+ /* a literal value */
27
+ .lit {
28
+ color: #f5871f; }
29
+
30
+ /* punctuation */
31
+ .pun {
32
+ color: #4d4d4c; }
33
+
34
+ /* lisp open bracket */
35
+ .opn {
36
+ color: #4d4d4c; }
37
+
38
+ /* lisp close bracket */
39
+ .clo {
40
+ color: #4d4d4c; }
41
+
42
+ /* a markup tag name */
43
+ .tag {
44
+ color: #c82829; }
45
+
46
+ /* a markup attribute name */
47
+ .atn {
48
+ color: #f5871f; }
49
+
50
+ /* a markup attribute value */
51
+ .atv {
52
+ color: #3e999f; }
53
+
54
+ /* a declaration */
55
+ .dec {
56
+ color: #f5871f; }
57
+
58
+ /* a variable name */
59
+ .var {
60
+ color: #c82829; }
61
+
62
+ /* a function name */
63
+ .fun {
64
+ color: #4271ae; } }
65
+ /* Use higher contrast and text-weight for printable form. */
66
+ @media print, projection {
67
+ .str {
68
+ color: #060; }
69
+
70
+ .kwd {
71
+ color: #006;
72
+ font-weight: bold; }
73
+
74
+ .com {
75
+ color: #600;
76
+ font-style: italic; }
77
+
78
+ .typ {
79
+ color: #404;
80
+ font-weight: bold; }
81
+
82
+ .lit {
83
+ color: #044; }
84
+
85
+ .pun, .opn, .clo {
86
+ color: #440; }
87
+
88
+ .tag {
89
+ color: #006;
90
+ font-weight: bold; }
91
+
92
+ .atn {
93
+ color: #404; }
94
+
95
+ .atv {
96
+ color: #060; } }
97
+ /* Style */
98
+ /*
99
+ pre.prettyprint {
100
+ background: white;
101
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
102
+ font-size: 12px;
103
+ line-height: 1.5;
104
+ border: 1px solid #ccc;
105
+ padding: 10px; }
106
+ */
107
+
108
+ /* Specify class=linenums on a pre to get line numbering */
109
+ ol.linenums {
110
+ margin-top: 0;
111
+ margin-bottom: 0; }
112
+
113
+ /* IE indents via margin-left */
114
+ li.L0,
115
+ li.L1,
116
+ li.L2,
117
+ li.L3,
118
+ li.L4,
119
+ li.L5,
120
+ li.L6,
121
+ li.L7,
122
+ li.L8,
123
+ li.L9 {
124
+ /* */ }
125
+
126
+ /* Alternate shading for lines */
127
+ li.L1,
128
+ li.L3,
129
+ li.L5,
130
+ li.L7,
131
+ li.L9 {
132
+ /* */ }
@@ -0,0 +1,485 @@
1
+ body {
2
+ font-size: 12px;
3
+ font-family: Helvetica Neue, Helvetica, Arial, Malgun gothic, '돋움', AppleSDGothicNeo;
4
+ }
5
+ ul, ol, li {list-style:none; padding-left:0; margin-left:0;}
6
+
7
+ /* Navigation - LNB */
8
+ .lnb {
9
+ width: 290px;
10
+ position: absolute;
11
+ bottom: 30px;
12
+ top: 0;
13
+ overflow: auto;
14
+ left: 0;
15
+ background-color: #161b1d;
16
+ padding: 0 20px;
17
+ }
18
+ .lnb .logo {
19
+ height: 13px;
20
+ margin: 20px auto 0;
21
+ }
22
+ .lnb .title {
23
+ text-align: center;
24
+ padding: 0 0 15px;
25
+ }
26
+ .lnb .title .link {
27
+ color: #fff;
28
+ font-style: italic;
29
+ }
30
+ .lnb h3 {
31
+ font-size: 1.5em;
32
+ color: #fa3282;
33
+ }
34
+ .lnb h3 a {
35
+ color: #fa3282;
36
+ }
37
+ .lnb h3 a:hover {
38
+ color: #9a3282;
39
+ }
40
+ .lnb .lnb-api li,
41
+ .lnb .lnb-examples li {
42
+ padding-top: 5px;
43
+ padding-bottom: 5px;
44
+ border-bottom: 1px solid #1f292e;
45
+ }
46
+ .lnb .lnb-api h3 a {
47
+ color: #fa3282;
48
+ }
49
+ .lnb .lnb-api h3 a:hover {
50
+ color: #fa3282;
51
+ text-decoration: underline;
52
+ }
53
+ .lnb .lnb-api a,
54
+ .lnb .lnb-examples a {
55
+ color: #7cafc2;
56
+ }
57
+ .lnb .lnb-api a:hover,
58
+ .lnb .lnb-examples a:hover {
59
+ color: #a3cfdf;
60
+ }
61
+ .lnb .lnb-api .toggle-subnav {
62
+ padding: 0 3px;
63
+ margin-bottom: 0;
64
+ }
65
+ .lnb .lnb-api .toggle-subnav:focus {
66
+ outline: 0;
67
+ }
68
+ .lnb .lnb-api .toggle-subnav {
69
+ font-size: 10px;
70
+ }
71
+ .lnb .member-type {
72
+ margin-top: 5px;
73
+ margin-left: 5px;
74
+ color: #568c3b;
75
+ font-weight: normal;
76
+ font-size: 10px;
77
+ cursor: text;
78
+ }
79
+ .lnb .inner li {
80
+ margin-left: 15px;
81
+ border-bottom: 0;
82
+ padding-top: 0;
83
+ padding-bottom: 0;
84
+ color: #bbb;
85
+ }
86
+ .lnb .inner a {
87
+ color: #bbb;
88
+ }
89
+ .lnb .inner a:hover {
90
+ color: #eee;
91
+ }
92
+
93
+ .lnb .version {
94
+ color: #aaa;
95
+ font-size: 1.2em;
96
+ }
97
+
98
+ /* LNB-TAB */
99
+ .lnb-tab {
100
+ text-align: center;
101
+ text-decoration: none;
102
+ }
103
+ .lnb-tab li {
104
+ display: inline-block;
105
+ padding-top: 15px;
106
+ }
107
+ .lnb-tab li a {
108
+ color: #aaa;
109
+ font-size: 0.9em;
110
+ }
111
+ .lnb-tab li.selected a {
112
+ color: #fff;
113
+ font-size: 1em;
114
+ }
115
+ .lnb-tab li+li a h4:before {
116
+ content: "\007C";
117
+ display: inline-block;
118
+ color: #999;
119
+ padding: 0 10px;
120
+ }
121
+
122
+ /* MAIN-CONTENT */
123
+ .main {
124
+ padding: 20px;
125
+ left: 297px;
126
+ right: 0;
127
+ top: 0;
128
+ bottom: 0;
129
+ position: absolute;
130
+ overflow: auto;
131
+ margin-bottom: 35px;
132
+ }
133
+ .main article ol,
134
+ .main article ul {
135
+ margin-left: 15px;
136
+ }
137
+ .main section header {
138
+ padding-top: 0;
139
+ border-bottom: 1px solid #999;
140
+ }
141
+ .main section header h2 {
142
+ font-size:18px;
143
+ font-weight:bold;
144
+ padding-left : 5px;
145
+ border-left: 5px solid #dc9656;
146
+ }
147
+ .main section article {
148
+ padding: 10px;
149
+ }
150
+ .main section article .container-overview {
151
+ padding: 15px 15px 0 15px;
152
+ border: 1px solid #dedede;
153
+ border-radius: 7px;
154
+ }
155
+ .main section article h3.subsection-title {
156
+ font-size:16px;
157
+ color: #fa3282;
158
+ padding:35px 0 0 5px;
159
+ border-bottom: 1px solid #dedede;
160
+ }
161
+ .main section article dl h4 {
162
+ font-size: 12px;
163
+ font-weight: bold;
164
+ }
165
+ .main section article dl h4 .signature {
166
+ font-size: 9pt;
167
+ }
168
+ .main section article dl h4 .type-signature {
169
+ font-size: 9pt;
170
+ color: #31708f;
171
+ font-weight: normal;
172
+ }
173
+ .main section article dl dt .name {
174
+ padding: 3px 10px;
175
+ background-color: #f4f7f8;
176
+ }
177
+ .main section article dl dd {
178
+ padding: 0 30px;
179
+ }
180
+ .main section article dl dd h5{
181
+ font-weight: bold;
182
+ }
183
+ .main section article .container-source {
184
+ margin: -15px -15px 3px 0;
185
+ font-weight: normal;
186
+ font-size: 8pt;
187
+ text-align: right;
188
+ padding-right: 10px;
189
+ }
190
+ .main section article .container-returns {
191
+ margin-bottom: 7px;
192
+ }
193
+ .main section article .container-returns span,
194
+ .main section article .container-params table {
195
+ border-left: 3px solid #eee;
196
+ margin-left: 7px;
197
+ padding-left: 3px;
198
+ margin-bottom: 5px;
199
+ }
200
+ .main section article .container-returns p {
201
+ display: inline;
202
+ }
203
+ .main section article .container-properties h5,
204
+ .main section article .container-returns h5,
205
+ .main section article .container-params h5,
206
+ .main section article table th,
207
+ .main section article table td.type,
208
+ .main section article table td.attributes {
209
+ font-family: Verdana, sans-serif;
210
+ font-size: 90%;
211
+ }
212
+ .main section article table,
213
+ .main section article table th,
214
+ .main section article table td {
215
+ font-family: Verdana, sans-serif;
216
+ vertical-align: top;
217
+ border: 0;
218
+ padding: 1px 3px;
219
+ }
220
+ .main section article table td.name,
221
+ .main section article table td.type,
222
+ .main section article table td.attributes,
223
+ .main section article table td.default {
224
+ max-width: 100px;
225
+ min-width: 80px;
226
+ word-break: break-all;
227
+ }
228
+ .main section article table td.type,
229
+ .main section article table td.attributes {
230
+ color: #aaa;
231
+ }
232
+ .main section article table td p {
233
+ padding: 0;
234
+ margin: 0;
235
+ }
236
+ .main section article table td h6 {
237
+ padding: 0 0 0 3px;
238
+ margin: 3px 0 0 3px;
239
+ font-size: 85%;
240
+ }
241
+ .main section article .container-properties table.props {
242
+ margin-top: -3px;
243
+ }
244
+ .main .main-content article {
245
+ padding:0;
246
+ }
247
+ .main .container-overview,
248
+ .main .main-datail {
249
+ overflow: hidden;
250
+ }
251
+ .main .main-detail .tag-source {
252
+ float:left;
253
+ display:none;
254
+ }
255
+ .main .main-detail .tag-author {
256
+ float:left;
257
+ }
258
+ .main .main-detail .tag-author a {
259
+ color:#181818;
260
+ font-size:11px;
261
+ text-decoration:none;
262
+ }
263
+ .linenums li.selected {
264
+ background: #faebd7;
265
+ }
266
+ .iinenums .number {
267
+ color: #777;
268
+ display: inline-block;
269
+ width: 40px;
270
+ }
271
+
272
+ /* FOOTER */
273
+ footer {
274
+ padding-top: 3px;
275
+ line-height: 35px;
276
+ height: 35px;
277
+ position: fixed;
278
+ width: 100%;
279
+ bottom: 0;
280
+ background-color: #00beaa;
281
+ color: #ebf8ff;
282
+ text-align: center;
283
+ }
284
+
285
+ /* README*/
286
+ .readme {
287
+ font-size: 14px;
288
+ }
289
+ .readme p,
290
+ .readme ul,
291
+ .readme ol {
292
+ padding: 3px 0 3px 5px;
293
+ }
294
+ .readme li {
295
+ list-style: initial;
296
+ }
297
+ .readme img {
298
+ max-width: 100%;
299
+ }
300
+ .readme h1 {
301
+ font-size:24px;
302
+ font-weight:normal;
303
+ padding: 10px 0 5px 0;
304
+ border-bottom: 1px solid #428bca;
305
+ }
306
+ .readme pre {
307
+ margin: 15px 3px;
308
+ }
309
+ .readme li p {
310
+ padding: 10px 0;
311
+ color: #333;
312
+ }
313
+ .readme p a {
314
+ color:#c7254e;
315
+ }
316
+ .readme h2 {
317
+ padding-bottom: 3px;
318
+ border-bottom: 1px solid #dedede;
319
+ font-size: 22px;
320
+ }
321
+ .readme h3 {
322
+ font-size: 20px;
323
+ padding-bottom: 3px;
324
+ }
325
+
326
+ .readme h4 {
327
+ font-size: 18px;
328
+ }
329
+ .readme h5 {
330
+ font-size: 16px;
331
+ }
332
+ .readme h6 {
333
+ font-size: 15px;
334
+ }
335
+ .readme table {
336
+ margin: 5px 30px 20px;
337
+ }
338
+ .readme table th,
339
+ .readme table td {
340
+ padding: 2px 20px 2px 5px;
341
+ border-bottom: 1px solid #dedede;
342
+ }
343
+ .readme section header h2 {
344
+ font-size:20px;
345
+ padding-left:10px;
346
+ border-left:5px solid #fa3282;
347
+ }
348
+ .readme section .container-overview {
349
+ color:#333;
350
+ border-radius: 2px;
351
+ border:1px solid #dedede;
352
+ padding:15px 15px 10px;
353
+ }
354
+ .readme section .container-overview .description {
355
+ color:#666;
356
+ }
357
+ .readme section .container-overview dt {float:left; }
358
+ .readme section .container-overview dd {float:left; margin-left:10px; }
359
+ .readme blockquote {
360
+ padding: inherit;
361
+ margin: inherit;
362
+ font-size: inherit;
363
+ color: #777;
364
+ }
365
+
366
+ /* Search box */
367
+ .search-container {
368
+ position: relative;
369
+ padding-bottom: 10px;
370
+ }
371
+ .search-container input {
372
+ padding: 7px;
373
+ width: 100%;
374
+ color: #aaa;
375
+ border: 1px solid #585858;
376
+ background-color: #373737;
377
+ border-radius: 2px;
378
+ }
379
+ .search-container a {
380
+ color: #fff;
381
+ }
382
+ .search-container strong {
383
+ color: pink;
384
+ font-weight: normal;
385
+ }
386
+ .search-container ul {
387
+ font-size: 13px;
388
+ position: absolute;
389
+ width: 100%;
390
+ background-color: #456e82;
391
+ border: 1px solid #1f292e;
392
+ border-radius: 0 0 2px 2px;
393
+ opacity: 0.9;
394
+ filter: alpha(opacity=90);
395
+ }
396
+ .search-container ul li {
397
+ text-align: left;
398
+ width: 100%;
399
+ padding: 4px 0 4px 7px;
400
+ overflow: hidden;
401
+ border: 0;
402
+ cursor: pointer;
403
+ }
404
+ .search-container ul li:hover,
405
+ .search-container ul li.highlight{
406
+ background-color: #fff;
407
+ }
408
+ .search-container ul li:hover a,
409
+ .search-container ul li.highlight a {
410
+ color: #1f292e;
411
+ text-decoration: underline;
412
+ }
413
+ .search-container ul li:hover strong,
414
+ .search-container ul li.highlight strong {
415
+ color: #ff4141;
416
+ }
417
+ .search-container ul li .group {
418
+ font-size: 11px;
419
+ color: #ccc;
420
+ margin-left: 10px;
421
+ }
422
+ .search-container ul li:hover .group,
423
+ .search-container ul li.highlight .group {
424
+ color: #777;
425
+ }
426
+
427
+ /* ETC */
428
+ .logo {
429
+ width: 90px;
430
+ vertical-align: initial;
431
+ }
432
+ .hidden {
433
+ display: none;
434
+ }
435
+ .footer-text {
436
+ padding-left: 3px;
437
+ display: inline-block;
438
+ }
439
+ #example-nav {
440
+ margin-top: 15px;
441
+ }
442
+ #resizer {
443
+ width: 7px;
444
+ position: fixed;
445
+ left: 290px;
446
+ height: 100%;
447
+ background-color: #00beaa;
448
+ cursor: col-resize;
449
+ }
450
+ span.param-type {
451
+ color: #aaa;
452
+ }
453
+ pre.prettyprint {
454
+ font-size: 0.9em;
455
+ border-radius: 0;
456
+ }
457
+ span.icon {
458
+ font-size: 8pt;
459
+ border-radius: 3px;
460
+ padding: 1px 2px;
461
+ }
462
+ span.icon.green {
463
+ color: #3c763d;
464
+ background-color: #dff0d8;
465
+ border-color: #d6e9c6;
466
+ }
467
+ span.icon.blue {
468
+ color: #31708f;
469
+ background-color: #d9edf7;
470
+ border-color: #bce8f1;
471
+ }
472
+ span.icon.yellow {
473
+ color: #8a6d3b;
474
+ background-color: #fcf8e3;
475
+ border-color: #faebcc;
476
+ }
477
+ span.icon.red {
478
+ color: #A94443;
479
+ background-color: #f2dede;
480
+ border-color: #ebccd1;
481
+ }
482
+ span.arrow {
483
+ font-size: 8pt;
484
+ padding-right: 5px;
485
+ }
package/docs/conf.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "sourceType": "script",
3
+ "templates": {
4
+ "referenceTitle": "Situm Cordova Plugin",
5
+ "disableSort": false,
6
+ "name": "Situm",
7
+ "footerText": "COPYRIGHT © SITUM TECHNOLOGIES 2014 - 2018",
8
+ "logo": {
9
+ "url": "https://situm.com/wp-content/uploads/2023/04/situm_logo_blanco_300_sq.png",
10
+ "width": "90px",
11
+ "height": "90px",
12
+ "link": "https://github.com/situmtech/situm-cordova-plugin"
13
+ },
14
+ "default": {
15
+ "staticFiles": {
16
+ "include": ["docs/static/"]
17
+ }
18
+ },
19
+ "css": [
20
+ "styles/custom.css"
21
+ ]
22
+ },
23
+ "opts": {
24
+ "destination": "docs/JSDoc",
25
+ "encoding": "utf8",
26
+ "template": "node_modules/tui-jsdoc-template"
27
+ }
28
+ }