@vcmap/ui 5.0.0-rc.6 → 5.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -22
- package/build/build.js +0 -3
- package/build/buildHelpers.js +0 -1
- package/build/commonViteConfig.js +1 -1
- package/config/aerowest.config.json +2 -1
- package/config/base.config.json +7 -7
- package/config/dev.config.json +4 -4
- package/dist/assets/cesium/Workers/{AttributeCompression-27507afe.js → AttributeCompression-80665726.js} +1 -1
- package/dist/assets/cesium/Workers/{AxisAlignedBoundingBox-7565c1e8.js → AxisAlignedBoundingBox-a655a4bc.js} +1 -1
- package/dist/assets/cesium/Workers/{BoundingRectangle-9d707275.js → BoundingRectangle-c3b79029.js} +1 -1
- package/dist/assets/cesium/Workers/{BoxGeometry-fb31d3b5.js → BoxGeometry-f8f9c981.js} +1 -1
- package/dist/assets/cesium/Workers/{Color-56bb5728.js → Color-de06a177.js} +1 -1
- package/dist/assets/cesium/Workers/{CoplanarPolygonGeometryLibrary-72143c19.js → CoplanarPolygonGeometryLibrary-48cdc26d.js} +1 -1
- package/dist/assets/cesium/Workers/{CorridorGeometryLibrary-7bae1712.js → CorridorGeometryLibrary-ddc027d3.js} +1 -1
- package/dist/assets/cesium/Workers/{CylinderGeometry-331891fe.js → CylinderGeometry-82a8cbe6.js} +1 -1
- package/dist/assets/cesium/Workers/{EllipseGeometry-5e3f67b6.js → EllipseGeometry-32d55454.js} +1 -1
- package/dist/assets/cesium/Workers/{EllipseGeometryLibrary-dbc15162.js → EllipseGeometryLibrary-b2ae188a.js} +1 -1
- package/dist/assets/cesium/Workers/{EllipseOutlineGeometry-21191fce.js → EllipseOutlineGeometry-f05a5a27.js} +1 -1
- package/dist/assets/cesium/Workers/{EllipsoidGeodesic-cc3bace8.js → EllipsoidGeodesic-19e75e11.js} +1 -1
- package/dist/assets/cesium/Workers/{EllipsoidGeometry-8bfa24a9.js → EllipsoidGeometry-7c99fc81.js} +1 -1
- package/dist/assets/cesium/Workers/{EllipsoidOutlineGeometry-48d9c023.js → EllipsoidOutlineGeometry-21c243df.js} +1 -1
- package/dist/assets/cesium/Workers/{EllipsoidRhumbLine-125a8b72.js → EllipsoidRhumbLine-6145377b.js} +1 -1
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-a01286f6.js +1 -0
- package/dist/assets/cesium/Workers/{EncodedCartesian3-96fdc0ef.js → EncodedCartesian3-d9f5c4a4.js} +1 -1
- package/dist/assets/cesium/Workers/{FrustumGeometry-9ab86004.js → FrustumGeometry-17776af8.js} +1 -1
- package/dist/assets/cesium/Workers/GeometryAttribute-89a520b9.js +1 -0
- package/dist/assets/cesium/Workers/{GeometryInstance-13e4ff38.js → GeometryInstance-4fbf16ba.js} +1 -1
- package/dist/assets/cesium/Workers/{GeometryPipeline-e0eb4567.js → GeometryPipeline-309fad76.js} +1 -1
- package/dist/assets/cesium/Workers/IntersectionTests-58aa8f80.js +1 -0
- package/dist/assets/cesium/Workers/{Matrix2-37e55508.js → Matrix2-47e98d76.js} +0 -0
- package/dist/assets/cesium/Workers/{OrientedBoundingBox-e9c07538.js → OrientedBoundingBox-fcb5b750.js} +1 -1
- package/dist/assets/cesium/Workers/{Plane-6ee42cab.js → Plane-3f01019d.js} +1 -1
- package/dist/assets/cesium/Workers/{PolygonGeometryLibrary-b408c688.js → PolygonGeometryLibrary-0b29eb16.js} +1 -1
- package/dist/assets/cesium/Workers/{PolygonPipeline-7b8e4643.js → PolygonPipeline-a934c4dd.js} +1 -1
- package/dist/assets/cesium/Workers/{PolylinePipeline-6757400c.js → PolylinePipeline-8095c9bc.js} +1 -1
- package/dist/assets/cesium/Workers/{PolylineVolumeGeometryLibrary-eb972210.js → PolylineVolumeGeometryLibrary-67d12fff.js} +1 -1
- package/dist/assets/cesium/Workers/{PrimitivePipeline-f244975e.js → PrimitivePipeline-980e44c5.js} +1 -1
- package/dist/assets/cesium/Workers/{RectangleGeometryLibrary-1bd6152a.js → RectangleGeometryLibrary-621c6de8.js} +1 -1
- package/dist/assets/cesium/Workers/{TerrainEncoding-5a21a97f.js → TerrainEncoding-f96552d5.js} +1 -1
- package/dist/assets/cesium/Workers/{Transforms-eb5c1a84.js → Transforms-c8cb8f43.js} +3 -3
- package/dist/assets/cesium/Workers/{WallGeometryLibrary-a6b6a368.js → WallGeometryLibrary-c03d8479.js} +1 -1
- package/dist/assets/cesium/Workers/{WebMercatorProjection-2839e524.js → WebMercatorProjection-79b3214e.js} +1 -1
- package/dist/assets/cesium/Workers/combineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createBoxGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createCircleGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createSphereGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +1 -1
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +1 -1
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +1 -1
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +1 -1
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +1 -1
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +1 -1
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
- package/dist/assets/cesium/Workers/createWallGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +1 -1
- package/dist/assets/{cesium.fba8ca.js → cesium.4e40f4.js} +955 -968
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/core.edcf5e.js +4 -0
- package/dist/assets/core.js +1 -1
- package/dist/assets/{index.6a83278e.js → index.889d0f3a.js} +1 -1
- package/dist/assets/{ol.abea3a.js → ol.246fd4.js} +0 -0
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui.df4f6d.css +1 -0
- package/dist/assets/ui.df4f6d.js +43 -0
- package/dist/assets/ui.js +1 -1
- package/dist/assets/{vue-composition-api.7051d7.js → vue-composition-api.a520f3.js} +1 -1
- package/dist/assets/vue-composition-api.js +2 -2
- package/dist/assets/{vue.9fd7f6.js → vue.2cee44.js} +0 -0
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify.33dafc.css → vuetify.cc817b.css} +1 -1
- package/dist/assets/{vuetify.33dafc.js → vuetify.cc817b.js} +1 -1
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +1 -1
- package/index.js +96 -6
- package/package.json +3 -4
- package/plugins/@vcmap/pluginExample/index.js +5 -5
- package/plugins/@vcmap/pluginExample/pluginExampleComponent.vue +1 -1
- package/plugins/@vcmap/project-selector/ContextsListComponent.vue +1 -1
- package/plugins/@vcmap/project-selector/index.js +5 -5
- package/plugins/@vcmap/project-selector/package.json +1 -2
- package/plugins/@vcmap/theme-changer/index.js +6 -6
- package/plugins/buttonExamples/ButtonExamples.vue +1 -1
- package/plugins/buttonExamples/index.js +5 -4
- package/plugins/categoryTest/Categories.vue +1 -1
- package/plugins/categoryTest/Category.vue +1 -1
- package/plugins/categoryTest/index.js +5 -5
- package/plugins/example/index.js +33 -14
- package/plugins/test/allIconsComponent.vue +34 -0
- package/plugins/test/editor.vue +1 -1
- package/plugins/test/index.js +40 -17
- package/plugins/test/toolbox-data.js +106 -26
- package/plugins/test/windowManagerExample.vue +1 -2
- package/src/actions/actionHelper.js +41 -1
- package/src/actions/styleSelector.vue +1 -1
- package/src/application/Navbar.vue +47 -6
- package/src/application/VcsApp.vue +37 -29
- package/src/application/VcsMap.vue +1 -20
- package/src/assets/logo-mobile.svg +9 -0
- package/src/assets/logo.svg +23 -23
- package/src/components/buttons/VcsActionButtonList.vue +99 -0
- package/src/components/buttons/VcsButton.vue +201 -0
- package/src/components/form-inputs-controls/VcsCheckbox.vue +73 -0
- package/src/components/form-inputs-controls/VcsColorPicker.vue +81 -0
- package/src/components/form-inputs-controls/VcsFormSection.vue +46 -0
- package/src/components/form-inputs-controls/VcsLabel.vue +38 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +97 -0
- package/src/components/form-inputs-controls/VcsTextArea.vue +130 -0
- package/src/components/form-inputs-controls/VcsTextField.vue +129 -0
- package/src/components/form-output/VcsFormattedNumber.vue +103 -0
- package/src/components/lists/VcsActionList.vue +100 -0
- package/src/components/lists/VcsTreeview.vue +109 -0
- package/src/components/lists/VcsTreeviewLeaf.vue +105 -0
- package/src/components/lists/VcsTreeviewSearchbar.vue +156 -0
- package/src/components/notification/VcsBadge.vue +27 -0
- package/src/components/notification/VcsTooltip.vue +154 -0
- package/src/components/notification/validation.js +19 -0
- package/src/contentTree/LayerTree.vue +1 -1
- package/src/contentTree/contentTreeCollection.js +6 -2
- package/src/icons/+all.js +359 -0
- package/src/icons/2DAreaIcon.vue +21 -0
- package/src/icons/2DDistanceIcon.vue +18 -0
- package/src/icons/3DAreaIcon.vue +21 -0
- package/src/icons/3DDistanceIcon.vue +18 -0
- package/src/icons/3DHeightIcon.vue +18 -0
- package/src/icons/AngleIcon.vue +8 -0
- package/src/icons/AssociationsIcon.vue +34 -0
- package/src/icons/AxisIcon.vue +10 -0
- package/src/icons/BoundingBoxIcon.vue +15 -0
- package/src/icons/CheckboxCheckedIcon.vue +16 -0
- package/src/icons/CheckboxIcon.vue +23 -0
- package/src/icons/CheckboxIndeterminateIcon.vue +24 -0
- package/src/icons/CircleIcon.vue +10 -0
- package/src/icons/ColorSwatchIcon.vue +17 -0
- package/src/icons/CommentIcon.vue +19 -0
- package/src/icons/CompassIcon.vue +8 -0
- package/src/icons/ComponentsIcon.vue +7 -0
- package/src/icons/ConeIcon.vue +11 -0
- package/src/icons/DimensionsHouseIcon.vue +14 -0
- package/src/icons/ElevationProfileIcon.vue +111 -0
- package/src/icons/ExportAreaIcon.vue +7 -0
- package/src/icons/ExportFlightIcon.vue +7 -0
- package/src/icons/ExportIcon.vue +8 -0
- package/src/icons/ExternalLinkIcon.vue +10 -0
- package/src/icons/EyeIcon.vue +7 -0
- package/src/icons/FastForwardIcon.vue +7 -0
- package/src/icons/FilterIcon.vue +8 -0
- package/src/icons/GlobeNatureIcon.vue +14 -0
- package/src/icons/HealthCareIndustriesIcon.vue +118 -0
- package/src/icons/HelpIcon.vue +7 -0
- package/src/icons/HomePointIcon.vue +8 -0
- package/src/icons/HospitalsIcon.vue +237 -0
- package/src/icons/HouseIcon.vue +25 -0
- package/src/icons/ImportIcon.vue +8 -0
- package/src/icons/InfoIcon.vue +10 -0
- package/src/icons/KebabIcon.vue +36 -0
- package/src/icons/LabelIcon.vue +7 -0
- package/src/icons/LayersIcon.vue +26 -0
- package/src/icons/LegendIcon.vue +65 -0
- package/src/icons/LineIcon.vue +7 -0
- package/src/icons/LinkIcon.vue +7 -0
- package/src/icons/MapIcon.vue +8 -0
- package/src/icons/MenuIcon.vue +34 -0
- package/src/icons/MinusIcon.vue +8 -0
- package/src/icons/ObjectAttributeIcon.vue +18 -0
- package/src/icons/ObjectSelectIcon.vue +8 -0
- package/src/icons/ObliqueViewIcon.vue +13 -0
- package/src/icons/PdfIcon.vue +10 -0
- package/src/icons/PedestrianIcon.vue +8 -0
- package/src/icons/PenIcon.vue +14 -0
- package/src/icons/PlayCircleIcon.vue +10 -0
- package/src/icons/PlusIcon.vue +9 -0
- package/src/icons/PoiIcon.vue +7 -0
- package/src/icons/PointSelectIcon.vue +7 -0
- package/src/icons/PolygonIcon.vue +38 -0
- package/src/icons/PresentationModeIcon.vue +7 -0
- package/src/icons/ProgressIcon.vue +24 -0
- package/src/icons/QueryIcon.vue +15 -0
- package/src/icons/RectangleIcon.vue +9 -0
- package/src/icons/ReturnIcon.vue +7 -0
- package/src/icons/RewindIcon.vue +6 -0
- package/src/icons/SearchIcon.vue +8 -0
- package/src/icons/ShadowIcon.vue +9 -0
- package/src/icons/ShapesIcon.vue +28 -0
- package/src/icons/ShareIcon.vue +22 -0
- package/src/icons/SimpleCircleFilledIcon.vue +15 -0
- package/src/icons/SimpleCircleHalfFilledIcon.vue +12 -0
- package/src/icons/SimpleCircleOutlinedIcon.vue +15 -0
- package/src/icons/SkipNextIcon.vue +7 -0
- package/src/icons/SkipPreviousIcon.vue +9 -0
- package/src/icons/SplitViewIcon.vue +19 -0
- package/src/icons/TextStyleIcon.vue +14 -0
- package/src/icons/ThreeDimensionsIcon.vue +7 -0
- package/src/icons/ToolsIcon.vue +35 -0
- package/src/icons/TouchIcon.vue +8 -0
- package/src/icons/TrashCanIcon.vue +7 -0
- package/src/icons/TriangleIcon.vue +15 -0
- package/src/icons/TwoDimensionsIcon.vue +8 -0
- package/src/icons/UploadIcon.vue +14 -0
- package/src/icons/VideoRecorderIcon.vue +14 -0
- package/src/icons/WalkingIcon.vue +7 -0
- package/src/icons/WallIcon.vue +14 -0
- package/src/manager/buttonManager.js +5 -52
- package/src/manager/navbarManager.js +81 -0
- package/src/manager/toolbox/ToolboxGroupComponent.vue +128 -0
- package/src/manager/toolbox/ToolboxManager.vue +119 -76
- package/src/manager/toolbox/toolboxManager.js +204 -0
- package/src/manager/window/WindowComponent.vue +27 -20
- package/src/manager/window/WindowComponentHeader.vue +13 -6
- package/src/manager/window/WindowManager.vue +18 -1
- package/src/manager/window/windowManager.js +3 -5
- package/src/navigation/mapNavigation.vue +34 -5
- package/src/navigation/orientationToolsButton.vue +1 -1
- package/src/navigation/overviewMap.js +616 -0
- package/src/navigation/overviewMapClickedInteraction.js +38 -0
- package/src/navigation/tiltSlider.vue +1 -1
- package/src/styles/_theming.scss +10 -0
- package/src/styles/main.scss +3 -0
- package/src/styles/variables.scss +70 -0
- package/src/styles/vcsFont.scss +5 -0
- package/src/styles/vcsGrid.scss +4 -0
- package/src/vcsUiApp.js +18 -3
- package/src/vuePlugins/vuetify.js +1 -1
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-678e34e4.js +0 -1
- package/dist/assets/cesium/Workers/GeometryAttribute-3915ea0b.js +0 -1
- package/dist/assets/cesium/Workers/IntersectionTests-ac2459de.js +0 -1
- package/dist/assets/core.d5ed0f.js +0 -4
- package/dist/assets/ui.ad1ec9.css +0 -1
- package/dist/assets/ui.ad1ec9.js +0 -39
- package/dist/assets/uicomponents.161461.css +0 -1
- package/dist/assets/uicomponents.161461.js +0 -31
- package/dist/assets/uicomponents.js +0 -1
- package/lib/uicomponents.js +0 -1
- package/src/manager/toolbox/ToolboxMultiSelectButton.vue +0 -96
- package/src/manager/toolbox/ToolboxSingleSelectButton.vue +0 -98
- package/src/manager/toolbox/toolbox-manager.js +0 -203
@@ -0,0 +1,156 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="pa-2 accent position-relative d-flex flex-row justify-space-between align-center">
|
3
|
+
<slot name="prepend">
|
4
|
+
<v-icon
|
5
|
+
class="search-icon my-0 ml-1"
|
6
|
+
v-text="'$vcsSearch'"
|
7
|
+
slot="prepend"
|
8
|
+
size="12"
|
9
|
+
/>
|
10
|
+
</slot>
|
11
|
+
|
12
|
+
<slot>
|
13
|
+
<v-text-field
|
14
|
+
solo
|
15
|
+
dense
|
16
|
+
hide-details
|
17
|
+
class="searchbar outlined rounded-xl align-center d-flex justify-center white pa-1 pl-6"
|
18
|
+
:placeholder="(placeholder || 'search.title') | translate"
|
19
|
+
:value="value"
|
20
|
+
@input="$event => handleInput($event)"
|
21
|
+
clearable
|
22
|
+
/>
|
23
|
+
</slot>
|
24
|
+
|
25
|
+
<slot name="append">
|
26
|
+
<v-icon v-if="hasFilter" v-text="'$vcsFilter'" class="ml-2" size="16" />
|
27
|
+
</slot>
|
28
|
+
</div>
|
29
|
+
</template>
|
30
|
+
|
31
|
+
<style lang="scss" scoped>
|
32
|
+
.input-container {
|
33
|
+
position: relative;
|
34
|
+
}
|
35
|
+
|
36
|
+
.search-icon {
|
37
|
+
position: absolute;
|
38
|
+
top: 50%;
|
39
|
+
transform: translateY(-50%);
|
40
|
+
left: 12px;
|
41
|
+
}
|
42
|
+
|
43
|
+
input {
|
44
|
+
border-radius: 9999rem;
|
45
|
+
outline-style: none;
|
46
|
+
font-size: 12px;
|
47
|
+
box-shadow: 0 0 0 1px #dedede;
|
48
|
+
|
49
|
+
&:focus {
|
50
|
+
box-shadow: 0 0 0 1px var(--v-primary-base);
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
::v-deep {
|
55
|
+
.v-input__slot {
|
56
|
+
background-color: transparent !important;
|
57
|
+
}
|
58
|
+
|
59
|
+
.v-input__append-inner {
|
60
|
+
height: 20px;
|
61
|
+
display: flex;
|
62
|
+
justify-content: center;
|
63
|
+
align-items: center;
|
64
|
+
|
65
|
+
.v-icon {
|
66
|
+
width: 20px;
|
67
|
+
height: 20px;
|
68
|
+
font-size: 16px;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
.v-text-field.v-text-field--solo.v-input--dense > .v-input__control {
|
73
|
+
min-height: unset;
|
74
|
+
}
|
75
|
+
|
76
|
+
.v-text-field.v-text-field--enclosed:not(.v-text-field--rounded) > .v-input__control > .v-input__slot,
|
77
|
+
.v-text-field.v-text-field--enclosed .v-text-field__details {
|
78
|
+
padding-right: 0;
|
79
|
+
}
|
80
|
+
|
81
|
+
.v-input.outlined {
|
82
|
+
outline-style: none;
|
83
|
+
font-size: 12px;
|
84
|
+
box-shadow: 0 0 0 1px #dedede;
|
85
|
+
|
86
|
+
&:focus,
|
87
|
+
&.v-input--is-focused {
|
88
|
+
box-shadow: 0 0 0 1px var(--v-primary-base);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
.v-text-field.v-input--dense:not(.v-text-field--outlined) .v-text-field__prefix,
|
93
|
+
.v-text-field.v-input--dense:not(.v-text-field--outlined) .v-text-field__suffix,
|
94
|
+
.v-text-field.v-input--dense:not(.v-text-field--outlined) input {
|
95
|
+
padding: 0;
|
96
|
+
}
|
97
|
+
|
98
|
+
.v-text-field.v-text-field--solo:not(.v-text-field--solo-flat) > .v-input__control > .v-input__slot {
|
99
|
+
box-shadow: none;
|
100
|
+
border-radius: 0;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
</style>
|
104
|
+
|
105
|
+
|
106
|
+
<script>
|
107
|
+
import { onMounted, onUnmounted } from '@vue/composition-api';
|
108
|
+
|
109
|
+
import { Subject } from 'rxjs';
|
110
|
+
import { debounceTime } from 'rxjs/operators';
|
111
|
+
|
112
|
+
|
113
|
+
/**
|
114
|
+
* @description Stylized wrapper around vuetify divider
|
115
|
+
* @vue-prop {number} height - Height of the component.
|
116
|
+
*/
|
117
|
+
export default {
|
118
|
+
name: 'VcsTreeviewSearchbar',
|
119
|
+
props: {
|
120
|
+
placeholder: {
|
121
|
+
type: String,
|
122
|
+
default: '',
|
123
|
+
},
|
124
|
+
customClasses: {
|
125
|
+
type: Array,
|
126
|
+
default: () => ([]),
|
127
|
+
},
|
128
|
+
value: {
|
129
|
+
type: String,
|
130
|
+
default: '',
|
131
|
+
},
|
132
|
+
hasFilter: {
|
133
|
+
type: Boolean,
|
134
|
+
default: false,
|
135
|
+
},
|
136
|
+
},
|
137
|
+
setup(props, context) {
|
138
|
+
const sub = new Subject();
|
139
|
+
onMounted(() => {
|
140
|
+
sub.pipe(debounceTime(330)).subscribe(
|
141
|
+
(value) => {
|
142
|
+
context.emit('input', value);
|
143
|
+
},
|
144
|
+
);
|
145
|
+
});
|
146
|
+
onUnmounted(() => sub.unsubscribe());
|
147
|
+
|
148
|
+
return {
|
149
|
+
sub,
|
150
|
+
handleInput: (val) => {
|
151
|
+
sub.next(val);
|
152
|
+
},
|
153
|
+
};
|
154
|
+
},
|
155
|
+
};
|
156
|
+
</script>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<template>
|
2
|
+
<span class="badge rounded-circle h-3 w-3" :class="[color]" />
|
3
|
+
</template>
|
4
|
+
|
5
|
+
<style lang="scss" scoped>
|
6
|
+
.v-application .badge {
|
7
|
+
border: 1px solid var(--v-basic-base) !important;
|
8
|
+
}
|
9
|
+
</style>
|
10
|
+
|
11
|
+
|
12
|
+
<script>
|
13
|
+
|
14
|
+
/**
|
15
|
+
* @description UI component representing a circular indicator.
|
16
|
+
* @vue-prop {string} color - any of the theme colors.
|
17
|
+
*/
|
18
|
+
export default {
|
19
|
+
name: 'VcsBadge',
|
20
|
+
props: {
|
21
|
+
color: {
|
22
|
+
type: String,
|
23
|
+
default: 'warning',
|
24
|
+
},
|
25
|
+
},
|
26
|
+
};
|
27
|
+
</script>
|
@@ -0,0 +1,154 @@
|
|
1
|
+
<template>
|
2
|
+
<v-tooltip
|
3
|
+
:disabled="!tooltip"
|
4
|
+
:content-class="`tooltip ${arrowClass}`"
|
5
|
+
:bottom="tooltipPosition === 'bottom'"
|
6
|
+
:top="tooltipPosition === 'top'"
|
7
|
+
:left="tooltipPosition === 'left'"
|
8
|
+
:right="tooltipPosition === 'right'"
|
9
|
+
:open-delay="$attrs.openDelay || 200"
|
10
|
+
v-bind="{...$props, ...$attrs}"
|
11
|
+
>
|
12
|
+
<template #activator="{ on, attrs }">
|
13
|
+
<slot name="activator" :on="on" :attrs="attrs" />
|
14
|
+
</template>
|
15
|
+
<span>{{ tooltip }}</span>
|
16
|
+
</v-tooltip>
|
17
|
+
</template>
|
18
|
+
<style lang="scss" scoped>
|
19
|
+
//.v-tooltip__content.tooltip {
|
20
|
+
// border: 1px solid black;
|
21
|
+
// border-radius: 0;
|
22
|
+
// background-color: #222222;
|
23
|
+
//
|
24
|
+
//&.arrow-top {
|
25
|
+
// transform: translateY(-6px);
|
26
|
+
//
|
27
|
+
//&::after, &::before {
|
28
|
+
// bottom: 100%;
|
29
|
+
// left: 50%;
|
30
|
+
// border: solid transparent;
|
31
|
+
// content: "";
|
32
|
+
// height: 0;
|
33
|
+
// width: 0;
|
34
|
+
// position: absolute;
|
35
|
+
// pointer-events: none;
|
36
|
+
// }
|
37
|
+
//
|
38
|
+
//&::before {
|
39
|
+
// border-color: rgba(194, 225, 245, 0);
|
40
|
+
// border-bottom-color: black;
|
41
|
+
// border-width: 5px;
|
42
|
+
// margin-left: -5px;
|
43
|
+
// }
|
44
|
+
//}
|
45
|
+
//
|
46
|
+
//&.arrow-bottom {
|
47
|
+
// transform: translateY(6px);
|
48
|
+
//
|
49
|
+
//&::after, &::before {
|
50
|
+
// top: 100%;
|
51
|
+
// left: 50%;
|
52
|
+
// border: solid transparent;
|
53
|
+
// content: "";
|
54
|
+
// height: 0;
|
55
|
+
// width: 0;
|
56
|
+
// position: absolute;
|
57
|
+
// pointer-events: none;
|
58
|
+
// }
|
59
|
+
//
|
60
|
+
//&::before {
|
61
|
+
// border-color: rgba(194, 225, 245, 0);
|
62
|
+
// border-top-color: black;
|
63
|
+
// border-width: 5px;
|
64
|
+
// margin-left: -5px;
|
65
|
+
// }
|
66
|
+
//}
|
67
|
+
//
|
68
|
+
//&.arrow-right {
|
69
|
+
//&::after, &::before {
|
70
|
+
// top: 50%;
|
71
|
+
// right: -11px;
|
72
|
+
// transform: translateY(-50%);
|
73
|
+
// border: solid transparent;
|
74
|
+
// content: "";
|
75
|
+
// height: 0;
|
76
|
+
// width: 0;
|
77
|
+
// position: absolute;
|
78
|
+
// pointer-events: none;
|
79
|
+
// }
|
80
|
+
//
|
81
|
+
//&::before {
|
82
|
+
// border-color: rgba(255, 0, 0, 0);
|
83
|
+
// border-left-color: black;
|
84
|
+
// border-width: 5px;
|
85
|
+
// margin-left: -5px;
|
86
|
+
// }
|
87
|
+
//}
|
88
|
+
//
|
89
|
+
//&.arrow-left {
|
90
|
+
//
|
91
|
+
//&::after, &::before {
|
92
|
+
// top: 50%;
|
93
|
+
// left: -11px;
|
94
|
+
// transform: translateY(-50%);
|
95
|
+
// border: solid transparent;
|
96
|
+
// content: "";
|
97
|
+
// height: 0;
|
98
|
+
// width: 0;
|
99
|
+
// position: absolute;
|
100
|
+
// pointer-events: none;
|
101
|
+
// }
|
102
|
+
//
|
103
|
+
//&::before {
|
104
|
+
// border-color: rgba(194, 225, 245, 0);
|
105
|
+
// border-right-color: black;
|
106
|
+
// border-width: 5px;
|
107
|
+
// }
|
108
|
+
//}
|
109
|
+
//}
|
110
|
+
</style>
|
111
|
+
<script>
|
112
|
+
|
113
|
+
/**
|
114
|
+
* @enum {string} TooltipPositions
|
115
|
+
* @property {string} bottom
|
116
|
+
* @property {string} left
|
117
|
+
* @property {string} top
|
118
|
+
* @property {string} right
|
119
|
+
* @readonly
|
120
|
+
* @module VcsTooltip
|
121
|
+
*/
|
122
|
+
const TooltipPositions = {
|
123
|
+
bottom: 'arrow-top',
|
124
|
+
top: 'arrow-bottom',
|
125
|
+
left: 'arrow-right',
|
126
|
+
right: 'arrow-left',
|
127
|
+
};
|
128
|
+
|
129
|
+
/**
|
130
|
+
* @description tooltip extending {@link https://vuetifyjs.com/en/api/v-tooltip/|vuetify v-tooltip}.
|
131
|
+
* @vue-prop {string} tooltip - Text content of a tooltip which appears on hover with default delay.
|
132
|
+
* @vue-prop {string} [tooltipPosition='bottom'] - Position of the tooltip (allowed values: 'bottom'|'left'|'top'|'right').
|
133
|
+
* @vue-computed {string} arrowClass - direction of tooltip arrow
|
134
|
+
*/
|
135
|
+
export default {
|
136
|
+
name: 'VcsTooltip',
|
137
|
+
props: {
|
138
|
+
tooltip: {
|
139
|
+
type: String,
|
140
|
+
default: undefined,
|
141
|
+
},
|
142
|
+
tooltipPosition: {
|
143
|
+
type: String,
|
144
|
+
default: 'bottom',
|
145
|
+
validator(value) { return Object.keys(TooltipPositions).includes(value); },
|
146
|
+
},
|
147
|
+
},
|
148
|
+
computed: {
|
149
|
+
arrowClass() {
|
150
|
+
return TooltipPositions[this.tooltipPosition];
|
151
|
+
},
|
152
|
+
},
|
153
|
+
};
|
154
|
+
</script>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* validates rules and returns error messages
|
3
|
+
* @param {Array} rules - validation functions or string messages
|
4
|
+
* @param {*} value
|
5
|
+
* @returns {string[]}
|
6
|
+
*/
|
7
|
+
export default function validate(rules, value) {
|
8
|
+
if (Array.isArray(rules)) {
|
9
|
+
return rules
|
10
|
+
.map((rule) => {
|
11
|
+
if (typeof rule === 'function') {
|
12
|
+
return rule(value);
|
13
|
+
}
|
14
|
+
return rule;
|
15
|
+
})
|
16
|
+
.filter(val => val !== true);
|
17
|
+
}
|
18
|
+
return [];
|
19
|
+
}
|
@@ -8,7 +8,7 @@ import SubContentTreeItem, { subTreeSymbol } from './subContentTreeItem.js';
|
|
8
8
|
import LayerTree from './LayerTree.vue';
|
9
9
|
import { WindowSlot } from '../manager/window/windowManager.js';
|
10
10
|
import { createToggleAction } from '../actions/actionHelper.js';
|
11
|
-
import { ButtonLocation } from '../manager/
|
11
|
+
import { ButtonLocation } from '../manager/navbarManager.js';
|
12
12
|
|
13
13
|
/**
|
14
14
|
* @type {symbol}
|
@@ -127,7 +127,11 @@ class ContentTreeCollection extends IndexedCollection {
|
|
127
127
|
vcsAppSymbol,
|
128
128
|
);
|
129
129
|
|
130
|
-
this._app.navbarManager.add(
|
130
|
+
this._app.navbarManager.add(
|
131
|
+
{ id, action },
|
132
|
+
vcsAppSymbol,
|
133
|
+
ButtonLocation.CONTENT,
|
134
|
+
);
|
131
135
|
this._subTreeViewItems.value.set(id, subTreeViewItem);
|
132
136
|
return () => {
|
133
137
|
app.windowManager.remove(id);
|