summaryrefslogtreecommitdiff
path: root/usr/share/kibana/src/ui/public/angular-bootstrap/datepicker/year.html
blob: 7c1ad3be43253936a8a5fa1af3929bf13e6e6fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<table
  class="kuiDatePicker fullWidth"
  role="grid"
  aria-labelledby="{{uniqueId}}-title"
  aria-activedescendant="{{activeDateId}}"
>
  <thead>
    <tr>
      <th
        class="kuiDatePickerNavigationCell"
        colspan="5"
      >
        <div class="kuiDatePickerNavigation">
          <button
            type="button"
            class="kuiDatePickerNavigationButton"
            ng-click="move(-1)"
            aria-label="Previous {{yearRange}} years"
          >
            <span class="kuiIcon fa-chevron-left"></span>
          </button>

          <button
            id="{{uniqueId}}-title"
            role="heading"
            aria-live="assertive"
            aria-atomic="true"
            type="button"
            class="kuiDatePickerNavigationButton"
            ng-click="toggleMode()"
          >
            <strong>{{title}}</strong>
          </button>

          <button
            type="button"
            class="kuiDatePickerNavigationButton"
            ng-click="move(1)"
            aria-label="Next {{yearRange}} years"
          >
            <span class="kuiIcon fa-chevron-right"></span>
          </button>
        </div>
      </th>
    </tr>
  </thead>
  <tbody>
    <tr ng-repeat="row in rows track by $index">
      <td
        ng-repeat="dt in row track by dt.date"
        class="kuiDatePickerRowCell"
        ng-class="{'kuiDatePickerRowCell-isBlocked': dt.disabled && !dt.secondary}"
        id="{{dt.uid}}"
        aria-disabled="{{!!dt.disabled}}"
      >
        <button
          type="button"
          class="kuiDatePickerRowCellContent"
          ng-class="{'kuiDatePickerRowCellContent-isSelected': dt.selected, 'kuiDatePickerRowCellContent-isCurrent': dt.current}"
          ng-click="select(dt.date)"
          ng-disabled="dt.disabled"
        >
          <span>{{dt.label}}</span>
        </button>
      </td>
    </tr>
  </tbody>
</table>