@vcmap/ui 6.3.7 → 6.3.8
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/cesium.js +1 -1
- package/dist/assets/{core-a6684686.js → core-118b5284.js} +3324 -3299
- package/dist/assets/core-workers/panoramaImageWorker.js +1 -1
- package/dist/assets/core.js +1 -1
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui-130549f1.css → ui-2b2de3ce.css} +1 -1
- package/dist/assets/{ui-130549f1.js → ui-2b2de3ce.js} +135 -125
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify-6d0e90c9.js → vuetify-5d94bb1a.js} +1 -1
- package/dist/assets/vuetify.js +1 -1
- package/package.json +2 -2
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +1 -0
- package/src/callback/activateLayersCallback.d.ts +1 -1
- package/src/callback/activateLayersCallback.js +5 -3
- package/src/callback/activateMapCallback.d.ts +1 -1
- package/src/callback/activateMapCallback.js +5 -3
- package/src/callback/activateOverviewMapCallback.d.ts +1 -1
- package/src/callback/activateOverviewMapCallback.js +5 -3
- package/src/callback/addModuleCallback.d.ts +1 -1
- package/src/callback/addModuleCallback.js +9 -11
- package/src/callback/removeModuleCallback.d.ts +1 -1
- package/src/callback/removeModuleCallback.js +8 -3
- package/src/components/form-inputs-controls/VcsLabeledSlider.vue +4 -4
- package/src/components/form-inputs-controls/VcsLabeledSlider.vue.d.ts +8 -7
- /package/dist/assets/{cesium-a9fcdef3.js → cesium-c32c5784.js} +0 -0
- /package/dist/assets/core-workers/{panoramaImageWorker.js-1e5adc77.js → panoramaImageWorker.js-e4d99227.js} +0 -0
- /package/dist/assets/{ol-15bf8646.js → ol-d44cf1bf.js} +0 -0
- /package/dist/assets/{vue-d93cd563.js → vue-a7d70c19.js} +0 -0
- /package/dist/assets/{vuetify-6d0e90c9.css → vuetify-5d94bb1a.css} +0 -0
package/dist/assets/ui.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./ui-
|
|
1
|
+
export * from "./ui-2b2de3ce.js";
|
package/dist/assets/vue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./vue-
|
|
1
|
+
export * from "./vue-a7d70c19.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-
|
|
13
|
+
} await loadCss('./assets/vuetify-5d94bb1a.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-a7d70c19.js";
|
|
14
14
|
function rt(e, n) {
|
|
15
15
|
let t;
|
|
16
16
|
function a() {
|
package/dist/assets/vuetify.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./vuetify-
|
|
1
|
+
export * from "./vuetify-5d94bb1a.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vcmap/ui",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.8",
|
|
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.
|
|
58
|
+
"@vcmap/core": "^6.3.8",
|
|
59
59
|
"ol": "^10.4.0",
|
|
60
60
|
"vue": "~3.4.38",
|
|
61
61
|
"vuetify": "~3.7.14"
|
|
@@ -31,11 +31,11 @@ class ActivateLayersCallback extends VcsCallback {
|
|
|
31
31
|
this._layerNames = options.layerNames;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
callback() {
|
|
35
|
-
this._layerNames
|
|
34
|
+
async callback() {
|
|
35
|
+
const layerPromises = this._layerNames
|
|
36
36
|
.map((n) => this._app.layers.getByKey(n))
|
|
37
37
|
.filter((l) => l)
|
|
38
|
-
.
|
|
38
|
+
.map((l) =>
|
|
39
39
|
l.activate().catch((e) => {
|
|
40
40
|
getLogger('ActivateLayersCallback').error(
|
|
41
41
|
`Could not activate layer: ${l.name}`,
|
|
@@ -43,6 +43,8 @@ class ActivateLayersCallback extends VcsCallback {
|
|
|
43
43
|
);
|
|
44
44
|
}),
|
|
45
45
|
);
|
|
46
|
+
|
|
47
|
+
await Promise.all(layerPromises);
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
/**
|
|
@@ -28,14 +28,16 @@ class ActivateMapCallback extends VcsCallback {
|
|
|
28
28
|
/**
|
|
29
29
|
* Activates the map with the given name.
|
|
30
30
|
*/
|
|
31
|
-
callback() {
|
|
31
|
+
async callback() {
|
|
32
32
|
if (this._mapName) {
|
|
33
|
-
|
|
33
|
+
try {
|
|
34
|
+
await this._app.maps.setActiveMap(this._mapName);
|
|
35
|
+
} catch (error) {
|
|
34
36
|
getLogger(ActivateMapCallback.className).error(
|
|
35
37
|
`Failed to activate map "${this._mapName}":`,
|
|
36
38
|
error,
|
|
37
39
|
);
|
|
38
|
-
}
|
|
40
|
+
}
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
|
|
@@ -3,6 +3,6 @@ export default ActivateOverviewMapCallback;
|
|
|
3
3
|
* Callback to activate the overview map using its API.
|
|
4
4
|
*/
|
|
5
5
|
declare class ActivateOverviewMapCallback extends VcsCallback {
|
|
6
|
-
callback(): void
|
|
6
|
+
callback(): Promise<void>;
|
|
7
7
|
}
|
|
8
8
|
import VcsCallback from './vcsCallback.js';
|
|
@@ -9,13 +9,15 @@ class ActivateOverviewMapCallback extends VcsCallback {
|
|
|
9
9
|
return 'ActivateOverviewMapCallback';
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
callback() {
|
|
13
|
-
|
|
12
|
+
async callback() {
|
|
13
|
+
try {
|
|
14
|
+
await this._app.overviewMap.activate();
|
|
15
|
+
} catch (error) {
|
|
14
16
|
getLogger(ActivateOverviewMapCallback.className).error(
|
|
15
17
|
'Failed to activate overview map:',
|
|
16
18
|
error,
|
|
17
19
|
);
|
|
18
|
-
}
|
|
20
|
+
}
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
|
|
@@ -32,17 +32,15 @@ class AddModuleCallback extends VcsCallback {
|
|
|
32
32
|
this._module = options.module;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
callback() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
getLogger('addModuleCallback').error('Error adding module', e);
|
|
45
|
-
});
|
|
35
|
+
async callback() {
|
|
36
|
+
try {
|
|
37
|
+
const module = await createModuleFromObjectOrUrl(this._module);
|
|
38
|
+
if (module) {
|
|
39
|
+
await this._app.addModule(module);
|
|
40
|
+
}
|
|
41
|
+
} catch (e) {
|
|
42
|
+
getLogger('addModuleCallback').error('Error adding module', e);
|
|
43
|
+
}
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getLogger } from '@vcsuite/logger';
|
|
1
2
|
import VcsCallback, { callbackClassRegistry } from './vcsCallback.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -30,9 +31,13 @@ class RemoveModuleCallback extends VcsCallback {
|
|
|
30
31
|
this._moduleId = options.moduleId;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
callback() {
|
|
34
|
-
|
|
35
|
-
this._app.
|
|
34
|
+
async callback() {
|
|
35
|
+
try {
|
|
36
|
+
if (this._app.getModuleById(this._moduleId)) {
|
|
37
|
+
await this._app.removeModule(this._moduleId);
|
|
38
|
+
}
|
|
39
|
+
} catch (e) {
|
|
40
|
+
getLogger('removeModuleCallback').error('Error removing module', e);
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
43
|
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* @description stylized component, rendering a row with a label and an inputfield, and another with a slider.
|
|
50
|
-
* @vue-prop {number} modelValue - The value modeled by the slider and inputfield.
|
|
50
|
+
* @vue-prop {number} [modelValue=0] - The value modeled by the slider and inputfield.
|
|
51
51
|
* @vue-prop {string} label - The title of the value to be modeled. Will be translated.
|
|
52
52
|
* @vue-prop {string} [tooltip] - An optional tooltip for the label.
|
|
53
53
|
* @vue-prop {boolean} [allowTextInput=false] - Whether to allow the value to be manually set in an inputfield.
|
|
54
|
-
* @vue-prop {number} [textInputCols=6] - The number of columns the text input should take (out of 12).
|
|
54
|
+
* @vue-prop {number | string | boolean} [textInputCols=6] - The number of columns the text input should take (out of 12).
|
|
55
55
|
* All other props will be forwarded to the slider and inputfield (if allowTextInput is true). E.g. min, max, step, disabled and unit can be provided to the component.
|
|
56
56
|
*/
|
|
57
57
|
export default {
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
VcsTextField,
|
|
65
65
|
},
|
|
66
66
|
props: {
|
|
67
|
-
modelValue: { type: Number,
|
|
67
|
+
modelValue: { type: [Number, String], default: 0 },
|
|
68
68
|
label: { type: String, required: true },
|
|
69
69
|
tooltip: { type: String, default: undefined },
|
|
70
70
|
allowTextInput: { type: Boolean, default: false },
|
|
71
|
-
textInputCols: { type: Number, default: 6 },
|
|
71
|
+
textInputCols: { type: [Number, String, Boolean], default: 6 },
|
|
72
72
|
},
|
|
73
73
|
emits: ['update:modelValue'],
|
|
74
74
|
setup(props, { attrs, emit }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
modelValue: {
|
|
3
|
-
type: NumberConstructor;
|
|
4
|
-
|
|
3
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
4
|
+
default: number;
|
|
5
5
|
};
|
|
6
6
|
label: {
|
|
7
7
|
type: StringConstructor;
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
18
|
textInputCols: {
|
|
19
|
-
type: NumberConstructor;
|
|
19
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
20
20
|
default: number;
|
|
21
21
|
};
|
|
22
22
|
}, {
|
|
@@ -25,8 +25,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
getVisibleValue: (value: any) => string;
|
|
26
26
|
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
27
|
modelValue: {
|
|
28
|
-
type: NumberConstructor;
|
|
29
|
-
|
|
28
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
29
|
+
default: number;
|
|
30
30
|
};
|
|
31
31
|
label: {
|
|
32
32
|
type: StringConstructor;
|
|
@@ -41,14 +41,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
default: boolean;
|
|
42
42
|
};
|
|
43
43
|
textInputCols: {
|
|
44
|
-
type: NumberConstructor;
|
|
44
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
45
45
|
default: number;
|
|
46
46
|
};
|
|
47
47
|
}>> & {
|
|
48
48
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
49
49
|
}, {
|
|
50
|
+
modelValue: string | number;
|
|
50
51
|
tooltip: string;
|
|
51
52
|
allowTextInput: boolean;
|
|
52
|
-
textInputCols: number;
|
|
53
|
+
textInputCols: string | number | boolean;
|
|
53
54
|
}, {}>;
|
|
54
55
|
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|