|
@@ -1,22 +1,22 @@
|
|
|
-<table *ngIf="model?.and" class="check-conjunction w-100">
|
|
|
|
|
- <colgroup>
|
|
|
|
|
- <col width="20" />
|
|
|
|
|
- <col width="*" />
|
|
|
|
|
- </colgroup>
|
|
|
|
|
- <tbody>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <td [attr.rowspan]="(model?.and?.length || 1) + 1" class="bg-max label-upright-vertical">AND</td>
|
|
|
|
|
- <td *ngIf="model?.and?.length" class="p-0">
|
|
|
|
|
- <app-service-check-adapter [model]="model?.and?.[0] ?? ''"></app-service-check-adapter>
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr *ngFor="let check of model?.and | slice : 1">
|
|
|
|
|
- <td class="p-0"><app-service-check-adapter [model]="check"></app-service-check-adapter></td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <td class="ps-2">
|
|
|
|
|
- <app-service-check-button-controls (create)="model?.and?.push($event)"></app-service-check-button-controls>
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </tbody>
|
|
|
|
|
-</table>
|
|
|
|
|
|
|
+<div
|
|
|
|
|
+ *ngIf="model?.and"
|
|
|
|
|
+ class="d-grid w-100 check-conjunction"
|
|
|
|
|
+ [style.grid-template-rows]="'repeat(' + ((model?.and?.length || 0) + 1) + ', max-content)'">
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="d-flex flex-column align-items-center h-100 bg-max"
|
|
|
|
|
+ style="grid-column: 1 / span 1"
|
|
|
|
|
+ [style.grid-row]="'1 / span ' + (model?.and?.length ?? 0) + 1">
|
|
|
|
|
+ <fa-icon *ngIf="sortVisible.up" [icon]="fa.up" class="text-muted"></fa-icon>
|
|
|
|
|
+ <div class="flex-fill label-upright-vertical">AND</div>
|
|
|
|
|
+ <fa-icon [icon]="fa.times" class="text-danger"></fa-icon>
|
|
|
|
|
+ <fa-icon *ngIf="sortVisible.down" [icon]="fa.down" class="text-muted"></fa-icon>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div *ngFor="let check of model?.and; index as i" style="grid-column: 2 / span 1" [style.grid-row]="i + 1 + ' / span 1'" [class.border-top]="i > 0">
|
|
|
|
|
+ <app-service-check-adapter [model]="check" [sortVisible]="{ up: i > 0, down: (model?.and?.length ?? 0) > i + 1 }"></app-service-check-adapter>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div style="grid-column: 2 / span 1" [style.grid-row]="(model?.and?.length ?? 0) + 1 + ' / span 1'" class="ps-2 border-top">
|
|
|
|
|
+ <app-service-check-button-controls (create)="model?.and?.push($event)"></app-service-check-button-controls>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</div>
|