@geode/opengeodeweb-front 10.2.1-rc.2 → 10.2.1-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/app/components/Carousel.vue +20 -20
  2. package/app/components/CrsSelector.vue +25 -25
  3. package/app/components/DragAndDrop.vue +31 -31
  4. package/app/components/ExtensionSelector.vue +56 -56
  5. package/app/components/FeedBack/ErrorBanner.vue +9 -9
  6. package/app/components/FeedBack/Snackers.vue +11 -11
  7. package/app/components/FileSelector.vue +9 -9
  8. package/app/components/FileUploader.vue +54 -54
  9. package/app/components/HybridRenderingView.vue +16 -16
  10. package/app/components/InfraConnected.vue +4 -4
  11. package/app/components/Inspector/InspectionButton.vue +16 -16
  12. package/app/components/Inspector/ResultPanel.vue +15 -15
  13. package/app/components/Launcher.vue +18 -18
  14. package/app/components/Loading.vue +26 -26
  15. package/app/components/MissingFilesSelector.vue +44 -44
  16. package/app/components/ObjectSelector.vue +50 -50
  17. package/app/components/PackagesVersions.vue +20 -20
  18. package/app/components/Recaptcha.vue +40 -40
  19. package/app/components/RemoteRenderingView.vue +22 -22
  20. package/app/components/Step.vue +46 -46
  21. package/app/components/Stepper.vue +8 -8
  22. package/app/components/VeaseViewToolbar.vue +28 -28
  23. package/app/components/ViewToolbar.vue +22 -22
  24. package/app/components/Viewer/BreadCrumb.vue +20 -20
  25. package/app/components/Viewer/ContextMenu.vue +34 -34
  26. package/app/components/Viewer/EdgedCurve/PointsOptions.vue +7 -7
  27. package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +42 -42
  28. package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +22 -22
  29. package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +40 -40
  30. package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +41 -41
  31. package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +20 -20
  32. package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +19 -19
  33. package/app/components/Viewer/Generic/Model/EdgesOptions.vue +12 -12
  34. package/app/components/Viewer/Generic/Model/PointsOptions.vue +31 -31
  35. package/app/components/Viewer/Grid/2D/CellsOptions.vue +8 -8
  36. package/app/components/Viewer/Grid/2D/EdgesOptions.vue +7 -7
  37. package/app/components/Viewer/Grid/2D/PointsOptions.vue +7 -7
  38. package/app/components/Viewer/Grid/3D/CellsOptions.vue +8 -8
  39. package/app/components/Viewer/Grid/3D/EdgesOptions.vue +7 -7
  40. package/app/components/Viewer/Grid/3D/FacetsOptions.vue +8 -8
  41. package/app/components/Viewer/Grid/3D/PointsOptions.vue +7 -7
  42. package/app/components/Viewer/HybridSolid/EdgesOptions.vue +7 -7
  43. package/app/components/Viewer/HybridSolid/PointsOptions.vue +7 -7
  44. package/app/components/Viewer/HybridSolid/PolygonsOptions.vue +7 -7
  45. package/app/components/Viewer/HybridSolid/PolyhedraOptions.vue +7 -7
  46. package/app/components/Viewer/Options/CellAttributeSelector.vue +9 -9
  47. package/app/components/Viewer/Options/ColorPicker.vue +12 -12
  48. package/app/components/Viewer/Options/ColoringTypeSelector.vue +66 -66
  49. package/app/components/Viewer/Options/EdgeAttributeSelector.vue +21 -21
  50. package/app/components/Viewer/Options/PolygonAttributeSelector.vue +9 -9
  51. package/app/components/Viewer/Options/PolyhedronAttributeSelector.vue +9 -9
  52. package/app/components/Viewer/Options/TextureItem.vue +37 -37
  53. package/app/components/Viewer/Options/TexturesSelector.vue +30 -30
  54. package/app/components/Viewer/Options/VertexAttributeSelector.vue +9 -9
  55. package/app/components/Viewer/Options/VisibilitySwitch.vue +4 -4
  56. package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +41 -41
  57. package/app/components/Viewer/PolygonalSurface/EdgesOptions.vue +7 -7
  58. package/app/components/Viewer/PolygonalSurface/PointsOptions.vue +7 -7
  59. package/app/components/Viewer/PolygonalSurface/SpecificPolygonsOptions.vue +22 -22
  60. package/app/components/Viewer/Solid/EdgesOptions.vue +7 -7
  61. package/app/components/Viewer/Solid/PointsOptions.vue +7 -7
  62. package/app/components/Viewer/Solid/PolygonsOptions.vue +7 -7
  63. package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +21 -21
  64. package/app/components/Viewer/TetrahedralSolid/TetrahedraOptions.vue +8 -8
  65. package/app/components/Viewer/TetrahedralSolid/TrianglesOptions.vue +8 -8
  66. package/app/components/Viewer/Tree/ObjectTree.vue +39 -39
  67. package/app/components/Viewer/TreeComponent.vue +21 -21
  68. package/app/components/Viewer/TreeObject.vue +37 -37
  69. package/app/components/Viewer/TriangulatedSurface/EdgesOptions.vue +7 -7
  70. package/app/components/Viewer/TriangulatedSurface/PointsOptions.vue +7 -7
  71. package/app/components/Viewer/TriangulatedSurface/TrianglesOptions.vue +8 -8
  72. package/app/components/Wrapper.vue +15 -15
  73. package/package.json +1 -1
