@vcmap/ui 6.0.3 → 6.0.4

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-76492ce7.js";
1
+ export * from "./ui-b4efd5bf.js";
@@ -1 +1 @@
1
- export * from "./vue-a92df366.js";
1
+ export * from "./vue-fcafcafd.js";
@@ -10,7 +10,7 @@ function loadCss(href) {
10
10
  elem.onerror = reject;
11
11
  document.head.appendChild(elem);
12
12
  });
13
- } await loadCss('./assets/vuetify-3bf44235.css');import { watch as X, onScopeDispose as tt, effectScope as Ul, shallowRef as K, Fragment as ie, reactive as it, computed as b, watchEffect as Ne, toRefs as Wt, capitalize as On, isVNode as Oc, Comment as Rc, unref as ot, warn as Ha, getCurrentInstance as Nc, ref as W, provide as Ae, inject as ye, defineComponent as Hc, camelize as Ir, h as jt, toRaw as Ee, createVNode as r, mergeProps as N, onBeforeUnmount as nt, readonly as Kl, onDeactivated as _r, onActivated as zc, onMounted as Ke, nextTick as Se, TransitionGroup as ql, Transition as Ht, isRef as _n, toRef as F, onBeforeMount as Xl, withDirectives as $e, resolveDirective as dt, vShow as xt, onUpdated as Wc, Text as jc, resolveDynamicComponent as Yc, markRaw as Gc, Teleport as Uc, cloneVNode as Kc, createTextVNode as Pt, onUnmounted as qc, onBeforeUpdate as Xc, withModifiers as Pl, toDisplayString as Zc, vModelText as Qc, resolveComponent as Jc, render as Tr } from "./vue-a92df366.js";
13
+ } await loadCss('./assets/vuetify-fbb86b3a.css');import { watch as X, onScopeDispose as tt, effectScope as Ul, shallowRef as K, Fragment as ie, reactive as it, computed as b, watchEffect as Ne, toRefs as Wt, capitalize as On, isVNode as Oc, Comment as Rc, unref as ot, warn as Ha, getCurrentInstance as Nc, ref as W, provide as Ae, inject as ye, defineComponent as Hc, camelize as Ir, h as jt, toRaw as Ee, createVNode as r, mergeProps as N, onBeforeUnmount as nt, readonly as Kl, onDeactivated as _r, onActivated as zc, onMounted as Ke, nextTick as Se, TransitionGroup as ql, Transition as Ht, isRef as _n, toRef as F, onBeforeMount as Xl, withDirectives as $e, resolveDirective as dt, vShow as xt, onUpdated as Wc, Text as jc, resolveDynamicComponent as Yc, markRaw as Gc, Teleport as Uc, cloneVNode as Kc, createTextVNode as Pt, onUnmounted as qc, onBeforeUpdate as Xc, withModifiers as Pl, toDisplayString as Zc, vModelText as Qc, resolveComponent as Jc, render as Tr } from "./vue-fcafcafd.js";
14
14
  function rt(e, n) {
15
15
  let t;
16
16
  function a() {
@@ -1 +1 @@
1
- export * from "./vuetify-3bf44235.js";
1
+ export * from "./vuetify-fbb86b3a.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcmap/ui",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "author": "Virtual City Systems",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@vcmap-cesium/engine": "^11.0.2",
60
- "@vcmap/core": "^6.0.1",
60
+ "@vcmap/core": "^6.0.2",
61
61
  "ol": "^10.2.1",
62
62
  "vue": "~3.4.38",
63
63
  "vuetify": "^3.7.3"
@@ -25,17 +25,17 @@
25
25
  const editors = plugin.getConfigEditors?.();
26
26
  if (editors?.length > 0) {
27
27
  const actions = editors
28
- .map((e) => e.component)
29
- .filter((c) => c)
30
- .map((component, index) =>
28
+ .filter((e) => e.component)
29
+ .map((e, index) =>
31
30
  createToggleAction(
32
31
  {
33
32
  name: `editor-${index + 1}`,
33
+ title: e.title,
34
34
  icon: index < 9 ? `mdi-numeric-${index + 1}-box` : undefined,
35
35
  },
36
36
  {
37
37
  id: `${plugin.name}-editor-${index}`,
38
- component,
38
+ component: e.component,
39
39
  parentId: name,
40
40
  slot: WindowSlot.DYNAMIC_CHILD,
41
41
  props: {
@@ -60,7 +60,8 @@
60
60
  },
61
61
  state: {
62
62
  headerTitle:
63
- component.title ?? `${plugin.name} Editor ${index + 1}`,
63
+ e.title ?? `${plugin.name} Editor ${index + 1}`,
64
+ infoUrlCallback: e.infoUrlCallback,
64
65
  },
65
66
  position: {
66
67
  width: 500,
@@ -120,7 +120,11 @@
120
120
 
121
121
  <script>
122
122
  import { Math as CesiumMath, HeightReference } from '@vcmap-cesium/engine';
123
- import { TransformationMode, placeGeometryOnSurface } from '@vcmap/core';
123
+ import {
124
+ SessionType,
125
+ TransformationMode,
126
+ placeGeometryOnSurface,
127
+ } from '@vcmap/core';
124
128
  import { VSheet, VContainer, VRow, VCol, VIcon } from 'vuetify/components';
125
129
  import { inject, ref, watch } from 'vue';
126
130
  import VcsButton from '../buttons/VcsButton.vue';
@@ -242,11 +246,17 @@
242
246
  }),
243
247
  );
244
248
 
245
- const currentEditingFeatures =
246
- manager.currentSession.value?.currentFeatures;
247
- if (currentEditingFeatures) {
248
- manager.currentSession.value?.setCurrentFeatures(
249
- currentEditingFeatures,
249
+ if (
250
+ manager.currentEditSession.value?.type === SessionType.EDIT_FEATURES
251
+ ) {
252
+ manager.currentEditSession.value?.setFeatures(
253
+ manager.currentFeatures.value,
254
+ );
255
+ } else if (
256
+ manager.currentEditSession.value?.type === SessionType.EDIT_GEOMETRY
257
+ ) {
258
+ manager.currentEditSession.value.setFeature(
259
+ manager.currentFeatures.value[0],
250
260
  );
251
261
  }
252
262
 
File without changes