From ab13c39ea7cf56c97f209c06b5b8f5e695da0446 Mon Sep 17 00:00:00 2001 From: manueltauber Date: Thu, 10 Aug 2023 15:57:56 +0200 Subject: [PATCH] Kalender Layout anpassungen --- .../multiselect-autocomplete.component.html | 2 +- .../src/app/ntt-gantt/ntt-gantt.component.css | 33 +++++++++++- .../app/ntt-gantt/ntt-gantt.component.html | 50 +++++++------------ .../src/app/ntt-gantt/ntt-gantt.component.ts | 12 ++--- .../plan-time-bar.component.html | 1 + .../plan-time-bar/plan-time-bar.component.ts | 1 + frontend/src/index.html | 10 ++++ 7 files changed, 68 insertions(+), 41 deletions(-) diff --git a/frontend/src/app/multiselect-autocomplete/multiselect-autocomplete.component.html b/frontend/src/app/multiselect-autocomplete/multiselect-autocomplete.component.html index 42b4c8a..f407e5d 100644 --- a/frontend/src/app/multiselect-autocomplete/multiselect-autocomplete.component.html +++ b/frontend/src/app/multiselect-autocomplete/multiselect-autocomplete.component.html @@ -2,7 +2,7 @@
- + {{ select.item }} cancel diff --git a/frontend/src/app/ntt-gantt/ntt-gantt.component.css b/frontend/src/app/ntt-gantt/ntt-gantt.component.css index c964a3f..9551da3 100644 --- a/frontend/src/app/ntt-gantt/ntt-gantt.component.css +++ b/frontend/src/app/ntt-gantt/ntt-gantt.component.css @@ -32,11 +32,28 @@ width: 100%; } +.filterContainer{ + width: 100%; + display: flex; + flex-direction: row; + align-items: flex-start; +} + +.clearFilter{ + margin-left: 10px; +} + +.showDetails{ + margin-left: 80px; + margin-top: 8.5px; +} .filter{ margin-top: 0.5%; margin-left: 1%; } + + .checkbox{ margin: 0 0.5%; } @@ -47,7 +64,21 @@ } .filterButton{ - margin-right: 0.5%; + + } + + .dateButton{ + height: 59px; width: 59px; background-color: rgba(0, 0, 0, 0.04); border-width: 1px; border-top: none; border-left: none; border-right: none; border-top-right-radius: 4px; margin-right: 15px; + } + + .dateButton:hover{ + height: 59px; width: 59px; background-color: rgba(0, 0, 0, 0.04); border-width: 2px; border-top: 1px; border-left: 1px; border-right: 1px; border-top-right-radius: 4px; + background-color: rgba(0, 0, 0, 0.08); + } + +.dateButton:checked{ + height: 59px; width: 59px; background-color: rgba(0, 0, 0, 0.04); border-width: 2px; border-top: 1px; border-left: 1px; border-right: 1px; border-top-right-radius: 4px; + background-color: red; } /* .datePickerContainer{ diff --git a/frontend/src/app/ntt-gantt/ntt-gantt.component.html b/frontend/src/app/ntt-gantt/ntt-gantt.component.html index 3524bba..180afa5 100644 --- a/frontend/src/app/ntt-gantt/ntt-gantt.component.html +++ b/frontend/src/app/ntt-gantt/ntt-gantt.component.html @@ -11,48 +11,32 @@ Invalid start date Invalid end date - - + + + {{languageService.lMap.get('language')}} + + + {{lang}} + + +
- - + + {{scalar}} -
- {{languageService.lMap.get('detailButton')}} -
-
- - - - - - - - {{languageService.lMap.get('language')}} - - - {{lang}} - - -
-
-
+
- + {{languageService.lMap.get('detailButton')}}
@@ -95,7 +79,7 @@ [splitterSettings] = "splitterSettings" (actionComplete)="actionComplete($event)" gridLines="Both" - + (splitterResizing)="splitterResizing($event)" (actionBegin)="actionBegin($event)" (taskbarEditing)="taskbarEditing($event)" (taskbarEdited)="taskbarEdited($event)" @@ -107,7 +91,7 @@ (load)="load($event)" (queryTaskbarInfo) = "queryTaskbarInfo($event)" (expanding)="onExpand($event)" - (splitterResized)="onResizing($event)" + >
diff --git a/frontend/src/app/ntt-gantt/ntt-gantt.component.ts b/frontend/src/app/ntt-gantt/ntt-gantt.component.ts index 5f36296..2b68163 100644 --- a/frontend/src/app/ntt-gantt/ntt-gantt.component.ts +++ b/frontend/src/app/ntt-gantt/ntt-gantt.component.ts @@ -202,7 +202,7 @@ export class NttGanttComponent implements OnInit { this.tooltipSettings = {showTooltip: true} this.projectStartDate = this.range.controls.start.value; this.projectEndDate = this.range.controls.end.value; - this.splitterSettings = {position: 647 + 'px'}; + this.splitterSettings = {position: 30 + '%'}; this.inputForTimeline = [this.splitterSettings, this.projectStartDate, this.projectEndDate]; } @@ -305,7 +305,7 @@ export class NttGanttComponent implements OnInit { openFilterDialog(){ let dialogRef = FilterDialogComponent; this.matDialog.open(dialogRef, - {data : [], width: '50%'}).afterClosed().subscribe((res)=>{ + {data : [], width: '50%', maxWidth: '800px'}).afterClosed().subscribe((res)=>{ if(res){ this.filters = res; this.filterEnabled = true; @@ -629,12 +629,12 @@ export class NttGanttComponent implements OnInit { } /** - * The function onResizing catches the corresponding syncfsuions event and stores the actual splitter postition to synchronize the splitters of the main gannt chart and the planTimeBart gantt chart. + * The function splitterResizing catches the corresponding syncfsuions event and stores the actual splitter postition to synchronize the splitters of the main gannt chart and the planTimeBart gantt chart. * @param args event arguments from the syncfusion gantt chart. */ - public onResizing(args){ - let width = '' + args.paneSize[0]+'px'; - this.splitterSettings = {position: width}; + public splitterResizing(args) { + + this.splitterSettings = {position: args.paneSize[0].toString() + 'px'}; } /** diff --git a/frontend/src/app/plan-time-bar/plan-time-bar.component.html b/frontend/src/app/plan-time-bar/plan-time-bar.component.html index 9df5b9b..e488f13 100644 --- a/frontend/src/app/plan-time-bar/plan-time-bar.component.html +++ b/frontend/src/app/plan-time-bar/plan-time-bar.component.html @@ -28,6 +28,7 @@ [allowSorting]= "false" [allowFiltering]="false" + (queryTaskbarInfo)="queryTaskbarInfo($event)" gridLines="Both"> diff --git a/frontend/src/app/plan-time-bar/plan-time-bar.component.ts b/frontend/src/app/plan-time-bar/plan-time-bar.component.ts index e11fa99..a032b88 100644 --- a/frontend/src/app/plan-time-bar/plan-time-bar.component.ts +++ b/frontend/src/app/plan-time-bar/plan-time-bar.component.ts @@ -164,5 +164,6 @@ export class PlanTimeBarComponent implements OnInit { } this.fetchPlanTimes(); } + } diff --git a/frontend/src/index.html b/frontend/src/index.html index 4f6f298..7771631 100644 --- a/frontend/src/index.html +++ b/frontend/src/index.html @@ -11,3 +11,13 @@ + + +