From 6f88a11771c8792e8655d1d30416e0659443c3d6 Mon Sep 17 00:00:00 2001 From: ISA Date: Wed, 10 Sep 2025 11:20:22 +0200 Subject: [PATCH] style: DigitalInputsModal dark mode --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 5 + .../main/digitalInputs/digitalInputsModal.tsx | 219 +++++++++--------- package-lock.json | 4 +- package.json | 2 +- 6 files changed, 120 insertions(+), 114 deletions(-) diff --git a/.env.development b/.env.development index 765ac33..92f1d8c 100644 --- a/.env.development +++ b/.env.development @@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_USE_CGI=false # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.892 +NEXT_PUBLIC_APP_VERSION=1.6.893 NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) diff --git a/.env.production b/.env.production index a896ca9..502fd86 100644 --- a/.env.production +++ b/.env.production @@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_USE_CGI=true # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.892 +NEXT_PUBLIC_APP_VERSION=1.6.893 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 44d0e27..c6582fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.893] – 2025-09-10 + +- chore: Modale mit bi bi-x-circle-fill Icon schließen + +--- ## [1.6.892] – 2025-09-10 - style: KVZ Modal optisch an die anderen angepasst diff --git a/components/main/digitalInputs/digitalInputsModal.tsx b/components/main/digitalInputs/digitalInputsModal.tsx index 1d9a3ff..3db6011 100644 --- a/components/main/digitalInputs/digitalInputsModal.tsx +++ b/components/main/digitalInputs/digitalInputsModal.tsx @@ -182,132 +182,133 @@ export default function InputModal({ return (
-
-
-

+
+
+

Einstellungen Meldungseingang {selectedInput.id}

-
- -
-
- Bezeichnung: -
-
- setLabel(e.target.value)} - className="border border-gray-300 rounded px-2 py-1 w-full" - maxLength={32} - /> -
- -
- Invertierung: -
-
- - {invertiert ? "Ein" : "Aus"} -
- -
- Filterzeit: -
-
- { - const val = Number(e.target.value); - if (val <= 2000) { - setTimeFilter(val); - } - }} - className="border border-gray-300 rounded px-2 py-1 pr-10 w-full text-right" - title="Maximal 2000 ms erlaubt" - /> - - - ms - -
- -
- Gewichtung: -
-
- { - const val = Number(e.target.value); - if (val <= 1000) { - setWeighting(val); - } - }} - className="border border-gray-300 rounded px-2 py-1 w-full text-right" - title="Maximal 1000 erlaubt" - /> -
- -
- Out of Service: -
- -
- + {invertiert ? "Ein" : "Aus"} +
+
+ Filterzeit: +
+
+ { + const val = Number(e.target.value); + if (val <= 2000) { + setTimeFilter(val); + } + }} + className="border border-base rounded px-2 py-1 pr-10 w-full text-right bg-[var(--color-surface-alt)] text-fg" + title="Maximal 2000 ms erlaubt" /> - - {eingangOffline ? "Ein" : "Aus"} + + ms + +
+
+ Gewichtung: +
+
+ { + const val = Number(e.target.value); + if (val <= 1000) { + setWeighting(val); + } + }} + className="border border-base rounded px-2 py-1 w-full text-right bg-[var(--color-surface-alt)] text-fg" + title="Maximal 1000 erlaubt" + /> +
+
+ + Out of Service: + +
+
+ + {eingangOffline ? "Ein" : "Aus"} +

- -
+
-
+
); diff --git a/package-lock.json b/package-lock.json index 04f7a1c..2163350 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.892", + "version": "1.6.893", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.892", + "version": "1.6.893", "dependencies": { "@emotion/react": "^11.13.0", "@emotion/styled": "^11.13.0", diff --git a/package.json b/package.json index 1ee2ab5..56fd6d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.892", + "version": "1.6.893", "private": true, "scripts": { "dev": "next dev -p 3000",