@vcmap/ui 5.1.0-rc.4 → 5.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/buildHelpers.js +1 -1
- package/build/getPluginProxies.js +16 -2
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.2274d8.js → core.8ecfba.js} +3592 -3536
- package/dist/assets/core.js +1 -1
- package/dist/assets/index-c87f843d.js +1 -0
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.21bb56.js → ui.186a84.js} +795 -771
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.145dc5.js → vuetify.10881a.js} +1 -1
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +1 -1
- package/index.d.ts +2 -2
- package/index.js +4 -1
- package/package.json +2 -2
- package/plugins/package.json +2 -2
- package/src/components/flight/VcsFlightComponent.vue +1 -0
- package/src/components/viewpoint/VcsViewpointComponent.vue +2 -3
- package/src/manager/collectionManager/categoryManager.d.ts +17 -0
- package/src/manager/collectionManager/categoryManager.js +41 -3
- package/src/manager/collectionManager/collectionComponentClass.d.ts +7 -0
- package/src/manager/collectionManager/collectionComponentClass.js +25 -0
- package/src/pluginHelper.js +4 -2
- package/dist/assets/index-564248ae.js +0 -1
- /package/dist/assets/{cesium.1bcede.js → cesium.c1accb.js} +0 -0
- /package/dist/assets/{ol.d39205.js → ol.b751cb.js} +0 -0
- /package/dist/assets/{ui.21bb56.css → ui.186a84.css} +0 -0
- /package/dist/assets/{vue.403631.js → vue.3f80ec.js} +0 -0
- /package/dist/assets/{vuetify.145dc5.css → vuetify.10881a.css} +0 -0
package/build/buildHelpers.js
CHANGED
@@ -390,7 +390,7 @@ export async function buildPluginsForPreview(baseConfig = {}, minify = true) {
|
|
390
390
|
|
391
391
|
export async function buildPluginsForBundle(baseConfig = {}) {
|
392
392
|
const inlinePlugins = await getInlinePlugins();
|
393
|
-
const dependentPlugins = await getPluginNames(
|
393
|
+
const dependentPlugins = await getPluginNames(false);
|
394
394
|
const promises = inlinePlugins
|
395
395
|
.filter((plugin) => plugin.startsWith('@vcmap/'))
|
396
396
|
.map((plugin) => buildInlinePlugin(plugin, baseConfig, true));
|
@@ -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
|
-
|
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',
|
package/dist/assets/cesium.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export * from "./cesium.
|
1
|
+
export * from "./cesium.c1accb.js";
|