@vcmap/ui 6.1.0 → 6.1.1
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/build/bundle.js +3 -3
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core-841b71a4.js → core-5ae90f6d.js} +351 -346
- package/dist/assets/core.js +1 -1
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui-2fd6f47d.css → ui-e659989f.css} +1 -1
- package/dist/assets/{ui-2fd6f47d.js → ui-e659989f.js} +5065 -4996
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify-4bc77ff7.js → vuetify-cc6a8213.js} +1 -1
- package/dist/assets/vuetify.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -0
- package/package.json +14 -6
- package/plugins/package.json +3 -1
- package/src/actions/actionHelper.js +8 -2
- package/src/actions/deepPickingAction.js +6 -1
- package/src/actions/extentActions.js +20 -6
- package/src/actions/flightActions.js +5 -1
- package/src/application/VcsApp.vue +30 -21
- package/src/callback/activateLayersCallback.js +9 -1
- package/src/callback/addModuleCallback.js +2 -1
- package/src/components/lists/VcsTreeview.vue +10 -1
- package/src/contentTree/layerGroupContentTreeItem.js +11 -1
- package/src/contentTree/wmsChildContentTreeItem.d.ts +1 -1
- package/src/contentTree/wmsChildContentTreeItem.js +2 -2
- package/src/contentTree/wmsGroupContentTreeItem.d.ts +5 -5
- package/src/contentTree/wmsGroupContentTreeItem.js +12 -11
- package/src/featureInfo/featureInfo.js +3 -1
- package/src/legend/legendHelper.d.ts +15 -0
- package/src/legend/legendHelper.js +28 -3
- package/src/manager/window/windowManager.js +5 -6
- package/src/navigation/overviewMap.js +1 -1
- package/src/search/ResultsComponent.vue +10 -1
- package/src/search/SearchComponent.vue +11 -6
- package/src/vcsUiApp.js +7 -1
- /package/dist/assets/{cesium-664ad022.js → cesium-be8a1422.js} +0 -0
- /package/dist/assets/{ol-2e095c08.js → ol-d5f8aba6.js} +0 -0
- /package/dist/assets/{vue-71fd14e8.js → vue-3435e55b.js} +0 -0
- /package/dist/assets/{vuetify-4bc77ff7.css → vuetify-cc6a8213.css} +0 -0
@@ -746,12 +746,11 @@ class WindowManager {
|
|
746
746
|
* @param {string|vcsAppSymbol} owner
|
747
747
|
*/
|
748
748
|
removeOwner(owner) {
|
749
|
-
const
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
}
|
749
|
+
const toRemove = this.componentIds.filter(
|
750
|
+
(id) => this.get(id)?.state?.owner === owner,
|
751
|
+
);
|
752
|
+
toRemove.forEach((id) => {
|
753
|
+
this.remove(id);
|
755
754
|
});
|
756
755
|
this._externalZIndexIds.forEach((externalOwner, id) => {
|
757
756
|
if (externalOwner === owner) {
|
@@ -276,7 +276,7 @@ class OverviewMap {
|
|
276
276
|
if (activeOnStartup && !hide && !this._active) {
|
277
277
|
await this.activate();
|
278
278
|
} else if (hide && this._active) {
|
279
|
-
|
279
|
+
this.deactivate();
|
280
280
|
}
|
281
281
|
if (scaleFactor) {
|
282
282
|
this._scaleFactor = scaleFactor;
|
@@ -23,6 +23,7 @@
|
|
23
23
|
import { inject, onUnmounted, ref, computed } from 'vue';
|
24
24
|
import { VList } from 'vuetify/components';
|
25
25
|
import { useDisplay } from 'vuetify';
|
26
|
+
import { getLogger } from '@vcsuite/logger';
|
26
27
|
import ResultItem from './ResultItem.vue';
|
27
28
|
|
28
29
|
/**
|
@@ -92,7 +93,15 @@
|
|
92
93
|
const [index] = value;
|
93
94
|
if (index >= 0) {
|
94
95
|
const item = items.value[index];
|
95
|
-
item.clicked();
|
96
|
+
const p = item.clicked();
|
97
|
+
if (p instanceof Promise) {
|
98
|
+
p.catch((e) => {
|
99
|
+
getLogger('ResultComponent.vue').error(
|
100
|
+
'Result item failed on click',
|
101
|
+
e,
|
102
|
+
);
|
103
|
+
});
|
104
|
+
}
|
96
105
|
}
|
97
106
|
},
|
98
107
|
});
|
@@ -149,12 +149,17 @@
|
|
149
149
|
suggesting.value = requestId;
|
150
150
|
queryPreSuggestion = trimmedInput;
|
151
151
|
selectedSuggestion.value = -1;
|
152
|
-
app.search
|
153
|
-
|
154
|
-
|
155
|
-
suggesting.value
|
156
|
-
|
157
|
-
|
152
|
+
app.search
|
153
|
+
.suggest(trimmedInput)
|
154
|
+
.then((s) => {
|
155
|
+
if (suggesting.value === requestId) {
|
156
|
+
suggestions.value = s;
|
157
|
+
suggesting.value = '';
|
158
|
+
}
|
159
|
+
})
|
160
|
+
.catch(() => {
|
161
|
+
getLogger('SearchComponent.vue').warn('suggestion failed');
|
162
|
+
});
|
158
163
|
}, 200);
|
159
164
|
} else {
|
160
165
|
selectedSuggestion.value = -1;
|
package/src/vcsUiApp.js
CHANGED
@@ -656,7 +656,13 @@ class VcsUiApp extends VcsApp {
|
|
656
656
|
const layer = this.layers.getByKey(layerState.name);
|
657
657
|
if (layer) {
|
658
658
|
if (layerState.active) {
|
659
|
-
layer.activate()
|
659
|
+
layer.activate().catch((e) => {
|
660
|
+
getLogger().warn(
|
661
|
+
'Failed to activate cached app state. layer failed: ',
|
662
|
+
layer.name,
|
663
|
+
);
|
664
|
+
getLogger().error(e);
|
665
|
+
});
|
660
666
|
} else {
|
661
667
|
layer.deactivate();
|
662
668
|
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|