@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
@@ -0,0 +1,87 @@
|
|
1
|
+
<template>
|
2
|
+
<AbstractConfigEditor
|
3
|
+
@submit="apply"
|
4
|
+
@cancel="cancel"
|
5
|
+
@reset="reset"
|
6
|
+
:auto-close="false"
|
7
|
+
v-bind="{ ...$attrs, ...$props }"
|
8
|
+
>
|
9
|
+
<VcsViewpointComponent v-model="localConfig" hide-name />
|
10
|
+
</AbstractConfigEditor>
|
11
|
+
</template>
|
12
|
+
|
13
|
+
<script>
|
14
|
+
import { inject, onUnmounted, ref } from 'vue';
|
15
|
+
import { getLogger } from '@vcsuite/logger';
|
16
|
+
import deepEqual from 'fast-deep-equal';
|
17
|
+
import AbstractConfigEditor from '../plugins/AbstractConfigEditor.vue';
|
18
|
+
import VcsViewpointComponent, {
|
19
|
+
gotoViewpointOptions,
|
20
|
+
} from './VcsViewpointComponent.vue';
|
21
|
+
|
22
|
+
/**
|
23
|
+
* An editor component for viewpoints using AbstractConfigEditor and VcsViewpointComponent
|
24
|
+
* @vue-prop {() => import("@vcmap/core").ViewpointOptions} getConfig
|
25
|
+
* @vue-prop {(import("@vcmap/core").ViewpointOptions) => Promise<void>} setConfig
|
26
|
+
*/
|
27
|
+
export default {
|
28
|
+
name: 'VcsViewpointEditor',
|
29
|
+
components: {
|
30
|
+
AbstractConfigEditor,
|
31
|
+
VcsViewpointComponent,
|
32
|
+
},
|
33
|
+
props: {
|
34
|
+
getConfig: {
|
35
|
+
type: Function,
|
36
|
+
required: true,
|
37
|
+
},
|
38
|
+
setConfig: {
|
39
|
+
type: Function,
|
40
|
+
required: true,
|
41
|
+
},
|
42
|
+
},
|
43
|
+
setup(props, { emit }) {
|
44
|
+
const app = inject('vcsApp');
|
45
|
+
const localConfig = ref(props.getConfig());
|
46
|
+
const originalConfig = structuredClone(props.getConfig());
|
47
|
+
let cancel = false;
|
48
|
+
|
49
|
+
async function gotoViewpoint() {
|
50
|
+
await gotoViewpointOptions(app, localConfig.value);
|
51
|
+
}
|
52
|
+
|
53
|
+
async function reset() {
|
54
|
+
localConfig.value = props.getConfig();
|
55
|
+
await gotoViewpoint();
|
56
|
+
}
|
57
|
+
|
58
|
+
gotoViewpoint().catch((err) =>
|
59
|
+
getLogger('ViewpointEditor.vue').error(err),
|
60
|
+
);
|
61
|
+
|
62
|
+
onUnmounted(() => {
|
63
|
+
if (
|
64
|
+
!cancel &&
|
65
|
+
!deepEqual(originalConfig, structuredClone(localConfig.value))
|
66
|
+
) {
|
67
|
+
props.setConfig(localConfig.value);
|
68
|
+
}
|
69
|
+
});
|
70
|
+
|
71
|
+
return {
|
72
|
+
localConfig,
|
73
|
+
apply() {
|
74
|
+
emit('close');
|
75
|
+
},
|
76
|
+
async cancel() {
|
77
|
+
await reset();
|
78
|
+
cancel = true;
|
79
|
+
emit('close');
|
80
|
+
},
|
81
|
+
reset,
|
82
|
+
};
|
83
|
+
},
|
84
|
+
};
|
85
|
+
</script>
|
86
|
+
|
87
|
+
<style scoped></style>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
getConfig: {
|
3
|
+
type: FunctionConstructor;
|
4
|
+
required: true;
|
5
|
+
};
|
6
|
+
setConfig: {
|
7
|
+
type: FunctionConstructor;
|
8
|
+
required: true;
|
9
|
+
};
|
10
|
+
}, {
|
11
|
+
localConfig: any;
|
12
|
+
apply(): void;
|
13
|
+
cancel(): Promise<void>;
|
14
|
+
reset: () => Promise<void>;
|
15
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
16
|
+
getConfig: {
|
17
|
+
type: FunctionConstructor;
|
18
|
+
required: true;
|
19
|
+
};
|
20
|
+
setConfig: {
|
21
|
+
type: FunctionConstructor;
|
22
|
+
required: true;
|
23
|
+
};
|
24
|
+
}>>, {}>;
|
25
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
windowState: {
|
3
|
+
type: ObjectConstructor;
|
4
|
+
required: true;
|
5
|
+
};
|
6
|
+
}, {
|
7
|
+
tree: any;
|
8
|
+
open: any;
|
9
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
10
|
+
windowState: {
|
11
|
+
type: ObjectConstructor;
|
12
|
+
required: true;
|
13
|
+
};
|
14
|
+
}>>, {}>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,113 @@
|
|
1
|
+
/**
|
2
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
3
|
+
* @returns {import("@vcmap/core").OverrideCollection<ContentTreeItem, ContentTreeCollection>}
|
4
|
+
*/
|
5
|
+
export function createContentTreeCollection(app: import("@src/vcsUiApp.js").default): import("@vcmap/core").OverrideCollection<ContentTreeItem, ContentTreeCollection>;
|
6
|
+
export default ContentTreeCollection;
|
7
|
+
export type ParentTreeViewItem = {
|
8
|
+
treeViewItem?: import("./contentTreeItem.js").TreeViewItem | undefined;
|
9
|
+
children: Map<string, ParentTreeViewItem>;
|
10
|
+
};
|
11
|
+
import ContentTreeItem from './contentTreeItem.js';
|
12
|
+
/**
|
13
|
+
* @typedef {Object} ParentTreeViewItem
|
14
|
+
* @property {import("./contentTreeItem.js").TreeViewItem} [treeViewItem]
|
15
|
+
* @property {Map<string, ParentTreeViewItem>} children
|
16
|
+
*/
|
17
|
+
/**
|
18
|
+
* @extends {IndexedCollection<ContentTreeItem>}
|
19
|
+
*/
|
20
|
+
declare class ContentTreeCollection extends IndexedCollection<ContentTreeItem> {
|
21
|
+
/**
|
22
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
23
|
+
*/
|
24
|
+
constructor(app: import("@src/vcsUiApp.js").default);
|
25
|
+
/**
|
26
|
+
* @type {import("@src/vcsUiApp.js").default}
|
27
|
+
* @private
|
28
|
+
*/
|
29
|
+
private _app;
|
30
|
+
/**
|
31
|
+
* A map of all item weightChanged listeners
|
32
|
+
* @type {Map<string, function():void>}
|
33
|
+
* @private
|
34
|
+
*/
|
35
|
+
private _weightListeners;
|
36
|
+
/**
|
37
|
+
* @type {Array<function():void>}
|
38
|
+
* @private
|
39
|
+
*/
|
40
|
+
private _listeners;
|
41
|
+
/**
|
42
|
+
* This is the default content tree.
|
43
|
+
* @type {SubContentTreeItem}
|
44
|
+
* @private
|
45
|
+
*/
|
46
|
+
private _defaultSubtreeItem;
|
47
|
+
/**
|
48
|
+
* @type {import("vue").Ref<Map<string, import("./contentTreeItem.js").TreeViewItem>>}
|
49
|
+
* @private
|
50
|
+
*/
|
51
|
+
private _subTreeViewItems;
|
52
|
+
/**
|
53
|
+
* The subtree content action button destroy handlers
|
54
|
+
* @type {Map<string, function():void>}
|
55
|
+
* @private
|
56
|
+
*/
|
57
|
+
private _subTreeListeners;
|
58
|
+
/**
|
59
|
+
* @type {boolean}
|
60
|
+
* @private
|
61
|
+
*/
|
62
|
+
private _suspendListeners;
|
63
|
+
/**
|
64
|
+
* @private
|
65
|
+
*/
|
66
|
+
private _clearSubTrees;
|
67
|
+
/**
|
68
|
+
* @param {import("./contentTreeItem.js").TreeViewItem} subTreeViewItem
|
69
|
+
* @param {WindowSlot} [slot]
|
70
|
+
* @returns {function():void}
|
71
|
+
* @private
|
72
|
+
*/
|
73
|
+
private _createSubtreeActionButton;
|
74
|
+
/**
|
75
|
+
* @param {boolean} [resetSubtreeButtons=false]
|
76
|
+
* @private
|
77
|
+
*/
|
78
|
+
private _setTreeView;
|
79
|
+
/**
|
80
|
+
* Returns all managed subtrees. Entries are not persisted and will change, if the trees get recalculated.
|
81
|
+
* @type {import("vue").Ref<Map<string, import("./contentTreeItem.js").TreeViewItem>>}
|
82
|
+
*/
|
83
|
+
get subTreeViewItems(): import("vue").Ref<Map<string, import("./contentTreeItem.js").TreeViewItem>>;
|
84
|
+
/**
|
85
|
+
* All ids of the currently managed subtrees.
|
86
|
+
* The first ID is always the default tree. Other ids are subtree ids.
|
87
|
+
* Order of ids is dependent on their position in the collection and weight.
|
88
|
+
* @type {Array<string>}
|
89
|
+
*/
|
90
|
+
get subTreeIds(): string[];
|
91
|
+
/**
|
92
|
+
* @param {string} id
|
93
|
+
* @returns {import("vue").ComputedRef<Array<import("./contentTreeItem.js").TreeViewItem>>}
|
94
|
+
*/
|
95
|
+
getComputedVisibleTree(id: string): import("vue").ComputedRef<Array<import("./contentTreeItem.js").TreeViewItem>>;
|
96
|
+
/**
|
97
|
+
* @param {string} id
|
98
|
+
* @returns {import("./contentTreeItem.js").TreeViewItem}
|
99
|
+
* @private
|
100
|
+
*/
|
101
|
+
private _getSubTree;
|
102
|
+
/**
|
103
|
+
* @param {string} id
|
104
|
+
* @returns {Array<ContentTreeItem>}
|
105
|
+
*/
|
106
|
+
getChildrenForSubTree(id: string): Array<ContentTreeItem>;
|
107
|
+
/**
|
108
|
+
* @param {string} id
|
109
|
+
* @returns {import("vue").Ref<Array<string>>}
|
110
|
+
*/
|
111
|
+
getTreeOpenStateRef(id: string): import("vue").Ref<Array<string>>;
|
112
|
+
}
|
113
|
+
import { IndexedCollection } from '@vcmap/core';
|
@@ -21,7 +21,7 @@ const subTreeItemWeight = Symbol('SubTreeItemWeight');
|
|
21
21
|
|
22
22
|
/**
|
23
23
|
* @typedef {Object} ParentTreeViewItem
|
24
|
-
* @property {TreeViewItem} [treeViewItem]
|
24
|
+
* @property {import("./contentTreeItem.js").TreeViewItem} [treeViewItem]
|
25
25
|
* @property {Map<string, ParentTreeViewItem>} children
|
26
26
|
*/
|
27
27
|
|
@@ -30,12 +30,12 @@ const subTreeItemWeight = Symbol('SubTreeItemWeight');
|
|
30
30
|
*/
|
31
31
|
class ContentTreeCollection extends IndexedCollection {
|
32
32
|
/**
|
33
|
-
* @param {
|
33
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
34
34
|
*/
|
35
35
|
constructor(app) {
|
36
36
|
super();
|
37
37
|
/**
|
38
|
-
* @type {
|
38
|
+
* @type {import("@src/vcsUiApp.js").default}
|
39
39
|
* @private
|
40
40
|
*/
|
41
41
|
this._app = app;
|
@@ -89,7 +89,7 @@ class ContentTreeCollection extends IndexedCollection {
|
|
89
89
|
app,
|
90
90
|
);
|
91
91
|
/**
|
92
|
-
* @type {import("vue").Ref<Map<string, TreeViewItem>>}
|
92
|
+
* @type {import("vue").Ref<Map<string, import("./contentTreeItem.js").TreeViewItem>>}
|
93
93
|
* @private
|
94
94
|
*/
|
95
95
|
this._subTreeViewItems = ref(new Map());
|
@@ -117,7 +117,7 @@ class ContentTreeCollection extends IndexedCollection {
|
|
117
117
|
}
|
118
118
|
|
119
119
|
/**
|
120
|
-
* @param {TreeViewItem} subTreeViewItem
|
120
|
+
* @param {import("./contentTreeItem.js").TreeViewItem} subTreeViewItem
|
121
121
|
* @param {WindowSlot} [slot]
|
122
122
|
* @returns {function():void}
|
123
123
|
* @private
|
@@ -242,8 +242,7 @@ class ContentTreeCollection extends IndexedCollection {
|
|
242
242
|
|
243
243
|
/**
|
244
244
|
* Returns all managed subtrees. Entries are not persisted and will change, if the trees get recalculated.
|
245
|
-
* @type {import("vue").Ref<Map<string, TreeViewItem>>}
|
246
|
-
* @readonly
|
245
|
+
* @type {import("vue").Ref<Map<string, import("./contentTreeItem.js").TreeViewItem>>}
|
247
246
|
*/
|
248
247
|
get subTreeViewItems() {
|
249
248
|
return this._subTreeViewItems;
|
@@ -254,7 +253,6 @@ class ContentTreeCollection extends IndexedCollection {
|
|
254
253
|
* The first ID is always the default tree. Other ids are subtree ids.
|
255
254
|
* Order of ids is dependent on their position in the collection and weight.
|
256
255
|
* @type {Array<string>}
|
257
|
-
* @readonly
|
258
256
|
*/
|
259
257
|
get subTreeIds() {
|
260
258
|
const [defaultItem, ...rest] = [...this._subTreeViewItems.value.entries()];
|
@@ -269,7 +267,7 @@ class ContentTreeCollection extends IndexedCollection {
|
|
269
267
|
|
270
268
|
/**
|
271
269
|
* @param {string} id
|
272
|
-
* @returns {import("vue").ComputedRef<Array<TreeViewItem>>}
|
270
|
+
* @returns {import("vue").ComputedRef<Array<import("./contentTreeItem.js").TreeViewItem>>}
|
273
271
|
*/
|
274
272
|
getComputedVisibleTree(id) {
|
275
273
|
return computed(() => {
|
@@ -283,7 +281,7 @@ class ContentTreeCollection extends IndexedCollection {
|
|
283
281
|
|
284
282
|
/**
|
285
283
|
* @param {string} id
|
286
|
-
* @returns {TreeViewItem}
|
284
|
+
* @returns {import("./contentTreeItem.js").TreeViewItem}
|
287
285
|
* @private
|
288
286
|
*/
|
289
287
|
_getSubTree(id) {
|
@@ -347,16 +345,8 @@ class ContentTreeCollection extends IndexedCollection {
|
|
347
345
|
export default ContentTreeCollection;
|
348
346
|
|
349
347
|
/**
|
350
|
-
*
|
351
|
-
* @
|
352
|
-
* @extends {ContentTreeCollection}
|
353
|
-
*/
|
354
|
-
// eslint-disable-next-line no-unused-vars
|
355
|
-
class OverrideContentTreeCollection extends ContentTreeCollection {}
|
356
|
-
|
357
|
-
/**
|
358
|
-
* @param {VcsUiApp} app
|
359
|
-
* @returns {OverrideContentTreeCollection}
|
348
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
349
|
+
* @returns {import("@vcmap/core").OverrideCollection<ContentTreeItem, ContentTreeCollection>}
|
360
350
|
*/
|
361
351
|
export function createContentTreeCollection(app) {
|
362
352
|
const collection = new ContentTreeCollection(app);
|
@@ -0,0 +1,334 @@
|
|
1
|
+
/**
|
2
|
+
* @type {ClassRegistry<import("@vcmap/core").Ctor<typeof ContentTreeItem>>}
|
3
|
+
*/
|
4
|
+
export const contentTreeClassRegistry: ClassRegistry<import("@vcmap/core").Ctor<typeof ContentTreeItem>>;
|
5
|
+
export default ContentTreeItem;
|
6
|
+
export type ContentTreeItemOptions = {
|
7
|
+
type?: string | undefined;
|
8
|
+
/**
|
9
|
+
* - name of the item defining the structure within the tree using dot notation.
|
10
|
+
*/
|
11
|
+
name: string;
|
12
|
+
/**
|
13
|
+
* - may be unset, if set from object properties later on. required otherwise
|
14
|
+
*/
|
15
|
+
title?: string | undefined;
|
16
|
+
/**
|
17
|
+
* - may be unset or set from object properties later on.
|
18
|
+
*/
|
19
|
+
tooltip?: string | undefined;
|
20
|
+
/**
|
21
|
+
* - an icon URL or element to display.
|
22
|
+
*/
|
23
|
+
icon?: string | HTMLCanvasElement | HTMLImageElement | undefined;
|
24
|
+
/**
|
25
|
+
* - optional weighting of the item. higher weights come first.
|
26
|
+
*/
|
27
|
+
weight?: number | undefined;
|
28
|
+
/**
|
29
|
+
* - optional info url providing link with additional information.
|
30
|
+
*/
|
31
|
+
infoUrl?: string | undefined;
|
32
|
+
/**
|
33
|
+
* - groups being initially open or not.
|
34
|
+
*/
|
35
|
+
initOpen?: boolean | undefined;
|
36
|
+
/**
|
37
|
+
* - optional callback actions executed on click
|
38
|
+
*/
|
39
|
+
onClick?: import("../callback/vcsCallback.js").VcsCallbackOptions | undefined;
|
40
|
+
/**
|
41
|
+
* - optional callback actions executed on activation of the item
|
42
|
+
*/
|
43
|
+
onActivate?: import("../callback/vcsCallback.js").VcsCallbackOptions | undefined;
|
44
|
+
/**
|
45
|
+
* - optional callback actions executed on deactivation of the item
|
46
|
+
*/
|
47
|
+
onDeactivate?: import("../callback/vcsCallback.js").VcsCallbackOptions | undefined;
|
48
|
+
};
|
49
|
+
/**
|
50
|
+
* A readonly rendering interface of a ContentTreeItem.
|
51
|
+
*/
|
52
|
+
export type TreeViewItem = {
|
53
|
+
name: string;
|
54
|
+
/**
|
55
|
+
* - Whether to display this item or not.
|
56
|
+
*/
|
57
|
+
visible: boolean;
|
58
|
+
/**
|
59
|
+
* - Whether this item reacts to click events, e.g. with visual feedback
|
60
|
+
*/
|
61
|
+
clickable: boolean;
|
62
|
+
/**
|
63
|
+
* - Whether this item should be displayed as disabled.
|
64
|
+
*/
|
65
|
+
disabled: boolean;
|
66
|
+
/**
|
67
|
+
* - The state of this item. NONE if this item cannot have a state.
|
68
|
+
*/
|
69
|
+
state: StateActionState;
|
70
|
+
/**
|
71
|
+
* - The title to be displayed
|
72
|
+
*/
|
73
|
+
title: string;
|
74
|
+
tooltip?: string | undefined;
|
75
|
+
/**
|
76
|
+
* - An optional icon to display with this item. Can be an URL or HTMLElement.
|
77
|
+
*/
|
78
|
+
icon?: string | HTMLCanvasElement | HTMLImageElement | undefined;
|
79
|
+
actions: Array<import("../actions/actionHelper.js").VcsAction>;
|
80
|
+
children: Array<TreeViewItem>;
|
81
|
+
/**
|
82
|
+
* - computed property
|
83
|
+
*/
|
84
|
+
visibleChildren: Array<TreeViewItem>;
|
85
|
+
/**
|
86
|
+
* - A callback called once the item is clicked.
|
87
|
+
*/
|
88
|
+
clicked: (arg0: PointerEvent) => Promise<void>;
|
89
|
+
};
|
90
|
+
import { ClassRegistry } from '@vcmap/core';
|
91
|
+
/**
|
92
|
+
* @class
|
93
|
+
* @abstract
|
94
|
+
*/
|
95
|
+
declare class ContentTreeItem {
|
96
|
+
/**
|
97
|
+
* @type {string}
|
98
|
+
*/
|
99
|
+
static get className(): string;
|
100
|
+
/**
|
101
|
+
* @param {ContentTreeItemOptions} options
|
102
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
103
|
+
*/
|
104
|
+
constructor(options: ContentTreeItemOptions, app: import("@src/vcsUiApp.js").default);
|
105
|
+
/**
|
106
|
+
* @protected
|
107
|
+
* @type {import("@src/vcsUiApp.js").default}
|
108
|
+
*/
|
109
|
+
protected _app: import("@src/vcsUiApp.js").default;
|
110
|
+
/**
|
111
|
+
* @type {import("vue").Ref<Array<import("../actions/actionHelper.js").VcsAction>>}
|
112
|
+
* @private
|
113
|
+
*/
|
114
|
+
private _actions;
|
115
|
+
/**
|
116
|
+
* @type {string}
|
117
|
+
* @private
|
118
|
+
*/
|
119
|
+
private _name;
|
120
|
+
/**
|
121
|
+
* Whether to display this item or not.
|
122
|
+
* @type {import("vue").Ref<boolean>}
|
123
|
+
* @private
|
124
|
+
*/
|
125
|
+
private _visible;
|
126
|
+
/**
|
127
|
+
* Whether this item reacts to click events, e.g. with visual feedback
|
128
|
+
* @type {import("vue").Ref<boolean>}
|
129
|
+
* @private
|
130
|
+
*/
|
131
|
+
private _clickable;
|
132
|
+
/**
|
133
|
+
* Whether this item should be displayed as disabled.
|
134
|
+
* @type {import("vue").Ref<boolean>}
|
135
|
+
* @private
|
136
|
+
*/
|
137
|
+
private _disabled;
|
138
|
+
/**
|
139
|
+
* The state of this item. NONE if this item cannot have a state.
|
140
|
+
* @type {import("vue").Ref<StateActionState>}
|
141
|
+
* @private
|
142
|
+
*/
|
143
|
+
private _state;
|
144
|
+
/**
|
145
|
+
* @type {function():void|null}
|
146
|
+
* @private
|
147
|
+
*/
|
148
|
+
private _stateActionListener;
|
149
|
+
/**
|
150
|
+
* @type {string|null}
|
151
|
+
* @private
|
152
|
+
*/
|
153
|
+
private _infoUrl;
|
154
|
+
/**
|
155
|
+
* @param {string} url
|
156
|
+
*/
|
157
|
+
set infoUrl(arg: string | null);
|
158
|
+
/**
|
159
|
+
* @type {string|null}
|
160
|
+
*/
|
161
|
+
get infoUrl(): string | null;
|
162
|
+
/**
|
163
|
+
* @type {import("vue").Ref<string|undefined>}
|
164
|
+
* @private
|
165
|
+
*/
|
166
|
+
private _title;
|
167
|
+
/**
|
168
|
+
* @type {import("vue").Ref<string|undefined>}
|
169
|
+
* @private
|
170
|
+
*/
|
171
|
+
private _tooltip;
|
172
|
+
/**
|
173
|
+
* An optional icon to display with this item. Can be an URL or HTMLElement.
|
174
|
+
* @type {import("vue").Ref<string|HTMLCanvasElement|HTMLImageElement|undefined>}
|
175
|
+
* @private
|
176
|
+
*/
|
177
|
+
private _icon;
|
178
|
+
/**
|
179
|
+
* @type {import("vue").Ref<Array<TreeViewItem>>}
|
180
|
+
* @protected
|
181
|
+
*/
|
182
|
+
protected _children: import("vue").Ref<Array<TreeViewItem>>;
|
183
|
+
/**
|
184
|
+
* @type {number}
|
185
|
+
* @private
|
186
|
+
*/
|
187
|
+
private _weight;
|
188
|
+
/**
|
189
|
+
* @type {boolean}
|
190
|
+
*/
|
191
|
+
initOpen: boolean;
|
192
|
+
/**
|
193
|
+
* @type {Array<import("../callback/vcsCallback.js").VcsCallbackOptions>}
|
194
|
+
* @protected
|
195
|
+
*/
|
196
|
+
protected _onClick: Array<import("../callback/vcsCallback.js").VcsCallbackOptions>;
|
197
|
+
/**
|
198
|
+
* @type {Array<import("../callback/vcsCallback.js").VcsCallbackOptions>}
|
199
|
+
* @protected
|
200
|
+
*/
|
201
|
+
protected _onActivate: Array<import("../callback/vcsCallback.js").VcsCallbackOptions>;
|
202
|
+
/**
|
203
|
+
* @type {Array<import("../callback/vcsCallback.js").VcsCallbackOptions>}
|
204
|
+
* @protected
|
205
|
+
*/
|
206
|
+
protected _onDeactivate: Array<import("../callback/vcsCallback.js").VcsCallbackOptions>;
|
207
|
+
/**
|
208
|
+
* @type {VcsEvent<number>}
|
209
|
+
*/
|
210
|
+
weightChanged: VcsEvent<number>;
|
211
|
+
/**
|
212
|
+
* @type {string}
|
213
|
+
*/
|
214
|
+
get className(): string;
|
215
|
+
/**
|
216
|
+
* @type {string}
|
217
|
+
*/
|
218
|
+
get name(): string;
|
219
|
+
/**
|
220
|
+
* A slice of the underlying actions array. Use add/removeAction to manipulate the actions array.
|
221
|
+
* @type {Array<import("../actions/actionHelper.js").VcsAction>}
|
222
|
+
*/
|
223
|
+
get actions(): import("../actions/actionHelper.js").VcsAction[];
|
224
|
+
/**
|
225
|
+
* @param {boolean} visible
|
226
|
+
*/
|
227
|
+
set visible(arg: boolean);
|
228
|
+
/**
|
229
|
+
* @type {boolean}
|
230
|
+
*/
|
231
|
+
get visible(): boolean;
|
232
|
+
/**
|
233
|
+
* @param {boolean} clickable
|
234
|
+
*/
|
235
|
+
set clickable(arg: boolean);
|
236
|
+
/**
|
237
|
+
* @type {boolean}
|
238
|
+
*/
|
239
|
+
get clickable(): boolean;
|
240
|
+
/**
|
241
|
+
* @param {boolean} disabled
|
242
|
+
*/
|
243
|
+
set disabled(arg: boolean);
|
244
|
+
/**
|
245
|
+
* @type {boolean}
|
246
|
+
*/
|
247
|
+
get disabled(): boolean;
|
248
|
+
/**
|
249
|
+
* @param {StateActionState} state
|
250
|
+
*/
|
251
|
+
set state(arg: number);
|
252
|
+
/**
|
253
|
+
* @type {StateActionState}
|
254
|
+
*/
|
255
|
+
get state(): number;
|
256
|
+
/**
|
257
|
+
* @param {string|undefined} title
|
258
|
+
*/
|
259
|
+
set title(arg: string | undefined);
|
260
|
+
/**
|
261
|
+
* @type {string|undefined}
|
262
|
+
*/
|
263
|
+
get title(): string | undefined;
|
264
|
+
/**
|
265
|
+
* @param {string|undefined} tooltip
|
266
|
+
*/
|
267
|
+
set tooltip(arg: string | undefined);
|
268
|
+
/**
|
269
|
+
* @type {string|undefined}
|
270
|
+
*/
|
271
|
+
get tooltip(): string | undefined;
|
272
|
+
/**
|
273
|
+
* @param {(string|HTMLCanvasElement|HTMLImageElement)=} icon
|
274
|
+
*/
|
275
|
+
set icon(arg: string | HTMLCanvasElement | HTMLImageElement | undefined);
|
276
|
+
/**
|
277
|
+
* @type {string|HTMLCanvasElement|HTMLImageElement|undefined}
|
278
|
+
*/
|
279
|
+
get icon(): string | HTMLCanvasElement | HTMLImageElement | undefined;
|
280
|
+
/**
|
281
|
+
* @param {number} weight
|
282
|
+
*/
|
283
|
+
set weight(arg: number);
|
284
|
+
/**
|
285
|
+
* @type {number}
|
286
|
+
*/
|
287
|
+
get weight(): number;
|
288
|
+
/**
|
289
|
+
* @private
|
290
|
+
*/
|
291
|
+
private _setStateAction;
|
292
|
+
/**
|
293
|
+
* @param {string} actionName
|
294
|
+
* @returns {number}
|
295
|
+
* @private
|
296
|
+
*/
|
297
|
+
private _getActionIndex;
|
298
|
+
/**
|
299
|
+
* Adds an action to this item. The predefined actions have the following weights:
|
300
|
+
* StateAction: 0
|
301
|
+
* GoToViewpoint: 2
|
302
|
+
* StyleSelector: 4
|
303
|
+
* InfoUrl: 6
|
304
|
+
* GoToExtent: 8
|
305
|
+
* The default weight is set to always push new actions past these.
|
306
|
+
* @param {import("../actions/actionHelper.js").VcsAction} action
|
307
|
+
* @param {number} [weight=11]
|
308
|
+
*/
|
309
|
+
addAction(action: import("../actions/actionHelper.js").VcsAction, weight?: number | undefined): void;
|
310
|
+
/**
|
311
|
+
* @param {string} actionName
|
312
|
+
*/
|
313
|
+
removeAction(actionName: string): void;
|
314
|
+
/**
|
315
|
+
* A callback called once the item is clicked.
|
316
|
+
* @returns {Promise<void>}
|
317
|
+
*/
|
318
|
+
clicked(): Promise<void>;
|
319
|
+
/**
|
320
|
+
* Returns a readonly TreeViewItem used for rendering the current item.
|
321
|
+
* @returns {TreeViewItem}
|
322
|
+
*/
|
323
|
+
getTreeViewItem(): TreeViewItem;
|
324
|
+
/**
|
325
|
+
* @returns {ContentTreeItemOptions}
|
326
|
+
*/
|
327
|
+
toJSON(): ContentTreeItemOptions;
|
328
|
+
/**
|
329
|
+
* Destroys this item and all its actions
|
330
|
+
*/
|
331
|
+
destroy(): void;
|
332
|
+
}
|
333
|
+
import { StateActionState } from '../actions/stateRefAction.js';
|
334
|
+
import { VcsEvent } from '@vcmap/core';
|