@geode/opengeodeweb-front 11.2.2-rc.1 → 12.0.0-rc.2
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/shared/utils/response_handlers/load.js +5 -2
- package/.build/tests/browser/helpers/object_trees/main_object_tree.js +3 -3
- package/.build/tests/browser/helpers/object_trees/model_components_object_tree.js +2 -2
- package/.build/tests/browser/suites/model/surfaces.js +1 -1
- package/app/app.config.ts +28 -0
- package/app/assets/css/main.css +11 -0
- package/app/assets/geode_objects.ts +37 -108
- package/app/assets/img/geode_objects/HorizonStack3D.svg +10 -0
- package/app/components/ActionButton.vue +9 -2
- package/app/components/CameraManager/List.vue +6 -6
- package/app/components/CameraManager.vue +0 -1
- package/app/components/CameraOrientation.vue +12 -7
- package/app/components/ChromeTheme.vue +20 -0
- package/app/components/ClippingPlaneCard.vue +2 -3
- package/app/components/ClippingPlanes.vue +2 -2
- package/app/components/CrsSelector.vue +8 -8
- package/app/components/DeleteDialog.vue +12 -16
- package/app/components/DragAndDropInternal/DragAndDropInline.vue +7 -7
- package/app/components/DragAndDropInternal/DragAndDropOverlay.vue +87 -82
- package/app/components/ExtensionSelector.vue +21 -14
- package/app/components/FactorFilterPanel.vue +0 -1
- package/app/components/FeedBack/ErrorBanner.vue +8 -9
- package/app/components/FeedBack/Snackers.vue +5 -7
- package/app/components/FileUploader.vue +13 -21
- package/app/components/GlassCard.vue +3 -1
- package/app/components/HybridRenderingView.vue +2 -0
- package/app/components/HybridViewerTooltip.vue +4 -4
- package/app/components/Launcher.vue +1 -1
- package/app/components/Loading/EcoMessages.vue +17 -11
- package/app/components/Loading/Footer.vue +2 -2
- package/app/components/Loading/Header.vue +9 -4
- package/app/components/Loading/Progress.vue +7 -3
- package/app/components/Loading.vue +54 -46
- package/app/components/MissingFilesSelector.vue +5 -5
- package/app/components/ObjectSelector.vue +8 -15
- package/app/components/PackagesVersions.vue +1 -3
- package/app/components/ProjectCrs.vue +1 -1
- package/app/components/Screenshot.vue +23 -15
- package/app/components/SearchBar.vue +1 -3
- package/app/components/SliceCard.vue +1 -2
- package/app/components/Step.vue +1 -1
- package/app/components/Stepper.vue +13 -11
- package/app/components/ThresholdCard.vue +1 -1
- package/app/components/ThresholdFilter.vue +2 -2
- package/app/components/TimeSeriesTargetSelector.vue +3 -6
- package/app/components/ToolPanel.vue +3 -9
- package/app/components/Viewer/Basemap/CropOptions.vue +1 -1
- package/app/components/Viewer/Basemap/OpacityOptions.vue +1 -1
- package/app/components/Viewer/ContextMenu/CenterButton.vue +9 -3
- package/app/components/Viewer/ContextMenu/ContextMenu.vue +1 -1
- package/app/components/Viewer/ContextMenu/ContextMenuItem.vue +17 -6
- package/app/components/Viewer/ContextMenu/InfoCard.vue +12 -13
- package/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue +12 -9
- package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +2 -2
- package/app/components/Viewer/Generic/Mesh/CellsColoring.vue +12 -9
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +1 -1
- package/app/components/Viewer/Generic/Mesh/EdgesColoring.vue +12 -9
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +3 -3
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +12 -8
- package/app/components/Viewer/Generic/Mesh/PolygonsColoring.vue +12 -9
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/Generic/Mesh/PolyhedraColoring.vue +12 -9
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +1 -1
- package/app/components/Viewer/Generic/Model/BlocksOptions.vue +16 -17
- package/app/components/Viewer/Generic/Model/ComponentEdgesOptions.vue +11 -6
- package/app/components/Viewer/Generic/Model/ComponentPointsOptions.vue +11 -6
- package/app/components/Viewer/Generic/Model/CornerComponentOptions.vue +7 -8
- package/app/components/Viewer/Generic/Model/CornersTypeOptions.vue +7 -8
- package/app/components/Viewer/Generic/Model/LineComponentOptions.vue +9 -10
- package/app/components/Viewer/Generic/Model/LinesTypeOptions.vue +9 -10
- package/app/components/Viewer/Generic/Model/ModelEdgesCard.vue +2 -2
- package/app/components/Viewer/Generic/Model/ModelPointsCard.vue +1 -1
- package/app/components/Viewer/Generic/Model/ModelStyleCard.vue +3 -4
- package/app/components/Viewer/Generic/Model/SurfacesOptions.vue +16 -17
- package/app/components/Viewer/ObjectTree/Base/CommonTreeView.vue +4 -4
- package/app/components/Viewer/ObjectTree/Base/ComponentRelations.vue +1 -1
- package/app/components/Viewer/ObjectTree/Base/Controls.vue +22 -18
- package/app/components/Viewer/ObjectTree/Base/ItemLabel.vue +11 -11
- package/app/components/Viewer/ObjectTree/Base/StickyHeader.vue +3 -3
- package/app/components/Viewer/ObjectTree/Base/TreeRow.vue +6 -9
- package/app/components/Viewer/ObjectTree/Box.vue +20 -21
- package/app/components/Viewer/ObjectTree/Layout.vue +28 -25
- package/app/components/Viewer/ObjectTree/Views/GlobalObjects.vue +4 -3
- package/app/components/Viewer/ObjectTree/Views/ModelTree.vue +1 -1
- package/app/components/Viewer/Options/AttributeRangeSelector.vue +1 -1
- package/app/components/Viewer/Options/AttributeSelector.vue +1 -1
- package/app/components/Viewer/Options/ColorMapList.vue +7 -9
- package/app/components/Viewer/Options/ColorMapPicker.vue +2 -2
- package/app/components/Viewer/Options/ColorPicker.vue +9 -9
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +9 -9
- package/app/components/Viewer/Options/NoDataColorInfo.vue +4 -4
- package/app/components/Viewer/Options/Sliders/Opacity.vue +1 -1
- package/app/components/Viewer/Options/Sliders/Slider.vue +1 -1
- package/app/components/Viewer/Options/TextureItem.vue +11 -8
- package/app/components/Viewer/Options/TexturesSelector.vue +3 -3
- package/app/components/Viewer/Options/VisibilitySwitch.vue +1 -1
- package/app/components/Viewer/OrientationCompass.vue +223 -0
- package/app/components/Viewer/OrientationGlobe.vue +376 -0
- package/app/components/Viewer/OrientationOverlay.vue +47 -0
- package/app/components/Viewer/OverlappingObjectsPicker.vue +10 -7
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +4 -5
- package/app/components/Viewer/Scene/BackgroundOptions.vue +3 -3
- package/app/components/Viewer/Scene/OrientationWidgetOptions.vue +1 -1
- package/app/components/Viewer/Scene/TextOptions.vue +3 -3
- package/app/components/Viewer/Solid/SpecificPolyhedraColoring.vue +12 -12
- package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +1 -1
- package/app/components/Viewer/Surface/PolygonsColoring.vue +12 -12
- package/app/components/Viewer/Surface/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/ToolActiveChip.vue +1 -1
- package/app/components/Viewer/Ui.vue +2 -2
- package/app/components/csv-preview/CsvPreviewer.vue +17 -24
- package/app/components/csv-preview/CsvSettings.vue +6 -6
- package/app/components/csv-preview/CsvTable.vue +11 -9
- package/app/composables/attribute_selector.ts +1 -1
- package/app/composables/batch_style.ts +3 -3
- package/app/composables/batch_style_model.ts +1 -1
- package/app/composables/chrome_theme.ts +23 -0
- package/app/composables/clipping_slices.ts +2 -1
- package/app/composables/hover_highlight.ts +10 -7
- package/app/composables/live_data_item.ts +1 -1
- package/app/composables/model_menu_context.ts +11 -4
- package/app/composables/orientation_overlay.ts +133 -0
- package/app/composables/project_manager_helpers/reset.ts +2 -0
- package/app/composables/project_manager_helpers/types.ts +2 -2
- package/app/composables/use_adaptive_styles.ts +42 -21
- package/app/composables/use_overlapping_picker.ts +10 -8
- package/app/composables/view_toolbar_options.ts +7 -7
- package/app/composables/view_toolbar_tool_options.ts +9 -11
- package/app/composables/viewer_context_menu.ts +4 -2
- package/app/composables/viewer_reset.ts +54 -0
- package/app/plugins/chrome_theme.ts +10 -0
- package/app/plugins/phosphor_icons.ts +13 -0
- package/app/plugins/scene_colors.ts +10 -0
- package/app/stores/basemap_helpers/builds.ts +2 -2
- package/app/stores/basemap_helpers/viewer.ts +1 -1
- package/app/stores/crs.ts +12 -12
- package/app/stores/data.ts +4 -5
- package/app/stores/data_helpers/mesh.ts +2 -1
- package/app/stores/data_style.ts +4 -3
- package/app/stores/hybrid_viewer.ts +5 -3
- package/app/stores/menu.ts +18 -12
- package/app/stores/treeview.ts +5 -4
- package/app/stores/viewer.ts +2 -0
- package/app/types/attribute.ts +5 -21
- package/app/types/identifiers.ts +5 -15
- package/app/utils/attribute_range.ts +1 -1
- package/app/utils/attributes.ts +2 -1
- package/app/utils/clipping_planes.ts +1 -1
- package/app/utils/color_picker.ts +3 -3
- package/app/utils/crs.ts +6 -6
- package/app/utils/default_styles/constants.ts +17 -22
- package/app/utils/default_styles/index.ts +24 -3
- package/app/utils/default_styles/mesh_components.ts +15 -11
- package/app/utils/default_styles/meshes.ts +1 -1
- package/app/utils/default_styles/model_components.ts +14 -10
- package/app/utils/default_styles/models.ts +1 -1
- package/app/utils/import_workflow.ts +3 -1
- package/app/utils/legacy_data_id.ts +2 -1
- package/app/utils/orientation_compass.ts +103 -0
- package/app/utils/orientation_gizmo.ts +73 -0
- package/app/utils/orientation_globe.ts +145 -0
- package/app/utils/orientation_strata.ts +119 -0
- package/app/utils/phosphor_icons.ts +105 -0
- package/app/utils/slice.ts +2 -1
- package/app/utils/threshold_sources.ts +1 -1
- package/internal/stores/data_style/attribute_types.ts +6 -6
- package/internal/stores/data_style/mesh/base_style.ts +6 -7
- package/internal/stores/data_style/mesh/cells/cell.ts +6 -6
- package/internal/stores/data_style/mesh/cells/cell_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/cells/cell_config.ts +5 -6
- package/internal/stores/data_style/mesh/cells/color.ts +6 -6
- package/internal/stores/data_style/mesh/cells/opacity.ts +3 -4
- package/internal/stores/data_style/mesh/cells/vertex.ts +6 -6
- package/internal/stores/data_style/mesh/cells/vertex_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/cells/vertex_config.ts +5 -6
- package/internal/stores/data_style/mesh/cells/visibility.ts +1 -1
- package/internal/stores/data_style/mesh/edges/color.ts +6 -6
- package/internal/stores/data_style/mesh/edges/edge.ts +6 -6
- package/internal/stores/data_style/mesh/edges/edge_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/edges/edge_config.ts +5 -6
- package/internal/stores/data_style/mesh/edges/opacity.ts +3 -4
- package/internal/stores/data_style/mesh/edges/vertex.ts +6 -6
- package/internal/stores/data_style/mesh/edges/vertex_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/edges/vertex_config.ts +5 -6
- package/internal/stores/data_style/mesh/edges/visibility.ts +1 -1
- package/internal/stores/data_style/mesh/edges/width.ts +6 -6
- package/internal/stores/data_style/mesh/index.ts +3 -4
- package/internal/stores/data_style/mesh/points/color.ts +6 -6
- package/internal/stores/data_style/mesh/points/common.ts +1 -1
- package/internal/stores/data_style/mesh/points/opacity.ts +3 -4
- package/internal/stores/data_style/mesh/points/size.ts +6 -6
- package/internal/stores/data_style/mesh/points/vertex.ts +6 -6
- package/internal/stores/data_style/mesh/points/vertex_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/points/vertex_config.ts +5 -6
- package/internal/stores/data_style/mesh/points/visibility.ts +1 -1
- package/internal/stores/data_style/mesh/polygons/color.ts +6 -6
- package/internal/stores/data_style/mesh/polygons/opacity.ts +3 -4
- package/internal/stores/data_style/mesh/polygons/polygon.ts +6 -6
- package/internal/stores/data_style/mesh/polygons/polygon_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/polygons/polygon_config.ts +5 -6
- package/internal/stores/data_style/mesh/polygons/vertex.ts +6 -6
- package/internal/stores/data_style/mesh/polygons/vertex_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/polygons/vertex_config.ts +5 -6
- package/internal/stores/data_style/mesh/polygons/visibility.ts +1 -1
- package/internal/stores/data_style/mesh/polyhedra/color.ts +6 -6
- package/internal/stores/data_style/mesh/polyhedra/opacity.ts +3 -4
- package/internal/stores/data_style/mesh/polyhedra/polyhedron.ts +6 -6
- package/internal/stores/data_style/mesh/polyhedra/polyhedron_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/polyhedra/polyhedron_config.ts +5 -6
- package/internal/stores/data_style/mesh/polyhedra/vertex.ts +6 -6
- package/internal/stores/data_style/mesh/polyhedra/vertex_attribute.ts +8 -6
- package/internal/stores/data_style/mesh/polyhedra/vertex_config.ts +5 -6
- package/internal/stores/data_style/mesh/polyhedra/visibility.ts +1 -1
- package/internal/stores/data_style/model/blocks/color.ts +6 -6
- package/internal/stores/data_style/model/blocks/coloring_groups.ts +2 -2
- package/internal/stores/data_style/model/blocks/polyhedron.ts +12 -9
- package/internal/stores/data_style/model/blocks/vertex.ts +12 -9
- package/internal/stores/data_style/model/blocks/visibility.ts +1 -1
- package/internal/stores/data_style/model/color.ts +10 -11
- package/internal/stores/data_style/model/common.ts +3 -4
- package/internal/stores/data_style/model/corners/color.ts +6 -6
- package/internal/stores/data_style/model/corners/index.ts +2 -2
- package/internal/stores/data_style/model/corners/vertex.ts +12 -9
- package/internal/stores/data_style/model/corners/visibility.ts +1 -1
- package/internal/stores/data_style/model/edges/component.ts +13 -13
- package/internal/stores/data_style/model/edges/visibility.ts +1 -1
- package/internal/stores/data_style/model/edges/width.ts +6 -6
- package/internal/stores/data_style/model/lines/color.ts +6 -6
- package/internal/stores/data_style/model/lines/coloring_groups.ts +2 -2
- package/internal/stores/data_style/model/lines/edge.ts +12 -9
- package/internal/stores/data_style/model/lines/vertex.ts +12 -9
- package/internal/stores/data_style/model/lines/visibility.ts +1 -1
- package/internal/stores/data_style/model/points/component.ts +17 -13
- package/internal/stores/data_style/model/points/index.ts +2 -2
- package/internal/stores/data_style/model/points/size.ts +6 -6
- package/internal/stores/data_style/model/points/visibility.ts +1 -1
- package/internal/stores/data_style/model/surfaces/color.ts +6 -6
- package/internal/stores/data_style/model/surfaces/coloring_groups.ts +2 -2
- package/internal/stores/data_style/model/surfaces/polygon.ts +12 -9
- package/internal/stores/data_style/model/surfaces/vertex.ts +12 -9
- package/internal/stores/data_style/model/surfaces/visibility.ts +1 -1
- package/internal/stores/data_style/model/visibility.ts +1 -1
- package/internal/stores/data_style/scene.ts +31 -19
- package/internal/stores/data_style/time_step.ts +3 -2
- package/internal/stores/data_style/types.ts +3 -4
- package/internal/stores/hybrid_viewer/brightness.ts +14 -7
- package/internal/stores/hybrid_viewer/camera.ts +1 -1
- package/internal/stores/hybrid_viewer/constants.ts +1 -12
- package/internal/stores/hybrid_viewer/filters.ts +2 -2
- package/internal/stores/hybrid_viewer/highlight.ts +2 -1
- package/internal/stores/hybrid_viewer/scene.ts +11 -4
- package/nuxt.config.ts +9 -1
- package/package.json +4 -2
- package/shared/utils/response_handlers/load.ts +19 -11
- package/tests/browser/helpers/object_trees/main_object_tree.ts +3 -3
- package/tests/browser/helpers/object_trees/model_components_object_tree.ts +2 -2
- package/tests/browser/suites/model/surfaces.ts +1 -1
- package/tests/unit/helpers/phosphor_glyphs.ts +46 -0
- package/app/assets/viewer_svgs/camera-bookmark.svg +0 -64
- package/app/types/style.ts +0 -13
|
@@ -40,19 +40,18 @@ watch(
|
|
|
40
40
|
</script>
|
|
41
41
|
|
|
42
42
|
<template>
|
|
43
|
-
<v-row dense align="center" class="pa-1 py-0">
|
|
43
|
+
<v-row dense align="center" class="controls-row pa-1 py-0">
|
|
44
44
|
<v-col cols="12">
|
|
45
45
|
<div
|
|
46
|
-
class="controls-capsule d-flex align-center rounded-pill
|
|
46
|
+
class="controls-capsule d-flex align-center rounded-pill overflow-hidden"
|
|
47
47
|
:class="{ 'is-expanded': showSearch }"
|
|
48
48
|
>
|
|
49
49
|
<ActionButton
|
|
50
50
|
data-testid="searchObjectsButton"
|
|
51
51
|
:tooltip="showSearch ? 'Hide search' : 'Show search'"
|
|
52
|
-
icon="
|
|
52
|
+
icon="ph-magnifying-glass"
|
|
53
53
|
tooltipLocation="bottom"
|
|
54
54
|
variant="text"
|
|
55
|
-
color="black"
|
|
56
55
|
@click="showSearch = !showSearch"
|
|
57
56
|
/>
|
|
58
57
|
|
|
@@ -62,8 +61,6 @@ watch(
|
|
|
62
61
|
data-testid="searchObjectsInput"
|
|
63
62
|
:model-value="search"
|
|
64
63
|
placeholder="Search objects..."
|
|
65
|
-
color="black"
|
|
66
|
-
base-color="black"
|
|
67
64
|
variant="plain"
|
|
68
65
|
density="compact"
|
|
69
66
|
prepend-inner-icon=""
|
|
@@ -86,11 +83,8 @@ watch(
|
|
|
86
83
|
<ActionButton
|
|
87
84
|
data-testid="sortObjectsButton"
|
|
88
85
|
:tooltip="'Sort by ' + (sortType === 'name' ? 'ID' : 'Name')"
|
|
89
|
-
:icon="
|
|
90
|
-
sortType === 'name' ? 'mdi-sort-alphabetical-ascending' : 'mdi-sort-numeric-ascending'
|
|
91
|
-
"
|
|
86
|
+
:icon="sortType === 'name' ? 'ph-sort-ascending' : 'ph-list-numbers'"
|
|
92
87
|
variant="text"
|
|
93
|
-
color="black"
|
|
94
88
|
tooltipLocation="bottom"
|
|
95
89
|
@click="emit('toggle-sort')"
|
|
96
90
|
/>
|
|
@@ -99,9 +93,8 @@ watch(
|
|
|
99
93
|
<ActionButton
|
|
100
94
|
data-testid="filterObjectsButton"
|
|
101
95
|
tooltip="Filter options"
|
|
102
|
-
icon="
|
|
96
|
+
icon="ph-funnel-simple"
|
|
103
97
|
variant="text"
|
|
104
|
-
color="black"
|
|
105
98
|
tooltipLocation="bottom"
|
|
106
99
|
v-bind="menuProps"
|
|
107
100
|
/>
|
|
@@ -121,9 +114,8 @@ watch(
|
|
|
121
114
|
<ActionButton
|
|
122
115
|
data-testid="CollapseOrExpandAll"
|
|
123
116
|
:tooltip="isCollapsed ? 'Expand All' : 'Collapse All'"
|
|
124
|
-
:icon="isCollapsed ? '
|
|
117
|
+
:icon="isCollapsed ? 'ph-arrows-out-line-vertical' : 'ph-arrows-in-line-vertical'"
|
|
125
118
|
variant="text"
|
|
126
|
-
color="black"
|
|
127
119
|
tooltipLocation="bottom"
|
|
128
120
|
@click="isCollapsed ? emit('expand-all') : emit('collapse-all')"
|
|
129
121
|
/>
|
|
@@ -134,8 +126,14 @@ watch(
|
|
|
134
126
|
</template>
|
|
135
127
|
|
|
136
128
|
<style scoped>
|
|
129
|
+
/* Apps can line the first icon up with the panel header icon (fallbacks: the former look) */
|
|
130
|
+
.controls-row {
|
|
131
|
+
padding-left: var(--ogw-viewer-controls-inset, 4px) !important;
|
|
132
|
+
}
|
|
133
|
+
|
|
137
134
|
.controls-capsule {
|
|
138
135
|
height: 32px;
|
|
136
|
+
padding-inline: var(--ogw-viewer-controls-padding, 4px);
|
|
139
137
|
border: 1px solid transparent;
|
|
140
138
|
transition: all 0.3s ease;
|
|
141
139
|
width: fit-content;
|
|
@@ -143,13 +141,13 @@ watch(
|
|
|
143
141
|
|
|
144
142
|
.controls-capsule.is-expanded {
|
|
145
143
|
width: 100%;
|
|
146
|
-
background-color: rgba(
|
|
147
|
-
border: 1px solid rgba(
|
|
144
|
+
background-color: rgba(var(--v-theme-on-surface), 0.05);
|
|
145
|
+
border: 1px solid rgba(var(--v-theme-on-surface), 0.08);
|
|
148
146
|
}
|
|
149
147
|
|
|
150
148
|
.controls-capsule:hover:not(.is-expanded) {
|
|
151
|
-
background-color: rgba(
|
|
152
|
-
border: 1px solid rgba(
|
|
149
|
+
background-color: rgba(var(--v-theme-on-surface), 0.05);
|
|
150
|
+
border: 1px solid rgba(var(--v-theme-on-surface), 0.08);
|
|
153
151
|
}
|
|
154
152
|
|
|
155
153
|
:deep(.v-field__input) {
|
|
@@ -160,6 +158,12 @@ watch(
|
|
|
160
158
|
align-items: center;
|
|
161
159
|
}
|
|
162
160
|
|
|
161
|
+
.controls-capsule :deep(.v-btn .v-icon) {
|
|
162
|
+
font-size: var(--ogw-viewer-controls-icon-size, 28px) !important;
|
|
163
|
+
width: var(--ogw-viewer-controls-icon-size, 28px) !important;
|
|
164
|
+
height: var(--ogw-viewer-controls-icon-size, 28px) !important;
|
|
165
|
+
}
|
|
166
|
+
|
|
163
167
|
:deep(.v-field__field) {
|
|
164
168
|
height: 32px !important;
|
|
165
169
|
}
|
|
@@ -139,37 +139,37 @@ async function copyToClipboard(text: string, label: string): Promise<void> {
|
|
|
139
139
|
|
|
140
140
|
<div class="d-flex flex-column ga-1">
|
|
141
141
|
<span v-if="actualItem.geode_id" class="text-caption d-flex align-center">
|
|
142
|
-
<strong class="
|
|
142
|
+
<strong class="mr-1">ID:</strong>
|
|
143
143
|
<span data-testid="tooltipIdValue">{{ actualItem.geode_id }}</span>
|
|
144
144
|
<v-btn
|
|
145
145
|
data-testid="copyIdBtn"
|
|
146
146
|
icon
|
|
147
147
|
variant="text"
|
|
148
148
|
density="compact"
|
|
149
|
-
class="ml-1
|
|
149
|
+
class="ml-1"
|
|
150
150
|
style="width: 18px; height: 18px; min-width: 18px; min-height: 18px"
|
|
151
151
|
@click.stop="copyToClipboard(actualItem.geode_id, 'ID')"
|
|
152
152
|
>
|
|
153
|
-
<v-icon size="12">
|
|
153
|
+
<v-icon size="12">ph-copy</v-icon>
|
|
154
154
|
</v-btn>
|
|
155
155
|
</span>
|
|
156
156
|
<span v-if="actualItem.title" class="text-caption d-flex align-center">
|
|
157
|
-
<strong class="
|
|
157
|
+
<strong class="mr-1">Name:</strong>
|
|
158
158
|
<span>{{ tooltipTitle }}</span>
|
|
159
159
|
<v-btn
|
|
160
160
|
data-testid="copyNameBtn"
|
|
161
161
|
icon
|
|
162
162
|
variant="text"
|
|
163
163
|
density="compact"
|
|
164
|
-
class="ml-1
|
|
164
|
+
class="ml-1"
|
|
165
165
|
style="width: 18px; height: 18px; min-width: 18px; min-height: 18px"
|
|
166
166
|
@click.stop="copyToClipboard(actualItem.title, 'Name')"
|
|
167
167
|
>
|
|
168
|
-
<v-icon size="12">
|
|
168
|
+
<v-icon size="12">ph-copy</v-icon>
|
|
169
169
|
</v-btn>
|
|
170
170
|
</span>
|
|
171
171
|
<span v-if="showCrs" class="text-caption d-flex align-center">
|
|
172
|
-
<strong class="
|
|
172
|
+
<strong class="mr-1">CRS:</strong>
|
|
173
173
|
<span data-testid="tooltipCrsValue">{{ crsLabel }}</span>
|
|
174
174
|
<v-btn
|
|
175
175
|
v-if="crsStore.crsEditEnabled"
|
|
@@ -177,15 +177,15 @@ async function copyToClipboard(text: string, label: string): Promise<void> {
|
|
|
177
177
|
icon
|
|
178
178
|
variant="text"
|
|
179
179
|
density="compact"
|
|
180
|
-
class="ml-1
|
|
180
|
+
class="ml-1"
|
|
181
181
|
style="width: 18px; height: 18px; min-width: 18px; min-height: 18px"
|
|
182
182
|
@click.stop="crsStore.requestCrsEdit(actualItem.id)"
|
|
183
183
|
>
|
|
184
|
-
<v-icon size="12">
|
|
184
|
+
<v-icon size="12">ph-pencil-simple</v-icon>
|
|
185
185
|
</v-btn>
|
|
186
186
|
</span>
|
|
187
187
|
<span v-if="actualItem.is_active !== undefined" class="text-caption d-flex align-center">
|
|
188
|
-
<strong class="
|
|
188
|
+
<strong class="mr-1">Status:</strong>
|
|
189
189
|
<i class="ml-1">{{ actualItem.is_active ? "Active" : "Inactive" }}</i>
|
|
190
190
|
</span>
|
|
191
191
|
<ComponentRelations
|
|
@@ -200,7 +200,7 @@ async function copyToClipboard(text: string, label: string): Promise<void> {
|
|
|
200
200
|
<v-icon
|
|
201
201
|
v-bind="warningProps"
|
|
202
202
|
data-testid="crsMismatchIcon"
|
|
203
|
-
icon="
|
|
203
|
+
icon="ph-warning"
|
|
204
204
|
color="warning"
|
|
205
205
|
size="14"
|
|
206
206
|
class="ml-1 flex-shrink-0"
|
|
@@ -47,13 +47,13 @@ const emit = defineEmits<Emits>();
|
|
|
47
47
|
.sticky-tree-header {
|
|
48
48
|
flex-shrink: 0;
|
|
49
49
|
background-color: transparent;
|
|
50
|
-
border-bottom: 2px solid rgba(
|
|
51
|
-
box-shadow: 0 2px 4px rgba(
|
|
50
|
+
border-bottom: 2px solid rgba(var(--v-theme-on-surface), 0.05);
|
|
51
|
+
box-shadow: 0 2px 4px rgba(var(--v-theme-on-surface), 0.05);
|
|
52
52
|
cursor: pointer;
|
|
53
53
|
z-index: 2;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.sticky-tree-header:hover {
|
|
57
|
-
background-color: rgba(
|
|
57
|
+
background-color: rgba(var(--v-theme-on-surface), 0.04);
|
|
58
58
|
}
|
|
59
59
|
</style>
|
|
@@ -64,9 +64,8 @@ function handleRowClick(event: MouseEvent): void {
|
|
|
64
64
|
<v-icon
|
|
65
65
|
v-if="item.isExpandable"
|
|
66
66
|
:data-testid="item.isOpen ? 'collapseTreeRowButton' : 'expandTreeRowButton'"
|
|
67
|
-
:icon="item.isOpen ? '
|
|
67
|
+
:icon="item.isOpen ? 'ph-caret-down' : 'ph-caret-right'"
|
|
68
68
|
:class="item.isLeaf ? 'icon-placeholder' : 'me-1'"
|
|
69
|
-
color="black"
|
|
70
69
|
@click.stop="$emit('toggle-open', item.raw)"
|
|
71
70
|
/>
|
|
72
71
|
<div v-else class="icon-placeholder" />
|
|
@@ -74,10 +73,9 @@ function handleRowClick(event: MouseEvent): void {
|
|
|
74
73
|
<template v-if="selection.selectable">
|
|
75
74
|
<v-btn
|
|
76
75
|
v-if="isHorizonStack && item.isLeaf"
|
|
77
|
-
icon="
|
|
76
|
+
icon="ph-stack"
|
|
78
77
|
variant="text"
|
|
79
78
|
density="compact"
|
|
80
|
-
color="black"
|
|
81
79
|
class="flex-shrink-0"
|
|
82
80
|
style="z-index: 4"
|
|
83
81
|
@click.stop="triggerHorizonStackModal(item.raw)"
|
|
@@ -94,14 +92,13 @@ function handleRowClick(event: MouseEvent): void {
|
|
|
94
92
|
"
|
|
95
93
|
:icon="
|
|
96
94
|
getIndeterminate(item.raw)
|
|
97
|
-
? '
|
|
95
|
+
? 'ph-eye'
|
|
98
96
|
: isSelected(item.raw)
|
|
99
|
-
? '
|
|
100
|
-
: '
|
|
97
|
+
? 'ph-fill ph-eye'
|
|
98
|
+
: 'ph-eye-slash'
|
|
101
99
|
"
|
|
102
100
|
variant="text"
|
|
103
101
|
density="compact"
|
|
104
|
-
color="black"
|
|
105
102
|
class="flex-shrink-0"
|
|
106
103
|
@click.stop="$emit('toggle-select', item.raw)"
|
|
107
104
|
@mousedown.stop
|
|
@@ -115,7 +112,7 @@ function handleRowClick(event: MouseEvent): void {
|
|
|
115
112
|
<slot name="title" :item="item.raw" :is-leaf="item.isLeaf">
|
|
116
113
|
<v-list-item-title
|
|
117
114
|
:class="{ 'font-weight-bold': !item.isLeaf }"
|
|
118
|
-
class="text-
|
|
115
|
+
class="text-high-emphasis"
|
|
119
116
|
style="font-size: 0.8rem !important"
|
|
120
117
|
>
|
|
121
118
|
{{ item.raw[itemProps.title] || item.id }}
|
|
@@ -7,7 +7,7 @@ interface Props {
|
|
|
7
7
|
title: string;
|
|
8
8
|
closable?: boolean;
|
|
9
9
|
icon?: string;
|
|
10
|
-
|
|
10
|
+
fontIcon?: string;
|
|
11
11
|
scrollTop?: number;
|
|
12
12
|
borderRadius?: string;
|
|
13
13
|
borderLeft?: boolean;
|
|
@@ -19,9 +19,9 @@ const {
|
|
|
19
19
|
title,
|
|
20
20
|
closable = false,
|
|
21
21
|
icon = "",
|
|
22
|
-
|
|
22
|
+
fontIcon = "",
|
|
23
23
|
scrollTop = 0,
|
|
24
|
-
borderRadius = "16px",
|
|
24
|
+
borderRadius = "var(--ogw-viewer-panel-radius, 16px)",
|
|
25
25
|
borderLeft = true,
|
|
26
26
|
accent = undefined,
|
|
27
27
|
} = defineProps<Props>();
|
|
@@ -127,10 +127,14 @@ watch(
|
|
|
127
127
|
height="24"
|
|
128
128
|
max-width="24"
|
|
129
129
|
class="mr-2"
|
|
130
|
-
style="
|
|
130
|
+
style="
|
|
131
|
+
filter: var(--ogw-mono-icon-filter, brightness(0));
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
"
|
|
131
135
|
/>
|
|
132
|
-
<v-icon v-else-if="
|
|
133
|
-
<v-icon v-else-if="closable" size="24" class="mr-2">
|
|
136
|
+
<v-icon v-else-if="fontIcon" size="24" class="mr-2">{{ fontIcon }}</v-icon>
|
|
137
|
+
<v-icon v-else-if="closable" size="24" class="mr-2">ph-dots-six-vertical</v-icon>
|
|
134
138
|
<v-tooltip :disabled="!slots.tooltip" location="bottom start" open-delay="400">
|
|
135
139
|
<template #activator="{ props: tooltipProps }">
|
|
136
140
|
<span
|
|
@@ -153,13 +157,7 @@ watch(
|
|
|
153
157
|
<slot name="tooltip" />
|
|
154
158
|
</v-tooltip>
|
|
155
159
|
<v-spacer />
|
|
156
|
-
<v-btn
|
|
157
|
-
v-if="closable"
|
|
158
|
-
icon="mdi-close"
|
|
159
|
-
variant="text"
|
|
160
|
-
size="x-small"
|
|
161
|
-
@click="emit('close')"
|
|
162
|
-
/>
|
|
160
|
+
<v-btn v-if="closable" icon="ph-x" variant="text" size="x-small" @click="emit('close')" />
|
|
163
161
|
</v-card-title>
|
|
164
162
|
<v-divider />
|
|
165
163
|
<v-card-text class="pa-0 flex-grow-1 overflow-hidden d-flex flex-column" style="min-height: 0">
|
|
@@ -180,8 +178,8 @@ watch(
|
|
|
180
178
|
height: 100%;
|
|
181
179
|
min-height: 0;
|
|
182
180
|
background-color: transparent !important;
|
|
183
|
-
border: 1px solid rgba(
|
|
184
|
-
box-shadow: 0 4px 15px rgba(
|
|
181
|
+
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity)) !important;
|
|
182
|
+
box-shadow: 0 4px 15px rgba(var(--v-theme-on-surface), 0.05);
|
|
185
183
|
position: relative;
|
|
186
184
|
overflow: hidden;
|
|
187
185
|
transition:
|
|
@@ -193,10 +191,11 @@ watch(
|
|
|
193
191
|
content: "";
|
|
194
192
|
position: absolute;
|
|
195
193
|
inset: 0;
|
|
196
|
-
|
|
194
|
+
/* Adaptive glass: apps can tint it (an "r, g, b" triplet) and change its blending, per theme */
|
|
195
|
+
background: rgba(var(--ogw-viewer-glass-tint, 255, 255, 255), var(--adaptive-opacity));
|
|
197
196
|
backdrop-filter: blur(var(--adaptive-blur)) brightness(var(--adaptive-brightness));
|
|
198
197
|
-webkit-backdrop-filter: blur(var(--adaptive-blur)) brightness(var(--adaptive-brightness));
|
|
199
|
-
mix-blend-mode: lighten;
|
|
198
|
+
mix-blend-mode: var(--ogw-viewer-glass-blend, lighten);
|
|
200
199
|
z-index: 0;
|
|
201
200
|
pointer-events: none;
|
|
202
201
|
border-radius: inherit;
|
|
@@ -225,7 +224,7 @@ watch(
|
|
|
225
224
|
border-color: var(--tree-box-accent) !important;
|
|
226
225
|
box-shadow:
|
|
227
226
|
inset 0 0 0 2px var(--tree-box-accent),
|
|
228
|
-
0 4px 15px rgba(
|
|
227
|
+
0 4px 15px rgba(var(--v-theme-on-surface), 0.05);
|
|
229
228
|
}
|
|
230
229
|
|
|
231
230
|
.tree-box.is-highlighted .tree-box-header {
|
|
@@ -234,9 +233,9 @@ watch(
|
|
|
234
233
|
|
|
235
234
|
.tree-box-header {
|
|
236
235
|
height: 32px !important;
|
|
237
|
-
padding: 0 10px !important;
|
|
238
|
-
background-color: rgba(
|
|
239
|
-
border-bottom: 1px solid rgba(
|
|
236
|
+
padding: 0 var(--ogw-viewer-panel-padding, 10px) !important;
|
|
237
|
+
background-color: rgba(var(--v-theme-surface), 0.05);
|
|
238
|
+
border-bottom: 1px solid rgba(var(--v-theme-on-surface), 0.05);
|
|
240
239
|
flex-shrink: 0;
|
|
241
240
|
font-size: 0.875rem !important;
|
|
242
241
|
line-height: 1.25rem !important;
|
|
@@ -3,7 +3,7 @@ import GlobalObjects from "@ogw_front/components/Viewer/ObjectTree/Views/GlobalO
|
|
|
3
3
|
import ModelTree from "@ogw_front/components/Viewer/ObjectTree/Views/ModelTree.vue";
|
|
4
4
|
import type { TreeMenuPayload } from "@ogw_front/utils/treeview";
|
|
5
5
|
import ViewerObjectTreeBox from "@ogw_front/components/Viewer/ObjectTree/Box.vue";
|
|
6
|
-
import {
|
|
6
|
+
import { geodeObjectImage } from "@ogw_front/assets/geode_objects";
|
|
7
7
|
import { useAdaptiveStyles } from "@ogw_front/composables/use_adaptive_styles";
|
|
8
8
|
import { useModelHeaderHover } from "@ogw_front/composables/model_header_hover";
|
|
9
9
|
import { useTreeviewStore } from "@ogw_front/stores/treeview";
|
|
@@ -16,6 +16,8 @@ const PERCENT_100 = 100;
|
|
|
16
16
|
const TOTAL_PERCENT = 100;
|
|
17
17
|
const MAX_PANEL_WIDTH_RATIO = 0.8;
|
|
18
18
|
const AUTO_CLOSE_THRESHOLD = 80;
|
|
19
|
+
// Apps can align the panels on their own shape system (fallbacks: the former look)
|
|
20
|
+
const PANEL_RADIUS = "var(--ogw-viewer-panel-radius, 16px)";
|
|
19
21
|
|
|
20
22
|
interface Props {
|
|
21
23
|
containerWidth: number;
|
|
@@ -229,9 +231,9 @@ function onVerticalResizeStart(event: MouseEvent, index: number): void {
|
|
|
229
231
|
>
|
|
230
232
|
<v-btn
|
|
231
233
|
data-testid="toggleObjectsButton"
|
|
232
|
-
icon="
|
|
234
|
+
icon="ph-tree-structure"
|
|
233
235
|
variant="text"
|
|
234
|
-
:color="mainView ? 'primary' :
|
|
236
|
+
:color="mainView ? 'primary' : undefined"
|
|
235
237
|
class="mb-2"
|
|
236
238
|
v-tooltip="'Toggle Objects'"
|
|
237
239
|
@click="treeviewStore.toggleView('main')"
|
|
@@ -248,10 +250,10 @@ function onVerticalResizeStart(event: MouseEvent, index: number): void {
|
|
|
248
250
|
>
|
|
249
251
|
<ViewerObjectTreeBox
|
|
250
252
|
:title="mainView?.title || 'Objects'"
|
|
251
|
-
|
|
253
|
+
font-icon="ph-tree-structure"
|
|
252
254
|
:scroll-top="mainView?.scrollTop || 0"
|
|
253
255
|
closable
|
|
254
|
-
:border-radius="additionalViews.length > 0 ? '0' :
|
|
256
|
+
:border-radius="additionalViews.length > 0 ? '0' : `0 ${PANEL_RADIUS} ${PANEL_RADIUS} 0`"
|
|
255
257
|
:border-left="false"
|
|
256
258
|
@close="treeviewStore.closeView('main')"
|
|
257
259
|
@update:scroll-top="mainView && treeviewStore.setScrollTop(mainView.id, $event)"
|
|
@@ -285,10 +287,10 @@ function onVerticalResizeStart(event: MouseEvent, index: number): void {
|
|
|
285
287
|
>
|
|
286
288
|
<ViewerObjectTreeBox
|
|
287
289
|
:title="view.title"
|
|
288
|
-
:icon="
|
|
290
|
+
:icon="view.geode_object_type ? geodeObjectImage(view.geode_object_type) : undefined"
|
|
289
291
|
:scroll-top="view.scrollTop"
|
|
290
292
|
closable
|
|
291
|
-
:border-radius="`0 ${index === 0 ?
|
|
293
|
+
:border-radius="`0 ${index === 0 ? PANEL_RADIUS : '0'} ${index === additionalViews.length - 1 ? PANEL_RADIUS : '0'} 0`"
|
|
292
294
|
:border-left="false"
|
|
293
295
|
:accent="
|
|
294
296
|
view.color
|
|
@@ -346,19 +348,19 @@ function onVerticalResizeStart(event: MouseEvent, index: number): void {
|
|
|
346
348
|
position: absolute;
|
|
347
349
|
z-index: 1;
|
|
348
350
|
left: 0;
|
|
349
|
-
top: 8px;
|
|
350
|
-
height: calc(100% -
|
|
351
|
+
top: var(--ogw-viewer-panel-inset, 8px);
|
|
352
|
+
height: calc(100% - 2 * var(--ogw-viewer-panel-inset, 8px));
|
|
351
353
|
pointer-events: auto;
|
|
352
354
|
}
|
|
353
355
|
|
|
354
356
|
.activity-bar {
|
|
355
357
|
width: 48px;
|
|
356
358
|
height: 100%;
|
|
357
|
-
border-radius: 16px 0 0 16px;
|
|
358
|
-
margin-left: 10px;
|
|
359
|
-
border: 1px solid rgba(
|
|
359
|
+
border-radius: var(--ogw-viewer-panel-radius, 16px) 0 0 var(--ogw-viewer-panel-radius, 16px);
|
|
360
|
+
margin-left: var(--ogw-viewer-panel-inset, 10px);
|
|
361
|
+
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
|
|
360
362
|
border-right: none;
|
|
361
|
-
box-shadow: 0 4px 15px rgba(
|
|
363
|
+
box-shadow: 0 4px 15px rgba(var(--v-theme-on-surface), 0.05);
|
|
362
364
|
position: relative;
|
|
363
365
|
overflow: hidden;
|
|
364
366
|
transition:
|
|
@@ -368,18 +370,19 @@ function onVerticalResizeStart(event: MouseEvent, index: number): void {
|
|
|
368
370
|
}
|
|
369
371
|
|
|
370
372
|
.activity-bar.is-closed {
|
|
371
|
-
border-radius: 16px;
|
|
372
|
-
border-right: 1px solid rgba(
|
|
373
|
+
border-radius: var(--ogw-viewer-panel-radius, 16px);
|
|
374
|
+
border-right: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
|
|
373
375
|
}
|
|
374
376
|
|
|
375
377
|
.activity-bar::before {
|
|
376
378
|
content: "";
|
|
377
379
|
position: absolute;
|
|
378
380
|
inset: 0;
|
|
379
|
-
|
|
381
|
+
/* Adaptive glass: apps can tint it (an "r, g, b" triplet) and change its blending, per theme */
|
|
382
|
+
background: rgba(var(--ogw-viewer-glass-tint, 255, 255, 255), var(--adaptive-opacity));
|
|
380
383
|
backdrop-filter: blur(var(--adaptive-blur)) brightness(var(--adaptive-brightness));
|
|
381
384
|
-webkit-backdrop-filter: blur(var(--adaptive-blur)) brightness(var(--adaptive-brightness));
|
|
382
|
-
mix-blend-mode: lighten;
|
|
385
|
+
mix-blend-mode: var(--ogw-viewer-glass-blend, lighten);
|
|
383
386
|
z-index: 0;
|
|
384
387
|
pointer-events: none;
|
|
385
388
|
border-radius: inherit;
|
|
@@ -430,14 +433,14 @@ function onVerticalResizeStart(event: MouseEvent, index: number): void {
|
|
|
430
433
|
}
|
|
431
434
|
|
|
432
435
|
.view-wrapper.drag-over {
|
|
433
|
-
border: 2px dashed rgba(
|
|
434
|
-
border-radius: 16px;
|
|
435
|
-
background-color: rgba(
|
|
436
|
+
border: 2px dashed rgba(var(--v-theme-on-surface), 0.2);
|
|
437
|
+
border-radius: var(--ogw-viewer-panel-radius, 16px);
|
|
438
|
+
background-color: rgba(var(--v-theme-on-surface), 0.02);
|
|
436
439
|
}
|
|
437
440
|
|
|
438
441
|
.column-separator {
|
|
439
442
|
width: 6px;
|
|
440
|
-
background-color: rgba(
|
|
443
|
+
background-color: rgba(var(--v-theme-on-surface), 0.05);
|
|
441
444
|
border-radius: 3px;
|
|
442
445
|
margin: 0 2px;
|
|
443
446
|
cursor: ew-resize;
|
|
@@ -445,7 +448,7 @@ function onVerticalResizeStart(event: MouseEvent, index: number): void {
|
|
|
445
448
|
}
|
|
446
449
|
|
|
447
450
|
.column-separator:hover {
|
|
448
|
-
background-color: rgba(
|
|
451
|
+
background-color: rgba(var(--v-theme-on-surface), 0.2);
|
|
449
452
|
}
|
|
450
453
|
|
|
451
454
|
.column-separator::after {
|
|
@@ -455,7 +458,7 @@ function onVerticalResizeStart(event: MouseEvent, index: number): void {
|
|
|
455
458
|
bottom: 10%;
|
|
456
459
|
left: 2px;
|
|
457
460
|
width: 2px;
|
|
458
|
-
background-color: rgba(
|
|
461
|
+
background-color: rgba(var(--v-theme-on-surface), 0.1);
|
|
459
462
|
border-radius: 1px;
|
|
460
463
|
}
|
|
461
464
|
|
|
@@ -474,13 +477,13 @@ function onVerticalResizeStart(event: MouseEvent, index: number): void {
|
|
|
474
477
|
left: 10%;
|
|
475
478
|
right: 10%;
|
|
476
479
|
height: 2px;
|
|
477
|
-
background-color: rgba(
|
|
480
|
+
background-color: rgba(var(--v-theme-on-surface), 0.1);
|
|
478
481
|
border-radius: 1px;
|
|
479
482
|
transition: background-color 0.2s;
|
|
480
483
|
}
|
|
481
484
|
|
|
482
485
|
.v-split-resizer:hover::after {
|
|
483
|
-
background-color: rgba(
|
|
486
|
+
background-color: rgba(var(--v-theme-on-surface), 0.4);
|
|
484
487
|
height: 3px;
|
|
485
488
|
top: 1.5px;
|
|
486
489
|
}
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
import { type TreeMenuPayload, compareSelections } from "@ogw_front/utils/treeview";
|
|
12
12
|
import CommonTreeView from "@ogw_front/components/Viewer/ObjectTree/Base/CommonTreeView.vue";
|
|
13
13
|
import type { DisplayItem } from "@ogw_front/composables/virtual_tree";
|
|
14
|
+
import type { GeodeObjectType } from "@geode/opengeodeweb-microservice/data_types";
|
|
14
15
|
import ObjectTreeControls from "@ogw_front/components/Viewer/ObjectTree/Base/Controls.vue";
|
|
15
16
|
import ObjectTreeItemLabel from "@ogw_front/components/Viewer/ObjectTree/Base/ItemLabel.vue";
|
|
16
17
|
import { useBasemapStore } from "@ogw_front/stores/basemap";
|
|
@@ -271,7 +272,7 @@ function expandAll(): void {
|
|
|
271
272
|
<v-btn
|
|
272
273
|
v-if="item.viewer_object_type"
|
|
273
274
|
data-testid="focusObjectButton"
|
|
274
|
-
icon="
|
|
275
|
+
icon="ph-target"
|
|
275
276
|
size="medium"
|
|
276
277
|
variant="text"
|
|
277
278
|
v-tooltip="'Focus camera on object'"
|
|
@@ -295,11 +296,11 @@ function expandAll(): void {
|
|
|
295
296
|
treeviewStore.displayAdditionalTree(
|
|
296
297
|
item.id as string,
|
|
297
298
|
item.title as string | undefined,
|
|
298
|
-
item.geode_object_type as
|
|
299
|
+
item.geode_object_type as GeodeObjectType,
|
|
299
300
|
)
|
|
300
301
|
"
|
|
301
302
|
>
|
|
302
|
-
<v-icon size="18">
|
|
303
|
+
<v-icon size="18">ph-magnifying-glass-plus</v-icon>
|
|
303
304
|
</v-btn>
|
|
304
305
|
</template>
|
|
305
306
|
</template>
|
|
@@ -265,7 +265,7 @@ function getLeafViewerIds(item: CollectionTreeItem): number[] {
|
|
|
265
265
|
<template #append="{ item }">
|
|
266
266
|
<v-btn
|
|
267
267
|
v-if="getLeafViewerIds(item as unknown as CollectionTreeItem).length > 0"
|
|
268
|
-
icon="
|
|
268
|
+
icon="ph-target"
|
|
269
269
|
size="medium"
|
|
270
270
|
variant="text"
|
|
271
271
|
v-tooltip="'Focus camera on object'"
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import { type RangesPerData, useBatchGroup } from "@ogw_front/composables/batch_style";
|
|
17
17
|
import { getAttributeRange, intersectAttributes } from "@ogw_front/utils/attributes";
|
|
18
18
|
import { DEFAULT_NO_DATA_COLOR } from "@ogw_front/utils/default_styles/constants";
|
|
19
|
-
import type { DataId } from "@
|
|
19
|
+
import type { DataId } from "@geode/opengeodeweb-microservice/schema_types";
|
|
20
20
|
import ViewerOptionsAttributeColorBar from "@ogw_front/components/Viewer/Options/AttributeColorBar.vue";
|
|
21
21
|
import ViewerOptionsNoDataColorInfo from "@ogw_front/components/Viewer/Options/NoDataColorInfo.vue";
|
|
22
22
|
import ViewerOptionsTimeStepSlider from "@ogw_front/components/Viewer/Options/TimeStepSlider.vue";
|
|
@@ -119,7 +119,7 @@ watch(filteredPresets, drawAllCanvases);
|
|
|
119
119
|
contained
|
|
120
120
|
persistent
|
|
121
121
|
class="align-center justify-center"
|
|
122
|
-
scrim="
|
|
122
|
+
scrim="surface"
|
|
123
123
|
opacity="0.6"
|
|
124
124
|
>
|
|
125
125
|
<v-progress-circular indeterminate color="primary" />
|
|
@@ -130,12 +130,10 @@ watch(filteredPresets, drawAllCanvases);
|
|
|
130
130
|
placeholder="Search presets..."
|
|
131
131
|
density="compact"
|
|
132
132
|
hide-details
|
|
133
|
-
prepend-inner-icon="
|
|
133
|
+
prepend-inner-icon="ph-magnifying-glass"
|
|
134
134
|
variant="solo-filled"
|
|
135
135
|
flat
|
|
136
136
|
class="mb-3"
|
|
137
|
-
base-color="white"
|
|
138
|
-
color="white"
|
|
139
137
|
/>
|
|
140
138
|
|
|
141
139
|
<v-list
|
|
@@ -150,7 +148,7 @@ watch(filteredPresets, drawAllCanvases);
|
|
|
150
148
|
<template v-for="(item, itemIdx) in filteredPresets" :key="item.Name">
|
|
151
149
|
<v-list-group v-if="item.Children" :value="item.Name">
|
|
152
150
|
<template #activator="{ props: gProps }">
|
|
153
|
-
<v-list-item v-bind="gProps" :title="item.Name" class="
|
|
151
|
+
<v-list-item v-bind="gProps" :title="item.Name" class="font-weight-bold" />
|
|
154
152
|
</template>
|
|
155
153
|
|
|
156
154
|
<v-list-item
|
|
@@ -162,7 +160,7 @@ watch(filteredPresets, drawAllCanvases);
|
|
|
162
160
|
rounded="md"
|
|
163
161
|
>
|
|
164
162
|
<div class="d-flex flex-column py-1">
|
|
165
|
-
<span class="text-caption text-
|
|
163
|
+
<span class="text-caption text-medium-emphasis mb-1">{{ child.Name }}</span>
|
|
166
164
|
<canvas
|
|
167
165
|
:ref="
|
|
168
166
|
(element: Element | null) =>
|
|
@@ -185,7 +183,7 @@ watch(filteredPresets, drawAllCanvases);
|
|
|
185
183
|
rounded="md"
|
|
186
184
|
>
|
|
187
185
|
<div class="d-flex flex-column py-1">
|
|
188
|
-
<span class="text-caption text-
|
|
186
|
+
<span class="text-caption text-medium-emphasis mb-1">{{ item.Name }}</span>
|
|
189
187
|
<canvas
|
|
190
188
|
:ref="(element: Element | null) => setCanvasRef(item.Name, element, `s-${itemIdx}`)"
|
|
191
189
|
width="200"
|
|
@@ -202,10 +200,10 @@ watch(filteredPresets, drawAllCanvases);
|
|
|
202
200
|
|
|
203
201
|
<style scoped>
|
|
204
202
|
.border-thin {
|
|
205
|
-
border: 1px solid rgba(
|
|
203
|
+
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity)) !important;
|
|
206
204
|
}
|
|
207
205
|
|
|
208
206
|
.v-list-item {
|
|
209
|
-
background-color: rgba(
|
|
207
|
+
background-color: rgba(var(--v-theme-on-surface), 0.06) !important;
|
|
210
208
|
}
|
|
211
209
|
</style>
|
|
@@ -44,7 +44,7 @@ watch([lutCanvas, selectedPresetName, (): number => min, (): number => max], dra
|
|
|
44
44
|
class="d-flex flex-column"
|
|
45
45
|
style="gap: 4px; cursor: pointer"
|
|
46
46
|
>
|
|
47
|
-
<span class="text-caption
|
|
47
|
+
<span class="text-caption font-weight-medium">
|
|
48
48
|
{{ selectedPresetName }}
|
|
49
49
|
</span>
|
|
50
50
|
<canvas ref="lutCanvas" width="200" height="18" class="w-100 rounded-xs border-thin" />
|
|
@@ -61,6 +61,6 @@ watch([lutCanvas, selectedPresetName, (): number => min, (): number => max], dra
|
|
|
61
61
|
|
|
62
62
|
<style scoped>
|
|
63
63
|
.border-thin {
|
|
64
|
-
border: 1px solid rgba(
|
|
64
|
+
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity)) !important;
|
|
65
65
|
}
|
|
66
66
|
</style>
|