@geode/opengeodeweb-front 10.30.0-rc.12 → 10.30.0-rc.15
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/app/components/Viewer/Generic/Model/BlocksOptions.vue +2 -2
- package/app/components/Viewer/Generic/Model/CornersOptions.vue +2 -2
- package/app/components/Viewer/Generic/Model/LinesOptions.vue +2 -2
- package/app/components/Viewer/Generic/Model/SurfacesOptions.vue +2 -2
- package/app/components/Viewer/ObjectTree/Base/CommonTreeView.vue +1 -0
- package/app/components/Viewer/ObjectTree/Base/TreeRow.vue +8 -0
- package/app/components/Viewer/ObjectTree/Views/GlobalObjects.vue +3 -0
- package/app/components/Viewer/Options/AttributeSelector.vue +13 -6
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +7 -7
- package/nuxt.config.js +0 -6
- package/package.json +1 -1
|
@@ -238,7 +238,7 @@ const polyhedronSchema = back_schemas.opengeodeweb_back.model_component_polyhedr
|
|
|
238
238
|
<VisibilitySwitch data-testid="modelBlocksVisibilitySwitch" v-model="blocksVisibility" />
|
|
239
239
|
<ViewerOptionsColoringTypeSelector
|
|
240
240
|
:id="modelId"
|
|
241
|
-
:
|
|
241
|
+
:componentIds="targetBlockIds"
|
|
242
242
|
v-model:coloring_style_key="blocksActiveColoring"
|
|
243
243
|
v-model:color="blocksColor"
|
|
244
244
|
v-model:vertex_attribute_name="blocksVertexAttributeName"
|
|
@@ -259,7 +259,7 @@ const polyhedronSchema = back_schemas.opengeodeweb_back.model_component_polyhedr
|
|
|
259
259
|
<VisibilitySwitch v-model="blockVisibility" />
|
|
260
260
|
<ViewerOptionsColoringTypeSelector
|
|
261
261
|
:id="modelId"
|
|
262
|
-
:
|
|
262
|
+
:componentIds="[blockId]"
|
|
263
263
|
v-model:coloring_style_key="blockActiveColoring"
|
|
264
264
|
v-model:color="blockColor"
|
|
265
265
|
v-model:vertex_attribute_name="vertexAttributeName"
|
|
@@ -159,7 +159,7 @@ const vertexSchema = back_schemas.opengeodeweb_back.model_component_vertex_attri
|
|
|
159
159
|
<VisibilitySwitch data-testid="modelCornersVisibilitySwitch" v-model="cornersVisibility" />
|
|
160
160
|
<ViewerOptionsColoringTypeSelector
|
|
161
161
|
:id="modelId"
|
|
162
|
-
:
|
|
162
|
+
:componentIds="targetCornerIds"
|
|
163
163
|
v-model:coloring_style_key="cornersActiveColoring"
|
|
164
164
|
v-model:color="cornersColor"
|
|
165
165
|
v-model:vertex_attribute_name="cornersVertexAttributeName"
|
|
@@ -176,7 +176,7 @@ const vertexSchema = back_schemas.opengeodeweb_back.model_component_vertex_attri
|
|
|
176
176
|
<VisibilitySwitch v-model="cornerVisibility" />
|
|
177
177
|
<ViewerOptionsColoringTypeSelector
|
|
178
178
|
:id="modelId"
|
|
179
|
-
:
|
|
179
|
+
:componentIds="[cornerId]"
|
|
180
180
|
v-model:coloring_style_key="cornerActiveColoring"
|
|
181
181
|
v-model:color="cornerColor"
|
|
182
182
|
v-model:vertex_attribute_name="vertexAttributeName"
|
|
@@ -234,7 +234,7 @@ const edgeSchema = back_schemas.opengeodeweb_back.model_component_edge_attribute
|
|
|
234
234
|
<VisibilitySwitch data-testid="modelLinesVisibilitySwitch" v-model="linesVisibility" />
|
|
235
235
|
<ViewerOptionsColoringTypeSelector
|
|
236
236
|
:id="modelId"
|
|
237
|
-
:
|
|
237
|
+
:componentIds="targetLineIds"
|
|
238
238
|
v-model:coloring_style_key="linesActiveColoring"
|
|
239
239
|
v-model:color="linesColor"
|
|
240
240
|
v-model:vertex_attribute_name="linesVertexAttributeName"
|
|
@@ -255,7 +255,7 @@ const edgeSchema = back_schemas.opengeodeweb_back.model_component_edge_attribute
|
|
|
255
255
|
<VisibilitySwitch v-model="lineVisibility" />
|
|
256
256
|
<ViewerOptionsColoringTypeSelector
|
|
257
257
|
:id="modelId"
|
|
258
|
-
:
|
|
258
|
+
:componentIds="[lineId]"
|
|
259
259
|
v-model:coloring_style_key="lineActiveColoring"
|
|
260
260
|
v-model:color="lineColor"
|
|
261
261
|
v-model:vertex_attribute_name="vertexAttributeName"
|
|
@@ -242,7 +242,7 @@ const polygonSchema = back_schemas.opengeodeweb_back.model_component_polygon_att
|
|
|
242
242
|
<VisibilitySwitch data-testid="modelSurfacesVisibilitySwitch" v-model="surfacesVisibility" />
|
|
243
243
|
<ViewerOptionsColoringTypeSelector
|
|
244
244
|
:id="modelId"
|
|
245
|
-
:
|
|
245
|
+
:componentIds="targetSurfaceIds"
|
|
246
246
|
v-model:coloring_style_key="surfacesActiveColoring"
|
|
247
247
|
v-model:color="surfacesColor"
|
|
248
248
|
v-model:vertex_attribute_name="surfacesVertexAttributeName"
|
|
@@ -263,7 +263,7 @@ const polygonSchema = back_schemas.opengeodeweb_back.model_component_polygon_att
|
|
|
263
263
|
<VisibilitySwitch v-model="surfaceVisibility" />
|
|
264
264
|
<ViewerOptionsColoringTypeSelector
|
|
265
265
|
:id="modelId"
|
|
266
|
-
:
|
|
266
|
+
:componentIds="[surfaceId]"
|
|
267
267
|
v-model:coloring_style_key="surfaceActiveColoring"
|
|
268
268
|
v-model:color="surfaceColor"
|
|
269
269
|
v-model:vertex_attribute_name="vertexAttributeName"
|
|
@@ -48,6 +48,7 @@ function handleRowClick(event) {
|
|
|
48
48
|
<div class="d-flex align-center flex-shrink-0">
|
|
49
49
|
<v-icon
|
|
50
50
|
v-if="!item.isLeaf"
|
|
51
|
+
:data-testid="item.isOpen ? 'collapseTreeRowButton' : 'expandTreeRowButton'"
|
|
51
52
|
:icon="item.isOpen ? 'mdi-menu-down' : 'mdi-menu-right'"
|
|
52
53
|
class="me-1"
|
|
53
54
|
color="black"
|
|
@@ -69,6 +70,13 @@ function handleRowClick(event) {
|
|
|
69
70
|
/>
|
|
70
71
|
<v-btn
|
|
71
72
|
v-else-if="showEyeButton"
|
|
73
|
+
:data-testid="
|
|
74
|
+
getIndeterminate(item.raw)
|
|
75
|
+
? 'indeterminateObjectEyeButton'
|
|
76
|
+
: isSelected(item.raw)
|
|
77
|
+
? 'visibleObjectEyeButton'
|
|
78
|
+
: 'hiddenObjectEyeButton'
|
|
79
|
+
"
|
|
72
80
|
:icon="
|
|
73
81
|
getIndeterminate(item.raw)
|
|
74
82
|
? 'mdi-eye-minus-outline'
|
|
@@ -182,6 +182,7 @@ function expandAll() {
|
|
|
182
182
|
<template v-if="item.geode_object_type !== 'HorizonStack3D'">
|
|
183
183
|
<v-btn
|
|
184
184
|
v-if="item.viewer_type"
|
|
185
|
+
data-testid="focusObjectButton"
|
|
185
186
|
icon="mdi-target"
|
|
186
187
|
size="medium"
|
|
187
188
|
variant="text"
|
|
@@ -190,6 +191,7 @@ function expandAll() {
|
|
|
190
191
|
/>
|
|
191
192
|
<v-btn
|
|
192
193
|
v-if="isModel(item)"
|
|
194
|
+
data-testid="expandModelComponentsButton"
|
|
193
195
|
icon="mdi-magnify-expand"
|
|
194
196
|
size="medium"
|
|
195
197
|
class="ml-2"
|
|
@@ -206,6 +208,7 @@ function expandAll() {
|
|
|
206
208
|
/>
|
|
207
209
|
<v-btn
|
|
208
210
|
v-if="isModel(item) && hasCollectionsMap[item.id]"
|
|
211
|
+
data-testid="expandModelCollectionsButton"
|
|
209
212
|
icon="mdi-format-list-group"
|
|
210
213
|
size="medium"
|
|
211
214
|
class="ml-2"
|
|
@@ -9,9 +9,9 @@ const attributeItem = defineModel("attributeItem", { type: Number });
|
|
|
9
9
|
const attributeRange = defineModel("attributeRange", { type: Array });
|
|
10
10
|
const attributeColorMap = defineModel("attributeColorMap", { type: String });
|
|
11
11
|
|
|
12
|
-
const { id,
|
|
12
|
+
const { id, componentIds, schema } = defineProps({
|
|
13
13
|
id: { type: String, required: true },
|
|
14
|
-
|
|
14
|
+
componentIds: { type: Array, default: undefined },
|
|
15
15
|
schema: { type: Object, required: true },
|
|
16
16
|
});
|
|
17
17
|
|
|
@@ -64,14 +64,21 @@ function resetRange() {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
function hasSelectedComponent(components) {
|
|
68
|
+
return Array.isArray(components) && components.length > 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
67
71
|
function getAttributes() {
|
|
68
|
-
|
|
72
|
+
const requiresComponent = schema.properties.component_ids !== undefined;
|
|
73
|
+
if (requiresComponent && !hasSelectedComponent(componentIds)) {
|
|
69
74
|
return;
|
|
70
75
|
}
|
|
76
|
+
|
|
71
77
|
const params = { id };
|
|
72
|
-
if (
|
|
73
|
-
params.
|
|
78
|
+
if (requiresComponent) {
|
|
79
|
+
params.component_ids = componentIds;
|
|
74
80
|
}
|
|
81
|
+
|
|
75
82
|
backStore.request(
|
|
76
83
|
{ schema, params },
|
|
77
84
|
{
|
|
@@ -87,7 +94,7 @@ onMounted(() => {
|
|
|
87
94
|
});
|
|
88
95
|
|
|
89
96
|
watch(
|
|
90
|
-
() => [id,
|
|
97
|
+
() => [id, componentIds, schema],
|
|
91
98
|
() => {
|
|
92
99
|
getAttributes();
|
|
93
100
|
},
|
|
@@ -36,9 +36,9 @@ const polyhedron_attribute_color_map = defineModel("polyhedron_attribute_color_m
|
|
|
36
36
|
type: String,
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
const { id,
|
|
39
|
+
const { id, componentIds, capabilities, schemas, allowRandom } = defineProps({
|
|
40
40
|
id: { type: String, required: true },
|
|
41
|
-
|
|
41
|
+
componentIds: { type: Array, default: undefined },
|
|
42
42
|
capabilities: {
|
|
43
43
|
type: Object,
|
|
44
44
|
default: () => ({}),
|
|
@@ -215,7 +215,7 @@ watch(
|
|
|
215
215
|
v-model:attributeRange="vertex_attribute_range"
|
|
216
216
|
v-model:attributeColorMap="vertex_attribute_color_map"
|
|
217
217
|
:id="id"
|
|
218
|
-
:
|
|
218
|
+
:componentIds="componentIds"
|
|
219
219
|
:schema="vertexSchema"
|
|
220
220
|
/>
|
|
221
221
|
</template>
|
|
@@ -226,7 +226,7 @@ watch(
|
|
|
226
226
|
v-model:attributeRange="edge_attribute_range"
|
|
227
227
|
v-model:attributeColorMap="edge_attribute_color_map"
|
|
228
228
|
:id="id"
|
|
229
|
-
:
|
|
229
|
+
:componentIds="componentIds"
|
|
230
230
|
:schema="edgeSchema"
|
|
231
231
|
/>
|
|
232
232
|
</template>
|
|
@@ -237,7 +237,7 @@ watch(
|
|
|
237
237
|
v-model:attributeRange="cell_attribute_range"
|
|
238
238
|
v-model:attributeColorMap="cell_attribute_color_map"
|
|
239
239
|
:id="id"
|
|
240
|
-
:
|
|
240
|
+
:componentIds="componentIds"
|
|
241
241
|
:schema="cellSchema"
|
|
242
242
|
/>
|
|
243
243
|
</template>
|
|
@@ -248,7 +248,7 @@ watch(
|
|
|
248
248
|
v-model:attributeRange="polygon_attribute_range"
|
|
249
249
|
v-model:attributeColorMap="polygon_attribute_color_map"
|
|
250
250
|
:id="id"
|
|
251
|
-
:
|
|
251
|
+
:componentIds="componentIds"
|
|
252
252
|
:schema="polygonSchema"
|
|
253
253
|
/>
|
|
254
254
|
</template>
|
|
@@ -259,7 +259,7 @@ watch(
|
|
|
259
259
|
v-model:attributeRange="polyhedron_attribute_range"
|
|
260
260
|
v-model:attributeColorMap="polyhedron_attribute_color_map"
|
|
261
261
|
:id="id"
|
|
262
|
-
:
|
|
262
|
+
:componentIds="componentIds"
|
|
263
263
|
:schema="polyhedronSchema"
|
|
264
264
|
/>
|
|
265
265
|
</template>
|
package/nuxt.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geode/opengeodeweb-front",
|
|
3
|
-
"version": "10.30.0-rc.
|
|
3
|
+
"version": "10.30.0-rc.15",
|
|
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": {
|