@vcmap/ui 5.0.1 → 5.1.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/build/buildTypes.js +176 -0
- package/build/lintTypes.js +30 -0
- package/config/aerowest.config.json +4 -0
- package/config/base.config.json +24 -2
- package/config/dev.config.json +176 -5
- package/config/www.config.json +25 -1
- package/dist/assets/{cesium.888ef7.js → cesium.e9b3ca.js} +1859 -1828
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.860907.js → core.a9fe5a.js} +5865 -5041
- package/dist/assets/core.js +1 -1
- package/dist/assets/index-bb2549d6.js +1 -0
- package/dist/assets/{ol.5e8a90.js → ol.5f0496.js} +7257 -7252
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.7758a8.css → ui.3c73c2.css} +2 -2
- package/dist/assets/{ui.7758a8.js → ui.3c73c2.js} +14281 -9264
- package/dist/assets/ui.js +1 -1
- package/dist/assets/{vue.9771b3.js → vue.4fe14e.js} +1243 -1234
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.2818ff.css → vuetify.260d9a.css} +1 -1
- package/dist/assets/{vuetify.2818ff.js → vuetify.260d9a.js} +155 -154
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +2 -2
- package/index.d.ts +256 -0
- package/index.html +1 -1
- package/index.js +48 -11
- package/package.json +22 -15
- package/plugins/@vcmap-show-case/buttons-example/src/ButtonsExample.vue +3 -0
- package/plugins/@vcmap-show-case/category-tester/src/CategoriesExample.vue +312 -43
- package/plugins/@vcmap-show-case/category-tester/src/CollectionComponentOptions.vue +48 -182
- package/plugins/@vcmap-show-case/category-tester/src/FoobarEditor.vue +118 -0
- package/plugins/@vcmap-show-case/category-tester/src/importExportHelper.js +29 -0
- package/plugins/@vcmap-show-case/category-tester/src/index.js +16 -0
- package/plugins/@vcmap-show-case/collection-manager-example/src/CollectionManagerExample.vue +2 -1
- package/plugins/@vcmap-show-case/collection-manager-example/src/index.js +8 -4
- package/plugins/@vcmap-show-case/extent-example/README.md +3 -0
- package/plugins/@vcmap-show-case/extent-example/package.json +5 -0
- package/plugins/@vcmap-show-case/extent-example/src/ExtentExample.vue +71 -0
- package/plugins/@vcmap-show-case/extent-example/src/index.js +68 -0
- package/plugins/@vcmap-show-case/flight-component-example/README.md +3 -0
- package/plugins/@vcmap-show-case/flight-component-example/package.json +5 -0
- package/plugins/@vcmap-show-case/flight-component-example/src/FlightExample.vue +53 -0
- package/plugins/@vcmap-show-case/flight-component-example/src/index.js +42 -0
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +78 -5
- package/plugins/@vcmap-show-case/hello-world/src/helloWorld.vue +2 -2
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +22 -10
- package/plugins/@vcmap-show-case/toolbox-example/README.md +9 -0
- package/plugins/@vcmap-show-case/toolbox-example/package.json +5 -0
- package/plugins/@vcmap-show-case/toolbox-example/src/TriStateExampleWindow.vue +21 -0
- package/plugins/@vcmap-show-case/toolbox-example/src/dummyToolboxActions.js +94 -0
- package/plugins/@vcmap-show-case/toolbox-example/src/index.js +260 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/VectorPropertiesExample.vue +12 -2
- package/plugins/@vcmap-show-case/viewpoint-component-example/README.md +3 -0
- package/plugins/@vcmap-show-case/viewpoint-component-example/package.json +5 -0
- package/plugins/@vcmap-show-case/viewpoint-component-example/src/ViewpointExample.vue +52 -0
- package/plugins/@vcmap-show-case/viewpoint-component-example/src/index.js +42 -0
- package/plugins/@vcmap-show-case/window-tester/src/WindowExample.vue +31 -1
- package/plugins/@vcmap-show-case/window-tester/src/WindowExampleToggleChild.vue +20 -16
- package/plugins/@vcmap-show-case/window-tester/src/index.js +2 -17
- package/plugins/package.json +3 -1
- package/src/actions/StyleSelector.vue +8 -7
- package/src/actions/StyleSelector.vue.d.ts +27 -0
- package/src/actions/actionHelper.d.ts +153 -0
- package/src/actions/actionHelper.js +48 -21
- 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 -38
- package/src/manager/collectionManager/CollectionComponent.vue.d.ts +17 -0
- package/src/manager/collectionManager/CollectionComponentList.vue +78 -24
- 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 +57 -53
- 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-f265c560.js +0 -1
- package/plugins/@vcmap-show-case/window-tester/src/toolboxData.js +0 -288
@@ -0,0 +1,23 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
value: {
|
3
|
+
type: ObjectConstructor;
|
4
|
+
default: undefined;
|
5
|
+
};
|
6
|
+
}, {
|
7
|
+
rgbaObject: import("vue").ComputedRef<{
|
8
|
+
r: number;
|
9
|
+
g: number;
|
10
|
+
b: number;
|
11
|
+
a: number;
|
12
|
+
}>;
|
13
|
+
width: import("vue").WritableComputedRef<any>;
|
14
|
+
updateColor(rgba: any): void;
|
15
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
16
|
+
value: {
|
17
|
+
type: ObjectConstructor;
|
18
|
+
default: undefined;
|
19
|
+
};
|
20
|
+
}>>, {
|
21
|
+
value: Record<string, any>;
|
22
|
+
}>;
|
23
|
+
export default _default;
|
@@ -0,0 +1,52 @@
|
|
1
|
+
export namespace fallbackStyle {
|
2
|
+
let font: string;
|
3
|
+
namespace fill {
|
4
|
+
let color: number[];
|
5
|
+
}
|
6
|
+
namespace stroke {
|
7
|
+
let color_1: number[];
|
8
|
+
export { color_1 as color };
|
9
|
+
export let width: number;
|
10
|
+
}
|
11
|
+
let offsetX: number;
|
12
|
+
let offsetY: number;
|
13
|
+
}
|
14
|
+
declare const _default: import("vue").DefineComponent<{
|
15
|
+
value: {
|
16
|
+
type: ObjectConstructor;
|
17
|
+
default: undefined;
|
18
|
+
};
|
19
|
+
valueDefault: {
|
20
|
+
type: ObjectConstructor;
|
21
|
+
default: undefined;
|
22
|
+
};
|
23
|
+
}, {
|
24
|
+
strokeColor: import("vue").ComputedRef<string>;
|
25
|
+
fillColor: import("vue").ComputedRef<string>;
|
26
|
+
fontStyle: import("vue").ComputedRef<any>;
|
27
|
+
fallbackStyle: {
|
28
|
+
font: string;
|
29
|
+
fill: {
|
30
|
+
color: number[];
|
31
|
+
};
|
32
|
+
stroke: {
|
33
|
+
color: number[];
|
34
|
+
width: number;
|
35
|
+
};
|
36
|
+
offsetX: number;
|
37
|
+
offsetY: number;
|
38
|
+
};
|
39
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
40
|
+
value: {
|
41
|
+
type: ObjectConstructor;
|
42
|
+
default: undefined;
|
43
|
+
};
|
44
|
+
valueDefault: {
|
45
|
+
type: ObjectConstructor;
|
46
|
+
default: undefined;
|
47
|
+
};
|
48
|
+
}>>, {
|
49
|
+
value: Record<string, any>;
|
50
|
+
valueDefault: Record<string, any>;
|
51
|
+
}>;
|
52
|
+
export default _default;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
export const fonts: {
|
2
|
+
Georgia: string;
|
3
|
+
Palatino: string;
|
4
|
+
'Times New Roman': string;
|
5
|
+
Arial: string;
|
6
|
+
Impact: string;
|
7
|
+
'Comic Sans': string;
|
8
|
+
Trebuchet: string;
|
9
|
+
Verdana: string;
|
10
|
+
Courier: string;
|
11
|
+
Lucida: string;
|
12
|
+
};
|
13
|
+
declare const _default: import("vue").DefineComponent<{
|
14
|
+
value: {
|
15
|
+
type: ObjectConstructor;
|
16
|
+
default: undefined;
|
17
|
+
};
|
18
|
+
valueDefault: {
|
19
|
+
type: ObjectConstructor;
|
20
|
+
required: true;
|
21
|
+
};
|
22
|
+
}, {
|
23
|
+
fonts: {
|
24
|
+
Georgia: string;
|
25
|
+
Palatino: string;
|
26
|
+
'Times New Roman': string;
|
27
|
+
Arial: string;
|
28
|
+
Impact: string;
|
29
|
+
'Comic Sans': string;
|
30
|
+
Trebuchet: string;
|
31
|
+
Verdana: string;
|
32
|
+
Courier: string;
|
33
|
+
Lucida: string;
|
34
|
+
};
|
35
|
+
font: import("vue").ComputedRef<any>;
|
36
|
+
fontFamily: import("vue").WritableComputedRef<any>;
|
37
|
+
fontSize: import("vue").WritableComputedRef<number>;
|
38
|
+
selectedFill: import("vue").WritableComputedRef<any>;
|
39
|
+
selectedStroke: import("vue").WritableComputedRef<any>;
|
40
|
+
emitNewFont: (key: any, value: any) => void;
|
41
|
+
isBold: import("vue").WritableComputedRef<boolean>;
|
42
|
+
isItalic: import("vue").WritableComputedRef<boolean>;
|
43
|
+
selectedOffsetX: import("vue").WritableComputedRef<any>;
|
44
|
+
selectedOffsetY: import("vue").WritableComputedRef<any>;
|
45
|
+
selectedText: import("vue").WritableComputedRef<any>;
|
46
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
47
|
+
value: {
|
48
|
+
type: ObjectConstructor;
|
49
|
+
default: undefined;
|
50
|
+
};
|
51
|
+
valueDefault: {
|
52
|
+
type: ObjectConstructor;
|
53
|
+
required: true;
|
54
|
+
};
|
55
|
+
}>>, {
|
56
|
+
value: Record<string, any>;
|
57
|
+
}>;
|
58
|
+
export default _default;
|
@@ -0,0 +1,76 @@
|
|
1
|
+
/**
|
2
|
+
* *
|
3
|
+
*/
|
4
|
+
export type VectorStyleMenus = string;
|
5
|
+
export namespace VectorStyleMenus {
|
6
|
+
let FILL: string;
|
7
|
+
let STROKE: string;
|
8
|
+
let IMAGE: string;
|
9
|
+
let TEXT: string;
|
10
|
+
}
|
11
|
+
declare const _default: import("vue").DefineComponent<{
|
12
|
+
value: {
|
13
|
+
type: ObjectConstructor;
|
14
|
+
default: undefined;
|
15
|
+
};
|
16
|
+
valueDefault: {
|
17
|
+
type: ObjectConstructor;
|
18
|
+
default: undefined;
|
19
|
+
};
|
20
|
+
styleComponents: {
|
21
|
+
type: ArrayConstructor;
|
22
|
+
default: () => string[];
|
23
|
+
validator: (array: unknown) => any;
|
24
|
+
};
|
25
|
+
extendedShapeSettings: {
|
26
|
+
type: BooleanConstructor;
|
27
|
+
default: boolean;
|
28
|
+
};
|
29
|
+
iconOptions: {
|
30
|
+
type: ArrayConstructor;
|
31
|
+
default: undefined;
|
32
|
+
};
|
33
|
+
}, {
|
34
|
+
selectedKeys: import("vue").ComputedRef<any>;
|
35
|
+
specificProps: import("vue").ComputedRef<{
|
36
|
+
[x: string]: {
|
37
|
+
extendedShapeSettings: any;
|
38
|
+
iconOptions: any;
|
39
|
+
};
|
40
|
+
}>;
|
41
|
+
componentMap: {
|
42
|
+
fill: string;
|
43
|
+
stroke: string;
|
44
|
+
image: string;
|
45
|
+
text: string;
|
46
|
+
};
|
47
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
48
|
+
value: {
|
49
|
+
type: ObjectConstructor;
|
50
|
+
default: undefined;
|
51
|
+
};
|
52
|
+
valueDefault: {
|
53
|
+
type: ObjectConstructor;
|
54
|
+
default: undefined;
|
55
|
+
};
|
56
|
+
styleComponents: {
|
57
|
+
type: ArrayConstructor;
|
58
|
+
default: () => string[];
|
59
|
+
validator: (array: unknown) => any;
|
60
|
+
};
|
61
|
+
extendedShapeSettings: {
|
62
|
+
type: BooleanConstructor;
|
63
|
+
default: boolean;
|
64
|
+
};
|
65
|
+
iconOptions: {
|
66
|
+
type: ArrayConstructor;
|
67
|
+
default: undefined;
|
68
|
+
};
|
69
|
+
}>>, {
|
70
|
+
value: Record<string, any>;
|
71
|
+
valueDefault: Record<string, any>;
|
72
|
+
extendedShapeSettings: boolean;
|
73
|
+
iconOptions: unknown[];
|
74
|
+
styleComponents: unknown[];
|
75
|
+
}>;
|
76
|
+
export default _default;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* Computes a color object from a color array.
|
3
|
+
* @param {function():Array<number>} colorGetter Getter that returns an array containing rgba values.
|
4
|
+
* @returns {import("vue").ComputedRef<{r: number, g: number, b: number, a: number}>} An object with rgba keys.
|
5
|
+
*/
|
6
|
+
export function useColorObject(colorGetter: () => Array<number>): import("vue").ComputedRef<{
|
7
|
+
r: number;
|
8
|
+
g: number;
|
9
|
+
b: number;
|
10
|
+
a: number;
|
11
|
+
}>;
|
12
|
+
/**
|
13
|
+
* Checks if a value is in a value range.
|
14
|
+
* @param {number} value Value checked to see if it is in the allowed range.
|
15
|
+
* @param {number[]} range Min and max value
|
16
|
+
* @returns {boolean} If value is between min and max.
|
17
|
+
*/
|
18
|
+
export function between(value: number, range: number[]): boolean;
|
19
|
+
/**
|
20
|
+
* Creates a computed property with a getter and a setter for a specific object property/key of the value prop. If the value prop is an object, this composable allows to pass this computed to an v-model of a sub component. The getter returns the value of the key or, if it is undefined, a default value. The setter merges the passed value with the other object properties of the value prop and emits the whole object as a input event.
|
21
|
+
* @param {function():T} modelObject Getter for the property that is modelled by the component and should be updated with input event, usually this is the 'value' prop.
|
22
|
+
* @param {K} key The key of the modelObject that should be return on get and updated on set.
|
23
|
+
* @param {U} defaultValue Default value for the key of the modelObject.
|
24
|
+
* @param {function(string, ...unknown[]):void} emit The emit function of the component context that is using this composable.
|
25
|
+
* @param {Array<number>} [range] The allowed range of numbers.
|
26
|
+
* @param {boolean} [isRequired] If value is required.
|
27
|
+
* @returns {import("vue").WritableComputedRef<T[K]>} The value to the key param if the getter is called.
|
28
|
+
* @template {Object} T
|
29
|
+
* @template {string} K
|
30
|
+
* @template U
|
31
|
+
*/
|
32
|
+
export function useSelectedKey<T extends Object, K extends string, U>(modelObject: () => T, key: K, defaultValue: U, emit: (arg0: string, ...args: unknown[][]) => void, range?: number[] | undefined, isRequired?: boolean | undefined): import("vue").WritableComputedRef<T[K]>;
|
33
|
+
/**
|
34
|
+
* Creates a string from a color object.
|
35
|
+
* @param {{r: number, g: number, b: number, a: number}} rgbaObject An object with rgba keys.
|
36
|
+
* @returns {string} A string looking like this: rgba(0,0,0,0).
|
37
|
+
*/
|
38
|
+
export function rgbaObjectToString(rgbaObject: {
|
39
|
+
r: number;
|
40
|
+
g: number;
|
41
|
+
b: number;
|
42
|
+
a: number;
|
43
|
+
}): string;
|
@@ -3,7 +3,7 @@ import { computed } from 'vue';
|
|
3
3
|
/**
|
4
4
|
* Computes a color object from a color array.
|
5
5
|
* @param {function():Array<number>} colorGetter Getter that returns an array containing rgba values.
|
6
|
-
* @returns {{r: number, g: number, b: number, a: number}} An object with rgba keys.
|
6
|
+
* @returns {import("vue").ComputedRef<{r: number, g: number, b: number, a: number}>} An object with rgba keys.
|
7
7
|
*/
|
8
8
|
export function useColorObject(colorGetter) {
|
9
9
|
return computed(() => {
|
@@ -33,13 +33,16 @@ export function between(value, range) {
|
|
33
33
|
|
34
34
|
/**
|
35
35
|
* Creates a computed property with a getter and a setter for a specific object property/key of the value prop. If the value prop is an object, this composable allows to pass this computed to an v-model of a sub component. The getter returns the value of the key or, if it is undefined, a default value. The setter merges the passed value with the other object properties of the value prop and emits the whole object as a input event.
|
36
|
-
* @param {function():
|
37
|
-
* @param {
|
38
|
-
* @param {
|
39
|
-
* @param {function(
|
36
|
+
* @param {function():T} modelObject Getter for the property that is modelled by the component and should be updated with input event, usually this is the 'value' prop.
|
37
|
+
* @param {K} key The key of the modelObject that should be return on get and updated on set.
|
38
|
+
* @param {U} defaultValue Default value for the key of the modelObject.
|
39
|
+
* @param {function(string, ...unknown[]):void} emit The emit function of the component context that is using this composable.
|
40
40
|
* @param {Array<number>} [range] The allowed range of numbers.
|
41
|
-
* @param {
|
42
|
-
* @returns {
|
41
|
+
* @param {boolean} [isRequired] If value is required.
|
42
|
+
* @returns {import("vue").WritableComputedRef<T[K]>} The value to the key param if the getter is called.
|
43
|
+
* @template {Object} T
|
44
|
+
* @template {string} K
|
45
|
+
* @template U
|
43
46
|
*/
|
44
47
|
export function useSelectedKey(
|
45
48
|
modelObject,
|
@@ -66,7 +69,7 @@ export function useSelectedKey(
|
|
66
69
|
) {
|
67
70
|
return;
|
68
71
|
}
|
69
|
-
const newModelObject =
|
72
|
+
const newModelObject = structuredClone(modelObject());
|
70
73
|
// is needed to get e.g. from square shape to x by setting radius2 from 0 to undefined
|
71
74
|
const newValue = value === '' ? undefined : value;
|
72
75
|
emit('input', Object.assign(newModelObject, { [key]: newValue }));
|
@@ -142,7 +142,7 @@
|
|
142
142
|
</v-card>
|
143
143
|
</template>
|
144
144
|
<script>
|
145
|
-
import { getCurrentInstance, ref, computed } from 'vue';
|
145
|
+
import { getCurrentInstance, ref, computed, watch } from 'vue';
|
146
146
|
import {
|
147
147
|
VCard,
|
148
148
|
VDivider,
|
@@ -331,8 +331,10 @@
|
|
331
331
|
*/
|
332
332
|
const translatedHeaders = computed(() => {
|
333
333
|
return props.headers.map((hd) => {
|
334
|
-
|
335
|
-
|
334
|
+
return {
|
335
|
+
...hd,
|
336
|
+
text: vm.$t(hd.text),
|
337
|
+
};
|
336
338
|
});
|
337
339
|
});
|
338
340
|
|
@@ -357,6 +359,12 @@
|
|
357
359
|
const last = page.value * itemsPerPageRef.value;
|
358
360
|
return last < numberOfItems.value ? last : numberOfItems.value;
|
359
361
|
});
|
362
|
+
watch(
|
363
|
+
() => props.items,
|
364
|
+
() => {
|
365
|
+
page.value = 1;
|
366
|
+
},
|
367
|
+
);
|
360
368
|
|
361
369
|
const handleSearch = () => {
|
362
370
|
page.value = 1;
|
@@ -0,0 +1,142 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
headers: {
|
3
|
+
type: ArrayConstructor;
|
4
|
+
default: () => never[];
|
5
|
+
};
|
6
|
+
items: {
|
7
|
+
type: ArrayConstructor;
|
8
|
+
default: () => never[];
|
9
|
+
};
|
10
|
+
itemKey: {
|
11
|
+
type: StringConstructor;
|
12
|
+
required: true;
|
13
|
+
};
|
14
|
+
serverItemsLength: {
|
15
|
+
type: NumberConstructor;
|
16
|
+
default: number;
|
17
|
+
};
|
18
|
+
serverPagesLength: {
|
19
|
+
type: NumberConstructor;
|
20
|
+
default: number;
|
21
|
+
};
|
22
|
+
itemsPerPage: {
|
23
|
+
type: NumberConstructor;
|
24
|
+
default: number;
|
25
|
+
};
|
26
|
+
itemsPerPageArray: {
|
27
|
+
type: ArrayConstructor;
|
28
|
+
default: () => number[];
|
29
|
+
};
|
30
|
+
showSearchbar: {
|
31
|
+
type: BooleanConstructor;
|
32
|
+
default: boolean;
|
33
|
+
};
|
34
|
+
searchbarPlaceholder: {
|
35
|
+
type: StringConstructor;
|
36
|
+
default: string;
|
37
|
+
};
|
38
|
+
singleSelect: {
|
39
|
+
type: BooleanConstructor;
|
40
|
+
default: boolean;
|
41
|
+
};
|
42
|
+
selectableKey: {
|
43
|
+
type: StringConstructor;
|
44
|
+
default: string;
|
45
|
+
};
|
46
|
+
value: {
|
47
|
+
type: ArrayConstructor;
|
48
|
+
default: () => never[];
|
49
|
+
};
|
50
|
+
}, {
|
51
|
+
hovering: import("vue").Ref<null>;
|
52
|
+
search: Ref<UnwrapRef<string>>;
|
53
|
+
page: Ref<UnwrapRef<number>>;
|
54
|
+
internalItems: ComputedRef<Object[]>;
|
55
|
+
filteredItems: ComputedRef<Object[]>;
|
56
|
+
itemsPerPageRef: Ref<UnwrapRef<number>>;
|
57
|
+
itemsFrom: import("vue").ComputedRef<number>;
|
58
|
+
itemsTo: import("vue").ComputedRef<any>;
|
59
|
+
numberOfPages: import("vue").ComputedRef<any>;
|
60
|
+
numberOfItems: import("vue").ComputedRef<any>;
|
61
|
+
totalNumber: import("vue").ComputedRef<any>;
|
62
|
+
nextPage(): void;
|
63
|
+
formerPage(): void;
|
64
|
+
updateItemsPerPage(number: any): void;
|
65
|
+
handleFilter: (value: any, filter: string | undefined, item: TableItem) => boolean;
|
66
|
+
handleSearch: () => void;
|
67
|
+
translatedHeaders: ComputedRef<Object[]>;
|
68
|
+
showFooter: import("vue").ComputedRef<boolean>;
|
69
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
70
|
+
headers: {
|
71
|
+
type: ArrayConstructor;
|
72
|
+
default: () => never[];
|
73
|
+
};
|
74
|
+
items: {
|
75
|
+
type: ArrayConstructor;
|
76
|
+
default: () => never[];
|
77
|
+
};
|
78
|
+
itemKey: {
|
79
|
+
type: StringConstructor;
|
80
|
+
required: true;
|
81
|
+
};
|
82
|
+
serverItemsLength: {
|
83
|
+
type: NumberConstructor;
|
84
|
+
default: number;
|
85
|
+
};
|
86
|
+
serverPagesLength: {
|
87
|
+
type: NumberConstructor;
|
88
|
+
default: number;
|
89
|
+
};
|
90
|
+
itemsPerPage: {
|
91
|
+
type: NumberConstructor;
|
92
|
+
default: number;
|
93
|
+
};
|
94
|
+
itemsPerPageArray: {
|
95
|
+
type: ArrayConstructor;
|
96
|
+
default: () => number[];
|
97
|
+
};
|
98
|
+
showSearchbar: {
|
99
|
+
type: BooleanConstructor;
|
100
|
+
default: boolean;
|
101
|
+
};
|
102
|
+
searchbarPlaceholder: {
|
103
|
+
type: StringConstructor;
|
104
|
+
default: string;
|
105
|
+
};
|
106
|
+
singleSelect: {
|
107
|
+
type: BooleanConstructor;
|
108
|
+
default: boolean;
|
109
|
+
};
|
110
|
+
selectableKey: {
|
111
|
+
type: StringConstructor;
|
112
|
+
default: string;
|
113
|
+
};
|
114
|
+
value: {
|
115
|
+
type: ArrayConstructor;
|
116
|
+
default: () => never[];
|
117
|
+
};
|
118
|
+
}>>, {
|
119
|
+
value: unknown[];
|
120
|
+
headers: unknown[];
|
121
|
+
showSearchbar: boolean;
|
122
|
+
searchbarPlaceholder: string;
|
123
|
+
items: unknown[];
|
124
|
+
singleSelect: boolean;
|
125
|
+
serverItemsLength: number;
|
126
|
+
serverPagesLength: number;
|
127
|
+
itemsPerPage: number;
|
128
|
+
itemsPerPageArray: unknown[];
|
129
|
+
selectableKey: string;
|
130
|
+
}>;
|
131
|
+
export default _default;
|
132
|
+
export type UpdateItemsEvent = {
|
133
|
+
page: number;
|
134
|
+
itemsPerPage: number;
|
135
|
+
sortBy: string[];
|
136
|
+
sortDesc: boolean[];
|
137
|
+
groupBy: string[];
|
138
|
+
groupDesc: boolean[];
|
139
|
+
multiSort: boolean;
|
140
|
+
mustSort: boolean;
|
141
|
+
search: string;
|
142
|
+
};
|
@@ -20,14 +20,16 @@
|
|
20
20
|
class="vcs-table px-2 overflow-max-width rounded-0 noBorder"
|
21
21
|
:style="{ 'max-width': headers[1].width }"
|
22
22
|
>
|
23
|
-
<
|
23
|
+
<component
|
24
|
+
:is="getTag(tags, item.key)"
|
25
|
+
v-bind="getTagOptions(tags, item.key)"
|
24
26
|
:class="{
|
25
27
|
'single-line': !/\s/.test(item.value),
|
26
28
|
'multi-line': /\s/.test(item.value),
|
27
29
|
}"
|
28
30
|
>
|
29
31
|
{{ $t(item.value) }}
|
30
|
-
</
|
32
|
+
</component>
|
31
33
|
</td>
|
32
34
|
</template>
|
33
35
|
</VcsDataTable>
|
@@ -68,10 +70,71 @@
|
|
68
70
|
return items;
|
69
71
|
}
|
70
72
|
|
73
|
+
/**
|
74
|
+
* Defines which HTML tags can be used within the VcsTable value column and provides default options
|
75
|
+
* @type {Object<string,Object<string,*>>}
|
76
|
+
*/
|
77
|
+
export const defaultTagOptions = {
|
78
|
+
a: {
|
79
|
+
href: undefined,
|
80
|
+
target: '_blank',
|
81
|
+
},
|
82
|
+
audio: {
|
83
|
+
controls: '',
|
84
|
+
src: undefined,
|
85
|
+
},
|
86
|
+
b: {},
|
87
|
+
i: {},
|
88
|
+
iframe: {
|
89
|
+
src: undefined,
|
90
|
+
width: undefined,
|
91
|
+
height: undefined,
|
92
|
+
},
|
93
|
+
img: {
|
94
|
+
src: undefined,
|
95
|
+
width: undefined,
|
96
|
+
},
|
97
|
+
meter: {
|
98
|
+
value: undefined,
|
99
|
+
},
|
100
|
+
progress: {
|
101
|
+
value: undefined,
|
102
|
+
},
|
103
|
+
s: {},
|
104
|
+
strong: {},
|
105
|
+
video: {
|
106
|
+
controls: '',
|
107
|
+
src: undefined,
|
108
|
+
width: 175,
|
109
|
+
},
|
110
|
+
};
|
111
|
+
|
112
|
+
/**
|
113
|
+
* @param {import("../../featureInfo/abstractFeatureInfoView.js").HTMLTagOptions} tags
|
114
|
+
* @param {string} key
|
115
|
+
* @returns {string}
|
116
|
+
*/
|
117
|
+
export function getTag(tags, key) {
|
118
|
+
return tags?.[key]?.tag ?? 'div';
|
119
|
+
}
|
120
|
+
|
121
|
+
/**
|
122
|
+
* @param {Object} tags
|
123
|
+
* @param {string} key
|
124
|
+
* @returns {import("../../featureInfo/abstractFeatureInfoView.js").HTMLTagOptions|Record<never, never>}
|
125
|
+
*/
|
126
|
+
export function getTagOptions(tags, key) {
|
127
|
+
if (tags?.[key]) {
|
128
|
+
return { ...defaultTagOptions[tags[key].tag], ...tags[key] };
|
129
|
+
}
|
130
|
+
return {};
|
131
|
+
}
|
132
|
+
|
71
133
|
/**
|
72
134
|
* @description A table view for feature attributes using VcsDataTable
|
73
135
|
* @vue-prop {string} featureId - feature's id
|
74
136
|
* @vue-prop {Object} attributes - feature's attributes
|
137
|
+
* @vue-prop {Object} tags - Allows to render the value column for specific attribute keys with special html elements. See 'defaultTagOptions' for supported html tags.
|
75
138
|
* @vue-prop {Array<{text: string, value: string}>} [headers] - optional array defining column names
|
76
139
|
* @vue-computed {Array<TableItem>} items - from attributes derived table items
|
77
140
|
*/
|
@@ -89,6 +152,10 @@
|
|
89
152
|
type: Object,
|
90
153
|
required: true,
|
91
154
|
},
|
155
|
+
tags: {
|
156
|
+
type: Object,
|
157
|
+
default: undefined,
|
158
|
+
},
|
92
159
|
headers: {
|
93
160
|
type: Array,
|
94
161
|
default: () => [
|
@@ -110,6 +177,8 @@
|
|
110
177
|
|
111
178
|
return {
|
112
179
|
items,
|
180
|
+
getTag,
|
181
|
+
getTagOptions,
|
113
182
|
};
|
114
183
|
},
|
115
184
|
};
|
@@ -0,0 +1,88 @@
|
|
1
|
+
/**
|
2
|
+
* @typedef {Object} TableItem
|
3
|
+
* @property {string} key
|
4
|
+
* @property {string} value
|
5
|
+
*/
|
6
|
+
/**
|
7
|
+
* @param {Object} attributes
|
8
|
+
* @param {Array<TableItem>} [items]
|
9
|
+
* @param {string} [parent]
|
10
|
+
* @returns {Array<TableItem>}
|
11
|
+
*/
|
12
|
+
export function attributesToItems(attributes: Object, items?: TableItem[] | undefined, parent?: string | undefined): Array<TableItem>;
|
13
|
+
/**
|
14
|
+
* @param {import("../../featureInfo/abstractFeatureInfoView.js").HTMLTagOptions} tags
|
15
|
+
* @param {string} key
|
16
|
+
* @returns {string}
|
17
|
+
*/
|
18
|
+
export function getTag(tags: import("../../featureInfo/abstractFeatureInfoView.js").HTMLTagOptions, key: string): string;
|
19
|
+
/**
|
20
|
+
* @param {Object} tags
|
21
|
+
* @param {string} key
|
22
|
+
* @returns {import("../../featureInfo/abstractFeatureInfoView.js").HTMLTagOptions|Record<never, never>}
|
23
|
+
*/
|
24
|
+
export function getTagOptions(tags: Object, key: string): import("../../featureInfo/abstractFeatureInfoView.js").HTMLTagOptions | Record<never, never>;
|
25
|
+
/**
|
26
|
+
* Defines which HTML tags can be used within the VcsTable value column and provides default options
|
27
|
+
* @type {Object<string,Object<string,*>>}
|
28
|
+
*/
|
29
|
+
export const defaultTagOptions: {
|
30
|
+
[x: string]: {
|
31
|
+
[x: string]: any;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
declare const _default: import("vue").DefineComponent<{
|
35
|
+
featureId: {
|
36
|
+
type: StringConstructor;
|
37
|
+
required: true;
|
38
|
+
};
|
39
|
+
attributes: {
|
40
|
+
type: ObjectConstructor;
|
41
|
+
required: true;
|
42
|
+
};
|
43
|
+
tags: {
|
44
|
+
type: ObjectConstructor;
|
45
|
+
default: undefined;
|
46
|
+
};
|
47
|
+
headers: {
|
48
|
+
type: ArrayConstructor;
|
49
|
+
default: () => {
|
50
|
+
text: string;
|
51
|
+
value: string;
|
52
|
+
width: string;
|
53
|
+
}[];
|
54
|
+
};
|
55
|
+
}, {
|
56
|
+
items: ComputedRef<TableItem[]>;
|
57
|
+
getTag: typeof getTag;
|
58
|
+
getTagOptions: typeof getTagOptions;
|
59
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
60
|
+
featureId: {
|
61
|
+
type: StringConstructor;
|
62
|
+
required: true;
|
63
|
+
};
|
64
|
+
attributes: {
|
65
|
+
type: ObjectConstructor;
|
66
|
+
required: true;
|
67
|
+
};
|
68
|
+
tags: {
|
69
|
+
type: ObjectConstructor;
|
70
|
+
default: undefined;
|
71
|
+
};
|
72
|
+
headers: {
|
73
|
+
type: ArrayConstructor;
|
74
|
+
default: () => {
|
75
|
+
text: string;
|
76
|
+
value: string;
|
77
|
+
width: string;
|
78
|
+
}[];
|
79
|
+
};
|
80
|
+
}>>, {
|
81
|
+
headers: unknown[];
|
82
|
+
tags: Record<string, any>;
|
83
|
+
}>;
|
84
|
+
export default _default;
|
85
|
+
export type TableItem = {
|
86
|
+
key: string;
|
87
|
+
value: string;
|
88
|
+
};
|