From 279a7f97d2da5b923e8b5ee0eff0cea395bebd5e Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Thu, 21 Mar 2024 12:48:36 +0200 Subject: [PATCH 1/3] styling changes *dmp-blueprint-editor --- .../multiple-auto-complete.component.scss | 16 +++++++- .../dmp-blueprint-editor.component.html | 40 +++++++++---------- .../dmp-blueprint-editor.component.scss | 30 +------------- 3 files changed, 35 insertions(+), 51 deletions(-) diff --git a/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.scss b/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.scss index 0c67f1f8c..633e9467d 100644 --- a/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.scss +++ b/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.scss @@ -28,7 +28,8 @@ // text-overflow: ellipsis; // white-space: nowrap; // overflow: hidden; - white-space: normal; + // white-space: normal; + white-space: nowrap; word-break: break-word; } @@ -128,3 +129,16 @@ color: transparent; } } + +:host ::ng-deep .mdc-evolution-chip-set__chips { + max-width: 100%; + text-overflow: ellipsis; + flex-flow: nowrap; + overflow-x: scroll; +} + +:host ::ng-deep .mat-mdc-standard-chip .mdc-evolution-chip__cell--primary, +:host ::ng-deep .mat-mdc-standard-chip .mdc-evolution-chip__action--primary, +:host ::ng-deep .mat-mdc-standard-chip .mat-mdc-chip-action-label { + overflow: hidden; +} 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 2cb60227c..bc54d2b54 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 @@ -89,11 +89,10 @@
- + +
- -
- +
@@ -107,11 +106,9 @@
-
-
+
{{fieldIndex + 1}} drag_indicator -
@@ -164,7 +161,7 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.FIELD-PLACEHOLDER' | translate}} @@ -205,24 +202,25 @@
-
- +
{{'DMP-BLUEPRINT-EDITOR.FIELDS-REQUIRED' | translate}} {{section.get('fields').getError('backendError').message}}
-
-
-
- - {{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATES' | translate}} - - {{section.get('hasTemplates').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}} -
-
- +
+
+
+
+ + {{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATES' | translate}} + + {{section.get('hasTemplates').getError('backendError').message}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} +
+
+ +
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 625e43482..c3fcf299d 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 @@ -149,36 +149,8 @@ .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) { + @media (max-width: 1200px) { flex-direction: column; align-items: flex-start; From efc0db550047cd34e5a5569eb3287b1e37a9941d Mon Sep 17 00:00:00 2001 From: amentis Date: Thu, 21 Mar 2024 13:06:59 +0200 Subject: [PATCH 2/3] ui changes for lock --- .../main/java/eu/eudat/query/LockQuery.java | 13 ++++++-- ...late-editor-composite-field.component.html | 2 +- ...ption-template-editor-field.component.html | 4 +-- ...description-template-editor.component.html | 4 +-- .../description-template-editor.component.ts | 2 +- .../dmp-blueprint-editor.component.html | 2 +- .../editor/dmp-blueprint-editor.component.ts | 2 +- .../editor/description-editor.component.html | 12 ++++---- .../editor/description-editor.component.ts | 2 +- .../description-overview.component.html | 10 +++---- .../description-overview.component.ts | 30 ++++++++++--------- .../dmp-editor.component.html | 6 ++-- .../dmp-editor.component.ts | 2 +- .../dmp/overview/dmp-overview.component.html | 16 +++++----- .../ui/dmp/overview/dmp-overview.component.ts | 6 ++-- dmp-frontend/src/assets/i18n/en.json | 18 +++++++++-- dmp-frontend/src/common/base/base-editor.ts | 9 ++++-- 17 files changed, 83 insertions(+), 57 deletions(-) diff --git a/dmp-backend/core/src/main/java/eu/eudat/query/LockQuery.java b/dmp-backend/core/src/main/java/eu/eudat/query/LockQuery.java index e25127237..528879f6e 100644 --- a/dmp-backend/core/src/main/java/eu/eudat/query/LockQuery.java +++ b/dmp-backend/core/src/main/java/eu/eudat/query/LockQuery.java @@ -2,6 +2,7 @@ package eu.eudat.query; import eu.eudat.authorization.AuthorizationFlags; import eu.eudat.commons.enums.LockTargetType; +import eu.eudat.convention.ConventionService; import eu.eudat.data.LockEntity; import eu.eudat.model.Lock; import gr.cite.tools.data.query.FieldResolver; @@ -35,6 +36,8 @@ public class LockQuery extends QueryBase { private EnumSet authorize = EnumSet.of(AuthorizationFlags.None); + private ConventionService conventionService; + public LockQuery like(String value) { this.like = value; return this; @@ -135,7 +138,8 @@ public class LockQuery extends QueryBase { return this; } - public LockQuery() { + public LockQuery(ConventionService conventionService) { + this.conventionService = conventionService; } @Override @@ -152,7 +156,12 @@ public class LockQuery extends QueryBase { protected Predicate applyFilters(QueryContext queryContext) { List predicates = new ArrayList<>(); if (this.like != null && !this.like.isEmpty()) { - predicates.add(queryContext.CriteriaBuilder.like(queryContext.Root.get(LockEntity._id), this.like)); + this.like = this.like.replaceAll("%", ""); + if (this.conventionService.isValidUUID(like)){ + CriteriaBuilder.In inClause = queryContext.CriteriaBuilder.in(queryContext.Root.get(LockEntity._id)); + inClause.value(UUID.fromString(this.like)); + predicates.add(inClause); + } } if (this.ids != null) { CriteriaBuilder.In inClause = queryContext.CriteriaBuilder.in(queryContext.Root.get(LockEntity._id)); diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/components/composite-field/description-template-editor-composite-field.component.html b/dmp-frontend/src/app/ui/admin/description-template/editor/components/composite-field/description-template-editor-composite-field.component.html index b7c7ce634..b2a04c4f3 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/components/composite-field/description-template-editor-composite-field.component.html +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/components/composite-field/description-template-editor-composite-field.component.html @@ -231,7 +231,7 @@
  • - {{'DESCRIPTION-TEMPLATE-EDITOR.ACTIONS.FIELDSET.COMMENT-FIELD' | translate}} + {{'DESCRIPTION-TEMPLATE-EDITOR.ACTIONS.FIELDSET.COMMENT-FIELD' | translate}} {{form.get('hasCommentField').getError('backendError').message}}
  • diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.html b/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.html index 9ae6d4021..81cf0a434 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.html +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.html @@ -7,12 +7,12 @@
    • - + {{'GENERAL.VALIDATION.REQUIRED' | translate}}
    • - + {{'GENERAL.VALIDATION.URL.LABEL' | translate}}
    • diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html index efaaa6799..a11773afc 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html @@ -119,7 +119,7 @@ {{usersMap.get(user?.get('userId')?.value)?.name}} {{enumUtils.toUserDescriptionTemplateRoleString(user?.get('role')?.value)}} - + @@ -141,7 +141,7 @@ --> {{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DATASET-TEMPLATE-USERS' | translate}} - + {{'GENERAL.VALIDATION.REQUIRED' | translate}} diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts index 58733617b..cdb7bbcbe 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts @@ -163,7 +163,7 @@ export class DescriptionTemplateEditorComponent extends BaseEditor { this.steps = this.stepper.steps; 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 bc54d2b54..90bd7d6f8 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 @@ -15,7 +15,7 @@
    - 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 6b159b2d0..6e50e95b8 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 @@ -180,7 +180,7 @@ export class DmpBlueprintEditorComponent extends BaseEditor
    - +
    - - - - + + +
  • @@ -116,7 +116,7 @@
    {{'DESCRIPTION-EDITOR.TOC.NEXT' | translate}}
    chevron_right
    -
    diff --git a/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts b/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts index 26165db66..87fbf06f9 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts +++ b/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts @@ -195,7 +195,7 @@ export class DescriptionEditorComponent extends BaseEditor . -
    +
    lock_outline {{'DESCRIPTION-OVERVIEW.LOCKED' | translate}}
    - . + .
    {{'DESCRIPTION-OVERVIEW.EDITED' | translate}} : {{description.updatedAt | dateTimeCultureFormatter: "d MMMM y"}}
    @@ -39,13 +39,13 @@
    - -
    @@ -92,7 +92,7 @@
    -
    +
    -
    diff --git a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts index 713f16426..74a235736 100644 --- a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts +++ b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts @@ -198,7 +198,7 @@ export class DmpEditorComponent extends BaseEditor implemen } if (this.item.id != null) { - this.checkLock(this.item.id, LockTargetType.Dmp); + this.checkLock(this.item.id, LockTargetType.Dmp, 'DMP-EDITOR.LOCKED-DIALOG.TITLE', 'DMP-EDITOR.LOCKED-DIALOG.MESSAGE'); } } catch (error) { this.logger.error('Could not parse Dmp item: ' + data + error); diff --git a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html index e8b219fb6..2a7907b18 100644 --- a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html +++ b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html @@ -16,13 +16,13 @@

    {{ enumUtils.toDmpUserRolesString(dmpService.getCurrentUserRolesInDmp(dmp?.dmpUsers)) }}

    - . + .
    public {{'DMP-OVERVIEW.PUBLIC' | translate}}
    - . -
    + . +
    lock_outline {{'DMP-OVERVIEW.LOCKED' | translate}}
    @@ -43,14 +43,14 @@
    - - -
    @@ -98,7 +98,7 @@ horizontal_rule
    -
    -
    +
    - +
    @@ -70,7 +70,7 @@
    {{'DASHBOARD.EMPTY-LIST' | translate}}
    -
    diff --git a/dmp-frontend/src/app/ui/dashboard/dashboard.component.scss b/dmp-frontend/src/app/ui/dashboard/dashboard.component.scss index de6698e62..88c19f0e9 100644 --- a/dmp-frontend/src/app/ui/dashboard/dashboard.component.scss +++ b/dmp-frontend/src/app/ui/dashboard/dashboard.component.scss @@ -352,8 +352,6 @@ input[type="text"] { } .add-dataset { - width: 142px; - height: 40px; background: var(--secondary-color) 0% 0% no-repeat padding-box; box-shadow: 0px 3px 6px #1e202029; border-radius: 30px; diff --git a/dmp-frontend/src/app/ui/description/start-new-description-dialog/start-new-description-dialog.component.html b/dmp-frontend/src/app/ui/description/start-new-description-dialog/start-new-description-dialog.component.html index 16d0ce7a2..4849b6993 100644 --- a/dmp-frontend/src/app/ui/description/start-new-description-dialog/start-new-description-dialog.component.html +++ b/dmp-frontend/src/app/ui/description/start-new-description-dialog/start-new-description-dialog.component.html @@ -1,11 +1,15 @@
    -
    - {{'DASHBOARD.SELECT-DMP' | translate}} - close +
    +
    + {{'DASHBOARD.SELECT-DMP' | translate}} +
    +
    + close +
    -
    -
    - +
    +
    +
    @@ -18,7 +22,7 @@
    -
    +
    {{'DASHBOARD.ADD-NEW-DATASET.OPTIONS-NOT-ENOUGH' | translate}} {{'DASHBOARD.ADD-NEW-DATASET.START-NEW-DMP' | translate}}
    diff --git a/dmp-frontend/src/app/ui/description/start-new-description-dialog/start-new-description-dialog.component.scss b/dmp-frontend/src/app/ui/description/start-new-description-dialog/start-new-description-dialog.component.scss index 8120bcac7..5f51075b8 100644 --- a/dmp-frontend/src/app/ui/description/start-new-description-dialog/start-new-description-dialog.component.scss +++ b/dmp-frontend/src/app/ui/description/start-new-description-dialog/start-new-description-dialog.component.scss @@ -5,7 +5,7 @@ .form-container { width: 33rem; min-height: 14rem; - padding: 1.0rem; + padding: 2.0rem; } .logo { @@ -66,7 +66,7 @@ min-width: 101px; border: 1px solid var(--primary-color); border-radius: 30px; opacity: 1; -min-width: 101px; + min-width: 101px; height: 43px; color: var(--primary-color); font-weight: 500; @@ -101,10 +101,10 @@ min-width: 101px; } ::ng-deep .dmp-form .mat-form-field-appearance-outline .mat-form-field-outline { - background: #fafafa !important; + // background: #fafafa !important; } ::ng-deep .dmp-form .mat-form-field-appearance-outline .mat-form-field-infix { - font-size: 1rem; - padding: 0.6em 0 1em 0 !important; + // font-size: 1rem; + // padding: 0.6em 0 1em 0 !important; }