@vcmap/ui 5.3.4 → 5.3.6

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/dist/assets/ui.js CHANGED
@@ -1 +1 @@
1
- export * from "./ui.a7d30a.js";
1
+ export * from "./ui.141c81.js";
@@ -1,5 +1,5 @@
1
- export * from "./vue.ac1929.js";
2
- import { default as f } from "./vue.ac1929.js";
1
+ export * from "./vue.81b54c.js";
2
+ import { default as f } from "./vue.81b54c.js";
3
3
  export {
4
4
  f as default
5
5
  };
@@ -13,7 +13,7 @@ function loadCss(href) {
13
13
  elem.onerror = reject;
14
14
  document.head.appendChild(elem);
15
15
  });
16
- } await loadCss('./assets/vuetify.7ec09f.css');import v from "./vue.ac1929.js";
16
+ } await loadCss('./assets/vuetify.315a27.css');import v from "./vue.81b54c.js";
17
17
  const Ne = v.extend().extend({
18
18
  name: "themeable",
19
19
  provide() {
@@ -1,5 +1,5 @@
1
- export * from "./vuetify.7ec09f.js";
2
- import { default as f } from "./vuetify.7ec09f.js";
1
+ export * from "./vuetify.315a27.js";
2
+ import { default as f } from "./vuetify.315a27.js";
3
3
  export {
4
4
  f as default
5
5
  };
package/dist/index.html CHANGED
@@ -95,7 +95,7 @@
95
95
  }
96
96
  }
97
97
  </style>
98
- <script type="module" crossorigin src="./assets/index-8a3e545b.js"></script>
98
+ <script type="module" crossorigin src="./assets/index-ae691cf6.js"></script>
99
99
  </head>
100
100
  <body style="height: 100vh; margin: 0;">
101
101
  <noscript>
package/index.d.ts CHANGED
@@ -278,3 +278,5 @@ export { getProvidedFlightInstance, setupFlightAnchorEditingListener } from "./s
278
278
  export type * from "./src/components/flight/composables.d.ts";
279
279
  export { default as VcsFeatureEditingWindow, EditorTransformationIcons, getAllowedEditorTransformationModes } from "./src/components/vector-properties/VcsFeatureEditingWindow.vue";
280
280
  export type * from "./src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts";
281
+ export { LegendType, StyleRowType } from "./src/legend/legendHelper.js";
282
+ export type * from "./src/legend/legendHelper.d.ts";
package/index.js CHANGED
@@ -324,3 +324,4 @@ export { default as FileDrop } from './src/components/import/FileDrop.vue';
324
324
  export { default as ImportComponent } from './src/components/import/ImportComponent.vue';
325
325
  export { default as VcsSplashScreen } from './src/application/VcsSplashScreen.vue';
326
326
  export { default as VcsCustomScreen } from './src/application/VcsCustomScreen.vue';
327
+ export { LegendType, StyleRowType } from './src/legend/legendHelper.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcmap/ui",
3
- "version": "5.3.4",
3
+ "version": "5.3.6",
4
4
  "author": "Virtual City Systems",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@vcmap-cesium/engine": "^4.0.3",
56
- "@vcmap/core": "^5.3.2",
56
+ "@vcmap/core": "^5.3.3",
57
57
  "ol": "^7.5.2",
58
58
  "vue": "~2.7.3",
59
59
  "vuetify": "~2.6.7"
@@ -151,7 +151,12 @@ class ObliqueCollectionContentTreeItem extends VcsObjectContentTreeItem {
151
151
  if (this.state === StateActionState.INACTIVE) {
152
152
  this.state = StateActionState.LOADING;
153
153
  await map.setCollection(this._collection, vp);
154
- executeCallbacks(this._app, this._onActivate);
154
+ if (map.collection === this._collection) {
155
+ executeCallbacks(this._app, this._onActivate);
156
+ } else {
157
+ // failed to activate collection
158
+ this.state = StateActionState.INACTIVE;
159
+ }
155
160
  } else if (this.state === StateActionState.ACTIVE) {
156
161
  this.state = StateActionState.INACTIVE;
157
162
  await map.setCollection(defaultCollection, vp);
package/src/i18n/de.d.ts CHANGED
@@ -52,10 +52,15 @@ declare namespace messages {
52
52
  let errorConnection: string;
53
53
  let errorPosition: string;
54
54
  }
55
+ namespace obliqueFallback {
56
+ export let message: string;
57
+ let title_5: string;
58
+ export { title_5 as title };
59
+ }
55
60
  }
56
61
  export namespace categoryManager {
57
- let title_5: string;
58
- export { title_5 as title };
62
+ let title_6: string;
63
+ export { title_6 as title };
59
64
  let tooltip_2: string;
60
65
  export { tooltip_2 as tooltip };
61
66
  }
@@ -132,8 +137,8 @@ declare namespace messages {
132
137
  export let general: string;
133
138
  let name_1: string;
134
139
  export { name_1 as name };
135
- let title_6: string;
136
- export { title_6 as title };
140
+ let title_7: string;
141
+ export { title_7 as title };
137
142
  export let titlePlaceholder: string;
138
143
  export let interpolation: string;
139
144
  export let duration: string;
@@ -166,8 +171,8 @@ declare namespace messages {
166
171
  export namespace viewpoint {
167
172
  let name_4: string;
168
173
  export { name_4 as name };
169
- let title_7: string;
170
- export { title_7 as title };
174
+ let title_8: string;
175
+ export { title_8 as title };
171
176
  let titlePlaceholder_1: string;
172
177
  export { titlePlaceholder_1 as titlePlaceholder };
173
178
  export let groundPosition: string;
@@ -192,8 +197,8 @@ declare namespace messages {
192
197
  let outOfRange: string;
193
198
  }
194
199
  export namespace extent {
195
- let title_8: string;
196
- export { title_8 as title };
200
+ let title_9: string;
201
+ export { title_9 as title };
197
202
  export let projection: string;
198
203
  export let min: string;
199
204
  export let max: string;
@@ -261,14 +266,14 @@ declare namespace messages {
261
266
  }
262
267
  }
263
268
  export namespace settings {
264
- let title_9: string;
265
- export { title_9 as title };
269
+ let title_10: string;
270
+ export { title_10 as title };
266
271
  let tooltip_3: string;
267
272
  export { tooltip_3 as tooltip };
268
273
  export let languageSelector: string;
269
274
  export namespace displayQuality {
270
- let title_10: string;
271
- export { title_10 as title };
275
+ let title_11: string;
276
+ export { title_11 as title };
272
277
  export namespace level {
273
278
  let low: string;
274
279
  let medium: string;
@@ -276,15 +281,15 @@ declare namespace messages {
276
281
  }
277
282
  }
278
283
  export namespace theme {
279
- let title_11: string;
280
- export { title_11 as title };
284
+ let title_12: string;
285
+ export { title_12 as title };
281
286
  export let dark: string;
282
287
  export let light: string;
283
288
  }
284
289
  }
285
290
  export namespace help_1 {
286
- let title_12: string;
287
- export { title_12 as title };
291
+ let title_13: string;
292
+ export { title_13 as title };
288
293
  let tooltip_4: string;
289
294
  export { tooltip_4 as tooltip };
290
295
  }
@@ -294,8 +299,8 @@ declare namespace messages {
294
299
  let deactivateToolTitle: string;
295
300
  }
296
301
  export namespace legend {
297
- let title_13: string;
298
- export { title_13 as title };
302
+ let title_14: string;
303
+ export { title_14 as title };
299
304
  let tooltip_5: string;
300
305
  export { tooltip_5 as tooltip };
301
306
  let empty_2: string;
@@ -304,8 +309,8 @@ declare namespace messages {
304
309
  export let defaultLabelText: string;
305
310
  }
306
311
  export namespace search_1 {
307
- let title_14: string;
308
- export { title_14 as title };
312
+ let title_15: string;
313
+ export { title_15 as title };
309
314
  let tooltip_6: string;
310
315
  export { tooltip_6 as tooltip };
311
316
  export let select: string;
@@ -321,31 +326,31 @@ declare namespace messages {
321
326
  export let miscellaneous: string;
322
327
  }
323
328
  export namespace footer {
324
- let title_15: string;
325
- export { title_15 as title };
329
+ let title_16: string;
330
+ export { title_16 as title };
326
331
  export namespace attributions {
327
- let title_16: string;
328
- export { title_16 as title };
332
+ let title_17: string;
333
+ export { title_17 as title };
329
334
  let tooltip_7: string;
330
335
  export { tooltip_7 as tooltip };
331
336
  let empty_3: string;
332
337
  export { empty_3 as empty };
333
338
  }
334
339
  export namespace imprint {
335
- let title_17: string;
336
- export { title_17 as title };
340
+ let title_18: string;
341
+ export { title_18 as title };
337
342
  let tooltip_8: string;
338
343
  export { tooltip_8 as tooltip };
339
344
  }
340
345
  export namespace dataProtection {
341
- let title_18: string;
342
- export { title_18 as title };
346
+ let title_19: string;
347
+ export { title_19 as title };
343
348
  let tooltip_9: string;
344
349
  export { tooltip_9 as tooltip };
345
350
  }
346
351
  export namespace positionDisplay {
347
- let title_19: string;
348
- export { title_19 as title };
352
+ let title_20: string;
353
+ export { title_20 as title };
349
354
  let projection_1: string;
350
355
  export { projection_1 as projection };
351
356
  }
package/src/i18n/de.js CHANGED
@@ -50,6 +50,11 @@ const messages = {
50
50
  'Während dem ermitteln Ihrer Position wurde die Verbindung verloren',
51
51
  errorPosition: 'Ihre Position kann leider nicht erfasst werden',
52
52
  },
53
+ obliqueFallback: {
54
+ message:
55
+ 'Für die aktuelle Position liegen bei dem ausgewählten Datensatz keine Daten vor',
56
+ title: 'Fehlende Daten',
57
+ },
53
58
  },
54
59
  categoryManager: {
55
60
  title: 'Mein Arbeitsbereich',
package/src/i18n/en.d.ts CHANGED
@@ -52,10 +52,15 @@ declare namespace messages {
52
52
  let errorConnection: string;
53
53
  let errorPosition: string;
54
54
  }
55
+ namespace obliqueFallback {
56
+ export let message: string;
57
+ let title_5: string;
58
+ export { title_5 as title };
59
+ }
55
60
  }
56
61
  export namespace categoryManager {
57
- let title_5: string;
58
- export { title_5 as title };
62
+ let title_6: string;
63
+ export { title_6 as title };
59
64
  let tooltip_2: string;
60
65
  export { tooltip_2 as tooltip };
61
66
  }
@@ -132,8 +137,8 @@ declare namespace messages {
132
137
  export let general: string;
133
138
  let name_1: string;
134
139
  export { name_1 as name };
135
- let title_6: string;
136
- export { title_6 as title };
140
+ let title_7: string;
141
+ export { title_7 as title };
137
142
  export let titlePlaceholder: string;
138
143
  export let interpolation: string;
139
144
  export let duration: string;
@@ -166,8 +171,8 @@ declare namespace messages {
166
171
  export namespace viewpoint {
167
172
  let name_4: string;
168
173
  export { name_4 as name };
169
- let title_7: string;
170
- export { title_7 as title };
174
+ let title_8: string;
175
+ export { title_8 as title };
171
176
  let titlePlaceholder_1: string;
172
177
  export { titlePlaceholder_1 as titlePlaceholder };
173
178
  export let groundPosition: string;
@@ -192,8 +197,8 @@ declare namespace messages {
192
197
  let outOfRange: string;
193
198
  }
194
199
  export namespace extent {
195
- let title_8: string;
196
- export { title_8 as title };
200
+ let title_9: string;
201
+ export { title_9 as title };
197
202
  export let projection: string;
198
203
  export let min: string;
199
204
  export let max: string;
@@ -261,14 +266,14 @@ declare namespace messages {
261
266
  }
262
267
  }
263
268
  export namespace settings {
264
- let title_9: string;
265
- export { title_9 as title };
269
+ let title_10: string;
270
+ export { title_10 as title };
266
271
  let tooltip_3: string;
267
272
  export { tooltip_3 as tooltip };
268
273
  export let languageSelector: string;
269
274
  export namespace displayQuality {
270
- let title_10: string;
271
- export { title_10 as title };
275
+ let title_11: string;
276
+ export { title_11 as title };
272
277
  export namespace level {
273
278
  let low: string;
274
279
  let medium: string;
@@ -276,15 +281,15 @@ declare namespace messages {
276
281
  }
277
282
  }
278
283
  export namespace theme {
279
- let title_11: string;
280
- export { title_11 as title };
284
+ let title_12: string;
285
+ export { title_12 as title };
281
286
  export let dark: string;
282
287
  export let light: string;
283
288
  }
284
289
  }
285
290
  export namespace help_1 {
286
- let title_12: string;
287
- export { title_12 as title };
291
+ let title_13: string;
292
+ export { title_13 as title };
288
293
  let tooltip_4: string;
289
294
  export { tooltip_4 as tooltip };
290
295
  }
@@ -294,8 +299,8 @@ declare namespace messages {
294
299
  let deactivateToolTitle: string;
295
300
  }
296
301
  export namespace legend {
297
- let title_13: string;
298
- export { title_13 as title };
302
+ let title_14: string;
303
+ export { title_14 as title };
299
304
  let tooltip_5: string;
300
305
  export { tooltip_5 as tooltip };
301
306
  let empty_2: string;
@@ -304,8 +309,8 @@ declare namespace messages {
304
309
  export let defaultLabelText: string;
305
310
  }
306
311
  export namespace search_1 {
307
- let title_14: string;
308
- export { title_14 as title };
312
+ let title_15: string;
313
+ export { title_15 as title };
309
314
  let tooltip_6: string;
310
315
  export { tooltip_6 as tooltip };
311
316
  export let select: string;
@@ -321,31 +326,31 @@ declare namespace messages {
321
326
  export let miscellaneous: string;
322
327
  }
323
328
  export namespace footer {
324
- let title_15: string;
325
- export { title_15 as title };
329
+ let title_16: string;
330
+ export { title_16 as title };
326
331
  export namespace attributions {
327
- let title_16: string;
328
- export { title_16 as title };
332
+ let title_17: string;
333
+ export { title_17 as title };
329
334
  let tooltip_7: string;
330
335
  export { tooltip_7 as tooltip };
331
336
  let empty_3: string;
332
337
  export { empty_3 as empty };
333
338
  }
334
339
  export namespace imprint {
335
- let title_17: string;
336
- export { title_17 as title };
340
+ let title_18: string;
341
+ export { title_18 as title };
337
342
  let tooltip_8: string;
338
343
  export { tooltip_8 as tooltip };
339
344
  }
340
345
  export namespace dataProtection {
341
- let title_18: string;
342
- export { title_18 as title };
346
+ let title_19: string;
347
+ export { title_19 as title };
343
348
  let tooltip_9: string;
344
349
  export { tooltip_9 as tooltip };
345
350
  }
346
351
  export namespace positionDisplay {
347
- let title_19: string;
348
- export { title_19 as title };
352
+ let title_20: string;
353
+ export { title_20 as title };
349
354
  let projection_1: string;
350
355
  export { projection_1 as projection };
351
356
  }
package/src/i18n/en.js CHANGED
@@ -50,6 +50,11 @@ const messages = {
50
50
  'The connection was lost while your position was being determined',
51
51
  errorPosition: 'Unfortunately, your position cannot be recorded',
52
52
  },
53
+ obliqueFallback: {
54
+ message:
55
+ 'There is no data for the current position and selected data set.',
56
+ title: 'Missing Data',
57
+ },
53
58
  },
54
59
  categoryManager: {
55
60
  title: 'My Workspace',
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @param {import("./vcsUiApp.js").default} app
3
+ * @returns {() => void}
4
+ */
5
+ export default function createObliqueFallbackWarnings(app: import("./vcsUiApp.js").default): () => void;
@@ -0,0 +1,54 @@
1
+ import { ObliqueMap } from '@vcmap/core';
2
+ import { NotificationType } from './notifier/notifier.js';
3
+
4
+ function createNotification(app) {
5
+ app.notifier.add({
6
+ title: 'navigation.obliqueFallback.title',
7
+ type: NotificationType.WARNING,
8
+ message: 'navigation.obliqueFallback.message',
9
+ });
10
+ }
11
+
12
+ /**
13
+ * @param {import("./vcsUiApp.js").default} app
14
+ * @returns {() => void}
15
+ */
16
+ export default function createObliqueFallbackWarnings(app) {
17
+ const fallbackMapEventListener =
18
+ app.maps.fallbackMapActivated.addEventListener(() => {
19
+ createNotification(app);
20
+ });
21
+
22
+ const mapListeners = new Map();
23
+ const setMapListener = (map) => {
24
+ mapListeners.set(
25
+ map,
26
+ map.failedToSetCollection.addEventListener(() => {
27
+ createNotification(app);
28
+ }),
29
+ );
30
+ };
31
+
32
+ app.maps.getByType(ObliqueMap.className).forEach(setMapListener);
33
+
34
+ const mapAddedListener = app.maps.added.addEventListener((map) => {
35
+ if (map instanceof ObliqueMap) {
36
+ setMapListener(map);
37
+ }
38
+ });
39
+
40
+ const mapRemovedListener = app.maps.removed.addEventListener((map) => {
41
+ mapListeners.get(map)?.();
42
+ mapListeners.delete(map);
43
+ });
44
+
45
+ return () => {
46
+ fallbackMapEventListener();
47
+ mapAddedListener();
48
+ mapRemovedListener();
49
+ [...mapListeners.values()].forEach((cb) => {
50
+ cb();
51
+ });
52
+ mapListeners.clear();
53
+ };
54
+ }
package/src/vcsUiApp.d.ts CHANGED
@@ -198,6 +198,7 @@ declare class VcsUiApp extends VcsApp {
198
198
  */
199
199
  mounted: import("@vcmap/core").VcsEvent<string>;
200
200
  _destroySiteConfig: () => void;
201
+ _destroyObliqueFallback: () => void;
201
202
  /**
202
203
  * @type {import("@vcmap/core").OverrideCollection<VcsPlugin<Object, Object>>}
203
204
  */
package/src/vcsUiApp.js CHANGED
@@ -44,6 +44,7 @@ import AbstractFeatureInfoView from './featureInfo/abstractFeatureInfoView.js';
44
44
  import { createVueI18n, setupI18n } from './vuePlugins/i18n.js';
45
45
  import { callbackClassRegistry } from './callback/vcsCallback.js';
46
46
  import createSiteConfig from './siteConfig.js';
47
+ import createObliqueFallbackWarnings from './obliqueFallbackWarnings.js';
47
48
 
48
49
  /**
49
50
  * @typedef {import("@vcmap/core").VcsModuleConfig & {
@@ -343,6 +344,8 @@ class VcsUiApp extends VcsApp {
343
344
  this.mounted = new VcsEvent();
344
345
 
345
346
  this._destroySiteConfig = createSiteConfig(this._uiConfig);
347
+
348
+ this._destroyObliqueFallback = createObliqueFallbackWarnings(this);
346
349
  }
347
350
 
348
351
  /**
@@ -708,6 +711,7 @@ class VcsUiApp extends VcsApp {
708
711
  this._featureInfo.destroy();
709
712
  this._uiConfig.destroy();
710
713
  this._destroySiteConfig();
714
+ this._destroyObliqueFallback();
711
715
  super.destroy();
712
716
  }
713
717
  }
@@ -1 +0,0 @@
1
- import{initAppFromAppConfig as p}from"./ui.a7d30a.js";p("#app","app.config.json");
File without changes
File without changes
File without changes