@@ -1,10 +1,3 @@
1
- <template>
2
- <ViewerGenericMeshEdgesOptions
3
- :itemProps="props.itemProps"
4
- :btn_image="Grid2D_Edges"
5
- />
6
- </template>
7
-
8
1
  <script setup>
9
2
  import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
10
3
  import Grid2D_Edges from "@ogw_front/assets/viewer_svgs/grid_2d_edges.svg"
@@ -13,3 +6,10 @@
13
6
  itemProps: { type: Object, required: true },
14
7
  })
15
8
  </script>
9
+
10
+ <template>
11
+ <ViewerGenericMeshEdgesOptions
12
+ :itemProps="props.itemProps"
13
+ :btn_image="Grid2D_Edges"
14
+ />
15
+ </template>
@@ -1,10 +1,3 @@
1
- <template>
2
- <ViewerGenericMeshPointsOptions
3
- :itemProps="props.itemProps"
4
- :btn_image="Grid2D_Points"
5
- />
6
- </template>
7
-
8
1
  <script setup>
9
2
  import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
10
3
  import Grid2D_Points from "@ogw_front/assets/viewer_svgs/grid_2d_points.svg"
@@ -13,3 +6,10 @@
13
6
  itemProps: { type: Object, required: true },
14
7
  })
15
8
  </script>
9
+
10
+ <template>
11
+ <ViewerGenericMeshPointsOptions
12
+ :itemProps="props.itemProps"
13
+ :btn_image="Grid2D_Points"
14
+ />
15
+ </template>
@@ -1,11 +1,3 @@
1
- <template>
2
- <ViewerGenericMeshCellsOptions
3
- :itemProps="props.itemProps"
4
- :btn_image="Grid3DCells"
5
- tooltip="Cells options"
6
- />
7
- </template>
8
-
9
1
  <script setup>
10
2
  import ViewerGenericMeshCellsOptions from "@ogw_front/components/Viewer/Generic/Mesh/CellsOptions"
11
3
  import Grid3DCells from "@ogw_front/assets/viewer_svgs/grid_3d_cells.svg"
@@ -14,3 +6,11 @@
14
6
  itemProps: { type: Object, required: true },
15
7
  })
16
8
  </script>
9
+
10
+ <template>
11
+ <ViewerGenericMeshCellsOptions
12
+ :itemProps="props.itemProps"
13
+ :btn_image="Grid3DCells"
14
+ tooltip="Cells options"
15
+ />
16
+ </template>
@@ -1,10 +1,3 @@
1
- <template>
2
- <ViewerGenericMeshEdgesOptions
3
- :itemProps="props.itemProps"
4
- :btn_image="Grid3D_Edges"
5
- />
6
- </template>
7
-
8
1
  <script setup>
