@vcmap/ui 6.0.0-rc.1 → 6.0.0-rc.10
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/build.js +40 -60
- package/build/buildHelpers.js +63 -20
- package/build/buildTypes.js +9 -5
- package/build/bundle.js +1 -1
- package/build/info/conf.json +1 -1
- package/build/info/publish.js +25 -31
- package/build/lintTypes.js +5 -0
- package/config/aerowest.config.json +12 -2
- package/config/base.config.json +22 -17
- package/config/dev.config.json +164 -4
- package/config/projects.config.json +3 -1
- package/config/solar.config.json +65 -0
- package/config/splashscreen.config.json +45 -0
- package/config/theming.config.json +68 -0
- package/config/www.config.json +39 -23
- package/dist/.htaccess +7 -0
- package/dist/assets/@mdi/font/README.md +25 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.min-680621ca.css +3 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.min.css.map +16 -0
- package/dist/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/dist/assets/cesium/Assets/approximateTerrainHeights.json +1 -1
- package/dist/assets/cesium/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/dist/assets/cesium/Workers/{chunk-JB2LWGH4.js → chunk-2LOWCAMW.js} +14 -14
- package/dist/assets/cesium/Workers/{chunk-Z24VKNDO.js → chunk-2PTKXHJB.js} +12 -12
- package/dist/assets/cesium/Workers/{chunk-AHKEZ2OE.js → chunk-3HQMMUPU.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-V3NGATMV.js → chunk-3IFRSGEY.js} +11 -13
- package/dist/assets/cesium/Workers/{chunk-66QLLS45.js → chunk-44QAAS4P.js} +11 -9
- package/dist/assets/cesium/Workers/{chunk-TFC6TZ3S.js → chunk-56EDBCGT.js} +33 -22
- package/dist/assets/cesium/Workers/{chunk-3W63OHNJ.js → chunk-57H6I3SV.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-PFQBCKBM.js → chunk-6SQMLVGV.js} +5206 -3483
- package/dist/assets/cesium/Workers/{chunk-OZJDGN5F.js → chunk-7YIOHQWH.js} +16 -16
- package/dist/assets/cesium/Workers/{chunk-XTY7B2N6.js → chunk-7ZZ5LMZY.js} +17 -16
- package/dist/assets/cesium/Workers/{chunk-HARLBUOL.js → chunk-BVKITG4N.js} +11 -8
- package/dist/assets/cesium/Workers/{chunk-AFFLIKOH.js → chunk-C3EQ27WF.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-RW6LU2CJ.js → chunk-C4WPMOKT.js} +6 -5
- package/dist/assets/cesium/Workers/{chunk-OYFCF4PL.js → chunk-EDLRS3AW.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-C3SXRKRW.js → chunk-EJVGYGLF.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-PCJWUS4M.js → chunk-FFLMY4TE.js} +830 -14
- package/dist/assets/cesium/Workers/{chunk-MPAZH4BF.js → chunk-GBT7MJ6X.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-ZA25DG4Y.js → chunk-HJMNR3GC.js} +11 -11
- package/dist/assets/cesium/Workers/{chunk-JS3AW5BK.js → chunk-HP5XLODI.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-34YUDLRP.js → chunk-IBRIWOCM.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-XY7MGBKC.js → chunk-IZGUQO6Q.js} +14 -16
- package/dist/assets/cesium/Workers/{chunk-KTJSNCK4.js → chunk-IZJ42N4W.js} +230 -20
- package/dist/assets/cesium/Workers/{chunk-QMEMZIJI.js → chunk-JBSKHTNX.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-QIKODV5G.js → chunk-JISPSEF3.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-K36FEYS7.js → chunk-JSQJDZI4.js} +16 -12
- package/dist/assets/cesium/Workers/{chunk-X4SU25DT.js → chunk-JXVLNVXC.js} +10 -12
- package/dist/assets/cesium/Workers/chunk-KHZNBFOH.js +963 -0
- package/dist/assets/cesium/Workers/{chunk-KD4Y7CZL.js → chunk-L5GODJAR.js} +15 -17
- package/dist/assets/cesium/Workers/{chunk-O5AMBQ36.js → chunk-LJ2JQHJT.js} +13 -8
- package/dist/assets/cesium/Workers/{chunk-ABADGKYE.js → chunk-LLAF3CPH.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-CHHNOC2C.js → chunk-M24KHENR.js} +95 -155
- package/dist/assets/cesium/Workers/{chunk-2R5O53JW.js → chunk-NDDI2LWR.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-QT3MPEMI.js → chunk-NGZJIN5Z.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-ZFOBYDGF.js → chunk-O72GZTSE.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-IPA4EACJ.js → chunk-OPP2SKMA.js} +12 -12
- package/dist/assets/cesium/Workers/{chunk-4MFFIWUA.js → chunk-P6TRGU3S.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-GLZBE3ML.js → chunk-QN6TBED4.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-MYZB7C4T.js → chunk-QQOZO7KO.js} +10 -10
- package/dist/assets/cesium/Workers/{chunk-HQF437NJ.js → chunk-RJM36CNY.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-CTELOFLA.js → chunk-RTJKHZWU.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-J3JY6I2C.js → chunk-TI3TRKIC.js} +425 -489
- package/dist/assets/cesium/Workers/{chunk-OAVNIRB4.js → chunk-TK5IIG2F.js} +5 -7
- package/dist/assets/cesium/Workers/{chunk-WXTV4ATB.js → chunk-U5HSOKPQ.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-N3JIFFX2.js → chunk-WGDFYAGC.js} +5 -6
- package/dist/assets/cesium/Workers/{chunk-EW2GWJYB.js → chunk-X7IQYYHF.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-LLUNNUJV.js → chunk-XIUSRWL6.js} +9 -5
- package/dist/assets/cesium/Workers/{chunk-CCFQRR6D.js → chunk-XWOUPGUF.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-6BTKZDRG.js → chunk-YCDZX5LS.js} +3 -5
- package/dist/assets/cesium/Workers/{chunk-RP2A7BR5.js → chunk-YK3QIKY7.js} +12 -14
- package/dist/assets/cesium/Workers/{chunk-227AJNOA.js → chunk-YSIJTJ7N.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-A4JVFBQ3.js → chunk-Z2QP3CXW.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-VLGOATD6.js → chunk-ZVUUPJEM.js} +22 -22
- package/dist/assets/cesium/Workers/combineGeometry.js +22 -23
- package/dist/assets/cesium/Workers/createBoxGeometry.js +16 -17
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +14 -15
- package/dist/assets/cesium/Workers/createCircleGeometry.js +29 -26
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +17 -18
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +35 -36
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +29 -30
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +29 -30
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +27 -28
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +18 -19
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +17 -19
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +24 -25
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +17 -18
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +17 -18
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +16 -17
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +16 -17
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +18 -18
- package/dist/assets/cesium/Workers/createGeometry.js +52 -33
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +28 -29
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +14 -15
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +13 -14
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +451 -176
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +29 -30
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +24 -25
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +31 -33
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +27 -29
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +30 -31
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +21 -24
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +22 -23
- package/dist/assets/cesium/Workers/createSphereGeometry.js +17 -18
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +16 -17
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +3 -3
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +14 -16
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +22 -23
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +12 -12
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +20 -21
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +14 -16
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +24 -25
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +29 -26
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -21
- package/dist/assets/cesium/Workers/createWallGeometry.js +23 -24
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +22 -23
- package/dist/assets/cesium/Workers/decodeDraco.js +11 -11
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +35 -19
- package/dist/assets/cesium/Workers/decodeI3S.js +600 -92
- package/dist/assets/cesium/Workers/transcodeKTX2.js +58 -93
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +1 -1
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +21 -22
- package/dist/assets/{cesium.6b12b4.js → cesium-9ea5ba6e.js} +73315 -68035
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.074b78.js → core-9b003470.js} +7135 -5664
- package/dist/assets/core.js +1 -1
- package/dist/assets/{ol.8b2e3a.js → ol-8373d6ac.js} +43066 -44325
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui-163311a7.css +1 -0
- package/dist/assets/{ui.715986.js → ui-163311a7.js} +14696 -13170
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue-0f6dd813.js +6083 -0
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify.28d881.css → vuetify-e2c4b35c.css} +2 -2
- package/dist/assets/{vuetify.28d881.js → vuetify-e2c4b35c.js} +8699 -8824
- package/dist/assets/vuetify.js +1 -1
- package/dist/index.html +11 -10
- package/index.d.ts +36 -20
- package/index.html +5 -5
- package/index.js +20 -10
- package/lib/olLib.js +90 -23
- package/package.json +25 -23
- 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/flight-component-example/src/FlightExample.vue +41 -1
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +73 -34
- package/plugins/@vcmap-show-case/form-inputs-example/src/exampleActions.js +7 -11
- package/plugins/@vcmap-show-case/form-inputs-example/src/index.js +2 -2
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +50 -96
- package/plugins/@vcmap-show-case/plugin-editors/src/PluginEditors.vue +14 -11
- package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +18 -11
- package/plugins/@vcmap-show-case/search-example/src/index.js +1 -0
- package/plugins/@vcmap-show-case/search-example/src/searchImpl.js +35 -5
- package/plugins/@vcmap-show-case/style-input-example/src/StyleExample.vue +29 -90
- 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/toolbox-example/src/index.js +2 -1
- 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 +86 -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/@vcmap-show-case/wizard-example/src/WizardExample.vue +40 -54
- package/plugins/package.json +23 -21
- package/public/assets/@mdi/font/README.md +25 -0
- package/public/assets/@mdi/font/css/materialdesignicons.min.css +2 -2
- package/public/assets/@mdi/font/css/materialdesignicons.min.css.map +16 -0
- package/public/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/src/actions/StyleSelector.vue +37 -21
- package/src/actions/StyleSelector.vue.d.ts +5 -5
- package/src/actions/actionHelper.d.ts +4 -11
- package/src/actions/actionHelper.js +35 -27
- package/src/actions/flightActions.js +44 -23
- package/src/actions/listActions.d.ts +5 -12
- package/src/actions/listActions.js +6 -22
- package/src/actions/stateRefAction.js +2 -2
- package/src/application/VcsApp.vue +196 -85
- package/src/application/VcsApp.vue.d.ts +309 -4
- package/src/application/VcsAppWrapper.vue +1 -1
- package/src/application/VcsAttributions.vue +4 -15
- package/src/application/VcsAttributionsFooter.vue +28 -18
- package/src/application/VcsAttributionsFooter.vue.d.ts +1 -1
- package/src/application/VcsContainer.vue +27 -10
- package/src/application/VcsContainer.vue.d.ts +248 -0
- package/src/application/VcsMainMap.vue +8 -8
- package/src/application/VcsMainMap.vue.d.ts +2 -2
- package/src/application/VcsMap.vue +1 -0
- package/src/application/VcsNavbar.vue +15 -3
- package/src/application/VcsNavbar.vue.d.ts +2 -1
- package/src/application/VcsPositionDisplay.vue +10 -25
- package/src/application/VcsPositionDisplay.vue.d.ts +0 -1
- package/src/application/VcsSettings.vue +11 -18
- package/src/application/VcsSplashScreen.vue +43 -55
- package/src/application/VcsSplashScreen.vue.d.ts +4 -6
- package/src/application/VcsTextPage.vue +13 -44
- package/src/application/VcsTextPage.vue.d.ts +4 -8
- package/src/application/VcsTextPageFooter.vue +26 -41
- package/src/application/attributionsHelper.d.ts +20 -22
- package/src/application/attributionsHelper.js +14 -10
- package/src/callback/vcsCallback.d.ts +2 -2
- package/src/callback/vcsCallback.js +1 -1
- package/src/components/buttons/VcsActionButtonList.vue +66 -7
- package/src/components/buttons/VcsActionButtonList.vue.d.ts +28 -0
- package/src/components/buttons/VcsButton.vue +8 -10
- package/src/components/buttons/VcsButton.vue.d.ts +4 -4
- package/src/components/buttons/VcsFormButton.vue +9 -9
- package/src/components/buttons/VcsFormButton.vue.d.ts +3 -3
- package/src/components/buttons/VcsToolButton.vue +9 -7
- package/src/components/buttons/VcsToolButton.vue.d.ts +5 -5
- package/src/components/composables.d.ts +14 -2
- package/src/components/composables.js +106 -4
- package/src/components/extent/VcsExtent.vue +11 -7
- package/src/components/extent/VcsExtent.vue.d.ts +1 -0
- package/src/components/extent/VcsExtentEditor.vue +2 -1
- package/src/components/flight/VcsFlightAnchorsComponent.vue +64 -36
- package/src/components/flight/VcsFlightComponent.vue +25 -30
- package/src/components/flight/VcsFlightComponent.vue.d.ts +1 -0
- package/src/components/flight/VcsFlightEditor.vue +1 -0
- package/src/components/flight/VcsFlightPlayer.vue +47 -19
- package/src/components/form-inputs-controls/VcsCheckbox.vue +32 -13
- package/src/components/form-inputs-controls/VcsCheckbox.vue.d.ts +10 -0
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +14 -17
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue.d.ts +2 -4
- package/src/components/form-inputs-controls/VcsCoordinate.vue +17 -5
- package/src/components/form-inputs-controls/VcsCoordinate.vue.d.ts +5 -2
- package/src/components/form-inputs-controls/VcsDatePicker.vue +53 -59
- package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +2 -64
- package/src/components/form-inputs-controls/VcsFileInput.vue +18 -19
- package/src/components/form-inputs-controls/VcsFileInput.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsLabel.vue +65 -3
- package/src/components/form-inputs-controls/VcsLabel.vue.d.ts +32 -1
- package/src/components/form-inputs-controls/VcsRadio.vue +26 -10
- package/src/components/form-inputs-controls/VcsRadio.vue.d.ts +2 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +47 -47
- package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +9 -6
- package/src/components/form-inputs-controls/VcsSlider.vue +53 -15
- package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +26 -2
- package/src/components/form-inputs-controls/VcsTextArea.vue +56 -40
- package/src/components/form-inputs-controls/VcsTextArea.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsTextField.vue +46 -16
- package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +12 -1
- package/src/components/form-inputs-controls/VcsWizard.vue +89 -112
- package/src/components/form-inputs-controls/VcsWizard.vue.d.ts +3 -13
- package/src/components/form-inputs-controls/VcsWizardStep.vue +78 -58
- package/src/components/form-inputs-controls/VcsWizardStep.vue.d.ts +24 -11
- package/src/components/form-inputs-controls/vcsTextField.scss +21 -13
- package/src/components/form-output/VcsFormattedNumber.vue +46 -14
- package/src/components/form-output/VcsFormattedNumber.vue.d.ts +27 -0
- package/src/components/form-output/VcsMarkdown.vue +56 -0
- package/src/{application/VcsCustomScreen.vue.d.ts → components/form-output/VcsMarkdown.vue.d.ts} +7 -5
- package/src/components/form-output/markdownHelper.d.ts +30 -0
- package/src/components/form-output/markdownHelper.js +398 -0
- package/src/components/import/VcsFileDrop.vue +9 -6
- package/src/components/import/VcsImportComponent.vue +12 -8
- package/src/components/import/VcsImportComponent.vue.d.ts +1 -2
- package/src/components/lists/VcsActionList.vue +50 -34
- package/src/components/lists/VcsActionList.vue.d.ts +3 -1
- package/src/components/lists/VcsList.vue +105 -192
- package/src/components/lists/VcsList.vue.d.ts +18 -66
- package/src/components/lists/VcsListItemComponent.vue +216 -0
- package/src/components/lists/VcsListItemComponent.vue.d.ts +83 -0
- package/src/components/lists/VcsTreeview.vue +119 -26
- package/src/components/lists/VcsTreeview.vue.d.ts +26 -3
- package/src/components/lists/VcsTreeviewSearchbar.vue +17 -6
- package/src/components/lists/VcsTreeviewSearchbar.vue.d.ts +3 -1
- package/src/components/lists/VcsTreeviewTitle.vue +40 -0
- package/src/components/modelHelper.d.ts +21 -8
- package/src/components/modelHelper.js +50 -8
- package/src/components/notification/VcsBadge.vue +2 -2
- package/src/components/notification/VcsHelp.vue +6 -7
- package/src/components/notification/VcsHelp.vue.d.ts +0 -8
- package/src/components/notification/VcsHelpTooltip.vue +48 -0
- package/src/components/notification/VcsHelpTooltip.vue.d.ts +25 -0
- package/src/components/plugins/AbstractConfigEditor.vue +2 -23
- package/src/components/plugins/AbstractConfigEditor.vue.d.ts +6 -29
- package/src/components/section/VcsExpansionPanel.vue +111 -0
- package/src/components/section/VcsExpansionPanel.vue.d.ts +19 -0
- package/src/components/{form-inputs-controls → section}/VcsFormSection.vue +13 -7
- package/src/components/{form-inputs-controls → section}/VcsFormSection.vue.d.ts +2 -3
- package/src/components/style/MenuWrapper.vue +25 -27
- package/src/components/style/MenuWrapper.vue.d.ts +4 -4
- package/src/components/style/VcsFeatureStyleComponent.vue +1 -0
- package/src/components/style/VcsFillMenu.vue +10 -16
- package/src/components/style/VcsFillMenu.vue.d.ts +0 -18
- package/src/components/style/VcsFillSelector.vue +14 -16
- package/src/components/style/VcsImageMenu.vue +9 -25
- package/src/components/style/VcsImageMenu.vue.d.ts +0 -27
- package/src/components/style/VcsImageSelector.vue +115 -172
- package/src/components/style/VcsImageSelector.vue.d.ts +16 -15
- package/src/components/style/VcsStrokeMenu.vue +9 -15
- package/src/components/style/VcsStrokeMenu.vue.d.ts +0 -18
- package/src/components/style/VcsStrokeSelector.vue +17 -21
- package/src/components/style/VcsStrokeSelector.vue.d.ts +1 -0
- package/src/components/style/VcsTextMenu.vue +12 -14
- package/src/components/style/VcsTextMenu.vue.d.ts +0 -9
- package/src/components/style/VcsTextSelector.vue +80 -96
- package/src/components/style/VcsTextSelector.vue.d.ts +20 -22
- package/src/components/style/VcsVectorStyleComponent.vue +9 -20
- package/src/components/style/VcsVectorStyleComponent.vue.d.ts +1 -1
- package/src/components/style/composables.d.ts +0 -14
- package/src/components/style/composables.js +0 -49
- package/src/components/tables/VcsDataTable.vue +43 -33
- package/src/components/tables/VcsDataTable.vue.d.ts +2 -1
- package/src/components/tables/VcsTable.vue +46 -62
- package/src/components/tables/VcsTable.vue.d.ts +30 -17
- package/src/components/tables/VcsTableCell.vue +72 -0
- package/src/components/tables/VcsTableCell.vue.d.ts +13 -0
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +87 -51
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts +9 -7
- package/src/components/vector-properties/VcsFeatureTransforms.vue +45 -6
- package/src/components/vector-properties/VcsFeatureTransforms.vue.d.ts +2 -1
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +541 -596
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +222 -24
- package/src/components/viewpoint/VcsViewpointComponent.vue +36 -20
- package/src/components/viewpoint/VcsViewpointComponent.vue.d.ts +1 -0
- package/src/components/viewpoint/VcsViewpointEditor.vue +3 -1
- package/src/contentTree/LayerTree.vue +10 -28
- package/src/contentTree/LayerTree.vue.d.ts +1 -1
- package/src/contentTree/contentTreeCollection.d.ts +1 -0
- package/src/contentTree/contentTreeCollection.js +45 -11
- package/src/contentTree/contentTreeItem.d.ts +4 -4
- package/src/contentTree/contentTreeItem.js +8 -8
- 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/contentTree/obliqueCollectionContentTreeItem.js +6 -1
- package/src/featureInfo/AddressBalloonComponent.vue +1 -1
- package/src/featureInfo/BalloonComponent.vue +33 -26
- package/src/featureInfo/BalloonComponent.vue.d.ts +1 -0
- package/src/featureInfo/IframeComponent.vue +6 -1
- package/src/featureInfo/MarkdownBalloonComponent.vue +5 -3
- package/src/featureInfo/MarkdownBalloonComponent.vue.d.ts +2 -2
- package/src/featureInfo/abstractFeatureInfoView.d.ts +19 -4
- package/src/featureInfo/abstractFeatureInfoView.js +38 -13
- package/src/featureInfo/balloonHelper.js +1 -1
- package/src/featureInfo/featureInfo.d.ts +7 -7
- package/src/featureInfo/featureInfo.js +59 -41
- package/src/featureInfo/iframeFeatureInfoView.d.ts +8 -2
- package/src/featureInfo/iframeFeatureInfoView.js +15 -5
- package/src/featureInfo/markdownBalloonFeatureInfoView.d.ts +1 -1
- package/src/featureInfo/markdownBalloonFeatureInfoView.js +5 -5
- package/src/featureInfo/markdownFeatureInfoView.d.ts +1 -1
- package/src/featureInfo/markdownFeatureInfoView.js +9 -11
- package/src/featureInfo/tableFeatureInfoView.js +13 -4
- package/src/i18n/de.d.ts +59 -32
- package/src/i18n/de.js +28 -5
- package/src/i18n/en.d.ts +59 -32
- package/src/i18n/en.js +25 -2
- package/src/i18n/i18nCollection.d.ts +9 -15
- package/src/i18n/i18nCollection.js +3 -3
- package/src/init.d.ts +5 -38
- package/src/init.js +19 -18
- package/src/legend/StyleLegendItem.vue +4 -9
- package/src/legend/VcsLegend.vue +33 -55
- package/src/legend/VcsLegend.vue.d.ts +1 -0
- package/src/manager/buttonManager.js +4 -4
- package/src/manager/collectionManager/CollectionComponent.vue +18 -42
- package/src/manager/collectionManager/CollectionComponent.vue.d.ts +4 -2
- package/src/manager/collectionManager/CollectionComponentContent.vue +7 -6
- package/src/manager/collectionManager/CollectionComponentContent.vue.d.ts +3 -1
- package/src/manager/collectionManager/CollectionComponentList.vue +11 -9
- package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +6 -4
- package/src/manager/collectionManager/CollectionComponentProvider.vue +1 -1
- package/src/manager/collectionManager/CollectionComponentStandalone.vue +3 -2
- package/src/manager/collectionManager/CollectionManager.vue +1 -1
- package/src/manager/collectionManager/categoryManager.d.ts +1 -1
- package/src/manager/collectionManager/collectionComponentClass.d.ts +3 -3
- package/src/manager/collectionManager/collectionComponentClass.js +16 -15
- package/src/manager/collectionManager/collectionManager.d.ts +1 -1
- package/src/manager/collectionManager/collectionManager.js +10 -10
- package/src/manager/collectionManager/editorCollectionComponentClass.js +11 -8
- package/src/manager/contextMenu/ContextMenuComponent.vue +1 -1
- package/src/manager/contextMenu/contextMenuManager.js +2 -2
- package/src/manager/navbarManager.js +2 -2
- package/src/manager/panel/PanelComponent.vue +2 -9
- package/src/manager/panel/PanelManagerComponent.vue +9 -5
- package/src/manager/panel/panelHelper.js +3 -3
- package/src/manager/panel/panelManager.d.ts +9 -1
- package/src/manager/panel/panelManager.js +18 -6
- package/src/manager/toolbox/GroupToolboxComponent.vue +13 -7
- package/src/manager/toolbox/GroupToolboxComponent.vue.d.ts +1 -0
- package/src/manager/toolbox/SelectToolboxComponent.vue +13 -8
- package/src/manager/toolbox/SelectToolboxComponent.vue.d.ts +1 -0
- package/src/manager/toolbox/{ToolboxManager.vue → ToolboxManagerComponent.vue} +28 -8
- package/src/manager/toolbox/{ToolboxManager.vue.d.ts → ToolboxManagerComponent.vue.d.ts} +1 -0
- package/src/manager/toolbox/toolboxManager.js +10 -10
- package/src/manager/window/WindowComponent.vue +13 -9
- package/src/manager/window/WindowComponentHeader.vue +33 -9
- package/src/manager/window/WindowComponentHeader.vue.d.ts +3 -0
- package/src/manager/window/WindowManager.vue +6 -3
- package/src/manager/window/windowManager.d.ts +71 -15
- package/src/manager/window/windowManager.js +32 -11
- package/src/navigation/MapNavigation.vue +52 -9
- package/src/navigation/ObliqueRotation.vue +2 -2
- package/src/navigation/OrientationToolsButton.vue +37 -26
- package/src/navigation/OrientationToolsButton.vue.d.ts +5 -1
- package/src/navigation/TiltSlider.vue +82 -88
- package/src/navigation/TiltSlider.vue.d.ts +10 -7
- package/src/navigation/VcsCompass.vue +17 -11
- package/src/navigation/VcsCompass.vue.d.ts +2 -0
- package/src/navigation/VcsZoomButton.vue +1 -1
- package/src/navigation/locatorHelper.js +4 -22
- package/src/navigation/overviewMap.js +5 -2
- package/src/notifier/NotifierComponent.vue +19 -16
- package/src/obliqueFallbackWarnings.d.ts +5 -0
- package/src/obliqueFallbackWarnings.js +54 -0
- package/src/search/ResultItem.vue +18 -6
- package/src/search/ResultsComponent.vue +32 -21
- package/src/search/ResultsComponent.vue.d.ts +2 -1
- package/src/search/SearchComponent.vue +14 -16
- package/src/search/SearchComponent.vue.d.ts +1 -0
- package/src/search/search.js +2 -2
- package/src/siteConfig.js +9 -9
- package/src/state.js +4 -4
- package/src/styles/_typography.scss +1 -2
- package/src/styles/main.scss +0 -4
- package/src/styles/vcsList.scss +1 -1
- package/src/uiConfig.d.ts +323 -7
- package/src/uiConfig.js +31 -17
- package/src/vcsUiApp.d.ts +90 -80
- package/src/vcsUiApp.js +61 -41
- package/src/vuePlugins/i18n.js +8 -0
- package/src/vuePlugins/vuetify.d.ts +88 -60
- package/src/vuePlugins/vuetify.js +134 -20
- package/dist/assets/@mdi/font/css/materialdesignicons.css.map +0 -16
- package/dist/assets/@mdi/font/css/materialdesignicons.min.e3f476.css +0 -3
- package/dist/assets/cesium/Workers/chunk-DUHWWBQQ.js +0 -3273
- package/dist/assets/cesium/Workers/chunk-QJ3DFBH3.js +0 -73
- package/dist/assets/index-ca7EmZ3d.js +0 -1
- package/dist/assets/ui.715986.css +0 -1
- package/dist/assets/vue.0f2c53.js +0 -6096
- 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/public/assets/@mdi/font/css/materialdesignicons.css.map +0 -16
- package/src/application/VcsCustomScreen.vue +0 -45
- package/src/application/markdownHelper.d.ts +0 -12
- package/src/application/markdownHelper.js +0 -85
- package/src/components/lists/VcsTreeviewLeaf.vue +0 -83
- package/src/components/notification/VcsTooltip.vue +0 -156
- package/src/components/notification/VcsTooltip.vue.d.ts +0 -27
- package/src/components/vector-properties/composables.d.ts +0 -33
- package/src/components/vector-properties/composables.js +0 -100
- package/src/featureInfo/MarkdownComponent.vue +0 -16
- package/src/featureInfo/MarkdownComponent.vue.d.ts +0 -7
- package/src/styles/_theming.scss +0 -73
- package/src/styles/settings.scss +0 -6
- package/src/styles/shades.scss +0 -4
- package/src/styles/variables.scss +0 -140
- package/src/styles/vcsFont.scss +0 -2
- package/src/styles/vcsGrid.scss +0 -3
- /package/dist/assets/{favicon-128.4c4ce5.png → favicon-128-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon-180.5b99c0.png → favicon-180-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon-192.0e205e.png → favicon-192-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon-32.6b9add.png → favicon-32-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon.d5ec97.svg → favicon-4c4ce5df.svg} +0 -0
- /package/dist/assets/font/{TitilliumWeb-Regular.9ca076.woff2 → TitilliumWeb-Regular-9ca076be.woff2} +0 -0
- /package/dist/assets/style/{icon-marker.70960f.png → icon-marker-70960f05.png} +0 -0
- /package/dist/assets/style/{icon-marker-blue.534e37.png → icon-marker-blue-534e374b.png} +0 -0
- /package/dist/assets/style/{icon-marker-green.0b6a92.png → icon-marker-green-0b6a92bc.png} +0 -0
- /package/dist/assets/style/{icon-marker-o.036477.png → icon-marker-o-036477fa.png} +0 -0
- /package/dist/assets/style/{icon-marker-o-blue.7b6d62.png → icon-marker-o-blue-7b6d6279.png} +0 -0
- /package/dist/assets/style/{icon-marker-o-green.c863c0.png → icon-marker-o-green-c863c0fa.png} +0 -0
- /package/dist/assets/style/{icon-marker-o-red.93ff58.png → icon-marker-o-red-93ff58df.png} +0 -0
- /package/dist/assets/style/{icon-marker-red.313d03.png → icon-marker-red-313d03e8.png} +0 -0
- /package/dist/assets/style/{icon-pin.b7ce77.png → icon-pin-b7ce771e.png} +0 -0
- /package/dist/assets/style/{icon-pin-blue.7be369.png → icon-pin-blue-7be369a3.png} +0 -0
- /package/dist/assets/style/{icon-pin-green.cbb935.png → icon-pin-green-cbb935fe.png} +0 -0
- /package/dist/assets/style/{icon-pin-red.3f25b2.png → icon-pin-red-3f25b245.png} +0 -0
- /package/public/assets/{favicon-128.png → favicon-128-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon-180.png → favicon-180-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon-192.png → favicon-192-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon-32.png → favicon-32-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon.svg → favicon-4c4ce5df.svg} +0 -0
- /package/src/components/lists/{VcsTreeviewLeaf.vue.d.ts → VcsTreeviewTitle.vue.d.ts} +0 -0
@@ -1,5 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<VcsFormSection
|
3
|
+
class="vcs-flight-anchors-component"
|
3
4
|
:heading="title"
|
4
5
|
:expandable="expandable"
|
5
6
|
start-open
|
@@ -7,13 +8,14 @@
|
|
7
8
|
>
|
8
9
|
<v-container class="py-0 px-0">
|
9
10
|
<v-sheet v-if="items.length < 1" class="ma-2 pl-2">
|
10
|
-
{{ $t('components.flight.noAnchor') }}
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
<p>{{ $t('components.flight.noAnchor') }}</p>
|
12
|
+
<div class="d-flex justify-center">
|
13
|
+
<VcsButton
|
14
|
+
:icon="addAnchorAction.icon"
|
15
|
+
:tooltip="addAnchorAction.title"
|
16
|
+
@click.stop="addAnchorAction.callback()"
|
17
|
+
/>
|
18
|
+
</div>
|
17
19
|
</v-sheet>
|
18
20
|
<VcsList
|
19
21
|
v-else
|
@@ -22,32 +24,35 @@
|
|
22
24
|
:show-title="false"
|
23
25
|
@item-moved="move"
|
24
26
|
>
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
v-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
27
|
+
<template #item.title="{ item, index }">
|
28
|
+
<div class="d-flex align-center">
|
29
|
+
<span>{{ $st(item.title) }}</span>
|
30
|
+
<v-spacer />
|
31
|
+
<div class="duration-input">
|
32
|
+
<VcsTextField
|
33
|
+
v-if="showDuration(index)"
|
34
|
+
v-model.number="item.duration"
|
35
|
+
:hide-spin-buttons="true"
|
36
|
+
type="number"
|
37
|
+
unit="s"
|
38
|
+
step="1"
|
39
|
+
:decimals="2"
|
40
|
+
:rules="[durationRule]"
|
41
|
+
no-padding
|
42
|
+
class="ml-auto"
|
43
|
+
/>
|
44
|
+
</div>
|
45
|
+
</div>
|
40
46
|
</template>
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
/>
|
47
|
+
<template #item.intermediate="{ index }">
|
48
|
+
<div class="d-flex justify-center h-0">
|
49
|
+
<VcsButton
|
50
|
+
:icon="addAnchorAction.icon"
|
51
|
+
:tooltip="addAnchorAction.title"
|
52
|
+
@click.stop="addAnchorAction.callback(index + 1)"
|
53
|
+
class="z-index-99 mx-auto add-in-button"
|
54
|
+
/>
|
55
|
+
</div>
|
51
56
|
</template>
|
52
57
|
</VcsList>
|
53
58
|
</v-container>
|
@@ -55,7 +60,7 @@
|
|
55
60
|
</template>
|
56
61
|
<script>
|
57
62
|
import { computed, inject, onMounted, onUnmounted, ref } from 'vue';
|
58
|
-
import { VContainer, VSheet } from 'vuetify/components';
|
63
|
+
import { VContainer, VSheet, VSpacer } from 'vuetify/components';
|
59
64
|
import {
|
60
65
|
anchorFromViewpoint,
|
61
66
|
anchorToViewpoint,
|
@@ -63,7 +68,7 @@
|
|
63
68
|
} from '@vcmap/core';
|
64
69
|
import { Cartesian3 } from '@vcmap-cesium/engine';
|
65
70
|
import { createToggleAction } from '../../actions/actionHelper.js';
|
66
|
-
import VcsFormSection from '../
|
71
|
+
import VcsFormSection from '../section/VcsFormSection.vue';
|
67
72
|
import VcsList from '../lists/VcsList.vue';
|
68
73
|
import VcsTextField from '../form-inputs-controls/VcsTextField.vue';
|
69
74
|
import VcsButton from '../buttons/VcsButton.vue';
|
@@ -197,7 +202,8 @@
|
|
197
202
|
}
|
198
203
|
|
199
204
|
export function durationRule(value) {
|
200
|
-
|
205
|
+
const v = Number.parseFloat(value);
|
206
|
+
if (Number.isFinite(v) && v > 0) {
|
201
207
|
return true;
|
202
208
|
}
|
203
209
|
return 'components.flight.invalidDuration';
|
@@ -217,6 +223,7 @@
|
|
217
223
|
VcsTextField,
|
218
224
|
VContainer,
|
219
225
|
VSheet,
|
226
|
+
VSpacer,
|
220
227
|
VcsFormSection,
|
221
228
|
VcsList,
|
222
229
|
},
|
@@ -242,6 +249,14 @@
|
|
242
249
|
flightInstance.propertyChanged.addEventListener((prop) => {
|
243
250
|
if (prop === 'loop') {
|
244
251
|
loop.value = flightInstance.loop;
|
252
|
+
// update last anchor's duration
|
253
|
+
const lastAnchor = flightInstance.anchors.get(
|
254
|
+
flightInstance.anchors.size - 1,
|
255
|
+
);
|
256
|
+
lastAnchor.duration = calculateDuration(
|
257
|
+
lastAnchor,
|
258
|
+
flightInstance.anchors.get(0),
|
259
|
+
);
|
245
260
|
}
|
246
261
|
});
|
247
262
|
|
@@ -328,7 +343,20 @@
|
|
328
343
|
};
|
329
344
|
</script>
|
330
345
|
<style scoped lang="scss">
|
346
|
+
:deep(.v-list-item) {
|
347
|
+
padding: 0 8px 0 16px;
|
348
|
+
}
|
349
|
+
:deep(.v-list) {
|
350
|
+
overflow: visible;
|
351
|
+
}
|
352
|
+
.duration-input {
|
353
|
+
width: 60px;
|
354
|
+
}
|
331
355
|
.z-index-99 {
|
332
|
-
z-index: 99;
|
356
|
+
z-index: 99 !important;
|
357
|
+
}
|
358
|
+
.add-in-button {
|
359
|
+
min-height: 0 !important;
|
360
|
+
margin-top: -8px;
|
333
361
|
}
|
334
362
|
</style>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<v-sheet>
|
2
|
+
<v-sheet class="vcs-flight-component">
|
3
3
|
<VcsFormSection
|
4
4
|
:heading="heading"
|
5
5
|
:expandable="expandable"
|
@@ -18,24 +18,23 @@
|
|
18
18
|
<v-container class="py-0 px-1">
|
19
19
|
<v-row no-gutters v-if="!hideName">
|
20
20
|
<v-col cols="6">
|
21
|
-
<VcsLabel html-for="name"
|
21
|
+
<VcsLabel :html-for="`${cid}-name`" required>
|
22
22
|
{{ $t('components.flight.name') }}
|
23
23
|
</VcsLabel>
|
24
24
|
</v-col>
|
25
25
|
<v-col>
|
26
|
-
<VcsTextField id="name"
|
26
|
+
<VcsTextField :id="`${cid}-name`" clearable v-model="name" />
|
27
27
|
</v-col>
|
28
28
|
</v-row>
|
29
29
|
<v-row no-gutters v-if="!hideTitle">
|
30
30
|
<v-col cols="6">
|
31
|
-
<VcsLabel html-for="title"
|
31
|
+
<VcsLabel :html-for="`${cid}-title`">
|
32
32
|
{{ $t('components.flight.title') }}
|
33
33
|
</VcsLabel>
|
34
34
|
</v-col>
|
35
35
|
<v-col>
|
36
36
|
<VcsTextField
|
37
|
-
id="title"
|
38
|
-
dense
|
37
|
+
:id="`${cid}-title`"
|
39
38
|
clearable
|
40
39
|
:placeholder="$t('components.flight.titlePlaceholder')"
|
41
40
|
v-model="title"
|
@@ -44,17 +43,16 @@
|
|
44
43
|
</v-row>
|
45
44
|
<v-row no-gutters v-if="!hideInterpolation">
|
46
45
|
<v-col cols="6">
|
47
|
-
<VcsLabel html-for="interpolation"
|
46
|
+
<VcsLabel :html-for="`${cid}-interpolation`">
|
48
47
|
{{ $t('components.flight.interpolation') }}
|
49
48
|
</VcsLabel>
|
50
49
|
</v-col>
|
51
50
|
<v-col>
|
52
51
|
<VcsSelect
|
53
|
-
id="
|
54
|
-
dense
|
52
|
+
:id="`${cid}-interpolation`"
|
55
53
|
:items="[
|
56
|
-
{ value: 'spline',
|
57
|
-
{ value: 'linear',
|
54
|
+
{ value: 'spline', title: 'components.flight.spline' },
|
55
|
+
{ value: 'linear', title: 'components.flight.linear' },
|
58
56
|
]"
|
59
57
|
v-model="interpolation"
|
60
58
|
/>
|
@@ -62,18 +60,17 @@
|
|
62
60
|
</v-row>
|
63
61
|
<v-row no-gutters v-if="!hideDuration">
|
64
62
|
<v-col cols="6">
|
65
|
-
<VcsLabel html-for="duration"
|
63
|
+
<VcsLabel :html-for="`${cid}-duration`">
|
66
64
|
{{ $t('components.flight.duration') }}
|
67
65
|
</VcsLabel>
|
68
66
|
</v-col>
|
69
67
|
<v-col>
|
70
68
|
<VcsTextField
|
71
|
-
id="duration"
|
72
|
-
v-model
|
69
|
+
:id="`${cid}-duration`"
|
70
|
+
v-model="duration"
|
73
71
|
:hide-spin-buttons="true"
|
74
72
|
type="number"
|
75
73
|
unit="s"
|
76
|
-
step="1"
|
77
74
|
:decimals="2"
|
78
75
|
:disabled="disablePlayer"
|
79
76
|
:rules="[durationRule]"
|
@@ -82,12 +79,7 @@
|
|
82
79
|
</v-row>
|
83
80
|
<v-row no-gutters v-if="!hideLoop">
|
84
81
|
<v-col cols="6">
|
85
|
-
<VcsCheckbox
|
86
|
-
id="animate"
|
87
|
-
label="components.flight.loop"
|
88
|
-
dense
|
89
|
-
v-model="loop"
|
90
|
-
/>
|
82
|
+
<VcsCheckbox label="components.flight.loop" v-model="loop" />
|
91
83
|
</v-col>
|
92
84
|
</v-row>
|
93
85
|
</v-container>
|
@@ -106,7 +98,7 @@
|
|
106
98
|
import { computed, onUnmounted, ref, inject } from 'vue';
|
107
99
|
import { VSheet, VContainer, VRow, VCol, VDivider } from 'vuetify/components';
|
108
100
|
import { getSplineAndTimesForInstance } from '@vcmap/core';
|
109
|
-
import VcsFormSection from '../
|
101
|
+
import VcsFormSection from '../section/VcsFormSection.vue';
|
110
102
|
import VcsLabel from '../form-inputs-controls/VcsLabel.vue';
|
111
103
|
import VcsTextField from '../form-inputs-controls/VcsTextField.vue';
|
112
104
|
import VcsSelect from '../form-inputs-controls/VcsSelect.vue';
|
@@ -120,6 +112,7 @@
|
|
120
112
|
getProvidedFlightInstance,
|
121
113
|
setupFlightAnchorEditingListener,
|
122
114
|
} from './composables.js';
|
115
|
+
import { useComponentId } from '../composables.js';
|
123
116
|
|
124
117
|
/**
|
125
118
|
* @param {import("@vcmap/core").FlightInstance} instance
|
@@ -128,7 +121,7 @@
|
|
128
121
|
function getFlightDuration(instance) {
|
129
122
|
if (instance.isValid()) {
|
130
123
|
const { times } = getSplineAndTimesForInstance(instance);
|
131
|
-
return times.at(-1);
|
124
|
+
return Math.round(times.at(-1) * 100) / 100;
|
132
125
|
}
|
133
126
|
return 0;
|
134
127
|
}
|
@@ -208,6 +201,7 @@
|
|
208
201
|
setup() {
|
209
202
|
const app = inject('vcsApp');
|
210
203
|
const flightInstance = getProvidedFlightInstance();
|
204
|
+
const loop = ref(flightInstance.loop);
|
211
205
|
const flightDuration = ref(getFlightDuration(flightInstance));
|
212
206
|
const disablePlayer = ref(!(flightDuration.value > 0));
|
213
207
|
const flightDurationListener = [
|
@@ -231,6 +225,8 @@
|
|
231
225
|
editingListener();
|
232
226
|
});
|
233
227
|
|
228
|
+
const cid = useComponentId();
|
229
|
+
|
234
230
|
return {
|
235
231
|
name: flightInstance.name,
|
236
232
|
title: computed({
|
@@ -258,12 +254,9 @@
|
|
258
254
|
return flightDuration.value;
|
259
255
|
},
|
260
256
|
set(value) {
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
flightDuration.value > 0
|
265
|
-
) {
|
266
|
-
const factor = value / flightDuration.value;
|
257
|
+
const v = parseFloat(value);
|
258
|
+
if (Number.isFinite(v) && v > 0 && flightDuration.value > 0) {
|
259
|
+
const factor = v / flightDuration.value;
|
267
260
|
[...flightInstance.anchors].forEach((anchor) => {
|
268
261
|
anchor.duration *= factor;
|
269
262
|
});
|
@@ -273,13 +266,15 @@
|
|
273
266
|
durationRule,
|
274
267
|
loop: computed({
|
275
268
|
get() {
|
276
|
-
return
|
269
|
+
return loop.value;
|
277
270
|
},
|
278
271
|
set(value) {
|
272
|
+
loop.value = !!value;
|
279
273
|
flightInstance.loop = !!value;
|
280
274
|
},
|
281
275
|
}),
|
282
276
|
disablePlayer,
|
277
|
+
cid,
|
283
278
|
};
|
284
279
|
},
|
285
280
|
};
|
@@ -47,6 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
47
47
|
durationRule: typeof durationRule;
|
48
48
|
loop: import("vue").WritableComputedRef<boolean>;
|
49
49
|
disablePlayer: import("vue").Ref<boolean>;
|
50
|
+
cid: string;
|
50
51
|
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
51
52
|
heading: {
|
52
53
|
type: StringConstructor;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<template>
|
2
|
-
<v-container class="py-0 px-1">
|
3
|
-
<VcsLabel>{{ $t('flight.player') }}</VcsLabel>
|
2
|
+
<v-container class="py-0 px-1 vcs-flight-player">
|
3
|
+
<VcsLabel html-for="player">{{ $t('flight.player') }}</VcsLabel>
|
4
4
|
<VcsSlider
|
5
5
|
v-if="clock"
|
6
6
|
type="number"
|
7
|
-
|
8
|
-
@
|
7
|
+
:model-value="clock.currentTime"
|
8
|
+
@update:modelValue="setTime"
|
9
9
|
:step="0"
|
10
10
|
:min="clock.startTime"
|
11
11
|
:max="clock.endTime"
|
@@ -25,7 +25,8 @@
|
|
25
25
|
:has-update="btn.hasUpdate"
|
26
26
|
:background="btn.background"
|
27
27
|
@click.stop="btn.callback($event)"
|
28
|
-
v-bind="{ ...$attrs
|
28
|
+
v-bind="{ ...$attrs }"
|
29
|
+
v-on="btn.listeners ? btn.listeners : {}"
|
29
30
|
/>
|
30
31
|
<span>{{ clockTime(clock.endTime) }}</span>
|
31
32
|
</div>
|
@@ -49,6 +50,19 @@
|
|
49
50
|
};
|
50
51
|
}
|
51
52
|
|
53
|
+
/**
|
54
|
+
*
|
55
|
+
* @param {import("vue").Ref<Partial<import("@vcmap/core").FlightPlayerClock>>} clock
|
56
|
+
* @param {import("@vcmap/core").FlightPlayerClock} changed
|
57
|
+
*/
|
58
|
+
function syncClocks(clock, changed) {
|
59
|
+
Object.keys(getDefaultClock()).forEach((key) => {
|
60
|
+
if (clock.value[key] !== changed[key]) {
|
61
|
+
clock.value[key] = changed[key];
|
62
|
+
}
|
63
|
+
});
|
64
|
+
}
|
65
|
+
|
52
66
|
/**
|
53
67
|
* @description A component for editing flight anchors.
|
54
68
|
* Requires a flightInstance to be provided via vue-provide.
|
@@ -79,24 +93,37 @@
|
|
79
93
|
flightInstance,
|
80
94
|
);
|
81
95
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
96
|
+
let clockChangedListener = () => {};
|
97
|
+
let playerChangedListener = () => {};
|
98
|
+
|
99
|
+
function syncPlayer(player) {
|
100
|
+
if (player?.flightInstanceName === flightInstance.name) {
|
101
|
+
isCurrentPlayer.value = true;
|
102
|
+
flightInstancePlayer = player;
|
103
|
+
syncClocks(clock, player.clock);
|
104
|
+
clockChangedListener = player.clock.changed.addEventListener(
|
105
|
+
(changed) => {
|
106
|
+
syncClocks(clock, changed);
|
107
|
+
},
|
108
|
+
);
|
109
|
+
} else {
|
110
|
+
isCurrentPlayer.value = false;
|
111
|
+
flightInstancePlayer = undefined;
|
112
|
+
clock.value = getDefaultClock();
|
113
|
+
}
|
114
|
+
}
|
95
115
|
|
96
116
|
onMounted(async () => {
|
97
117
|
flightInstancePlayer =
|
98
118
|
await app.flights.setPlayerForFlight(flightInstance);
|
99
|
-
|
119
|
+
syncPlayer(flightInstancePlayer);
|
120
|
+
syncClocks(clock, flightInstancePlayer.clock);
|
121
|
+
playerChangedListener = app.flights.playerChanged.addEventListener(
|
122
|
+
(player) => {
|
123
|
+
clockChangedListener();
|
124
|
+
syncPlayer(player);
|
125
|
+
},
|
126
|
+
);
|
100
127
|
});
|
101
128
|
|
102
129
|
onUnmounted(() => {
|
@@ -114,6 +141,7 @@
|
|
114
141
|
return `${mins}:${secs < 10 ? 0 : ''}${secs}`;
|
115
142
|
},
|
116
143
|
setTime(seconds) {
|
144
|
+
clock.value.currentTime = seconds;
|
117
145
|
flightInstancePlayer?.goToTime(seconds);
|
118
146
|
},
|
119
147
|
};
|
@@ -5,37 +5,51 @@
|
|
5
5
|
false-icon="$vcsCheckbox"
|
6
6
|
indeterminate-icon="$vcsCheckboxIndeterminate"
|
7
7
|
:hide-details="false"
|
8
|
+
class="vcs-checkbox"
|
8
9
|
:class="{
|
9
10
|
'py-1': !paddingProvided,
|
10
11
|
}"
|
11
12
|
v-bind="$attrs"
|
12
13
|
>
|
13
|
-
<template #label>
|
14
|
-
<
|
15
|
-
|
14
|
+
<template #label="scope" v-if="label || $slots.label">
|
15
|
+
<span class="pl-1">
|
16
|
+
<slot name="label" v-bind="scope ?? {}">{{ $st(label) }}</slot>
|
17
|
+
</span>
|
16
18
|
</template>
|
17
|
-
<template
|
19
|
+
<template v-for="slot of forwardSlots" #[slot]="scope">
|
20
|
+
<slot :name="slot" v-bind="scope ?? {}" />
|
21
|
+
</template>
|
22
|
+
<template #message="scope">
|
18
23
|
<v-tooltip
|
19
24
|
ref="errorTooltip"
|
20
25
|
:activator="checkbox"
|
21
|
-
v-if="message"
|
22
|
-
:text="message"
|
26
|
+
v-if="scope?.message"
|
27
|
+
:text="$st(scope?.message)"
|
23
28
|
content-class="bg-error"
|
24
29
|
:location="tooltipPosition"
|
25
30
|
/>
|
31
|
+
<slot name="message" v-bind="scope ?? {}"></slot>
|
26
32
|
</template>
|
27
33
|
<v-tooltip
|
28
34
|
v-if="tooltip && !errorTooltip"
|
29
35
|
:activator="checkbox"
|
30
36
|
:location="tooltipPosition"
|
31
|
-
:text="tooltip"
|
37
|
+
:text="$st(tooltip)"
|
32
38
|
></v-tooltip>
|
33
39
|
</v-checkbox>
|
34
40
|
</template>
|
35
41
|
<style lang="scss" scoped>
|
42
|
+
:deep(.v-icon--size-default) {
|
43
|
+
font-size: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3));
|
44
|
+
}
|
36
45
|
.v-input--density-compact :deep(.v-selection-control) {
|
37
|
-
--v-selection-control-size: calc(
|
38
|
-
|
46
|
+
--v-selection-control-size: calc(
|
47
|
+
var(--v-vcs-font-size) * (1.2 + 0.1 / 3) + 4
|
48
|
+
);
|
49
|
+
--v-input-control-height: calc(var(--v-vcs-font-size) + 3px);
|
50
|
+
}
|
51
|
+
:deep(.v-input__control) {
|
52
|
+
height: calc(var(--v-vcs-font-size) * 2 - 2px);
|
39
53
|
}
|
40
54
|
// remove ripple effect
|
41
55
|
:deep(.v-selection-control__input::before) {
|
@@ -49,14 +63,14 @@
|
|
49
63
|
<script>
|
50
64
|
import { ref } from 'vue';
|
51
65
|
import { VCheckbox, VTooltip } from 'vuetify/components';
|
52
|
-
import { usePadding } from '../composables.js';
|
66
|
+
import { getForwardSlots, usePadding } from '../composables.js';
|
53
67
|
|
54
68
|
/**
|
55
69
|
* @description Stylized wrapper around {@link https://vuetifyjs.com/en/api/v-checkbox/ |vuetify checkbox}.
|
56
70
|
* Provides VTooltip to show error messages
|
57
71
|
* @vue-prop {string} [tooltip] - A message to be displayed when there is no error.
|
58
72
|
* @vue-prop {('bottom' | 'left' | 'top' | 'right')} [tooltipPosition='right'] - Position of the error tooltip, see {@link https://vuetifyjs.com/en/api/v-tooltip/#props-location | vuetify tooltip}.
|
59
|
-
* @vue-prop {string} label - Label to be displayed, will be translated.
|
73
|
+
* @vue-prop {string} [label] - Label to be displayed, will be translated.
|
60
74
|
* @vue-data {slot} [#label] - slot to pass html for Checkbox label. Overrides label passed as prop.
|
61
75
|
*/
|
62
76
|
export default {
|
@@ -75,13 +89,18 @@
|
|
75
89
|
type: String,
|
76
90
|
default: 'right',
|
77
91
|
},
|
92
|
+
label: {
|
93
|
+
type: String,
|
94
|
+
default: undefined,
|
95
|
+
},
|
78
96
|
},
|
79
|
-
setup(props, { attrs }) {
|
97
|
+
setup(props, { attrs, slots }) {
|
80
98
|
const checkbox = ref();
|
81
99
|
const errorTooltip = ref();
|
82
100
|
const paddingProvided = usePadding(attrs);
|
83
|
-
|
101
|
+
const forwardSlots = getForwardSlots(slots, ['label', 'message']);
|
84
102
|
return {
|
103
|
+
forwardSlots,
|
85
104
|
paddingProvided,
|
86
105
|
checkbox,
|
87
106
|
errorTooltip,
|
@@ -7,7 +7,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
7
7
|
type: StringConstructor;
|
8
8
|
default: string;
|
9
9
|
};
|
10
|
+
label: {
|
11
|
+
type: StringConstructor;
|
12
|
+
default: undefined;
|
13
|
+
};
|
10
14
|
}, {
|
15
|
+
forwardSlots: string[];
|
11
16
|
paddingProvided: import("vue").ComputedRef<boolean>;
|
12
17
|
checkbox: import("vue").Ref<any>;
|
13
18
|
errorTooltip: import("vue").Ref<any>;
|
@@ -20,7 +25,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
20
25
|
type: StringConstructor;
|
21
26
|
default: string;
|
22
27
|
};
|
28
|
+
label: {
|
29
|
+
type: StringConstructor;
|
30
|
+
default: undefined;
|
31
|
+
};
|
23
32
|
}>>, {
|
33
|
+
label: string;
|
24
34
|
tooltip: string;
|
25
35
|
tooltipPosition: string;
|
26
36
|
}, {}>;
|