u
This commit is contained in:
@@ -24,6 +24,15 @@ import { notifyError } from '../../utils/notify';
|
||||
import { setLastArticleSku } from '../../automats';
|
||||
import attributeAutomat, { selectAttributes } from '../../automats/attributeAutomat';
|
||||
import propertyAutomat, { selectProperties } from '../../automats/propertyAutomat';
|
||||
import {
|
||||
BLUE_PANEL,
|
||||
ORANGE_PANEL,
|
||||
PURPLE_PANEL,
|
||||
SELECT_BG,
|
||||
SELECT_BG_HOVER,
|
||||
SELECT_BORDER,
|
||||
TINT_SUBTLE,
|
||||
} from '../../colors';
|
||||
|
||||
function draftsFrom(items, key = 'name') {
|
||||
return Object.fromEntries((items || []).map((row) => [row.id, row[key]]));
|
||||
@@ -609,16 +618,10 @@ class ArtikelMerkmalePage extends PureComponent {
|
||||
return (
|
||||
<>
|
||||
{/* SortableJS ghost / chosen styling from /artikel/lager */}
|
||||
<style>{`
|
||||
.sortable-ghost { opacity: 0.35 !important; }
|
||||
.sortable-chosen { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
|
||||
.drag-handle { cursor: grab; touch-action: none; }
|
||||
.drag-handle:active { cursor: grabbing; }
|
||||
`}</style>
|
||||
|
||||
<PanelTileGrid>
|
||||
{/* Tile 1: Attribute (Auswahllisten) */}
|
||||
<PanelTile wide={2} minHeight={280} color="#bfdbfe">
|
||||
<PanelTile wide={2} minHeight={280} color={BLUE_PANEL}>
|
||||
<Stack spacing={2}>
|
||||
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
|
||||
<StyleIcon sx={{ color: 'text.secondary', fontSize: 20 }} />
|
||||
@@ -642,11 +645,11 @@ class ArtikelMerkmalePage extends PureComponent {
|
||||
borderRadius: 1.5,
|
||||
alignItems: 'center',
|
||||
cursor: 'pointer',
|
||||
bgcolor: isSelected ? 'rgba(59, 130, 246, 0.12)' : 'transparent',
|
||||
border: isSelected ? '1px solid rgba(59, 130, 246, 0.3)' : '1px solid transparent',
|
||||
bgcolor: isSelected ? SELECT_BG : 'transparent',
|
||||
border: isSelected ? `1px solid ${SELECT_BORDER}` : '1px solid transparent',
|
||||
transition: 'all 0.15s ease',
|
||||
'&:hover': {
|
||||
bgcolor: isSelected ? 'rgba(59, 130, 246, 0.16)' : 'rgba(0, 0, 0, 0.04)',
|
||||
bgcolor: isSelected ? SELECT_BG_HOVER : TINT_SUBTLE,
|
||||
},
|
||||
}}
|
||||
data-id={a.id}
|
||||
@@ -764,7 +767,7 @@ class ArtikelMerkmalePage extends PureComponent {
|
||||
</PanelTile>
|
||||
|
||||
{/* Tile 2: Werte für das gewählte Attribut */}
|
||||
<PanelTile wide={2} minHeight={280} color="#ddd6fe">
|
||||
<PanelTile wide={2} minHeight={280} color={PURPLE_PANEL}>
|
||||
<Stack spacing={2}>
|
||||
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
|
||||
<LabelImportantIcon sx={{ color: 'text.secondary', fontSize: 20 }} />
|
||||
@@ -867,7 +870,7 @@ class ArtikelMerkmalePage extends PureComponent {
|
||||
</PanelTile>
|
||||
|
||||
{/* Tile 3: Merkmale (Freitext) */}
|
||||
<PanelTile wide={2} minHeight={280} color="#fed7aa">
|
||||
<PanelTile wide={2} minHeight={280} color={ORANGE_PANEL}>
|
||||
<Stack spacing={2}>
|
||||
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
|
||||
<TuneIcon sx={{ color: 'text.secondary', fontSize: 20 }} />
|
||||
|
||||
Reference in New Issue
Block a user