@abi-software/flatmapvuer 1.15.0 → 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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "1.15.0",
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/*",
@@ -48,9 +48,9 @@
48
48
  "./src/*": "./src/*"
49
49
  },
50
50
  "dependencies": {
51
- "@abi-software/map-utilities": "1.10.0",
51
+ "@abi-software/map-utilities": "1.11.0",
52
52
  "@abi-software/sparc-annotation": "0.3.2",
53
- "@abi-software/svg-sprite": "1.2.0",
53
+ "@abi-software/svg-sprite": "1.4.0",
54
54
  "@element-plus/icons-vue": "^2.3.2",
55
55
  "css-element-queries": "^1.2.3",
56
56
  "element-plus": "^2.14.5",
@@ -90,5 +90,11 @@
90
90
  "browserslist": [
91
91
  "> 1%",
92
92
  "last 2 versions"
93
- ]
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
+ }
94
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,6 +1,4 @@
1
1
  @use '_variables' as *;
2
2
  @forward '_variables';
3
3
 
4
- @import url('https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap');
5
-
6
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 };
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
@@ -41,18 +41,26 @@ export default defineConfig(({ command, mode }) => {
41
41
  ],
42
42
  resolve: {
43
43
  alias: {
44
- '@': path.resolve(__dirname, './src'),
44
+ '@': path.resolve(import.meta.dirname, './src'),
45
45
  }
46
46
  },
47
47
  build: {
48
48
  lib: {
49
- entry: path.resolve(__dirname, "./src/components/index.js"),
49
+ entry: path.resolve(import.meta.dirname, "./src/components/index.js"),
50
50
  name: "FlatmapVuer",
51
51
  fileName: 'flatmapvuer',
52
52
  },
53
53
  rollupOptions: {
54
- external: ["vue", "@abi-software/sparc-annotation", "@abi-software/svg-sprite", "@abi-software/map-utilities",
55
- "@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
+ ],
56
64
  output: {
57
65
  globals: {
58
66
  vue: "Vue",