@vcmap/ui 6.0.0-rc.1 → 6.0.0-rc.3
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 +2 -8
- package/build/info/conf.json +1 -1
- package/config/base.config.json +4 -4
- package/config/projects.config.json +2 -1
- package/config/splashscreen.config.json +45 -0
- package/dist/.htaccess +7 -0
- package/dist/assets/@mdi/font/README.md +25 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.min-7a4f6be0.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-ZA25DG4Y.js → chunk-3DRPXHZ4.js} +11 -11
- package/dist/assets/cesium/Workers/{chunk-OAVNIRB4.js → chunk-3GI7DWF7.js} +5 -7
- package/dist/assets/cesium/Workers/{chunk-TFC6TZ3S.js → chunk-4EW3HFFI.js} +33 -22
- package/dist/assets/cesium/Workers/{chunk-LLUNNUJV.js → chunk-4OX4RYLB.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-66QLLS45.js → chunk-4RJH3H6D.js} +11 -9
- package/dist/assets/cesium/Workers/{chunk-MPAZH4BF.js → chunk-5OUTANXX.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-WXTV4ATB.js → chunk-6DH5PLFD.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-A4JVFBQ3.js → chunk-6DXIYFX3.js} +2 -2
- package/dist/assets/cesium/Workers/chunk-A5C2A5O5.js +963 -0
- package/dist/assets/cesium/Workers/{chunk-HQF437NJ.js → chunk-AGTH5JMJ.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-RP2A7BR5.js → chunk-AVFIYUKX.js} +12 -14
- package/dist/assets/cesium/Workers/{chunk-227AJNOA.js → chunk-BAJAVGUF.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-N3JIFFX2.js → chunk-BPY4HDAK.js} +5 -6
- package/dist/assets/cesium/Workers/{chunk-ABADGKYE.js → chunk-D6PDWQXW.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-34YUDLRP.js → chunk-DR7LK6PG.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-OYFCF4PL.js → chunk-DTACCQDR.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-C3SXRKRW.js → chunk-EVU2UNBD.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-6BTKZDRG.js → chunk-F7IEM66T.js} +3 -5
- package/dist/assets/cesium/Workers/{chunk-QT3MPEMI.js → chunk-FSXNF76Y.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-PCJWUS4M.js → chunk-FYYT5EVH.js} +830 -14
- package/dist/assets/cesium/Workers/{chunk-QMEMZIJI.js → chunk-FZDKIUDT.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-XTY7B2N6.js → chunk-G6346EDR.js} +16 -16
- package/dist/assets/cesium/Workers/{chunk-CHHNOC2C.js → chunk-H7PSTL64.js} +95 -155
- package/dist/assets/cesium/Workers/{chunk-2R5O53JW.js → chunk-I67V66MN.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-JS3AW5BK.js → chunk-IALQGTA2.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-K36FEYS7.js → chunk-KNMGSIIN.js} +16 -12
- package/dist/assets/cesium/Workers/{chunk-J3JY6I2C.js → chunk-L4XQPD6P.js} +49 -88
- package/dist/assets/cesium/Workers/{chunk-X4SU25DT.js → chunk-LMTN7R7M.js} +10 -12
- package/dist/assets/cesium/Workers/{chunk-JB2LWGH4.js → chunk-LUYI3XCB.js} +14 -14
- package/dist/assets/cesium/Workers/{chunk-AFFLIKOH.js → chunk-N5MIFVXJ.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-MYZB7C4T.js → chunk-O7OUBDMZ.js} +10 -10
- package/dist/assets/cesium/Workers/{chunk-VLGOATD6.js → chunk-P24I5VUS.js} +22 -22
- package/dist/assets/cesium/Workers/{chunk-KD4Y7CZL.js → chunk-PIOKSAZH.js} +15 -17
- package/dist/assets/cesium/Workers/{chunk-3W63OHNJ.js → chunk-PRKEY4QK.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-O5AMBQ36.js → chunk-Q7PM4W34.js} +8 -8
- package/dist/assets/cesium/Workers/{chunk-GLZBE3ML.js → chunk-QLC66ZRL.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-OZJDGN5F.js → chunk-RRLGJV3Q.js} +16 -16
- package/dist/assets/cesium/Workers/{chunk-CCFQRR6D.js → chunk-S2UEXF6T.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-QIKODV5G.js → chunk-S4VTLNAJ.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-EW2GWJYB.js → chunk-SJC5PRDX.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-KTJSNCK4.js → chunk-T6TZXGG5.js} +230 -20
- package/dist/assets/cesium/Workers/{chunk-RW6LU2CJ.js → chunk-TLGODPEV.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-CTELOFLA.js → chunk-UC566ISB.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-ZFOBYDGF.js → chunk-UMX265HW.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-Z24VKNDO.js → chunk-V7WJDCPA.js} +12 -12
- package/dist/assets/cesium/Workers/{chunk-4MFFIWUA.js → chunk-VD6G7UPU.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-XY7MGBKC.js → chunk-WMVCLETM.js} +14 -16
- package/dist/assets/cesium/Workers/{chunk-IPA4EACJ.js → chunk-WOA6WSHH.js} +12 -12
- package/dist/assets/cesium/Workers/{chunk-PFQBCKBM.js → chunk-X67EJ6X6.js} +4398 -2722
- package/dist/assets/cesium/Workers/{chunk-V3NGATMV.js → chunk-XGI4FRXF.js} +11 -13
- package/dist/assets/cesium/Workers/{chunk-AHKEZ2OE.js → chunk-YFVI4SQI.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-HARLBUOL.js → chunk-YFYPR4MW.js} +11 -8
- 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 +25 -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 +12 -19
- package/dist/assets/cesium/Workers/decodeI3S.js +600 -92
- package/dist/assets/cesium/Workers/transcodeKTX2.js +46 -82
- 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-cb4dbfba.js} +151166 -145641
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.074b78.js → core-72f21835.js} +2299 -2225
- package/dist/assets/core.js +1 -1
- package/dist/assets/{ol.8b2e3a.js → ol-2d33bc8b.js} +42505 -44282
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui-2ab43a16.css +1 -0
- package/dist/assets/{ui.715986.js → ui-2ab43a16.js} +12001 -11136
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify.28d881.css → vuetify-760ced3b.css} +1 -1
- package/dist/assets/{vuetify.28d881.js → vuetify-760ced3b.js} +5720 -5662
- package/dist/assets/vuetify.js +1 -1
- package/dist/index.html +11 -10
- package/index.d.ts +9 -5
- package/index.html +5 -5
- package/index.js +4 -3
- package/lib/olLib.js +84 -23
- package/package.json +10 -9
- package/plugins/@vcmap-show-case/flight-component-example/src/FlightExample.vue +41 -1
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +70 -30
- 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 +45 -94
- package/plugins/@vcmap-show-case/style-input-example/src/StyleExample.vue +29 -90
- package/plugins/@vcmap-show-case/vector-properties-example/src/VectorPropertiesExample.vue +35 -10
- package/plugins/@vcmap-show-case/wizard-example/src/WizardExample.vue +40 -54
- 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/actionHelper.js +20 -20
- package/src/actions/flightActions.js +5 -5
- package/src/actions/listActions.d.ts +0 -7
- package/src/actions/listActions.js +4 -20
- package/src/actions/stateRefAction.js +2 -2
- package/src/application/VcsApp.vue +53 -29
- package/src/application/VcsApp.vue.d.ts +1 -0
- package/src/application/VcsAttributions.vue +2 -13
- package/src/application/VcsAttributionsFooter.vue +10 -11
- package/src/application/VcsNavbar.vue.d.ts +1 -1
- package/src/application/VcsPositionDisplay.vue +8 -23
- package/src/application/VcsPositionDisplay.vue.d.ts +0 -1
- package/src/application/VcsSettings.vue +10 -17
- package/src/application/VcsSplashScreen.vue +34 -54
- 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 +22 -40
- package/src/application/markdownHelper.js +2 -17
- package/src/components/buttons/VcsButton.vue +1 -1
- package/src/components/buttons/VcsButton.vue.d.ts +3 -3
- package/src/components/buttons/VcsFormButton.vue +1 -1
- package/src/components/buttons/VcsFormButton.vue.d.ts +2 -2
- package/src/components/buttons/VcsToolButton.vue +1 -1
- package/src/components/buttons/VcsToolButton.vue.d.ts +4 -4
- package/src/components/composables.d.ts +7 -0
- package/src/components/composables.js +35 -1
- package/src/components/extent/VcsExtentEditor.vue +1 -1
- package/src/components/flight/VcsFlightAnchorsComponent.vue +63 -36
- package/src/components/flight/VcsFlightComponent.vue +16 -21
- package/src/components/flight/VcsFlightPlayer.vue +27 -5
- package/src/components/form-inputs-controls/VcsCheckbox.vue +19 -11
- package/src/components/form-inputs-controls/VcsCheckbox.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +1 -1
- package/src/components/form-inputs-controls/VcsCoordinate.vue +13 -1
- package/src/components/form-inputs-controls/VcsCoordinate.vue.d.ts +5 -2
- package/src/components/form-inputs-controls/VcsDatePicker.vue +34 -60
- 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 +31 -1
- package/src/components/form-inputs-controls/VcsLabel.vue.d.ts +21 -1
- package/src/components/form-inputs-controls/VcsRadio.vue +19 -5
- package/src/components/form-inputs-controls/VcsRadio.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +44 -41
- package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +7 -4
- package/src/components/form-inputs-controls/VcsSlider.vue +49 -10
- package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +28 -2
- package/src/components/form-inputs-controls/VcsTextArea.vue +54 -35
- package/src/components/form-inputs-controls/VcsTextArea.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsTextField.vue +21 -14
- package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +1 -0
- 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 +75 -57
- package/src/components/form-inputs-controls/VcsWizardStep.vue.d.ts +24 -11
- package/src/components/form-inputs-controls/vcsTextField.scss +13 -8
- package/src/components/form-output/VcsFormattedNumber.vue +40 -10
- package/src/components/form-output/VcsFormattedNumber.vue.d.ts +27 -0
- package/src/components/form-output/VcsMarkdown.vue +53 -0
- package/src/{application/VcsCustomScreen.vue.d.ts → components/form-output/VcsMarkdown.vue.d.ts} +6 -5
- package/src/components/lists/VcsActionList.vue +50 -34
- package/src/components/lists/VcsActionList.vue.d.ts +3 -1
- package/src/components/lists/VcsList.vue +82 -158
- package/src/components/lists/VcsList.vue.d.ts +7 -14
- package/src/components/lists/VcsListItem.vue +184 -0
- package/src/components/lists/VcsListItem.vue.d.ts +27 -0
- package/src/components/lists/VcsTreeviewLeaf.vue +1 -1
- package/src/components/modelHelper.d.ts +11 -0
- package/src/components/modelHelper.js +42 -2
- package/src/components/section/VcsExpansionPanel.vue +101 -0
- package/src/components/section/VcsExpansionPanel.vue.d.ts +19 -0
- package/src/components/style/MenuWrapper.vue +24 -26
- package/src/components/style/MenuWrapper.vue.d.ts +4 -4
- package/src/components/style/VcsFillMenu.vue +9 -16
- package/src/components/style/VcsFillMenu.vue.d.ts +0 -18
- package/src/components/style/VcsFillSelector.vue +13 -16
- package/src/components/style/VcsImageMenu.vue +8 -25
- package/src/components/style/VcsImageMenu.vue.d.ts +0 -27
- package/src/components/style/VcsImageSelector.vue +102 -167
- package/src/components/style/VcsImageSelector.vue.d.ts +15 -15
- package/src/components/style/VcsStrokeMenu.vue +8 -15
- package/src/components/style/VcsStrokeMenu.vue.d.ts +0 -18
- package/src/components/style/VcsStrokeSelector.vue +11 -18
- package/src/components/style/VcsTextMenu.vue +9 -12
- package/src/components/style/VcsTextMenu.vue.d.ts +0 -9
- package/src/components/style/VcsTextSelector.vue +79 -95
- package/src/components/style/VcsTextSelector.vue.d.ts +20 -22
- package/src/components/style/VcsVectorStyleComponent.vue +7 -18
- 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/vector-properties/VcsFeatureEditingWindow.vue +53 -12
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts +3 -3
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +475 -586
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +193 -22
- package/src/components/viewpoint/VcsViewpointComponent.vue +21 -8
- package/src/components/viewpoint/VcsViewpointEditor.vue +1 -0
- package/src/contentTree/contentTreeItem.d.ts +2 -2
- package/src/contentTree/contentTreeItem.js +7 -7
- package/src/featureInfo/featureInfo.js +8 -10
- 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 +28 -54
- package/src/manager/buttonManager.js +4 -4
- package/src/manager/collectionManager/CollectionComponent.vue +17 -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 +10 -8
- package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +4 -2
- 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/collectionComponentClass.js +6 -9
- package/src/manager/collectionManager/collectionManager.js +10 -10
- package/src/manager/collectionManager/editorCollectionComponentClass.js +4 -4
- package/src/manager/contextMenu/contextMenuManager.js +2 -2
- package/src/manager/navbarManager.js +2 -2
- package/src/manager/panel/panelManager.js +3 -3
- package/src/manager/toolbox/toolboxManager.js +10 -10
- package/src/manager/window/windowManager.d.ts +6 -6
- package/src/manager/window/windowManager.js +6 -6
- package/src/navigation/MapNavigation.vue +6 -3
- package/src/navigation/OrientationToolsButton.vue +39 -26
- package/src/navigation/OrientationToolsButton.vue.d.ts +5 -1
- package/src/navigation/TiltSlider.vue +83 -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/search/search.js +2 -2
- package/src/siteConfig.js +1 -1
- package/src/state.js +4 -4
- package/src/styles/_typography.scss +1 -0
- package/src/vcsUiApp.d.ts +24 -26
- package/src/vcsUiApp.js +11 -4
- package/src/vuePlugins/i18n.js +7 -0
- package/src/vuePlugins/vuetify.d.ts +2 -0
- package/src/vuePlugins/vuetify.js +15 -0
- 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/public/assets/@mdi/font/css/materialdesignicons.css.map +0 -16
- package/src/application/VcsCustomScreen.vue +0 -45
- package/src/components/vector-properties/composables.d.ts +0 -33
- package/src/components/vector-properties/composables.js +0 -100
- 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/dist/assets/{vue.0f2c53.js → vue-03b265aa.js} +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/{form-inputs-controls → section}/VcsFormSection.vue +0 -0
- package/src/components/{form-inputs-controls → section}/VcsFormSection.vue.d.ts +1 -1
package/src/legend/VcsLegend.vue
CHANGED
@@ -6,51 +6,37 @@
|
|
6
6
|
v-if="entries.length > 0"
|
7
7
|
class="rounded-0"
|
8
8
|
>
|
9
|
-
<
|
9
|
+
<vcs-expansion-panel
|
10
10
|
v-for="(entry, i) in entries"
|
11
11
|
:key="i"
|
12
|
-
|
12
|
+
:heading="entry.title"
|
13
|
+
:header-actions="entry.actions"
|
13
14
|
@group:selected="entry.open = !entry.open"
|
14
15
|
>
|
15
|
-
<v-
|
16
|
-
<
|
17
|
-
<div
|
18
|
-
<
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
<VcsActionButtonList :actions="entry.actions" />
|
16
|
+
<v-list class="pl-6 pb-2">
|
17
|
+
<div v-for="(item, idx) in entry.legend" :key="idx">
|
18
|
+
<div v-if="item.type === LegendType.Image">
|
19
|
+
<img
|
20
|
+
:src="$st(item.src)"
|
21
|
+
:alt="item.src"
|
22
|
+
class="legend-image"
|
23
|
+
:title="item.tooltip"
|
24
|
+
/>
|
25
25
|
</div>
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
class="legend-image"
|
36
|
-
:title="item.tooltip"
|
37
|
-
/>
|
38
|
-
</div>
|
39
|
-
<div v-else-if="item.type === LegendType.Iframe">
|
40
|
-
<iframe
|
41
|
-
:id="`legendIframe${idx}`"
|
42
|
-
:src="$st(item.src)"
|
43
|
-
scrolling="no"
|
44
|
-
style="width: 100%; height: 100%"
|
45
|
-
frameBorder="0"
|
46
|
-
@load="setIframeHeight(`legendIframe${idx}`)"
|
47
|
-
/>
|
48
|
-
</div>
|
49
|
-
<style-legend-item v-else :item="item" />
|
26
|
+
<div v-else-if="item.type === LegendType.Iframe">
|
27
|
+
<iframe
|
28
|
+
:id="`legendIframe${idx}`"
|
29
|
+
:src="$st(item.src)"
|
30
|
+
scrolling="no"
|
31
|
+
style="width: 100%; height: 100%"
|
32
|
+
frameBorder="0"
|
33
|
+
@load="setIframeHeight(`legendIframe${idx}`)"
|
34
|
+
/>
|
50
35
|
</div>
|
51
|
-
|
52
|
-
|
53
|
-
|
36
|
+
<style-legend-item v-else :item="item" />
|
37
|
+
</div>
|
38
|
+
</v-list>
|
39
|
+
</vcs-expansion-panel>
|
54
40
|
</v-expansion-panels>
|
55
41
|
<v-sheet v-else class="ma-2">
|
56
42
|
{{ $t('legend.empty') }}
|
@@ -59,19 +45,11 @@
|
|
59
45
|
</template>
|
60
46
|
|
61
47
|
<script>
|
62
|
-
import {
|
63
|
-
VExpansionPanels,
|
64
|
-
VExpansionPanel,
|
65
|
-
VExpansionPanelText,
|
66
|
-
VExpansionPanelTitle,
|
67
|
-
VIcon,
|
68
|
-
VList,
|
69
|
-
VSheet,
|
70
|
-
} from 'vuetify/components';
|
48
|
+
import { VExpansionPanels, VList, VSheet } from 'vuetify/components';
|
71
49
|
import { computed } from 'vue';
|
72
50
|
import { LegendType } from './legendHelper.js';
|
73
51
|
import StyleLegendItem from './StyleLegendItem.vue';
|
74
|
-
import
|
52
|
+
import VcsExpansionPanel from '../components/section/VcsExpansionPanel.vue';
|
75
53
|
|
76
54
|
/**
|
77
55
|
* @description A component rendering configured legend information for active layers.
|
@@ -81,13 +59,9 @@
|
|
81
59
|
export default {
|
82
60
|
name: 'VcsLegend',
|
83
61
|
components: {
|
84
|
-
|
62
|
+
VcsExpansionPanel,
|
85
63
|
StyleLegendItem,
|
86
64
|
VExpansionPanels,
|
87
|
-
VExpansionPanel,
|
88
|
-
VExpansionPanelText,
|
89
|
-
VExpansionPanelTitle,
|
90
|
-
VIcon,
|
91
65
|
VList,
|
92
66
|
VSheet,
|
93
67
|
},
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { reactive } from 'vue';
|
2
2
|
import { VcsEvent } from '@vcmap/core';
|
3
3
|
import { v4 as uuidv4 } from 'uuid';
|
4
|
-
import { check,
|
4
|
+
import { check, maybe, oneOf } from '@vcsuite/check';
|
5
5
|
import { vcsAppSymbol } from '../pluginHelper.js';
|
6
6
|
import { ActionPattern } from '../components/lists/VcsActionList.vue';
|
7
7
|
import { getActionFromOptions } from '../actions/actionHelper.js';
|
@@ -101,10 +101,10 @@ class ButtonManager {
|
|
101
101
|
* @returns {ButtonComponent}
|
102
102
|
*/
|
103
103
|
add(buttonComponentOptions, owner) {
|
104
|
-
|
105
|
-
|
104
|
+
check(buttonComponentOptions.id, maybe(String));
|
105
|
+
check(buttonComponentOptions.weight, maybe(Number));
|
106
106
|
check(buttonComponentOptions.action, ActionPattern);
|
107
|
-
check(owner,
|
107
|
+
check(owner, oneOf(String, vcsAppSymbol));
|
108
108
|
|
109
109
|
if (buttonComponentOptions.id && this.has(buttonComponentOptions.id)) {
|
110
110
|
throw new Error(
|
@@ -1,39 +1,24 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
</div>
|
14
|
-
<VcsActionButtonList
|
15
|
-
v-if="actions?.length > 0"
|
16
|
-
:actions="actions"
|
17
|
-
:overflow-count="overflowCount"
|
18
|
-
/>
|
19
|
-
</div>
|
20
|
-
</v-expansion-panel-title>
|
21
|
-
<v-expansion-panel-text class="pb-1">
|
2
|
+
<vcs-expansion-panel
|
3
|
+
:heading="title"
|
4
|
+
:header-actions="actions"
|
5
|
+
:action-button-list-overflow-count="overflowCount"
|
6
|
+
>
|
7
|
+
<template #header-append>
|
8
|
+
<span v-if="selectable && selection.length > 0" class="ml-1">
|
9
|
+
{{ `(${selection.length})` }}
|
10
|
+
</span>
|
11
|
+
</template>
|
12
|
+
<template #default>
|
22
13
|
<CollectionComponentContent @openList="(id) => $emit('openList', id)" />
|
23
|
-
</
|
24
|
-
</
|
14
|
+
</template>
|
15
|
+
</vcs-expansion-panel>
|
25
16
|
</template>
|
26
17
|
|
27
18
|
<script>
|
28
19
|
import { computed, inject } from 'vue';
|
29
|
-
import
|
30
|
-
VIcon,
|
31
|
-
VExpansionPanel,
|
32
|
-
VExpansionPanelTitle,
|
33
|
-
VExpansionPanelText,
|
34
|
-
} from 'vuetify/components';
|
20
|
+
import VcsExpansionPanel from '../../components/section/VcsExpansionPanel.vue';
|
35
21
|
import { createSelectionActions } from '../../components/lists/VcsList.vue';
|
36
|
-
import VcsActionButtonList from '../../components/buttons/VcsActionButtonList.vue';
|
37
22
|
import CollectionComponentContent from './CollectionComponentContent.vue';
|
38
23
|
|
39
24
|
/**
|
@@ -51,12 +36,8 @@
|
|
51
36
|
export default {
|
52
37
|
name: 'CollectionComponent',
|
53
38
|
components: {
|
39
|
+
VcsExpansionPanel,
|
54
40
|
CollectionComponentContent,
|
55
|
-
VcsActionButtonList,
|
56
|
-
VExpansionPanel,
|
57
|
-
VExpansionPanelTitle,
|
58
|
-
VExpansionPanelText,
|
59
|
-
VIcon,
|
60
41
|
},
|
61
42
|
props: {
|
62
43
|
open: {
|
@@ -64,6 +45,7 @@
|
|
64
45
|
default: false,
|
65
46
|
},
|
66
47
|
},
|
48
|
+
emits: ['openList'],
|
67
49
|
setup(_props, { emit }) {
|
68
50
|
/**
|
69
51
|
* @type {CollectionComponentClass}
|
@@ -97,11 +79,4 @@
|
|
97
79
|
};
|
98
80
|
</script>
|
99
81
|
|
100
|
-
<style lang="scss" scoped>
|
101
|
-
.rotate {
|
102
|
-
transform: rotate(-90deg);
|
103
|
-
}
|
104
|
-
.v-icon {
|
105
|
-
font-size: 16px;
|
106
|
-
}
|
107
|
-
</style>
|
82
|
+
<style lang="scss" scoped></style>
|
@@ -9,12 +9,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
9
9
|
selectable: any;
|
10
10
|
overflowCount: any;
|
11
11
|
actions: import("vue").ComputedRef<any>;
|
12
|
-
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
12
|
+
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "openList"[], "openList", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
13
13
|
open: {
|
14
14
|
type: BooleanConstructor;
|
15
15
|
default: boolean;
|
16
16
|
};
|
17
|
-
}
|
17
|
+
}>> & {
|
18
|
+
onOpenList?: ((...args: any[]) => any) | undefined;
|
19
|
+
}, {
|
18
20
|
open: boolean;
|
19
21
|
}, {}>;
|
20
22
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<v-container class="py-0 px-0">
|
2
|
+
<v-container class="py-0 px-0 collection-component-content">
|
3
3
|
<vcs-list
|
4
4
|
:items="items.slice(0, limit)"
|
5
5
|
:draggable="draggable"
|
@@ -36,13 +36,14 @@
|
|
36
36
|
* @vue-event {string} openList
|
37
37
|
*/
|
38
38
|
export default {
|
39
|
-
name: '
|
39
|
+
name: 'CollectionComponentContent',
|
40
40
|
components: {
|
41
41
|
VcsButton,
|
42
42
|
VcsList,
|
43
43
|
VSheet,
|
44
44
|
VContainer,
|
45
45
|
},
|
46
|
+
emits: ['openList'],
|
46
47
|
setup(_props, { emit }) {
|
47
48
|
/**
|
48
49
|
* @type {CollectionComponentClass}
|
@@ -89,12 +90,12 @@
|
|
89
90
|
<style lang="scss" scoped>
|
90
91
|
:deep(.v-list) {
|
91
92
|
.v-list-item {
|
92
|
-
padding:
|
93
|
+
padding-left: 24px;
|
94
|
+
padding-inline-start: 24px !important;
|
93
95
|
}
|
94
96
|
.v-list-item__selected {
|
95
|
-
|
96
|
-
|
97
|
-
padding-left: 24px !important;
|
97
|
+
padding-left: 20px !important;
|
98
|
+
padding-inline-start: 20px !important;
|
98
99
|
}
|
99
100
|
}
|
100
101
|
</style>
|
@@ -13,5 +13,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
13
13
|
targetIndex: any;
|
14
14
|
}): void;
|
15
15
|
openCollectionComponentList(): void;
|
16
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "openList"[], "openList", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
17
|
+
onOpenList?: ((...args: any[]) => any) | undefined;
|
18
|
+
}, {}, {}>;
|
17
19
|
export default _default;
|
@@ -1,11 +1,8 @@
|
|
1
1
|
<template>
|
2
|
-
<div>
|
3
|
-
<div
|
4
|
-
|
5
|
-
|
6
|
-
>
|
7
|
-
<div class="d-flex justify-space-between">
|
8
|
-
<div class="d-flex align-center gc-1 pl-2">
|
2
|
+
<div class="collection-component-list">
|
3
|
+
<div v-if="!hideHeader" class="pr-2 pl-4 py-1">
|
4
|
+
<div class="d-flex justify-space-between inner-header">
|
5
|
+
<div class="d-flex align-center gc-1">
|
9
6
|
<span>
|
10
7
|
{{ $st(title) }}
|
11
8
|
</span>
|
@@ -93,6 +90,7 @@
|
|
93
90
|
VcsList,
|
94
91
|
VSheet,
|
95
92
|
},
|
93
|
+
emits: ['closeList'],
|
96
94
|
setup(_props, { emit }) {
|
97
95
|
/**
|
98
96
|
* @type {import("./collectionComponentClass.js").CollectionComponentClass}
|
@@ -136,4 +134,8 @@
|
|
136
134
|
};
|
137
135
|
</script>
|
138
136
|
|
139
|
-
<style lang="scss" scoped
|
137
|
+
<style lang="scss" scoped>
|
138
|
+
.inner-header {
|
139
|
+
height: calc(var(--v-vcs-item-height) - 8px);
|
140
|
+
}
|
141
|
+
</style>
|
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
31
31
|
targetIndex: any;
|
32
32
|
}): void;
|
33
33
|
closeList(): void;
|
34
|
-
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
34
|
+
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeList"[], "closeList", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
35
35
|
showLessButton: {
|
36
36
|
type: BooleanConstructor;
|
37
37
|
default: boolean;
|
@@ -40,7 +40,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
40
|
type: BooleanConstructor;
|
41
41
|
default: boolean;
|
42
42
|
};
|
43
|
-
}
|
43
|
+
}>> & {
|
44
|
+
onCloseList?: ((...args: any[]) => any) | undefined;
|
45
|
+
}, {
|
44
46
|
hideHeader: boolean;
|
45
47
|
showLessButton: boolean;
|
46
48
|
}, {}>;
|
@@ -4,6 +4,7 @@
|
|
4
4
|
:header-actions="actions"
|
5
5
|
:action-button-list-overflow-count="overflowCount"
|
6
6
|
v-bind="{ ...$attrs }"
|
7
|
+
class="collection-component-standalone"
|
7
8
|
>
|
8
9
|
<collection-component-list
|
9
10
|
v-if="componentListView"
|
@@ -16,7 +17,7 @@
|
|
16
17
|
|
17
18
|
<script>
|
18
19
|
import { computed, getCurrentInstance, inject, ref } from 'vue';
|
19
|
-
import VcsFormSection from '../../components/
|
20
|
+
import VcsFormSection from '../../components/section/VcsFormSection.vue';
|
20
21
|
import { createSelectionActions } from '../../components/lists/VcsList.vue';
|
21
22
|
import CollectionComponentList from './CollectionComponentList.vue';
|
22
23
|
import CollectionComponentContent from './CollectionComponentContent.vue';
|
@@ -27,7 +28,7 @@
|
|
27
28
|
* The collectionComponent must be passed via {@link https://vuejs.org/api/composition-api-dependency-injection.html |provide }.
|
28
29
|
*/
|
29
30
|
export default {
|
30
|
-
name: '
|
31
|
+
name: 'CollectionComponentStandalone',
|
31
32
|
components: {
|
32
33
|
CollectionComponentList,
|
33
34
|
CollectionComponentContent,
|
@@ -3,13 +3,12 @@ import { getLogger } from '@vcsuite/logger';
|
|
3
3
|
import { v4 as uuidv4 } from 'uuid';
|
4
4
|
import { computed, ref, shallowRef, watch } from 'vue';
|
5
5
|
import { parseBoolean, parseNumber } from '@vcsuite/parsers';
|
6
|
-
import { check } from '@vcsuite/check';
|
6
|
+
import { check, oneOf } from '@vcsuite/check';
|
7
7
|
import { validateAction } from '../../components/lists/VcsActionList.vue';
|
8
8
|
import { sortByWeight } from '../buttonManager.js';
|
9
9
|
import {
|
10
10
|
createListItemBulkAction,
|
11
11
|
createListItemDeleteAction,
|
12
|
-
createListItemRenameAction,
|
13
12
|
} from '../../actions/listActions.js';
|
14
13
|
import { sortByOwner } from '../navbarManager.js';
|
15
14
|
|
@@ -56,7 +55,7 @@ function destroyListItem(listItem) {
|
|
56
55
|
/**
|
57
56
|
* Renames the title of an item for VcsObject based items.
|
58
57
|
* @param {import("@vcmap/core").VcsObject} item
|
59
|
-
* @param {import("../../components/lists/VcsList").VcsListItem} listItem
|
58
|
+
* @param {import("../../components/lists/VcsList.vue").VcsListItem} listItem
|
60
59
|
* @param {string} newTitle
|
61
60
|
*/
|
62
61
|
function titleChanged(item, listItem, newTitle) {
|
@@ -77,7 +76,7 @@ export function createSupportedMapMappingFunction(
|
|
77
76
|
supportedMaps,
|
78
77
|
mapCollection,
|
79
78
|
) {
|
80
|
-
check(supportedMaps, [
|
79
|
+
check(supportedMaps, oneOf([String], Function));
|
81
80
|
|
82
81
|
return (item, _c, listItem) => {
|
83
82
|
const mapNames =
|
@@ -359,11 +358,9 @@ class CollectionComponentClass {
|
|
359
358
|
destroyFunctions: [],
|
360
359
|
};
|
361
360
|
if (this.renamable.value) {
|
362
|
-
listItem.
|
363
|
-
|
364
|
-
|
365
|
-
}),
|
366
|
-
);
|
361
|
+
listItem.renamable = {
|
362
|
+
name: this._actionTitles.renameTitle,
|
363
|
+
};
|
367
364
|
listItem.titleChanged = (newTitle) =>
|
368
365
|
titleChanged(item, listItem, newTitle);
|
369
366
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { VcsEvent, Collection } from '@vcmap/core';
|
2
2
|
import { reactive } from 'vue';
|
3
|
-
import { check,
|
3
|
+
import { check, maybe, oneOf } from '@vcsuite/check';
|
4
4
|
import { validateActions } from '../../components/lists/VcsActionList.vue';
|
5
5
|
import CollectionComponentClass from './collectionComponentClass.js';
|
6
6
|
|
@@ -133,7 +133,7 @@ class CollectionManager {
|
|
133
133
|
*/
|
134
134
|
add(collectionComponentOptions, owner) {
|
135
135
|
check(collectionComponentOptions, { collection: Collection });
|
136
|
-
check(owner,
|
136
|
+
check(owner, oneOf(String, Symbol));
|
137
137
|
|
138
138
|
if (
|
139
139
|
collectionComponentOptions.id &&
|
@@ -220,9 +220,9 @@ class CollectionManager {
|
|
220
220
|
owner,
|
221
221
|
collectionComponentIds = [],
|
222
222
|
) {
|
223
|
-
|
223
|
+
check(predicate, maybe(Function));
|
224
224
|
check(mappingFunction, Function);
|
225
|
-
check(owner,
|
225
|
+
check(owner, oneOf(String, Symbol));
|
226
226
|
check(collectionComponentIds, [String]);
|
227
227
|
|
228
228
|
/** @type {ItemMapping} */
|
@@ -260,7 +260,7 @@ class CollectionManager {
|
|
260
260
|
*/
|
261
261
|
removeMappingFunction(mappingFunction, owner) {
|
262
262
|
check(mappingFunction, Function);
|
263
|
-
check(owner,
|
263
|
+
check(owner, oneOf(String, Symbol));
|
264
264
|
|
265
265
|
[...this._collectionComponents.values()].forEach((collectionComponent) => {
|
266
266
|
collectionComponent.removeItemMapping({ mappingFunction, owner });
|
@@ -279,7 +279,7 @@ class CollectionManager {
|
|
279
279
|
*/
|
280
280
|
addFilterFunction(filterFunction, owner, collectionComponentIds = []) {
|
281
281
|
check(filterFunction, Function);
|
282
|
-
check(owner,
|
282
|
+
check(owner, oneOf(String, Symbol));
|
283
283
|
check(collectionComponentIds, [String]);
|
284
284
|
|
285
285
|
/** @type {ItemFilter} */
|
@@ -316,7 +316,7 @@ class CollectionManager {
|
|
316
316
|
*/
|
317
317
|
removeFilterFunction(filterFunction, owner) {
|
318
318
|
check(filterFunction, Function);
|
319
|
-
check(owner,
|
319
|
+
check(owner, oneOf(String, Symbol));
|
320
320
|
|
321
321
|
[...this._collectionComponents.values()].forEach((collectionComponent) => {
|
322
322
|
collectionComponent.removeItemFilter({ filterFunction, owner });
|
@@ -334,7 +334,7 @@ class CollectionManager {
|
|
334
334
|
* @param {Array<string>} [collectionComponentIds] list of collectionComponents this mappingFunction should be used on. If empty, actions are applied to all managed collectionComponents.
|
335
335
|
*/
|
336
336
|
addActions(actions, owner, collectionComponentIds = []) {
|
337
|
-
check(owner,
|
337
|
+
check(owner, oneOf(String, Symbol));
|
338
338
|
check(collectionComponentIds, [String]);
|
339
339
|
|
340
340
|
if (!validateActions(actions)) {
|
@@ -367,7 +367,7 @@ class CollectionManager {
|
|
367
367
|
* @param {string | symbol} owner
|
368
368
|
*/
|
369
369
|
removeActions(actions, owner) {
|
370
|
-
check(owner,
|
370
|
+
check(owner, oneOf(String, Symbol));
|
371
371
|
|
372
372
|
const idx = this._itemActions.findIndex((a) => a.actions === actions);
|
373
373
|
if (idx > -1) {
|
@@ -386,7 +386,7 @@ class CollectionManager {
|
|
386
386
|
* @param {string | symbol} owner
|
387
387
|
*/
|
388
388
|
removeOwner(owner) {
|
389
|
-
check(owner,
|
389
|
+
check(owner, oneOf(String, Symbol));
|
390
390
|
|
391
391
|
[...this._collectionComponents.values()].forEach((collectionComponent) => {
|
392
392
|
if (collectionComponent.owner === owner) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { nextTick, reactive, watch } from 'vue';
|
2
|
-
import { check,
|
2
|
+
import { check, maybe, oneOf } from '@vcsuite/check';
|
3
3
|
import { WindowSlot } from '../window/windowManager.js';
|
4
4
|
import CollectionComponentClass from './collectionComponentClass.js';
|
5
5
|
import { createListEditAction } from '../../actions/listActions.js';
|
@@ -65,9 +65,9 @@ export function makeEditorCollectionComponentClass(
|
|
65
65
|
parentId = 'category-manager',
|
66
66
|
) {
|
67
67
|
check(collectionComponent, CollectionComponentClass);
|
68
|
-
check(editingOptions.editor,
|
69
|
-
|
70
|
-
|
68
|
+
check(editingOptions.editor, oneOf(Object, Function));
|
69
|
+
check(editingOptions.multiEditor, maybe(Object));
|
70
|
+
check(editingOptions.predicate, maybe(Function));
|
71
71
|
|
72
72
|
const editorCollectionComponent =
|
73
73
|
/** @type {EditorCollectionComponentClass} */ collectionComponent;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { CesiumMap, BaseOLMap, VcsEvent } from '@vcmap/core';
|
2
2
|
import { unByKey } from 'ol/Observable.js';
|
3
|
-
import { check } from '@vcsuite/check';
|
3
|
+
import { check, oneOf } from '@vcsuite/check';
|
4
4
|
import ContextMenuInteraction from './contextMenuInteraction.js';
|
5
5
|
import { vcsAppSymbol } from '../../pluginHelper.js';
|
6
6
|
import { validateAction } from '../../components/lists/VcsActionList.vue';
|
@@ -176,7 +176,7 @@ class ContextMenuManager {
|
|
176
176
|
*/
|
177
177
|
addEventHandler(handler, owner) {
|
178
178
|
check(handler, Function);
|
179
|
-
check(owner,
|
179
|
+
check(owner, oneOf(String, vcsAppSymbol));
|
180
180
|
|
181
181
|
this._ensureInteraction();
|
182
182
|
this._eventHandlers.push({ owner, handler });
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { check } from '@vcsuite/check';
|
1
|
+
import { check, ofEnum } from '@vcsuite/check';
|
2
2
|
import ButtonManager, { sortByWeight } from './buttonManager.js';
|
3
3
|
import { vcsAppSymbol } from '../pluginHelper.js';
|
4
4
|
|
@@ -89,7 +89,7 @@ class NavbarManager extends ButtonManager {
|
|
89
89
|
* @returns {import("./buttonManager.js").ButtonComponent}
|
90
90
|
*/
|
91
91
|
add(buttonComponentOptions, owner, location) {
|
92
|
-
check(location,
|
92
|
+
check(location, ofEnum(ButtonLocation));
|
93
93
|
const buttonComponent = super.add(buttonComponentOptions, owner);
|
94
94
|
buttonComponent[locationSymbol] = location;
|
95
95
|
return buttonComponent;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { reactive } from 'vue';
|
2
2
|
import { VcsEvent } from '@vcmap/core';
|
3
|
-
import { check } from '@vcsuite/check';
|
3
|
+
import { check, ofEnum, oneOf } from '@vcsuite/check';
|
4
4
|
import { v4 as uuidv4 } from 'uuid';
|
5
5
|
import { parseBoolean } from '@vcsuite/parsers';
|
6
6
|
import { vcsAppSymbol } from '../../pluginHelper.js';
|
@@ -279,8 +279,8 @@ class PanelManager {
|
|
279
279
|
* @returns {PanelComponent}
|
280
280
|
*/
|
281
281
|
add(panelComponentOptions, owner, location) {
|
282
|
-
check(owner,
|
283
|
-
check(location,
|
282
|
+
check(owner, oneOf(String, vcsAppSymbol));
|
283
|
+
check(location, ofEnum(PanelLocation));
|
284
284
|
|
285
285
|
const id = panelComponentOptions.id || uuidv4();
|
286
286
|
const { component, position: panelPosition } = panelComponentOptions;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { VcsEvent } from '@vcmap/core';
|
2
|
-
import { check,
|
2
|
+
import { check, maybe, ofEnum, oneOf, optional } from '@vcsuite/check';
|
3
3
|
import { v4 as uuidv4 } from 'uuid';
|
4
4
|
import { reactive, shallowReactive } from 'vue';
|
5
5
|
import { vcsAppSymbol } from '../../pluginHelper.js';
|
@@ -230,7 +230,7 @@ class ToolboxManager {
|
|
230
230
|
}
|
231
231
|
|
232
232
|
set toolboxName(name) {
|
233
|
-
check(name,
|
233
|
+
check(name, oneOf(String, defaultToolboxName));
|
234
234
|
|
235
235
|
if (this._toolboxName !== name) {
|
236
236
|
this._toolboxName = name;
|
@@ -285,9 +285,9 @@ class ToolboxManager {
|
|
285
285
|
* @returns {SingleToolboxComponent|SelectToolboxComponent|import("vue").ShallowReactive<GroupToolboxComponent>}
|
286
286
|
*/
|
287
287
|
add(toolboxComponentOptions, owner) {
|
288
|
-
|
289
|
-
check(toolboxComponentOptions.type,
|
290
|
-
check(owner,
|
288
|
+
check(toolboxComponentOptions.id, maybe(String));
|
289
|
+
check(toolboxComponentOptions.type, ofEnum(ToolboxType));
|
290
|
+
check(owner, oneOf(String, vcsAppSymbol));
|
291
291
|
|
292
292
|
if (toolboxComponentOptions.id && this.has(toolboxComponentOptions.id)) {
|
293
293
|
throw new Error(
|
@@ -335,13 +335,13 @@ class ToolboxManager {
|
|
335
335
|
...ActionPattern,
|
336
336
|
selected: Function,
|
337
337
|
currentIndex: Number,
|
338
|
-
disabled:
|
338
|
+
disabled: optional(Boolean),
|
339
339
|
tools: [
|
340
340
|
{
|
341
341
|
name: String,
|
342
|
-
title:
|
342
|
+
title: optional(String),
|
343
343
|
icon: String,
|
344
|
-
disabled:
|
344
|
+
disabled: optional(Boolean),
|
345
345
|
},
|
346
346
|
],
|
347
347
|
});
|
@@ -357,8 +357,8 @@ class ToolboxManager {
|
|
357
357
|
};
|
358
358
|
} else {
|
359
359
|
check(toolboxComponentOptions.icon, String);
|
360
|
-
|
361
|
-
|
360
|
+
check(toolboxComponentOptions.title, maybe(String));
|
361
|
+
check(toolboxComponentOptions.disabled, maybe(Boolean));
|
362
362
|
const {
|
363
363
|
icon,
|
364
364
|
title = undefined,
|