@abi-software/mapintegratedvuer 0.7.0-vue3.1 → 0.7.0-vue3.3
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/cypress.config.js +9 -19
- package/dist/mapintegratedvuer.js +129324 -134311
- package/dist/mapintegratedvuer.umd.cjs +499 -1802
- package/dist/style.css +1 -1
- package/package.json +18 -16
- package/src/App.vue +1 -1
- package/src/components/ContentBar.vue +1 -1
- package/src/components/ContextCard.vue +0 -1
- package/src/components/ContextHelp.vue +2 -2
- package/src/components/DialogToolbarContent.vue +6 -6
- package/src/components/SearchControls.vue +2 -2
- package/src/components/SplitFlow.vue +3 -0
- package/src/components/viewers/MultiFlatmap.vue +1 -1
- package/src/components/viewers/Plot.vue +3 -5
- package/src/components/viewers/Simulation.vue +3 -5
- package/src/mixins/ContentMixin.js +1 -1
- package/vite.config.js +1 -0
- package/vite.static-build.js +12 -0
- package/vitest.workspace.js +3 -0
- package/src/assets/missing-image.svg +0 -1
- package/vue.config.js +0 -48
package/package.json
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "@abi-software/mapintegratedvuer",
|
3
|
-
"version": "0.7.0-vue3.
|
3
|
+
"version": "0.7.0-vue3.3",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"scripts": {
|
6
6
|
"serve": "vite --host --force",
|
7
7
|
"build-bundle": "vite build",
|
8
8
|
"test-unit": "mochapack --webpack-config test/unit/webpack.config.js --require test/unit/setup.js test/unit/**/*.spec.js",
|
9
|
-
"
|
10
|
-
"build-static": "
|
11
|
-
"start": "vue-cli-service serve",
|
9
|
+
"test": "vitest --dom",
|
10
|
+
"build-static": "vite build -c vite.static-build.js",
|
12
11
|
"cypress": "cypress",
|
12
|
+
"cypress-component": "cypress run --component",
|
13
13
|
"report:merge": "mochawesome-merge cypress/results/json/*json > cypress/results/mochawesome-bundle.json",
|
14
14
|
"report:generate": "marge cypress/results/mochawesome-bundle.json -o cypress/reports/html",
|
15
15
|
"changelog": "auto-changelog -p --output CHANGELOG.md --template keepachangelog",
|
@@ -42,11 +42,15 @@
|
|
42
42
|
"*.js"
|
43
43
|
],
|
44
44
|
"dependencies": {
|
45
|
-
"@abi-software/flatmapvuer": "^0.6.0-vue3.
|
46
|
-
"@abi-software/map-side-bar": "^1.7.0-vue3.
|
47
|
-
"@abi-software/
|
45
|
+
"@abi-software/flatmapvuer": "^0.6.0-vue3.6",
|
46
|
+
"@abi-software/map-side-bar": "^1.7.0-vue3.4",
|
47
|
+
"@abi-software/plotvuer": "^0.4.0-vue-3-alpha.5",
|
48
|
+
"@abi-software/scaffoldvuer": "^0.4.0-vue3-optimise.0",
|
49
|
+
"@abi-software/simulationvuer": "^0.7.0-vue-3-alpha.3",
|
48
50
|
"@abi-software/svg-sprite": "^0.4.0-vue3-beta.0",
|
51
|
+
"@cypress/vite-dev-server": "^5.0.7",
|
49
52
|
"@element-plus/icons-vue": "^2.3.1",
|
53
|
+
"@pinia/testing": "^0.1.3",
|
50
54
|
"@soda/get-current-script": "^1.0.2",
|
51
55
|
"core-js": "^3.22.5",
|
52
56
|
"css-element-queries": "^1.2.3",
|
@@ -71,21 +75,21 @@
|
|
71
75
|
"devDependencies": {
|
72
76
|
"@cypress/webpack-dev-server": "^1.3.1",
|
73
77
|
"@vitejs/plugin-vue": "^4.6.2",
|
74
|
-
"@vue/test-utils": "^2.4.
|
78
|
+
"@vue/test-utils": "^2.4.4",
|
75
79
|
"auto-changelog": "^2.4.0",
|
76
80
|
"babel-eslint": "^10.0.3",
|
77
81
|
"babel-plugin-component": "^1.1.1",
|
78
82
|
"base64-inline-loader": "^2.0.1",
|
79
83
|
"canvas": "^2.8.0",
|
80
84
|
"chai": "^4.1.2",
|
81
|
-
"cypress": "^
|
82
|
-
"cypress-multi-reporters": "^1.6.
|
85
|
+
"cypress": "^13.6.4",
|
86
|
+
"cypress-multi-reporters": "^1.6.4",
|
83
87
|
"cypress-wait-until": "^1.7.1",
|
84
88
|
"dom-parser": "^0.1.6",
|
85
89
|
"eslint": "^8.56.0",
|
86
|
-
"eslint-plugin-cypress": "^2.
|
90
|
+
"eslint-plugin-cypress": "^2.15.1",
|
87
91
|
"eslint-plugin-vue": "^9.19.2",
|
88
|
-
"
|
92
|
+
"happy-dom": "^13.3.8",
|
89
93
|
"jsdom": "^16.2.2",
|
90
94
|
"jsdom-global": "^3.0.2",
|
91
95
|
"mocha": "^8.1.3",
|
@@ -93,11 +97,9 @@
|
|
93
97
|
"mochawesome": "^7.1.3",
|
94
98
|
"mochawesome-merge": "^4.3.0",
|
95
99
|
"mochawesome-report-generator": "^6.2.0",
|
96
|
-
"node-loader": "^0.6.0",
|
97
|
-
"raw-loader": "^0.5.1",
|
98
|
-
"resolve-url-loader": "^3.1.2",
|
99
100
|
"sass": "^1.69.5",
|
100
|
-
"vite": "^5.0.10"
|
101
|
+
"vite": "^5.0.10",
|
102
|
+
"vitest": "^1.2.2"
|
101
103
|
},
|
102
104
|
"eslintConfig": {
|
103
105
|
"root": true,
|
package/src/App.vue
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
<template>
|
2
2
|
<div v-if="showHelp" class="content-container">
|
3
3
|
<el-card class="box-card"
|
4
|
-
@mouseover
|
5
|
-
@mouseleave
|
4
|
+
@mouseover="isActive = true"
|
5
|
+
@mouseleave="isActive = false"
|
6
6
|
:class="{active: isActive}">
|
7
7
|
<div slot="header" class="header">
|
8
8
|
<span>Needing some help?</span>
|
@@ -55,7 +55,7 @@
|
|
55
55
|
:class="[{ 'active': item.icon == activeView},
|
56
56
|
{'disabled': item.min > numberOfEntries},
|
57
57
|
'view-icon-row']"
|
58
|
-
@click
|
58
|
+
@click="viewClicked(item.icon)"
|
59
59
|
>
|
60
60
|
<el-col :span="4">
|
61
61
|
<map-svg-icon :icon="item.icon"
|
@@ -82,14 +82,14 @@
|
|
82
82
|
<el-popover class="tooltip" content="Help" placement="bottom-end" :show-after="helpDelay"
|
83
83
|
:teleported=false trigger="hover" popper-class="header-popper" >
|
84
84
|
<template #reference>
|
85
|
-
<map-svg-icon icon="tooltips" class="header-icon" @click
|
85
|
+
<map-svg-icon icon="tooltips" class="header-icon" @click="startHelp()"/>
|
86
86
|
</template>
|
87
87
|
</el-popover>
|
88
88
|
<el-popover class="tooltip"
|
89
89
|
content="Fullscreen" placement="bottom-end" :show-after="helpDelay"
|
90
90
|
:teleported=false trigger="hover" popper-class="header-popper">
|
91
91
|
<template #reference>
|
92
|
-
<map-svg-icon v-show="!isFullscreen" icon="fullScreen" class="header-icon" @click
|
92
|
+
<map-svg-icon v-show="!isFullscreen" icon="fullScreen" class="header-icon" @click="onFullscreen"/>
|
93
93
|
</template>
|
94
94
|
</el-popover>
|
95
95
|
<el-popover class="tooltip"
|
@@ -97,7 +97,7 @@
|
|
97
97
|
:teleported=false trigger="hover" popper-class="header-popper">
|
98
98
|
<template #reference>
|
99
99
|
<map-svg-icon v-show="isFullscreen" icon="closeFullScreen" class="header-icon"
|
100
|
-
@click
|
100
|
+
@click="onFullscreen"/>
|
101
101
|
</template>
|
102
102
|
</el-popover>
|
103
103
|
<el-popover
|
@@ -145,7 +145,7 @@
|
|
145
145
|
<map-svg-icon icon="permalink"
|
146
146
|
ref="permalinkRef"
|
147
147
|
class="header-icon"
|
148
|
-
@click
|
148
|
+
@click="getShareLink"
|
149
149
|
v-show="shareLink"
|
150
150
|
/>
|
151
151
|
</template>
|
@@ -153,7 +153,7 @@
|
|
153
153
|
<el-popover class="tooltip" content="Close" placement="bottom-end" :show-after="helpDelay"
|
154
154
|
:teleported=false trigger="hover" popper-class="header-popper">
|
155
155
|
<template #reference>
|
156
|
-
<map-svg-icon icon="close" class="header-icon" @click
|
156
|
+
<map-svg-icon icon="close" class="header-icon" @click="close" v-show="showIcons"/>
|
157
157
|
</template>
|
158
158
|
</el-popover>
|
159
159
|
|
@@ -6,13 +6,13 @@
|
|
6
6
|
<el-autocomplete class="search-box" placeholder="Search"
|
7
7
|
v-model="searchText"
|
8
8
|
:fetch-suggestions="fetchSuggestions"
|
9
|
-
@keyup.enter
|
9
|
+
@keyup.enter="$emit('search', searchText)"
|
10
10
|
@select="$emit('search', $event.value)"
|
11
11
|
:teleported=false
|
12
12
|
popper-class="autocomplete-popper">
|
13
13
|
</el-autocomplete>
|
14
14
|
<map-svg-icon icon="magnifyingGlass" class="magnify"
|
15
|
-
@click
|
15
|
+
@click="$emit('search', searchText)"/>
|
16
16
|
<div v-if="failedSearch" class="text not-found-text">
|
17
17
|
'{{failedSearch}}' not found
|
18
18
|
</div>
|
@@ -266,6 +266,9 @@ export default {
|
|
266
266
|
resetApp: function () {
|
267
267
|
this.setState(initialDefaultState());
|
268
268
|
},
|
269
|
+
setIdToPrimaryPane: function (id) {
|
270
|
+
this.splitFlowStore.setIdToPrimaryPane(id);
|
271
|
+
},
|
269
272
|
setState: function (state) {
|
270
273
|
this.entriesStore.setAll(state.entries);
|
271
274
|
//Support both old and new permalink.
|
@@ -1,25 +1,23 @@
|
|
1
1
|
<template>
|
2
|
-
<!--
|
3
2
|
<PlotVuer
|
4
3
|
:data-source="entry.resource.dataSource"
|
5
4
|
:metadata="entry.resource.metadata"
|
6
5
|
:supplemental-data="entry.resource.supplementalData"
|
7
6
|
style="overflow: hidden"
|
8
7
|
/>
|
9
|
-
-->
|
10
8
|
</template>
|
11
9
|
|
12
10
|
<script>
|
13
11
|
/* eslint-disable no-alert, no-console */
|
14
|
-
|
15
|
-
|
12
|
+
import { PlotVuer } from "@abi-software/plotvuer";
|
13
|
+
import "@abi-software/plotvuer/dist/style.css";
|
16
14
|
import ContentMixin from "../../mixins/ContentMixin";
|
17
15
|
|
18
16
|
export default {
|
19
17
|
name: "Plot",
|
20
18
|
mixins: [ ContentMixin ],
|
21
19
|
components: {
|
22
|
-
|
20
|
+
PlotVuer,
|
23
21
|
}
|
24
22
|
};
|
25
23
|
</script>
|
@@ -1,23 +1,21 @@
|
|
1
1
|
<template>
|
2
|
-
<!--
|
3
2
|
<SimulationVuer
|
4
3
|
:apiLocation="apiLocation"
|
5
4
|
:id="entry.discoverId"
|
6
5
|
/>
|
7
|
-
-->
|
8
6
|
</template>
|
9
7
|
|
10
8
|
<script>
|
11
9
|
/* eslint-disable no-alert, no-console */
|
12
10
|
import ContentMixin from "../../mixins/ContentMixin";
|
13
|
-
|
14
|
-
|
11
|
+
import { SimulationVuer } from "@abi-software/simulationvuer";
|
12
|
+
import "@abi-software/simulationvuer/dist/style.css";
|
15
13
|
|
16
14
|
export default {
|
17
15
|
name: "Simulation",
|
18
16
|
mixins: [ ContentMixin ],
|
19
17
|
components: {
|
20
|
-
|
18
|
+
SimulationVuer,
|
21
19
|
},
|
22
20
|
};
|
23
21
|
</script>
|
package/vite.config.js
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
import { defineConfig } from 'vite'
|
2
|
+
import rootConfig from './vite.config.js'
|
3
|
+
|
4
|
+
// defineWorkspace provides a nice type hinting DX
|
5
|
+
export default defineConfig((configEnv) => {
|
6
|
+
const config = rootConfig(configEnv);
|
7
|
+
config.build = {
|
8
|
+
outDir: "test-html"
|
9
|
+
};
|
10
|
+
|
11
|
+
return config;
|
12
|
+
})
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg width="429" height="238" viewBox="0 0 429 238" xmlns="http://www.w3.org/2000/svg"><title>missing-image-4x3</title><g fill-rule="nonzero" fill="none"><path d="M0 0h429v238H0z" fill="#F0F1F2"/><path d="M160.875 79v77.7h107.25V79h-107.25zm101.888 4.9v39.8l-28.85-26.1-28.744 26.8-14.693-13.7-24.239 22.7V83.9h96.525zm-96.525 56.5l24.345-22.7 36.358 33.9h-60.704v-11.2zm68.21 11.3l-25.525-23.8 24.99-23.3 28.85 26.1v21h-28.314z" fill="#DCDDDF"/></g></svg>
|
package/vue.config.js
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
const nodeExternals = require('webpack-node-externals');
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
pluginOptions: {
|
5
|
-
webpackBundleAnalyzer: {
|
6
|
-
openAnalyzer: false
|
7
|
-
}
|
8
|
-
},
|
9
|
-
chainWebpack: config => {
|
10
|
-
// GraphQL Loader
|
11
|
-
config.module
|
12
|
-
.rule('shader')
|
13
|
-
.test(/\.(vs|fs)$/i)
|
14
|
-
.use('raw-loader')
|
15
|
-
.loader('raw-loader')
|
16
|
-
.end()
|
17
|
-
const fontsRule = config.module.rule('fonts')
|
18
|
-
fontsRule.uses.clear()
|
19
|
-
config.module
|
20
|
-
.rule('fonts')
|
21
|
-
.test(/\.(ttf|otf|eot|woff|woff2)$/)
|
22
|
-
.use('base64-inline-loader')
|
23
|
-
.loader('base64-inline-loader')
|
24
|
-
.tap(options => {
|
25
|
-
// modify the options...
|
26
|
-
return options
|
27
|
-
})
|
28
|
-
.end()
|
29
|
-
},
|
30
|
-
devServer: {
|
31
|
-
disableHostCheck: true
|
32
|
-
},
|
33
|
-
configureWebpack: config => {
|
34
|
-
if(process.env.NODE_ENV === 'production') {
|
35
|
-
//By including element-ui and all abi projects, the problem with element-ui
|
36
|
-
//stylesheet can be avoided.
|
37
|
-
config.externals = [ nodeExternals({allowlist: [/^element-ui/, /^@abi-software/, /^marked/, /^maplibre-gl/ ]}) ];
|
38
|
-
}
|
39
|
-
},
|
40
|
-
css: {
|
41
|
-
//Import variables into all stylesheets.
|
42
|
-
loaderOptions: {
|
43
|
-
sass: {
|
44
|
-
prependData: `@import '@/assets/styles';`
|
45
|
-
}
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|