|
|
|
@ -1,15 +1,30 @@
|
|
|
|
|
<div class="buttons">
|
|
|
|
|
<button (click)="save()">Save plan</button>
|
|
|
|
|
<button (click)="openPlan()">Open plan for editing</button>
|
|
|
|
|
<button (click)="loadBasePlan()">Load base plan preset</button>
|
|
|
|
|
<div class="buttons m-2">
|
|
|
|
|
<button mat-raised-button color="primary" (click)="save()">Save plan</button>
|
|
|
|
|
<button mat-raised-button color="primary" (click)="openPlan()">Open plan for editing</button>
|
|
|
|
|
<button mat-raised-button color="primary" (click)="loadBasePlan()">Load base plan preset</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div cdkDropListGroup *ngIf="areas" class="editor-container">
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
Area filter<input type="text" [(ngModel)]="areaSearchString">
|
|
|
|
|
Act filter <select [(ngModel)]="filterAct">
|
|
|
|
|
<mat-form-field color="accent">
|
|
|
|
|
<mat-label>Area filter</mat-label>
|
|
|
|
|
<input matInput type="text" [(ngModel)]="areaSearchString">
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field>
|
|
|
|
|
<mat-label>Act filter</mat-label>
|
|
|
|
|
<mat-select [(value)]="filterAct">
|
|
|
|
|
<mat-option *ngFor="let item of acts" [value]="item">{{item.name}}</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
|
<!-- <select [(ngModel)]="filterAct">
|
|
|
|
|
<option *ngFor="let item of acts" [ngValue]="item">{{item.name}}</option>
|
|
|
|
|
</select>
|
|
|
|
|
</select> -->
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
<h2>Campaign zones</h2>
|
|
|
|
|
<div cdkDropList [cdkDropListData]="filterAreas()" class="list areas" cdkDropListSortingDisabled
|
|
|
|
|
(cdkDropListDropped)="dropHandler($event)">
|
|
|
|
@ -18,18 +33,36 @@
|
|
|
|
|
<div class="act">Act {{item.act}}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
<span>Auto scroll to end on add to end<input type="checkbox" [(ngModel)]="autoScrollToEnd"></span>
|
|
|
|
|
<span>Reverse display: <input type="checkbox" [(ngModel)]="reverseDisplay"></span>
|
|
|
|
|
<button (click)="clearPlan()">Clear</button>
|
|
|
|
|
Area filter<input type="text" [(ngModel)]="planSearchString">
|
|
|
|
|
Act filter<select [(ngModel)]="planFilterAct">
|
|
|
|
|
<div class="d-flex flex-column right-settings">
|
|
|
|
|
<mat-slide-toggle color="accent" [(ngModel)]="autoScrollToEnd">Auto scroll to end on add to
|
|
|
|
|
end</mat-slide-toggle><mat-slide-toggle color="accent" [(ngModel)]="reverseDisplay">Reverse
|
|
|
|
|
display</mat-slide-toggle>
|
|
|
|
|
<button mat-stroked-button color="warn" (click)="clearPlan()">Clear</button>
|
|
|
|
|
|
|
|
|
|
<mat-form-field>
|
|
|
|
|
<mat-label>Area filter</mat-label>
|
|
|
|
|
<input matInput type="text" [(ngModel)]="planSearchString">
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field>
|
|
|
|
|
<mat-label>Act filter</mat-label>
|
|
|
|
|
<mat-select [(value)]="planFilterAct">
|
|
|
|
|
<mat-option *ngFor="let item of acts" [value]="item">{{item.name}}</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
|
<!-- <select [(ngModel)]="planFilterAct">
|
|
|
|
|
<option *ngFor="let item of acts" [ngValue]="item">{{item.name}}</option>
|
|
|
|
|
</select>
|
|
|
|
|
</select> -->
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h2>Plan</h2>
|
|
|
|
|
<div cdkDropList #planList [cdkDropListData]="filterPlanElements()" class="list planlist" (cdkDropListDropped)="dropHandler($event)" [cdkDropListDisabled]="disabledPlanDD" [cdkDropListEnterPredicate]="canDrop">
|
|
|
|
|
<div cdkDropList #planList [cdkDropListData]="filterPlanElements()" class="list planlist"
|
|
|
|
|
(cdkDropListDropped)="dropHandler($event)" [cdkDropListDisabled]="disabledPlanDD"
|
|
|
|
|
[cdkDropListEnterPredicate]="canDrop">
|
|
|
|
|
<div class="box" *ngFor="let item of filterPlanElements()" cdkDrag (contextmenu)="addNote($event, item)">
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="zone-name">{{areasMap?.get(item.area_key)?.name}}</div>
|
|
|
|
@ -40,7 +73,9 @@
|
|
|
|
|
<div class="delete" (click)="remove(item)">+</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div cdkDropList [cdkDropListData]="plan.plan" class="list planlist end" style="position: relative;display: flex; flex-direction: column; justify-content: center;" (cdkDropListDropped)="dropEndHandler($event)">
|
|
|
|
|
<div cdkDropList [cdkDropListData]="plan.plan" class="list planlist end"
|
|
|
|
|
style="position: relative;display: flex; flex-direction: column; justify-content: center;"
|
|
|
|
|
(cdkDropListDropped)="dropEndHandler($event)">
|
|
|
|
|
<span style="position: absolute; ">Place at end of list</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|