@vcmap/ui 6.3.11 → 6.3.12

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-da598216.js";
1
+ export * from "./ui-aaaf46c0.js";
@@ -1 +1 @@
1
- export * from "./vue-20dd2b78.js";
1
+ export * from "./vue-c9f45cfc.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-1429f242.css');import { watch as Q, onScopeDispose as Ze, effectScope as Zl, shallowRef as K, reactive as it, computed as b, watchEffect as Fe, toRefs as Yt, capitalize as Nn, unref as ot, Fragment as ie, isVNode as Rc, Comment as Nc, warn as ja, getCurrentInstance as Hc, ref as j, provide as De, inject as ye, defineComponent as zc, h as Gt, camelize as Ir, toRaw as Be, createVNode as r, mergeProps as O, onBeforeUnmount as Qe, readonly as Ql, onMounted as Ye, onDeactivated as _r, onActivated as Wc, nextTick as we, TransitionGroup as Jl, Transition as jt, isRef as Tn, toRef as $, onBeforeMount as ra, withDirectives as $e, resolveDirective as gt, vShow as Ct, onUpdated as jc, Text as Uc, resolveDynamicComponent as Yc, markRaw as Gc, Teleport as Kc, cloneVNode as qc, createTextVNode as Tt, onUnmounted as Tr, onBeforeUpdate as Xc, withModifiers as Tl, toDisplayString as Zc, vModelText as Qc, resolveComponent as Jc, render as Ar } from "./vue-20dd2b78.js";
13
+ } await loadCss('./assets/vuetify-a9ccbd51.css');import { watch as Q, onScopeDispose as Ze, effectScope as Zl, shallowRef as K, reactive as it, computed as b, watchEffect as Fe, toRefs as Yt, capitalize as Nn, unref as ot, Fragment as ie, isVNode as Rc, Comment as Nc, warn as ja, getCurrentInstance as Hc, ref as j, provide as De, inject as ye, defineComponent as zc, h as Gt, camelize as Ir, toRaw as Be, createVNode as r, mergeProps as O, onBeforeUnmount as Qe, readonly as Ql, onMounted as Ye, onDeactivated as _r, onActivated as Wc, nextTick as we, TransitionGroup as Jl, Transition as jt, isRef as Tn, toRef as $, onBeforeMount as ra, withDirectives as $e, resolveDirective as gt, vShow as Ct, onUpdated as jc, Text as Uc, resolveDynamicComponent as Yc, markRaw as Gc, Teleport as Kc, cloneVNode as qc, createTextVNode as Tt, onUnmounted as Tr, onBeforeUpdate as Xc, withModifiers as Tl, toDisplayString as Zc, vModelText as Qc, resolveComponent as Jc, render as Ar } from "./vue-c9f45cfc.js";
14
14
  function rt(e, n) {
15
15
  let t;
16
16
  function a() {
@@ -1 +1 @@
1
- export * from "./vuetify-1429f242.js";
1
+ export * from "./vuetify-a9ccbd51.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcmap/ui",
3
- "version": "6.3.11",
3
+ "version": "6.3.12",
4
4
  "author": "Virtual City Systems",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@vcmap-cesium/engine": "^11.0.5",
58
- "@vcmap/core": "^6.3.9",
58
+ "@vcmap/core": "^6.3.10",
59
59
  "ol": "^10.4.0",
60
60
  "vue": "~3.4.38",
61
61
  "vuetify": "~3.7.14"
@@ -12,7 +12,7 @@
12
12
  "@vcmap/measurement": "^5.0.0",
13
13
  "@vcmap/multi-view": "^3.0.0",
14
14
  "@vcmap/draw": "^5.0.0",
15
- "@vcmap/shadow": "^3.1.0",
15
+ "@vcmap/shadow": "^3.3.0",
16
16
  "@vcmap/search-wfs": "^2.1.0",
17
17
  "@vcmap/search-esri": "^3.0.0",
18
18
  "@vcmap/search-coordinate": "^2.0.0",
@@ -20,7 +20,7 @@
20
20
  "@vcmap/cesium-filters": "^2.0.0",
21
21
  "@vcmap/search-nominatim": "^2.0.0",
22
22
  "@vcmap/create-link": "^3.0.0",
23
- "@vcmap/module-selector": "^3.0.0",
23
+ "@vcmap/module-selector": "^4.0.0",
24
24
  "@vcmap/line-of-sight": "^2.0.0",
25
25
  "@vcmap/layer-slider": "^2.0.0",
26
26
  "@vcmap/vcs-solar-balloon": "^2.0.0",
@@ -14,6 +14,7 @@
14
14
  <div class="d-flex gc-2 w-100 justify-end">
15
15
  <slot name="secondaryButton" />
16
16
  <VcsFormButton
17
+ v-if="showNew"
17
18
  variant="filled"
18
19
  :disabled="disableNew"
19
20
  :tooltip="tooltipNew"
@@ -39,6 +40,7 @@
39
40
  * Providing a footer with add and new buttons.
40
41
  * @vue-prop {boolean} [showFooter=true] - Flag to hide the footer.
41
42
  * @vue-prop {boolean} [showAdd=true] - Flag to show an add button in the footer. You need to handle @addClicked in a child component.
43
+ * @vue-prop {boolean} [showNew=true] - Flag to show a new button in the footer.
42
44
  * @vue-prop {boolean} [disableAdd=false] - Flag to render add button disabled.
43
45
  * @vue-prop {boolean} [tooltipAdd='components.addToMyWorkspace'] - Option to change the add button tooltip.
44
46
  * @vue-prop {boolean} [disableNew=false] - Flag to render new button disabled.
@@ -66,6 +68,10 @@
66
68
  type: Boolean,
67
69
  default: true,
68
70
  },
71
+ showNew: {
72
+ type: Boolean,
73
+ default: true,
74
+ },
69
75
  disableAdd: {
70
76
  type: Boolean,
71
77
  default: false,
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<{
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
9
9
  };
10
+ showNew: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
10
14
  disableAdd: {
11
15
  type: BooleanConstructor;
12
16
  default: boolean;
@@ -42,6 +46,10 @@ declare const _default: import("vue").DefineComponent<{
42
46
  type: BooleanConstructor;
43
47
  default: boolean;
44
48
  };
49
+ showNew: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
45
53
  disableAdd: {
46
54
  type: BooleanConstructor;
47
55
  default: boolean;
@@ -73,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
73
81
  actions: unknown[];
74
82
  showFooter: boolean;
75
83
  showAdd: boolean;
84
+ showNew: boolean;
76
85
  disableAdd: boolean;
77
86
  tooltipAdd: string;
78
87
  newButtonTitle: string;
@@ -287,19 +287,20 @@ function getWindowState(app, state, attributes) {
287
287
  }
288
288
 
289
289
  /**
290
- * Recursively searches for parent feature attributes, if __PARENT_FEATURE property is set. Parent feature is searched in the batchTable of the content of the given feature.
290
+ * Recursively searches for parent feature attributes, if __PARENT_FEATURE property is set. Parent feature is searched in the content of the given feature.
291
291
  * @param {import("ol").Feature|import("@vcmap-cesium/engine").Cesium3DTileFeature|import("@vcmap-cesium/engine").Cesium3DTilePointFeature} feature
292
292
  * @param {Array<object>} records - array of parent feature attributes
293
293
  * @returns {Array<object>} record of parent feature ids and their attributes
294
294
  */
295
295
  function getParentFeatureAttributes(feature, records = []) {
296
296
  const parentId = feature.getProperty('__PARENT_FEATURE');
297
- if (parentId !== 'null' && feature.content?.batchTable) {
298
- for (let i = 0; i < feature.content.batchTable.featuresLength; i++) {
299
- const batchTableFeature = feature.content.batchTable.getFeature(i);
300
- if (batchTableFeature.getProperty('id') === parentId) {
301
- records.push(batchTableFeature.getAttributes());
302
- return getParentFeatureAttributes(batchTableFeature, records);
297
+ if (parentId !== undefined && parentId !== 'null' && feature.content) {
298
+ const { content } = feature;
299
+ for (let i = 0; i < content.featuresLength; i++) {
300
+ const contentFeature = content.getFeature(i);
301
+ if (contentFeature.getProperty('id') === parentId) {
302
+ records.push(contentFeature.getAttributes());
303
+ return getParentFeatureAttributes(contentFeature, records);
303
304
  }
304
305
  }
305
306
  }
@@ -442,6 +443,10 @@ class AbstractFeatureInfoView extends VcsObject {
442
443
  */
443
444
  getAttributes(feature) {
444
445
  let attributes = this._getAttributesFromFeature(feature);
446
+ attributes = applyEmptyAttributesFilter(
447
+ attributes,
448
+ this.removeNoDataAttributes,
449
+ );
445
450
  if (this.attributeKeys.length > 0) {
446
451
  attributes = applyAttributeFilter(attributes, this.attributeKeys);
447
452
  }
@@ -452,8 +457,7 @@ class AbstractFeatureInfoView extends VcsObject {
452
457
  applyKeyMapping(attributes, this.keyMapping);
453
458
  }
454
459
  attributes = applyOlcsAttributeFilter(attributes, this.attributeKeys);
455
- attributes = applyDoubleUnderscoreFilter(attributes, this.attributeKeys);
456
- return applyEmptyAttributesFilter(attributes, this.removeNoDataAttributes);
460
+ return applyDoubleUnderscoreFilter(attributes, this.attributeKeys);
457
461
  }
458
462
 
459
463
  /**
File without changes