@vcmap/ui 5.0.0-rc.6
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.
- package/LICENSE.md +21 -0
- package/README.md +132 -0
- package/build/.eslintrc +6 -0
- package/build/build.js +165 -0
- package/build/buildCesium.js +19 -0
- package/build/buildHelpers.js +213 -0
- package/build/buildPreview.js +23 -0
- package/build/commonViteConfig.js +39 -0
- package/build/determineHost.js +46 -0
- package/build/generateOLLib.js +196 -0
- package/build/getPluginProxies.js +29 -0
- package/build/info/api-plugin.js +11 -0
- package/build/info/conf.json +21 -0
- package/build/info/define-plugin.js +31 -0
- package/build/info/package.json +3 -0
- package/build/info/publish.js +190 -0
- package/build/info/virtual-plugin.js +15 -0
- package/build/staging/Dockerfile +2 -0
- package/config/aerowest.config.json +378 -0
- package/config/base.config.json +1073 -0
- package/config/berlin.config.json +529 -0
- package/config/dev.config.json +44 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/dist/assets/cesium/Assets/Images/bing_maps_credit.png +0 -0
- package/dist/assets/cesium/Assets/Images/cesium_credit.png +0 -0
- package/dist/assets/cesium/Assets/Images/google_earth_credit.png +0 -0
- package/dist/assets/cesium/Assets/Images/ion-credit.png +0 -0
- package/dist/assets/cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/airfield.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/airport.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/america-football.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bakery.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bank.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bar.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/baseball.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/basketball.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/beer.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bicycle.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/building.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bus.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cafe.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/camera.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/campsite.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/car.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cemetery.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cesium.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/chemist.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cinema.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/circle.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/city.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/college.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/commercial.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cricket.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cross.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/dam.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/danger.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/disability.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/dog-park.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/embassy.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/entrance.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/farm.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/fast-food.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/ferry.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/fire-station.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/fuel.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/garden.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/gift.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/golf.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/grocery.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/harbor.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/heart.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/heliport.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/hospital.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/industrial.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/land-use.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/laundry.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/library.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/lodging.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/logging.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/london-underground.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/marker.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/minefield.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/monument.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/museum.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/music.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/oil-well.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/park.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/park2.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/parking.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/pitch.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/playground.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/police.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/polling-place.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/post.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/prison.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail-above.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail-light.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/restaurant.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/roadblock.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rocket.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/school.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/scooter.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/shop.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/skiing.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/soccer.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/square.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/star.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/suitcase.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/swimming.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/telephone.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/tennis.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/theatre.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/toilets.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/town-hall.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/town.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/triangle.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/village.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/warehouse.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/water.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/wetland.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/zoo.png +0 -0
- package/dist/assets/cesium/Assets/Textures/moonSmall.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/pin.svg +1 -0
- package/dist/assets/cesium/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/assets/cesium/Assets/approximateTerrainHeights.json +1 -0
- package/dist/assets/cesium/Workers/ArcType-fc72c06c.js +1 -0
- package/dist/assets/cesium/Workers/AttributeCompression-27507afe.js +1 -0
- package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-7565c1e8.js +1 -0
- package/dist/assets/cesium/Workers/BoundingRectangle-9d707275.js +1 -0
- package/dist/assets/cesium/Workers/BoxGeometry-fb31d3b5.js +1 -0
- package/dist/assets/cesium/Workers/Color-56bb5728.js +1 -0
- package/dist/assets/cesium/Workers/ComponentDatatype-a15c9a19.js +1 -0
- package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-72143c19.js +1 -0
- package/dist/assets/cesium/Workers/CorridorGeometryLibrary-7bae1712.js +1 -0
- package/dist/assets/cesium/Workers/CylinderGeometry-331891fe.js +1 -0
- package/dist/assets/cesium/Workers/CylinderGeometryLibrary-76cda53e.js +1 -0
- package/dist/assets/cesium/Workers/EllipseGeometry-5e3f67b6.js +1 -0
- package/dist/assets/cesium/Workers/EllipseGeometryLibrary-dbc15162.js +1 -0
- package/dist/assets/cesium/Workers/EllipseOutlineGeometry-21191fce.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidGeodesic-cc3bace8.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidGeometry-8bfa24a9.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-48d9c023.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidRhumbLine-125a8b72.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-678e34e4.js +1 -0
- package/dist/assets/cesium/Workers/EncodedCartesian3-96fdc0ef.js +1 -0
- package/dist/assets/cesium/Workers/FrustumGeometry-9ab86004.js +1 -0
- package/dist/assets/cesium/Workers/GeometryAttribute-3915ea0b.js +1 -0
- package/dist/assets/cesium/Workers/GeometryAttributes-32b29525.js +1 -0
- package/dist/assets/cesium/Workers/GeometryInstance-13e4ff38.js +1 -0
- package/dist/assets/cesium/Workers/GeometryOffsetAttribute-8c5e10db.js +1 -0
- package/dist/assets/cesium/Workers/GeometryPipeline-e0eb4567.js +1 -0
- package/dist/assets/cesium/Workers/IndexDatatype-f1dcdf35.js +1 -0
- package/dist/assets/cesium/Workers/IntersectionTests-ac2459de.js +1 -0
- package/dist/assets/cesium/Workers/Matrix2-37e55508.js +1 -0
- package/dist/assets/cesium/Workers/OrientedBoundingBox-e9c07538.js +1 -0
- package/dist/assets/cesium/Workers/Plane-6ee42cab.js +1 -0
- package/dist/assets/cesium/Workers/PolygonGeometryLibrary-b408c688.js +1 -0
- package/dist/assets/cesium/Workers/PolygonPipeline-7b8e4643.js +1 -0
- package/dist/assets/cesium/Workers/PolylinePipeline-6757400c.js +1 -0
- package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-eb972210.js +1 -0
- package/dist/assets/cesium/Workers/PrimitivePipeline-f244975e.js +1 -0
- package/dist/assets/cesium/Workers/RectangleGeometryLibrary-1bd6152a.js +1 -0
- package/dist/assets/cesium/Workers/RuntimeError-8952249c.js +1 -0
- package/dist/assets/cesium/Workers/TerrainEncoding-5a21a97f.js +1 -0
- package/dist/assets/cesium/Workers/Transforms-eb5c1a84.js +39 -0
- package/dist/assets/cesium/Workers/VertexFormat-a0b706b0.js +1 -0
- package/dist/assets/cesium/Workers/WallGeometryLibrary-a6b6a368.js +1 -0
- package/dist/assets/cesium/Workers/WebGLConstants-508b9636.js +1 -0
- package/dist/assets/cesium/Workers/WebMercatorProjection-2839e524.js +1 -0
- package/dist/assets/cesium/Workers/_commonjsHelpers-3aae1032-26891ab7.js +1 -0
- package/dist/assets/cesium/Workers/_rollup_plugin_ignore_empty_module_placeholder-57d574d0.js +1 -0
- package/dist/assets/cesium/Workers/arrayRemoveDuplicates-dc2f4046.js +1 -0
- package/dist/assets/cesium/Workers/cesiumWorkerBootstrapper.js +6 -0
- package/dist/assets/cesium/Workers/combine-3c023bda.js +1 -0
- package/dist/assets/cesium/Workers/combineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createBoxGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCircleGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createSphereGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +1 -0
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -0
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +3 -0
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -0
- package/dist/assets/cesium/Workers/createWallGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/decodeDraco.js +1 -0
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +1 -0
- package/dist/assets/cesium/Workers/defaultValue-81eec7ed.js +1 -0
- package/dist/assets/cesium/Workers/transcodeKTX2.js +1 -0
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +1 -0
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +1 -0
- package/dist/assets/cesium.fba8ca.js +9118 -0
- package/dist/assets/cesium.js +1 -0
- package/dist/assets/core.d5ed0f.js +4 -0
- package/dist/assets/core.js +1 -0
- package/dist/assets/index.60dea538.css +1 -0
- package/dist/assets/index.6a83278e.js +1 -0
- package/dist/assets/ol.abea3a.js +318 -0
- package/dist/assets/ol.js +1 -0
- package/dist/assets/ui.ad1ec9.css +1 -0
- package/dist/assets/ui.ad1ec9.js +39 -0
- package/dist/assets/ui.js +1 -0
- package/dist/assets/uicomponents.161461.css +1 -0
- package/dist/assets/uicomponents.161461.js +31 -0
- package/dist/assets/uicomponents.js +1 -0
- package/dist/assets/vue-composition-api.7051d7.js +14 -0
- package/dist/assets/vue-composition-api.js +2 -0
- package/dist/assets/vue.9fd7f6.js +9 -0
- package/dist/assets/vue.js +1 -0
- package/dist/assets/vuetify.33dafc.css +5 -0
- package/dist/assets/vuetify.33dafc.js +48 -0
- package/dist/assets/vuetify.js +2 -0
- package/dist/index.html +26 -0
- package/index.js +18 -0
- package/lib/cesium.js +1 -0
- package/lib/core.js +1 -0
- package/lib/ol.js +1 -0
- package/lib/olLib.js +844 -0
- package/lib/ui.js +1 -0
- package/lib/uicomponents.js +1 -0
- package/lib/vue-composition-api.js +2 -0
- package/lib/vue.js +1 -0
- package/lib/vuetify.js +2 -0
- package/map.config.json +35 -0
- package/package.json +130 -0
- package/plugins/@vcmap/pluginExample/config.json +6 -0
- package/plugins/@vcmap/pluginExample/index.js +193 -0
- package/plugins/@vcmap/pluginExample/package.json +7 -0
- package/plugins/@vcmap/pluginExample/pluginExampleComponent.vue +374 -0
- package/plugins/@vcmap/pluginExample/validation.js +30 -0
- package/plugins/@vcmap/project-selector/ContextsListComponent.vue +62 -0
- package/plugins/@vcmap/project-selector/ProjectSelectorComponent.vue +81 -0
- package/plugins/@vcmap/project-selector/README.md +29 -0
- package/plugins/@vcmap/project-selector/config.json +15 -0
- package/plugins/@vcmap/project-selector/index.js +254 -0
- package/plugins/@vcmap/project-selector/package.json +15 -0
- package/plugins/@vcmap/theme-changer/README.md +21 -0
- package/plugins/@vcmap/theme-changer/ThemeChangerComponent.vue +92 -0
- package/plugins/@vcmap/theme-changer/config.json +69 -0
- package/plugins/@vcmap/theme-changer/index.js +102 -0
- package/plugins/@vcmap/theme-changer/package.json +12 -0
- package/plugins/buttonExamples/ButtonExamples.vue +190 -0
- package/plugins/buttonExamples/index.js +40 -0
- package/plugins/categoryTest/Categories.vue +145 -0
- package/plugins/categoryTest/Category.vue +114 -0
- package/plugins/categoryTest/ItemEditor.vue +13 -0
- package/plugins/categoryTest/index.js +41 -0
- package/plugins/example/index.js +56 -0
- package/plugins/example/mySuperComponent.vue +127 -0
- package/plugins/package.json +5 -0
- package/plugins/test/editor.vue +63 -0
- package/plugins/test/index.js +93 -0
- package/plugins/test/myCustomHeader.vue +19 -0
- package/plugins/test/toolbox-data.js +49 -0
- package/plugins/test/vcsContent.vue +23 -0
- package/plugins/test/windowManagerExample.vue +144 -0
- package/src/actions/actionHelper.js +221 -0
- package/src/actions/stateRefAction.js +50 -0
- package/src/actions/styleSelector.vue +90 -0
- package/src/application/Navbar.vue +89 -0
- package/src/application/VcsApp.vue +147 -0
- package/src/application/VcsMap.vue +57 -0
- package/src/application/empty-cmp.vue +6 -0
- package/src/assets/logo.svg +26 -0
- package/src/contentTree/LayerTree.vue +40 -0
- package/src/contentTree/contentTreeCollection.js +311 -0
- package/src/contentTree/contentTreeItem.js +457 -0
- package/src/contentTree/groupContentTreeItem.js +67 -0
- package/src/contentTree/layerContentTreeItem.js +233 -0
- package/src/contentTree/layerGroupContentTreeItem.js +154 -0
- package/src/contentTree/nodeContentTreeItem.js +37 -0
- package/src/contentTree/obliqueCollectionContentTreeItem.js +155 -0
- package/src/contentTree/subContentTreeItem.js +42 -0
- package/src/contentTree/vcsObjectContentTreeItem.js +98 -0
- package/src/contentTree/viewPointContentTreeItem.js +107 -0
- package/src/init.js +36 -0
- package/src/lang/de.js +60 -0
- package/src/lang/en.js +53 -0
- package/src/manager/buttonManager.js +203 -0
- package/src/manager/toolbox/ToolboxManager.vue +114 -0
- package/src/manager/toolbox/ToolboxMultiSelectButton.vue +96 -0
- package/src/manager/toolbox/ToolboxSingleSelectButton.vue +98 -0
- package/src/manager/toolbox/toolbox-manager.js +203 -0
- package/src/manager/window/WindowComponent.vue +133 -0
- package/src/manager/window/WindowComponentHeader.vue +46 -0
- package/src/manager/window/WindowManager.vue +109 -0
- package/src/manager/window/windowManager.js +437 -0
- package/src/navigation/mapNavCompass.vue +161 -0
- package/src/navigation/mapNavigation.vue +176 -0
- package/src/navigation/obliqueRotation.vue +48 -0
- package/src/navigation/orientationToolsButton.vue +52 -0
- package/src/navigation/tiltSlider.vue +96 -0
- package/src/navigation/vcsCompass.vue +144 -0
- package/src/navigation/vcsZoomButton.vue +27 -0
- package/src/pluginHelper.js +106 -0
- package/src/setup.js +10 -0
- package/src/styles/_theming.scss +15 -0
- package/src/styles/_typography.scss +42 -0
- package/src/styles/main.scss +9 -0
- package/src/styles/utils/_all.scss +12 -0
- package/src/styles/utils/_border.scss +7 -0
- package/src/styles/utils/_cursor.scss +15 -0
- package/src/styles/utils/_display.scss +3 -0
- package/src/styles/utils/_fade-in.scss +8 -0
- package/src/styles/utils/_position.scss +38 -0
- package/src/styles/utils/_size.scss +79 -0
- package/src/styles/utils/_slide-in.scss +26 -0
- package/src/styles/utils/_spacing.scss +11 -0
- package/src/styles/utils/_text.scss +30 -0
- package/src/styles/utils/_transform.scss +11 -0
- package/src/styles/utils/_transition.scss +11 -0
- package/src/styles/utils/_z-index.scss +15 -0
- package/src/vcsUiApp.js +223 -0
- package/src/vuePlugins/i18n.js +20 -0
- package/src/vuePlugins/vuetify.js +54 -0
- package/start.js +3 -0
@@ -0,0 +1,374 @@
|
|
1
|
+
<template>
|
2
|
+
<v-form v-model="isValid">
|
3
|
+
<VcsFormSection
|
4
|
+
title="VcsFormSection"
|
5
|
+
:title-actions="[
|
6
|
+
{
|
7
|
+
name: 'denseSelection',
|
8
|
+
title: 'change row height',
|
9
|
+
icon: dense ? 'mdi-arrow-split-horizontal' : 'mdi-arrow-collapse-vertical',
|
10
|
+
callback: () => this.dense = !this.dense
|
11
|
+
},
|
12
|
+
{ name: 'noIcon', title: 'another action without icon', callback: () => {} },
|
13
|
+
{
|
14
|
+
name: 'help',
|
15
|
+
title: helpExample,
|
16
|
+
icon: 'mdi-help-circle',
|
17
|
+
callback: () => {},
|
18
|
+
},
|
19
|
+
{
|
20
|
+
name: 'toggleSection',
|
21
|
+
title: 'toggle section',
|
22
|
+
icon: showSection ? '$vcsMinus' : '$vcsPlus',
|
23
|
+
callback: () => this.showSection = !this.showSection
|
24
|
+
},
|
25
|
+
{
|
26
|
+
name: 'toggleIcon',
|
27
|
+
title: 'toggle switch example',
|
28
|
+
icon: showSection ? 'mdi-toggle-switch' : 'mdi-toggle-switch-off',
|
29
|
+
active: showSection,
|
30
|
+
callback: () => this.showSection = !this.showSection
|
31
|
+
},
|
32
|
+
{ name: 'alert', icon: 'mdi-message-text', callback: alertAction },
|
33
|
+
]"
|
34
|
+
>
|
35
|
+
<template #default v-if="showSection">
|
36
|
+
<v-container class="pa-2">
|
37
|
+
<v-row
|
38
|
+
:dense="dense"
|
39
|
+
no-gutters
|
40
|
+
align="center"
|
41
|
+
>
|
42
|
+
<v-col>
|
43
|
+
<VcsLabel html-for="selectInput" :dense="dense">
|
44
|
+
Select
|
45
|
+
</VcsLabel>
|
46
|
+
</v-col>
|
47
|
+
<v-col>
|
48
|
+
<VcsSelect
|
49
|
+
id="selectInput"
|
50
|
+
:items="selectOptions"
|
51
|
+
:dense="dense"
|
52
|
+
:rules="[conditionalTest(state.conditionalInput, state.selected)]"
|
53
|
+
v-model="state.selected"
|
54
|
+
/>
|
55
|
+
</v-col>
|
56
|
+
</v-row>
|
57
|
+
<v-row
|
58
|
+
:dense="dense"
|
59
|
+
no-gutters
|
60
|
+
align="center"
|
61
|
+
>
|
62
|
+
<v-col>
|
63
|
+
<VcsLabel html-for="conditionalInput" :dense="dense">
|
64
|
+
ConditionalInput
|
65
|
+
</VcsLabel>
|
66
|
+
</v-col>
|
67
|
+
<v-col>
|
68
|
+
<VcsTextField
|
69
|
+
id="conditionalInput"
|
70
|
+
clearable
|
71
|
+
:dense="dense"
|
72
|
+
:rules="[conditionalTest(state.conditionalInput, state.selected)]"
|
73
|
+
v-model="state.conditionalInput"
|
74
|
+
/>
|
75
|
+
</v-col>
|
76
|
+
</v-row>
|
77
|
+
<v-row
|
78
|
+
:dense="dense"
|
79
|
+
no-gutters
|
80
|
+
align="center"
|
81
|
+
>
|
82
|
+
<v-col>
|
83
|
+
<VcsTextField
|
84
|
+
:dense="dense"
|
85
|
+
v-model="initialTextInput"
|
86
|
+
/>
|
87
|
+
</v-col>
|
88
|
+
</v-row>
|
89
|
+
<v-row
|
90
|
+
:dense="dense"
|
91
|
+
no-gutters
|
92
|
+
align="center"
|
93
|
+
>
|
94
|
+
<v-col>
|
95
|
+
<VcsLabel html-for="initialTextInput" :dense="dense">
|
96
|
+
InitialTextInput
|
97
|
+
</VcsLabel>
|
98
|
+
</v-col>
|
99
|
+
<v-col>
|
100
|
+
<VcsTextField
|
101
|
+
id="initialTextInput"
|
102
|
+
:dense="dense"
|
103
|
+
:rules="[isValidText]"
|
104
|
+
:loading="state.initialTextInput === 'myInitialText'"
|
105
|
+
v-model="state.initialTextInput"
|
106
|
+
:error-messages="!state.checkboxInput ? ['manual error message depending on checkbox'] : undefined"
|
107
|
+
/>
|
108
|
+
</v-col>
|
109
|
+
</v-row>
|
110
|
+
<v-row
|
111
|
+
:dense="dense"
|
112
|
+
no-gutters
|
113
|
+
align="center"
|
114
|
+
>
|
115
|
+
<v-col>
|
116
|
+
<VcsLabel html-for="numberInput" :dense="dense">
|
117
|
+
NumberInput
|
118
|
+
</VcsLabel>
|
119
|
+
</v-col>
|
120
|
+
<v-col>
|
121
|
+
<VcsTextField
|
122
|
+
id="numberInput"
|
123
|
+
:dense="dense"
|
124
|
+
type="number"
|
125
|
+
step="10"
|
126
|
+
suffix="cm"
|
127
|
+
v-model.number="state.numberInput"
|
128
|
+
/>
|
129
|
+
</v-col>
|
130
|
+
</v-row>
|
131
|
+
<v-row
|
132
|
+
:dense="dense"
|
133
|
+
no-gutters
|
134
|
+
align="center"
|
135
|
+
>
|
136
|
+
<v-col>
|
137
|
+
<VcsLabel html-for="formattedNumber" :dense="dense">
|
138
|
+
VcsFormattedNumber
|
139
|
+
</VcsLabel>
|
140
|
+
</v-col>
|
141
|
+
<v-col class="d-flex justify-end">
|
142
|
+
<VcsFormattedNumber
|
143
|
+
id="formattedNumber"
|
144
|
+
:value="state.numberInput"
|
145
|
+
unit="cm"
|
146
|
+
:fraction-digits="1"
|
147
|
+
:dense="dense"
|
148
|
+
/>
|
149
|
+
</v-col>
|
150
|
+
</v-row>
|
151
|
+
<v-row
|
152
|
+
:dense="dense"
|
153
|
+
no-gutters
|
154
|
+
align="center"
|
155
|
+
>
|
156
|
+
<v-col cols="1" class="px-1">
|
157
|
+
<VcsLabel html-for="coordinateX" :dense="dense">
|
158
|
+
X
|
159
|
+
</VcsLabel>
|
160
|
+
</v-col>
|
161
|
+
<v-col>
|
162
|
+
<VcsTextField
|
163
|
+
id="coordinateX"
|
164
|
+
:dense="dense"
|
165
|
+
type="number"
|
166
|
+
step="10"
|
167
|
+
suffix="m"
|
168
|
+
v-model.number="state.numberInput"
|
169
|
+
/>
|
170
|
+
</v-col>
|
171
|
+
<v-col cols="1" class="px-1">
|
172
|
+
<VcsLabel html-for="coordinateY" :dense="dense">
|
173
|
+
Y
|
174
|
+
</VcsLabel>
|
175
|
+
</v-col>
|
176
|
+
<v-col>
|
177
|
+
<VcsTextField
|
178
|
+
id="coordinateY"
|
179
|
+
:dense="dense"
|
180
|
+
type="number"
|
181
|
+
step="10"
|
182
|
+
suffix="m"
|
183
|
+
v-model.number="state.numberInput"
|
184
|
+
/>
|
185
|
+
</v-col>
|
186
|
+
<v-col cols="1" class="px-1">
|
187
|
+
<VcsLabel html-for="coordinateZ" :dense="dense">
|
188
|
+
Z
|
189
|
+
</VcsLabel>
|
190
|
+
</v-col>
|
191
|
+
<v-col>
|
192
|
+
<VcsTextField
|
193
|
+
id="coordinateZ"
|
194
|
+
:dense="dense"
|
195
|
+
type="number"
|
196
|
+
step="10"
|
197
|
+
suffix="m"
|
198
|
+
v-model.number="state.numberInput"
|
199
|
+
/>
|
200
|
+
</v-col>
|
201
|
+
</v-row>
|
202
|
+
<v-row
|
203
|
+
:dense="dense"
|
204
|
+
no-gutters
|
205
|
+
align="center"
|
206
|
+
>
|
207
|
+
<v-col cols="1" class="px-1">
|
208
|
+
<VcsLabel html-for="textInput" :dense="dense" class="text-caption">
|
209
|
+
1
|
210
|
+
</VcsLabel>
|
211
|
+
</v-col>
|
212
|
+
<v-col>
|
213
|
+
<VcsSelect
|
214
|
+
:items="['A', 'B', 'C']"
|
215
|
+
:dense="dense"
|
216
|
+
/>
|
217
|
+
</v-col>
|
218
|
+
<v-col>
|
219
|
+
<VcsSelect
|
220
|
+
:items="['A', 'B', 'C']"
|
221
|
+
:dense="dense"
|
222
|
+
multiple
|
223
|
+
/>
|
224
|
+
</v-col>
|
225
|
+
<v-col>
|
226
|
+
<VcsTextField
|
227
|
+
id="textInput"
|
228
|
+
clearable
|
229
|
+
:dense="dense"
|
230
|
+
v-model="state.conditionalInput"
|
231
|
+
/>
|
232
|
+
</v-col>
|
233
|
+
</v-row>
|
234
|
+
<v-row
|
235
|
+
:dense="dense"
|
236
|
+
no-gutters
|
237
|
+
align="center"
|
238
|
+
>
|
239
|
+
<v-col>
|
240
|
+
<VcsLabel html-for="emailInput" :dense="dense">
|
241
|
+
Email
|
242
|
+
</VcsLabel>
|
243
|
+
</v-col>
|
244
|
+
<v-col>
|
245
|
+
<VcsTextField
|
246
|
+
id="emailInput"
|
247
|
+
:dense="dense"
|
248
|
+
type="email"
|
249
|
+
:rules="[isValidEmail]"
|
250
|
+
v-model="state.email"
|
251
|
+
/>
|
252
|
+
</v-col>
|
253
|
+
</v-row>
|
254
|
+
<v-row
|
255
|
+
:dense="dense"
|
256
|
+
no-gutters
|
257
|
+
align="center"
|
258
|
+
>
|
259
|
+
<v-col>
|
260
|
+
<VcsCheckbox
|
261
|
+
id="checkboxInput"
|
262
|
+
label="CheckboxInput"
|
263
|
+
:dense="dense"
|
264
|
+
:rules="[() => state.checkboxInput || 'Please accept our terms of use']"
|
265
|
+
v-model="state.checkboxInput"
|
266
|
+
/>
|
267
|
+
</v-col>
|
268
|
+
<v-col>
|
269
|
+
<VcsButton
|
270
|
+
:is-active="state.checkboxInput"
|
271
|
+
@click="state.checkboxInput = !state.checkboxInput"
|
272
|
+
tooltip="toggle button"
|
273
|
+
color="warning"
|
274
|
+
tooltip-position="right"
|
275
|
+
small
|
276
|
+
>
|
277
|
+
<span v-if="state.checkboxInput">Active-true</span>
|
278
|
+
<span v-else>Active-false</span>
|
279
|
+
</VcsButton>
|
280
|
+
</v-col>
|
281
|
+
</v-row>
|
282
|
+
</v-container>
|
283
|
+
</template>
|
284
|
+
</vcsformsection>
|
285
|
+
<VcsButton
|
286
|
+
@click="logState(state)"
|
287
|
+
:disabled="!isValid"
|
288
|
+
:tooltip="'Log current state in console'"
|
289
|
+
:has-update="isValid && newUpdate"
|
290
|
+
>
|
291
|
+
Log State
|
292
|
+
</VcsButton>
|
293
|
+
<VcsButton
|
294
|
+
type="reset"
|
295
|
+
icon="$vcsReturn"
|
296
|
+
>
|
297
|
+
Reset
|
298
|
+
</VcsButton>
|
299
|
+
</v-form>
|
300
|
+
</template>
|
301
|
+
<script>
|
302
|
+
import { inject, ref, watch } from '@vue/composition-api';
|
303
|
+
import {
|
304
|
+
VcsSelect,
|
305
|
+
VcsCheckbox,
|
306
|
+
VcsButton,
|
307
|
+
VcsTextField,
|
308
|
+
VcsFormattedNumber,
|
309
|
+
VcsFormSection,
|
310
|
+
VcsLabel,
|
311
|
+
} from '@vcsuite/ui-components';
|
312
|
+
import { isValidText, conditionalTest, isValidEmail } from './validation.js';
|
313
|
+
|
314
|
+
export default {
|
315
|
+
name: 'PluginExampleComponent',
|
316
|
+
components: {
|
317
|
+
VcsButton,
|
318
|
+
VcsSelect,
|
319
|
+
VcsTextField,
|
320
|
+
VcsCheckbox,
|
321
|
+
VcsFormattedNumber,
|
322
|
+
VcsFormSection,
|
323
|
+
VcsLabel,
|
324
|
+
},
|
325
|
+
props: {
|
326
|
+
windowId: {
|
327
|
+
type: String,
|
328
|
+
default: '',
|
329
|
+
},
|
330
|
+
},
|
331
|
+
setup() {
|
332
|
+
const app = inject('vcsApp');
|
333
|
+
const plugin = app.plugins.getByKey('@vcmap/plugin-example');
|
334
|
+
const newUpdate = ref(true);
|
335
|
+
watch(plugin.state, () => { newUpdate.value = true; });
|
336
|
+
|
337
|
+
const helpExample = [
|
338
|
+
'Please select an option.',
|
339
|
+
'If Option A is chosen, input of ConditionalInput must be \'test\'.',
|
340
|
+
'InitialTextInput stays in loading state as long as the initial text is not changed.',
|
341
|
+
'VcsFormattedNumber rounds the NumberInput to one decimal digit.',
|
342
|
+
].join('\n');
|
343
|
+
|
344
|
+
return {
|
345
|
+
showSection: true,
|
346
|
+
dense: true,
|
347
|
+
helpExample,
|
348
|
+
// no object-destruction of reactive objects! or use toRef()
|
349
|
+
state: plugin.state,
|
350
|
+
// do not put the whole config here, since it would become reactive
|
351
|
+
selectOptions: plugin.config.selectOptions,
|
352
|
+
initialTextInput: plugin.config.initialTextInput,
|
353
|
+
isValid: false,
|
354
|
+
isValidText,
|
355
|
+
conditionalTest,
|
356
|
+
isValidEmail,
|
357
|
+
newUpdate,
|
358
|
+
logState() {
|
359
|
+
// eslint-disable-next-line no-console
|
360
|
+
console.log(plugin.getSerializedState());
|
361
|
+
newUpdate.value = false;
|
362
|
+
},
|
363
|
+
alertAction() {
|
364
|
+
alert('alert');
|
365
|
+
},
|
366
|
+
};
|
367
|
+
},
|
368
|
+
};
|
369
|
+
</script>
|
370
|
+
<style lang="scss" scoped>
|
371
|
+
label{
|
372
|
+
font-size: 12px;
|
373
|
+
}
|
374
|
+
</style>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* @param {string} value
|
3
|
+
* @returns {boolean|string}
|
4
|
+
*/
|
5
|
+
export function isValidText(value) {
|
6
|
+
const pattern = /\D+/;
|
7
|
+
return pattern.test(value) || `Invalid text: ${value}`;
|
8
|
+
}
|
9
|
+
|
10
|
+
/**
|
11
|
+
* @param {string} value
|
12
|
+
* @param {string} condition
|
13
|
+
* @returns {boolean|string}
|
14
|
+
*/
|
15
|
+
export function conditionalTest(value, condition) {
|
16
|
+
if (condition === 'Option A') {
|
17
|
+
return value === 'test' || `input ${value} must be "test"`;
|
18
|
+
} else {
|
19
|
+
return true;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
/**
|
24
|
+
* @param {string} value
|
25
|
+
* @returns {boolean|string}
|
26
|
+
*/
|
27
|
+
export function isValidEmail(value) {
|
28
|
+
const pattern = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
29
|
+
return pattern.test(value) || 'Invalid e-mail.';
|
30
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<template>
|
2
|
+
<v-container class="pa-0">
|
3
|
+
<v-list
|
4
|
+
color="rgba(0,0,0,0)"
|
5
|
+
>
|
6
|
+
<v-chip
|
7
|
+
v-for="(context, index) in contexts"
|
8
|
+
:key="index"
|
9
|
+
class="mx-1"
|
10
|
+
:color="context.active ? 'primary' : undefined"
|
11
|
+
:disabled="!toggleable"
|
12
|
+
@click="toggle(context)"
|
13
|
+
>
|
14
|
+
{{ context.name || context.configUrl }}
|
15
|
+
<VcsTooltip
|
16
|
+
v-if="context.description"
|
17
|
+
:tooltip="context.description"
|
18
|
+
>
|
19
|
+
<template #activator="{ on, attrs }">
|
20
|
+
<v-icon
|
21
|
+
right
|
22
|
+
v-bind="{...$attrs, ...attrs}"
|
23
|
+
v-on="{...$listeners, ...on}"
|
24
|
+
>
|
25
|
+
mdi-help-circle
|
26
|
+
</v-icon>
|
27
|
+
</template>
|
28
|
+
</VcsTooltip>
|
29
|
+
</v-chip>
|
30
|
+
</v-list>
|
31
|
+
</v-container>
|
32
|
+
</template>
|
33
|
+
|
34
|
+
<script>
|
35
|
+
import { VcsTooltip } from '@vcsuite/ui-components';
|
36
|
+
|
37
|
+
export default {
|
38
|
+
name: 'ContextsListComponent',
|
39
|
+
components: { VcsTooltip },
|
40
|
+
props: {
|
41
|
+
contexts: {
|
42
|
+
type: Array,
|
43
|
+
required: true,
|
44
|
+
},
|
45
|
+
toggleable: {
|
46
|
+
type: Boolean,
|
47
|
+
default: true,
|
48
|
+
},
|
49
|
+
},
|
50
|
+
methods: {
|
51
|
+
toggle(context) {
|
52
|
+
if (this.toggleable) {
|
53
|
+
this.$emit('toggle-context', context);
|
54
|
+
}
|
55
|
+
},
|
56
|
+
},
|
57
|
+
};
|
58
|
+
</script>
|
59
|
+
|
60
|
+
<style scoped>
|
61
|
+
|
62
|
+
</style>
|
@@ -0,0 +1,81 @@
|
|
1
|
+
<template>
|
2
|
+
<v-container>
|
3
|
+
<h1>Projects</h1>
|
4
|
+
<v-list
|
5
|
+
v-for="(project, index) in state.projects.value"
|
6
|
+
:key="index"
|
7
|
+
>
|
8
|
+
<v-card
|
9
|
+
class="ma-1"
|
10
|
+
:color="project.active ? 'accent' : undefined"
|
11
|
+
@click="selectProject(project)"
|
12
|
+
hover
|
13
|
+
outlined
|
14
|
+
:loading="loading === project.name"
|
15
|
+
>
|
16
|
+
<v-list-item>
|
17
|
+
<v-list-item-content>
|
18
|
+
<v-list-item-title class="font-weight-bold">
|
19
|
+
{{ project.name }}
|
20
|
+
</v-list-item-title>
|
21
|
+
<v-list-item-subtitle>{{ project.description }}</v-list-item-subtitle>
|
22
|
+
<ContextsListComponent
|
23
|
+
:contexts="project.contexts"
|
24
|
+
@toggle-context="toggleContext"
|
25
|
+
:toggleable="false"
|
26
|
+
/>
|
27
|
+
</v-list-item-content>
|
28
|
+
<v-list-item-action>
|
29
|
+
<v-avatar
|
30
|
+
color="success"
|
31
|
+
size="30"
|
32
|
+
v-if="project.active"
|
33
|
+
>
|
34
|
+
<v-icon>mdi-check</v-icon>
|
35
|
+
</v-avatar>
|
36
|
+
</v-list-item-action>
|
37
|
+
</v-list-item>
|
38
|
+
</v-card>
|
39
|
+
</v-list>
|
40
|
+
<v-divider />
|
41
|
+
<h1>Contexts</h1>
|
42
|
+
<ContextsListComponent
|
43
|
+
:contexts="state.contexts.value"
|
44
|
+
@toggle-context="toggleContext"
|
45
|
+
/>
|
46
|
+
</v-container>
|
47
|
+
</template>
|
48
|
+
<script>
|
49
|
+
import { inject } from '@vue/composition-api';
|
50
|
+
import ContextsListComponent from './ContextsListComponent.vue';
|
51
|
+
|
52
|
+
export default {
|
53
|
+
name: 'ProjectSelector',
|
54
|
+
components: { ContextsListComponent },
|
55
|
+
setup() {
|
56
|
+
const app = inject('vcsApp');
|
57
|
+
const plugin = app.plugins.getByKey('@vcmap/project-selector');
|
58
|
+
async function selectProject(project) {
|
59
|
+
this.loading = project.name;
|
60
|
+
await plugin.selectProject(app, project);
|
61
|
+
this.loading = undefined;
|
62
|
+
}
|
63
|
+
|
64
|
+
async function toggleContext(context) {
|
65
|
+
if (context.active) {
|
66
|
+
await plugin.unloadContext(app, context);
|
67
|
+
} else {
|
68
|
+
await plugin.loadContext(app, context);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
return {
|
73
|
+
loading: undefined,
|
74
|
+
state: plugin.state,
|
75
|
+
config: plugin.config,
|
76
|
+
selectProject,
|
77
|
+
toggleContext,
|
78
|
+
};
|
79
|
+
},
|
80
|
+
};
|
81
|
+
</script>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# VC Map Plugin Project Selector
|
2
|
+
|
3
|
+
This is a plugin to select and load `VCMapProjects` and `VCMapContexts`.
|
4
|
+
|
5
|
+
## configuration
|
6
|
+
|
7
|
+
You can add projects or contexts and define the startup behavior of the plugin:
|
8
|
+
|
9
|
+
### ProjectSelectorConfig
|
10
|
+
| Property | Type | default | Description |
|
11
|
+
|------------------|----------------------------|---------------|------------------------------|
|
12
|
+
| selected | string | 'VC Map Base' | selected project on startup |
|
13
|
+
| selectedContexts | string[] | [] | selected contexts on startup |
|
14
|
+
| projects | Array<VCMapProjectOptions> | [] | |
|
15
|
+
| contexts | Array<VCMapContextOptions> | [] | |
|
16
|
+
|
17
|
+
### VCMapProjectOptions
|
18
|
+
| Property | Type | Description |
|
19
|
+
|-------------|----------------------------|----------------------------|
|
20
|
+
| name | string | name of the project |
|
21
|
+
| description | string | description of the project |
|
22
|
+
| contexts | Array<VCMapContextOptions> | |
|
23
|
+
|
24
|
+
### VCMapContextOptions
|
25
|
+
| Property | Type | Description |
|
26
|
+
|-------------|--------|----------------------------|
|
27
|
+
| name | string | name of the context |
|
28
|
+
| description | string | description of the context |
|
29
|
+
| configUrl | string | url to config.json |
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "projectSelector",
|
3
|
+
"entry": "plugins/@vcmap/project-selector/index.js",
|
4
|
+
"selected": "VC Map Base",
|
5
|
+
"selectedContexts": [],
|
6
|
+
"open": false,
|
7
|
+
"projects": [
|
8
|
+
{
|
9
|
+
"name": "VC Map Base",
|
10
|
+
"description": "Base Layout with basic datasets",
|
11
|
+
"contexts": [ { "configUrl": "config/base.config.json" } ]
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"contexts": []
|
15
|
+
}
|