@vcmap/ui 5.1.0 → 5.1.2

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.301d83.js";
1
+ export * from "./ui.a843ac.js";
@@ -1,5 +1,5 @@
1
- export * from "./vue.806e32.js";
2
- import { default as f } from "./vue.806e32.js";
1
+ export * from "./vue.118f2c.js";
2
+ import { default as f } from "./vue.118f2c.js";
3
3
  export {
4
4
  f as default
5
5
  };
@@ -13,7 +13,7 @@ function loadCss(href) {
13
13
  elem.onerror = reject;
14
14
  document.head.appendChild(elem);
15
15
  });
16
- } await loadCss('./assets/vuetify.2fbc17.css');import v from "./vue.806e32.js";
16
+ } await loadCss('./assets/vuetify.50800a.css');import v from "./vue.118f2c.js";
17
17
  const Ne = v.extend().extend({
18
18
  name: "themeable",
19
19
  provide() {
@@ -1,5 +1,5 @@
1
- export * from "./vuetify.2fbc17.js";
2
- import { default as f } from "./vuetify.2fbc17.js";
1
+ export * from "./vuetify.50800a.js";
2
+ import { default as f } from "./vuetify.50800a.js";
3
3
  export {
4
4
  f as default
5
5
  };
package/dist/index.html CHANGED
@@ -91,7 +91,7 @@
91
91
  }
92
92
  }
93
93
  </style>
94
- <script type="module" crossorigin src="./assets/index-de529e1b.js"></script>
94
+ <script type="module" crossorigin src="./assets/index-cc59d4fd.js"></script>
95
95
  </head>
96
96
  <body style="height: 100vh; margin: 0;">
97
97
  <noscript>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcmap/ui",
3
- "version": "5.1.0",
3
+ "version": "5.1.2",
4
4
  "author": "Virtual City Systems",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@vcmap-cesium/engine": "^4.0.3",
56
- "@vcmap/core": "^5.1.0",
56
+ "@vcmap/core": "^5.1.1",
57
57
  "ol": "^7.5.2",
58
58
  "vue": "~2.7.3",
59
59
  "vuetify": "~2.6.7"
@@ -359,10 +359,16 @@
359
359
  const last = page.value * itemsPerPageRef.value;
360
360
  return last < numberOfItems.value ? last : numberOfItems.value;
361
361
  });
362
+
362
363
  watch(
363
364
  () => props.items,
364
365
  () => {
365
- page.value = 1;
366
+ if (
367
+ props.serverPagesLength === -1 &&
368
+ props.serverItemsLength === -1
369
+ ) {
370
+ page.value = 1;
371
+ }
366
372
  },
367
373
  );
368
374
 
@@ -47,13 +47,12 @@
47
47
  v-if="animate"
48
48
  id="duration"
49
49
  dense
50
+ clearable
50
51
  type="number"
51
- :min="0"
52
+ :min="1"
52
53
  unit="s"
53
54
  :title="$t('components.viewpoint.duration')"
54
- placeholder="0 s"
55
55
  v-model.number="duration"
56
- :rules="[isPositiveNumber]"
57
56
  />
58
57
  </v-col>
59
58
  </v-row>
@@ -103,11 +103,13 @@ export async function loadPlugin(name, config) {
103
103
  // early escape to bypass module loading for testing, see import("@src/vcsUiApp.js").default.spec.js
104
104
  return null;
105
105
  }
106
+ const moduleUrl = new URL(module, window.location.href);
106
107
  if (config.version) {
107
- const moduleUrl = new URL(module, window.location.href);
108
108
  moduleUrl.searchParams.set('version', config.version);
109
- module = moduleUrl.toString();
110
109
  }
110
+ moduleUrl.searchParams.set('mapVersion', version);
111
+ module = moduleUrl.toString();
112
+
111
113
  // if (!context.security.isTrustedUrl(module)) { XXX missing pipeline security
112
114
  // getLogger().warning(`suppressed loading of insecure plugin ${module}`);
113
115
  // return Promise.resolve();
@@ -1 +0,0 @@
1
- import{initAppFromAppConfig as p}from"./ui.301d83.js";p("#app","app.config.json");
File without changes
File without changes