2018-11-12 10:31:58 +00:00
|
|
|
<div>
|
2019-10-23 15:38:35 +00:00
|
|
|
<div class="header">
|
|
|
|
<vn-button
|
|
|
|
icon="keyboard_arrow_left"
|
|
|
|
class="flat"
|
|
|
|
ng-click="$ctrl.movePrevious()"
|
|
|
|
translate-attr="::{title: 'Previous'}"
|
|
|
|
ng-if="$ctrl.displayControls"/>
|
|
|
|
</vn-button>
|
|
|
|
<div class="title">
|
|
|
|
<span translate>{{$ctrl.defaultDate | date: 'MMMM'}}</span>
|
|
|
|
<span ng-hide="::$ctrl.hideYear">{{$ctrl.defaultDate | date: 'yyyy'}}</span>
|
|
|
|
</div>
|
|
|
|
<vn-button
|
|
|
|
icon="keyboard_arrow_right"
|
|
|
|
class="flat"
|
|
|
|
ng-click="$ctrl.moveNext()"
|
|
|
|
translate-attr="::{title: 'Next'}"
|
|
|
|
ng-if="$ctrl.displayControls">
|
|
|
|
</vn-button>
|
|
|
|
</div>
|
2021-09-16 10:13:20 +00:00
|
|
|
<div id="days-header" ng-class="{'hide-weeks': $ctrl.hideWeeks}">
|
|
|
|
<div class="week-numbers" ng-if="!$ctrl.hideWeeks"></div>
|
|
|
|
<div class="weekdays">
|
|
|
|
<section
|
|
|
|
ng-repeat="day in ::$ctrl.weekDays"
|
2023-02-21 14:16:28 +00:00
|
|
|
translate-attr="::{title: day.name}"
|
2021-09-16 10:13:20 +00:00
|
|
|
ng-click="$ctrl.selectWeekDay($event, day.index)">
|
|
|
|
<span>{{::day.localeChar}}</span>
|
|
|
|
</section>
|
|
|
|
</div>
|
2019-10-23 15:38:35 +00:00
|
|
|
</div>
|
2021-09-16 10:13:20 +00:00
|
|
|
|
|
|
|
<div id="days-container" ng-class="{'hide-weeks': $ctrl.hideWeeks}">
|
|
|
|
<div class="weeks" ng-if="!$ctrl.hideWeeks">
|
|
|
|
<section ng-repeat="week in $ctrl.weekNumbers"
|
|
|
|
class="day">
|
|
|
|
<div class="day-number">
|
|
|
|
{{::week}}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="days"
|
|
|
|
ng-class="{'hide-contiguous': $ctrl.hideContiguous}">
|
|
|
|
<section
|
|
|
|
ng-repeat="day in $ctrl.days"
|
|
|
|
class="day"
|
|
|
|
ng-class="::$ctrl.getDayClasses(day)"
|
|
|
|
vn-repeat-last
|
|
|
|
on-last="$ctrl.repeatLast()">
|
|
|
|
<div
|
|
|
|
class="day-number"
|
|
|
|
ng-click="$ctrl.select($event, day)">
|
|
|
|
{{::day | date: 'd'}}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
2019-10-23 15:38:35 +00:00
|
|
|
</div>
|
2023-02-21 14:16:28 +00:00
|
|
|
</div>
|