feat(schematic): Junction-Verbindungen Terminal zu Leitung

- Terminal zu Leitung Verbindungen (Junction) implementiert
- Snap zum nächsten Punkt auf der Leitung
- Cleanup von überflüssigen Pfad-Punkten (cleanupPathPoints)
- Terminal-Position nutzt jetzt col-Property aus terminals_config
- Einheitlicher Dialog für alle Verbindungstypen
- Kleinere Hit-Area für Terminals (verhindert Überlappen)
- SQL für anlage_accessory Tabelle hinzugefügt

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Eduard Wisch 2026-03-04 12:57:25 +01:00
parent be3a53e77e
commit 4540b8c595
4 changed files with 2395 additions and 179 deletions

2529
js/kundenkarte.js Executable file → Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,12 @@
-- ========================================================================
-- Copyright (C) 2024 Data IT Solution
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
-- ========================================================================
ALTER TABLE llx_kundenkarte_anlage_accessory ADD UNIQUE INDEX uk_anlage_accessory (fk_anlage, fk_product);
ALTER TABLE llx_kundenkarte_anlage_accessory ADD INDEX idx_accessory_anlage (fk_anlage);
ALTER TABLE llx_kundenkarte_anlage_accessory ADD CONSTRAINT fk_accessory_anlage FOREIGN KEY (fk_anlage) REFERENCES llx_kundenkarte_anlage(rowid) ON DELETE CASCADE;

View file

@ -0,0 +1,19 @@
-- ========================================================================
-- Copyright (C) 2024 Data IT Solution
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
-- ========================================================================
CREATE TABLE llx_kundenkarte_anlage_accessory (
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_anlage integer NOT NULL,
fk_product integer NOT NULL,
qty double DEFAULT 1,
rang integer DEFAULT 0,
note varchar(255) DEFAULT NULL,
date_creation datetime DEFAULT NULL,
fk_user_creat integer DEFAULT NULL
) ENGINE=InnoDB;

4
sw.js Executable file → Normal file
View file

@ -3,8 +3,8 @@
* Offline-First für Schaltschrank-Dokumentation
*/
const CACHE_NAME = 'kundenkarte-pwa-v6.2';
const OFFLINE_CACHE = 'kundenkarte-offline-v6.2';
const CACHE_NAME = 'kundenkarte-pwa-v10.0';
const OFFLINE_CACHE = 'kundenkarte-offline-v10.0';
// Statische Assets die immer gecached werden (ohne Query-String)
const STATIC_ASSETS = [