@geode/opengeodeweb-front 10.22.0-rc.1 → 10.22.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.
@@ -17,6 +17,7 @@ const backStore = useBackStore();
17
17
  const loading = ref(false);
18
18
  const allowed_objects = ref({});
19
19
  const toggle_loading = useToggle(loading);
20
+ const multiple_files_no_common = ref(false);
20
21
 
21
22
  function select_geode_object(object_map) {
22
23
  const object_keys = Object.keys(object_map);
@@ -51,12 +52,18 @@ function select_geode_object(object_map) {
51
52
  async function get_allowed_objects() {
52
53
  toggle_loading();
53
54
  allowed_objects.value = {};
55
+ multiple_files_no_common.value = false;
54
56
 
55
57
  const promise_array = filenames.map((filename) => backStore.request(schema, { filename }));
56
58
  const responses = await Promise.all(promise_array);
57
59
  const allowed_objects_list = responses.map((response) => response.allowed_objects);
58
60
  const all_keys = [...new Set(allowed_objects_list.flatMap((obj) => Object.keys(obj)))];
59
61
  const common_keys = all_keys.filter((key) => allowed_objects_list.every((obj) => key in obj));
62
+
63
+ if (filenames.length > 1 && all_keys.length > 0 && common_keys.length === 0) {
64
+ multiple_files_no_common.value = true;
65
+ }
66
+
60
67
  const final_object = {};
61
68
  for (const key of common_keys) {
62
69
  const load_scores = allowed_objects_list.map((obj) => obj[key].is_loadable);
@@ -127,6 +134,13 @@ await get_allowed_objects();
127
134
  </v-tooltip>
128
135
  </v-col>
129
136
  </v-row>
137
+ <v-row v-else-if="multiple_files_no_common" class="pa-5">
138
+ <v-card class="card" variant="tonal" rounded>
139
+ <v-card-text>
140
+ These files cannot be loaded together because they don't share a common data type.
141
+ </v-card-text>
142
+ </v-card>
143
+ </v-row>
130
144
  <v-row v-else class="pa-5">
131
145
  <v-card class="card" variant="tonal" rounded>
132
146
  <v-card-text>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-front",
3
- "version": "10.22.0-rc.1",
3
+ "version": "10.22.0-rc.2",
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": {