9
2
  import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
10
3
  import Grid3D_Edges from "@ogw_front/assets/viewer_svgs/grid_3d_edges.svg"
@@ -13,3 +6,10 @@
13
6
  itemProps: { type: Object, required: true },
14
7
  })
15
8
  </script>
9
+
10
+ <template>
11
+ <ViewerGenericMeshEdgesOptions
12
+ :itemProps="props.itemProps"
13
+ :btn_image="Grid3D_Edges"
14
+ />
15
+ </template>
@@ -1,11 +1,3 @@
1
- <template>
2
- <ViewerGenericMeshPolygonsOptions
3
- :itemProps="props.itemProps"
4
- :btn_image="Grid3D_Facets"
5
- tooltip="Facets options"
6
- />
7
- </template>
8
-
9
1
  <script setup>
10
2
  import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions"
11
3
  import Grid3D_Facets from "@ogw_front/assets/viewer_svgs/grid_3d_facets.svg"
@@ -14,3 +6,11 @@
14
6
  itemProps: { type: Object, required: true },
15
7
  })
16
8
  </script>
9
+
10
+ <template>
11
+ <ViewerGenericMeshPolygonsOptions
12
+ :itemProps="props.itemProps"
13
+ :btn_image="Grid3D_Facets"
14
+ tooltip="Facets options"
15
+ />
16
+ </template>
@@ -1,10 +1,3 @@
1
- <template>
2
- <ViewerGenericMeshPointsOptions
3
- :itemProps="props.itemProps"
4
- :btn_image="Grid3D_Points"
5
- />
6
- </template>
7
-
8
1
  <script setup>
9
2
  import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
10
3
  import Grid3D_Points from "@ogw_front/assets/viewer_svgs/grid_3d_points.svg"
@@ -13,3 +6,10 @@
13
6
  itemProps: { type: Object, required: true },
14
7
  })
15
8
  </script>
9
+
10
+ <template>
11
+ <ViewerGenericMeshPointsOptions
12
+ :itemProps="props.itemProps"
13
+ :btn_image="Grid3D_Points"
14
+ />
15
+ </template>
@@ -1,10 +1,3 @@
1
- <template>
2
- <ViewerGenericMeshEdgesOptions
3
- :itemProps="props.itemProps"
4
- :btn_image="HybridSolidEdges"
5
- />
6
- </template>
7
-
8
1
  <script setup>
9
2
  import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
10
3
  import HybridSolidEdges from "@ogw_front/assets/viewer_svgs/solid_edges.svg"
@@ -13,3 +6,10 @@
13
6
  itemProps: { type: Object, required: true },
14
7
  })
15
8
  </script>
9
+
10
+ <template>
11
+ <ViewerGenericMeshEdgesOptions
12
+ :itemProps="props.itemProps"
13
+ :btn_image="HybridSolidEdges"
14
+ />
15
+ </template>
@@ -1,10 +1,3 @@
1
- <template>
2
- <ViewerGenericMeshPointsOptions
3
- :itemProps="props.itemProps"
4
- :btn_image="HybridSolidPoints"
5
- />
6
- </template>
7
-
8
1
  <script setup>
9
2
  import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
10
3
  import HybridSolidPoints from "@ogw_front/assets/viewer_svgs/solid_points.svg"
@@ -13,3 +6,10 @@
13
6
  itemProps: { type: Object, required: true },
14
7
  })
15
8
  </script>
9
+
10
+ <template>
11
+ <ViewerGenericMeshPointsOptions
12
+ :itemProps="props.itemProps"
13
+ :btn_image="HybridSolidPoints"
14
+ />
15
+ </template>
@@ -1,10 +1,3 @@
1
- <template>
2
- <ViewerGenericMeshPolygonsOptions
3
- :itemProps="props.itemProps"
4
- :btn_image="HybridSolidPolygons"
5
- />
6
- </template>
7
-
8
1
  <script setup>
