Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix(value): display boolean value even it doesn't exist * style(boolean value): display checkbox instead of true or false * refactor(boolean-value): format code * chore(advanced search): compare boolean value in useful way * style(search): refactor advanced search * style(search): refactor advanced search * style(search): resolve style issue in date picker * test(search): fix tests * test(search): fix test in advanced search * style(value): fixing styling issue in boolean value
- Loading branch information
1 parent
436c270
commit 7affa5e
Showing
30 changed files
with
178 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
src/app/workspace/resource/values/boolean-value/boolean-value.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/app/workspace/resource/values/boolean-value/boolean-value.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
@import "../../../../../assets/style/viewer"; | ||
|
||
.read-mode-view .mat-icon, | ||
.boolValue { | ||
margin-top: 4px; | ||
margin-left: 4px; | ||
display: block; | ||
|
||
&.more-space { | ||
margin-top: 16px; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 22 additions & 18 deletions
40
...ced-search/resource-and-property-selection/resource-and-property-selection.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...ced-search/resource-and-property-selection/resource-and-property-selection.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
.form { | ||
display: inherit; | ||
} | ||
|
||
.select-property { | ||
margin-left: 16px; | ||
|
||
.property-button { | ||
margin: 0 12px 64px 0; | ||
} | ||
} | ||
|
||
.res-pointer-level { | ||
margin-left: -160px; | ||
} |
27 changes: 23 additions & 4 deletions
27
...ource-and-property-selection/search-select-property/search-select-property.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,31 @@ | ||
<span *ngIf="properties.length > 0" [formGroup]="form" > | ||
<!-- property header --> | ||
<div *ngIf="index === 0 && topLevel" class="search-property-header"> | ||
<span class="fill-remaining-space"></span> | ||
<span class="mat-caption">Sort criterion</span> | ||
</div> | ||
|
||
<div *ngIf="properties.length > 0" class="search-property-line" [formGroup]="form"> | ||
|
||
<!-- select property --> | ||
<mat-form-field class="search-property-field medium-field"> | ||
<mat-select placeholder="Select Properties" [formControlName]="'property'" class="select-property"> | ||
<mat-option *ngFor="let prop of properties" [value]="prop">{{ prop.label }}</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
|
||
<!-- comparison operator and property value field --> | ||
<app-specify-property-value #specifyPropertyValue [formGroup]="form" *ngIf="propertySelected !== undefined" | ||
[property]="propertySelected" [topLevel]="topLevel"></app-specify-property-value> | ||
[property]="propertySelected" [topLevel]="topLevel"></app-specify-property-value> | ||
|
||
<span class="fill-remaining-space"></span> | ||
<span> | ||
<mat-slide-toggle *ngIf="propertySelected !== undefined && sortCriterion()" | ||
[formControlName]="'isSortCriterion'" | ||
[color]="'primary'" | ||
class="sort-criterion-toggle" | ||
matTooltip="Sort search results by value of this property" | ||
matTooltipPosition="above"> | ||
</mat-slide-toggle> | ||
</span> | ||
|
||
<mat-checkbox *ngIf="propertySelected !== undefined && sortCriterion()" [formControlName]="'isSortCriterion'" matTooltip="Sort criterion"></mat-checkbox> | ||
</span> | ||
</div> |
22 changes: 20 additions & 2 deletions
22
...ource-and-property-selection/search-select-property/search-select-property.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
.search-property-field { | ||
margin-right: 8px; | ||
:host { | ||
width: 100%; | ||
|
||
.search-property-header { | ||
width: 100%; | ||
display: inline-flex; | ||
} | ||
|
||
.search-property-line { | ||
display: inline-flex; | ||
width: 100%; | ||
|
||
.search-property-field { | ||
margin-right: 8px; | ||
} | ||
|
||
.sort-criterion-toggle { | ||
margin: 16px 16px 0 0; | ||
} | ||
} | ||
} |
Oops, something went wrong.