@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.
Files changed (260) hide show
  1. package/.build/shared/utils/response_handlers/load.js +5 -2
  2. package/.build/tests/browser/helpers/object_trees/main_object_tree.js +3 -3
  3. package/.build/tests/browser/helpers/object_trees/model_components_object_tree.js +2 -2
  4. package/.build/tests/browser/suites/model/surfaces.js +1 -1
  5. package/app/app.config.ts +28 -0
  6. package/app/assets/css/main.css +11 -0
  7. package/app/assets/geode_objects.ts +37 -108
  8. package/app/assets/img/geode_objects/HorizonStack3D.svg +10 -0
  9. package/app/components/ActionButton.vue +9 -2
  10. package/app/components/CameraManager/List.vue +6 -6
  11. package/app/components/CameraManager.vue +0 -1
  12. package/app/components/CameraOrientation.vue +12 -7
  13. package/app/components/ChromeTheme.vue +20 -0
  14. package/app/components/ClippingPlaneCard.vue +2 -3
  15. package/app/components/ClippingPlanes.vue +2 -2
  16. package/app/components/CrsSelector.vue +8 -8
  17. package/app/components/DeleteDialog.vue +12 -16
  18. package/app/components/DragAndDropInternal/DragAndDropInline.vue +7 -7
  19. package/app/components/DragAndDropInternal/DragAndDropOverlay.vue +87 -82
  20. package/app/components/ExtensionSelector.vue +21 -14
  21. package/app/components/FactorFilterPanel.vue +0 -1
  22. package/app/components/FeedBack/ErrorBanner.vue +8 -9
  23. package/app/components/FeedBack/Snackers.vue +5 -7
  24. package/app/components/FileUploader.vue +13 -21
  25. package/app/components/GlassCard.vue +3 -1
  26. package/app/components/HybridRenderingView.vue +2 -0
  27. package/app/components/HybridViewerTooltip.vue +4 -4
  28. package/app/components/Launcher.vue +1 -1
  29. package/app/components/Loading/EcoMessages.vue +17 -11
  30. package/app/components/Loading/Footer.vue +2 -2
  31. package/app/components/Loading/Header.vue +9 -4
  32. package/app/components/Loading/Progress.vue +7 -3
  33. package/app/components/Loading.vue +54 -46
  34. package/app/components/MissingFilesSelector.vue +5 -5
  35. package/app/components/ObjectSelector.vue +8 -15
  36. package/app/components/PackagesVersions.vue +1 -3
  37. package/app/components/ProjectCrs.vue +1 -1
  38. package/app/components/Screenshot.vue +23 -15
  39. package/app/components/SearchBar.vue +1 -3
  40. package/app/components/SliceCard.vue +1 -2
  41. package/app/components/Step.vue +1 -1
  42. package/app/components/Stepper.vue +13 -11
  43. package/app/components/ThresholdCard.vue +1 -1
  44. package/app/components/ThresholdFilter.vue +2 -2
  45. package/app/components/TimeSeriesTargetSelector.vue +3 -6
  46. package/app/components/ToolPanel.vue +3 -9
  47. package/app/components/Viewer/Basemap/CropOptions.vue +1 -1
  48. package/app/components/Viewer/Basemap/OpacityOptions.vue +1 -1
  49. package/app/components/Viewer/ContextMenu/CenterButton.vue +9 -3
  50. package/app/components/Viewer/ContextMenu/ContextMenu.vue +1 -1
  51. package/app/components/Viewer/ContextMenu/ContextMenuItem.vue +17 -6
  52. package/app/components/Viewer/ContextMenu/InfoCard.vue +12 -13
  53. package/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue +12 -9
  54. package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +2 -2
  55. package/app/components/Viewer/Generic/Mesh/CellsColoring.vue +12 -9
  56. package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +1 -1
  57. package/app/components/Viewer/Generic/Mesh/EdgesColoring.vue +12 -9
  58. package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +3 -3
  59. package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +12 -8
  60. package/app/components/Viewer/Generic/Mesh/PolygonsColoring.vue +12 -9
  61. package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +1 -1
  62. package/app/components/Viewer/Generic/Mesh/PolyhedraColoring.vue +12 -9
  63. package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +1 -1
  64. package/app/components/Viewer/Generic/Model/BlocksOptions.vue +16 -17
  65. package/app/components/Viewer/Generic/Model/ComponentEdgesOptions.vue +11 -6
  66. package/app/components/Viewer/Generic/Model/ComponentPointsOptions.vue +11 -6
  67. package/app/components/Viewer/Generic/Model/CornerComponentOptions.vue +7 -8
  68. package/app/components/Viewer/Generic/Model/CornersTypeOptions.vue +7 -8
  69. package/app/components/Viewer/Generic/Model/LineComponentOptions.vue +9 -10
  70. package/app/components/Viewer/Generic/Model/LinesTypeOptions.vue +9 -10
  71. package/app/components/Viewer/Generic/Model/ModelEdgesCard.vue +2 -2
  72. package/app/components/Viewer/Generic/Model/ModelPointsCard.vue +1 -1
  73. package/app/components/Viewer/Generic/Model/ModelStyleCard.vue +3 -4
  74. package/app/components/Viewer/Generic/Model/SurfacesOptions.vue +16 -17
  75. package/app/components/Viewer/ObjectTree/Base/CommonTreeView.vue +4 -4
  76. package/app/components/Viewer/ObjectTree/Base/ComponentRelations.vue +1 -1
  77. package/app/components/Viewer/ObjectTree/Base/Controls.vue +22 -18
  78. package/app/components/Viewer/ObjectTree/Base/ItemLabel.vue +11 -11
  79. package/app/components/Viewer/ObjectTree/Base/StickyHeader.vue +3 -3
  80. package/app/components/Viewer/ObjectTree/Base/TreeRow.vue +6 -9
  81. package/app/components/Viewer/ObjectTree/Box.vue +20 -21
  82. package/app/components/Viewer/ObjectTree/Layout.vue +28 -25
  83. package/app/components/Viewer/ObjectTree/Views/GlobalObjects.vue +4 -3
  84. package/app/components/Viewer/ObjectTree/Views/ModelTree.vue +1 -1
  85. package/app/components/Viewer/Options/AttributeRangeSelector.vue +1 -1
  86. package/app/components/Viewer/Options/AttributeSelector.vue +1 -1
  87. package/app/components/Viewer/Options/ColorMapList.vue +7 -9
  88. package/app/components/Viewer/Options/ColorMapPicker.vue +2 -2
  89. package/app/components/Viewer/Options/ColorPicker.vue +9 -9
  90. package/app/components/Viewer/Options/ColoringTypeSelector.vue +9 -9
  91. package/app/components/Viewer/Options/NoDataColorInfo.vue +4 -4
  92. package/app/components/Viewer/Options/Sliders/Opacity.vue +1 -1
  93. package/app/components/Viewer/Options/Sliders/Slider.vue +1 -1
  94. package/app/components/Viewer/Options/TextureItem.vue +11 -8
  95. package/app/components/Viewer/Options/TexturesSelector.vue +3 -3
  96. package/app/components/Viewer/Options/VisibilitySwitch.vue +1 -1
  97. package/app/components/Viewer/OrientationCompass.vue +223 -0
  98. package/app/components/Viewer/OrientationGlobe.vue +376 -0
  99. package/app/components/Viewer/OrientationOverlay.vue +47 -0
  100. package/app/components/Viewer/OverlappingObjectsPicker.vue +10 -7
  101. package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +4 -5
  102. package/app/components/Viewer/Scene/BackgroundOptions.vue +3 -3
  103. package/app/components/Viewer/Scene/OrientationWidgetOptions.vue +1 -1
  104. package/app/components/Viewer/Scene/TextOptions.vue +3 -3
  105. package/app/components/Viewer/Solid/SpecificPolyhedraColoring.vue +12 -12
  106. package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +1 -1
  107. package/app/components/Viewer/Surface/PolygonsColoring.vue +12 -12
  108. package/app/components/Viewer/Surface/PolygonsOptions.vue +1 -1
  109. package/app/components/Viewer/ToolActiveChip.vue +1 -1
  110. package/app/components/Viewer/Ui.vue +2 -2
  111. package/app/components/csv-preview/CsvPreviewer.vue +17 -24
  112. package/app/components/csv-preview/CsvSettings.vue +6 -6
  113. package/app/components/csv-preview/CsvTable.vue +11 -9
  114. package/app/composables/attribute_selector.ts +1 -1
  115. package/app/composables/batch_style.ts +3 -3
  116. package/app/composables/batch_style_model.ts +1 -1
  117. package/app/composables/chrome_theme.ts +23 -0
  118. package/app/composables/clipping_slices.ts +2 -1
  119. package/app/composables/hover_highlight.ts +10 -7
  120. package/app/composables/live_data_item.ts +1 -1
  121. package/app/composables/model_menu_context.ts +11 -4
  122. package/app/composables/orientation_overlay.ts +133 -0
  123. package/app/composables/project_manager_helpers/reset.ts +2 -0
  124. package/app/composables/project_manager_helpers/types.ts +2 -2
  125. package/app/composables/use_adaptive_styles.ts +42 -21
  126. package/app/composables/use_overlapping_picker.ts +10 -8
  127. package/app/composables/view_toolbar_options.ts +7 -7
  128. package/app/composables/view_toolbar_tool_options.ts +9 -11
  129. package/app/composables/viewer_context_menu.ts +4 -2
  130. package/app/composables/viewer_reset.ts +54 -0
  131. package/app/plugins/chrome_theme.ts +10 -0
  132. package/app/plugins/phosphor_icons.ts +13 -0
  133. package/app/plugins/scene_colors.ts +10 -0
  134. package/app/stores/basemap_helpers/builds.ts +2 -2
  135. package/app/stores/basemap_helpers/viewer.ts +1 -1
  136. package/app/stores/crs.ts +12 -12
  137. package/app/stores/data.ts +4 -5
  138. package/app/stores/data_helpers/mesh.ts +2 -1
  139. package/app/stores/data_style.ts +4 -3
  140. package/app/stores/hybrid_viewer.ts +5 -3
  141. package/app/stores/menu.ts +18 -12
  142. package/app/stores/treeview.ts +5 -4
  143. package/app/stores/viewer.ts +2 -0
  144. package/app/types/attribute.ts +5 -21
  145. package/app/types/identifiers.ts +5 -15
  146. package/app/utils/attribute_range.ts +1 -1
  147. package/app/utils/attributes.ts +2 -1
  148. package/app/utils/clipping_planes.ts +1 -1
  149. package/app/utils/color_picker.ts +3 -3
  150. package/app/utils/crs.ts +6 -6
  151. package/app/utils/default_styles/constants.ts +17 -22
  152. package/app/utils/default_styles/index.ts +24 -3
  153. package/app/utils/default_styles/mesh_components.ts +15 -11
  154. package/app/utils/default_styles/meshes.ts +1 -1
  155. package/app/utils/default_styles/model_components.ts +14 -10
  156. package/app/utils/default_styles/models.ts +1 -1
  157. package/app/utils/import_workflow.ts +3 -1
  158. package/app/utils/legacy_data_id.ts +2 -1
  159. package/app/utils/orientation_compass.ts +103 -0
  160. package/app/utils/orientation_gizmo.ts +73 -0
  161. package/app/utils/orientation_globe.ts +145 -0
  162. package/app/utils/orientation_strata.ts +119 -0
  163. package/app/utils/phosphor_icons.ts +105 -0
  164. package/app/utils/slice.ts +2 -1
  165. package/app/utils/threshold_sources.ts +1 -1
  166. package/internal/stores/data_style/attribute_types.ts +6 -6
  167. package/internal/stores/data_style/mesh/base_style.ts +6 -7
  168. package/internal/stores/data_style/mesh/cells/cell.ts +6 -6
  169. package/internal/stores/data_style/mesh/cells/cell_attribute.ts +8 -6
  170. package/internal/stores/data_style/mesh/cells/cell_config.ts +5 -6
  171. package/internal/stores/data_style/mesh/cells/color.ts +6 -6
  172. package/internal/stores/data_style/mesh/cells/opacity.ts +3 -4
  173. package/internal/stores/data_style/mesh/cells/vertex.ts +6 -6
  174. package/internal/stores/data_style/mesh/cells/vertex_attribute.ts +8 -6
  175. package/internal/stores/data_style/mesh/cells/vertex_config.ts +5 -6
  176. package/internal/stores/data_style/mesh/cells/visibility.ts +1 -1
  177. package/internal/stores/data_style/mesh/edges/color.ts +6 -6
  178. package/internal/stores/data_style/mesh/edges/edge.ts +6 -6
  179. package/internal/stores/data_style/mesh/edges/edge_attribute.ts +8 -6
  180. package/internal/stores/data_style/mesh/edges/edge_config.ts +5 -6
  181. package/internal/stores/data_style/mesh/edges/opacity.ts +3 -4
  182. package/internal/stores/data_style/mesh/edges/vertex.ts +6 -6
  183. package/internal/stores/data_style/mesh/edges/vertex_attribute.ts +8 -6
  184. package/internal/stores/data_style/mesh/edges/vertex_config.ts +5 -6
  185. package/internal/stores/data_style/mesh/edges/visibility.ts +1 -1
  186. package/internal/stores/data_style/mesh/edges/width.ts +6 -6
  187. package/internal/stores/data_style/mesh/index.ts +3 -4
  188. package/internal/stores/data_style/mesh/points/color.ts +6 -6
  189. package/internal/stores/data_style/mesh/points/common.ts +1 -1
  190. package/internal/stores/data_style/mesh/points/opacity.ts +3 -4
  191. package/internal/stores/data_style/mesh/points/size.ts +6 -6
  192. package/internal/stores/data_style/mesh/points/vertex.ts +6 -6
  193. package/internal/stores/data_style/mesh/points/vertex_attribute.ts +8 -6
  194. package/internal/stores/data_style/mesh/points/vertex_config.ts +5 -6
  195. package/internal/stores/data_style/mesh/points/visibility.ts +1 -1
  196. package/internal/stores/data_style/mesh/polygons/color.ts +6 -6
  197. package/internal/stores/data_style/mesh/polygons/opacity.ts +3 -4
  198. package/internal/stores/data_style/mesh/polygons/polygon.ts +6 -6
  199. package/internal/stores/data_style/mesh/polygons/polygon_attribute.ts +8 -6
  200. package/internal/stores/data_style/mesh/polygons/polygon_config.ts +5 -6
  201. package/internal/stores/data_style/mesh/polygons/vertex.ts +6 -6
  202. package/internal/stores/data_style/mesh/polygons/vertex_attribute.ts +8 -6
  203. package/internal/stores/data_style/mesh/polygons/vertex_config.ts +5 -6
  204. package/internal/stores/data_style/mesh/polygons/visibility.ts +1 -1
  205. package/internal/stores/data_style/mesh/polyhedra/color.ts +6 -6
  206. package/internal/stores/data_style/mesh/polyhedra/opacity.ts +3 -4
  207. package/internal/stores/data_style/mesh/polyhedra/polyhedron.ts +6 -6
  208. package/internal/stores/data_style/mesh/polyhedra/polyhedron_attribute.ts +8 -6
  209. package/internal/stores/data_style/mesh/polyhedra/polyhedron_config.ts +5 -6
  210. package/internal/stores/data_style/mesh/polyhedra/vertex.ts +6 -6
  211. package/internal/stores/data_style/mesh/polyhedra/vertex_attribute.ts +8 -6
  212. package/internal/stores/data_style/mesh/polyhedra/vertex_config.ts +5 -6
  213. package/internal/stores/data_style/mesh/polyhedra/visibility.ts +1 -1
  214. package/internal/stores/data_style/model/blocks/color.ts +6 -6
  215. package/internal/stores/data_style/model/blocks/coloring_groups.ts +2 -2
  216. package/internal/stores/data_style/model/blocks/polyhedron.ts +12 -9
  217. package/internal/stores/data_style/model/blocks/vertex.ts +12 -9
  218. package/internal/stores/data_style/model/blocks/visibility.ts +1 -1
  219. package/internal/stores/data_style/model/color.ts +10 -11
  220. package/internal/stores/data_style/model/common.ts +3 -4
  221. package/internal/stores/data_style/model/corners/color.ts +6 -6
  222. package/internal/stores/data_style/model/corners/index.ts +2 -2
  223. package/internal/stores/data_style/model/corners/vertex.ts +12 -9
  224. package/internal/stores/data_style/model/corners/visibility.ts +1 -1
  225. package/internal/stores/data_style/model/edges/component.ts +13 -13
  226. package/internal/stores/data_style/model/edges/visibility.ts +1 -1
  227. package/internal/stores/data_style/model/edges/width.ts +6 -6
  228. package/internal/stores/data_style/model/lines/color.ts +6 -6
  229. package/internal/stores/data_style/model/lines/coloring_groups.ts +2 -2
  230. package/internal/stores/data_style/model/lines/edge.ts +12 -9
  231. package/internal/stores/data_style/model/lines/vertex.ts +12 -9
  232. package/internal/stores/data_style/model/lines/visibility.ts +1 -1
  233. package/internal/stores/data_style/model/points/component.ts +17 -13
  234. package/internal/stores/data_style/model/points/index.ts +2 -2
  235. package/internal/stores/data_style/model/points/size.ts +6 -6
  236. package/internal/stores/data_style/model/points/visibility.ts +1 -1
  237. package/internal/stores/data_style/model/surfaces/color.ts +6 -6
  238. package/internal/stores/data_style/model/surfaces/coloring_groups.ts +2 -2
  239. package/internal/stores/data_style/model/surfaces/polygon.ts +12 -9
  240. package/internal/stores/data_style/model/surfaces/vertex.ts +12 -9
  241. package/internal/stores/data_style/model/surfaces/visibility.ts +1 -1
  242. package/internal/stores/data_style/model/visibility.ts +1 -1
  243. package/internal/stores/data_style/scene.ts +31 -19
  244. package/internal/stores/data_style/time_step.ts +3 -2
  245. package/internal/stores/data_style/types.ts +3 -4
  246. package/internal/stores/hybrid_viewer/brightness.ts +14 -7
  247. package/internal/stores/hybrid_viewer/camera.ts +1 -1
  248. package/internal/stores/hybrid_viewer/constants.ts +1 -12
  249. package/internal/stores/hybrid_viewer/filters.ts +2 -2
  250. package/internal/stores/hybrid_viewer/highlight.ts +2 -1
  251. package/internal/stores/hybrid_viewer/scene.ts +11 -4
  252. package/nuxt.config.ts +9 -1
  253. package/package.json +4 -2
  254. package/shared/utils/response_handlers/load.ts +19 -11
  255. package/tests/browser/helpers/object_trees/main_object_tree.ts +3 -3
  256. package/tests/browser/helpers/object_trees/model_components_object_tree.ts +2 -2
  257. package/tests/browser/suites/model/surfaces.ts +1 -1
  258. package/tests/unit/helpers/phosphor_glyphs.ts +46 -0
  259. package/app/assets/viewer_svgs/camera-bookmark.svg +0 -64
  260. package/app/types/style.ts +0 -13
