@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,91 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
variant: {
|
3
|
+
type: StringConstructor;
|
4
|
+
default: string;
|
5
|
+
validator: (value: unknown) => boolean;
|
6
|
+
};
|
7
|
+
disabled: {
|
8
|
+
type: BooleanConstructor;
|
9
|
+
default: boolean;
|
10
|
+
};
|
11
|
+
loading: {
|
12
|
+
type: BooleanConstructor;
|
13
|
+
default: boolean;
|
14
|
+
};
|
15
|
+
hasUpdate: {
|
16
|
+
type: BooleanConstructor;
|
17
|
+
default: boolean;
|
18
|
+
};
|
19
|
+
icon: {
|
20
|
+
type: StringConstructor;
|
21
|
+
default: undefined;
|
22
|
+
};
|
23
|
+
tooltip: {
|
24
|
+
type: StringConstructor;
|
25
|
+
default: undefined;
|
26
|
+
};
|
27
|
+
tooltipPosition: {
|
28
|
+
type: StringConstructor;
|
29
|
+
default: string;
|
30
|
+
};
|
31
|
+
tooltipProps: {
|
32
|
+
type: ObjectConstructor;
|
33
|
+
default: () => {};
|
34
|
+
};
|
35
|
+
customClasses: {
|
36
|
+
type: ArrayConstructor;
|
37
|
+
default: () => never[];
|
38
|
+
};
|
39
|
+
}, {}, {}, {
|
40
|
+
classes(): any;
|
41
|
+
hasDefaultSlot(): boolean;
|
42
|
+
}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
43
|
+
variant: {
|
44
|
+
type: StringConstructor;
|
45
|
+
default: string;
|
46
|
+
validator: (value: unknown) => boolean;
|
47
|
+
};
|
48
|
+
disabled: {
|
49
|
+
type: BooleanConstructor;
|
50
|
+
default: boolean;
|
51
|
+
};
|
52
|
+
loading: {
|
53
|
+
type: BooleanConstructor;
|
54
|
+
default: boolean;
|
55
|
+
};
|
56
|
+
hasUpdate: {
|
57
|
+
type: BooleanConstructor;
|
58
|
+
default: boolean;
|
59
|
+
};
|
60
|
+
icon: {
|
61
|
+
type: StringConstructor;
|
62
|
+
default: undefined;
|
63
|
+
};
|
64
|
+
tooltip: {
|
65
|
+
type: StringConstructor;
|
66
|
+
default: undefined;
|
67
|
+
};
|
68
|
+
tooltipPosition: {
|
69
|
+
type: StringConstructor;
|
70
|
+
default: string;
|
71
|
+
};
|
72
|
+
tooltipProps: {
|
73
|
+
type: ObjectConstructor;
|
74
|
+
default: () => {};
|
75
|
+
};
|
76
|
+
customClasses: {
|
77
|
+
type: ArrayConstructor;
|
78
|
+
default: () => never[];
|
79
|
+
};
|
80
|
+
}>>, {
|
81
|
+
tooltip: string;
|
82
|
+
tooltipPosition: string;
|
83
|
+
disabled: boolean;
|
84
|
+
icon: string;
|
85
|
+
hasUpdate: boolean;
|
86
|
+
tooltipProps: Record<string, any>;
|
87
|
+
customClasses: unknown[];
|
88
|
+
variant: string;
|
89
|
+
loading: boolean;
|
90
|
+
}>;
|
91
|
+
export default _default;
|
@@ -87,6 +87,7 @@
|
|
87
87
|
* @vue-prop {string} tooltip - Text content of a tooltip which appears on hover with default delay.
|
88
88
|
* @vue-prop {('bottom' | 'left' | 'top' | 'right')} tooltipPosition - Position of the tooltip.
|
89
89
|
* @vue-prop {Object<string, any>} tooltipProps - Properties to be passed to VcsTooltip {@link https://vuetifyjs.com/en/api/v-tooltip/#props|vuetify v-tooltip}
|
90
|
+
* @vue-prop {string[]} [customClasses] - CSS classes to customize style
|
90
91
|
* @vue-computed {string} appliedColor - color applied to button, depending on size and state
|
91
92
|
* @vue-computed {Object<string, string>} classes - css classes applied to button, depending on size and state
|
92
93
|
* @vue-computed {boolean} hasDefaultSlot
|
@@ -135,6 +136,10 @@
|
|
135
136
|
type: Object,
|
136
137
|
default: () => ({}),
|
137
138
|
},
|
139
|
+
customClasses: {
|
140
|
+
type: Array,
|
141
|
+
default: () => [],
|
142
|
+
},
|
138
143
|
},
|
139
144
|
computed: {
|
140
145
|
appliedColor() {
|
@@ -146,6 +151,10 @@
|
|
146
151
|
},
|
147
152
|
classes() {
|
148
153
|
return {
|
154
|
+
...this.customClasses.reduce(
|
155
|
+
(acc, cur) => ({ ...acc, [cur]: true }),
|
156
|
+
{},
|
157
|
+
),
|
149
158
|
'vcs-tool-button--active-background':
|
150
159
|
this.active && this.background && !this.$attrs.disabled,
|
151
160
|
};
|
@@ -0,0 +1,91 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
active: {
|
3
|
+
type: BooleanConstructor;
|
4
|
+
default: boolean;
|
5
|
+
};
|
6
|
+
color: {
|
7
|
+
type: StringConstructor;
|
8
|
+
default: undefined;
|
9
|
+
};
|
10
|
+
background: {
|
11
|
+
type: BooleanConstructor;
|
12
|
+
default: boolean;
|
13
|
+
};
|
14
|
+
hasUpdate: {
|
15
|
+
type: BooleanConstructor;
|
16
|
+
default: boolean;
|
17
|
+
};
|
18
|
+
icon: {
|
19
|
+
type: StringConstructor;
|
20
|
+
default: undefined;
|
21
|
+
};
|
22
|
+
tooltip: {
|
23
|
+
type: StringConstructor;
|
24
|
+
default: undefined;
|
25
|
+
};
|
26
|
+
tooltipPosition: {
|
27
|
+
type: StringConstructor;
|
28
|
+
default: string;
|
29
|
+
};
|
30
|
+
tooltipProps: {
|
31
|
+
type: ObjectConstructor;
|
32
|
+
default: () => {};
|
33
|
+
};
|
34
|
+
customClasses: {
|
35
|
+
type: ArrayConstructor;
|
36
|
+
default: () => never[];
|
37
|
+
};
|
38
|
+
}, {}, {}, {
|
39
|
+
appliedColor(): any;
|
40
|
+
classes(): any;
|
41
|
+
hasDefaultSlot(): boolean;
|
42
|
+
isTextButton(): true | null;
|
43
|
+
}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
44
|
+
active: {
|
45
|
+
type: BooleanConstructor;
|
46
|
+
default: boolean;
|
47
|
+
};
|
48
|
+
color: {
|
49
|
+
type: StringConstructor;
|
50
|
+
default: undefined;
|
51
|
+
};
|
52
|
+
background: {
|
53
|
+
type: BooleanConstructor;
|
54
|
+
default: boolean;
|
55
|
+
};
|
56
|
+
hasUpdate: {
|
57
|
+
type: BooleanConstructor;
|
58
|
+
default: boolean;
|
59
|
+
};
|
60
|
+
icon: {
|
61
|
+
type: StringConstructor;
|
62
|
+
default: undefined;
|
63
|
+
};
|
64
|
+
tooltip: {
|
65
|
+
type: StringConstructor;
|
66
|
+
default: undefined;
|
67
|
+
};
|
68
|
+
tooltipPosition: {
|
69
|
+
type: StringConstructor;
|
70
|
+
default: string;
|
71
|
+
};
|
72
|
+
tooltipProps: {
|
73
|
+
type: ObjectConstructor;
|
74
|
+
default: () => {};
|
75
|
+
};
|
76
|
+
customClasses: {
|
77
|
+
type: ArrayConstructor;
|
78
|
+
default: () => never[];
|
79
|
+
};
|
80
|
+
}>>, {
|
81
|
+
tooltip: string;
|
82
|
+
tooltipPosition: string;
|
83
|
+
icon: string;
|
84
|
+
active: boolean;
|
85
|
+
hasUpdate: boolean;
|
86
|
+
background: boolean;
|
87
|
+
color: string;
|
88
|
+
tooltipProps: Record<string, any>;
|
89
|
+
customClasses: unknown[];
|
90
|
+
}>;
|
91
|
+
export default _default;
|
@@ -0,0 +1,329 @@
|
|
1
|
+
<template>
|
2
|
+
<VcsFormSection
|
3
|
+
:heading="title"
|
4
|
+
:expandable="expandable"
|
5
|
+
start-open
|
6
|
+
:header-actions="actions"
|
7
|
+
>
|
8
|
+
<v-container class="py-0 px-0">
|
9
|
+
<v-sheet v-if="items.length < 1" class="ma-2 pl-2">
|
10
|
+
{{ $t('components.flight.noAnchor') }}
|
11
|
+
<VcsButton
|
12
|
+
:icon="addAnchorAction.icon"
|
13
|
+
:tooltip="addAnchorAction.title"
|
14
|
+
@click.stop="addAnchorAction.callback()"
|
15
|
+
class="d-flex justify-center"
|
16
|
+
/>
|
17
|
+
</v-sheet>
|
18
|
+
<VcsList
|
19
|
+
v-else
|
20
|
+
:items="items"
|
21
|
+
:draggable="draggable"
|
22
|
+
:show-title="false"
|
23
|
+
@item-moved="move"
|
24
|
+
>
|
25
|
+
<!-- eslint-disable-next-line -->
|
26
|
+
<template #item.append-title="{ item, index }">
|
27
|
+
<VcsTextField
|
28
|
+
v-if="showDuration(index)"
|
29
|
+
v-model.number="item.duration"
|
30
|
+
type="number"
|
31
|
+
unit="s"
|
32
|
+
step="1"
|
33
|
+
:decimals="2"
|
34
|
+
:rules="[durationRule]"
|
35
|
+
no-padding
|
36
|
+
class="ml-auto"
|
37
|
+
style="width: 50px"
|
38
|
+
/>
|
39
|
+
</template>
|
40
|
+
<!-- eslint-disable-next-line -->
|
41
|
+
<template #item.intermediate="{ item, index }">
|
42
|
+
<VcsButton
|
43
|
+
:key="`item-intermediate-${index}`"
|
44
|
+
:icon="addAnchorAction.icon"
|
45
|
+
:tooltip="addAnchorAction.title"
|
46
|
+
@click.stop="addAnchorAction.callback(index + 1)"
|
47
|
+
class="d-flex justify-center z-index-99"
|
48
|
+
height="0"
|
49
|
+
/>
|
50
|
+
</template>
|
51
|
+
</VcsList>
|
52
|
+
</v-container>
|
53
|
+
</VcsFormSection>
|
54
|
+
</template>
|
55
|
+
<script>
|
56
|
+
import { computed, inject, onMounted, onUnmounted, ref } from 'vue';
|
57
|
+
import { VContainer, VSheet } from 'vuetify/lib';
|
58
|
+
import {
|
59
|
+
anchorFromViewpoint,
|
60
|
+
anchorToViewpoint,
|
61
|
+
Viewpoint,
|
62
|
+
} from '@vcmap/core';
|
63
|
+
import { Cartesian3 } from '@vcmap-cesium/engine';
|
64
|
+
import { createToggleAction } from '../../actions/actionHelper.js';
|
65
|
+
import VcsFormSection from '../form-inputs-controls/VcsFormSection.vue';
|
66
|
+
import VcsList from '../lists/VcsList.vue';
|
67
|
+
import VcsTextField from '../form-inputs-controls/VcsTextField.vue';
|
68
|
+
import VcsButton from '../buttons/VcsButton.vue';
|
69
|
+
import { moveItem } from '../../manager/collectionManager/CollectionComponentList.vue';
|
70
|
+
import CollectionComponentClass from '../../manager/collectionManager/collectionComponentClass.js';
|
71
|
+
import { WindowSlot } from '../../manager/window/windowManager.js';
|
72
|
+
import VcsViewpointEditor from '../viewpoint/VcsViewpointEditor.vue';
|
73
|
+
import { vcsAppSymbol } from '../../pluginHelper.js';
|
74
|
+
import { createFlightVisualizationAction } from '../../actions/flightActions.js';
|
75
|
+
import { getProvidedFlightInstance } from './composables.js';
|
76
|
+
|
77
|
+
/**
|
78
|
+
* calculate duration between two anchor based on speed and distance
|
79
|
+
* @param {import("@vcmap/core").FlightAnchor} anchor1
|
80
|
+
* @param {import("@vcmap/core").FlightAnchor} anchor2
|
81
|
+
* @param {number} [speed=300] velocity in m/s
|
82
|
+
* @returns {number}
|
83
|
+
*/
|
84
|
+
function calculateDuration(anchor1, anchor2, speed = 300) {
|
85
|
+
return (
|
86
|
+
Cartesian3.distance(
|
87
|
+
Cartesian3.fromDegrees(...anchor1.coordinate),
|
88
|
+
Cartesian3.fromDegrees(...anchor2.coordinate),
|
89
|
+
) / speed || 1
|
90
|
+
);
|
91
|
+
}
|
92
|
+
|
93
|
+
/**
|
94
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
95
|
+
* @param {import("@vcmap/core").IndexedCollection<import("@vcmap/core").FlightAnchor>} collection
|
96
|
+
* @returns {import("../../actions/actionHelper.js").VcsAction}
|
97
|
+
*/
|
98
|
+
function createAddAnchorAction(app, collection) {
|
99
|
+
return {
|
100
|
+
name: 'components.flight.addAnchor',
|
101
|
+
title: 'components.flight.addAnchor',
|
102
|
+
icon: '$vcsPlus',
|
103
|
+
callback(index = 0) {
|
104
|
+
const viewpoint = app.maps.activeMap.getViewpointSync();
|
105
|
+
const anchor = anchorFromViewpoint(viewpoint);
|
106
|
+
anchor.title = `Viewpoint ${collection.size + 1}`;
|
107
|
+
if (index > 0) {
|
108
|
+
const prevAnchor = collection.get(index - 1);
|
109
|
+
prevAnchor.duration = calculateDuration(prevAnchor, anchor);
|
110
|
+
if (index < collection.size) {
|
111
|
+
const nextAnchor = collection.get(index);
|
112
|
+
anchor.duration = calculateDuration(anchor, nextAnchor);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
collection.add(anchor, index);
|
116
|
+
},
|
117
|
+
};
|
118
|
+
}
|
119
|
+
|
120
|
+
/**
|
121
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
122
|
+
* @param {import("@vcmap/core").FlightAnchor} item
|
123
|
+
* @param {import("@vcmap/core").IndexedCollection<import("@vcmap/core").FlightAnchor>} collection
|
124
|
+
* @param {string} parentId
|
125
|
+
* @param {string} owner
|
126
|
+
* @returns {{action:import("../../actions/actionHelper.js").VcsAction, destroy: ()=>void}}
|
127
|
+
*/
|
128
|
+
function createEditAnchorAction(app, item, collection, parentId, owner) {
|
129
|
+
const { action, destroy } = createToggleAction(
|
130
|
+
{
|
131
|
+
name: 'edit-anchor',
|
132
|
+
icon: '$vcsEdit',
|
133
|
+
title: 'components.flight.editAnchor',
|
134
|
+
},
|
135
|
+
{
|
136
|
+
id: `edit-anchor-${item.name}`,
|
137
|
+
parentId,
|
138
|
+
component: VcsViewpointEditor,
|
139
|
+
slot: WindowSlot.DYNAMIC_CHILD,
|
140
|
+
state: {
|
141
|
+
headerTitle: 'components.flight.editAnchor',
|
142
|
+
headerIcon: '$vcsEdit',
|
143
|
+
},
|
144
|
+
props: {
|
145
|
+
getConfig() {
|
146
|
+
return anchorToViewpoint(item).toJSON();
|
147
|
+
},
|
148
|
+
setConfig(config) {
|
149
|
+
if (config) {
|
150
|
+
const idx = collection.indexOf(item);
|
151
|
+
// avoid shadows by remove
|
152
|
+
collection.remove(item);
|
153
|
+
collection.add(anchorFromViewpoint(new Viewpoint(config)), idx);
|
154
|
+
}
|
155
|
+
return Promise.resolve();
|
156
|
+
},
|
157
|
+
hideAnimate: true,
|
158
|
+
hideName: true,
|
159
|
+
},
|
160
|
+
},
|
161
|
+
app.windowManager,
|
162
|
+
owner,
|
163
|
+
);
|
164
|
+
return { action, destroy };
|
165
|
+
}
|
166
|
+
|
167
|
+
/**
|
168
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
169
|
+
* @param {import("@vcmap/core").FlightAnchor} item
|
170
|
+
* @returns {import("../../actions/actionHelper.js").VcsAction}
|
171
|
+
*/
|
172
|
+
function createZoomToAnchorAction(app, item) {
|
173
|
+
return {
|
174
|
+
name: 'components.flight.zoomToAnchor',
|
175
|
+
title: 'components.flight.zoomToAnchor',
|
176
|
+
callback() {
|
177
|
+
const viewpoint = anchorToViewpoint(item);
|
178
|
+
app.maps.activeMap?.gotoViewpoint(viewpoint);
|
179
|
+
},
|
180
|
+
};
|
181
|
+
}
|
182
|
+
|
183
|
+
/**
|
184
|
+
* @param {import("@vcmap/core").FlightAnchor} item
|
185
|
+
* @param {import("@vcmap/core").IndexedCollection<import("@vcmap/core").FlightAnchor>} collection
|
186
|
+
* @returns {import("../../actions/actionHelper.js").VcsAction}
|
187
|
+
*/
|
188
|
+
function creatRemoveAnchorAction(item, collection) {
|
189
|
+
return {
|
190
|
+
name: 'components.flight.removeAnchor',
|
191
|
+
title: 'components.flight.removeAnchor',
|
192
|
+
callback() {
|
193
|
+
collection.remove(item);
|
194
|
+
},
|
195
|
+
};
|
196
|
+
}
|
197
|
+
|
198
|
+
export function durationRule(value) {
|
199
|
+
if (Number.isFinite(value) && value > 0) {
|
200
|
+
return true;
|
201
|
+
}
|
202
|
+
return 'components.flight.invalidDuration';
|
203
|
+
}
|
204
|
+
|
205
|
+
/**
|
206
|
+
* @description A component for editing flight anchors.
|
207
|
+
* Requires a flightInstance to be provided via vue-provide.
|
208
|
+
* @vue-prop {string} [expandable=false] - anchors section expandable
|
209
|
+
* @vue-prop {string} [parentId] - id of the window, the VcsFlightComponent is used in
|
210
|
+
* @vue-prop {string} [owner] - owner of the window, e.g. a plugin name
|
211
|
+
*/
|
212
|
+
export default {
|
213
|
+
name: 'VcsFlightAnchorsComponent',
|
214
|
+
components: {
|
215
|
+
VcsButton,
|
216
|
+
VcsTextField,
|
217
|
+
VContainer,
|
218
|
+
VSheet,
|
219
|
+
VcsFormSection,
|
220
|
+
VcsList,
|
221
|
+
},
|
222
|
+
props: {
|
223
|
+
expandable: {
|
224
|
+
type: Boolean,
|
225
|
+
default: false,
|
226
|
+
},
|
227
|
+
parentId: {
|
228
|
+
type: String,
|
229
|
+
default: undefined,
|
230
|
+
},
|
231
|
+
owner: {
|
232
|
+
type: [String, Symbol],
|
233
|
+
default: vcsAppSymbol,
|
234
|
+
},
|
235
|
+
},
|
236
|
+
setup({ parentId, owner }) {
|
237
|
+
const app = inject('vcsApp');
|
238
|
+
const flightInstance = getProvidedFlightInstance();
|
239
|
+
const loop = ref(flightInstance.loop);
|
240
|
+
const loopChangedListener =
|
241
|
+
flightInstance.propertyChanged.addEventListener((prop) => {
|
242
|
+
if (prop === 'loop') {
|
243
|
+
loop.value = flightInstance.loop;
|
244
|
+
}
|
245
|
+
});
|
246
|
+
|
247
|
+
let flightVis;
|
248
|
+
|
249
|
+
const collectionComponent = new CollectionComponentClass(
|
250
|
+
{
|
251
|
+
title: 'components.flight.anchors',
|
252
|
+
draggable: true,
|
253
|
+
collection: flightInstance.anchors,
|
254
|
+
},
|
255
|
+
owner,
|
256
|
+
);
|
257
|
+
|
258
|
+
collectionComponent.addItemMapping({
|
259
|
+
mappingFunction: (item, c, listItem) => {
|
260
|
+
const { action: editAction, destroy: editDestroy } =
|
261
|
+
createEditAnchorAction(app, item, c.collection, parentId, owner);
|
262
|
+
listItem.actions = [
|
263
|
+
editAction,
|
264
|
+
createZoomToAnchorAction(app, item),
|
265
|
+
creatRemoveAnchorAction(item, c.collection),
|
266
|
+
];
|
267
|
+
const localDuration = ref(item.duration);
|
268
|
+
listItem.duration = computed({
|
269
|
+
get() {
|
270
|
+
return localDuration.value;
|
271
|
+
},
|
272
|
+
set(value) {
|
273
|
+
if (Number.isFinite(value) && value > 0) {
|
274
|
+
item.duration = value;
|
275
|
+
localDuration.value = value;
|
276
|
+
}
|
277
|
+
},
|
278
|
+
});
|
279
|
+
const durationListener = item.changed.addEventListener(() => {
|
280
|
+
localDuration.value = item.duration;
|
281
|
+
});
|
282
|
+
listItem.title = item.title ?? item.name;
|
283
|
+
listItem.destroyFunctions.push(editDestroy, durationListener);
|
284
|
+
},
|
285
|
+
owner,
|
286
|
+
});
|
287
|
+
|
288
|
+
onMounted(async () => {
|
289
|
+
flightVis = await createFlightVisualizationAction(app, flightInstance);
|
290
|
+
collectionComponent.addActions([
|
291
|
+
{
|
292
|
+
action: flightVis.action,
|
293
|
+
owner,
|
294
|
+
},
|
295
|
+
]);
|
296
|
+
});
|
297
|
+
|
298
|
+
onUnmounted(() => {
|
299
|
+
loopChangedListener();
|
300
|
+
flightVis?.destroy();
|
301
|
+
collectionComponent.destroy();
|
302
|
+
});
|
303
|
+
|
304
|
+
const addAnchorAction = createAddAnchorAction(
|
305
|
+
app,
|
306
|
+
collectionComponent.collection,
|
307
|
+
);
|
308
|
+
|
309
|
+
return {
|
310
|
+
addAnchorAction,
|
311
|
+
title: collectionComponent.title,
|
312
|
+
items: collectionComponent.items,
|
313
|
+
draggable: collectionComponent.draggable,
|
314
|
+
actions: collectionComponent.getActions(),
|
315
|
+
move({ item, targetIndex }) {
|
316
|
+
moveItem(collectionComponent, item, targetIndex);
|
317
|
+
},
|
318
|
+
durationRule,
|
319
|
+
showDuration(index) {
|
320
|
+
if (collectionComponent.items.value.length - 1 === index) {
|
321
|
+
return loop.value;
|
322
|
+
}
|
323
|
+
return true;
|
324
|
+
},
|
325
|
+
};
|
326
|
+
},
|
327
|
+
};
|
328
|
+
</script>
|
329
|
+
<style scoped lang="scss"></style>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
export function durationRule(value: any): true | "components.flight.invalidDuration";
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
expandable: {
|
4
|
+
type: BooleanConstructor;
|
5
|
+
default: boolean;
|
6
|
+
};
|
7
|
+
parentId: {
|
8
|
+
type: StringConstructor;
|
9
|
+
default: undefined;
|
10
|
+
};
|
11
|
+
owner: {
|
12
|
+
type: (SymbolConstructor | StringConstructor)[];
|
13
|
+
default: symbol;
|
14
|
+
};
|
15
|
+
}, {
|
16
|
+
addAnchorAction: import("../../actions/actionHelper.js").VcsAction;
|
17
|
+
title: import("vue").Ref<string>;
|
18
|
+
items: import("vue").Ref<import("../../manager/collectionManager/collectionComponentClass.js").CollectionComponentListItem[]>;
|
19
|
+
draggable: import("vue").Ref<boolean>;
|
20
|
+
actions: import("vue").ComputedRef<import("../../actions/actionHelper.js").VcsAction[]>;
|
21
|
+
move({ item, targetIndex }: {
|
22
|
+
item: any;
|
23
|
+
targetIndex: any;
|
24
|
+
}): void;
|
25
|
+
durationRule: typeof durationRule;
|
26
|
+
showDuration(index: any): boolean;
|
27
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
28
|
+
expandable: {
|
29
|
+
type: BooleanConstructor;
|
30
|
+
default: boolean;
|
31
|
+
};
|
32
|
+
parentId: {
|
33
|
+
type: StringConstructor;
|
34
|
+
default: undefined;
|
35
|
+
};
|
36
|
+
owner: {
|
37
|
+
type: (SymbolConstructor | StringConstructor)[];
|
38
|
+
default: symbol;
|
39
|
+
};
|
40
|
+
}>>, {
|
41
|
+
parentId: string;
|
42
|
+
owner: string | symbol;
|
43
|
+
expandable: boolean;
|
44
|
+
}>;
|
45
|
+
export default _default;
|