@abi-software/flatmapvuer 1.14.1 → 1.16.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.
- package/cypress.config.js +18 -16
- package/dist/flatmapvuer.js +12065 -12147
- package/dist/flatmapvuer.umd.cjs +14 -18
- package/dist/style.css +2 -1
- package/eslint.config.js +23 -0
- package/package.json +40 -45
- package/src/assets/fonts.scss +2 -0
- package/src/assets/styles.scss +2 -3
- package/src/components/FlatmapVuer.vue +2 -2
- package/src/components/MultiFlatmapVuer.vue +3 -1
- package/src/components/index.js +1 -0
- package/src/components.d.ts +6 -2
- package/src/main.js +1 -0
- package/vite.config.js +19 -5
- package/babel.config.js +0 -0
package/eslint.config.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import js from "@eslint/js";
|
|
2
|
+
import vue from "eslint-plugin-vue";
|
|
3
|
+
import globals from "globals";
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
{
|
|
7
|
+
ignores: ["dist/**", "docs/.vitepress/**", "docs/components/**"],
|
|
8
|
+
},
|
|
9
|
+
js.configs.recommended,
|
|
10
|
+
...vue.configs["flat/essential"],
|
|
11
|
+
{
|
|
12
|
+
files: ["**/*.{js,vue}"],
|
|
13
|
+
languageOptions: {
|
|
14
|
+
ecmaVersion: "latest",
|
|
15
|
+
sourceType: "module",
|
|
16
|
+
globals: {
|
|
17
|
+
...globals.node,
|
|
18
|
+
...globals.browser,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
rules: {},
|
|
22
|
+
},
|
|
23
|
+
];
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/flatmapvuer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"engines": {
|
|
6
|
-
"node": "
|
|
6
|
+
"node": "^24.20.0"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"dist/*",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"serve": "vite --host --force",
|
|
21
21
|
"build-bundle": "vite build",
|
|
22
22
|
"build-static": "vite build -c vite.static-build.js",
|
|
23
|
+
"lint": "eslint .",
|
|
23
24
|
"cypress:open": "cypress open",
|
|
24
25
|
"cypress:component": "cypress run --component",
|
|
25
26
|
"cypress:record": "cypress run --component --record",
|
|
@@ -47,59 +48,53 @@
|
|
|
47
48
|
"./src/*": "./src/*"
|
|
48
49
|
},
|
|
49
50
|
"dependencies": {
|
|
50
|
-
"@abi-software/map-utilities": "1.
|
|
51
|
+
"@abi-software/map-utilities": "1.11.0",
|
|
51
52
|
"@abi-software/sparc-annotation": "0.3.2",
|
|
52
|
-
"@abi-software/svg-sprite": "1.
|
|
53
|
-
"@element-plus/icons-vue": "^2.3.
|
|
54
|
-
"css-element-queries": "^1.2.
|
|
55
|
-
"element-plus": "2.
|
|
53
|
+
"@abi-software/svg-sprite": "1.4.0",
|
|
54
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
55
|
+
"css-element-queries": "^1.2.3",
|
|
56
|
+
"element-plus": "^2.14.5",
|
|
56
57
|
"mitt": "^3.0.1",
|
|
57
|
-
"pinia": "^
|
|
58
|
-
"
|
|
59
|
-
"vue": "^3.4.21"
|
|
58
|
+
"pinia": "^4.0.3",
|
|
59
|
+
"vue": "^3.5.41"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@
|
|
62
|
+
"@eslint/js": "^10.0.1",
|
|
63
|
+
"@vitejs/plugin-vue": "^6.0.8",
|
|
64
|
+
"unplugin-vue-components": "^32.1.0",
|
|
63
65
|
"@vuese/markdown-render": "^2.11.3",
|
|
64
|
-
"auto-changelog": "^2.
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"cypress": "^
|
|
69
|
-
"cypress-
|
|
70
|
-
"cypress-
|
|
71
|
-
"
|
|
72
|
-
"eslint": "^
|
|
73
|
-
"eslint-plugin-
|
|
74
|
-
"
|
|
75
|
-
"mochawesome": "^
|
|
76
|
-
"sass": "^1.
|
|
77
|
-
"vite": "^
|
|
78
|
-
"vitepress": "^1.
|
|
66
|
+
"auto-changelog": "^2.6.0",
|
|
67
|
+
"chokidar": "^5.0.0",
|
|
68
|
+
"concurrently": "^9.2.4",
|
|
69
|
+
"cypress": "^15.21.0",
|
|
70
|
+
"cypress-multi-reporters": "^2.0.5",
|
|
71
|
+
"cypress-visual-regression": "^6.0.0",
|
|
72
|
+
"cypress-wait-until": "^3.0.2",
|
|
73
|
+
"eslint": "^10.9.1",
|
|
74
|
+
"eslint-plugin-cypress": "^7.0.0",
|
|
75
|
+
"eslint-plugin-vue": "^10.10.0",
|
|
76
|
+
"globals": "^17.11.0",
|
|
77
|
+
"mochawesome": "^8.0.1",
|
|
78
|
+
"sass": "^1.103.1",
|
|
79
|
+
"vite": "^8.2.1",
|
|
80
|
+
"vitepress": "^1.6.4",
|
|
79
81
|
"vue-docgen-api": "^4.79.2"
|
|
80
82
|
},
|
|
81
83
|
"optionalDependencies": {
|
|
82
|
-
"@esbuild/
|
|
83
|
-
"@
|
|
84
|
-
"@rollup/rollup-
|
|
85
|
-
"@rollup/rollup-
|
|
86
|
-
|
|
87
|
-
"eslintConfig": {
|
|
88
|
-
"root": true,
|
|
89
|
-
"env": {
|
|
90
|
-
"node": true
|
|
91
|
-
},
|
|
92
|
-
"extends": [
|
|
93
|
-
"plugin:vue/essential",
|
|
94
|
-
"eslint:recommended"
|
|
95
|
-
],
|
|
96
|
-
"rules": {},
|
|
97
|
-
"parserOptions": {
|
|
98
|
-
"parser": "babel-eslint"
|
|
99
|
-
}
|
|
84
|
+
"@esbuild/darwin-arm64": "0.28.2",
|
|
85
|
+
"@esbuild/linux-x64": "0.28.2",
|
|
86
|
+
"@rollup/rollup-darwin-arm64": "4.63.0",
|
|
87
|
+
"@rollup/rollup-linux-x64-gnu": "4.63.0",
|
|
88
|
+
"@rollup/rollup-win32-x64-msvc": "4.63.0"
|
|
100
89
|
},
|
|
101
90
|
"browserslist": [
|
|
102
91
|
"> 1%",
|
|
103
92
|
"last 2 versions"
|
|
104
|
-
]
|
|
93
|
+
],
|
|
94
|
+
"allowScripts": {
|
|
95
|
+
"cypress@15.21.1": true,
|
|
96
|
+
"@parcel/watcher@2.6.0": true,
|
|
97
|
+
"fsevents@2.3.3": true,
|
|
98
|
+
"esbuild@0.21.5": true
|
|
99
|
+
}
|
|
105
100
|
}
|
package/src/assets/styles.scss
CHANGED
|
@@ -4296,7 +4296,7 @@ export default {
|
|
|
4296
4296
|
@media (max-width: 1250px) {
|
|
4297
4297
|
height: 125px !important; // important is needed here as we are over-riding the style set by the flatmap
|
|
4298
4298
|
width: 180px !important;
|
|
4299
|
-
|
|
4299
|
+
.maplibregl-canvas .maplibregl-canvas {
|
|
4300
4300
|
height: 125px !important;
|
|
4301
4301
|
width: 180px !important;
|
|
4302
4302
|
}
|
|
@@ -4304,7 +4304,7 @@ export default {
|
|
|
4304
4304
|
@media (min-width: 1251px) {
|
|
4305
4305
|
height: 190px !important;
|
|
4306
4306
|
width: 300px !important;
|
|
4307
|
-
|
|
4307
|
+
.maplibregl-canvas .maplibregl-canvas {
|
|
4308
4308
|
height: 190px !important;
|
|
4309
4309
|
width: 300px !important;
|
|
4310
4310
|
}
|
|
@@ -638,7 +638,9 @@ export default {
|
|
|
638
638
|
*/
|
|
639
639
|
changeViewingMode: function (modeName) {
|
|
640
640
|
let map = this.getCurrentFlatmap()
|
|
641
|
-
map
|
|
641
|
+
if (map) {
|
|
642
|
+
map.changeViewingMode(modeName)
|
|
643
|
+
}
|
|
642
644
|
},
|
|
643
645
|
setConnectionType: function (type) {
|
|
644
646
|
let map = this.getCurrentFlatmap();
|
package/src/components/index.js
CHANGED
package/src/components.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
/* prettier-ignore */
|
|
3
2
|
// @ts-nocheck
|
|
3
|
+
// biome-ignore lint: disable
|
|
4
|
+
// oxlint-disable
|
|
5
|
+
// ------
|
|
4
6
|
// Generated by unplugin-vue-components
|
|
5
7
|
// Read more: https://github.com/vuejs/core/pull/3399
|
|
8
|
+
|
|
6
9
|
export {}
|
|
7
10
|
|
|
11
|
+
/* prettier-ignore */
|
|
8
12
|
declare module 'vue' {
|
|
9
13
|
export interface GlobalComponents {
|
|
10
14
|
DynamicLegends: typeof import('./components/legends/DynamicLegends.vue')['default']
|
|
@@ -31,7 +35,7 @@ declare module 'vue' {
|
|
|
31
35
|
SelectionsGroup: typeof import('./components/SelectionsGroup.vue')['default']
|
|
32
36
|
SvgLegends: typeof import('./components/legends/SvgLegends.vue')['default']
|
|
33
37
|
}
|
|
34
|
-
export interface
|
|
38
|
+
export interface GlobalDirectives {
|
|
35
39
|
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
|
|
36
40
|
vPopover: typeof import('element-plus/es')['ElPopoverDirective']
|
|
37
41
|
}
|
package/src/main.js
CHANGED
package/vite.config.js
CHANGED
|
@@ -10,7 +10,8 @@ export default defineConfig(({ command, mode }) => {
|
|
|
10
10
|
css: {
|
|
11
11
|
preprocessorOptions: {
|
|
12
12
|
scss: {
|
|
13
|
-
|
|
13
|
+
api: 'modern-compiler',
|
|
14
|
+
additionalData: `@use '@/assets/styles' as *;`,
|
|
14
15
|
},
|
|
15
16
|
},
|
|
16
17
|
},
|
|
@@ -40,18 +41,26 @@ export default defineConfig(({ command, mode }) => {
|
|
|
40
41
|
],
|
|
41
42
|
resolve: {
|
|
42
43
|
alias: {
|
|
43
|
-
'@': path.resolve(
|
|
44
|
+
'@': path.resolve(import.meta.dirname, './src'),
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
47
|
build: {
|
|
47
48
|
lib: {
|
|
48
|
-
entry: path.resolve(
|
|
49
|
+
entry: path.resolve(import.meta.dirname, "./src/components/index.js"),
|
|
49
50
|
name: "FlatmapVuer",
|
|
50
51
|
fileName: 'flatmapvuer',
|
|
51
52
|
},
|
|
52
53
|
rollupOptions: {
|
|
53
|
-
external: [
|
|
54
|
-
"
|
|
54
|
+
external: [
|
|
55
|
+
"vue",
|
|
56
|
+
"@abi-software/sparc-annotation",
|
|
57
|
+
"@abi-software/svg-sprite",
|
|
58
|
+
"@abi-software/map-utilities",
|
|
59
|
+
"@element-plus/icons-vue",
|
|
60
|
+
"pinia",
|
|
61
|
+
"@abi-software/svg-sprite/dist/style.css",
|
|
62
|
+
"@abi-software/map-utilities/dist/style.css"
|
|
63
|
+
],
|
|
55
64
|
output: {
|
|
56
65
|
globals: {
|
|
57
66
|
vue: "Vue",
|
|
@@ -61,6 +70,11 @@ export default defineConfig(({ command, mode }) => {
|
|
|
61
70
|
"@element-plus/icons-vue": "@element-plus/icons-vue",
|
|
62
71
|
"pinia": "pinia"
|
|
63
72
|
},
|
|
73
|
+
// keep css output name stable for the "./dist/style.css" export/import paths
|
|
74
|
+
assetFileNames: (assetInfo) =>
|
|
75
|
+
assetInfo.name?.endsWith(".css")
|
|
76
|
+
? "style.css"
|
|
77
|
+
: "assets/[name][extname]",
|
|
64
78
|
},
|
|
65
79
|
},
|
|
66
80
|
},
|
package/babel.config.js
DELETED
|
File without changes
|