@@ -45,28 +45,28 @@ const emit = defineEmits<Emits>();
45
45
  >
46
46
  <v-sheet
47
47
  class="mx-auto mb-4 d-flex align-center justify-center transition-swing"
48
- :color="isHovering || isDragging ? 'primary' : 'rgba(255,255,255,0.05)'"
48
+ :color="isHovering || isDragging ? 'primary' : 'rgba(var(--v-theme-on-surface), 0.05)'"
49
49
  rounded="circle"
50
50
  width="64"
51
51
  height="64"
52
52
  >
53
53
  <v-icon
54
- :icon="loading ? 'mdi-loading' : 'mdi-cloud-upload'"
54
+ :icon="loading ? 'ph-circle-notch' : 'ph-cloud-arrow-up'"
55
55
  size="32"
56
- :color="isHovering || isDragging ? 'white' : 'primary'"
56
+ :color="isHovering || isDragging ? 'rgb(var(--v-theme-on-primary))' : 'primary'"
57
57
  :class="{ rotating: loading }"
58
58
  />
59
59
  </v-sheet>
60
60
 
61
61
  <v-card-text class="pa-0">
62
62
  <v-sheet
63
- class="text-headline-small font-weight-bold text-white d-block mb-1 bg-transparent"
63
+ class="text-headline-small font-weight-bold text-high-emphasis d-block mb-1 bg-transparent"
64
64
  >
