From 441e2184286663df966f81785ec9599d5421a938 Mon Sep 17 00:00:00 2001 From: Thomas Sindt Date: Thu, 3 Sep 2026 23:14:59 +0200 Subject: [PATCH] Design and layout updates for X-CPQ Material Editor interface --- .../xcpq_editor/static/css/scpq_content.css | 45 ++++-- .../xcpq_editor/static/css/scpq_global.css | 4 + xcpq/buildtime/xcpq_editor/static/index.html | 132 ++++++++++-------- 3 files changed, 111 insertions(+), 70 deletions(-) diff --git a/xcpq/buildtime/xcpq_editor/static/css/scpq_content.css b/xcpq/buildtime/xcpq_editor/static/css/scpq_content.css index 8ee36b536..0753e1a83 100644 --- a/xcpq/buildtime/xcpq_editor/static/css/scpq_content.css +++ b/xcpq/buildtime/xcpq_editor/static/css/scpq_content.css @@ -3,33 +3,60 @@ main { padding: var(--main-content-padding); margin: 16px; - height: calc(100vh - var(--header-height) - var(--footer-height) - 4 * var(--main-content-padding) - 64px); /* 32px für die Margen */ - overflow-y: auto; /* Scrollbar, wenn der Inhalt zu groß ist */ + height: calc(100vh - var(--header-height) - var(--footer-height) - 4 * var(--main-content-padding) - 64px); + /* 32px für die Margen */ + overflow-y: auto; + /* Scrollbar, wenn der Inhalt zu groß ist */ border: 1px solid var(--secondary-color); border-radius: var(--box-border-radius); } -.tree-view { - margin-top: 16px; +.editor-container { + height: calc(100vh - var(--header-height) - var(--footer-height) - 4 * var(--main-content-padding) - 132px); + display: flex; + flex-direction: row; + /* Elemente horizontal anordnen */ + gap: 16px; + /* Abstand zwischen den Elementen */ + padding: 16px; + /* Innenabstand */ + border-radius: var(--box-border-radius); + background-color: var(--data-background-color); } + +.editor-view { + margin-top: 8px; + padding: 8px; + border: 1px solid var(--primary-color); + border-radius: var(--box-border-radius); +} + +/** tree components */ .node { justify-content: center; - list-style-type: none; /* Entfernt die Standard-Aufzählungszeichen */ - padding-left: 20px; /* Einrückung für die Unterlisten */ + list-style-type: none; + /* Entfernt die Standard-Aufzählungszeichen */ + padding-left: 20px; + /* Einrückung für die Unterlisten */ } .node img { - height: 16px; /* Höhe des Bildes */ - margin-right: 2px; /* Abstand zwischen Bild und Text */ + height: 12px; + /* Höhe des Bildes */ + margin-right: 2px; + /* Abstand zwischen Bild und Text */ } .leaf { - padding-left: 20px; /* Einrückung für Blätter */ + padding-left: 20px; + /* Einrückung für Blätter */ color: var(--primary-color); font-weight: lighter; } + + /* Style für allgemeine Elemente */ .box { border: 1px solid var(--primary-color); diff --git a/xcpq/buildtime/xcpq_editor/static/css/scpq_global.css b/xcpq/buildtime/xcpq_editor/static/css/scpq_global.css index 8aebc4761..e301b3f99 100644 --- a/xcpq/buildtime/xcpq_editor/static/css/scpq_global.css +++ b/xcpq/buildtime/xcpq_editor/static/css/scpq_global.css @@ -8,6 +8,10 @@ --font-color: #333333; --secondary-font-color: #f3f5f4; --background-color: #f3f5f4; + --highlight-color: #f0f0f0; + --error-color: #ff4d4f; + --success-color: #52c41a; + --data-background-color: #ffffff; /* Dimensions */ --header-height: 32px; diff --git a/xcpq/buildtime/xcpq_editor/static/index.html b/xcpq/buildtime/xcpq_editor/static/index.html index 0d3e5ab0e..fe2d14a0a 100644 --- a/xcpq/buildtime/xcpq_editor/static/index.html +++ b/xcpq/buildtime/xcpq_editor/static/index.html @@ -17,8 +17,9 @@
- Simply CPQ Logo -

X-CPQ Material Editor

by Simply CPQ

+ Simply CPQ Logo +

X-CPQ Material Editor

+

by Simply CPQ

-

Willkommen bei X-CPQ Material Editor

+

X-CPQ Material Editor: Eigenschaften

-

Der Software, die Dir hilft, Deine variantenreichen und ggf. erklärungsbedürftigen Produkte effizient zu - verwalten.

- -
-

Property Type Groups

-
    -
    - - group - Produktgruppe Root Details - -
      -
      - - group - Produktgruppe 2 Details -
        -
      • - property - Eigenschaft 1 -
      • -
      • - property - Eigenschaft 2 -
      • -
      -
      -
      - - group - Produktgruppe 3 Details -
        -
      • - property - Eigenschaft 1 -
      • -
      • - property - Eigenschaft 2 -
      • -
      -
      -
    • - property - Eigenschaft 1 -
    • -
    • - property - Eigenschaft 2 -
    • -
    -
    -
-
+

Der Eigenschaftspool dient der globalen Definition von Eigenschaften.

+
+
+

Property Type Groups

+
    +
    + + group + X-CPQ-Eigenschaften + +
      +
      + + group + Systemeigenschaften + +
        +
      • + property + Eigenschaft 1 +
      • +
      • + property + Eigenschaft 2 +
      • +
      +
      +
      + + group + Catalog Eigenschaften + +
        +
      • + property + Eigenschaft 1 +
      • +
      • + property + Eigenschaft 2 +
      • +
      +
      +
    • + property + Eigenschaft 1 +
    • +
    • + property + Eigenschaft 2 +
    • +
    +
    +
+
+
+

Property-Type

+

Hier können die Details der ausgewählten Eigenschaft bearbeitet werden.

+ +
+
+

Values

+

Hier können die Werte der ausgewählten Eigenschaft bearbeitet werden.

+ +
+
-
+