@vcmap/ui 5.0.0-rc.10

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 (556) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +182 -0
  3. package/build/.eslintrc +6 -0
  4. package/build/build.js +162 -0
  5. package/build/buildCesium.js +19 -0
  6. package/build/buildHelpers.js +212 -0
  7. package/build/buildPreview.js +23 -0
  8. package/build/commonViteConfig.js +39 -0
  9. package/build/determineHost.js +46 -0
  10. package/build/generateOLLib.js +196 -0
  11. package/build/getPluginProxies.js +29 -0
  12. package/build/info/api-plugin.js +11 -0
  13. package/build/info/conf.json +21 -0
  14. package/build/info/define-plugin.js +31 -0
  15. package/build/info/package.json +3 -0
  16. package/build/info/publish.js +190 -0
  17. package/build/info/virtual-plugin.js +15 -0
  18. package/build/staging/Dockerfile +2 -0
  19. package/config/aerowest.config.json +388 -0
  20. package/config/base.config.json +991 -0
  21. package/config/berlin.config.json +510 -0
  22. package/config/dev.config.json +44 -0
  23. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
  24. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
  25. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
  26. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
  27. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
  28. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
  29. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
  30. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
  31. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
  32. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
  33. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
  34. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
  35. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
  36. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
  37. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
  38. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
  39. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
  40. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
  41. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
  42. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
  43. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
  44. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
  45. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
  46. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
  47. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
  48. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
  49. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
  50. package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
  51. package/dist/assets/cesium/Assets/Images/bing_maps_credit.png +0 -0
  52. package/dist/assets/cesium/Assets/Images/cesium_credit.png +0 -0
  53. package/dist/assets/cesium/Assets/Images/google_earth_credit.png +0 -0
  54. package/dist/assets/cesium/Assets/Images/ion-credit.png +0 -0
  55. package/dist/assets/cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  56. package/dist/assets/cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  57. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  58. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  59. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  60. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  61. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  62. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  63. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  64. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  65. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  66. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  67. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  68. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  69. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  70. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  71. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  72. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  73. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  74. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  75. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  76. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  77. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  78. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  79. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  80. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  81. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  82. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  83. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  84. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  85. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  86. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  87. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  88. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  89. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  90. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  91. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  92. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  93. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  94. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  95. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  96. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  97. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  98. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  99. package/dist/assets/cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
  100. package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  101. package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  102. package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  103. package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  104. package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  105. package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  106. package/dist/assets/cesium/Assets/Textures/maki/airfield.png +0 -0
  107. package/dist/assets/cesium/Assets/Textures/maki/airport.png +0 -0
  108. package/dist/assets/cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
  109. package/dist/assets/cesium/Assets/Textures/maki/america-football.png +0 -0
  110. package/dist/assets/cesium/Assets/Textures/maki/art-gallery.png +0 -0
  111. package/dist/assets/cesium/Assets/Textures/maki/bakery.png +0 -0
  112. package/dist/assets/cesium/Assets/Textures/maki/bank.png +0 -0
  113. package/dist/assets/cesium/Assets/Textures/maki/bar.png +0 -0
  114. package/dist/assets/cesium/Assets/Textures/maki/baseball.png +0 -0
  115. package/dist/assets/cesium/Assets/Textures/maki/basketball.png +0 -0
  116. package/dist/assets/cesium/Assets/Textures/maki/beer.png +0 -0
  117. package/dist/assets/cesium/Assets/Textures/maki/bicycle.png +0 -0
  118. package/dist/assets/cesium/Assets/Textures/maki/building.png +0 -0
  119. package/dist/assets/cesium/Assets/Textures/maki/bus.png +0 -0
  120. package/dist/assets/cesium/Assets/Textures/maki/cafe.png +0 -0
  121. package/dist/assets/cesium/Assets/Textures/maki/camera.png +0 -0
  122. package/dist/assets/cesium/Assets/Textures/maki/campsite.png +0 -0
  123. package/dist/assets/cesium/Assets/Textures/maki/car.png +0 -0
  124. package/dist/assets/cesium/Assets/Textures/maki/cemetery.png +0 -0
  125. package/dist/assets/cesium/Assets/Textures/maki/cesium.png +0 -0
  126. package/dist/assets/cesium/Assets/Textures/maki/chemist.png +0 -0
  127. package/dist/assets/cesium/Assets/Textures/maki/cinema.png +0 -0
  128. package/dist/assets/cesium/Assets/Textures/maki/circle-stroked.png +0 -0
  129. package/dist/assets/cesium/Assets/Textures/maki/circle.png +0 -0
  130. package/dist/assets/cesium/Assets/Textures/maki/city.png +0 -0
  131. package/dist/assets/cesium/Assets/Textures/maki/clothing-store.png +0 -0
  132. package/dist/assets/cesium/Assets/Textures/maki/college.png +0 -0
  133. package/dist/assets/cesium/Assets/Textures/maki/commercial.png +0 -0
  134. package/dist/assets/cesium/Assets/Textures/maki/cricket.png +0 -0
  135. package/dist/assets/cesium/Assets/Textures/maki/cross.png +0 -0
  136. package/dist/assets/cesium/Assets/Textures/maki/dam.png +0 -0
  137. package/dist/assets/cesium/Assets/Textures/maki/danger.png +0 -0
  138. package/dist/assets/cesium/Assets/Textures/maki/disability.png +0 -0
  139. package/dist/assets/cesium/Assets/Textures/maki/dog-park.png +0 -0
  140. package/dist/assets/cesium/Assets/Textures/maki/embassy.png +0 -0
  141. package/dist/assets/cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
  142. package/dist/assets/cesium/Assets/Textures/maki/entrance.png +0 -0
  143. package/dist/assets/cesium/Assets/Textures/maki/farm.png +0 -0
  144. package/dist/assets/cesium/Assets/Textures/maki/fast-food.png +0 -0
  145. package/dist/assets/cesium/Assets/Textures/maki/ferry.png +0 -0
  146. package/dist/assets/cesium/Assets/Textures/maki/fire-station.png +0 -0
  147. package/dist/assets/cesium/Assets/Textures/maki/fuel.png +0 -0
  148. package/dist/assets/cesium/Assets/Textures/maki/garden.png +0 -0
  149. package/dist/assets/cesium/Assets/Textures/maki/gift.png +0 -0
  150. package/dist/assets/cesium/Assets/Textures/maki/golf.png +0 -0
  151. package/dist/assets/cesium/Assets/Textures/maki/grocery.png +0 -0
  152. package/dist/assets/cesium/Assets/Textures/maki/hairdresser.png +0 -0
  153. package/dist/assets/cesium/Assets/Textures/maki/harbor.png +0 -0
  154. package/dist/assets/cesium/Assets/Textures/maki/heart.png +0 -0
  155. package/dist/assets/cesium/Assets/Textures/maki/heliport.png +0 -0
  156. package/dist/assets/cesium/Assets/Textures/maki/hospital.png +0 -0
  157. package/dist/assets/cesium/Assets/Textures/maki/ice-cream.png +0 -0
  158. package/dist/assets/cesium/Assets/Textures/maki/industrial.png +0 -0
  159. package/dist/assets/cesium/Assets/Textures/maki/land-use.png +0 -0
  160. package/dist/assets/cesium/Assets/Textures/maki/laundry.png +0 -0
  161. package/dist/assets/cesium/Assets/Textures/maki/library.png +0 -0
  162. package/dist/assets/cesium/Assets/Textures/maki/lighthouse.png +0 -0
  163. package/dist/assets/cesium/Assets/Textures/maki/lodging.png +0 -0
  164. package/dist/assets/cesium/Assets/Textures/maki/logging.png +0 -0
  165. package/dist/assets/cesium/Assets/Textures/maki/london-underground.png +0 -0
  166. package/dist/assets/cesium/Assets/Textures/maki/marker-stroked.png +0 -0
  167. package/dist/assets/cesium/Assets/Textures/maki/marker.png +0 -0
  168. package/dist/assets/cesium/Assets/Textures/maki/minefield.png +0 -0
  169. package/dist/assets/cesium/Assets/Textures/maki/mobilephone.png +0 -0
  170. package/dist/assets/cesium/Assets/Textures/maki/monument.png +0 -0
  171. package/dist/assets/cesium/Assets/Textures/maki/museum.png +0 -0
  172. package/dist/assets/cesium/Assets/Textures/maki/music.png +0 -0
  173. package/dist/assets/cesium/Assets/Textures/maki/oil-well.png +0 -0
  174. package/dist/assets/cesium/Assets/Textures/maki/park.png +0 -0
  175. package/dist/assets/cesium/Assets/Textures/maki/park2.png +0 -0
  176. package/dist/assets/cesium/Assets/Textures/maki/parking-garage.png +0 -0
  177. package/dist/assets/cesium/Assets/Textures/maki/parking.png +0 -0
  178. package/dist/assets/cesium/Assets/Textures/maki/pharmacy.png +0 -0
  179. package/dist/assets/cesium/Assets/Textures/maki/pitch.png +0 -0
  180. package/dist/assets/cesium/Assets/Textures/maki/place-of-worship.png +0 -0
  181. package/dist/assets/cesium/Assets/Textures/maki/playground.png +0 -0
  182. package/dist/assets/cesium/Assets/Textures/maki/police.png +0 -0
  183. package/dist/assets/cesium/Assets/Textures/maki/polling-place.png +0 -0
  184. package/dist/assets/cesium/Assets/Textures/maki/post.png +0 -0
  185. package/dist/assets/cesium/Assets/Textures/maki/prison.png +0 -0
  186. package/dist/assets/cesium/Assets/Textures/maki/rail-above.png +0 -0
  187. package/dist/assets/cesium/Assets/Textures/maki/rail-light.png +0 -0
  188. package/dist/assets/cesium/Assets/Textures/maki/rail-metro.png +0 -0
  189. package/dist/assets/cesium/Assets/Textures/maki/rail-underground.png +0 -0
  190. package/dist/assets/cesium/Assets/Textures/maki/rail.png +0 -0
  191. package/dist/assets/cesium/Assets/Textures/maki/religious-christian.png +0 -0
  192. package/dist/assets/cesium/Assets/Textures/maki/religious-jewish.png +0 -0
  193. package/dist/assets/cesium/Assets/Textures/maki/religious-muslim.png +0 -0
  194. package/dist/assets/cesium/Assets/Textures/maki/restaurant.png +0 -0
  195. package/dist/assets/cesium/Assets/Textures/maki/roadblock.png +0 -0
  196. package/dist/assets/cesium/Assets/Textures/maki/rocket.png +0 -0
  197. package/dist/assets/cesium/Assets/Textures/maki/school.png +0 -0
  198. package/dist/assets/cesium/Assets/Textures/maki/scooter.png +0 -0
  199. package/dist/assets/cesium/Assets/Textures/maki/shop.png +0 -0
  200. package/dist/assets/cesium/Assets/Textures/maki/skiing.png +0 -0
  201. package/dist/assets/cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
  202. package/dist/assets/cesium/Assets/Textures/maki/soccer.png +0 -0
  203. package/dist/assets/cesium/Assets/Textures/maki/square-stroked.png +0 -0
  204. package/dist/assets/cesium/Assets/Textures/maki/square.png +0 -0
  205. package/dist/assets/cesium/Assets/Textures/maki/star-stroked.png +0 -0
  206. package/dist/assets/cesium/Assets/Textures/maki/star.png +0 -0
  207. package/dist/assets/cesium/Assets/Textures/maki/suitcase.png +0 -0
  208. package/dist/assets/cesium/Assets/Textures/maki/swimming.png +0 -0
  209. package/dist/assets/cesium/Assets/Textures/maki/telephone.png +0 -0
  210. package/dist/assets/cesium/Assets/Textures/maki/tennis.png +0 -0
  211. package/dist/assets/cesium/Assets/Textures/maki/theatre.png +0 -0
  212. package/dist/assets/cesium/Assets/Textures/maki/toilets.png +0 -0
  213. package/dist/assets/cesium/Assets/Textures/maki/town-hall.png +0 -0
  214. package/dist/assets/cesium/Assets/Textures/maki/town.png +0 -0
  215. package/dist/assets/cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
  216. package/dist/assets/cesium/Assets/Textures/maki/triangle.png +0 -0
  217. package/dist/assets/cesium/Assets/Textures/maki/village.png +0 -0
  218. package/dist/assets/cesium/Assets/Textures/maki/warehouse.png +0 -0
  219. package/dist/assets/cesium/Assets/Textures/maki/waste-basket.png +0 -0
  220. package/dist/assets/cesium/Assets/Textures/maki/water.png +0 -0
  221. package/dist/assets/cesium/Assets/Textures/maki/wetland.png +0 -0
  222. package/dist/assets/cesium/Assets/Textures/maki/zoo.png +0 -0
  223. package/dist/assets/cesium/Assets/Textures/moonSmall.jpg +0 -0
  224. package/dist/assets/cesium/Assets/Textures/pin.svg +1 -0
  225. package/dist/assets/cesium/Assets/Textures/waterNormals.jpg +0 -0
  226. package/dist/assets/cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
  227. package/dist/assets/cesium/Assets/approximateTerrainHeights.json +1 -0
  228. package/dist/assets/cesium/Workers/ArcType-fc72c06c.js +1 -0
  229. package/dist/assets/cesium/Workers/AttributeCompression-80665726.js +1 -0
  230. package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-a655a4bc.js +1 -0
  231. package/dist/assets/cesium/Workers/BoundingRectangle-c3b79029.js +1 -0
  232. package/dist/assets/cesium/Workers/BoxGeometry-f8f9c981.js +1 -0
  233. package/dist/assets/cesium/Workers/Color-de06a177.js +1 -0
  234. package/dist/assets/cesium/Workers/ComponentDatatype-a15c9a19.js +1 -0
  235. package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-48cdc26d.js +1 -0
  236. package/dist/assets/cesium/Workers/CorridorGeometryLibrary-ddc027d3.js +1 -0
  237. package/dist/assets/cesium/Workers/CylinderGeometry-82a8cbe6.js +1 -0
  238. package/dist/assets/cesium/Workers/CylinderGeometryLibrary-76cda53e.js +1 -0
  239. package/dist/assets/cesium/Workers/EllipseGeometry-32d55454.js +1 -0
  240. package/dist/assets/cesium/Workers/EllipseGeometryLibrary-b2ae188a.js +1 -0
  241. package/dist/assets/cesium/Workers/EllipseOutlineGeometry-f05a5a27.js +1 -0
  242. package/dist/assets/cesium/Workers/EllipsoidGeodesic-19e75e11.js +1 -0
  243. package/dist/assets/cesium/Workers/EllipsoidGeometry-7c99fc81.js +1 -0
  244. package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-21c243df.js +1 -0
  245. package/dist/assets/cesium/Workers/EllipsoidRhumbLine-6145377b.js +1 -0
  246. package/dist/assets/cesium/Workers/EllipsoidTangentPlane-a01286f6.js +1 -0
  247. package/dist/assets/cesium/Workers/EncodedCartesian3-d9f5c4a4.js +1 -0
  248. package/dist/assets/cesium/Workers/FrustumGeometry-17776af8.js +1 -0
  249. package/dist/assets/cesium/Workers/GeometryAttribute-89a520b9.js +1 -0
  250. package/dist/assets/cesium/Workers/GeometryAttributes-32b29525.js +1 -0
  251. package/dist/assets/cesium/Workers/GeometryInstance-4fbf16ba.js +1 -0
  252. package/dist/assets/cesium/Workers/GeometryOffsetAttribute-8c5e10db.js +1 -0
  253. package/dist/assets/cesium/Workers/GeometryPipeline-309fad76.js +1 -0
  254. package/dist/assets/cesium/Workers/IndexDatatype-f1dcdf35.js +1 -0
  255. package/dist/assets/cesium/Workers/IntersectionTests-58aa8f80.js +1 -0
  256. package/dist/assets/cesium/Workers/Matrix2-47e98d76.js +1 -0
  257. package/dist/assets/cesium/Workers/OrientedBoundingBox-fcb5b750.js +1 -0
  258. package/dist/assets/cesium/Workers/Plane-3f01019d.js +1 -0
  259. package/dist/assets/cesium/Workers/PolygonGeometryLibrary-0b29eb16.js +1 -0
  260. package/dist/assets/cesium/Workers/PolygonPipeline-a934c4dd.js +1 -0
  261. package/dist/assets/cesium/Workers/PolylinePipeline-8095c9bc.js +1 -0
  262. package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-67d12fff.js +1 -0
  263. package/dist/assets/cesium/Workers/PrimitivePipeline-980e44c5.js +1 -0
  264. package/dist/assets/cesium/Workers/RectangleGeometryLibrary-621c6de8.js +1 -0
  265. package/dist/assets/cesium/Workers/RuntimeError-8952249c.js +1 -0
  266. package/dist/assets/cesium/Workers/TerrainEncoding-f96552d5.js +1 -0
  267. package/dist/assets/cesium/Workers/Transforms-c8cb8f43.js +39 -0
  268. package/dist/assets/cesium/Workers/VertexFormat-a0b706b0.js +1 -0
  269. package/dist/assets/cesium/Workers/WallGeometryLibrary-c03d8479.js +1 -0
  270. package/dist/assets/cesium/Workers/WebGLConstants-508b9636.js +1 -0
  271. package/dist/assets/cesium/Workers/WebMercatorProjection-79b3214e.js +1 -0
  272. package/dist/assets/cesium/Workers/_commonjsHelpers-3aae1032-26891ab7.js +1 -0
  273. package/dist/assets/cesium/Workers/_rollup_plugin_ignore_empty_module_placeholder-57d574d0.js +1 -0
  274. package/dist/assets/cesium/Workers/arrayRemoveDuplicates-dc2f4046.js +1 -0
  275. package/dist/assets/cesium/Workers/cesiumWorkerBootstrapper.js +6 -0
  276. package/dist/assets/cesium/Workers/combine-3c023bda.js +1 -0
  277. package/dist/assets/cesium/Workers/combineGeometry.js +1 -0
  278. package/dist/assets/cesium/Workers/createBoxGeometry.js +1 -0
  279. package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +1 -0
  280. package/dist/assets/cesium/Workers/createCircleGeometry.js +1 -0
  281. package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +1 -0
  282. package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +1 -0
  283. package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +1 -0
  284. package/dist/assets/cesium/Workers/createCorridorGeometry.js +1 -0
  285. package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +1 -0
  286. package/dist/assets/cesium/Workers/createCylinderGeometry.js +1 -0
  287. package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +1 -0
  288. package/dist/assets/cesium/Workers/createEllipseGeometry.js +1 -0
  289. package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +1 -0
  290. package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +1 -0
  291. package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +1 -0
  292. package/dist/assets/cesium/Workers/createFrustumGeometry.js +1 -0
  293. package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +1 -0
  294. package/dist/assets/cesium/Workers/createGeometry.js +1 -0
  295. package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +1 -0
  296. package/dist/assets/cesium/Workers/createPlaneGeometry.js +1 -0
  297. package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +1 -0
  298. package/dist/assets/cesium/Workers/createPolygonGeometry.js +1 -0
  299. package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +1 -0
  300. package/dist/assets/cesium/Workers/createPolylineGeometry.js +1 -0
  301. package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +1 -0
  302. package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +1 -0
  303. package/dist/assets/cesium/Workers/createRectangleGeometry.js +1 -0
  304. package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +1 -0
  305. package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +1 -0
  306. package/dist/assets/cesium/Workers/createSphereGeometry.js +1 -0
  307. package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +1 -0
  308. package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +1 -0
  309. package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +1 -0
  310. package/dist/assets/cesium/Workers/createVectorTileGeometries.js +1 -0
  311. package/dist/assets/cesium/Workers/createVectorTilePoints.js +1 -0
  312. package/dist/assets/cesium/Workers/createVectorTilePolygons.js +1 -0
  313. package/dist/assets/cesium/Workers/createVectorTilePolylines.js +1 -0
  314. package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -0
  315. package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +3 -0
  316. package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -0
  317. package/dist/assets/cesium/Workers/createWallGeometry.js +1 -0
  318. package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +1 -0
  319. package/dist/assets/cesium/Workers/decodeDraco.js +1 -0
  320. package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +1 -0
  321. package/dist/assets/cesium/Workers/defaultValue-81eec7ed.js +1 -0
  322. package/dist/assets/cesium/Workers/transcodeKTX2.js +1 -0
  323. package/dist/assets/cesium/Workers/transferTypedArrayTest.js +1 -0
  324. package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +1 -0
  325. package/dist/assets/cesium.eb5667.js +9105 -0
  326. package/dist/assets/cesium.js +1 -0
  327. package/dist/assets/core.216494.js +4 -0
  328. package/dist/assets/core.js +1 -0
  329. package/dist/assets/index.4ccd4433.js +1 -0
  330. package/dist/assets/ol.ef03b1.js +311 -0
  331. package/dist/assets/ol.js +1 -0
  332. package/dist/assets/ui.99a1a7.css +1 -0
  333. package/dist/assets/ui.99a1a7.js +70 -0
  334. package/dist/assets/ui.js +1 -0
  335. package/dist/assets/vue-composition-api.c5aca1.js +14 -0
  336. package/dist/assets/vue-composition-api.js +2 -0
  337. package/dist/assets/vue.762edd.js +9 -0
  338. package/dist/assets/vue.js +1 -0
  339. package/dist/assets/vuetify.401a29.css +5 -0
  340. package/dist/assets/vuetify.401a29.js +148 -0
  341. package/dist/assets/vuetify.js +2 -0
  342. package/dist/index.html +82 -0
  343. package/index.js +108 -0
  344. package/lib/cesium.js +1 -0
  345. package/lib/core.js +1 -0
  346. package/lib/ol.js +1 -0
  347. package/lib/olLib.js +844 -0
  348. package/lib/ui.js +1 -0
  349. package/lib/vue-composition-api.js +2 -0
  350. package/lib/vue.js +1 -0
  351. package/lib/vuetify.js +2 -0
  352. package/map.config.json +35 -0
  353. package/package.json +126 -0
  354. package/plugins/@vcmap/pluginExample/config.json +6 -0
  355. package/plugins/@vcmap/pluginExample/index.js +209 -0
  356. package/plugins/@vcmap/pluginExample/package.json +7 -0
  357. package/plugins/@vcmap/pluginExample/pluginExampleComponent.vue +374 -0
  358. package/plugins/@vcmap/pluginExample/validation.js +30 -0
  359. package/plugins/@vcmap/project-selector/ContextsListComponent.vue +62 -0
  360. package/plugins/@vcmap/project-selector/ProjectSelectorComponent.vue +81 -0
  361. package/plugins/@vcmap/project-selector/README.md +29 -0
  362. package/plugins/@vcmap/project-selector/config.json +15 -0
  363. package/plugins/@vcmap/project-selector/de.json +7 -0
  364. package/plugins/@vcmap/project-selector/en.json +7 -0
  365. package/plugins/@vcmap/project-selector/index.js +259 -0
  366. package/plugins/@vcmap/project-selector/package.json +14 -0
  367. package/plugins/@vcmap/theme-changer/README.md +21 -0
  368. package/plugins/@vcmap/theme-changer/ThemeChangerComponent.vue +92 -0
  369. package/plugins/@vcmap/theme-changer/config.json +69 -0
  370. package/plugins/@vcmap/theme-changer/index.js +102 -0
  371. package/plugins/@vcmap/theme-changer/package.json +12 -0
  372. package/plugins/buttonExamples/ButtonExamples.vue +190 -0
  373. package/plugins/buttonExamples/index.js +41 -0
  374. package/plugins/categoryTest/Categories.vue +145 -0
  375. package/plugins/categoryTest/Category.vue +114 -0
  376. package/plugins/categoryTest/ItemEditor.vue +13 -0
  377. package/plugins/categoryTest/index.js +41 -0
  378. package/plugins/example/index.js +75 -0
  379. package/plugins/example/mySuperComponent.vue +127 -0
  380. package/plugins/package.json +5 -0
  381. package/plugins/test/allIconsComponent.vue +34 -0
  382. package/plugins/test/editor.vue +63 -0
  383. package/plugins/test/emptyComponent.vue +13 -0
  384. package/plugins/test/index.js +116 -0
  385. package/plugins/test/myCustomHeader.vue +19 -0
  386. package/plugins/test/toolbox-data.js +129 -0
  387. package/plugins/test/vcsContent.vue +23 -0
  388. package/plugins/test/windowManagerExample.vue +144 -0
  389. package/src/actions/actionHelper.js +262 -0
  390. package/src/actions/stateRefAction.js +59 -0
  391. package/src/actions/styleSelector.vue +90 -0
  392. package/src/application/Navbar.vue +143 -0
  393. package/src/application/VcsApp.vue +202 -0
  394. package/src/application/VcsMap.vue +38 -0
  395. package/src/application/VcsSettings.vue +85 -0
  396. package/src/application/vcsAppWrapper.vue +29 -0
  397. package/src/assets/logo-mobile.svg +9 -0
  398. package/src/assets/logo.svg +26 -0
  399. package/src/components/buttons/VcsActionButtonList.vue +99 -0
  400. package/src/components/buttons/VcsButton.vue +201 -0
  401. package/src/components/form-inputs-controls/VcsCheckbox.vue +74 -0
  402. package/src/components/form-inputs-controls/VcsColorPicker.vue +81 -0
  403. package/src/components/form-inputs-controls/VcsFormSection.vue +46 -0
  404. package/src/components/form-inputs-controls/VcsLabel.vue +38 -0
  405. package/src/components/form-inputs-controls/VcsSelect.vue +97 -0
  406. package/src/components/form-inputs-controls/VcsTextArea.vue +130 -0
  407. package/src/components/form-inputs-controls/VcsTextField.vue +129 -0
  408. package/src/components/form-output/VcsFormattedNumber.vue +103 -0
  409. package/src/components/lists/VcsActionList.vue +100 -0
  410. package/src/components/lists/VcsTreeview.vue +104 -0
  411. package/src/components/lists/VcsTreeviewLeaf.vue +91 -0
  412. package/src/components/lists/VcsTreeviewSearchbar.vue +157 -0
  413. package/src/components/notification/VcsBadge.vue +27 -0
  414. package/src/components/notification/VcsTooltip.vue +154 -0
  415. package/src/components/notification/validation.js +19 -0
  416. package/src/contentTree/LayerTree.vue +39 -0
  417. package/src/contentTree/contentTreeCollection.js +315 -0
  418. package/src/contentTree/contentTreeItem.js +457 -0
  419. package/src/contentTree/groupContentTreeItem.js +67 -0
  420. package/src/contentTree/layerContentTreeItem.js +235 -0
  421. package/src/contentTree/layerGroupContentTreeItem.js +154 -0
  422. package/src/contentTree/nodeContentTreeItem.js +37 -0
  423. package/src/contentTree/obliqueCollectionContentTreeItem.js +155 -0
  424. package/src/contentTree/subContentTreeItem.js +42 -0
  425. package/src/contentTree/vcsObjectContentTreeItem.js +98 -0
  426. package/src/contentTree/viewPointContentTreeItem.js +107 -0
  427. package/src/i18n/de.js +55 -0
  428. package/src/i18n/en.js +55 -0
  429. package/src/i18n/i18nCollection.js +138 -0
  430. package/src/icons/+all.js +359 -0
  431. package/src/icons/2DAreaIcon.vue +21 -0
  432. package/src/icons/2DDistanceIcon.vue +18 -0
  433. package/src/icons/3DAreaIcon.vue +21 -0
  434. package/src/icons/3DDistanceIcon.vue +18 -0
  435. package/src/icons/3DHeightIcon.vue +18 -0
  436. package/src/icons/AngleIcon.vue +8 -0
  437. package/src/icons/AssociationsIcon.vue +34 -0
  438. package/src/icons/AxisIcon.vue +10 -0
  439. package/src/icons/BoundingBoxIcon.vue +15 -0
  440. package/src/icons/CheckboxCheckedIcon.vue +16 -0
  441. package/src/icons/CheckboxIcon.vue +23 -0
  442. package/src/icons/CheckboxIndeterminateIcon.vue +24 -0
  443. package/src/icons/CircleIcon.vue +10 -0
  444. package/src/icons/ColorSwatchIcon.vue +17 -0
  445. package/src/icons/CommentIcon.vue +19 -0
  446. package/src/icons/CompassIcon.vue +8 -0
  447. package/src/icons/ComponentsIcon.vue +7 -0
  448. package/src/icons/ConeIcon.vue +11 -0
  449. package/src/icons/DimensionsHouseIcon.vue +14 -0
  450. package/src/icons/ElevationProfileIcon.vue +111 -0
  451. package/src/icons/ExportAreaIcon.vue +7 -0
  452. package/src/icons/ExportFlightIcon.vue +7 -0
  453. package/src/icons/ExportIcon.vue +8 -0
  454. package/src/icons/ExternalLinkIcon.vue +10 -0
  455. package/src/icons/EyeIcon.vue +7 -0
  456. package/src/icons/FastForwardIcon.vue +7 -0
  457. package/src/icons/FilterIcon.vue +8 -0
  458. package/src/icons/GlobeNatureIcon.vue +14 -0
  459. package/src/icons/HealthCareIndustriesIcon.vue +118 -0
  460. package/src/icons/HelpIcon.vue +7 -0
  461. package/src/icons/HomePointIcon.vue +8 -0
  462. package/src/icons/HospitalsIcon.vue +237 -0
  463. package/src/icons/HouseIcon.vue +25 -0
  464. package/src/icons/ImportIcon.vue +8 -0
  465. package/src/icons/InfoIcon.vue +10 -0
  466. package/src/icons/KebabIcon.vue +36 -0
  467. package/src/icons/LabelIcon.vue +7 -0
  468. package/src/icons/LayersIcon.vue +26 -0
  469. package/src/icons/LegendIcon.vue +65 -0
  470. package/src/icons/LineIcon.vue +7 -0
  471. package/src/icons/LinkIcon.vue +7 -0
  472. package/src/icons/MapIcon.vue +8 -0
  473. package/src/icons/MenuIcon.vue +34 -0
  474. package/src/icons/MinusIcon.vue +8 -0
  475. package/src/icons/ObjectAttributeIcon.vue +18 -0
  476. package/src/icons/ObjectSelectIcon.vue +8 -0
  477. package/src/icons/ObliqueViewIcon.vue +13 -0
  478. package/src/icons/PdfIcon.vue +10 -0
  479. package/src/icons/PedestrianIcon.vue +8 -0
  480. package/src/icons/PenIcon.vue +14 -0
  481. package/src/icons/PlayCircleIcon.vue +10 -0
  482. package/src/icons/PlusIcon.vue +9 -0
  483. package/src/icons/PoiIcon.vue +7 -0
  484. package/src/icons/PointSelectIcon.vue +7 -0
  485. package/src/icons/PolygonIcon.vue +38 -0
  486. package/src/icons/PresentationModeIcon.vue +7 -0
  487. package/src/icons/ProgressIcon.vue +24 -0
  488. package/src/icons/QueryIcon.vue +15 -0
  489. package/src/icons/RectangleIcon.vue +9 -0
  490. package/src/icons/ReturnIcon.vue +7 -0
  491. package/src/icons/RewindIcon.vue +6 -0
  492. package/src/icons/SearchIcon.vue +8 -0
  493. package/src/icons/ShadowIcon.vue +9 -0
  494. package/src/icons/ShapesIcon.vue +28 -0
  495. package/src/icons/ShareIcon.vue +22 -0
  496. package/src/icons/SimpleCircleFilledIcon.vue +15 -0
  497. package/src/icons/SimpleCircleHalfFilledIcon.vue +12 -0
  498. package/src/icons/SimpleCircleOutlinedIcon.vue +15 -0
  499. package/src/icons/SkipNextIcon.vue +7 -0
  500. package/src/icons/SkipPreviousIcon.vue +9 -0
  501. package/src/icons/SplitViewIcon.vue +19 -0
  502. package/src/icons/TextStyleIcon.vue +14 -0
  503. package/src/icons/ThreeDimensionsIcon.vue +7 -0
  504. package/src/icons/ToolsIcon.vue +35 -0
  505. package/src/icons/TouchIcon.vue +8 -0
  506. package/src/icons/TrashCanIcon.vue +7 -0
  507. package/src/icons/TriangleIcon.vue +15 -0
  508. package/src/icons/TwoDimensionsIcon.vue +8 -0
  509. package/src/icons/UploadIcon.vue +14 -0
  510. package/src/icons/VideoRecorderIcon.vue +14 -0
  511. package/src/icons/WalkingIcon.vue +7 -0
  512. package/src/icons/WallIcon.vue +14 -0
  513. package/src/init.js +38 -0
  514. package/src/manager/buttonManager.js +156 -0
  515. package/src/manager/navbarManager.js +81 -0
  516. package/src/manager/toolbox/ToolboxGroupComponent.vue +128 -0
  517. package/src/manager/toolbox/ToolboxManager.vue +157 -0
  518. package/src/manager/toolbox/toolboxManager.js +204 -0
  519. package/src/manager/window/WindowComponent.vue +140 -0
  520. package/src/manager/window/WindowComponentHeader.vue +53 -0
  521. package/src/manager/window/WindowManager.vue +126 -0
  522. package/src/manager/window/windowManager.js +435 -0
  523. package/src/navigation/mapNavCompass.vue +161 -0
  524. package/src/navigation/mapNavigation.vue +207 -0
  525. package/src/navigation/obliqueRotation.vue +48 -0
  526. package/src/navigation/orientationToolsButton.vue +52 -0
  527. package/src/navigation/overviewMap.js +615 -0
  528. package/src/navigation/overviewMapClickedInteraction.js +38 -0
  529. package/src/navigation/tiltSlider.vue +96 -0
  530. package/src/navigation/vcsCompass.vue +144 -0
  531. package/src/navigation/vcsZoomButton.vue +27 -0
  532. package/src/pluginHelper.js +106 -0
  533. package/src/setup.js +11 -0
  534. package/src/styles/_theming.scss +25 -0
  535. package/src/styles/_typography.scss +42 -0
  536. package/src/styles/main.scss +12 -0
  537. package/src/styles/utils/_all.scss +12 -0
  538. package/src/styles/utils/_border.scss +7 -0
  539. package/src/styles/utils/_cursor.scss +15 -0
  540. package/src/styles/utils/_display.scss +3 -0
  541. package/src/styles/utils/_fade-in.scss +8 -0
  542. package/src/styles/utils/_position.scss +38 -0
  543. package/src/styles/utils/_size.scss +79 -0
  544. package/src/styles/utils/_slide-in.scss +26 -0
  545. package/src/styles/utils/_spacing.scss +11 -0
  546. package/src/styles/utils/_text.scss +30 -0
  547. package/src/styles/utils/_transform.scss +11 -0
  548. package/src/styles/utils/_transition.scss +11 -0
  549. package/src/styles/utils/_z-index.scss +15 -0
  550. package/src/styles/variables.scss +70 -0
  551. package/src/styles/vcsFont.scss +5 -0
  552. package/src/styles/vcsGrid.scss +4 -0
  553. package/src/vcsUiApp.js +259 -0
  554. package/src/vuePlugins/i18n.js +69 -0
  555. package/src/vuePlugins/vuetify.js +54 -0
  556. package/start.js +3 -0
