|
@@ -1,9 +1,4 @@
|
|
|
-<div
|
|
|
- id="spells-table"
|
|
|
- cdkDropList
|
|
|
- class="example-list"
|
|
|
- (cdkDropListDropped)="dropSpells($event)"
|
|
|
->
|
|
|
+<div class="spell-box">
|
|
|
<div class="heading-list">
|
|
|
<div>Typ</div>
|
|
|
<div>Name</div>
|
|
@@ -16,62 +11,59 @@
|
|
|
<div>Reichweite</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- class="example-box"
|
|
|
- *ngFor="let spell of spells; let index = index"
|
|
|
- cdkDrag
|
|
|
- (click)="openDetailsPanel(index)"
|
|
|
+ id="spells-table"
|
|
|
+ cdkDropList
|
|
|
+ class="example-list table-content"
|
|
|
+ (cdkDropListDropped)="dropSpells($event)"
|
|
|
>
|
|
|
- <!-- Range Icon -->
|
|
|
- <ng-container
|
|
|
- [ngTemplateOutlet]="distanceIconTemplate"
|
|
|
- [ngTemplateOutletContext]="{ spell: spell }"
|
|
|
- ></ng-container>
|
|
|
- <div class="vertical-line"></div>
|
|
|
-
|
|
|
- <!-- Name -->
|
|
|
- <ng-container
|
|
|
- [ngTemplateOutlet]="spellNameTemplate"
|
|
|
- [ngTemplateOutletContext]="{ spell: spell }"
|
|
|
- ></ng-container>
|
|
|
- <div class="vertical-line"></div>
|
|
|
-
|
|
|
- <!-- Level -->
|
|
|
- <ng-container
|
|
|
- [ngTemplateOutlet]="spellLevelTemplate"
|
|
|
- [ngTemplateOutletContext]="{ spell: spell }"
|
|
|
- ></ng-container>
|
|
|
- <div class="vertical-line"></div>
|
|
|
-
|
|
|
- <!-- Attack -->
|
|
|
- <ng-container
|
|
|
- [ngTemplateOutlet]="spellAttackTemplate"
|
|
|
- [ngTemplateOutletContext]="{ spell: spell }"
|
|
|
- ></ng-container>
|
|
|
- <div class="vertical-line"></div>
|
|
|
-
|
|
|
- <!-- Damage/Heal -->
|
|
|
- <ng-container
|
|
|
- [ngTemplateOutlet]="spellDamageTemplate"
|
|
|
- [ngTemplateOutletContext]="{ spell: spell }"
|
|
|
- ></ng-container>
|
|
|
- <div class="vertical-line"></div>
|
|
|
-
|
|
|
- <!-- Range -->
|
|
|
- <ng-container
|
|
|
- [ngTemplateOutlet]="spellRangeTemplate"
|
|
|
- [ngTemplateOutletContext]="{ spell: spell }"
|
|
|
- ></ng-container>
|
|
|
+ <div
|
|
|
+ class="example-box"
|
|
|
+ *ngFor="let spell of spells; let index = index"
|
|
|
+ cdkDrag
|
|
|
+ (click)="openDetailsPanel(index)"
|
|
|
+ >
|
|
|
+ <!-- Range Icon -->
|
|
|
+ <ng-container
|
|
|
+ [ngTemplateOutlet]="distanceIconTemplate"
|
|
|
+ [ngTemplateOutletContext]="{ spell: spell }"
|
|
|
+ ></ng-container>
|
|
|
+ <div class="vertical-line"></div>
|
|
|
+
|
|
|
+ <!-- Name -->
|
|
|
+ <ng-container
|
|
|
+ [ngTemplateOutlet]="spellNameTemplate"
|
|
|
+ [ngTemplateOutletContext]="{ spell: spell }"
|
|
|
+ ></ng-container>
|
|
|
+ <div class="vertical-line"></div>
|
|
|
+
|
|
|
+ <!-- Level -->
|
|
|
+ <ng-container
|
|
|
+ [ngTemplateOutlet]="spellLevelTemplate"
|
|
|
+ [ngTemplateOutletContext]="{ spell: spell }"
|
|
|
+ ></ng-container>
|
|
|
+ <div class="vertical-line"></div>
|
|
|
+
|
|
|
+ <!-- Attack -->
|
|
|
+ <ng-container
|
|
|
+ [ngTemplateOutlet]="spellAttackTemplate"
|
|
|
+ [ngTemplateOutletContext]="{ spell: spell }"
|
|
|
+ ></ng-container>
|
|
|
+ <div class="vertical-line"></div>
|
|
|
+
|
|
|
+ <!-- Damage/Heal -->
|
|
|
+ <ng-container
|
|
|
+ [ngTemplateOutlet]="spellDamageTemplate"
|
|
|
+ [ngTemplateOutletContext]="{ spell: spell }"
|
|
|
+ ></ng-container>
|
|
|
+ <div class="vertical-line"></div>
|
|
|
+
|
|
|
+ <!-- Range -->
|
|
|
+ <ng-container
|
|
|
+ [ngTemplateOutlet]="spellRangeTemplate"
|
|
|
+ [ngTemplateOutletContext]="{ spell: spell }"
|
|
|
+ ></ng-container>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-
|
|
|
- <!-- Add Button -->
|
|
|
- <ui-button
|
|
|
- style="margin: 1rem"
|
|
|
- [type]="'add'"
|
|
|
- [size]="'xlarge'"
|
|
|
- [color]="'primary'"
|
|
|
- (click)="openSpellModal()"
|
|
|
- >
|
|
|
- </ui-button>
|
|
|
</div>
|
|
|
|
|
|
<!-- Templates -->
|