65
65
  {{ loading ? texts.loading : isDragging ? texts.drop : texts.idle }}
66
66
  </v-sheet>
67
67
  <v-sheet
68
68
  v-if="accept && showExtensions"
69
- class="text-body-medium text-white opacity-60 bg-transparent"
69
+ class="text-body-medium text-high-emphasis opacity-60 bg-transparent"
70
70
  >
71
71
  {{ Array.isArray(accept) ? accept.join(", ") : accept }}
72
72
  </v-sheet>
@@ -77,8 +77,8 @@ const emit = defineEmits<Emits>();
77
77
 
78
78
  <style scoped>
79
79
  .drag-card-inline {
80
- border: 2px dashed rgba(255, 255, 255, 0.1) !important;
81
- background: rgba(255, 255, 255, 0.03) !important;
80
+ border: 2px dashed rgba(var(--v-border-color), var(--v-border-opacity)) !important;
81
+ background: rgba(var(--v-theme-on-surface), 0.04) !important;
82
82
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
83
83
  }
84
84
 
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import ChromeTheme from "@ogw_front/components/ChromeTheme.vue";
3
+
2
4
  interface DragAndDropTexts {
3
5
  idle: string;
4
6
  drop: string;
@@ -34,114 +36,117 @@ const {
34
36
 
35
37
  <template>
36
38
  <Teleport to="body">
37
- <v-fade-transition>
38
- <v-overlay
39
- v-if="isDragging && showOverlay"
40
- :model-value="true"
41
- :scrim="false"
42
- class="drag-overlay"
43
- content-class="w-100 h-100"
44
- persistent
45
- >
46
- <v-container class="fill-height d-flex align-center justify-center" :fluid="fullscreen">
47
- <v-row align="center" justify="center">
48
- <v-col
49
- cols="12"
50
- :md="fullscreen ? 12 : 8"
51
- :lg="fullscreen ? 12 : 6"
52
- class="text-center"
53
- >
54
- <v-sheet
55
- class="mx-auto mb-8 pulse-animation d-flex align-center justify-center"
56
- color="primary"
57
- rounded="circle"
58
- :width="fullscreen ? 140 : 120"
59
- :height="fullscreen ? 140 : 120"
60
- >
61
- <v-icon icon="mdi-cloud-upload" :size="fullscreen ? 80 : 64" color="white" />
62
- </v-sheet>
63
-
64
- <v-sheet
65
- class="font-weight-black mb-6 text-white text-glow d-block bg-transparent"
66
- :class="fullscreen ? 'text-display-medium' : 'text-display-small'"
67
- >
68
- {{
69
- loading ? texts.loading : fullscreen ? "Drop your files here" : "Drop your files"
70
- }}
71
- </v-sheet>
72
-
73
- <v-sheet
74
- class="text-white opacity-70 d-block mb-8 mx-auto bg-transparent"
75
- :class="fullscreen ? 'text-headline-medium' : 'text-headline-small'"
76
- :style="fullscreen ? 'max-width:700px' : 'max-width:500px'"
77
- >
78
- {{
79
- multiple
80
- ? "Drag your files anywhere on the screen to import them."
81
- : "Drag your file anywhere on the screen to import it."
82
- }}
83
- </v-sheet>
84
-
85
- <v-chip
86
- v-if="accept && showExtensions"
87
- color="white"
88
- variant="outlined"
89
- :size="fullscreen ? 'x-large' : 'large'"
90
- class="px-8 glow-chip"
91
- >
92
- Accepted formats: {{ Array.isArray(accept) ? accept.join(", ") : accept }}
93
- </v-chip>
94
-
95
- <v-sheet
96
- class="text-white opacity-40 d-block mt-12 bg-transparent"
97
- :class="fullscreen ? 'text-headline-small' : 'text-body-medium'"
39
+ <ChromeTheme>
40
+ <v-fade-transition>
41
+ <v-overlay
42
+ v-if="isDragging && showOverlay"
43
+ :model-value="true"
44
+ :scrim="false"
45
+ class="drag-overlay"
46
+ content-class="w-100 h-100"
47
+ persistent
48
+ >
49
+ <v-container class="fill-height d-flex align-center justify-center" :fluid="fullscreen">
50
+ <v-row align="center" justify="center">
51
+ <v-col
52
+ cols="12"
53
+ :md="fullscreen ? 12 : 8"
54
+ :lg="fullscreen ? 12 : 6"
55
+ class="text-center"
98
56
  >
99
- Press
100
- <v-kbd class="escape-kbd mx-1">Esc</v-kbd>
101
- to cancel
102
- </v-sheet>
103
- </v-col>
104
- </v-row>
105
- </v-container>
106
-
107
- <v-sheet v-if="fullscreen" class="drag-frame-border" color="transparent" />
108
- </v-overlay>
109
- </v-fade-transition>
57
+ <v-sheet
58
+ class="mx-auto mb-8 pulse-animation d-flex align-center justify-center"
59
+ color="primary"
60
+ rounded="circle"
61
+ :width="fullscreen ? 140 : 120"
62
+ :height="fullscreen ? 140 : 120"
63
+ >
64
+ <v-icon icon="ph-cloud-arrow-up" :size="fullscreen ? 80 : 64" />
65
+ </v-sheet>
66
+
67
+ <v-sheet
68
+ class="font-weight-black mb-6 text-high-emphasis text-glow d-block bg-transparent"
69
+ :class="fullscreen ? 'text-display-medium' : 'text-display-small'"
70
+ >
71
+ {{
72
+ loading
73
+ ? texts.loading
74
+ : fullscreen
75
+ ? "Drop your files here"
76
+ : "Drop your files"
77
+ }}
78
+ </v-sheet>
79
+
80
+ <v-sheet
81
+ class="text-high-emphasis opacity-70 d-block mb-8 mx-auto bg-transparent"
82
+ :class="fullscreen ? 'text-headline-medium' : 'text-headline-small'"
83
+ :style="fullscreen ? 'max-width:700px' : 'max-width:500px'"
84
+ >
85
+ {{
86
+ multiple
87
+ ? "Drag your files anywhere on the screen to import them."
88
+ : "Drag your file anywhere on the screen to import it."
89
+ }}
90
+ </v-sheet>
91
+
92
+ <v-chip
93
+ v-if="accept && showExtensions"
94
+ variant="outlined"
95
+ :size="fullscreen ? 'x-large' : 'large'"
96
+ class="px-8 glow-chip"
97
+ >
98
+ Accepted formats: {{ Array.isArray(accept) ? accept.join(", ") : accept }}
99
+ </v-chip>
100
+
101
+ <v-sheet
102
+ class="text-high-emphasis opacity-40 d-block mt-12 bg-transparent"
103
+ :class="fullscreen ? 'text-headline-small' : 'text-body-medium'"
104
+ >
105
+ Press
106
+ <v-kbd class="escape-kbd mx-1">Esc</v-kbd>
107
+ to cancel
108
+ </v-sheet>
109
+ </v-col>
110
+ </v-row>
111
+ </v-container>
112
+
113
+ <v-sheet v-if="fullscreen" class="drag-frame-border" color="transparent" />
114
+ </v-overlay>
115
+ </v-fade-transition>
116
+ </ChromeTheme>
110
117
  </Teleport>
111
118
  </template>
112
119
 
113
120
  <style scoped>
114
121
  .drag-overlay :deep(.v-overlay__content) {
115
- background: rgba(0, 0, 0, 0.6);
122
+ background: var(--ogw-dropzone-bg, rgba(0, 0, 0, 0.6));
116
123
  backdrop-filter: blur(24px);
117
124
  }
118
125
 
119
126
  .drag-frame-border {
120
127
  position: absolute;
121
128
  inset: 32px;
122
- border: 4px dashed rgba(255, 255, 255, 0.3);
129
+ border: 4px dashed rgba(var(--v-theme-on-surface), 0.3);
123
130
  border-radius: 32px;
124
131
  pointer-events: none;
125
132
  animation: border-glimmer 4s infinite ease-in-out;
126
133
  }
127
134
 
128
135
  .glow-chip {
129
- background: rgba(255, 255, 255, 0.1) !important;
130
- border-color: rgba(255, 255, 255, 0.4) !important;
131
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
136
+ background: rgba(var(--v-theme-on-surface), 0.08) !important;
137
+ border-color: rgba(var(--v-theme-on-surface), 0.4) !important;
132
138
  }
133
139
 
134
140
  .escape-kbd {
135
141
  padding: 6px 12px;
136
142
  border-radius: 8px;
137
- background: rgba(255, 255, 255, 0.2);
143
+ background: rgba(var(--v-theme-on-surface), 0.2);
138
144
  font-weight: bold;
139
- border: 1px solid rgba(255, 255, 255, 0.4);
140
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
145
+ border: 1px solid rgba(var(--v-theme-on-surface), 0.4);
141
146
  }
142
147
 
143
148
  .text-glow {
144
- text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
149
+ text-shadow: var(--ogw-dropzone-text-shadow, 0 0 30px rgba(255, 255, 255, 0.3));
145
150
  }
146
151
 
147
152
  .pulse-animation {
@@ -166,7 +171,7 @@ const {
166
171
  @keyframes border-glimmer {
167
172
  0%,
168
173
  100% {
169
- border-color: rgba(255, 255, 255, 0.2);
174
+ border-color: rgba(var(--v-theme-on-surface), 0.2);
170
175
  }
171
176
  50% {
172
177
  border-color: rgba(var(--v-theme-primary), 0.4);
@@ -2,7 +2,7 @@
2
2
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_typed_schemas.js";
3
3
 
4
4
  import FetchingData from "@ogw_front/components/FetchingData.vue";
5
- import type { GeodeObjectType } from "@ogw_front/types/identifiers";
5
+ import type { GeodeObjectType } from "@geode/opengeodeweb-microservice/data_types";
6
6
  import { useBackStore } from "@ogw_front/stores/back";
7
7
 
8
8
  const schema = schemas.opengeodeweb_back.geode_objects_and_output_extensions;
@@ -20,7 +20,9 @@ interface Props {
20
20
  const { geodeObjectType, filenames } = defineProps<Props>();
21
21
  type OutputExtensions = Record<string, { is_saveable: boolean }>;
22
22
 
23
- const geode_objects_and_output_extensions = ref<Record<GeodeObjectType, OutputExtensions>>({});
23
+ const geode_objects_and_output_extensions = ref<Partial<Record<GeodeObjectType, OutputExtensions>>>(
24
+ {},
25
+ );
24
26
  const loading = ref<boolean>(false);
25
27
 
26
28
  const toggle_loading = useToggle(loading);
@@ -29,25 +31,28 @@ async function get_output_file_extensions(): Promise<void> {
29
31
  toggle_loading();
30
32
  geode_objects_and_output_extensions.value = {};
31
33
  const backStore = useBackStore();
32
- const values: Record<GeodeObjectType, Record<string, boolean>>[] = await Promise.all(
33
- filenames.map(async (filename): Promise<Record<GeodeObjectType, Record<string, boolean>>> => {
34
- const params = { geode_object_type: geodeObjectType, filename };
35
- const response = await backStore.request({ schema, params });
36
- return response.geode_objects_and_output_extensions;
37
- }),
34
+ const values: Partial<Record<GeodeObjectType, Record<string, boolean>>>[] = await Promise.all(
35
+ filenames.map(
36
+ async (filename): Promise<Partial<Record<GeodeObjectType, Record<string, boolean>>>> => {
37
+ const params = { geode_object_type: geodeObjectType, filename };
38
+ const response = await backStore.request({ schema, params });
39
+ return response.geode_objects_and_output_extensions;
40
+ },
41
+ ),
38
42
  );
39
- const all_keys = [...new Set(values.flatMap((value) => Object.keys(value)))];
43
+ const all_keys = [...new Set(values.flatMap((value) => Object.keys(value) as GeodeObjectType[]))];
40
44
  const common_keys = all_keys.filter((i) => !values.some((j) => !Object.keys(j).includes(i)));
41
- const final_object: Record<GeodeObjectType, OutputExtensions> = {};
45
+ const final_object: Partial<Record<GeodeObjectType, OutputExtensions>> = {};
42
46
  for (const key of common_keys) {
43
- final_object[key] = {};
47
+ const output_extensions: OutputExtensions = {};
48
+ final_object[key] = output_extensions;
44
49
  for (const value of values) {
45
50
  const extensions = value[key];
46
51
  if (!extensions) {
47
52
  continue;
48
53
  }
49
54
  for (const [extension, is_saveable] of Object.entries(extensions)) {
50
- final_object[key][extension] = { is_saveable };
55
+ output_extensions[extension] = { is_saveable };
51
56
  }
52
57
  }
53
58
  }
@@ -56,7 +61,7 @@ async function get_output_file_extensions(): Promise<void> {
56
61
  }
57
62
 
58
63
  function update_values(output_geode_object: GeodeObjectType, output_extension: string): void {
59
- if (output_geode_object !== "" && output_extension !== "") {
64
+ if (output_extension !== "") {
60
65
  emit("update_values", {
61
66
  output_geode_object,
62
67
  output_extension,
@@ -100,7 +105,9 @@ await get_output_file_extensions();
100
105
  class="card ma-2"
101
106
  :color="extension.is_saveable ? 'primary' : 'grey'"
102
107
  hover
103
- @click="update_values(output_geode_object, output_extension)"
108
+ @click="
109
+ update_values(output_geode_object as GeodeObjectType, output_extension)
110
+ "
104
111
  :disabled="!extension.is_saveable"
105
112
  >
106
113
  <v-card-title align="center">
@@ -171,7 +171,6 @@ watch(
171
171
  :max="factorRange.max"
172
172
  step="0.01"
173
173
  color="primary"
174
- track-color="grey-lighten-2"
175
174
  density="compact"
176
175
  hide-details
177
176
  class="my-2 px-1"
@@ -14,36 +14,35 @@ defineExpose({ reload });
14
14
  <v-banner
15
15
  v-if="feedbackStore.server_error"
16
16
  elevation="2"
17
- style="background-color: grey; z-index: 4"
17
+ bg-color="surface-variant"
18
+ style="z-index: 4"
18
19
  position="fixed"
19
20
  >
20
21
  <v-row>
21
- <v-col cols="auto" class="text-white text-center">
22
+ <v-col cols="auto" class="text-center">
22
23
  <v-icon
23
- color="white"
24
24
  class="justify-right"
25
25
  v-tooltip:bottom="'We turn off our server automatically after 5 minutes of inactivity'"
26
26
  >
27
- mdi-information-outline
27
+ ph-info
28
28
  </v-icon>
29
29
  </v-col>
30
- <v-col cols="auto" class="text-white font-weight-bold">
30
+ <v-col cols="auto" class="font-weight-bold">
31
31
  Server timed out due to inactivity, please reload this page or click here:
32
32
  </v-col>
33
33
  <v-col class="align-items" cols="auto">
34
- <v-btn color="grey" density="compact" @click="reload()"> Reload </v-btn>
34
+ <v-btn color="accent" variant="flat" density="compact" @click="reload()"> Reload </v-btn>
35
35
  </v-col>
36
36
  <v-spacer />
37
37
  <v-col cols="auto">
38
38
  <v-btn
39
39
  icon
40
- variant="flat"
40
+ variant="text"
41
41
  size="20"
42
- color="grey"
43
42
  class=".align-center"
44
43
  @click="feedbackStore.delete_server_error()"
45
44
  >
46
- <v-icon icon="mdi-close" size="20" color="white" />
45
+ <v-icon icon="ph-x" size="20" />
47
46
  </v-btn>
48
47
  </v-col>
49
48
  </v-row>
@@ -45,16 +45,14 @@ function runAction(feedback: (typeof feedbackStore.feedbacks)[number]): void {
45
45
  <br />
46
46
  </span>
47
47
  <template #activator="{ props }">
48
- <v-icon v-bind="props" color="white" class="justify-right">
49
- mdi-information-outline
50
- </v-icon>
48
+ <v-icon v-bind="props" class="justify-right"> ph-info </v-icon>
51
49
  </template>
52
50
  </v-tooltip>
53
51
  <v-tooltip v-else-if="feedback.type === 'success'" location="left">
54
- <v-icon color="white" class="justify-right"> mdi-check-circle-outline </v-icon>
52
+ <v-icon class="justify-right"> ph-check-circle </v-icon>
55
53
  </v-tooltip>
56
54
  <v-tooltip v-else-if="feedback.type === 'warning'" location="left">
57
- <v-icon color="white" class="justify-right"> mdi-alert-outline </v-icon>
55
+ <v-icon class="justify-right"> ph-warning </v-icon>
58
56
  </v-tooltip>
59
57
  </v-col>
60
58
  <v-col cols="9" class="text-no-wrap overflow-hidden">
@@ -83,7 +81,7 @@ function runAction(feedback: (typeof feedbackStore.feedbacks)[number]): void {
83
81
  data-testid="feedbackActionBtn"
84
82
  @click.stop="runAction(feedback)"
85
83
  >
86
- <v-icon icon="mdi-pencil" size="20" color="white" />
84
+ <v-icon icon="ph-pencil-simple" size="20" />
87
85
  </v-btn>
88
86
  </template>
89
87
  </v-tooltip>
@@ -97,7 +95,7 @@ function runAction(feedback: (typeof feedbackStore.feedbacks)[number]): void {
97
95
  :color="feedback.type"
98
96
  @click.stop="feedbackStore.delete_feedback(feedback.id)"
99
97
  >
100
- <v-icon icon="mdi-close" size="20" color="white" />
98
+ <v-icon icon="ph-x" size="20" />
101
99
  </v-btn>
102
100
  </v-col>
103
101
  </v-row>
@@ -141,7 +141,7 @@ watch(
141
141
  <template>
142
142
  <template v-if="mini">
143
143
  <v-btn
144
- icon="mdi-plus"
144
+ icon="ph-plus"
145
145
  variant="text"
146
146
  color="primary"
147
147
  :loading="loading"
@@ -172,19 +172,18 @@ watch(
172
172
 
173
173
  <v-card-text v-if="!mini && internal_files.length" class="mt-6 pa-0">
174
174
  <v-sheet class="d-flex align-center mb-4" color="transparent">
175
- <v-icon icon="mdi-file-check" class="mr-3" color="primary" size="24" />
176
- <span class="text-subtitle-1 font-weight-bold text-white"> Selected files </span>
177
- <v-chip size="small" class="ml-3 bg-white-opacity-10" color="white" variant="flat">
175
+ <v-icon icon="ph-file-text" class="mr-3" color="primary" size="24" />
176
+ <span class="text-subtitle-1 font-weight-bold text-high-emphasis"> Selected files </span>
177
+ <v-chip size="small" class="ml-3" color="primary" variant="tonal">
178
178
  {{ internal_files.length }}
179
179
  </v-chip>
180
180
  <v-spacer />
181
181
  <v-btn
182
182
  v-if="multiple"
183
183
  variant="text"
184
- color="white"
185
184
  size="small"
186
185
  class="text-none opacity-60"
187
- prepend-icon="mdi-plus"
186
+ prepend-icon="ph-plus"
188
187
  @click="dragAndDropRef?.triggerFileDialog"
189
188
  >
190
189
  Add
@@ -196,28 +195,21 @@ watch(
196
195
  <v-chip
197
196
  closable
198
197
  size="default"
199
- color="white"
200
198
  variant="outlined"
201
199
  class="font-weight-medium glass-ui border-opacity-10 px-4"
202
- style="background: rgba(255, 255, 255, 0.05) !important"
200
+ style="background: rgba(var(--v-theme-on-surface), 0.05) !important"
203
201
  @click:close="removeFile(index)"
204
202
  >
205
203
  <v-icon start size="18" :color="isCsv(file) && file.isConfigured ? 'success' : 'primary'">
206
- {{
207
- isCsv(file)
208
- ? file.isConfigured
209
- ? "mdi-file-check"
210
- : "mdi-file-table"
211
- : "mdi-file-outline"
212
- }}
204
+ {{ isCsv(file) ? (file.isConfigured ? "ph-file-text" : "ph-file-csv") : "ph-file" }}
213
205
  </v-icon>
214
- <span class="text-white">{{ file.displayName || file.name }}</span>
206
+ <span class="text-high-emphasis">{{ file.displayName || file.name }}</span>
215
207
 
216
208
  <v-tooltip v-if="isCsv(file)" text="Configure CSV" location="bottom">
217
209
  <template #activator="{ props: tooltipProps }">
218
210
  <v-btn
219
211
  v-bind="tooltipProps"
220
- icon="mdi-cog"
212
+ icon="ph-gear"
221
213
  variant="flat"
222
214
  :color="file.isConfigured ? 'success' : 'primary'"
223
215
  :class="['ml-2', { 'pulse-animation': !file.isConfigured }]"
@@ -226,13 +218,13 @@ watch(
226
218
  density="compact"
227
219
  @click.stop="openCsvPreviewer(file, index)"
228
220
  >
229
- <v-icon size="14">mdi-cog</v-icon>
221
+ <v-icon size="14">ph-gear</v-icon>
230
222
  </v-btn>
231
223
  </template>
232
224
  </v-tooltip>
233
225
 
234
226
  <template #close>
235
- <v-icon size="16" class="ml-2 opacity-60 hover-opacity-100">mdi-close-circle</v-icon>
227
+ <v-icon size="16" class="ml-2 opacity-60 hover-opacity-100">ph-x-circle</v-icon>
236
228
  </template>
237
229
  </v-chip>
238
230
  </template>
@@ -250,7 +242,7 @@ watch(
250
242
  block
251
243
  @click="upload_files"
252
244
  >
253
- <v-icon start size="22">mdi-cloud-upload</v-icon>
245
+ <v-icon start size="22">ph-cloud-arrow-up</v-icon>
254
246
  Upload
255
247
  {{ internal_files.length }}
256
248
  file<span v-if="internal_files.length > 1">s</span>
@@ -267,7 +259,7 @@ watch(
267
259
 
268
260
  <style scoped>
269
261
  .glass-ui {
270
- background: rgba(255, 255, 255, 0.05) !important;
262
+ background: rgba(var(--v-theme-on-surface), 0.05) !important;
271
263
  backdrop-filter: blur(10px);
272
264
  }
273
265
  .hover-opacity-100:hover {
@@ -1,6 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed, useAttrs } from "vue";
3
3
  import { onKeyStroke } from "@vueuse/core";
4
+ import { useChromeTheme } from "@ogw_front/composables/chrome_theme";
4
5
 
5
6
  interface Props {
6
7
  variant?: "panel" | "ui";
@@ -19,6 +20,7 @@ const {
19
20
  } = defineProps<Props>();
20
21
 
21
22
  const attrs = useAttrs();
23
+ const chromeTheme = useChromeTheme();
22
24
  const isInteractive = computed<boolean>(() => Boolean(attrs.onClick));
23
25
 
24
26
  onKeyStroke("Escape", () => {
@@ -36,7 +38,7 @@ onKeyStroke("Escape", () => {
36
38
  @contextmenu.stop
37
39
  flat
38
40
  :ripple="isInteractive"
39
- :theme="theme || (variant === 'panel' ? 'dark' : undefined)"
41
+ :theme="theme || (variant === 'panel' ? chromeTheme : undefined)"
40
42
  :class="[
41
43
  variant === 'panel' ? 'glass-panel' : 'glass-ui',
42
44
  'border-thin',
@@ -1,6 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import ColormapQuickPicker from "@ogw_front/components/Viewer/Options/ColormapQuickPicker.vue";
3
3
  import HybridViewerTooltip from "@ogw_front/components/HybridViewerTooltip.vue";
4
+ import OrientationOverlay from "@ogw_front/components/Viewer/OrientationOverlay.vue";
4
5
  import ViewToolbar from "@ogw_front/components/ViewToolbar.vue";
5
6
  import ZoomBoxOverlay from "@ogw_front/components/ZoomBoxOverlay.vue";
6
7
 
@@ -107,6 +108,7 @@ async function handleClick(event: PointerEvent): Promise<void> {
107
108
  />
108
109
  <ZoomBoxOverlay v-if="hybridViewerStore.is_zoom_box_active" />
109
110
  <ViewToolbar />
111
+ <OrientationOverlay />
110
112
  <slot name="ui"></slot>
111
113
  <HybridViewerTooltip :container-width="elementWidth" :container-height="elementHeight" />
112
114
  <v-col
@@ -207,21 +207,21 @@ function formatAttributeValue(val: unknown): string {
207
207
  }
208
208
  .tooltip-container {
209
209
  min-width: 220px;
210
- color: white;
210
+ color: rgb(var(--v-theme-on-surface));
211
211
  font-size: 0.875rem;
212
212
  }
213
213
  .tooltip-label {
214
- color: #bdbdbd;
214
+ color: rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));
215
215
  font-weight: bold;
216
216
  white-space: nowrap;
217
217
  }
218
218
  .tooltip-value {
219
- color: #a7ffeb;
219
+ color: rgb(var(--v-theme-primary));
220
220
  font-weight: 500;
221
221
  white-space: nowrap;
222
222
  }
223
223
  .tooltip-value-dim {
224
- color: #eeeeee;
224
+ color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
225
225
  font-size: 0.75rem !important;
226
226
  }
227
227
  .tooltip-label + .tooltip-value,
@@ -50,7 +50,7 @@ function cloudCreateBackend(): Promise<void> {
50
50
  class="load-btn"
51
51
  text="Load the app"
52
52
  size="x-large"
53
- color="white"
53
+ color="var(--ogw-launcher-button, white)"
54
54
  @click="cloudCreateBackend"
55
55
  />
56
56
  </VCol>