@@ -0,0 +1,129 @@
1
+ <template>
2
+ <div
3
+ @mouseover="hover = true"
4
+ @mouseleave="hover = false"
5
+ >
6
+ <VcsTooltip
7
+ :tooltip-position="tooltipPosition"
8
+ :tooltip="errorMessage"
9
+ :value="(hover || focus) && isError"
10
+ color="error"
11
+ :max-width="200"
12
+ >
13
+ <template #activator="{ attrs }">
14
+ <v-text-field
15
+ ref="textFieldRef"
16
+ hide-details
17
+ :dense="isDense"
18
+ :clearable="isClearable"
19
+ @focus="focus = true"
20
+ @blur="focus = neverBlurred = false"
21
+ @input="firstInput = true"
22
+ :outlined="isOutlined"
23
+ v-bind="{...$attrs, ...attrs}"
24
+ v-on="{...$listeners}"
25
+ :height="isDense ? 24 : 32"
26
+ class="ma-0 pb-1 pt-1 primary--placeholder"
27
+ :class="$attrs.color === 'primary' ? 'primary--textfield' : ''"
28
+ />
29
+ </template>
30
+ </VcsTooltip>
31
+ </div>
32
+ </template>
33
+
34
+ <style lang="scss" scoped>
35
+ .primary--placeholder {
36
+ ::v-deep {
37
+ input::placeholder {
38
+ color: var(--v-primary-base);
39
+ font-style: italic;
40
+ opacity: 1;
41
+ }
42
+ }
43
+ }
44
+ .primary--textfield {
45
+ ::v-deep {
46
+ input {
47
+ color: var(--v-primary-base);
48
+ }
49
+ }
50
+ }
51
+ </style>
52
+
53
+ <script>
54
+ import VcsTooltip from '../notification/VcsTooltip.vue';
55
+
56
+ /**
57
+ * @description extends API of {@link https://vuetifyjs.com/en/api/v-text-field/|vuetify v-text-field}.
58
+ * Provides two height options depending on "dense" property:
59
+ * - if dense is set true (default), height is 24 px
60
+ * - if dense is set false, height is 32 px
61
+ * Provides VcsTooltip to
62
+ * - show error messages on focus
63
+ * - show tooltips, if supplied, when hovered over append-icon
64
+ * @vue-prop {('bottom' | 'left' | 'top' | 'right')} [tooltipPosition='right'] - Position of the error tooltip.
65
+ * @vue-computed {boolean} isClearable - Whether textfield is isClearable. Makes sure icon is only shown on focus, hover or error.
66
+ * @vue-computed {boolean} isDense - Whether size of textfield is dense.
67
+ * @vue-computed {boolean} isError - Whether errorBucket is not empty and textfield was focused at least once.
68
+ * @vue-computed {boolean} isOutlined - Textfield is outlined on either hover, focus or error, if not disabled.
69
+ * @vue-computed {Array<string>} joinedErrorBucket - errorBucket + errorMessages of child v-text-field.
70
+ */
71
+ export default {
72
+ name: 'VcsTextField',
73
+ components: {
74
+ VcsTooltip,
75
+ },
76
+ props: {
77
+ tooltipPosition: {
78
+ type: String,
79
+ default: 'right',
80
+ },
81
+ },
82
+ data() {
83
+ return {
84
+ hover: false,
85
+ focus: false,
86
+ firstInput: false,
87
+ neverBlurred: true,
88
+ isMounted: false,
89
+ errorMessage: '',
90
+ };
91
+ },
92
+ computed: {
93
+ isClearable() {
94
+ return (this.$attrs.clearable !== undefined && this.$attrs.clearable !== false) &&
95
+ (this.hover || this.focus || this.isError);
96
+ },
97
+ isDense() {
98
+ return this.$attrs.dense !== undefined && this.$attrs.dense !== false;
99
+ },
100
+ isError() {
101
+ return this.joinedErrorBucket.length > 0 && (this.firstInput || !this.neverBlurred);
102
+ },
103
+ isOutlined() {
104
+ return (this.hover || this.focus || this.isError) && !(this.$attrs.disabled || this.$attrs.disabled === '');
105
+ },
106
+ joinedErrorBucket() {
107
+ if (!this.isMounted) {
108
+ return false;
109
+ } else {
110
+ return this.$refs.textFieldRef.errorBucket.concat(this.$refs.textFieldRef.errorMessages).join('\n');
111
+ }
112
+ },
113
+ },
114
+ watch: {
115
+ joinedErrorBucket(newValue, oldValue) {
116
+ if (oldValue && !newValue) {
117
+ setTimeout(() => {
118
+ this.errorMessage = newValue;
119
+ }, 200);
120
+ } else {
121
+ this.errorMessage = newValue;
122
+ }
123
+ },
124
+ },
125
+ mounted() {
126
+ this.isMounted = true;
127
+ },
128
+ };
129
+ </script>
@@ -0,0 +1,103 @@
1
+ <template>
2
+ <span class="vcs-formatted-number" :class="{'vcs-formatted-number-dense': dense}">
3
+ {{ formatted }}
4
+ <span v-if="unit === SpecialUnits.SQM">
5
+ m<sup>2</sup>
6
+ </span>
7
+ <span v-else-if="unit === SpecialUnits.CBM">
8
+ m<sup>3</sup>
9
+ </span>
10
+ <span v-else-if="unit === SpecialUnits.DEG">
11
+ °
12
+ </span>
13
+ <span v-else>
14
+ {{ unit }}
15
+ </span>
16
+ </span>
17
+ </template>
18
+ <style lang="scss" scoped>
19
+ @import "../../styles/vcsGrid.scss";
20
+ @import "../../styles/vcsFont";
21
+ .vcs-formatted-number {
22
+ font-size: $base-font-size;
23
+ line-height: $line-height-base;
24
+ }
25
+ .vcs-formatted-number-dense {
26
+ line-height: $line-height-dense;
27
+ }
28
+ </style>
29
+ <script>
30
+ import { computed } from '@vue/composition-api';
31
+
32
+ /**
33
+ * Converts a number (e.g. 12345678,9) to a locale-aware and
34
+ * dot-seperated string with given amount of fractional digits (e.g. 12.345.678,90)
35
+ * @param {string|number} value
36
+ * @param {number} fractionDigits
37
+ * @returns {string|number}
38
+ */
39
+ export function numberToLocaleString(value, fractionDigits) { // XXX todo maybe merge with dateTime helpers in core?
40
+ const number = parseInt(value, 10);
41
+ if (Number.isNaN(number)) {
42
+ return number;
43
+ }
44
+
45
+ return (/** @type {number} */ value)
46
+ .toLocaleString(navigator.language, {
47
+ minimumFractionDigits: fractionDigits,
48
+ maximumFractionDigits: fractionDigits,
49
+ });
50
+ }
51
+
52
+ /**
53
+ * Enumeration of units displayed with special symbol
54
+ * @typedef {Object} VcsFormattedNumber.SpecialUnits
55
+ * @enum {string}
56
+ * @property {string} SQM square meters
57
+ * @property {string} CBM cubic meters
58
+ * @property {string} DEG degrees
59
+ * @module VcsFormattedNumber
60
+ */
61
+ export const SpecialUnits = {
62
+ SQM: 'sqm',
63
+ CBM: 'cbm',
64
+ DEG: 'deg',
65
+ };
66
+
67
+ /**
68
+ * @description Formatted number display, optionally with unit
69
+ * @vue-prop {string|SpecialUnits} [unit=undefined]
70
+ * @vue-prop {number} [fractionDigits=undefined]
71
+ * @vue-prop {number} value
72
+ * @vue-prop {boolean} [dense=true] - default line height is 32px (dense). If set false, height is 40px.
73
+ * @vue-computed {string} formatted - value formatted to locale string
74
+ */
75
+ export default {
76
+ name: 'VcsFormattedNumber',
77
+ props: {
78
+ unit: {
79
+ type: [String || SpecialUnits],
80
+ default: undefined,
81
+ },
82
+ fractionDigits: {
83
+ type: Number,
84
+ default: 2,
85
+ },
86
+ value: {
87
+ type: Number,
88
+ default: 0,
89
+ },
90
+ dense: {
91
+ type: Boolean,
92
+ default: true,
93
+ },
94
+ },
95
+ setup(props) {
96
+ const formatted = computed(() => numberToLocaleString(props.value, props.fractionDigits));
97
+ return {
98
+ SpecialUnits,
99
+ formatted,
100
+ };
101
+ },
102
+ };
103
+ </script>
@@ -0,0 +1,100 @@
1
+ <template>
2
+ <v-list
3
+ v-if="actions.length > 0"
4
+ >
5
+ <VcsTooltip
6
+ v-for="(action, index) in actions"
7
+ :key="`${action.name}-${index}`"
8
+ :tooltip="action.title"
9
+ :tooltip-position="tooltipPosition"
10
+ v-bind="{...tooltipProps}"
11
+ >
12
+ <template #activator="{ on, attrs }">
13
+ <v-list-item
14
+ :class="action.active ? 'primary--text' : ''"
15
+ color="primary"
16
+ @click="action.callback($event)"
17
+ v-bind="{...$attrs, ...attrs}"
18
+ v-on="{...$listeners, ...on}"
19
+ >
20
+ <v-list-item-icon v-if="showIcon && action.icon">
21
+ <v-icon v-text="action.icon" small />
22
+ </v-list-item-icon>
23
+ <v-list-item-content
24
+ class="vcs-action-list"
25
+ >
26
+ <v-list-item-title v-text="$t(action.name)" />
27
+ </v-list-item-content>
28
+ </v-list-item>
29
+ </template>
30
+ </VcsTooltip>
31
+ </v-list>
32
+ </template>
33
+ <style lang="scss">
34
+ .vcs-action-list {
35
+ width: 100%;
36
+ &:hover{
37
+ color: var(--v-primary-base);
38
+ }
39
+ }
40
+ </style>
41
+ <script>
42
+ import { is } from '@vcsuite/check';
43
+ import VcsTooltip from '../notification/VcsTooltip.vue';
44
+
45
+ /**
46
+ * @interface VcsAction
47
+ * @property {string} name - reactive and translatable name rendered in overflow
48
+ * @property {string} [title] - reactive and translatable title rendered as tooltip
49
+ * @property {string} [icon] - icon rendered on the button. If no icon provided, item is rendered in overflow
50
+ * @property {Function} callback - callback function is triggered when the button is clicked
51
+ * @property {boolean} [active=false] - optional state of button. If active, button is rendered in primary color
52
+ */
53
+
54
+ /**
55
+ * @param {Array<VcsAction>} actions
56
+ * @returns {boolean}
57
+ */
58
+ export function validateActions(actions) {
59
+ return actions.every(item => is(item, {
60
+ name: String,
61
+ title: [undefined, String],
62
+ icon: [undefined, String],
63
+ callback: Function,
64
+ active: [undefined, Boolean],
65
+ }));
66
+ }
67
+
68
+ /**
69
+ * @description
70
+ * A component rendering a list of actions with overflow mechanic using
71
+ * {@link https://vuetifyjs.com/en/api/v-list-item-group/|vuetify v-list-item-group} and {@link VcsTooltip}.
72
+ * @vue-prop {Array<VcsAction>} actions - Array of actions
73
+ * @vue-prop {('bottom' | 'left' | 'top' | 'right')} tooltipPosition - Position of the tooltip.
74
+ * @vue-prop {Object<string, any>} tooltipProps - Properties to be passed to VcsTooltip {@link https://vuetifyjs.com/en/api/v-tooltip/#props|vuetify v-tooltip}
75
+ * @vue-prop {boolean} [showIcon=false] - Whether list item icons should be displayed.
76
+ */
77
+ export default {
78
+ name: 'VcsActionList',
79
+ components: { VcsTooltip },
80
+ props: {
81
+ actions: {
82
+ type: Array,
83
+ required: true,
84
+ validator: validateActions,
85
+ },
86
+ tooltipPosition: {
87
+ type: String,
88
+ default: 'right',
89
+ },
90
+ tooltipProps: {
91
+ type: Object,
92
+ default: () => ({}),
93
+ },
94
+ showIcon: {
95
+ type: Boolean,
96
+ default: false,
97
+ },
98
+ },
99
+ };
100
+ </script>
@@ -0,0 +1,104 @@
1
+ <template>
2
+ <div class="d-contents">
3
+ <VcsTreeviewSearchbar
4
+ v-if="hasSearchbar"
5
+ :placeholder="searchbarPlaceholder"
6
+ v-model="search"
7
+ />
8
+ <v-treeview
9
+ class="vcs-treeview"
10
+ v-bind="{...$props, ...$attrs}"
11
+ v-on="$listeners"
12
+ expand-icon="mdi-chevron-down"
13
+ item-key="name"
14
+ :search="search"
15
+ :filter="handleFilter"
16
+ :activatable="false"
17
+ >
18
+ <template #label="{ item }">
19
+ <VcsTreeviewLeaf
20
+ :item="item"
21
+ :class="[item.clickable ? 'cursor-pointer' : '']"
22
+ @click.native="item.clickable && item.clicked()"
23
+ />
24
+ </template>
25
+ </v-treeview>
26
+ </div>
27
+ </template>
28
+ <style lang="scss" scoped>
29
+ .vcs-treeview {
30
+ ::v-deep {
31
+ // Root Level Entries should be 40px high
32
+ > .v-treeview-node > .v-treeview-node__root {
33
+ min-height: 40px;
34
+ }
35
+ // Border around root nodes with children included
36
+ > .v-treeview-node {
37
+ border-bottom: 1px solid var(--v-gray-200-base);
38
+ }
39
+ // Only Root Entries have a bold font
40
+ > .v-treeview-node > .v-treeview-node__root > .v-treeview-node__content > .v-treeview-node__label {
41
+ font-weight: 700;
42
+ }
43
+ // remove ripple effect from expand icon
44
+ .v-icon.v-icon {
45
+ &::after{
46
+ background-color: transparent;
47
+ }
48
+ }
49
+ // Toggle Item Chevron with should be 16px
50
+ .v-treeview-node__toggle {
51
+ width: 16px;
52
+ }
53
+ }
54
+ }
55
+ </style>
56
+
57
+ <script>
58
+ import { getCurrentInstance, ref } from '@vue/composition-api';
59
+ import VcsTreeviewLeaf from './VcsTreeviewLeaf.vue';
60
+ import VcsTreeviewSearchbar from './VcsTreeviewSearchbar.vue';
61
+
62
+ /**
63
+ * @description extends API of https://vuetifyjs.com/en/api/v-treeview/
64
+ * Can render dynamic components as leaf items.
65
+ * In order to display an item needs to be registered and added to `availableComponents`.
66
+ * @vue-prop {boolean} [hasSearchbar=false] - Whether there is a searchbar for this treeview
67
+ * @vue-prop {string} [searchbarPlaceholder] - Placeholder text for the searchbar, will be translated
68
+ */
69
+ export default {
70
+ name: 'VcsTreeview',
71
+ components: { VcsTreeviewSearchbar, VcsTreeviewLeaf },
72
+ props: {
73
+ hasSearchbar: {
74
+ type: Boolean,
75
+ default: false,
76
+ },
77
+ searchbarPlaceholder: {
78
+ type: String,
79
+ default: undefined,
80
+ },
81
+ },
82
+ setup() {
83
+ const search = ref('');
84
+ // TODO properly type the tree view item interface & export in index.d.ts
85
+
86
+ const vm = getCurrentInstance().proxy;
87
+ /**
88
+ * @param {{ title: string }} treeNode
89
+ * @param {string} q
90
+ * @returns {boolean}
91
+ */
92
+ const handleFilter = (treeNode, q = '') => {
93
+ const translatedTitle = vm.$t(treeNode.title);
94
+ return translatedTitle.toLocaleLowerCase().includes(q.toLocaleLowerCase());
95
+ };
96
+
97
+ return {
98
+ search,
99
+ handleFilter,
100
+ };
101
+ },
102
+ };
103
+ </script>
104
+
@@ -0,0 +1,91 @@
1
+ <template>
2
+ <div
3
+ class="d-flex flex-row align-center"
4
+ v-if="item"
5
+ >
6
+ <span v-if="item.icon" class="d-flex align-center">
7
+ <v-icon
8
+ v-if="iconType === iconTypes.string"
9
+ v-text="item.icon"
10
+ :size="16"
11
+ class="mr-1"
12
+ />
13
+ <span ref="imgContainer" />
14
+ </span>
15
+
16
+ <div class="position-relative col-8 pa-0 d-flex align-center">
17
+ <span>{{ $t(item.title) }}</span>
18
+ </div>
19
+ <VcsActionButtonList
20
+ v-if="item.actions.length > 0"
21
+ :actions="item.actions"
22
+ :block-overflow="true"
23
+ :overflow-count="3"
24
+ small
25
+ right
26
+ class="col-4 pa-0 d-flex align-center"
27
+ />
28
+ </div>
29
+ </template>
30
+
31
+ <script>
32
+ import
33
+ {
34
+ computed,
35
+ onMounted,
36
+ ref,
37
+ } from '@vue/composition-api';
38
+
39
+ import VcsActionButtonList from '../buttons/VcsActionButtonList.vue';
40
+
41
+
42
+ const iconTypes = {
43
+ image: 'HTMLImageElement',
44
+ canvas: 'HTMLCanvasElement',
45
+ string: 'StringIcon',
46
+ };
47
+
48
+ /**
49
+ * @description
50
+ * Template for a treeview leaf, see: https://vuetifyjs.com/en/api/v-treeview/
51
+ */
52
+ export default {
53
+ components: { VcsActionButtonList },
54
+ props: {
55
+ item: {
56
+ type: Object,
57
+ default: undefined,
58
+ },
59
+ },
60
+ setup(props) {
61
+ const iconType = ref();
62
+ const imgContainer = ref();
63
+
64
+ const leaf = computed(() => props.item.children.length === 0);
65
+
66
+ onMounted(() => { // TODO make icon reactive
67
+ const { icon } = props.item;
68
+ if (icon) {
69
+ if (icon instanceof HTMLImageElement) {
70
+ imgContainer.value.appendChild(icon);
71
+ iconType.value = iconTypes.image;
72
+ }
73
+ if (icon instanceof HTMLCanvasElement) {
74
+ imgContainer.value.appendChild(icon);
75
+ iconType.value = iconTypes.canvas;
76
+ }
77
+ if (typeof icon === 'string') {
78
+ iconType.value = iconTypes.string;
79
+ }
80
+ }
81
+ });
82
+
83
+ return {
84
+ iconTypes,
85
+ iconType,
86
+ imgContainer,
87
+ leaf,
88
+ };
89
+ },
90
+ };
91
+ </script>
@@ -0,0 +1,157 @@
1
+ <template>
2
+ <div class="pa-2 accent position-relative d-flex flex-row justify-space-between align-center">
3
+ <slot name="prepend">
4
+ <v-icon
5
+ class="search-icon my-0 ml-1"
6
+ v-text="'$vcsSearch'"
7
+ slot="prepend"
8
+ size="12"
9
+ />
10
+ </slot>
11
+
12
+ <slot>
13
+ <v-text-field
14
+ solo
15
+ dense
16
+ hide-details
17
+ class="searchbar outlined rounded-xl align-center d-flex justify-center white pa-1 pl-6"
18
+ :placeholder="$t(placeholder)"
19
+ :value="value"
20
+ @input="$event => handleInput($event)"
21
+ clearable
22
+ />
23
+ </slot>
24
+
25
+ <slot name="append">
26
+ <v-icon v-if="hasFilter" v-text="'$vcsFilter'" class="ml-2" size="16" />
27
+ </slot>
28
+ </div>
29
+ </template>
30
+
31
+ <style lang="scss" scoped>
32
+ .input-container {
33
+ position: relative;
34
+ }
35
+
36
+ .search-icon {
37
+ position: absolute;
38
+ top: 50%;
39
+ transform: translateY(-50%);
40
+ left: 12px;
41
+ }
42
+
43
+ input {
44
+ border-radius: 9999rem;
45
+ outline-style: none;
46
+ font-size: 12px;
47
+ box-shadow: 0 0 0 1px #dedede;
48
+
49
+ &:focus {
50
+ box-shadow: 0 0 0 1px var(--v-primary-base);
51
+ }
52
+ }
53
+
54
+ ::v-deep {
55
+ .v-input__slot {
56
+ background-color: transparent !important;
57
+ }
58
+
59
+ .v-input__append-inner {
60
+ height: 20px;
61
+ display: flex;
62
+ justify-content: center;
63
+ align-items: center;
64
+
65
+ .v-icon {
66
+ width: 20px;
67
+ height: 20px;
68
+ font-size: 16px;
69
+ }
70
+ }
71
+
72
+ .v-text-field.v-text-field--solo.v-input--dense > .v-input__control {
73
+ min-height: unset;
74
+ }
75
+
76
+ .v-text-field.v-text-field--enclosed:not(.v-text-field--rounded) > .v-input__control > .v-input__slot,
77
+ .v-text-field.v-text-field--enclosed .v-text-field__details {
78
+ padding-right: 0;
79
+ }
80
+
81
+ .v-input.outlined {
82
+ outline-style: none;
83
+ font-size: 12px;
84
+ box-shadow: 0 0 0 1px #dedede;
85
+
86
+ &:focus,
87
+ &.v-input--is-focused {
88
+ box-shadow: 0 0 0 1px var(--v-primary-base);
89
+ }
90
+ }
91
+
92
+ .v-text-field.v-input--dense:not(.v-text-field--outlined) .v-text-field__prefix,
93
+ .v-text-field.v-input--dense:not(.v-text-field--outlined) .v-text-field__suffix,
94
+ .v-text-field.v-input--dense:not(.v-text-field--outlined) input {
95
+ padding: 0;
96
+ }
97
+
98
+ .v-text-field.v-text-field--solo:not(.v-text-field--solo-flat) > .v-input__control > .v-input__slot {
99
+ box-shadow: none;
100
+ border-radius: 0;
101
+ }
102
+ }
103
+ </style>
104
+
105
+
106
+ <script>
107
+ import { onMounted, onUnmounted } from '@vue/composition-api';
108
+
109
+ import { Subject } from 'rxjs';
110
+ import { debounceTime } from 'rxjs/operators';
111
+
112
+
113
+ /**
114
+ * @description Stylized wrapper around vuetify divider
115
+ * @vue-prop {number} height - Height of the component.
116
+ * @vue-prop {string} [placeholder='search.title'] - Placeholder will be displayed in the search field, and will be translated.
117
+ */
118
+ export default {
119
+ name: 'VcsTreeviewSearchbar',
120
+ props: {
121
+ placeholder: {
122
+ type: String,
123
+ default: 'search.title',
124
+ },
125
+ customClasses: {
126
+ type: Array,
127
+ default: () => ([]),
128
+ },
129
+ value: {
130
+ type: String,
131
+ default: '',
132
+ },
133
+ hasFilter: {
134
+ type: Boolean,
135
+ default: false,
136
+ },
137
+ },
138
+ setup(props, context) {
139
+ const sub = new Subject();
140
+ onMounted(() => {
141
+ sub.pipe(debounceTime(330)).subscribe(
142
+ (value) => {
143
+ context.emit('input', value);
144
+ },
145
+ );
146
+ });
147
+ onUnmounted(() => sub.unsubscribe());
148
+
149
+ return {
150
+ sub,
151
+ handleInput: (val) => {
152
+ sub.next(val);
153
+ },
154
+ };
155
+ },
156
+ };
157
+ </script>