|
1 | | -<ds-alert [content]="'vocabulary-treeview.info' | translate" [type]="'alert-info'"></ds-alert> |
2 | | -<div class="treeview-header row"> |
| 1 | +<ds-alert [content]="'vocabulary-treeview.info' | translate" [type]="AlertType.Info"></ds-alert> |
| 2 | +<div class="treeview-header row mb-1"> |
3 | 3 | <div class="col-12"> |
4 | 4 | <div class="input-group"> |
5 | | - <input type="text" class="form-control" [(ngModel)]="searchText" (keyup.enter)="search()"> |
| 5 | + <input type="text" class="form-control" [(ngModel)]="searchText" (keyup.enter)="search()" |
| 6 | + [placeholder]="'vocabulary-treeview.search.form.search-placeholder' | translate"> |
6 | 7 | <div class="input-group-append" id="button-addon4"> |
7 | 8 | <button class="btn btn-outline-primary" type="button" (click)="search()" [disabled]="!isSearchEnabled()"> |
8 | 9 | {{'vocabulary-treeview.search.form.search' | translate}} |
|
19 | 20 | </div> |
20 | 21 | <div class="treeview-container"> |
21 | 22 | <ds-themed-loading *ngIf="loading | async" [showMessage]="false"></ds-themed-loading> |
22 | | - <h4 *ngIf="!(loading | async) && dataSource.data.length === 0" class="text-center text-muted mt-4" > |
| 23 | + <h2 *ngIf="!(loading | async) && dataSource.data.length === 0" class="h4 text-center text-muted mt-4" > |
23 | 24 | <span>{{'vocabulary-treeview.search.no-result' | translate}}</span> |
24 | | - </h4> |
| 25 | + </h2> |
25 | 26 | <cdk-tree [dataSource]="dataSource" [treeControl]="treeControl"> |
26 | 27 | <!-- Leaf node --> |
27 | 28 | <cdk-tree-node *cdkTreeNodeDef="let node" cdkTreeNodePadding class="d-flex"> |
28 | | - <button type="button" class="btn btn-default" cdkTreeNodeToggle> |
29 | | - <span class="fas fa-fw fa-angle-right invisible" aria-hidden="true"></span> |
30 | | - </button> |
| 29 | + <span aria-hidden="true" type="button" class="btn btn-default px-2 mr-1" cdkTreeNodeToggle> |
| 30 | + <i class="fas fa-fw fa-angle-right invisible"></i> |
| 31 | + </span> |
31 | 32 | <label *ngIf="multiSelect" class="d-flex align-items-center m-0 p-0 form-check" |
32 | 33 | [class.text-success]="node.isSelected" |
33 | 34 | [ngbTooltip]="node.item?.otherInformation?.note" |
@@ -55,11 +56,10 @@ <h4 *ngIf="!(loading | async) && dataSource.data.length === 0" class="text-cente |
55 | 56 |
|
56 | 57 | <!-- expandable node --> |
57 | 58 | <cdk-tree-node *cdkTreeNodeDef="let node; when: hasChildren" cdkTreeNodePadding class="d-flex"> |
58 | | - <button type="button" class="btn btn-default" cdkTreeNodeToggle |
| 59 | + <button type="button" class="btn btn-default px-2 mr-1" cdkTreeNodeToggle |
59 | 60 | [attr.aria-label]="'toggle ' + node.name" |
60 | 61 | (click)="loadChildren(node)"> |
61 | | - <span class="fas fa-fw {{treeControl.isExpanded(node) ? 'fa-angle-down' : 'fa-angle-right'}}" |
62 | | - aria-hidden="true"></span> |
| 62 | + <i class="fas fa-fw {{treeControl.isExpanded(node) ? 'fa-angle-down' : 'fa-angle-right'}}"></i> |
63 | 63 | </button> |
64 | 64 |
|
65 | 65 | <label *ngIf="multiSelect" class="d-flex align-items-center m-0 p-0 form-check" |
|
0 commit comments