-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a94fa5
commit e85f2d1
Showing
7 changed files
with
73 additions
and
38 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 35 additions & 33 deletions
68
src/app/schedule/components/schedule/schedule.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
<f-drag-grid (fMovedTo)="onItemMovedToCell($event)"> | ||
<f-header> | ||
<f-header-row> | ||
<div class="time-cell"></div> | ||
<button mat-icon-button class="previous-next-button previous" (click)="prev.emit()"> | ||
<mat-icon>arrow_left</mat-icon> | ||
</button> | ||
@for (column of viewModel?.columns; track column) { | ||
<f-header-cell> | ||
<div class="day-of-week">{{ column.id | date : 'EE' }}</div> | ||
<div class="date">{{ column.id | date : 'd' }}</div> | ||
</f-header-cell> | ||
} | ||
<button mat-icon-button class="previous-next-button next" (click)="next.emit()"> | ||
<mat-icon>arrow_right</mat-icon> | ||
</button> | ||
</f-header-row> | ||
</f-header> | ||
<f-body> | ||
@for (row of viewModel?.rows; track row) { | ||
<f-body-row> | ||
<div class="time-cell"> | ||
<div>{{ row.id | date : 'HH:mm' }}</div> | ||
</div> | ||
@for (cell of row.cells; track cell) { | ||
<f-body-cell [id]="cell.id"> | ||
@for (item of cell.items; track item) { | ||
<f-cell-item [id]="item.id"> | ||
<schedule-item [viewModel]="item"></schedule-item> | ||
</f-cell-item> | ||
<f-header> | ||
<f-header-row> | ||
<div class="time-cell"></div> | ||
<button mat-icon-button class="previous-next-button previous" (click)="prev.emit()"> | ||
<mat-icon>arrow_left</mat-icon> | ||
</button> | ||
@for (column of viewModel?.columns;track column) { | ||
<f-header-cell> | ||
<div class="date-container" [class.today]="column.isToday"> | ||
<div class="day-of-week">{{ column.id | date : 'EE' }}</div> | ||
<div class="date">{{ column.id | date : 'd' }}</div> | ||
</div> | ||
</f-header-cell> | ||
} | ||
</f-body-cell> | ||
<button mat-icon-button class="previous-next-button next" (click)="next.emit()"> | ||
<mat-icon>arrow_right</mat-icon> | ||
</button> | ||
</f-header-row> | ||
</f-header> | ||
<f-body> | ||
@for (row of viewModel?.rows;track row) { | ||
<f-body-row> | ||
<div class="time-cell"> | ||
<div>{{ row.id | date : 'HH:mm' }}</div> | ||
</div> | ||
@for (cell of row.cells;track cell) { | ||
<f-body-cell [id]="cell.id"> | ||
@for (item of cell.items;track item) { | ||
<f-cell-item [id]="item.id"> | ||
<schedule-item [viewModel]="item"></schedule-item> | ||
</f-cell-item> | ||
} | ||
</f-body-cell> | ||
} | ||
</f-body-row> | ||
} | ||
</f-body-row> | ||
} | ||
</f-body> | ||
</f-body> | ||
</f-drag-grid> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
export interface IScheduleColumn { | ||
|
||
id: Date; | ||
|
||
isToday: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters