@geode/opengeodeweb-front 10.23.0-rc.3 → 10.23.0-rc.4

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.
@@ -3,5 +3,5 @@ const model = defineModel();
3
3
  </script>
4
4
 
5
5
  <template>
6
- <v-slider v-model="model" hide-details min="0" max="20" step="2" />
6
+ <v-slider v-model="model" hide-details min="0" max="20" step="2" density="compact" />
7
7
  </template>
@@ -3,5 +3,13 @@ const model = defineModel();
3
3
  </script>
4
4
 
5
5
  <template>
6
- <v-switch v-model="model" inset hide-details />
6
+ <v-switch v-model="model" inset hide-details density="compact" class="compact-switch" />
7
7
  </template>
8
+
9
+ <style scoped>
10
+ .compact-switch {
11
+ transform: scale(0.75);
12
+ transform-origin: left center;
13
+ width: 40px;
14
+ }
15
+ </style>
@@ -5,7 +5,7 @@ import { useMenuStore } from "@ogw_front/stores/menu";
5
5
  import { useTheme } from "vuetify";
6
6
  import { useTreeviewStore } from "@ogw_front/stores/treeview";
7
7
 
8
- const CARD_WIDTH = 320;
8
+ const CARD_WIDTH = 300;
9
9
  const CARD_HEIGHT = 500;
10
10
  const MARGIN = 60;
11
11
  const RADIUS = 80;
