@vcmap/ui 6.1.0-rc.3 → 6.1.0-rc.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-73257b15.js";
1
+ export * from "./ui-4ae4c67a.js";
@@ -1 +1 @@
1
- export * from "./vue-ff37ea23.js";
1
+ export * from "./vue-b5c1e81a.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-2437380c.css');import { watch as Q, onScopeDispose as at, effectScope as Ql, shallowRef as K, Fragment as ae, reactive as lt, computed as b, watchEffect as Oe, toRefs as Ut, capitalize as Rn, isVNode as Rc, Comment as Nc, unref as it, warn as Ua, getCurrentInstance as Hc, ref as j, provide as Be, inject as ye, defineComponent as zc, camelize as _r, h as Yt, toRaw as De, createVNode as r, mergeProps as R, onBeforeUnmount as Ze, readonly as Jl, onDeactivated as Tr, onActivated as Wc, onMounted as Ge, nextTick as Se, TransitionGroup as ei, Transition as Wt, isRef as _n, toRef as $, onBeforeMount as ra, withDirectives as $e, resolveDirective as ft, vShow as Ct, onUpdated as jc, Text as Uc, resolveDynamicComponent as Yc, markRaw as Gc, Teleport as Kc, cloneVNode as qc, createTextVNode as It, onUnmounted as Ar, onBeforeUpdate as Xc, withModifiers as Al, toDisplayString as Zc, vModelText as Qc, resolveComponent as Jc, render as Br } from "./vue-ff37ea23.js";
13
+ } await loadCss('./assets/vuetify-1f5b5c90.css');import { watch as Q, onScopeDispose as at, effectScope as Ql, shallowRef as K, Fragment as ae, reactive as lt, computed as b, watchEffect as Oe, toRefs as Ut, capitalize as Rn, isVNode as Rc, Comment as Nc, unref as it, warn as Ua, getCurrentInstance as Hc, ref as j, provide as Be, inject as ye, defineComponent as zc, camelize as _r, h as Yt, toRaw as De, createVNode as r, mergeProps as R, onBeforeUnmount as Ze, readonly as Jl, onDeactivated as Tr, onActivated as Wc, onMounted as Ge, nextTick as Se, TransitionGroup as ei, Transition as Wt, isRef as _n, toRef as $, onBeforeMount as ra, withDirectives as $e, resolveDirective as ft, vShow as Ct, onUpdated as jc, Text as Uc, resolveDynamicComponent as Yc, markRaw as Gc, Teleport as Kc, cloneVNode as qc, createTextVNode as It, onUnmounted as Ar, onBeforeUpdate as Xc, withModifiers as Al, toDisplayString as Zc, vModelText as Qc, resolveComponent as Jc, render as Br } from "./vue-b5c1e81a.js";
14
14
  function ot(e, n) {
15
15
  let t;
16
16
  function a() {
@@ -1 +1 @@
1
- export * from "./vuetify-2437380c.js";
1
+ export * from "./vuetify-1f5b5c90.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcmap/ui",
3
- "version": "6.1.0-rc.3",
3
+ "version": "6.1.0-rc.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.1.0-rc.4",
60
+ "@vcmap/core": "^6.1.0-rc.5",
61
61
  "ol": "^10.4.0",
62
62
  "vue": "~3.4.38",
63
63
  "vuetify": "^3.7.11"
@@ -17,6 +17,7 @@ import {
17
17
  isProvidedClusterFeature,
18
18
  alreadyTransformedToImage,
19
19
  ObliqueMap,
20
+ originalFeatureSymbol,
20
21
  } from '@vcmap/core';
21
22
  import { getLogger as getLoggerByName } from '@vcsuite/logger';
22
23
  import {
@@ -545,7 +546,10 @@ class FeatureInfo extends Collection {
545
546
  this._clearInternal();
546
547
  if (
547
548
  this._selectedClusterFeature &&
548
- !this._selectedClusterFeature.get('features').includes(feature)
549
+ !this._selectedClusterFeature
550
+ .get('features')
551
+ .map((f) => f[originalFeatureSymbol] ?? f)
552
+ .includes(feature)
549
553
  ) {
550
554
  this.clearCluster();
551
555
  }
@@ -682,19 +686,23 @@ class FeatureInfo extends Collection {
682
686
  const features = clusterFeature.get('features');
683
687
  const groups = {};
684
688
  const items = features.map((f) => {
689
+ const oFeature = f[originalFeatureSymbol] ?? f;
685
690
  const listItem = reactive({
686
- name: f.getId(),
687
- title: f.getAttributes()?.title || f.getAttributes()?.name || f.getId(),
688
- disabled: !this._getFeatureInfoViewForFeature(f),
691
+ name: oFeature.getId(),
692
+ title:
693
+ oFeature.getAttributes()?.title ||
694
+ oFeature.getAttributes()?.name ||
695
+ oFeature.getId(),
696
+ disabled: !this._getFeatureInfoViewForFeature(oFeature),
689
697
  selectionChanged: (value) => {
690
698
  if (value) {
691
- this.selectFeature(f);
699
+ this.selectFeature(oFeature);
692
700
  } else {
693
701
  this.clearFeature();
694
702
  }
695
703
  },
696
704
  });
697
- const layerName = f[vcsLayerName];
705
+ const layerName = oFeature[vcsLayerName];
698
706
  if (layerName) {
699
707
  if (!groups[layerName]) {
700
708
  const title = this._app.layers.getByKey(layerName)?.properties?.title;
File without changes