@vcmap/ui 5.0.2 → 5.1.0-rc.2
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 +32 -0
- package/dist/assets/{cesium.a3a1dc.js → cesium.b97c3b.js} +1859 -1828
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.bb64ed.js → core.5b03e5.js} +5859 -5041
- package/dist/assets/core.js +1 -1
- package/dist/assets/index-92075a75.js +1 -0
- package/dist/assets/{ol.833fa9.js → ol.0cd250.js} +7257 -7252
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.aeb2ec.css → ui.67779e.css} +2 -2
- package/dist/assets/{ui.aeb2ec.js → ui.67779e.js} +14199 -9198
- package/dist/assets/ui.js +1 -1
- package/dist/assets/{vue.8e1850.js → vue.62ecd5.js} +1243 -1234
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.3ed426.css → vuetify.3b3e23.css} +1 -1
- package/dist/assets/{vuetify.3ed426.js → vuetify.3b3e23.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 +6 -2
- 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
@@ -123,6 +123,12 @@
|
|
123
123
|
v-model="newItem.hasUpdate"
|
124
124
|
class="ma-0"
|
125
125
|
/>
|
126
|
+
<v-switch
|
127
|
+
dense
|
128
|
+
label="rename action"
|
129
|
+
v-model="newItem.renameAction"
|
130
|
+
class="ma-0"
|
131
|
+
/>
|
126
132
|
<v-switch
|
127
133
|
dense
|
128
134
|
label="console.log action"
|
@@ -151,9 +157,6 @@
|
|
151
157
|
<v-container class="py-1 px-1">
|
152
158
|
<v-row no-gutters>
|
153
159
|
<template v-if="selectable">
|
154
|
-
<v-col>
|
155
|
-
<vcs-form-button @click="selected = []"> Clear </vcs-form-button>
|
156
|
-
</v-col>
|
157
160
|
<v-col>
|
158
161
|
<v-switch
|
159
162
|
v-model="showSelection"
|
@@ -186,6 +189,7 @@
|
|
186
189
|
:title="title"
|
187
190
|
v-model="selected"
|
188
191
|
@item-moved="move"
|
192
|
+
@item-renamed="({ item, newTitle }) => (item.title = newTitle)"
|
189
193
|
/>
|
190
194
|
</v-sheet>
|
191
195
|
</template>
|
@@ -197,6 +201,7 @@
|
|
197
201
|
VcsTextField,
|
198
202
|
Icons,
|
199
203
|
VcsFormSection,
|
204
|
+
createListItemRenameAction,
|
200
205
|
} from '@vcmap/ui';
|
201
206
|
import {
|
202
207
|
VSwitch,
|
@@ -279,6 +284,7 @@
|
|
279
284
|
disabled: false,
|
280
285
|
visible: true,
|
281
286
|
icon: false,
|
287
|
+
renameAction: false,
|
282
288
|
action: false,
|
283
289
|
clicked: false,
|
284
290
|
selected: false,
|
@@ -316,15 +322,20 @@
|
|
316
322
|
item.icon = getRandomIcon();
|
317
323
|
}
|
318
324
|
|
325
|
+
item.actions = [];
|
326
|
+
|
327
|
+
if (newItem.value.renameAction) {
|
328
|
+
item.rename = false;
|
329
|
+
item.actions.push(createListItemRenameAction(item));
|
330
|
+
}
|
331
|
+
|
319
332
|
if (newItem.value.action) {
|
320
|
-
item.actions
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
console.log("hi, i'm: ", item.name);
|
325
|
-
},
|
333
|
+
item.actions.push({
|
334
|
+
name: 'console.log',
|
335
|
+
callback() {
|
336
|
+
console.log("hi, i'm: ", item.name);
|
326
337
|
},
|
327
|
-
|
338
|
+
});
|
328
339
|
}
|
329
340
|
|
330
341
|
if (newItem.value.clicked) {
|
@@ -349,6 +360,7 @@
|
|
349
360
|
disabled: false,
|
350
361
|
visible: true,
|
351
362
|
icon: false,
|
363
|
+
renameAction: false,
|
352
364
|
action: false,
|
353
365
|
clicked: false,
|
354
366
|
selected: false,
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<template>
|
2
|
+
<v-sheet class="pa-1">
|
3
|
+
<ul>
|
4
|
+
<li>Close window to get into background state.</li>
|
5
|
+
<li>Click tristate button to deactivate</li>
|
6
|
+
</ul>
|
7
|
+
</v-sheet>
|
8
|
+
</template>
|
9
|
+
|
10
|
+
<style scoped></style>
|
11
|
+
<script>
|
12
|
+
import { VSheet } from 'vuetify/lib';
|
13
|
+
|
14
|
+
export default {
|
15
|
+
name: 'WindowExampleContent',
|
16
|
+
components: { VSheet },
|
17
|
+
setup() {
|
18
|
+
return {};
|
19
|
+
},
|
20
|
+
};
|
21
|
+
</script>
|
@@ -0,0 +1,94 @@
|
|
1
|
+
import { reactive } from 'vue';
|
2
|
+
import TriStateExampleWindow from './TriStateExampleWindow.vue';
|
3
|
+
|
4
|
+
export const dummyToolboxAction = {
|
5
|
+
active: false,
|
6
|
+
currentIndex: 0,
|
7
|
+
_stop() {
|
8
|
+
console.log('stopping session', this._session);
|
9
|
+
this._session = null;
|
10
|
+
this.active = false;
|
11
|
+
},
|
12
|
+
_start() {
|
13
|
+
const startSession = (tool) => ({ type: tool });
|
14
|
+
this._session = startSession(this.tools[this.currentIndex].name);
|
15
|
+
this.active = true;
|
16
|
+
console.log('starting session', this._session);
|
17
|
+
},
|
18
|
+
callback() {
|
19
|
+
if (this.active) {
|
20
|
+
this._stop();
|
21
|
+
} else {
|
22
|
+
this._start();
|
23
|
+
}
|
24
|
+
},
|
25
|
+
selected(index) {
|
26
|
+
this.currentIndex = index;
|
27
|
+
if (this.active) {
|
28
|
+
this._session.type = this.tools[this.currentIndex].name;
|
29
|
+
console.log('updating active session', this._session);
|
30
|
+
} else {
|
31
|
+
this._start();
|
32
|
+
}
|
33
|
+
},
|
34
|
+
};
|
35
|
+
|
36
|
+
/**
|
37
|
+
*
|
38
|
+
* @param {import("@vcmap/ui").VcsUiApp} app
|
39
|
+
* @returns {{action:import("vue").Reactive<import("@vcmap/ui").VcsAction>, destroy: ()=>void}}
|
40
|
+
*/
|
41
|
+
export function createDummyTriStateAction(app) {
|
42
|
+
const windowComponent = {
|
43
|
+
id: 'tri-state-example',
|
44
|
+
state: {
|
45
|
+
headerTitle: 'Example Session Toggle',
|
46
|
+
},
|
47
|
+
component: TriStateExampleWindow,
|
48
|
+
};
|
49
|
+
|
50
|
+
const action = reactive({
|
51
|
+
name: 'tri-state-action',
|
52
|
+
title: 'tristate',
|
53
|
+
icon: 'mdi-state-machine',
|
54
|
+
active: false,
|
55
|
+
background: false,
|
56
|
+
callback() {
|
57
|
+
if (this.active) {
|
58
|
+
if (this.background) {
|
59
|
+
return app.windowManager.add(windowComponent, '@vcmap/test');
|
60
|
+
} else {
|
61
|
+
app.windowManager.remove(windowComponent.id);
|
62
|
+
this.active = false;
|
63
|
+
}
|
64
|
+
} else {
|
65
|
+
this.active = true;
|
66
|
+
return app.windowManager.add(windowComponent, '@vcmap/test');
|
67
|
+
}
|
68
|
+
return null;
|
69
|
+
},
|
70
|
+
});
|
71
|
+
|
72
|
+
const listeners = [
|
73
|
+
app.windowManager.added.addEventListener(({ id }) => {
|
74
|
+
if (id === windowComponent.id) {
|
75
|
+
action.active = true;
|
76
|
+
action.background = false;
|
77
|
+
}
|
78
|
+
}),
|
79
|
+
app.windowManager.removed.addEventListener(({ id }) => {
|
80
|
+
if (id === windowComponent.id) {
|
81
|
+
action.background = true;
|
82
|
+
}
|
83
|
+
}),
|
84
|
+
];
|
85
|
+
|
86
|
+
const destroy = () => {
|
87
|
+
if (app.windowManager.has(windowComponent.id)) {
|
88
|
+
app.windowManager.remove(windowComponent.id);
|
89
|
+
}
|
90
|
+
listeners.forEach((cb) => cb());
|
91
|
+
};
|
92
|
+
|
93
|
+
return { action, destroy };
|
94
|
+
}
|
@@ -0,0 +1,260 @@
|
|
1
|
+
import { ButtonLocation, ToolboxType } from '@vcmap/ui';
|
2
|
+
import { reactive, ref, watch } from 'vue';
|
3
|
+
import packageJSON from '../package.json';
|
4
|
+
import {
|
5
|
+
createDummyTriStateAction,
|
6
|
+
dummyToolboxAction,
|
7
|
+
} from './dummyToolboxActions.js';
|
8
|
+
|
9
|
+
function createToolboxChanger(app) {
|
10
|
+
const action = reactive({
|
11
|
+
name: 'Toolbox Changer',
|
12
|
+
active: false,
|
13
|
+
callback() {
|
14
|
+
if (app.toolboxManager.toolboxName !== packageJSON.name) {
|
15
|
+
app.toolboxManager.toolboxName = packageJSON.name;
|
16
|
+
} else {
|
17
|
+
app.toolboxManager.setDefaultToolboxName();
|
18
|
+
}
|
19
|
+
},
|
20
|
+
});
|
21
|
+
|
22
|
+
const destroy = app.toolboxManager.toolboxNameChanged.addEventListener(
|
23
|
+
(toolboxName) => {
|
24
|
+
action.active = toolboxName === packageJSON.name;
|
25
|
+
},
|
26
|
+
);
|
27
|
+
|
28
|
+
return {
|
29
|
+
action,
|
30
|
+
destroy,
|
31
|
+
};
|
32
|
+
}
|
33
|
+
|
34
|
+
/**
|
35
|
+
* @returns {VcsPlugin}
|
36
|
+
*/
|
37
|
+
export default async function toolboxExample() {
|
38
|
+
return {
|
39
|
+
get name() {
|
40
|
+
return packageJSON.name;
|
41
|
+
},
|
42
|
+
get version() {
|
43
|
+
return packageJSON.version;
|
44
|
+
},
|
45
|
+
get mapVersion() {
|
46
|
+
return packageJSON.mapVersion;
|
47
|
+
},
|
48
|
+
initialize(app) {
|
49
|
+
const { action, destroy } = createToolboxChanger(app);
|
50
|
+
app.navbarManager.add(
|
51
|
+
{ id: 'toolbox-changer', action },
|
52
|
+
packageJSON.name,
|
53
|
+
ButtonLocation.TOOL,
|
54
|
+
);
|
55
|
+
let toolboxListener = () => {};
|
56
|
+
if (app.toolboxManager.has('featureInfo')) {
|
57
|
+
app.toolboxManager
|
58
|
+
.get('featureInfo')
|
59
|
+
?.toolboxNames.push(packageJSON.name);
|
60
|
+
} else {
|
61
|
+
toolboxListener = app.toolboxManager.added.addEventListener(
|
62
|
+
(component) => {
|
63
|
+
if (component.id === 'featureInfo') {
|
64
|
+
component.toolboxNames.push(packageJSON.name);
|
65
|
+
}
|
66
|
+
},
|
67
|
+
);
|
68
|
+
}
|
69
|
+
this._destroyToolboxChanger = [destroy, toolboxListener];
|
70
|
+
|
71
|
+
const changedToolboxComponentExampleOptions = {
|
72
|
+
id: 'namedDingleSelect',
|
73
|
+
type: ToolboxType.SINGLE,
|
74
|
+
toolboxNames: [packageJSON.name],
|
75
|
+
action: {
|
76
|
+
name: 'select',
|
77
|
+
title: 'single select',
|
78
|
+
icon: 'mdi-eye',
|
79
|
+
active: false,
|
80
|
+
disabled: false,
|
81
|
+
callback() {
|
82
|
+
this.disabled = true;
|
83
|
+
setTimeout(() => {
|
84
|
+
this.disabled = false;
|
85
|
+
}, 2000);
|
86
|
+
},
|
87
|
+
},
|
88
|
+
};
|
89
|
+
app.toolboxManager.add(
|
90
|
+
changedToolboxComponentExampleOptions,
|
91
|
+
packageJSON.name,
|
92
|
+
);
|
93
|
+
},
|
94
|
+
onVcsAppMounted(app) {
|
95
|
+
const disabled = ref(false);
|
96
|
+
|
97
|
+
/**
|
98
|
+
* A toolbox button with toggle state
|
99
|
+
* Toggles disabled state of the other toolbox elements below (see watch)
|
100
|
+
* @type {import("@vcmap/ui").SingleToolboxComponentOptions}
|
101
|
+
*/
|
102
|
+
const singleToolboxComponentExampleOptions = {
|
103
|
+
id: 'singleToolboxExample',
|
104
|
+
type: ToolboxType.SINGLE,
|
105
|
+
action: {
|
106
|
+
name: 'single',
|
107
|
+
title: 'single toolbox example',
|
108
|
+
icon: 'mdi-numeric-1-box',
|
109
|
+
active: false,
|
110
|
+
callback() {
|
111
|
+
this.active = !this.active;
|
112
|
+
disabled.value = this.active;
|
113
|
+
this.icon = this.active
|
114
|
+
? 'mdi-numeric-1-box-outline'
|
115
|
+
: 'mdi-numeric-1-box';
|
116
|
+
},
|
117
|
+
},
|
118
|
+
};
|
119
|
+
app.toolboxManager.add(
|
120
|
+
singleToolboxComponentExampleOptions,
|
121
|
+
packageJSON.name,
|
122
|
+
);
|
123
|
+
|
124
|
+
/**
|
125
|
+
* @type {import("@vcmap/ui").ToolboxSelectAction}
|
126
|
+
*/
|
127
|
+
const selectToolboxAction = {
|
128
|
+
name: 'select',
|
129
|
+
title: 'select toolbox example',
|
130
|
+
...dummyToolboxAction,
|
131
|
+
disabled: false,
|
132
|
+
tools: [
|
133
|
+
{
|
134
|
+
name: 'pen',
|
135
|
+
title: 'select item 1',
|
136
|
+
icon: 'mdi-numeric-1-box',
|
137
|
+
},
|
138
|
+
{
|
139
|
+
name: 'object',
|
140
|
+
title: 'select item 2',
|
141
|
+
icon: 'mdi-numeric-2-box',
|
142
|
+
},
|
143
|
+
],
|
144
|
+
};
|
145
|
+
|
146
|
+
/**
|
147
|
+
* A select toolbox button with two tools
|
148
|
+
* @type {import("@vcmap/ui").SelectToolboxComponentOptions}
|
149
|
+
*/
|
150
|
+
const selectToolboxComponent = {
|
151
|
+
id: 'selectToolboxExample',
|
152
|
+
type: ToolboxType.SELECT,
|
153
|
+
action: selectToolboxAction,
|
154
|
+
};
|
155
|
+
app.toolboxManager.add(selectToolboxComponent, packageJSON.name);
|
156
|
+
|
157
|
+
/**
|
158
|
+
* A group toolbox button with three group items
|
159
|
+
* @type {import("@vcmap/ui").GroupToolboxComponentOptions}
|
160
|
+
*/
|
161
|
+
const groupToolboxComponentExampleOptions = {
|
162
|
+
id: 'groupToolboxExample',
|
163
|
+
type: ToolboxType.GROUP,
|
164
|
+
icon: 'mdi-numeric',
|
165
|
+
disabled: false,
|
166
|
+
title: 'group toolbox example',
|
167
|
+
};
|
168
|
+
app.toolboxManager.add(
|
169
|
+
groupToolboxComponentExampleOptions,
|
170
|
+
packageJSON.name,
|
171
|
+
);
|
172
|
+
|
173
|
+
/**
|
174
|
+
* @type {Array<import("@vcmap/ui").ButtonComponentOptions>}
|
175
|
+
*/
|
176
|
+
const buttonComponents = [
|
177
|
+
{
|
178
|
+
id: 'group-item-1',
|
179
|
+
action: {
|
180
|
+
name: 'group-action-1',
|
181
|
+
title: 'group action 1',
|
182
|
+
icon: 'mdi-numeric-1-box',
|
183
|
+
active: false,
|
184
|
+
callback() {
|
185
|
+
this.active = !this.active;
|
186
|
+
},
|
187
|
+
},
|
188
|
+
},
|
189
|
+
{
|
190
|
+
id: 'group-item-2',
|
191
|
+
action: {
|
192
|
+
name: 'group-action-2',
|
193
|
+
title: 'group action 2',
|
194
|
+
icon: 'mdi-numeric-2-box',
|
195
|
+
active: false,
|
196
|
+
callback() {
|
197
|
+
this.active = !this.active;
|
198
|
+
},
|
199
|
+
},
|
200
|
+
},
|
201
|
+
{
|
202
|
+
id: 'group-item-3',
|
203
|
+
action: {
|
204
|
+
name: 'group-action-3',
|
205
|
+
title: 'group action 3',
|
206
|
+
icon: 'mdi-numeric-3-box',
|
207
|
+
active: false,
|
208
|
+
disabled: true,
|
209
|
+
callback() {
|
210
|
+
this.active = !this.active;
|
211
|
+
},
|
212
|
+
},
|
213
|
+
},
|
214
|
+
];
|
215
|
+
const groupButtonManager = app.toolboxManager.get(
|
216
|
+
'groupToolboxExample',
|
217
|
+
).buttonManager;
|
218
|
+
buttonComponents.forEach((b) =>
|
219
|
+
groupButtonManager.add(b, packageJSON.name),
|
220
|
+
);
|
221
|
+
|
222
|
+
/**
|
223
|
+
* Updating disabled state of select and group toolbox button
|
224
|
+
* @type {import("vue").WatchStopHandle}
|
225
|
+
* @private
|
226
|
+
*/
|
227
|
+
this._stopWatching = watch(
|
228
|
+
() => disabled.value,
|
229
|
+
() => {
|
230
|
+
selectToolboxAction.disabled = disabled.value;
|
231
|
+
app.toolboxManager.get(
|
232
|
+
groupToolboxComponentExampleOptions.id,
|
233
|
+
).disabled = disabled.value;
|
234
|
+
},
|
235
|
+
);
|
236
|
+
|
237
|
+
const { action, destroy } = createDummyTriStateAction(app);
|
238
|
+
/**
|
239
|
+
* A toolbox button with tristate
|
240
|
+
* @type {import("@vcmap/ui").SingleToolboxComponentOptions}
|
241
|
+
*/
|
242
|
+
const tristateButton = {
|
243
|
+
id: 'tristateExample',
|
244
|
+
type: ToolboxType.SINGLE,
|
245
|
+
action,
|
246
|
+
};
|
247
|
+
app.toolboxManager.add(tristateButton, packageJSON.name);
|
248
|
+
|
249
|
+
this._destroyAction = destroy;
|
250
|
+
},
|
251
|
+
destroy() {
|
252
|
+
this._stopWatching();
|
253
|
+
this._destroyToolboxChanger.forEach((cb) => cb());
|
254
|
+
if (this._destroyAction) {
|
255
|
+
this._destroyAction();
|
256
|
+
this._destroyAction = null;
|
257
|
+
}
|
258
|
+
},
|
259
|
+
};
|
260
|
+
}
|
@@ -11,16 +11,24 @@
|
|
11
11
|
/>
|
12
12
|
</v-col>
|
13
13
|
</v-row>
|
14
|
-
<v-row>
|
14
|
+
<v-row no-gutters>
|
15
15
|
<v-col>
|
16
16
|
<VcsCheckbox v-model="hideDividers" label="Hide dividers" />
|
17
17
|
</v-col>
|
18
18
|
</v-row>
|
19
|
-
<v-row>
|
19
|
+
<v-row no-gutters>
|
20
20
|
<v-col>
|
21
21
|
<VcsCheckbox v-model="expandable" label="Expandable" />
|
22
22
|
</v-col>
|
23
23
|
</v-row>
|
24
|
+
<v-row no-gutters>
|
25
|
+
<v-col>
|
26
|
+
<VcsCheckbox
|
27
|
+
v-model="showReset"
|
28
|
+
label="Show reset vector properties"
|
29
|
+
/>
|
30
|
+
</v-col>
|
31
|
+
</v-row>
|
24
32
|
</v-container>
|
25
33
|
<VcsVectorPropertiesComponent
|
26
34
|
v-model="featureProperties"
|
@@ -29,6 +37,7 @@
|
|
29
37
|
:properties="propertiesToDisplay.map((item) => item.name)"
|
30
38
|
:hide-dividers="hideDividers"
|
31
39
|
:expandable="expandable"
|
40
|
+
:show-reset="showReset"
|
32
41
|
/>
|
33
42
|
</v-sheet>
|
34
43
|
</template>
|
@@ -122,6 +131,7 @@
|
|
122
131
|
propertiesToDisplay: ref([...propertiesToSelectFrom]),
|
123
132
|
hideDividers: ref(false),
|
124
133
|
expandable: ref(false),
|
134
|
+
showReset: ref(true),
|
125
135
|
};
|
126
136
|
},
|
127
137
|
};
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<template>
|
2
|
+
<v-sheet>
|
3
|
+
<VcsViewpointComponent v-model="viewpointOptions" />
|
4
|
+
<div class="d-flex gap-2 px-2 pt-2 pb-1">
|
5
|
+
<div class="d-flex gap-2 w-full justify-start">
|
6
|
+
<VcsFormButton icon="$vcsReturn" @click="reset" />
|
7
|
+
</div>
|
8
|
+
<div class="d-flex gap-2 w-full justify-end">
|
9
|
+
<VcsFormButton type="submit" variant="filled" @click="log">
|
10
|
+
Log ViewpointOptions
|
11
|
+
</VcsFormButton>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
</v-sheet>
|
15
|
+
</template>
|
16
|
+
|
17
|
+
<script>
|
18
|
+
import { VSheet } from 'vuetify/lib';
|
19
|
+
import { inject, ref } from 'vue';
|
20
|
+
import { VcsViewpointComponent, VcsFormButton } from '@vcmap/ui';
|
21
|
+
import { Viewpoint } from '@vcmap/core';
|
22
|
+
|
23
|
+
export default {
|
24
|
+
name: 'ViewpointExample',
|
25
|
+
components: {
|
26
|
+
VcsFormButton,
|
27
|
+
VSheet,
|
28
|
+
VcsViewpointComponent,
|
29
|
+
},
|
30
|
+
setup() {
|
31
|
+
const app = inject('vcsApp');
|
32
|
+
const defaultViewpointOptions =
|
33
|
+
app.maps.activeMap?.getViewpointSync()?.toJSON() ||
|
34
|
+
Viewpoint.getDefaultOptions();
|
35
|
+
|
36
|
+
const viewpointOptions = ref(structuredClone(defaultViewpointOptions));
|
37
|
+
|
38
|
+
return {
|
39
|
+
viewpointOptions,
|
40
|
+
reset() {
|
41
|
+
viewpointOptions.value = structuredClone(defaultViewpointOptions);
|
42
|
+
app.maps.activeMap.gotoViewpoint(
|
43
|
+
new Viewpoint(viewpointOptions.value),
|
44
|
+
);
|
45
|
+
},
|
46
|
+
log() {
|
47
|
+
console.log({ ...viewpointOptions.value });
|
48
|
+
},
|
49
|
+
};
|
50
|
+
},
|
51
|
+
};
|
52
|
+
</script>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { WindowSlot, createToggleAction, ButtonLocation } from '@vcmap/ui';
|
2
|
+
import packageJSON from '../package.json';
|
3
|
+
import component from './ViewpointExample.vue';
|
4
|
+
|
5
|
+
export default function viewpointExamplePlugin() {
|
6
|
+
return {
|
7
|
+
get name() {
|
8
|
+
return packageJSON.name;
|
9
|
+
},
|
10
|
+
get version() {
|
11
|
+
return packageJSON.version;
|
12
|
+
},
|
13
|
+
get mapVersion() {
|
14
|
+
return packageJSON.mapVersion;
|
15
|
+
},
|
16
|
+
initialize(vcsApp) {
|
17
|
+
const { action, destroy } = createToggleAction(
|
18
|
+
{
|
19
|
+
name: 'Viewpoint Example',
|
20
|
+
icon: '$vcsPoi',
|
21
|
+
},
|
22
|
+
{
|
23
|
+
id: 'viewpoint-component-example',
|
24
|
+
state: {
|
25
|
+
headerTitle: 'Viewpoint Example',
|
26
|
+
headerIcon: '$vcsPoi',
|
27
|
+
},
|
28
|
+
component,
|
29
|
+
slot: WindowSlot.DYNAMIC_LEFT,
|
30
|
+
},
|
31
|
+
vcsApp.windowManager,
|
32
|
+
packageJSON.name,
|
33
|
+
);
|
34
|
+
vcsApp.navbarManager.add(
|
35
|
+
{ id: 'viewpoint-component-example', action },
|
36
|
+
packageJSON.name,
|
37
|
+
ButtonLocation.TOOL,
|
38
|
+
);
|
39
|
+
this.destroy = destroy;
|
40
|
+
},
|
41
|
+
};
|
42
|
+
}
|
@@ -20,8 +20,8 @@
|
|
20
20
|
import { getLogger } from '@vcsuite/logger';
|
21
21
|
|
22
22
|
import { WindowSlot, VcsFormButton } from '@vcmap/ui';
|
23
|
-
import WindowExampleToggleChild from './WindowExampleToggleChild.vue';
|
24
23
|
import WindowExampleContent from './WindowExampleContent.vue';
|
24
|
+
import WindowExampleToggleChild from './WindowExampleToggleChild.vue';
|
25
25
|
import MyCustomHeader from './MyCustomHeader.vue';
|
26
26
|
import EmptyComponent from './EmptyComponent.vue';
|
27
27
|
import { name as owner } from '../package.json';
|
@@ -147,6 +147,36 @@
|
|
147
147
|
maxWidth: '1000px',
|
148
148
|
},
|
149
149
|
},
|
150
|
+
{
|
151
|
+
id: 'child-dynamicRight',
|
152
|
+
parentId: 'dynamicRight',
|
153
|
+
state: {
|
154
|
+
headerTitle: 'Example dynamicRight dynamicChild',
|
155
|
+
headerIcon: 'mdi-human-child',
|
156
|
+
},
|
157
|
+
component: WindowExampleContent,
|
158
|
+
slot: WindowSlot.DYNAMIC_CHILD,
|
159
|
+
},
|
160
|
+
{
|
161
|
+
id: 'child-dynamicLeft',
|
162
|
+
parentId: 'dynamicLeft',
|
163
|
+
state: {
|
164
|
+
headerTitle: 'Example dynamicLeft dynamicChild',
|
165
|
+
headerIcon: 'mdi-human-child',
|
166
|
+
},
|
167
|
+
component: WindowExampleContent,
|
168
|
+
slot: WindowSlot.DYNAMIC_CHILD,
|
169
|
+
},
|
170
|
+
{
|
171
|
+
id: 'child-dynamicLeft2',
|
172
|
+
parentId: 'dynamicLeft',
|
173
|
+
state: {
|
174
|
+
headerTitle: 'Example dynamicLeft dynamicChild',
|
175
|
+
headerIcon: 'mdi-human-child',
|
176
|
+
},
|
177
|
+
component: WindowExampleContent,
|
178
|
+
slot: WindowSlot.DYNAMIC_CHILD,
|
179
|
+
},
|
150
180
|
];
|
151
181
|
|
152
182
|
onUnmounted(() => {
|