diff --git a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html index 96c7da76d..85d65a7fd 100644 --- a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html +++ b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html @@ -91,14 +91,30 @@
-
-
-
- {{fieldIndex + 1}} -
-
drag_indicator
-
- + +
+ +
+
+
+ {{fieldIndex + 1}} + drag_indicator +
+
+ +
+
+
+
+
+ {{fieldIndex + 1}} + drag_indicator +
+
+
+ {{'DMP-BLUEPRINT-EDITOR.FIELDS.CATEGORY' | translate}} {{enumUtils.toDmpBlueprintFieldCategoryString(fieldCategory)}} @@ -107,8 +123,8 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
- +
+ {{'DMP-BLUEPRINT-EDITOR.FIELDS.SYSTEM-FIELD-TYPE' | translate}} {{enumUtils.toDmpBlueprintSystemFieldTypeString(systemFieldType)}} @@ -117,8 +133,8 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
- +
+ {{'DMP-BLUEPRINT-EDITOR.FIELDS.DATA-TYPE' | translate}} @@ -129,40 +145,40 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
- +
+ {{'DMP-BLUEPRINT-EDITOR.FIELDS.REFERENCE-TYPE' | translate}} {{field.get('referenceTypeId').getError('backendError').message}} {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
- +
+ {{'DMP-BLUEPRINT-EDITOR.FIELDS.FIELD-LABEL' | translate}} {{field.get('label').getError('backendError').message}} {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
- +
+ {{'DMP-BLUEPRINT-EDITOR.FIELDS.FIELD-PLACEHOLDER' | translate}} {{field.get('placeholder').getError('backendError').message}} {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
- +
+ {{'DMP-BLUEPRINT-EDITOR.FIELDS.FIELD-DESCRIPTION' | translate}} {{field.get('description').getError('backendError').message}} {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
- +
+ {{'DMP-BLUEPRINT-EDITOR.FIELDS.SEMANTICS' | translate}} @@ -170,18 +186,18 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.FIELD-REQUIRED' | translate}} {{field.get('required').getError('backendError').message}} {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
-
+ {{'DMP-BLUEPRINT-EDITOR.FIELDS-REQUIRED' | translate}} {{section.get('fields').getError('backendError').message}}
diff --git a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.scss b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.scss index e7a514041..625e43482 100644 --- a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.scss +++ b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.scss @@ -142,203 +142,72 @@ flex-wrap: wrap; // ?? align-items: center; - @media (max-width: 1470px) { + .section-options-vertical { + display: none; + } + + .section-options-horizontal { + display: initial; + } + + @media (min-width: 2060px) and (max-width:2215px) { + .section-field { + padding-left: 0; + } + } + + @media (min-width: 2000px) and (max-width: 2060px) { + .section-field { + padding-left: 0; + padding-right: 0.6rem; + } + } + + @media (min-width: 1950px) and (max-width: 2000px) { + .section-field { + padding-left: 0; + padding-right: 0.3rem; + } + } + + // @media (min-width: 1900px) and (max-width: 1950px) { + // .section-field { + // padding-left: 0; + // padding-right: 0.05rem; + // } + // } + + + @media (max-width: 1900px) { flex-direction: column; align-items: flex-start; - } + + .section-options-horizontal { + display: none; + } + + .section-options-vertical { + width: 100%; + display: initial; + } - .section-field-index { - width: auto; - margin-top: 0.2rem; - - @media (max-width: 1470px) { - margin-left: 1.1rem; - // margin-left: 1.6rem; - } - } - - .section-field-delete { - width: auto; - @media (max-width: 1470px) { - // margin-left: 0.5rem; - } - } - - .section-field-sortable { - width: auto; - margin-top: 0.5rem; - - @media (max-width: 1470px) { - margin-top: 0; - margin-left: 0.7rem; - // margin-left: 1.2rem; - } - } - - .section-field-category { - width: 10.0rem; - margin-left: 0.5rem; - margin-top: 1.4rem; - - @media (max-width: 1470px) { - margin-top: 0; - margin-left: 0; - width: 100%; - } - } - - .section-field-system-type { - width: 9.0rem; - margin-left: 0.5rem; - margin-top: 1.4rem; - @media (max-width: 1470px) { - margin-top: 0; - margin-left: 0; - width: 100%; - } - } - - .section-field-data-type { - width: 9.0rem; - margin-left: 0.5rem; - margin-top: 1.4rem; - @media (max-width: 1470px) { - margin-top: 0; - margin-left: 0; - width: 100%; - } - } - - .section-field-reference-type { - width: 9.0rem; - margin-left: 0.5rem; - margin-top: 1.4rem; - @media (max-width: 1470px) { - margin-top: 0; - margin-left: 0; - width: 100%; - } - } - - .section-field-label { - width: 10.0rem; - margin-left: 0.5rem; - margin-top: 1.4rem; - @media (max-width: 1470px) { - margin-top: 0; - margin-left: 0; - width: 100%; - width: 100%; - } - } - - .section-field-placeholder { - width: 10.0rem; - margin-left: 0.5rem; - margin-top: 1.4rem; - @media (max-width: 1470px) { - margin-top: 0; - margin-left: 0; - width: 100%; - } - } - - .section-field-description { - width: 10.0rem; - margin-left: 0.5rem; - margin-top: 1.4rem; - @media (max-width: 1470px) { - margin-top: 0; - margin-left: 0; - width: 100%; - } - } - - .section-field-semantics { - width: 12.0rem; - margin-left: 0.5rem; - margin-top: 1.4rem; - @media (max-width: 1470px) { - margin-top: 0; - margin-left: 0; - width: 100%; - } - } - - .section-field-required { - width: 10.0rem; - margin-left: 0.5rem; - @media (max-width: 1470px) { - margin-top: 0; + .section-field { width: 100%; + max-width: initial; } } } - .description-fields-wrapper { width: 100%; margin-top: 1.0rem; display: flex; flex-wrap: wrap; // ?? align-items: center; - + @media (max-width: 1470px) { flex-direction: column; align-items: flex-start; } - - .description-field-index { - width: auto; - margin-top: 0.2rem; - - @media (max-width: 1470px) { - margin-left: 1.1rem; - // margin-left: 1.6rem; - } - } - - .description-field-delete { - width: auto; - @media (max-width: 1470px) { - // margin-left: 0.5rem; - } - } - - .description-field-sortable { - width: auto; - margin-top: 0.5rem; - - @media (max-width: 1470px) { - margin-top: 0; - margin-left: 0.7rem; - // margin-left: 1.2rem; - } - } - - .description-field-template { - width: 15rem; - margin-left: 0.5rem; - margin-top: 1.4rem; - - @media (max-width: 1470px) { - margin-top: 0; - margin-left: 0; - width: 100%; - } - } - - .description-field-template-label, - .description-field-template-min-multiplicity, - .description-field-template-max-multiplicity { - width: 11.0rem; - margin-left: 0.5rem; - margin-top: 1.4rem; - @media (max-width: 1470px) { - margin-top: 0; - margin-left: 0; - width: 100%; - width: 100%; - } - } } + diff --git a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.ts b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.ts index d5b94b111..d6dc45662 100644 --- a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.ts +++ b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.ts @@ -60,6 +60,8 @@ export class DmpBlueprintEditorComponent extends BaseEditor(DmpBlueprintSystemFieldType); @@ -268,6 +270,19 @@ export class DmpBlueprintEditorComponent extends BaseEditor