@vcmap/ui 5.0.2 → 5.1.0-rc.1
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/README.md +2 -2
- package/build/buildTypes.js +176 -0
- package/build/lintTypes.js +30 -0
- package/config/aerowest.config.json +4 -0
- package/config/base.config.json +22 -0
- package/config/dev.config.json +176 -5
- package/config/www.config.json +24 -0
- package/dist/assets/{cesium.a3a1dc.js → cesium.e9b3ca.js} +1859 -1828
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.bb64ed.js → core.a9fe5a.js} +5859 -5041
- package/dist/assets/core.js +1 -1
- package/dist/assets/index-bb2549d6.js +1 -0
- package/dist/assets/{ol.833fa9.js → ol.5f0496.js} +7257 -7252
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.aeb2ec.css → ui.3c73c2.css} +2 -2
- package/dist/assets/{ui.aeb2ec.js → ui.3c73c2.js} +14199 -9198
- package/dist/assets/ui.js +1 -1
- package/dist/assets/{vue.8e1850.js → vue.4fe14e.js} +1243 -1234
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.3ed426.css → vuetify.260d9a.css} +1 -1
- package/dist/assets/{vuetify.3ed426.js → vuetify.260d9a.js} +155 -154
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +1 -1
- package/index.d.ts +256 -0
- package/index.js +48 -11
- package/package.json +21 -14
- package/plugins/@vcmap-show-case/buttons-example/src/ButtonsExample.vue +3 -0
- package/plugins/@vcmap-show-case/category-tester/src/CategoriesExample.vue +312 -43
- package/plugins/@vcmap-show-case/category-tester/src/CollectionComponentOptions.vue +48 -182
- package/plugins/@vcmap-show-case/category-tester/src/FoobarEditor.vue +118 -0
- package/plugins/@vcmap-show-case/category-tester/src/importExportHelper.js +29 -0
- package/plugins/@vcmap-show-case/category-tester/src/index.js +16 -0
- package/plugins/@vcmap-show-case/collection-manager-example/src/CollectionManagerExample.vue +2 -1
- package/plugins/@vcmap-show-case/collection-manager-example/src/index.js +8 -4
- package/plugins/@vcmap-show-case/extent-example/README.md +3 -0
- package/plugins/@vcmap-show-case/extent-example/package.json +5 -0
- package/plugins/@vcmap-show-case/extent-example/src/ExtentExample.vue +71 -0
- package/plugins/@vcmap-show-case/extent-example/src/index.js +68 -0
- package/plugins/@vcmap-show-case/flight-component-example/README.md +3 -0
- package/plugins/@vcmap-show-case/flight-component-example/package.json +5 -0
- package/plugins/@vcmap-show-case/flight-component-example/src/FlightExample.vue +53 -0
- package/plugins/@vcmap-show-case/flight-component-example/src/index.js +42 -0
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +78 -5
- package/plugins/@vcmap-show-case/hello-world/src/helloWorld.vue +2 -2
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +22 -10
- package/plugins/@vcmap-show-case/toolbox-example/README.md +9 -0
- package/plugins/@vcmap-show-case/toolbox-example/package.json +5 -0
- package/plugins/@vcmap-show-case/toolbox-example/src/TriStateExampleWindow.vue +21 -0
- package/plugins/@vcmap-show-case/toolbox-example/src/dummyToolboxActions.js +94 -0
- package/plugins/@vcmap-show-case/toolbox-example/src/index.js +260 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/VectorPropertiesExample.vue +12 -2
- package/plugins/@vcmap-show-case/viewpoint-component-example/README.md +3 -0
- package/plugins/@vcmap-show-case/viewpoint-component-example/package.json +5 -0
- package/plugins/@vcmap-show-case/viewpoint-component-example/src/ViewpointExample.vue +52 -0
- package/plugins/@vcmap-show-case/viewpoint-component-example/src/index.js +42 -0
- package/plugins/@vcmap-show-case/window-tester/src/WindowExample.vue +31 -1
- package/plugins/@vcmap-show-case/window-tester/src/WindowExampleToggleChild.vue +20 -16
- package/plugins/@vcmap-show-case/window-tester/src/index.js +2 -17
- package/plugins/package.json +3 -1
- package/src/actions/StyleSelector.vue +8 -7
- package/src/actions/StyleSelector.vue.d.ts +27 -0
- package/src/actions/actionHelper.d.ts +153 -0
- package/src/actions/actionHelper.js +36 -19
- package/src/actions/extentActions.d.ts +40 -0
- package/src/actions/extentActions.js +359 -0
- package/src/actions/flightActions.d.ts +59 -0
- package/src/actions/flightActions.js +232 -0
- package/src/actions/listActions.d.ts +63 -0
- package/src/actions/listActions.js +185 -0
- package/src/actions/stateRefAction.d.ts +19 -0
- package/src/actions/stateRefAction.js +1 -1
- package/src/application/VcsApp.vue +103 -28
- package/src/application/VcsApp.vue.d.ts +86 -0
- package/src/application/VcsAppWrapper.vue.d.ts +12 -0
- package/src/application/VcsAttributions.vue.d.ts +14 -0
- package/src/application/VcsAttributionsFooter.vue +1 -4
- package/src/application/VcsAttributionsFooter.vue.d.ts +26 -0
- package/src/application/VcsMap.vue.d.ts +12 -0
- package/src/application/VcsNavbar.vue.d.ts +45 -0
- package/src/application/VcsPositionDisplay.vue +208 -0
- package/src/application/VcsPositionDisplay.vue.d.ts +18 -0
- package/src/application/VcsSettings.vue.d.ts +5 -0
- package/src/application/VcsTextPage.vue +65 -0
- package/src/application/VcsTextPage.vue.d.ts +16 -0
- package/src/application/VcsTextPageFooter.vue +89 -0
- package/src/application/VcsTextPageFooter.vue.d.ts +22 -0
- package/src/application/attributionsHelper.d.ts +64 -0
- package/src/application/attributionsHelper.js +1 -1
- package/src/application/markdownHelper.d.ts +5 -0
- package/src/application/markdownHelper.js +11 -0
- package/src/application/positionDisplayInteraction.d.ts +42 -0
- package/src/application/positionDisplayInteraction.js +65 -0
- package/src/callback/activateLayersCallback.d.ts +29 -0
- package/src/callback/activateLayersCallback.js +2 -2
- package/src/callback/applyLayerStyleCallback.d.ts +36 -0
- package/src/callback/applyLayerStyleCallback.js +2 -2
- package/src/callback/deactivateLayersCallback.d.ts +29 -0
- package/src/callback/deactivateLayersCallback.js +2 -2
- package/src/callback/goToViewpointCallback.d.ts +29 -0
- package/src/callback/goToViewpointCallback.js +2 -2
- package/src/callback/vcsCallback.d.ts +44 -0
- package/src/callback/vcsCallback.js +4 -9
- package/src/components/ImageElementInjector.vue.d.ts +24 -0
- package/src/components/buttons/VcsActionButtonList.vue +24 -16
- package/src/components/buttons/VcsActionButtonList.vue.d.ts +68 -0
- package/src/components/buttons/VcsButton.vue +7 -0
- package/src/components/buttons/VcsButton.vue.d.ts +89 -0
- package/src/components/buttons/VcsFormButton.vue +9 -0
- package/src/components/buttons/VcsFormButton.vue.d.ts +91 -0
- package/src/components/buttons/VcsToolButton.vue +9 -0
- package/src/components/buttons/VcsToolButton.vue.d.ts +91 -0
- package/src/components/flight/VcsFlightAnchorsComponent.vue +329 -0
- package/src/components/flight/VcsFlightAnchorsComponent.vue.d.ts +45 -0
- package/src/components/flight/VcsFlightComponent.vue +284 -0
- package/src/components/flight/VcsFlightComponent.vue.d.ts +104 -0
- package/src/components/flight/VcsFlightEditor.vue +77 -0
- package/src/components/flight/VcsFlightEditor.vue.d.ts +34 -0
- package/src/components/flight/VcsFlightPlayer.vue +124 -0
- package/src/components/flight/VcsFlightPlayer.vue.d.ts +25 -0
- package/src/components/flight/composables.d.ts +11 -0
- package/src/components/flight/composables.js +39 -0
- package/src/components/form-inputs-controls/VcsCheckbox.vue.d.ts +18 -0
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue.d.ts +82 -0
- package/src/components/form-inputs-controls/VcsCoordinate.vue +152 -0
- package/src/components/form-inputs-controls/VcsCoordinate.vue.d.ts +90 -0
- package/src/components/form-inputs-controls/VcsDatePicker.vue +2 -2
- package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +31 -0
- package/src/components/form-inputs-controls/VcsExtent.vue +122 -0
- package/src/components/form-inputs-controls/VcsExtent.vue.d.ts +36 -0
- package/src/components/form-inputs-controls/VcsFormSection.vue +6 -1
- package/src/components/form-inputs-controls/VcsFormSection.vue.d.ts +75 -0
- package/src/components/form-inputs-controls/VcsLabel.vue +18 -0
- package/src/components/form-inputs-controls/VcsLabel.vue.d.ts +41 -0
- package/src/components/form-inputs-controls/VcsRadio.vue.d.ts +32 -0
- package/src/components/form-inputs-controls/VcsRadioGrid.vue.d.ts +35 -0
- package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +31 -0
- package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +2 -0
- package/src/components/form-inputs-controls/VcsTextArea.vue.d.ts +22 -0
- package/src/components/form-inputs-controls/VcsTextField.vue +57 -10
- package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +65 -0
- package/src/components/form-inputs-controls/VcsWizard.vue.d.ts +14 -0
- package/src/components/form-inputs-controls/VcsWizardStep.vue.d.ts +89 -0
- package/src/components/form-inputs-controls/composables.d.ts +7 -0
- package/src/components/form-inputs-controls/composables.js +1 -1
- package/src/components/form-output/VcsFormattedNumber.vue +13 -2
- package/src/components/form-output/VcsFormattedNumber.vue.d.ts +89 -0
- package/src/components/icons/+all.d.ts +9 -0
- package/src/components/icons/+all.js +16 -0
- package/src/components/icons/2DAreaIcon.vue.d.ts +2 -0
- package/src/components/icons/2DDistanceIcon.vue.d.ts +2 -0
- package/src/components/icons/2DHeightObliqueIcon.vue +20 -0
- package/src/components/icons/2DHeightObliqueIcon.vue.d.ts +2 -0
- package/src/components/icons/3DAreaIcon.vue.d.ts +2 -0
- package/src/components/icons/3DDistanceIcon.vue.d.ts +2 -0
- package/src/components/icons/3DHeightIcon.vue.d.ts +2 -0
- package/src/components/icons/AngleIcon.vue.d.ts +2 -0
- package/src/components/icons/AssociationsIcon.vue.d.ts +2 -0
- package/src/components/icons/AxisIcon.vue.d.ts +2 -0
- package/src/components/icons/BoundingBoxIcon.vue.d.ts +2 -0
- package/src/components/icons/CheckboxCheckedIcon.vue.d.ts +2 -0
- package/src/components/icons/CheckboxIcon.vue.d.ts +2 -0
- package/src/components/icons/CheckboxIndeterminateIcon.vue.d.ts +2 -0
- package/src/components/icons/CircleIcon.vue.d.ts +2 -0
- package/src/components/icons/ClippingHorizontalIcon.vue.d.ts +2 -0
- package/src/components/icons/ClippingIcon.vue.d.ts +2 -0
- package/src/components/icons/ClippingVerticalIcon.vue.d.ts +2 -0
- package/src/components/icons/ColorPickerIcon.vue.d.ts +2 -0
- package/src/components/icons/ColorSwatchIcon.vue.d.ts +2 -0
- package/src/components/icons/CommentIcon.vue.d.ts +2 -0
- package/src/components/icons/CompassIcon.vue.d.ts +2 -0
- package/src/components/icons/ComponentsIcon.vue.d.ts +2 -0
- package/src/components/icons/ComponentsPlusIcon.vue +17 -0
- package/src/components/icons/ComponentsPlusIcon.vue.d.ts +2 -0
- package/src/components/icons/ConeIcon.vue.d.ts +2 -0
- package/src/components/icons/DimensionsHouseIcon.vue.d.ts +2 -0
- package/src/components/icons/EditIcon.vue.d.ts +2 -0
- package/src/components/icons/EditVerticesIcon.vue.d.ts +2 -0
- package/src/components/icons/ElevationProfileIcon.vue.d.ts +2 -0
- package/src/components/icons/ExportAreaIcon.vue.d.ts +2 -0
- package/src/components/icons/ExportFlightIcon.vue.d.ts +2 -0
- package/src/components/icons/ExportIcon.vue.d.ts +2 -0
- package/src/components/icons/ExternalLinkIcon.vue.d.ts +2 -0
- package/src/components/icons/EyeIcon.vue.d.ts +2 -0
- package/src/components/icons/FastForwardIcon.vue.d.ts +2 -0
- package/src/components/icons/FilterIcon.vue.d.ts +2 -0
- package/src/components/icons/GlobalTerrainIcon.vue.d.ts +2 -0
- package/src/components/icons/GlobeNatureIcon.vue.d.ts +2 -0
- package/src/components/icons/GroundIcon.vue.d.ts +2 -0
- package/src/components/icons/HealthCareIndustriesIcon.vue.d.ts +2 -0
- package/src/components/icons/HelpIcon.vue.d.ts +2 -0
- package/src/components/icons/HideIcon.vue.d.ts +2 -0
- package/src/components/icons/HomePointIcon.vue.d.ts +2 -0
- package/src/components/icons/HospitalsIcon.vue.d.ts +2 -0
- package/src/components/icons/HouseIcon.vue.d.ts +2 -0
- package/src/components/icons/ImportIcon.vue.d.ts +2 -0
- package/src/components/icons/InfoIcon.vue.d.ts +2 -0
- package/src/components/icons/KebabIcon.vue.d.ts +2 -0
- package/src/components/icons/LabelIcon.vue.d.ts +2 -0
- package/src/components/icons/LayersIcon.vue.d.ts +2 -0
- package/src/components/icons/LegendIcon.vue.d.ts +2 -0
- package/src/components/icons/LineIcon.vue.d.ts +2 -0
- package/src/components/icons/LinkIcon.vue.d.ts +2 -0
- package/src/components/icons/LogoutIcon.vue.d.ts +2 -0
- package/src/components/icons/MapIcon.vue.d.ts +2 -0
- package/src/components/icons/MenuIcon.vue.d.ts +2 -0
- package/src/components/icons/MinusIcon.vue.d.ts +2 -0
- package/src/components/icons/MultiViewIcon.vue +16 -0
- package/src/components/icons/MultiViewIcon.vue.d.ts +2 -0
- package/src/components/icons/ObjectAttributeIcon.vue.d.ts +2 -0
- package/src/components/icons/ObjectSelectIcon.vue.d.ts +2 -0
- package/src/components/icons/ObliqueViewIcon.vue.d.ts +2 -0
- package/src/components/icons/PdfIcon.vue.d.ts +2 -0
- package/src/components/icons/PedestrianIcon.vue.d.ts +2 -0
- package/src/components/icons/PenIcon.vue.d.ts +2 -0
- package/src/components/icons/PlayCircleIcon.vue.d.ts +2 -0
- package/src/components/icons/PlusIcon.vue.d.ts +2 -0
- package/src/components/icons/PoiIcon.vue.d.ts +2 -0
- package/src/components/icons/PointIcon.vue.d.ts +2 -0
- package/src/components/icons/PointMeasurementIcon.vue +36 -0
- package/src/components/icons/PointMeasurementIcon.vue.d.ts +2 -0
- package/src/components/icons/PointSelectIcon.vue.d.ts +2 -0
- package/src/components/icons/PresentationModeIcon.vue.d.ts +2 -0
- package/src/components/icons/ProgressIcon.vue.d.ts +2 -0
- package/src/components/icons/QueryIcon.vue.d.ts +2 -0
- package/src/components/icons/RectangleIcon.vue.d.ts +2 -0
- package/src/components/icons/ReturnIcon.vue.d.ts +2 -0
- package/src/components/icons/RewindIcon.vue.d.ts +2 -0
- package/src/components/icons/RotateLeftIcon.vue.d.ts +2 -0
- package/src/components/icons/RotateRightIcon.vue.d.ts +2 -0
- package/src/components/icons/ScreenshotIcon.vue.d.ts +2 -0
- package/src/components/icons/SearchIcon.vue.d.ts +2 -0
- package/src/components/icons/ShadowIcon.vue.d.ts +2 -0
- package/src/components/icons/ShapesIcon.vue.d.ts +2 -0
- package/src/components/icons/ShareIcon.vue.d.ts +2 -0
- package/src/components/icons/SimpleCircleFilledIcon.vue.d.ts +2 -0
- package/src/components/icons/SimpleCircleHalfFilledIcon.vue.d.ts +2 -0
- package/src/components/icons/SimpleCircleOutlinedIcon.vue.d.ts +2 -0
- package/src/components/icons/SkipNextIcon.vue.d.ts +2 -0
- package/src/components/icons/SkipPreviousIcon.vue.d.ts +2 -0
- package/src/components/icons/SplitViewIcon.vue.d.ts +2 -0
- package/src/components/icons/TerrainBoxIcon.vue.d.ts +2 -0
- package/src/components/icons/TextStyleIcon.vue.d.ts +2 -0
- package/src/components/icons/ThreeDimensionsIcon.vue.d.ts +2 -0
- package/src/components/icons/ToolsIcon.vue.d.ts +2 -0
- package/src/components/icons/TouchIcon.vue.d.ts +2 -0
- package/src/components/icons/TrashCanIcon.vue.d.ts +2 -0
- package/src/components/icons/TriangleIcon.vue.d.ts +2 -0
- package/src/components/icons/TwoDimensionsIcon.vue.d.ts +2 -0
- package/src/components/icons/UploadIcon.vue.d.ts +2 -0
- package/src/components/icons/UserProfileIcon.vue.d.ts +2 -0
- package/src/components/icons/UserShareIcon.vue.d.ts +2 -0
- package/src/components/icons/VideoRecorderIcon.vue.d.ts +2 -0
- package/src/components/icons/ViewpointFlightIcon.vue.d.ts +2 -0
- package/src/components/icons/ViewpointIcon.vue.d.ts +2 -0
- package/src/components/icons/Viewshed360Icon.vue.d.ts +2 -0
- package/src/components/icons/ViewshedConeIcon.vue.d.ts +2 -0
- package/src/components/icons/ViewshedIcon.vue.d.ts +2 -0
- package/src/components/icons/WalkingIcon.vue.d.ts +2 -0
- package/src/components/icons/WallIcon.vue.d.ts +2 -0
- package/src/components/icons/WandIcon.vue.d.ts +2 -0
- package/src/components/import/FileDrop.vue +69 -0
- package/src/components/import/FileDrop.vue.d.ts +26 -0
- package/src/components/import/ImportComponent.vue +78 -0
- package/src/components/import/ImportComponent.vue.d.ts +34 -0
- package/src/components/lists/VcsActionList.vue +8 -15
- package/src/components/lists/VcsActionList.vue.d.ts +66 -0
- package/src/components/lists/VcsList.vue +207 -116
- package/src/components/lists/VcsList.vue.d.ts +227 -0
- package/src/components/lists/VcsTreeview.vue +3 -1
- package/src/components/lists/VcsTreeview.vue.d.ts +28 -0
- package/src/components/lists/VcsTreeviewLeaf.vue +1 -0
- package/src/components/lists/VcsTreeviewLeaf.vue.d.ts +19 -0
- package/src/components/lists/VcsTreeviewSearchbar.vue.d.ts +41 -0
- package/src/components/notification/VcsBadge.vue.d.ts +14 -0
- package/src/components/notification/VcsHelp.vue.d.ts +22 -0
- package/src/components/notification/VcsTooltip.vue.d.ts +27 -0
- package/src/components/notification/validation.d.ts +8 -0
- package/src/components/notification/validation.js +3 -2
- package/src/components/plugins/AbstractConfigEditor.vue +25 -4
- package/src/components/plugins/AbstractConfigEditor.vue.d.ts +55 -0
- package/src/components/style/MenuWrapper.vue.d.ts +55 -0
- package/src/components/style/VcsFeatureStyleComponent.vue +389 -0
- package/src/components/style/VcsFeatureStyleComponent.vue.d.ts +31 -0
- package/src/components/style/VcsFillMenu.vue.d.ts +34 -0
- package/src/components/style/VcsFillSelector.vue.d.ts +22 -0
- package/src/components/style/VcsImageMenu.vue.d.ts +43 -0
- package/src/components/style/VcsImageSelector.vue.d.ts +128 -0
- package/src/components/style/VcsStrokeMenu.vue.d.ts +34 -0
- package/src/components/style/VcsStrokeSelector.vue.d.ts +23 -0
- package/src/components/style/VcsTextMenu.vue.d.ts +52 -0
- package/src/components/style/VcsTextSelector.vue.d.ts +58 -0
- package/src/components/style/VcsVectorStyleComponent.vue.d.ts +76 -0
- package/src/components/style/composables.d.ts +43 -0
- package/src/components/style/composables.js +11 -8
- package/src/components/tables/VcsDataTable.vue +11 -3
- package/src/components/tables/VcsDataTable.vue.d.ts +142 -0
- package/src/components/tables/VcsTable.vue +71 -2
- package/src/components/tables/VcsTable.vue.d.ts +88 -0
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +392 -0
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts +87 -0
- package/src/components/vector-properties/VcsFeatureTransforms.vue +217 -0
- package/src/components/vector-properties/VcsFeatureTransforms.vue.d.ts +45 -0
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +96 -52
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +119 -0
- package/src/components/vector-properties/composables.d.ts +33 -0
- package/src/components/vector-properties/composables.js +21 -14
- package/src/components/viewpoint/VcsViewpointComponent.vue +514 -0
- package/src/components/viewpoint/VcsViewpointComponent.vue.d.ts +126 -0
- package/src/components/viewpoint/VcsViewpointEditor.vue +87 -0
- package/src/components/viewpoint/VcsViewpointEditor.vue.d.ts +25 -0
- package/src/contentTree/LayerTree.vue.d.ts +15 -0
- package/src/contentTree/contentTreeCollection.d.ts +113 -0
- package/src/contentTree/contentTreeCollection.js +10 -20
- package/src/contentTree/contentTreeItem.d.ts +334 -0
- package/src/contentTree/contentTreeItem.js +31 -17
- package/src/contentTree/flightContentTreeItem.d.ts +53 -0
- package/src/contentTree/flightContentTreeItem.js +201 -0
- package/src/contentTree/groupContentTreeItem.d.ts +14 -0
- package/src/contentTree/groupContentTreeItem.js +2 -2
- package/src/contentTree/layerContentTreeItem.d.ts +76 -0
- package/src/contentTree/layerContentTreeItem.js +7 -9
- package/src/contentTree/layerGroupContentTreeItem.d.ts +50 -0
- package/src/contentTree/layerGroupContentTreeItem.js +2 -3
- package/src/contentTree/nodeContentTreeItem.d.ts +10 -0
- package/src/contentTree/nodeContentTreeItem.js +2 -2
- package/src/contentTree/obliqueCollectionContentTreeItem.d.ts +46 -0
- package/src/contentTree/obliqueCollectionContentTreeItem.js +3 -5
- package/src/contentTree/subContentTreeItem.d.ts +15 -0
- package/src/contentTree/subContentTreeItem.js +3 -3
- package/src/contentTree/vcsObjectContentTreeItem.d.ts +56 -0
- package/src/contentTree/vcsObjectContentTreeItem.js +3 -4
- package/src/contentTree/viewpointContentTreeItem.d.ts +46 -0
- package/src/contentTree/viewpointContentTreeItem.js +3 -4
- package/src/downloadHelper.d.ts +27 -0
- package/src/featureInfo/AddressBalloonComponent.vue.d.ts +2 -0
- package/src/featureInfo/BalloonComponent.vue +16 -3
- package/src/featureInfo/BalloonComponent.vue.d.ts +61 -0
- package/src/featureInfo/abstractFeatureInfoView.d.ts +199 -0
- package/src/featureInfo/abstractFeatureInfoView.js +82 -18
- package/src/featureInfo/addressBalloonFeatureInfoView.d.ts +67 -0
- package/src/featureInfo/addressBalloonFeatureInfoView.js +9 -2
- package/src/featureInfo/balloonFeatureInfoView.d.ts +49 -0
- package/src/featureInfo/balloonFeatureInfoView.js +12 -11
- package/src/featureInfo/balloonHelper.d.ts +31 -0
- package/src/featureInfo/balloonHelper.js +6 -6
- package/src/featureInfo/featureInfo.d.ts +146 -0
- package/src/featureInfo/featureInfo.js +11 -16
- package/src/featureInfo/featureInfoInteraction.d.ts +21 -0
- package/src/featureInfo/featureInfoInteraction.js +2 -2
- package/src/featureInfo/iframeFeatureInfoView.d.ts +48 -0
- package/src/featureInfo/iframeFeatureInfoView.js +3 -5
- package/src/featureInfo/tableFeatureInfoView.d.ts +75 -0
- package/src/featureInfo/tableFeatureInfoView.js +19 -9
- package/src/i18n/de.d.ts +353 -0
- package/src/i18n/de.js +114 -2
- package/src/i18n/en.d.ts +352 -0
- package/src/i18n/en.js +113 -1
- package/src/i18n/i18nCollection.d.ts +82 -0
- package/src/i18n/i18nCollection.js +3 -3
- package/src/init.d.ts +58 -0
- package/src/init.js +3 -5
- package/src/legend/StyleLegendItem.vue.d.ts +25 -0
- package/src/legend/VcsLegend.vue.d.ts +20 -0
- package/src/legend/legendHelper.d.ts +172 -0
- package/src/legend/legendHelper.js +21 -21
- package/src/manager/buttonManager.d.ts +106 -0
- package/src/manager/buttonManager.js +8 -4
- package/src/manager/collectionManager/CollectionComponent.vue +38 -42
- package/src/manager/collectionManager/CollectionComponent.vue.d.ts +17 -0
- package/src/manager/collectionManager/CollectionComponentList.vue +53 -18
- package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +38 -0
- package/src/manager/collectionManager/CollectionComponentProvider.vue +3 -2
- package/src/manager/collectionManager/CollectionComponentProvider.vue.d.ts +12 -0
- package/src/manager/collectionManager/CollectionManager.vue +29 -4
- package/src/manager/collectionManager/CollectionManager.vue.d.ts +8 -0
- package/src/manager/collectionManager/categoryManager.d.ts +56 -0
- package/src/manager/collectionManager/categoryManager.js +21 -7
- package/src/manager/collectionManager/collectionComponentClass.d.ts +257 -0
- package/src/manager/collectionManager/{collectionComponent.js → collectionComponentClass.js} +210 -57
- package/src/manager/collectionManager/collectionManager.d.ts +200 -0
- package/src/manager/collectionManager/collectionManager.js +45 -39
- package/src/manager/collectionManager/editorCollectionComponentClass.d.ts +60 -0
- package/src/manager/collectionManager/editorCollectionComponentClass.js +295 -0
- package/src/manager/contextMenu/ContextMenuComponent.vue.d.ts +18 -0
- package/src/manager/contextMenu/contextMenuInteraction.d.ts +24 -0
- package/src/manager/contextMenu/contextMenuManager.d.ts +70 -0
- package/src/manager/contextMenu/contextMenuManager.js +5 -5
- package/src/manager/navbarManager.d.ts +60 -0
- package/src/manager/navbarManager.js +10 -6
- package/src/manager/toolbox/GroupToolboxComponent.vue.d.ts +17 -0
- package/src/manager/toolbox/SelectToolboxComponent.vue +1 -0
- package/src/manager/toolbox/SelectToolboxComponent.vue.d.ts +15 -0
- package/src/manager/toolbox/ToolboxManager.vue +33 -7
- package/src/manager/toolbox/ToolboxManager.vue.d.ts +21 -0
- package/src/manager/toolbox/toolboxManager.d.ts +177 -0
- package/src/manager/toolbox/toolboxManager.js +86 -31
- package/src/manager/window/WindowComponent.vue.d.ts +40 -0
- package/src/manager/window/WindowComponentHeader.vue +1 -1
- package/src/manager/window/WindowComponentHeader.vue.d.ts +36 -0
- package/src/manager/window/WindowManager.vue +1 -0
- package/src/manager/window/WindowManager.vue.d.ts +19 -0
- package/src/manager/window/windowHelper.d.ts +134 -0
- package/src/manager/window/windowHelper.js +20 -20
- package/src/manager/window/windowManager.d.ts +422 -0
- package/src/manager/window/windowManager.js +95 -40
- package/src/navigation/MapNavCompass.vue.d.ts +25 -0
- package/src/navigation/MapNavigation.vue +2 -2
- package/src/navigation/MapNavigation.vue.d.ts +46 -0
- package/src/navigation/ObliqueRotation.vue +8 -4
- package/src/navigation/ObliqueRotation.vue.d.ts +14 -0
- package/src/navigation/OrientationToolsButton.vue.d.ts +30 -0
- package/src/navigation/TiltSlider.vue.d.ts +19 -0
- package/src/navigation/VcsCompass.vue.d.ts +25 -0
- package/src/navigation/VcsZoomButton.vue +6 -3
- package/src/navigation/VcsZoomButton.vue.d.ts +2 -0
- package/src/navigation/overviewMap.d.ts +199 -0
- package/src/navigation/overviewMap.js +3 -7
- package/src/navigation/overviewMapClickedInteraction.d.ts +21 -0
- package/src/notifier/NotifierComponent.vue.d.ts +10 -0
- package/src/notifier/notifier.d.ts +53 -0
- package/src/notifier/notifier.js +0 -1
- package/src/pluginHelper.d.ts +67 -0
- package/src/pluginHelper.js +11 -9
- package/src/search/ResultItem.vue.d.ts +25 -0
- package/src/search/ResultsComponent.vue +1 -1
- package/src/search/ResultsComponent.vue.d.ts +24 -0
- package/src/search/SearchComponent.vue +1 -1
- package/src/search/SearchComponent.vue.d.ts +10 -0
- package/src/search/search.d.ts +129 -0
- package/src/search/search.js +8 -11
- package/src/setup.d.ts +1 -0
- package/src/state.d.ts +57 -0
- package/src/state.js +7 -5
- package/src/uiConfig.d.ts +99 -0
- package/src/uiConfig.js +17 -7
- package/src/vcsUiApp.d.ts +301 -0
- package/src/vcsUiApp.js +58 -54
- package/src/vuePlugins/i18n.d.ts +10 -0
- package/src/vuePlugins/i18n.js +3 -3
- package/src/vuePlugins/vuetify.d.ts +27 -0
- package/tsconfig.json +36 -0
- package/dist/assets/index-661636d9.js +0 -1
- package/plugins/@vcmap-show-case/window-tester/src/toolboxData.js +0 -288
@@ -0,0 +1,26 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
entries: {
|
3
|
+
type: ArrayConstructor;
|
4
|
+
required: true;
|
5
|
+
};
|
6
|
+
attributionAction: {
|
7
|
+
type: ObjectConstructor;
|
8
|
+
required: true;
|
9
|
+
};
|
10
|
+
}, {
|
11
|
+
mergedAttributions: import("vue").ComputedRef<{
|
12
|
+
provider: string;
|
13
|
+
years: string;
|
14
|
+
url: URL;
|
15
|
+
}[]>;
|
16
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
17
|
+
entries: {
|
18
|
+
type: ArrayConstructor;
|
19
|
+
required: true;
|
20
|
+
};
|
21
|
+
attributionAction: {
|
22
|
+
type: ObjectConstructor;
|
23
|
+
required: true;
|
24
|
+
};
|
25
|
+
}>>, {}>;
|
26
|
+
export default _default;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
mapId: {
|
3
|
+
type: StringConstructor;
|
4
|
+
required: true;
|
5
|
+
};
|
6
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
7
|
+
mapId: {
|
8
|
+
type: StringConstructor;
|
9
|
+
required: true;
|
10
|
+
};
|
11
|
+
}>>, {}>;
|
12
|
+
export default _default;
|
@@ -0,0 +1,45 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
2
|
+
mapActions: import("vue").ComputedRef<import("../actions/actionHelper.js").VcsAction[]>;
|
3
|
+
contentActions: import("vue").ComputedRef<import("../actions/actionHelper.js").VcsAction[]>;
|
4
|
+
toolActions: import("vue").ComputedRef<import("../actions/actionHelper.js").VcsAction[]>;
|
5
|
+
projectActions: import("vue").ComputedRef<import("../actions/actionHelper.js").VcsAction[]>;
|
6
|
+
shareActions: import("vue").ComputedRef<import("../actions/actionHelper.js").VcsAction[]>;
|
7
|
+
searchAction: import("vue").Ref<{
|
8
|
+
/**
|
9
|
+
* - reactive and translatable name rendered in overflow
|
10
|
+
*/
|
11
|
+
name: string;
|
12
|
+
/**
|
13
|
+
* - reactive and translatable title rendered as tooltip
|
14
|
+
*/
|
15
|
+
title?: string | undefined;
|
16
|
+
/**
|
17
|
+
* - icon rendered on the button. If no icon provided, item is rendered in overflow
|
18
|
+
*/
|
19
|
+
icon?: string | undefined;
|
20
|
+
/**
|
21
|
+
* - callback function is triggered when the button is clicked
|
22
|
+
*/
|
23
|
+
callback: import("../actions/actionHelper.js").ActionCallback;
|
24
|
+
/**
|
25
|
+
* - optional state of button. If active, button is rendered in primary color
|
26
|
+
*/
|
27
|
+
active?: boolean | undefined;
|
28
|
+
/**
|
29
|
+
* - optional hasUpdate of button. If true, a yellow notification is rendered next to the button
|
30
|
+
*/
|
31
|
+
hasUpdate?: boolean | undefined;
|
32
|
+
/**
|
33
|
+
* - optional background state. If active and background, button is rendered in primary color outlined
|
34
|
+
*/
|
35
|
+
background?: boolean | undefined;
|
36
|
+
/**
|
37
|
+
* - optional flag to indicate that the action is disabled
|
38
|
+
*/
|
39
|
+
disabled?: boolean | undefined;
|
40
|
+
} | null>;
|
41
|
+
menuActions: import("vue").ComputedRef<import("../actions/actionHelper.js").VcsAction[]>;
|
42
|
+
config: any;
|
43
|
+
logo: import("vue").ComputedRef<any>;
|
44
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
45
|
+
export default _default;
|
@@ -0,0 +1,208 @@
|
|
1
|
+
<template>
|
2
|
+
<span
|
3
|
+
class="d-flex gap-1 px-1"
|
4
|
+
:class="{ 'vcs-position-display': positionDisplayAction.active }"
|
5
|
+
>
|
6
|
+
<VcsButton
|
7
|
+
:tooltip="positionDisplayAction.title"
|
8
|
+
:icon="positionDisplayAction.icon"
|
9
|
+
@click.stop="positionDisplayAction.callback($event)"
|
10
|
+
:custom-classes="customClasses"
|
11
|
+
>
|
12
|
+
</VcsButton>
|
13
|
+
<template
|
14
|
+
v-if="positionDisplayAction.active && transformedPosition.length > 0"
|
15
|
+
>
|
16
|
+
<VcsFormattedNumber
|
17
|
+
prefix="x:"
|
18
|
+
:value="transformedPosition[0]"
|
19
|
+
:fraction-digits="fractionDigits"
|
20
|
+
/>
|
21
|
+
<VcsFormattedNumber
|
22
|
+
no-padding
|
23
|
+
prefix="y:"
|
24
|
+
:value="transformedPosition[1]"
|
25
|
+
:fraction-digits="fractionDigits"
|
26
|
+
/>
|
27
|
+
<VcsFormattedNumber
|
28
|
+
v-if="transformedPosition[2]"
|
29
|
+
prefix="z:"
|
30
|
+
:value="transformedPosition[2]"
|
31
|
+
/>
|
32
|
+
</template>
|
33
|
+
<v-menu
|
34
|
+
:nudge-top="46"
|
35
|
+
:nudge-left="80"
|
36
|
+
v-if="positionDisplayAction.active"
|
37
|
+
>
|
38
|
+
<template #activator="{ on, attrs }">
|
39
|
+
<VcsButton
|
40
|
+
v-bind="attrs"
|
41
|
+
v-on="on"
|
42
|
+
tooltip="footer.positionDisplay.projection"
|
43
|
+
icon="mdi-chevron-down"
|
44
|
+
:custom-classes="customClasses"
|
45
|
+
/>
|
46
|
+
</template>
|
47
|
+
<v-list dense>
|
48
|
+
<v-list-item-group v-model="selectedEPSG" color="primary" mandatory>
|
49
|
+
<v-list-item v-for="(item, i) in items" :key="i" :value="item.value">
|
50
|
+
<v-list-item-content>
|
51
|
+
<v-list-item-title>{{ $t(item.text) }}</v-list-item-title>
|
52
|
+
</v-list-item-content>
|
53
|
+
</v-list-item>
|
54
|
+
</v-list-item-group>
|
55
|
+
</v-list>
|
56
|
+
</v-menu>
|
57
|
+
</span>
|
58
|
+
</template>
|
59
|
+
|
60
|
+
<style lang="scss" scoped>
|
61
|
+
@import '../styles/shades.scss';
|
62
|
+
|
63
|
+
.vcs-position-display {
|
64
|
+
height: 22px;
|
65
|
+
background-color: var(--v-primary-base);
|
66
|
+
span {
|
67
|
+
color: map-get($shades, 'white');
|
68
|
+
}
|
69
|
+
|
70
|
+
::v-deep {
|
71
|
+
.vcs-formatted-number,
|
72
|
+
.vcs-formatted-number span {
|
73
|
+
font-size: unset;
|
74
|
+
line-height: unset;
|
75
|
+
}
|
76
|
+
.vcs-formatted-number-dense {
|
77
|
+
line-height: unset;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
</style>
|
82
|
+
<script>
|
83
|
+
import { computed, inject, onUnmounted, reactive, ref } from 'vue';
|
84
|
+
import {
|
85
|
+
getDefaultProjection,
|
86
|
+
mercatorProjection,
|
87
|
+
wgs84Projection,
|
88
|
+
} from '@vcmap/core';
|
89
|
+
import {
|
90
|
+
VMenu,
|
91
|
+
VList,
|
92
|
+
VListItemGroup,
|
93
|
+
VListItem,
|
94
|
+
VListItemContent,
|
95
|
+
VListItemTitle,
|
96
|
+
} from 'vuetify/lib';
|
97
|
+
import VcsButton from '../components/buttons/VcsButton.vue';
|
98
|
+
import VcsFormattedNumber from '../components/form-output/VcsFormattedNumber.vue';
|
99
|
+
import PositionDisplayInteraction from './positionDisplayInteraction.js';
|
100
|
+
|
101
|
+
/**
|
102
|
+
* @description Activates an interaction to display the mouse click or mouse move position, depending on the uiConfig property 'positionDisplayEventType'
|
103
|
+
* @vue-computed {string[]} customClasses - changes button color depending on state
|
104
|
+
* @vue-computed {import("ol").Coordinate} transformedPosition - position in selected projection
|
105
|
+
* @vue-computed {number} fractionDigits - number of digits depending on selected projection
|
106
|
+
*/
|
107
|
+
export default {
|
108
|
+
name: 'VcsPositionDisplay',
|
109
|
+
components: {
|
110
|
+
VcsFormattedNumber,
|
111
|
+
VcsButton,
|
112
|
+
VMenu,
|
113
|
+
VList,
|
114
|
+
VListItemGroup,
|
115
|
+
VListItem,
|
116
|
+
VListItemContent,
|
117
|
+
VListItemTitle,
|
118
|
+
},
|
119
|
+
setup() {
|
120
|
+
const app = inject('vcsApp');
|
121
|
+
const move =
|
122
|
+
app.uiConfig.getByKey('positionDisplayEventType')?.value === 'move';
|
123
|
+
|
124
|
+
const position = ref([]);
|
125
|
+
|
126
|
+
const interaction = new PositionDisplayInteraction({ position, move });
|
127
|
+
app.maps.eventHandler.addPersistentInteraction(interaction);
|
128
|
+
|
129
|
+
const defaultProjection = getDefaultProjection();
|
130
|
+
|
131
|
+
const projections = {
|
132
|
+
[defaultProjection.epsg]: defaultProjection,
|
133
|
+
[wgs84Projection.epsg]: wgs84Projection,
|
134
|
+
};
|
135
|
+
const selectedEPSG = ref(defaultProjection.epsg);
|
136
|
+
|
137
|
+
function getProjectionItems() {
|
138
|
+
return Object.keys(projections).map((epsg) => {
|
139
|
+
return {
|
140
|
+
text: projections[epsg].alias || epsg,
|
141
|
+
value: epsg,
|
142
|
+
};
|
143
|
+
});
|
144
|
+
}
|
145
|
+
|
146
|
+
const items = ref(getProjectionItems());
|
147
|
+
|
148
|
+
function setMove() {
|
149
|
+
interaction.setMove(
|
150
|
+
app.uiConfig.getByKey('positionDisplayEventType')?.value === 'move',
|
151
|
+
);
|
152
|
+
}
|
153
|
+
|
154
|
+
const listener = [
|
155
|
+
app.moduleAdded.addEventListener(() => {
|
156
|
+
const newDefaultProjection = getDefaultProjection();
|
157
|
+
projections[newDefaultProjection.epsg] = newDefaultProjection;
|
158
|
+
selectedEPSG.value = newDefaultProjection.epsg;
|
159
|
+
items.value = getProjectionItems();
|
160
|
+
setMove();
|
161
|
+
}),
|
162
|
+
app.moduleRemoved.addEventListener(setMove),
|
163
|
+
];
|
164
|
+
|
165
|
+
onUnmounted(() => {
|
166
|
+
listener.forEach((cb) => cb());
|
167
|
+
});
|
168
|
+
|
169
|
+
const positionDisplayAction = reactive({
|
170
|
+
name: 'position',
|
171
|
+
title: 'footer.positionDisplay.title',
|
172
|
+
icon: '$vcsAxis',
|
173
|
+
active: false,
|
174
|
+
callback() {
|
175
|
+
this.active = !this.active;
|
176
|
+
interaction.setActive(this.active);
|
177
|
+
},
|
178
|
+
});
|
179
|
+
|
180
|
+
const customClasses = computed(() => {
|
181
|
+
return positionDisplayAction.active ? ['primary'] : [];
|
182
|
+
});
|
183
|
+
|
184
|
+
const transformedPosition = computed(() => {
|
185
|
+
if (position.value.length > 0) {
|
186
|
+
return mercatorProjection.transformTo(
|
187
|
+
projections[selectedEPSG.value],
|
188
|
+
position.value,
|
189
|
+
);
|
190
|
+
}
|
191
|
+
return [];
|
192
|
+
});
|
193
|
+
|
194
|
+
const fractionDigits = computed(() => {
|
195
|
+
return selectedEPSG.value === wgs84Projection.epsg ? 6 : 2;
|
196
|
+
});
|
197
|
+
|
198
|
+
return {
|
199
|
+
positionDisplayAction,
|
200
|
+
transformedPosition,
|
201
|
+
fractionDigits,
|
202
|
+
selectedEPSG,
|
203
|
+
items,
|
204
|
+
customClasses,
|
205
|
+
};
|
206
|
+
},
|
207
|
+
};
|
208
|
+
</script>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
2
|
+
positionDisplayAction: {
|
3
|
+
name: string;
|
4
|
+
title: string;
|
5
|
+
icon: string;
|
6
|
+
active: boolean;
|
7
|
+
callback: () => void;
|
8
|
+
};
|
9
|
+
transformedPosition: import("vue").ComputedRef<import("ol/coordinate.js").Coordinate>;
|
10
|
+
fractionDigits: import("vue").ComputedRef<2 | 6>;
|
11
|
+
selectedEPSG: import("vue").Ref<string>;
|
12
|
+
items: import("vue").Ref<{
|
13
|
+
text: any;
|
14
|
+
value: string;
|
15
|
+
}[]>;
|
16
|
+
customClasses: import("vue").ComputedRef<string[]>;
|
17
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
18
|
+
export default _default;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
2
|
+
language: import("vue").WritableComputedRef<string>;
|
3
|
+
languages: import("vue").Ref<never[]>;
|
4
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
5
|
+
export default _default;
|
@@ -0,0 +1,65 @@
|
|
1
|
+
<template>
|
2
|
+
<v-sheet>
|
3
|
+
<v-container>
|
4
|
+
<div v-html="markedHtml"></div>
|
5
|
+
</v-container>
|
6
|
+
</v-sheet>
|
7
|
+
</template>
|
8
|
+
|
9
|
+
<style lang="scss" scoped>
|
10
|
+
@import '../styles/shades.scss';
|
11
|
+
|
12
|
+
.theme--light {
|
13
|
+
a {
|
14
|
+
color: map-get($shades, 'black');
|
15
|
+
}
|
16
|
+
}
|
17
|
+
.theme--dark {
|
18
|
+
a {
|
19
|
+
color: map-get($shades, 'white');
|
20
|
+
}
|
21
|
+
}
|
22
|
+
a {
|
23
|
+
&:hover {
|
24
|
+
color: var(--v-primary-base);
|
25
|
+
}
|
26
|
+
&:before {
|
27
|
+
content: '\00a9';
|
28
|
+
}
|
29
|
+
}
|
30
|
+
</style>
|
31
|
+
|
32
|
+
<script>
|
33
|
+
import { computed, getCurrentInstance } from 'vue';
|
34
|
+
import { VContainer, VSheet } from 'vuetify/lib';
|
35
|
+
import { parseAndSanitizeMarkdown } from './markdownHelper.js';
|
36
|
+
|
37
|
+
/**
|
38
|
+
* @description Is a component to render and sanitize a String
|
39
|
+
* @vue-prop {string} content - The markdown content to be rendered. Is translatable and will be sanitized.
|
40
|
+
*/
|
41
|
+
export default {
|
42
|
+
name: 'VcsTextPage',
|
43
|
+
components: {
|
44
|
+
VSheet,
|
45
|
+
VContainer,
|
46
|
+
},
|
47
|
+
props: {
|
48
|
+
content: {
|
49
|
+
type: String,
|
50
|
+
default: () => '',
|
51
|
+
},
|
52
|
+
},
|
53
|
+
setup(props) {
|
54
|
+
const vm = getCurrentInstance().proxy;
|
55
|
+
const markedHtml = computed(() => {
|
56
|
+
const translatedContent = vm.$t(props.content);
|
57
|
+
return parseAndSanitizeMarkdown(translatedContent);
|
58
|
+
});
|
59
|
+
|
60
|
+
return {
|
61
|
+
markedHtml,
|
62
|
+
};
|
63
|
+
},
|
64
|
+
};
|
65
|
+
</script>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
content: {
|
3
|
+
type: StringConstructor;
|
4
|
+
default: () => "";
|
5
|
+
};
|
6
|
+
}, {
|
7
|
+
markedHtml: import("vue").ComputedRef<string>;
|
8
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
9
|
+
content: {
|
10
|
+
type: StringConstructor;
|
11
|
+
default: () => "";
|
12
|
+
};
|
13
|
+
}>>, {
|
14
|
+
content: string;
|
15
|
+
}>;
|
16
|
+
export default _default;
|
@@ -0,0 +1,89 @@
|
|
1
|
+
<template>
|
2
|
+
<span class="d-inline-block text-truncate mr-10 setmargin">
|
3
|
+
<span v-if="textPage.url" class="imprint-span imprint button">
|
4
|
+
<a :href="textPage.url" class="link" target="_blank"
|
5
|
+
>{{ $t(textPage.title) }} <span></span>
|
6
|
+
</a>
|
7
|
+
</span>
|
8
|
+
|
9
|
+
<span
|
10
|
+
v-else
|
11
|
+
class="imprint-span imprint button link"
|
12
|
+
@click="addTextPage()"
|
13
|
+
>{{ $t(textPage.title) }}</span
|
14
|
+
>
|
15
|
+
</span>
|
16
|
+
</template>
|
17
|
+
|
18
|
+
<style lang="scss" scoped>
|
19
|
+
.button {
|
20
|
+
cursor: pointer !important;
|
21
|
+
}
|
22
|
+
.setmargin {
|
23
|
+
margin-right: 2px !important;
|
24
|
+
}
|
25
|
+
.imprint {
|
26
|
+
margin-left: 2px;
|
27
|
+
}
|
28
|
+
.link {
|
29
|
+
text-decoration: underline;
|
30
|
+
}
|
31
|
+
.imprint-span {
|
32
|
+
font-size: smaller;
|
33
|
+
|
34
|
+
&:first-child::before {
|
35
|
+
content: '';
|
36
|
+
}
|
37
|
+
span {
|
38
|
+
font-size: inherit;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
</style>
|
42
|
+
|
43
|
+
<script>
|
44
|
+
import { inject } from 'vue';
|
45
|
+
import VcsTextPage from './VcsTextPage.vue';
|
46
|
+
import { vcsAppSymbol } from '../pluginHelper.js';
|
47
|
+
import { WindowSlot } from '../manager/window/windowManager.js';
|
48
|
+
|
49
|
+
export default {
|
50
|
+
name: 'VcsTextPageFooter',
|
51
|
+
components: {},
|
52
|
+
props: {
|
53
|
+
textPage: {
|
54
|
+
type: Object,
|
55
|
+
required: true,
|
56
|
+
},
|
57
|
+
windowId: {
|
58
|
+
type: String,
|
59
|
+
required: true,
|
60
|
+
},
|
61
|
+
},
|
62
|
+
setup(props) {
|
63
|
+
const app = inject('vcsApp');
|
64
|
+
const { content } = props.textPage;
|
65
|
+
|
66
|
+
function addTextPage() {
|
67
|
+
app.windowManager.add(
|
68
|
+
{
|
69
|
+
id: props.windowId,
|
70
|
+
component: VcsTextPage,
|
71
|
+
state: {
|
72
|
+
headerTitle: props.textPage.title,
|
73
|
+
},
|
74
|
+
slot: WindowSlot.DYNAMIC_RIGHT,
|
75
|
+
position: {
|
76
|
+
width: 600,
|
77
|
+
},
|
78
|
+
props: { content },
|
79
|
+
},
|
80
|
+
vcsAppSymbol,
|
81
|
+
);
|
82
|
+
}
|
83
|
+
|
84
|
+
return {
|
85
|
+
addTextPage,
|
86
|
+
};
|
87
|
+
},
|
88
|
+
};
|
89
|
+
</script>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
textPage: {
|
3
|
+
type: ObjectConstructor;
|
4
|
+
required: true;
|
5
|
+
};
|
6
|
+
windowId: {
|
7
|
+
type: StringConstructor;
|
8
|
+
required: true;
|
9
|
+
};
|
10
|
+
}, {
|
11
|
+
addTextPage: () => void;
|
12
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
13
|
+
textPage: {
|
14
|
+
type: ObjectConstructor;
|
15
|
+
required: true;
|
16
|
+
};
|
17
|
+
windowId: {
|
18
|
+
type: StringConstructor;
|
19
|
+
required: true;
|
20
|
+
};
|
21
|
+
}>>, {}>;
|
22
|
+
export default _default;
|
@@ -0,0 +1,64 @@
|
|
1
|
+
/**
|
2
|
+
* @typedef {Object} Attribution.Options
|
3
|
+
* @property {string} provider - name of the data provider
|
4
|
+
* @property {number} [year] - year of dataset
|
5
|
+
* @property {URL} url - link to data provider
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* @typedef {Object} AttributionEntry
|
9
|
+
* @property {string} key - name of the VcsObject the attribution applies to
|
10
|
+
* @property {string} title - title of the VcsObject the attribution applies to
|
11
|
+
* @property {Attribution.Options|Array<Attribution.Options>} attributions - attributions of a map, layer or oblique collection
|
12
|
+
*/
|
13
|
+
/**
|
14
|
+
* merges attribution entries of same providers
|
15
|
+
* @param {Array<AttributionEntry>} entries
|
16
|
+
* @returns {Array<{provider: string, years: string, url: URL}>}
|
17
|
+
*/
|
18
|
+
export function mergeAttributions(entries: Array<AttributionEntry>): Array<{
|
19
|
+
provider: string;
|
20
|
+
years: string;
|
21
|
+
url: URL;
|
22
|
+
}>;
|
23
|
+
/**
|
24
|
+
* Gets attributions of all active maps, layers and oblique collections and returns an array of entries.
|
25
|
+
* Each entry is defined by a key derived from the object's className and name, and it's associated attributions.
|
26
|
+
* Listens to state changes of maps, layers and oblique collections and synchronizes the entries array correspondingly.
|
27
|
+
* Returns a destroy function to clear listeners.
|
28
|
+
* @param {import("../vcsUiApp.js").default} app
|
29
|
+
* @returns {{entries: import("vue").Ref<Array<AttributionEntry>>, destroy: function():void}}
|
30
|
+
*/
|
31
|
+
export function getAttributions(app: import("../vcsUiApp.js").default): {
|
32
|
+
entries: import("vue").Ref<Array<AttributionEntry>>;
|
33
|
+
destroy: () => void;
|
34
|
+
};
|
35
|
+
export namespace Attribution {
|
36
|
+
type Options = {
|
37
|
+
/**
|
38
|
+
* - name of the data provider
|
39
|
+
*/
|
40
|
+
provider: string;
|
41
|
+
/**
|
42
|
+
* - year of dataset
|
43
|
+
*/
|
44
|
+
year?: number | undefined;
|
45
|
+
/**
|
46
|
+
* - link to data provider
|
47
|
+
*/
|
48
|
+
url: URL;
|
49
|
+
};
|
50
|
+
}
|
51
|
+
export type AttributionEntry = {
|
52
|
+
/**
|
53
|
+
* - name of the VcsObject the attribution applies to
|
54
|
+
*/
|
55
|
+
key: string;
|
56
|
+
/**
|
57
|
+
* - title of the VcsObject the attribution applies to
|
58
|
+
*/
|
59
|
+
title: string;
|
60
|
+
/**
|
61
|
+
* - attributions of a map, layer or oblique collection
|
62
|
+
*/
|
63
|
+
attributions: Attribution.Options | Array<Attribution.Options>;
|
64
|
+
};
|
@@ -58,7 +58,7 @@ export function mergeAttributions(entries) {
|
|
58
58
|
* Each entry is defined by a key derived from the object's className and name, and it's associated attributions.
|
59
59
|
* Listens to state changes of maps, layers and oblique collections and synchronizes the entries array correspondingly.
|
60
60
|
* Returns a destroy function to clear listeners.
|
61
|
-
* @param {import("
|
61
|
+
* @param {import("../vcsUiApp.js").default} app
|
62
62
|
* @returns {{entries: import("vue").Ref<Array<AttributionEntry>>, destroy: function():void}}
|
63
63
|
*/
|
64
64
|
export function getAttributions(app) {
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { marked } from 'marked';
|
2
|
+
import DOMPurify from 'dompurify';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @param {string} content
|
6
|
+
* @returns {string}
|
7
|
+
*/
|
8
|
+
// eslint-disable-next-line import/prefer-default-export
|
9
|
+
export function parseAndSanitizeMarkdown(content) {
|
10
|
+
return DOMPurify.sanitize(marked(content));
|
11
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
export default PositionDisplayInteraction;
|
2
|
+
export type PositionDisplayInteractionOptions = {
|
3
|
+
position: import("vue").Ref<import("ol/coordinate.js").Coordinate>;
|
4
|
+
/**
|
5
|
+
* - whether to be active on move or not
|
6
|
+
*/
|
7
|
+
move: boolean | null;
|
8
|
+
};
|
9
|
+
/**
|
10
|
+
* @typedef {Object} PositionDisplayInteractionOptions
|
11
|
+
* @property {import("vue").Ref<import("ol/coordinate.js").Coordinate>} position
|
12
|
+
* @property {?boolean} move - whether to be active on move or not
|
13
|
+
*/
|
14
|
+
/**
|
15
|
+
* @class
|
16
|
+
* @extends {import("@vcmap/core").AbstractInteraction}
|
17
|
+
*/
|
18
|
+
declare class PositionDisplayInteraction {
|
19
|
+
/**
|
20
|
+
* @param {PositionDisplayInteractionOptions} options
|
21
|
+
*/
|
22
|
+
constructor(options: PositionDisplayInteractionOptions);
|
23
|
+
/**
|
24
|
+
* @type {import("vue").Ref<import("ol/coordinate.js").Coordinate>}
|
25
|
+
*/
|
26
|
+
position: import("vue").Ref<import("ol/coordinate.js").Coordinate>;
|
27
|
+
/**
|
28
|
+
* @type {boolean}
|
29
|
+
*/
|
30
|
+
_move: boolean;
|
31
|
+
_defaultActive: number;
|
32
|
+
get move(): boolean;
|
33
|
+
/**
|
34
|
+
* @param {boolean} move
|
35
|
+
*/
|
36
|
+
setMove(move: boolean): void;
|
37
|
+
/**
|
38
|
+
* @param {import("@vcmap/core").InteractionEvent} event
|
39
|
+
* @returns {Promise<import("@vcmap/core").InteractionEvent>}
|
40
|
+
*/
|
41
|
+
pipe(event: import("@vcmap/core").InteractionEvent): Promise<import("@vcmap/core").InteractionEvent>;
|
42
|
+
}
|