9
2
  import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions"
10
3
  import HybridSolidPolygons from "@ogw_front/assets/viewer_svgs/solid_facets.svg"
@@ -13,3 +6,10 @@
13
6
  itemProps: { type: Object, required: true },
14
7
  })
15
8
  </script>
9
+
10
+ <template>
11
+ <ViewerGenericMeshPolygonsOptions
12
+ :itemProps="props.itemProps"
13
+ :btn_image="HybridSolidPolygons"
14
+ />
15
+ </template>
@@ -1,10 +1,3 @@
1
- <template>
2
- <ViewerGenericMeshPolyhedraOptions
3
- :itemProps="props.itemProps"
4
- :btn_image="HybridSolidPolyhedra"
5
- />
6
- </template>
7
-
8
1
  <script setup>
9
2
  import ViewerGenericMeshPolyhedraOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolyhedraOptions"
10
3
  import HybridSolidPolyhedra from "@ogw_front/assets/viewer_svgs/solid_polyhedra.svg"
@@ -13,3 +6,10 @@
13
6
  itemProps: { type: Object, required: true },
14
7
  })
15
8
  </script>
9
+
10
+ <template>
11
+ <ViewerGenericMeshPolyhedraOptions
12
+ :itemProps="props.itemProps"
13
+ :btn_image="HybridSolidPolyhedra"
14
+ />
15
+ </template>
@@ -1,12 +1,3 @@
1
- <template>
2
- <v-select
3
- v-model="cell_attribute_name"
4
- :items="cell_attribute_names"
5
- label="Select an attribute"
6
- density="compact"
7
- />
8
- </template>
9
-
10
1
  <script setup>
11
2
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
12
3
  import { useGeodeStore } from "@ogw_front/stores/geode"
@@ -50,3 +41,12 @@
50
41
  )
51
42
  }
52
43
  </script>
44
+
45
+ <template>
46
+ <v-select
47
+ v-model="cell_attribute_name"
48
+ :items="cell_attribute_names"
49
+ label="Select an attribute"
50
+ density="compact"
51
+ />
52
+ </template>
@@ -1,15 +1,3 @@
1
- <template>
2
- <v-color-picker
3
- ref="el"
4
- v-model="color"
5
- flat
6
- canvas-height="100"
7
- hide-inputs
8
- width="100%"
9
- mode="rgb"
10
- />
11
- </template>
12
-
13
1
  <script setup>
14
2
  const el = useTemplateRef("el")
15
3
  const model = defineModel()
@@ -23,3 +11,15 @@
23
11
  }
24
12
  })
25
13
  </script>
