@abi-software/mapintegratedvuer 1.21.1 → 1.21.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/README.md +23 -5
- package/assets/location-icon.html +33 -1
- package/assets/styleguide.css +18 -18
- package/cypress.config.js +7 -9
- package/dist/{ConnectivityGraph-CZMROk9r.js → ConnectivityGraph-DrSaFEDd.js} +3 -3
- package/dist/{ContentMixin-Vn34n5t2.js → ContentMixin-Xg0PjBqG.js} +2 -2
- package/dist/{DynamicMarkerMixin-BS6t7w_i.js → DynamicMarkerMixin-D5Ruu_hd.js} +1 -1
- package/dist/{Flatmap-BejxA0uz.js → Flatmap-CxN8TbnS.js} +4 -4
- package/dist/{Iframe-BWbhTjCR.js → Iframe-CkgbLfJt.js} +4 -4
- package/dist/{MultiFlatmap-nlmsH-Ib.js → MultiFlatmap-CkejvAJe.js} +4 -4
- package/dist/{Plot-ChbPsDZX.js → Plot-BfwoipSl.js} +2 -2
- package/dist/{Scaffold-C6f7c7Ha.js → Scaffold-DCqsTKpg.js} +4 -4
- package/dist/{Simulation-DcJScRYo.js → Simulation-BOtU3kTT.js} +2 -2
- package/dist/{connectivities-UXTqf7_0.js → connectivities-DyeS8w0c.js} +126 -95
- package/dist/index.html +9 -6
- package/dist/mapintegratedvuer.js +5489 -5578
- package/dist/mapintegratedvuer.umd.cjs +196 -196
- package/dist/style.css +1 -1
- package/eslint.config.js +39 -15
- package/package.json +11 -5
- package/public/index.html +9 -6
- package/src/App.vue +234 -249
- package/src/assets/_variables.scss +12 -10
- package/src/assets/header-icon.scss +8 -9
- package/src/assets/mapicon-species-style.css +10 -8
- package/src/assets/styles.scss +1 -1
- package/src/components/ContentBar.vue +98 -106
- package/src/components/ContentVuer.vue +36 -39
- package/src/components/ContextCard.vue +238 -199
- package/src/components/ContextHelp.vue +22 -26
- package/src/components/CustomSplitter.vue +32 -43
- package/src/components/DatasetHeader.vue +37 -41
- package/src/components/DialogToolbarContent.vue +292 -256
- package/src/components/FlatmapContextCard.vue +52 -57
- package/src/components/MapContent.vue +90 -86
- package/src/components/ResizeSensor.vue +8 -13
- package/src/components/SearchControls.vue +26 -35
- package/src/components/SimulatedData.js +196 -219
- package/src/components/SplitDialog.vue +139 -129
- package/src/components/SplitFlow.vue +421 -237
- package/src/components/index.js +1 -3
- package/src/components/scripts/simulation_data.js +393 -397
- package/src/components/scripts/utilities.js +108 -78
- package/src/components/viewers/CellDLViewer.vue +9 -9
- package/src/components/viewers/ConnectivityGraph.vue +9 -12
- package/src/components/viewers/Flatmap.vue +23 -25
- package/src/components/viewers/Iframe.vue +8 -10
- package/src/components/viewers/MultiFlatmap.vue +59 -69
- package/src/components/viewers/Plot.vue +6 -7
- package/src/components/viewers/Scaffold.vue +73 -63
- package/src/components/viewers/Simulation.vue +10 -15
- package/src/main.js +16 -21
- package/src/mixins/ContentMixin.js +208 -178
- package/src/mixins/DynamicMarkerMixin.js +14 -18
- package/src/mixins/RetrieveContextCardMixin.js +35 -30
- package/src/mixins/S3Bucket.vue +10 -13
- package/src/services/knowledgeMapping.js +53 -53
- package/src/services/tagging.js +4 -4
- package/src/stores/connectivities.js +46 -8
- package/src/stores/entries.js +7 -9
- package/src/stores/index.js +7 -7
- package/src/stores/settings.js +23 -31
- package/src/stores/splitFlow.js +364 -298
- package/vite.bundle-build.js +24 -26
- package/vite.config.js +22 -21
- package/vite.static-build.js +4 -4
- package/vitest.workspace.js +1 -3
- package/vuese-generator.js +47 -55
package/vite.bundle-build.js
CHANGED
|
@@ -1,46 +1,44 @@
|
|
|
1
|
-
import path from
|
|
2
|
-
import { defineConfig } from 'vite'
|
|
3
|
-
import rootConfig from './vite.config.js'
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { defineConfig } from 'vite';
|
|
3
|
+
import rootConfig from './vite.config.js';
|
|
4
4
|
|
|
5
5
|
// defineWorkspace provides a nice type hinting DX
|
|
6
6
|
export default defineConfig((configEnv) => {
|
|
7
7
|
const config = rootConfig(configEnv);
|
|
8
8
|
config.build = {
|
|
9
9
|
lib: {
|
|
10
|
-
entry: path.resolve(import.meta.dirname,
|
|
11
|
-
name:
|
|
12
|
-
fileName:
|
|
10
|
+
entry: path.resolve(import.meta.dirname, './src/components/index.js'),
|
|
11
|
+
name: 'MapintegratedVuer',
|
|
12
|
+
fileName: 'mapintegratedvuer',
|
|
13
13
|
},
|
|
14
14
|
rollupOptions: {
|
|
15
15
|
external: [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
'vue',
|
|
17
|
+
'pinia',
|
|
18
|
+
'@abi-software/flatmapvuer',
|
|
19
|
+
'@abi-software/plotvuer',
|
|
20
|
+
'@abi-software/scaffoldvuer',
|
|
21
|
+
'@abi-software/simulationvuer',
|
|
22
|
+
'@abi-software/flatmapvuer/dist/style.css',
|
|
23
|
+
'@abi-software/plotvuer/dist/style.css',
|
|
24
|
+
'@abi-software/scaffoldvuer/dist/style.css',
|
|
25
|
+
'@abi-software/simulationvuer/dist/style.css',
|
|
26
26
|
],
|
|
27
27
|
output: {
|
|
28
28
|
globals: {
|
|
29
|
-
vue:
|
|
30
|
-
pinia:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
vue: 'Vue',
|
|
30
|
+
pinia: 'pinia',
|
|
31
|
+
'@abi-software/flatmapvuer': 'flatmapvuer',
|
|
32
|
+
'@abi-software/plotvuer': 'plotvuer',
|
|
33
|
+
'@abi-software/scaffoldvuer': 'scaffoldvuer',
|
|
34
|
+
'@abi-software/simulationvuer': 'simulationvuer',
|
|
35
35
|
},
|
|
36
36
|
// keep css output name stable for the "./dist/style.css" export/import paths
|
|
37
37
|
assetFileNames: (assetInfo) =>
|
|
38
|
-
assetInfo.name?.endsWith(
|
|
39
|
-
? "style.css"
|
|
40
|
-
: "assets/[name][extname]",
|
|
38
|
+
assetInfo.name?.endsWith('.css') ? 'style.css' : 'assets/[name][extname]',
|
|
41
39
|
},
|
|
42
40
|
},
|
|
43
41
|
};
|
|
44
42
|
|
|
45
43
|
return config;
|
|
46
|
-
})
|
|
44
|
+
});
|
package/vite.config.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import path from
|
|
2
|
-
import { fileURLToPath } from
|
|
3
|
-
import { defineConfig } from
|
|
4
|
-
import vue from
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
3
|
+
import { defineConfig } from 'vite';
|
|
4
|
+
import vue from '@vitejs/plugin-vue';
|
|
5
|
+
import AutoImport from 'unplugin-auto-import/vite';
|
|
6
|
+
import Components from 'unplugin-vue-components/vite';
|
|
7
|
+
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
|
|
7
8
|
|
|
8
9
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
-
const pathSrc = path.resolve(__dirname,
|
|
10
|
+
const pathSrc = path.resolve(__dirname, './src');
|
|
10
11
|
|
|
11
12
|
// https://vitejs.dev/config/
|
|
12
|
-
export default defineConfig(({ command
|
|
13
|
+
export default defineConfig(({ command }) => {
|
|
13
14
|
const config = {
|
|
14
15
|
css: {
|
|
15
16
|
preprocessorOptions: {
|
|
@@ -21,45 +22,45 @@ export default defineConfig(({ command, mode }) => {
|
|
|
21
22
|
},
|
|
22
23
|
plugins: [
|
|
23
24
|
vue(),
|
|
25
|
+
AutoImport({
|
|
26
|
+
resolvers: [ElementPlusResolver()],
|
|
27
|
+
}),
|
|
24
28
|
Components({
|
|
25
29
|
// allow auto load markdown components under `./src/components/`
|
|
26
|
-
extensions: [
|
|
30
|
+
extensions: ['vue', 'md'],
|
|
27
31
|
// allow auto import and register components used in markdown
|
|
28
32
|
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
|
|
29
33
|
resolvers: [
|
|
30
34
|
ElementPlusResolver({
|
|
31
|
-
importStyle:
|
|
35
|
+
importStyle: 'sass',
|
|
32
36
|
}),
|
|
33
37
|
],
|
|
34
|
-
dts:
|
|
38
|
+
dts: 'src/components.d.ts',
|
|
35
39
|
}),
|
|
36
|
-
|
|
37
|
-
// https://github.com/antfu/unocss
|
|
38
|
-
// see unocss.config.ts for config
|
|
39
40
|
],
|
|
40
41
|
// for cypress component test
|
|
41
42
|
// to prevent reloading after optimized dependencies changed
|
|
42
43
|
optimizeDeps: {
|
|
43
|
-
exclude: [
|
|
44
|
+
exclude: ['vue-router'],
|
|
44
45
|
},
|
|
45
46
|
resolve: {
|
|
46
47
|
alias: {
|
|
47
|
-
|
|
48
|
+
'@': pathSrc,
|
|
48
49
|
},
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
52
|
|
|
52
|
-
if (command ===
|
|
53
|
+
if (command === 'serve') {
|
|
53
54
|
config.server = {
|
|
54
55
|
port: 8081,
|
|
55
56
|
headers: {
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
'Cross-Origin-Opener-Policy': 'same-origin',
|
|
58
|
+
'Cross-Origin-Embedder-Policy': 'credentialless',
|
|
58
59
|
},
|
|
59
60
|
};
|
|
60
61
|
config.define = {
|
|
61
|
-
|
|
62
|
-
global:
|
|
62
|
+
'process.env.HTTP_PROXY': 8081,
|
|
63
|
+
global: 'globalThis',
|
|
63
64
|
// If you want to exposes all env variables, which is not recommended
|
|
64
65
|
// 'process.env': env
|
|
65
66
|
};
|
package/vite.static-build.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import rootConfig from './vite.config.js'
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import rootConfig from './vite.config.js';
|
|
3
3
|
|
|
4
4
|
// defineWorkspace provides a nice type hinting DX
|
|
5
5
|
export default defineConfig((configEnv) => {
|
|
6
6
|
const config = rootConfig(configEnv);
|
|
7
7
|
config.build = {
|
|
8
|
-
outDir:
|
|
8
|
+
outDir: 'test-html',
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
return config;
|
|
12
|
-
})
|
|
12
|
+
});
|
package/vitest.workspace.js
CHANGED
package/vuese-generator.js
CHANGED
|
@@ -5,120 +5,112 @@
|
|
|
5
5
|
* To watch components changes for Vitepress on Dev Mode
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import fs from 'fs'
|
|
9
|
-
import path from 'path'
|
|
10
|
-
import chokidar from 'chokidar'
|
|
8
|
+
import fs from 'fs';
|
|
9
|
+
import path from 'path';
|
|
10
|
+
import chokidar from 'chokidar';
|
|
11
11
|
// import { parser } from '@vuese/parser'
|
|
12
|
-
import { parseSource } from 'vue-docgen-api'
|
|
13
|
-
import { Render } from '@vuese/markdown-render'
|
|
12
|
+
import { parseSource } from 'vue-docgen-api';
|
|
13
|
+
import { Render } from '@vuese/markdown-render';
|
|
14
14
|
|
|
15
|
-
const watchMode = process.argv.find((argv) => argv === 'watch')
|
|
15
|
+
const watchMode = process.argv.find((argv) => argv === 'watch');
|
|
16
16
|
|
|
17
|
-
const componentsDir = 'src/components'
|
|
18
|
-
const components = ['MapContent.vue']
|
|
19
|
-
const outputDir = 'docs/components'
|
|
17
|
+
const componentsDir = 'src/components';
|
|
18
|
+
const components = ['MapContent.vue'];
|
|
19
|
+
const outputDir = 'docs/components';
|
|
20
20
|
|
|
21
21
|
function generateMarkdown(file) {
|
|
22
|
-
const fileWithPath = `${componentsDir}/${file}
|
|
23
|
-
const fileContent = fs.readFileSync(fileWithPath, 'utf-8')
|
|
22
|
+
const fileWithPath = `${componentsDir}/${file}`;
|
|
23
|
+
const fileContent = fs.readFileSync(fileWithPath, 'utf-8');
|
|
24
24
|
|
|
25
25
|
try {
|
|
26
26
|
// const parserResult = parser(fileContent)
|
|
27
|
-
const parserResult = parseSource(fileContent, fileWithPath)
|
|
27
|
+
const parserResult = parseSource(fileContent, fileWithPath);
|
|
28
28
|
parserResult.then((result) => {
|
|
29
|
-
const {
|
|
30
|
-
displayName: name,
|
|
31
|
-
description: desc,
|
|
32
|
-
props,
|
|
33
|
-
events,
|
|
34
|
-
methods,
|
|
35
|
-
} = result
|
|
29
|
+
const { displayName: name, description: desc, props, events, methods } = result;
|
|
36
30
|
|
|
37
31
|
// transform props to vuese styles
|
|
38
32
|
const parseResult = {
|
|
39
33
|
name: name,
|
|
40
34
|
componentDesc: {
|
|
41
|
-
default: [desc]
|
|
35
|
+
default: [desc],
|
|
42
36
|
},
|
|
43
37
|
props: transformData(props),
|
|
44
38
|
events: transformData(events),
|
|
45
39
|
methods: transformData(methods),
|
|
46
|
-
}
|
|
47
|
-
const r = new Render(parseResult)
|
|
48
|
-
const renderResult = r.render()
|
|
49
|
-
const markdownResult = r.renderMarkdown()
|
|
50
|
-
const markdownContent = markdownResult.content
|
|
51
|
-
const componentName = path.basename(fileWithPath, '.vue')
|
|
40
|
+
};
|
|
41
|
+
const r = new Render(parseResult);
|
|
42
|
+
// const renderResult = r.render();
|
|
43
|
+
const markdownResult = r.renderMarkdown();
|
|
44
|
+
const markdownContent = markdownResult.content;
|
|
45
|
+
const componentName = path.basename(fileWithPath, '.vue');
|
|
52
46
|
|
|
53
47
|
if (!fs.existsSync(outputDir)) {
|
|
54
|
-
fs.mkdirSync(outputDir)
|
|
48
|
+
fs.mkdirSync(outputDir);
|
|
55
49
|
}
|
|
56
50
|
|
|
57
51
|
fs.writeFile(`${outputDir}/${componentName}.md`, markdownContent, (err) => {
|
|
58
52
|
if (err) {
|
|
59
|
-
console.error(`Error writing markdown file for ${componentName}`, err)
|
|
53
|
+
console.error(`Error writing markdown file for ${componentName}`, err);
|
|
60
54
|
} else {
|
|
61
|
-
console.log(`Markdown file for ${componentName} is generated!`)
|
|
55
|
+
console.log(`Markdown file for ${componentName} is generated!`);
|
|
62
56
|
}
|
|
63
|
-
})
|
|
64
|
-
})
|
|
65
|
-
} catch(e) {
|
|
66
|
-
console.error(e)
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
} catch (e) {
|
|
60
|
+
console.error(e);
|
|
67
61
|
}
|
|
68
62
|
}
|
|
69
63
|
|
|
70
64
|
function transformData(data = []) {
|
|
71
65
|
data.forEach((prop) => {
|
|
72
|
-
prop.name = prop.name
|
|
73
|
-
|
|
74
66
|
if (prop.description) {
|
|
75
|
-
prop.describe = [prop.description.replaceAll('\n', ' ')]
|
|
67
|
+
prop.describe = [prop.description.replaceAll('\n', ' ')];
|
|
76
68
|
}
|
|
77
69
|
|
|
78
70
|
if (prop.type) {
|
|
79
|
-
prop.type = prop.type.name
|
|
71
|
+
prop.type = prop.type.name;
|
|
80
72
|
}
|
|
81
73
|
|
|
82
74
|
if (prop.defaultValue) {
|
|
83
|
-
prop.default = prop.defaultValue.value.replaceAll('\n', ' ')
|
|
75
|
+
prop.default = prop.defaultValue.value.replaceAll('\n', ' ');
|
|
84
76
|
}
|
|
85
77
|
|
|
86
78
|
// events
|
|
87
79
|
if (prop.properties) {
|
|
88
|
-
prop.argumentsDesc = []
|
|
80
|
+
prop.argumentsDesc = [];
|
|
89
81
|
prop.properties.forEach((param) => {
|
|
90
|
-
const argName = param.name || param.description
|
|
91
|
-
prop.argumentsDesc.push(argName)
|
|
92
|
-
})
|
|
82
|
+
const argName = param.name || param.description;
|
|
83
|
+
prop.argumentsDesc.push(argName);
|
|
84
|
+
});
|
|
93
85
|
}
|
|
94
86
|
|
|
95
87
|
// methods
|
|
96
88
|
if (prop.params) {
|
|
97
|
-
prop.argumentsDesc = []
|
|
89
|
+
prop.argumentsDesc = [];
|
|
98
90
|
prop.params.forEach((param) => {
|
|
99
|
-
const argName = param.description || param.name
|
|
100
|
-
prop.argumentsDesc.push(argName)
|
|
101
|
-
})
|
|
91
|
+
const argName = param.description || param.name;
|
|
92
|
+
prop.argumentsDesc.push(argName);
|
|
93
|
+
});
|
|
102
94
|
}
|
|
103
|
-
})
|
|
104
|
-
return data
|
|
95
|
+
});
|
|
96
|
+
return data;
|
|
105
97
|
}
|
|
106
98
|
|
|
107
99
|
// To generate markdown files - one time
|
|
108
100
|
components.forEach((component) => {
|
|
109
|
-
console.log(`Write markdown file for ${component} on first load.`)
|
|
110
|
-
generateMarkdown(component)
|
|
111
|
-
})
|
|
101
|
+
console.log(`Write markdown file for ${component} on first load.`);
|
|
102
|
+
generateMarkdown(component);
|
|
103
|
+
});
|
|
112
104
|
|
|
113
105
|
// To watch component changes and generate markdown files
|
|
114
106
|
if (watchMode) {
|
|
115
107
|
const watcher = chokidar.watch(components, {
|
|
116
108
|
cwd: componentsDir,
|
|
117
109
|
ignoreInitial: true,
|
|
118
|
-
})
|
|
110
|
+
});
|
|
119
111
|
|
|
120
112
|
watcher.on('change', (file) => {
|
|
121
|
-
console.log(`The component ${file} has changed!`)
|
|
122
|
-
generateMarkdown(file)
|
|
123
|
-
})
|
|
113
|
+
console.log(`The component ${file} has changed!`);
|
|
114
|
+
generateMarkdown(file);
|
|
115
|
+
});
|
|
124
116
|
}
|