@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.
@@ -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.14.1",
3
+ "version": "1.16.0",
4
4
  "license": "Apache-2.0",
5
5
  "engines": {
6
- "node": ">=20"
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.9.0",
51
+ "@abi-software/map-utilities": "1.11.0",
51
52
  "@abi-software/sparc-annotation": "0.3.2",
52
- "@abi-software/svg-sprite": "1.1.0",
53
- "@element-plus/icons-vue": "^2.3.1",
54
- "css-element-queries": "^1.2.2",
55
- "element-plus": "2.8.4",
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": "^2.1.7",
58
- "unplugin-vue-components": "^0.26.0",
59
- "vue": "^3.4.21"
58
+ "pinia": "^4.0.3",
59
+ "vue": "^3.5.41"
60
60
  },
61
61
  "devDependencies": {
62
- "@vitejs/plugin-vue": "^4.6.2",
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.4.0",
65
- "babel-eslint": "^10.1.0",
66
- "chokidar": "^3.6.0",
67
- "concurrently": "^8.2.2",
68
- "cypress": "^13.6.6",
69
- "cypress-multi-reporters": "^1.6.4",
70
- "cypress-visual-regression": "^5.3.0",
71
- "cypress-wait-until": "^2.0.1",
72
- "eslint": "^8.56.0",
73
- "eslint-plugin-cypress": "^2.15.1",
74
- "eslint-plugin-vue": "^9.19.2",
75
- "mochawesome": "^7.1.3",
76
- "sass": "^1.69.5",
77
- "vite": "^5.0.10",
78
- "vitepress": "^1.0.0-rc.44",
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/linux-x64": "0.25.3",
83
- "@rollup/rollup-darwin-arm64": "4.59.0",
84
- "@rollup/rollup-linux-x64-gnu": "4.59.0",
85
- "@rollup/rollup-win32-x64-msvc": "4.59.0"
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
  }
@@ -0,0 +1,2 @@
1
+ @use 'variables' as *;
2
+ @import url('https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap');
@@ -1,5 +1,4 @@
1
- @import '_variables';
2
-
3
- @import url('https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap');
1
+ @use '_variables' as *;
2
+ @forward '_variables';
4
3
 
5
4
  $--color-primary: $app-primary-color !default;
@@ -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
- :deep(.maplibregl-canvas .maplibregl-canvas) {
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
- :deep(.maplibregl-canvas .maplibregl-canvas) {
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.changeViewingMode(modeName)
641
+ if (map) {
642
+ map.changeViewingMode(modeName)
643
+ }
642
644
  },
643
645
  setConnectionType: function (type) {
644
646
  let map = this.getCurrentFlatmap();
@@ -2,5 +2,6 @@
2
2
  // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3
3
  import FlatmapVuer from "./FlatmapVuer.vue";
4
4
  import MultiFlatmapVuer from "./MultiFlatmapVuer.vue";
5
+ import '../assets/fonts.scss';
5
6
 
6
7
  export { FlatmapVuer, MultiFlatmapVuer };
@@ -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 ComponentCustomProperties {
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
@@ -2,6 +2,7 @@ import { createApp } from 'vue'
2
2
  import { createPinia } from 'pinia'
3
3
  import App from './App.vue'
4
4
  import { useMainStore } from '@/store/index'
5
+ import './assets/fonts.scss'
5
6
 
6
7
  const pinia = createPinia()
7
8
  const app = createApp(App)
package/vite.config.js CHANGED
@@ -10,7 +10,8 @@ export default defineConfig(({ command, mode }) => {
10
10
  css: {
11
11
  preprocessorOptions: {
12
12
  scss: {
13
- additionalData: `@use './src/assets/styles' as *;`
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(__dirname, './src'),
44
+ '@': path.resolve(import.meta.dirname, './src'),
44
45
  }
45
46
  },
46
47
  build: {
47
48
  lib: {
48
- entry: path.resolve(__dirname, "./src/components/index.js"),
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: ["vue", "@abi-software/sparc-annotation", "@abi-software/svg-sprite", "@abi-software/map-utilities",
54
- "@element-plus/icons-vue", "pinia"],
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