@vcmap/ui 5.1.0-rc.3 → 5.1.0

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 (33) hide show
  1. package/build/getPluginProxies.js +16 -2
  2. package/config/www.config.json +7 -0
  3. package/dist/assets/cesium.js +1 -1
  4. package/dist/assets/{core.ee9f31.js → core.8fff97.js} +3592 -3536
  5. package/dist/assets/core.js +1 -1
  6. package/dist/assets/index-de529e1b.js +1 -0
  7. package/dist/assets/ol.js +1 -1
  8. package/dist/assets/{ui.7d2c2e.js → ui.301d83.js} +551 -508
  9. package/dist/assets/ui.js +1 -1
  10. package/dist/assets/vue.js +2 -2
  11. package/dist/assets/{vuetify.d22222.js → vuetify.2fbc17.js} +1 -1
  12. package/dist/assets/vuetify.js +2 -2
  13. package/dist/index.html +1 -1
  14. package/index.d.ts +2 -2
  15. package/index.js +4 -1
  16. package/package.json +3 -3
  17. package/plugins/package.json +4 -2
  18. package/src/components/flight/VcsFlightComponent.vue +1 -0
  19. package/src/components/import/ImportComponent.vue +13 -2
  20. package/src/components/import/ImportComponent.vue.d.ts +1 -1
  21. package/src/contentTree/contentTreeCollection.js +6 -1
  22. package/src/manager/collectionManager/categoryManager.d.ts +17 -0
  23. package/src/manager/collectionManager/categoryManager.js +41 -3
  24. package/src/manager/collectionManager/collectionComponentClass.d.ts +7 -0
  25. package/src/manager/collectionManager/collectionComponentClass.js +34 -1
  26. package/src/vcsUiApp.d.ts +2 -1
  27. package/src/vcsUiApp.js +9 -2
  28. package/dist/assets/index-94e13552.js +0 -1
  29. /package/dist/assets/{cesium.271bcd.js → cesium.f4573f.js} +0 -0
  30. /package/dist/assets/{ol.d99267.js → ol.25a933.js} +0 -0
  31. /package/dist/assets/{ui.7d2c2e.css → ui.301d83.css} +0 -0
  32. /package/dist/assets/{vue.e8ee6a.js → vue.806e32.js} +0 -0
  33. /package/dist/assets/{vuetify.d22222.css → vuetify.2fbc17.css} +0 -0
@@ -1,11 +1,20 @@
1
1
  /* eslint import/no-extraneous-dependencies: ["error", { "devDependencies": false }] */
2
- import path from 'path';
2
+ import path from 'node:path';
3
+ import { existsSync } from 'node:fs';
3
4
  import {
4
5
  getInlinePlugins,
5
6
  getPluginDirectory,
6
7
  getPluginNames,
7
8
  } from './buildHelpers.js';
8
9
 
10
+ async function getTsPlugins(pluginsDir, plugins) {
11
+ return plugins.filter((plugin) =>
12
+ existsSync(
13
+ path.join(pluginsDir, 'node_modules', plugin, 'src', 'index.ts'),
14
+ ),
15
+ );
16
+ }
17
+
9
18
  /**
10
19
  * Determines the proxy setting to serve plugins referrenced in the package.json in the plugins directory
11
20
  * @param {string} [target=http://localhost:8080]
@@ -19,14 +28,19 @@ export default async function getPluginProxies(
19
28
  const root = process.cwd();
20
29
  const pluginsDir = getPluginDirectory();
21
30
  const plugins = await getPluginNames();
31
+ const tsPlugins = await getTsPlugins(pluginsDir, plugins);
22
32
  const proxies = {};
23
33
 
24
34
  plugins.forEach((plugin) => {
35
+ const indexJs = tsPlugins.includes(plugin) ? 'index.ts' : 'index.js';
25
36
  proxies[`^/plugins/${plugin}/.*`] = {
26
37
  target,
27
38
  rewrite: (route) => {
28
39
  const rest = route.replace(new RegExp(`^/plugins/${plugin}/`), '');
29
- const file = rest || 'index.js';
40
+ let file = rest || indexJs;
41
+ if (file === 'index.js' && tsPlugins.includes(plugin)) {
42
+ file = indexJs;
43
+ }
30
44
  const pluginDir = path.posix.join(
31
45
  path.relative(root, pluginsDir),
32
46
  'node_modules',
@@ -1874,6 +1874,13 @@
1874
1874
  {
1875
1875
  "name": "@vcmap/flight",
1876
1876
  "entry": "plugins/@vcmap/flight/index.js"
1877
+ },
1878
+ {
1879
+ "name": "@vcmap/planning",
1880
+ "entry": "plugins/@vcmap/planning/index.js",
1881
+ "serviceUrl": "https://demo.virtualcityplanner.de/",
1882
+ "projectId": "rBW58EJz5RwCz75Q3",
1883
+ "mapId": "csunCGqmQE8Py4KCe"
1877
1884
  }
1878
1885
  ]
1879
1886
  }
@@ -1 +1 @@
1
- export * from "./cesium.271bcd.js";
1
+ export * from "./cesium.f4573f.js";