@signal24/vue-foundation 4.27.1 → 4.28.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@signal24/vue-foundation",
3
3
  "type": "module",
4
- "version": "4.27.1",
4
+ "version": "4.28.1",
5
5
  "description": "Common components, directives, and helpers for Vue 3 apps",
6
6
  "module": "./dist/vue-foundation.es.js",
7
7
  "exports": {
@@ -42,13 +42,13 @@
42
42
  "vue": "^3.4.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@eslint/js": "9.30.0",
45
+ "@eslint/js": "9.30.1",
46
46
  "@nabla/vite-plugin-eslint": "^2.0.5",
47
- "@signal24/openapi-client-codegen": "^2.5.1",
47
+ "@signal24/openapi-client-codegen": "^2.5.2",
48
48
  "@tsconfig/node22": "^22.0.2",
49
49
  "@types/jsdom": "^21.1.7",
50
- "@types/lodash": "^4.17.19",
51
- "@types/node": "^24.0.6",
50
+ "@types/lodash": "^4.17.20",
51
+ "@types/node": "^24.0.10",
52
52
  "@types/uuid": "^10.0.0",
53
53
  "@vitejs/plugin-vue": "^6.0.0",
54
54
  "@vue/eslint-config-prettier": "^10.2.0",
@@ -56,7 +56,7 @@
56
56
  "@vue/test-utils": "^2.4.6",
57
57
  "@vue/tsconfig": "^0.7.0",
58
58
  "date-fns": "^4.1.0",
59
- "eslint": "9.30.0",
59
+ "eslint": "9.30.1",
60
60
  "eslint-plugin-simple-import-sort": "^12.1.1",
61
61
  "eslint-plugin-unused-imports": "^4.1.4",
62
62
  "eslint-plugin-vue": "^10.2.0",
@@ -67,11 +67,11 @@
67
67
  "start-server-and-test": "^2.0.12",
68
68
  "type-fest": "^4.41.0",
69
69
  "typescript": "~5.8",
70
- "typescript-eslint": "^8.35.0",
70
+ "typescript-eslint": "^8.35.1",
71
71
  "vite": "^7.0.0",
72
72
  "vitest": "^3.2.4",
73
73
  "vue": "^3.5.17",
74
- "vue-tsc": "^2.2.10"
74
+ "vue-tsc": "^3.0.0"
75
75
  },
76
- "packageManager": "yarn@4.6.0"
76
+ "packageManager": "yarn@4.9.2"
77
77
  }
@@ -324,13 +324,12 @@ onMounted(async () => {
324
324
  }
325
325
 
326
326
  watch(selectedOption, () => {
327
- if (selectedOption.value !== props.modelValue) {
328
- emit(
329
- 'update:modelValue',
330
- isNotNullOrUndefined(selectedOption.value) && effectiveValueExtractor.value !== null
331
- ? effectiveValueExtractor.value(selectedOption.value)
332
- : selectedOption.value
333
- );
327
+ const effectiveValue =
328
+ isNotNullOrUndefined(selectedOption.value) && effectiveValueExtractor.value !== null
329
+ ? effectiveValueExtractor.value(selectedOption.value)
330
+ : selectedOption.value;
331
+ if (!isEqual(props.modelValue, effectiveValue)) {
332
+ emit('update:modelValue', effectiveValue);
334
333
  }
335
334
  });
336
335
 
@@ -166,8 +166,8 @@ class VfTooltip {
166
166
  let tipX = e.pageX + 10,
167
167
  tipY = e.pageY + 20;
168
168
 
169
- if (tipX + tipWidth > viewWidth) tipX = e.pageX - 5 - tipWidth;
170
- if (tipY + tipHeight > viewHeight) tipY = e.pageY - 5 - tipHeight;
169
+ if (tipX + tipWidth > viewWidth) tipX = Math.max(10, e.pageX - 5 - tipWidth);
170
+ if (tipY + tipHeight > viewHeight) tipY = Math.max(10, e.pageY - 5 - tipHeight);
171
171
 
172
172
  this.tipEl!.style.left = tipX + 'px';
173
173
  this.tipEl!.style.top = tipY + 'px';