14
+
15
+ <template>
16
+ <v-color-picker
17
+ ref="el"
18
+ v-model="color"
19
+ flat
20
+ canvas-height="100"
21
+ hide-inputs
22
+ width="100%"
23
+ mode="rgb"
24
+ />
25
+ </template>
@@ -1,69 +1,3 @@
1
- <template>
2
- <v-row justify="center" align="center">
3
- <v-divider />
4
- <v-col>
5
- <v-row justify="center" align="center">
6
- <v-col cols="auto">
7
- <v-icon
8
- size="30"
9
- icon="mdi-format-color-fill"
10
- v-tooltip:left="'Coloring'"
11
- />
12
- </v-col>
13
- <v-col>
14
- <v-select
15
- v-model="coloring_style_label"
16
- :items="coloring_styles.labels"
17
- label="Select a coloring style"
18
- density="compact"
19
- />
20
- </v-col>
21
- </v-row>
22
- <v-row>
23
- <v-spacer />
24
- <v-col cols="10">
25
- <template v-if="coloring_style_key === color_dict['value']">
26
- <ViewerOptionsColorPicker v-model="color" />
27
- </template>
28
- <template v-if="coloring_style_key === textures_dict['value']">
29
- <ViewerOptionsTexturesSelector v-model="textures" :id="id" />
30
- </template>
31
- <template v-if="coloring_style_key === vertex_dict['value']">
32
- <ViewerOptionsVertexAttributeSelector
33
- v-model="vertex_attribute"
34
- :id="id"
35
- />
36
- </template>
37
- <template v-if="coloring_style_key === edge_dict['value']">
38
- <ViewerOptionsEdgeAttributeSelector
39
- v-model="edge_attribute"
40
- :id="id"
41
- />
42
- </template>
43
- <template v-if="coloring_style_key === cell_dict['value']">
44
- <ViewerOptionsCellAttributeSelector
45
- v-model="cell_attribute"
46
- :id="id"
47
- />
48
- </template>
49
- <template v-if="coloring_style_key === polygon_dict['value']">
50
- <ViewerOptionsPolygonAttributeSelector
51
- v-model="polygon_attribute"
52
- :id="id"
53
- />
54
- </template>
55
- <template v-if="coloring_style_key === polyhedron_dict['value']">
56
- <ViewerOptionsPolyhedronAttributeSelector
57
- v-model="polyhedron_attribute"
58
- :id="id"
59
- />
60
- </template>
61
- </v-col>
62
- </v-row>
63
- </v-col>
64
- </v-row>
65
- </template>
66
-
67
1
  <script setup>
68
2
  import ViewerOptionsColorPicker from "@ogw_front/components/Viewer/Options/ColorPicker"
69
3
  import ViewerOptionsTexturesSelector from "@ogw_front/components/Viewer/Options/TexturesSelector"
@@ -148,3 +82,69 @@
148
82
  coloring_styles.value.values[coloring_styles.value.labels.indexOf(value)]
149
83
  })
150
84
  </script>
85
+
86
+ <template>
87
+ <v-row justify="center" align="center">
88
+ <v-divider />
89
+ <v-col>
90
+ <v-row justify="center" align="center">
91
+ <v-col cols="auto">
92
+ <v-icon
93
+ size="30"
94
+ icon="mdi-format-color-fill"
95
+ v-tooltip:left="'Coloring'"
96
+ />
97
+ </v-col>
98
+ <v-col>
99
+ <v-select
100
+ v-model="coloring_style_label"
101
+ :items="coloring_styles.labels"
102
+ label="Select a coloring style"
103
+ density="compact"
104
+ />
105
+ </v-col>
106
+ </v-row>
107
+ <v-row>
108
+ <v-spacer />
109
+ <v-col cols="10">
110
+ <template v-if="coloring_style_key === color_dict['value']">
111
+ <ViewerOptionsColorPicker v-model="color" />
112
+ </template>
113
+ <template v-if="coloring_style_key === textures_dict['value']">
114
+ <ViewerOptionsTexturesSelector v-model="textures" :id="id" />
115
+ </template>
116
+ <template v-if="coloring_style_key === vertex_dict['value']">
117
+ <ViewerOptionsVertexAttributeSelector
118
+ v-model="vertex_attribute"
119
+ :id="id"
120
+ />
121
+ </template>
122
+ <template v-if="coloring_style_key === edge_dict['value']">
123
+ <ViewerOptionsEdgeAttributeSelector
124
+ v-model="edge_attribute"
125
+ :id="id"
126
+ />
127
+ </template>
128
+ <template v-if="coloring_style_key === cell_dict['value']">
129
+ <ViewerOptionsCellAttributeSelector
130
+ v-model="cell_attribute"
131
+ :id="id"
132
+ />
133
+ </template>
134
+ <template v-if="coloring_style_key === polygon_dict['value']">
135
+ <ViewerOptionsPolygonAttributeSelector
136
+ v-model="polygon_attribute"
137
+ :id="id"
138
+ />
139
+ </template>
140
+ <template v-if="coloring_style_key === polyhedron_dict['value']">
141
+ <ViewerOptionsPolyhedronAttributeSelector
142
+ v-model="polyhedron_attribute"
143
+ :id="id"
144
+ />
145
+ </template>
146
+ </v-col>
147
+ </v-row>
148
+ </v-col>
149
+ </v-row>
150
+ </template>
@@ -1,24 +1,3 @@
1
- <template>
2
- <v-row justify="center" align="center">
3
- <v-col cols="auto">
4
- <v-icon
5
- size="30"
6
- icon="mdi-ray-end-arrow"
7
- v-tooltip:left="'Edge Attribute'"
8
- />
9
- </v-col>
10
- <v-col>
11
- <v-select
12
- v-model="edge_attribute_name"
13
- :items="edge_attribute_names"
14
- label="Select an edge attribute"
15
- density="compact"
16
- hide-details
17
- />
18
- </v-col>
19
- </v-row>
20
- </template>
21
-
22
1
  <script setup>