@@ -170,8 +170,10 @@ function toggleOptions() {
170
170
  class="elevation-24"
171
171
  style="overflow: hidden; display: flex; flex-direction: column"
172
172
  >
173
- <v-card-title>{{ tooltip }}</v-card-title>
174
- <v-card-text class="pa-5" style="overflow-y: auto; flex: 1; min-height: 0">
173
+ <v-card-title class="text-subtitle-1 pt-3 pb-0 px-3 font-weight-bold">{{
174
+ tooltip
175
+ }}</v-card-title>
176
+ <v-card-text class="px-3 pb-3 pt-1" style="overflow-y: auto; flex: 1; min-height: 0">
175
177
  <slot name="options" />
176
178
  </v-card-text>
177
179
  </GlassCard>
@@ -252,4 +254,40 @@ function toggleOptions() {
252
254
  .options-left {
253
255
  right: 60px;
254
256
  }
257
+
258
+ :deep(.v-field) {
259
+ min-height: 30px !important;
260
+ height: 30px !important;
261
+ border-radius: 6px !important;
262
+ }
263
+
264
+ :deep(.v-field__input) {
265
+ padding-top: 0 !important;
266
+ padding-bottom: 0 !important;
267
+ min-height: 30px !important;
268
+ height: 30px !important;
269
+ font-size: 0.95rem !important;
270
+ align-items: center;
271
+ }
272
+
273
+ :deep(.v-field__append-inner) {
274
+ align-items: center;
275
+ padding-top: 0 !important;
276
+ padding-bottom: 0 !important;
277
+ height: 30px !important;
278
+ }
279
+
280
+ :deep(.v-field__append-inner .v-icon) {
281
+ font-size: 16px !important;
282
+ }
283
+
284
+ :deep(.v-field-label) {
285
+ font-size: 0.75rem !important;
286
+ top: 6px !important;
287
+ }
288
+
289
+ :deep(.v-field-label--floating) {
290
+ top: -8px !important;
291
+ font-size: 0.7rem !important;
292
+ }
255
293
  </style>
@@ -119,25 +119,19 @@ const edge_attribute_color_map = computed({
119
119
  <template #options>
120
120
  <ViewerOptionsVisibilitySwitch data-testid="meshEdgesVisibilitySwitch" v-model="visibility" />
121
121
  <template v-if="visibility">
122
- <v-row class="pa-0" align="center">
123
- <v-divider />
124
- <ViewerOptionsWidthSlider v-model="width" />
125
- </v-row>
126
- <v-row>
127
- <v-col>
128
- <ViewerOptionsColoringTypeSelector
129
- :id="id"
130
- v-model:coloring_style_key="coloring_style_key"
131
- v-model:color="color"
132
- v-model:vertex_attribute_name="vertex_attribute_name"
133
- v-model:vertex_attribute_range="vertex_attribute_range"
134
- v-model:vertex_attribute_color_map="vertex_attribute_color_map"
135
- v-model:edge_attribute_name="edge_attribute_name"
136
- v-model:edge_attribute_range="edge_attribute_range"
137
- v-model:edge_attribute_color_map="edge_attribute_color_map"
138
- />
139
- </v-col>
140
- </v-row>
122
+ <v-divider class="my-2" />
123
+ <ViewerOptionsWidthSlider v-model="width" />
124
+ <ViewerOptionsColoringTypeSelector
125
+ :id="id"
126
+ v-model:coloring_style_key="coloring_style_key"
127
+ v-model:color="color"
128
+ v-model:vertex_attribute_name="vertex_attribute_name"
129
+ v-model:vertex_attribute_range="vertex_attribute_range"
130
+ v-model:vertex_attribute_color_map="vertex_attribute_color_map"
131
+ v-model:edge_attribute_name="edge_attribute_name"
132
+ v-model:edge_attribute_range="edge_attribute_range"
133
+ v-model:edge_attribute_color_map="edge_attribute_color_map"
134
+ />
141
135
  </template>
142
136
  </template>
143
137
  </ViewerContextMenuItem>
@@ -68,19 +68,13 @@ const color = computed({
68
68
  <template #options>
69
69
  <ViewerOptionsVisibilitySwitch data-testid="meshEdgesVisibilitySwitch" v-model="visibility" />
70
70
  <template v-if="visibility">
71
- <v-row class="pa-0" align="center">
72
- <v-divider />
73
- <ViewerOptionsWidthSlider data-testid="meshEdgesWidthSlider" v-model="size" />
74
- </v-row>
75
- <v-row>
76
- <v-col>
77
- <ViewerOptionsColoringTypeSelector
78
- :id="id"
79
- v-model:coloring_style_key="coloring_style_key"
80
- v-model:color="color"
81
- />
82
- </v-col>
83
- </v-row>
71
+ <v-divider class="my-2" />
72
+ <ViewerOptionsWidthSlider data-testid="meshEdgesWidthSlider" v-model="size" />
73
+ <ViewerOptionsColoringTypeSelector
74
+ :id="id"
75
+ v-model:coloring_style_key="coloring_style_key"
76
+ v-model:color="color"
77
+ />
84
78
  </template>
85
79
  </template>
86
80
  </ViewerContextMenuItem>
@@ -98,23 +98,17 @@ const vertex_attribute_color_map = computed({
98
98
  v-model="visibility"
99
99
  />
100
100
  <template v-if="visibility">
101
- <v-row class="pa-0" align="center">
102
- <v-divider />
103
- <ViewerOptionsSizeSlider data-testid="meshPointsSizeSlider" v-model="size" />
104
- </v-row>
105
- <v-row>
106
- <v-col>
107
- <ViewerOptionsColoringTypeSelector
108
- :id="id"
109
- v-model:coloring_style_key="coloring_style_key"
110
- v-model:color="color"
111
- v-model:vertex_attribute_name="vertex_attribute_name"
112
- v-model:vertex_attribute_range="vertex_attribute_range"
113
- v-model:vertex_attribute_color_map="vertex_attribute_color_map"
114
- :capabilities="{ vertex: { available: false } }"
115
- />
116
- </v-col>
117
- </v-row>
101
+ <v-divider class="my-2" />
102
+ <ViewerOptionsSizeSlider data-testid="meshPointsSizeSlider" v-model="size" />
103
+ <ViewerOptionsColoringTypeSelector
104
+ :id="id"
105
+ v-model:coloring_style_key="coloring_style_key"
106
+ v-model:color="color"
107
+ v-model:vertex_attribute_name="vertex_attribute_name"
108
+ v-model:vertex_attribute_range="vertex_attribute_range"
109
+ v-model:vertex_attribute_color_map="vertex_attribute_color_map"
110
+ :capabilities="{ vertex: { available: false } }"
111
+ />
118
112
  </template>
119
113
  </template>
120
114
  </ViewerContextMenuItem>
@@ -206,51 +206,41 @@ const polyhedronSchema = back_schemas.opengeodeweb_back.model_component_polyhedr
206
206
  </script>
207
207
 
208
208
  <template>
209
- <div>
210
- <OptionsSection title="Blocks Options" class="mt-6">
211
- <VisibilitySwitch v-model="blocksVisibility" />
212
- <v-row class="mt-2 pa-0">
213
- <v-col class="pa-0">
214
- <ViewerOptionsColoringTypeSelector
215
- :id="modelId"
216
- :componentId="targetBlockIds[0]"
217
- v-model:coloring_style_key="blocksColorMode"
218
- v-model:color="blocksColor"
219
- v-model:vertex_attribute_name="blocksVertexAttributeName"
220
- v-model:vertex_attribute_range="blocksVertexAttributeRange"
221
- v-model:vertex_attribute_color_map="blocksVertexAttributeColorMap"
222
- v-model:polyhedron_attribute_name="blocksPolyhedronAttributeName"
223
- v-model:polyhedron_attribute_range="blocksPolyhedronAttributeRange"
224
- v-model:polyhedron_attribute_color_map="blocksPolyhedronAttributeColorMap"
225
- :capabilities="capabilities"
226
- :schemas="{ vertex: vertexSchema, polyhedron: polyhedronSchema }"
227
- :allowRandom="true"
228
- />
229
- </v-col>
230
- </v-row>
231
- </OptionsSection>
232
-
233
- <OptionsSection v-if="blockId" title="Component Options" class="mt-6">
234
- <VisibilitySwitch v-model="blockVisibility" />
235
- <v-row class="mt-2 pa-0">
236
- <v-col class="pa-0">
237
- <ViewerOptionsColoringTypeSelector
238
- :id="modelId"
239
- :componentId="blockId"
240
- v-model:coloring_style_key="blockColorMode"
241
- v-model:color="blockColor"
242
- v-model:vertex_attribute_name="vertexAttributeName"
243
- v-model:vertex_attribute_range="vertexAttributeRange"
244
- v-model:vertex_attribute_color_map="vertexAttributeColorMap"
245
- v-model:polyhedron_attribute_name="polyhedronAttributeName"
246
- v-model:polyhedron_attribute_range="polyhedronAttributeRange"
247
- v-model:polyhedron_attribute_color_map="polyhedronAttributeColorMap"
248
- :capabilities="capabilities"
249
- :schemas="{ vertex: vertexSchema, polyhedron: polyhedronSchema }"
250
- :allowRandom="true"
251
- />
252
- </v-col>
253
- </v-row>
254
- </OptionsSection>
255
- </div>
209
+ <OptionsSection title="Blocks Options" class="mt-4">
210
+ <VisibilitySwitch v-model="blocksVisibility" />
211
+ <ViewerOptionsColoringTypeSelector
212
+ :id="modelId"
213
+ :componentId="targetBlockIds[0]"
214
+ v-model:coloring_style_key="blocksColorMode"
215
+ v-model:color="blocksColor"
216
+ v-model:vertex_attribute_name="blocksVertexAttributeName"
217
+ v-model:vertex_attribute_range="blocksVertexAttributeRange"
218
+ v-model:vertex_attribute_color_map="blocksVertexAttributeColorMap"
219
+ v-model:polyhedron_attribute_name="blocksPolyhedronAttributeName"
220
+ v-model:polyhedron_attribute_range="blocksPolyhedronAttributeRange"
221
+ v-model:polyhedron_attribute_color_map="blocksPolyhedronAttributeColorMap"
222
+ :capabilities="capabilities"
223
+ :schemas="{ vertex: vertexSchema, polyhedron: polyhedronSchema }"
224
+ :allowRandom="true"
225
+ />
226
+ </OptionsSection>
227
+
228
+ <OptionsSection v-if="blockId" title="Component Options" class="mt-4">
229
+ <VisibilitySwitch v-model="blockVisibility" />
230
+ <ViewerOptionsColoringTypeSelector
231
+ :id="modelId"
232
+ :componentId="blockId"
233
+ v-model:coloring_style_key="blockColorMode"
234
+ v-model:color="blockColor"
235
+ v-model:vertex_attribute_name="vertexAttributeName"
236
+ v-model:vertex_attribute_range="vertexAttributeRange"
237
+ v-model:vertex_attribute_color_map="vertexAttributeColorMap"
238
+ v-model:polyhedron_attribute_name="polyhedronAttributeName"
239
+ v-model:polyhedron_attribute_range="polyhedronAttributeRange"
240
+ v-model:polyhedron_attribute_color_map="polyhedronAttributeColorMap"
241
+ :capabilities="capabilities"
242
+ :schemas="{ vertex: vertexSchema, polyhedron: polyhedronSchema }"
243
+ :allowRandom="true"
244
+ />
245
+ </OptionsSection>
256
246
  </template>
@@ -143,45 +143,35 @@ const vertexSchema = back_schemas.opengeodeweb_back.model_component_vertex_attri
143
143
  </script>
144
144
 
145
145
  <template>
146
- <div>
147
- <OptionsSection title="Corners Options" class="mt-6">
148
- <VisibilitySwitch v-model="cornersVisibility" />
149
- <v-row class="mt-2 pa-0">
150
- <v-col class="pa-0">
151
- <ViewerOptionsColoringTypeSelector
152
- :id="modelId"
153
- :componentId="targetCornerIds[0]"
154
- v-model:coloring_style_key="cornersColorMode"
155
- v-model:color="cornersColor"
156
- v-model:vertex_attribute_name="cornersVertexAttributeName"
157
- v-model:vertex_attribute_range="cornersVertexAttributeRange"
158
- v-model:vertex_attribute_color_map="cornersVertexAttributeColorMap"
159
- :capabilities="capabilities"
160
- :schemas="{ vertex: vertexSchema }"
161
- :allowRandom="true"
162
- />
163
- </v-col>
164
- </v-row>
165
- </OptionsSection>
166
-
167
- <OptionsSection v-if="cornerId" title="Component Options" class="mt-6">
168
- <VisibilitySwitch v-model="cornerVisibility" />
169
- <v-row class="mt-2 pa-0">
170
- <v-col class="pa-0">
171
- <ViewerOptionsColoringTypeSelector
172
- :id="modelId"
173
- :componentId="cornerId"
174
- v-model:coloring_style_key="cornerColorMode"
175
- v-model:color="cornerColor"
176
- v-model:vertex_attribute_name="vertexAttributeName"
177
- v-model:vertex_attribute_range="vertexAttributeRange"
178
- v-model:vertex_attribute_color_map="vertexAttributeColorMap"
179
- :capabilities="capabilities"
180
- :schemas="{ vertex: vertexSchema }"
181
- :allowRandom="true"
182
- />
183
- </v-col>
184
- </v-row>
185
- </OptionsSection>
186
- </div>
146
+ <OptionsSection title="Corners Options" class="mt-4">
147
+ <VisibilitySwitch v-model="cornersVisibility" />
148
+ <ViewerOptionsColoringTypeSelector
149
+ :id="modelId"
150
+ :componentId="targetCornerIds[0]"
151
+ v-model:coloring_style_key="cornersColorMode"
152
+ v-model:color="cornersColor"
153
+ v-model:vertex_attribute_name="cornersVertexAttributeName"
154
+ v-model:vertex_attribute_range="cornersVertexAttributeRange"
155
+ v-model:vertex_attribute_color_map="cornersVertexAttributeColorMap"
156
+ :capabilities="capabilities"
157
+ :schemas="{ vertex: vertexSchema }"
158
+ :allowRandom="true"
159
+ />
160
+ </OptionsSection>
161
+
162
+ <OptionsSection v-if="cornerId" title="Component Options" class="mt-4">
163
+ <VisibilitySwitch v-model="cornerVisibility" />
164
+ <ViewerOptionsColoringTypeSelector
165
+ :id="modelId"
166
+ :componentId="cornerId"
167
+ v-model:coloring_style_key="cornerColorMode"
168
+ v-model:color="cornerColor"
169
+ v-model:vertex_attribute_name="vertexAttributeName"
170
+ v-model:vertex_attribute_range="vertexAttributeRange"
171
+ v-model:vertex_attribute_color_map="vertexAttributeColorMap"
172
+ :capabilities="capabilities"
173
+ :schemas="{ vertex: vertexSchema }"
174
+ :allowRandom="true"
175
+ />
176
+ </OptionsSection>
187
177
  </template>
@@ -202,51 +202,41 @@ const edgeSchema = back_schemas.opengeodeweb_back.model_component_edge_attribute
202
202
  </script>
203
203
 
204
204
  <template>
205
- <div>
206
- <OptionsSection title="Lines Options" class="mt-6">
207
- <VisibilitySwitch v-model="linesVisibility" />
208
- <v-row class="mt-2 pa-0">
209
- <v-col class="pa-0">
210
- <ViewerOptionsColoringTypeSelector
211
- :id="modelId"
212
- :componentId="targetLineIds[0]"
213
- v-model:coloring_style_key="linesColorMode"
214
- v-model:color="linesColor"
215
- v-model:vertex_attribute_name="linesVertexAttributeName"
216
- v-model:vertex_attribute_range="linesVertexAttributeRange"
217
- v-model:vertex_attribute_color_map="linesVertexAttributeColorMap"
218
- v-model:edge_attribute_name="linesEdgeAttributeName"
219
- v-model:edge_attribute_range="linesEdgeAttributeRange"
220
- v-model:edge_attribute_color_map="linesEdgeAttributeColorMap"
221
- :capabilities="capabilities"
222
- :schemas="{ vertex: vertexSchema, edge: edgeSchema }"
223
- :allowRandom="true"
224
- />
225
- </v-col>
226
- </v-row>
227
- </OptionsSection>
228
-
229
- <OptionsSection v-if="lineId" title="Component Options" class="mt-6">
230
- <VisibilitySwitch v-model="lineVisibility" />
231
- <v-row class="mt-2 pa-0">
232
- <v-col class="pa-0">
233
- <ViewerOptionsColoringTypeSelector
234
- :id="modelId"
235
- :componentId="lineId"
236
- v-model:coloring_style_key="lineColorMode"
237
- v-model:color="lineColor"
238
- v-model:vertex_attribute_name="vertexAttributeName"
239
- v-model:vertex_attribute_range="vertexAttributeRange"
240
- v-model:vertex_attribute_color_map="vertexAttributeColorMap"
241
- v-model:edge_attribute_name="edgeAttributeName"
242
- v-model:edge_attribute_range="edgeAttributeRange"
243
- v-model:edge_attribute_color_map="edgeAttributeColorMap"
244
- :capabilities="capabilities"
245
- :schemas="{ vertex: vertexSchema, edge: edgeSchema }"
246
- :allowRandom="true"
247
- />
248
- </v-col>
249
- </v-row>
250
- </OptionsSection>
251
- </div>
205
+ <OptionsSection title="Lines Options" class="mt-4">
206
+ <VisibilitySwitch v-model="linesVisibility" />
207
+ <ViewerOptionsColoringTypeSelector
208
+ :id="modelId"
209
+ :componentId="targetLineIds[0]"
210
+ v-model:coloring_style_key="linesColorMode"
211
+ v-model:color="linesColor"
212
+ v-model:vertex_attribute_name="linesVertexAttributeName"
213
+ v-model:vertex_attribute_range="linesVertexAttributeRange"
214
+ v-model:vertex_attribute_color_map="linesVertexAttributeColorMap"
215
+ v-model:edge_attribute_name="linesEdgeAttributeName"
216
+ v-model:edge_attribute_range="linesEdgeAttributeRange"
217
+ v-model:edge_attribute_color_map="linesEdgeAttributeColorMap"
218
+ :capabilities="capabilities"
219
+ :schemas="{ vertex: vertexSchema, edge: edgeSchema }"
220
+ :allowRandom="true"
221
+ />
222
+ </OptionsSection>
223
+
224
+ <OptionsSection v-if="lineId" title="Component Options" class="mt-4">
225
+ <VisibilitySwitch v-model="lineVisibility" />
226
+ <ViewerOptionsColoringTypeSelector
227
+ :id="modelId"
228
+ :componentId="lineId"
229
+ v-model:coloring_style_key="lineColorMode"
230
+ v-model:color="lineColor"
231
+ v-model:vertex_attribute_name="vertexAttributeName"
232
+ v-model:vertex_attribute_range="vertexAttributeRange"
233
+ v-model:vertex_attribute_color_map="vertexAttributeColorMap"
234
+ v-model:edge_attribute_name="edgeAttributeName"
235
+ v-model:edge_attribute_range="edgeAttributeRange"
236
+ v-model:edge_attribute_color_map="edgeAttributeColorMap"
237
+ :capabilities="capabilities"
238
+ :schemas="{ vertex: vertexSchema, edge: edgeSchema }"
239
+ :allowRandom="true"
240
+ />
241
+ </OptionsSection>
252
242
  </template>
@@ -132,7 +132,7 @@ watch(modelComponentsColorMode, async (colorMode) => {
132
132
  <VisibilitySwitch v-model="modelVisibility" />
133
133
  </OptionsSection>
134
134
 
135
- <OptionsSection v-if="!componentType && !componentId" title="Components Options" class="mt-6">
135
+ <OptionsSection v-if="!componentType && !componentId" title="Components Options" class="mt-4">
136
136
  <v-label class="text-caption mb-1 mt-2">Color Mode</v-label>
137
137
  <v-select
138
138
  v-model="modelComponentsColorMode"
@@ -178,7 +178,43 @@ watch(modelComponentsColorMode, async (colorMode) => {
178
178
 
179
179
  <style scoped>
180
180
  .model-style-card {
181
- padding-top: 20px;
181
+ padding-top: 12px;
182
182
  overflow-x: hidden;
183
183
  }
184
+
185
+ :deep(.v-field) {
186
+ min-height: 30px !important;
187
+ height: 30px !important;
188
+ border-radius: 6px !important;
189
+ }
190
+
191
+ :deep(.v-field__input) {
192
+ padding-top: 0 !important;
193
+ padding-bottom: 0 !important;
194
+ min-height: 30px !important;
195
+ height: 30px !important;
196
+ font-size: 0.95rem !important;
197
+ align-items: center;
198
+ }
199
+
200
+ :deep(.v-field__append-inner) {
201
+ align-items: center;
202
+ padding-top: 0 !important;
203
+ padding-bottom: 0 !important;
204
+ height: 30px !important;
205
+ }
206
+
207
+ :deep(.v-field__append-inner .v-icon) {
208
+ font-size: 16px !important;
209
+ }
210
+
211
+ :deep(.v-field-label) {
212
+ font-size: 0.75rem !important;
213
+ top: 6px !important;
214
+ }
215
+
216
+ :deep(.v-field-label--floating) {
217
+ top: -8px !important;
218
+ font-size: 0.7rem !important;
219
+ }
184
220
  </style>
@@ -51,10 +51,8 @@ const size = computed({
51
51
  v-model="visibility"
52
52
  />
53
53
  <template v-if="visibility">
54
- <v-row class="pa-0" align="center">
55
- <v-divider />
56
- <ViewerOptionsSizeSlider data-testid="modelPointsSizeSlider" v-model="size" />
57
- </v-row>
54
+ <v-divider class="my-2" />
55
+ <ViewerOptionsSizeSlider data-testid="modelPointsSizeSlider" v-model="size" />
58
56
  </template>
59
57
  </template>
60
58
  </ViewerContextMenuItem>
@@ -210,51 +210,41 @@ const polygonSchema = back_schemas.opengeodeweb_back.model_component_polygon_att
210
210
  </script>
211
211
 
212
212
  <template>
213
- <div>
214
- <OptionsSection title="Surfaces Options" class="mt-6">
215
- <VisibilitySwitch v-model="surfacesVisibility" />
216
- <v-row class="mt-2 pa-0">
217
- <v-col class="pa-0">
218
- <ViewerOptionsColoringTypeSelector
219
- :id="modelId"
220
- :componentId="targetSurfaceIds[0]"
221
- v-model:coloring_style_key="surfacesColorMode"
222
- v-model:color="surfacesColor"
223
- v-model:vertex_attribute_name="surfacesVertexAttributeName"
224
- v-model:vertex_attribute_range="surfacesVertexAttributeRange"
225
- v-model:vertex_attribute_color_map="surfacesVertexAttributeColorMap"
226
- v-model:polygon_attribute_name="surfacesPolygonAttributeName"
227
- v-model:polygon_attribute_range="surfacesPolygonAttributeRange"
228
- v-model:polygon_attribute_color_map="surfacesPolygonAttributeColorMap"
229
- :capabilities="capabilities"
230
- :schemas="{ vertex: vertexSchema, polygon: polygonSchema }"
231
- :allowRandom="true"
232
- />
233
- </v-col>
234
- </v-row>
235
- </OptionsSection>
236
-
237
- <OptionsSection v-if="surfaceId" title="Component Options" class="mt-6">
238
- <VisibilitySwitch v-model="surfaceVisibility" />
239
- <v-row class="mt-2 pa-0">
240
- <v-col class="pa-0">
241
- <ViewerOptionsColoringTypeSelector
242
- :id="modelId"
243
- :componentId="surfaceId"
244
- v-model:coloring_style_key="surfaceColorMode"
245
- v-model:color="surfaceColor"
246
- v-model:vertex_attribute_name="vertexAttributeName"
247
- v-model:vertex_attribute_range="vertexAttributeRange"
248
- v-model:vertex_attribute_color_map="vertexAttributeColorMap"
249
- v-model:polygon_attribute_name="polygonAttributeName"
250
- v-model:polygon_attribute_range="polygonAttributeRange"
251
- v-model:polygon_attribute_color_map="polygonAttributeColorMap"
252
- :capabilities="capabilities"
253
- :schemas="{ vertex: vertexSchema, polygon: polygonSchema }"
254
- :allowRandom="true"
255
- />
256
- </v-col>
257
- </v-row>
258
- </OptionsSection>
259
- </div>
213
+ <OptionsSection title="Surfaces Options" class="mt-4">
214
+ <VisibilitySwitch v-model="surfacesVisibility" />
215
+ <ViewerOptionsColoringTypeSelector
216
+ :id="modelId"
217
+ :componentId="targetSurfaceIds[0]"
218
+ v-model:coloring_style_key="surfacesColorMode"
219
+ v-model:color="surfacesColor"
220
+ v-model:vertex_attribute_name="surfacesVertexAttributeName"
221
+ v-model:vertex_attribute_range="surfacesVertexAttributeRange"
222
+ v-model:vertex_attribute_color_map="surfacesVertexAttributeColorMap"
223
+ v-model:polygon_attribute_name="surfacesPolygonAttributeName"
224
+ v-model:polygon_attribute_range="surfacesPolygonAttributeRange"
225
+ v-model:polygon_attribute_color_map="surfacesPolygonAttributeColorMap"
226
+ :capabilities="capabilities"
227
+ :schemas="{ vertex: vertexSchema, polygon: polygonSchema }"
228
+ :allowRandom="true"
229
+ />
230
+ </OptionsSection>
231
+
232
+ <OptionsSection v-if="surfaceId" title="Component Options" class="mt-4">
233
+ <VisibilitySwitch v-model="surfaceVisibility" />
234
+ <ViewerOptionsColoringTypeSelector
235
+ :id="modelId"
236
+ :componentId="surfaceId"
237
+ v-model:coloring_style_key="surfaceColorMode"
238
+ v-model:color="surfaceColor"
239
+ v-model:vertex_attribute_name="vertexAttributeName"
240
+ v-model:vertex_attribute_range="vertexAttributeRange"
241
+ v-model:vertex_attribute_color_map="vertexAttributeColorMap"
242
+ v-model:polygon_attribute_name="polygonAttributeName"
243
+ v-model:polygon_attribute_range="polygonAttributeRange"
244
+ v-model:polygon_attribute_color_map="polygonAttributeColorMap"
245
+ :capabilities="capabilities"
246
+ :schemas="{ vertex: vertexSchema, polygon: polygonSchema }"
247
+ :allowRandom="true"
248
+ />
249
+ </OptionsSection>
260
250
  </template>
@@ -11,8 +11,8 @@ const colorMap = defineModel("colorMap", { type: String });
11
11
  <template>
12
12
  <div class="attribute-colorbar mt-3">
13
13
  <ColorMapPicker v-model:selected-preset-name="colorMap" :min="minimum" :max="maximum" />
14
- <v-row dense align="center" class="mt-2">
15
- <v-col cols="5">
14
+ <v-row dense align="center" class="mt-2" no-gutters>
15
+ <v-col cols="5" class="pe-1">
16
16
  <v-text-field
17
17
  :model-value="minimum"
18
18
  @update:model-value="(value) => (minimum = Number(value))"
@@ -33,7 +33,7 @@ const colorMap = defineModel("colorMap", { type: String });
33
33
  v-tooltip="'Reset range'"
34
34
  />
35
35
  </v-col>
36
- <v-col cols="5">
36
+ <v-col cols="5" class="ps-1">
37
37
  <v-text-field
38
38
  :model-value="maximum"
39
39
  @update:model-value="(value) => (maximum = Number(value))"
@@ -109,6 +109,7 @@ watch(name, (newName, oldName) => {
109
109
  item-value="attribute_name"
110
110
  density="compact"
111
111
  label="Select an attribute"
112
+ hide-details
112
113
  />
113
114
  <ViewerOptionsAttributeColorBar
114
115
  v-if="name"
@@ -41,9 +41,25 @@ watch(pressed, (value) => {
41
41
  ref="colorPickerRef"
42
42
  v-model="vuetifyColor"
43
43
  flat
44
- canvas-height="100"
44
+ canvas-height="75"
45
45
  hide-inputs
46
- width="100%"
46
+ width="220"
47
47
  mode="rgba"
48
+ class="mx-auto"
48
49
  />
49
50
  </template>
51
+
52
+ <style scoped>
53
+ :deep(.v-color-picker__controls) {
54
+ padding: 8px !important;
55
+ }
56
+
57
+ :deep(.v-color-picker__dot) {
58
+ width: 18px !important;
59
+ height: 18px !important;
60
+ }
61
+
62
+ :deep(.v-color-picker__preview) {
63
+ margin-bottom: 0 !important;
64
+ }
65
+ </style>
@@ -161,85 +161,79 @@ watch(
161
161
  );
162
162
  </script>
163
163
  <template>
164
- <v-row justify="center" align="center">
165
- <v-divider />
164
+ <v-divider class="my-2 mx-2" />
165
+ <v-row justify="center" align="center" no-gutters class="px-2">
166
+ <v-col cols="auto" class="mr-2">
167
+ <v-icon size="18" icon="mdi-format-color-fill" v-tooltip:left="'Coloring'" />
168
+ </v-col>
166
169
  <v-col>
167
- <v-row justify="center" align="center">
168
- <v-col cols="auto">
169
- <v-icon size="30" icon="mdi-format-color-fill" v-tooltip:left="'Coloring'" />
170
- </v-col>
171
- <v-col>
172
- <v-select
173
- v-model="coloring_style_label"
174
- :items="coloring_styles.labels"
175
- label="Select a coloring style"
176
- density="compact"
177
- />
178
- </v-col>
179
- </v-row>
180
- <v-row>
181
- <v-spacer />
182
- <v-col cols="10">
183
- <template v-if="coloring_style_key === color_dict['value']">
184
- <ViewerOptionsColorPicker v-model="color" />
185
- </template>
186
- <template v-if="coloring_style_key === textures_dict['value']">
187
- <ViewerOptionsTexturesSelector v-model="textures" :id="id" />
188
- </template>
189
- <template v-if="coloring_style_key === vertex_dict['value'] && hasColorMap('vertex')">
190
- <ViewerOptionsAttributeSelector
191
- v-model:name="vertex_attribute_name"
192
- v-model:range="vertex_attribute_range"
193
- v-model:colorMap="vertex_attribute_color_map"
194
- :id="id"
195
- :componentId="componentId"
196
- :schema="vertexSchema"
197
- />
198
- </template>
199
- <template v-if="coloring_style_key === edge_dict['value'] && hasColorMap('edge')">
200
- <ViewerOptionsAttributeSelector
201
- v-model:name="edge_attribute_name"
202
- v-model:range="edge_attribute_range"
203
- v-model:colorMap="edge_attribute_color_map"
204
- :id="id"
205
- :componentId="componentId"
206
- :schema="edgeSchema"
207
- />
208
- </template>
209
- <template v-if="coloring_style_key === cell_dict['value'] && hasColorMap('cell')">
210
- <ViewerOptionsAttributeSelector
211
- v-model:name="cell_attribute_name"
212
- v-model:range="cell_attribute_range"
213
- v-model:colorMap="cell_attribute_color_map"
214
- :id="id"
215
- :componentId="componentId"
216
- :schema="cellSchema"
217
- />
218
- </template>
219
- <template v-if="coloring_style_key === polygon_dict['value'] && hasColorMap('polygon')">
220
- <ViewerOptionsAttributeSelector
221
- v-model:name="polygon_attribute_name"
222
- v-model:range="polygon_attribute_range"
223
- v-model:colorMap="polygon_attribute_color_map"
224
- :id="id"
225
- :componentId="componentId"
226
- :schema="polygonSchema"
227
- />
228
- </template>
229
- <template
230
- v-if="coloring_style_key === polyhedron_dict['value'] && hasColorMap('polyhedron')"
231
- >
232
- <ViewerOptionsAttributeSelector
233
- v-model:name="polyhedron_attribute_name"
234
- v-model:range="polyhedron_attribute_range"
235
- v-model:colorMap="polyhedron_attribute_color_map"
236
- :id="id"
237
- :componentId="componentId"
238
- :schema="polyhedronSchema"
239
- />
240
- </template>
241
- </v-col>
242
- </v-row>
170
+ <v-select
171
+ v-model="coloring_style_label"
172
+ :items="coloring_styles.labels"
173
+ label="Select a coloring style"
174
+ density="compact"
175
+ hide-details
176
+ />
177
+ </v-col>
178
+ </v-row>
179
+ <v-row class="mt-3 px-2" no-gutters>
180
+ <v-col cols="12" class="ps-7 pe-1">
181
+ <template v-if="coloring_style_key === color_dict['value']">
182
+ <ViewerOptionsColorPicker v-model="color" />
183
+ </template>
184
+ <template v-if="coloring_style_key === textures_dict['value']">
185
+ <ViewerOptionsTexturesSelector v-model="textures" :id="id" />
186
+ </template>
187
+ <template v-if="coloring_style_key === vertex_dict['value'] && hasColorMap('vertex')">
188
+ <ViewerOptionsAttributeSelector
189
+ v-model:name="vertex_attribute_name"
190
+ v-model:range="vertex_attribute_range"
191
+ v-model:colorMap="vertex_attribute_color_map"
192
+ :id="id"
193
+ :componentId="componentId"
194
+ :schema="vertexSchema"
195
+ />
196
+ </template>
197
+ <template v-if="coloring_style_key === edge_dict['value'] && hasColorMap('edge')">
198
+ <ViewerOptionsAttributeSelector
199
+ v-model:name="edge_attribute_name"
200
+ v-model:range="edge_attribute_range"
201
+ v-model:colorMap="edge_attribute_color_map"
202
+ :id="id"
203
+ :componentId="componentId"
204
+ :schema="edgeSchema"
205
+ />
206
+ </template>
207
+ <template v-if="coloring_style_key === cell_dict['value'] && hasColorMap('cell')">
208
+ <ViewerOptionsAttributeSelector
209
+ v-model:name="cell_attribute_name"
210
+ v-model:range="cell_attribute_range"
211
+ v-model:colorMap="cell_attribute_color_map"
212
+ :id="id"
213
+ :componentId="componentId"
214
+ :schema="cellSchema"
215
+ />
216
+ </template>
217
+ <template v-if="coloring_style_key === polygon_dict['value'] && hasColorMap('polygon')">
218
+ <ViewerOptionsAttributeSelector
219
+ v-model:name="polygon_attribute_name"
220
+ v-model:range="polygon_attribute_range"
221
+ v-model:colorMap="polygon_attribute_color_map"
222
+ :id="id"
223
+ :componentId="componentId"
224
+ :schema="polygonSchema"
225
+ />
226
+ </template>
227
+ <template v-if="coloring_style_key === polyhedron_dict['value'] && hasColorMap('polyhedron')">
228
+ <ViewerOptionsAttributeSelector
229
+ v-model:name="polyhedron_attribute_name"
230
+ v-model:range="polyhedron_attribute_range"
231
+ v-model:colorMap="polyhedron_attribute_color_map"
232
+ :id="id"
233
+ :componentId="componentId"
234
+ :schema="polyhedronSchema"
235
+ />
236
+ </template>
243
237
  </v-col>
244
238
  </v-row>
245
239
  </template>
@@ -14,7 +14,7 @@ const isCollapsed = ref(false);
14
14
  mdi-chevron-down
15
15
  </v-icon>
16
16
  </div>
17
- <v-container v-show="!isCollapsed" class="pa-2">
17
+ <v-container v-show="!isCollapsed" class="pa-0">
18
18
  <slot />
19
19
  </v-container>
20
20
  </div>
@@ -24,18 +24,18 @@ const isCollapsed = ref(false);
24
24
  .options-section {
25
25
  position: relative;
26
26
  border: 1px solid rgba(255, 255, 255, 0.2);
27
- border-radius: 12px;
28
- padding: 12px 8px 8px 8px;
27
+ border-radius: 8px;
28
+ padding: 8px 4px 6px 4px;
29
29
  }
30
30
 
31
31
  .section-badge {
32
32
  position: absolute;
33
- top: -12px;
34
- left: 16px;
33
+ top: -10px;
34
+ left: 12px;
35
35
  background-color: rgba(255, 255, 255, 0.1);
36
36
  backdrop-filter: blur(8px);
37
- padding: 2px 12px;
38
- font-size: 0.7rem;
37
+ padding: 1px 8px;
38
+ font-size: 0.65rem;
39
39
  font-weight: 700;
40
40
  text-transform: uppercase;
41
41
  letter-spacing: 0.5px;
@@ -8,10 +8,12 @@ const { tooltip } = defineProps({
8
8
  </script>
9
9
 
10
10
  <template>
11
- <v-col cols="auto" justify="center">
12
- <v-icon size="30" icon="mdi-ruler" v-tooltip:left="tooltip" />
13
- </v-col>
14
- <v-col justify="center">
15
- <BasicSlider v-model="model" />
16
- </v-col>
11
+ <v-row align="center" no-gutters class="px-2">
12
+ <v-col cols="auto" class="mr-2">
13
+ <v-icon size="18" icon="mdi-ruler" v-tooltip:left="tooltip" />
14
+ </v-col>
15
+ <v-col>
16
+ <BasicSlider v-model="model" />
17
+ </v-col>
18
+ </v-row>
17
19
  </template>
@@ -71,12 +71,13 @@ watch(texture_id, (value) => {
71
71
  </style>
72
72
 
73
73
  <template>
74
- <v-col cols="7" class="pa-1 ml-3">
74
+ <v-col cols="8" class="pa-1">
75
75
  <v-select
76
76
  v-model="texture_name"
77
77
  :items="texture_coordinates"
78
78
  label="Select a texture"
79
79
  density="compact"
80
+ hide-details
80
81
  />
81
82
  </v-col>
82
83
  <v-badge
@@ -5,11 +5,11 @@ const visibility = defineModel();
5
5
  </script>
6
6
 
7
7
  <template>
8
- <v-row class="pa-0" align="center">
9
- <v-col cols="auto" justify="center">
10
- <v-icon size="30" icon="mdi-eye" v-tooltip:left="'Visibility'" />
8
+ <v-row class="pa-0 px-2" align="center" no-gutters>
9
+ <v-col cols="auto" class="mr-2">
10
+ <v-icon size="18" icon="mdi-eye" v-tooltip:left="'Visibility'" />
11
11
  </v-col>
12
- <v-col cols="auto" justify="center">
12
+ <v-col cols="auto">
13
13
  <BasicSwitch v-model="visibility" />
14
14
  </v-col>
15
15
  </v-row>
@@ -95,28 +95,17 @@ const vertex_attribute_color_map = computed({
95
95
  v-model="visibility"
96
96
  />
97
97
  <template v-if="visibility">
98
- <v-row class="pa-0" align="center">
99
- <v-divider />
100
- <v-col cols="auto" justify="center">
101
- <v-icon size="30" icon="mdi-ruler" v-tooltip:left="'Size'" />
102
- </v-col>
103
- <v-col justify="center">
104
- <v-slider v-model="size" hide-details min="0" max="20" step="2" />
105
- </v-col>
106
- </v-row>
107
- <v-row>
108
- <v-col>
109
- <ViewerOptionsColoringTypeSelector
110
- :id="id"
111
- v-model:coloring_style_key="coloring_style_key"
112
- v-model:color="color"
113
- v-model:vertex_attribute_name="vertex_attribute_name"
114
- v-model:vertex_attribute_range="vertex_attribute_range"
115
- v-model:vertex_attribute_color_map="vertex_attribute_color_map"
116
- :vertex_has_colormap="true"
117
- />
118
- </v-col>
119
- </v-row>
98
+ <v-divider class="my-2" />
99
+ <ViewerOptionsSizeSlider v-model="size" />
100
+ <ViewerOptionsColoringTypeSelector
101
+ :id="id"
102
+ v-model:coloring_style_key="coloring_style_key"
103
+ v-model:color="color"
104
+ v-model:vertex_attribute_name="vertex_attribute_name"
105
+ v-model:vertex_attribute_range="vertex_attribute_range"
106
+ v-model:vertex_attribute_color_map="vertex_attribute_color_map"
107
+ :vertex_has_colormap="true"
108
+ />
120
109
  </template>
121
110
  </template>
122
111
  </ViewerContextMenuItem>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-front",
3
- "version": "10.23.0-rc.3",
3
+ "version": "10.23.0-rc.4",
4
4
  "description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
5
5
  "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Front",
6
6
  "bugs": {