From 209bc157b7ad924b9770e57c3c9141689d8a4472 Mon Sep 17 00:00:00 2001 From: Stephanie Leary Date: Fri, 24 Mar 2023 20:10:15 +0000 Subject: [PATCH] Move filter control into table header row Signed-off-by: Stephanie Leary --- .../share/grid/grid-filter-control.component.html | 125 +++++++++++---------- .../src/app/share/grid/grid-header.component.html | 24 ++-- .../src/eg2/src/app/share/grid/grid.component.css | 23 +++- 3 files changed, 91 insertions(+), 81 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.html b/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.html index 0d117d2aca..28594c09d4 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.html +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.html @@ -1,12 +1,13 @@ - Filter - filter_alt + + filter_alt - create + + create @@ -36,15 +37,15 @@ - - -
-
-
+
+ +
- +
-
+
-
-
-
+ +
- +
-
+
-
-
-
+ +
- +
-
+
-
-
-
+ +
- +
-
+
-
-
-
+ +
- +
-
+
-
-
-
+ +
- +
-
+
-
-
-
+ +
- +
-
+
-
-
+
+ -
- +
-
+
-
-
-
+ +
- +
-
+
-
+
I don't know how to filter {{col.name}} - {{col.datatype}}
- + - + diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-header.component.html b/Open-ILS/src/eg2/src/app/share/grid/grid-header.component.html index 120386f9d6..c60336705c 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-header.component.html +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-header.component.html @@ -26,28 +26,18 @@ [ngClass]="{'dragover' : col.isDragTarget}" [attr.aria-sort]="ariaSortDirection(col)" class="eg-grid-cell eg-grid-header-cell {{context.setClassNames(row, col)}}"> - - {{col.headerLabel}} + {{col.headerLabel}} arrow_upwards arrow_downwards - + {{col.headerLabel}} - - - - - - - - - - + + + - + \ No newline at end of file diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid.component.css b/Open-ILS/src/eg2/src/app/share/grid/grid.component.css index 61702de5b4..a82b443706 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid.component.css +++ b/Open-ILS/src/eg2/src/app/share/grid/grid.component.css @@ -73,6 +73,12 @@ table.table.eg-grid { white-space: normal; } +.eg-grid-header-cell .btn.sortable { + color: #255a88; + font-weight: 600; + text-align: left; +} + .eg-grid-header-cell[draggable=true] { cursor: grab; } @@ -128,9 +134,22 @@ table.table.eg-grid { box-shadow: none; } -.eg-grid-filter-control-cell { - white-space: normal; +.eg-grid-filter-control, +.eg-grid-filter-control .dropdown { + display: inline; +} + +.eg-grid-filter-control .material-icons { + font-size: 18px; } + +.eg-grid-filter-control .dropdown-toggle.btn { + border-width: 0; + color: #255a88; /* match link color */ + line-height: 1; + padding: 0; +} + .eg-grid-col-is-filtered { background: lightblue; } -- 2.11.0