23
2
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
24
3
  import { useGeodeStore } from "@ogw_front/stores/geode"
@@ -70,3 +49,24 @@
70
49
  },
71
50
  )
72
51
  </script>
52
+
53
+ <template>
54
+ <v-row justify="center" align="center">
55
+ <v-col cols="auto">
56
+ <v-icon
57
+ size="30"
58
+ icon="mdi-ray-end-arrow"
59
+ v-tooltip:left="'Edge Attribute'"
60
+ />
61
+ </v-col>
62
+ <v-col>
63
+ <v-select
64
+ v-model="edge_attribute_name"
65
+ :items="edge_attribute_names"
66
+ label="Select an edge attribute"
67
+ density="compact"
68
+ hide-details
69
+ />
70
+ </v-col>
71
+ </v-row>
72
+ </template>
@@ -1,12 +1,3 @@
1
- <template>
2
- <v-select
3
- v-model="polygon_attribute_name"
4
- :items="polygon_attribute_names"
5
- label="Select an attribute"
6
- density="compact"
7
- />
8
- </template>
9
-
10
1
  <script setup>
11
2
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
12
3
  import { useGeodeStore } from "@ogw_front/stores/geode"
@@ -50,3 +41,12 @@
50
41
  )
51
42
  }
52
43
  </script>
44
+
45
+ <template>
46
+ <v-select
47
+ v-model="polygon_attribute_name"
48
+ :items="polygon_attribute_names"
49
+ label="Select an attribute"
50
+ density="compact"
51
+ />
52
+ </template>
@@ -1,12 +1,3 @@
1
- <template>
2
- <v-select
3
- v-model="polyhedron_attribute_name"
4
- :items="polyhedron_attribute_names"
5
- label="Select an attribute"
6
- density="compact"
7
- />
8
- </template>
9
-
10
1
  <script setup>
11
2
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
12
3
  import { useGeodeStore } from "@ogw_front/stores/geode"
@@ -52,3 +43,12 @@
52
43
  )
53
44
  }
54
45
  </script>
46
+
47
+ <template>
48
+ <v-select
49
+ v-model="polyhedron_attribute_name"
50
+ :items="polyhedron_attribute_names"
51
+ label="Select an attribute"
52
+ density="compact"
53
+ />
54
+ </template>
@@ -1,40 +1,3 @@
1
- <template>
2
- <v-col cols="7" class="pa-1 ml-3">
3
- <v-select
4
- v-model="texture_name"
5
- :items="texture_coordinates"
6
- label="Select a texture"
7
- density="compact"
8
- />
9
- </v-col>
10
- <v-badge
11
- :model-value="texture_file_name != ''"
12
- color="white"
13
- floating
14
- dot
15
- offset-x="10"
16
- offset-y="10"
17
- >
18
- <v-col cols="1" class="ma-1" justify="center" align="center">
19
- <FileUploader
20
- @files_uploaded="files_uploaded_event($event, index)"
21
- :accept="['image/png', 'image/jpeg', 'image/bmp']"
22
- :auto_upload="true"
23
- :multiple="true"
24
- :mini="true"
25
- class="mt-2"
26
- />
27
- </v-col>
28
- </v-badge>
29
- <v-col v-if="texture_name == '' || texture_file_name == ''" cols="1">
30
- <v-icon
31
- size="20"
32
- icon="mdi-close-circle"
33
- v-tooltip:bottom="'Invalid texture'"
34
- />
35
- </v-col>
36
- </template>
37
-
38
1
  <script setup>
