|
11 | 11 | height="35" |
12 | 12 | src="assets/img/SP_Icon_Intel.png" |
13 | 13 | alt="Application Templates" |
14 | | - /> |
| 14 | + /> |
15 | 15 | </div> |
16 | 16 | <span class="header-text">Application Templates</span> |
17 | 17 | </div> |
|
26 | 26 | [(ngModel)]="filterString" |
27 | 27 | (keyup)="applyFilter($event.target.value)" |
28 | 28 | placeholder="Search" |
29 | | - /> |
| 29 | + /> |
30 | 30 | @if (filterString !== '') { |
31 | 31 | <button |
32 | 32 | mat-icon-button |
33 | 33 | matSuffix |
34 | 34 | (click)="clearFilter()" |
35 | 35 | title="Clear Search" |
36 | | - > |
| 36 | + > |
37 | 37 | <mat-icon |
38 | 38 | style="transform: scale(0.85)" |
39 | 39 | svgIcon="ic_cancel_circle" |
|
47 | 47 | mat-icon-button |
48 | 48 | matTooltip="Add a new Application Template" |
49 | 49 | (click)="addAppTemplate()" |
50 | | - > |
| 50 | + > |
51 | 51 | <mat-icon fontIcon="mdi-plus" class="mdi-24px"></mat-icon> |
52 | 52 | </button> |
53 | 53 | <button |
54 | 54 | mat-icon-button |
55 | 55 | matTooltip="Import Application Templates" |
56 | 56 | (click)="openDialog(importDialog)" |
57 | | - > |
| 57 | + > |
58 | 58 | <mat-icon fontIcon="mdi-file-import" class="mdi-24px"></mat-icon> |
59 | 59 | </button> |
60 | 60 | <button |
|
64 | 64 | selection.selected.length > 0 ? selection.selected.length : '' |
65 | 65 | " |
66 | 66 | (click)="openDialog(exportDialog)" |
67 | | - > |
| 67 | + > |
68 | 68 | <mat-icon fontIcon="mdi-file-export" class="mdi-24px"></mat-icon> |
69 | 69 | </button> |
70 | 70 | </div> |
|
77 | 77 | (change)="$event ? toggleAllRows() : null" |
78 | 78 | [checked]="selection.hasValue() && isAllSelected()" |
79 | 79 | [indeterminate]="selection.hasValue() && !isAllSelected()" |
80 | | - > |
| 80 | + > |
81 | 81 | </mat-checkbox> |
82 | 82 | </mat-header-cell> |
83 | 83 | <mat-cell *matCellDef="let row"> |
84 | 84 | <mat-checkbox |
85 | 85 | (click)="$event.stopPropagation()" |
86 | 86 | (change)="$event ? selection.toggle(row.id) : null" |
87 | 87 | [checked]="selection.isSelected(row.id)" |
88 | | - > |
| 88 | + > |
89 | 89 | </mat-checkbox> |
90 | 90 | </mat-cell> |
91 | 91 | </ng-container> |
|
99 | 99 | class="app-icon" |
100 | 100 | src="{{ element.icon }}" |
101 | 101 | alt="{{ element.name }} Icon" |
102 | | - /> {{ element.name }} |
103 | | - </mat-cell> |
104 | | - </ng-container> |
| 102 | + /> {{ element.name }} |
| 103 | + </mat-cell> |
| 104 | + </ng-container> |
105 | 105 |
|
106 | | - <ng-container matColumnDef="url"> |
107 | | - <mat-header-cell *matHeaderCellDef mat-sort-header> Url </mat-header-cell> |
108 | | - <mat-cell *matCellDef="let element; let i = index"> |
109 | | - <div class="w-100"> |
110 | | - <mat-expansion-panel |
| 106 | + <ng-container matColumnDef="url"> |
| 107 | + <mat-header-cell *matHeaderCellDef mat-sort-header> Url </mat-header-cell> |
| 108 | + <mat-cell *matCellDef="let element; let i = index"> |
| 109 | + <div class="w-100"> |
| 110 | + <mat-expansion-panel |
| 111 | + class="my-1" |
111 | 112 | [expanded]=" |
112 | 113 | currentAppTemplate !== undefined && |
113 | 114 | element.id === currentAppTemplate.id |
114 | 115 | " |
115 | | - (opened)="currentAppTemplate = element" |
116 | | - > |
| 116 | + (opened)="currentAppTemplate = element" |
| 117 | + > |
117 | 118 | <mat-expansion-panel-header> |
118 | 119 | <mat-panel-title style="font-size: small"> |
119 | 120 | {{ element.url }} |
|
132 | 133 | <mat-row *matRowDef="let row; columns: appTemplateColumns"></mat-row> |
133 | 134 | </mat-table> |
134 | 135 | @if (appTemplateDataSource.filteredData.length === 0) { |
135 | | - <div> |
136 | | - No Application Templates found |
137 | | - </div> |
| 136 | + <div>No Application Templates found</div> |
138 | 137 | } |
139 | 138 | <mat-paginator |
140 | 139 | #paginator |
141 | 140 | [pageSize]="defaultPageSize" |
142 | 141 | [pageSizeOptions]="[10, 20, 30]" |
143 | 142 | [showFirstLastButtons]="true" |
144 | 143 | (page)="pageEvent = $event" |
145 | | - > |
| 144 | + > |
146 | 145 | </mat-paginator> |
147 | 146 | </div> |
148 | 147 |
|
|
0 commit comments