mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-5171] Facets section - UI changes (#8563)
This commit is contained in:
committed by
GitHub
parent
b10a4370c1
commit
c431d0c6f5
@@ -332,7 +332,8 @@
|
|||||||
},
|
},
|
||||||
"ARIA-LABEL": {
|
"ARIA-LABEL": {
|
||||||
"SEARCH_FILTER": "Search Filter List"
|
"SEARCH_FILTER": "Search Filter List"
|
||||||
}
|
},
|
||||||
|
"ANY": "Any"
|
||||||
},
|
},
|
||||||
"ICONS": {
|
"ICONS": {
|
||||||
"ft_ic_raster_image": "Image file",
|
"ft_ic_raster_image": "Image file",
|
||||||
|
@@ -11,13 +11,13 @@
|
|||||||
#menuTrigger="matMenuTrigger">
|
#menuTrigger="matMenuTrigger">
|
||||||
|
|
||||||
<span class="adf-search-filter-placeholder">
|
<span class="adf-search-filter-placeholder">
|
||||||
<span class="adf-search-filter-ellipsis">{{ field.label | translate }}</span>
|
<span class="adf-search-filter-ellipsis">{{ field.label | translate }}:</span>
|
||||||
<ng-container *ngIf="facetField.displayValue$ | async">:</ng-container>
|
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="adf-search-filter-ellipsis" *ngIf="facetField.displayValue$ | async as displayValue">
|
<span class="adf-search-filter-ellipsis adf-filter-value" *ngIf="facetField.displayValue$ | async as displayValue; else showAny">
|
||||||
{{ displayValue | translate }}
|
{{ displayValue | translate }}
|
||||||
</span>
|
</span>
|
||||||
|
<ng-template #showAny><span class="adf-search-filter-ellipsis adf-filter-value"> {{ 'SEARCH.FILTER.ANY' | translate }}</span></ng-template>
|
||||||
<mat-icon>keyboard_arrow_down</mat-icon>
|
<mat-icon>keyboard_arrow_down</mat-icon>
|
||||||
</mat-chip>
|
</mat-chip>
|
||||||
|
|
||||||
|
@@ -42,6 +42,11 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
|
||||||
|
.adf-filter-value {
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-icon {
|
.mat-icon {
|
||||||
|
@@ -249,7 +249,7 @@ describe('SearchFilterChipsComponent', () => {
|
|||||||
expect(chips.length).toBe(2);
|
expect(chips.length).toBe(2);
|
||||||
|
|
||||||
const titleElements = fixture.debugElement.queryAll(By.css('.adf-search-filter-placeholder'));
|
const titleElements = fixture.debugElement.queryAll(By.css('.adf-search-filter-placeholder'));
|
||||||
expect(titleElements.map(title => title.nativeElement.innerText.trim())).toEqual(['Name', 'Type']);
|
expect(titleElements.map(title => title.nativeElement.innerText.trim())).toEqual(['Name:', 'Type:']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should be update the search query when name changed', async () => {
|
it('should be update the search query when name changed', async () => {
|
||||||
|
@@ -10,12 +10,12 @@
|
|||||||
[attr.title]="widget.getDisplayValue() | async"
|
[attr.title]="widget.getDisplayValue() | async"
|
||||||
#menuTrigger="matMenuTrigger">
|
#menuTrigger="matMenuTrigger">
|
||||||
<span class="adf-search-filter-placeholder">
|
<span class="adf-search-filter-placeholder">
|
||||||
<span class="adf-search-filter-ellipsis">{{ category.name | translate }}</span>
|
<span class="adf-search-filter-ellipsis">{{ category.name | translate }}:</span>
|
||||||
<ng-container *ngIf="widget.getDisplayValue() | async">:</ng-container>
|
|
||||||
</span>
|
</span>
|
||||||
<span class="adf-search-filter-ellipsis" *ngIf="widget.getDisplayValue() | async as displayValue">
|
<span class="adf-search-filter-ellipsis adf-filter-value" *ngIf="widget.getDisplayValue() | async as displayValue; else showAny">
|
||||||
{{ displayValue | translate }}
|
{{ displayValue | translate }}
|
||||||
</span>
|
</span>
|
||||||
|
<ng-template #showAny><span class="adf-search-filter-ellipsis adf-filter-value"> {{ 'SEARCH.FILTER.ANY' | translate }}</span></ng-template>
|
||||||
<mat-icon>keyboard_arrow_down</mat-icon>
|
<mat-icon>keyboard_arrow_down</mat-icon>
|
||||||
</mat-chip>
|
</mat-chip>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user