39
2
  import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
40
3
  import FileUploader from "@ogw_front/components/FileUploader"
@@ -107,3 +70,40 @@
107
70
  display: none;
108
71
  }
109
72
  </style>
73
+
74
+ <template>
75
+ <v-col cols="7" class="pa-1 ml-3">
76
+ <v-select
77
+ v-model="texture_name"
78
+ :items="texture_coordinates"
79
+ label="Select a texture"
80
+ density="compact"
81
+ />
82
+ </v-col>
83
+ <v-badge
84
+ :model-value="texture_file_name != ''"
85
+ color="white"
86
+ floating
87
+ dot
88
+ offset-x="10"
89
+ offset-y="10"
90
+ >
91
+ <v-col cols="1" class="ma-1" justify="center" align="center">
92
+ <FileUploader
93
+ @files_uploaded="files_uploaded_event($event, index)"
94
+ :accept="['image/png', 'image/jpeg', 'image/bmp']"
95
+ :auto_upload="true"
96
+ :multiple="true"
97
+ :mini="true"
98
+ class="mt-2"
99
+ />
100
+ </v-col>
101
+ </v-badge>
102
+ <v-col v-if="texture_name == '' || texture_file_name == ''" cols="1">
103
+ <v-icon
104
+ size="20"
105
+ icon="mdi-close-circle"
106
+ v-tooltip:bottom="'Invalid texture'"
107
+ />
108
+ </v-col>
109
+ </template>
@@ -1,3 +1,33 @@
1
+ <script setup>
2
+ import ViewerOptionsTextureItem from "@ogw_front/components/Viewer/Options/TextureItem"
3
+
4
+ const textures = defineModel()
5
+
6
+ const props = defineProps({
7
+ id: { type: String, required: true },
8
+ })
9
+
10
+ const internal_textures = ref([])
11
+
12
+ onMounted(() => {
13
+ if (textures.value != null) {
14
+ internal_textures.value = textures.value
15
+ } else {
16
+ internal_textures.value = [{ id: "", texture_name: "" }]
17
+ }
18
+ })
19
+
20
+ function update_value_event($event, index) {
21
+ internal_textures.value[index][$event.key] = $event.value
22
+ const filtered = internal_textures.value.filter((texture) => {
23
+ return texture.texture_name !== "" && texture.id !== ""
24
+ })
25
+ if (filtered.length !== 0) {
26
+ textures.value = filtered
27
+ }
28
+ }
29
+ </script>
30
+
1
31
  <template>
2
32
  <v-row
3
33
  v-for="(texture, index) in internal_textures"
@@ -34,33 +64,3 @@
34
64
  </v-col>
35
65
  </v-row>
36
66
  </template>
37
-
38
- <script setup>
39
- import ViewerOptionsTextureItem from "@ogw_front/components/Viewer/Options/TextureItem"
40
-
41
- const textures = defineModel()
42
-
43
- const props = defineProps({
44
- id: { type: String, required: true },
45
- })
46
-
47
- const internal_textures = ref([])
48
-
49
- onMounted(() => {
50
- if (textures.value != null) {
51
- internal_textures.value = textures.value
52
- } else {
53
- internal_textures.value = [{ id: "", texture_name: "" }]
54
- }
55
- })
56
-
57
- function update_value_event($event, index) {
58
- internal_textures.value[index][$event.key] = $event.value
59
- const filtered = internal_textures.value.filter((texture) => {
60
- return texture.texture_name !== "" && texture.id !== ""
61
- })
62
- if (filtered.length !== 0) {
63
- textures.value = filtered
64
- }
65
- }
66
- </script>