@vcmap/ui 6.0.0-rc.5 → 6.0.0-rc.7
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/build/buildTypes.js +9 -5
- package/config/base.config.json +8 -8
- package/config/dev.config.json +4 -0
- package/config/projects.config.json +2 -1
- package/config/theming.config.json +68 -0
- package/config/www.config.json +31 -30
- package/dist/assets/cesium/Workers/{chunk-LUYI3XCB.js → chunk-2LOWCAMW.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-V7WJDCPA.js → chunk-2PTKXHJB.js} +10 -10
- package/dist/assets/cesium/Workers/{chunk-YFVI4SQI.js → chunk-3HQMMUPU.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-XGI4FRXF.js → chunk-3IFRSGEY.js} +9 -9
- package/dist/assets/cesium/Workers/{chunk-4RJH3H6D.js → chunk-44QAAS4P.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-4EW3HFFI.js → chunk-56EDBCGT.js} +10 -10
- package/dist/assets/cesium/Workers/{chunk-PRKEY4QK.js → chunk-57H6I3SV.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-X67EJ6X6.js → chunk-6SQMLVGV.js} +54 -7
- package/dist/assets/cesium/Workers/{chunk-RRLGJV3Q.js → chunk-7YIOHQWH.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-G6346EDR.js → chunk-7ZZ5LMZY.js} +16 -15
- package/dist/assets/cesium/Workers/{chunk-YFYPR4MW.js → chunk-BVKITG4N.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-N5MIFVXJ.js → chunk-C3EQ27WF.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-TLGODPEV.js → chunk-C4WPMOKT.js} +6 -5
- package/dist/assets/cesium/Workers/{chunk-DTACCQDR.js → chunk-EDLRS3AW.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-EVU2UNBD.js → chunk-EJVGYGLF.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-FYYT5EVH.js → chunk-FFLMY4TE.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-5OUTANXX.js → chunk-GBT7MJ6X.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-3DRPXHZ4.js → chunk-HJMNR3GC.js} +11 -11
- package/dist/assets/cesium/Workers/{chunk-IALQGTA2.js → chunk-HP5XLODI.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-DR7LK6PG.js → chunk-IBRIWOCM.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-WMVCLETM.js → chunk-IZGUQO6Q.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-T6TZXGG5.js → chunk-IZJ42N4W.js} +17 -17
- package/dist/assets/cesium/Workers/{chunk-FZDKIUDT.js → chunk-JBSKHTNX.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-S4VTLNAJ.js → chunk-JISPSEF3.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-KNMGSIIN.js → chunk-JSQJDZI4.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-LMTN7R7M.js → chunk-JXVLNVXC.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-A5C2A5O5.js → chunk-KHZNBFOH.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-PIOKSAZH.js → chunk-L5GODJAR.js} +14 -14
- package/dist/assets/cesium/Workers/{chunk-Q7PM4W34.js → chunk-LJ2JQHJT.js} +12 -7
- package/dist/assets/cesium/Workers/{chunk-D6PDWQXW.js → chunk-LLAF3CPH.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-H7PSTL64.js → chunk-M24KHENR.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-I67V66MN.js → chunk-NDDI2LWR.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-FSXNF76Y.js → chunk-NGZJIN5Z.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-UMX265HW.js → chunk-O72GZTSE.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-WOA6WSHH.js → chunk-OPP2SKMA.js} +12 -12
- package/dist/assets/cesium/Workers/{chunk-VD6G7UPU.js → chunk-P6TRGU3S.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-QLC66ZRL.js → chunk-QN6TBED4.js} +11 -11
- package/dist/assets/cesium/Workers/{chunk-O7OUBDMZ.js → chunk-QQOZO7KO.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-AGTH5JMJ.js → chunk-RJM36CNY.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-UC566ISB.js → chunk-RTJKHZWU.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-L4XQPD6P.js → chunk-TI3TRKIC.js} +423 -448
- package/dist/assets/cesium/Workers/{chunk-3GI7DWF7.js → chunk-TK5IIG2F.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-6DH5PLFD.js → chunk-U5HSOKPQ.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-BPY4HDAK.js → chunk-WGDFYAGC.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-SJC5PRDX.js → chunk-X7IQYYHF.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-4OX4RYLB.js → chunk-XIUSRWL6.js} +9 -5
- package/dist/assets/cesium/Workers/{chunk-S2UEXF6T.js → chunk-XWOUPGUF.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-F7IEM66T.js → chunk-YCDZX5LS.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-AVFIYUKX.js → chunk-YK3QIKY7.js} +9 -9
- package/dist/assets/cesium/Workers/{chunk-BAJAVGUF.js → chunk-YSIJTJ7N.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-6DXIYFX3.js → chunk-Z2QP3CXW.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-P24I5VUS.js → chunk-ZVUUPJEM.js} +17 -17
- package/dist/assets/cesium/Workers/combineGeometry.js +22 -22
- package/dist/assets/cesium/Workers/createBoxGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +14 -14
- package/dist/assets/cesium/Workers/createCircleGeometry.js +24 -24
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +17 -17
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +31 -31
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +27 -27
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +26 -26
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +18 -18
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +24 -24
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +17 -17
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +17 -17
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createGeometry.js +22 -22
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +20 -20
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +14 -14
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +13 -13
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +30 -30
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +28 -28
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +23 -23
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +29 -29
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +25 -25
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +18 -18
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +21 -21
- package/dist/assets/cesium/Workers/createSphereGeometry.js +17 -17
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +3 -3
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +13 -13
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +22 -22
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +12 -12
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +20 -20
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +13 -13
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +20 -20
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +24 -20
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +17 -17
- package/dist/assets/cesium/Workers/createWallGeometry.js +22 -22
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +21 -21
- package/dist/assets/cesium/Workers/decodeDraco.js +11 -11
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +28 -5
- package/dist/assets/cesium/Workers/decodeI3S.js +10 -10
- package/dist/assets/cesium/Workers/transcodeKTX2.js +19 -18
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +1 -1
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +20 -20
- package/dist/assets/{cesium-126f111a.js → cesium-2afc3568.js} +136600 -136700
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core-1c8b8674.js → core-3fd82bc2.js} +8384 -7554
- package/dist/assets/core.js +1 -1
- package/dist/assets/{ol-27f9b3f3.js → ol-edf7bfb3.js} +2246 -2248
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui-c6eb55a5.css +1 -0
- package/dist/assets/{ui-7214428e.js → ui-c6eb55a5.js} +8687 -8464
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify-88a2fabe.css → vuetify-c3b6c9b3.css} +1 -1
- package/dist/assets/{vuetify-88a2fabe.js → vuetify-c3b6c9b3.js} +2375 -2369
- package/dist/assets/vuetify.js +1 -1
- package/index.d.ts +22 -10
- package/index.js +9 -3
- package/package.json +4 -4
- package/plugins/@vcmap-show-case/custom-icons-example/README.md +3 -0
- package/plugins/@vcmap-show-case/custom-icons-example/assets/imageExample.png +0 -0
- package/plugins/@vcmap-show-case/custom-icons-example/assets/svgExample.svg +1 -0
- package/plugins/@vcmap-show-case/custom-icons-example/package.json +5 -0
- package/plugins/@vcmap-show-case/custom-icons-example/src/CustomIconsExample.vue +90 -0
- package/plugins/@vcmap-show-case/custom-icons-example/src/index.js +45 -0
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +2 -2
- package/plugins/@vcmap-show-case/plugin-editors/src/PluginEditors.vue +11 -7
- package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +1 -1
- package/plugins/@vcmap-show-case/theming-example/README.md +3 -0
- package/plugins/@vcmap-show-case/theming-example/package.json +5 -0
- package/plugins/@vcmap-show-case/theming-example/src/ThemingExample.vue +116 -0
- package/plugins/@vcmap-show-case/theming-example/src/index.js +53 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/GeometrySettings.vue +420 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/LayoutHandler.vue +97 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/TerrainSettings.vue +90 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/VectorPropertiesExample.vue +61 -70
- package/plugins/@vcmap-show-case/vector-properties-example/src/index.js +34 -1
- package/plugins/@vcmap-show-case/vector-properties-example/src/lib.js +294 -0
- package/plugins/package.json +5 -1
- package/src/actions/StyleSelector.vue +35 -19
- package/src/actions/StyleSelector.vue.d.ts +5 -5
- package/src/actions/actionHelper.d.ts +4 -11
- package/src/actions/actionHelper.js +2 -5
- package/src/actions/listActions.d.ts +2 -2
- package/src/application/VcsApp.vue +20 -26
- package/src/application/VcsApp.vue.d.ts +5 -1
- package/src/application/VcsAttributionsFooter.vue +20 -11
- package/src/application/VcsAttributionsFooter.vue.d.ts +1 -1
- package/src/application/VcsContainer.vue +2 -2
- package/src/application/VcsContainer.vue.d.ts +5 -1
- package/src/application/VcsNavbar.vue +9 -1
- package/src/application/VcsNavbar.vue.d.ts +1 -0
- package/src/application/VcsSplashScreen.vue +11 -2
- package/src/application/VcsTextPageFooter.vue +4 -4
- package/src/application/attributionsHelper.d.ts +20 -22
- package/src/application/attributionsHelper.js +4 -4
- package/src/callback/vcsCallback.d.ts +2 -2
- package/src/callback/vcsCallback.js +1 -1
- package/src/components/buttons/VcsActionButtonList.vue +2 -3
- package/src/components/buttons/VcsButton.vue +2 -4
- package/src/components/buttons/VcsButton.vue.d.ts +1 -1
- package/src/components/buttons/VcsFormButton.vue +4 -4
- package/src/components/buttons/VcsToolButton.vue +4 -2
- package/src/components/buttons/VcsToolButton.vue.d.ts +2 -2
- package/src/components/composables.d.ts +5 -0
- package/src/components/composables.js +79 -9
- package/src/components/extent/VcsExtent.vue +10 -6
- package/src/components/extent/VcsExtent.vue.d.ts +1 -0
- package/src/components/flight/VcsFlightComponent.vue +13 -13
- package/src/components/flight/VcsFlightComponent.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsCheckbox.vue +8 -3
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +3 -8
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue.d.ts +0 -1
- package/src/components/form-inputs-controls/VcsCoordinate.vue +1 -2
- package/src/components/form-inputs-controls/VcsFileInput.vue +1 -1
- package/src/components/form-inputs-controls/VcsLabel.vue +32 -9
- package/src/components/form-inputs-controls/VcsLabel.vue.d.ts +2 -0
- package/src/components/form-inputs-controls/VcsRadio.vue +8 -6
- package/src/components/form-inputs-controls/VcsRadio.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +2 -2
- package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +2 -2
- package/src/components/form-inputs-controls/VcsSlider.vue +5 -5
- package/src/components/form-inputs-controls/VcsTextArea.vue +1 -1
- package/src/components/form-inputs-controls/VcsTextField.vue +10 -1
- package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +2 -1
- package/src/components/form-inputs-controls/VcsWizard.vue +3 -3
- package/src/components/form-inputs-controls/VcsWizardStep.vue +5 -1
- package/src/components/form-inputs-controls/vcsTextField.scss +7 -1
- package/src/components/form-output/VcsFormattedNumber.vue +1 -1
- package/src/components/import/VcsImportComponent.vue +7 -4
- package/src/components/import/VcsImportComponent.vue.d.ts +1 -1
- package/src/components/lists/VcsActionList.vue +2 -6
- package/src/components/lists/VcsListItemComponent.vue +20 -10
- package/src/components/lists/VcsListItemComponent.vue.d.ts +11 -1
- package/src/components/lists/VcsTreeview.vue +75 -11
- package/src/components/lists/VcsTreeview.vue.d.ts +12 -0
- package/src/components/lists/VcsTreeviewSearchbar.vue +14 -3
- package/src/components/lists/VcsTreeviewSearchbar.vue.d.ts +3 -1
- package/src/components/lists/VcsTreeviewTitle.vue +40 -0
- package/src/components/modelHelper.d.ts +10 -8
- package/src/components/modelHelper.js +8 -6
- package/src/components/notification/VcsHelp.vue +6 -7
- package/src/components/notification/VcsHelp.vue.d.ts +0 -9
- package/src/components/plugins/AbstractConfigEditor.vue +1 -22
- package/src/components/plugins/AbstractConfigEditor.vue.d.ts +6 -29
- package/src/components/section/VcsExpansionPanel.vue +9 -3
- package/src/components/section/VcsExpansionPanel.vue.d.ts +2 -2
- package/src/components/section/VcsFormSection.vue +6 -6
- package/src/components/section/VcsFormSection.vue.d.ts +2 -2
- package/src/components/style/VcsImageSelector.vue +14 -6
- package/src/components/style/VcsImageSelector.vue.d.ts +1 -0
- package/src/components/style/VcsStrokeSelector.vue +5 -2
- package/src/components/style/VcsStrokeSelector.vue.d.ts +1 -0
- package/src/components/style/VcsTextMenu.vue +2 -2
- package/src/components/tables/VcsDataTable.vue +14 -10
- package/src/components/tables/VcsDataTable.vue.d.ts +1 -0
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +17 -34
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts +5 -3
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +78 -43
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +4 -2
- package/src/components/viewpoint/VcsViewpointComponent.vue +12 -9
- package/src/components/viewpoint/VcsViewpointComponent.vue.d.ts +1 -0
- package/src/contentTree/contentTreeItem.d.ts +2 -2
- package/src/contentTree/contentTreeItem.js +1 -1
- package/src/contentTree/layerContentTreeItem.d.ts +8 -5
- package/src/contentTree/layerContentTreeItem.js +48 -34
- package/src/contentTree/layerGroupContentTreeItem.d.ts +7 -1
- package/src/contentTree/layerGroupContentTreeItem.js +22 -3
- package/src/featureInfo/BalloonComponent.vue +21 -13
- package/src/featureInfo/BalloonComponent.vue.d.ts +1 -0
- package/src/featureInfo/abstractFeatureInfoView.d.ts +4 -4
- package/src/featureInfo/abstractFeatureInfoView.js +4 -4
- package/src/featureInfo/balloonHelper.js +1 -1
- package/src/featureInfo/featureInfo.d.ts +2 -2
- package/src/featureInfo/featureInfo.js +1 -1
- package/src/i18n/de.d.ts +5 -0
- package/src/i18n/de.js +7 -2
- package/src/i18n/en.d.ts +5 -0
- package/src/i18n/en.js +6 -1
- package/src/i18n/i18nCollection.d.ts +9 -15
- package/src/i18n/i18nCollection.js +3 -3
- package/src/legend/VcsLegend.vue +6 -2
- package/src/legend/VcsLegend.vue.d.ts +1 -0
- package/src/manager/collectionManager/CollectionComponentList.vue +1 -1
- package/src/manager/collectionManager/categoryManager.d.ts +1 -1
- package/src/manager/collectionManager/collectionComponentClass.d.ts +2 -2
- package/src/manager/collectionManager/collectionComponentClass.js +4 -4
- package/src/manager/collectionManager/collectionManager.d.ts +1 -1
- package/src/manager/toolbox/GroupToolboxComponent.vue +8 -6
- package/src/manager/toolbox/GroupToolboxComponent.vue.d.ts +1 -1
- package/src/manager/toolbox/SelectToolboxComponent.vue +8 -6
- package/src/manager/toolbox/SelectToolboxComponent.vue.d.ts +1 -1
- package/src/manager/toolbox/{ToolboxManager.vue → ToolboxManagerComponent.vue} +8 -5
- package/src/manager/toolbox/{ToolboxManager.vue.d.ts → ToolboxManagerComponent.vue.d.ts} +1 -1
- package/src/manager/window/WindowComponentHeader.vue +6 -3
- package/src/manager/window/WindowComponentHeader.vue.d.ts +1 -0
- package/src/manager/window/windowManager.d.ts +6 -6
- package/src/manager/window/windowManager.js +3 -3
- package/src/navigation/OrientationToolsButton.vue +2 -4
- package/src/navigation/TiltSlider.vue +3 -5
- package/src/navigation/locatorHelper.js +3 -21
- package/src/search/SearchComponent.vue +8 -6
- package/src/search/SearchComponent.vue.d.ts +1 -1
- package/src/styles/vcsList.scss +1 -1
- package/src/uiConfig.d.ts +12 -3
- package/src/uiConfig.js +2 -1
- package/src/vcsUiApp.d.ts +39 -53
- package/src/vcsUiApp.js +30 -24
- package/src/vuePlugins/vuetify.d.ts +88 -62
- package/src/vuePlugins/vuetify.js +116 -20
- package/dist/assets/ui-7214428e.css +0 -1
- package/plugins/@vcmap-show-case/theme-changer/README.md +0 -23
- package/plugins/@vcmap-show-case/theme-changer/config.json +0 -69
- package/plugins/@vcmap-show-case/theme-changer/package.json +0 -11
- package/plugins/@vcmap-show-case/theme-changer/src/ThemeChangerComponent.vue +0 -120
- package/plugins/@vcmap-show-case/theme-changer/src/index.js +0 -108
- package/src/components/lists/VcsTreeviewLeaf.vue +0 -92
- /package/dist/assets/{vue-c78a5f76.js → vue-aefad438.js} +0 -0
- /package/src/components/lists/{VcsTreeviewLeaf.vue.d.ts → VcsTreeviewTitle.vue.d.ts} +0 -0
@@ -1,11 +1,8 @@
|
|
1
1
|
/**
|
2
|
-
* @typedef {
|
3
|
-
* @property {string} name
|
4
|
-
* @property {string} [title]
|
5
|
-
* @property {string} [icon]
|
2
|
+
* @typedef {Omit<VcsAction, 'callback'>} ActionOptions
|
6
3
|
*/
|
7
4
|
/**
|
8
|
-
* @typedef {
|
5
|
+
* @typedef {(p?: PointerEvent) => (void | Promise<void>)} ActionCallback
|
9
6
|
*/
|
10
7
|
/**
|
11
8
|
* @typedef {Object} VcsAction
|
@@ -110,12 +107,8 @@ export function getViewpointFromFeature(feature: import("ol").Feature): Viewpoin
|
|
110
107
|
* @returns {VcsAction|null} returns null if the feature does not have a geometry with a valid extent
|
111
108
|
*/
|
112
109
|
export function createZoomToFeatureAction(actionOptions: ActionOptions, feature: import("ol").Feature, mapCollection: import("@vcmap/core").MapCollection): VcsAction | null;
|
113
|
-
export type ActionOptions =
|
114
|
-
|
115
|
-
title?: string | undefined;
|
116
|
-
icon?: string | undefined;
|
117
|
-
};
|
118
|
-
export type ActionCallback = (arg0: PointerEvent) => void | Promise<void>;
|
110
|
+
export type ActionOptions = Omit<VcsAction, 'callback'>;
|
111
|
+
export type ActionCallback = (p?: PointerEvent) => (void | Promise<void>);
|
119
112
|
export type VcsAction = {
|
120
113
|
/**
|
121
114
|
* - reactive and translatable name rendered in overflow
|
@@ -19,14 +19,11 @@ import {
|
|
19
19
|
import SearchComponent from '../search/SearchComponent.vue';
|
20
20
|
|
21
21
|
/**
|
22
|
-
* @typedef {
|
23
|
-
* @property {string} name
|
24
|
-
* @property {string} [title]
|
25
|
-
* @property {string} [icon]
|
22
|
+
* @typedef {Omit<VcsAction, 'callback'>} ActionOptions
|
26
23
|
*/
|
27
24
|
|
28
25
|
/**
|
29
|
-
* @typedef {
|
26
|
+
* @typedef {(p?: PointerEvent) => (void | Promise<void>)} ActionCallback
|
30
27
|
*/
|
31
28
|
|
32
29
|
/**
|
@@ -6,14 +6,14 @@
|
|
6
6
|
* @template {Object} T
|
7
7
|
* @returns {import("./actionHelper.js").VcsAction}
|
8
8
|
*/
|
9
|
-
export function createListItemDeleteAction<T extends Object>(collection: import("@vcmap/core").Collection<T>, item: T, actionOptions?: Partial<import("./actionHelper.js").
|
9
|
+
export function createListItemDeleteAction<T extends Object>(collection: import("@vcmap/core").Collection<T>, item: T, actionOptions?: Partial<Omit<import("./actionHelper.js").VcsAction, "callback">> | undefined): import("./actionHelper.js").VcsAction;
|
10
10
|
/**
|
11
11
|
* Creates an action based on a provided selection
|
12
12
|
* @param {import("vue").Ref<Array<import("../components/lists/VcsListItemComponent.vue").VcsListItem>>} selection
|
13
13
|
* @param {import("./actionHelper.js").ActionOptions & {callback:import("./actionHelper.js").ActionCallback}} [actionOptions]
|
14
14
|
* @returns {{action: import("vue").UnwrapRef<import("./actionHelper.js").VcsAction>, destroy: import("vue").WatchStopHandle}}
|
15
15
|
*/
|
16
|
-
export function createListItemBulkAction(selection: import("vue").Ref<Array<import("../components/lists/VcsListItemComponent.vue").VcsListItem>>, actionOptions?: (import("./actionHelper.js").
|
16
|
+
export function createListItemBulkAction(selection: import("vue").Ref<Array<import("../components/lists/VcsListItemComponent.vue").VcsListItem>>, actionOptions?: (Omit<import("./actionHelper.js").VcsAction, "callback"> & {
|
17
17
|
callback: import("./actionHelper.js").ActionCallback;
|
18
18
|
}) | undefined): {
|
19
19
|
action: import("vue").UnwrapRef<import("./actionHelper.js").VcsAction>;
|
@@ -25,8 +25,8 @@
|
|
25
25
|
:text-page="dataProtection"
|
26
26
|
:window-id="'dataProtectionWindow'"
|
27
27
|
/>
|
28
|
+
<v-spacer />
|
28
29
|
<VcsAttributionsFooter
|
29
|
-
class="align-wrapper"
|
30
30
|
:entries="attributionEntries"
|
31
31
|
:attribution-action="attributionAction"
|
32
32
|
/>
|
@@ -38,18 +38,13 @@
|
|
38
38
|
:deep(.v-application--wrap) {
|
39
39
|
min-height: fit-content;
|
40
40
|
}
|
41
|
-
.align-wrapper {
|
42
|
-
position: absolute;
|
43
|
-
right: 0;
|
44
|
-
margin-right: 4px !important;
|
45
|
-
}
|
46
41
|
</style>
|
47
42
|
|
48
43
|
<script>
|
49
44
|
import { computed, onMounted, onUnmounted, provide, watch, ref } from 'vue';
|
50
45
|
import { useDisplay } from 'vuetify';
|
51
46
|
import { getVcsAppById, moduleIdSymbol } from '@vcmap/core';
|
52
|
-
import { VContainer, VFooter } from 'vuetify/components';
|
47
|
+
import { VContainer, VFooter, VSpacer } from 'vuetify/components';
|
53
48
|
import { getLogger } from '@vcsuite/logger';
|
54
49
|
import VcsContainer from './VcsContainer.vue';
|
55
50
|
import { ButtonLocation } from '../manager/navbarManager.js';
|
@@ -63,7 +58,11 @@
|
|
63
58
|
import VcsSettings from './VcsSettings.vue';
|
64
59
|
import { WindowSlot } from '../manager/window/windowManager.js';
|
65
60
|
import CollectionManager from '../manager/collectionManager/CollectionManager.vue';
|
66
|
-
import {
|
61
|
+
import {
|
62
|
+
createVcsThemes,
|
63
|
+
setTheme,
|
64
|
+
useFontSize,
|
65
|
+
} from '../vuePlugins/vuetify.js';
|
67
66
|
import VcsLegend from '../legend/VcsLegend.vue';
|
68
67
|
import { getLegendEntries } from '../legend/legendHelper.js';
|
69
68
|
import VcsAttributionsFooter from './VcsAttributionsFooter.vue';
|
@@ -590,25 +589,19 @@
|
|
590
589
|
* @returns {function():void} - call to stop syncing
|
591
590
|
*/
|
592
591
|
export function setupUiConfigTheming(app) {
|
592
|
+
function updateTheme(item) {
|
593
|
+
if (item.name === 'primaryColor' || item.name === 'vuetifyTheme') {
|
594
|
+
const mergedThemes = createVcsThemes(
|
595
|
+
app.uiConfig.getByKey('vuetifyTheme')?.value,
|
596
|
+
app.uiConfig.getByKey('primaryColor')?.value,
|
597
|
+
);
|
598
|
+
setTheme(app.vuetify, mergedThemes);
|
599
|
+
app.themeChanged.raiseEvent();
|
600
|
+
}
|
601
|
+
}
|
593
602
|
const listeners = [
|
594
|
-
app.uiConfig.added.addEventListener(
|
595
|
-
|
596
|
-
app.vuetify.theme.themes.value.dark.colors.primary =
|
597
|
-
item.value?.dark || item.value;
|
598
|
-
app.vuetify.theme.themes.value.light.colors.primary =
|
599
|
-
item.value?.light || item.value;
|
600
|
-
app.themeChanged.raiseEvent();
|
601
|
-
}
|
602
|
-
}),
|
603
|
-
app.uiConfig.removed.addEventListener((item) => {
|
604
|
-
if (item.name === 'primaryColor') {
|
605
|
-
app.vuetify.theme.themes.value.dark.colors.primary =
|
606
|
-
defaultPrimaryColor.dark;
|
607
|
-
app.vuetify.theme.themes.value.light.colors.primary =
|
608
|
-
defaultPrimaryColor.light;
|
609
|
-
app.themeChanged.raiseEvent();
|
610
|
-
}
|
611
|
-
}),
|
603
|
+
app.uiConfig.added.addEventListener(updateTheme),
|
604
|
+
app.uiConfig.removed.addEventListener(updateTheme),
|
612
605
|
];
|
613
606
|
const stopWatching = watch(
|
614
607
|
() => app.vuetify.theme.current.value.dark,
|
@@ -706,6 +699,7 @@
|
|
706
699
|
VcsNavbar,
|
707
700
|
VContainer,
|
708
701
|
VFooter,
|
702
|
+
VSpacer,
|
709
703
|
},
|
710
704
|
props: {
|
711
705
|
appId: {
|
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
99
|
*/
|
100
100
|
readonly appTitle?: string | undefined;
|
101
101
|
/**
|
102
|
-
* - an optional primary color to use in all themes
|
102
|
+
* - an optional primary color to use in all themes, can be overwritten by `vuetifyTheme`
|
103
103
|
*/
|
104
104
|
readonly primaryColor?: string | undefined;
|
105
105
|
/**
|
@@ -320,6 +320,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
320
320
|
readonly layerSSEFactor?: number | undefined;
|
321
321
|
} | undefined;
|
322
322
|
} | undefined;
|
323
|
+
/**
|
324
|
+
* - Vuetify Theming, also see vuetify configuration https://vuetifyjs.com/en/features/theme/
|
325
|
+
*/
|
326
|
+
readonly vuetifyTheme?: any;
|
323
327
|
};
|
324
328
|
showFooter: import("vue").ComputedRef<boolean>;
|
325
329
|
footerHeight: import("vue").ComputedRef<number>;
|
@@ -1,15 +1,18 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
2
|
+
<div class="d-flex align-center justify-end overflow-hidden">
|
3
|
+
<div class="attribution-container">
|
4
|
+
<span
|
5
|
+
v-for="attribution in mergedAttributions"
|
6
|
+
class="attribution"
|
7
|
+
:key="attribution.provider"
|
8
|
+
>
|
9
|
+
<a :href="attribution.url" target="_blank">
|
10
|
+
{{ $st(attribution.provider) }} <span>{{ attribution.years }}</span>
|
11
|
+
</a>
|
12
|
+
</span>
|
13
|
+
</div>
|
12
14
|
<VcsButton
|
15
|
+
class="flex-shrink-0"
|
13
16
|
:key="attributionAction.name"
|
14
17
|
:tooltip="attributionAction.title"
|
15
18
|
:icon="attributionAction.icon"
|
@@ -17,10 +20,16 @@
|
|
17
20
|
:disabled="attributionAction.disabled"
|
18
21
|
@click.stop="attributionAction.callback($event)"
|
19
22
|
/>
|
20
|
-
</
|
23
|
+
</div>
|
21
24
|
</template>
|
22
25
|
|
23
26
|
<style lang="scss" scoped>
|
27
|
+
.attribution-container {
|
28
|
+
max-width: 100%;
|
29
|
+
white-space: nowrap;
|
30
|
+
overflow: hidden;
|
31
|
+
text-overflow: ellipsis;
|
32
|
+
}
|
24
33
|
.attribution {
|
25
34
|
font-size: smaller;
|
26
35
|
&:before {
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
11
11
|
mergedAttributions: import("vue").ComputedRef<{
|
12
12
|
provider: string;
|
13
13
|
years: string;
|
14
|
-
url:
|
14
|
+
url: string;
|
15
15
|
}[]>;
|
16
16
|
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
17
17
|
entries: {
|
@@ -41,7 +41,7 @@
|
|
41
41
|
top: 0px;
|
42
42
|
}
|
43
43
|
.with-header {
|
44
|
-
top:
|
44
|
+
top: calc(var(--v-vcs-font-size) * 3 + 9px);
|
45
45
|
}
|
46
46
|
.vcs-container {
|
47
47
|
position: absolute;
|
@@ -87,7 +87,7 @@
|
|
87
87
|
import { VContainer } from 'vuetify/components';
|
88
88
|
import PanelManagerComponent from '../manager/panel/PanelManagerComponent.vue';
|
89
89
|
import WindowManagerComponent from '../manager/window/WindowManager.vue';
|
90
|
-
import ToolboxManagerComponent from '../manager/toolbox/
|
90
|
+
import ToolboxManagerComponent from '../manager/toolbox/ToolboxManagerComponent.vue';
|
91
91
|
import NotifierComponent from '../notifier/NotifierComponent.vue';
|
92
92
|
import VcsDefaultLogoMobile from '../logo-mobile.svg';
|
93
93
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
19
19
|
*/
|
20
20
|
readonly appTitle?: string | undefined;
|
21
21
|
/**
|
22
|
-
* - an optional primary color to use in all themes
|
22
|
+
* - an optional primary color to use in all themes, can be overwritten by `vuetifyTheme`
|
23
23
|
*/
|
24
24
|
readonly primaryColor?: string | undefined;
|
25
25
|
/**
|
@@ -240,6 +240,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
240
240
|
readonly layerSSEFactor?: number | undefined;
|
241
241
|
} | undefined;
|
242
242
|
} | undefined;
|
243
|
+
/**
|
244
|
+
* - Vuetify Theming, also see vuetify configuration https://vuetifyjs.com/en/features/theme/
|
245
|
+
*/
|
246
|
+
readonly vuetifyTheme?: any;
|
243
247
|
};
|
244
248
|
xs: import("vue").Ref<boolean>;
|
245
249
|
mobileLogo: import("vue").ComputedRef<any>;
|
@@ -4,6 +4,7 @@
|
|
4
4
|
:density="density"
|
5
5
|
elevation="0"
|
6
6
|
class="px-4"
|
7
|
+
:height="toolbarHeight"
|
7
8
|
:style="xs ? { bottom: 0 } : { top: 0 }"
|
8
9
|
>
|
9
10
|
<v-container fluid class="pa-0">
|
@@ -124,7 +125,7 @@
|
|
124
125
|
|
125
126
|
<style lang="scss" scoped>
|
126
127
|
.logo {
|
127
|
-
max-height:
|
128
|
+
max-height: calc(var(--v-vcs-font-size) * 3 - 3px);
|
128
129
|
margin: 0 auto;
|
129
130
|
}
|
130
131
|
.v-toolbar.v-toolbar--bottom {
|
@@ -154,6 +155,7 @@
|
|
154
155
|
import VcsToolButton from '../components/buttons/VcsToolButton.vue';
|
155
156
|
import { createSearchButtonAction } from '../actions/actionHelper.js';
|
156
157
|
import VcsDefaultLogo from '../logo.svg';
|
158
|
+
import { useFontSize } from '../vuePlugins/vuetify.js';
|
157
159
|
|
158
160
|
/**
|
159
161
|
* @description The menu bar of a VcsMap application.
|
@@ -206,6 +208,11 @@
|
|
206
208
|
return xs.value ? 'comfortable' : 'compact';
|
207
209
|
});
|
208
210
|
|
211
|
+
const fontSize = useFontSize();
|
212
|
+
const toolbarHeight = computed(() => {
|
213
|
+
return fontSize.value * 3 + 8 + 16;
|
214
|
+
});
|
215
|
+
|
209
216
|
return {
|
210
217
|
mapActions: getActions(ButtonLocation.MAP),
|
211
218
|
contentActions: getActions(ButtonLocation.CONTENT),
|
@@ -219,6 +226,7 @@
|
|
219
226
|
xs,
|
220
227
|
density,
|
221
228
|
mdAndUp,
|
229
|
+
toolbarHeight,
|
222
230
|
};
|
223
231
|
},
|
224
232
|
};
|
@@ -44,5 +44,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
44
44
|
xs: import("vue").Ref<boolean>;
|
45
45
|
density: import("vue").ComputedRef<"compact" | "comfortable">;
|
46
46
|
mdAndUp: import("vue").Ref<boolean>;
|
47
|
+
toolbarHeight: import("vue").ComputedRef<number>;
|
47
48
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
48
49
|
export default _default;
|
@@ -14,7 +14,12 @@
|
|
14
14
|
<VcsCheckbox v-if="options.acceptInput" v-model="checkBox">
|
15
15
|
<template #label>
|
16
16
|
<VcsMarkdown
|
17
|
-
:content="
|
17
|
+
:content="
|
18
|
+
$st(
|
19
|
+
options.checkBoxText ||
|
20
|
+
'components.splashScreen.checkBoxText',
|
21
|
+
)
|
22
|
+
"
|
18
23
|
class="marked-checkbox-content"
|
19
24
|
/>
|
20
25
|
</template>
|
@@ -29,7 +34,11 @@
|
|
29
34
|
variant="filled"
|
30
35
|
@click="exitScreen"
|
31
36
|
:disabled="options.acceptInput && !checkBox"
|
32
|
-
>{{
|
37
|
+
>{{
|
38
|
+
$st(
|
39
|
+
options.buttonTitle || 'components.splashScreen.buttonTitle',
|
40
|
+
)
|
41
|
+
}}</VcsFormButton
|
33
42
|
>
|
34
43
|
</v-col>
|
35
44
|
</v-row>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<template v-if="textPage.title">
|
2
|
-
<span class="d-inline-block text-truncate mr-1">
|
3
|
-
<span v-if="textPage.url" class="
|
2
|
+
<span class="d-inline-block text-truncate mr-1 flex-shrink-0">
|
3
|
+
<span v-if="textPage.url" class="text-page-footer">
|
4
4
|
<a :href="$st(textPage.url)" target="_blank"
|
5
5
|
>{{ $st(textPage.title) }} <span></span>
|
6
6
|
</a>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
<span
|
10
10
|
v-else
|
11
|
-
class="
|
11
|
+
class="text-page-footer cursor-pointer text-decoration-underline"
|
12
12
|
@click="addTextPage()"
|
13
13
|
>{{ $st(textPage.title) }}</span
|
14
14
|
>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
</template>
|
22
22
|
|
23
23
|
<style lang="scss" scoped>
|
24
|
-
.
|
24
|
+
.text-page-footer {
|
25
25
|
font-size: smaller;
|
26
26
|
a {
|
27
27
|
color: var(--v-text-color);
|
@@ -1,24 +1,24 @@
|
|
1
1
|
/**
|
2
|
-
* @typedef {Object}
|
2
|
+
* @typedef {Object} AttributionOptions
|
3
3
|
* @property {string} provider - name of the data provider
|
4
4
|
* @property {number} [year] - year of dataset
|
5
|
-
* @property {
|
5
|
+
* @property {string} url - link to data provider
|
6
6
|
*/
|
7
7
|
/**
|
8
8
|
* @typedef {Object} AttributionEntry
|
9
9
|
* @property {string} key - name of the VcsObject the attribution applies to
|
10
10
|
* @property {string} title - title of the VcsObject the attribution applies to
|
11
|
-
* @property {
|
11
|
+
* @property {AttributionOptions|Array<AttributionOptions>} attributions - attributions of a map, layer or oblique collection
|
12
12
|
*/
|
13
13
|
/**
|
14
14
|
* merges attribution entries of same providers
|
15
15
|
* @param {Array<AttributionEntry>} entries
|
16
|
-
* @returns {Array<{provider: string, years: string, url:
|
16
|
+
* @returns {Array<{provider: string, years: string, url: string}>}
|
17
17
|
*/
|
18
18
|
export function mergeAttributions(entries: Array<AttributionEntry>): Array<{
|
19
19
|
provider: string;
|
20
20
|
years: string;
|
21
|
-
url:
|
21
|
+
url: string;
|
22
22
|
}>;
|
23
23
|
/**
|
24
24
|
* Gets attributions of all active maps, layers and oblique collections and returns an array of entries.
|
@@ -32,22 +32,20 @@ export function getAttributions(app: import("../vcsUiApp.js").default): {
|
|
32
32
|
entries: import("vue").UnwrapRef<Array<AttributionEntry>>;
|
33
33
|
destroy: () => void;
|
34
34
|
};
|
35
|
-
export
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
};
|
50
|
-
}
|
35
|
+
export type AttributionOptions = {
|
36
|
+
/**
|
37
|
+
* - name of the data provider
|
38
|
+
*/
|
39
|
+
provider: string;
|
40
|
+
/**
|
41
|
+
* - year of dataset
|
42
|
+
*/
|
43
|
+
year?: number | undefined;
|
44
|
+
/**
|
45
|
+
* - link to data provider
|
46
|
+
*/
|
47
|
+
url: string;
|
48
|
+
};
|
51
49
|
export type AttributionEntry = {
|
52
50
|
/**
|
53
51
|
* - name of the VcsObject the attribution applies to
|
@@ -60,5 +58,5 @@ export type AttributionEntry = {
|
|
60
58
|
/**
|
61
59
|
* - attributions of a map, layer or oblique collection
|
62
60
|
*/
|
63
|
-
attributions:
|
61
|
+
attributions: AttributionOptions | Array<AttributionOptions>;
|
64
62
|
};
|
@@ -2,23 +2,23 @@ import { reactive } from 'vue';
|
|
2
2
|
import { ObliqueMap } from '@vcmap/core';
|
3
3
|
|
4
4
|
/**
|
5
|
-
* @typedef {Object}
|
5
|
+
* @typedef {Object} AttributionOptions
|
6
6
|
* @property {string} provider - name of the data provider
|
7
7
|
* @property {number} [year] - year of dataset
|
8
|
-
* @property {
|
8
|
+
* @property {string} url - link to data provider
|
9
9
|
*/
|
10
10
|
|
11
11
|
/**
|
12
12
|
* @typedef {Object} AttributionEntry
|
13
13
|
* @property {string} key - name of the VcsObject the attribution applies to
|
14
14
|
* @property {string} title - title of the VcsObject the attribution applies to
|
15
|
-
* @property {
|
15
|
+
* @property {AttributionOptions|Array<AttributionOptions>} attributions - attributions of a map, layer or oblique collection
|
16
16
|
*/
|
17
17
|
|
18
18
|
/**
|
19
19
|
* merges attribution entries of same providers
|
20
20
|
* @param {Array<AttributionEntry>} entries
|
21
|
-
* @returns {Array<{provider: string, years: string, url:
|
21
|
+
* @returns {Array<{provider: string, years: string, url: string}>}
|
22
22
|
*/
|
23
23
|
export function mergeAttributions(entries) {
|
24
24
|
const providers = {};
|
@@ -5,9 +5,9 @@
|
|
5
5
|
*/
|
6
6
|
export function executeCallbacks(app: import("@src/vcsUiApp.js").default, vcsCallbackOptions: Array<VcsCallbackOptions>): void;
|
7
7
|
/**
|
8
|
-
* @type {ClassRegistry<
|
8
|
+
* @type {ClassRegistry<typeof VcsCallback>}
|
9
9
|
*/
|
10
|
-
export const callbackClassRegistry: ClassRegistry<
|
10
|
+
export const callbackClassRegistry: ClassRegistry<typeof VcsCallback>;
|
11
11
|
export default VcsCallback;
|
12
12
|
export type VcsCallbackOptions = {
|
13
13
|
type: string;
|
@@ -64,7 +64,7 @@
|
|
64
64
|
import { computed } from 'vue';
|
65
65
|
import { VBtn, VIcon, VTooltip } from 'vuetify/components';
|
66
66
|
import VcsBadge from '../notification/VcsBadge.vue';
|
67
|
-
import { useFontSize } from '../../vuePlugins/vuetify.js';
|
67
|
+
import { useFontSize, useIconSize } from '../../vuePlugins/vuetify.js';
|
68
68
|
import { useForwardSlots } from '../composables.js';
|
69
69
|
|
70
70
|
/**
|
@@ -132,9 +132,7 @@
|
|
132
132
|
const minHeight = computed(() => {
|
133
133
|
return fontSize.value * 1.5;
|
134
134
|
});
|
135
|
-
const iconSize =
|
136
|
-
return fontSize.value * (1.2 + 0.1 / 3);
|
137
|
-
});
|
135
|
+
const iconSize = useIconSize();
|
138
136
|
return {
|
139
137
|
forwardSlots,
|
140
138
|
hasDefaultSlot,
|
@@ -67,7 +67,7 @@
|
|
67
67
|
import { computed } from 'vue';
|
68
68
|
import { VBtn, VIcon, VTooltip } from 'vuetify/components';
|
69
69
|
import VcsBadge from '../notification/VcsBadge.vue';
|
70
|
-
import { useFontSize,
|
70
|
+
import { useFontSize, useIconSize } from '../../vuePlugins/vuetify.js';
|
71
71
|
import { useForwardSlots } from '../composables.js';
|
72
72
|
|
73
73
|
/**
|
@@ -112,7 +112,6 @@
|
|
112
112
|
},
|
113
113
|
},
|
114
114
|
setup(props, { slots }) {
|
115
|
-
const itemHeight = useItemHeight();
|
116
115
|
const buttonVariant = computed(() => {
|
117
116
|
if (props.variant === 'filled') {
|
118
117
|
return 'flat';
|
@@ -124,8 +123,9 @@
|
|
124
123
|
});
|
125
124
|
const forwardSlots = useForwardSlots(slots, ['default']);
|
126
125
|
const fontSize = useFontSize();
|
127
|
-
const iconSize =
|
128
|
-
|
126
|
+
const iconSize = useIconSize();
|
127
|
+
const itemHeight = computed(() => {
|
128
|
+
return fontSize.value * 2 + 6;
|
129
129
|
});
|
130
130
|
return {
|
131
131
|
forwardSlots,
|
@@ -70,7 +70,7 @@
|
|
70
70
|
import { VBtn, VIcon, VTooltip } from 'vuetify/components';
|
71
71
|
import VcsBadge from '../notification/VcsBadge.vue';
|
72
72
|
import { useForwardSlots } from '../composables.js';
|
73
|
-
import {
|
73
|
+
import { useFontSize } from '../../vuePlugins/vuetify.js';
|
74
74
|
|
75
75
|
/**
|
76
76
|
* @description a button with tooltip extending {@link https://vuetifyjs.com/en/api/v-btn/|vuetify v-btn} using {@link VcsTooltip}. Used for tool buttons in the Navbar.
|
@@ -149,7 +149,9 @@
|
|
149
149
|
});
|
150
150
|
|
151
151
|
const fontSize = useFontSize();
|
152
|
-
const itemHeight =
|
152
|
+
const itemHeight = computed(() => {
|
153
|
+
return fontSize.value * 2 + 6;
|
154
|
+
});
|
153
155
|
const iconSize = computed(() => {
|
154
156
|
return fontSize.value * 1.5;
|
155
157
|
});
|
@@ -72,11 +72,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
72
72
|
default: string;
|
73
73
|
};
|
74
74
|
}>>, {
|
75
|
-
background: boolean;
|
76
75
|
icon: string;
|
76
|
+
background: boolean;
|
77
|
+
disabled: boolean;
|
77
78
|
active: boolean;
|
78
79
|
hasUpdate: boolean;
|
79
|
-
disabled: boolean;
|
80
80
|
color: string;
|
81
81
|
tooltip: string;
|
82
82
|
tooltipPosition: string;
|
@@ -19,3 +19,8 @@ export function useForwardSlots(slots: import("vue").Slots, exclude?: Array<stri
|
|
19
19
|
* @returns {import("vue").ComputedRef<string>}
|
20
20
|
*/
|
21
21
|
export function createEllipseTooltip(parent: import("vue").ComputedRef<HTMLElement | undefined>, tooltip: import("vue").ComputedRef<string | undefined>, title: import("vue").ComputedRef<string | undefined>): import("vue").ComputedRef<string>;
|
22
|
+
/**
|
23
|
+
* Returns a globally unique vcs component id string
|
24
|
+
* @returns {string}
|
25
|
+
*/
|
26
|
+
export function useComponentId(): string;
|