@vcmap/ui 6.3.6 → 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.
Files changed (38) hide show
  1. package/config/base.config.json +22 -3
  2. package/config/concepts-show-case.config.json +4 -0
  3. package/dist/assets/{cesium-13cf3c65.js → cesium-c32c5784.js} +64804 -64777
  4. package/dist/assets/cesium.js +1 -1
  5. package/dist/assets/{core-b552e43f.js → core-118b5284.js} +5861 -5824
  6. package/dist/assets/core-workers/panoramaImageWorker.js +1 -1
  7. package/dist/assets/core.js +1 -1
  8. package/dist/assets/ol.js +1 -1
  9. package/dist/assets/{ui-a2ca1d03.css → ui-2b2de3ce.css} +1 -1
  10. package/dist/assets/{ui-a2ca1d03.js → ui-2b2de3ce.js} +136 -126
  11. package/dist/assets/ui.js +1 -1
  12. package/dist/assets/vue.js +1 -1
  13. package/dist/assets/{vuetify-e536bde6.js → vuetify-5d94bb1a.js} +1 -1
  14. package/dist/assets/vuetify.js +1 -1
  15. package/package.json +2 -2
  16. package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +1 -0
  17. package/plugins/@vcmap-show-case/tileset-feature-visibility/package.json +5 -0
  18. package/plugins/@vcmap-show-case/tileset-feature-visibility/src/TilesetFeatureVisibilityComponent.vue +349 -0
  19. package/plugins/@vcmap-show-case/tileset-feature-visibility/src/TilesetFeatureVisibilityInteraction.js +66 -0
  20. package/plugins/@vcmap-show-case/tileset-feature-visibility/src/index.js +135 -0
  21. package/plugins/package.json +4 -4
  22. package/src/callback/activateLayersCallback.d.ts +1 -1
  23. package/src/callback/activateLayersCallback.js +5 -3
  24. package/src/callback/activateMapCallback.d.ts +1 -1
  25. package/src/callback/activateMapCallback.js +5 -3
  26. package/src/callback/activateOverviewMapCallback.d.ts +1 -1
  27. package/src/callback/activateOverviewMapCallback.js +5 -3
  28. package/src/callback/addModuleCallback.d.ts +1 -1
  29. package/src/callback/addModuleCallback.js +9 -11
  30. package/src/callback/removeModuleCallback.d.ts +1 -1
  31. package/src/callback/removeModuleCallback.js +8 -3
  32. package/src/components/form-inputs-controls/VcsLabeledSlider.vue +4 -4
  33. package/src/components/form-inputs-controls/VcsLabeledSlider.vue.d.ts +8 -7
  34. package/src/vuePlugins/vuetify.js +2 -4
  35. /package/dist/assets/core-workers/{panoramaImageWorker.js-1169c1e6.js → panoramaImageWorker.js-e4d99227.js} +0 -0
  36. /package/dist/assets/{ol-bb6d9ab8.js → ol-d44cf1bf.js} +0 -0
  37. /package/dist/assets/{vue-1a9cf873.js → vue-a7d70c19.js} +0 -0
  38. /package/dist/assets/{vuetify-e536bde6.css → vuetify-5d94bb1a.css} +0 -0
@@ -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
- this._app.overviewMap.activate().catch((error) => {
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
 
@@ -21,7 +21,7 @@ declare class AddModuleCallback extends VcsCallback {
21
21
  * @private
22
22
  */
23
23
  private _module;
24
- callback(): void;
24
+ callback(): Promise<void>;
25
25
  /**
26
26
  * @returns {AddModuleCallbackOptions}
27
27
  */
@@ -32,17 +32,15 @@ class AddModuleCallback extends VcsCallback {
32
32
  this._module = options.module;
33
33
  }
34
34
 
35
- callback() {
36
- createModuleFromObjectOrUrl(this._module)
37
- .then((module) => {
38
- if (module) {
39
- return this._app.addModule(module);
40
- }
41
- return undefined;
42
- })
43
- .catch((e) => {
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
  /**
@@ -21,7 +21,7 @@ declare class RemoveModuleCallback extends VcsCallback {
21
21
  * @private
22
22
  */
23
23
  private _moduleId;
24
- callback(): void;
24
+ callback(): Promise<void>;
25
25
  /**
26
26
  * @returns {RemoveModuleCallbackOptions}
27
27
  */
@@ -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
- if (this._app.getModuleById(this._moduleId)) {
35
- this._app.removeModule(this._moduleId);
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, required: true },
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
- required: true;
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
- required: true;
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;
@@ -358,11 +358,9 @@ export function useFontSize() {
358
358
  export function isMobileLandscape() {
359
359
  const display = useDisplay();
360
360
  return computed(() => {
361
- // Check if the device is a mobile platform (e.g., Android, iOS, or touch-based)
361
+ // Check if the device is a mobile platform (e.g., Android, iOS)
362
362
  const isMobilePlatform =
363
- display.platform.value.android ||
364
- display.platform.value.ios ||
365
- display.platform.value.touch;
363
+ display.platform.value.android || display.platform.value.ios;
366
364
 
367
365
  // Check if the device height is less than the threshold for SM
368
366
  const isHeightXs = display.height.value <= display.thresholds.value.sm;
File without changes