geomui 1.0.25 → 1.0.27

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.
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import type { tParamDef } from 'geometrix';
3
3
  import ModalImg from './ModalImg.svelte';
4
- import { base } from '$app/paths';
4
+ import { asset } from '$app/paths';
5
5
 
6
6
  // props
7
7
  interface Props {
@@ -25,7 +25,7 @@
25
25
  let sSvgPath: string = $state('');
26
26
 
27
27
  // derived
28
- let dSvgList: string[] = $derived(getSvgList(pDef).map((iSvg) => `${base}/pgdsvg/${iSvg}`));
28
+ let dSvgList: string[] = $derived(getSvgList(pDef).map((iSvg) => asset(`/pgdsvg/${iSvg}`)));
29
29
 
30
30
  // actions
31
31
  function showSvg(iSvgPath: string) {
@@ -11,7 +11,7 @@
11
11
  import { downloadParams, generateUrl } from './downloadParams';
12
12
  import { browser } from '$app/environment';
13
13
  import { page } from '$app/state';
14
- import { base } from '$app/paths';
14
+ import { asset } from '$app/paths';
15
15
  import { afterNavigate } from '$app/navigation';
16
16
  import { SvelteURLSearchParams } from 'svelte/reactivity';
17
17
 
@@ -233,11 +233,11 @@
233
233
  }
234
234
  // parameter picture
235
235
  function checkPict(keyName: string): string {
236
- let rSvgPath = `${base}/pgdsvg/default_param_blank.svg`;
236
+ let rSvgPath = asset('/pgdsvg/default_param_blank.svg');
237
237
  // convention for the file-names of the parameter description
238
- //paramSvg = `${base}/pgdsvg/${pDef.partName}_${keyName}.svg`;
238
+ //paramSvg = asset(`/pgdsvg/${pDef.partName}_${keyName}.svg`);
239
239
  if (Object.keys(pDef.paramSvg).includes(keyName)) {
240
- rSvgPath = `${base}/pgdsvg/${pDef.paramSvg[keyName]}`;
240
+ rSvgPath = asset(`/pgdsvg/${pDef.paramSvg[keyName]}`);
241
241
  }
242
242
  return rSvgPath;
243
243
  }
@@ -5,7 +5,7 @@
5
5
  import { downloadParams } from './downloadParams';
6
6
  import { updateStore } from './initStore';
7
7
  //import { page } from '$app/state';
8
- import { base } from '$app/paths';
8
+ import { resolve } from '$app/paths';
9
9
  import { goto } from '$app/navigation';
10
10
 
11
11
  // props
@@ -26,7 +26,7 @@
26
26
  updateStore(subObj.partName, paramListToVal(subObj.dparam), true);
27
27
  //const rUrl = generateUrl(`${page.url.origin}${base}/${subObj.link}`, paramListToVal(subObj.dparam), true);
28
28
  //const rUrl = generateUrl(`${page.url.origin}${base}/${subObj.link}`, {}, true);
29
- const rUrl = `${base}${pLink[subObj.partName]}`;
29
+ const rUrl = resolve(`/${pLink[subObj.partName]}`);
30
30
  //const rUrl = pLink[subObj.partName];
31
31
  //console.log(`dbg505: ${rUrl}`);
32
32
  //window.location.assign(rUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geomui",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "The svelte-library of the webapp-UI of Parametrix",
5
5
  "private": false,
6
6
  "repository": {
@@ -70,32 +70,32 @@
70
70
  "svelte": "^5.19.0"
71
71
  },
72
72
  "dependencies": {
73
- "geometrix": "^1.0.24"
73
+ "geometrix": "^1.0.26"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@atao60/fse-cli": "^0.1.9",
77
- "@sveltejs/adapter-auto": "^6.1.0",
78
- "@sveltejs/adapter-static": "^3.0.9",
79
- "@sveltejs/kit": "^2.37.0",
80
- "@sveltejs/package": "^2.5.0",
81
- "@sveltejs/vite-plugin-svelte": "^6.1.3",
77
+ "@sveltejs/adapter-auto": "^7.0.0",
78
+ "@sveltejs/adapter-static": "^3.0.10",
79
+ "@sveltejs/kit": "^2.49.2",
80
+ "@sveltejs/package": "^2.5.7",
81
+ "@sveltejs/vite-plugin-svelte": "^6.2.1",
82
82
  "@types/eslint": "^9.6.1",
83
- "designix": "^1.0.24",
84
- "eslint": "^9.34.0",
83
+ "designix": "^1.0.26",
84
+ "eslint": "^9.39.2",
85
85
  "eslint-config-prettier": "^10.1.8",
86
- "eslint-plugin-svelte": "^3.11.0",
87
- "globals": "^16.3.0",
86
+ "eslint-plugin-svelte": "^3.13.1",
87
+ "globals": "^16.5.0",
88
88
  "npm-run-all2": "^8.0.4",
89
- "prettier": "^3.6.2",
90
- "prettier-plugin-svelte": "^3.4.0",
91
- "publint": "^0.3.12",
92
- "rimraf": "^6.0.1",
93
- "sass": "^1.91.0",
94
- "svelte": "^5.38.6",
95
- "svelte-check": "^4.3.1",
96
- "typescript": "^5.9.2",
97
- "typescript-eslint": "^8.41.0",
98
- "vite": "^7.1.3",
99
- "vitest": "^3.2.4"
89
+ "prettier": "^3.7.4",
90
+ "prettier-plugin-svelte": "^3.4.1",
91
+ "publint": "^0.3.16",
92
+ "rimraf": "^6.1.2",
93
+ "sass": "^1.97.1",
94
+ "svelte": "^5.46.1",
95
+ "svelte-check": "^4.3.5",
96
+ "typescript": "^5.9.3",
97
+ "typescript-eslint": "^8.50.1",
98
+ "vite": "^7.3.0",
99
+ "vitest": "^4.0.16"
100
100
  }
101
101
  }