chore: npm dependency upgrades (#24617)

This commit is contained in:
Michael Geers 2025-10-21 14:32:33 +02:00 • committed by GitHub
parent 3282eab774
commit 9571726dc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 465 additions and 448 deletions

View file

@ -156,7 +156,7 @@ export default defineComponent({
},
label: (context) => {
const label = context.dataset.label || "";
const value = context.parsed.y;
const value = context.parsed.y ?? 0;
// Special handling for Grid Power
if (label === "Grid Power") {
if (value > 0) {

View file

@ -133,7 +133,7 @@ export default defineComponent({
},
label: (context) => {
const label = context.dataset.label || "";
const value = context.parsed.y;
const value = context.parsed.y ?? 0;
// Price axis (currency/kWh)
return `${label}: ${this.formatPrice(value)}`;
},

View file

@ -145,7 +145,7 @@ export default defineComponent({
return this.formatTimeRange(index ?? 0);
},
label: (context) => {
const value = context.parsed.y;
const value = context.parsed.y ?? 0;
return `SoC: ${this.formatValue(value)}%`;
},
},

View file

@ -181,8 +181,8 @@ export default defineComponent({
const { innerWidth, innerHeight } = window;
return {
x: Math.min(x, innerWidth - (width || 0)),
y: Math.min(y, innerHeight - (height || 0)),
x: Math.min(x ?? 0, innerWidth - (width ?? 0)),
y: Math.min(y ?? 0, innerHeight - (height ?? 0)),
};
},
callbacks: {

View file

@ -38,7 +38,7 @@ Chart.defaults.layout.padding = 0;
const { chart } = this;
const { height, width } = chart;
const isTop = eventPosition.y > height / 2;
const isTop = (eventPosition.y ?? 0) > height / 2;
const yPadding = height / 5;
const y = isTop ? yPadding : height - yPadding;
const x = width / 2;

894
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -20,7 +20,7 @@
"main": "index.js",
"dependencies": {
"@formkit/drag-and-drop": "^0.5.3",
"@guolao/vue-monaco-editor": "^1.5.5",
"@guolao/vue-monaco-editor": "1.5.5",
"@h2d2/shopicons": "^1.9.0",
"@popperjs/core": "^2.11.8",
"@unhead/vue": "^2.0.14",
@ -32,7 +32,7 @@
"chartjs-plugin-datalabels": "^2.2.0",
"countup.js": "^2.9.0",
"dayjs": "^1.11.18",
"monaco-editor": "^0.52.2",
"monaco-editor": "0.52.2",
"smoothscroll-polyfill": "^0.4.4",
"snarkdown": "^2.0.0",
"vue": "^3.2.29",
@ -40,6 +40,9 @@
"vue-i18n": "^11.1.12",
"vue-router": "^4.5.1"
},
"overrides": {
"@monaco-editor/loader": "1.5.0"
},
"engines": {
"npm": ">=10.0.0",
"node": ">=22.0.0"