@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,65 @@
|
|
1
|
+
import { AbstractInteraction, EventType } from '@vcmap/core';
|
2
|
+
import { parseBoolean } from '@vcsuite/parsers';
|
3
|
+
import { check } from '@vcsuite/check';
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @typedef {Object} PositionDisplayInteractionOptions
|
7
|
+
* @property {import("vue").Ref<import("ol/coordinate.js").Coordinate>} position
|
8
|
+
* @property {?boolean} move - whether to be active on move or not
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**
|
12
|
+
* @class
|
13
|
+
* @extends {import("@vcmap/core").AbstractInteraction}
|
14
|
+
*/
|
15
|
+
class PositionDisplayInteraction extends AbstractInteraction {
|
16
|
+
/**
|
17
|
+
* @param {PositionDisplayInteractionOptions} options
|
18
|
+
*/
|
19
|
+
constructor(options) {
|
20
|
+
super();
|
21
|
+
/**
|
22
|
+
* @type {import("vue").Ref<import("ol/coordinate.js").Coordinate>}
|
23
|
+
*/
|
24
|
+
this.position = options.position;
|
25
|
+
/**
|
26
|
+
* @type {boolean}
|
27
|
+
*/
|
28
|
+
this._move = parseBoolean(options.move, false);
|
29
|
+
|
30
|
+
this._defaultActive = this._move
|
31
|
+
? EventType.CLICK | EventType.MOVE
|
32
|
+
: EventType.CLICK;
|
33
|
+
this.setActive();
|
34
|
+
}
|
35
|
+
|
36
|
+
get move() {
|
37
|
+
return this._move;
|
38
|
+
}
|
39
|
+
|
40
|
+
/**
|
41
|
+
* @param {boolean} move
|
42
|
+
*/
|
43
|
+
setMove(move) {
|
44
|
+
check(move, Boolean);
|
45
|
+
|
46
|
+
this._move = move;
|
47
|
+
this._defaultActive = this._move
|
48
|
+
? EventType.CLICK | EventType.MOVE
|
49
|
+
: EventType.CLICK;
|
50
|
+
this.setActive();
|
51
|
+
}
|
52
|
+
|
53
|
+
/**
|
54
|
+
* @param {import("@vcmap/core").InteractionEvent} event
|
55
|
+
* @returns {Promise<import("@vcmap/core").InteractionEvent>}
|
56
|
+
*/
|
57
|
+
pipe(event) {
|
58
|
+
if (!event.position.every((pos) => pos === 0)) {
|
59
|
+
this.position.value = [...event.position];
|
60
|
+
}
|
61
|
+
return Promise.resolve(event);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
export default PositionDisplayInteraction;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export default ActivateLayersCallback;
|
2
|
+
export type ActivateLayersOptions = import("./vcsCallback.js").VcsCallbackOptions & {
|
3
|
+
layerNames: string[];
|
4
|
+
};
|
5
|
+
/**
|
6
|
+
* @typedef {import("./vcsCallback.js").VcsCallbackOptions & { layerNames: string[] }} ActivateLayersOptions
|
7
|
+
* @property {Array<string>} layerNames - layer names to activate
|
8
|
+
*/
|
9
|
+
/**
|
10
|
+
* @class
|
11
|
+
* @extends {VcsCallback}
|
12
|
+
*/
|
13
|
+
declare class ActivateLayersCallback extends VcsCallback {
|
14
|
+
/**
|
15
|
+
* @param {ActivateLayersOptions} options
|
16
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
17
|
+
*/
|
18
|
+
constructor(options: ActivateLayersOptions, app: import("@src/vcsUiApp.js").default);
|
19
|
+
/**
|
20
|
+
* @type {Array<string>}
|
21
|
+
* @private
|
22
|
+
*/
|
23
|
+
private _layerNames;
|
24
|
+
/**
|
25
|
+
* @returns {ActivateLayersOptions}
|
26
|
+
*/
|
27
|
+
toJSON(): ActivateLayersOptions;
|
28
|
+
}
|
29
|
+
import VcsCallback from './vcsCallback.js';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import VcsCallback, { callbackClassRegistry } from './vcsCallback.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
* @typedef {VcsCallbackOptions} ActivateLayersOptions
|
4
|
+
* @typedef {import("./vcsCallback.js").VcsCallbackOptions & { layerNames: string[] }} ActivateLayersOptions
|
5
5
|
* @property {Array<string>} layerNames - layer names to activate
|
6
6
|
*/
|
7
7
|
|
@@ -19,7 +19,7 @@ class ActivateLayersCallback extends VcsCallback {
|
|
19
19
|
|
20
20
|
/**
|
21
21
|
* @param {ActivateLayersOptions} options
|
22
|
-
* @param {
|
22
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
23
23
|
*/
|
24
24
|
constructor(options, app) {
|
25
25
|
super(options, app);
|
@@ -0,0 +1,36 @@
|
|
1
|
+
export default ApplyLayerStyleCallback;
|
2
|
+
export type ApplyLayerStyleOptions = import("./vcsCallback.js").VcsCallbackOptions & {
|
3
|
+
styleName: string;
|
4
|
+
layerName: string;
|
5
|
+
};
|
6
|
+
/**
|
7
|
+
* @typedef {import("./vcsCallback.js").VcsCallbackOptions & { styleName: string, layerName: string }} ApplyLayerStyleOptions
|
8
|
+
* @property {string} styleName - name of the style
|
9
|
+
* @property {string} layerName - name of the layer to apply the style
|
10
|
+
*/
|
11
|
+
/**
|
12
|
+
* @class
|
13
|
+
* @extends {VcsCallback}
|
14
|
+
*/
|
15
|
+
declare class ApplyLayerStyleCallback extends VcsCallback {
|
16
|
+
/**
|
17
|
+
* @param {ApplyLayerStyleOptions} options
|
18
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
19
|
+
*/
|
20
|
+
constructor(options: ApplyLayerStyleOptions, app: import("@src/vcsUiApp.js").default);
|
21
|
+
/**
|
22
|
+
* @type {string}
|
23
|
+
* @private
|
24
|
+
*/
|
25
|
+
private _styleName;
|
26
|
+
/**
|
27
|
+
* @type {string}
|
28
|
+
* @private
|
29
|
+
*/
|
30
|
+
private _layerName;
|
31
|
+
/**
|
32
|
+
* @returns {ApplyLayerStyleOptions}
|
33
|
+
*/
|
34
|
+
toJSON(): ApplyLayerStyleOptions;
|
35
|
+
}
|
36
|
+
import VcsCallback from './vcsCallback.js';
|
@@ -2,7 +2,7 @@ import { FeatureLayer } from '@vcmap/core';
|
|
2
2
|
import VcsCallback, { callbackClassRegistry } from './vcsCallback.js';
|
3
3
|
|
4
4
|
/**
|
5
|
-
* @typedef {VcsCallbackOptions} ApplyLayerStyleOptions
|
5
|
+
* @typedef {import("./vcsCallback.js").VcsCallbackOptions & { styleName: string, layerName: string }} ApplyLayerStyleOptions
|
6
6
|
* @property {string} styleName - name of the style
|
7
7
|
* @property {string} layerName - name of the layer to apply the style
|
8
8
|
*/
|
@@ -21,7 +21,7 @@ class ApplyLayerStyleCallback extends VcsCallback {
|
|
21
21
|
|
22
22
|
/**
|
23
23
|
* @param {ApplyLayerStyleOptions} options
|
24
|
-
* @param {
|
24
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
25
25
|
*/
|
26
26
|
constructor(options, app) {
|
27
27
|
super(options, app);
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export default DeactivateLayersCallback;
|
2
|
+
export type DeactivateLayersOptions = import("./vcsCallback.js").VcsCallbackOptions & {
|
3
|
+
layerNames: string[];
|
4
|
+
};
|
5
|
+
/**
|
6
|
+
* @typedef {import("./vcsCallback.js").VcsCallbackOptions & { layerNames: string[] }} DeactivateLayersOptions
|
7
|
+
* @property {Array<string>} layerNames - layer names to deactivate
|
8
|
+
*/
|
9
|
+
/**
|
10
|
+
* @class
|
11
|
+
* @extends {VcsCallback}
|
12
|
+
*/
|
13
|
+
declare class DeactivateLayersCallback extends VcsCallback {
|
14
|
+
/**
|
15
|
+
* @param {DeactivateLayersOptions} options
|
16
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
17
|
+
*/
|
18
|
+
constructor(options: DeactivateLayersOptions, app: import("@src/vcsUiApp.js").default);
|
19
|
+
/**
|
20
|
+
* @type {Array<string>}
|
21
|
+
* @private
|
22
|
+
*/
|
23
|
+
private _layerNames;
|
24
|
+
/**
|
25
|
+
* @returns {DeactivateLayersOptions}
|
26
|
+
*/
|
27
|
+
toJSON(): DeactivateLayersOptions;
|
28
|
+
}
|
29
|
+
import VcsCallback from './vcsCallback.js';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import VcsCallback, { callbackClassRegistry } from './vcsCallback.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
* @typedef {VcsCallbackOptions} DeactivateLayersOptions
|
4
|
+
* @typedef {import("./vcsCallback.js").VcsCallbackOptions & { layerNames: string[] }} DeactivateLayersOptions
|
5
5
|
* @property {Array<string>} layerNames - layer names to deactivate
|
6
6
|
*/
|
7
7
|
|
@@ -19,7 +19,7 @@ class DeactivateLayersCallback extends VcsCallback {
|
|
19
19
|
|
20
20
|
/**
|
21
21
|
* @param {DeactivateLayersOptions} options
|
22
|
-
* @param {
|
22
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
23
23
|
*/
|
24
24
|
constructor(options, app) {
|
25
25
|
super(options, app);
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export default GoToViewpointCallback;
|
2
|
+
export type GoToViewpointOptions = import("./vcsCallback.js").VcsCallbackOptions & {
|
3
|
+
viewpoint: string;
|
4
|
+
};
|
5
|
+
/**
|
6
|
+
* @typedef {import("./vcsCallback.js").VcsCallbackOptions & { viewpoint: string }} GoToViewpointOptions
|
7
|
+
* @property {string} viewpoint - name of the viewpoint
|
8
|
+
*/
|
9
|
+
/**
|
10
|
+
* @class
|
11
|
+
* @extends {VcsCallback}
|
12
|
+
*/
|
13
|
+
declare class GoToViewpointCallback extends VcsCallback {
|
14
|
+
/**
|
15
|
+
* @param {GoToViewpointOptions} options
|
16
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
17
|
+
*/
|
18
|
+
constructor(options: GoToViewpointOptions, app: import("@src/vcsUiApp.js").default);
|
19
|
+
/**
|
20
|
+
* @type {string}
|
21
|
+
* @private
|
22
|
+
*/
|
23
|
+
private _viewpoint;
|
24
|
+
/**
|
25
|
+
* @returns {GoToViewpointOptions}
|
26
|
+
*/
|
27
|
+
toJSON(): GoToViewpointOptions;
|
28
|
+
}
|
29
|
+
import VcsCallback from './vcsCallback.js';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import VcsCallback, { callbackClassRegistry } from './vcsCallback.js';
|
2
2
|
|
3
3
|
/**
|
4
|
-
* @typedef {VcsCallbackOptions} GoToViewpointOptions
|
4
|
+
* @typedef {import("./vcsCallback.js").VcsCallbackOptions & { viewpoint: string }} GoToViewpointOptions
|
5
5
|
* @property {string} viewpoint - name of the viewpoint
|
6
6
|
*/
|
7
7
|
|
@@ -19,7 +19,7 @@ class GoToViewpointCallback extends VcsCallback {
|
|
19
19
|
|
20
20
|
/**
|
21
21
|
* @param {GoToViewpointOptions} options
|
22
|
-
* @param {
|
22
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
23
23
|
*/
|
24
24
|
constructor(options, app) {
|
25
25
|
super(options, app);
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/**
|
2
|
+
* creates instances of VcsCallback classes and executes its callback function
|
3
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
4
|
+
* @param {Array<VcsCallbackOptions>} vcsCallbackOptions
|
5
|
+
*/
|
6
|
+
export function executeCallbacks(app: import("@src/vcsUiApp.js").default, vcsCallbackOptions: Array<VcsCallbackOptions>): void;
|
7
|
+
/**
|
8
|
+
* @type {ClassRegistry<import("@vcmap/core").Ctor<typeof VcsCallback>>}
|
9
|
+
*/
|
10
|
+
export const callbackClassRegistry: ClassRegistry<import("@vcmap/core").Ctor<typeof VcsCallback>>;
|
11
|
+
export default VcsCallback;
|
12
|
+
export type VcsCallbackOptions = {
|
13
|
+
type: string;
|
14
|
+
};
|
15
|
+
import { ClassRegistry } from '@vcmap/core';
|
16
|
+
/**
|
17
|
+
* @typedef {Object} VcsCallbackOptions
|
18
|
+
* @property {string} type
|
19
|
+
*/
|
20
|
+
/**
|
21
|
+
* @class
|
22
|
+
* @abstract
|
23
|
+
*/
|
24
|
+
declare class VcsCallback {
|
25
|
+
/**
|
26
|
+
* @type {string}
|
27
|
+
*/
|
28
|
+
static get className(): string;
|
29
|
+
/**
|
30
|
+
* @param {VcsCallbackOptions} options
|
31
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
32
|
+
*/
|
33
|
+
constructor(options: VcsCallbackOptions, app: import("@src/vcsUiApp.js").default);
|
34
|
+
/**
|
35
|
+
* @protected
|
36
|
+
* @type {import("@src/vcsUiApp.js").default}
|
37
|
+
*/
|
38
|
+
protected _app: import("@src/vcsUiApp.js").default;
|
39
|
+
callback(): void;
|
40
|
+
/**
|
41
|
+
* @returns {VcsCallbackOptions}
|
42
|
+
*/
|
43
|
+
toJSON(): VcsCallbackOptions;
|
44
|
+
}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { ClassRegistry } from '@vcmap/core';
|
2
2
|
|
3
3
|
/**
|
4
|
-
* @type {ClassRegistry<VcsCallback
|
4
|
+
* @type {ClassRegistry<import("@vcmap/core").Ctor<typeof VcsCallback>>}
|
5
5
|
*/
|
6
6
|
export const callbackClassRegistry = new ClassRegistry();
|
7
7
|
|
8
8
|
/**
|
9
9
|
* creates instances of VcsCallback classes and executes its callback function
|
10
|
-
* @param {
|
10
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
11
11
|
* @param {Array<VcsCallbackOptions>} vcsCallbackOptions
|
12
12
|
*/
|
13
13
|
export function executeCallbacks(app, vcsCallbackOptions) {
|
@@ -21,11 +21,6 @@ export function executeCallbacks(app, vcsCallbackOptions) {
|
|
21
21
|
* @property {string} type
|
22
22
|
*/
|
23
23
|
|
24
|
-
/**
|
25
|
-
* @typedef {Object} VcsCallback
|
26
|
-
* @property {function():void} callback
|
27
|
-
*/
|
28
|
-
|
29
24
|
/**
|
30
25
|
* @class
|
31
26
|
* @abstract
|
@@ -40,12 +35,12 @@ class VcsCallback {
|
|
40
35
|
|
41
36
|
/**
|
42
37
|
* @param {VcsCallbackOptions} options
|
43
|
-
* @param {
|
38
|
+
* @param {import("@src/vcsUiApp.js").default} app
|
44
39
|
*/
|
45
40
|
constructor(options, app) {
|
46
41
|
/**
|
47
42
|
* @protected
|
48
|
-
* @type {
|
43
|
+
* @type {import("@src/vcsUiApp.js").default}
|
49
44
|
*/
|
50
45
|
this._app = app;
|
51
46
|
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
element: {
|
3
|
+
type: ({
|
4
|
+
new (): HTMLCanvasElement;
|
5
|
+
prototype: HTMLCanvasElement;
|
6
|
+
} | {
|
7
|
+
new (): HTMLImageElement;
|
8
|
+
prototype: HTMLImageElement;
|
9
|
+
})[];
|
10
|
+
required: true;
|
11
|
+
};
|
12
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
13
|
+
element: {
|
14
|
+
type: ({
|
15
|
+
new (): HTMLCanvasElement;
|
16
|
+
prototype: HTMLCanvasElement;
|
17
|
+
} | {
|
18
|
+
new (): HTMLImageElement;
|
19
|
+
prototype: HTMLImageElement;
|
20
|
+
})[];
|
21
|
+
required: true;
|
22
|
+
};
|
23
|
+
}>>, {}>;
|
24
|
+
export default _default;
|
@@ -1,20 +1,22 @@
|
|
1
1
|
<template>
|
2
2
|
<div v-if="actions.length > 0" :class="classes">
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
3
|
+
<template v-if="buttons.length > 0">
|
4
|
+
<component
|
5
|
+
:is="button"
|
6
|
+
class="d-flex"
|
7
|
+
v-for="(btn, index) in buttons"
|
8
|
+
:key="`${btn.name}-${index}`"
|
9
|
+
:tooltip="btn.title"
|
10
|
+
:icon="btn.icon"
|
11
|
+
:active="btn.active"
|
12
|
+
:disabled="btn.disabled || disabled"
|
13
|
+
:has-update="btn.hasUpdate"
|
14
|
+
:background="btn.background"
|
15
|
+
@click.stop="btn.callback($event)"
|
16
|
+
v-bind="{ ...$attrs }"
|
17
|
+
v-on="{ ...$listeners }"
|
18
|
+
/>
|
19
|
+
</template>
|
18
20
|
<v-menu
|
19
21
|
v-if="overflowButtons.length > 0"
|
20
22
|
content-class="vcs-overflow-menu-wrap"
|
@@ -25,6 +27,7 @@
|
|
25
27
|
<template #activator="{ on, attrs }">
|
26
28
|
<component
|
27
29
|
:is="button"
|
30
|
+
:disabled="disabled"
|
28
31
|
v-bind="{ ...$attrs, ...attrs }"
|
29
32
|
v-on="on"
|
30
33
|
class="d-flex"
|
@@ -32,7 +35,7 @@
|
|
32
35
|
<v-icon>{{ overflowIcon }}</v-icon>
|
33
36
|
</component>
|
34
37
|
</template>
|
35
|
-
<VcsActionList :actions="overflowButtons" />
|
38
|
+
<VcsActionList :actions="overflowButtons" :disabled="disabled" />
|
36
39
|
</v-menu>
|
37
40
|
<v-spacer
|
38
41
|
v-else-if="blockOverflow"
|
@@ -63,6 +66,7 @@
|
|
63
66
|
* @vue-prop {boolean} [blockOverflow=false] - if space for the overflow should be blocked or not (e.g. when rendering lists in a grid)
|
64
67
|
* @vue-computed {Array<VcsAction>} buttons - buttons rendered directly, have to provide an icon
|
65
68
|
* @vue-computed {Array<VcsAction>} overflowButtons - rest of buttons rendered in overflow
|
69
|
+
* @vue-prop {boolean} [disabled=false] - disable all actions
|
66
70
|
*/
|
67
71
|
export default {
|
68
72
|
name: 'VcsActionButtonList',
|
@@ -99,6 +103,10 @@
|
|
99
103
|
type: Boolean,
|
100
104
|
default: false,
|
101
105
|
},
|
106
|
+
disabled: {
|
107
|
+
type: Boolean,
|
108
|
+
default: false,
|
109
|
+
},
|
102
110
|
},
|
103
111
|
computed: {
|
104
112
|
right() {
|
@@ -0,0 +1,68 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
actions: {
|
3
|
+
type: ArrayConstructor;
|
4
|
+
required: true;
|
5
|
+
validator: typeof validateActions;
|
6
|
+
};
|
7
|
+
button: {
|
8
|
+
type: StringConstructor;
|
9
|
+
default: string;
|
10
|
+
validator: (type: unknown) => boolean;
|
11
|
+
};
|
12
|
+
overflowCount: {
|
13
|
+
type: NumberConstructor;
|
14
|
+
default: number;
|
15
|
+
};
|
16
|
+
overflowIcon: {
|
17
|
+
type: StringConstructor;
|
18
|
+
default: string;
|
19
|
+
};
|
20
|
+
blockOverflow: {
|
21
|
+
type: BooleanConstructor;
|
22
|
+
default: boolean;
|
23
|
+
};
|
24
|
+
disabled: {
|
25
|
+
type: BooleanConstructor;
|
26
|
+
default: boolean;
|
27
|
+
};
|
28
|
+
}, {}, {}, {
|
29
|
+
right(): boolean;
|
30
|
+
buttons(): any;
|
31
|
+
overflowButtons(): any;
|
32
|
+
classes(): string[];
|
33
|
+
}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
34
|
+
actions: {
|
35
|
+
type: ArrayConstructor;
|
36
|
+
required: true;
|
37
|
+
validator: typeof validateActions;
|
38
|
+
};
|
39
|
+
button: {
|
40
|
+
type: StringConstructor;
|
41
|
+
default: string;
|
42
|
+
validator: (type: unknown) => boolean;
|
43
|
+
};
|
44
|
+
overflowCount: {
|
45
|
+
type: NumberConstructor;
|
46
|
+
default: number;
|
47
|
+
};
|
48
|
+
overflowIcon: {
|
49
|
+
type: StringConstructor;
|
50
|
+
default: string;
|
51
|
+
};
|
52
|
+
blockOverflow: {
|
53
|
+
type: BooleanConstructor;
|
54
|
+
default: boolean;
|
55
|
+
};
|
56
|
+
disabled: {
|
57
|
+
type: BooleanConstructor;
|
58
|
+
default: boolean;
|
59
|
+
};
|
60
|
+
}>>, {
|
61
|
+
button: string;
|
62
|
+
disabled: boolean;
|
63
|
+
overflowCount: number;
|
64
|
+
overflowIcon: string;
|
65
|
+
blockOverflow: boolean;
|
66
|
+
}>;
|
67
|
+
export default _default;
|
68
|
+
import { validateActions } from '../lists/VcsActionList.vue';
|
@@ -6,6 +6,7 @@
|
|
6
6
|
:color="appliedColor"
|
7
7
|
:disabled="disabled"
|
8
8
|
class="vcs-button pa-0"
|
9
|
+
:class="customClasses.join(' ')"
|
9
10
|
:ripple="false"
|
10
11
|
elevation="0"
|
11
12
|
v-bind="{ ...$attrs }"
|
@@ -28,6 +29,7 @@
|
|
28
29
|
:color="appliedColor"
|
29
30
|
:disabled="disabled"
|
30
31
|
class="vcs-button pa-0"
|
32
|
+
:class="customClasses.join(' ')"
|
31
33
|
:ripple="false"
|
32
34
|
elevation="0"
|
33
35
|
v-bind="{ ...$attrs, ...attrs }"
|
@@ -88,6 +90,7 @@
|
|
88
90
|
* @vue-prop {string} tooltip - Text content of a tooltip which appears on hover with default delay.
|
89
91
|
* @vue-prop {('bottom' | 'left' | 'top' | 'right')} tooltipPosition - Position of the tooltip.
|
90
92
|
* @vue-prop {Object<string, any>} tooltipProps - Properties to be passed to VcsTooltip {@link https://vuetifyjs.com/en/api/v-tooltip/#props|vuetify v-tooltip}
|
93
|
+
* @vue-prop {string[]} [customClasses] - CSS classes to customize style
|
91
94
|
* @vue-computed {string} appliedColor - color applied to button, depending on active state
|
92
95
|
* @vue-computed {boolean} hasDefaultSlot
|
93
96
|
* @vue-event {MouseEvent} click - Emits click event when the button is clicked.
|
@@ -134,6 +137,10 @@
|
|
134
137
|
type: Object,
|
135
138
|
default: () => ({}),
|
136
139
|
},
|
140
|
+
customClasses: {
|
141
|
+
type: Array,
|
142
|
+
default: () => [],
|
143
|
+
},
|
137
144
|
},
|
138
145
|
computed: {
|
139
146
|
appliedColor() {
|
@@ -0,0 +1,89 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
active: {
|
3
|
+
type: BooleanConstructor;
|
4
|
+
default: boolean;
|
5
|
+
};
|
6
|
+
color: {
|
7
|
+
type: StringConstructor;
|
8
|
+
default: undefined;
|
9
|
+
};
|
10
|
+
disabled: {
|
11
|
+
type: BooleanConstructor;
|
12
|
+
default: boolean;
|
13
|
+
};
|
14
|
+
hasUpdate: {
|
15
|
+
type: BooleanConstructor;
|
16
|
+
default: boolean;
|
17
|
+
};
|
18
|
+
icon: {
|
19
|
+
type: StringConstructor;
|
20
|
+
default: undefined;
|
21
|
+
};
|
22
|
+
tooltip: {
|
23
|
+
type: StringConstructor;
|
24
|
+
default: undefined;
|
25
|
+
};
|
26
|
+
tooltipPosition: {
|
27
|
+
type: StringConstructor;
|
28
|
+
default: string;
|
29
|
+
};
|
30
|
+
tooltipProps: {
|
31
|
+
type: ObjectConstructor;
|
32
|
+
default: () => {};
|
33
|
+
};
|
34
|
+
customClasses: {
|
35
|
+
type: ArrayConstructor;
|
36
|
+
default: () => never[];
|
37
|
+
};
|
38
|
+
}, {}, {}, {
|
39
|
+
appliedColor(): any;
|
40
|
+
hasDefaultSlot(): boolean;
|
41
|
+
}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
42
|
+
active: {
|
43
|
+
type: BooleanConstructor;
|
44
|
+
default: boolean;
|
45
|
+
};
|
46
|
+
color: {
|
47
|
+
type: StringConstructor;
|
48
|
+
default: undefined;
|
49
|
+
};
|
50
|
+
disabled: {
|
51
|
+
type: BooleanConstructor;
|
52
|
+
default: boolean;
|
53
|
+
};
|
54
|
+
hasUpdate: {
|
55
|
+
type: BooleanConstructor;
|
56
|
+
default: boolean;
|
57
|
+
};
|
58
|
+
icon: {
|
59
|
+
type: StringConstructor;
|
60
|
+
default: undefined;
|
61
|
+
};
|
62
|
+
tooltip: {
|
63
|
+
type: StringConstructor;
|
64
|
+
default: undefined;
|
65
|
+
};
|
66
|
+
tooltipPosition: {
|
67
|
+
type: StringConstructor;
|
68
|
+
default: string;
|
69
|
+
};
|
70
|
+
tooltipProps: {
|
71
|
+
type: ObjectConstructor;
|
72
|
+
default: () => {};
|
73
|
+
};
|
74
|
+
customClasses: {
|
75
|
+
type: ArrayConstructor;
|
76
|
+
default: () => never[];
|
77
|
+
};
|
78
|
+
}>>, {
|
79
|
+
tooltip: string;
|
80
|
+
tooltipPosition: string;
|
81
|
+
disabled: boolean;
|
82
|
+
icon: string;
|
83
|
+
active: boolean;
|
84
|
+
hasUpdate: boolean;
|
85
|
+
color: string;
|
86
|
+
tooltipProps: Record<string, any>;
|
87
|
+
customClasses: unknown[];
|
88
|
+
}>;
|
89
|
+
export default _default;
|
@@ -115,6 +115,7 @@
|
|
115
115
|
* @vue-prop {string} tooltip - Text content of a tooltip which appears on hover with default delay.
|
116
116
|
* @vue-prop {('bottom' | 'left' | 'top' | 'right')} tooltipPosition - Position of the tooltip.
|
117
117
|
* @vue-prop {Object<string, any>} tooltipProps - Properties to be passed to VcsTooltip {@link https://vuetifyjs.com/en/api/v-tooltip/#props|vuetify v-tooltip}
|
118
|
+
* @vue-prop {string[]} [customClasses] - CSS classes to customize style
|
118
119
|
* @vue-computed {Object<string, string>} classes - css classes applied to button, depending on variant
|
119
120
|
* @vue-computed {boolean} hasDefaultSlot
|
120
121
|
* @vue-event {MouseEvent} click - Emits click event when the button is clicked.
|
@@ -162,10 +163,18 @@
|
|
162
163
|
type: Object,
|
163
164
|
default: () => ({}),
|
164
165
|
},
|
166
|
+
customClasses: {
|
167
|
+
type: Array,
|
168
|
+
default: () => [],
|
169
|
+
},
|
165
170
|
},
|
166
171
|
computed: {
|
167
172
|
classes() {
|
168
173
|
return {
|
174
|
+
...this.customClasses.reduce(
|
175
|
+
(acc, cur) => ({ ...acc, [cur]: true }),
|
176
|
+
{},
|
177
|
+
),
|
169
178
|
'vcs-form-button--outlined': this.variant === 'outlined',
|
170
179
|
'vcs-form-button--filled': this.variant === 'filled',
|
171
180
|
};
|